]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Recompile configure
[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 7.4.1.
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='7.4.1'
591 PACKAGE_STRING='bacula 7.4.1'
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 LIBOBJS
657 X_EXTRA_LIBS
658 X_LIBS
659 X_PRE_LIBS
660 X_CFLAGS
661 XMKMF
662 GETCONF
663 SHARED_CATALOG_TARGETS
664 DEFAULT_DB_TYPE
665 DB_LIBS
666 DB_BACKENDS
667 uncomment_dbi
668 SQLITE_BINDIR
669 SQLITE_INCLUDE
670 SQLITE_LIBS
671 MYSQL_BINDIR
672 MYSQL_INCLUDE
673 MYSQL_LIBS
674 POSTGRESQL_BINDIR
675 POSTGRESQL_INCLUDE
676 POSTGRESQL_LIBS
677 SBINPERM
678 fd_group
679 fd_user
680 sd_group
681 sd_user
682 dir_group
683 dir_user
684 db_ssl_options
685 db_port
686 db_password
687 db_user
688 db_name
689 mon_sd_password
690 mon_fd_password
691 mon_dir_password
692 sd_password
693 fd_password
694 dir_password
695 sd_port
696 fd_port
697 dir_port
698 baseport
699 subsysdir
700 piddir
701 smtp_host
702 job_email
703 dump_email
704 plugindir
705 logdir
706 bsrdir
707 scriptdir
708 hostname
709 basename
710 archivedir
711 working_dir
712 OPENSSL_INC
713 OPENSSL_LIBS
714 READLINE_SRC
715 CONS_LDFLAGS
716 CONS_LIBS
717 CONS_SRC
718 CONS_OBJ
719 CONS_INC
720 STORED_DIR
721 DIR_TOOLS
722 DIRD_DIR
723 ALL_DIRS
724 STATIC_CONS
725 STATIC_DIR
726 STATIC_SD
727 STATIC_FD
728 TTOOL_LDFLAGS
729 QWT
730 QWT_LIB
731 QWT_LDFLAGS
732 QWT_INC
733 BAT_DIR
734 INTL_LIBTOOL_SUFFIX_PREFIX
735 INTLOBJS
736 GENCAT
737 INSTOBJEXT
738 DATADIRNAME
739 CATOBJEXT
740 USE_INCLUDED_LIBINTL
741 BUILD_INCLUDED_LIBINTL
742 INTLBISON
743 HAVE_WPRINTF
744 HAVE_SNPRINTF
745 HAVE_ASPRINTF
746 HAVE_POSIX_PRINTF
747 GLIBC21
748 ALLOCA
749 GLIBC2
750 POSUB
751 LTLIBINTL
752 LIBINTL
753 INTLLIBS
754 LTLIBICONV
755 LIBICONV
756 INTL_MACOSX_LIBS
757 MSGMERGE
758 XGETTEXT
759 GMSGFMT
760 MSGFMT
761 USE_NLS
762 MKINSTALLDIRS
763 SET_MAKE
764 HAVE_KFREEBSD_OS_FALSE
765 HAVE_KFREEBSD_OS_TRUE
766 HAVE_DARWIN_OS_FALSE
767 HAVE_DARWIN_OS_TRUE
768 HAVE_IRIX_OS_FALSE
769 HAVE_IRIX_OS_TRUE
770 HAVE_SGI_OS_FALSE
771 HAVE_SGI_OS_TRUE
772 HAVE_BSDI_OS_FALSE
773 HAVE_BSDI_OS_TRUE
774 HAVE_OPENBSD_OS_FALSE
775 HAVE_OPENBSD_OS_TRUE
776 HAVE_NETBSD_OS_FALSE
777 HAVE_NETBSD_OS_TRUE
778 HAVE_FREEBSD_OS_FALSE
779 HAVE_FREEBSD_OS_TRUE
780 HAVE_LINUX_OS_FALSE
781 HAVE_LINUX_OS_TRUE
782 HAVE_HPUX_OS_FALSE
783 HAVE_HPUX_OS_TRUE
784 HAVE_AIX_OS_FALSE
785 HAVE_AIX_OS_TRUE
786 HAVE_OSF1_OS_FALSE
787 HAVE_OSF1_OS_TRUE
788 HAVE_HURD_OS_FALSE
789 HAVE_HURD_OS_TRUE
790 HAVE_SUN_OS_FALSE
791 HAVE_SUN_OS_TRUE
792 INCLUDE_UNINSTALL_TARGET
793 INCLUDE_INSTALL_TARGET
794 FD_PLUGIN_DIR
795 QMAKE_LIBTOOL
796 LIBTOOL_CLEAN_TARGET
797 LIBTOOL_UNINSTALL_TARGET
798 LIBTOOL_INSTALL_TARGET
799 DEFAULT_SHARED_OBJECT_TYPE
800 DEFAULT_ARCHIVE_TYPE
801 DEFAULT_OBJECT_TYPE
802 LIBADD_DL
803 LT_DLPREOPEN
804 LIBADD_DLD_LINK
805 LIBADD_SHL_LOAD
806 LIBADD_DLOPEN
807 LT_DLLOADERS
808 CXXCPP
809 OTOOL64
810 OTOOL
811 LIPO
812 NMEDIT
813 DSYMUTIL
814 MANIFEST_TOOL
815 RANLIB
816 STRIP
817 ac_ct_AR
818 DLLTOOL
819 OBJDUMP
820 LN_S
821 NM
822 ac_ct_DUMPBIN
823 DUMPBIN
824 LD
825 FGREP
826 host_os
827 host_vendor
828 host_cpu
829 host
830 build_os
831 build_vendor
832 build_cpu
833 build
834 LIBTOOL
835 LOCAL_DEFS
836 LOCAL_LDFLAGS
837 LOCAL_CFLAGS
838 LOCAL_LIBS
839 MAKE_SHELL
840 ARFLAGS
841 AWK
842 PIDOF
843 GMAKE
844 QMAKE
845 PKGCONFIG
846 DVDRWFORMAT
847 DVDRWMEDIAINFO
848 GROWISOFS
849 PYTHON
850 MKISOFS
851 DD
852 MTX
853 OPENSSL
854 AR
855 TBL
856 CMP
857 ECHO
858 SED
859 CP
860 REMOVE
861 MV
862 INSTALL_DATA
863 INSTALL_SCRIPT
864 INSTALL_PROGRAM
865 EGREP
866 GREP
867 CPP
868 ac_ct_CXX
869 CXXFLAGS
870 CXX
871 OBJEXT
872 EXEEXT
873 ac_ct_CC
874 CPPFLAGS
875 LDFLAGS
876 CFLAGS
877 CC
878 LIBBACFIND_LT_RELEASE
879 LIBBACCATS_LT_RELEASE
880 LIBBACSQL_LT_RELEASE
881 LIBBACCFG_LT_RELEASE
882 LIBBAC_LT_RELEASE
883 BQT4_VERSION
884 DEPKGS_VERSION
885 DEPKGS_QT_VERSION
886 BDB_VERSION
887 post_host
888 BACULA
889 LSMDATE
890 DATE
891 VERSION
892 FALSEPRG
893 TRUEPRG
894 TOP_DIR
895 BUILD_DIR
896 target_alias
897 host_alias
898 build_alias
899 LIBS
900 ECHO_T
901 ECHO_N
902 ECHO_C
903 DEFS
904 mandir
905 localedir
906 libdir
907 psdir
908 pdfdir
909 dvidir
910 htmldir
911 infodir
912 docdir
913 oldincludedir
914 includedir
915 localstatedir
916 sharedstatedir
917 sysconfdir
918 datadir
919 datarootdir
920 libexecdir
921 sbindir
922 bindir
923 program_transform_name
924 prefix
925 exec_prefix
926 PACKAGE_URL
927 PACKAGE_BUGREPORT
928 PACKAGE_STRING
929 PACKAGE_VERSION
930 PACKAGE_TARNAME
931 PACKAGE_NAME
932 PATH_SEPARATOR
933 SHELL'
934 ac_subst_files='MCOMMON'
935 ac_user_opts='
936 enable_option_checking
937 enable_libtool
938 enable_shared
939 enable_static
940 with_pic
941 enable_fast_install
942 with_gnu_ld
943 with_sysroot
944 enable_libtool_lock
945 enable_includes
946 enable_nls
947 enable_rpath
948 with_libiconv_prefix
949 with_libintl_prefix
950 with_included_gettext
951 enable_bat
952 enable_smartalloc
953 enable_lockmgr
954 enable_static_tools
955 enable_static_fd
956 enable_static_sd
957 enable_static_dir
958 enable_static_cons
959 enable_client_only
960 enable_build_dird
961 enable_build_stored
962 enable_conio
963 enable_ipv6
964 enable_readline
965 with_readline
966 with_tcp_wrappers
967 with_openssl
968 with_working_dir
969 with_archivedir
970 with_basename
971 with_hostname
972 with_scriptdir
973 with_bsrdir
974 with_logdir
975 with_plugindir
976 with_dump_email
977 with_job_email
978 with_smtp_host
979 with_pid_dir
980 with_subsys_dir
981 with_baseport
982 with_dir_password
983 with_fd_password
984 with_sd_password
985 with_mon_dir_password
986 with_mon_fd_password
987 with_mon_sd_password
988 with_db_name
989 with_db_user
990 with_db_password
991 with_db_port
992 with_db_ssl_options
993 with_dir_user
994 with_dir_group
995 with_sd_user
996 with_sd_group
997 with_fd_user
998 with_fd_group
999 with_sbin_perm
1000 enable_batch_insert
1001 with_postgresql
1002 with_mysql
1003 with_embedded_mysql
1004 with_sqlite3
1005 enable_largefile
1006 with_x
1007 enable_afs
1008 with_afsdir
1009 enable_lzo
1010 with_lzo
1011 enable_acl
1012 enable_xattr
1013 with_systemd
1014 '
1015       ac_precious_vars='build_alias
1016 host_alias
1017 target_alias
1018 CC
1019 CFLAGS
1020 LDFLAGS
1021 LIBS
1022 CPPFLAGS
1023 CXX
1024 CXXFLAGS
1025 CCC
1026 CPP
1027 CXXCPP
1028 XMKMF'
1029
1030
1031 # Initialize some variables set by options.
1032 ac_init_help=
1033 ac_init_version=false
1034 ac_unrecognized_opts=
1035 ac_unrecognized_sep=
1036 # The variables have the same names as the options, with
1037 # dashes changed to underlines.
1038 cache_file=/dev/null
1039 exec_prefix=NONE
1040 no_create=
1041 no_recursion=
1042 prefix=NONE
1043 program_prefix=NONE
1044 program_suffix=NONE
1045 program_transform_name=s,x,x,
1046 silent=
1047 site=
1048 srcdir=
1049 verbose=
1050 x_includes=NONE
1051 x_libraries=NONE
1052
1053 # Installation directory options.
1054 # These are left unexpanded so users can "make install exec_prefix=/foo"
1055 # and all the variables that are supposed to be based on exec_prefix
1056 # by default will actually change.
1057 # Use braces instead of parens because sh, perl, etc. also accept them.
1058 # (The list follows the same order as the GNU Coding Standards.)
1059 bindir='${exec_prefix}/bin'
1060 sbindir='${exec_prefix}/sbin'
1061 libexecdir='${exec_prefix}/libexec'
1062 datarootdir='${prefix}/share'
1063 datadir='${datarootdir}'
1064 sysconfdir='${prefix}/etc'
1065 sharedstatedir='${prefix}/com'
1066 localstatedir='${prefix}/var'
1067 includedir='${prefix}/include'
1068 oldincludedir='/usr/include'
1069 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1070 infodir='${datarootdir}/info'
1071 htmldir='${docdir}'
1072 dvidir='${docdir}'
1073 pdfdir='${docdir}'
1074 psdir='${docdir}'
1075 libdir='${exec_prefix}/lib'
1076 localedir='${datarootdir}/locale'
1077 mandir='${datarootdir}/man'
1078
1079 ac_prev=
1080 ac_dashdash=
1081 for ac_option
1082 do
1083   # If the previous option needs an argument, assign it.
1084   if test -n "$ac_prev"; then
1085     eval $ac_prev=\$ac_option
1086     ac_prev=
1087     continue
1088   fi
1089
1090   case $ac_option in
1091   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1092   *=)   ac_optarg= ;;
1093   *)    ac_optarg=yes ;;
1094   esac
1095
1096   # Accept the important Cygnus configure options, so we can diagnose typos.
1097
1098   case $ac_dashdash$ac_option in
1099   --)
1100     ac_dashdash=yes ;;
1101
1102   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1103     ac_prev=bindir ;;
1104   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1105     bindir=$ac_optarg ;;
1106
1107   -build | --build | --buil | --bui | --bu)
1108     ac_prev=build_alias ;;
1109   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1110     build_alias=$ac_optarg ;;
1111
1112   -cache-file | --cache-file | --cache-fil | --cache-fi \
1113   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1114     ac_prev=cache_file ;;
1115   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1116   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1117     cache_file=$ac_optarg ;;
1118
1119   --config-cache | -C)
1120     cache_file=config.cache ;;
1121
1122   -datadir | --datadir | --datadi | --datad)
1123     ac_prev=datadir ;;
1124   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1125     datadir=$ac_optarg ;;
1126
1127   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1128   | --dataroo | --dataro | --datar)
1129     ac_prev=datarootdir ;;
1130   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1131   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1132     datarootdir=$ac_optarg ;;
1133
1134   -disable-* | --disable-*)
1135     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1136     # Reject names that are not valid shell variable names.
1137     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138       as_fn_error $? "invalid feature name: $ac_useropt"
1139     ac_useropt_orig=$ac_useropt
1140     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141     case $ac_user_opts in
1142       *"
1143 "enable_$ac_useropt"
1144 "*) ;;
1145       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1146          ac_unrecognized_sep=', ';;
1147     esac
1148     eval enable_$ac_useropt=no ;;
1149
1150   -docdir | --docdir | --docdi | --doc | --do)
1151     ac_prev=docdir ;;
1152   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1153     docdir=$ac_optarg ;;
1154
1155   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1156     ac_prev=dvidir ;;
1157   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1158     dvidir=$ac_optarg ;;
1159
1160   -enable-* | --enable-*)
1161     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1162     # Reject names that are not valid shell variable names.
1163     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164       as_fn_error $? "invalid feature name: $ac_useropt"
1165     ac_useropt_orig=$ac_useropt
1166     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167     case $ac_user_opts in
1168       *"
1169 "enable_$ac_useropt"
1170 "*) ;;
1171       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1172          ac_unrecognized_sep=', ';;
1173     esac
1174     eval enable_$ac_useropt=\$ac_optarg ;;
1175
1176   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1177   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1178   | --exec | --exe | --ex)
1179     ac_prev=exec_prefix ;;
1180   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1181   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1182   | --exec=* | --exe=* | --ex=*)
1183     exec_prefix=$ac_optarg ;;
1184
1185   -gas | --gas | --ga | --g)
1186     # Obsolete; use --with-gas.
1187     with_gas=yes ;;
1188
1189   -help | --help | --hel | --he | -h)
1190     ac_init_help=long ;;
1191   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1192     ac_init_help=recursive ;;
1193   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1194     ac_init_help=short ;;
1195
1196   -host | --host | --hos | --ho)
1197     ac_prev=host_alias ;;
1198   -host=* | --host=* | --hos=* | --ho=*)
1199     host_alias=$ac_optarg ;;
1200
1201   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1202     ac_prev=htmldir ;;
1203   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1204   | --ht=*)
1205     htmldir=$ac_optarg ;;
1206
1207   -includedir | --includedir | --includedi | --included | --include \
1208   | --includ | --inclu | --incl | --inc)
1209     ac_prev=includedir ;;
1210   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1211   | --includ=* | --inclu=* | --incl=* | --inc=*)
1212     includedir=$ac_optarg ;;
1213
1214   -infodir | --infodir | --infodi | --infod | --info | --inf)
1215     ac_prev=infodir ;;
1216   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1217     infodir=$ac_optarg ;;
1218
1219   -libdir | --libdir | --libdi | --libd)
1220     ac_prev=libdir ;;
1221   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1222     libdir=$ac_optarg ;;
1223
1224   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1225   | --libexe | --libex | --libe)
1226     ac_prev=libexecdir ;;
1227   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1228   | --libexe=* | --libex=* | --libe=*)
1229     libexecdir=$ac_optarg ;;
1230
1231   -localedir | --localedir | --localedi | --localed | --locale)
1232     ac_prev=localedir ;;
1233   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1234     localedir=$ac_optarg ;;
1235
1236   -localstatedir | --localstatedir | --localstatedi | --localstated \
1237   | --localstate | --localstat | --localsta | --localst | --locals)
1238     ac_prev=localstatedir ;;
1239   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1240   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1241     localstatedir=$ac_optarg ;;
1242
1243   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1244     ac_prev=mandir ;;
1245   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1246     mandir=$ac_optarg ;;
1247
1248   -nfp | --nfp | --nf)
1249     # Obsolete; use --without-fp.
1250     with_fp=no ;;
1251
1252   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1253   | --no-cr | --no-c | -n)
1254     no_create=yes ;;
1255
1256   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1257   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1258     no_recursion=yes ;;
1259
1260   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1261   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1262   | --oldin | --oldi | --old | --ol | --o)
1263     ac_prev=oldincludedir ;;
1264   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1265   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1266   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1267     oldincludedir=$ac_optarg ;;
1268
1269   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1270     ac_prev=prefix ;;
1271   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1272     prefix=$ac_optarg ;;
1273
1274   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1275   | --program-pre | --program-pr | --program-p)
1276     ac_prev=program_prefix ;;
1277   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1278   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1279     program_prefix=$ac_optarg ;;
1280
1281   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1282   | --program-suf | --program-su | --program-s)
1283     ac_prev=program_suffix ;;
1284   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1285   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1286     program_suffix=$ac_optarg ;;
1287
1288   -program-transform-name | --program-transform-name \
1289   | --program-transform-nam | --program-transform-na \
1290   | --program-transform-n | --program-transform- \
1291   | --program-transform | --program-transfor \
1292   | --program-transfo | --program-transf \
1293   | --program-trans | --program-tran \
1294   | --progr-tra | --program-tr | --program-t)
1295     ac_prev=program_transform_name ;;
1296   -program-transform-name=* | --program-transform-name=* \
1297   | --program-transform-nam=* | --program-transform-na=* \
1298   | --program-transform-n=* | --program-transform-=* \
1299   | --program-transform=* | --program-transfor=* \
1300   | --program-transfo=* | --program-transf=* \
1301   | --program-trans=* | --program-tran=* \
1302   | --progr-tra=* | --program-tr=* | --program-t=*)
1303     program_transform_name=$ac_optarg ;;
1304
1305   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1306     ac_prev=pdfdir ;;
1307   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1308     pdfdir=$ac_optarg ;;
1309
1310   -psdir | --psdir | --psdi | --psd | --ps)
1311     ac_prev=psdir ;;
1312   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1313     psdir=$ac_optarg ;;
1314
1315   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1316   | -silent | --silent | --silen | --sile | --sil)
1317     silent=yes ;;
1318
1319   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1320     ac_prev=sbindir ;;
1321   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1322   | --sbi=* | --sb=*)
1323     sbindir=$ac_optarg ;;
1324
1325   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1326   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1327   | --sharedst | --shareds | --shared | --share | --shar \
1328   | --sha | --sh)
1329     ac_prev=sharedstatedir ;;
1330   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1331   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1332   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1333   | --sha=* | --sh=*)
1334     sharedstatedir=$ac_optarg ;;
1335
1336   -site | --site | --sit)
1337     ac_prev=site ;;
1338   -site=* | --site=* | --sit=*)
1339     site=$ac_optarg ;;
1340
1341   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1342     ac_prev=srcdir ;;
1343   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1344     srcdir=$ac_optarg ;;
1345
1346   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1347   | --syscon | --sysco | --sysc | --sys | --sy)
1348     ac_prev=sysconfdir ;;
1349   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1350   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1351     sysconfdir=$ac_optarg ;;
1352
1353   -target | --target | --targe | --targ | --tar | --ta | --t)
1354     ac_prev=target_alias ;;
1355   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1356     target_alias=$ac_optarg ;;
1357
1358   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1359     verbose=yes ;;
1360
1361   -version | --version | --versio | --versi | --vers | -V)
1362     ac_init_version=: ;;
1363
1364   -with-* | --with-*)
1365     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1366     # Reject names that are not valid shell variable names.
1367     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1368       as_fn_error $? "invalid package name: $ac_useropt"
1369     ac_useropt_orig=$ac_useropt
1370     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1371     case $ac_user_opts in
1372       *"
1373 "with_$ac_useropt"
1374 "*) ;;
1375       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1376          ac_unrecognized_sep=', ';;
1377     esac
1378     eval with_$ac_useropt=\$ac_optarg ;;
1379
1380   -without-* | --without-*)
1381     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1382     # Reject names that are not valid shell variable names.
1383     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1384       as_fn_error $? "invalid package name: $ac_useropt"
1385     ac_useropt_orig=$ac_useropt
1386     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1387     case $ac_user_opts in
1388       *"
1389 "with_$ac_useropt"
1390 "*) ;;
1391       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1392          ac_unrecognized_sep=', ';;
1393     esac
1394     eval with_$ac_useropt=no ;;
1395
1396   --x)
1397     # Obsolete; use --with-x.
1398     with_x=yes ;;
1399
1400   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1401   | --x-incl | --x-inc | --x-in | --x-i)
1402     ac_prev=x_includes ;;
1403   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1404   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1405     x_includes=$ac_optarg ;;
1406
1407   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1408   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1409     ac_prev=x_libraries ;;
1410   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1411   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1412     x_libraries=$ac_optarg ;;
1413
1414   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1415 Try \`$0 --help' for more information"
1416     ;;
1417
1418   *=*)
1419     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1420     # Reject names that are not valid shell variable names.
1421     case $ac_envvar in #(
1422       '' | [0-9]* | *[!_$as_cr_alnum]* )
1423       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1424     esac
1425     eval $ac_envvar=\$ac_optarg
1426     export $ac_envvar ;;
1427
1428   *)
1429     # FIXME: should be removed in autoconf 3.0.
1430     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1431     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1432       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1433     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1434     ;;
1435
1436   esac
1437 done
1438
1439 if test -n "$ac_prev"; then
1440   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1441   as_fn_error $? "missing argument to $ac_option"
1442 fi
1443
1444 if test -n "$ac_unrecognized_opts"; then
1445   case $enable_option_checking in
1446     no) ;;
1447     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1448     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1449   esac
1450 fi
1451
1452 # Check all directory arguments for consistency.
1453 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1454                 datadir sysconfdir sharedstatedir localstatedir includedir \
1455                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1456                 libdir localedir mandir
1457 do
1458   eval ac_val=\$$ac_var
1459   # Remove trailing slashes.
1460   case $ac_val in
1461     */ )
1462       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1463       eval $ac_var=\$ac_val;;
1464   esac
1465   # Be sure to have absolute directory names.
1466   case $ac_val in
1467     [\\/$]* | ?:[\\/]* )  continue;;
1468     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1469   esac
1470   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1471 done
1472
1473 # There might be people who depend on the old broken behavior: `$host'
1474 # used to hold the argument of --host etc.
1475 # FIXME: To remove some day.
1476 build=$build_alias
1477 host=$host_alias
1478 target=$target_alias
1479
1480 # FIXME: To remove some day.
1481 if test "x$host_alias" != x; then
1482   if test "x$build_alias" = x; then
1483     cross_compiling=maybe
1484   elif test "x$build_alias" != "x$host_alias"; then
1485     cross_compiling=yes
1486   fi
1487 fi
1488
1489 ac_tool_prefix=
1490 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1491
1492 test "$silent" = yes && exec 6>/dev/null
1493
1494
1495 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1496 ac_ls_di=`ls -di .` &&
1497 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1498   as_fn_error $? "working directory cannot be determined"
1499 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1500   as_fn_error $? "pwd does not report name of working directory"
1501
1502
1503 # Find the source files, if location was not specified.
1504 if test -z "$srcdir"; then
1505   ac_srcdir_defaulted=yes
1506   # Try the directory containing this script, then the parent directory.
1507   ac_confdir=`$as_dirname -- "$as_myself" ||
1508 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1509          X"$as_myself" : 'X\(//\)[^/]' \| \
1510          X"$as_myself" : 'X\(//\)$' \| \
1511          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1512 $as_echo X"$as_myself" |
1513     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1514             s//\1/
1515             q
1516           }
1517           /^X\(\/\/\)[^/].*/{
1518             s//\1/
1519             q
1520           }
1521           /^X\(\/\/\)$/{
1522             s//\1/
1523             q
1524           }
1525           /^X\(\/\).*/{
1526             s//\1/
1527             q
1528           }
1529           s/.*/./; q'`
1530   srcdir=$ac_confdir
1531   if test ! -r "$srcdir/$ac_unique_file"; then
1532     srcdir=..
1533   fi
1534 else
1535   ac_srcdir_defaulted=no
1536 fi
1537 if test ! -r "$srcdir/$ac_unique_file"; then
1538   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1539   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1540 fi
1541 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1542 ac_abs_confdir=`(
1543         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1544         pwd)`
1545 # When building in place, set srcdir=.
1546 if test "$ac_abs_confdir" = "$ac_pwd"; then
1547   srcdir=.
1548 fi
1549 # Remove unnecessary trailing slashes from srcdir.
1550 # Double slashes in file names in object file debugging info
1551 # mess up M-x gdb in Emacs.
1552 case $srcdir in
1553 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1554 esac
1555 for ac_var in $ac_precious_vars; do
1556   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1557   eval ac_env_${ac_var}_value=\$${ac_var}
1558   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1559   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1560 done
1561
1562 #
1563 # Report the --help message.
1564 #
1565 if test "$ac_init_help" = "long"; then
1566   # Omit some internal or obsolete options to make the list less imposing.
1567   # This message is too long to be a string in the A/UX 3.1 sh.
1568   cat <<_ACEOF
1569 \`configure' configures bacula 7.4.1 to adapt to many kinds of systems.
1570
1571 Usage: $0 [OPTION]... [VAR=VALUE]...
1572
1573 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1574 VAR=VALUE.  See below for descriptions of some of the useful variables.
1575
1576 Defaults for the options are specified in brackets.
1577
1578 Configuration:
1579   -h, --help              display this help and exit
1580       --help=short        display options specific to this package
1581       --help=recursive    display the short help of all the included packages
1582   -V, --version           display version information and exit
1583   -q, --quiet, --silent   do not print \`checking ...' messages
1584       --cache-file=FILE   cache test results in FILE [disabled]
1585   -C, --config-cache      alias for \`--cache-file=config.cache'
1586   -n, --no-create         do not create output files
1587       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1588
1589 Installation directories:
1590   --prefix=PREFIX         install architecture-independent files in PREFIX
1591                           [$ac_default_prefix]
1592   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1593                           [PREFIX]
1594
1595 By default, \`make install' will install all the files in
1596 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1597 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1598 for instance \`--prefix=\$HOME'.
1599
1600 For better control, use the options below.
1601
1602 Fine tuning of the installation directories:
1603   --bindir=DIR            user executables [EPREFIX/bin]
1604   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1605   --libexecdir=DIR        program executables [EPREFIX/libexec]
1606   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1607   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1608   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1609   --libdir=DIR            object code libraries [EPREFIX/lib]
1610   --includedir=DIR        C header files [PREFIX/include]
1611   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1612   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1613   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1614   --infodir=DIR           info documentation [DATAROOTDIR/info]
1615   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1616   --mandir=DIR            man documentation [DATAROOTDIR/man]
1617   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1618   --htmldir=DIR           html documentation [DOCDIR]
1619   --dvidir=DIR            dvi documentation [DOCDIR]
1620   --pdfdir=DIR            pdf documentation [DOCDIR]
1621   --psdir=DIR             ps documentation [DOCDIR]
1622 _ACEOF
1623
1624   cat <<\_ACEOF
1625
1626 X features:
1627   --x-includes=DIR    X include files are in DIR
1628   --x-libraries=DIR   X library files are in DIR
1629
1630 System types:
1631   --build=BUILD     configure for building on BUILD [guessed]
1632   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1633 _ACEOF
1634 fi
1635
1636 if test -n "$ac_init_help"; then
1637   case $ac_init_help in
1638      short | recursive ) echo "Configuration of bacula 7.4.1:";;
1639    esac
1640   cat <<\_ACEOF
1641
1642 Optional Features:
1643   --disable-option-checking  ignore unrecognized --enable/--with options
1644   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1645   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1646   --enable-libtool        enable building using GNU libtool [default=yes]
1647   --enable-shared[=PKGS]  build shared libraries [default=yes]
1648   --enable-static[=PKGS]  build static libraries [default=no]
1649   --enable-fast-install[=PKGS]
1650                           optimize for fast installation [default=yes]
1651   --disable-libtool-lock  avoid locking (might break parallel builds)
1652   --enable-includes       enable installing of include files [default=no]
1653   --disable-nls           do not use Native Language Support
1654   --disable-rpath         do not hardcode runtime library paths
1655   --enable-bat            enable build of bat Qt4 GUI [default=no]
1656   --enable-smartalloc     enable smartalloc debugging support [default=no]
1657   --enable-lockmgr        enable lock manager support [default=no]
1658   --enable-static-tools   enable static tape tools [default=no]
1659   --enable-static-fd      enable static File daemon [default=no]
1660   --enable-static-sd      enable static Storage daemon [default=no]
1661   --enable-static-dir     enable static Director [default=no]
1662   --enable-static-cons    enable static Console [default=no]
1663   --enable-client-only    build client (File daemon) only [default=no]
1664   --enable-build-dird     enable building of dird (Director) [default=yes]
1665   --enable-build-stored   enable building of stored (Storage daemon)
1666                           [default=yes]
1667   --disable-conio         disable conio support [default=no]
1668   --enable-ipv6           enable ipv6 support [default=yes]
1669   --disable-readline      disable readline support [default=yes]
1670   --enable-batch-insert   enable the DB batch insert code [default=yes]
1671   --disable-largefile     omit support for large files
1672   --disable-afs           disable afs support [default=auto]
1673   --disable-lzo           disable lzo support [default=yes]
1674   --disable-acl           disable acl support [default=auto]
1675   --disable-xattr         disable xattr support [default=auto]
1676
1677 Optional Packages:
1678   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1679   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1680   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1681                           both]
1682   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1683   --with-sysroot=DIR Search for dependent libraries within DIR
1684                         (or the compiler's sysroot if not specified).
1685   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1686   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1687   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1688   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1689   --without-libintl-prefix     don't search for libintl in includedir and libdir
1690   --with-included-gettext use the GNU gettext library included here
1691   --with-readline[=DIR]   specify readline library directory
1692   --with-tcp-wrappers[=DIR]
1693                           enable tcpwrappers support
1694   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1695   --with-working-dir=PATH specify path of Bacula working directory
1696   --with-archivedir=PATH  specify path of SD archive directory
1697   --with-basename=RESNAME specify base resource name for daemons
1698   --with-hostname=RESNAME specify host name for daemons
1699   --with-scriptdir=PATH   specify path of Bacula scripts directory
1700   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1701   --with-logdir=PATH      specify path of Bacula logs directory
1702   --with-plugindir=PATH   specify path of Bacula plugins directory
1703   --with-dump-email=EMAIL dump email address
1704   --with-job-email=EMAIL  job output email address
1705   --with-smtp-host=HOST   SMTP mail host address
1706   --with-pid-dir=PATH     specify location of Bacula pid files
1707   --with-subsys-dir=PATH  specify location of Bacula subsys file
1708   --with-baseport=PORT    specify base port address for daemons
1709   --with-dir-password=PASSWORD
1710                           specify Director's password
1711   --with-fd-password=PASSWORD
1712                           specify Client's password
1713   --with-sd-password=PASSWORD
1714                           specify Storage daemon's password
1715   --with-mon-dir-password=PASSWORD
1716                           specify Director's password used by the monitor
1717   --with-mon-fd-password=PASSWORD
1718                           specify Client's password used by the monitor
1719   --with-mon-sd-password=PASSWORD
1720                           specify Storage daemon's password used by the
1721                           monitor
1722   --with-db-name=DBNAME   specify database name [default=bacula]
1723   --with-db-user=UNAME    specify database user [default=bacula]
1724   --with-db-password=PWD  specify database password [default=*none*]
1725   --with-db-port=DBPORT   specify a database port [default=null]
1726   --with-db-ssl-options=DBSSLOPTIONS
1727                           specify SSL options for database user connection
1728                           [default=null]
1729   --with-dir-user=USER    specify user for Director daemon
1730   --with-dir-group=GROUP  specify group for Director daemon
1731   --with-sd-user=USER     specify user for Storage daemon
1732   --with-sd-group=GROUP   specify group for Storage daemon
1733   --with-fd-user=USER     specify user for File daemon
1734   --with-fd-group=GROUP   specify group for File daemon
1735   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1736   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1737                           base install directory, [default=/usr/local/pgsql]
1738   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1739                           directory, default is to search through a number of
1740                           common places for the MySQL files.
1741   --with-embedded-mysql[=DIR]
1742                           Include MySQL support. DIR is the MySQL base install
1743                           directory, default is to search through a number of
1744                           common places for the MySQL files.
1745   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1746                           install directory, default is to search through a
1747                           number of common places for the SQLite3 files.
1748   --with-x                use the X Window System
1749   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1750   --with-lzo[=DIR]        specify lzo library directory
1751   --with-systemd[=UNITDIR]
1752                           Include systemd support. UNITDIR is where systemd
1753                           system .service files are located, default is to ask
1754                           systemctl.
1755
1756 Some influential environment variables:
1757   CC          C compiler command
1758   CFLAGS      C compiler flags
1759   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1760               nonstandard directory <lib dir>
1761   LIBS        libraries to pass to the linker, e.g. -l<library>
1762   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1763               you have headers in a nonstandard directory <include dir>
1764   CXX         C++ compiler command
1765   CXXFLAGS    C++ compiler flags
1766   CPP         C preprocessor
1767   CXXCPP      C++ preprocessor
1768   XMKMF       Path to xmkmf, Makefile generator for X Window System
1769
1770 Use these variables to override the choices made by `configure' or to help
1771 it to find libraries and programs with nonstandard names/locations.
1772
1773 Report bugs to the package provider.
1774 _ACEOF
1775 ac_status=$?
1776 fi
1777
1778 if test "$ac_init_help" = "recursive"; then
1779   # If there are subdirs, report their specific --help.
1780   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1781     test -d "$ac_dir" ||
1782       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1783       continue
1784     ac_builddir=.
1785
1786 case "$ac_dir" in
1787 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1788 *)
1789   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1790   # A ".." for each directory in $ac_dir_suffix.
1791   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1792   case $ac_top_builddir_sub in
1793   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1794   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1795   esac ;;
1796 esac
1797 ac_abs_top_builddir=$ac_pwd
1798 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1799 # for backward compatibility:
1800 ac_top_builddir=$ac_top_build_prefix
1801
1802 case $srcdir in
1803   .)  # We are building in place.
1804     ac_srcdir=.
1805     ac_top_srcdir=$ac_top_builddir_sub
1806     ac_abs_top_srcdir=$ac_pwd ;;
1807   [\\/]* | ?:[\\/]* )  # Absolute name.
1808     ac_srcdir=$srcdir$ac_dir_suffix;
1809     ac_top_srcdir=$srcdir
1810     ac_abs_top_srcdir=$srcdir ;;
1811   *) # Relative name.
1812     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1813     ac_top_srcdir=$ac_top_build_prefix$srcdir
1814     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1815 esac
1816 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1817
1818     cd "$ac_dir" || { ac_status=$?; continue; }
1819     # Check for guested configure.
1820     if test -f "$ac_srcdir/configure.gnu"; then
1821       echo &&
1822       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1823     elif test -f "$ac_srcdir/configure"; then
1824       echo &&
1825       $SHELL "$ac_srcdir/configure" --help=recursive
1826     else
1827       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1828     fi || ac_status=$?
1829     cd "$ac_pwd" || { ac_status=$?; break; }
1830   done
1831 fi
1832
1833 test -n "$ac_init_help" && exit $ac_status
1834 if $ac_init_version; then
1835   cat <<\_ACEOF
1836 bacula configure 7.4.1
1837 generated by GNU Autoconf 2.69
1838
1839 Copyright (C) 2012 Free Software Foundation, Inc.
1840 This configure script is free software; the Free Software Foundation
1841 gives unlimited permission to copy, distribute and modify it.
1842 _ACEOF
1843   exit
1844 fi
1845
1846 ## ------------------------ ##
1847 ## Autoconf initialization. ##
1848 ## ------------------------ ##
1849
1850 # ac_fn_c_try_compile LINENO
1851 # --------------------------
1852 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_c_try_compile ()
1854 {
1855   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856   rm -f conftest.$ac_objext
1857   if { { ac_try="$ac_compile"
1858 case "(($ac_try" in
1859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860   *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864   (eval "$ac_compile") 2>conftest.err
1865   ac_status=$?
1866   if test -s conftest.err; then
1867     grep -v '^ *+' conftest.err >conftest.er1
1868     cat conftest.er1 >&5
1869     mv -f conftest.er1 conftest.err
1870   fi
1871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872   test $ac_status = 0; } && {
1873          test -z "$ac_c_werror_flag" ||
1874          test ! -s conftest.err
1875        } && test -s conftest.$ac_objext; then :
1876   ac_retval=0
1877 else
1878   $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1880
1881         ac_retval=1
1882 fi
1883   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884   as_fn_set_status $ac_retval
1885
1886 } # ac_fn_c_try_compile
1887
1888 # ac_fn_cxx_try_compile LINENO
1889 # ----------------------------
1890 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1891 ac_fn_cxx_try_compile ()
1892 {
1893   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894   rm -f conftest.$ac_objext
1895   if { { ac_try="$ac_compile"
1896 case "(($ac_try" in
1897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898   *) ac_try_echo=$ac_try;;
1899 esac
1900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 $as_echo "$ac_try_echo"; } >&5
1902   (eval "$ac_compile") 2>conftest.err
1903   ac_status=$?
1904   if test -s conftest.err; then
1905     grep -v '^ *+' conftest.err >conftest.er1
1906     cat conftest.er1 >&5
1907     mv -f conftest.er1 conftest.err
1908   fi
1909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910   test $ac_status = 0; } && {
1911          test -z "$ac_cxx_werror_flag" ||
1912          test ! -s conftest.err
1913        } && test -s conftest.$ac_objext; then :
1914   ac_retval=0
1915 else
1916   $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1918
1919         ac_retval=1
1920 fi
1921   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922   as_fn_set_status $ac_retval
1923
1924 } # ac_fn_cxx_try_compile
1925
1926 # ac_fn_c_try_cpp LINENO
1927 # ----------------------
1928 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1929 ac_fn_c_try_cpp ()
1930 {
1931   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932   if { { ac_try="$ac_cpp conftest.$ac_ext"
1933 case "(($ac_try" in
1934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935   *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1940   ac_status=$?
1941   if test -s conftest.err; then
1942     grep -v '^ *+' conftest.err >conftest.er1
1943     cat conftest.er1 >&5
1944     mv -f conftest.er1 conftest.err
1945   fi
1946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947   test $ac_status = 0; } > conftest.i && {
1948          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1949          test ! -s conftest.err
1950        }; then :
1951   ac_retval=0
1952 else
1953   $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1955
1956     ac_retval=1
1957 fi
1958   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959   as_fn_set_status $ac_retval
1960
1961 } # ac_fn_c_try_cpp
1962
1963 # ac_fn_c_try_link LINENO
1964 # -----------------------
1965 # Try to link conftest.$ac_ext, and return whether this succeeded.
1966 ac_fn_c_try_link ()
1967 {
1968   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969   rm -f conftest.$ac_objext conftest$ac_exeext
1970   if { { ac_try="$ac_link"
1971 case "(($ac_try" in
1972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973   *) ac_try_echo=$ac_try;;
1974 esac
1975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1976 $as_echo "$ac_try_echo"; } >&5
1977   (eval "$ac_link") 2>conftest.err
1978   ac_status=$?
1979   if test -s conftest.err; then
1980     grep -v '^ *+' conftest.err >conftest.er1
1981     cat conftest.er1 >&5
1982     mv -f conftest.er1 conftest.err
1983   fi
1984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985   test $ac_status = 0; } && {
1986          test -z "$ac_c_werror_flag" ||
1987          test ! -s conftest.err
1988        } && test -s conftest$ac_exeext && {
1989          test "$cross_compiling" = yes ||
1990          test -x conftest$ac_exeext
1991        }; then :
1992   ac_retval=0
1993 else
1994   $as_echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1996
1997         ac_retval=1
1998 fi
1999   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2000   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2001   # interfere with the next link command; also delete a directory that is
2002   # left behind by Apple's compiler.  We do this before executing the actions.
2003   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2004   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005   as_fn_set_status $ac_retval
2006
2007 } # ac_fn_c_try_link
2008
2009 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2010 # -------------------------------------------------------
2011 # Tests whether HEADER exists and can be compiled using the include files in
2012 # INCLUDES, setting the cache variable VAR accordingly.
2013 ac_fn_c_check_header_compile ()
2014 {
2015   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019   $as_echo_n "(cached) " >&6
2020 else
2021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h.  */
2023 $4
2024 #include <$2>
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027   eval "$3=yes"
2028 else
2029   eval "$3=no"
2030 fi
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 fi
2033 eval ac_res=\$$3
2034                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2036   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037
2038 } # ac_fn_c_check_header_compile
2039
2040 # ac_fn_c_try_run LINENO
2041 # ----------------------
2042 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2043 # that executables *can* be run.
2044 ac_fn_c_try_run ()
2045 {
2046   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047   if { { ac_try="$ac_link"
2048 case "(($ac_try" in
2049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050   *) ac_try_echo=$ac_try;;
2051 esac
2052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053 $as_echo "$ac_try_echo"; } >&5
2054   (eval "$ac_link") 2>&5
2055   ac_status=$?
2056   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2057   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2058   { { case "(($ac_try" in
2059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060   *) ac_try_echo=$ac_try;;
2061 esac
2062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064   (eval "$ac_try") 2>&5
2065   ac_status=$?
2066   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067   test $ac_status = 0; }; }; then :
2068   ac_retval=0
2069 else
2070   $as_echo "$as_me: program exited with status $ac_status" >&5
2071        $as_echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2073
2074        ac_retval=$ac_status
2075 fi
2076   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2077   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078   as_fn_set_status $ac_retval
2079
2080 } # ac_fn_c_try_run
2081
2082 # ac_fn_c_check_func LINENO FUNC VAR
2083 # ----------------------------------
2084 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2085 ac_fn_c_check_func ()
2086 {
2087   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089 $as_echo_n "checking for $2... " >&6; }
2090 if eval \${$3+:} false; then :
2091   $as_echo_n "(cached) " >&6
2092 else
2093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h.  */
2095 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2097 #define $2 innocuous_$2
2098
2099 /* System header to define __stub macros and hopefully few prototypes,
2100     which can conflict with char $2 (); below.
2101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2102     <limits.h> exists even on freestanding compilers.  */
2103
2104 #ifdef __STDC__
2105 # include <limits.h>
2106 #else
2107 # include <assert.h>
2108 #endif
2109
2110 #undef $2
2111
2112 /* Override any GCC internal prototype to avoid an error.
2113    Use char because int might match the return type of a GCC
2114    builtin and then its argument prototype would still apply.  */
2115 #ifdef __cplusplus
2116 extern "C"
2117 #endif
2118 char $2 ();
2119 /* The GNU C library defines this for functions which it implements
2120     to always fail with ENOSYS.  Some functions are actually named
2121     something starting with __ and the normal name is an alias.  */
2122 #if defined __stub_$2 || defined __stub___$2
2123 choke me
2124 #endif
2125
2126 int
2127 main ()
2128 {
2129 return $2 ();
2130   ;
2131   return 0;
2132 }
2133 _ACEOF
2134 if ac_fn_c_try_link "$LINENO"; then :
2135   eval "$3=yes"
2136 else
2137   eval "$3=no"
2138 fi
2139 rm -f core conftest.err conftest.$ac_objext \
2140     conftest$ac_exeext conftest.$ac_ext
2141 fi
2142 eval ac_res=\$$3
2143                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2144 $as_echo "$ac_res" >&6; }
2145   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2146
2147 } # ac_fn_c_check_func
2148
2149 # ac_fn_cxx_try_cpp LINENO
2150 # ------------------------
2151 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2152 ac_fn_cxx_try_cpp ()
2153 {
2154   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155   if { { ac_try="$ac_cpp conftest.$ac_ext"
2156 case "(($ac_try" in
2157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2158   *) ac_try_echo=$ac_try;;
2159 esac
2160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2161 $as_echo "$ac_try_echo"; } >&5
2162   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2163   ac_status=$?
2164   if test -s conftest.err; then
2165     grep -v '^ *+' conftest.err >conftest.er1
2166     cat conftest.er1 >&5
2167     mv -f conftest.er1 conftest.err
2168   fi
2169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170   test $ac_status = 0; } > conftest.i && {
2171          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2172          test ! -s conftest.err
2173        }; then :
2174   ac_retval=0
2175 else
2176   $as_echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2178
2179     ac_retval=1
2180 fi
2181   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182   as_fn_set_status $ac_retval
2183
2184 } # ac_fn_cxx_try_cpp
2185
2186 # ac_fn_cxx_try_link LINENO
2187 # -------------------------
2188 # Try to link conftest.$ac_ext, and return whether this succeeded.
2189 ac_fn_cxx_try_link ()
2190 {
2191   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192   rm -f conftest.$ac_objext conftest$ac_exeext
2193   if { { ac_try="$ac_link"
2194 case "(($ac_try" in
2195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2196   *) ac_try_echo=$ac_try;;
2197 esac
2198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2199 $as_echo "$ac_try_echo"; } >&5
2200   (eval "$ac_link") 2>conftest.err
2201   ac_status=$?
2202   if test -s conftest.err; then
2203     grep -v '^ *+' conftest.err >conftest.er1
2204     cat conftest.er1 >&5
2205     mv -f conftest.er1 conftest.err
2206   fi
2207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208   test $ac_status = 0; } && {
2209          test -z "$ac_cxx_werror_flag" ||
2210          test ! -s conftest.err
2211        } && test -s conftest$ac_exeext && {
2212          test "$cross_compiling" = yes ||
2213          test -x conftest$ac_exeext
2214        }; then :
2215   ac_retval=0
2216 else
2217   $as_echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2219
2220         ac_retval=1
2221 fi
2222   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2223   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2224   # interfere with the next link command; also delete a directory that is
2225   # left behind by Apple's compiler.  We do this before executing the actions.
2226   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2227   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228   as_fn_set_status $ac_retval
2229
2230 } # ac_fn_cxx_try_link
2231
2232 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2233 # ---------------------------------------------
2234 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2235 # accordingly.
2236 ac_fn_c_check_decl ()
2237 {
2238   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239   as_decl_name=`echo $2|sed 's/ *(.*//'`
2240   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2242 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2243 if eval \${$3+:} false; then :
2244   $as_echo_n "(cached) " >&6
2245 else
2246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h.  */
2248 $4
2249 int
2250 main ()
2251 {
2252 #ifndef $as_decl_name
2253 #ifdef __cplusplus
2254   (void) $as_decl_use;
2255 #else
2256   (void) $as_decl_name;
2257 #endif
2258 #endif
2259
2260   ;
2261   return 0;
2262 }
2263 _ACEOF
2264 if ac_fn_c_try_compile "$LINENO"; then :
2265   eval "$3=yes"
2266 else
2267   eval "$3=no"
2268 fi
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 fi
2271 eval ac_res=\$$3
2272                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2275
2276 } # ac_fn_c_check_decl
2277
2278 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2279 # -------------------------------------------
2280 # Tests whether TYPE exists after having included INCLUDES, setting cache
2281 # variable VAR accordingly.
2282 ac_fn_c_check_type ()
2283 {
2284   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2286 $as_echo_n "checking for $2... " >&6; }
2287 if eval \${$3+:} false; then :
2288   $as_echo_n "(cached) " >&6
2289 else
2290   eval "$3=no"
2291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h.  */
2293 $4
2294 int
2295 main ()
2296 {
2297 if (sizeof ($2))
2298          return 0;
2299   ;
2300   return 0;
2301 }
2302 _ACEOF
2303 if ac_fn_c_try_compile "$LINENO"; then :
2304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h.  */
2306 $4
2307 int
2308 main ()
2309 {
2310 if (sizeof (($2)))
2311             return 0;
2312   ;
2313   return 0;
2314 }
2315 _ACEOF
2316 if ac_fn_c_try_compile "$LINENO"; then :
2317
2318 else
2319   eval "$3=yes"
2320 fi
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 fi
2323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324 fi
2325 eval ac_res=\$$3
2326                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2327 $as_echo "$ac_res" >&6; }
2328   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2329
2330 } # ac_fn_c_check_type
2331
2332 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2333 # -------------------------------------------------------
2334 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2335 # the include files in INCLUDES and setting the cache variable VAR
2336 # accordingly.
2337 ac_fn_c_check_header_mongrel ()
2338 {
2339   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340   if eval \${$3+:} false; then :
2341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if eval \${$3+:} false; then :
2344   $as_echo_n "(cached) " >&6
2345 fi
2346 eval ac_res=\$$3
2347                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2348 $as_echo "$ac_res" >&6; }
2349 else
2350   # Is the header compilable?
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2352 $as_echo_n "checking $2 usability... " >&6; }
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h.  */
2355 $4
2356 #include <$2>
2357 _ACEOF
2358 if ac_fn_c_try_compile "$LINENO"; then :
2359   ac_header_compiler=yes
2360 else
2361   ac_header_compiler=no
2362 fi
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2365 $as_echo "$ac_header_compiler" >&6; }
2366
2367 # Is the header present?
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2369 $as_echo_n "checking $2 presence... " >&6; }
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h.  */
2372 #include <$2>
2373 _ACEOF
2374 if ac_fn_c_try_cpp "$LINENO"; then :
2375   ac_header_preproc=yes
2376 else
2377   ac_header_preproc=no
2378 fi
2379 rm -f conftest.err conftest.i conftest.$ac_ext
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2381 $as_echo "$ac_header_preproc" >&6; }
2382
2383 # So?  What about this header?
2384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2385   yes:no: )
2386     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2387 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2388     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2389 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2390     ;;
2391   no:yes:* )
2392     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2393 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2394     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2395 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2396     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2397 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2398     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2399 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2400     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2401 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2402     ;;
2403 esac
2404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2405 $as_echo_n "checking for $2... " >&6; }
2406 if eval \${$3+:} false; then :
2407   $as_echo_n "(cached) " >&6
2408 else
2409   eval "$3=\$ac_header_compiler"
2410 fi
2411 eval ac_res=\$$3
2412                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2413 $as_echo "$ac_res" >&6; }
2414 fi
2415   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2416
2417 } # ac_fn_c_check_header_mongrel
2418
2419 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2420 # --------------------------------------------
2421 # Tries to find the compile-time value of EXPR in a program that includes
2422 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2423 # computed
2424 ac_fn_c_compute_int ()
2425 {
2426   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2427   if test "$cross_compiling" = yes; then
2428     # Depending upon the size, compute the lo and hi bounds.
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h.  */
2431 $4
2432 int
2433 main ()
2434 {
2435 static int test_array [1 - 2 * !(($2) >= 0)];
2436 test_array [0] = 0;
2437 return test_array [0];
2438
2439   ;
2440   return 0;
2441 }
2442 _ACEOF
2443 if ac_fn_c_try_compile "$LINENO"; then :
2444   ac_lo=0 ac_mid=0
2445   while :; do
2446     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2447 /* end confdefs.h.  */
2448 $4
2449 int
2450 main ()
2451 {
2452 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2453 test_array [0] = 0;
2454 return test_array [0];
2455
2456   ;
2457   return 0;
2458 }
2459 _ACEOF
2460 if ac_fn_c_try_compile "$LINENO"; then :
2461   ac_hi=$ac_mid; break
2462 else
2463   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2464                         if test $ac_lo -le $ac_mid; then
2465                           ac_lo= ac_hi=
2466                           break
2467                         fi
2468                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2469 fi
2470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2471   done
2472 else
2473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474 /* end confdefs.h.  */
2475 $4
2476 int
2477 main ()
2478 {
2479 static int test_array [1 - 2 * !(($2) < 0)];
2480 test_array [0] = 0;
2481 return test_array [0];
2482
2483   ;
2484   return 0;
2485 }
2486 _ACEOF
2487 if ac_fn_c_try_compile "$LINENO"; then :
2488   ac_hi=-1 ac_mid=-1
2489   while :; do
2490     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2491 /* end confdefs.h.  */
2492 $4
2493 int
2494 main ()
2495 {
2496 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2497 test_array [0] = 0;
2498 return test_array [0];
2499
2500   ;
2501   return 0;
2502 }
2503 _ACEOF
2504 if ac_fn_c_try_compile "$LINENO"; then :
2505   ac_lo=$ac_mid; break
2506 else
2507   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2508                         if test $ac_mid -le $ac_hi; then
2509                           ac_lo= ac_hi=
2510                           break
2511                         fi
2512                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2513 fi
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515   done
2516 else
2517   ac_lo= ac_hi=
2518 fi
2519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2520 fi
2521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2522 # Binary search between lo and hi bounds.
2523 while test "x$ac_lo" != "x$ac_hi"; do
2524   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h.  */
2527 $4
2528 int
2529 main ()
2530 {
2531 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2532 test_array [0] = 0;
2533 return test_array [0];
2534
2535   ;
2536   return 0;
2537 }
2538 _ACEOF
2539 if ac_fn_c_try_compile "$LINENO"; then :
2540   ac_hi=$ac_mid
2541 else
2542   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2543 fi
2544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2545 done
2546 case $ac_lo in #((
2547 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2548 '') ac_retval=1 ;;
2549 esac
2550   else
2551     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h.  */
2553 $4
2554 static long int longval () { return $2; }
2555 static unsigned long int ulongval () { return $2; }
2556 #include <stdio.h>
2557 #include <stdlib.h>
2558 int
2559 main ()
2560 {
2561
2562   FILE *f = fopen ("conftest.val", "w");
2563   if (! f)
2564     return 1;
2565   if (($2) < 0)
2566     {
2567       long int i = longval ();
2568       if (i != ($2))
2569         return 1;
2570       fprintf (f, "%ld", i);
2571     }
2572   else
2573     {
2574       unsigned long int i = ulongval ();
2575       if (i != ($2))
2576         return 1;
2577       fprintf (f, "%lu", i);
2578     }
2579   /* Do not output a trailing newline, as this causes \r\n confusion
2580      on some platforms.  */
2581   return ferror (f) || fclose (f) != 0;
2582
2583   ;
2584   return 0;
2585 }
2586 _ACEOF
2587 if ac_fn_c_try_run "$LINENO"; then :
2588   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2589 else
2590   ac_retval=1
2591 fi
2592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2593   conftest.$ac_objext conftest.beam conftest.$ac_ext
2594 rm -f conftest.val
2595
2596   fi
2597   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2598   as_fn_set_status $ac_retval
2599
2600 } # ac_fn_c_compute_int
2601
2602 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2603 # ----------------------------------------------------
2604 # Tries to find if the field MEMBER exists in type AGGR, after including
2605 # INCLUDES, setting cache variable VAR accordingly.
2606 ac_fn_c_check_member ()
2607 {
2608   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2610 $as_echo_n "checking for $2.$3... " >&6; }
2611 if eval \${$4+:} false; then :
2612   $as_echo_n "(cached) " >&6
2613 else
2614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2615 /* end confdefs.h.  */
2616 $5
2617 int
2618 main ()
2619 {
2620 static $2 ac_aggr;
2621 if (ac_aggr.$3)
2622 return 0;
2623   ;
2624   return 0;
2625 }
2626 _ACEOF
2627 if ac_fn_c_try_compile "$LINENO"; then :
2628   eval "$4=yes"
2629 else
2630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2631 /* end confdefs.h.  */
2632 $5
2633 int
2634 main ()
2635 {
2636 static $2 ac_aggr;
2637 if (sizeof ac_aggr.$3)
2638 return 0;
2639   ;
2640   return 0;
2641 }
2642 _ACEOF
2643 if ac_fn_c_try_compile "$LINENO"; then :
2644   eval "$4=yes"
2645 else
2646   eval "$4=no"
2647 fi
2648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649 fi
2650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2651 fi
2652 eval ac_res=\$$4
2653                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2654 $as_echo "$ac_res" >&6; }
2655   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2656
2657 } # ac_fn_c_check_member
2658
2659 # ac_fn_cxx_try_run LINENO
2660 # ------------------------
2661 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2662 # that executables *can* be run.
2663 ac_fn_cxx_try_run ()
2664 {
2665   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2666   if { { ac_try="$ac_link"
2667 case "(($ac_try" in
2668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669   *) ac_try_echo=$ac_try;;
2670 esac
2671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2672 $as_echo "$ac_try_echo"; } >&5
2673   (eval "$ac_link") 2>&5
2674   ac_status=$?
2675   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2676   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2677   { { case "(($ac_try" in
2678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679   *) ac_try_echo=$ac_try;;
2680 esac
2681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2682 $as_echo "$ac_try_echo"; } >&5
2683   (eval "$ac_try") 2>&5
2684   ac_status=$?
2685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2686   test $ac_status = 0; }; }; then :
2687   ac_retval=0
2688 else
2689   $as_echo "$as_me: program exited with status $ac_status" >&5
2690        $as_echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2692
2693        ac_retval=$ac_status
2694 fi
2695   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2696   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2697   as_fn_set_status $ac_retval
2698
2699 } # ac_fn_cxx_try_run
2700
2701 # ac_fn_cxx_check_func LINENO FUNC VAR
2702 # ------------------------------------
2703 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2704 ac_fn_cxx_check_func ()
2705 {
2706   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2708 $as_echo_n "checking for $2... " >&6; }
2709 if eval \${$3+:} false; then :
2710   $as_echo_n "(cached) " >&6
2711 else
2712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2713 /* end confdefs.h.  */
2714 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2716 #define $2 innocuous_$2
2717
2718 /* System header to define __stub macros and hopefully few prototypes,
2719     which can conflict with char $2 (); below.
2720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2721     <limits.h> exists even on freestanding compilers.  */
2722
2723 #ifdef __STDC__
2724 # include <limits.h>
2725 #else
2726 # include <assert.h>
2727 #endif
2728
2729 #undef $2
2730
2731 /* Override any GCC internal prototype to avoid an error.
2732    Use char because int might match the return type of a GCC
2733    builtin and then its argument prototype would still apply.  */
2734 #ifdef __cplusplus
2735 extern "C"
2736 #endif
2737 char $2 ();
2738 /* The GNU C library defines this for functions which it implements
2739     to always fail with ENOSYS.  Some functions are actually named
2740     something starting with __ and the normal name is an alias.  */
2741 #if defined __stub_$2 || defined __stub___$2
2742 choke me
2743 #endif
2744
2745 int
2746 main ()
2747 {
2748 return $2 ();
2749   ;
2750   return 0;
2751 }
2752 _ACEOF
2753 if ac_fn_cxx_try_link "$LINENO"; then :
2754   eval "$3=yes"
2755 else
2756   eval "$3=no"
2757 fi
2758 rm -f core conftest.err conftest.$ac_objext \
2759     conftest$ac_exeext conftest.$ac_ext
2760 fi
2761 eval ac_res=\$$3
2762                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2763 $as_echo "$ac_res" >&6; }
2764   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2765
2766 } # ac_fn_cxx_check_func
2767 cat >config.log <<_ACEOF
2768 This file contains any messages produced by compilers while
2769 running configure, to aid debugging if configure makes a mistake.
2770
2771 It was created by bacula $as_me 7.4.1, which was
2772 generated by GNU Autoconf 2.69.  Invocation command line was
2773
2774   $ $0 $@
2775
2776 _ACEOF
2777 exec 5>>config.log
2778 {
2779 cat <<_ASUNAME
2780 ## --------- ##
2781 ## Platform. ##
2782 ## --------- ##
2783
2784 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2785 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2786 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2787 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2788 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2789
2790 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2791 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2792
2793 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2794 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2795 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2796 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2797 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2798 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2799 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2800
2801 _ASUNAME
2802
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 for as_dir in $PATH
2805 do
2806   IFS=$as_save_IFS
2807   test -z "$as_dir" && as_dir=.
2808     $as_echo "PATH: $as_dir"
2809   done
2810 IFS=$as_save_IFS
2811
2812 } >&5
2813
2814 cat >&5 <<_ACEOF
2815
2816
2817 ## ----------- ##
2818 ## Core tests. ##
2819 ## ----------- ##
2820
2821 _ACEOF
2822
2823
2824 # Keep a trace of the command line.
2825 # Strip out --no-create and --no-recursion so they do not pile up.
2826 # Strip out --silent because we don't want to record it for future runs.
2827 # Also quote any args containing shell meta-characters.
2828 # Make two passes to allow for proper duplicate-argument suppression.
2829 ac_configure_args=
2830 ac_configure_args0=
2831 ac_configure_args1=
2832 ac_must_keep_next=false
2833 for ac_pass in 1 2
2834 do
2835   for ac_arg
2836   do
2837     case $ac_arg in
2838     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2839     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2840     | -silent | --silent | --silen | --sile | --sil)
2841       continue ;;
2842     *\'*)
2843       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2844     esac
2845     case $ac_pass in
2846     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2847     2)
2848       as_fn_append ac_configure_args1 " '$ac_arg'"
2849       if test $ac_must_keep_next = true; then
2850         ac_must_keep_next=false # Got value, back to normal.
2851       else
2852         case $ac_arg in
2853           *=* | --config-cache | -C | -disable-* | --disable-* \
2854           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2855           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2856           | -with-* | --with-* | -without-* | --without-* | --x)
2857             case "$ac_configure_args0 " in
2858               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2859             esac
2860             ;;
2861           -* ) ac_must_keep_next=true ;;
2862         esac
2863       fi
2864       as_fn_append ac_configure_args " '$ac_arg'"
2865       ;;
2866     esac
2867   done
2868 done
2869 { ac_configure_args0=; unset ac_configure_args0;}
2870 { ac_configure_args1=; unset ac_configure_args1;}
2871
2872 # When interrupted or exit'd, cleanup temporary files, and complete
2873 # config.log.  We remove comments because anyway the quotes in there
2874 # would cause problems or look ugly.
2875 # WARNING: Use '\'' to represent an apostrophe within the trap.
2876 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2877 trap 'exit_status=$?
2878   # Save into config.log some information that might help in debugging.
2879   {
2880     echo
2881
2882     $as_echo "## ---------------- ##
2883 ## Cache variables. ##
2884 ## ---------------- ##"
2885     echo
2886     # The following way of writing the cache mishandles newlines in values,
2887 (
2888   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2889     eval ac_val=\$$ac_var
2890     case $ac_val in #(
2891     *${as_nl}*)
2892       case $ac_var in #(
2893       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2894 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2895       esac
2896       case $ac_var in #(
2897       _ | IFS | as_nl) ;; #(
2898       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2899       *) { eval $ac_var=; unset $ac_var;} ;;
2900       esac ;;
2901     esac
2902   done
2903   (set) 2>&1 |
2904     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2905     *${as_nl}ac_space=\ *)
2906       sed -n \
2907         "s/'\''/'\''\\\\'\'''\''/g;
2908           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2909       ;; #(
2910     *)
2911       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2912       ;;
2913     esac |
2914     sort
2915 )
2916     echo
2917
2918     $as_echo "## ----------------- ##
2919 ## Output variables. ##
2920 ## ----------------- ##"
2921     echo
2922     for ac_var in $ac_subst_vars
2923     do
2924       eval ac_val=\$$ac_var
2925       case $ac_val in
2926       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2927       esac
2928       $as_echo "$ac_var='\''$ac_val'\''"
2929     done | sort
2930     echo
2931
2932     if test -n "$ac_subst_files"; then
2933       $as_echo "## ------------------- ##
2934 ## File substitutions. ##
2935 ## ------------------- ##"
2936       echo
2937       for ac_var in $ac_subst_files
2938       do
2939         eval ac_val=\$$ac_var
2940         case $ac_val in
2941         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2942         esac
2943         $as_echo "$ac_var='\''$ac_val'\''"
2944       done | sort
2945       echo
2946     fi
2947
2948     if test -s confdefs.h; then
2949       $as_echo "## ----------- ##
2950 ## confdefs.h. ##
2951 ## ----------- ##"
2952       echo
2953       cat confdefs.h
2954       echo
2955     fi
2956     test "$ac_signal" != 0 &&
2957       $as_echo "$as_me: caught signal $ac_signal"
2958     $as_echo "$as_me: exit $exit_status"
2959   } >&5
2960   rm -f core *.core core.conftest.* &&
2961     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2962     exit $exit_status
2963 ' 0
2964 for ac_signal in 1 2 13 15; do
2965   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2966 done
2967 ac_signal=0
2968
2969 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2970 rm -f -r conftest* confdefs.h
2971
2972 $as_echo "/* confdefs.h */" > confdefs.h
2973
2974 # Predefined preprocessor variables.
2975
2976 cat >>confdefs.h <<_ACEOF
2977 #define PACKAGE_NAME "$PACKAGE_NAME"
2978 _ACEOF
2979
2980 cat >>confdefs.h <<_ACEOF
2981 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2982 _ACEOF
2983
2984 cat >>confdefs.h <<_ACEOF
2985 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2986 _ACEOF
2987
2988 cat >>confdefs.h <<_ACEOF
2989 #define PACKAGE_STRING "$PACKAGE_STRING"
2990 _ACEOF
2991
2992 cat >>confdefs.h <<_ACEOF
2993 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2994 _ACEOF
2995
2996 cat >>confdefs.h <<_ACEOF
2997 #define PACKAGE_URL "$PACKAGE_URL"
2998 _ACEOF
2999
3000
3001 # Let the site file select an alternate cache file if it wants to.
3002 # Prefer an explicitly selected file to automatically selected ones.
3003 ac_site_file1=NONE
3004 ac_site_file2=NONE
3005 if test -n "$CONFIG_SITE"; then
3006   # We do not want a PATH search for config.site.
3007   case $CONFIG_SITE in #((
3008     -*)  ac_site_file1=./$CONFIG_SITE;;
3009     */*) ac_site_file1=$CONFIG_SITE;;
3010     *)   ac_site_file1=./$CONFIG_SITE;;
3011   esac
3012 elif test "x$prefix" != xNONE; then
3013   ac_site_file1=$prefix/share/config.site
3014   ac_site_file2=$prefix/etc/config.site
3015 else
3016   ac_site_file1=$ac_default_prefix/share/config.site
3017   ac_site_file2=$ac_default_prefix/etc/config.site
3018 fi
3019 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3020 do
3021   test "x$ac_site_file" = xNONE && continue
3022   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3023     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3024 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3025     sed 's/^/| /' "$ac_site_file" >&5
3026     . "$ac_site_file" \
3027       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3029 as_fn_error $? "failed to load site script $ac_site_file
3030 See \`config.log' for more details" "$LINENO" 5; }
3031   fi
3032 done
3033
3034 if test -r "$cache_file"; then
3035   # Some versions of bash will fail to source /dev/null (special files
3036   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3037   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3038     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3039 $as_echo "$as_me: loading cache $cache_file" >&6;}
3040     case $cache_file in
3041       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3042       *)                      . "./$cache_file";;
3043     esac
3044   fi
3045 else
3046   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3047 $as_echo "$as_me: creating cache $cache_file" >&6;}
3048   >$cache_file
3049 fi
3050
3051 as_fn_append ac_header_list " stdlib.h"
3052 as_fn_append ac_header_list " unistd.h"
3053 as_fn_append ac_header_list " sys/param.h"
3054 # Check that the precious variables saved in the cache have kept the same
3055 # value.
3056 ac_cache_corrupted=false
3057 for ac_var in $ac_precious_vars; do
3058   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3059   eval ac_new_set=\$ac_env_${ac_var}_set
3060   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3061   eval ac_new_val=\$ac_env_${ac_var}_value
3062   case $ac_old_set,$ac_new_set in
3063     set,)
3064       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3065 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3066       ac_cache_corrupted=: ;;
3067     ,set)
3068       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3069 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3070       ac_cache_corrupted=: ;;
3071     ,);;
3072     *)
3073       if test "x$ac_old_val" != "x$ac_new_val"; then
3074         # differences in whitespace do not lead to failure.
3075         ac_old_val_w=`echo x $ac_old_val`
3076         ac_new_val_w=`echo x $ac_new_val`
3077         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3078           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3079 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3080           ac_cache_corrupted=:
3081         else
3082           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3083 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3084           eval $ac_var=\$ac_old_val
3085         fi
3086         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3087 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3088         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3089 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3090       fi;;
3091   esac
3092   # Pass precious variables to config.status.
3093   if test "$ac_new_set" = set; then
3094     case $ac_new_val in
3095     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3096     *) ac_arg=$ac_var=$ac_new_val ;;
3097     esac
3098     case " $ac_configure_args " in
3099       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3100       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3101     esac
3102   fi
3103 done
3104 if $ac_cache_corrupted; then
3105   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3107   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3108 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3109   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3110 fi
3111 ## -------------------- ##
3112 ## Main body of script. ##
3113 ## -------------------- ##
3114
3115 ac_ext=c
3116 ac_cpp='$CPP $CPPFLAGS'
3117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3120
3121
3122
3123
3124 BUILD_DIR=`pwd`
3125 cd ..
3126 TOP_DIR=`pwd`
3127 cd ${BUILD_DIR}
3128
3129
3130 ac_aux_dir=
3131 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3132   if test -f "$ac_dir/install-sh"; then
3133     ac_aux_dir=$ac_dir
3134     ac_install_sh="$ac_aux_dir/install-sh -c"
3135     break
3136   elif test -f "$ac_dir/install.sh"; then
3137     ac_aux_dir=$ac_dir
3138     ac_install_sh="$ac_aux_dir/install.sh -c"
3139     break
3140   elif test -f "$ac_dir/shtool"; then
3141     ac_aux_dir=$ac_dir
3142     ac_install_sh="$ac_aux_dir/shtool install -c"
3143     break
3144   fi
3145 done
3146 if test -z "$ac_aux_dir"; then
3147   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3148 fi
3149
3150 # These three variables are undocumented and unsupported,
3151 # and are intended to be withdrawn in a future Autoconf release.
3152 # They can cause serious problems if a builder's source tree is in a directory
3153 # whose full name contains unusual characters.
3154 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3155 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3156 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3157
3158
3159 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3160
3161
3162 for ac_prog in true
3163 do
3164   # Extract the first word of "$ac_prog", so it can be a program name with args.
3165 set dummy $ac_prog; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_path_TRUEPRG+:} false; then :
3169   $as_echo_n "(cached) " >&6
3170 else
3171   case $TRUEPRG in
3172   [\\/]* | ?:[\\/]*)
3173   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3174   ;;
3175   *)
3176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 for as_dir in $PATH
3178 do
3179   IFS=$as_save_IFS
3180   test -z "$as_dir" && as_dir=.
3181     for ac_exec_ext in '' $ac_executable_extensions; do
3182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3183     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185     break 2
3186   fi
3187 done
3188   done
3189 IFS=$as_save_IFS
3190
3191   ;;
3192 esac
3193 fi
3194 TRUEPRG=$ac_cv_path_TRUEPRG
3195 if test -n "$TRUEPRG"; then
3196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3197 $as_echo "$TRUEPRG" >&6; }
3198 else
3199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3201 fi
3202
3203
3204   test -n "$TRUEPRG" && break
3205 done
3206 test -n "$TRUEPRG" || TRUEPRG=":"
3207
3208 for ac_prog in false
3209 do
3210   # Extract the first word of "$ac_prog", so it can be a program name with args.
3211 set dummy $ac_prog; ac_word=$2
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if ${ac_cv_path_FALSEPRG+:} false; then :
3215   $as_echo_n "(cached) " >&6
3216 else
3217   case $FALSEPRG in
3218   [\\/]* | ?:[\\/]*)
3219   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3220   ;;
3221   *)
3222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH
3224 do
3225   IFS=$as_save_IFS
3226   test -z "$as_dir" && as_dir=.
3227     for ac_exec_ext in '' $ac_executable_extensions; do
3228   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3229     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231     break 2
3232   fi
3233 done
3234   done
3235 IFS=$as_save_IFS
3236
3237   ;;
3238 esac
3239 fi
3240 FALSEPRG=$ac_cv_path_FALSEPRG
3241 if test -n "$FALSEPRG"; then
3242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3243 $as_echo "$FALSEPRG" >&6; }
3244 else
3245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3247 fi
3248
3249
3250   test -n "$FALSEPRG" && break
3251 done
3252 test -n "$FALSEPRG" || FALSEPRG=":"
3253
3254
3255
3256 post_host=
3257 if test "x$BACULA" != x; then
3258    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3259 fi
3260 BACULA=${BACULA:-Bacula}
3261 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3262 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3263 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3264 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3265 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3266 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3267 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3268 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3269
3270 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3271 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3272 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3273
3274 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3275 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3276
3277
3278 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3279 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3280
3281 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3282 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3283
3284
3285 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3286
3287 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3288
3289
3290
3291 PFILES="platforms/Makefile"
3292
3293 echo "configuring for ${BACULA} $VERSION ($DATE)"
3294
3295
3296
3297 ac_ext=c
3298 ac_cpp='$CPP $CPPFLAGS'
3299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302 if test -n "$ac_tool_prefix"; then
3303   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3304 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if ${ac_cv_prog_CC+:} false; then :
3308   $as_echo_n "(cached) " >&6
3309 else
3310   if test -n "$CC"; then
3311   ac_cv_prog_CC="$CC" # Let the user override the test.
3312 else
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 for as_dir in $PATH
3315 do
3316   IFS=$as_save_IFS
3317   test -z "$as_dir" && as_dir=.
3318     for ac_exec_ext in '' $ac_executable_extensions; do
3319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322     break 2
3323   fi
3324 done
3325   done
3326 IFS=$as_save_IFS
3327
3328 fi
3329 fi
3330 CC=$ac_cv_prog_CC
3331 if test -n "$CC"; then
3332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3333 $as_echo "$CC" >&6; }
3334 else
3335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3337 fi
3338
3339
3340 fi
3341 if test -z "$ac_cv_prog_CC"; then
3342   ac_ct_CC=$CC
3343   # Extract the first word of "gcc", so it can be a program name with args.
3344 set dummy gcc; ac_word=$2
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346 $as_echo_n "checking for $ac_word... " >&6; }
3347 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3348   $as_echo_n "(cached) " >&6
3349 else
3350   if test -n "$ac_ct_CC"; then
3351   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3352 else
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH
3355 do
3356   IFS=$as_save_IFS
3357   test -z "$as_dir" && as_dir=.
3358     for ac_exec_ext in '' $ac_executable_extensions; do
3359   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3360     ac_cv_prog_ac_ct_CC="gcc"
3361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362     break 2
3363   fi
3364 done
3365   done
3366 IFS=$as_save_IFS
3367
3368 fi
3369 fi
3370 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3371 if test -n "$ac_ct_CC"; then
3372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3373 $as_echo "$ac_ct_CC" >&6; }
3374 else
3375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3377 fi
3378
3379   if test "x$ac_ct_CC" = x; then
3380     CC=""
3381   else
3382     case $cross_compiling:$ac_tool_warned in
3383 yes:)
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3386 ac_tool_warned=yes ;;
3387 esac
3388     CC=$ac_ct_CC
3389   fi
3390 else
3391   CC="$ac_cv_prog_CC"
3392 fi
3393
3394 if test -z "$CC"; then
3395           if test -n "$ac_tool_prefix"; then
3396     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3397 set dummy ${ac_tool_prefix}cc; ac_word=$2
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if ${ac_cv_prog_CC+:} false; then :
3401   $as_echo_n "(cached) " >&6
3402 else
3403   if test -n "$CC"; then
3404   ac_cv_prog_CC="$CC" # Let the user override the test.
3405 else
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3408 do
3409   IFS=$as_save_IFS
3410   test -z "$as_dir" && as_dir=.
3411     for ac_exec_ext in '' $ac_executable_extensions; do
3412   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413     ac_cv_prog_CC="${ac_tool_prefix}cc"
3414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3415     break 2
3416   fi
3417 done
3418   done
3419 IFS=$as_save_IFS
3420
3421 fi
3422 fi
3423 CC=$ac_cv_prog_CC
3424 if test -n "$CC"; then
3425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3426 $as_echo "$CC" >&6; }
3427 else
3428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3430 fi
3431
3432
3433   fi
3434 fi
3435 if test -z "$CC"; then
3436   # Extract the first word of "cc", so it can be a program name with args.
3437 set dummy cc; ac_word=$2
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439 $as_echo_n "checking for $ac_word... " >&6; }
3440 if ${ac_cv_prog_CC+:} false; then :
3441   $as_echo_n "(cached) " >&6
3442 else
3443   if test -n "$CC"; then
3444   ac_cv_prog_CC="$CC" # Let the user override the test.
3445 else
3446   ac_prog_rejected=no
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3449 do
3450   IFS=$as_save_IFS
3451   test -z "$as_dir" && as_dir=.
3452     for ac_exec_ext in '' $ac_executable_extensions; do
3453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3455        ac_prog_rejected=yes
3456        continue
3457      fi
3458     ac_cv_prog_CC="cc"
3459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3460     break 2
3461   fi
3462 done
3463   done
3464 IFS=$as_save_IFS
3465
3466 if test $ac_prog_rejected = yes; then
3467   # We found a bogon in the path, so make sure we never use it.
3468   set dummy $ac_cv_prog_CC
3469   shift
3470   if test $# != 0; then
3471     # We chose a different compiler from the bogus one.
3472     # However, it has the same basename, so the bogon will be chosen
3473     # first if we set CC to just the basename; use the full file name.
3474     shift
3475     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3476   fi
3477 fi
3478 fi
3479 fi
3480 CC=$ac_cv_prog_CC
3481 if test -n "$CC"; then
3482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3483 $as_echo "$CC" >&6; }
3484 else
3485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3487 fi
3488
3489
3490 fi
3491 if test -z "$CC"; then
3492   if test -n "$ac_tool_prefix"; then
3493   for ac_prog in cl.exe
3494   do
3495     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if ${ac_cv_prog_CC+:} false; then :
3500   $as_echo_n "(cached) " >&6
3501 else
3502   if test -n "$CC"; then
3503   ac_cv_prog_CC="$CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508   IFS=$as_save_IFS
3509   test -z "$as_dir" && as_dir=.
3510     for ac_exec_ext in '' $ac_executable_extensions; do
3511   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514     break 2
3515   fi
3516 done
3517   done
3518 IFS=$as_save_IFS
3519
3520 fi
3521 fi
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3526 else
3527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3529 fi
3530
3531
3532     test -n "$CC" && break
3533   done
3534 fi
3535 if test -z "$CC"; then
3536   ac_ct_CC=$CC
3537   for ac_prog in cl.exe
3538 do
3539   # Extract the first word of "$ac_prog", so it can be a program name with args.
3540 set dummy $ac_prog; ac_word=$2
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 $as_echo_n "checking for $ac_word... " >&6; }
3543 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3544   $as_echo_n "(cached) " >&6
3545 else
3546   if test -n "$ac_ct_CC"; then
3547   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3551 do
3552   IFS=$as_save_IFS
3553   test -z "$as_dir" && as_dir=.
3554     for ac_exec_ext in '' $ac_executable_extensions; do
3555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556     ac_cv_prog_ac_ct_CC="$ac_prog"
3557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3558     break 2
3559   fi
3560 done
3561   done
3562 IFS=$as_save_IFS
3563
3564 fi
3565 fi
3566 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3567 if test -n "$ac_ct_CC"; then
3568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3569 $as_echo "$ac_ct_CC" >&6; }
3570 else
3571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 $as_echo "no" >&6; }
3573 fi
3574
3575
3576   test -n "$ac_ct_CC" && break
3577 done
3578
3579   if test "x$ac_ct_CC" = x; then
3580     CC=""
3581   else
3582     case $cross_compiling:$ac_tool_warned in
3583 yes:)
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3586 ac_tool_warned=yes ;;
3587 esac
3588     CC=$ac_ct_CC
3589   fi
3590 fi
3591
3592 fi
3593
3594
3595 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597 as_fn_error $? "no acceptable C compiler found in \$PATH
3598 See \`config.log' for more details" "$LINENO" 5; }
3599
3600 # Provide some information about the compiler.
3601 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3602 set X $ac_compile
3603 ac_compiler=$2
3604 for ac_option in --version -v -V -qversion; do
3605   { { ac_try="$ac_compiler $ac_option >&5"
3606 case "(($ac_try" in
3607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608   *) ac_try_echo=$ac_try;;
3609 esac
3610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3611 $as_echo "$ac_try_echo"; } >&5
3612   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3613   ac_status=$?
3614   if test -s conftest.err; then
3615     sed '10a\
3616 ... rest of stderr output deleted ...
3617          10q' conftest.err >conftest.er1
3618     cat conftest.er1 >&5
3619   fi
3620   rm -f conftest.er1 conftest.err
3621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622   test $ac_status = 0; }
3623 done
3624
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h.  */
3627
3628 int
3629 main ()
3630 {
3631
3632   ;
3633   return 0;
3634 }
3635 _ACEOF
3636 ac_clean_files_save=$ac_clean_files
3637 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3638 # Try to create an executable without -o first, disregard a.out.
3639 # It will help us diagnose broken compilers, and finding out an intuition
3640 # of exeext.
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3642 $as_echo_n "checking whether the C compiler works... " >&6; }
3643 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3644
3645 # The possible output files:
3646 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3647
3648 ac_rmfiles=
3649 for ac_file in $ac_files
3650 do
3651   case $ac_file in
3652     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3653     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3654   esac
3655 done
3656 rm -f $ac_rmfiles
3657
3658 if { { ac_try="$ac_link_default"
3659 case "(($ac_try" in
3660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661   *) ac_try_echo=$ac_try;;
3662 esac
3663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664 $as_echo "$ac_try_echo"; } >&5
3665   (eval "$ac_link_default") 2>&5
3666   ac_status=$?
3667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668   test $ac_status = 0; }; then :
3669   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3670 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3671 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3672 # so that the user can short-circuit this test for compilers unknown to
3673 # Autoconf.
3674 for ac_file in $ac_files ''
3675 do
3676   test -f "$ac_file" || continue
3677   case $ac_file in
3678     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3679         ;;
3680     [ab].out )
3681         # We found the default executable, but exeext='' is most
3682         # certainly right.
3683         break;;
3684     *.* )
3685         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3686         then :; else
3687            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3688         fi
3689         # We set ac_cv_exeext here because the later test for it is not
3690         # safe: cross compilers may not add the suffix if given an `-o'
3691         # argument, so we may need to know it at that point already.
3692         # Even if this section looks crufty: it has the advantage of
3693         # actually working.
3694         break;;
3695     * )
3696         break;;
3697   esac
3698 done
3699 test "$ac_cv_exeext" = no && ac_cv_exeext=
3700
3701 else
3702   ac_file=''
3703 fi
3704 if test -z "$ac_file"; then :
3705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706 $as_echo "no" >&6; }
3707 $as_echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3709
3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712 as_fn_error 77 "C compiler cannot create executables
3713 See \`config.log' for more details" "$LINENO" 5; }
3714 else
3715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3716 $as_echo "yes" >&6; }
3717 fi
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3719 $as_echo_n "checking for C compiler default output file name... " >&6; }
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3721 $as_echo "$ac_file" >&6; }
3722 ac_exeext=$ac_cv_exeext
3723
3724 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3725 ac_clean_files=$ac_clean_files_save
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3727 $as_echo_n "checking for suffix of executables... " >&6; }
3728 if { { ac_try="$ac_link"
3729 case "(($ac_try" in
3730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731   *) ac_try_echo=$ac_try;;
3732 esac
3733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3734 $as_echo "$ac_try_echo"; } >&5
3735   (eval "$ac_link") 2>&5
3736   ac_status=$?
3737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3738   test $ac_status = 0; }; then :
3739   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3740 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3741 # work properly (i.e., refer to `conftest.exe'), while it won't with
3742 # `rm'.
3743 for ac_file in conftest.exe conftest conftest.*; do
3744   test -f "$ac_file" || continue
3745   case $ac_file in
3746     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3747     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3748           break;;
3749     * ) break;;
3750   esac
3751 done
3752 else
3753   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3755 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3756 See \`config.log' for more details" "$LINENO" 5; }
3757 fi
3758 rm -f conftest conftest$ac_cv_exeext
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3760 $as_echo "$ac_cv_exeext" >&6; }
3761
3762 rm -f conftest.$ac_ext
3763 EXEEXT=$ac_cv_exeext
3764 ac_exeext=$EXEEXT
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h.  */
3767 #include <stdio.h>
3768 int
3769 main ()
3770 {
3771 FILE *f = fopen ("conftest.out", "w");
3772  return ferror (f) || fclose (f) != 0;
3773
3774   ;
3775   return 0;
3776 }
3777 _ACEOF
3778 ac_clean_files="$ac_clean_files conftest.out"
3779 # Check that the compiler produces executables we can run.  If not, either
3780 # the compiler is broken, or we cross compile.
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3782 $as_echo_n "checking whether we are cross compiling... " >&6; }
3783 if test "$cross_compiling" != yes; then
3784   { { ac_try="$ac_link"
3785 case "(($ac_try" in
3786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787   *) ac_try_echo=$ac_try;;
3788 esac
3789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3790 $as_echo "$ac_try_echo"; } >&5
3791   (eval "$ac_link") 2>&5
3792   ac_status=$?
3793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3794   test $ac_status = 0; }
3795   if { ac_try='./conftest$ac_cv_exeext'
3796   { { case "(($ac_try" in
3797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798   *) ac_try_echo=$ac_try;;
3799 esac
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802   (eval "$ac_try") 2>&5
3803   ac_status=$?
3804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805   test $ac_status = 0; }; }; then
3806     cross_compiling=no
3807   else
3808     if test "$cross_compiling" = maybe; then
3809         cross_compiling=yes
3810     else
3811         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3813 as_fn_error $? "cannot run C compiled programs.
3814 If you meant to cross compile, use \`--host'.
3815 See \`config.log' for more details" "$LINENO" 5; }
3816     fi
3817   fi
3818 fi
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3820 $as_echo "$cross_compiling" >&6; }
3821
3822 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3823 ac_clean_files=$ac_clean_files_save
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3825 $as_echo_n "checking for suffix of object files... " >&6; }
3826 if ${ac_cv_objext+:} false; then :
3827   $as_echo_n "(cached) " >&6
3828 else
3829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h.  */
3831
3832 int
3833 main ()
3834 {
3835
3836   ;
3837   return 0;
3838 }
3839 _ACEOF
3840 rm -f conftest.o conftest.obj
3841 if { { ac_try="$ac_compile"
3842 case "(($ac_try" in
3843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844   *) ac_try_echo=$ac_try;;
3845 esac
3846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847 $as_echo "$ac_try_echo"; } >&5
3848   (eval "$ac_compile") 2>&5
3849   ac_status=$?
3850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3851   test $ac_status = 0; }; then :
3852   for ac_file in conftest.o conftest.obj conftest.*; do
3853   test -f "$ac_file" || continue;
3854   case $ac_file in
3855     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3856     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3857        break;;
3858   esac
3859 done
3860 else
3861   $as_echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3863
3864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3866 as_fn_error $? "cannot compute suffix of object files: cannot compile
3867 See \`config.log' for more details" "$LINENO" 5; }
3868 fi
3869 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3870 fi
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3872 $as_echo "$ac_cv_objext" >&6; }
3873 OBJEXT=$ac_cv_objext
3874 ac_objext=$OBJEXT
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3876 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3877 if ${ac_cv_c_compiler_gnu+:} false; then :
3878   $as_echo_n "(cached) " >&6
3879 else
3880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h.  */
3882
3883 int
3884 main ()
3885 {
3886 #ifndef __GNUC__
3887        choke me
3888 #endif
3889
3890   ;
3891   return 0;
3892 }
3893 _ACEOF
3894 if ac_fn_c_try_compile "$LINENO"; then :
3895   ac_compiler_gnu=yes
3896 else
3897   ac_compiler_gnu=no
3898 fi
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3901
3902 fi
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3904 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3905 if test $ac_compiler_gnu = yes; then
3906   GCC=yes
3907 else
3908   GCC=
3909 fi
3910 ac_test_CFLAGS=${CFLAGS+set}
3911 ac_save_CFLAGS=$CFLAGS
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3913 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3914 if ${ac_cv_prog_cc_g+:} false; then :
3915   $as_echo_n "(cached) " >&6
3916 else
3917   ac_save_c_werror_flag=$ac_c_werror_flag
3918    ac_c_werror_flag=yes
3919    ac_cv_prog_cc_g=no
3920    CFLAGS="-g"
3921    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h.  */
3923
3924 int
3925 main ()
3926 {
3927
3928   ;
3929   return 0;
3930 }
3931 _ACEOF
3932 if ac_fn_c_try_compile "$LINENO"; then :
3933   ac_cv_prog_cc_g=yes
3934 else
3935   CFLAGS=""
3936       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h.  */
3938
3939 int
3940 main ()
3941 {
3942
3943   ;
3944   return 0;
3945 }
3946 _ACEOF
3947 if ac_fn_c_try_compile "$LINENO"; then :
3948
3949 else
3950   ac_c_werror_flag=$ac_save_c_werror_flag
3951          CFLAGS="-g"
3952          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h.  */
3954
3955 int
3956 main ()
3957 {
3958
3959   ;
3960   return 0;
3961 }
3962 _ACEOF
3963 if ac_fn_c_try_compile "$LINENO"; then :
3964   ac_cv_prog_cc_g=yes
3965 fi
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 fi
3968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 fi
3970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3971    ac_c_werror_flag=$ac_save_c_werror_flag
3972 fi
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3974 $as_echo "$ac_cv_prog_cc_g" >&6; }
3975 if test "$ac_test_CFLAGS" = set; then
3976   CFLAGS=$ac_save_CFLAGS
3977 elif test $ac_cv_prog_cc_g = yes; then
3978   if test "$GCC" = yes; then
3979     CFLAGS="-g -O2"
3980   else
3981     CFLAGS="-g"
3982   fi
3983 else
3984   if test "$GCC" = yes; then
3985     CFLAGS="-O2"
3986   else
3987     CFLAGS=
3988   fi
3989 fi
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3991 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3992 if ${ac_cv_prog_cc_c89+:} false; then :
3993   $as_echo_n "(cached) " >&6
3994 else
3995   ac_cv_prog_cc_c89=no
3996 ac_save_CC=$CC
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h.  */
3999 #include <stdarg.h>
4000 #include <stdio.h>
4001 struct stat;
4002 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4003 struct buf { int x; };
4004 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4005 static char *e (p, i)
4006      char **p;
4007      int i;
4008 {
4009   return p[i];
4010 }
4011 static char *f (char * (*g) (char **, int), char **p, ...)
4012 {
4013   char *s;
4014   va_list v;
4015   va_start (v,p);
4016   s = g (p, va_arg (v,int));
4017   va_end (v);
4018   return s;
4019 }
4020
4021 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4022    function prototypes and stuff, but not '\xHH' hex character constants.
4023    These don't provoke an error unfortunately, instead are silently treated
4024    as 'x'.  The following induces an error, until -std is added to get
4025    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4026    array size at least.  It's necessary to write '\x00'==0 to get something
4027    that's true only with -std.  */
4028 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4029
4030 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4031    inside strings and character constants.  */
4032 #define FOO(x) 'x'
4033 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4034
4035 int test (int i, double x);
4036 struct s1 {int (*f) (int a);};
4037 struct s2 {int (*f) (double a);};
4038 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4039 int argc;
4040 char **argv;
4041 int
4042 main ()
4043 {
4044 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4045   ;
4046   return 0;
4047 }
4048 _ACEOF
4049 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4050         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4051 do
4052   CC="$ac_save_CC $ac_arg"
4053   if ac_fn_c_try_compile "$LINENO"; then :
4054   ac_cv_prog_cc_c89=$ac_arg
4055 fi
4056 rm -f core conftest.err conftest.$ac_objext
4057   test "x$ac_cv_prog_cc_c89" != "xno" && break
4058 done
4059 rm -f conftest.$ac_ext
4060 CC=$ac_save_CC
4061
4062 fi
4063 # AC_CACHE_VAL
4064 case "x$ac_cv_prog_cc_c89" in
4065   x)
4066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4067 $as_echo "none needed" >&6; } ;;
4068   xno)
4069     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4070 $as_echo "unsupported" >&6; } ;;
4071   *)
4072     CC="$CC $ac_cv_prog_cc_c89"
4073     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4074 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4075 esac
4076 if test "x$ac_cv_prog_cc_c89" != xno; then :
4077
4078 fi
4079
4080 ac_ext=c
4081 ac_cpp='$CPP $CPPFLAGS'
4082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085                 ac_ext=cpp
4086 ac_cpp='$CXXCPP $CPPFLAGS'
4087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4090 if test -z "$CXX"; then
4091   if test -n "$CCC"; then
4092     CXX=$CCC
4093   else
4094     if test -n "$ac_tool_prefix"; then
4095   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4096   do
4097     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4098 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100 $as_echo_n "checking for $ac_word... " >&6; }
4101 if ${ac_cv_prog_CXX+:} false; then :
4102   $as_echo_n "(cached) " >&6
4103 else
4104   if test -n "$CXX"; then
4105   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4106 else
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4109 do
4110   IFS=$as_save_IFS
4111   test -z "$as_dir" && as_dir=.
4112     for ac_exec_ext in '' $ac_executable_extensions; do
4113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4116     break 2
4117   fi
4118 done
4119   done
4120 IFS=$as_save_IFS
4121
4122 fi
4123 fi
4124 CXX=$ac_cv_prog_CXX
4125 if test -n "$CXX"; then
4126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4127 $as_echo "$CXX" >&6; }
4128 else
4129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130 $as_echo "no" >&6; }
4131 fi
4132
4133
4134     test -n "$CXX" && break
4135   done
4136 fi
4137 if test -z "$CXX"; then
4138   ac_ct_CXX=$CXX
4139   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4140 do
4141   # Extract the first word of "$ac_prog", so it can be a program name with args.
4142 set dummy $ac_prog; ac_word=$2
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144 $as_echo_n "checking for $ac_word... " >&6; }
4145 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4146   $as_echo_n "(cached) " >&6
4147 else
4148   if test -n "$ac_ct_CXX"; then
4149   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4150 else
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4153 do
4154   IFS=$as_save_IFS
4155   test -z "$as_dir" && as_dir=.
4156     for ac_exec_ext in '' $ac_executable_extensions; do
4157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158     ac_cv_prog_ac_ct_CXX="$ac_prog"
4159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4160     break 2
4161   fi
4162 done
4163   done
4164 IFS=$as_save_IFS
4165
4166 fi
4167 fi
4168 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4169 if test -n "$ac_ct_CXX"; then
4170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4171 $as_echo "$ac_ct_CXX" >&6; }
4172 else
4173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 $as_echo "no" >&6; }
4175 fi
4176
4177
4178   test -n "$ac_ct_CXX" && break
4179 done
4180
4181   if test "x$ac_ct_CXX" = x; then
4182     CXX="g++"
4183   else
4184     case $cross_compiling:$ac_tool_warned in
4185 yes:)
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4188 ac_tool_warned=yes ;;
4189 esac
4190     CXX=$ac_ct_CXX
4191   fi
4192 fi
4193
4194   fi
4195 fi
4196 # Provide some information about the compiler.
4197 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4198 set X $ac_compile
4199 ac_compiler=$2
4200 for ac_option in --version -v -V -qversion; do
4201   { { ac_try="$ac_compiler $ac_option >&5"
4202 case "(($ac_try" in
4203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204   *) ac_try_echo=$ac_try;;
4205 esac
4206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4207 $as_echo "$ac_try_echo"; } >&5
4208   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4209   ac_status=$?
4210   if test -s conftest.err; then
4211     sed '10a\
4212 ... rest of stderr output deleted ...
4213          10q' conftest.err >conftest.er1
4214     cat conftest.er1 >&5
4215   fi
4216   rm -f conftest.er1 conftest.err
4217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4218   test $ac_status = 0; }
4219 done
4220
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4222 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4223 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4224   $as_echo_n "(cached) " >&6
4225 else
4226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h.  */
4228
4229 int
4230 main ()
4231 {
4232 #ifndef __GNUC__
4233        choke me
4234 #endif
4235
4236   ;
4237   return 0;
4238 }
4239 _ACEOF
4240 if ac_fn_cxx_try_compile "$LINENO"; then :
4241   ac_compiler_gnu=yes
4242 else
4243   ac_compiler_gnu=no
4244 fi
4245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4247
4248 fi
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4250 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4251 if test $ac_compiler_gnu = yes; then
4252   GXX=yes
4253 else
4254   GXX=
4255 fi
4256 ac_test_CXXFLAGS=${CXXFLAGS+set}
4257 ac_save_CXXFLAGS=$CXXFLAGS
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4259 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4260 if ${ac_cv_prog_cxx_g+:} false; then :
4261   $as_echo_n "(cached) " >&6
4262 else
4263   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4264    ac_cxx_werror_flag=yes
4265    ac_cv_prog_cxx_g=no
4266    CXXFLAGS="-g"
4267    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h.  */
4269
4270 int
4271 main ()
4272 {
4273
4274   ;
4275   return 0;
4276 }
4277 _ACEOF
4278 if ac_fn_cxx_try_compile "$LINENO"; then :
4279   ac_cv_prog_cxx_g=yes
4280 else
4281   CXXFLAGS=""
4282       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h.  */
4284
4285 int
4286 main ()
4287 {
4288
4289   ;
4290   return 0;
4291 }
4292 _ACEOF
4293 if ac_fn_cxx_try_compile "$LINENO"; then :
4294
4295 else
4296   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4297          CXXFLAGS="-g"
4298          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h.  */
4300
4301 int
4302 main ()
4303 {
4304
4305   ;
4306   return 0;
4307 }
4308 _ACEOF
4309 if ac_fn_cxx_try_compile "$LINENO"; then :
4310   ac_cv_prog_cxx_g=yes
4311 fi
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 fi
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 fi
4316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4317    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4318 fi
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4320 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4321 if test "$ac_test_CXXFLAGS" = set; then
4322   CXXFLAGS=$ac_save_CXXFLAGS
4323 elif test $ac_cv_prog_cxx_g = yes; then
4324   if test "$GXX" = yes; then
4325     CXXFLAGS="-g -O2"
4326   else
4327     CXXFLAGS="-g"
4328   fi
4329 else
4330   if test "$GXX" = yes; then
4331     CXXFLAGS="-O2"
4332   else
4333     CXXFLAGS=
4334   fi
4335 fi
4336 ac_ext=c
4337 ac_cpp='$CPP $CPPFLAGS'
4338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4341
4342 if test "x$CC" != xcc; then
4343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4344 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4345 else
4346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4347 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4348 fi
4349 set dummy $CC; ac_cc=`$as_echo "$2" |
4350                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4351 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4352   $as_echo_n "(cached) " >&6
4353 else
4354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h.  */
4356
4357 int
4358 main ()
4359 {
4360
4361   ;
4362   return 0;
4363 }
4364 _ACEOF
4365 # Make sure it works both with $CC and with simple cc.
4366 # We do the test twice because some compilers refuse to overwrite an
4367 # existing .o file with -o, though they will create one.
4368 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4369 rm -f conftest2.*
4370 if { { case "(($ac_try" in
4371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372   *) ac_try_echo=$ac_try;;
4373 esac
4374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4375 $as_echo "$ac_try_echo"; } >&5
4376   (eval "$ac_try") 2>&5
4377   ac_status=$?
4378   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4379   test $ac_status = 0; } &&
4380    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382   *) ac_try_echo=$ac_try;;
4383 esac
4384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4385 $as_echo "$ac_try_echo"; } >&5
4386   (eval "$ac_try") 2>&5
4387   ac_status=$?
4388   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4389   test $ac_status = 0; };
4390 then
4391   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4392   if test "x$CC" != xcc; then
4393     # Test first that cc exists at all.
4394     if { ac_try='cc -c conftest.$ac_ext >&5'
4395   { { case "(($ac_try" in
4396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397   *) ac_try_echo=$ac_try;;
4398 esac
4399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4400 $as_echo "$ac_try_echo"; } >&5
4401   (eval "$ac_try") 2>&5
4402   ac_status=$?
4403   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4404   test $ac_status = 0; }; }; then
4405       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4406       rm -f conftest2.*
4407       if { { case "(($ac_try" in
4408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409   *) ac_try_echo=$ac_try;;
4410 esac
4411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4412 $as_echo "$ac_try_echo"; } >&5
4413   (eval "$ac_try") 2>&5
4414   ac_status=$?
4415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4416   test $ac_status = 0; } &&
4417          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419   *) ac_try_echo=$ac_try;;
4420 esac
4421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4422 $as_echo "$ac_try_echo"; } >&5
4423   (eval "$ac_try") 2>&5
4424   ac_status=$?
4425   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4426   test $ac_status = 0; };
4427       then
4428         # cc works too.
4429         :
4430       else
4431         # cc exists but doesn't like -o.
4432         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4433       fi
4434     fi
4435   fi
4436 else
4437   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4438 fi
4439 rm -f core conftest*
4440
4441 fi
4442 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4444 $as_echo "yes" >&6; }
4445 else
4446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4448
4449 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4450
4451 fi
4452
4453 ac_ext=c
4454 ac_cpp='$CPP $CPPFLAGS'
4455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4459 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4460 # On Suns, sometimes $CPP names a directory.
4461 if test -n "$CPP" && test -d "$CPP"; then
4462   CPP=
4463 fi
4464 if test -z "$CPP"; then
4465   if ${ac_cv_prog_CPP+:} false; then :
4466   $as_echo_n "(cached) " >&6
4467 else
4468       # Double quotes because CPP needs to be expanded
4469     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4470     do
4471       ac_preproc_ok=false
4472 for ac_c_preproc_warn_flag in '' yes
4473 do
4474   # Use a header file that comes with gcc, so configuring glibc
4475   # with a fresh cross-compiler works.
4476   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4477   # <limits.h> exists even on freestanding compilers.
4478   # On the NeXT, cc -E runs the code through the compiler's parser,
4479   # not just through cpp. "Syntax error" is here to catch this case.
4480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h.  */
4482 #ifdef __STDC__
4483 # include <limits.h>
4484 #else
4485 # include <assert.h>
4486 #endif
4487                      Syntax error
4488 _ACEOF
4489 if ac_fn_c_try_cpp "$LINENO"; then :
4490
4491 else
4492   # Broken: fails on valid input.
4493 continue
4494 fi
4495 rm -f conftest.err conftest.i conftest.$ac_ext
4496
4497   # OK, works on sane cases.  Now check whether nonexistent headers
4498   # can be detected and how.
4499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h.  */
4501 #include <ac_nonexistent.h>
4502 _ACEOF
4503 if ac_fn_c_try_cpp "$LINENO"; then :
4504   # Broken: success on invalid input.
4505 continue
4506 else
4507   # Passes both tests.
4508 ac_preproc_ok=:
4509 break
4510 fi
4511 rm -f conftest.err conftest.i conftest.$ac_ext
4512
4513 done
4514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4515 rm -f conftest.i conftest.err conftest.$ac_ext
4516 if $ac_preproc_ok; then :
4517   break
4518 fi
4519
4520     done
4521     ac_cv_prog_CPP=$CPP
4522
4523 fi
4524   CPP=$ac_cv_prog_CPP
4525 else
4526   ac_cv_prog_CPP=$CPP
4527 fi
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4529 $as_echo "$CPP" >&6; }
4530 ac_preproc_ok=false
4531 for ac_c_preproc_warn_flag in '' yes
4532 do
4533   # Use a header file that comes with gcc, so configuring glibc
4534   # with a fresh cross-compiler works.
4535   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4536   # <limits.h> exists even on freestanding compilers.
4537   # On the NeXT, cc -E runs the code through the compiler's parser,
4538   # not just through cpp. "Syntax error" is here to catch this case.
4539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h.  */
4541 #ifdef __STDC__
4542 # include <limits.h>
4543 #else
4544 # include <assert.h>
4545 #endif
4546                      Syntax error
4547 _ACEOF
4548 if ac_fn_c_try_cpp "$LINENO"; then :
4549
4550 else
4551   # Broken: fails on valid input.
4552 continue
4553 fi
4554 rm -f conftest.err conftest.i conftest.$ac_ext
4555
4556   # OK, works on sane cases.  Now check whether nonexistent headers
4557   # can be detected and how.
4558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h.  */
4560 #include <ac_nonexistent.h>
4561 _ACEOF
4562 if ac_fn_c_try_cpp "$LINENO"; then :
4563   # Broken: success on invalid input.
4564 continue
4565 else
4566   # Passes both tests.
4567 ac_preproc_ok=:
4568 break
4569 fi
4570 rm -f conftest.err conftest.i conftest.$ac_ext
4571
4572 done
4573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4574 rm -f conftest.i conftest.err conftest.$ac_ext
4575 if $ac_preproc_ok; then :
4576
4577 else
4578   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4580 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4581 See \`config.log' for more details" "$LINENO" 5; }
4582 fi
4583
4584 ac_ext=c
4585 ac_cpp='$CPP $CPPFLAGS'
4586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4589
4590
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4592 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4593 if ${ac_cv_path_GREP+:} false; then :
4594   $as_echo_n "(cached) " >&6
4595 else
4596   if test -z "$GREP"; then
4597   ac_path_GREP_found=false
4598   # Loop through the user's path and test for each of PROGNAME-LIST
4599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4601 do
4602   IFS=$as_save_IFS
4603   test -z "$as_dir" && as_dir=.
4604     for ac_prog in grep ggrep; do
4605     for ac_exec_ext in '' $ac_executable_extensions; do
4606       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4607       as_fn_executable_p "$ac_path_GREP" || continue
4608 # Check for GNU ac_path_GREP and select it if it is found.
4609   # Check for GNU $ac_path_GREP
4610 case `"$ac_path_GREP" --version 2>&1` in
4611 *GNU*)
4612   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4613 *)
4614   ac_count=0
4615   $as_echo_n 0123456789 >"conftest.in"
4616   while :
4617   do
4618     cat "conftest.in" "conftest.in" >"conftest.tmp"
4619     mv "conftest.tmp" "conftest.in"
4620     cp "conftest.in" "conftest.nl"
4621     $as_echo 'GREP' >> "conftest.nl"
4622     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4623     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4624     as_fn_arith $ac_count + 1 && ac_count=$as_val
4625     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4626       # Best one so far, save it but keep looking for a better one
4627       ac_cv_path_GREP="$ac_path_GREP"
4628       ac_path_GREP_max=$ac_count
4629     fi
4630     # 10*(2^10) chars as input seems more than enough
4631     test $ac_count -gt 10 && break
4632   done
4633   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4634 esac
4635
4636       $ac_path_GREP_found && break 3
4637     done
4638   done
4639   done
4640 IFS=$as_save_IFS
4641   if test -z "$ac_cv_path_GREP"; then
4642     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4643   fi
4644 else
4645   ac_cv_path_GREP=$GREP
4646 fi
4647
4648 fi
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4650 $as_echo "$ac_cv_path_GREP" >&6; }
4651  GREP="$ac_cv_path_GREP"
4652
4653
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4655 $as_echo_n "checking for egrep... " >&6; }
4656 if ${ac_cv_path_EGREP+:} false; then :
4657   $as_echo_n "(cached) " >&6
4658 else
4659   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4660    then ac_cv_path_EGREP="$GREP -E"
4661    else
4662      if test -z "$EGREP"; then
4663   ac_path_EGREP_found=false
4664   # Loop through the user's path and test for each of PROGNAME-LIST
4665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4667 do
4668   IFS=$as_save_IFS
4669   test -z "$as_dir" && as_dir=.
4670     for ac_prog in egrep; do
4671     for ac_exec_ext in '' $ac_executable_extensions; do
4672       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4673       as_fn_executable_p "$ac_path_EGREP" || continue
4674 # Check for GNU ac_path_EGREP and select it if it is found.
4675   # Check for GNU $ac_path_EGREP
4676 case `"$ac_path_EGREP" --version 2>&1` in
4677 *GNU*)
4678   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4679 *)
4680   ac_count=0
4681   $as_echo_n 0123456789 >"conftest.in"
4682   while :
4683   do
4684     cat "conftest.in" "conftest.in" >"conftest.tmp"
4685     mv "conftest.tmp" "conftest.in"
4686     cp "conftest.in" "conftest.nl"
4687     $as_echo 'EGREP' >> "conftest.nl"
4688     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4689     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4690     as_fn_arith $ac_count + 1 && ac_count=$as_val
4691     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4692       # Best one so far, save it but keep looking for a better one
4693       ac_cv_path_EGREP="$ac_path_EGREP"
4694       ac_path_EGREP_max=$ac_count
4695     fi
4696     # 10*(2^10) chars as input seems more than enough
4697     test $ac_count -gt 10 && break
4698   done
4699   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4700 esac
4701
4702       $ac_path_EGREP_found && break 3
4703     done
4704   done
4705   done
4706 IFS=$as_save_IFS
4707   if test -z "$ac_cv_path_EGREP"; then
4708     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4709   fi
4710 else
4711   ac_cv_path_EGREP=$EGREP
4712 fi
4713
4714    fi
4715 fi
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4717 $as_echo "$ac_cv_path_EGREP" >&6; }
4718  EGREP="$ac_cv_path_EGREP"
4719
4720
4721 if test $ac_cv_c_compiler_gnu = yes; then
4722     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4723 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4724 if ${ac_cv_prog_gcc_traditional+:} false; then :
4725   $as_echo_n "(cached) " >&6
4726 else
4727     ac_pattern="Autoconf.*'x'"
4728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h.  */
4730 #include <sgtty.h>
4731 Autoconf TIOCGETP
4732 _ACEOF
4733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4734   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4735   ac_cv_prog_gcc_traditional=yes
4736 else
4737   ac_cv_prog_gcc_traditional=no
4738 fi
4739 rm -f conftest*
4740
4741
4742   if test $ac_cv_prog_gcc_traditional = no; then
4743     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h.  */
4745 #include <termio.h>
4746 Autoconf TCGETA
4747 _ACEOF
4748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4749   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4750   ac_cv_prog_gcc_traditional=yes
4751 fi
4752 rm -f conftest*
4753
4754   fi
4755 fi
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4757 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4758   if test $ac_cv_prog_gcc_traditional = yes; then
4759     CC="$CC -traditional"
4760   fi
4761 fi
4762
4763 BASECC=`basename $CC`
4764 have_gcc=no
4765 if test x"$GCC" = "xyes"; then
4766    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4767
4768    have_gcc=yes
4769 fi
4770 # Extract the first word of "$CXX", so it can be a program name with args.
4771 set dummy $CXX; ac_word=$2
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if ${ac_cv_path_CXX+:} false; then :
4775   $as_echo_n "(cached) " >&6
4776 else
4777   case $CXX in
4778   [\\/]* | ?:[\\/]*)
4779   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4780   ;;
4781   *)
4782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4784 do
4785   IFS=$as_save_IFS
4786   test -z "$as_dir" && as_dir=.
4787     for ac_exec_ext in '' $ac_executable_extensions; do
4788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4789     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791     break 2
4792   fi
4793 done
4794   done
4795 IFS=$as_save_IFS
4796
4797   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4798   ;;
4799 esac
4800 fi
4801 CXX=$ac_cv_path_CXX
4802 if test -n "$CXX"; then
4803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4804 $as_echo "$CXX" >&6; }
4805 else
4806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4808 fi
4809
4810
4811 if test ! -e $CXX; then
4812    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4813 fi
4814
4815 # Find a good install program.  We prefer a C program (faster),
4816 # so one script is as good as another.  But avoid the broken or
4817 # incompatible versions:
4818 # SysV /etc/install, /usr/sbin/install
4819 # SunOS /usr/etc/install
4820 # IRIX /sbin/install
4821 # AIX /bin/install
4822 # AmigaOS /C/install, which installs bootblocks on floppy discs
4823 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4824 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4825 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4826 # OS/2's system install, which has a completely different semantic
4827 # ./install, which can be erroneously created by make from ./install.sh.
4828 # Reject install programs that cannot install multiple files.
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4830 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4831 if test -z "$INSTALL"; then
4832 if ${ac_cv_path_install+:} false; then :
4833   $as_echo_n "(cached) " >&6
4834 else
4835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4837 do
4838   IFS=$as_save_IFS
4839   test -z "$as_dir" && as_dir=.
4840     # Account for people who put trailing slashes in PATH elements.
4841 case $as_dir/ in #((
4842   ./ | .// | /[cC]/* | \
4843   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4844   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4845   /usr/ucb/* ) ;;
4846   *)
4847     # OSF1 and SCO ODT 3.0 have their own names for install.
4848     # Don't use installbsd from OSF since it installs stuff as root
4849     # by default.
4850     for ac_prog in ginstall scoinst install; do
4851       for ac_exec_ext in '' $ac_executable_extensions; do
4852         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4853           if test $ac_prog = install &&
4854             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4855             # AIX install.  It has an incompatible calling convention.
4856             :
4857           elif test $ac_prog = install &&
4858             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4859             # program-specific install script used by HP pwplus--don't use.
4860             :
4861           else
4862             rm -rf conftest.one conftest.two conftest.dir
4863             echo one > conftest.one
4864             echo two > conftest.two
4865             mkdir conftest.dir
4866             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4867               test -s conftest.one && test -s conftest.two &&
4868               test -s conftest.dir/conftest.one &&
4869               test -s conftest.dir/conftest.two
4870             then
4871               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4872               break 3
4873             fi
4874           fi
4875         fi
4876       done
4877     done
4878     ;;
4879 esac
4880
4881   done
4882 IFS=$as_save_IFS
4883
4884 rm -rf conftest.one conftest.two conftest.dir
4885
4886 fi
4887   if test "${ac_cv_path_install+set}" = set; then
4888     INSTALL=$ac_cv_path_install
4889   else
4890     # As a last resort, use the slow shell script.  Don't cache a
4891     # value for INSTALL within a source directory, because that will
4892     # break other packages using the cache if that directory is
4893     # removed, or if the value is a relative name.
4894     INSTALL=$ac_install_sh
4895   fi
4896 fi
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4898 $as_echo "$INSTALL" >&6; }
4899
4900 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4901 # It thinks the first close brace ends the variable substitution.
4902 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4903
4904 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4905
4906 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4907
4908 # Extract the first word of "mv", so it can be a program name with args.
4909 set dummy mv; ac_word=$2
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911 $as_echo_n "checking for $ac_word... " >&6; }
4912 if ${ac_cv_path_MV+:} false; then :
4913   $as_echo_n "(cached) " >&6
4914 else
4915   case $MV in
4916   [\\/]* | ?:[\\/]*)
4917   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4918   ;;
4919   *)
4920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4922 do
4923   IFS=$as_save_IFS
4924   test -z "$as_dir" && as_dir=.
4925     for ac_exec_ext in '' $ac_executable_extensions; do
4926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4927     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929     break 2
4930   fi
4931 done
4932   done
4933 IFS=$as_save_IFS
4934
4935   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4936   ;;
4937 esac
4938 fi
4939 MV=$ac_cv_path_MV
4940 if test -n "$MV"; then
4941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4942 $as_echo "$MV" >&6; }
4943 else
4944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4946 fi
4947
4948
4949 # Extract the first word of "rm", so it can be a program name with args.
4950 set dummy rm; ac_word=$2
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4952 $as_echo_n "checking for $ac_word... " >&6; }
4953 if ${ac_cv_path_REMOVE+:} false; then :
4954   $as_echo_n "(cached) " >&6
4955 else
4956   case $REMOVE in
4957   [\\/]* | ?:[\\/]*)
4958   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4959   ;;
4960   *)
4961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4963 do
4964   IFS=$as_save_IFS
4965   test -z "$as_dir" && as_dir=.
4966     for ac_exec_ext in '' $ac_executable_extensions; do
4967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970     break 2
4971   fi
4972 done
4973   done
4974 IFS=$as_save_IFS
4975
4976   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4977   ;;
4978 esac
4979 fi
4980 REMOVE=$ac_cv_path_REMOVE
4981 if test -n "$REMOVE"; then
4982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4983 $as_echo "$REMOVE" >&6; }
4984 else
4985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4987 fi
4988
4989
4990 # Extract the first word of "cp", so it can be a program name with args.
4991 set dummy cp; ac_word=$2
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4993 $as_echo_n "checking for $ac_word... " >&6; }
4994 if ${ac_cv_path_CP+:} false; then :
4995   $as_echo_n "(cached) " >&6
4996 else
4997   case $CP in
4998   [\\/]* | ?:[\\/]*)
4999   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5000   ;;
5001   *)
5002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH
5004 do
5005   IFS=$as_save_IFS
5006   test -z "$as_dir" && as_dir=.
5007     for ac_exec_ext in '' $ac_executable_extensions; do
5008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5009     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5011     break 2
5012   fi
5013 done
5014   done
5015 IFS=$as_save_IFS
5016
5017   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5018   ;;
5019 esac
5020 fi
5021 CP=$ac_cv_path_CP
5022 if test -n "$CP"; then
5023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5024 $as_echo "$CP" >&6; }
5025 else
5026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5028 fi
5029
5030
5031 # Extract the first word of "sed", so it can be a program name with args.
5032 set dummy sed; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if ${ac_cv_path_SED+:} false; then :
5036   $as_echo_n "(cached) " >&6
5037 else
5038   case $SED in
5039   [\\/]* | ?:[\\/]*)
5040   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5041   ;;
5042   *)
5043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 for as_dir in $PATH
5045 do
5046   IFS=$as_save_IFS
5047   test -z "$as_dir" && as_dir=.
5048     for ac_exec_ext in '' $ac_executable_extensions; do
5049   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5050     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5052     break 2
5053   fi
5054 done
5055   done
5056 IFS=$as_save_IFS
5057
5058   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5059   ;;
5060 esac
5061 fi
5062 SED=$ac_cv_path_SED
5063 if test -n "$SED"; then
5064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5065 $as_echo "$SED" >&6; }
5066 else
5067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068 $as_echo "no" >&6; }
5069 fi
5070
5071
5072 # Extract the first word of "echo", so it can be a program name with args.
5073 set dummy echo; ac_word=$2
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if ${ac_cv_path_ECHO+:} false; then :
5077   $as_echo_n "(cached) " >&6
5078 else
5079   case $ECHO in
5080   [\\/]* | ?:[\\/]*)
5081   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5082   ;;
5083   *)
5084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5086 do
5087   IFS=$as_save_IFS
5088   test -z "$as_dir" && as_dir=.
5089     for ac_exec_ext in '' $ac_executable_extensions; do
5090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093     break 2
5094   fi
5095 done
5096   done
5097 IFS=$as_save_IFS
5098
5099   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5100   ;;
5101 esac
5102 fi
5103 ECHO=$ac_cv_path_ECHO
5104 if test -n "$ECHO"; then
5105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5106 $as_echo "$ECHO" >&6; }
5107 else
5108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5110 fi
5111
5112
5113 # Extract the first word of "cmp", so it can be a program name with args.
5114 set dummy cmp; ac_word=$2
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116 $as_echo_n "checking for $ac_word... " >&6; }
5117 if ${ac_cv_path_CMP+:} false; then :
5118   $as_echo_n "(cached) " >&6
5119 else
5120   case $CMP in
5121   [\\/]* | ?:[\\/]*)
5122   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5123   ;;
5124   *)
5125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH
5127 do
5128   IFS=$as_save_IFS
5129   test -z "$as_dir" && as_dir=.
5130     for ac_exec_ext in '' $ac_executable_extensions; do
5131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5132     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134     break 2
5135   fi
5136 done
5137   done
5138 IFS=$as_save_IFS
5139
5140   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5141   ;;
5142 esac
5143 fi
5144 CMP=$ac_cv_path_CMP
5145 if test -n "$CMP"; then
5146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5147 $as_echo "$CMP" >&6; }
5148 else
5149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5151 fi
5152
5153
5154 # Extract the first word of "tbl", so it can be a program name with args.
5155 set dummy tbl; ac_word=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if ${ac_cv_path_TBL+:} false; then :
5159   $as_echo_n "(cached) " >&6
5160 else
5161   case $TBL in
5162   [\\/]* | ?:[\\/]*)
5163   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5164   ;;
5165   *)
5166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5168 do
5169   IFS=$as_save_IFS
5170   test -z "$as_dir" && as_dir=.
5171     for ac_exec_ext in '' $ac_executable_extensions; do
5172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5173     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175     break 2
5176   fi
5177 done
5178   done
5179 IFS=$as_save_IFS
5180
5181   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5182   ;;
5183 esac
5184 fi
5185 TBL=$ac_cv_path_TBL
5186 if test -n "$TBL"; then
5187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5188 $as_echo "$TBL" >&6; }
5189 else
5190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5192 fi
5193
5194
5195 # Extract the first word of "ar", so it can be a program name with args.
5196 set dummy ar; ac_word=$2
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 $as_echo_n "checking for $ac_word... " >&6; }
5199 if ${ac_cv_path_AR+:} false; then :
5200   $as_echo_n "(cached) " >&6
5201 else
5202   case $AR in
5203   [\\/]* | ?:[\\/]*)
5204   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5205   ;;
5206   *)
5207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 for as_dir in $PATH
5209 do
5210   IFS=$as_save_IFS
5211   test -z "$as_dir" && as_dir=.
5212     for ac_exec_ext in '' $ac_executable_extensions; do
5213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216     break 2
5217   fi
5218 done
5219   done
5220 IFS=$as_save_IFS
5221
5222   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5223   ;;
5224 esac
5225 fi
5226 AR=$ac_cv_path_AR
5227 if test -n "$AR"; then
5228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5229 $as_echo "$AR" >&6; }
5230 else
5231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5233 fi
5234
5235
5236 # Extract the first word of "openssl", so it can be a program name with args.
5237 set dummy openssl; ac_word=$2
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5239 $as_echo_n "checking for $ac_word... " >&6; }
5240 if ${ac_cv_path_OPENSSL+:} false; then :
5241   $as_echo_n "(cached) " >&6
5242 else
5243   case $OPENSSL in
5244   [\\/]* | ?:[\\/]*)
5245   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5246   ;;
5247   *)
5248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5250 do
5251   IFS=$as_save_IFS
5252   test -z "$as_dir" && as_dir=.
5253     for ac_exec_ext in '' $ac_executable_extensions; do
5254   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257     break 2
5258   fi
5259 done
5260   done
5261 IFS=$as_save_IFS
5262
5263   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5264   ;;
5265 esac
5266 fi
5267 OPENSSL=$ac_cv_path_OPENSSL
5268 if test -n "$OPENSSL"; then
5269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5270 $as_echo "$OPENSSL" >&6; }
5271 else
5272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5274 fi
5275
5276
5277 # Extract the first word of "mtx", so it can be a program name with args.
5278 set dummy mtx; ac_word=$2
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5280 $as_echo_n "checking for $ac_word... " >&6; }
5281 if ${ac_cv_path_MTX+:} false; then :
5282   $as_echo_n "(cached) " >&6
5283 else
5284   case $MTX in
5285   [\\/]* | ?:[\\/]*)
5286   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5287   ;;
5288   *)
5289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 for as_dir in $PATH
5291 do
5292   IFS=$as_save_IFS
5293   test -z "$as_dir" && as_dir=.
5294     for ac_exec_ext in '' $ac_executable_extensions; do
5295   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5296     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5298     break 2
5299   fi
5300 done
5301   done
5302 IFS=$as_save_IFS
5303
5304   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5305   ;;
5306 esac
5307 fi
5308 MTX=$ac_cv_path_MTX
5309 if test -n "$MTX"; then
5310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5311 $as_echo "$MTX" >&6; }
5312 else
5313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5315 fi
5316
5317
5318 # Extract the first word of "dd", so it can be a program name with args.
5319 set dummy dd; ac_word=$2
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321 $as_echo_n "checking for $ac_word... " >&6; }
5322 if ${ac_cv_path_DD+:} false; then :
5323   $as_echo_n "(cached) " >&6
5324 else
5325   case $DD in
5326   [\\/]* | ?:[\\/]*)
5327   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5328   ;;
5329   *)
5330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 for as_dir in $PATH
5332 do
5333   IFS=$as_save_IFS
5334   test -z "$as_dir" && as_dir=.
5335     for ac_exec_ext in '' $ac_executable_extensions; do
5336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5337     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339     break 2
5340   fi
5341 done
5342   done
5343 IFS=$as_save_IFS
5344
5345   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5346   ;;
5347 esac
5348 fi
5349 DD=$ac_cv_path_DD
5350 if test -n "$DD"; then
5351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5352 $as_echo "$DD" >&6; }
5353 else
5354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355 $as_echo "no" >&6; }
5356 fi
5357
5358
5359 # Extract the first word of "mkisofs", so it can be a program name with args.
5360 set dummy mkisofs; ac_word=$2
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5362 $as_echo_n "checking for $ac_word... " >&6; }
5363 if ${ac_cv_path_MKISOFS+:} false; then :
5364   $as_echo_n "(cached) " >&6
5365 else
5366   case $MKISOFS in
5367   [\\/]* | ?:[\\/]*)
5368   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5369   ;;
5370   *)
5371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH
5373 do
5374   IFS=$as_save_IFS
5375   test -z "$as_dir" && as_dir=.
5376     for ac_exec_ext in '' $ac_executable_extensions; do
5377   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5378     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5380     break 2
5381   fi
5382 done
5383   done
5384 IFS=$as_save_IFS
5385
5386   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5387   ;;
5388 esac
5389 fi
5390 MKISOFS=$ac_cv_path_MKISOFS
5391 if test -n "$MKISOFS"; then
5392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5393 $as_echo "$MKISOFS" >&6; }
5394 else
5395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396 $as_echo "no" >&6; }
5397 fi
5398
5399
5400 # Extract the first word of "python", so it can be a program name with args.
5401 set dummy python; ac_word=$2
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if ${ac_cv_path_PYTHON+:} false; then :
5405   $as_echo_n "(cached) " >&6
5406 else
5407   case $PYTHON in
5408   [\\/]* | ?:[\\/]*)
5409   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5410   ;;
5411   *)
5412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 for as_dir in $PATH
5414 do
5415   IFS=$as_save_IFS
5416   test -z "$as_dir" && as_dir=.
5417     for ac_exec_ext in '' $ac_executable_extensions; do
5418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5421     break 2
5422   fi
5423 done
5424   done
5425 IFS=$as_save_IFS
5426
5427   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5428   ;;
5429 esac
5430 fi
5431 PYTHON=$ac_cv_path_PYTHON
5432 if test -n "$PYTHON"; then
5433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5434 $as_echo "$PYTHON" >&6; }
5435 else
5436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437 $as_echo "no" >&6; }
5438 fi
5439
5440
5441 # Extract the first word of "growisofs", so it can be a program name with args.
5442 set dummy growisofs; ac_word=$2
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if ${ac_cv_path_GROWISOFS+:} false; then :
5446   $as_echo_n "(cached) " >&6
5447 else
5448   case $GROWISOFS in
5449   [\\/]* | ?:[\\/]*)
5450   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5451   ;;
5452   *)
5453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454 for as_dir in $PATH
5455 do
5456   IFS=$as_save_IFS
5457   test -z "$as_dir" && as_dir=.
5458     for ac_exec_ext in '' $ac_executable_extensions; do
5459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5460     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5462     break 2
5463   fi
5464 done
5465   done
5466 IFS=$as_save_IFS
5467
5468   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5469   ;;
5470 esac
5471 fi
5472 GROWISOFS=$ac_cv_path_GROWISOFS
5473 if test -n "$GROWISOFS"; then
5474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5475 $as_echo "$GROWISOFS" >&6; }
5476 else
5477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5479 fi
5480
5481
5482 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5483 set dummy dvd+rw-mediainfo; ac_word=$2
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5485 $as_echo_n "checking for $ac_word... " >&6; }
5486 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5487   $as_echo_n "(cached) " >&6
5488 else
5489   case $DVDRWMEDIAINFO in
5490   [\\/]* | ?:[\\/]*)
5491   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5492   ;;
5493   *)
5494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $PATH
5496 do
5497   IFS=$as_save_IFS
5498   test -z "$as_dir" && as_dir=.
5499     for ac_exec_ext in '' $ac_executable_extensions; do
5500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5501     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503     break 2
5504   fi
5505 done
5506   done
5507 IFS=$as_save_IFS
5508
5509   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5510   ;;
5511 esac
5512 fi
5513 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5514 if test -n "$DVDRWMEDIAINFO"; then
5515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5516 $as_echo "$DVDRWMEDIAINFO" >&6; }
5517 else
5518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5520 fi
5521
5522
5523 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5524 set dummy dvd+rw-format; ac_word=$2
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5526 $as_echo_n "checking for $ac_word... " >&6; }
5527 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5528   $as_echo_n "(cached) " >&6
5529 else
5530   case $DVDRWFORMAT in
5531   [\\/]* | ?:[\\/]*)
5532   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5533   ;;
5534   *)
5535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH
5537 do
5538   IFS=$as_save_IFS
5539   test -z "$as_dir" && as_dir=.
5540     for ac_exec_ext in '' $ac_executable_extensions; do
5541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5542     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544     break 2
5545   fi
5546 done
5547   done
5548 IFS=$as_save_IFS
5549
5550   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5551   ;;
5552 esac
5553 fi
5554 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5555 if test -n "$DVDRWFORMAT"; then
5556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5557 $as_echo "$DVDRWFORMAT" >&6; }
5558 else
5559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5561 fi
5562
5563
5564 # Extract the first word of "pkg-config", so it can be a program name with args.
5565 set dummy pkg-config; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if ${ac_cv_path_PKGCONFIG+:} false; then :
5569   $as_echo_n "(cached) " >&6
5570 else
5571   case $PKGCONFIG in
5572   [\\/]* | ?:[\\/]*)
5573   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5574   ;;
5575   *)
5576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in $PATH
5578 do
5579   IFS=$as_save_IFS
5580   test -z "$as_dir" && as_dir=.
5581     for ac_exec_ext in '' $ac_executable_extensions; do
5582   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5583     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585     break 2
5586   fi
5587 done
5588   done
5589 IFS=$as_save_IFS
5590
5591   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5592   ;;
5593 esac
5594 fi
5595 PKGCONFIG=$ac_cv_path_PKGCONFIG
5596 if test -n "$PKGCONFIG"; then
5597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5598 $as_echo "$PKGCONFIG" >&6; }
5599 else
5600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 $as_echo "no" >&6; }
5602 fi
5603
5604
5605 # Extract the first word of "qmake", so it can be a program name with args.
5606 set dummy qmake; ac_word=$2
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608 $as_echo_n "checking for $ac_word... " >&6; }
5609 if ${ac_cv_path_QMAKE+:} false; then :
5610   $as_echo_n "(cached) " >&6
5611 else
5612   case $QMAKE in
5613   [\\/]* | ?:[\\/]*)
5614   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5615   ;;
5616   *)
5617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5619 do
5620   IFS=$as_save_IFS
5621   test -z "$as_dir" && as_dir=.
5622     for ac_exec_ext in '' $ac_executable_extensions; do
5623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5624     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626     break 2
5627   fi
5628 done
5629   done
5630 IFS=$as_save_IFS
5631
5632   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5633   ;;
5634 esac
5635 fi
5636 QMAKE=$ac_cv_path_QMAKE
5637 if test -n "$QMAKE"; then
5638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5639 $as_echo "$QMAKE" >&6; }
5640 else
5641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }
5643 fi
5644
5645
5646 # Extract the first word of "gmake", so it can be a program name with args.
5647 set dummy gmake; ac_word=$2
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5649 $as_echo_n "checking for $ac_word... " >&6; }
5650 if ${ac_cv_path_GMAKE+:} false; then :
5651   $as_echo_n "(cached) " >&6
5652 else
5653   case $GMAKE in
5654   [\\/]* | ?:[\\/]*)
5655   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5656   ;;
5657   *)
5658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659 for as_dir in $PATH
5660 do
5661   IFS=$as_save_IFS
5662   test -z "$as_dir" && as_dir=.
5663     for ac_exec_ext in '' $ac_executable_extensions; do
5664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5665     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667     break 2
5668   fi
5669 done
5670   done
5671 IFS=$as_save_IFS
5672
5673   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5674   ;;
5675 esac
5676 fi
5677 GMAKE=$ac_cv_path_GMAKE
5678 if test -n "$GMAKE"; then
5679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5680 $as_echo "$GMAKE" >&6; }
5681 else
5682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683 $as_echo "no" >&6; }
5684 fi
5685
5686
5687 # Extract the first word of "pidof", so it can be a program name with args.
5688 set dummy pidof; ac_word=$2
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690 $as_echo_n "checking for $ac_word... " >&6; }
5691 if ${ac_cv_path_PIDOF+:} false; then :
5692   $as_echo_n "(cached) " >&6
5693 else
5694   case $PIDOF in
5695   [\\/]* | ?:[\\/]*)
5696   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5697   ;;
5698   *)
5699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in $PATH
5701 do
5702   IFS=$as_save_IFS
5703   test -z "$as_dir" && as_dir=.
5704     for ac_exec_ext in '' $ac_executable_extensions; do
5705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5706     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5708     break 2
5709   fi
5710 done
5711   done
5712 IFS=$as_save_IFS
5713
5714   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5715   ;;
5716 esac
5717 fi
5718 PIDOF=$ac_cv_path_PIDOF
5719 if test -n "$PIDOF"; then
5720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5721 $as_echo "$PIDOF" >&6; }
5722 else
5723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }
5725 fi
5726
5727
5728 for ac_prog in gawk mawk nawk awk
5729 do
5730   # Extract the first word of "$ac_prog", so it can be a program name with args.
5731 set dummy $ac_prog; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if ${ac_cv_prog_AWK+:} false; then :
5735   $as_echo_n "(cached) " >&6
5736 else
5737   if test -n "$AWK"; then
5738   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5739 else
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH
5742 do
5743   IFS=$as_save_IFS
5744   test -z "$as_dir" && as_dir=.
5745     for ac_exec_ext in '' $ac_executable_extensions; do
5746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5747     ac_cv_prog_AWK="$ac_prog"
5748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749     break 2
5750   fi
5751 done
5752   done
5753 IFS=$as_save_IFS
5754
5755 fi
5756 fi
5757 AWK=$ac_cv_prog_AWK
5758 if test -n "$AWK"; then
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5760 $as_echo "$AWK" >&6; }
5761 else
5762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5764 fi
5765
5766
5767   test -n "$AWK" && break
5768 done
5769
5770 # Some AWK programs fail, so test it and warn the user
5771 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5772       { if ((prog == $2) || (("(" prog ")") == $2) ||
5773       (("" prog "") == $2) ||
5774       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5775 else
5776   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5777    The regex engine of $AWK is too broken to be used you
5778    might want to install GNU AWK.
5779    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5780 fi
5781 THE_AWK=$AWK
5782 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5783 set dummy $THE_AWK; ac_word=$2
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5785 $as_echo_n "checking for $ac_word... " >&6; }
5786 if ${ac_cv_path_AWK+:} false; then :
5787   $as_echo_n "(cached) " >&6
5788 else
5789   case $AWK in
5790   [\\/]* | ?:[\\/]*)
5791   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5792   ;;
5793   *)
5794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 for as_dir in $PATH
5796 do
5797   IFS=$as_save_IFS
5798   test -z "$as_dir" && as_dir=.
5799     for ac_exec_ext in '' $ac_executable_extensions; do
5800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5801     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5803     break 2
5804   fi
5805 done
5806   done
5807 IFS=$as_save_IFS
5808
5809   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5810   ;;
5811 esac
5812 fi
5813 AWK=$ac_cv_path_AWK
5814 if test -n "$AWK"; then
5815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5816 $as_echo "$AWK" >&6; }
5817 else
5818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5820 fi
5821
5822
5823
5824
5825 test -n "$ARFLAG" || ARFLAGS="cr"
5826
5827
5828 MAKE_SHELL=/bin/sh
5829
5830
5831
5832
5833
5834
5835
5836 use_libtool=yes
5837 # Check whether --enable-libtool was given.
5838 if test "${enable_libtool+set}" = set; then :
5839   enableval=$enable_libtool;
5840        if test x$enableval = xno; then
5841           use_libtool=no
5842        fi
5843
5844
5845 fi
5846
5847 case `pwd` in
5848   *\ * | *\     *)
5849     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5850 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5851 esac
5852
5853
5854
5855 macro_version='2.4.2'
5856 macro_revision='1.3337'
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870 ltmain="$ac_aux_dir/ltmain.sh"
5871
5872 # Make sure we can run config.sub.
5873 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5874   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5875
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5877 $as_echo_n "checking build system type... " >&6; }
5878 if ${ac_cv_build+:} false; then :
5879   $as_echo_n "(cached) " >&6
5880 else
5881   ac_build_alias=$build_alias
5882 test "x$ac_build_alias" = x &&
5883   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5884 test "x$ac_build_alias" = x &&
5885   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5886 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5887   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5888
5889 fi
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5891 $as_echo "$ac_cv_build" >&6; }
5892 case $ac_cv_build in
5893 *-*-*) ;;
5894 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5895 esac
5896 build=$ac_cv_build
5897 ac_save_IFS=$IFS; IFS='-'
5898 set x $ac_cv_build
5899 shift
5900 build_cpu=$1
5901 build_vendor=$2
5902 shift; shift
5903 # Remember, the first character of IFS is used to create $*,
5904 # except with old shells:
5905 build_os=$*
5906 IFS=$ac_save_IFS
5907 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5908
5909
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5911 $as_echo_n "checking host system type... " >&6; }
5912 if ${ac_cv_host+:} false; then :
5913   $as_echo_n "(cached) " >&6
5914 else
5915   if test "x$host_alias" = x; then
5916   ac_cv_host=$ac_cv_build
5917 else
5918   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5919     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5920 fi
5921
5922 fi
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5924 $as_echo "$ac_cv_host" >&6; }
5925 case $ac_cv_host in
5926 *-*-*) ;;
5927 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5928 esac
5929 host=$ac_cv_host
5930 ac_save_IFS=$IFS; IFS='-'
5931 set x $ac_cv_host
5932 shift
5933 host_cpu=$1
5934 host_vendor=$2
5935 shift; shift
5936 # Remember, the first character of IFS is used to create $*,
5937 # except with old shells:
5938 host_os=$*
5939 IFS=$ac_save_IFS
5940 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5941
5942
5943 # Backslashify metacharacters that are still active within
5944 # double-quoted strings.
5945 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5946
5947 # Same as above, but do not quote variable references.
5948 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5949
5950 # Sed substitution to delay expansion of an escaped shell variable in a
5951 # double_quote_subst'ed string.
5952 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5953
5954 # Sed substitution to delay expansion of an escaped single quote.
5955 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5956
5957 # Sed substitution to avoid accidental globbing in evaled expressions
5958 no_glob_subst='s/\*/\\\*/g'
5959
5960 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5961 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5962 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5963
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5965 $as_echo_n "checking how to print strings... " >&6; }
5966 # Test print first, because it will be a builtin if present.
5967 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5968    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5969   ECHO='print -r --'
5970 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5971   ECHO='printf %s\n'
5972 else
5973   # Use this function as a fallback that always works.
5974   func_fallback_echo ()
5975   {
5976     eval 'cat <<_LTECHO_EOF
5977 $1
5978 _LTECHO_EOF'
5979   }
5980   ECHO='func_fallback_echo'
5981 fi
5982
5983 # func_echo_all arg...
5984 # Invoke $ECHO with all args, space-separated.
5985 func_echo_all ()
5986 {
5987     $ECHO ""
5988 }
5989
5990 case "$ECHO" in
5991   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5992 $as_echo "printf" >&6; } ;;
5993   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5994 $as_echo "print -r" >&6; } ;;
5995   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5996 $as_echo "cat" >&6; } ;;
5997 esac
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6013 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6014 if ${ac_cv_path_SED+:} false; then :
6015   $as_echo_n "(cached) " >&6
6016 else
6017             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6018      for ac_i in 1 2 3 4 5 6 7; do
6019        ac_script="$ac_script$as_nl$ac_script"
6020      done
6021      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6022      { ac_script=; unset ac_script;}
6023      if test -z "$SED"; then
6024   ac_path_SED_found=false
6025   # Loop through the user's path and test for each of PROGNAME-LIST
6026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 for as_dir in $PATH
6028 do
6029   IFS=$as_save_IFS
6030   test -z "$as_dir" && as_dir=.
6031     for ac_prog in sed gsed; do
6032     for ac_exec_ext in '' $ac_executable_extensions; do
6033       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6034       as_fn_executable_p "$ac_path_SED" || continue
6035 # Check for GNU ac_path_SED and select it if it is found.
6036   # Check for GNU $ac_path_SED
6037 case `"$ac_path_SED" --version 2>&1` in
6038 *GNU*)
6039   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6040 *)
6041   ac_count=0
6042   $as_echo_n 0123456789 >"conftest.in"
6043   while :
6044   do
6045     cat "conftest.in" "conftest.in" >"conftest.tmp"
6046     mv "conftest.tmp" "conftest.in"
6047     cp "conftest.in" "conftest.nl"
6048     $as_echo '' >> "conftest.nl"
6049     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6050     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6051     as_fn_arith $ac_count + 1 && ac_count=$as_val
6052     if test $ac_count -gt ${ac_path_SED_max-0}; then
6053       # Best one so far, save it but keep looking for a better one
6054       ac_cv_path_SED="$ac_path_SED"
6055       ac_path_SED_max=$ac_count
6056     fi
6057     # 10*(2^10) chars as input seems more than enough
6058     test $ac_count -gt 10 && break
6059   done
6060   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6061 esac
6062
6063       $ac_path_SED_found && break 3
6064     done
6065   done
6066   done
6067 IFS=$as_save_IFS
6068   if test -z "$ac_cv_path_SED"; then
6069     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6070   fi
6071 else
6072   ac_cv_path_SED=$SED
6073 fi
6074
6075 fi
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6077 $as_echo "$ac_cv_path_SED" >&6; }
6078  SED="$ac_cv_path_SED"
6079   rm -f conftest.sed
6080
6081 test -z "$SED" && SED=sed
6082 Xsed="$SED -e 1s/^X//"
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6095 $as_echo_n "checking for fgrep... " >&6; }
6096 if ${ac_cv_path_FGREP+:} false; then :
6097   $as_echo_n "(cached) " >&6
6098 else
6099   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6100    then ac_cv_path_FGREP="$GREP -F"
6101    else
6102      if test -z "$FGREP"; then
6103   ac_path_FGREP_found=false
6104   # Loop through the user's path and test for each of PROGNAME-LIST
6105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6107 do
6108   IFS=$as_save_IFS
6109   test -z "$as_dir" && as_dir=.
6110     for ac_prog in fgrep; do
6111     for ac_exec_ext in '' $ac_executable_extensions; do
6112       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6113       as_fn_executable_p "$ac_path_FGREP" || continue
6114 # Check for GNU ac_path_FGREP and select it if it is found.
6115   # Check for GNU $ac_path_FGREP
6116 case `"$ac_path_FGREP" --version 2>&1` in
6117 *GNU*)
6118   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6119 *)
6120   ac_count=0
6121   $as_echo_n 0123456789 >"conftest.in"
6122   while :
6123   do
6124     cat "conftest.in" "conftest.in" >"conftest.tmp"
6125     mv "conftest.tmp" "conftest.in"
6126     cp "conftest.in" "conftest.nl"
6127     $as_echo 'FGREP' >> "conftest.nl"
6128     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6129     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6130     as_fn_arith $ac_count + 1 && ac_count=$as_val
6131     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6132       # Best one so far, save it but keep looking for a better one
6133       ac_cv_path_FGREP="$ac_path_FGREP"
6134       ac_path_FGREP_max=$ac_count
6135     fi
6136     # 10*(2^10) chars as input seems more than enough
6137     test $ac_count -gt 10 && break
6138   done
6139   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6140 esac
6141
6142       $ac_path_FGREP_found && break 3
6143     done
6144   done
6145   done
6146 IFS=$as_save_IFS
6147   if test -z "$ac_cv_path_FGREP"; then
6148     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6149   fi
6150 else
6151   ac_cv_path_FGREP=$FGREP
6152 fi
6153
6154    fi
6155 fi
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6157 $as_echo "$ac_cv_path_FGREP" >&6; }
6158  FGREP="$ac_cv_path_FGREP"
6159
6160
6161 test -z "$GREP" && GREP=grep
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181 # Check whether --with-gnu-ld was given.
6182 if test "${with_gnu_ld+set}" = set; then :
6183   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6184 else
6185   with_gnu_ld=no
6186 fi
6187
6188 ac_prog=ld
6189 if test "$GCC" = yes; then
6190   # Check if gcc -print-prog-name=ld gives a path.
6191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6192 $as_echo_n "checking for ld used by $CC... " >&6; }
6193   case $host in
6194   *-*-mingw*)
6195     # gcc leaves a trailing carriage return which upsets mingw
6196     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6197   *)
6198     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6199   esac
6200   case $ac_prog in
6201     # Accept absolute paths.
6202     [\\/]* | ?:[\\/]*)
6203       re_direlt='/[^/][^/]*/\.\./'
6204       # Canonicalize the pathname of ld
6205       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6206       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6207         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6208       done
6209       test -z "$LD" && LD="$ac_prog"
6210       ;;
6211   "")
6212     # If it fails, then pretend we aren't using GCC.
6213     ac_prog=ld
6214     ;;
6215   *)
6216     # If it is relative, then search for the first ld in PATH.
6217     with_gnu_ld=unknown
6218     ;;
6219   esac
6220 elif test "$with_gnu_ld" = yes; then
6221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6222 $as_echo_n "checking for GNU ld... " >&6; }
6223 else
6224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6225 $as_echo_n "checking for non-GNU ld... " >&6; }
6226 fi
6227 if ${lt_cv_path_LD+:} false; then :
6228   $as_echo_n "(cached) " >&6
6229 else
6230   if test -z "$LD"; then
6231   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6232   for ac_dir in $PATH; do
6233     IFS="$lt_save_ifs"
6234     test -z "$ac_dir" && ac_dir=.
6235     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6236       lt_cv_path_LD="$ac_dir/$ac_prog"
6237       # Check to see if the program is GNU ld.  I'd rather use --version,
6238       # but apparently some variants of GNU ld only accept -v.
6239       # Break only if it was the GNU/non-GNU ld that we prefer.
6240       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6241       *GNU* | *'with BFD'*)
6242         test "$with_gnu_ld" != no && break
6243         ;;
6244       *)
6245         test "$with_gnu_ld" != yes && break
6246         ;;
6247       esac
6248     fi
6249   done
6250   IFS="$lt_save_ifs"
6251 else
6252   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6253 fi
6254 fi
6255
6256 LD="$lt_cv_path_LD"
6257 if test -n "$LD"; then
6258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6259 $as_echo "$LD" >&6; }
6260 else
6261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6262 $as_echo "no" >&6; }
6263 fi
6264 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6266 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6267 if ${lt_cv_prog_gnu_ld+:} false; then :
6268   $as_echo_n "(cached) " >&6
6269 else
6270   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6271 case `$LD -v 2>&1 </dev/null` in
6272 *GNU* | *'with BFD'*)
6273   lt_cv_prog_gnu_ld=yes
6274   ;;
6275 *)
6276   lt_cv_prog_gnu_ld=no
6277   ;;
6278 esac
6279 fi
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6281 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6282 with_gnu_ld=$lt_cv_prog_gnu_ld
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6293 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6294 if ${lt_cv_path_NM+:} false; then :
6295   $as_echo_n "(cached) " >&6
6296 else
6297   if test -n "$NM"; then
6298   # Let the user override the test.
6299   lt_cv_path_NM="$NM"
6300 else
6301   lt_nm_to_check="${ac_tool_prefix}nm"
6302   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6303     lt_nm_to_check="$lt_nm_to_check nm"
6304   fi
6305   for lt_tmp_nm in $lt_nm_to_check; do
6306     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6307     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6308       IFS="$lt_save_ifs"
6309       test -z "$ac_dir" && ac_dir=.
6310       tmp_nm="$ac_dir/$lt_tmp_nm"
6311       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6312         # Check to see if the nm accepts a BSD-compat flag.
6313         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6314         #   nm: unknown option "B" ignored
6315         # Tru64's nm complains that /dev/null is an invalid object file
6316         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6317         */dev/null* | *'Invalid file or object type'*)
6318           lt_cv_path_NM="$tmp_nm -B"
6319           break
6320           ;;
6321         *)
6322           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6323           */dev/null*)
6324             lt_cv_path_NM="$tmp_nm -p"
6325             break
6326             ;;
6327           *)
6328             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6329             continue # so that we can try to find one that supports BSD flags
6330             ;;
6331           esac
6332           ;;
6333         esac
6334       fi
6335     done
6336     IFS="$lt_save_ifs"
6337   done
6338   : ${lt_cv_path_NM=no}
6339 fi
6340 fi
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6342 $as_echo "$lt_cv_path_NM" >&6; }
6343 if test "$lt_cv_path_NM" != "no"; then
6344   NM="$lt_cv_path_NM"
6345 else
6346   # Didn't find any BSD compatible name lister, look for dumpbin.
6347   if test -n "$DUMPBIN"; then :
6348     # Let the user override the test.
6349   else
6350     if test -n "$ac_tool_prefix"; then
6351   for ac_prog in dumpbin "link -dump"
6352   do
6353     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if ${ac_cv_prog_DUMPBIN+:} false; then :
6358   $as_echo_n "(cached) " >&6
6359 else
6360   if test -n "$DUMPBIN"; then
6361   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6362 else
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6365 do
6366   IFS=$as_save_IFS
6367   test -z "$as_dir" && as_dir=.
6368     for ac_exec_ext in '' $ac_executable_extensions; do
6369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6370     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372     break 2
6373   fi
6374 done
6375   done
6376 IFS=$as_save_IFS
6377
6378 fi
6379 fi
6380 DUMPBIN=$ac_cv_prog_DUMPBIN
6381 if test -n "$DUMPBIN"; then
6382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6383 $as_echo "$DUMPBIN" >&6; }
6384 else
6385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 $as_echo "no" >&6; }
6387 fi
6388
6389
6390     test -n "$DUMPBIN" && break
6391   done
6392 fi
6393 if test -z "$DUMPBIN"; then
6394   ac_ct_DUMPBIN=$DUMPBIN
6395   for ac_prog in dumpbin "link -dump"
6396 do
6397   # Extract the first word of "$ac_prog", so it can be a program name with args.
6398 set dummy $ac_prog; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6402   $as_echo_n "(cached) " >&6
6403 else
6404   if test -n "$ac_ct_DUMPBIN"; then
6405   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6406 else
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6409 do
6410   IFS=$as_save_IFS
6411   test -z "$as_dir" && as_dir=.
6412     for ac_exec_ext in '' $ac_executable_extensions; do
6413   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6414     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416     break 2
6417   fi
6418 done
6419   done
6420 IFS=$as_save_IFS
6421
6422 fi
6423 fi
6424 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6425 if test -n "$ac_ct_DUMPBIN"; then
6426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6427 $as_echo "$ac_ct_DUMPBIN" >&6; }
6428 else
6429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6431 fi
6432
6433
6434   test -n "$ac_ct_DUMPBIN" && break
6435 done
6436
6437   if test "x$ac_ct_DUMPBIN" = x; then
6438     DUMPBIN=":"
6439   else
6440     case $cross_compiling:$ac_tool_warned in
6441 yes:)
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6444 ac_tool_warned=yes ;;
6445 esac
6446     DUMPBIN=$ac_ct_DUMPBIN
6447   fi
6448 fi
6449
6450     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6451     *COFF*)
6452       DUMPBIN="$DUMPBIN -symbols"
6453       ;;
6454     *)
6455       DUMPBIN=:
6456       ;;
6457     esac
6458   fi
6459
6460   if test "$DUMPBIN" != ":"; then
6461     NM="$DUMPBIN"
6462   fi
6463 fi
6464 test -z "$NM" && NM=nm
6465
6466
6467
6468
6469
6470
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6472 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6473 if ${lt_cv_nm_interface+:} false; then :
6474   $as_echo_n "(cached) " >&6
6475 else
6476   lt_cv_nm_interface="BSD nm"
6477   echo "int some_variable = 0;" > conftest.$ac_ext
6478   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6479   (eval "$ac_compile" 2>conftest.err)
6480   cat conftest.err >&5
6481   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6482   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6483   cat conftest.err >&5
6484   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6485   cat conftest.out >&5
6486   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6487     lt_cv_nm_interface="MS dumpbin"
6488   fi
6489   rm -f conftest*
6490 fi
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6492 $as_echo "$lt_cv_nm_interface" >&6; }
6493
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6495 $as_echo_n "checking whether ln -s works... " >&6; }
6496 LN_S=$as_ln_s
6497 if test "$LN_S" = "ln -s"; then
6498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6499 $as_echo "yes" >&6; }
6500 else
6501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6502 $as_echo "no, using $LN_S" >&6; }
6503 fi
6504
6505 # find the maximum length of command line arguments
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6507 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6508 if ${lt_cv_sys_max_cmd_len+:} false; then :
6509   $as_echo_n "(cached) " >&6
6510 else
6511     i=0
6512   teststring="ABCD"
6513
6514   case $build_os in
6515   msdosdjgpp*)
6516     # On DJGPP, this test can blow up pretty badly due to problems in libc
6517     # (any single argument exceeding 2000 bytes causes a buffer overrun
6518     # during glob expansion).  Even if it were fixed, the result of this
6519     # check would be larger than it should be.
6520     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6521     ;;
6522
6523   gnu*)
6524     # Under GNU Hurd, this test is not required because there is
6525     # no limit to the length of command line arguments.
6526     # Libtool will interpret -1 as no limit whatsoever
6527     lt_cv_sys_max_cmd_len=-1;
6528     ;;
6529
6530   cygwin* | mingw* | cegcc*)
6531     # On Win9x/ME, this test blows up -- it succeeds, but takes
6532     # about 5 minutes as the teststring grows exponentially.
6533     # Worse, since 9x/ME are not pre-emptively multitasking,
6534     # you end up with a "frozen" computer, even though with patience
6535     # the test eventually succeeds (with a max line length of 256k).
6536     # Instead, let's just punt: use the minimum linelength reported by
6537     # all of the supported platforms: 8192 (on NT/2K/XP).
6538     lt_cv_sys_max_cmd_len=8192;
6539     ;;
6540
6541   mint*)
6542     # On MiNT this can take a long time and run out of memory.
6543     lt_cv_sys_max_cmd_len=8192;
6544     ;;
6545
6546   amigaos*)
6547     # On AmigaOS with pdksh, this test takes hours, literally.
6548     # So we just punt and use a minimum line length of 8192.
6549     lt_cv_sys_max_cmd_len=8192;
6550     ;;
6551
6552   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6553     # This has been around since 386BSD, at least.  Likely further.
6554     if test -x /sbin/sysctl; then
6555       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6556     elif test -x /usr/sbin/sysctl; then
6557       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6558     else
6559       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6560     fi
6561     # And add a safety zone
6562     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6563     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6564     ;;
6565
6566   interix*)
6567     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6568     lt_cv_sys_max_cmd_len=196608
6569     ;;
6570
6571   os2*)
6572     # The test takes a long time on OS/2.
6573     lt_cv_sys_max_cmd_len=8192
6574     ;;
6575
6576   osf*)
6577     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6578     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6579     # nice to cause kernel panics so lets avoid the loop below.
6580     # First set a reasonable default.
6581     lt_cv_sys_max_cmd_len=16384
6582     #
6583     if test -x /sbin/sysconfig; then
6584       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6585         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6586       esac
6587     fi
6588     ;;
6589   sco3.2v5*)
6590     lt_cv_sys_max_cmd_len=102400
6591     ;;
6592   sysv5* | sco5v6* | sysv4.2uw2*)
6593     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6594     if test -n "$kargmax"; then
6595       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6596     else
6597       lt_cv_sys_max_cmd_len=32768
6598     fi
6599     ;;
6600   *)
6601     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6602     if test -n "$lt_cv_sys_max_cmd_len" && \
6603         test undefined != "$lt_cv_sys_max_cmd_len"; then
6604       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6605       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6606     else
6607       # Make teststring a little bigger before we do anything with it.
6608       # a 1K string should be a reasonable start.
6609       for i in 1 2 3 4 5 6 7 8 ; do
6610         teststring=$teststring$teststring
6611       done
6612       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6613       # If test is not a shell built-in, we'll probably end up computing a
6614       # maximum length that is only half of the actual maximum length, but
6615       # we can't tell.
6616       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6617                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6618               test $i != 17 # 1/2 MB should be enough
6619       do
6620         i=`expr $i + 1`
6621         teststring=$teststring$teststring
6622       done
6623       # Only check the string length outside the loop.
6624       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6625       teststring=
6626       # Add a significant safety factor because C++ compilers can tack on
6627       # massive amounts of additional arguments before passing them to the
6628       # linker.  It appears as though 1/2 is a usable value.
6629       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6630     fi
6631     ;;
6632   esac
6633
6634 fi
6635
6636 if test -n $lt_cv_sys_max_cmd_len ; then
6637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6638 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6639 else
6640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6641 $as_echo "none" >&6; }
6642 fi
6643 max_cmd_len=$lt_cv_sys_max_cmd_len
6644
6645
6646
6647
6648
6649
6650 : ${CP="cp -f"}
6651 : ${MV="mv -f"}
6652 : ${RM="rm -f"}
6653
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6655 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6656 # Try some XSI features
6657 xsi_shell=no
6658 ( _lt_dummy="a/b/c"
6659   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6660       = c,a/b,b/c, \
6661     && eval 'test $(( 1 + 1 )) -eq 2 \
6662     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6663   && xsi_shell=yes
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6665 $as_echo "$xsi_shell" >&6; }
6666
6667
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6669 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6670 lt_shell_append=no
6671 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6672     >/dev/null 2>&1 \
6673   && lt_shell_append=yes
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6675 $as_echo "$lt_shell_append" >&6; }
6676
6677
6678 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6679   lt_unset=unset
6680 else
6681   lt_unset=false
6682 fi
6683
6684
6685
6686
6687
6688 # test EBCDIC or ASCII
6689 case `echo X|tr X '\101'` in
6690  A) # ASCII based system
6691     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6692   lt_SP2NL='tr \040 \012'
6693   lt_NL2SP='tr \015\012 \040\040'
6694   ;;
6695  *) # EBCDIC based system
6696   lt_SP2NL='tr \100 \n'
6697   lt_NL2SP='tr \r\n \100\100'
6698   ;;
6699 esac
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6710 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6711 if ${lt_cv_to_host_file_cmd+:} false; then :
6712   $as_echo_n "(cached) " >&6
6713 else
6714   case $host in
6715   *-*-mingw* )
6716     case $build in
6717       *-*-mingw* ) # actually msys
6718         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6719         ;;
6720       *-*-cygwin* )
6721         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6722         ;;
6723       * ) # otherwise, assume *nix
6724         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6725         ;;
6726     esac
6727     ;;
6728   *-*-cygwin* )
6729     case $build in
6730       *-*-mingw* ) # actually msys
6731         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6732         ;;
6733       *-*-cygwin* )
6734         lt_cv_to_host_file_cmd=func_convert_file_noop
6735         ;;
6736       * ) # otherwise, assume *nix
6737         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6738         ;;
6739     esac
6740     ;;
6741   * ) # unhandled hosts (and "normal" native builds)
6742     lt_cv_to_host_file_cmd=func_convert_file_noop
6743     ;;
6744 esac
6745
6746 fi
6747
6748 to_host_file_cmd=$lt_cv_to_host_file_cmd
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6750 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6751
6752
6753
6754
6755
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6757 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6758 if ${lt_cv_to_tool_file_cmd+:} false; then :
6759   $as_echo_n "(cached) " >&6
6760 else
6761   #assume ordinary cross tools, or native build.
6762 lt_cv_to_tool_file_cmd=func_convert_file_noop
6763 case $host in
6764   *-*-mingw* )
6765     case $build in
6766       *-*-mingw* ) # actually msys
6767         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6768         ;;
6769     esac
6770     ;;
6771 esac
6772
6773 fi
6774
6775 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6777 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6778
6779
6780
6781
6782
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6784 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6785 if ${lt_cv_ld_reload_flag+:} false; then :
6786   $as_echo_n "(cached) " >&6
6787 else
6788   lt_cv_ld_reload_flag='-r'
6789 fi
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6791 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6792 reload_flag=$lt_cv_ld_reload_flag
6793 case $reload_flag in
6794 "" | " "*) ;;
6795 *) reload_flag=" $reload_flag" ;;
6796 esac
6797 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6798 case $host_os in
6799   cygwin* | mingw* | pw32* | cegcc*)
6800     if test "$GCC" != yes; then
6801       reload_cmds=false
6802     fi
6803     ;;
6804   darwin*)
6805     if test "$GCC" = yes; then
6806       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6807     else
6808       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6809     fi
6810     ;;
6811 esac
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821 if test -n "$ac_tool_prefix"; then
6822   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6823 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if ${ac_cv_prog_OBJDUMP+:} false; then :
6827   $as_echo_n "(cached) " >&6
6828 else
6829   if test -n "$OBJDUMP"; then
6830   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835   IFS=$as_save_IFS
6836   test -z "$as_dir" && as_dir=.
6837     for ac_exec_ext in '' $ac_executable_extensions; do
6838   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841     break 2
6842   fi
6843 done
6844   done
6845 IFS=$as_save_IFS
6846
6847 fi
6848 fi
6849 OBJDUMP=$ac_cv_prog_OBJDUMP
6850 if test -n "$OBJDUMP"; then
6851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6852 $as_echo "$OBJDUMP" >&6; }
6853 else
6854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6856 fi
6857
6858
6859 fi
6860 if test -z "$ac_cv_prog_OBJDUMP"; then
6861   ac_ct_OBJDUMP=$OBJDUMP
6862   # Extract the first word of "objdump", so it can be a program name with args.
6863 set dummy objdump; ac_word=$2
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865 $as_echo_n "checking for $ac_word... " >&6; }
6866 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6867   $as_echo_n "(cached) " >&6
6868 else
6869   if test -n "$ac_ct_OBJDUMP"; then
6870   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6871 else
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875   IFS=$as_save_IFS
6876   test -z "$as_dir" && as_dir=.
6877     for ac_exec_ext in '' $ac_executable_extensions; do
6878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6879     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881     break 2
6882   fi
6883 done
6884   done
6885 IFS=$as_save_IFS
6886
6887 fi
6888 fi
6889 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6890 if test -n "$ac_ct_OBJDUMP"; then
6891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6892 $as_echo "$ac_ct_OBJDUMP" >&6; }
6893 else
6894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 $as_echo "no" >&6; }
6896 fi
6897
6898   if test "x$ac_ct_OBJDUMP" = x; then
6899     OBJDUMP="false"
6900   else
6901     case $cross_compiling:$ac_tool_warned in
6902 yes:)
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6905 ac_tool_warned=yes ;;
6906 esac
6907     OBJDUMP=$ac_ct_OBJDUMP
6908   fi
6909 else
6910   OBJDUMP="$ac_cv_prog_OBJDUMP"
6911 fi
6912
6913 test -z "$OBJDUMP" && OBJDUMP=objdump
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6924 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6925 if ${lt_cv_deplibs_check_method+:} false; then :
6926   $as_echo_n "(cached) " >&6
6927 else
6928   lt_cv_file_magic_cmd='$MAGIC_CMD'
6929 lt_cv_file_magic_test_file=
6930 lt_cv_deplibs_check_method='unknown'
6931 # Need to set the preceding variable on all platforms that support
6932 # interlibrary dependencies.
6933 # 'none' -- dependencies not supported.
6934 # `unknown' -- same as none, but documents that we really don't know.
6935 # 'pass_all' -- all dependencies passed with no checks.
6936 # 'test_compile' -- check by making test program.
6937 # 'file_magic [[regex]]' -- check by looking for files in library path
6938 # which responds to the $file_magic_cmd with a given extended regex.
6939 # If you have `file' or equivalent on your system and you're not sure
6940 # whether `pass_all' will *always* work, you probably want this one.
6941
6942 case $host_os in
6943 aix[4-9]*)
6944   lt_cv_deplibs_check_method=pass_all
6945   ;;
6946
6947 beos*)
6948   lt_cv_deplibs_check_method=pass_all
6949   ;;
6950
6951 bsdi[45]*)
6952   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6953   lt_cv_file_magic_cmd='/usr/bin/file -L'
6954   lt_cv_file_magic_test_file=/shlib/libc.so
6955   ;;
6956
6957 cygwin*)
6958   # func_win32_libid is a shell function defined in ltmain.sh
6959   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6960   lt_cv_file_magic_cmd='func_win32_libid'
6961   ;;
6962
6963 mingw* | pw32*)
6964   # Base MSYS/MinGW do not provide the 'file' command needed by
6965   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6966   # unless we find 'file', for example because we are cross-compiling.
6967   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6968   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6969     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6970     lt_cv_file_magic_cmd='func_win32_libid'
6971   else
6972     # Keep this pattern in sync with the one in func_win32_libid.
6973     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6974     lt_cv_file_magic_cmd='$OBJDUMP -f'
6975   fi
6976   ;;
6977
6978 cegcc*)
6979   # use the weaker test based on 'objdump'. See mingw*.
6980   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6981   lt_cv_file_magic_cmd='$OBJDUMP -f'
6982   ;;
6983
6984 darwin* | rhapsody*)
6985   lt_cv_deplibs_check_method=pass_all
6986   ;;
6987
6988 freebsd* | dragonfly*)
6989   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6990     case $host_cpu in
6991     i*86 )
6992       # Not sure whether the presence of OpenBSD here was a mistake.
6993       # Let's accept both of them until this is cleared up.
6994       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6995       lt_cv_file_magic_cmd=/usr/bin/file
6996       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6997       ;;
6998     esac
6999   else
7000     lt_cv_deplibs_check_method=pass_all
7001   fi
7002   ;;
7003
7004 haiku*)
7005   lt_cv_deplibs_check_method=pass_all
7006   ;;
7007
7008 hpux10.20* | hpux11*)
7009   lt_cv_file_magic_cmd=/usr/bin/file
7010   case $host_cpu in
7011   ia64*)
7012     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7013     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7014     ;;
7015   hppa*64*)
7016     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]'
7017     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7018     ;;
7019   *)
7020     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7021     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7022     ;;
7023   esac
7024   ;;
7025
7026 interix[3-9]*)
7027   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7028   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7029   ;;
7030
7031 irix5* | irix6* | nonstopux*)
7032   case $LD in
7033   *-32|*"-32 ") libmagic=32-bit;;
7034   *-n32|*"-n32 ") libmagic=N32;;
7035   *-64|*"-64 ") libmagic=64-bit;;
7036   *) libmagic=never-match;;
7037   esac
7038   lt_cv_deplibs_check_method=pass_all
7039   ;;
7040
7041 # This must be glibc/ELF.
7042 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7043   lt_cv_deplibs_check_method=pass_all
7044   ;;
7045
7046 netbsd* | netbsdelf*-gnu)
7047   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7048     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7049   else
7050     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7051   fi
7052   ;;
7053
7054 newos6*)
7055   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7056   lt_cv_file_magic_cmd=/usr/bin/file
7057   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7058   ;;
7059
7060 *nto* | *qnx*)
7061   lt_cv_deplibs_check_method=pass_all
7062   ;;
7063
7064 openbsd*)
7065   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7066     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7067   else
7068     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7069   fi
7070   ;;
7071
7072 osf3* | osf4* | osf5*)
7073   lt_cv_deplibs_check_method=pass_all
7074   ;;
7075
7076 rdos*)
7077   lt_cv_deplibs_check_method=pass_all
7078   ;;
7079
7080 solaris*)
7081   lt_cv_deplibs_check_method=pass_all
7082   ;;
7083
7084 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7085   lt_cv_deplibs_check_method=pass_all
7086   ;;
7087
7088 sysv4 | sysv4.3*)
7089   case $host_vendor in
7090   motorola)
7091     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]'
7092     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7093     ;;
7094   ncr)
7095     lt_cv_deplibs_check_method=pass_all
7096     ;;
7097   sequent)
7098     lt_cv_file_magic_cmd='/bin/file'
7099     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7100     ;;
7101   sni)
7102     lt_cv_file_magic_cmd='/bin/file'
7103     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7104     lt_cv_file_magic_test_file=/lib/libc.so
7105     ;;
7106   siemens)
7107     lt_cv_deplibs_check_method=pass_all
7108     ;;
7109   pc)
7110     lt_cv_deplibs_check_method=pass_all
7111     ;;
7112   esac
7113   ;;
7114
7115 tpf*)
7116   lt_cv_deplibs_check_method=pass_all
7117   ;;
7118 esac
7119
7120 fi
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7122 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7123
7124 file_magic_glob=
7125 want_nocaseglob=no
7126 if test "$build" = "$host"; then
7127   case $host_os in
7128   mingw* | pw32*)
7129     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7130       want_nocaseglob=yes
7131     else
7132       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7133     fi
7134     ;;
7135   esac
7136 fi
7137
7138 file_magic_cmd=$lt_cv_file_magic_cmd
7139 deplibs_check_method=$lt_cv_deplibs_check_method
7140 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163 if test -n "$ac_tool_prefix"; then
7164   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7165 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167 $as_echo_n "checking for $ac_word... " >&6; }
7168 if ${ac_cv_prog_DLLTOOL+:} false; then :
7169   $as_echo_n "(cached) " >&6
7170 else
7171   if test -n "$DLLTOOL"; then
7172   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7173 else
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7176 do
7177   IFS=$as_save_IFS
7178   test -z "$as_dir" && as_dir=.
7179     for ac_exec_ext in '' $ac_executable_extensions; do
7180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7183     break 2
7184   fi
7185 done
7186   done
7187 IFS=$as_save_IFS
7188
7189 fi
7190 fi
7191 DLLTOOL=$ac_cv_prog_DLLTOOL
7192 if test -n "$DLLTOOL"; then
7193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7194 $as_echo "$DLLTOOL" >&6; }
7195 else
7196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197 $as_echo "no" >&6; }
7198 fi
7199
7200
7201 fi
7202 if test -z "$ac_cv_prog_DLLTOOL"; then
7203   ac_ct_DLLTOOL=$DLLTOOL
7204   # Extract the first word of "dlltool", so it can be a program name with args.
7205 set dummy dlltool; ac_word=$2
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207 $as_echo_n "checking for $ac_word... " >&6; }
7208 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7209   $as_echo_n "(cached) " >&6
7210 else
7211   if test -n "$ac_ct_DLLTOOL"; then
7212   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7213 else
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217   IFS=$as_save_IFS
7218   test -z "$as_dir" && as_dir=.
7219     for ac_exec_ext in '' $ac_executable_extensions; do
7220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223     break 2
7224   fi
7225 done
7226   done
7227 IFS=$as_save_IFS
7228
7229 fi
7230 fi
7231 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7232 if test -n "$ac_ct_DLLTOOL"; then
7233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7234 $as_echo "$ac_ct_DLLTOOL" >&6; }
7235 else
7236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7238 fi
7239
7240   if test "x$ac_ct_DLLTOOL" = x; then
7241     DLLTOOL="false"
7242   else
7243     case $cross_compiling:$ac_tool_warned in
7244 yes:)
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7247 ac_tool_warned=yes ;;
7248 esac
7249     DLLTOOL=$ac_ct_DLLTOOL
7250   fi
7251 else
7252   DLLTOOL="$ac_cv_prog_DLLTOOL"
7253 fi
7254
7255 test -z "$DLLTOOL" && DLLTOOL=dlltool
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7267 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7268 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7269   $as_echo_n "(cached) " >&6
7270 else
7271   lt_cv_sharedlib_from_linklib_cmd='unknown'
7272
7273 case $host_os in
7274 cygwin* | mingw* | pw32* | cegcc*)
7275   # two different shell functions defined in ltmain.sh
7276   # decide which to use based on capabilities of $DLLTOOL
7277   case `$DLLTOOL --help 2>&1` in
7278   *--identify-strict*)
7279     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7280     ;;
7281   *)
7282     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7283     ;;
7284   esac
7285   ;;
7286 *)
7287   # fallback: assume linklib IS sharedlib
7288   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7289   ;;
7290 esac
7291
7292 fi
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7294 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7295 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7296 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7297
7298
7299
7300
7301
7302
7303
7304 if test -n "$ac_tool_prefix"; then
7305   for ac_prog in ar
7306   do
7307     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310 $as_echo_n "checking for $ac_word... " >&6; }
7311 if ${ac_cv_prog_AR+:} false; then :
7312   $as_echo_n "(cached) " >&6
7313 else
7314   if test -n "$AR"; then
7315   ac_cv_prog_AR="$AR" # Let the user override the test.
7316 else
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 for as_dir in $PATH
7319 do
7320   IFS=$as_save_IFS
7321   test -z "$as_dir" && as_dir=.
7322     for ac_exec_ext in '' $ac_executable_extensions; do
7323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7326     break 2
7327   fi
7328 done
7329   done
7330 IFS=$as_save_IFS
7331
7332 fi
7333 fi
7334 AR=$ac_cv_prog_AR
7335 if test -n "$AR"; then
7336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7337 $as_echo "$AR" >&6; }
7338 else
7339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7341 fi
7342
7343
7344     test -n "$AR" && break
7345   done
7346 fi
7347 if test -z "$AR"; then
7348   ac_ct_AR=$AR
7349   for ac_prog in ar
7350 do
7351   # Extract the first word of "$ac_prog", so it can be a program name with args.
7352 set dummy $ac_prog; ac_word=$2
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354 $as_echo_n "checking for $ac_word... " >&6; }
7355 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7356   $as_echo_n "(cached) " >&6
7357 else
7358   if test -n "$ac_ct_AR"; then
7359   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7360 else
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7363 do
7364   IFS=$as_save_IFS
7365   test -z "$as_dir" && as_dir=.
7366     for ac_exec_ext in '' $ac_executable_extensions; do
7367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368     ac_cv_prog_ac_ct_AR="$ac_prog"
7369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370     break 2
7371   fi
7372 done
7373   done
7374 IFS=$as_save_IFS
7375
7376 fi
7377 fi
7378 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7379 if test -n "$ac_ct_AR"; then
7380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7381 $as_echo "$ac_ct_AR" >&6; }
7382 else
7383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7385 fi
7386
7387
7388   test -n "$ac_ct_AR" && break
7389 done
7390
7391   if test "x$ac_ct_AR" = x; then
7392     AR="false"
7393   else
7394     case $cross_compiling:$ac_tool_warned in
7395 yes:)
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7398 ac_tool_warned=yes ;;
7399 esac
7400     AR=$ac_ct_AR
7401   fi
7402 fi
7403
7404 : ${AR=ar}
7405 : ${AR_FLAGS=cru}
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7418 $as_echo_n "checking for archiver @FILE support... " >&6; }
7419 if ${lt_cv_ar_at_file+:} false; then :
7420   $as_echo_n "(cached) " >&6
7421 else
7422   lt_cv_ar_at_file=no
7423    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h.  */
7425
7426 int
7427 main ()
7428 {
7429
7430   ;
7431   return 0;
7432 }
7433 _ACEOF
7434 if ac_fn_c_try_compile "$LINENO"; then :
7435   echo conftest.$ac_objext > conftest.lst
7436       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7437       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7438   (eval $lt_ar_try) 2>&5
7439   ac_status=$?
7440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7441   test $ac_status = 0; }
7442       if test "$ac_status" -eq 0; then
7443         # Ensure the archiver fails upon bogus file names.
7444         rm -f conftest.$ac_objext libconftest.a
7445         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7446   (eval $lt_ar_try) 2>&5
7447   ac_status=$?
7448   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7449   test $ac_status = 0; }
7450         if test "$ac_status" -ne 0; then
7451           lt_cv_ar_at_file=@
7452         fi
7453       fi
7454       rm -f conftest.* libconftest.a
7455
7456 fi
7457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7458
7459 fi
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7461 $as_echo "$lt_cv_ar_at_file" >&6; }
7462
7463 if test "x$lt_cv_ar_at_file" = xno; then
7464   archiver_list_spec=
7465 else
7466   archiver_list_spec=$lt_cv_ar_at_file
7467 fi
7468
7469
7470
7471
7472
7473
7474
7475 if test -n "$ac_tool_prefix"; then
7476   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7477 set dummy ${ac_tool_prefix}strip; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 $as_echo_n "checking for $ac_word... " >&6; }
7480 if ${ac_cv_prog_STRIP+:} false; then :
7481   $as_echo_n "(cached) " >&6
7482 else
7483   if test -n "$STRIP"; then
7484   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7485 else
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7488 do
7489   IFS=$as_save_IFS
7490   test -z "$as_dir" && as_dir=.
7491     for ac_exec_ext in '' $ac_executable_extensions; do
7492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495     break 2
7496   fi
7497 done
7498   done
7499 IFS=$as_save_IFS
7500
7501 fi
7502 fi
7503 STRIP=$ac_cv_prog_STRIP
7504 if test -n "$STRIP"; then
7505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7506 $as_echo "$STRIP" >&6; }
7507 else
7508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7510 fi
7511
7512
7513 fi
7514 if test -z "$ac_cv_prog_STRIP"; then
7515   ac_ct_STRIP=$STRIP
7516   # Extract the first word of "strip", so it can be a program name with args.
7517 set dummy strip; ac_word=$2
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519 $as_echo_n "checking for $ac_word... " >&6; }
7520 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7521   $as_echo_n "(cached) " >&6
7522 else
7523   if test -n "$ac_ct_STRIP"; then
7524   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7525 else
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 for as_dir in $PATH
7528 do
7529   IFS=$as_save_IFS
7530   test -z "$as_dir" && as_dir=.
7531     for ac_exec_ext in '' $ac_executable_extensions; do
7532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7533     ac_cv_prog_ac_ct_STRIP="strip"
7534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535     break 2
7536   fi
7537 done
7538   done
7539 IFS=$as_save_IFS
7540
7541 fi
7542 fi
7543 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7544 if test -n "$ac_ct_STRIP"; then
7545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7546 $as_echo "$ac_ct_STRIP" >&6; }
7547 else
7548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549 $as_echo "no" >&6; }
7550 fi
7551
7552   if test "x$ac_ct_STRIP" = x; then
7553     STRIP=":"
7554   else
7555     case $cross_compiling:$ac_tool_warned in
7556 yes:)
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7559 ac_tool_warned=yes ;;
7560 esac
7561     STRIP=$ac_ct_STRIP
7562   fi
7563 else
7564   STRIP="$ac_cv_prog_STRIP"
7565 fi
7566
7567 test -z "$STRIP" && STRIP=:
7568
7569
7570
7571
7572
7573
7574 if test -n "$ac_tool_prefix"; then
7575   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7576 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578 $as_echo_n "checking for $ac_word... " >&6; }
7579 if ${ac_cv_prog_RANLIB+:} false; then :
7580   $as_echo_n "(cached) " >&6
7581 else
7582   if test -n "$RANLIB"; then
7583   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7584 else
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 for as_dir in $PATH
7587 do
7588   IFS=$as_save_IFS
7589   test -z "$as_dir" && as_dir=.
7590     for ac_exec_ext in '' $ac_executable_extensions; do
7591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7592     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7594     break 2
7595   fi
7596 done
7597   done
7598 IFS=$as_save_IFS
7599
7600 fi
7601 fi
7602 RANLIB=$ac_cv_prog_RANLIB
7603 if test -n "$RANLIB"; then
7604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7605 $as_echo "$RANLIB" >&6; }
7606 else
7607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7609 fi
7610
7611
7612 fi
7613 if test -z "$ac_cv_prog_RANLIB"; then
7614   ac_ct_RANLIB=$RANLIB
7615   # Extract the first word of "ranlib", so it can be a program name with args.
7616 set dummy ranlib; ac_word=$2
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618 $as_echo_n "checking for $ac_word... " >&6; }
7619 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7620   $as_echo_n "(cached) " >&6
7621 else
7622   if test -n "$ac_ct_RANLIB"; then
7623   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7624 else
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 for as_dir in $PATH
7627 do
7628   IFS=$as_save_IFS
7629   test -z "$as_dir" && as_dir=.
7630     for ac_exec_ext in '' $ac_executable_extensions; do
7631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7632     ac_cv_prog_ac_ct_RANLIB="ranlib"
7633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634     break 2
7635   fi
7636 done
7637   done
7638 IFS=$as_save_IFS
7639
7640 fi
7641 fi
7642 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7643 if test -n "$ac_ct_RANLIB"; then
7644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7645 $as_echo "$ac_ct_RANLIB" >&6; }
7646 else
7647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648 $as_echo "no" >&6; }
7649 fi
7650
7651   if test "x$ac_ct_RANLIB" = x; then
7652     RANLIB=":"
7653   else
7654     case $cross_compiling:$ac_tool_warned in
7655 yes:)
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7658 ac_tool_warned=yes ;;
7659 esac
7660     RANLIB=$ac_ct_RANLIB
7661   fi
7662 else
7663   RANLIB="$ac_cv_prog_RANLIB"
7664 fi
7665
7666 test -z "$RANLIB" && RANLIB=:
7667
7668
7669
7670
7671
7672
7673 # Determine commands to create old-style static archives.
7674 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7675 old_postinstall_cmds='chmod 644 $oldlib'
7676 old_postuninstall_cmds=
7677
7678 if test -n "$RANLIB"; then
7679   case $host_os in
7680   openbsd*)
7681     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7682     ;;
7683   *)
7684     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7685     ;;
7686   esac
7687   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7688 fi
7689
7690 case $host_os in
7691   darwin*)
7692     lock_old_archive_extraction=yes ;;
7693   *)
7694     lock_old_archive_extraction=no ;;
7695 esac
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735 # If no C compiler was specified, use CC.
7736 LTCC=${LTCC-"$CC"}
7737
7738 # If no C compiler flags were specified, use CFLAGS.
7739 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7740
7741 # Allow CC to be a program name with arguments.
7742 compiler=$CC
7743
7744
7745 # Check for command to grab the raw symbol name followed by C symbol from nm.
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7747 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7748 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7749   $as_echo_n "(cached) " >&6
7750 else
7751
7752 # These are sane defaults that work on at least a few old systems.
7753 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7754
7755 # Character class describing NM global symbol codes.
7756 symcode='[BCDEGRST]'
7757
7758 # Regexp to match symbols that can be accessed directly from C.
7759 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7760
7761 # Define system-specific variables.
7762 case $host_os in
7763 aix*)
7764   symcode='[BCDT]'
7765   ;;
7766 cygwin* | mingw* | pw32* | cegcc*)
7767   symcode='[ABCDGISTW]'
7768   ;;
7769 hpux*)
7770   if test "$host_cpu" = ia64; then
7771     symcode='[ABCDEGRST]'
7772   fi
7773   ;;
7774 irix* | nonstopux*)
7775   symcode='[BCDEGRST]'
7776   ;;
7777 osf*)
7778   symcode='[BCDEGQRST]'
7779   ;;
7780 solaris*)
7781   symcode='[BDRT]'
7782   ;;
7783 sco3.2v5*)
7784   symcode='[DT]'
7785   ;;
7786 sysv4.2uw2*)
7787   symcode='[DT]'
7788   ;;
7789 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7790   symcode='[ABDT]'
7791   ;;
7792 sysv4)
7793   symcode='[DFNSTU]'
7794   ;;
7795 esac
7796
7797 # If we're using GNU nm, then use its standard symbol codes.
7798 case `$NM -V 2>&1` in
7799 *GNU* | *'with BFD'*)
7800   symcode='[ABCDGIRSTW]' ;;
7801 esac
7802
7803 # Transform an extracted symbol line into a proper C declaration.
7804 # Some systems (esp. on ia64) link data and code symbols differently,
7805 # so use this general approach.
7806 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7807
7808 # Transform an extracted symbol line into symbol name and symbol address
7809 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7810 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'"
7811
7812 # Handle CRLF in mingw tool chain
7813 opt_cr=
7814 case $build_os in
7815 mingw*)
7816   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7817   ;;
7818 esac
7819
7820 # Try without a prefix underscore, then with it.
7821 for ac_symprfx in "" "_"; do
7822
7823   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7824   symxfrm="\\1 $ac_symprfx\\2 \\2"
7825
7826   # Write the raw and C identifiers.
7827   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7828     # Fake it for dumpbin and say T for any non-static function
7829     # and D for any global variable.
7830     # Also find C++ and __fastcall symbols from MSVC++,
7831     # which start with @ or ?.
7832     lt_cv_sys_global_symbol_pipe="$AWK '"\
7833 "     {last_section=section; section=\$ 3};"\
7834 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7835 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7836 "     \$ 0!~/External *\|/{next};"\
7837 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7838 "     {if(hide[section]) next};"\
7839 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7840 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7841 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7842 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7843 "     ' prfx=^$ac_symprfx"
7844   else
7845     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7846   fi
7847   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7848
7849   # Check to see that the pipe works correctly.
7850   pipe_works=no
7851
7852   rm -f conftest*
7853   cat > conftest.$ac_ext <<_LT_EOF
7854 #ifdef __cplusplus
7855 extern "C" {
7856 #endif
7857 char nm_test_var;
7858 void nm_test_func(void);
7859 void nm_test_func(void){}
7860 #ifdef __cplusplus
7861 }
7862 #endif
7863 int main(){nm_test_var='a';nm_test_func();return(0);}
7864 _LT_EOF
7865
7866   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7867   (eval $ac_compile) 2>&5
7868   ac_status=$?
7869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7870   test $ac_status = 0; }; then
7871     # Now try to grab the symbols.
7872     nlist=conftest.nm
7873     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7874   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7875   ac_status=$?
7876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7877   test $ac_status = 0; } && test -s "$nlist"; then
7878       # Try sorting and uniquifying the output.
7879       if sort "$nlist" | uniq > "$nlist"T; then
7880         mv -f "$nlist"T "$nlist"
7881       else
7882         rm -f "$nlist"T
7883       fi
7884
7885       # Make sure that we snagged all the symbols we need.
7886       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7887         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7888           cat <<_LT_EOF > conftest.$ac_ext
7889 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7890 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7891 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7892    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7893 # define LT_DLSYM_CONST
7894 #elif defined(__osf__)
7895 /* This system does not cope well with relocations in const data.  */
7896 # define LT_DLSYM_CONST
7897 #else
7898 # define LT_DLSYM_CONST const
7899 #endif
7900
7901 #ifdef __cplusplus
7902 extern "C" {
7903 #endif
7904
7905 _LT_EOF
7906           # Now generate the symbol file.
7907           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7908
7909           cat <<_LT_EOF >> conftest.$ac_ext
7910
7911 /* The mapping between symbol names and symbols.  */
7912 LT_DLSYM_CONST struct {
7913   const char *name;
7914   void       *address;
7915 }
7916 lt__PROGRAM__LTX_preloaded_symbols[] =
7917 {
7918   { "@PROGRAM@", (void *) 0 },
7919 _LT_EOF
7920           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7921           cat <<\_LT_EOF >> conftest.$ac_ext
7922   {0, (void *) 0}
7923 };
7924
7925 /* This works around a problem in FreeBSD linker */
7926 #ifdef FREEBSD_WORKAROUND
7927 static const void *lt_preloaded_setup() {
7928   return lt__PROGRAM__LTX_preloaded_symbols;
7929 }
7930 #endif
7931
7932 #ifdef __cplusplus
7933 }
7934 #endif
7935 _LT_EOF
7936           # Now try linking the two files.
7937           mv conftest.$ac_objext conftstm.$ac_objext
7938           lt_globsym_save_LIBS=$LIBS
7939           lt_globsym_save_CFLAGS=$CFLAGS
7940           LIBS="conftstm.$ac_objext"
7941           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7942           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7943   (eval $ac_link) 2>&5
7944   ac_status=$?
7945   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7946   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7947             pipe_works=yes
7948           fi
7949           LIBS=$lt_globsym_save_LIBS
7950           CFLAGS=$lt_globsym_save_CFLAGS
7951         else
7952           echo "cannot find nm_test_func in $nlist" >&5
7953         fi
7954       else
7955         echo "cannot find nm_test_var in $nlist" >&5
7956       fi
7957     else
7958       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7959     fi
7960   else
7961     echo "$progname: failed program was:" >&5
7962     cat conftest.$ac_ext >&5
7963   fi
7964   rm -rf conftest* conftst*
7965
7966   # Do not use the global_symbol_pipe unless it works.
7967   if test "$pipe_works" = yes; then
7968     break
7969   else
7970     lt_cv_sys_global_symbol_pipe=
7971   fi
7972 done
7973
7974 fi
7975
7976 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7977   lt_cv_sys_global_symbol_to_cdecl=
7978 fi
7979 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7981 $as_echo "failed" >&6; }
7982 else
7983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7984 $as_echo "ok" >&6; }
7985 fi
7986
7987 # Response file support.
7988 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7989   nm_file_list_spec='@'
7990 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7991   nm_file_list_spec='@'
7992 fi
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8021 $as_echo_n "checking for sysroot... " >&6; }
8022
8023 # Check whether --with-sysroot was given.
8024 if test "${with_sysroot+set}" = set; then :
8025   withval=$with_sysroot;
8026 else
8027   with_sysroot=no
8028 fi
8029
8030
8031 lt_sysroot=
8032 case ${with_sysroot} in #(
8033  yes)
8034    if test "$GCC" = yes; then
8035      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8036    fi
8037    ;; #(
8038  /*)
8039    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8040    ;; #(
8041  no|'')
8042    ;; #(
8043  *)
8044    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8045 $as_echo "${with_sysroot}" >&6; }
8046    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8047    ;;
8048 esac
8049
8050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8051 $as_echo "${lt_sysroot:-no}" >&6; }
8052
8053
8054
8055
8056
8057 # Check whether --enable-libtool-lock was given.
8058 if test "${enable_libtool_lock+set}" = set; then :
8059   enableval=$enable_libtool_lock;
8060 fi
8061
8062 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8063
8064 # Some flags need to be propagated to the compiler or linker for good
8065 # libtool support.
8066 case $host in
8067 ia64-*-hpux*)
8068   # Find out which ABI we are using.
8069   echo 'int i;' > conftest.$ac_ext
8070   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8071   (eval $ac_compile) 2>&5
8072   ac_status=$?
8073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8074   test $ac_status = 0; }; then
8075     case `/usr/bin/file conftest.$ac_objext` in
8076       *ELF-32*)
8077         HPUX_IA64_MODE="32"
8078         ;;
8079       *ELF-64*)
8080         HPUX_IA64_MODE="64"
8081         ;;
8082     esac
8083   fi
8084   rm -rf conftest*
8085   ;;
8086 *-*-irix6*)
8087   # Find out which ABI we are using.
8088   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8089   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8090   (eval $ac_compile) 2>&5
8091   ac_status=$?
8092   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8093   test $ac_status = 0; }; then
8094     if test "$lt_cv_prog_gnu_ld" = yes; then
8095       case `/usr/bin/file conftest.$ac_objext` in
8096         *32-bit*)
8097           LD="${LD-ld} -melf32bsmip"
8098           ;;
8099         *N32*)
8100           LD="${LD-ld} -melf32bmipn32"
8101           ;;
8102         *64-bit*)
8103           LD="${LD-ld} -melf64bmip"
8104         ;;
8105       esac
8106     else
8107       case `/usr/bin/file conftest.$ac_objext` in
8108         *32-bit*)
8109           LD="${LD-ld} -32"
8110           ;;
8111         *N32*)
8112           LD="${LD-ld} -n32"
8113           ;;
8114         *64-bit*)
8115           LD="${LD-ld} -64"
8116           ;;
8117       esac
8118     fi
8119   fi
8120   rm -rf conftest*
8121   ;;
8122
8123 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8124 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8125   # Find out which ABI we are using.
8126   echo 'int i;' > conftest.$ac_ext
8127   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8128   (eval $ac_compile) 2>&5
8129   ac_status=$?
8130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8131   test $ac_status = 0; }; then
8132     case `/usr/bin/file conftest.o` in
8133       *32-bit*)
8134         case $host in
8135           x86_64-*kfreebsd*-gnu)
8136             LD="${LD-ld} -m elf_i386_fbsd"
8137             ;;
8138           x86_64-*linux*)
8139             case `/usr/bin/file conftest.o` in
8140               *x86-64*)
8141                 LD="${LD-ld} -m elf32_x86_64"
8142                 ;;
8143               *)
8144                 LD="${LD-ld} -m elf_i386"
8145                 ;;
8146             esac
8147             ;;
8148           powerpc64le-*)
8149             LD="${LD-ld} -m elf32lppclinux"
8150             ;;
8151           powerpc64-*)
8152             LD="${LD-ld} -m elf32ppclinux"
8153             ;;
8154           s390x-*linux*)
8155             LD="${LD-ld} -m elf_s390"
8156             ;;
8157           sparc64-*linux*)
8158             LD="${LD-ld} -m elf32_sparc"
8159             ;;
8160         esac
8161         ;;
8162       *64-bit*)
8163         case $host in
8164           x86_64-*kfreebsd*-gnu)
8165             LD="${LD-ld} -m elf_x86_64_fbsd"
8166             ;;
8167           x86_64-*linux*)
8168             LD="${LD-ld} -m elf_x86_64"
8169             ;;
8170           powerpcle-*)
8171             LD="${LD-ld} -m elf64lppc"
8172             ;;
8173           powerpc-*)
8174             LD="${LD-ld} -m elf64ppc"
8175             ;;
8176           s390*-*linux*|s390*-*tpf*)
8177             LD="${LD-ld} -m elf64_s390"
8178             ;;
8179           sparc*-*linux*)
8180             LD="${LD-ld} -m elf64_sparc"
8181             ;;
8182         esac
8183         ;;
8184     esac
8185   fi
8186   rm -rf conftest*
8187   ;;
8188
8189 *-*-sco3.2v5*)
8190   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8191   SAVE_CFLAGS="$CFLAGS"
8192   CFLAGS="$CFLAGS -belf"
8193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8194 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8195 if ${lt_cv_cc_needs_belf+:} false; then :
8196   $as_echo_n "(cached) " >&6
8197 else
8198   ac_ext=c
8199 ac_cpp='$CPP $CPPFLAGS'
8200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8203
8204      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h.  */
8206
8207 int
8208 main ()
8209 {
8210
8211   ;
8212   return 0;
8213 }
8214 _ACEOF
8215 if ac_fn_c_try_link "$LINENO"; then :
8216   lt_cv_cc_needs_belf=yes
8217 else
8218   lt_cv_cc_needs_belf=no
8219 fi
8220 rm -f core conftest.err conftest.$ac_objext \
8221     conftest$ac_exeext conftest.$ac_ext
8222      ac_ext=c
8223 ac_cpp='$CPP $CPPFLAGS'
8224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8227
8228 fi
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8230 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8231   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8232     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8233     CFLAGS="$SAVE_CFLAGS"
8234   fi
8235   ;;
8236 *-*solaris*)
8237   # Find out which ABI we are using.
8238   echo 'int i;' > conftest.$ac_ext
8239   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8240   (eval $ac_compile) 2>&5
8241   ac_status=$?
8242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8243   test $ac_status = 0; }; then
8244     case `/usr/bin/file conftest.o` in
8245     *64-bit*)
8246       case $lt_cv_prog_gnu_ld in
8247       yes*)
8248         case $host in
8249         i?86-*-solaris*)
8250           LD="${LD-ld} -m elf_x86_64"
8251           ;;
8252         sparc*-*-solaris*)
8253           LD="${LD-ld} -m elf64_sparc"
8254           ;;
8255         esac
8256         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8257         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8258           LD="${LD-ld}_sol2"
8259         fi
8260         ;;
8261       *)
8262         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8263           LD="${LD-ld} -64"
8264         fi
8265         ;;
8266       esac
8267       ;;
8268     esac
8269   fi
8270   rm -rf conftest*
8271   ;;
8272 esac
8273
8274 need_locks="$enable_libtool_lock"
8275
8276 if test -n "$ac_tool_prefix"; then
8277   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8278 set dummy ${ac_tool_prefix}mt; ac_word=$2
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8280 $as_echo_n "checking for $ac_word... " >&6; }
8281 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8282   $as_echo_n "(cached) " >&6
8283 else
8284   if test -n "$MANIFEST_TOOL"; then
8285   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8286 else
8287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8288 for as_dir in $PATH
8289 do
8290   IFS=$as_save_IFS
8291   test -z "$as_dir" && as_dir=.
8292     for ac_exec_ext in '' $ac_executable_extensions; do
8293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8294     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8296     break 2
8297   fi
8298 done
8299   done
8300 IFS=$as_save_IFS
8301
8302 fi
8303 fi
8304 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8305 if test -n "$MANIFEST_TOOL"; then
8306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8307 $as_echo "$MANIFEST_TOOL" >&6; }
8308 else
8309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310 $as_echo "no" >&6; }
8311 fi
8312
8313
8314 fi
8315 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8316   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8317   # Extract the first word of "mt", so it can be a program name with args.
8318 set dummy mt; ac_word=$2
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8320 $as_echo_n "checking for $ac_word... " >&6; }
8321 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8322   $as_echo_n "(cached) " >&6
8323 else
8324   if test -n "$ac_ct_MANIFEST_TOOL"; then
8325   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8326 else
8327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328 for as_dir in $PATH
8329 do
8330   IFS=$as_save_IFS
8331   test -z "$as_dir" && as_dir=.
8332     for ac_exec_ext in '' $ac_executable_extensions; do
8333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8334     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8336     break 2
8337   fi
8338 done
8339   done
8340 IFS=$as_save_IFS
8341
8342 fi
8343 fi
8344 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8345 if test -n "$ac_ct_MANIFEST_TOOL"; then
8346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8347 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8348 else
8349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 $as_echo "no" >&6; }
8351 fi
8352
8353   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8354     MANIFEST_TOOL=":"
8355   else
8356     case $cross_compiling:$ac_tool_warned in
8357 yes:)
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8360 ac_tool_warned=yes ;;
8361 esac
8362     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8363   fi
8364 else
8365   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8366 fi
8367
8368 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8370 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8371 if ${lt_cv_path_mainfest_tool+:} false; then :
8372   $as_echo_n "(cached) " >&6
8373 else
8374   lt_cv_path_mainfest_tool=no
8375   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8376   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8377   cat conftest.err >&5
8378   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8379     lt_cv_path_mainfest_tool=yes
8380   fi
8381   rm -f conftest*
8382 fi
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8384 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8385 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8386   MANIFEST_TOOL=:
8387 fi
8388
8389
8390
8391
8392
8393
8394   case $host_os in
8395     rhapsody* | darwin*)
8396     if test -n "$ac_tool_prefix"; then
8397   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8398 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 $as_echo_n "checking for $ac_word... " >&6; }
8401 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8402   $as_echo_n "(cached) " >&6
8403 else
8404   if test -n "$DSYMUTIL"; then
8405   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8406 else
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 for as_dir in $PATH
8409 do
8410   IFS=$as_save_IFS
8411   test -z "$as_dir" && as_dir=.
8412     for ac_exec_ext in '' $ac_executable_extensions; do
8413   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8416     break 2
8417   fi
8418 done
8419   done
8420 IFS=$as_save_IFS
8421
8422 fi
8423 fi
8424 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8425 if test -n "$DSYMUTIL"; then
8426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8427 $as_echo "$DSYMUTIL" >&6; }
8428 else
8429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8431 fi
8432
8433
8434 fi
8435 if test -z "$ac_cv_prog_DSYMUTIL"; then
8436   ac_ct_DSYMUTIL=$DSYMUTIL
8437   # Extract the first word of "dsymutil", so it can be a program name with args.
8438 set dummy dsymutil; ac_word=$2
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440 $as_echo_n "checking for $ac_word... " >&6; }
8441 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8442   $as_echo_n "(cached) " >&6
8443 else
8444   if test -n "$ac_ct_DSYMUTIL"; then
8445   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8446 else
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448 for as_dir in $PATH
8449 do
8450   IFS=$as_save_IFS
8451   test -z "$as_dir" && as_dir=.
8452     for ac_exec_ext in '' $ac_executable_extensions; do
8453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8454     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8456     break 2
8457   fi
8458 done
8459   done
8460 IFS=$as_save_IFS
8461
8462 fi
8463 fi
8464 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8465 if test -n "$ac_ct_DSYMUTIL"; then
8466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8467 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8468 else
8469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 $as_echo "no" >&6; }
8471 fi
8472
8473   if test "x$ac_ct_DSYMUTIL" = x; then
8474     DSYMUTIL=":"
8475   else
8476     case $cross_compiling:$ac_tool_warned in
8477 yes:)
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8480 ac_tool_warned=yes ;;
8481 esac
8482     DSYMUTIL=$ac_ct_DSYMUTIL
8483   fi
8484 else
8485   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8486 fi
8487
8488     if test -n "$ac_tool_prefix"; then
8489   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8490 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8492 $as_echo_n "checking for $ac_word... " >&6; }
8493 if ${ac_cv_prog_NMEDIT+:} false; then :
8494   $as_echo_n "(cached) " >&6
8495 else
8496   if test -n "$NMEDIT"; then
8497   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8498 else
8499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500 for as_dir in $PATH
8501 do
8502   IFS=$as_save_IFS
8503   test -z "$as_dir" && as_dir=.
8504     for ac_exec_ext in '' $ac_executable_extensions; do
8505   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8506     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8508     break 2
8509   fi
8510 done
8511   done
8512 IFS=$as_save_IFS
8513
8514 fi
8515 fi
8516 NMEDIT=$ac_cv_prog_NMEDIT
8517 if test -n "$NMEDIT"; then
8518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8519 $as_echo "$NMEDIT" >&6; }
8520 else
8521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522 $as_echo "no" >&6; }
8523 fi
8524
8525
8526 fi
8527 if test -z "$ac_cv_prog_NMEDIT"; then
8528   ac_ct_NMEDIT=$NMEDIT
8529   # Extract the first word of "nmedit", so it can be a program name with args.
8530 set dummy nmedit; ac_word=$2
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532 $as_echo_n "checking for $ac_word... " >&6; }
8533 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8534   $as_echo_n "(cached) " >&6
8535 else
8536   if test -n "$ac_ct_NMEDIT"; then
8537   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8538 else
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540 for as_dir in $PATH
8541 do
8542   IFS=$as_save_IFS
8543   test -z "$as_dir" && as_dir=.
8544     for ac_exec_ext in '' $ac_executable_extensions; do
8545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8546     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8548     break 2
8549   fi
8550 done
8551   done
8552 IFS=$as_save_IFS
8553
8554 fi
8555 fi
8556 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8557 if test -n "$ac_ct_NMEDIT"; then
8558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8559 $as_echo "$ac_ct_NMEDIT" >&6; }
8560 else
8561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562 $as_echo "no" >&6; }
8563 fi
8564
8565   if test "x$ac_ct_NMEDIT" = x; then
8566     NMEDIT=":"
8567   else
8568     case $cross_compiling:$ac_tool_warned in
8569 yes:)
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8572 ac_tool_warned=yes ;;
8573 esac
8574     NMEDIT=$ac_ct_NMEDIT
8575   fi
8576 else
8577   NMEDIT="$ac_cv_prog_NMEDIT"
8578 fi
8579
8580     if test -n "$ac_tool_prefix"; then
8581   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8582 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8584 $as_echo_n "checking for $ac_word... " >&6; }
8585 if ${ac_cv_prog_LIPO+:} false; then :
8586   $as_echo_n "(cached) " >&6
8587 else
8588   if test -n "$LIPO"; then
8589   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8590 else
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592 for as_dir in $PATH
8593 do
8594   IFS=$as_save_IFS
8595   test -z "$as_dir" && as_dir=.
8596     for ac_exec_ext in '' $ac_executable_extensions; do
8597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8598     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8600     break 2
8601   fi
8602 done
8603   done
8604 IFS=$as_save_IFS
8605
8606 fi
8607 fi
8608 LIPO=$ac_cv_prog_LIPO
8609 if test -n "$LIPO"; then
8610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8611 $as_echo "$LIPO" >&6; }
8612 else
8613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 $as_echo "no" >&6; }
8615 fi
8616
8617
8618 fi
8619 if test -z "$ac_cv_prog_LIPO"; then
8620   ac_ct_LIPO=$LIPO
8621   # Extract the first word of "lipo", so it can be a program name with args.
8622 set dummy lipo; ac_word=$2
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8624 $as_echo_n "checking for $ac_word... " >&6; }
8625 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8626   $as_echo_n "(cached) " >&6
8627 else
8628   if test -n "$ac_ct_LIPO"; then
8629   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8630 else
8631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8632 for as_dir in $PATH
8633 do
8634   IFS=$as_save_IFS
8635   test -z "$as_dir" && as_dir=.
8636     for ac_exec_ext in '' $ac_executable_extensions; do
8637   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8638     ac_cv_prog_ac_ct_LIPO="lipo"
8639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8640     break 2
8641   fi
8642 done
8643   done
8644 IFS=$as_save_IFS
8645
8646 fi
8647 fi
8648 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8649 if test -n "$ac_ct_LIPO"; then
8650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8651 $as_echo "$ac_ct_LIPO" >&6; }
8652 else
8653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8654 $as_echo "no" >&6; }
8655 fi
8656
8657   if test "x$ac_ct_LIPO" = x; then
8658     LIPO=":"
8659   else
8660     case $cross_compiling:$ac_tool_warned in
8661 yes:)
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8664 ac_tool_warned=yes ;;
8665 esac
8666     LIPO=$ac_ct_LIPO
8667   fi
8668 else
8669   LIPO="$ac_cv_prog_LIPO"
8670 fi
8671
8672     if test -n "$ac_tool_prefix"; then
8673   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8674 set dummy ${ac_tool_prefix}otool; ac_word=$2
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8676 $as_echo_n "checking for $ac_word... " >&6; }
8677 if ${ac_cv_prog_OTOOL+:} false; then :
8678   $as_echo_n "(cached) " >&6
8679 else
8680   if test -n "$OTOOL"; then
8681   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8682 else
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684 for as_dir in $PATH
8685 do
8686   IFS=$as_save_IFS
8687   test -z "$as_dir" && as_dir=.
8688     for ac_exec_ext in '' $ac_executable_extensions; do
8689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8690     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8692     break 2
8693   fi
8694 done
8695   done
8696 IFS=$as_save_IFS
8697
8698 fi
8699 fi
8700 OTOOL=$ac_cv_prog_OTOOL
8701 if test -n "$OTOOL"; then
8702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8703 $as_echo "$OTOOL" >&6; }
8704 else
8705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706 $as_echo "no" >&6; }
8707 fi
8708
8709
8710 fi
8711 if test -z "$ac_cv_prog_OTOOL"; then
8712   ac_ct_OTOOL=$OTOOL
8713   # Extract the first word of "otool", so it can be a program name with args.
8714 set dummy otool; ac_word=$2
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8716 $as_echo_n "checking for $ac_word... " >&6; }
8717 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8718   $as_echo_n "(cached) " >&6
8719 else
8720   if test -n "$ac_ct_OTOOL"; then
8721   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8722 else
8723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8724 for as_dir in $PATH
8725 do
8726   IFS=$as_save_IFS
8727   test -z "$as_dir" && as_dir=.
8728     for ac_exec_ext in '' $ac_executable_extensions; do
8729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8730     ac_cv_prog_ac_ct_OTOOL="otool"
8731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8732     break 2
8733   fi
8734 done
8735   done
8736 IFS=$as_save_IFS
8737
8738 fi
8739 fi
8740 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8741 if test -n "$ac_ct_OTOOL"; then
8742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8743 $as_echo "$ac_ct_OTOOL" >&6; }
8744 else
8745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746 $as_echo "no" >&6; }
8747 fi
8748
8749   if test "x$ac_ct_OTOOL" = x; then
8750     OTOOL=":"
8751   else
8752     case $cross_compiling:$ac_tool_warned in
8753 yes:)
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8756 ac_tool_warned=yes ;;
8757 esac
8758     OTOOL=$ac_ct_OTOOL
8759   fi
8760 else
8761   OTOOL="$ac_cv_prog_OTOOL"
8762 fi
8763
8764     if test -n "$ac_tool_prefix"; then
8765   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8766 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8768 $as_echo_n "checking for $ac_word... " >&6; }
8769 if ${ac_cv_prog_OTOOL64+:} false; then :
8770   $as_echo_n "(cached) " >&6
8771 else
8772   if test -n "$OTOOL64"; then
8773   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8774 else
8775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8776 for as_dir in $PATH
8777 do
8778   IFS=$as_save_IFS
8779   test -z "$as_dir" && as_dir=.
8780     for ac_exec_ext in '' $ac_executable_extensions; do
8781   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8782     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8784     break 2
8785   fi
8786 done
8787   done
8788 IFS=$as_save_IFS
8789
8790 fi
8791 fi
8792 OTOOL64=$ac_cv_prog_OTOOL64
8793 if test -n "$OTOOL64"; then
8794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8795 $as_echo "$OTOOL64" >&6; }
8796 else
8797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798 $as_echo "no" >&6; }
8799 fi
8800
8801
8802 fi
8803 if test -z "$ac_cv_prog_OTOOL64"; then
8804   ac_ct_OTOOL64=$OTOOL64
8805   # Extract the first word of "otool64", so it can be a program name with args.
8806 set dummy otool64; ac_word=$2
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8808 $as_echo_n "checking for $ac_word... " >&6; }
8809 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8810   $as_echo_n "(cached) " >&6
8811 else
8812   if test -n "$ac_ct_OTOOL64"; then
8813   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8814 else
8815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8816 for as_dir in $PATH
8817 do
8818   IFS=$as_save_IFS
8819   test -z "$as_dir" && as_dir=.
8820     for ac_exec_ext in '' $ac_executable_extensions; do
8821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8822     ac_cv_prog_ac_ct_OTOOL64="otool64"
8823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8824     break 2
8825   fi
8826 done
8827   done
8828 IFS=$as_save_IFS
8829
8830 fi
8831 fi
8832 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8833 if test -n "$ac_ct_OTOOL64"; then
8834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8835 $as_echo "$ac_ct_OTOOL64" >&6; }
8836 else
8837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8839 fi
8840
8841   if test "x$ac_ct_OTOOL64" = x; then
8842     OTOOL64=":"
8843   else
8844     case $cross_compiling:$ac_tool_warned in
8845 yes:)
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8848 ac_tool_warned=yes ;;
8849 esac
8850     OTOOL64=$ac_ct_OTOOL64
8851   fi
8852 else
8853   OTOOL64="$ac_cv_prog_OTOOL64"
8854 fi
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8883 $as_echo_n "checking for -single_module linker flag... " >&6; }
8884 if ${lt_cv_apple_cc_single_mod+:} false; then :
8885   $as_echo_n "(cached) " >&6
8886 else
8887   lt_cv_apple_cc_single_mod=no
8888       if test -z "${LT_MULTI_MODULE}"; then
8889         # By default we will add the -single_module flag. You can override
8890         # by either setting the environment variable LT_MULTI_MODULE
8891         # non-empty at configure time, or by adding -multi_module to the
8892         # link flags.
8893         rm -rf libconftest.dylib*
8894         echo "int foo(void){return 1;}" > conftest.c
8895         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8896 -dynamiclib -Wl,-single_module conftest.c" >&5
8897         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8898           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8899         _lt_result=$?
8900         # If there is a non-empty error log, and "single_module"
8901         # appears in it, assume the flag caused a linker warning
8902         if test -s conftest.err && $GREP single_module conftest.err; then
8903           cat conftest.err >&5
8904         # Otherwise, if the output was created with a 0 exit code from
8905         # the compiler, it worked.
8906         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8907           lt_cv_apple_cc_single_mod=yes
8908         else
8909           cat conftest.err >&5
8910         fi
8911         rm -rf libconftest.dylib*
8912         rm -f conftest.*
8913       fi
8914 fi
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8916 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8917
8918     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8919 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8920 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8921   $as_echo_n "(cached) " >&6
8922 else
8923   lt_cv_ld_exported_symbols_list=no
8924       save_LDFLAGS=$LDFLAGS
8925       echo "_main" > conftest.sym
8926       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8927       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h.  */
8929
8930 int
8931 main ()
8932 {
8933
8934   ;
8935   return 0;
8936 }
8937 _ACEOF
8938 if ac_fn_c_try_link "$LINENO"; then :
8939   lt_cv_ld_exported_symbols_list=yes
8940 else
8941   lt_cv_ld_exported_symbols_list=no
8942 fi
8943 rm -f core conftest.err conftest.$ac_objext \
8944     conftest$ac_exeext conftest.$ac_ext
8945         LDFLAGS="$save_LDFLAGS"
8946
8947 fi
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8949 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8950
8951     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8952 $as_echo_n "checking for -force_load linker flag... " >&6; }
8953 if ${lt_cv_ld_force_load+:} false; then :
8954   $as_echo_n "(cached) " >&6
8955 else
8956   lt_cv_ld_force_load=no
8957       cat > conftest.c << _LT_EOF
8958 int forced_loaded() { return 2;}
8959 _LT_EOF
8960       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8961       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8962       echo "$AR cru libconftest.a conftest.o" >&5
8963       $AR cru libconftest.a conftest.o 2>&5
8964       echo "$RANLIB libconftest.a" >&5
8965       $RANLIB libconftest.a 2>&5
8966       cat > conftest.c << _LT_EOF
8967 int main() { return 0;}
8968 _LT_EOF
8969       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8970       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8971       _lt_result=$?
8972       if test -s conftest.err && $GREP force_load conftest.err; then
8973         cat conftest.err >&5
8974       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8975         lt_cv_ld_force_load=yes
8976       else
8977         cat conftest.err >&5
8978       fi
8979         rm -f conftest.err libconftest.a conftest conftest.c
8980         rm -rf conftest.dSYM
8981
8982 fi
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8984 $as_echo "$lt_cv_ld_force_load" >&6; }
8985     case $host_os in
8986     rhapsody* | darwin1.[012])
8987       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8988     darwin1.*)
8989       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8990     darwin*) # darwin 5.x on
8991       # if running on 10.5 or later, the deployment target defaults
8992       # to the OS version, if on x86, and 10.4, the deployment
8993       # target defaults to 10.4. Don't you love it?
8994       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8995         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8996           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8997         10.[012]*)
8998           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8999         10.*)
9000           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9001       esac
9002     ;;
9003   esac
9004     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9005       _lt_dar_single_mod='$single_module'
9006     fi
9007     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9008       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9009     else
9010       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9011     fi
9012     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9013       _lt_dsymutil='~$DSYMUTIL $lib || :'
9014     else
9015       _lt_dsymutil=
9016     fi
9017     ;;
9018   esac
9019
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9021 $as_echo_n "checking for ANSI C header files... " >&6; }
9022 if ${ac_cv_header_stdc+:} false; then :
9023   $as_echo_n "(cached) " >&6
9024 else
9025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h.  */
9027 #include <stdlib.h>
9028 #include <stdarg.h>
9029 #include <string.h>
9030 #include <float.h>
9031
9032 int
9033 main ()
9034 {
9035
9036   ;
9037   return 0;
9038 }
9039 _ACEOF
9040 if ac_fn_c_try_compile "$LINENO"; then :
9041   ac_cv_header_stdc=yes
9042 else
9043   ac_cv_header_stdc=no
9044 fi
9045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9046
9047 if test $ac_cv_header_stdc = yes; then
9048   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h.  */
9051 #include <string.h>
9052
9053 _ACEOF
9054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9055   $EGREP "memchr" >/dev/null 2>&1; then :
9056
9057 else
9058   ac_cv_header_stdc=no
9059 fi
9060 rm -f conftest*
9061
9062 fi
9063
9064 if test $ac_cv_header_stdc = yes; then
9065   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h.  */
9068 #include <stdlib.h>
9069
9070 _ACEOF
9071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9072   $EGREP "free" >/dev/null 2>&1; then :
9073
9074 else
9075   ac_cv_header_stdc=no
9076 fi
9077 rm -f conftest*
9078
9079 fi
9080
9081 if test $ac_cv_header_stdc = yes; then
9082   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9083   if test "$cross_compiling" = yes; then :
9084   :
9085 else
9086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h.  */
9088 #include <ctype.h>
9089 #include <stdlib.h>
9090 #if ((' ' & 0x0FF) == 0x020)
9091 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9092 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9093 #else
9094 # define ISLOWER(c) \
9095                    (('a' <= (c) && (c) <= 'i') \
9096                      || ('j' <= (c) && (c) <= 'r') \
9097                      || ('s' <= (c) && (c) <= 'z'))
9098 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9099 #endif
9100
9101 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9102 int
9103 main ()
9104 {
9105   int i;
9106   for (i = 0; i < 256; i++)
9107     if (XOR (islower (i), ISLOWER (i))
9108         || toupper (i) != TOUPPER (i))
9109       return 2;
9110   return 0;
9111 }
9112 _ACEOF
9113 if ac_fn_c_try_run "$LINENO"; then :
9114
9115 else
9116   ac_cv_header_stdc=no
9117 fi
9118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9119   conftest.$ac_objext conftest.beam conftest.$ac_ext
9120 fi
9121
9122 fi
9123 fi
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9125 $as_echo "$ac_cv_header_stdc" >&6; }
9126 if test $ac_cv_header_stdc = yes; then
9127
9128 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9129
9130 fi
9131
9132 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9133 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9134                   inttypes.h stdint.h unistd.h
9135 do :
9136   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9137 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9138 "
9139 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9140   cat >>confdefs.h <<_ACEOF
9141 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9142 _ACEOF
9143
9144 fi
9145
9146 done
9147
9148
9149 for ac_header in dlfcn.h
9150 do :
9151   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9152 "
9153 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9154   cat >>confdefs.h <<_ACEOF
9155 #define HAVE_DLFCN_H 1
9156 _ACEOF
9157
9158 fi
9159
9160 done
9161
9162
9163
9164
9165 func_stripname_cnf ()
9166 {
9167   case ${2} in
9168   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9169   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9170   esac
9171 } # func_stripname_cnf
9172
9173
9174
9175
9176
9177 # Set options
9178 # Check whether --enable-shared was given.
9179 if test "${enable_shared+set}" = set; then :
9180   enableval=$enable_shared; p=${PACKAGE-default}
9181     case $enableval in
9182     yes) enable_shared=yes ;;
9183     no) enable_shared=no ;;
9184     *)
9185       enable_shared=no
9186       # Look at the argument we got.  We use all the common list separators.
9187       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9188       for pkg in $enableval; do
9189         IFS="$lt_save_ifs"
9190         if test "X$pkg" = "X$p"; then
9191           enable_shared=yes
9192         fi
9193       done
9194       IFS="$lt_save_ifs"
9195       ;;
9196     esac
9197 else
9198   enable_shared=yes
9199 fi
9200
9201
9202
9203
9204
9205
9206
9207 # Check whether --enable-static was given.
9208 if test "${enable_static+set}" = set; then :
9209   enableval=$enable_static; p=${PACKAGE-default}
9210     case $enableval in
9211     yes) enable_static=yes ;;
9212     no) enable_static=no ;;
9213     *)
9214      enable_static=no
9215       # Look at the argument we got.  We use all the common list separators.
9216       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9217       for pkg in $enableval; do
9218         IFS="$lt_save_ifs"
9219         if test "X$pkg" = "X$p"; then
9220           enable_static=yes
9221         fi
9222       done
9223       IFS="$lt_save_ifs"
9224       ;;
9225     esac
9226 else
9227   enable_static=no
9228 fi
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239         enable_dlopen=no
9240
9241
9242   enable_win32_dll=no
9243
9244
9245
9246
9247
9248 # Check whether --with-pic was given.
9249 if test "${with_pic+set}" = set; then :
9250   withval=$with_pic; lt_p=${PACKAGE-default}
9251     case $withval in
9252     yes|no) pic_mode=$withval ;;
9253     *)
9254       pic_mode=default
9255       # Look at the argument we got.  We use all the common list separators.
9256       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9257       for lt_pkg in $withval; do
9258         IFS="$lt_save_ifs"
9259         if test "X$lt_pkg" = "X$lt_p"; then
9260           pic_mode=yes
9261         fi
9262       done
9263       IFS="$lt_save_ifs"
9264       ;;
9265     esac
9266 else
9267   pic_mode=default
9268 fi
9269
9270
9271 test -z "$pic_mode" && pic_mode=default
9272
9273
9274
9275
9276
9277
9278
9279   # Check whether --enable-fast-install was given.
9280 if test "${enable_fast_install+set}" = set; then :
9281   enableval=$enable_fast_install; p=${PACKAGE-default}
9282     case $enableval in
9283     yes) enable_fast_install=yes ;;
9284     no) enable_fast_install=no ;;
9285     *)
9286       enable_fast_install=no
9287       # Look at the argument we got.  We use all the common list separators.
9288       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9289       for pkg in $enableval; do
9290         IFS="$lt_save_ifs"
9291         if test "X$pkg" = "X$p"; then
9292           enable_fast_install=yes
9293         fi
9294       done
9295       IFS="$lt_save_ifs"
9296       ;;
9297     esac
9298 else
9299   enable_fast_install=yes
9300 fi
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312 # This can be used to rebuild libtool when needed
9313 LIBTOOL_DEPS="$ltmain"
9314
9315 # Always use our own libtool.
9316 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347 test -z "$LN_S" && LN_S="ln -s"
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362 if test -n "${ZSH_VERSION+set}" ; then
9363    setopt NO_GLOB_SUBST
9364 fi
9365
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9367 $as_echo_n "checking for objdir... " >&6; }
9368 if ${lt_cv_objdir+:} false; then :
9369   $as_echo_n "(cached) " >&6
9370 else
9371   rm -f .libs 2>/dev/null
9372 mkdir .libs 2>/dev/null
9373 if test -d .libs; then
9374   lt_cv_objdir=.libs
9375 else
9376   # MS-DOS does not allow filenames that begin with a dot.
9377   lt_cv_objdir=_libs
9378 fi
9379 rmdir .libs 2>/dev/null
9380 fi
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9382 $as_echo "$lt_cv_objdir" >&6; }
9383 objdir=$lt_cv_objdir
9384
9385
9386
9387
9388
9389 cat >>confdefs.h <<_ACEOF
9390 #define LT_OBJDIR "$lt_cv_objdir/"
9391 _ACEOF
9392
9393
9394
9395
9396 case $host_os in
9397 aix3*)
9398   # AIX sometimes has problems with the GCC collect2 program.  For some
9399   # reason, if we set the COLLECT_NAMES environment variable, the problems
9400   # vanish in a puff of smoke.
9401   if test "X${COLLECT_NAMES+set}" != Xset; then
9402     COLLECT_NAMES=
9403     export COLLECT_NAMES
9404   fi
9405   ;;
9406 esac
9407
9408 # Global variables:
9409 ofile=libtool
9410 can_build_shared=yes
9411
9412 # All known linkers require a `.a' archive for static linking (except MSVC,
9413 # which needs '.lib').
9414 libext=a
9415
9416 with_gnu_ld="$lt_cv_prog_gnu_ld"
9417
9418 old_CC="$CC"
9419 old_CFLAGS="$CFLAGS"
9420
9421 # Set sane defaults for various variables
9422 test -z "$CC" && CC=cc
9423 test -z "$LTCC" && LTCC=$CC
9424 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9425 test -z "$LD" && LD=ld
9426 test -z "$ac_objext" && ac_objext=o
9427
9428 for cc_temp in $compiler""; do
9429   case $cc_temp in
9430     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9431     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9432     \-*) ;;
9433     *) break;;
9434   esac
9435 done
9436 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9437
9438
9439 # Only perform the check for file, if the check method requires it
9440 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9441 case $deplibs_check_method in
9442 file_magic*)
9443   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9444     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9445 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9446 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9447   $as_echo_n "(cached) " >&6
9448 else
9449   case $MAGIC_CMD in
9450 [\\/*] |  ?:[\\/]*)
9451   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9452   ;;
9453 *)
9454   lt_save_MAGIC_CMD="$MAGIC_CMD"
9455   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9456   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9457   for ac_dir in $ac_dummy; do
9458     IFS="$lt_save_ifs"
9459     test -z "$ac_dir" && ac_dir=.
9460     if test -f $ac_dir/${ac_tool_prefix}file; then
9461       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9462       if test -n "$file_magic_test_file"; then
9463         case $deplibs_check_method in
9464         "file_magic "*)
9465           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9466           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9467           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9468             $EGREP "$file_magic_regex" > /dev/null; then
9469             :
9470           else
9471             cat <<_LT_EOF 1>&2
9472
9473 *** Warning: the command libtool uses to detect shared libraries,
9474 *** $file_magic_cmd, produces output that libtool cannot recognize.
9475 *** The result is that libtool may fail to recognize shared libraries
9476 *** as such.  This will affect the creation of libtool libraries that
9477 *** depend on shared libraries, but programs linked with such libtool
9478 *** libraries will work regardless of this problem.  Nevertheless, you
9479 *** may want to report the problem to your system manager and/or to
9480 *** bug-libtool@gnu.org
9481
9482 _LT_EOF
9483           fi ;;
9484         esac
9485       fi
9486       break
9487     fi
9488   done
9489   IFS="$lt_save_ifs"
9490   MAGIC_CMD="$lt_save_MAGIC_CMD"
9491   ;;
9492 esac
9493 fi
9494
9495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9496 if test -n "$MAGIC_CMD"; then
9497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9498 $as_echo "$MAGIC_CMD" >&6; }
9499 else
9500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9501 $as_echo "no" >&6; }
9502 fi
9503
9504
9505
9506
9507
9508 if test -z "$lt_cv_path_MAGIC_CMD"; then
9509   if test -n "$ac_tool_prefix"; then
9510     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9511 $as_echo_n "checking for file... " >&6; }
9512 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9513   $as_echo_n "(cached) " >&6
9514 else
9515   case $MAGIC_CMD in
9516 [\\/*] |  ?:[\\/]*)
9517   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9518   ;;
9519 *)
9520   lt_save_MAGIC_CMD="$MAGIC_CMD"
9521   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9522   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9523   for ac_dir in $ac_dummy; do
9524     IFS="$lt_save_ifs"
9525     test -z "$ac_dir" && ac_dir=.
9526     if test -f $ac_dir/file; then
9527       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9528       if test -n "$file_magic_test_file"; then
9529         case $deplibs_check_method in
9530         "file_magic "*)
9531           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9532           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9533           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9534             $EGREP "$file_magic_regex" > /dev/null; then
9535             :
9536           else
9537             cat <<_LT_EOF 1>&2
9538
9539 *** Warning: the command libtool uses to detect shared libraries,
9540 *** $file_magic_cmd, produces output that libtool cannot recognize.
9541 *** The result is that libtool may fail to recognize shared libraries
9542 *** as such.  This will affect the creation of libtool libraries that
9543 *** depend on shared libraries, but programs linked with such libtool
9544 *** libraries will work regardless of this problem.  Nevertheless, you
9545 *** may want to report the problem to your system manager and/or to
9546 *** bug-libtool@gnu.org
9547
9548 _LT_EOF
9549           fi ;;
9550         esac
9551       fi
9552       break
9553     fi
9554   done
9555   IFS="$lt_save_ifs"
9556   MAGIC_CMD="$lt_save_MAGIC_CMD"
9557   ;;
9558 esac
9559 fi
9560
9561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9562 if test -n "$MAGIC_CMD"; then
9563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9564 $as_echo "$MAGIC_CMD" >&6; }
9565 else
9566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567 $as_echo "no" >&6; }
9568 fi
9569
9570
9571   else
9572     MAGIC_CMD=:
9573   fi
9574 fi
9575
9576   fi
9577   ;;
9578 esac
9579
9580 # Use C for the default configuration in the libtool script
9581
9582 lt_save_CC="$CC"
9583 ac_ext=c
9584 ac_cpp='$CPP $CPPFLAGS'
9585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9588
9589
9590 # Source file extension for C test sources.
9591 ac_ext=c
9592
9593 # Object file extension for compiled C test sources.
9594 objext=o
9595 objext=$objext
9596
9597 # Code to be used in simple compile tests
9598 lt_simple_compile_test_code="int some_variable = 0;"
9599
9600 # Code to be used in simple link tests
9601 lt_simple_link_test_code='int main(){return(0);}'
9602
9603
9604
9605
9606
9607
9608
9609 # If no C compiler was specified, use CC.
9610 LTCC=${LTCC-"$CC"}
9611
9612 # If no C compiler flags were specified, use CFLAGS.
9613 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9614
9615 # Allow CC to be a program name with arguments.
9616 compiler=$CC
9617
9618 # Save the default compiler, since it gets overwritten when the other
9619 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9620 compiler_DEFAULT=$CC
9621
9622 # save warnings/boilerplate of simple test code
9623 ac_outfile=conftest.$ac_objext
9624 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9625 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9626 _lt_compiler_boilerplate=`cat conftest.err`
9627 $RM conftest*
9628
9629 ac_outfile=conftest.$ac_objext
9630 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9631 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9632 _lt_linker_boilerplate=`cat conftest.err`
9633 $RM -r conftest*
9634
9635
9636 ## CAVEAT EMPTOR:
9637 ## There is no encapsulation within the following macros, do not change
9638 ## the running order or otherwise move them around unless you know exactly
9639 ## what you are doing...
9640 if test -n "$compiler"; then
9641
9642 lt_prog_compiler_no_builtin_flag=
9643
9644 if test "$GCC" = yes; then
9645   case $cc_basename in
9646   nvcc*)
9647     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9648   *)
9649     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9650   esac
9651
9652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9653 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9654 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9655   $as_echo_n "(cached) " >&6
9656 else
9657   lt_cv_prog_compiler_rtti_exceptions=no
9658    ac_outfile=conftest.$ac_objext
9659    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9660    lt_compiler_flag="-fno-rtti -fno-exceptions"
9661    # Insert the option either (1) after the last *FLAGS variable, or
9662    # (2) before a word containing "conftest.", or (3) at the end.
9663    # Note that $ac_compile itself does not contain backslashes and begins
9664    # with a dollar sign (not a hyphen), so the echo should work correctly.
9665    # The option is referenced via a variable to avoid confusing sed.
9666    lt_compile=`echo "$ac_compile" | $SED \
9667    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9668    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9669    -e 's:$: $lt_compiler_flag:'`
9670    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9671    (eval "$lt_compile" 2>conftest.err)
9672    ac_status=$?
9673    cat conftest.err >&5
9674    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675    if (exit $ac_status) && test -s "$ac_outfile"; then
9676      # The compiler can only warn and ignore the option if not recognized
9677      # So say no if there are warnings other than the usual output.
9678      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9679      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9680      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9681        lt_cv_prog_compiler_rtti_exceptions=yes
9682      fi
9683    fi
9684    $RM conftest*
9685
9686 fi
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9688 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9689
9690 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9691     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9692 else
9693     :
9694 fi
9695
9696 fi
9697
9698
9699
9700
9701
9702
9703   lt_prog_compiler_wl=
9704 lt_prog_compiler_pic=
9705 lt_prog_compiler_static=
9706
9707
9708   if test "$GCC" = yes; then
9709     lt_prog_compiler_wl='-Wl,'
9710     lt_prog_compiler_static='-static'
9711
9712     case $host_os in
9713       aix*)
9714       # All AIX code is PIC.
9715       if test "$host_cpu" = ia64; then
9716         # AIX 5 now supports IA64 processor
9717         lt_prog_compiler_static='-Bstatic'
9718       fi
9719       ;;
9720
9721     amigaos*)
9722       case $host_cpu in
9723       powerpc)
9724             # see comment about AmigaOS4 .so support
9725             lt_prog_compiler_pic='-fPIC'
9726         ;;
9727       m68k)
9728             # FIXME: we need at least 68020 code to build shared libraries, but
9729             # adding the `-m68020' flag to GCC prevents building anything better,
9730             # like `-m68040'.
9731             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9732         ;;
9733       esac
9734       ;;
9735
9736     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9737       # PIC is the default for these OSes.
9738       ;;
9739
9740     mingw* | cygwin* | pw32* | os2* | cegcc*)
9741       # This hack is so that the source file can tell whether it is being
9742       # built for inclusion in a dll (and should export symbols for example).
9743       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9744       # (--disable-auto-import) libraries
9745       lt_prog_compiler_pic='-DDLL_EXPORT'
9746       ;;
9747
9748     darwin* | rhapsody*)
9749       # PIC is the default on this platform
9750       # Common symbols not allowed in MH_DYLIB files
9751       lt_prog_compiler_pic='-fno-common'
9752       ;;
9753
9754     haiku*)
9755       # PIC is the default for Haiku.
9756       # The "-static" flag exists, but is broken.
9757       lt_prog_compiler_static=
9758       ;;
9759
9760     hpux*)
9761       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9762       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9763       # sets the default TLS model and affects inlining.
9764       case $host_cpu in
9765       hppa*64*)
9766         # +Z the default
9767         ;;
9768       *)
9769         lt_prog_compiler_pic='-fPIC'
9770         ;;
9771       esac
9772       ;;
9773
9774     interix[3-9]*)
9775       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9776       # Instead, we relocate shared libraries at runtime.
9777       ;;
9778
9779     msdosdjgpp*)
9780       # Just because we use GCC doesn't mean we suddenly get shared libraries
9781       # on systems that don't support them.
9782       lt_prog_compiler_can_build_shared=no
9783       enable_shared=no
9784       ;;
9785
9786     *nto* | *qnx*)
9787       # QNX uses GNU C++, but need to define -shared option too, otherwise
9788       # it will coredump.
9789       lt_prog_compiler_pic='-fPIC -shared'
9790       ;;
9791
9792     sysv4*MP*)
9793       if test -d /usr/nec; then
9794         lt_prog_compiler_pic=-Kconform_pic
9795       fi
9796       ;;
9797
9798     *)
9799       lt_prog_compiler_pic='-fPIC'
9800       ;;
9801     esac
9802
9803     case $cc_basename in
9804     nvcc*) # Cuda Compiler Driver 2.2
9805       lt_prog_compiler_wl='-Xlinker '
9806       if test -n "$lt_prog_compiler_pic"; then
9807         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9808       fi
9809       ;;
9810     esac
9811   else
9812     # PORTME Check for flag to pass linker flags through the system compiler.
9813     case $host_os in
9814     aix*)
9815       lt_prog_compiler_wl='-Wl,'
9816       if test "$host_cpu" = ia64; then
9817         # AIX 5 now supports IA64 processor
9818         lt_prog_compiler_static='-Bstatic'
9819       else
9820         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9821       fi
9822       ;;
9823
9824     mingw* | cygwin* | pw32* | os2* | cegcc*)
9825       # This hack is so that the source file can tell whether it is being
9826       # built for inclusion in a dll (and should export symbols for example).
9827       lt_prog_compiler_pic='-DDLL_EXPORT'
9828       ;;
9829
9830     hpux9* | hpux10* | hpux11*)
9831       lt_prog_compiler_wl='-Wl,'
9832       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9833       # not for PA HP-UX.
9834       case $host_cpu in
9835       hppa*64*|ia64*)
9836         # +Z the default
9837         ;;
9838       *)
9839         lt_prog_compiler_pic='+Z'
9840         ;;
9841       esac
9842       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9843       lt_prog_compiler_static='${wl}-a ${wl}archive'
9844       ;;
9845
9846     irix5* | irix6* | nonstopux*)
9847       lt_prog_compiler_wl='-Wl,'
9848       # PIC (with -KPIC) is the default.
9849       lt_prog_compiler_static='-non_shared'
9850       ;;
9851
9852     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9853       case $cc_basename in
9854       # old Intel for x86_64 which still supported -KPIC.
9855       ecc*)
9856         lt_prog_compiler_wl='-Wl,'
9857         lt_prog_compiler_pic='-KPIC'
9858         lt_prog_compiler_static='-static'
9859         ;;
9860       # icc used to be incompatible with GCC.
9861       # ICC 10 doesn't accept -KPIC any more.
9862       icc* | ifort*)
9863         lt_prog_compiler_wl='-Wl,'
9864         lt_prog_compiler_pic='-fPIC'
9865         lt_prog_compiler_static='-static'
9866         ;;
9867       # Lahey Fortran 8.1.
9868       lf95*)
9869         lt_prog_compiler_wl='-Wl,'
9870         lt_prog_compiler_pic='--shared'
9871         lt_prog_compiler_static='--static'
9872         ;;
9873       nagfor*)
9874         # NAG Fortran compiler
9875         lt_prog_compiler_wl='-Wl,-Wl,,'
9876         lt_prog_compiler_pic='-PIC'
9877         lt_prog_compiler_static='-Bstatic'
9878         ;;
9879       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9880         # Portland Group compilers (*not* the Pentium gcc compiler,
9881         # which looks to be a dead project)
9882         lt_prog_compiler_wl='-Wl,'
9883         lt_prog_compiler_pic='-fpic'
9884         lt_prog_compiler_static='-Bstatic'
9885         ;;
9886       ccc*)
9887         lt_prog_compiler_wl='-Wl,'
9888         # All Alpha code is PIC.
9889         lt_prog_compiler_static='-non_shared'
9890         ;;
9891       xl* | bgxl* | bgf* | mpixl*)
9892         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9893         lt_prog_compiler_wl='-Wl,'
9894         lt_prog_compiler_pic='-qpic'
9895         lt_prog_compiler_static='-qstaticlink'
9896         ;;
9897       *)
9898         case `$CC -V 2>&1 | sed 5q` in
9899         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9900           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9901           lt_prog_compiler_pic='-KPIC'
9902           lt_prog_compiler_static='-Bstatic'
9903           lt_prog_compiler_wl=''
9904           ;;
9905         *Sun\ F* | *Sun*Fortran*)
9906           lt_prog_compiler_pic='-KPIC'
9907           lt_prog_compiler_static='-Bstatic'
9908           lt_prog_compiler_wl='-Qoption ld '
9909           ;;
9910         *Sun\ C*)
9911           # Sun C 5.9
9912           lt_prog_compiler_pic='-KPIC'
9913           lt_prog_compiler_static='-Bstatic'
9914           lt_prog_compiler_wl='-Wl,'
9915           ;;
9916         *Intel*\ [CF]*Compiler*)
9917           lt_prog_compiler_wl='-Wl,'
9918           lt_prog_compiler_pic='-fPIC'
9919           lt_prog_compiler_static='-static'
9920           ;;
9921         *Portland\ Group*)
9922           lt_prog_compiler_wl='-Wl,'
9923           lt_prog_compiler_pic='-fpic'
9924           lt_prog_compiler_static='-Bstatic'
9925           ;;
9926         esac
9927         ;;
9928       esac
9929       ;;
9930
9931     newsos6)
9932       lt_prog_compiler_pic='-KPIC'
9933       lt_prog_compiler_static='-Bstatic'
9934       ;;
9935
9936     *nto* | *qnx*)
9937       # QNX uses GNU C++, but need to define -shared option too, otherwise
9938       # it will coredump.
9939       lt_prog_compiler_pic='-fPIC -shared'
9940       ;;
9941
9942     osf3* | osf4* | osf5*)
9943       lt_prog_compiler_wl='-Wl,'
9944       # All OSF/1 code is PIC.
9945       lt_prog_compiler_static='-non_shared'
9946       ;;
9947
9948     rdos*)
9949       lt_prog_compiler_static='-non_shared'
9950       ;;
9951
9952     solaris*)
9953       lt_prog_compiler_pic='-KPIC'
9954       lt_prog_compiler_static='-Bstatic'
9955       case $cc_basename in
9956       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9957         lt_prog_compiler_wl='-Qoption ld ';;
9958       *)
9959         lt_prog_compiler_wl='-Wl,';;
9960       esac
9961       ;;
9962
9963     sunos4*)
9964       lt_prog_compiler_wl='-Qoption ld '
9965       lt_prog_compiler_pic='-PIC'
9966       lt_prog_compiler_static='-Bstatic'
9967       ;;
9968
9969     sysv4 | sysv4.2uw2* | sysv4.3*)
9970       lt_prog_compiler_wl='-Wl,'
9971       lt_prog_compiler_pic='-KPIC'
9972       lt_prog_compiler_static='-Bstatic'
9973       ;;
9974
9975     sysv4*MP*)
9976       if test -d /usr/nec ;then
9977         lt_prog_compiler_pic='-Kconform_pic'
9978         lt_prog_compiler_static='-Bstatic'
9979       fi
9980       ;;
9981
9982     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9983       lt_prog_compiler_wl='-Wl,'
9984       lt_prog_compiler_pic='-KPIC'
9985       lt_prog_compiler_static='-Bstatic'
9986       ;;
9987
9988     unicos*)
9989       lt_prog_compiler_wl='-Wl,'
9990       lt_prog_compiler_can_build_shared=no
9991       ;;
9992
9993     uts4*)
9994       lt_prog_compiler_pic='-pic'
9995       lt_prog_compiler_static='-Bstatic'
9996       ;;
9997
9998     *)
9999       lt_prog_compiler_can_build_shared=no
10000       ;;
10001     esac
10002   fi
10003
10004 case $host_os in
10005   # For platforms which do not support PIC, -DPIC is meaningless:
10006   *djgpp*)
10007     lt_prog_compiler_pic=
10008     ;;
10009   *)
10010     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10011     ;;
10012 esac
10013
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10015 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10016 if ${lt_cv_prog_compiler_pic+:} false; then :
10017   $as_echo_n "(cached) " >&6
10018 else
10019   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10020 fi
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10022 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10023 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10024
10025 #
10026 # Check to make sure the PIC flag actually works.
10027 #
10028 if test -n "$lt_prog_compiler_pic"; then
10029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10030 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10031 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10032   $as_echo_n "(cached) " >&6
10033 else
10034   lt_cv_prog_compiler_pic_works=no
10035    ac_outfile=conftest.$ac_objext
10036    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10037    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10038    # Insert the option either (1) after the last *FLAGS variable, or
10039    # (2) before a word containing "conftest.", or (3) at the end.
10040    # Note that $ac_compile itself does not contain backslashes and begins
10041    # with a dollar sign (not a hyphen), so the echo should work correctly.
10042    # The option is referenced via a variable to avoid confusing sed.
10043    lt_compile=`echo "$ac_compile" | $SED \
10044    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10045    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10046    -e 's:$: $lt_compiler_flag:'`
10047    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10048    (eval "$lt_compile" 2>conftest.err)
10049    ac_status=$?
10050    cat conftest.err >&5
10051    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052    if (exit $ac_status) && test -s "$ac_outfile"; then
10053      # The compiler can only warn and ignore the option if not recognized
10054      # So say no if there are warnings other than the usual output.
10055      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10056      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10057      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10058        lt_cv_prog_compiler_pic_works=yes
10059      fi
10060    fi
10061    $RM conftest*
10062
10063 fi
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10065 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10066
10067 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10068     case $lt_prog_compiler_pic in
10069      "" | " "*) ;;
10070      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10071      esac
10072 else
10073     lt_prog_compiler_pic=
10074      lt_prog_compiler_can_build_shared=no
10075 fi
10076
10077 fi
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089 #
10090 # Check to make sure the static flag actually works.
10091 #
10092 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10094 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10095 if ${lt_cv_prog_compiler_static_works+:} false; then :
10096   $as_echo_n "(cached) " >&6
10097 else
10098   lt_cv_prog_compiler_static_works=no
10099    save_LDFLAGS="$LDFLAGS"
10100    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10101    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10102    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10103      # The linker can only warn and ignore the option if not recognized
10104      # So say no if there are warnings
10105      if test -s conftest.err; then
10106        # Append any errors to the config.log.
10107        cat conftest.err 1>&5
10108        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10109        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10110        if diff conftest.exp conftest.er2 >/dev/null; then
10111          lt_cv_prog_compiler_static_works=yes
10112        fi
10113      else
10114        lt_cv_prog_compiler_static_works=yes
10115      fi
10116    fi
10117    $RM -r conftest*
10118    LDFLAGS="$save_LDFLAGS"
10119
10120 fi
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10122 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10123
10124 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10125     :
10126 else
10127     lt_prog_compiler_static=
10128 fi
10129
10130
10131
10132
10133
10134
10135
10136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10137 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10138 if ${lt_cv_prog_compiler_c_o+:} false; then :
10139   $as_echo_n "(cached) " >&6
10140 else
10141   lt_cv_prog_compiler_c_o=no
10142    $RM -r conftest 2>/dev/null
10143    mkdir conftest
10144    cd conftest
10145    mkdir out
10146    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10147
10148    lt_compiler_flag="-o out/conftest2.$ac_objext"
10149    # Insert the option either (1) after the last *FLAGS variable, or
10150    # (2) before a word containing "conftest.", or (3) at the end.
10151    # Note that $ac_compile itself does not contain backslashes and begins
10152    # with a dollar sign (not a hyphen), so the echo should work correctly.
10153    lt_compile=`echo "$ac_compile" | $SED \
10154    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10155    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10156    -e 's:$: $lt_compiler_flag:'`
10157    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10158    (eval "$lt_compile" 2>out/conftest.err)
10159    ac_status=$?
10160    cat out/conftest.err >&5
10161    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10163    then
10164      # The compiler can only warn and ignore the option if not recognized
10165      # So say no if there are warnings
10166      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10167      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10168      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10169        lt_cv_prog_compiler_c_o=yes
10170      fi
10171    fi
10172    chmod u+w . 2>&5
10173    $RM conftest*
10174    # SGI C++ compiler will create directory out/ii_files/ for
10175    # template instantiation
10176    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10177    $RM out/* && rmdir out
10178    cd ..
10179    $RM -r conftest
10180    $RM conftest*
10181
10182 fi
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10184 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10185
10186
10187
10188
10189
10190
10191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10192 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10193 if ${lt_cv_prog_compiler_c_o+:} false; then :
10194   $as_echo_n "(cached) " >&6
10195 else
10196   lt_cv_prog_compiler_c_o=no
10197    $RM -r conftest 2>/dev/null
10198    mkdir conftest
10199    cd conftest
10200    mkdir out
10201    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10202
10203    lt_compiler_flag="-o out/conftest2.$ac_objext"
10204    # Insert the option either (1) after the last *FLAGS variable, or
10205    # (2) before a word containing "conftest.", or (3) at the end.
10206    # Note that $ac_compile itself does not contain backslashes and begins
10207    # with a dollar sign (not a hyphen), so the echo should work correctly.
10208    lt_compile=`echo "$ac_compile" | $SED \
10209    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10210    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10211    -e 's:$: $lt_compiler_flag:'`
10212    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10213    (eval "$lt_compile" 2>out/conftest.err)
10214    ac_status=$?
10215    cat out/conftest.err >&5
10216    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10218    then
10219      # The compiler can only warn and ignore the option if not recognized
10220      # So say no if there are warnings
10221      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10222      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10223      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10224        lt_cv_prog_compiler_c_o=yes
10225      fi
10226    fi
10227    chmod u+w . 2>&5
10228    $RM conftest*
10229    # SGI C++ compiler will create directory out/ii_files/ for
10230    # template instantiation
10231    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10232    $RM out/* && rmdir out
10233    cd ..
10234    $RM -r conftest
10235    $RM conftest*
10236
10237 fi
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10239 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10240
10241
10242
10243
10244 hard_links="nottested"
10245 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10246   # do not overwrite the value of need_locks provided by the user
10247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10248 $as_echo_n "checking if we can lock with hard links... " >&6; }
10249   hard_links=yes
10250   $RM conftest*
10251   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10252   touch conftest.a
10253   ln conftest.a conftest.b 2>&5 || hard_links=no
10254   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10256 $as_echo "$hard_links" >&6; }
10257   if test "$hard_links" = no; then
10258     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10259 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10260     need_locks=warn
10261   fi
10262 else
10263   need_locks=no
10264 fi
10265
10266
10267
10268
10269
10270
10271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10272 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10273
10274   runpath_var=
10275   allow_undefined_flag=
10276   always_export_symbols=no
10277   archive_cmds=
10278   archive_expsym_cmds=
10279   compiler_needs_object=no
10280   enable_shared_with_static_runtimes=no
10281   export_dynamic_flag_spec=
10282   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10283   hardcode_automatic=no
10284   hardcode_direct=no
10285   hardcode_direct_absolute=no
10286   hardcode_libdir_flag_spec=
10287   hardcode_libdir_separator=
10288   hardcode_minus_L=no
10289   hardcode_shlibpath_var=unsupported
10290   inherit_rpath=no
10291   link_all_deplibs=unknown
10292   module_cmds=
10293   module_expsym_cmds=
10294   old_archive_from_new_cmds=
10295   old_archive_from_expsyms_cmds=
10296   thread_safe_flag_spec=
10297   whole_archive_flag_spec=
10298   # include_expsyms should be a list of space-separated symbols to be *always*
10299   # included in the symbol list
10300   include_expsyms=
10301   # exclude_expsyms can be an extended regexp of symbols to exclude
10302   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10303   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10304   # as well as any symbol that contains `d'.
10305   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10306   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10307   # platforms (ab)use it in PIC code, but their linkers get confused if
10308   # the symbol is explicitly referenced.  Since portable code cannot
10309   # rely on this symbol name, it's probably fine to never include it in
10310   # preloaded symbol tables.
10311   # Exclude shared library initialization/finalization symbols.
10312   extract_expsyms_cmds=
10313
10314   case $host_os in
10315   cygwin* | mingw* | pw32* | cegcc*)
10316     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10317     # When not using gcc, we currently assume that we are using
10318     # Microsoft Visual C++.
10319     if test "$GCC" != yes; then
10320       with_gnu_ld=no
10321     fi
10322     ;;
10323   interix*)
10324     # we just hope/assume this is gcc and not c89 (= MSVC++)
10325     with_gnu_ld=yes
10326     ;;
10327   openbsd*)
10328     with_gnu_ld=no
10329     ;;
10330   linux* | k*bsd*-gnu | gnu*)
10331     link_all_deplibs=no
10332     ;;
10333   esac
10334
10335   ld_shlibs=yes
10336
10337   # On some targets, GNU ld is compatible enough with the native linker
10338   # that we're better off using the native interface for both.
10339   lt_use_gnu_ld_interface=no
10340   if test "$with_gnu_ld" = yes; then
10341     case $host_os in
10342       aix*)
10343         # The AIX port of GNU ld has always aspired to compatibility
10344         # with the native linker.  However, as the warning in the GNU ld
10345         # block says, versions before 2.19.5* couldn't really create working
10346         # shared libraries, regardless of the interface used.
10347         case `$LD -v 2>&1` in
10348           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10349           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10350           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10351           *)
10352             lt_use_gnu_ld_interface=yes
10353             ;;
10354         esac
10355         ;;
10356       *)
10357         lt_use_gnu_ld_interface=yes
10358         ;;
10359     esac
10360   fi
10361
10362   if test "$lt_use_gnu_ld_interface" = yes; then
10363     # If archive_cmds runs LD, not CC, wlarc should be empty
10364     wlarc='${wl}'
10365
10366     # Set some defaults for GNU ld with shared library support. These
10367     # are reset later if shared libraries are not supported. Putting them
10368     # here allows them to be overridden if necessary.
10369     runpath_var=LD_RUN_PATH
10370     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10371     export_dynamic_flag_spec='${wl}--export-dynamic'
10372     # ancient GNU ld didn't support --whole-archive et. al.
10373     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10374       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10375     else
10376       whole_archive_flag_spec=
10377     fi
10378     supports_anon_versioning=no
10379     case `$LD -v 2>&1` in
10380       *GNU\ gold*) supports_anon_versioning=yes ;;
10381       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10382       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10383       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10384       *\ 2.11.*) ;; # other 2.11 versions
10385       *) supports_anon_versioning=yes ;;
10386     esac
10387
10388     # See if GNU ld supports shared libraries.
10389     case $host_os in
10390     aix[3-9]*)
10391       # On AIX/PPC, the GNU linker is very broken
10392       if test "$host_cpu" != ia64; then
10393         ld_shlibs=no
10394         cat <<_LT_EOF 1>&2
10395
10396 *** Warning: the GNU linker, at least up to release 2.19, is reported
10397 *** to be unable to reliably create shared libraries on AIX.
10398 *** Therefore, libtool is disabling shared libraries support.  If you
10399 *** really care for shared libraries, you may want to install binutils
10400 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10401 *** You will then need to restart the configuration process.
10402
10403 _LT_EOF
10404       fi
10405       ;;
10406
10407     amigaos*)
10408       case $host_cpu in
10409       powerpc)
10410             # see comment about AmigaOS4 .so support
10411             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10412             archive_expsym_cmds=''
10413         ;;
10414       m68k)
10415             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)'
10416             hardcode_libdir_flag_spec='-L$libdir'
10417             hardcode_minus_L=yes
10418         ;;
10419       esac
10420       ;;
10421
10422     beos*)
10423       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10424         allow_undefined_flag=unsupported
10425         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10426         # support --undefined.  This deserves some investigation.  FIXME
10427         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10428       else
10429         ld_shlibs=no
10430       fi
10431       ;;
10432
10433     cygwin* | mingw* | pw32* | cegcc*)
10434       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10435       # as there is no search path for DLLs.
10436       hardcode_libdir_flag_spec='-L$libdir'
10437       export_dynamic_flag_spec='${wl}--export-all-symbols'
10438       allow_undefined_flag=unsupported
10439       always_export_symbols=no
10440       enable_shared_with_static_runtimes=yes
10441       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'
10442       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10443
10444       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10445         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10446         # If the export-symbols file already is a .def file (1st line
10447         # is EXPORTS), use it as is; otherwise, prepend...
10448         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10449           cp $export_symbols $output_objdir/$soname.def;
10450         else
10451           echo EXPORTS > $output_objdir/$soname.def;
10452           cat $export_symbols >> $output_objdir/$soname.def;
10453         fi~
10454         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10455       else
10456         ld_shlibs=no
10457       fi
10458       ;;
10459
10460     haiku*)
10461       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10462       link_all_deplibs=yes
10463       ;;
10464
10465     interix[3-9]*)
10466       hardcode_direct=no
10467       hardcode_shlibpath_var=no
10468       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10469       export_dynamic_flag_spec='${wl}-E'
10470       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10471       # Instead, shared libraries are loaded at an image base (0x10000000 by
10472       # default) and relocated if they conflict, which is a slow very memory
10473       # consuming and fragmenting process.  To avoid this, we pick a random,
10474       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10475       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10476       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10477       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'
10478       ;;
10479
10480     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10481       tmp_diet=no
10482       if test "$host_os" = linux-dietlibc; then
10483         case $cc_basename in
10484           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10485         esac
10486       fi
10487       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10488          && test "$tmp_diet" = no
10489       then
10490         tmp_addflag=' $pic_flag'
10491         tmp_sharedflag='-shared'
10492         case $cc_basename,$host_cpu in
10493         pgcc*)                          # Portland Group C compiler
10494           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'
10495           tmp_addflag=' $pic_flag'
10496           ;;
10497         pgf77* | pgf90* | pgf95* | pgfortran*)
10498                                         # Portland Group f77 and f90 compilers
10499           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'
10500           tmp_addflag=' $pic_flag -Mnomain' ;;
10501         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10502           tmp_addflag=' -i_dynamic' ;;
10503         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10504           tmp_addflag=' -i_dynamic -nofor_main' ;;
10505         ifc* | ifort*)                  # Intel Fortran compiler
10506           tmp_addflag=' -nofor_main' ;;
10507         lf95*)                          # Lahey Fortran 8.1
10508           whole_archive_flag_spec=
10509           tmp_sharedflag='--shared' ;;
10510         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10511           tmp_sharedflag='-qmkshrobj'
10512           tmp_addflag= ;;
10513         nvcc*)  # Cuda Compiler Driver 2.2
10514           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'
10515           compiler_needs_object=yes
10516           ;;
10517         esac
10518         case `$CC -V 2>&1 | sed 5q` in
10519         *Sun\ C*)                       # Sun C 5.9
10520           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'
10521           compiler_needs_object=yes
10522           tmp_sharedflag='-G' ;;
10523         *Sun\ F*)                       # Sun Fortran 8.3
10524           tmp_sharedflag='-G' ;;
10525         esac
10526         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10527
10528         if test "x$supports_anon_versioning" = xyes; then
10529           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10530             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10531             echo "local: *; };" >> $output_objdir/$libname.ver~
10532             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10533         fi
10534
10535         case $cc_basename in
10536         xlf* | bgf* | bgxlf* | mpixlf*)
10537           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10538           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10539           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10540           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10541           if test "x$supports_anon_versioning" = xyes; then
10542             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10543               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10544               echo "local: *; };" >> $output_objdir/$libname.ver~
10545               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10546           fi
10547           ;;
10548         esac
10549       else
10550         ld_shlibs=no
10551       fi
10552       ;;
10553
10554     netbsd* | netbsdelf*-gnu)
10555       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10556         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10557         wlarc=
10558       else
10559         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10560         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10561       fi
10562       ;;
10563
10564     solaris*)
10565       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10566         ld_shlibs=no
10567         cat <<_LT_EOF 1>&2
10568
10569 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10570 *** create shared libraries on Solaris systems.  Therefore, libtool
10571 *** is disabling shared libraries support.  We urge you to upgrade GNU
10572 *** binutils to release 2.9.1 or newer.  Another option is to modify
10573 *** your PATH or compiler configuration so that the native linker is
10574 *** used, and then restart.
10575
10576 _LT_EOF
10577       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10578         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10579         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10580       else
10581         ld_shlibs=no
10582       fi
10583       ;;
10584
10585     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10586       case `$LD -v 2>&1` in
10587         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10588         ld_shlibs=no
10589         cat <<_LT_EOF 1>&2
10590
10591 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10592 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10593 *** is disabling shared libraries support.  We urge you to upgrade GNU
10594 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10595 *** your PATH or compiler configuration so that the native linker is
10596 *** used, and then restart.
10597
10598 _LT_EOF
10599         ;;
10600         *)
10601           # For security reasons, it is highly recommended that you always
10602           # use absolute paths for naming shared libraries, and exclude the
10603           # DT_RUNPATH tag from executables and libraries.  But doing so
10604           # requires that you compile everything twice, which is a pain.
10605           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10606             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10607             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10608             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10609           else
10610             ld_shlibs=no
10611           fi
10612         ;;
10613       esac
10614       ;;
10615
10616     sunos4*)
10617       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10618       wlarc=
10619       hardcode_direct=yes
10620       hardcode_shlibpath_var=no
10621       ;;
10622
10623     *)
10624       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10625         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10626         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10627       else
10628         ld_shlibs=no
10629       fi
10630       ;;
10631     esac
10632
10633     if test "$ld_shlibs" = no; then
10634       runpath_var=
10635       hardcode_libdir_flag_spec=
10636       export_dynamic_flag_spec=
10637       whole_archive_flag_spec=
10638     fi
10639   else
10640     # PORTME fill in a description of your system's linker (not GNU ld)
10641     case $host_os in
10642     aix3*)
10643       allow_undefined_flag=unsupported
10644       always_export_symbols=yes
10645       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'
10646       # Note: this linker hardcodes the directories in LIBPATH if there
10647       # are no directories specified by -L.
10648       hardcode_minus_L=yes
10649       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10650         # Neither direct hardcoding nor static linking is supported with a
10651         # broken collect2.
10652         hardcode_direct=unsupported
10653       fi
10654       ;;
10655
10656     aix[4-9]*)
10657       if test "$host_cpu" = ia64; then
10658         # On IA64, the linker does run time linking by default, so we don't
10659         # have to do anything special.
10660         aix_use_runtimelinking=no
10661         exp_sym_flag='-Bexport'
10662         no_entry_flag=""
10663       else
10664         # If we're using GNU nm, then we don't want the "-C" option.
10665         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10666         # Also, AIX nm treats weak defined symbols like other global
10667         # defined symbols, whereas GNU nm marks them as "W".
10668         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10669           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'
10670         else
10671           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'
10672         fi
10673         aix_use_runtimelinking=no
10674
10675         # Test if we are trying to use run time linking or normal
10676         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10677         # need to do runtime linking.
10678         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10679           for ld_flag in $LDFLAGS; do
10680           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10681             aix_use_runtimelinking=yes
10682             break
10683           fi
10684           done
10685           ;;
10686         esac
10687
10688         exp_sym_flag='-bexport'
10689         no_entry_flag='-bnoentry'
10690       fi
10691
10692       # When large executables or shared objects are built, AIX ld can
10693       # have problems creating the table of contents.  If linking a library
10694       # or program results in "error TOC overflow" add -mminimal-toc to
10695       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10696       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10697
10698       archive_cmds=''
10699       hardcode_direct=yes
10700       hardcode_direct_absolute=yes
10701       hardcode_libdir_separator=':'
10702       link_all_deplibs=yes
10703       file_list_spec='${wl}-f,'
10704
10705       if test "$GCC" = yes; then
10706         case $host_os in aix4.[012]|aix4.[012].*)
10707         # We only want to do this on AIX 4.2 and lower, the check
10708         # below for broken collect2 doesn't work under 4.3+
10709           collect2name=`${CC} -print-prog-name=collect2`
10710           if test -f "$collect2name" &&
10711            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10712           then
10713           # We have reworked collect2
10714           :
10715           else
10716           # We have old collect2
10717           hardcode_direct=unsupported
10718           # It fails to find uninstalled libraries when the uninstalled
10719           # path is not listed in the libpath.  Setting hardcode_minus_L
10720           # to unsupported forces relinking
10721           hardcode_minus_L=yes
10722           hardcode_libdir_flag_spec='-L$libdir'
10723           hardcode_libdir_separator=
10724           fi
10725           ;;
10726         esac
10727         shared_flag='-shared'
10728         if test "$aix_use_runtimelinking" = yes; then
10729           shared_flag="$shared_flag "'${wl}-G'
10730         fi
10731         link_all_deplibs=no
10732       else
10733         # not using gcc
10734         if test "$host_cpu" = ia64; then
10735         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10736         # chokes on -Wl,-G. The following line is correct:
10737           shared_flag='-G'
10738         else
10739           if test "$aix_use_runtimelinking" = yes; then
10740             shared_flag='${wl}-G'
10741           else
10742             shared_flag='${wl}-bM:SRE'
10743           fi
10744         fi
10745       fi
10746
10747       export_dynamic_flag_spec='${wl}-bexpall'
10748       # It seems that -bexpall does not export symbols beginning with
10749       # underscore (_), so it is better to generate a list of symbols to export.
10750       always_export_symbols=yes
10751       if test "$aix_use_runtimelinking" = yes; then
10752         # Warning - without using the other runtime loading flags (-brtl),
10753         # -berok will link without error, but may produce a broken library.
10754         allow_undefined_flag='-berok'
10755         # Determine the default libpath from the value encoded in an
10756         # empty executable.
10757         if test "${lt_cv_aix_libpath+set}" = set; then
10758   aix_libpath=$lt_cv_aix_libpath
10759 else
10760   if ${lt_cv_aix_libpath_+:} false; then :
10761   $as_echo_n "(cached) " >&6
10762 else
10763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764 /* end confdefs.h.  */
10765
10766 int
10767 main ()
10768 {
10769
10770   ;
10771   return 0;
10772 }
10773 _ACEOF
10774 if ac_fn_c_try_link "$LINENO"; then :
10775
10776   lt_aix_libpath_sed='
10777       /Import File Strings/,/^$/ {
10778           /^0/ {
10779               s/^0  *\([^ ]*\) *$/\1/
10780               p
10781           }
10782       }'
10783   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10784   # Check for a 64-bit object if we didn't find anything.
10785   if test -z "$lt_cv_aix_libpath_"; then
10786     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10787   fi
10788 fi
10789 rm -f core conftest.err conftest.$ac_objext \
10790     conftest$ac_exeext conftest.$ac_ext
10791   if test -z "$lt_cv_aix_libpath_"; then
10792     lt_cv_aix_libpath_="/usr/lib:/lib"
10793   fi
10794
10795 fi
10796
10797   aix_libpath=$lt_cv_aix_libpath_
10798 fi
10799
10800         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10801         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"
10802       else
10803         if test "$host_cpu" = ia64; then
10804           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10805           allow_undefined_flag="-z nodefs"
10806           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"
10807         else
10808          # Determine the default libpath from the value encoded in an
10809          # empty executable.
10810          if test "${lt_cv_aix_libpath+set}" = set; then
10811   aix_libpath=$lt_cv_aix_libpath
10812 else
10813   if ${lt_cv_aix_libpath_+:} false; then :
10814   $as_echo_n "(cached) " >&6
10815 else
10816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10817 /* end confdefs.h.  */
10818
10819 int
10820 main ()
10821 {
10822
10823   ;
10824   return 0;
10825 }
10826 _ACEOF
10827 if ac_fn_c_try_link "$LINENO"; then :
10828
10829   lt_aix_libpath_sed='
10830       /Import File Strings/,/^$/ {
10831           /^0/ {
10832               s/^0  *\([^ ]*\) *$/\1/
10833               p
10834           }
10835       }'
10836   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10837   # Check for a 64-bit object if we didn't find anything.
10838   if test -z "$lt_cv_aix_libpath_"; then
10839     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10840   fi
10841 fi
10842 rm -f core conftest.err conftest.$ac_objext \
10843     conftest$ac_exeext conftest.$ac_ext
10844   if test -z "$lt_cv_aix_libpath_"; then
10845     lt_cv_aix_libpath_="/usr/lib:/lib"
10846   fi
10847
10848 fi
10849
10850   aix_libpath=$lt_cv_aix_libpath_
10851 fi
10852
10853          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10854           # Warning - without using the other run time loading flags,
10855           # -berok will link without error, but may produce a broken library.
10856           no_undefined_flag=' ${wl}-bernotok'
10857           allow_undefined_flag=' ${wl}-berok'
10858           if test "$with_gnu_ld" = yes; then
10859             # We only use this code for GNU lds that support --whole-archive.
10860             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10861           else
10862             # Exported symbols can be pulled into shared objects from archives
10863             whole_archive_flag_spec='$convenience'
10864           fi
10865           archive_cmds_need_lc=yes
10866           # This is similar to how AIX traditionally builds its shared libraries.
10867           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'
10868         fi
10869       fi
10870       ;;
10871
10872     amigaos*)
10873       case $host_cpu in
10874       powerpc)
10875             # see comment about AmigaOS4 .so support
10876             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10877             archive_expsym_cmds=''
10878         ;;
10879       m68k)
10880             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)'
10881             hardcode_libdir_flag_spec='-L$libdir'
10882             hardcode_minus_L=yes
10883         ;;
10884       esac
10885       ;;
10886
10887     bsdi[45]*)
10888       export_dynamic_flag_spec=-rdynamic
10889       ;;
10890
10891     cygwin* | mingw* | pw32* | cegcc*)
10892       # When not using gcc, we currently assume that we are using
10893       # Microsoft Visual C++.
10894       # hardcode_libdir_flag_spec is actually meaningless, as there is
10895       # no search path for DLLs.
10896       case $cc_basename in
10897       cl*)
10898         # Native MSVC
10899         hardcode_libdir_flag_spec=' '
10900         allow_undefined_flag=unsupported
10901         always_export_symbols=yes
10902         file_list_spec='@'
10903         # Tell ltmain to make .lib files, not .a files.
10904         libext=lib
10905         # Tell ltmain to make .dll files, not .so files.
10906         shrext_cmds=".dll"
10907         # FIXME: Setting linknames here is a bad hack.
10908         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10909         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10910             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10911           else
10912             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10913           fi~
10914           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10915           linknames='
10916         # The linker will not automatically build a static lib if we build a DLL.
10917         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10918         enable_shared_with_static_runtimes=yes
10919         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10920         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10921         # Don't use ranlib
10922         old_postinstall_cmds='chmod 644 $oldlib'
10923         postlink_cmds='lt_outputfile="@OUTPUT@"~
10924           lt_tool_outputfile="@TOOL_OUTPUT@"~
10925           case $lt_outputfile in
10926             *.exe|*.EXE) ;;
10927             *)
10928               lt_outputfile="$lt_outputfile.exe"
10929               lt_tool_outputfile="$lt_tool_outputfile.exe"
10930               ;;
10931           esac~
10932           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10933             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10934             $RM "$lt_outputfile.manifest";
10935           fi'
10936         ;;
10937       *)
10938         # Assume MSVC wrapper
10939         hardcode_libdir_flag_spec=' '
10940         allow_undefined_flag=unsupported
10941         # Tell ltmain to make .lib files, not .a files.
10942         libext=lib
10943         # Tell ltmain to make .dll files, not .so files.
10944         shrext_cmds=".dll"
10945         # FIXME: Setting linknames here is a bad hack.
10946         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10947         # The linker will automatically build a .lib file if we build a DLL.
10948         old_archive_from_new_cmds='true'
10949         # FIXME: Should let the user specify the lib program.
10950         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10951         enable_shared_with_static_runtimes=yes
10952         ;;
10953       esac
10954       ;;
10955
10956     darwin* | rhapsody*)
10957
10958
10959   archive_cmds_need_lc=no
10960   hardcode_direct=no
10961   hardcode_automatic=yes
10962   hardcode_shlibpath_var=unsupported
10963   if test "$lt_cv_ld_force_load" = "yes"; then
10964     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\"`'
10965
10966   else
10967     whole_archive_flag_spec=''
10968   fi
10969   link_all_deplibs=yes
10970   allow_undefined_flag="$_lt_dar_allow_undefined"
10971   case $cc_basename in
10972      ifort*) _lt_dar_can_shared=yes ;;
10973      *) _lt_dar_can_shared=$GCC ;;
10974   esac
10975   if test "$_lt_dar_can_shared" = "yes"; then
10976     output_verbose_link_cmd=func_echo_all
10977     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10978     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10979     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}"
10980     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}"
10981
10982   else
10983   ld_shlibs=no
10984   fi
10985
10986       ;;
10987
10988     dgux*)
10989       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10990       hardcode_libdir_flag_spec='-L$libdir'
10991       hardcode_shlibpath_var=no
10992       ;;
10993
10994     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10995     # support.  Future versions do this automatically, but an explicit c++rt0.o
10996     # does not break anything, and helps significantly (at the cost of a little
10997     # extra space).
10998     freebsd2.2*)
10999       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11000       hardcode_libdir_flag_spec='-R$libdir'
11001       hardcode_direct=yes
11002       hardcode_shlibpath_var=no
11003       ;;
11004
11005     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11006     freebsd2.*)
11007       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11008       hardcode_direct=yes
11009       hardcode_minus_L=yes
11010       hardcode_shlibpath_var=no
11011       ;;
11012
11013     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11014     freebsd* | dragonfly*)
11015       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11016       hardcode_libdir_flag_spec='-R$libdir'
11017       hardcode_direct=yes
11018       hardcode_shlibpath_var=no
11019       ;;
11020
11021     hpux9*)
11022       if test "$GCC" = yes; then
11023         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'
11024       else
11025         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'
11026       fi
11027       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11028       hardcode_libdir_separator=:
11029       hardcode_direct=yes
11030
11031       # hardcode_minus_L: Not really in the search PATH,
11032       # but as the default location of the library.
11033       hardcode_minus_L=yes
11034       export_dynamic_flag_spec='${wl}-E'
11035       ;;
11036
11037     hpux10*)
11038       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11039         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11040       else
11041         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11042       fi
11043       if test "$with_gnu_ld" = no; then
11044         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11045         hardcode_libdir_separator=:
11046         hardcode_direct=yes
11047         hardcode_direct_absolute=yes
11048         export_dynamic_flag_spec='${wl}-E'
11049         # hardcode_minus_L: Not really in the search PATH,
11050         # but as the default location of the library.
11051         hardcode_minus_L=yes
11052       fi
11053       ;;
11054
11055     hpux11*)
11056       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11057         case $host_cpu in
11058         hppa*64*)
11059           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11060           ;;
11061         ia64*)
11062           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11063           ;;
11064         *)
11065           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11066           ;;
11067         esac
11068       else
11069         case $host_cpu in
11070         hppa*64*)
11071           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11072           ;;
11073         ia64*)
11074           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11075           ;;
11076         *)
11077
11078           # Older versions of the 11.00 compiler do not understand -b yet
11079           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11080           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11081 $as_echo_n "checking if $CC understands -b... " >&6; }
11082 if ${lt_cv_prog_compiler__b+:} false; then :
11083   $as_echo_n "(cached) " >&6
11084 else
11085   lt_cv_prog_compiler__b=no
11086    save_LDFLAGS="$LDFLAGS"
11087    LDFLAGS="$LDFLAGS -b"
11088    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11089    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11090      # The linker can only warn and ignore the option if not recognized
11091      # So say no if there are warnings
11092      if test -s conftest.err; then
11093        # Append any errors to the config.log.
11094        cat conftest.err 1>&5
11095        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11096        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11097        if diff conftest.exp conftest.er2 >/dev/null; then
11098          lt_cv_prog_compiler__b=yes
11099        fi
11100      else
11101        lt_cv_prog_compiler__b=yes
11102      fi
11103    fi
11104    $RM -r conftest*
11105    LDFLAGS="$save_LDFLAGS"
11106
11107 fi
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11109 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11110
11111 if test x"$lt_cv_prog_compiler__b" = xyes; then
11112     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11113 else
11114     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11115 fi
11116
11117           ;;
11118         esac
11119       fi
11120       if test "$with_gnu_ld" = no; then
11121         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11122         hardcode_libdir_separator=:
11123
11124         case $host_cpu in
11125         hppa*64*|ia64*)
11126           hardcode_direct=no
11127           hardcode_shlibpath_var=no
11128           ;;
11129         *)
11130           hardcode_direct=yes
11131           hardcode_direct_absolute=yes
11132           export_dynamic_flag_spec='${wl}-E'
11133
11134           # hardcode_minus_L: Not really in the search PATH,
11135           # but as the default location of the library.
11136           hardcode_minus_L=yes
11137           ;;
11138         esac
11139       fi
11140       ;;
11141
11142     irix5* | irix6* | nonstopux*)
11143       if test "$GCC" = yes; then
11144         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'
11145         # Try to use the -exported_symbol ld option, if it does not
11146         # work, assume that -exports_file does not work either and
11147         # implicitly export all symbols.
11148         # This should be the same for all languages, so no per-tag cache variable.
11149         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11150 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11151 if ${lt_cv_irix_exported_symbol+:} false; then :
11152   $as_echo_n "(cached) " >&6
11153 else
11154   save_LDFLAGS="$LDFLAGS"
11155            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11156            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h.  */
11158 int foo (void) { return 0; }
11159 _ACEOF
11160 if ac_fn_c_try_link "$LINENO"; then :
11161   lt_cv_irix_exported_symbol=yes
11162 else
11163   lt_cv_irix_exported_symbol=no
11164 fi
11165 rm -f core conftest.err conftest.$ac_objext \
11166     conftest$ac_exeext conftest.$ac_ext
11167            LDFLAGS="$save_LDFLAGS"
11168 fi
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11170 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11171         if test "$lt_cv_irix_exported_symbol" = yes; then
11172           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'
11173         fi
11174       else
11175         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'
11176         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'
11177       fi
11178       archive_cmds_need_lc='no'
11179       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11180       hardcode_libdir_separator=:
11181       inherit_rpath=yes
11182       link_all_deplibs=yes
11183       ;;
11184
11185     netbsd* | netbsdelf*-gnu)
11186       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11187         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11188       else
11189         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11190       fi
11191       hardcode_libdir_flag_spec='-R$libdir'
11192       hardcode_direct=yes
11193       hardcode_shlibpath_var=no
11194       ;;
11195
11196     newsos6)
11197       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11198       hardcode_direct=yes
11199       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11200       hardcode_libdir_separator=:
11201       hardcode_shlibpath_var=no
11202       ;;
11203
11204     *nto* | *qnx*)
11205       ;;
11206
11207     openbsd*)
11208       if test -f /usr/libexec/ld.so; then
11209         hardcode_direct=yes
11210         hardcode_shlibpath_var=no
11211         hardcode_direct_absolute=yes
11212         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11213           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11214           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11215           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11216           export_dynamic_flag_spec='${wl}-E'
11217         else
11218           case $host_os in
11219            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11220              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11221              hardcode_libdir_flag_spec='-R$libdir'
11222              ;;
11223            *)
11224              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11225              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11226              ;;
11227           esac
11228         fi
11229       else
11230         ld_shlibs=no
11231       fi
11232       ;;
11233
11234     os2*)
11235       hardcode_libdir_flag_spec='-L$libdir'
11236       hardcode_minus_L=yes
11237       allow_undefined_flag=unsupported
11238       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'
11239       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11240       ;;
11241
11242     osf3*)
11243       if test "$GCC" = yes; then
11244         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11245         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'
11246       else
11247         allow_undefined_flag=' -expect_unresolved \*'
11248         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'
11249       fi
11250       archive_cmds_need_lc='no'
11251       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11252       hardcode_libdir_separator=:
11253       ;;
11254
11255     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11256       if test "$GCC" = yes; then
11257         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11258         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'
11259         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11260       else
11261         allow_undefined_flag=' -expect_unresolved \*'
11262         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'
11263         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~
11264         $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'
11265
11266         # Both c and cxx compiler support -rpath directly
11267         hardcode_libdir_flag_spec='-rpath $libdir'
11268       fi
11269       archive_cmds_need_lc='no'
11270       hardcode_libdir_separator=:
11271       ;;
11272
11273     solaris*)
11274       no_undefined_flag=' -z defs'
11275       if test "$GCC" = yes; then
11276         wlarc='${wl}'
11277         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11278         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11279           $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'
11280       else
11281         case `$CC -V 2>&1` in
11282         *"Compilers 5.0"*)
11283           wlarc=''
11284           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11285           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11286           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11287           ;;
11288         *)
11289           wlarc='${wl}'
11290           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11291           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11292           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11293           ;;
11294         esac
11295       fi
11296       hardcode_libdir_flag_spec='-R$libdir'
11297       hardcode_shlibpath_var=no
11298       case $host_os in
11299       solaris2.[0-5] | solaris2.[0-5].*) ;;
11300       *)
11301         # The compiler driver will combine and reorder linker options,
11302         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11303         # but is careful enough not to reorder.
11304         # Supported since Solaris 2.6 (maybe 2.5.1?)
11305         if test "$GCC" = yes; then
11306           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11307         else
11308           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11309         fi
11310         ;;
11311       esac
11312       link_all_deplibs=yes
11313       ;;
11314
11315     sunos4*)
11316       if test "x$host_vendor" = xsequent; then
11317         # Use $CC to link under sequent, because it throws in some extra .o
11318         # files that make .init and .fini sections work.
11319         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11320       else
11321         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11322       fi
11323       hardcode_libdir_flag_spec='-L$libdir'
11324       hardcode_direct=yes
11325       hardcode_minus_L=yes
11326       hardcode_shlibpath_var=no
11327       ;;
11328
11329     sysv4)
11330       case $host_vendor in
11331         sni)
11332           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11333           hardcode_direct=yes # is this really true???
11334         ;;
11335         siemens)
11336           ## LD is ld it makes a PLAMLIB
11337           ## CC just makes a GrossModule.
11338           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11339           reload_cmds='$CC -r -o $output$reload_objs'
11340           hardcode_direct=no
11341         ;;
11342         motorola)
11343           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11344           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11345         ;;
11346       esac
11347       runpath_var='LD_RUN_PATH'
11348       hardcode_shlibpath_var=no
11349       ;;
11350
11351     sysv4.3*)
11352       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11353       hardcode_shlibpath_var=no
11354       export_dynamic_flag_spec='-Bexport'
11355       ;;
11356
11357     sysv4*MP*)
11358       if test -d /usr/nec; then
11359         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11360         hardcode_shlibpath_var=no
11361         runpath_var=LD_RUN_PATH
11362         hardcode_runpath_var=yes
11363         ld_shlibs=yes
11364       fi
11365       ;;
11366
11367     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11368       no_undefined_flag='${wl}-z,text'
11369       archive_cmds_need_lc=no
11370       hardcode_shlibpath_var=no
11371       runpath_var='LD_RUN_PATH'
11372
11373       if test "$GCC" = yes; then
11374         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11375         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11376       else
11377         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11378         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11379       fi
11380       ;;
11381
11382     sysv5* | sco3.2v5* | sco5v6*)
11383       # Note: We can NOT use -z defs as we might desire, because we do not
11384       # link with -lc, and that would cause any symbols used from libc to
11385       # always be unresolved, which means just about no library would
11386       # ever link correctly.  If we're not using GNU ld we use -z text
11387       # though, which does catch some bad symbols but isn't as heavy-handed
11388       # as -z defs.
11389       no_undefined_flag='${wl}-z,text'
11390       allow_undefined_flag='${wl}-z,nodefs'
11391       archive_cmds_need_lc=no
11392       hardcode_shlibpath_var=no
11393       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11394       hardcode_libdir_separator=':'
11395       link_all_deplibs=yes
11396       export_dynamic_flag_spec='${wl}-Bexport'
11397       runpath_var='LD_RUN_PATH'
11398
11399       if test "$GCC" = yes; then
11400         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11401         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11402       else
11403         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11404         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11405       fi
11406       ;;
11407
11408     uts4*)
11409       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11410       hardcode_libdir_flag_spec='-L$libdir'
11411       hardcode_shlibpath_var=no
11412       ;;
11413
11414     *)
11415       ld_shlibs=no
11416       ;;
11417     esac
11418
11419     if test x$host_vendor = xsni; then
11420       case $host in
11421       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11422         export_dynamic_flag_spec='${wl}-Blargedynsym'
11423         ;;
11424       esac
11425     fi
11426   fi
11427
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11429 $as_echo "$ld_shlibs" >&6; }
11430 test "$ld_shlibs" = no && can_build_shared=no
11431
11432 with_gnu_ld=$with_gnu_ld
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448 #
11449 # Do we need to explicitly link libc?
11450 #
11451 case "x$archive_cmds_need_lc" in
11452 x|xyes)
11453   # Assume -lc should be added
11454   archive_cmds_need_lc=yes
11455
11456   if test "$enable_shared" = yes && test "$GCC" = yes; then
11457     case $archive_cmds in
11458     *'~'*)
11459       # FIXME: we may have to deal with multi-command sequences.
11460       ;;
11461     '$CC '*)
11462       # Test whether the compiler implicitly links with -lc since on some
11463       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11464       # to ld, don't add -lc before -lgcc.
11465       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11466 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11467 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11468   $as_echo_n "(cached) " >&6
11469 else
11470   $RM conftest*
11471         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11472
11473         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11474   (eval $ac_compile) 2>&5
11475   ac_status=$?
11476   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11477   test $ac_status = 0; } 2>conftest.err; then
11478           soname=conftest
11479           lib=conftest
11480           libobjs=conftest.$ac_objext
11481           deplibs=
11482           wl=$lt_prog_compiler_wl
11483           pic_flag=$lt_prog_compiler_pic
11484           compiler_flags=-v
11485           linker_flags=-v
11486           verstring=
11487           output_objdir=.
11488           libname=conftest
11489           lt_save_allow_undefined_flag=$allow_undefined_flag
11490           allow_undefined_flag=
11491           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11492   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11493   ac_status=$?
11494   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11495   test $ac_status = 0; }
11496           then
11497             lt_cv_archive_cmds_need_lc=no
11498           else
11499             lt_cv_archive_cmds_need_lc=yes
11500           fi
11501           allow_undefined_flag=$lt_save_allow_undefined_flag
11502         else
11503           cat conftest.err 1>&5
11504         fi
11505         $RM conftest*
11506
11507 fi
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11509 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11510       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11511       ;;
11512     esac
11513   fi
11514   ;;
11515 esac
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11669 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11670
11671 if test "$GCC" = yes; then
11672   case $host_os in
11673     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11674     *) lt_awk_arg="/^libraries:/" ;;
11675   esac
11676   case $host_os in
11677     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11678     *) lt_sed_strip_eq="s,=/,/,g" ;;
11679   esac
11680   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11681   case $lt_search_path_spec in
11682   *\;*)
11683     # if the path contains ";" then we assume it to be the separator
11684     # otherwise default to the standard path separator (i.e. ":") - it is
11685     # assumed that no part of a normal pathname contains ";" but that should
11686     # okay in the real world where ";" in dirpaths is itself problematic.
11687     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11688     ;;
11689   *)
11690     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11691     ;;
11692   esac
11693   # Ok, now we have the path, separated by spaces, we can step through it
11694   # and add multilib dir if necessary.
11695   lt_tmp_lt_search_path_spec=
11696   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11697   for lt_sys_path in $lt_search_path_spec; do
11698     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11699       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11700     else
11701       test -d "$lt_sys_path" && \
11702         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11703     fi
11704   done
11705   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11706 BEGIN {RS=" "; FS="/|\n";} {
11707   lt_foo="";
11708   lt_count=0;
11709   for (lt_i = NF; lt_i > 0; lt_i--) {
11710     if ($lt_i != "" && $lt_i != ".") {
11711       if ($lt_i == "..") {
11712         lt_count++;
11713       } else {
11714         if (lt_count == 0) {
11715           lt_foo="/" $lt_i lt_foo;
11716         } else {
11717           lt_count--;
11718         }
11719       }
11720     }
11721   }
11722   if (lt_foo != "") { lt_freq[lt_foo]++; }
11723   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11724 }'`
11725   # AWK program above erroneously prepends '/' to C:/dos/paths
11726   # for these hosts.
11727   case $host_os in
11728     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11729       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11730   esac
11731   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11732 else
11733   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11734 fi
11735 library_names_spec=
11736 libname_spec='lib$name'
11737 soname_spec=
11738 shrext_cmds=".so"
11739 postinstall_cmds=
11740 postuninstall_cmds=
11741 finish_cmds=
11742 finish_eval=
11743 shlibpath_var=
11744 shlibpath_overrides_runpath=unknown
11745 version_type=none
11746 dynamic_linker="$host_os ld.so"
11747 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11748 need_lib_prefix=unknown
11749 hardcode_into_libs=no
11750
11751 # when you set need_version to no, make sure it does not cause -set_version
11752 # flags to be left without arguments
11753 need_version=unknown
11754
11755 case $host_os in
11756 aix3*)
11757   version_type=linux # correct to gnu/linux during the next big refactor
11758   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11759   shlibpath_var=LIBPATH
11760
11761   # AIX 3 has no versioning support, so we append a major version to the name.
11762   soname_spec='${libname}${release}${shared_ext}$major'
11763   ;;
11764
11765 aix[4-9]*)
11766   version_type=linux # correct to gnu/linux during the next big refactor
11767   need_lib_prefix=no
11768   need_version=no
11769   hardcode_into_libs=yes
11770   if test "$host_cpu" = ia64; then
11771     # AIX 5 supports IA64
11772     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11773     shlibpath_var=LD_LIBRARY_PATH
11774   else
11775     # With GCC up to 2.95.x, collect2 would create an import file
11776     # for dependence libraries.  The import file would start with
11777     # the line `#! .'.  This would cause the generated library to
11778     # depend on `.', always an invalid library.  This was fixed in
11779     # development snapshots of GCC prior to 3.0.
11780     case $host_os in
11781       aix4 | aix4.[01] | aix4.[01].*)
11782       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11783            echo ' yes '
11784            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11785         :
11786       else
11787         can_build_shared=no
11788       fi
11789       ;;
11790     esac
11791     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11792     # soname into executable. Probably we can add versioning support to
11793     # collect2, so additional links can be useful in future.
11794     if test "$aix_use_runtimelinking" = yes; then
11795       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11796       # instead of lib<name>.a to let people know that these are not
11797       # typical AIX shared libraries.
11798       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11799     else
11800       # We preserve .a as extension for shared libraries through AIX4.2
11801       # and later when we are not doing run time linking.
11802       library_names_spec='${libname}${release}.a $libname.a'
11803       soname_spec='${libname}${release}${shared_ext}$major'
11804     fi
11805     shlibpath_var=LIBPATH
11806   fi
11807   ;;
11808
11809 amigaos*)
11810   case $host_cpu in
11811   powerpc)
11812     # Since July 2007 AmigaOS4 officially supports .so libraries.
11813     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11814     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11815     ;;
11816   m68k)
11817     library_names_spec='$libname.ixlibrary $libname.a'
11818     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11819     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'
11820     ;;
11821   esac
11822   ;;
11823
11824 beos*)
11825   library_names_spec='${libname}${shared_ext}'
11826   dynamic_linker="$host_os ld.so"
11827   shlibpath_var=LIBRARY_PATH
11828   ;;
11829
11830 bsdi[45]*)
11831   version_type=linux # correct to gnu/linux during the next big refactor
11832   need_version=no
11833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11834   soname_spec='${libname}${release}${shared_ext}$major'
11835   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11836   shlibpath_var=LD_LIBRARY_PATH
11837   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11838   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11839   # the default ld.so.conf also contains /usr/contrib/lib and
11840   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11841   # libtool to hard-code these into programs
11842   ;;
11843
11844 cygwin* | mingw* | pw32* | cegcc*)
11845   version_type=windows
11846   shrext_cmds=".dll"
11847   need_version=no
11848   need_lib_prefix=no
11849
11850   case $GCC,$cc_basename in
11851   yes,*)
11852     # gcc
11853     library_names_spec='$libname.dll.a'
11854     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11855     postinstall_cmds='base_file=`basename \${file}`~
11856       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11857       dldir=$destdir/`dirname \$dlpath`~
11858       test -d \$dldir || mkdir -p \$dldir~
11859       $install_prog $dir/$dlname \$dldir/$dlname~
11860       chmod a+x \$dldir/$dlname~
11861       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11862         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11863       fi'
11864     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11865       dlpath=$dir/\$dldll~
11866        $RM \$dlpath'
11867     shlibpath_overrides_runpath=yes
11868
11869     case $host_os in
11870     cygwin*)
11871       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11872       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11873
11874       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11875       ;;
11876     mingw* | cegcc*)
11877       # MinGW DLLs use traditional 'lib' prefix
11878       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11879       ;;
11880     pw32*)
11881       # pw32 DLLs use 'pw' prefix rather than 'lib'
11882       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11883       ;;
11884     esac
11885     dynamic_linker='Win32 ld.exe'
11886     ;;
11887
11888   *,cl*)
11889     # Native MSVC
11890     libname_spec='$name'
11891     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11892     library_names_spec='${libname}.dll.lib'
11893
11894     case $build_os in
11895     mingw*)
11896       sys_lib_search_path_spec=
11897       lt_save_ifs=$IFS
11898       IFS=';'
11899       for lt_path in $LIB
11900       do
11901         IFS=$lt_save_ifs
11902         # Let DOS variable expansion print the short 8.3 style file name.
11903         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11904         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11905       done
11906       IFS=$lt_save_ifs
11907       # Convert to MSYS style.
11908       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11909       ;;
11910     cygwin*)
11911       # Convert to unix form, then to dos form, then back to unix form
11912       # but this time dos style (no spaces!) so that the unix form looks
11913       # like /cygdrive/c/PROGRA~1:/cygdr...
11914       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11915       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11916       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11917       ;;
11918     *)
11919       sys_lib_search_path_spec="$LIB"
11920       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11921         # It is most probably a Windows format PATH.
11922         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11923       else
11924         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11925       fi
11926       # FIXME: find the short name or the path components, as spaces are
11927       # common. (e.g. "Program Files" -> "PROGRA~1")
11928       ;;
11929     esac
11930
11931     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11932     postinstall_cmds='base_file=`basename \${file}`~
11933       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11934       dldir=$destdir/`dirname \$dlpath`~
11935       test -d \$dldir || mkdir -p \$dldir~
11936       $install_prog $dir/$dlname \$dldir/$dlname'
11937     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11938       dlpath=$dir/\$dldll~
11939        $RM \$dlpath'
11940     shlibpath_overrides_runpath=yes
11941     dynamic_linker='Win32 link.exe'
11942     ;;
11943
11944   *)
11945     # Assume MSVC wrapper
11946     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11947     dynamic_linker='Win32 ld.exe'
11948     ;;
11949   esac
11950   # FIXME: first we should search . and the directory the executable is in
11951   shlibpath_var=PATH
11952   ;;
11953
11954 darwin* | rhapsody*)
11955   dynamic_linker="$host_os dyld"
11956   version_type=darwin
11957   need_lib_prefix=no
11958   need_version=no
11959   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11960   soname_spec='${libname}${release}${major}$shared_ext'
11961   shlibpath_overrides_runpath=yes
11962   shlibpath_var=DYLD_LIBRARY_PATH
11963   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11964
11965   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11966   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11967   ;;
11968
11969 dgux*)
11970   version_type=linux # correct to gnu/linux during the next big refactor
11971   need_lib_prefix=no
11972   need_version=no
11973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11974   soname_spec='${libname}${release}${shared_ext}$major'
11975   shlibpath_var=LD_LIBRARY_PATH
11976   ;;
11977
11978 freebsd* | dragonfly*)
11979   # DragonFly does not have aout.  When/if they implement a new
11980   # versioning mechanism, adjust this.
11981   if test -x /usr/bin/objformat; then
11982     objformat=`/usr/bin/objformat`
11983   else
11984     case $host_os in
11985     freebsd[23].*) objformat=aout ;;
11986     *) objformat=elf ;;
11987     esac
11988   fi
11989   version_type=freebsd-$objformat
11990   case $version_type in
11991     freebsd-elf*)
11992       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11993       need_version=no
11994       need_lib_prefix=no
11995       ;;
11996     freebsd-*)
11997       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11998       need_version=yes
11999       ;;
12000   esac
12001   shlibpath_var=LD_LIBRARY_PATH
12002   case $host_os in
12003   freebsd2.*)
12004     shlibpath_overrides_runpath=yes
12005     ;;
12006   freebsd3.[01]* | freebsdelf3.[01]*)
12007     shlibpath_overrides_runpath=yes
12008     hardcode_into_libs=yes
12009     ;;
12010   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12011   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12012     shlibpath_overrides_runpath=no
12013     hardcode_into_libs=yes
12014     ;;
12015   *) # from 4.6 on, and DragonFly
12016     shlibpath_overrides_runpath=yes
12017     hardcode_into_libs=yes
12018     ;;
12019   esac
12020   ;;
12021
12022 haiku*)
12023   version_type=linux # correct to gnu/linux during the next big refactor
12024   need_lib_prefix=no
12025   need_version=no
12026   dynamic_linker="$host_os runtime_loader"
12027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12028   soname_spec='${libname}${release}${shared_ext}$major'
12029   shlibpath_var=LIBRARY_PATH
12030   shlibpath_overrides_runpath=yes
12031   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12032   hardcode_into_libs=yes
12033   ;;
12034
12035 hpux9* | hpux10* | hpux11*)
12036   # Give a soname corresponding to the major version so that dld.sl refuses to
12037   # link against other versions.
12038   version_type=sunos
12039   need_lib_prefix=no
12040   need_version=no
12041   case $host_cpu in
12042   ia64*)
12043     shrext_cmds='.so'
12044     hardcode_into_libs=yes
12045     dynamic_linker="$host_os dld.so"
12046     shlibpath_var=LD_LIBRARY_PATH
12047     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12048     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12049     soname_spec='${libname}${release}${shared_ext}$major'
12050     if test "X$HPUX_IA64_MODE" = X32; then
12051       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12052     else
12053       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12054     fi
12055     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12056     ;;
12057   hppa*64*)
12058     shrext_cmds='.sl'
12059     hardcode_into_libs=yes
12060     dynamic_linker="$host_os dld.sl"
12061     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12062     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12063     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12064     soname_spec='${libname}${release}${shared_ext}$major'
12065     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12066     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12067     ;;
12068   *)
12069     shrext_cmds='.sl'
12070     dynamic_linker="$host_os dld.sl"
12071     shlibpath_var=SHLIB_PATH
12072     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12073     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12074     soname_spec='${libname}${release}${shared_ext}$major'
12075     ;;
12076   esac
12077   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12078   postinstall_cmds='chmod 555 $lib'
12079   # or fails outright, so override atomically:
12080   install_override_mode=555
12081   ;;
12082
12083 interix[3-9]*)
12084   version_type=linux # correct to gnu/linux during the next big refactor
12085   need_lib_prefix=no
12086   need_version=no
12087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12088   soname_spec='${libname}${release}${shared_ext}$major'
12089   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12090   shlibpath_var=LD_LIBRARY_PATH
12091   shlibpath_overrides_runpath=no
12092   hardcode_into_libs=yes
12093   ;;
12094
12095 irix5* | irix6* | nonstopux*)
12096   case $host_os in
12097     nonstopux*) version_type=nonstopux ;;
12098     *)
12099         if test "$lt_cv_prog_gnu_ld" = yes; then
12100                 version_type=linux # correct to gnu/linux during the next big refactor
12101         else
12102                 version_type=irix
12103         fi ;;
12104   esac
12105   need_lib_prefix=no
12106   need_version=no
12107   soname_spec='${libname}${release}${shared_ext}$major'
12108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12109   case $host_os in
12110   irix5* | nonstopux*)
12111     libsuff= shlibsuff=
12112     ;;
12113   *)
12114     case $LD in # libtool.m4 will add one of these switches to LD
12115     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12116       libsuff= shlibsuff= libmagic=32-bit;;
12117     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12118       libsuff=32 shlibsuff=N32 libmagic=N32;;
12119     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12120       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12121     *) libsuff= shlibsuff= libmagic=never-match;;
12122     esac
12123     ;;
12124   esac
12125   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12126   shlibpath_overrides_runpath=no
12127   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12128   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12129   hardcode_into_libs=yes
12130   ;;
12131
12132 # No shared lib support for Linux oldld, aout, or coff.
12133 linux*oldld* | linux*aout* | linux*coff*)
12134   dynamic_linker=no
12135   ;;
12136
12137 # This must be glibc/ELF.
12138 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12139   version_type=linux # correct to gnu/linux during the next big refactor
12140   need_lib_prefix=no
12141   need_version=no
12142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12143   soname_spec='${libname}${release}${shared_ext}$major'
12144   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12145   shlibpath_var=LD_LIBRARY_PATH
12146   shlibpath_overrides_runpath=no
12147
12148   # Some binutils ld are patched to set DT_RUNPATH
12149   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12150   $as_echo_n "(cached) " >&6
12151 else
12152   lt_cv_shlibpath_overrides_runpath=no
12153     save_LDFLAGS=$LDFLAGS
12154     save_libdir=$libdir
12155     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12156          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12157     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h.  */
12159
12160 int
12161 main ()
12162 {
12163
12164   ;
12165   return 0;
12166 }
12167 _ACEOF
12168 if ac_fn_c_try_link "$LINENO"; then :
12169   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12170   lt_cv_shlibpath_overrides_runpath=yes
12171 fi
12172 fi
12173 rm -f core conftest.err conftest.$ac_objext \
12174     conftest$ac_exeext conftest.$ac_ext
12175     LDFLAGS=$save_LDFLAGS
12176     libdir=$save_libdir
12177
12178 fi
12179
12180   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12181
12182   # This implies no fast_install, which is unacceptable.
12183   # Some rework will be needed to allow for fast_install
12184   # before this can be enabled.
12185   hardcode_into_libs=yes
12186
12187   # Append ld.so.conf contents to the search path
12188   if test -f /etc/ld.so.conf; then
12189     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' ' '`
12190     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12191   fi
12192
12193   # We used to test for /lib/ld.so.1 and disable shared libraries on
12194   # powerpc, because MkLinux only supported shared libraries with the
12195   # GNU dynamic linker.  Since this was broken with cross compilers,
12196   # most powerpc-linux boxes support dynamic linking these days and
12197   # people can always --disable-shared, the test was removed, and we
12198   # assume the GNU/Linux dynamic linker is in use.
12199   dynamic_linker='GNU/Linux ld.so'
12200   ;;
12201
12202 netbsdelf*-gnu)
12203   version_type=linux
12204   need_lib_prefix=no
12205   need_version=no
12206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12207   soname_spec='${libname}${release}${shared_ext}$major'
12208   shlibpath_var=LD_LIBRARY_PATH
12209   shlibpath_overrides_runpath=no
12210   hardcode_into_libs=yes
12211   dynamic_linker='NetBSD ld.elf_so'
12212   ;;
12213
12214 netbsd*)
12215   version_type=sunos
12216   need_lib_prefix=no
12217   need_version=no
12218   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12219     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12220     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12221     dynamic_linker='NetBSD (a.out) ld.so'
12222   else
12223     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12224     soname_spec='${libname}${release}${shared_ext}$major'
12225     dynamic_linker='NetBSD ld.elf_so'
12226   fi
12227   shlibpath_var=LD_LIBRARY_PATH
12228   shlibpath_overrides_runpath=yes
12229   hardcode_into_libs=yes
12230   ;;
12231
12232 newsos6)
12233   version_type=linux # correct to gnu/linux during the next big refactor
12234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12235   shlibpath_var=LD_LIBRARY_PATH
12236   shlibpath_overrides_runpath=yes
12237   ;;
12238
12239 *nto* | *qnx*)
12240   version_type=qnx
12241   need_lib_prefix=no
12242   need_version=no
12243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12244   soname_spec='${libname}${release}${shared_ext}$major'
12245   shlibpath_var=LD_LIBRARY_PATH
12246   shlibpath_overrides_runpath=no
12247   hardcode_into_libs=yes
12248   dynamic_linker='ldqnx.so'
12249   ;;
12250
12251 openbsd*)
12252   version_type=sunos
12253   sys_lib_dlsearch_path_spec="/usr/lib"
12254   need_lib_prefix=no
12255   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12256   case $host_os in
12257     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12258     *)                          need_version=no  ;;
12259   esac
12260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12261   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12262   shlibpath_var=LD_LIBRARY_PATH
12263   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12264     case $host_os in
12265       openbsd2.[89] | openbsd2.[89].*)
12266         shlibpath_overrides_runpath=no
12267         ;;
12268       *)
12269         shlibpath_overrides_runpath=yes
12270         ;;
12271       esac
12272   else
12273     shlibpath_overrides_runpath=yes
12274   fi
12275   ;;
12276
12277 os2*)
12278   libname_spec='$name'
12279   shrext_cmds=".dll"
12280   need_lib_prefix=no
12281   library_names_spec='$libname${shared_ext} $libname.a'
12282   dynamic_linker='OS/2 ld.exe'
12283   shlibpath_var=LIBPATH
12284   ;;
12285
12286 osf3* | osf4* | osf5*)
12287   version_type=osf
12288   need_lib_prefix=no
12289   need_version=no
12290   soname_spec='${libname}${release}${shared_ext}$major'
12291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12292   shlibpath_var=LD_LIBRARY_PATH
12293   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12294   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12295   ;;
12296
12297 rdos*)
12298   dynamic_linker=no
12299   ;;
12300
12301 solaris*)
12302   version_type=linux # correct to gnu/linux during the next big refactor
12303   need_lib_prefix=no
12304   need_version=no
12305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12306   soname_spec='${libname}${release}${shared_ext}$major'
12307   shlibpath_var=LD_LIBRARY_PATH
12308   shlibpath_overrides_runpath=yes
12309   hardcode_into_libs=yes
12310   # ldd complains unless libraries are executable
12311   postinstall_cmds='chmod +x $lib'
12312   ;;
12313
12314 sunos4*)
12315   version_type=sunos
12316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12317   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12318   shlibpath_var=LD_LIBRARY_PATH
12319   shlibpath_overrides_runpath=yes
12320   if test "$with_gnu_ld" = yes; then
12321     need_lib_prefix=no
12322   fi
12323   need_version=yes
12324   ;;
12325
12326 sysv4 | sysv4.3*)
12327   version_type=linux # correct to gnu/linux during the next big refactor
12328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12329   soname_spec='${libname}${release}${shared_ext}$major'
12330   shlibpath_var=LD_LIBRARY_PATH
12331   case $host_vendor in
12332     sni)
12333       shlibpath_overrides_runpath=no
12334       need_lib_prefix=no
12335       runpath_var=LD_RUN_PATH
12336       ;;
12337     siemens)
12338       need_lib_prefix=no
12339       ;;
12340     motorola)
12341       need_lib_prefix=no
12342       need_version=no
12343       shlibpath_overrides_runpath=no
12344       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12345       ;;
12346   esac
12347   ;;
12348
12349 sysv4*MP*)
12350   if test -d /usr/nec ;then
12351     version_type=linux # correct to gnu/linux during the next big refactor
12352     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12353     soname_spec='$libname${shared_ext}.$major'
12354     shlibpath_var=LD_LIBRARY_PATH
12355   fi
12356   ;;
12357
12358 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12359   version_type=freebsd-elf
12360   need_lib_prefix=no
12361   need_version=no
12362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12363   soname_spec='${libname}${release}${shared_ext}$major'
12364   shlibpath_var=LD_LIBRARY_PATH
12365   shlibpath_overrides_runpath=yes
12366   hardcode_into_libs=yes
12367   if test "$with_gnu_ld" = yes; then
12368     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12369   else
12370     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12371     case $host_os in
12372       sco3.2v5*)
12373         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12374         ;;
12375     esac
12376   fi
12377   sys_lib_dlsearch_path_spec='/usr/lib'
12378   ;;
12379
12380 tpf*)
12381   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12382   version_type=linux # correct to gnu/linux during the next big refactor
12383   need_lib_prefix=no
12384   need_version=no
12385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12386   shlibpath_var=LD_LIBRARY_PATH
12387   shlibpath_overrides_runpath=no
12388   hardcode_into_libs=yes
12389   ;;
12390
12391 uts4*)
12392   version_type=linux # correct to gnu/linux during the next big refactor
12393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12394   soname_spec='${libname}${release}${shared_ext}$major'
12395   shlibpath_var=LD_LIBRARY_PATH
12396   ;;
12397
12398 *)
12399   dynamic_linker=no
12400   ;;
12401 esac
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12403 $as_echo "$dynamic_linker" >&6; }
12404 test "$dynamic_linker" = no && can_build_shared=no
12405
12406 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12407 if test "$GCC" = yes; then
12408   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12409 fi
12410
12411 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12412   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12413 fi
12414 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12415   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12416 fi
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12510 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12511 hardcode_action=
12512 if test -n "$hardcode_libdir_flag_spec" ||
12513    test -n "$runpath_var" ||
12514    test "X$hardcode_automatic" = "Xyes" ; then
12515
12516   # We can hardcode non-existent directories.
12517   if test "$hardcode_direct" != no &&
12518      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12519      # have to relink, otherwise we might link with an installed library
12520      # when we should be linking with a yet-to-be-installed one
12521      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12522      test "$hardcode_minus_L" != no; then
12523     # Linking always hardcodes the temporary library directory.
12524     hardcode_action=relink
12525   else
12526     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12527     hardcode_action=immediate
12528   fi
12529 else
12530   # We cannot hardcode anything, or else we can only hardcode existing
12531   # directories.
12532   hardcode_action=unsupported
12533 fi
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12535 $as_echo "$hardcode_action" >&6; }
12536
12537 if test "$hardcode_action" = relink ||
12538    test "$inherit_rpath" = yes; then
12539   # Fast installation is not supported
12540   enable_fast_install=no
12541 elif test "$shlibpath_overrides_runpath" = yes ||
12542      test "$enable_shared" = no; then
12543   # Fast installation is not necessary
12544   enable_fast_install=needless
12545 fi
12546
12547
12548
12549
12550
12551
12552   if test "x$enable_dlopen" != xyes; then
12553   enable_dlopen=unknown
12554   enable_dlopen_self=unknown
12555   enable_dlopen_self_static=unknown
12556 else
12557   lt_cv_dlopen=no
12558   lt_cv_dlopen_libs=
12559
12560   case $host_os in
12561   beos*)
12562     lt_cv_dlopen="load_add_on"
12563     lt_cv_dlopen_libs=
12564     lt_cv_dlopen_self=yes
12565     ;;
12566
12567   mingw* | pw32* | cegcc*)
12568     lt_cv_dlopen="LoadLibrary"
12569     lt_cv_dlopen_libs=
12570     ;;
12571
12572   cygwin*)
12573     lt_cv_dlopen="dlopen"
12574     lt_cv_dlopen_libs=
12575     ;;
12576
12577   darwin*)
12578   # if libdl is installed we need to link against it
12579     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12580 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12581 if ${ac_cv_lib_dl_dlopen+:} false; then :
12582   $as_echo_n "(cached) " >&6
12583 else
12584   ac_check_lib_save_LIBS=$LIBS
12585 LIBS="-ldl  $LIBS"
12586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12587 /* end confdefs.h.  */
12588
12589 /* Override any GCC internal prototype to avoid an error.
12590    Use char because int might match the return type of a GCC
12591    builtin and then its argument prototype would still apply.  */
12592 #ifdef __cplusplus
12593 extern "C"
12594 #endif
12595 char dlopen ();
12596 int
12597 main ()
12598 {
12599 return dlopen ();
12600   ;
12601   return 0;
12602 }
12603 _ACEOF
12604 if ac_fn_c_try_link "$LINENO"; then :
12605   ac_cv_lib_dl_dlopen=yes
12606 else
12607   ac_cv_lib_dl_dlopen=no
12608 fi
12609 rm -f core conftest.err conftest.$ac_objext \
12610     conftest$ac_exeext conftest.$ac_ext
12611 LIBS=$ac_check_lib_save_LIBS
12612 fi
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12614 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12615 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12616   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12617 else
12618
12619     lt_cv_dlopen="dyld"
12620     lt_cv_dlopen_libs=
12621     lt_cv_dlopen_self=yes
12622
12623 fi
12624
12625     ;;
12626
12627   *)
12628     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12629 if test "x$ac_cv_func_shl_load" = xyes; then :
12630   lt_cv_dlopen="shl_load"
12631 else
12632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12633 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12634 if ${ac_cv_lib_dld_shl_load+:} false; then :
12635   $as_echo_n "(cached) " >&6
12636 else
12637   ac_check_lib_save_LIBS=$LIBS
12638 LIBS="-ldld  $LIBS"
12639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640 /* end confdefs.h.  */
12641
12642 /* Override any GCC internal prototype to avoid an error.
12643    Use char because int might match the return type of a GCC
12644    builtin and then its argument prototype would still apply.  */
12645 #ifdef __cplusplus
12646 extern "C"
12647 #endif
12648 char shl_load ();
12649 int
12650 main ()
12651 {
12652 return shl_load ();
12653   ;
12654   return 0;
12655 }
12656 _ACEOF
12657 if ac_fn_c_try_link "$LINENO"; then :
12658   ac_cv_lib_dld_shl_load=yes
12659 else
12660   ac_cv_lib_dld_shl_load=no
12661 fi
12662 rm -f core conftest.err conftest.$ac_objext \
12663     conftest$ac_exeext conftest.$ac_ext
12664 LIBS=$ac_check_lib_save_LIBS
12665 fi
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12667 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12668 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12669   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12670 else
12671   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12672 if test "x$ac_cv_func_dlopen" = xyes; then :
12673   lt_cv_dlopen="dlopen"
12674 else
12675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12676 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12677 if ${ac_cv_lib_dl_dlopen+:} false; then :
12678   $as_echo_n "(cached) " >&6
12679 else
12680   ac_check_lib_save_LIBS=$LIBS
12681 LIBS="-ldl  $LIBS"
12682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12683 /* end confdefs.h.  */
12684
12685 /* Override any GCC internal prototype to avoid an error.
12686    Use char because int might match the return type of a GCC
12687    builtin and then its argument prototype would still apply.  */
12688 #ifdef __cplusplus
12689 extern "C"
12690 #endif
12691 char dlopen ();
12692 int
12693 main ()
12694 {
12695 return dlopen ();
12696   ;
12697   return 0;
12698 }
12699 _ACEOF
12700 if ac_fn_c_try_link "$LINENO"; then :
12701   ac_cv_lib_dl_dlopen=yes
12702 else
12703   ac_cv_lib_dl_dlopen=no
12704 fi
12705 rm -f core conftest.err conftest.$ac_objext \
12706     conftest$ac_exeext conftest.$ac_ext
12707 LIBS=$ac_check_lib_save_LIBS
12708 fi
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12710 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12711 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12712   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12713 else
12714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12715 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12716 if ${ac_cv_lib_svld_dlopen+:} false; then :
12717   $as_echo_n "(cached) " >&6
12718 else
12719   ac_check_lib_save_LIBS=$LIBS
12720 LIBS="-lsvld  $LIBS"
12721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12722 /* end confdefs.h.  */
12723
12724 /* Override any GCC internal prototype to avoid an error.
12725    Use char because int might match the return type of a GCC
12726    builtin and then its argument prototype would still apply.  */
12727 #ifdef __cplusplus
12728 extern "C"
12729 #endif
12730 char dlopen ();
12731 int
12732 main ()
12733 {
12734 return dlopen ();
12735   ;
12736   return 0;
12737 }
12738 _ACEOF
12739 if ac_fn_c_try_link "$LINENO"; then :
12740   ac_cv_lib_svld_dlopen=yes
12741 else
12742   ac_cv_lib_svld_dlopen=no
12743 fi
12744 rm -f core conftest.err conftest.$ac_objext \
12745     conftest$ac_exeext conftest.$ac_ext
12746 LIBS=$ac_check_lib_save_LIBS
12747 fi
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12749 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12750 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12751   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12752 else
12753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12754 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12755 if ${ac_cv_lib_dld_dld_link+:} false; then :
12756   $as_echo_n "(cached) " >&6
12757 else
12758   ac_check_lib_save_LIBS=$LIBS
12759 LIBS="-ldld  $LIBS"
12760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12761 /* end confdefs.h.  */
12762
12763 /* Override any GCC internal prototype to avoid an error.
12764    Use char because int might match the return type of a GCC
12765    builtin and then its argument prototype would still apply.  */
12766 #ifdef __cplusplus
12767 extern "C"
12768 #endif
12769 char dld_link ();
12770 int
12771 main ()
12772 {
12773 return dld_link ();
12774   ;
12775   return 0;
12776 }
12777 _ACEOF
12778 if ac_fn_c_try_link "$LINENO"; then :
12779   ac_cv_lib_dld_dld_link=yes
12780 else
12781   ac_cv_lib_dld_dld_link=no
12782 fi
12783 rm -f core conftest.err conftest.$ac_objext \
12784     conftest$ac_exeext conftest.$ac_ext
12785 LIBS=$ac_check_lib_save_LIBS
12786 fi
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12788 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12789 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12790   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12791 fi
12792
12793
12794 fi
12795
12796
12797 fi
12798
12799
12800 fi
12801
12802
12803 fi
12804
12805
12806 fi
12807
12808     ;;
12809   esac
12810
12811   if test "x$lt_cv_dlopen" != xno; then
12812     enable_dlopen=yes
12813   else
12814     enable_dlopen=no
12815   fi
12816
12817   case $lt_cv_dlopen in
12818   dlopen)
12819     save_CPPFLAGS="$CPPFLAGS"
12820     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12821
12822     save_LDFLAGS="$LDFLAGS"
12823     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12824
12825     save_LIBS="$LIBS"
12826     LIBS="$lt_cv_dlopen_libs $LIBS"
12827
12828     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12829 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12830 if ${lt_cv_dlopen_self+:} false; then :
12831   $as_echo_n "(cached) " >&6
12832 else
12833           if test "$cross_compiling" = yes; then :
12834   lt_cv_dlopen_self=cross
12835 else
12836   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12837   lt_status=$lt_dlunknown
12838   cat > conftest.$ac_ext <<_LT_EOF
12839 #line $LINENO "configure"
12840 #include "confdefs.h"
12841
12842 #if HAVE_DLFCN_H
12843 #include <dlfcn.h>
12844 #endif
12845
12846 #include <stdio.h>
12847
12848 #ifdef RTLD_GLOBAL
12849 #  define LT_DLGLOBAL           RTLD_GLOBAL
12850 #else
12851 #  ifdef DL_GLOBAL
12852 #    define LT_DLGLOBAL         DL_GLOBAL
12853 #  else
12854 #    define LT_DLGLOBAL         0
12855 #  endif
12856 #endif
12857
12858 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12859    find out it does not work in some platform. */
12860 #ifndef LT_DLLAZY_OR_NOW
12861 #  ifdef RTLD_LAZY
12862 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12863 #  else
12864 #    ifdef DL_LAZY
12865 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12866 #    else
12867 #      ifdef RTLD_NOW
12868 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12869 #      else
12870 #        ifdef DL_NOW
12871 #          define LT_DLLAZY_OR_NOW      DL_NOW
12872 #        else
12873 #          define LT_DLLAZY_OR_NOW      0
12874 #        endif
12875 #      endif
12876 #    endif
12877 #  endif
12878 #endif
12879
12880 /* When -fvisbility=hidden is used, assume the code has been annotated
12881    correspondingly for the symbols needed.  */
12882 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12883 int fnord () __attribute__((visibility("default")));
12884 #endif
12885
12886 int fnord () { return 42; }
12887 int main ()
12888 {
12889   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12890   int status = $lt_dlunknown;
12891
12892   if (self)
12893     {
12894       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12895       else
12896         {
12897           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12898           else puts (dlerror ());
12899         }
12900       /* dlclose (self); */
12901     }
12902   else
12903     puts (dlerror ());
12904
12905   return status;
12906 }
12907 _LT_EOF
12908   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12909   (eval $ac_link) 2>&5
12910   ac_status=$?
12911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12912   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12913     (./conftest; exit; ) >&5 2>/dev/null
12914     lt_status=$?
12915     case x$lt_status in
12916       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12917       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12918       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12919     esac
12920   else :
12921     # compilation failed
12922     lt_cv_dlopen_self=no
12923   fi
12924 fi
12925 rm -fr conftest*
12926
12927
12928 fi
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12930 $as_echo "$lt_cv_dlopen_self" >&6; }
12931
12932     if test "x$lt_cv_dlopen_self" = xyes; then
12933       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12934       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12935 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12936 if ${lt_cv_dlopen_self_static+:} false; then :
12937   $as_echo_n "(cached) " >&6
12938 else
12939           if test "$cross_compiling" = yes; then :
12940   lt_cv_dlopen_self_static=cross
12941 else
12942   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12943   lt_status=$lt_dlunknown
12944   cat > conftest.$ac_ext <<_LT_EOF
12945 #line $LINENO "configure"
12946 #include "confdefs.h"
12947
12948 #if HAVE_DLFCN_H
12949 #include <dlfcn.h>
12950 #endif
12951
12952 #include <stdio.h>
12953
12954 #ifdef RTLD_GLOBAL
12955 #  define LT_DLGLOBAL           RTLD_GLOBAL
12956 #else
12957 #  ifdef DL_GLOBAL
12958 #    define LT_DLGLOBAL         DL_GLOBAL
12959 #  else
12960 #    define LT_DLGLOBAL         0
12961 #  endif
12962 #endif
12963
12964 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12965    find out it does not work in some platform. */
12966 #ifndef LT_DLLAZY_OR_NOW
12967 #  ifdef RTLD_LAZY
12968 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12969 #  else
12970 #    ifdef DL_LAZY
12971 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12972 #    else
12973 #      ifdef RTLD_NOW
12974 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12975 #      else
12976 #        ifdef DL_NOW
12977 #          define LT_DLLAZY_OR_NOW      DL_NOW
12978 #        else
12979 #          define LT_DLLAZY_OR_NOW      0
12980 #        endif
12981 #      endif
12982 #    endif
12983 #  endif
12984 #endif
12985
12986 /* When -fvisbility=hidden is used, assume the code has been annotated
12987    correspondingly for the symbols needed.  */
12988 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12989 int fnord () __attribute__((visibility("default")));
12990 #endif
12991
12992 int fnord () { return 42; }
12993 int main ()
12994 {
12995   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12996   int status = $lt_dlunknown;
12997
12998   if (self)
12999     {
13000       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13001       else
13002         {
13003           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13004           else puts (dlerror ());
13005         }
13006       /* dlclose (self); */
13007     }
13008   else
13009     puts (dlerror ());
13010
13011   return status;
13012 }
13013 _LT_EOF
13014   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13015   (eval $ac_link) 2>&5
13016   ac_status=$?
13017   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13018   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13019     (./conftest; exit; ) >&5 2>/dev/null
13020     lt_status=$?
13021     case x$lt_status in
13022       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13023       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13024       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13025     esac
13026   else :
13027     # compilation failed
13028     lt_cv_dlopen_self_static=no
13029   fi
13030 fi
13031 rm -fr conftest*
13032
13033
13034 fi
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13036 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13037     fi
13038
13039     CPPFLAGS="$save_CPPFLAGS"
13040     LDFLAGS="$save_LDFLAGS"
13041     LIBS="$save_LIBS"
13042     ;;
13043   esac
13044
13045   case $lt_cv_dlopen_self in
13046   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13047   *) enable_dlopen_self=unknown ;;
13048   esac
13049
13050   case $lt_cv_dlopen_self_static in
13051   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13052   *) enable_dlopen_self_static=unknown ;;
13053   esac
13054 fi
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072 striplib=
13073 old_striplib=
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13075 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13076 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13077   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13078   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13080 $as_echo "yes" >&6; }
13081 else
13082 # FIXME - insert some real tests, host_os isn't really good enough
13083   case $host_os in
13084   darwin*)
13085     if test -n "$STRIP" ; then
13086       striplib="$STRIP -x"
13087       old_striplib="$STRIP -S"
13088       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13089 $as_echo "yes" >&6; }
13090     else
13091       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13092 $as_echo "no" >&6; }
13093     fi
13094     ;;
13095   *)
13096     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097 $as_echo "no" >&6; }
13098     ;;
13099   esac
13100 fi
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113   # Report which library types will actually be built
13114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13115 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13117 $as_echo "$can_build_shared" >&6; }
13118
13119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13120 $as_echo_n "checking whether to build shared libraries... " >&6; }
13121   test "$can_build_shared" = "no" && enable_shared=no
13122
13123   # On AIX, shared libraries and static libraries use the same namespace, and
13124   # are all built from PIC.
13125   case $host_os in
13126   aix3*)
13127     test "$enable_shared" = yes && enable_static=no
13128     if test -n "$RANLIB"; then
13129       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13130       postinstall_cmds='$RANLIB $lib'
13131     fi
13132     ;;
13133
13134   aix[4-9]*)
13135     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13136       test "$enable_shared" = yes && enable_static=no
13137     fi
13138     ;;
13139   esac
13140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13141 $as_echo "$enable_shared" >&6; }
13142
13143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13144 $as_echo_n "checking whether to build static libraries... " >&6; }
13145   # Make sure either enable_shared or enable_static is yes.
13146   test "$enable_shared" = yes || enable_static=yes
13147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13148 $as_echo "$enable_static" >&6; }
13149
13150
13151
13152
13153 fi
13154 ac_ext=c
13155 ac_cpp='$CPP $CPPFLAGS'
13156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13159
13160 CC="$lt_save_CC"
13161
13162       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13163     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13164     (test "X$CXX" != "Xg++"))) ; then
13165   ac_ext=cpp
13166 ac_cpp='$CXXCPP $CPPFLAGS'
13167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13171 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13172 if test -z "$CXXCPP"; then
13173   if ${ac_cv_prog_CXXCPP+:} false; then :
13174   $as_echo_n "(cached) " >&6
13175 else
13176       # Double quotes because CXXCPP needs to be expanded
13177     for CXXCPP in "$CXX -E" "/lib/cpp"
13178     do
13179       ac_preproc_ok=false
13180 for ac_cxx_preproc_warn_flag in '' yes
13181 do
13182   # Use a header file that comes with gcc, so configuring glibc
13183   # with a fresh cross-compiler works.
13184   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13185   # <limits.h> exists even on freestanding compilers.
13186   # On the NeXT, cc -E runs the code through the compiler's parser,
13187   # not just through cpp. "Syntax error" is here to catch this case.
13188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13189 /* end confdefs.h.  */
13190 #ifdef __STDC__
13191 # include <limits.h>
13192 #else
13193 # include <assert.h>
13194 #endif
13195                      Syntax error
13196 _ACEOF
13197 if ac_fn_cxx_try_cpp "$LINENO"; then :
13198
13199 else
13200   # Broken: fails on valid input.
13201 continue
13202 fi
13203 rm -f conftest.err conftest.i conftest.$ac_ext
13204
13205   # OK, works on sane cases.  Now check whether nonexistent headers
13206   # can be detected and how.
13207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13208 /* end confdefs.h.  */
13209 #include <ac_nonexistent.h>
13210 _ACEOF
13211 if ac_fn_cxx_try_cpp "$LINENO"; then :
13212   # Broken: success on invalid input.
13213 continue
13214 else
13215   # Passes both tests.
13216 ac_preproc_ok=:
13217 break
13218 fi
13219 rm -f conftest.err conftest.i conftest.$ac_ext
13220
13221 done
13222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13223 rm -f conftest.i conftest.err conftest.$ac_ext
13224 if $ac_preproc_ok; then :
13225   break
13226 fi
13227
13228     done
13229     ac_cv_prog_CXXCPP=$CXXCPP
13230
13231 fi
13232   CXXCPP=$ac_cv_prog_CXXCPP
13233 else
13234   ac_cv_prog_CXXCPP=$CXXCPP
13235 fi
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13237 $as_echo "$CXXCPP" >&6; }
13238 ac_preproc_ok=false
13239 for ac_cxx_preproc_warn_flag in '' yes
13240 do
13241   # Use a header file that comes with gcc, so configuring glibc
13242   # with a fresh cross-compiler works.
13243   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13244   # <limits.h> exists even on freestanding compilers.
13245   # On the NeXT, cc -E runs the code through the compiler's parser,
13246   # not just through cpp. "Syntax error" is here to catch this case.
13247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h.  */
13249 #ifdef __STDC__
13250 # include <limits.h>
13251 #else
13252 # include <assert.h>
13253 #endif
13254                      Syntax error
13255 _ACEOF
13256 if ac_fn_cxx_try_cpp "$LINENO"; then :
13257
13258 else
13259   # Broken: fails on valid input.
13260 continue
13261 fi
13262 rm -f conftest.err conftest.i conftest.$ac_ext
13263
13264   # OK, works on sane cases.  Now check whether nonexistent headers
13265   # can be detected and how.
13266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267 /* end confdefs.h.  */
13268 #include <ac_nonexistent.h>
13269 _ACEOF
13270 if ac_fn_cxx_try_cpp "$LINENO"; then :
13271   # Broken: success on invalid input.
13272 continue
13273 else
13274   # Passes both tests.
13275 ac_preproc_ok=:
13276 break
13277 fi
13278 rm -f conftest.err conftest.i conftest.$ac_ext
13279
13280 done
13281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13282 rm -f conftest.i conftest.err conftest.$ac_ext
13283 if $ac_preproc_ok; then :
13284
13285 else
13286   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13288 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13289 See \`config.log' for more details" "$LINENO" 5; }
13290 fi
13291
13292 ac_ext=c
13293 ac_cpp='$CPP $CPPFLAGS'
13294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13297
13298 else
13299   _lt_caught_CXX_error=yes
13300 fi
13301
13302 ac_ext=cpp
13303 ac_cpp='$CXXCPP $CPPFLAGS'
13304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13307
13308 archive_cmds_need_lc_CXX=no
13309 allow_undefined_flag_CXX=
13310 always_export_symbols_CXX=no
13311 archive_expsym_cmds_CXX=
13312 compiler_needs_object_CXX=no
13313 export_dynamic_flag_spec_CXX=
13314 hardcode_direct_CXX=no
13315 hardcode_direct_absolute_CXX=no
13316 hardcode_libdir_flag_spec_CXX=
13317 hardcode_libdir_separator_CXX=
13318 hardcode_minus_L_CXX=no
13319 hardcode_shlibpath_var_CXX=unsupported
13320 hardcode_automatic_CXX=no
13321 inherit_rpath_CXX=no
13322 module_cmds_CXX=
13323 module_expsym_cmds_CXX=
13324 link_all_deplibs_CXX=unknown
13325 old_archive_cmds_CXX=$old_archive_cmds
13326 reload_flag_CXX=$reload_flag
13327 reload_cmds_CXX=$reload_cmds
13328 no_undefined_flag_CXX=
13329 whole_archive_flag_spec_CXX=
13330 enable_shared_with_static_runtimes_CXX=no
13331
13332 # Source file extension for C++ test sources.
13333 ac_ext=cpp
13334
13335 # Object file extension for compiled C++ test sources.
13336 objext=o
13337 objext_CXX=$objext
13338
13339 # No sense in running all these tests if we already determined that
13340 # the CXX compiler isn't working.  Some variables (like enable_shared)
13341 # are currently assumed to apply to all compilers on this platform,
13342 # and will be corrupted by setting them based on a non-working compiler.
13343 if test "$_lt_caught_CXX_error" != yes; then
13344   # Code to be used in simple compile tests
13345   lt_simple_compile_test_code="int some_variable = 0;"
13346
13347   # Code to be used in simple link tests
13348   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13349
13350   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13351
13352
13353
13354
13355
13356
13357 # If no C compiler was specified, use CC.
13358 LTCC=${LTCC-"$CC"}
13359
13360 # If no C compiler flags were specified, use CFLAGS.
13361 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13362
13363 # Allow CC to be a program name with arguments.
13364 compiler=$CC
13365
13366
13367   # save warnings/boilerplate of simple test code
13368   ac_outfile=conftest.$ac_objext
13369 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13370 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13371 _lt_compiler_boilerplate=`cat conftest.err`
13372 $RM conftest*
13373
13374   ac_outfile=conftest.$ac_objext
13375 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13376 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13377 _lt_linker_boilerplate=`cat conftest.err`
13378 $RM -r conftest*
13379
13380
13381   # Allow CC to be a program name with arguments.
13382   lt_save_CC=$CC
13383   lt_save_CFLAGS=$CFLAGS
13384   lt_save_LD=$LD
13385   lt_save_GCC=$GCC
13386   GCC=$GXX
13387   lt_save_with_gnu_ld=$with_gnu_ld
13388   lt_save_path_LD=$lt_cv_path_LD
13389   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13390     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13391   else
13392     $as_unset lt_cv_prog_gnu_ld
13393   fi
13394   if test -n "${lt_cv_path_LDCXX+set}"; then
13395     lt_cv_path_LD=$lt_cv_path_LDCXX
13396   else
13397     $as_unset lt_cv_path_LD
13398   fi
13399   test -z "${LDCXX+set}" || LD=$LDCXX
13400   CC=${CXX-"c++"}
13401   CFLAGS=$CXXFLAGS
13402   compiler=$CC
13403   compiler_CXX=$CC
13404   for cc_temp in $compiler""; do
13405   case $cc_temp in
13406     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13407     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13408     \-*) ;;
13409     *) break;;
13410   esac
13411 done
13412 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13413
13414
13415   if test -n "$compiler"; then
13416     # We don't want -fno-exception when compiling C++ code, so set the
13417     # no_builtin_flag separately
13418     if test "$GXX" = yes; then
13419       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13420     else
13421       lt_prog_compiler_no_builtin_flag_CXX=
13422     fi
13423
13424     if test "$GXX" = yes; then
13425       # Set up default GNU C++ configuration
13426
13427
13428
13429 # Check whether --with-gnu-ld was given.
13430 if test "${with_gnu_ld+set}" = set; then :
13431   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13432 else
13433   with_gnu_ld=no
13434 fi
13435
13436 ac_prog=ld
13437 if test "$GCC" = yes; then
13438   # Check if gcc -print-prog-name=ld gives a path.
13439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13440 $as_echo_n "checking for ld used by $CC... " >&6; }
13441   case $host in
13442   *-*-mingw*)
13443     # gcc leaves a trailing carriage return which upsets mingw
13444     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13445   *)
13446     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13447   esac
13448   case $ac_prog in
13449     # Accept absolute paths.
13450     [\\/]* | ?:[\\/]*)
13451       re_direlt='/[^/][^/]*/\.\./'
13452       # Canonicalize the pathname of ld
13453       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13454       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13455         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13456       done
13457       test -z "$LD" && LD="$ac_prog"
13458       ;;
13459   "")
13460     # If it fails, then pretend we aren't using GCC.
13461     ac_prog=ld
13462     ;;
13463   *)
13464     # If it is relative, then search for the first ld in PATH.
13465     with_gnu_ld=unknown
13466     ;;
13467   esac
13468 elif test "$with_gnu_ld" = yes; then
13469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13470 $as_echo_n "checking for GNU ld... " >&6; }
13471 else
13472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13473 $as_echo_n "checking for non-GNU ld... " >&6; }
13474 fi
13475 if ${lt_cv_path_LD+:} false; then :
13476   $as_echo_n "(cached) " >&6
13477 else
13478   if test -z "$LD"; then
13479   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13480   for ac_dir in $PATH; do
13481     IFS="$lt_save_ifs"
13482     test -z "$ac_dir" && ac_dir=.
13483     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13484       lt_cv_path_LD="$ac_dir/$ac_prog"
13485       # Check to see if the program is GNU ld.  I'd rather use --version,
13486       # but apparently some variants of GNU ld only accept -v.
13487       # Break only if it was the GNU/non-GNU ld that we prefer.
13488       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13489       *GNU* | *'with BFD'*)
13490         test "$with_gnu_ld" != no && break
13491         ;;
13492       *)
13493         test "$with_gnu_ld" != yes && break
13494         ;;
13495       esac
13496     fi
13497   done
13498   IFS="$lt_save_ifs"
13499 else
13500   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13501 fi
13502 fi
13503
13504 LD="$lt_cv_path_LD"
13505 if test -n "$LD"; then
13506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13507 $as_echo "$LD" >&6; }
13508 else
13509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13510 $as_echo "no" >&6; }
13511 fi
13512 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13514 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13515 if ${lt_cv_prog_gnu_ld+:} false; then :
13516   $as_echo_n "(cached) " >&6
13517 else
13518   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13519 case `$LD -v 2>&1 </dev/null` in
13520 *GNU* | *'with BFD'*)
13521   lt_cv_prog_gnu_ld=yes
13522   ;;
13523 *)
13524   lt_cv_prog_gnu_ld=no
13525   ;;
13526 esac
13527 fi
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13529 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13530 with_gnu_ld=$lt_cv_prog_gnu_ld
13531
13532
13533
13534
13535
13536
13537
13538       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13539       # archiving commands below assume that GNU ld is being used.
13540       if test "$with_gnu_ld" = yes; then
13541         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13542         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'
13543
13544         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13545         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13546
13547         # If archive_cmds runs LD, not CC, wlarc should be empty
13548         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13549         #     investigate it a little bit more. (MM)
13550         wlarc='${wl}'
13551
13552         # ancient GNU ld didn't support --whole-archive et. al.
13553         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13554           $GREP 'no-whole-archive' > /dev/null; then
13555           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13556         else
13557           whole_archive_flag_spec_CXX=
13558         fi
13559       else
13560         with_gnu_ld=no
13561         wlarc=
13562
13563         # A generic and very simple default shared library creation
13564         # command for GNU C++ for the case where it uses the native
13565         # linker, instead of GNU ld.  If possible, this setting should
13566         # overridden to take advantage of the native linker features on
13567         # the platform it is being used on.
13568         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13569       fi
13570
13571       # Commands to make compiler produce verbose output that lists
13572       # what "hidden" libraries, object files and flags are used when
13573       # linking a shared library.
13574       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13575
13576     else
13577       GXX=no
13578       with_gnu_ld=no
13579       wlarc=
13580     fi
13581
13582     # PORTME: fill in a description of your system's C++ link characteristics
13583     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13584 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13585     ld_shlibs_CXX=yes
13586     case $host_os in
13587       aix3*)
13588         # FIXME: insert proper C++ library support
13589         ld_shlibs_CXX=no
13590         ;;
13591       aix[4-9]*)
13592         if test "$host_cpu" = ia64; then
13593           # On IA64, the linker does run time linking by default, so we don't
13594           # have to do anything special.
13595           aix_use_runtimelinking=no
13596           exp_sym_flag='-Bexport'
13597           no_entry_flag=""
13598         else
13599           aix_use_runtimelinking=no
13600
13601           # Test if we are trying to use run time linking or normal
13602           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13603           # need to do runtime linking.
13604           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13605             for ld_flag in $LDFLAGS; do
13606               case $ld_flag in
13607               *-brtl*)
13608                 aix_use_runtimelinking=yes
13609                 break
13610                 ;;
13611               esac
13612             done
13613             ;;
13614           esac
13615
13616           exp_sym_flag='-bexport'
13617           no_entry_flag='-bnoentry'
13618         fi
13619
13620         # When large executables or shared objects are built, AIX ld can
13621         # have problems creating the table of contents.  If linking a library
13622         # or program results in "error TOC overflow" add -mminimal-toc to
13623         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13624         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13625
13626         archive_cmds_CXX=''
13627         hardcode_direct_CXX=yes
13628         hardcode_direct_absolute_CXX=yes
13629         hardcode_libdir_separator_CXX=':'
13630         link_all_deplibs_CXX=yes
13631         file_list_spec_CXX='${wl}-f,'
13632
13633         if test "$GXX" = yes; then
13634           case $host_os in aix4.[012]|aix4.[012].*)
13635           # We only want to do this on AIX 4.2 and lower, the check
13636           # below for broken collect2 doesn't work under 4.3+
13637           collect2name=`${CC} -print-prog-name=collect2`
13638           if test -f "$collect2name" &&
13639              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13640           then
13641             # We have reworked collect2
13642             :
13643           else
13644             # We have old collect2
13645             hardcode_direct_CXX=unsupported
13646             # It fails to find uninstalled libraries when the uninstalled
13647             # path is not listed in the libpath.  Setting hardcode_minus_L
13648             # to unsupported forces relinking
13649             hardcode_minus_L_CXX=yes
13650             hardcode_libdir_flag_spec_CXX='-L$libdir'
13651             hardcode_libdir_separator_CXX=
13652           fi
13653           esac
13654           shared_flag='-shared'
13655           if test "$aix_use_runtimelinking" = yes; then
13656             shared_flag="$shared_flag "'${wl}-G'
13657           fi
13658         else
13659           # not using gcc
13660           if test "$host_cpu" = ia64; then
13661           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13662           # chokes on -Wl,-G. The following line is correct:
13663           shared_flag='-G'
13664           else
13665             if test "$aix_use_runtimelinking" = yes; then
13666               shared_flag='${wl}-G'
13667             else
13668               shared_flag='${wl}-bM:SRE'
13669             fi
13670           fi
13671         fi
13672
13673         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13674         # It seems that -bexpall does not export symbols beginning with
13675         # underscore (_), so it is better to generate a list of symbols to
13676         # export.
13677         always_export_symbols_CXX=yes
13678         if test "$aix_use_runtimelinking" = yes; then
13679           # Warning - without using the other runtime loading flags (-brtl),
13680           # -berok will link without error, but may produce a broken library.
13681           allow_undefined_flag_CXX='-berok'
13682           # Determine the default libpath from the value encoded in an empty
13683           # executable.
13684           if test "${lt_cv_aix_libpath+set}" = set; then
13685   aix_libpath=$lt_cv_aix_libpath
13686 else
13687   if ${lt_cv_aix_libpath__CXX+:} false; then :
13688   $as_echo_n "(cached) " >&6
13689 else
13690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h.  */
13692
13693 int
13694 main ()
13695 {
13696
13697   ;
13698   return 0;
13699 }
13700 _ACEOF
13701 if ac_fn_cxx_try_link "$LINENO"; then :
13702
13703   lt_aix_libpath_sed='
13704       /Import File Strings/,/^$/ {
13705           /^0/ {
13706               s/^0  *\([^ ]*\) *$/\1/
13707               p
13708           }
13709       }'
13710   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13711   # Check for a 64-bit object if we didn't find anything.
13712   if test -z "$lt_cv_aix_libpath__CXX"; then
13713     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13714   fi
13715 fi
13716 rm -f core conftest.err conftest.$ac_objext \
13717     conftest$ac_exeext conftest.$ac_ext
13718   if test -z "$lt_cv_aix_libpath__CXX"; then
13719     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13720   fi
13721
13722 fi
13723
13724   aix_libpath=$lt_cv_aix_libpath__CXX
13725 fi
13726
13727           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13728
13729           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"
13730         else
13731           if test "$host_cpu" = ia64; then
13732             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13733             allow_undefined_flag_CXX="-z nodefs"
13734             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"
13735           else
13736             # Determine the default libpath from the value encoded in an
13737             # empty executable.
13738             if test "${lt_cv_aix_libpath+set}" = set; then
13739   aix_libpath=$lt_cv_aix_libpath
13740 else
13741   if ${lt_cv_aix_libpath__CXX+:} false; then :
13742   $as_echo_n "(cached) " >&6
13743 else
13744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h.  */
13746
13747 int
13748 main ()
13749 {
13750
13751   ;
13752   return 0;
13753 }
13754 _ACEOF
13755 if ac_fn_cxx_try_link "$LINENO"; then :
13756
13757   lt_aix_libpath_sed='
13758       /Import File Strings/,/^$/ {
13759           /^0/ {
13760               s/^0  *\([^ ]*\) *$/\1/
13761               p
13762           }
13763       }'
13764   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13765   # Check for a 64-bit object if we didn't find anything.
13766   if test -z "$lt_cv_aix_libpath__CXX"; then
13767     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13768   fi
13769 fi
13770 rm -f core conftest.err conftest.$ac_objext \
13771     conftest$ac_exeext conftest.$ac_ext
13772   if test -z "$lt_cv_aix_libpath__CXX"; then
13773     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13774   fi
13775
13776 fi
13777
13778   aix_libpath=$lt_cv_aix_libpath__CXX
13779 fi
13780
13781             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13782             # Warning - without using the other run time loading flags,
13783             # -berok will link without error, but may produce a broken library.
13784             no_undefined_flag_CXX=' ${wl}-bernotok'
13785             allow_undefined_flag_CXX=' ${wl}-berok'
13786             if test "$with_gnu_ld" = yes; then
13787               # We only use this code for GNU lds that support --whole-archive.
13788               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13789             else
13790               # Exported symbols can be pulled into shared objects from archives
13791               whole_archive_flag_spec_CXX='$convenience'
13792             fi
13793             archive_cmds_need_lc_CXX=yes
13794             # This is similar to how AIX traditionally builds its shared
13795             # libraries.
13796             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'
13797           fi
13798         fi
13799         ;;
13800
13801       beos*)
13802         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13803           allow_undefined_flag_CXX=unsupported
13804           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13805           # support --undefined.  This deserves some investigation.  FIXME
13806           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13807         else
13808           ld_shlibs_CXX=no
13809         fi
13810         ;;
13811
13812       chorus*)
13813         case $cc_basename in
13814           *)
13815           # FIXME: insert proper C++ library support
13816           ld_shlibs_CXX=no
13817           ;;
13818         esac
13819         ;;
13820
13821       cygwin* | mingw* | pw32* | cegcc*)
13822         case $GXX,$cc_basename in
13823         ,cl* | no,cl*)
13824           # Native MSVC
13825           # hardcode_libdir_flag_spec is actually meaningless, as there is
13826           # no search path for DLLs.
13827           hardcode_libdir_flag_spec_CXX=' '
13828           allow_undefined_flag_CXX=unsupported
13829           always_export_symbols_CXX=yes
13830           file_list_spec_CXX='@'
13831           # Tell ltmain to make .lib files, not .a files.
13832           libext=lib
13833           # Tell ltmain to make .dll files, not .so files.
13834           shrext_cmds=".dll"
13835           # FIXME: Setting linknames here is a bad hack.
13836           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13837           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13838               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13839             else
13840               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13841             fi~
13842             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13843             linknames='
13844           # The linker will not automatically build a static lib if we build a DLL.
13845           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13846           enable_shared_with_static_runtimes_CXX=yes
13847           # Don't use ranlib
13848           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13849           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13850             lt_tool_outputfile="@TOOL_OUTPUT@"~
13851             case $lt_outputfile in
13852               *.exe|*.EXE) ;;
13853               *)
13854                 lt_outputfile="$lt_outputfile.exe"
13855                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13856                 ;;
13857             esac~
13858             func_to_tool_file "$lt_outputfile"~
13859             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13860               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13861               $RM "$lt_outputfile.manifest";
13862             fi'
13863           ;;
13864         *)
13865           # g++
13866           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13867           # as there is no search path for DLLs.
13868           hardcode_libdir_flag_spec_CXX='-L$libdir'
13869           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13870           allow_undefined_flag_CXX=unsupported
13871           always_export_symbols_CXX=no
13872           enable_shared_with_static_runtimes_CXX=yes
13873
13874           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13875             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'
13876             # If the export-symbols file already is a .def file (1st line
13877             # is EXPORTS), use it as is; otherwise, prepend...
13878             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13879               cp $export_symbols $output_objdir/$soname.def;
13880             else
13881               echo EXPORTS > $output_objdir/$soname.def;
13882               cat $export_symbols >> $output_objdir/$soname.def;
13883             fi~
13884             $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'
13885           else
13886             ld_shlibs_CXX=no
13887           fi
13888           ;;
13889         esac
13890         ;;
13891       darwin* | rhapsody*)
13892
13893
13894   archive_cmds_need_lc_CXX=no
13895   hardcode_direct_CXX=no
13896   hardcode_automatic_CXX=yes
13897   hardcode_shlibpath_var_CXX=unsupported
13898   if test "$lt_cv_ld_force_load" = "yes"; then
13899     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\"`'
13900
13901   else
13902     whole_archive_flag_spec_CXX=''
13903   fi
13904   link_all_deplibs_CXX=yes
13905   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13906   case $cc_basename in
13907      ifort*) _lt_dar_can_shared=yes ;;
13908      *) _lt_dar_can_shared=$GCC ;;
13909   esac
13910   if test "$_lt_dar_can_shared" = "yes"; then
13911     output_verbose_link_cmd=func_echo_all
13912     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}"
13913     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13914     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}"
13915     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}"
13916        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13917       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}"
13918       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}"
13919     fi
13920
13921   else
13922   ld_shlibs_CXX=no
13923   fi
13924
13925         ;;
13926
13927       dgux*)
13928         case $cc_basename in
13929           ec++*)
13930             # FIXME: insert proper C++ library support
13931             ld_shlibs_CXX=no
13932             ;;
13933           ghcx*)
13934             # Green Hills C++ Compiler
13935             # FIXME: insert proper C++ library support
13936             ld_shlibs_CXX=no
13937             ;;
13938           *)
13939             # FIXME: insert proper C++ library support
13940             ld_shlibs_CXX=no
13941             ;;
13942         esac
13943         ;;
13944
13945       freebsd2.*)
13946         # C++ shared libraries reported to be fairly broken before
13947         # switch to ELF
13948         ld_shlibs_CXX=no
13949         ;;
13950
13951       freebsd-elf*)
13952         archive_cmds_need_lc_CXX=no
13953         ;;
13954
13955       freebsd* | dragonfly*)
13956         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13957         # conventions
13958         ld_shlibs_CXX=yes
13959         ;;
13960
13961       haiku*)
13962         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13963         link_all_deplibs_CXX=yes
13964         ;;
13965
13966       hpux9*)
13967         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13968         hardcode_libdir_separator_CXX=:
13969         export_dynamic_flag_spec_CXX='${wl}-E'
13970         hardcode_direct_CXX=yes
13971         hardcode_minus_L_CXX=yes # Not in the search PATH,
13972                                              # but as the default
13973                                              # location of the library.
13974
13975         case $cc_basename in
13976           CC*)
13977             # FIXME: insert proper C++ library support
13978             ld_shlibs_CXX=no
13979             ;;
13980           aCC*)
13981             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'
13982             # Commands to make compiler produce verbose output that lists
13983             # what "hidden" libraries, object files and flags are used when
13984             # linking a shared library.
13985             #
13986             # There doesn't appear to be a way to prevent this compiler from
13987             # explicitly linking system object files so we need to strip them
13988             # from the output so that they don't get included in the library
13989             # dependencies.
13990             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"'
13991             ;;
13992           *)
13993             if test "$GXX" = yes; then
13994               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'
13995             else
13996               # FIXME: insert proper C++ library support
13997               ld_shlibs_CXX=no
13998             fi
13999             ;;
14000         esac
14001         ;;
14002
14003       hpux10*|hpux11*)
14004         if test $with_gnu_ld = no; then
14005           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14006           hardcode_libdir_separator_CXX=:
14007
14008           case $host_cpu in
14009             hppa*64*|ia64*)
14010               ;;
14011             *)
14012               export_dynamic_flag_spec_CXX='${wl}-E'
14013               ;;
14014           esac
14015         fi
14016         case $host_cpu in
14017           hppa*64*|ia64*)
14018             hardcode_direct_CXX=no
14019             hardcode_shlibpath_var_CXX=no
14020             ;;
14021           *)
14022             hardcode_direct_CXX=yes
14023             hardcode_direct_absolute_CXX=yes
14024             hardcode_minus_L_CXX=yes # Not in the search PATH,
14025                                                  # but as the default
14026                                                  # location of the library.
14027             ;;
14028         esac
14029
14030         case $cc_basename in
14031           CC*)
14032             # FIXME: insert proper C++ library support
14033             ld_shlibs_CXX=no
14034             ;;
14035           aCC*)
14036             case $host_cpu in
14037               hppa*64*)
14038                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14039                 ;;
14040               ia64*)
14041                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14042                 ;;
14043               *)
14044                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14045                 ;;
14046             esac
14047             # Commands to make compiler produce verbose output that lists
14048             # what "hidden" libraries, object files and flags are used when
14049             # linking a shared library.
14050             #
14051             # There doesn't appear to be a way to prevent this compiler from
14052             # explicitly linking system object files so we need to strip them
14053             # from the output so that they don't get included in the library
14054             # dependencies.
14055             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"'
14056             ;;
14057           *)
14058             if test "$GXX" = yes; then
14059               if test $with_gnu_ld = no; then
14060                 case $host_cpu in
14061                   hppa*64*)
14062                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14063                     ;;
14064                   ia64*)
14065                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14066                     ;;
14067                   *)
14068                     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'
14069                     ;;
14070                 esac
14071               fi
14072             else
14073               # FIXME: insert proper C++ library support
14074               ld_shlibs_CXX=no
14075             fi
14076             ;;
14077         esac
14078         ;;
14079
14080       interix[3-9]*)
14081         hardcode_direct_CXX=no
14082         hardcode_shlibpath_var_CXX=no
14083         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14084         export_dynamic_flag_spec_CXX='${wl}-E'
14085         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14086         # Instead, shared libraries are loaded at an image base (0x10000000 by
14087         # default) and relocated if they conflict, which is a slow very memory
14088         # consuming and fragmenting process.  To avoid this, we pick a random,
14089         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14090         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14091         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'
14092         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'
14093         ;;
14094       irix5* | irix6*)
14095         case $cc_basename in
14096           CC*)
14097             # SGI C++
14098             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'
14099
14100             # Archives containing C++ object files must be created using
14101             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14102             # necessary to make sure instantiated templates are included
14103             # in the archive.
14104             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14105             ;;
14106           *)
14107             if test "$GXX" = yes; then
14108               if test "$with_gnu_ld" = no; then
14109                 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'
14110               else
14111                 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'
14112               fi
14113             fi
14114             link_all_deplibs_CXX=yes
14115             ;;
14116         esac
14117         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14118         hardcode_libdir_separator_CXX=:
14119         inherit_rpath_CXX=yes
14120         ;;
14121
14122       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14123         case $cc_basename in
14124           KCC*)
14125             # Kuck and Associates, Inc. (KAI) C++ Compiler
14126
14127             # KCC will only create a shared library if the output file
14128             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14129             # to its proper name (with version) after linking.
14130             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'
14131             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'
14132             # Commands to make compiler produce verbose output that lists
14133             # what "hidden" libraries, object files and flags are used when
14134             # linking a shared library.
14135             #
14136             # There doesn't appear to be a way to prevent this compiler from
14137             # explicitly linking system object files so we need to strip them
14138             # from the output so that they don't get included in the library
14139             # dependencies.
14140             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"'
14141
14142             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14143             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14144
14145             # Archives containing C++ object files must be created using
14146             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14147             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14148             ;;
14149           icpc* | ecpc* )
14150             # Intel C++
14151             with_gnu_ld=yes
14152             # version 8.0 and above of icpc choke on multiply defined symbols
14153             # if we add $predep_objects and $postdep_objects, however 7.1 and
14154             # earlier do not add the objects themselves.
14155             case `$CC -V 2>&1` in
14156               *"Version 7."*)
14157                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14158                 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'
14159                 ;;
14160               *)  # Version 8.0 or newer
14161                 tmp_idyn=
14162                 case $host_cpu in
14163                   ia64*) tmp_idyn=' -i_dynamic';;
14164                 esac
14165                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14166                 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'
14167                 ;;
14168             esac
14169             archive_cmds_need_lc_CXX=no
14170             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14171             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14172             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14173             ;;
14174           pgCC* | pgcpp*)
14175             # Portland Group C++ compiler
14176             case `$CC -V` in
14177             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14178               prelink_cmds_CXX='tpldir=Template.dir~
14179                 rm -rf $tpldir~
14180                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14181                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14182               old_archive_cmds_CXX='tpldir=Template.dir~
14183                 rm -rf $tpldir~
14184                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14185                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14186                 $RANLIB $oldlib'
14187               archive_cmds_CXX='tpldir=Template.dir~
14188                 rm -rf $tpldir~
14189                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14190                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14191               archive_expsym_cmds_CXX='tpldir=Template.dir~
14192                 rm -rf $tpldir~
14193                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14194                 $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'
14195               ;;
14196             *) # Version 6 and above use weak symbols
14197               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14198               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'
14199               ;;
14200             esac
14201
14202             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14203             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14204             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'
14205             ;;
14206           cxx*)
14207             # Compaq C++
14208             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14209             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'
14210
14211             runpath_var=LD_RUN_PATH
14212             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14213             hardcode_libdir_separator_CXX=:
14214
14215             # Commands to make compiler produce verbose output that lists
14216             # what "hidden" libraries, object files and flags are used when
14217             # linking a shared library.
14218             #
14219             # There doesn't appear to be a way to prevent this compiler from
14220             # explicitly linking system object files so we need to strip them
14221             # from the output so that they don't get included in the library
14222             # dependencies.
14223             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'
14224             ;;
14225           xl* | mpixl* | bgxl*)
14226             # IBM XL 8.0 on PPC, with GNU ld
14227             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14228             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14229             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14230             if test "x$supports_anon_versioning" = xyes; then
14231               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14232                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14233                 echo "local: *; };" >> $output_objdir/$libname.ver~
14234                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14235             fi
14236             ;;
14237           *)
14238             case `$CC -V 2>&1 | sed 5q` in
14239             *Sun\ C*)
14240               # Sun C++ 5.9
14241               no_undefined_flag_CXX=' -zdefs'
14242               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14243               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'
14244               hardcode_libdir_flag_spec_CXX='-R$libdir'
14245               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'
14246               compiler_needs_object_CXX=yes
14247
14248               # Not sure whether something based on
14249               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14250               # would be better.
14251               output_verbose_link_cmd='func_echo_all'
14252
14253               # Archives containing C++ object files must be created using
14254               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14255               # necessary to make sure instantiated templates are included
14256               # in the archive.
14257               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14258               ;;
14259             esac
14260             ;;
14261         esac
14262         ;;
14263
14264       lynxos*)
14265         # FIXME: insert proper C++ library support
14266         ld_shlibs_CXX=no
14267         ;;
14268
14269       m88k*)
14270         # FIXME: insert proper C++ library support
14271         ld_shlibs_CXX=no
14272         ;;
14273
14274       mvs*)
14275         case $cc_basename in
14276           cxx*)
14277             # FIXME: insert proper C++ library support
14278             ld_shlibs_CXX=no
14279             ;;
14280           *)
14281             # FIXME: insert proper C++ library support
14282             ld_shlibs_CXX=no
14283             ;;
14284         esac
14285         ;;
14286
14287       netbsd*)
14288         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14289           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14290           wlarc=
14291           hardcode_libdir_flag_spec_CXX='-R$libdir'
14292           hardcode_direct_CXX=yes
14293           hardcode_shlibpath_var_CXX=no
14294         fi
14295         # Workaround some broken pre-1.5 toolchains
14296         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14297         ;;
14298
14299       *nto* | *qnx*)
14300         ld_shlibs_CXX=yes
14301         ;;
14302
14303       openbsd2*)
14304         # C++ shared libraries are fairly broken
14305         ld_shlibs_CXX=no
14306         ;;
14307
14308       openbsd*)
14309         if test -f /usr/libexec/ld.so; then
14310           hardcode_direct_CXX=yes
14311           hardcode_shlibpath_var_CXX=no
14312           hardcode_direct_absolute_CXX=yes
14313           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14314           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14315           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14316             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14317             export_dynamic_flag_spec_CXX='${wl}-E'
14318             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14319           fi
14320           output_verbose_link_cmd=func_echo_all
14321         else
14322           ld_shlibs_CXX=no
14323         fi
14324         ;;
14325
14326       osf3* | osf4* | osf5*)
14327         case $cc_basename in
14328           KCC*)
14329             # Kuck and Associates, Inc. (KAI) C++ Compiler
14330
14331             # KCC will only create a shared library if the output file
14332             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14333             # to its proper name (with version) after linking.
14334             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'
14335
14336             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14337             hardcode_libdir_separator_CXX=:
14338
14339             # Archives containing C++ object files must be created using
14340             # the KAI C++ compiler.
14341             case $host in
14342               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14343               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14344             esac
14345             ;;
14346           RCC*)
14347             # Rational C++ 2.4.1
14348             # FIXME: insert proper C++ library support
14349             ld_shlibs_CXX=no
14350             ;;
14351           cxx*)
14352             case $host in
14353               osf3*)
14354                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14355                 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'
14356                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14357                 ;;
14358               *)
14359                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14360                 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'
14361                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14362                   echo "-hidden">> $lib.exp~
14363                   $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~
14364                   $RM $lib.exp'
14365                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14366                 ;;
14367             esac
14368
14369             hardcode_libdir_separator_CXX=:
14370
14371             # Commands to make compiler produce verbose output that lists
14372             # what "hidden" libraries, object files and flags are used when
14373             # linking a shared library.
14374             #
14375             # There doesn't appear to be a way to prevent this compiler from
14376             # explicitly linking system object files so we need to strip them
14377             # from the output so that they don't get included in the library
14378             # dependencies.
14379             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"'
14380             ;;
14381           *)
14382             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14383               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14384               case $host in
14385                 osf3*)
14386                   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'
14387                   ;;
14388                 *)
14389                   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'
14390                   ;;
14391               esac
14392
14393               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14394               hardcode_libdir_separator_CXX=:
14395
14396               # Commands to make compiler produce verbose output that lists
14397               # what "hidden" libraries, object files and flags are used when
14398               # linking a shared library.
14399               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14400
14401             else
14402               # FIXME: insert proper C++ library support
14403               ld_shlibs_CXX=no
14404             fi
14405             ;;
14406         esac
14407         ;;
14408
14409       psos*)
14410         # FIXME: insert proper C++ library support
14411         ld_shlibs_CXX=no
14412         ;;
14413
14414       sunos4*)
14415         case $cc_basename in
14416           CC*)
14417             # Sun C++ 4.x
14418             # FIXME: insert proper C++ library support
14419             ld_shlibs_CXX=no
14420             ;;
14421           lcc*)
14422             # Lucid
14423             # FIXME: insert proper C++ library support
14424             ld_shlibs_CXX=no
14425             ;;
14426           *)
14427             # FIXME: insert proper C++ library support
14428             ld_shlibs_CXX=no
14429             ;;
14430         esac
14431         ;;
14432
14433       solaris*)
14434         case $cc_basename in
14435           CC* | sunCC*)
14436             # Sun C++ 4.2, 5.x and Centerline C++
14437             archive_cmds_need_lc_CXX=yes
14438             no_undefined_flag_CXX=' -zdefs'
14439             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14440             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14441               $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'
14442
14443             hardcode_libdir_flag_spec_CXX='-R$libdir'
14444             hardcode_shlibpath_var_CXX=no
14445             case $host_os in
14446               solaris2.[0-5] | solaris2.[0-5].*) ;;
14447               *)
14448                 # The compiler driver will combine and reorder linker options,
14449                 # but understands `-z linker_flag'.
14450                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14451                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14452                 ;;
14453             esac
14454             link_all_deplibs_CXX=yes
14455
14456             output_verbose_link_cmd='func_echo_all'
14457
14458             # Archives containing C++ object files must be created using
14459             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14460             # necessary to make sure instantiated templates are included
14461             # in the archive.
14462             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14463             ;;
14464           gcx*)
14465             # Green Hills C++ Compiler
14466             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14467
14468             # The C++ compiler must be used to create the archive.
14469             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14470             ;;
14471           *)
14472             # GNU C++ compiler with Solaris linker
14473             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14474               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14475               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14476                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14477                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14478                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14479
14480                 # Commands to make compiler produce verbose output that lists
14481                 # what "hidden" libraries, object files and flags are used when
14482                 # linking a shared library.
14483                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14484               else
14485                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14486                 # platform.
14487                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14488                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14489                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14490
14491                 # Commands to make compiler produce verbose output that lists
14492                 # what "hidden" libraries, object files and flags are used when
14493                 # linking a shared library.
14494                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14495               fi
14496
14497               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14498               case $host_os in
14499                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14500                 *)
14501                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14502                   ;;
14503               esac
14504             fi
14505             ;;
14506         esac
14507         ;;
14508
14509     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14510       no_undefined_flag_CXX='${wl}-z,text'
14511       archive_cmds_need_lc_CXX=no
14512       hardcode_shlibpath_var_CXX=no
14513       runpath_var='LD_RUN_PATH'
14514
14515       case $cc_basename in
14516         CC*)
14517           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14518           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14519           ;;
14520         *)
14521           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14522           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14523           ;;
14524       esac
14525       ;;
14526
14527       sysv5* | sco3.2v5* | sco5v6*)
14528         # Note: We can NOT use -z defs as we might desire, because we do not
14529         # link with -lc, and that would cause any symbols used from libc to
14530         # always be unresolved, which means just about no library would
14531         # ever link correctly.  If we're not using GNU ld we use -z text
14532         # though, which does catch some bad symbols but isn't as heavy-handed
14533         # as -z defs.
14534         no_undefined_flag_CXX='${wl}-z,text'
14535         allow_undefined_flag_CXX='${wl}-z,nodefs'
14536         archive_cmds_need_lc_CXX=no
14537         hardcode_shlibpath_var_CXX=no
14538         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14539         hardcode_libdir_separator_CXX=':'
14540         link_all_deplibs_CXX=yes
14541         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14542         runpath_var='LD_RUN_PATH'
14543
14544         case $cc_basename in
14545           CC*)
14546             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14547             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14548             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14549               '"$old_archive_cmds_CXX"
14550             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14551               '"$reload_cmds_CXX"
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       tandem*)
14561         case $cc_basename in
14562           NCC*)
14563             # NonStop-UX NCC 3.20
14564             # FIXME: insert proper C++ library support
14565             ld_shlibs_CXX=no
14566             ;;
14567           *)
14568             # FIXME: insert proper C++ library support
14569             ld_shlibs_CXX=no
14570             ;;
14571         esac
14572         ;;
14573
14574       vxworks*)
14575         # FIXME: insert proper C++ library support
14576         ld_shlibs_CXX=no
14577         ;;
14578
14579       *)
14580         # FIXME: insert proper C++ library support
14581         ld_shlibs_CXX=no
14582         ;;
14583     esac
14584
14585     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14586 $as_echo "$ld_shlibs_CXX" >&6; }
14587     test "$ld_shlibs_CXX" = no && can_build_shared=no
14588
14589     GCC_CXX="$GXX"
14590     LD_CXX="$LD"
14591
14592     ## CAVEAT EMPTOR:
14593     ## There is no encapsulation within the following macros, do not change
14594     ## the running order or otherwise move them around unless you know exactly
14595     ## what you are doing...
14596     # Dependencies to place before and after the object being linked:
14597 predep_objects_CXX=
14598 postdep_objects_CXX=
14599 predeps_CXX=
14600 postdeps_CXX=
14601 compiler_lib_search_path_CXX=
14602
14603 cat > conftest.$ac_ext <<_LT_EOF
14604 class Foo
14605 {
14606 public:
14607   Foo (void) { a = 0; }
14608 private:
14609   int a;
14610 };
14611 _LT_EOF
14612
14613
14614 _lt_libdeps_save_CFLAGS=$CFLAGS
14615 case "$CC $CFLAGS " in #(
14616 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14617 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14618 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14619 esac
14620
14621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14622   (eval $ac_compile) 2>&5
14623   ac_status=$?
14624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14625   test $ac_status = 0; }; then
14626   # Parse the compiler output and extract the necessary
14627   # objects, libraries and library flags.
14628
14629   # Sentinel used to keep track of whether or not we are before
14630   # the conftest object file.
14631   pre_test_object_deps_done=no
14632
14633   for p in `eval "$output_verbose_link_cmd"`; do
14634     case ${prev}${p} in
14635
14636     -L* | -R* | -l*)
14637        # Some compilers place space between "-{L,R}" and the path.
14638        # Remove the space.
14639        if test $p = "-L" ||
14640           test $p = "-R"; then
14641          prev=$p
14642          continue
14643        fi
14644
14645        # Expand the sysroot to ease extracting the directories later.
14646        if test -z "$prev"; then
14647          case $p in
14648          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14649          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14650          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14651          esac
14652        fi
14653        case $p in
14654        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14655        esac
14656        if test "$pre_test_object_deps_done" = no; then
14657          case ${prev} in
14658          -L | -R)
14659            # Internal compiler library paths should come after those
14660            # provided the user.  The postdeps already come after the
14661            # user supplied libs so there is no need to process them.
14662            if test -z "$compiler_lib_search_path_CXX"; then
14663              compiler_lib_search_path_CXX="${prev}${p}"
14664            else
14665              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14666            fi
14667            ;;
14668          # The "-l" case would never come before the object being
14669          # linked, so don't bother handling this case.
14670          esac
14671        else
14672          if test -z "$postdeps_CXX"; then
14673            postdeps_CXX="${prev}${p}"
14674          else
14675            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14676          fi
14677        fi
14678        prev=
14679        ;;
14680
14681     *.lto.$objext) ;; # Ignore GCC LTO objects
14682     *.$objext)
14683        # This assumes that the test object file only shows up
14684        # once in the compiler output.
14685        if test "$p" = "conftest.$objext"; then
14686          pre_test_object_deps_done=yes
14687          continue
14688        fi
14689
14690        if test "$pre_test_object_deps_done" = no; then
14691          if test -z "$predep_objects_CXX"; then
14692            predep_objects_CXX="$p"
14693          else
14694            predep_objects_CXX="$predep_objects_CXX $p"
14695          fi
14696        else
14697          if test -z "$postdep_objects_CXX"; then
14698            postdep_objects_CXX="$p"
14699          else
14700            postdep_objects_CXX="$postdep_objects_CXX $p"
14701          fi
14702        fi
14703        ;;
14704
14705     *) ;; # Ignore the rest.
14706
14707     esac
14708   done
14709
14710   # Clean up.
14711   rm -f a.out a.exe
14712 else
14713   echo "libtool.m4: error: problem compiling CXX test program"
14714 fi
14715
14716 $RM -f confest.$objext
14717 CFLAGS=$_lt_libdeps_save_CFLAGS
14718
14719 # PORTME: override above test on systems where it is broken
14720 case $host_os in
14721 interix[3-9]*)
14722   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14723   # hack all around it, let's just trust "g++" to DTRT.
14724   predep_objects_CXX=
14725   postdep_objects_CXX=
14726   postdeps_CXX=
14727   ;;
14728
14729 linux*)
14730   case `$CC -V 2>&1 | sed 5q` in
14731   *Sun\ C*)
14732     # Sun C++ 5.9
14733
14734     # The more standards-conforming stlport4 library is
14735     # incompatible with the Cstd library. Avoid specifying
14736     # it if it's in CXXFLAGS. Ignore libCrun as
14737     # -library=stlport4 depends on it.
14738     case " $CXX $CXXFLAGS " in
14739     *" -library=stlport4 "*)
14740       solaris_use_stlport4=yes
14741       ;;
14742     esac
14743
14744     if test "$solaris_use_stlport4" != yes; then
14745       postdeps_CXX='-library=Cstd -library=Crun'
14746     fi
14747     ;;
14748   esac
14749   ;;
14750
14751 solaris*)
14752   case $cc_basename in
14753   CC* | sunCC*)
14754     # The more standards-conforming stlport4 library is
14755     # incompatible with the Cstd library. Avoid specifying
14756     # it if it's in CXXFLAGS. Ignore libCrun as
14757     # -library=stlport4 depends on it.
14758     case " $CXX $CXXFLAGS " in
14759     *" -library=stlport4 "*)
14760       solaris_use_stlport4=yes
14761       ;;
14762     esac
14763
14764     # Adding this requires a known-good setup of shared libraries for
14765     # Sun compiler versions before 5.6, else PIC objects from an old
14766     # archive will be linked into the output, leading to subtle bugs.
14767     if test "$solaris_use_stlport4" != yes; then
14768       postdeps_CXX='-library=Cstd -library=Crun'
14769     fi
14770     ;;
14771   esac
14772   ;;
14773 esac
14774
14775
14776 case " $postdeps_CXX " in
14777 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14778 esac
14779  compiler_lib_search_dirs_CXX=
14780 if test -n "${compiler_lib_search_path_CXX}"; then
14781  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14782 fi
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814     lt_prog_compiler_wl_CXX=
14815 lt_prog_compiler_pic_CXX=
14816 lt_prog_compiler_static_CXX=
14817
14818
14819   # C++ specific cases for pic, static, wl, etc.
14820   if test "$GXX" = yes; then
14821     lt_prog_compiler_wl_CXX='-Wl,'
14822     lt_prog_compiler_static_CXX='-static'
14823
14824     case $host_os in
14825     aix*)
14826       # All AIX code is PIC.
14827       if test "$host_cpu" = ia64; then
14828         # AIX 5 now supports IA64 processor
14829         lt_prog_compiler_static_CXX='-Bstatic'
14830       fi
14831       ;;
14832
14833     amigaos*)
14834       case $host_cpu in
14835       powerpc)
14836             # see comment about AmigaOS4 .so support
14837             lt_prog_compiler_pic_CXX='-fPIC'
14838         ;;
14839       m68k)
14840             # FIXME: we need at least 68020 code to build shared libraries, but
14841             # adding the `-m68020' flag to GCC prevents building anything better,
14842             # like `-m68040'.
14843             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14844         ;;
14845       esac
14846       ;;
14847
14848     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14849       # PIC is the default for these OSes.
14850       ;;
14851     mingw* | cygwin* | os2* | pw32* | cegcc*)
14852       # This hack is so that the source file can tell whether it is being
14853       # built for inclusion in a dll (and should export symbols for example).
14854       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14855       # (--disable-auto-import) libraries
14856       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14857       ;;
14858     darwin* | rhapsody*)
14859       # PIC is the default on this platform
14860       # Common symbols not allowed in MH_DYLIB files
14861       lt_prog_compiler_pic_CXX='-fno-common'
14862       ;;
14863     *djgpp*)
14864       # DJGPP does not support shared libraries at all
14865       lt_prog_compiler_pic_CXX=
14866       ;;
14867     haiku*)
14868       # PIC is the default for Haiku.
14869       # The "-static" flag exists, but is broken.
14870       lt_prog_compiler_static_CXX=
14871       ;;
14872     interix[3-9]*)
14873       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14874       # Instead, we relocate shared libraries at runtime.
14875       ;;
14876     sysv4*MP*)
14877       if test -d /usr/nec; then
14878         lt_prog_compiler_pic_CXX=-Kconform_pic
14879       fi
14880       ;;
14881     hpux*)
14882       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14883       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14884       # sets the default TLS model and affects inlining.
14885       case $host_cpu in
14886       hppa*64*)
14887         ;;
14888       *)
14889         lt_prog_compiler_pic_CXX='-fPIC'
14890         ;;
14891       esac
14892       ;;
14893     *qnx* | *nto*)
14894       # QNX uses GNU C++, but need to define -shared option too, otherwise
14895       # it will coredump.
14896       lt_prog_compiler_pic_CXX='-fPIC -shared'
14897       ;;
14898     *)
14899       lt_prog_compiler_pic_CXX='-fPIC'
14900       ;;
14901     esac
14902   else
14903     case $host_os in
14904       aix[4-9]*)
14905         # All AIX code is PIC.
14906         if test "$host_cpu" = ia64; then
14907           # AIX 5 now supports IA64 processor
14908           lt_prog_compiler_static_CXX='-Bstatic'
14909         else
14910           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14911         fi
14912         ;;
14913       chorus*)
14914         case $cc_basename in
14915         cxch68*)
14916           # Green Hills C++ Compiler
14917           # _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"
14918           ;;
14919         esac
14920         ;;
14921       mingw* | cygwin* | os2* | pw32* | cegcc*)
14922         # This hack is so that the source file can tell whether it is being
14923         # built for inclusion in a dll (and should export symbols for example).
14924         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14925         ;;
14926       dgux*)
14927         case $cc_basename in
14928           ec++*)
14929             lt_prog_compiler_pic_CXX='-KPIC'
14930             ;;
14931           ghcx*)
14932             # Green Hills C++ Compiler
14933             lt_prog_compiler_pic_CXX='-pic'
14934             ;;
14935           *)
14936             ;;
14937         esac
14938         ;;
14939       freebsd* | dragonfly*)
14940         # FreeBSD uses GNU C++
14941         ;;
14942       hpux9* | hpux10* | hpux11*)
14943         case $cc_basename in
14944           CC*)
14945             lt_prog_compiler_wl_CXX='-Wl,'
14946             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14947             if test "$host_cpu" != ia64; then
14948               lt_prog_compiler_pic_CXX='+Z'
14949             fi
14950             ;;
14951           aCC*)
14952             lt_prog_compiler_wl_CXX='-Wl,'
14953             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14954             case $host_cpu in
14955             hppa*64*|ia64*)
14956               # +Z the default
14957               ;;
14958             *)
14959               lt_prog_compiler_pic_CXX='+Z'
14960               ;;
14961             esac
14962             ;;
14963           *)
14964             ;;
14965         esac
14966         ;;
14967       interix*)
14968         # This is c89, which is MS Visual C++ (no shared libs)
14969         # Anyone wants to do a port?
14970         ;;
14971       irix5* | irix6* | nonstopux*)
14972         case $cc_basename in
14973           CC*)
14974             lt_prog_compiler_wl_CXX='-Wl,'
14975             lt_prog_compiler_static_CXX='-non_shared'
14976             # CC pic flag -KPIC is the default.
14977             ;;
14978           *)
14979             ;;
14980         esac
14981         ;;
14982       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14983         case $cc_basename in
14984           KCC*)
14985             # KAI C++ Compiler
14986             lt_prog_compiler_wl_CXX='--backend -Wl,'
14987             lt_prog_compiler_pic_CXX='-fPIC'
14988             ;;
14989           ecpc* )
14990             # old Intel C++ for x86_64 which still supported -KPIC.
14991             lt_prog_compiler_wl_CXX='-Wl,'
14992             lt_prog_compiler_pic_CXX='-KPIC'
14993             lt_prog_compiler_static_CXX='-static'
14994             ;;
14995           icpc* )
14996             # Intel C++, used to be incompatible with GCC.
14997             # ICC 10 doesn't accept -KPIC any more.
14998             lt_prog_compiler_wl_CXX='-Wl,'
14999             lt_prog_compiler_pic_CXX='-fPIC'
15000             lt_prog_compiler_static_CXX='-static'
15001             ;;
15002           pgCC* | pgcpp*)
15003             # Portland Group C++ compiler
15004             lt_prog_compiler_wl_CXX='-Wl,'
15005             lt_prog_compiler_pic_CXX='-fpic'
15006             lt_prog_compiler_static_CXX='-Bstatic'
15007             ;;
15008           cxx*)
15009             # Compaq C++
15010             # Make sure the PIC flag is empty.  It appears that all Alpha
15011             # Linux and Compaq Tru64 Unix objects are PIC.
15012             lt_prog_compiler_pic_CXX=
15013             lt_prog_compiler_static_CXX='-non_shared'
15014             ;;
15015           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15016             # IBM XL 8.0, 9.0 on PPC and BlueGene
15017             lt_prog_compiler_wl_CXX='-Wl,'
15018             lt_prog_compiler_pic_CXX='-qpic'
15019             lt_prog_compiler_static_CXX='-qstaticlink'
15020             ;;
15021           *)
15022             case `$CC -V 2>&1 | sed 5q` in
15023             *Sun\ C*)
15024               # Sun C++ 5.9
15025               lt_prog_compiler_pic_CXX='-KPIC'
15026               lt_prog_compiler_static_CXX='-Bstatic'
15027               lt_prog_compiler_wl_CXX='-Qoption ld '
15028               ;;
15029             esac
15030             ;;
15031         esac
15032         ;;
15033       lynxos*)
15034         ;;
15035       m88k*)
15036         ;;
15037       mvs*)
15038         case $cc_basename in
15039           cxx*)
15040             lt_prog_compiler_pic_CXX='-W c,exportall'
15041             ;;
15042           *)
15043             ;;
15044         esac
15045         ;;
15046       netbsd* | netbsdelf*-gnu)
15047         ;;
15048       *qnx* | *nto*)
15049         # QNX uses GNU C++, but need to define -shared option too, otherwise
15050         # it will coredump.
15051         lt_prog_compiler_pic_CXX='-fPIC -shared'
15052         ;;
15053       osf3* | osf4* | osf5*)
15054         case $cc_basename in
15055           KCC*)
15056             lt_prog_compiler_wl_CXX='--backend -Wl,'
15057             ;;
15058           RCC*)
15059             # Rational C++ 2.4.1
15060             lt_prog_compiler_pic_CXX='-pic'
15061             ;;
15062           cxx*)
15063             # Digital/Compaq C++
15064             lt_prog_compiler_wl_CXX='-Wl,'
15065             # Make sure the PIC flag is empty.  It appears that all Alpha
15066             # Linux and Compaq Tru64 Unix objects are PIC.
15067             lt_prog_compiler_pic_CXX=
15068             lt_prog_compiler_static_CXX='-non_shared'
15069             ;;
15070           *)
15071             ;;
15072         esac
15073         ;;
15074       psos*)
15075         ;;
15076       solaris*)
15077         case $cc_basename in
15078           CC* | sunCC*)
15079             # Sun C++ 4.2, 5.x and Centerline C++
15080             lt_prog_compiler_pic_CXX='-KPIC'
15081             lt_prog_compiler_static_CXX='-Bstatic'
15082             lt_prog_compiler_wl_CXX='-Qoption ld '
15083             ;;
15084           gcx*)
15085             # Green Hills C++ Compiler
15086             lt_prog_compiler_pic_CXX='-PIC'
15087             ;;
15088           *)
15089             ;;
15090         esac
15091         ;;
15092       sunos4*)
15093         case $cc_basename in
15094           CC*)
15095             # Sun C++ 4.x
15096             lt_prog_compiler_pic_CXX='-pic'
15097             lt_prog_compiler_static_CXX='-Bstatic'
15098             ;;
15099           lcc*)
15100             # Lucid
15101             lt_prog_compiler_pic_CXX='-pic'
15102             ;;
15103           *)
15104             ;;
15105         esac
15106         ;;
15107       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15108         case $cc_basename in
15109           CC*)
15110             lt_prog_compiler_wl_CXX='-Wl,'
15111             lt_prog_compiler_pic_CXX='-KPIC'
15112             lt_prog_compiler_static_CXX='-Bstatic'
15113             ;;
15114         esac
15115         ;;
15116       tandem*)
15117         case $cc_basename in
15118           NCC*)
15119             # NonStop-UX NCC 3.20
15120             lt_prog_compiler_pic_CXX='-KPIC'
15121             ;;
15122           *)
15123             ;;
15124         esac
15125         ;;
15126       vxworks*)
15127         ;;
15128       *)
15129         lt_prog_compiler_can_build_shared_CXX=no
15130         ;;
15131     esac
15132   fi
15133
15134 case $host_os in
15135   # For platforms which do not support PIC, -DPIC is meaningless:
15136   *djgpp*)
15137     lt_prog_compiler_pic_CXX=
15138     ;;
15139   *)
15140     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15141     ;;
15142 esac
15143
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15145 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15146 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15147   $as_echo_n "(cached) " >&6
15148 else
15149   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15150 fi
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15152 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15153 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15154
15155 #
15156 # Check to make sure the PIC flag actually works.
15157 #
15158 if test -n "$lt_prog_compiler_pic_CXX"; then
15159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15160 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15161 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15162   $as_echo_n "(cached) " >&6
15163 else
15164   lt_cv_prog_compiler_pic_works_CXX=no
15165    ac_outfile=conftest.$ac_objext
15166    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15167    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15168    # Insert the option either (1) after the last *FLAGS variable, or
15169    # (2) before a word containing "conftest.", or (3) at the end.
15170    # Note that $ac_compile itself does not contain backslashes and begins
15171    # with a dollar sign (not a hyphen), so the echo should work correctly.
15172    # The option is referenced via a variable to avoid confusing sed.
15173    lt_compile=`echo "$ac_compile" | $SED \
15174    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15175    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15176    -e 's:$: $lt_compiler_flag:'`
15177    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15178    (eval "$lt_compile" 2>conftest.err)
15179    ac_status=$?
15180    cat conftest.err >&5
15181    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182    if (exit $ac_status) && test -s "$ac_outfile"; then
15183      # The compiler can only warn and ignore the option if not recognized
15184      # So say no if there are warnings other than the usual output.
15185      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15186      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15187      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15188        lt_cv_prog_compiler_pic_works_CXX=yes
15189      fi
15190    fi
15191    $RM conftest*
15192
15193 fi
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15195 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15196
15197 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15198     case $lt_prog_compiler_pic_CXX in
15199      "" | " "*) ;;
15200      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15201      esac
15202 else
15203     lt_prog_compiler_pic_CXX=
15204      lt_prog_compiler_can_build_shared_CXX=no
15205 fi
15206
15207 fi
15208
15209
15210
15211
15212
15213 #
15214 # Check to make sure the static flag actually works.
15215 #
15216 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15218 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15219 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15220   $as_echo_n "(cached) " >&6
15221 else
15222   lt_cv_prog_compiler_static_works_CXX=no
15223    save_LDFLAGS="$LDFLAGS"
15224    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15225    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15226    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15227      # The linker can only warn and ignore the option if not recognized
15228      # So say no if there are warnings
15229      if test -s conftest.err; then
15230        # Append any errors to the config.log.
15231        cat conftest.err 1>&5
15232        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15233        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15234        if diff conftest.exp conftest.er2 >/dev/null; then
15235          lt_cv_prog_compiler_static_works_CXX=yes
15236        fi
15237      else
15238        lt_cv_prog_compiler_static_works_CXX=yes
15239      fi
15240    fi
15241    $RM -r conftest*
15242    LDFLAGS="$save_LDFLAGS"
15243
15244 fi
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15246 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15247
15248 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15249     :
15250 else
15251     lt_prog_compiler_static_CXX=
15252 fi
15253
15254
15255
15256
15257     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15258 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15259 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15260   $as_echo_n "(cached) " >&6
15261 else
15262   lt_cv_prog_compiler_c_o_CXX=no
15263    $RM -r conftest 2>/dev/null
15264    mkdir conftest
15265    cd conftest
15266    mkdir out
15267    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15268
15269    lt_compiler_flag="-o out/conftest2.$ac_objext"
15270    # Insert the option either (1) after the last *FLAGS variable, or
15271    # (2) before a word containing "conftest.", or (3) at the end.
15272    # Note that $ac_compile itself does not contain backslashes and begins
15273    # with a dollar sign (not a hyphen), so the echo should work correctly.
15274    lt_compile=`echo "$ac_compile" | $SED \
15275    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15276    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15277    -e 's:$: $lt_compiler_flag:'`
15278    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15279    (eval "$lt_compile" 2>out/conftest.err)
15280    ac_status=$?
15281    cat out/conftest.err >&5
15282    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15284    then
15285      # The compiler can only warn and ignore the option if not recognized
15286      # So say no if there are warnings
15287      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15288      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15289      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15290        lt_cv_prog_compiler_c_o_CXX=yes
15291      fi
15292    fi
15293    chmod u+w . 2>&5
15294    $RM conftest*
15295    # SGI C++ compiler will create directory out/ii_files/ for
15296    # template instantiation
15297    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15298    $RM out/* && rmdir out
15299    cd ..
15300    $RM -r conftest
15301    $RM conftest*
15302
15303 fi
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15305 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15306
15307
15308
15309     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15310 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15311 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15312   $as_echo_n "(cached) " >&6
15313 else
15314   lt_cv_prog_compiler_c_o_CXX=no
15315    $RM -r conftest 2>/dev/null
15316    mkdir conftest
15317    cd conftest
15318    mkdir out
15319    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15320
15321    lt_compiler_flag="-o out/conftest2.$ac_objext"
15322    # Insert the option either (1) after the last *FLAGS variable, or
15323    # (2) before a word containing "conftest.", or (3) at the end.
15324    # Note that $ac_compile itself does not contain backslashes and begins
15325    # with a dollar sign (not a hyphen), so the echo should work correctly.
15326    lt_compile=`echo "$ac_compile" | $SED \
15327    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15328    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15329    -e 's:$: $lt_compiler_flag:'`
15330    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15331    (eval "$lt_compile" 2>out/conftest.err)
15332    ac_status=$?
15333    cat out/conftest.err >&5
15334    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15336    then
15337      # The compiler can only warn and ignore the option if not recognized
15338      # So say no if there are warnings
15339      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15340      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15341      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15342        lt_cv_prog_compiler_c_o_CXX=yes
15343      fi
15344    fi
15345    chmod u+w . 2>&5
15346    $RM conftest*
15347    # SGI C++ compiler will create directory out/ii_files/ for
15348    # template instantiation
15349    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15350    $RM out/* && rmdir out
15351    cd ..
15352    $RM -r conftest
15353    $RM conftest*
15354
15355 fi
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15357 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15358
15359
15360
15361
15362 hard_links="nottested"
15363 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15364   # do not overwrite the value of need_locks provided by the user
15365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15366 $as_echo_n "checking if we can lock with hard links... " >&6; }
15367   hard_links=yes
15368   $RM conftest*
15369   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15370   touch conftest.a
15371   ln conftest.a conftest.b 2>&5 || hard_links=no
15372   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15374 $as_echo "$hard_links" >&6; }
15375   if test "$hard_links" = no; then
15376     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15377 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15378     need_locks=warn
15379   fi
15380 else
15381   need_locks=no
15382 fi
15383
15384
15385
15386     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15387 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15388
15389   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15390   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15391   case $host_os in
15392   aix[4-9]*)
15393     # If we're using GNU nm, then we don't want the "-C" option.
15394     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15395     # Also, AIX nm treats weak defined symbols like other global defined
15396     # symbols, whereas GNU nm marks them as "W".
15397     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15398       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'
15399     else
15400       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'
15401     fi
15402     ;;
15403   pw32*)
15404     export_symbols_cmds_CXX="$ltdll_cmds"
15405     ;;
15406   cygwin* | mingw* | cegcc*)
15407     case $cc_basename in
15408     cl*)
15409       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15410       ;;
15411     *)
15412       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'
15413       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15414       ;;
15415     esac
15416     ;;
15417   linux* | k*bsd*-gnu | gnu*)
15418     link_all_deplibs_CXX=no
15419     ;;
15420   *)
15421     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15422     ;;
15423   esac
15424
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15426 $as_echo "$ld_shlibs_CXX" >&6; }
15427 test "$ld_shlibs_CXX" = no && can_build_shared=no
15428
15429 with_gnu_ld_CXX=$with_gnu_ld
15430
15431
15432
15433
15434
15435
15436 #
15437 # Do we need to explicitly link libc?
15438 #
15439 case "x$archive_cmds_need_lc_CXX" in
15440 x|xyes)
15441   # Assume -lc should be added
15442   archive_cmds_need_lc_CXX=yes
15443
15444   if test "$enable_shared" = yes && test "$GCC" = yes; then
15445     case $archive_cmds_CXX in
15446     *'~'*)
15447       # FIXME: we may have to deal with multi-command sequences.
15448       ;;
15449     '$CC '*)
15450       # Test whether the compiler implicitly links with -lc since on some
15451       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15452       # to ld, don't add -lc before -lgcc.
15453       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15454 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15455 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15456   $as_echo_n "(cached) " >&6
15457 else
15458   $RM conftest*
15459         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15460
15461         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15462   (eval $ac_compile) 2>&5
15463   ac_status=$?
15464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15465   test $ac_status = 0; } 2>conftest.err; then
15466           soname=conftest
15467           lib=conftest
15468           libobjs=conftest.$ac_objext
15469           deplibs=
15470           wl=$lt_prog_compiler_wl_CXX
15471           pic_flag=$lt_prog_compiler_pic_CXX
15472           compiler_flags=-v
15473           linker_flags=-v
15474           verstring=
15475           output_objdir=.
15476           libname=conftest
15477           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15478           allow_undefined_flag_CXX=
15479           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15480   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15481   ac_status=$?
15482   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15483   test $ac_status = 0; }
15484           then
15485             lt_cv_archive_cmds_need_lc_CXX=no
15486           else
15487             lt_cv_archive_cmds_need_lc_CXX=yes
15488           fi
15489           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15490         else
15491           cat conftest.err 1>&5
15492         fi
15493         $RM conftest*
15494
15495 fi
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15497 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15498       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15499       ;;
15500     esac
15501   fi
15502   ;;
15503 esac
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15567 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15568
15569 library_names_spec=
15570 libname_spec='lib$name'
15571 soname_spec=
15572 shrext_cmds=".so"
15573 postinstall_cmds=
15574 postuninstall_cmds=
15575 finish_cmds=
15576 finish_eval=
15577 shlibpath_var=
15578 shlibpath_overrides_runpath=unknown
15579 version_type=none
15580 dynamic_linker="$host_os ld.so"
15581 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15582 need_lib_prefix=unknown
15583 hardcode_into_libs=no
15584
15585 # when you set need_version to no, make sure it does not cause -set_version
15586 # flags to be left without arguments
15587 need_version=unknown
15588
15589 case $host_os in
15590 aix3*)
15591   version_type=linux # correct to gnu/linux during the next big refactor
15592   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15593   shlibpath_var=LIBPATH
15594
15595   # AIX 3 has no versioning support, so we append a major version to the name.
15596   soname_spec='${libname}${release}${shared_ext}$major'
15597   ;;
15598
15599 aix[4-9]*)
15600   version_type=linux # correct to gnu/linux during the next big refactor
15601   need_lib_prefix=no
15602   need_version=no
15603   hardcode_into_libs=yes
15604   if test "$host_cpu" = ia64; then
15605     # AIX 5 supports IA64
15606     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15607     shlibpath_var=LD_LIBRARY_PATH
15608   else
15609     # With GCC up to 2.95.x, collect2 would create an import file
15610     # for dependence libraries.  The import file would start with
15611     # the line `#! .'.  This would cause the generated library to
15612     # depend on `.', always an invalid library.  This was fixed in
15613     # development snapshots of GCC prior to 3.0.
15614     case $host_os in
15615       aix4 | aix4.[01] | aix4.[01].*)
15616       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15617            echo ' yes '
15618            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15619         :
15620       else
15621         can_build_shared=no
15622       fi
15623       ;;
15624     esac
15625     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15626     # soname into executable. Probably we can add versioning support to
15627     # collect2, so additional links can be useful in future.
15628     if test "$aix_use_runtimelinking" = yes; then
15629       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15630       # instead of lib<name>.a to let people know that these are not
15631       # typical AIX shared libraries.
15632       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15633     else
15634       # We preserve .a as extension for shared libraries through AIX4.2
15635       # and later when we are not doing run time linking.
15636       library_names_spec='${libname}${release}.a $libname.a'
15637       soname_spec='${libname}${release}${shared_ext}$major'
15638     fi
15639     shlibpath_var=LIBPATH
15640   fi
15641   ;;
15642
15643 amigaos*)
15644   case $host_cpu in
15645   powerpc)
15646     # Since July 2007 AmigaOS4 officially supports .so libraries.
15647     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15648     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15649     ;;
15650   m68k)
15651     library_names_spec='$libname.ixlibrary $libname.a'
15652     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15653     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'
15654     ;;
15655   esac
15656   ;;
15657
15658 beos*)
15659   library_names_spec='${libname}${shared_ext}'
15660   dynamic_linker="$host_os ld.so"
15661   shlibpath_var=LIBRARY_PATH
15662   ;;
15663
15664 bsdi[45]*)
15665   version_type=linux # correct to gnu/linux during the next big refactor
15666   need_version=no
15667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15668   soname_spec='${libname}${release}${shared_ext}$major'
15669   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15670   shlibpath_var=LD_LIBRARY_PATH
15671   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15672   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15673   # the default ld.so.conf also contains /usr/contrib/lib and
15674   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15675   # libtool to hard-code these into programs
15676   ;;
15677
15678 cygwin* | mingw* | pw32* | cegcc*)
15679   version_type=windows
15680   shrext_cmds=".dll"
15681   need_version=no
15682   need_lib_prefix=no
15683
15684   case $GCC,$cc_basename in
15685   yes,*)
15686     # gcc
15687     library_names_spec='$libname.dll.a'
15688     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15689     postinstall_cmds='base_file=`basename \${file}`~
15690       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15691       dldir=$destdir/`dirname \$dlpath`~
15692       test -d \$dldir || mkdir -p \$dldir~
15693       $install_prog $dir/$dlname \$dldir/$dlname~
15694       chmod a+x \$dldir/$dlname~
15695       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15696         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15697       fi'
15698     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15699       dlpath=$dir/\$dldll~
15700        $RM \$dlpath'
15701     shlibpath_overrides_runpath=yes
15702
15703     case $host_os in
15704     cygwin*)
15705       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15706       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15707
15708       ;;
15709     mingw* | cegcc*)
15710       # MinGW DLLs use traditional 'lib' prefix
15711       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15712       ;;
15713     pw32*)
15714       # pw32 DLLs use 'pw' prefix rather than 'lib'
15715       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15716       ;;
15717     esac
15718     dynamic_linker='Win32 ld.exe'
15719     ;;
15720
15721   *,cl*)
15722     # Native MSVC
15723     libname_spec='$name'
15724     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15725     library_names_spec='${libname}.dll.lib'
15726
15727     case $build_os in
15728     mingw*)
15729       sys_lib_search_path_spec=
15730       lt_save_ifs=$IFS
15731       IFS=';'
15732       for lt_path in $LIB
15733       do
15734         IFS=$lt_save_ifs
15735         # Let DOS variable expansion print the short 8.3 style file name.
15736         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15737         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15738       done
15739       IFS=$lt_save_ifs
15740       # Convert to MSYS style.
15741       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15742       ;;
15743     cygwin*)
15744       # Convert to unix form, then to dos form, then back to unix form
15745       # but this time dos style (no spaces!) so that the unix form looks
15746       # like /cygdrive/c/PROGRA~1:/cygdr...
15747       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15748       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15749       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15750       ;;
15751     *)
15752       sys_lib_search_path_spec="$LIB"
15753       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15754         # It is most probably a Windows format PATH.
15755         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15756       else
15757         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15758       fi
15759       # FIXME: find the short name or the path components, as spaces are
15760       # common. (e.g. "Program Files" -> "PROGRA~1")
15761       ;;
15762     esac
15763
15764     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15765     postinstall_cmds='base_file=`basename \${file}`~
15766       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15767       dldir=$destdir/`dirname \$dlpath`~
15768       test -d \$dldir || mkdir -p \$dldir~
15769       $install_prog $dir/$dlname \$dldir/$dlname'
15770     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15771       dlpath=$dir/\$dldll~
15772        $RM \$dlpath'
15773     shlibpath_overrides_runpath=yes
15774     dynamic_linker='Win32 link.exe'
15775     ;;
15776
15777   *)
15778     # Assume MSVC wrapper
15779     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15780     dynamic_linker='Win32 ld.exe'
15781     ;;
15782   esac
15783   # FIXME: first we should search . and the directory the executable is in
15784   shlibpath_var=PATH
15785   ;;
15786
15787 darwin* | rhapsody*)
15788   dynamic_linker="$host_os dyld"
15789   version_type=darwin
15790   need_lib_prefix=no
15791   need_version=no
15792   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15793   soname_spec='${libname}${release}${major}$shared_ext'
15794   shlibpath_overrides_runpath=yes
15795   shlibpath_var=DYLD_LIBRARY_PATH
15796   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15797
15798   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15799   ;;
15800
15801 dgux*)
15802   version_type=linux # correct to gnu/linux during the next big refactor
15803   need_lib_prefix=no
15804   need_version=no
15805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15806   soname_spec='${libname}${release}${shared_ext}$major'
15807   shlibpath_var=LD_LIBRARY_PATH
15808   ;;
15809
15810 freebsd* | dragonfly*)
15811   # DragonFly does not have aout.  When/if they implement a new
15812   # versioning mechanism, adjust this.
15813   if test -x /usr/bin/objformat; then
15814     objformat=`/usr/bin/objformat`
15815   else
15816     case $host_os in
15817     freebsd[23].*) objformat=aout ;;
15818     *) objformat=elf ;;
15819     esac
15820   fi
15821   version_type=freebsd-$objformat
15822   case $version_type in
15823     freebsd-elf*)
15824       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15825       need_version=no
15826       need_lib_prefix=no
15827       ;;
15828     freebsd-*)
15829       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15830       need_version=yes
15831       ;;
15832   esac
15833   shlibpath_var=LD_LIBRARY_PATH
15834   case $host_os in
15835   freebsd2.*)
15836     shlibpath_overrides_runpath=yes
15837     ;;
15838   freebsd3.[01]* | freebsdelf3.[01]*)
15839     shlibpath_overrides_runpath=yes
15840     hardcode_into_libs=yes
15841     ;;
15842   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15843   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15844     shlibpath_overrides_runpath=no
15845     hardcode_into_libs=yes
15846     ;;
15847   *) # from 4.6 on, and DragonFly
15848     shlibpath_overrides_runpath=yes
15849     hardcode_into_libs=yes
15850     ;;
15851   esac
15852   ;;
15853
15854 haiku*)
15855   version_type=linux # correct to gnu/linux during the next big refactor
15856   need_lib_prefix=no
15857   need_version=no
15858   dynamic_linker="$host_os runtime_loader"
15859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15860   soname_spec='${libname}${release}${shared_ext}$major'
15861   shlibpath_var=LIBRARY_PATH
15862   shlibpath_overrides_runpath=yes
15863   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15864   hardcode_into_libs=yes
15865   ;;
15866
15867 hpux9* | hpux10* | hpux11*)
15868   # Give a soname corresponding to the major version so that dld.sl refuses to
15869   # link against other versions.
15870   version_type=sunos
15871   need_lib_prefix=no
15872   need_version=no
15873   case $host_cpu in
15874   ia64*)
15875     shrext_cmds='.so'
15876     hardcode_into_libs=yes
15877     dynamic_linker="$host_os dld.so"
15878     shlibpath_var=LD_LIBRARY_PATH
15879     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15880     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15881     soname_spec='${libname}${release}${shared_ext}$major'
15882     if test "X$HPUX_IA64_MODE" = X32; then
15883       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15884     else
15885       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15886     fi
15887     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15888     ;;
15889   hppa*64*)
15890     shrext_cmds='.sl'
15891     hardcode_into_libs=yes
15892     dynamic_linker="$host_os dld.sl"
15893     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15894     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15895     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15896     soname_spec='${libname}${release}${shared_ext}$major'
15897     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15898     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15899     ;;
15900   *)
15901     shrext_cmds='.sl'
15902     dynamic_linker="$host_os dld.sl"
15903     shlibpath_var=SHLIB_PATH
15904     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15905     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15906     soname_spec='${libname}${release}${shared_ext}$major'
15907     ;;
15908   esac
15909   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15910   postinstall_cmds='chmod 555 $lib'
15911   # or fails outright, so override atomically:
15912   install_override_mode=555
15913   ;;
15914
15915 interix[3-9]*)
15916   version_type=linux # correct to gnu/linux during the next big refactor
15917   need_lib_prefix=no
15918   need_version=no
15919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15920   soname_spec='${libname}${release}${shared_ext}$major'
15921   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15922   shlibpath_var=LD_LIBRARY_PATH
15923   shlibpath_overrides_runpath=no
15924   hardcode_into_libs=yes
15925   ;;
15926
15927 irix5* | irix6* | nonstopux*)
15928   case $host_os in
15929     nonstopux*) version_type=nonstopux ;;
15930     *)
15931         if test "$lt_cv_prog_gnu_ld" = yes; then
15932                 version_type=linux # correct to gnu/linux during the next big refactor
15933         else
15934                 version_type=irix
15935         fi ;;
15936   esac
15937   need_lib_prefix=no
15938   need_version=no
15939   soname_spec='${libname}${release}${shared_ext}$major'
15940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15941   case $host_os in
15942   irix5* | nonstopux*)
15943     libsuff= shlibsuff=
15944     ;;
15945   *)
15946     case $LD in # libtool.m4 will add one of these switches to LD
15947     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15948       libsuff= shlibsuff= libmagic=32-bit;;
15949     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15950       libsuff=32 shlibsuff=N32 libmagic=N32;;
15951     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15952       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15953     *) libsuff= shlibsuff= libmagic=never-match;;
15954     esac
15955     ;;
15956   esac
15957   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15958   shlibpath_overrides_runpath=no
15959   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15960   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15961   hardcode_into_libs=yes
15962   ;;
15963
15964 # No shared lib support for Linux oldld, aout, or coff.
15965 linux*oldld* | linux*aout* | linux*coff*)
15966   dynamic_linker=no
15967   ;;
15968
15969 # This must be glibc/ELF.
15970 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15971   version_type=linux # correct to gnu/linux during the next big refactor
15972   need_lib_prefix=no
15973   need_version=no
15974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15975   soname_spec='${libname}${release}${shared_ext}$major'
15976   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15977   shlibpath_var=LD_LIBRARY_PATH
15978   shlibpath_overrides_runpath=no
15979
15980   # Some binutils ld are patched to set DT_RUNPATH
15981   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15982   $as_echo_n "(cached) " >&6
15983 else
15984   lt_cv_shlibpath_overrides_runpath=no
15985     save_LDFLAGS=$LDFLAGS
15986     save_libdir=$libdir
15987     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15988          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15989     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15990 /* end confdefs.h.  */
15991
15992 int
15993 main ()
15994 {
15995
15996   ;
15997   return 0;
15998 }
15999 _ACEOF
16000 if ac_fn_cxx_try_link "$LINENO"; then :
16001   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16002   lt_cv_shlibpath_overrides_runpath=yes
16003 fi
16004 fi
16005 rm -f core conftest.err conftest.$ac_objext \
16006     conftest$ac_exeext conftest.$ac_ext
16007     LDFLAGS=$save_LDFLAGS
16008     libdir=$save_libdir
16009
16010 fi
16011
16012   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16013
16014   # This implies no fast_install, which is unacceptable.
16015   # Some rework will be needed to allow for fast_install
16016   # before this can be enabled.
16017   hardcode_into_libs=yes
16018
16019   # Append ld.so.conf contents to the search path
16020   if test -f /etc/ld.so.conf; then
16021     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' ' '`
16022     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16023   fi
16024
16025   # We used to test for /lib/ld.so.1 and disable shared libraries on
16026   # powerpc, because MkLinux only supported shared libraries with the
16027   # GNU dynamic linker.  Since this was broken with cross compilers,
16028   # most powerpc-linux boxes support dynamic linking these days and
16029   # people can always --disable-shared, the test was removed, and we
16030   # assume the GNU/Linux dynamic linker is in use.
16031   dynamic_linker='GNU/Linux ld.so'
16032   ;;
16033
16034 netbsdelf*-gnu)
16035   version_type=linux
16036   need_lib_prefix=no
16037   need_version=no
16038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16039   soname_spec='${libname}${release}${shared_ext}$major'
16040   shlibpath_var=LD_LIBRARY_PATH
16041   shlibpath_overrides_runpath=no
16042   hardcode_into_libs=yes
16043   dynamic_linker='NetBSD ld.elf_so'
16044   ;;
16045
16046 netbsd*)
16047   version_type=sunos
16048   need_lib_prefix=no
16049   need_version=no
16050   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16051     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16052     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16053     dynamic_linker='NetBSD (a.out) ld.so'
16054   else
16055     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16056     soname_spec='${libname}${release}${shared_ext}$major'
16057     dynamic_linker='NetBSD ld.elf_so'
16058   fi
16059   shlibpath_var=LD_LIBRARY_PATH
16060   shlibpath_overrides_runpath=yes
16061   hardcode_into_libs=yes
16062   ;;
16063
16064 newsos6)
16065   version_type=linux # correct to gnu/linux during the next big refactor
16066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16067   shlibpath_var=LD_LIBRARY_PATH
16068   shlibpath_overrides_runpath=yes
16069   ;;
16070
16071 *nto* | *qnx*)
16072   version_type=qnx
16073   need_lib_prefix=no
16074   need_version=no
16075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076   soname_spec='${libname}${release}${shared_ext}$major'
16077   shlibpath_var=LD_LIBRARY_PATH
16078   shlibpath_overrides_runpath=no
16079   hardcode_into_libs=yes
16080   dynamic_linker='ldqnx.so'
16081   ;;
16082
16083 openbsd*)
16084   version_type=sunos
16085   sys_lib_dlsearch_path_spec="/usr/lib"
16086   need_lib_prefix=no
16087   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16088   case $host_os in
16089     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16090     *)                          need_version=no  ;;
16091   esac
16092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16093   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16094   shlibpath_var=LD_LIBRARY_PATH
16095   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16096     case $host_os in
16097       openbsd2.[89] | openbsd2.[89].*)
16098         shlibpath_overrides_runpath=no
16099         ;;
16100       *)
16101         shlibpath_overrides_runpath=yes
16102         ;;
16103       esac
16104   else
16105     shlibpath_overrides_runpath=yes
16106   fi
16107   ;;
16108
16109 os2*)
16110   libname_spec='$name'
16111   shrext_cmds=".dll"
16112   need_lib_prefix=no
16113   library_names_spec='$libname${shared_ext} $libname.a'
16114   dynamic_linker='OS/2 ld.exe'
16115   shlibpath_var=LIBPATH
16116   ;;
16117
16118 osf3* | osf4* | osf5*)
16119   version_type=osf
16120   need_lib_prefix=no
16121   need_version=no
16122   soname_spec='${libname}${release}${shared_ext}$major'
16123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16124   shlibpath_var=LD_LIBRARY_PATH
16125   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16126   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16127   ;;
16128
16129 rdos*)
16130   dynamic_linker=no
16131   ;;
16132
16133 solaris*)
16134   version_type=linux # correct to gnu/linux during the next big refactor
16135   need_lib_prefix=no
16136   need_version=no
16137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16138   soname_spec='${libname}${release}${shared_ext}$major'
16139   shlibpath_var=LD_LIBRARY_PATH
16140   shlibpath_overrides_runpath=yes
16141   hardcode_into_libs=yes
16142   # ldd complains unless libraries are executable
16143   postinstall_cmds='chmod +x $lib'
16144   ;;
16145
16146 sunos4*)
16147   version_type=sunos
16148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16149   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16150   shlibpath_var=LD_LIBRARY_PATH
16151   shlibpath_overrides_runpath=yes
16152   if test "$with_gnu_ld" = yes; then
16153     need_lib_prefix=no
16154   fi
16155   need_version=yes
16156   ;;
16157
16158 sysv4 | sysv4.3*)
16159   version_type=linux # correct to gnu/linux during the next big refactor
16160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16161   soname_spec='${libname}${release}${shared_ext}$major'
16162   shlibpath_var=LD_LIBRARY_PATH
16163   case $host_vendor in
16164     sni)
16165       shlibpath_overrides_runpath=no
16166       need_lib_prefix=no
16167       runpath_var=LD_RUN_PATH
16168       ;;
16169     siemens)
16170       need_lib_prefix=no
16171       ;;
16172     motorola)
16173       need_lib_prefix=no
16174       need_version=no
16175       shlibpath_overrides_runpath=no
16176       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16177       ;;
16178   esac
16179   ;;
16180
16181 sysv4*MP*)
16182   if test -d /usr/nec ;then
16183     version_type=linux # correct to gnu/linux during the next big refactor
16184     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16185     soname_spec='$libname${shared_ext}.$major'
16186     shlibpath_var=LD_LIBRARY_PATH
16187   fi
16188   ;;
16189
16190 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16191   version_type=freebsd-elf
16192   need_lib_prefix=no
16193   need_version=no
16194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16195   soname_spec='${libname}${release}${shared_ext}$major'
16196   shlibpath_var=LD_LIBRARY_PATH
16197   shlibpath_overrides_runpath=yes
16198   hardcode_into_libs=yes
16199   if test "$with_gnu_ld" = yes; then
16200     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16201   else
16202     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16203     case $host_os in
16204       sco3.2v5*)
16205         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16206         ;;
16207     esac
16208   fi
16209   sys_lib_dlsearch_path_spec='/usr/lib'
16210   ;;
16211
16212 tpf*)
16213   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16214   version_type=linux # correct to gnu/linux during the next big refactor
16215   need_lib_prefix=no
16216   need_version=no
16217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16218   shlibpath_var=LD_LIBRARY_PATH
16219   shlibpath_overrides_runpath=no
16220   hardcode_into_libs=yes
16221   ;;
16222
16223 uts4*)
16224   version_type=linux # correct to gnu/linux during the next big refactor
16225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16226   soname_spec='${libname}${release}${shared_ext}$major'
16227   shlibpath_var=LD_LIBRARY_PATH
16228   ;;
16229
16230 *)
16231   dynamic_linker=no
16232   ;;
16233 esac
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16235 $as_echo "$dynamic_linker" >&6; }
16236 test "$dynamic_linker" = no && can_build_shared=no
16237
16238 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16239 if test "$GCC" = yes; then
16240   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16241 fi
16242
16243 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16244   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16245 fi
16246 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16247   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16248 fi
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16288 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16289 hardcode_action_CXX=
16290 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16291    test -n "$runpath_var_CXX" ||
16292    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16293
16294   # We can hardcode non-existent directories.
16295   if test "$hardcode_direct_CXX" != no &&
16296      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16297      # have to relink, otherwise we might link with an installed library
16298      # when we should be linking with a yet-to-be-installed one
16299      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16300      test "$hardcode_minus_L_CXX" != no; then
16301     # Linking always hardcodes the temporary library directory.
16302     hardcode_action_CXX=relink
16303   else
16304     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16305     hardcode_action_CXX=immediate
16306   fi
16307 else
16308   # We cannot hardcode anything, or else we can only hardcode existing
16309   # directories.
16310   hardcode_action_CXX=unsupported
16311 fi
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16313 $as_echo "$hardcode_action_CXX" >&6; }
16314
16315 if test "$hardcode_action_CXX" = relink ||
16316    test "$inherit_rpath_CXX" = yes; then
16317   # Fast installation is not supported
16318   enable_fast_install=no
16319 elif test "$shlibpath_overrides_runpath" = yes ||
16320      test "$enable_shared" = no; then
16321   # Fast installation is not necessary
16322   enable_fast_install=needless
16323 fi
16324
16325
16326
16327
16328
16329
16330
16331   fi # test -n "$compiler"
16332
16333   CC=$lt_save_CC
16334   CFLAGS=$lt_save_CFLAGS
16335   LDCXX=$LD
16336   LD=$lt_save_LD
16337   GCC=$lt_save_GCC
16338   with_gnu_ld=$lt_save_with_gnu_ld
16339   lt_cv_path_LDCXX=$lt_cv_path_LD
16340   lt_cv_path_LD=$lt_save_path_LD
16341   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16342   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16343 fi # test "$_lt_caught_CXX_error" != yes
16344
16345 ac_ext=c
16346 ac_cpp='$CPP $CPPFLAGS'
16347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365         ac_config_commands="$ac_config_commands libtool"
16366
16367
16368
16369
16370 # Only expand once:
16371
16372
16373
16374 LT_DLLOADERS=
16375
16376
16377 ac_ext=c
16378 ac_cpp='$CPP $CPPFLAGS'
16379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16382
16383
16384 LIBADD_DLOPEN=
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16386 $as_echo_n "checking for library containing dlopen... " >&6; }
16387 if ${ac_cv_search_dlopen+:} false; then :
16388   $as_echo_n "(cached) " >&6
16389 else
16390   ac_func_search_save_LIBS=$LIBS
16391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h.  */
16393
16394 /* Override any GCC internal prototype to avoid an error.
16395    Use char because int might match the return type of a GCC
16396    builtin and then its argument prototype would still apply.  */
16397 #ifdef __cplusplus
16398 extern "C"
16399 #endif
16400 char dlopen ();
16401 int
16402 main ()
16403 {
16404 return dlopen ();
16405   ;
16406   return 0;
16407 }
16408 _ACEOF
16409 for ac_lib in '' dl; do
16410   if test -z "$ac_lib"; then
16411     ac_res="none required"
16412   else
16413     ac_res=-l$ac_lib
16414     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16415   fi
16416   if ac_fn_c_try_link "$LINENO"; then :
16417   ac_cv_search_dlopen=$ac_res
16418 fi
16419 rm -f core conftest.err conftest.$ac_objext \
16420     conftest$ac_exeext
16421   if ${ac_cv_search_dlopen+:} false; then :
16422   break
16423 fi
16424 done
16425 if ${ac_cv_search_dlopen+:} false; then :
16426
16427 else
16428   ac_cv_search_dlopen=no
16429 fi
16430 rm conftest.$ac_ext
16431 LIBS=$ac_func_search_save_LIBS
16432 fi
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16434 $as_echo "$ac_cv_search_dlopen" >&6; }
16435 ac_res=$ac_cv_search_dlopen
16436 if test "$ac_res" != no; then :
16437   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16438
16439 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16440
16441         if test "$ac_cv_search_dlopen" != "none required" ; then
16442           LIBADD_DLOPEN="-ldl"
16443         fi
16444         libltdl_cv_lib_dl_dlopen="yes"
16445         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16446 else
16447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16448 /* end confdefs.h.  */
16449 #if HAVE_DLFCN_H
16450 #  include <dlfcn.h>
16451 #endif
16452
16453 int
16454 main ()
16455 {
16456 dlopen(0, 0);
16457   ;
16458   return 0;
16459 }
16460 _ACEOF
16461 if ac_fn_c_try_link "$LINENO"; then :
16462
16463 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16464
16465             libltdl_cv_func_dlopen="yes"
16466             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16467 else
16468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16469 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16470 if ${ac_cv_lib_svld_dlopen+:} false; then :
16471   $as_echo_n "(cached) " >&6
16472 else
16473   ac_check_lib_save_LIBS=$LIBS
16474 LIBS="-lsvld  $LIBS"
16475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h.  */
16477
16478 /* Override any GCC internal prototype to avoid an error.
16479    Use char because int might match the return type of a GCC
16480    builtin and then its argument prototype would still apply.  */
16481 #ifdef __cplusplus
16482 extern "C"
16483 #endif
16484 char dlopen ();
16485 int
16486 main ()
16487 {
16488 return dlopen ();
16489   ;
16490   return 0;
16491 }
16492 _ACEOF
16493 if ac_fn_c_try_link "$LINENO"; then :
16494   ac_cv_lib_svld_dlopen=yes
16495 else
16496   ac_cv_lib_svld_dlopen=no
16497 fi
16498 rm -f core conftest.err conftest.$ac_objext \
16499     conftest$ac_exeext conftest.$ac_ext
16500 LIBS=$ac_check_lib_save_LIBS
16501 fi
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16503 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16504 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16505
16506 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16507
16508                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16509                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16510 fi
16511
16512 fi
16513 rm -f core conftest.err conftest.$ac_objext \
16514     conftest$ac_exeext conftest.$ac_ext
16515 fi
16516
16517 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16518 then
16519   lt_save_LIBS="$LIBS"
16520   LIBS="$LIBS $LIBADD_DLOPEN"
16521   for ac_func in dlerror
16522 do :
16523   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16524 if test "x$ac_cv_func_dlerror" = xyes; then :
16525   cat >>confdefs.h <<_ACEOF
16526 #define HAVE_DLERROR 1
16527 _ACEOF
16528
16529 fi
16530 done
16531
16532   LIBS="$lt_save_LIBS"
16533 fi
16534
16535
16536 LIBADD_SHL_LOAD=
16537 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16538 if test "x$ac_cv_func_shl_load" = xyes; then :
16539
16540 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16541
16542         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16543 else
16544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16545 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16546 if ${ac_cv_lib_dld_shl_load+:} false; then :
16547   $as_echo_n "(cached) " >&6
16548 else
16549   ac_check_lib_save_LIBS=$LIBS
16550 LIBS="-ldld  $LIBS"
16551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16552 /* end confdefs.h.  */
16553
16554 /* Override any GCC internal prototype to avoid an error.
16555    Use char because int might match the return type of a GCC
16556    builtin and then its argument prototype would still apply.  */
16557 #ifdef __cplusplus
16558 extern "C"
16559 #endif
16560 char shl_load ();
16561 int
16562 main ()
16563 {
16564 return shl_load ();
16565   ;
16566   return 0;
16567 }
16568 _ACEOF
16569 if ac_fn_c_try_link "$LINENO"; then :
16570   ac_cv_lib_dld_shl_load=yes
16571 else
16572   ac_cv_lib_dld_shl_load=no
16573 fi
16574 rm -f core conftest.err conftest.$ac_objext \
16575     conftest$ac_exeext conftest.$ac_ext
16576 LIBS=$ac_check_lib_save_LIBS
16577 fi
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16579 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16580 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16581
16582 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16583
16584             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16585             LIBADD_SHL_LOAD="-ldld"
16586 fi
16587
16588 fi
16589
16590
16591
16592 case $host_os in
16593 darwin[1567].*)
16594 # We only want this for pre-Mac OS X 10.4.
16595   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16596 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16597
16598 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16599
16600         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16601 fi
16602
16603   ;;
16604 beos*)
16605   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16606   ;;
16607 cygwin* | mingw* | os2* | pw32*)
16608   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16609 "
16610 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16611   ac_have_decl=1
16612 else
16613   ac_have_decl=0
16614 fi
16615
16616 cat >>confdefs.h <<_ACEOF
16617 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16618 _ACEOF
16619
16620   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16621   ;;
16622 esac
16623
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16625 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16626 if ${ac_cv_lib_dld_dld_link+:} false; then :
16627   $as_echo_n "(cached) " >&6
16628 else
16629   ac_check_lib_save_LIBS=$LIBS
16630 LIBS="-ldld  $LIBS"
16631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16632 /* end confdefs.h.  */
16633
16634 /* Override any GCC internal prototype to avoid an error.
16635    Use char because int might match the return type of a GCC
16636    builtin and then its argument prototype would still apply.  */
16637 #ifdef __cplusplus
16638 extern "C"
16639 #endif
16640 char dld_link ();
16641 int
16642 main ()
16643 {
16644 return dld_link ();
16645   ;
16646   return 0;
16647 }
16648 _ACEOF
16649 if ac_fn_c_try_link "$LINENO"; then :
16650   ac_cv_lib_dld_dld_link=yes
16651 else
16652   ac_cv_lib_dld_dld_link=no
16653 fi
16654 rm -f core conftest.err conftest.$ac_objext \
16655     conftest$ac_exeext conftest.$ac_ext
16656 LIBS=$ac_check_lib_save_LIBS
16657 fi
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16659 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16660 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16661
16662 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16663
16664                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16665 fi
16666
16667
16668
16669
16670 LT_DLPREOPEN=
16671 if test -n "$LT_DLLOADERS"
16672 then
16673   for lt_loader in $LT_DLLOADERS; do
16674     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16675   done
16676
16677 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16678
16679 fi
16680
16681
16682 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16683
16684
16685 ac_ext=c
16686 ac_cpp='$CPP $CPPFLAGS'
16687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16690
16691
16692
16693
16694 if test x$use_libtool != xno; then
16695    DEFAULT_OBJECT_TYPE=".lo"
16696    DEFAULT_ARCHIVE_TYPE=".la"
16697    DEFAULT_SHARED_OBJECT_TYPE=".la"
16698    LIBTOOL="\$(LIBTOOL)"
16699    LIBTOOL_INSTALL_TARGET="libtool-install"
16700    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16701    LIBTOOL_CLEAN_TARGET="libtool-clean"
16702    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16703    FD_PLUGIN_DIR="src/plugins/fd"
16704    have_plugins=yes
16705 else
16706    DEFAULT_OBJECT_TYPE=".o"
16707    DEFAULT_ARCHIVE_TYPE=".a"
16708    DEFAULT_SHARED_OBJECT_TYPE=".so"
16709    LIBTOOL="# \$(LIBTOOL)"
16710    LIBTOOL_INSTALL_TARGET=""
16711    LIBTOOL_UNINSTALL_TARGET=""
16712    LIBTOOL_CLEAN_TARGET=""
16713    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16714    FD_PLUGIN_DIR=""
16715    have_plugins=no
16716 fi
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728 # Check whether --enable-includes was given.
16729 if test "${enable_includes+set}" = set; then :
16730   enableval=$enable_includes;
16731        if test x$enableval = xyes; then
16732           install_includes=yes
16733        fi
16734
16735
16736 fi
16737
16738
16739
16740 if test x$use_libtool != xno -a x$install_includes = xyes; then
16741    INCLUDE_INSTALL_TARGET="install-includes"
16742    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16743 else
16744    INCLUDE_INSTALL_TARGET=""
16745    INCLUDE_UNINSTALL_TARGET=""
16746 fi
16747
16748
16749
16750
16751
16752 case $host_os in
16753   *cygwin* ) CYGWIN=yes;;
16754          * ) CYGWIN=no;;
16755 esac
16756
16757 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16758 then
16759
16760
16761 if $TRUEPRG; then
16762   HAVE_SUN_OS_TRUE=
16763   HAVE_SUN_OS_FALSE='#'
16764 else
16765   HAVE_SUN_OS_TRUE='#'
16766   HAVE_SUN_OS_FALSE=
16767 fi
16768         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16769
16770 else
16771
16772
16773 if $FALSEPRG; then
16774   HAVE_SUN_OS_TRUE=
16775   HAVE_SUN_OS_FALSE='#'
16776 else
16777   HAVE_SUN_OS_TRUE='#'
16778   HAVE_SUN_OS_FALSE=
16779 fi
16780 fi
16781
16782 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16783 then
16784
16785
16786 if $TRUEPRG; then
16787   HAVE_HURD_OS_TRUE=
16788   HAVE_HURD_OS_FALSE='#'
16789 else
16790   HAVE_HURD_OS_TRUE='#'
16791   HAVE_HURD_OS_FALSE=
16792 fi
16793         $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16794
16795 else
16796
16797
16798 if $FALSEPRG; then
16799   HAVE_HURD_OS_TRUE=
16800   HAVE_HURD_OS_FALSE='#'
16801 else
16802   HAVE_HURD_OS_TRUE='#'
16803   HAVE_HURD_OS_FALSE=
16804 fi
16805 fi
16806
16807 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16808 then
16809
16810
16811 if $TRUEPRG; then
16812   HAVE_OSF1_OS_TRUE=
16813   HAVE_OSF1_OS_FALSE='#'
16814 else
16815   HAVE_OSF1_OS_TRUE='#'
16816   HAVE_OSF1_OS_FALSE=
16817 fi
16818         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16819
16820 else
16821
16822
16823 if $FALSEPRG; then
16824   HAVE_OSF1_OS_TRUE=
16825   HAVE_OSF1_OS_FALSE='#'
16826 else
16827   HAVE_OSF1_OS_TRUE='#'
16828   HAVE_OSF1_OS_FALSE=
16829 fi
16830 fi
16831
16832 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16833 then
16834
16835
16836 if $TRUEPRG; then
16837   HAVE_AIX_OS_TRUE=
16838   HAVE_AIX_OS_FALSE='#'
16839 else
16840   HAVE_AIX_OS_TRUE='#'
16841   HAVE_AIX_OS_FALSE=
16842 fi
16843         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16844
16845 else
16846
16847
16848 if $FALSEPRG; then
16849   HAVE_AIX_OS_TRUE=
16850   HAVE_AIX_OS_FALSE='#'
16851 else
16852   HAVE_AIX_OS_TRUE='#'
16853   HAVE_AIX_OS_FALSE=
16854 fi
16855 fi
16856
16857 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16858 then
16859
16860
16861 if $TRUEPRG; then
16862   HAVE_HPUX_OS_TRUE=
16863   HAVE_HPUX_OS_FALSE='#'
16864 else
16865   HAVE_HPUX_OS_TRUE='#'
16866   HAVE_HPUX_OS_FALSE=
16867 fi
16868         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16869
16870 else
16871
16872
16873 if $FALSEPRG; then
16874   HAVE_HPUX_OS_TRUE=
16875   HAVE_HPUX_OS_FALSE='#'
16876 else
16877   HAVE_HPUX_OS_TRUE='#'
16878   HAVE_HPUX_OS_FALSE=
16879 fi
16880 fi
16881
16882 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16883 then
16884
16885
16886 if $TRUEPRG; then
16887   HAVE_LINUX_OS_TRUE=
16888   HAVE_LINUX_OS_FALSE='#'
16889 else
16890   HAVE_LINUX_OS_TRUE='#'
16891   HAVE_LINUX_OS_FALSE=
16892 fi
16893         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16894
16895 else
16896
16897
16898 if $FALSEPRG; then
16899   HAVE_LINUX_OS_TRUE=
16900   HAVE_LINUX_OS_FALSE='#'
16901 else
16902   HAVE_LINUX_OS_TRUE='#'
16903   HAVE_LINUX_OS_FALSE=
16904 fi
16905 fi
16906
16907 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16908 then
16909
16910
16911 if $TRUEPRG; then
16912   HAVE_FREEBSD_OS_TRUE=
16913   HAVE_FREEBSD_OS_FALSE='#'
16914 else
16915   HAVE_FREEBSD_OS_TRUE='#'
16916   HAVE_FREEBSD_OS_FALSE=
16917 fi
16918         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16919
16920 else
16921
16922
16923 if $FALSEPRG; then
16924   HAVE_FREEBSD_OS_TRUE=
16925   HAVE_FREEBSD_OS_FALSE='#'
16926 else
16927   HAVE_FREEBSD_OS_TRUE='#'
16928   HAVE_FREEBSD_OS_FALSE=
16929 fi
16930 fi
16931
16932 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16933 then
16934
16935
16936 if $TRUEPRG; then
16937   HAVE_NETBSD_OS_TRUE=
16938   HAVE_NETBSD_OS_FALSE='#'
16939 else
16940   HAVE_NETBSD_OS_TRUE='#'
16941   HAVE_NETBSD_OS_FALSE=
16942 fi
16943         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16944
16945 else
16946
16947
16948 if $FALSEPRG; then
16949   HAVE_NETBSD_OS_TRUE=
16950   HAVE_NETBSD_OS_FALSE='#'
16951 else
16952   HAVE_NETBSD_OS_TRUE='#'
16953   HAVE_NETBSD_OS_FALSE=
16954 fi
16955 fi
16956
16957 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16958 then
16959
16960
16961 if $TRUEPRG; then
16962   HAVE_OPENBSD_OS_TRUE=
16963   HAVE_OPENBSD_OS_FALSE='#'
16964 else
16965   HAVE_OPENBSD_OS_TRUE='#'
16966   HAVE_OPENBSD_OS_FALSE=
16967 fi
16968         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16969
16970 else
16971
16972
16973 if $FALSEPRG; then
16974   HAVE_OPENBSD_OS_TRUE=
16975   HAVE_OPENBSD_OS_FALSE='#'
16976 else
16977   HAVE_OPENBSD_OS_TRUE='#'
16978   HAVE_OPENBSD_OS_FALSE=
16979 fi
16980 fi
16981
16982 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16983 then
16984
16985
16986 if $TRUEPRG; then
16987   HAVE_BSDI_OS_TRUE=
16988   HAVE_BSDI_OS_FALSE='#'
16989 else
16990   HAVE_BSDI_OS_TRUE='#'
16991   HAVE_BSDI_OS_FALSE=
16992 fi
16993         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16994
16995 else
16996
16997
16998 if $FALSEPRG; then
16999   HAVE_BSDI_OS_TRUE=
17000   HAVE_BSDI_OS_FALSE='#'
17001 else
17002   HAVE_BSDI_OS_TRUE='#'
17003   HAVE_BSDI_OS_FALSE=
17004 fi
17005 fi
17006
17007 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17008 then
17009
17010
17011 if $TRUEPRG; then
17012   HAVE_SGI_OS_TRUE=
17013   HAVE_SGI_OS_FALSE='#'
17014 else
17015   HAVE_SGI_OS_TRUE='#'
17016   HAVE_SGI_OS_FALSE=
17017 fi
17018         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17019
17020 else
17021
17022
17023 if $FALSEPRG; then
17024   HAVE_SGI_OS_TRUE=
17025   HAVE_SGI_OS_FALSE='#'
17026 else
17027   HAVE_SGI_OS_TRUE='#'
17028   HAVE_SGI_OS_FALSE=
17029 fi
17030 fi
17031
17032 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17033 then
17034
17035
17036 if $TRUEPRG; then
17037   HAVE_IRIX_OS_TRUE=
17038   HAVE_IRIX_OS_FALSE='#'
17039 else
17040   HAVE_IRIX_OS_TRUE='#'
17041   HAVE_IRIX_OS_FALSE=
17042 fi
17043         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17044
17045 else
17046
17047
17048 if $FALSEPRG; then
17049   HAVE_IRIX_OS_TRUE=
17050   HAVE_IRIX_OS_FALSE='#'
17051 else
17052   HAVE_IRIX_OS_TRUE='#'
17053   HAVE_IRIX_OS_FALSE=
17054 fi
17055 fi
17056
17057 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17058 then
17059
17060
17061 if $TRUEPRG; then
17062   HAVE_DARWIN_OS_TRUE=
17063   HAVE_DARWIN_OS_FALSE='#'
17064 else
17065   HAVE_DARWIN_OS_TRUE='#'
17066   HAVE_DARWIN_OS_FALSE=
17067 fi
17068     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17069
17070 else
17071
17072
17073 if $FALSEPRG; then
17074   HAVE_DARWIN_OS_TRUE=
17075   HAVE_DARWIN_OS_FALSE='#'
17076 else
17077   HAVE_DARWIN_OS_TRUE='#'
17078   HAVE_DARWIN_OS_FALSE=
17079 fi
17080 fi
17081
17082 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU/kFreeBSD
17083 then
17084
17085
17086 if $TRUEPRG; then
17087   HAVE_KFREEBSD_OS_TRUE=
17088   HAVE_KFREEBSD_OS_FALSE='#'
17089 else
17090   HAVE_KFREEBSD_OS_TRUE='#'
17091   HAVE_KFREEBSD_OS_FALSE=
17092 fi
17093     $as_echo "#define HAVE_KFREEBSD_OS 1" >>confdefs.h
17094
17095 else
17096
17097
17098 if $FALSEPRG; then
17099   HAVE_KFREEBSD_OS_TRUE=
17100   HAVE_KFREEBSD_OS_FALSE='#'
17101 else
17102   HAVE_KFREEBSD_OS_TRUE='#'
17103   HAVE_KFREEBSD_OS_FALSE=
17104 fi
17105 fi
17106
17107
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17109 $as_echo_n "checking for Operating System Distribution... " >&6; }
17110 if test "x$DISTNAME" != "x"
17111 then
17112         echo "distname set to $DISTNAME"
17113 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17114 then
17115         DISTNAME=alpha
17116 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17117 then
17118         DISTNAME=aix
17119 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17120 then
17121         DISTNAME=hpux
17122 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17123 then
17124         DISTNAME=solaris
17125 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17126 then
17127         DISTNAME=hurd
17128 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17129 then
17130         DISTNAME=freebsd
17131 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17132 then
17133         DISTNAME=netbsd
17134 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17135 then
17136         DISTNAME=openbsd
17137 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17138 then
17139         DISTNAME=irix
17140 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17141 then
17142         DISTNAME=bsdi
17143 elif test -f /etc/SuSE-release
17144 then
17145         DISTNAME=suse
17146 elif test -d /etc/SuSEconfig
17147 then
17148         DISTNAME=suse5
17149 elif test -f /etc/mandrake-release
17150 then
17151         DISTNAME=mandrake
17152 elif test -f /etc/whitebox-release
17153 then
17154        DISTNAME=redhat
17155 elif test -f /etc/redhat-release
17156 then
17157         DISTNAME=redhat
17158 elif test -f /etc/gentoo-release
17159 then
17160         DISTNAME=gentoo
17161 elif test -f /etc/debian_version
17162 then
17163         DISTNAME=debian
17164 elif test -f /etc/slackware-version
17165 then
17166         DISTNAME=slackware
17167 elif test x$host_vendor = xapple
17168 then
17169     DISTNAME=osx
17170 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17171 then
17172     DISTNAME=darwin
17173 elif test -f /etc/engarde-version
17174 then
17175         DISTNAME=engarde
17176 elif test -f /etc/arch-release
17177 then
17178         DISTNAME=archlinux
17179 elif test "$CYGWIN" = yes
17180 then
17181         DISTNAME=cygwin
17182         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17183
17184 else
17185         DISTNAME=unknown
17186 fi
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17188 $as_echo "done" >&6; }
17189
17190
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17192 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17193 set x ${MAKE-make}
17194 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17195 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17196   $as_echo_n "(cached) " >&6
17197 else
17198   cat >conftest.make <<\_ACEOF
17199 SHELL = /bin/sh
17200 all:
17201         @echo '@@@%%%=$(MAKE)=@@@%%%'
17202 _ACEOF
17203 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17204 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17205   *@@@%%%=?*=@@@%%%*)
17206     eval ac_cv_prog_make_${ac_make}_set=yes;;
17207   *)
17208     eval ac_cv_prog_make_${ac_make}_set=no;;
17209 esac
17210 rm -f conftest.make
17211 fi
17212 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17214 $as_echo "yes" >&6; }
17215   SET_MAKE=
17216 else
17217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17218 $as_echo "no" >&6; }
17219   SET_MAKE="MAKE=${MAKE-make}"
17220 fi
17221
17222
17223
17224         MKINSTALLDIRS=
17225   if test -n "$ac_aux_dir"; then
17226     case "$ac_aux_dir" in
17227       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17228       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17229     esac
17230   fi
17231   if test -z "$MKINSTALLDIRS"; then
17232     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17233   fi
17234
17235
17236
17237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17238 $as_echo_n "checking whether NLS is requested... " >&6; }
17239     # Check whether --enable-nls was given.
17240 if test "${enable_nls+set}" = set; then :
17241   enableval=$enable_nls; USE_NLS=$enableval
17242 else
17243   USE_NLS=yes
17244 fi
17245
17246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17247 $as_echo "$USE_NLS" >&6; }
17248
17249
17250
17251
17252
17253
17254 # Prepare PATH_SEPARATOR.
17255 # The user is always right.
17256 if test "${PATH_SEPARATOR+set}" != set; then
17257   echo "#! /bin/sh" >conf$$.sh
17258   echo  "exit 0"   >>conf$$.sh
17259   chmod +x conf$$.sh
17260   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17261     PATH_SEPARATOR=';'
17262   else
17263     PATH_SEPARATOR=:
17264   fi
17265   rm -f conf$$.sh
17266 fi
17267
17268 # Find out how to test for executable files. Don't use a zero-byte file,
17269 # as systems may use methods other than mode bits to determine executability.
17270 cat >conf$$.file <<_ASEOF
17271 #! /bin/sh
17272 exit 0
17273 _ASEOF
17274 chmod +x conf$$.file
17275 if test -x conf$$.file >/dev/null 2>&1; then
17276   ac_executable_p="test -x"
17277 else
17278   ac_executable_p="test -f"
17279 fi
17280 rm -f conf$$.file
17281
17282 # Extract the first word of "msgfmt", so it can be a program name with args.
17283 set dummy msgfmt; ac_word=$2
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17285 $as_echo_n "checking for $ac_word... " >&6; }
17286 if ${ac_cv_path_MSGFMT+:} false; then :
17287   $as_echo_n "(cached) " >&6
17288 else
17289   case "$MSGFMT" in
17290   [\\/]* | ?:[\\/]*)
17291     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17292     ;;
17293   *)
17294     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17295     for ac_dir in $PATH; do
17296       IFS="$ac_save_IFS"
17297       test -z "$ac_dir" && ac_dir=.
17298       for ac_exec_ext in '' $ac_executable_extensions; do
17299         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17300           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17301           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17302      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17303             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17304             break 2
17305           fi
17306         fi
17307       done
17308     done
17309     IFS="$ac_save_IFS"
17310   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17311     ;;
17312 esac
17313 fi
17314 MSGFMT="$ac_cv_path_MSGFMT"
17315 if test "$MSGFMT" != ":"; then
17316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17317 $as_echo "$MSGFMT" >&6; }
17318 else
17319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17320 $as_echo "no" >&6; }
17321 fi
17322
17323   # Extract the first word of "gmsgfmt", so it can be a program name with args.
17324 set dummy gmsgfmt; ac_word=$2
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17326 $as_echo_n "checking for $ac_word... " >&6; }
17327 if ${ac_cv_path_GMSGFMT+:} false; then :
17328   $as_echo_n "(cached) " >&6
17329 else
17330   case $GMSGFMT in
17331   [\\/]* | ?:[\\/]*)
17332   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17333   ;;
17334   *)
17335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17336 for as_dir in $PATH
17337 do
17338   IFS=$as_save_IFS
17339   test -z "$as_dir" && as_dir=.
17340     for ac_exec_ext in '' $ac_executable_extensions; do
17341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17342     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17344     break 2
17345   fi
17346 done
17347   done
17348 IFS=$as_save_IFS
17349
17350   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17351   ;;
17352 esac
17353 fi
17354 GMSGFMT=$ac_cv_path_GMSGFMT
17355 if test -n "$GMSGFMT"; then
17356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17357 $as_echo "$GMSGFMT" >&6; }
17358 else
17359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17360 $as_echo "no" >&6; }
17361 fi
17362
17363
17364
17365
17366 # Prepare PATH_SEPARATOR.
17367 # The user is always right.
17368 if test "${PATH_SEPARATOR+set}" != set; then
17369   echo "#! /bin/sh" >conf$$.sh
17370   echo  "exit 0"   >>conf$$.sh
17371   chmod +x conf$$.sh
17372   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17373     PATH_SEPARATOR=';'
17374   else
17375     PATH_SEPARATOR=:
17376   fi
17377   rm -f conf$$.sh
17378 fi
17379
17380 # Find out how to test for executable files. Don't use a zero-byte file,
17381 # as systems may use methods other than mode bits to determine executability.
17382 cat >conf$$.file <<_ASEOF
17383 #! /bin/sh
17384 exit 0
17385 _ASEOF
17386 chmod +x conf$$.file
17387 if test -x conf$$.file >/dev/null 2>&1; then
17388   ac_executable_p="test -x"
17389 else
17390   ac_executable_p="test -f"
17391 fi
17392 rm -f conf$$.file
17393
17394 # Extract the first word of "xgettext", so it can be a program name with args.
17395 set dummy xgettext; ac_word=$2
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17397 $as_echo_n "checking for $ac_word... " >&6; }
17398 if ${ac_cv_path_XGETTEXT+:} false; then :
17399   $as_echo_n "(cached) " >&6
17400 else
17401   case "$XGETTEXT" in
17402   [\\/]* | ?:[\\/]*)
17403     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17404     ;;
17405   *)
17406     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17407     for ac_dir in $PATH; do
17408       IFS="$ac_save_IFS"
17409       test -z "$ac_dir" && ac_dir=.
17410       for ac_exec_ext in '' $ac_executable_extensions; do
17411         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17412           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17413           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17414      (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
17415             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17416             break 2
17417           fi
17418         fi
17419       done
17420     done
17421     IFS="$ac_save_IFS"
17422   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17423     ;;
17424 esac
17425 fi
17426 XGETTEXT="$ac_cv_path_XGETTEXT"
17427 if test "$XGETTEXT" != ":"; then
17428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17429 $as_echo "$XGETTEXT" >&6; }
17430 else
17431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17432 $as_echo "no" >&6; }
17433 fi
17434
17435     rm -f messages.po
17436
17437
17438 # Prepare PATH_SEPARATOR.
17439 # The user is always right.
17440 if test "${PATH_SEPARATOR+set}" != set; then
17441   echo "#! /bin/sh" >conf$$.sh
17442   echo  "exit 0"   >>conf$$.sh
17443   chmod +x conf$$.sh
17444   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17445     PATH_SEPARATOR=';'
17446   else
17447     PATH_SEPARATOR=:
17448   fi
17449   rm -f conf$$.sh
17450 fi
17451
17452 # Find out how to test for executable files. Don't use a zero-byte file,
17453 # as systems may use methods other than mode bits to determine executability.
17454 cat >conf$$.file <<_ASEOF
17455 #! /bin/sh
17456 exit 0
17457 _ASEOF
17458 chmod +x conf$$.file
17459 if test -x conf$$.file >/dev/null 2>&1; then
17460   ac_executable_p="test -x"
17461 else
17462   ac_executable_p="test -f"
17463 fi
17464 rm -f conf$$.file
17465
17466 # Extract the first word of "msgmerge", so it can be a program name with args.
17467 set dummy msgmerge; ac_word=$2
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17469 $as_echo_n "checking for $ac_word... " >&6; }
17470 if ${ac_cv_path_MSGMERGE+:} false; then :
17471   $as_echo_n "(cached) " >&6
17472 else
17473   case "$MSGMERGE" in
17474   [\\/]* | ?:[\\/]*)
17475     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17476     ;;
17477   *)
17478     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17479     for ac_dir in $PATH; do
17480       IFS="$ac_save_IFS"
17481       test -z "$ac_dir" && ac_dir=.
17482       for ac_exec_ext in '' $ac_executable_extensions; do
17483         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17484           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17485           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17486             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17487             break 2
17488           fi
17489         fi
17490       done
17491     done
17492     IFS="$ac_save_IFS"
17493   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17494     ;;
17495 esac
17496 fi
17497 MSGMERGE="$ac_cv_path_MSGMERGE"
17498 if test "$MSGMERGE" != ":"; then
17499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17500 $as_echo "$MSGMERGE" >&6; }
17501 else
17502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17503 $as_echo "no" >&6; }
17504 fi
17505
17506
17507       if test "$GMSGFMT" != ":"; then
17508             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17509        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17510       : ;
17511     else
17512       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17513       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17514 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17515       GMSGFMT=":"
17516     fi
17517   fi
17518
17519       if test "$XGETTEXT" != ":"; then
17520             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17521        (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
17522       : ;
17523     else
17524       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17525 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17526       XGETTEXT=":"
17527     fi
17528         rm -f messages.po
17529   fi
17530
17531   ac_config_commands="$ac_config_commands default-1"
17532
17533
17534
17535       if test "X$prefix" = "XNONE"; then
17536     acl_final_prefix="$ac_default_prefix"
17537   else
17538     acl_final_prefix="$prefix"
17539   fi
17540   if test "X$exec_prefix" = "XNONE"; then
17541     acl_final_exec_prefix='${prefix}'
17542   else
17543     acl_final_exec_prefix="$exec_prefix"
17544   fi
17545   acl_save_prefix="$prefix"
17546   prefix="$acl_final_prefix"
17547   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17548   prefix="$acl_save_prefix"
17549
17550
17551 # Check whether --with-gnu-ld was given.
17552 if test "${with_gnu_ld+set}" = set; then :
17553   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17554 else
17555   with_gnu_ld=no
17556 fi
17557
17558 # Prepare PATH_SEPARATOR.
17559 # The user is always right.
17560 if test "${PATH_SEPARATOR+set}" != set; then
17561   echo "#! /bin/sh" >conf$$.sh
17562   echo  "exit 0"   >>conf$$.sh
17563   chmod +x conf$$.sh
17564   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17565     PATH_SEPARATOR=';'
17566   else
17567     PATH_SEPARATOR=:
17568   fi
17569   rm -f conf$$.sh
17570 fi
17571 ac_prog=ld
17572 if test "$GCC" = yes; then
17573   # Check if gcc -print-prog-name=ld gives a path.
17574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17575 $as_echo_n "checking for ld used by GCC... " >&6; }
17576   case $host in
17577   *-*-mingw*)
17578     # gcc leaves a trailing carriage return which upsets mingw
17579     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17580   *)
17581     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17582   esac
17583   case $ac_prog in
17584     # Accept absolute paths.
17585     [\\/]* | [A-Za-z]:[\\/]*)
17586       re_direlt='/[^/][^/]*/\.\./'
17587       # Canonicalize the path of ld
17588       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17589       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17590         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17591       done
17592       test -z "$LD" && LD="$ac_prog"
17593       ;;
17594   "")
17595     # If it fails, then pretend we aren't using GCC.
17596     ac_prog=ld
17597     ;;
17598   *)
17599     # If it is relative, then search for the first ld in PATH.
17600     with_gnu_ld=unknown
17601     ;;
17602   esac
17603 elif test "$with_gnu_ld" = yes; then
17604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17605 $as_echo_n "checking for GNU ld... " >&6; }
17606 else
17607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17608 $as_echo_n "checking for non-GNU ld... " >&6; }
17609 fi
17610 if ${acl_cv_path_LD+:} false; then :
17611   $as_echo_n "(cached) " >&6
17612 else
17613   if test -z "$LD"; then
17614   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17615   for ac_dir in $PATH; do
17616     test -z "$ac_dir" && ac_dir=.
17617     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17618       acl_cv_path_LD="$ac_dir/$ac_prog"
17619       # Check to see if the program is GNU ld.  I'd rather use --version,
17620       # but apparently some GNU ld's only accept -v.
17621       # Break only if it was the GNU/non-GNU ld that we prefer.
17622       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17623       *GNU* | *'with BFD'*)
17624         test "$with_gnu_ld" != no && break ;;
17625       *)
17626         test "$with_gnu_ld" != yes && break ;;
17627       esac
17628     fi
17629   done
17630   IFS="$ac_save_ifs"
17631 else
17632   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17633 fi
17634 fi
17635
17636 LD="$acl_cv_path_LD"
17637 if test -n "$LD"; then
17638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17639 $as_echo "$LD" >&6; }
17640 else
17641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17642 $as_echo "no" >&6; }
17643 fi
17644 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17646 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17647 if ${acl_cv_prog_gnu_ld+:} false; then :
17648   $as_echo_n "(cached) " >&6
17649 else
17650   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17651 case `$LD -v 2>&1 </dev/null` in
17652 *GNU* | *'with BFD'*)
17653   acl_cv_prog_gnu_ld=yes ;;
17654 *)
17655   acl_cv_prog_gnu_ld=no ;;
17656 esac
17657 fi
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17659 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17660 with_gnu_ld=$acl_cv_prog_gnu_ld
17661
17662
17663
17664
17665                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17666 $as_echo_n "checking for shared library run path origin... " >&6; }
17667 if ${acl_cv_rpath+:} false; then :
17668   $as_echo_n "(cached) " >&6
17669 else
17670
17671     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17672     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17673     . ./conftest.sh
17674     rm -f ./conftest.sh
17675     acl_cv_rpath=done
17676
17677 fi
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17679 $as_echo "$acl_cv_rpath" >&6; }
17680   wl="$acl_cv_wl"
17681   libext="$acl_cv_libext"
17682   shlibext="$acl_cv_shlibext"
17683   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17684   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17685   hardcode_direct="$acl_cv_hardcode_direct"
17686   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17687     # Check whether --enable-rpath was given.
17688 if test "${enable_rpath+set}" = set; then :
17689   enableval=$enable_rpath; :
17690 else
17691   enable_rpath=yes
17692 fi
17693
17694
17695
17696
17697
17698
17699
17700
17701     use_additional=yes
17702
17703   acl_save_prefix="$prefix"
17704   prefix="$acl_final_prefix"
17705   acl_save_exec_prefix="$exec_prefix"
17706   exec_prefix="$acl_final_exec_prefix"
17707
17708     eval additional_includedir=\"$includedir\"
17709     eval additional_libdir=\"$libdir\"
17710
17711   exec_prefix="$acl_save_exec_prefix"
17712   prefix="$acl_save_prefix"
17713
17714
17715 # Check whether --with-libiconv-prefix was given.
17716 if test "${with_libiconv_prefix+set}" = set; then :
17717   withval=$with_libiconv_prefix;
17718     if test "X$withval" = "Xno"; then
17719       use_additional=no
17720     else
17721       if test "X$withval" = "X"; then
17722
17723   acl_save_prefix="$prefix"
17724   prefix="$acl_final_prefix"
17725   acl_save_exec_prefix="$exec_prefix"
17726   exec_prefix="$acl_final_exec_prefix"
17727
17728           eval additional_includedir=\"$includedir\"
17729           eval additional_libdir=\"$libdir\"
17730
17731   exec_prefix="$acl_save_exec_prefix"
17732   prefix="$acl_save_prefix"
17733
17734       else
17735         additional_includedir="$withval/include"
17736         additional_libdir="$withval/lib"
17737       fi
17738     fi
17739
17740 fi
17741
17742       LIBICONV=
17743   LTLIBICONV=
17744   INCICONV=
17745   rpathdirs=
17746   ltrpathdirs=
17747   names_already_handled=
17748   names_next_round='iconv '
17749   while test -n "$names_next_round"; do
17750     names_this_round="$names_next_round"
17751     names_next_round=
17752     for name in $names_this_round; do
17753       already_handled=
17754       for n in $names_already_handled; do
17755         if test "$n" = "$name"; then
17756           already_handled=yes
17757           break
17758         fi
17759       done
17760       if test -z "$already_handled"; then
17761         names_already_handled="$names_already_handled $name"
17762                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17763         eval value=\"\$HAVE_LIB$uppername\"
17764         if test -n "$value"; then
17765           if test "$value" = yes; then
17766             eval value=\"\$LIB$uppername\"
17767             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17768             eval value=\"\$LTLIB$uppername\"
17769             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17770           else
17771                                     :
17772           fi
17773         else
17774                               found_dir=
17775           found_la=
17776           found_so=
17777           found_a=
17778           if test $use_additional = yes; then
17779             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17780               found_dir="$additional_libdir"
17781               found_so="$additional_libdir/lib$name.$shlibext"
17782               if test -f "$additional_libdir/lib$name.la"; then
17783                 found_la="$additional_libdir/lib$name.la"
17784               fi
17785             else
17786               if test -f "$additional_libdir/lib$name.$libext"; then
17787                 found_dir="$additional_libdir"
17788                 found_a="$additional_libdir/lib$name.$libext"
17789                 if test -f "$additional_libdir/lib$name.la"; then
17790                   found_la="$additional_libdir/lib$name.la"
17791                 fi
17792               fi
17793             fi
17794           fi
17795           if test "X$found_dir" = "X"; then
17796             for x in $LDFLAGS $LTLIBICONV; do
17797
17798   acl_save_prefix="$prefix"
17799   prefix="$acl_final_prefix"
17800   acl_save_exec_prefix="$exec_prefix"
17801   exec_prefix="$acl_final_exec_prefix"
17802   eval x=\"$x\"
17803   exec_prefix="$acl_save_exec_prefix"
17804   prefix="$acl_save_prefix"
17805
17806               case "$x" in
17807                 -L*)
17808                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17809                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17810                     found_dir="$dir"
17811                     found_so="$dir/lib$name.$shlibext"
17812                     if test -f "$dir/lib$name.la"; then
17813                       found_la="$dir/lib$name.la"
17814                     fi
17815                   else
17816                     if test -f "$dir/lib$name.$libext"; then
17817                       found_dir="$dir"
17818                       found_a="$dir/lib$name.$libext"
17819                       if test -f "$dir/lib$name.la"; then
17820                         found_la="$dir/lib$name.la"
17821                       fi
17822                     fi
17823                   fi
17824                   ;;
17825               esac
17826               if test "X$found_dir" != "X"; then
17827                 break
17828               fi
17829             done
17830           fi
17831           if test "X$found_dir" != "X"; then
17832                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17833             if test "X$found_so" != "X"; then
17834                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17835                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17836               else
17837                                                                                 haveit=
17838                 for x in $ltrpathdirs; do
17839                   if test "X$x" = "X$found_dir"; then
17840                     haveit=yes
17841                     break
17842                   fi
17843                 done
17844                 if test -z "$haveit"; then
17845                   ltrpathdirs="$ltrpathdirs $found_dir"
17846                 fi
17847                                 if test "$hardcode_direct" = yes; then
17848                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17849                 else
17850                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17851                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17852                                                             haveit=
17853                     for x in $rpathdirs; do
17854                       if test "X$x" = "X$found_dir"; then
17855                         haveit=yes
17856                         break
17857                       fi
17858                     done
17859                     if test -z "$haveit"; then
17860                       rpathdirs="$rpathdirs $found_dir"
17861                     fi
17862                   else
17863                                                                                 haveit=
17864                     for x in $LDFLAGS $LIBICONV; do
17865
17866   acl_save_prefix="$prefix"
17867   prefix="$acl_final_prefix"
17868   acl_save_exec_prefix="$exec_prefix"
17869   exec_prefix="$acl_final_exec_prefix"
17870   eval x=\"$x\"
17871   exec_prefix="$acl_save_exec_prefix"
17872   prefix="$acl_save_prefix"
17873
17874                       if test "X$x" = "X-L$found_dir"; then
17875                         haveit=yes
17876                         break
17877                       fi
17878                     done
17879                     if test -z "$haveit"; then
17880                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17881                     fi
17882                     if test "$hardcode_minus_L" != no; then
17883                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17884                     else
17885                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17886                     fi
17887                   fi
17888                 fi
17889               fi
17890             else
17891               if test "X$found_a" != "X"; then
17892                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17893               else
17894                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17895               fi
17896             fi
17897                         additional_includedir=
17898             case "$found_dir" in
17899               */lib | */lib/)
17900                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17901                 additional_includedir="$basedir/include"
17902                 ;;
17903             esac
17904             if test "X$additional_includedir" != "X"; then
17905                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17906                 haveit=
17907                 if test "X$additional_includedir" = "X/usr/local/include"; then
17908                   if test -n "$GCC"; then
17909                     case $host_os in
17910                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17911                     esac
17912                   fi
17913                 fi
17914                 if test -z "$haveit"; then
17915                   for x in $CPPFLAGS $INCICONV; do
17916
17917   acl_save_prefix="$prefix"
17918   prefix="$acl_final_prefix"
17919   acl_save_exec_prefix="$exec_prefix"
17920   exec_prefix="$acl_final_exec_prefix"
17921   eval x=\"$x\"
17922   exec_prefix="$acl_save_exec_prefix"
17923   prefix="$acl_save_prefix"
17924
17925                     if test "X$x" = "X-I$additional_includedir"; then
17926                       haveit=yes
17927                       break
17928                     fi
17929                   done
17930                   if test -z "$haveit"; then
17931                     if test -d "$additional_includedir"; then
17932                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17933                     fi
17934                   fi
17935                 fi
17936               fi
17937             fi
17938                         if test -n "$found_la"; then
17939                                                         save_libdir="$libdir"
17940               case "$found_la" in
17941                 */* | *\\*) . "$found_la" ;;
17942                 *) . "./$found_la" ;;
17943               esac
17944               libdir="$save_libdir"
17945                             for dep in $dependency_libs; do
17946                 case "$dep" in
17947                   -L*)
17948                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17949                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17950                       haveit=
17951                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17952                         if test -n "$GCC"; then
17953                           case $host_os in
17954                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17955                           esac
17956                         fi
17957                       fi
17958                       if test -z "$haveit"; then
17959                         haveit=
17960                         for x in $LDFLAGS $LIBICONV; do
17961
17962   acl_save_prefix="$prefix"
17963   prefix="$acl_final_prefix"
17964   acl_save_exec_prefix="$exec_prefix"
17965   exec_prefix="$acl_final_exec_prefix"
17966   eval x=\"$x\"
17967   exec_prefix="$acl_save_exec_prefix"
17968   prefix="$acl_save_prefix"
17969
17970                           if test "X$x" = "X-L$additional_libdir"; then
17971                             haveit=yes
17972                             break
17973                           fi
17974                         done
17975                         if test -z "$haveit"; then
17976                           if test -d "$additional_libdir"; then
17977                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17978                           fi
17979                         fi
17980                         haveit=
17981                         for x in $LDFLAGS $LTLIBICONV; do
17982
17983   acl_save_prefix="$prefix"
17984   prefix="$acl_final_prefix"
17985   acl_save_exec_prefix="$exec_prefix"
17986   exec_prefix="$acl_final_exec_prefix"
17987   eval x=\"$x\"
17988   exec_prefix="$acl_save_exec_prefix"
17989   prefix="$acl_save_prefix"
17990
17991                           if test "X$x" = "X-L$additional_libdir"; then
17992                             haveit=yes
17993                             break
17994                           fi
17995                         done
17996                         if test -z "$haveit"; then
17997                           if test -d "$additional_libdir"; then
17998                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17999                           fi
18000                         fi
18001                       fi
18002                     fi
18003                     ;;
18004                   -R*)
18005                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18006                     if test "$enable_rpath" != no; then
18007                                                                   haveit=
18008                       for x in $rpathdirs; do
18009                         if test "X$x" = "X$dir"; then
18010                           haveit=yes
18011                           break
18012                         fi
18013                       done
18014                       if test -z "$haveit"; then
18015                         rpathdirs="$rpathdirs $dir"
18016                       fi
18017                                                                   haveit=
18018                       for x in $ltrpathdirs; do
18019                         if test "X$x" = "X$dir"; then
18020                           haveit=yes
18021                           break
18022                         fi
18023                       done
18024                       if test -z "$haveit"; then
18025                         ltrpathdirs="$ltrpathdirs $dir"
18026                       fi
18027                     fi
18028                     ;;
18029                   -l*)
18030                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18031                     ;;
18032                   *.la)
18033                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18034                     ;;
18035                   *)
18036                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18037                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18038                     ;;
18039                 esac
18040               done
18041             fi
18042           else
18043                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18044             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18045           fi
18046         fi
18047       fi
18048     done
18049   done
18050   if test "X$rpathdirs" != "X"; then
18051     if test -n "$hardcode_libdir_separator"; then
18052                         alldirs=
18053       for found_dir in $rpathdirs; do
18054         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18055       done
18056             acl_save_libdir="$libdir"
18057       libdir="$alldirs"
18058       eval flag=\"$hardcode_libdir_flag_spec\"
18059       libdir="$acl_save_libdir"
18060       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18061     else
18062             for found_dir in $rpathdirs; do
18063         acl_save_libdir="$libdir"
18064         libdir="$found_dir"
18065         eval flag=\"$hardcode_libdir_flag_spec\"
18066         libdir="$acl_save_libdir"
18067         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18068       done
18069     fi
18070   fi
18071   if test "X$ltrpathdirs" != "X"; then
18072             for found_dir in $ltrpathdirs; do
18073       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18074     done
18075   fi
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18095 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18096 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18097   $as_echo_n "(cached) " >&6
18098 else
18099   gt_save_CPPFLAGS="$CPPFLAGS"
18100      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18101      gt_save_LIBS="$LIBS"
18102      LIBS="$LIBS -framework CoreFoundation"
18103      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18104 /* end confdefs.h.  */
18105 #include <CFPreferences.h>
18106 int
18107 main ()
18108 {
18109 CFPreferencesCopyAppValue(NULL, NULL)
18110   ;
18111   return 0;
18112 }
18113 _ACEOF
18114 if ac_fn_c_try_link "$LINENO"; then :
18115   gt_cv_func_CFPreferencesCopyAppValue=yes
18116 else
18117   gt_cv_func_CFPreferencesCopyAppValue=no
18118 fi
18119 rm -f core conftest.err conftest.$ac_objext \
18120     conftest$ac_exeext conftest.$ac_ext
18121      CPPFLAGS="$gt_save_CPPFLAGS"
18122      LIBS="$gt_save_LIBS"
18123 fi
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18125 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18126   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18127
18128 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18129
18130   fi
18131     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18132 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18133 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18134   $as_echo_n "(cached) " >&6
18135 else
18136   gt_save_CPPFLAGS="$CPPFLAGS"
18137      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18138      gt_save_LIBS="$LIBS"
18139      LIBS="$LIBS -framework CoreFoundation"
18140      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18141 /* end confdefs.h.  */
18142 #include <CFLocale.h>
18143 int
18144 main ()
18145 {
18146 CFLocaleCopyCurrent();
18147   ;
18148   return 0;
18149 }
18150 _ACEOF
18151 if ac_fn_c_try_link "$LINENO"; then :
18152   gt_cv_func_CFLocaleCopyCurrent=yes
18153 else
18154   gt_cv_func_CFLocaleCopyCurrent=no
18155 fi
18156 rm -f core conftest.err conftest.$ac_objext \
18157     conftest$ac_exeext conftest.$ac_ext
18158      CPPFLAGS="$gt_save_CPPFLAGS"
18159      LIBS="$gt_save_LIBS"
18160 fi
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18162 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18163   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18164
18165 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18166
18167   fi
18168   INTL_MACOSX_LIBS=
18169   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18170     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18171   fi
18172
18173
18174
18175
18176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18177 $as_echo_n "checking whether NLS is requested... " >&6; }
18178     # Check whether --enable-nls was given.
18179 if test "${enable_nls+set}" = set; then :
18180   enableval=$enable_nls; USE_NLS=$enableval
18181 else
18182   USE_NLS=yes
18183 fi
18184
18185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18186 $as_echo "$USE_NLS" >&6; }
18187
18188
18189
18190
18191   LIBINTL=
18192   LTLIBINTL=
18193   POSUB=
18194
18195     if test "$USE_NLS" = "yes"; then
18196     gt_use_preinstalled_gnugettext=no
18197
18198
18199
18200
18201
18202
18203         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18204 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18205 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18206   $as_echo_n "(cached) " >&6
18207 else
18208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18209 /* end confdefs.h.  */
18210 #include <libintl.h>
18211 extern int _nl_msg_cat_cntr;
18212 extern int *_nl_domain_bindings;
18213 int
18214 main ()
18215 {
18216 bindtextdomain ("", "");
18217 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18218   ;
18219   return 0;
18220 }
18221 _ACEOF
18222 if ac_fn_c_try_link "$LINENO"; then :
18223   gt_cv_func_gnugettext1_libc=yes
18224 else
18225   gt_cv_func_gnugettext1_libc=no
18226 fi
18227 rm -f core conftest.err conftest.$ac_objext \
18228     conftest$ac_exeext conftest.$ac_ext
18229 fi
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18231 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18232
18233         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18234
18235
18236
18237
18238
18239           am_save_CPPFLAGS="$CPPFLAGS"
18240
18241   for element in $INCICONV; do
18242     haveit=
18243     for x in $CPPFLAGS; do
18244
18245   acl_save_prefix="$prefix"
18246   prefix="$acl_final_prefix"
18247   acl_save_exec_prefix="$exec_prefix"
18248   exec_prefix="$acl_final_exec_prefix"
18249   eval x=\"$x\"
18250   exec_prefix="$acl_save_exec_prefix"
18251   prefix="$acl_save_prefix"
18252
18253       if test "X$x" = "X$element"; then
18254         haveit=yes
18255         break
18256       fi
18257     done
18258     if test -z "$haveit"; then
18259       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18260     fi
18261   done
18262
18263
18264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18265 $as_echo_n "checking for iconv... " >&6; }
18266 if ${am_cv_func_iconv+:} false; then :
18267   $as_echo_n "(cached) " >&6
18268 else
18269
18270     am_cv_func_iconv="no, consider installing GNU libiconv"
18271     am_cv_lib_iconv=no
18272     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18273 /* end confdefs.h.  */
18274 #include <stdlib.h>
18275 #include <iconv.h>
18276 int
18277 main ()
18278 {
18279 iconv_t cd = iconv_open("","");
18280        iconv(cd,NULL,NULL,NULL,NULL);
18281        iconv_close(cd);
18282   ;
18283   return 0;
18284 }
18285 _ACEOF
18286 if ac_fn_c_try_link "$LINENO"; then :
18287   am_cv_func_iconv=yes
18288 fi
18289 rm -f core conftest.err conftest.$ac_objext \
18290     conftest$ac_exeext conftest.$ac_ext
18291     if test "$am_cv_func_iconv" != yes; then
18292       am_save_LIBS="$LIBS"
18293       LIBS="$LIBS $LIBICONV"
18294       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h.  */
18296 #include <stdlib.h>
18297 #include <iconv.h>
18298 int
18299 main ()
18300 {
18301 iconv_t cd = iconv_open("","");
18302          iconv(cd,NULL,NULL,NULL,NULL);
18303          iconv_close(cd);
18304   ;
18305   return 0;
18306 }
18307 _ACEOF
18308 if ac_fn_c_try_link "$LINENO"; then :
18309   am_cv_lib_iconv=yes
18310         am_cv_func_iconv=yes
18311 fi
18312 rm -f core conftest.err conftest.$ac_objext \
18313     conftest$ac_exeext conftest.$ac_ext
18314       LIBS="$am_save_LIBS"
18315     fi
18316
18317 fi
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18319 $as_echo "$am_cv_func_iconv" >&6; }
18320   if test "$am_cv_func_iconv" = yes; then
18321
18322 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18323
18324   fi
18325   if test "$am_cv_lib_iconv" = yes; then
18326     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18327 $as_echo_n "checking how to link with libiconv... " >&6; }
18328     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18329 $as_echo "$LIBICONV" >&6; }
18330   else
18331             CPPFLAGS="$am_save_CPPFLAGS"
18332     LIBICONV=
18333     LTLIBICONV=
18334   fi
18335
18336
18337
18338
18339
18340
18341     use_additional=yes
18342
18343   acl_save_prefix="$prefix"
18344   prefix="$acl_final_prefix"
18345   acl_save_exec_prefix="$exec_prefix"
18346   exec_prefix="$acl_final_exec_prefix"
18347
18348     eval additional_includedir=\"$includedir\"
18349     eval additional_libdir=\"$libdir\"
18350
18351   exec_prefix="$acl_save_exec_prefix"
18352   prefix="$acl_save_prefix"
18353
18354
18355 # Check whether --with-libintl-prefix was given.
18356 if test "${with_libintl_prefix+set}" = set; then :
18357   withval=$with_libintl_prefix;
18358     if test "X$withval" = "Xno"; then
18359       use_additional=no
18360     else
18361       if test "X$withval" = "X"; then
18362
18363   acl_save_prefix="$prefix"
18364   prefix="$acl_final_prefix"
18365   acl_save_exec_prefix="$exec_prefix"
18366   exec_prefix="$acl_final_exec_prefix"
18367
18368           eval additional_includedir=\"$includedir\"
18369           eval additional_libdir=\"$libdir\"
18370
18371   exec_prefix="$acl_save_exec_prefix"
18372   prefix="$acl_save_prefix"
18373
18374       else
18375         additional_includedir="$withval/include"
18376         additional_libdir="$withval/lib"
18377       fi
18378     fi
18379
18380 fi
18381
18382       LIBINTL=
18383   LTLIBINTL=
18384   INCINTL=
18385   rpathdirs=
18386   ltrpathdirs=
18387   names_already_handled=
18388   names_next_round='intl '
18389   while test -n "$names_next_round"; do
18390     names_this_round="$names_next_round"
18391     names_next_round=
18392     for name in $names_this_round; do
18393       already_handled=
18394       for n in $names_already_handled; do
18395         if test "$n" = "$name"; then
18396           already_handled=yes
18397           break
18398         fi
18399       done
18400       if test -z "$already_handled"; then
18401         names_already_handled="$names_already_handled $name"
18402                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18403         eval value=\"\$HAVE_LIB$uppername\"
18404         if test -n "$value"; then
18405           if test "$value" = yes; then
18406             eval value=\"\$LIB$uppername\"
18407             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18408             eval value=\"\$LTLIB$uppername\"
18409             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18410           else
18411                                     :
18412           fi
18413         else
18414                               found_dir=
18415           found_la=
18416           found_so=
18417           found_a=
18418           if test $use_additional = yes; then
18419             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18420               found_dir="$additional_libdir"
18421               found_so="$additional_libdir/lib$name.$shlibext"
18422               if test -f "$additional_libdir/lib$name.la"; then
18423                 found_la="$additional_libdir/lib$name.la"
18424               fi
18425             else
18426               if test -f "$additional_libdir/lib$name.$libext"; then
18427                 found_dir="$additional_libdir"
18428                 found_a="$additional_libdir/lib$name.$libext"
18429                 if test -f "$additional_libdir/lib$name.la"; then
18430                   found_la="$additional_libdir/lib$name.la"
18431                 fi
18432               fi
18433             fi
18434           fi
18435           if test "X$found_dir" = "X"; then
18436             for x in $LDFLAGS $LTLIBINTL; do
18437
18438   acl_save_prefix="$prefix"
18439   prefix="$acl_final_prefix"
18440   acl_save_exec_prefix="$exec_prefix"
18441   exec_prefix="$acl_final_exec_prefix"
18442   eval x=\"$x\"
18443   exec_prefix="$acl_save_exec_prefix"
18444   prefix="$acl_save_prefix"
18445
18446               case "$x" in
18447                 -L*)
18448                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18449                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18450                     found_dir="$dir"
18451                     found_so="$dir/lib$name.$shlibext"
18452                     if test -f "$dir/lib$name.la"; then
18453                       found_la="$dir/lib$name.la"
18454                     fi
18455                   else
18456                     if test -f "$dir/lib$name.$libext"; then
18457                       found_dir="$dir"
18458                       found_a="$dir/lib$name.$libext"
18459                       if test -f "$dir/lib$name.la"; then
18460                         found_la="$dir/lib$name.la"
18461                       fi
18462                     fi
18463                   fi
18464                   ;;
18465               esac
18466               if test "X$found_dir" != "X"; then
18467                 break
18468               fi
18469             done
18470           fi
18471           if test "X$found_dir" != "X"; then
18472                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18473             if test "X$found_so" != "X"; then
18474                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18475                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18476               else
18477                                                                                 haveit=
18478                 for x in $ltrpathdirs; do
18479                   if test "X$x" = "X$found_dir"; then
18480                     haveit=yes
18481                     break
18482                   fi
18483                 done
18484                 if test -z "$haveit"; then
18485                   ltrpathdirs="$ltrpathdirs $found_dir"
18486                 fi
18487                                 if test "$hardcode_direct" = yes; then
18488                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18489                 else
18490                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18491                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18492                                                             haveit=
18493                     for x in $rpathdirs; do
18494                       if test "X$x" = "X$found_dir"; then
18495                         haveit=yes
18496                         break
18497                       fi
18498                     done
18499                     if test -z "$haveit"; then
18500                       rpathdirs="$rpathdirs $found_dir"
18501                     fi
18502                   else
18503                                                                                 haveit=
18504                     for x in $LDFLAGS $LIBINTL; do
18505
18506   acl_save_prefix="$prefix"
18507   prefix="$acl_final_prefix"
18508   acl_save_exec_prefix="$exec_prefix"
18509   exec_prefix="$acl_final_exec_prefix"
18510   eval x=\"$x\"
18511   exec_prefix="$acl_save_exec_prefix"
18512   prefix="$acl_save_prefix"
18513
18514                       if test "X$x" = "X-L$found_dir"; then
18515                         haveit=yes
18516                         break
18517                       fi
18518                     done
18519                     if test -z "$haveit"; then
18520                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18521                     fi
18522                     if test "$hardcode_minus_L" != no; then
18523                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18524                     else
18525                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18526                     fi
18527                   fi
18528                 fi
18529               fi
18530             else
18531               if test "X$found_a" != "X"; then
18532                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18533               else
18534                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18535               fi
18536             fi
18537                         additional_includedir=
18538             case "$found_dir" in
18539               */lib | */lib/)
18540                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18541                 additional_includedir="$basedir/include"
18542                 ;;
18543             esac
18544             if test "X$additional_includedir" != "X"; then
18545                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18546                 haveit=
18547                 if test "X$additional_includedir" = "X/usr/local/include"; then
18548                   if test -n "$GCC"; then
18549                     case $host_os in
18550                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18551                     esac
18552                   fi
18553                 fi
18554                 if test -z "$haveit"; then
18555                   for x in $CPPFLAGS $INCINTL; do
18556
18557   acl_save_prefix="$prefix"
18558   prefix="$acl_final_prefix"
18559   acl_save_exec_prefix="$exec_prefix"
18560   exec_prefix="$acl_final_exec_prefix"
18561   eval x=\"$x\"
18562   exec_prefix="$acl_save_exec_prefix"
18563   prefix="$acl_save_prefix"
18564
18565                     if test "X$x" = "X-I$additional_includedir"; then
18566                       haveit=yes
18567                       break
18568                     fi
18569                   done
18570                   if test -z "$haveit"; then
18571                     if test -d "$additional_includedir"; then
18572                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18573                     fi
18574                   fi
18575                 fi
18576               fi
18577             fi
18578                         if test -n "$found_la"; then
18579                                                         save_libdir="$libdir"
18580               case "$found_la" in
18581                 */* | *\\*) . "$found_la" ;;
18582                 *) . "./$found_la" ;;
18583               esac
18584               libdir="$save_libdir"
18585                             for dep in $dependency_libs; do
18586                 case "$dep" in
18587                   -L*)
18588                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18589                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18590                       haveit=
18591                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18592                         if test -n "$GCC"; then
18593                           case $host_os in
18594                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18595                           esac
18596                         fi
18597                       fi
18598                       if test -z "$haveit"; then
18599                         haveit=
18600                         for x in $LDFLAGS $LIBINTL; do
18601
18602   acl_save_prefix="$prefix"
18603   prefix="$acl_final_prefix"
18604   acl_save_exec_prefix="$exec_prefix"
18605   exec_prefix="$acl_final_exec_prefix"
18606   eval x=\"$x\"
18607   exec_prefix="$acl_save_exec_prefix"
18608   prefix="$acl_save_prefix"
18609
18610                           if test "X$x" = "X-L$additional_libdir"; then
18611                             haveit=yes
18612                             break
18613                           fi
18614                         done
18615                         if test -z "$haveit"; then
18616                           if test -d "$additional_libdir"; then
18617                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18618                           fi
18619                         fi
18620                         haveit=
18621                         for x in $LDFLAGS $LTLIBINTL; do
18622
18623   acl_save_prefix="$prefix"
18624   prefix="$acl_final_prefix"
18625   acl_save_exec_prefix="$exec_prefix"
18626   exec_prefix="$acl_final_exec_prefix"
18627   eval x=\"$x\"
18628   exec_prefix="$acl_save_exec_prefix"
18629   prefix="$acl_save_prefix"
18630
18631                           if test "X$x" = "X-L$additional_libdir"; then
18632                             haveit=yes
18633                             break
18634                           fi
18635                         done
18636                         if test -z "$haveit"; then
18637                           if test -d "$additional_libdir"; then
18638                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18639                           fi
18640                         fi
18641                       fi
18642                     fi
18643                     ;;
18644                   -R*)
18645                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18646                     if test "$enable_rpath" != no; then
18647                                                                   haveit=
18648                       for x in $rpathdirs; do
18649                         if test "X$x" = "X$dir"; then
18650                           haveit=yes
18651                           break
18652                         fi
18653                       done
18654                       if test -z "$haveit"; then
18655                         rpathdirs="$rpathdirs $dir"
18656                       fi
18657                                                                   haveit=
18658                       for x in $ltrpathdirs; do
18659                         if test "X$x" = "X$dir"; then
18660                           haveit=yes
18661                           break
18662                         fi
18663                       done
18664                       if test -z "$haveit"; then
18665                         ltrpathdirs="$ltrpathdirs $dir"
18666                       fi
18667                     fi
18668                     ;;
18669                   -l*)
18670                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18671                     ;;
18672                   *.la)
18673                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18674                     ;;
18675                   *)
18676                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18677                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18678                     ;;
18679                 esac
18680               done
18681             fi
18682           else
18683                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18684             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18685           fi
18686         fi
18687       fi
18688     done
18689   done
18690   if test "X$rpathdirs" != "X"; then
18691     if test -n "$hardcode_libdir_separator"; then
18692                         alldirs=
18693       for found_dir in $rpathdirs; do
18694         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18695       done
18696             acl_save_libdir="$libdir"
18697       libdir="$alldirs"
18698       eval flag=\"$hardcode_libdir_flag_spec\"
18699       libdir="$acl_save_libdir"
18700       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18701     else
18702             for found_dir in $rpathdirs; do
18703         acl_save_libdir="$libdir"
18704         libdir="$found_dir"
18705         eval flag=\"$hardcode_libdir_flag_spec\"
18706         libdir="$acl_save_libdir"
18707         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18708       done
18709     fi
18710   fi
18711   if test "X$ltrpathdirs" != "X"; then
18712             for found_dir in $ltrpathdirs; do
18713       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18714     done
18715   fi
18716
18717           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18718 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18719 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18720   $as_echo_n "(cached) " >&6
18721 else
18722   gt_save_CPPFLAGS="$CPPFLAGS"
18723             CPPFLAGS="$CPPFLAGS $INCINTL"
18724             gt_save_LIBS="$LIBS"
18725             LIBS="$LIBS $LIBINTL"
18726                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18727 /* end confdefs.h.  */
18728 #include <libintl.h>
18729 extern int _nl_msg_cat_cntr;
18730 extern
18731 #ifdef __cplusplus
18732 "C"
18733 #endif
18734 const char *_nl_expand_alias (const char *);
18735 int
18736 main ()
18737 {
18738 bindtextdomain ("", "");
18739 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18740   ;
18741   return 0;
18742 }
18743 _ACEOF
18744 if ac_fn_c_try_link "$LINENO"; then :
18745   gt_cv_func_gnugettext1_libintl=yes
18746 else
18747   gt_cv_func_gnugettext1_libintl=no
18748 fi
18749 rm -f core conftest.err conftest.$ac_objext \
18750     conftest$ac_exeext conftest.$ac_ext
18751                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18752               LIBS="$LIBS $LIBICONV"
18753               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18754 /* end confdefs.h.  */
18755 #include <libintl.h>
18756 extern int _nl_msg_cat_cntr;
18757 extern
18758 #ifdef __cplusplus
18759 "C"
18760 #endif
18761 const char *_nl_expand_alias (const char *);
18762 int
18763 main ()
18764 {
18765 bindtextdomain ("", "");
18766 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18767   ;
18768   return 0;
18769 }
18770 _ACEOF
18771 if ac_fn_c_try_link "$LINENO"; then :
18772   LIBINTL="$LIBINTL $LIBICONV"
18773                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18774                 gt_cv_func_gnugettext1_libintl=yes
18775
18776 fi
18777 rm -f core conftest.err conftest.$ac_objext \
18778     conftest$ac_exeext conftest.$ac_ext
18779             fi
18780             CPPFLAGS="$gt_save_CPPFLAGS"
18781             LIBS="$gt_save_LIBS"
18782 fi
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18784 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18785         fi
18786
18787                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18788            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18789                 && test "$PACKAGE" != gettext-runtime \
18790                 && test "$PACKAGE" != gettext-tools; }; then
18791           gt_use_preinstalled_gnugettext=yes
18792         else
18793                     LIBINTL=
18794           LTLIBINTL=
18795           INCINTL=
18796         fi
18797
18798
18799
18800     if test -n "$INTL_MACOSX_LIBS"; then
18801       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18802          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18803                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18804         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18805       fi
18806     fi
18807
18808     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18809        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18810
18811 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18812
18813     else
18814       USE_NLS=no
18815     fi
18816   fi
18817
18818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18819 $as_echo_n "checking whether to use NLS... " >&6; }
18820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18821 $as_echo "$USE_NLS" >&6; }
18822   if test "$USE_NLS" = "yes"; then
18823     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18824 $as_echo_n "checking where the gettext function comes from... " >&6; }
18825     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18826       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18827         gt_source="external libintl"
18828       else
18829         gt_source="libc"
18830       fi
18831     else
18832       gt_source="included intl directory"
18833     fi
18834     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18835 $as_echo "$gt_source" >&6; }
18836   fi
18837
18838   if test "$USE_NLS" = "yes"; then
18839
18840     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18841       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18842         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18843 $as_echo_n "checking how to link with libintl... " >&6; }
18844         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18845 $as_echo "$LIBINTL" >&6; }
18846
18847   for element in $INCINTL; do
18848     haveit=
18849     for x in $CPPFLAGS; do
18850
18851   acl_save_prefix="$prefix"
18852   prefix="$acl_final_prefix"
18853   acl_save_exec_prefix="$exec_prefix"
18854   exec_prefix="$acl_final_exec_prefix"
18855   eval x=\"$x\"
18856   exec_prefix="$acl_save_exec_prefix"
18857   prefix="$acl_save_prefix"
18858
18859       if test "X$x" = "X$element"; then
18860         haveit=yes
18861         break
18862       fi
18863     done
18864     if test -z "$haveit"; then
18865       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18866     fi
18867   done
18868
18869       fi
18870
18871
18872 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18873
18874
18875 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18876
18877     fi
18878
18879         POSUB=po
18880   fi
18881
18882
18883
18884     INTLLIBS="$LIBINTL"
18885
18886
18887
18888
18889
18890
18891
18892 os_name=`uname -s 2>/dev/null`
18893 if test x${prefix} = xNONE ; then
18894    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18895       sysconfdir=/etc/bacula
18896    fi
18897
18898    if test `eval echo ${libdir}` = NONE/lib ; then
18899       case ${os_name} in
18900       Linux)
18901          os_processor=`uname -p 2>/dev/null`
18902          case ${os_processor} in
18903          x86_64)
18904             libdir=/usr/lib64
18905             ;;
18906          *)
18907             libdir=/usr/lib
18908             ;;
18909          esac
18910          ;;
18911       *)
18912          libdir=/usr/lib
18913          ;;
18914       esac
18915    fi
18916
18917    if test `eval echo ${includedir}` = NONE/include ; then
18918       includedir=/usr/include
18919    fi
18920
18921    if test `eval echo ${datarootdir}` = NONE/share ; then
18922       datarootdir=/usr/share
18923    fi
18924    prefix=
18925 fi
18926
18927 if test x${exec_prefix} = xNONE ; then
18928    exec_prefix=${prefix}
18929 fi
18930
18931 sysconfdir=`eval echo ${sysconfdir}`
18932 datarootdir=`eval echo ${datarootdir}`
18933 docdir=`eval echo ${docdir}`
18934 htmldir=`eval echo ${htmldir}`
18935 libdir=`eval echo ${libdir}`
18936 includedir=`eval echo ${includedir}`
18937 localedir=`eval echo ${datarootdir}/locale`
18938 cat >>confdefs.h <<_ACEOF
18939 #define SYSCONFDIR "$sysconfdir"
18940 _ACEOF
18941
18942 cat >>confdefs.h <<_ACEOF
18943 #define LOCALEDIR "$localedir"
18944 _ACEOF
18945
18946
18947 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18948    sbindir=${exec_prefix}/sbin
18949 fi
18950 sbindir=`eval echo ${sbindir}`
18951
18952 if test x$mandir = x'${prefix}/man' ; then
18953    mandir=/usr/share/man
18954 fi
18955
18956 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18957    htmldir=`eval echo ${docdir}html`
18958 fi
18959
18960 if test x$docdir = x'/usr/share/doc/' ; then
18961    docdir=`eval echo ${docdir}bacula`
18962 fi
18963
18964
18965 for ac_prog in msgfmt
18966 do
18967   # Extract the first word of "$ac_prog", so it can be a program name with args.
18968 set dummy $ac_prog; ac_word=$2
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18970 $as_echo_n "checking for $ac_word... " >&6; }
18971 if ${ac_cv_path_MSGFMT+:} false; then :
18972   $as_echo_n "(cached) " >&6
18973 else
18974   case $MSGFMT in
18975   [\\/]* | ?:[\\/]*)
18976   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18977   ;;
18978   *)
18979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18980 for as_dir in $PATH
18981 do
18982   IFS=$as_save_IFS
18983   test -z "$as_dir" && as_dir=.
18984     for ac_exec_ext in '' $ac_executable_extensions; do
18985   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18986     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18988     break 2
18989   fi
18990 done
18991   done
18992 IFS=$as_save_IFS
18993
18994   ;;
18995 esac
18996 fi
18997 MSGFMT=$ac_cv_path_MSGFMT
18998 if test -n "$MSGFMT"; then
18999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19000 $as_echo "$MSGFMT" >&6; }
19001 else
19002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19003 $as_echo "no" >&6; }
19004 fi
19005
19006
19007   test -n "$MSGFMT" && break
19008 done
19009 test -n "$MSGFMT" || MSGFMT="no"
19010
19011 if test "$MSGFMT" = "no"
19012 then
19013    echo 'msgfmt program not found, disabling NLS !'
19014    USE_NLS=no
19015    USE_INCLUDED_LIBINTL=no
19016 #else
19017
19018     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
19019 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
19020 if ${ac_cv_gnu_library_2+:} false; then :
19021   $as_echo_n "(cached) " >&6
19022 else
19023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19024 /* end confdefs.h.  */
19025
19026 #include <features.h>
19027 #ifdef __GNU_LIBRARY__
19028  #if (__GLIBC__ >= 2)
19029   Lucky GNU user
19030  #endif
19031 #endif
19032
19033 _ACEOF
19034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19035   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19036   ac_cv_gnu_library_2=yes
19037 else
19038   ac_cv_gnu_library_2=no
19039 fi
19040 rm -f conftest*
19041
19042
19043
19044 fi
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19046 $as_echo "$ac_cv_gnu_library_2" >&6; }
19047
19048     GLIBC2="$ac_cv_gnu_library_2"
19049
19050
19051 if test -n "$ac_tool_prefix"; then
19052   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19053 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19055 $as_echo_n "checking for $ac_word... " >&6; }
19056 if ${ac_cv_prog_RANLIB+:} false; then :
19057   $as_echo_n "(cached) " >&6
19058 else
19059   if test -n "$RANLIB"; then
19060   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19061 else
19062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19063 for as_dir in $PATH
19064 do
19065   IFS=$as_save_IFS
19066   test -z "$as_dir" && as_dir=.
19067     for ac_exec_ext in '' $ac_executable_extensions; do
19068   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19069     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19071     break 2
19072   fi
19073 done
19074   done
19075 IFS=$as_save_IFS
19076
19077 fi
19078 fi
19079 RANLIB=$ac_cv_prog_RANLIB
19080 if test -n "$RANLIB"; then
19081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19082 $as_echo "$RANLIB" >&6; }
19083 else
19084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19085 $as_echo "no" >&6; }
19086 fi
19087
19088
19089 fi
19090 if test -z "$ac_cv_prog_RANLIB"; then
19091   ac_ct_RANLIB=$RANLIB
19092   # Extract the first word of "ranlib", so it can be a program name with args.
19093 set dummy ranlib; ac_word=$2
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19095 $as_echo_n "checking for $ac_word... " >&6; }
19096 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19097   $as_echo_n "(cached) " >&6
19098 else
19099   if test -n "$ac_ct_RANLIB"; then
19100   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19101 else
19102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19103 for as_dir in $PATH
19104 do
19105   IFS=$as_save_IFS
19106   test -z "$as_dir" && as_dir=.
19107     for ac_exec_ext in '' $ac_executable_extensions; do
19108   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19109     ac_cv_prog_ac_ct_RANLIB="ranlib"
19110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19111     break 2
19112   fi
19113 done
19114   done
19115 IFS=$as_save_IFS
19116
19117 fi
19118 fi
19119 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19120 if test -n "$ac_ct_RANLIB"; then
19121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19122 $as_echo "$ac_ct_RANLIB" >&6; }
19123 else
19124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19125 $as_echo "no" >&6; }
19126 fi
19127
19128   if test "x$ac_ct_RANLIB" = x; then
19129     RANLIB=":"
19130   else
19131     case $cross_compiling:$ac_tool_warned in
19132 yes:)
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19135 ac_tool_warned=yes ;;
19136 esac
19137     RANLIB=$ac_ct_RANLIB
19138   fi
19139 else
19140   RANLIB="$ac_cv_prog_RANLIB"
19141 fi
19142
19143
19144         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19145 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19146 if ${ac_cv_lib_cposix_strerror+:} false; then :
19147   $as_echo_n "(cached) " >&6
19148 else
19149   ac_check_lib_save_LIBS=$LIBS
19150 LIBS="-lcposix  $LIBS"
19151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19152 /* end confdefs.h.  */
19153
19154 /* Override any GCC internal prototype to avoid an error.
19155    Use char because int might match the return type of a GCC
19156    builtin and then its argument prototype would still apply.  */
19157 #ifdef __cplusplus
19158 extern "C"
19159 #endif
19160 char strerror ();
19161 int
19162 main ()
19163 {
19164 return strerror ();
19165   ;
19166   return 0;
19167 }
19168 _ACEOF
19169 if ac_fn_c_try_link "$LINENO"; then :
19170   ac_cv_lib_cposix_strerror=yes
19171 else
19172   ac_cv_lib_cposix_strerror=no
19173 fi
19174 rm -f core conftest.err conftest.$ac_objext \
19175     conftest$ac_exeext conftest.$ac_ext
19176 LIBS=$ac_check_lib_save_LIBS
19177 fi
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19179 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19180 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19181   LIBS="$LIBS -lcposix"
19182 fi
19183
19184
19185
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19187 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19188 if ${ac_cv_c_const+:} false; then :
19189   $as_echo_n "(cached) " >&6
19190 else
19191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19192 /* end confdefs.h.  */
19193
19194 int
19195 main ()
19196 {
19197
19198 #ifndef __cplusplus
19199   /* Ultrix mips cc rejects this sort of thing.  */
19200   typedef int charset[2];
19201   const charset cs = { 0, 0 };
19202   /* SunOS 4.1.1 cc rejects this.  */
19203   char const *const *pcpcc;
19204   char **ppc;
19205   /* NEC SVR4.0.2 mips cc rejects this.  */
19206   struct point {int x, y;};
19207   static struct point const zero = {0,0};
19208   /* AIX XL C 1.02.0.0 rejects this.
19209      It does not let you subtract one const X* pointer from another in
19210      an arm of an if-expression whose if-part is not a constant
19211      expression */
19212   const char *g = "string";
19213   pcpcc = &g + (g ? g-g : 0);
19214   /* HPUX 7.0 cc rejects these. */
19215   ++pcpcc;
19216   ppc = (char**) pcpcc;
19217   pcpcc = (char const *const *) ppc;
19218   { /* SCO 3.2v4 cc rejects this sort of thing.  */
19219     char tx;
19220     char *t = &tx;
19221     char const *s = 0 ? (char *) 0 : (char const *) 0;
19222
19223     *t++ = 0;
19224     if (s) return 0;
19225   }
19226   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19227     int x[] = {25, 17};
19228     const int *foo = &x[0];
19229     ++foo;
19230   }
19231   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19232     typedef const int *iptr;
19233     iptr p = 0;
19234     ++p;
19235   }
19236   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19237        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19238     struct s { int j; const int *ap[3]; } bx;
19239     struct s *b = &bx; b->j = 5;
19240   }
19241   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19242     const int foo = 10;
19243     if (!foo) return 0;
19244   }
19245   return !cs[0] && !zero.x;
19246 #endif
19247
19248   ;
19249   return 0;
19250 }
19251 _ACEOF
19252 if ac_fn_c_try_compile "$LINENO"; then :
19253   ac_cv_c_const=yes
19254 else
19255   ac_cv_c_const=no
19256 fi
19257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19258 fi
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19260 $as_echo "$ac_cv_c_const" >&6; }
19261 if test $ac_cv_c_const = no; then
19262
19263 $as_echo "#define const /**/" >>confdefs.h
19264
19265 fi
19266
19267
19268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19269 $as_echo_n "checking for signed... " >&6; }
19270 if ${bh_cv_c_signed+:} false; then :
19271   $as_echo_n "(cached) " >&6
19272 else
19273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19274 /* end confdefs.h.  */
19275
19276 int
19277 main ()
19278 {
19279 signed char x;
19280   ;
19281   return 0;
19282 }
19283 _ACEOF
19284 if ac_fn_c_try_compile "$LINENO"; then :
19285   bh_cv_c_signed=yes
19286 else
19287   bh_cv_c_signed=no
19288 fi
19289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19290 fi
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19292 $as_echo "$bh_cv_c_signed" >&6; }
19293   if test $bh_cv_c_signed = no; then
19294
19295 $as_echo "#define signed /**/" >>confdefs.h
19296
19297   fi
19298
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19300 $as_echo_n "checking for inline... " >&6; }
19301 if ${ac_cv_c_inline+:} false; then :
19302   $as_echo_n "(cached) " >&6
19303 else
19304   ac_cv_c_inline=no
19305 for ac_kw in inline __inline__ __inline; do
19306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19307 /* end confdefs.h.  */
19308 #ifndef __cplusplus
19309 typedef int foo_t;
19310 static $ac_kw foo_t static_foo () {return 0; }
19311 $ac_kw foo_t foo () {return 0; }
19312 #endif
19313
19314 _ACEOF
19315 if ac_fn_c_try_compile "$LINENO"; then :
19316   ac_cv_c_inline=$ac_kw
19317 fi
19318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19319   test "$ac_cv_c_inline" != no && break
19320 done
19321
19322 fi
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19324 $as_echo "$ac_cv_c_inline" >&6; }
19325
19326 case $ac_cv_c_inline in
19327   inline | yes) ;;
19328   *)
19329     case $ac_cv_c_inline in
19330       no) ac_val=;;
19331       *) ac_val=$ac_cv_c_inline;;
19332     esac
19333     cat >>confdefs.h <<_ACEOF
19334 #ifndef __cplusplus
19335 #define inline $ac_val
19336 #endif
19337 _ACEOF
19338     ;;
19339 esac
19340
19341 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19342 if test "x$ac_cv_type_off_t" = xyes; then :
19343
19344 else
19345
19346 cat >>confdefs.h <<_ACEOF
19347 #define off_t long int
19348 _ACEOF
19349
19350 fi
19351
19352 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19353 if test "x$ac_cv_type_size_t" = xyes; then :
19354
19355 else
19356
19357 cat >>confdefs.h <<_ACEOF
19358 #define size_t unsigned int
19359 _ACEOF
19360
19361 fi
19362
19363
19364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19365 $as_echo_n "checking for long long... " >&6; }
19366 if ${ac_cv_type_long_long+:} false; then :
19367   $as_echo_n "(cached) " >&6
19368 else
19369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19370 /* end confdefs.h.  */
19371 long long ll = 1LL; int i = 63;
19372 int
19373 main ()
19374 {
19375 long long llmax = (long long) -1;
19376      return ll << i | ll >> i | llmax / ll | llmax % ll;
19377   ;
19378   return 0;
19379 }
19380 _ACEOF
19381 if ac_fn_c_try_link "$LINENO"; then :
19382   ac_cv_type_long_long=yes
19383 else
19384   ac_cv_type_long_long=no
19385 fi
19386 rm -f core conftest.err conftest.$ac_objext \
19387     conftest$ac_exeext conftest.$ac_ext
19388 fi
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19390 $as_echo "$ac_cv_type_long_long" >&6; }
19391   if test $ac_cv_type_long_long = yes; then
19392
19393 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19394
19395   fi
19396
19397
19398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19399 $as_echo_n "checking for long double... " >&6; }
19400 if ${gt_cv_c_long_double+:} false; then :
19401   $as_echo_n "(cached) " >&6
19402 else
19403   if test "$GCC" = yes; then
19404        gt_cv_c_long_double=yes
19405      else
19406        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19407 /* end confdefs.h.  */
19408
19409          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19410          long double foo = 0.0;
19411          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19412          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19413
19414 int
19415 main ()
19416 {
19417
19418   ;
19419   return 0;
19420 }
19421 _ACEOF
19422 if ac_fn_c_try_compile "$LINENO"; then :
19423   gt_cv_c_long_double=yes
19424 else
19425   gt_cv_c_long_double=no
19426 fi
19427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19428      fi
19429 fi
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19431 $as_echo "$gt_cv_c_long_double" >&6; }
19432   if test $gt_cv_c_long_double = yes; then
19433
19434 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19435
19436   fi
19437
19438
19439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19440 $as_echo_n "checking for wchar_t... " >&6; }
19441 if ${gt_cv_c_wchar_t+:} false; then :
19442   $as_echo_n "(cached) " >&6
19443 else
19444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19445 /* end confdefs.h.  */
19446 #include <stddef.h>
19447        wchar_t foo = (wchar_t)'\0';
19448 int
19449 main ()
19450 {
19451
19452   ;
19453   return 0;
19454 }
19455 _ACEOF
19456 if ac_fn_c_try_compile "$LINENO"; then :
19457   gt_cv_c_wchar_t=yes
19458 else
19459   gt_cv_c_wchar_t=no
19460 fi
19461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19462 fi
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19464 $as_echo "$gt_cv_c_wchar_t" >&6; }
19465   if test $gt_cv_c_wchar_t = yes; then
19466
19467 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19468
19469   fi
19470
19471
19472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19473 $as_echo_n "checking for wint_t... " >&6; }
19474 if ${gt_cv_c_wint_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 <wchar.h>
19480        wint_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_wint_t=yes
19491 else
19492   gt_cv_c_wint_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_wint_t" >&5
19497 $as_echo "$gt_cv_c_wint_t" >&6; }
19498   if test $gt_cv_c_wint_t = yes; then
19499
19500 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19501
19502   fi
19503
19504
19505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19506 $as_echo_n "checking for inttypes.h... " >&6; }
19507 if ${gl_cv_header_inttypes_h+:} false; then :
19508   $as_echo_n "(cached) " >&6
19509 else
19510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19511 /* end confdefs.h.  */
19512 #include <sys/types.h>
19513 #include <inttypes.h>
19514 int
19515 main ()
19516 {
19517 uintmax_t i = (uintmax_t) -1;
19518   ;
19519   return 0;
19520 }
19521 _ACEOF
19522 if ac_fn_c_try_compile "$LINENO"; then :
19523   gl_cv_header_inttypes_h=yes
19524 else
19525   gl_cv_header_inttypes_h=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: $gl_cv_header_inttypes_h" >&5
19530 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19531   if test $gl_cv_header_inttypes_h = yes; then
19532
19533 cat >>confdefs.h <<_ACEOF
19534 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19535 _ACEOF
19536
19537   fi
19538
19539
19540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19541 $as_echo_n "checking for stdint.h... " >&6; }
19542 if ${gl_cv_header_stdint_h+:} false; then :
19543   $as_echo_n "(cached) " >&6
19544 else
19545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19546 /* end confdefs.h.  */
19547 #include <sys/types.h>
19548 #include <stdint.h>
19549 int
19550 main ()
19551 {
19552 uintmax_t i = (uintmax_t) -1;
19553   ;
19554   return 0;
19555 }
19556 _ACEOF
19557 if ac_fn_c_try_compile "$LINENO"; then :
19558   gl_cv_header_stdint_h=yes
19559 else
19560   gl_cv_header_stdint_h=no
19561 fi
19562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19563 fi
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19565 $as_echo "$gl_cv_header_stdint_h" >&6; }
19566   if test $gl_cv_header_stdint_h = yes; then
19567
19568 cat >>confdefs.h <<_ACEOF
19569 #define HAVE_STDINT_H_WITH_UINTMAX 1
19570 _ACEOF
19571
19572   fi
19573
19574
19575
19576
19577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19578 $as_echo_n "checking for intmax_t... " >&6; }
19579 if ${gt_cv_c_intmax_t+:} false; then :
19580   $as_echo_n "(cached) " >&6
19581 else
19582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19583 /* end confdefs.h.  */
19584
19585 #include <stddef.h>
19586 #include <stdlib.h>
19587 #if HAVE_STDINT_H_WITH_UINTMAX
19588 #include <stdint.h>
19589 #endif
19590 #if HAVE_INTTYPES_H_WITH_UINTMAX
19591 #include <inttypes.h>
19592 #endif
19593
19594 int
19595 main ()
19596 {
19597 intmax_t x = -1;
19598   ;
19599   return 0;
19600 }
19601 _ACEOF
19602 if ac_fn_c_try_compile "$LINENO"; then :
19603   gt_cv_c_intmax_t=yes
19604 else
19605   gt_cv_c_intmax_t=no
19606 fi
19607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19608 fi
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19610 $as_echo "$gt_cv_c_intmax_t" >&6; }
19611   if test $gt_cv_c_intmax_t = yes; then
19612
19613 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19614
19615   fi
19616
19617
19618
19619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19620 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19621 if ${gt_cv_func_printf_posix+:} false; then :
19622   $as_echo_n "(cached) " >&6
19623 else
19624
19625       if test "$cross_compiling" = yes; then :
19626
19627         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19628 /* end confdefs.h.  */
19629
19630 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19631   notposix
19632 #endif
19633
19634 _ACEOF
19635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19636   $EGREP "notposix" >/dev/null 2>&1; then :
19637   gt_cv_func_printf_posix="guessing no"
19638 else
19639   gt_cv_func_printf_posix="guessing yes"
19640 fi
19641 rm -f conftest*
19642
19643
19644 else
19645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19646 /* end confdefs.h.  */
19647
19648 #include <stdio.h>
19649 #include <string.h>
19650 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19651    dollar expansion (possibly an autoconf bug).  */
19652 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19653 static char buf[100];
19654 int main ()
19655 {
19656   sprintf (buf, format, 33, 55);
19657   return (strcmp (buf, "55 33") != 0);
19658 }
19659 _ACEOF
19660 if ac_fn_c_try_run "$LINENO"; then :
19661   gt_cv_func_printf_posix=yes
19662 else
19663   gt_cv_func_printf_posix=no
19664 fi
19665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19666   conftest.$ac_objext conftest.beam conftest.$ac_ext
19667 fi
19668
19669
19670 fi
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19672 $as_echo "$gt_cv_func_printf_posix" >&6; }
19673   case $gt_cv_func_printf_posix in
19674     *yes)
19675
19676 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19677
19678       ;;
19679   esac
19680
19681 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19682 # for constant arguments.  Useless!
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19684 $as_echo_n "checking for working alloca.h... " >&6; }
19685 if ${ac_cv_working_alloca_h+:} false; then :
19686   $as_echo_n "(cached) " >&6
19687 else
19688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19689 /* end confdefs.h.  */
19690 #include <alloca.h>
19691 int
19692 main ()
19693 {
19694 char *p = (char *) alloca (2 * sizeof (int));
19695                           if (p) return 0;
19696   ;
19697   return 0;
19698 }
19699 _ACEOF
19700 if ac_fn_c_try_link "$LINENO"; then :
19701   ac_cv_working_alloca_h=yes
19702 else
19703   ac_cv_working_alloca_h=no
19704 fi
19705 rm -f core conftest.err conftest.$ac_objext \
19706     conftest$ac_exeext conftest.$ac_ext
19707 fi
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19709 $as_echo "$ac_cv_working_alloca_h" >&6; }
19710 if test $ac_cv_working_alloca_h = yes; then
19711
19712 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19713
19714 fi
19715
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19717 $as_echo_n "checking for alloca... " >&6; }
19718 if ${ac_cv_func_alloca_works+:} false; then :
19719   $as_echo_n "(cached) " >&6
19720 else
19721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19722 /* end confdefs.h.  */
19723 #ifdef __GNUC__
19724 # define alloca __builtin_alloca
19725 #else
19726 # ifdef _MSC_VER
19727 #  include <malloc.h>
19728 #  define alloca _alloca
19729 # else
19730 #  ifdef HAVE_ALLOCA_H
19731 #   include <alloca.h>
19732 #  else
19733 #   ifdef _AIX
19734  #pragma alloca
19735 #   else
19736 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19737 void *alloca (size_t);
19738 #    endif
19739 #   endif
19740 #  endif
19741 # endif
19742 #endif
19743
19744 int
19745 main ()
19746 {
19747 char *p = (char *) alloca (1);
19748                                     if (p) return 0;
19749   ;
19750   return 0;
19751 }
19752 _ACEOF
19753 if ac_fn_c_try_link "$LINENO"; then :
19754   ac_cv_func_alloca_works=yes
19755 else
19756   ac_cv_func_alloca_works=no
19757 fi
19758 rm -f core conftest.err conftest.$ac_objext \
19759     conftest$ac_exeext conftest.$ac_ext
19760 fi
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19762 $as_echo "$ac_cv_func_alloca_works" >&6; }
19763
19764 if test $ac_cv_func_alloca_works = yes; then
19765
19766 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19767
19768 else
19769   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19770 # that cause trouble.  Some versions do not even contain alloca or
19771 # contain a buggy version.  If you still want to use their alloca,
19772 # use ar to extract alloca.o from them instead of compiling alloca.c.
19773
19774 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19775
19776 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19777
19778
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19780 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19781 if ${ac_cv_os_cray+:} false; then :
19782   $as_echo_n "(cached) " >&6
19783 else
19784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19785 /* end confdefs.h.  */
19786 #if defined CRAY && ! defined CRAY2
19787 webecray
19788 #else
19789 wenotbecray
19790 #endif
19791
19792 _ACEOF
19793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19794   $EGREP "webecray" >/dev/null 2>&1; then :
19795   ac_cv_os_cray=yes
19796 else
19797   ac_cv_os_cray=no
19798 fi
19799 rm -f conftest*
19800
19801 fi
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19803 $as_echo "$ac_cv_os_cray" >&6; }
19804 if test $ac_cv_os_cray = yes; then
19805   for ac_func in _getb67 GETB67 getb67; do
19806     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19807 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19808 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19809
19810 cat >>confdefs.h <<_ACEOF
19811 #define CRAY_STACKSEG_END $ac_func
19812 _ACEOF
19813
19814     break
19815 fi
19816
19817   done
19818 fi
19819
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19821 $as_echo_n "checking stack direction for C alloca... " >&6; }
19822 if ${ac_cv_c_stack_direction+:} false; then :
19823   $as_echo_n "(cached) " >&6
19824 else
19825   if test "$cross_compiling" = yes; then :
19826   ac_cv_c_stack_direction=0
19827 else
19828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19829 /* end confdefs.h.  */
19830 $ac_includes_default
19831 int
19832 find_stack_direction (int *addr, int depth)
19833 {
19834   int dir, dummy = 0;
19835   if (! addr)
19836     addr = &dummy;
19837   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19838   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19839   return dir + dummy;
19840 }
19841
19842 int
19843 main (int argc, char **argv)
19844 {
19845   return find_stack_direction (0, argc + !argv + 20) < 0;
19846 }
19847 _ACEOF
19848 if ac_fn_c_try_run "$LINENO"; then :
19849   ac_cv_c_stack_direction=1
19850 else
19851   ac_cv_c_stack_direction=-1
19852 fi
19853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19854   conftest.$ac_objext conftest.beam conftest.$ac_ext
19855 fi
19856
19857 fi
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19859 $as_echo "$ac_cv_c_stack_direction" >&6; }
19860 cat >>confdefs.h <<_ACEOF
19861 #define STACK_DIRECTION $ac_cv_c_stack_direction
19862 _ACEOF
19863
19864
19865 fi
19866
19867
19868
19869
19870   for ac_header in $ac_header_list
19871 do :
19872   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19873 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19874 "
19875 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19876   cat >>confdefs.h <<_ACEOF
19877 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19878 _ACEOF
19879
19880 fi
19881
19882 done
19883
19884
19885
19886
19887
19888
19889
19890
19891 for ac_func in getpagesize
19892 do :
19893   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19894 if test "x$ac_cv_func_getpagesize" = xyes; then :
19895   cat >>confdefs.h <<_ACEOF
19896 #define HAVE_GETPAGESIZE 1
19897 _ACEOF
19898
19899 fi
19900 done
19901
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19903 $as_echo_n "checking for working mmap... " >&6; }
19904 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19905   $as_echo_n "(cached) " >&6
19906 else
19907   if test "$cross_compiling" = yes; then :
19908   ac_cv_func_mmap_fixed_mapped=no
19909 else
19910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19911 /* end confdefs.h.  */
19912 $ac_includes_default
19913 /* malloc might have been renamed as rpl_malloc. */
19914 #undef malloc
19915
19916 /* Thanks to Mike Haertel and Jim Avera for this test.
19917    Here is a matrix of mmap possibilities:
19918         mmap private not fixed
19919         mmap private fixed at somewhere currently unmapped
19920         mmap private fixed at somewhere already mapped
19921         mmap shared not fixed
19922         mmap shared fixed at somewhere currently unmapped
19923         mmap shared fixed at somewhere already mapped
19924    For private mappings, we should verify that changes cannot be read()
19925    back from the file, nor mmap's back from the file at a different
19926    address.  (There have been systems where private was not correctly
19927    implemented like the infamous i386 svr4.0, and systems where the
19928    VM page cache was not coherent with the file system buffer cache
19929    like early versions of FreeBSD and possibly contemporary NetBSD.)
19930    For shared mappings, we should conversely verify that changes get
19931    propagated back to all the places they're supposed to be.
19932
19933    Grep wants private fixed already mapped.
19934    The main things grep needs to know about mmap are:
19935    * does it exist and is it safe to write into the mmap'd area
19936    * how to use it (BSD variants)  */
19937
19938 #include <fcntl.h>
19939 #include <sys/mman.h>
19940
19941 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19942 char *malloc ();
19943 #endif
19944
19945 /* This mess was copied from the GNU getpagesize.h.  */
19946 #ifndef HAVE_GETPAGESIZE
19947 # ifdef _SC_PAGESIZE
19948 #  define getpagesize() sysconf(_SC_PAGESIZE)
19949 # else /* no _SC_PAGESIZE */
19950 #  ifdef HAVE_SYS_PARAM_H
19951 #   include <sys/param.h>
19952 #   ifdef EXEC_PAGESIZE
19953 #    define getpagesize() EXEC_PAGESIZE
19954 #   else /* no EXEC_PAGESIZE */
19955 #    ifdef NBPG
19956 #     define getpagesize() NBPG * CLSIZE
19957 #     ifndef CLSIZE
19958 #      define CLSIZE 1
19959 #     endif /* no CLSIZE */
19960 #    else /* no NBPG */
19961 #     ifdef NBPC
19962 #      define getpagesize() NBPC
19963 #     else /* no NBPC */
19964 #      ifdef PAGESIZE
19965 #       define getpagesize() PAGESIZE
19966 #      endif /* PAGESIZE */
19967 #     endif /* no NBPC */
19968 #    endif /* no NBPG */
19969 #   endif /* no EXEC_PAGESIZE */
19970 #  else /* no HAVE_SYS_PARAM_H */
19971 #   define getpagesize() 8192   /* punt totally */
19972 #  endif /* no HAVE_SYS_PARAM_H */
19973 # endif /* no _SC_PAGESIZE */
19974
19975 #endif /* no HAVE_GETPAGESIZE */
19976
19977 int
19978 main ()
19979 {
19980   char *data, *data2, *data3;
19981   const char *cdata2;
19982   int i, pagesize;
19983   int fd, fd2;
19984
19985   pagesize = getpagesize ();
19986
19987   /* First, make a file with some known garbage in it. */
19988   data = (char *) malloc (pagesize);
19989   if (!data)
19990     return 1;
19991   for (i = 0; i < pagesize; ++i)
19992     *(data + i) = rand ();
19993   umask (0);
19994   fd = creat ("conftest.mmap", 0600);
19995   if (fd < 0)
19996     return 2;
19997   if (write (fd, data, pagesize) != pagesize)
19998     return 3;
19999   close (fd);
20000
20001   /* Next, check that the tail of a page is zero-filled.  File must have
20002      non-zero length, otherwise we risk SIGBUS for entire page.  */
20003   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
20004   if (fd2 < 0)
20005     return 4;
20006   cdata2 = "";
20007   if (write (fd2, cdata2, 1) != 1)
20008     return 5;
20009   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
20010   if (data2 == MAP_FAILED)
20011     return 6;
20012   for (i = 0; i < pagesize; ++i)
20013     if (*(data2 + i))
20014       return 7;
20015   close (fd2);
20016   if (munmap (data2, pagesize))
20017     return 8;
20018
20019   /* Next, try to mmap the file at a fixed address which already has
20020      something else allocated at it.  If we can, also make sure that
20021      we see the same garbage.  */
20022   fd = open ("conftest.mmap", O_RDWR);
20023   if (fd < 0)
20024     return 9;
20025   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20026                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20027     return 10;
20028   for (i = 0; i < pagesize; ++i)
20029     if (*(data + i) != *(data2 + i))
20030       return 11;
20031
20032   /* Finally, make sure that changes to the mapped area do not
20033      percolate back to the file as seen by read().  (This is a bug on
20034      some variants of i386 svr4.0.)  */
20035   for (i = 0; i < pagesize; ++i)
20036     *(data2 + i) = *(data2 + i) + 1;
20037   data3 = (char *) malloc (pagesize);
20038   if (!data3)
20039     return 12;
20040   if (read (fd, data3, pagesize) != pagesize)
20041     return 13;
20042   for (i = 0; i < pagesize; ++i)
20043     if (*(data + i) != *(data3 + i))
20044       return 14;
20045   close (fd);
20046   return 0;
20047 }
20048 _ACEOF
20049 if ac_fn_c_try_run "$LINENO"; then :
20050   ac_cv_func_mmap_fixed_mapped=yes
20051 else
20052   ac_cv_func_mmap_fixed_mapped=no
20053 fi
20054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20055   conftest.$ac_objext conftest.beam conftest.$ac_ext
20056 fi
20057
20058 fi
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20060 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20061 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20062
20063 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20064
20065 fi
20066 rm -f conftest.mmap conftest.txt
20067
20068
20069     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20070 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20071 if ${ac_cv_gnu_library_2_1+:} false; then :
20072   $as_echo_n "(cached) " >&6
20073 else
20074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20075 /* end confdefs.h.  */
20076
20077 #include <features.h>
20078 #ifdef __GNU_LIBRARY__
20079  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20080   Lucky GNU user
20081  #endif
20082 #endif
20083
20084 _ACEOF
20085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20086   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20087   ac_cv_gnu_library_2_1=yes
20088 else
20089   ac_cv_gnu_library_2_1=no
20090 fi
20091 rm -f conftest*
20092
20093
20094
20095 fi
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20097 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20098
20099     GLIBC21="$ac_cv_gnu_library_2_1"
20100
20101
20102
20103
20104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20105 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20106 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20107   $as_echo_n "(cached) " >&6
20108 else
20109
20110       if test "$cross_compiling" = yes; then :
20111
20112           # Guess based on the CPU.
20113           case "$host_cpu" in
20114             alpha* | i3456786 | m68k | s390*)
20115               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20116             *)
20117               gt_cv_int_divbyzero_sigfpe="guessing no";;
20118           esac
20119
20120 else
20121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20122 /* end confdefs.h.  */
20123
20124 #include <stdlib.h>
20125 #include <signal.h>
20126
20127 static void
20128 #ifdef __cplusplus
20129 sigfpe_handler (int sig)
20130 #else
20131 sigfpe_handler (sig) int sig;
20132 #endif
20133 {
20134   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20135   exit (sig != SIGFPE);
20136 }
20137
20138 int x = 1;
20139 int y = 0;
20140 int z;
20141 int nan;
20142
20143 int main ()
20144 {
20145   signal (SIGFPE, sigfpe_handler);
20146 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20147 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20148   signal (SIGTRAP, sigfpe_handler);
20149 #endif
20150 /* Linux/SPARC yields signal SIGILL.  */
20151 #if defined (__sparc__) && defined (__linux__)
20152   signal (SIGILL, sigfpe_handler);
20153 #endif
20154
20155   z = x / y;
20156   nan = y / y;
20157   exit (1);
20158 }
20159
20160 _ACEOF
20161 if ac_fn_c_try_run "$LINENO"; then :
20162   gt_cv_int_divbyzero_sigfpe=yes
20163 else
20164   gt_cv_int_divbyzero_sigfpe=no
20165 fi
20166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20167   conftest.$ac_objext conftest.beam conftest.$ac_ext
20168 fi
20169
20170
20171 fi
20172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20173 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20174   case "$gt_cv_int_divbyzero_sigfpe" in
20175     *yes) value=1;;
20176     *) value=0;;
20177   esac
20178
20179 cat >>confdefs.h <<_ACEOF
20180 #define INTDIV0_RAISES_SIGFPE $value
20181 _ACEOF
20182
20183
20184
20185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20186 $as_echo_n "checking for unsigned long long... " >&6; }
20187 if ${ac_cv_type_unsigned_long_long+:} false; then :
20188   $as_echo_n "(cached) " >&6
20189 else
20190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20191 /* end confdefs.h.  */
20192 unsigned long long ull = 1ULL; int i = 63;
20193 int
20194 main ()
20195 {
20196 unsigned long long ullmax = (unsigned long long) -1;
20197      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20198   ;
20199   return 0;
20200 }
20201 _ACEOF
20202 if ac_fn_c_try_link "$LINENO"; then :
20203   ac_cv_type_unsigned_long_long=yes
20204 else
20205   ac_cv_type_unsigned_long_long=no
20206 fi
20207 rm -f core conftest.err conftest.$ac_objext \
20208     conftest$ac_exeext conftest.$ac_ext
20209 fi
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20211 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20212   if test $ac_cv_type_unsigned_long_long = yes; then
20213
20214 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20215
20216   fi
20217
20218
20219
20220
20221   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20222
20223     test $ac_cv_type_unsigned_long_long = yes \
20224       && ac_type='unsigned long long' \
20225       || ac_type='unsigned long'
20226
20227 cat >>confdefs.h <<_ACEOF
20228 #define uintmax_t $ac_type
20229 _ACEOF
20230
20231   else
20232
20233 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20234
20235   fi
20236
20237
20238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20239 $as_echo_n "checking for inttypes.h... " >&6; }
20240 if ${gt_cv_header_inttypes_h+:} false; then :
20241   $as_echo_n "(cached) " >&6
20242 else
20243
20244     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20245 /* end confdefs.h.  */
20246 #include <sys/types.h>
20247 #include <inttypes.h>
20248 int
20249 main ()
20250 {
20251
20252   ;
20253   return 0;
20254 }
20255 _ACEOF
20256 if ac_fn_c_try_compile "$LINENO"; then :
20257   gt_cv_header_inttypes_h=yes
20258 else
20259   gt_cv_header_inttypes_h=no
20260 fi
20261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20262
20263 fi
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20265 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20266   if test $gt_cv_header_inttypes_h = yes; then
20267
20268 cat >>confdefs.h <<_ACEOF
20269 #define HAVE_INTTYPES_H 1
20270 _ACEOF
20271
20272   fi
20273
20274
20275
20276   if test $gt_cv_header_inttypes_h = yes; then
20277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20278 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20279 if ${gt_cv_inttypes_pri_broken+:} false; then :
20280   $as_echo_n "(cached) " >&6
20281 else
20282
20283         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20284 /* end confdefs.h.  */
20285 #include <inttypes.h>
20286 #ifdef PRId32
20287 char *p = PRId32;
20288 #endif
20289
20290 int
20291 main ()
20292 {
20293
20294   ;
20295   return 0;
20296 }
20297 _ACEOF
20298 if ac_fn_c_try_compile "$LINENO"; then :
20299   gt_cv_inttypes_pri_broken=no
20300 else
20301   gt_cv_inttypes_pri_broken=yes
20302 fi
20303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20304
20305 fi
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20307 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20308   fi
20309   if test "$gt_cv_inttypes_pri_broken" = yes; then
20310
20311 cat >>confdefs.h <<_ACEOF
20312 #define PRI_MACROS_BROKEN 1
20313 _ACEOF
20314
20315   fi
20316
20317
20318   for ac_header in stdint.h
20319 do :
20320   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20321 if test "x$ac_cv_header_stdint_h" = xyes; then :
20322   cat >>confdefs.h <<_ACEOF
20323 #define HAVE_STDINT_H 1
20324 _ACEOF
20325
20326 fi
20327
20328 done
20329
20330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20331 $as_echo_n "checking for SIZE_MAX... " >&6; }
20332   result=
20333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20334 /* end confdefs.h.  */
20335
20336 #include <limits.h>
20337 #if HAVE_STDINT_H
20338 #include <stdint.h>
20339 #endif
20340 #ifdef SIZE_MAX
20341 Found it
20342 #endif
20343
20344 _ACEOF
20345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20346   $EGREP "Found it" >/dev/null 2>&1; then :
20347   result=yes
20348 fi
20349 rm -f conftest*
20350
20351   if test -z "$result"; then
20352                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
20353
20354 else
20355   result=?
20356 fi
20357
20358
20359     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
20360
20361 else
20362   result=?
20363 fi
20364
20365
20366     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
20367
20368 else
20369   result=?
20370 fi
20371
20372
20373     if test "$fits_in_uint" = 1; then
20374                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20375 /* end confdefs.h.  */
20376 #include <stddef.h>
20377         extern size_t foo;
20378         extern unsigned long foo;
20379
20380 int
20381 main ()
20382 {
20383
20384   ;
20385   return 0;
20386 }
20387 _ACEOF
20388 if ac_fn_c_try_compile "$LINENO"; then :
20389   fits_in_uint=0
20390 fi
20391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20392     fi
20393     if test -z "$result"; then
20394       if test "$fits_in_uint" = 1; then
20395         result="$res_hi$res_lo"U
20396       else
20397         result="$res_hi$res_lo"UL
20398       fi
20399     else
20400             result='~(size_t)0'
20401     fi
20402   fi
20403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20404 $as_echo "$result" >&6; }
20405   if test "$result" != yes; then
20406
20407 cat >>confdefs.h <<_ACEOF
20408 #define SIZE_MAX $result
20409 _ACEOF
20410
20411   fi
20412
20413
20414
20415
20416   for ac_header in stdint.h
20417 do :
20418   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20419 if test "x$ac_cv_header_stdint_h" = xyes; then :
20420   cat >>confdefs.h <<_ACEOF
20421 #define HAVE_STDINT_H 1
20422 _ACEOF
20423
20424 fi
20425
20426 done
20427
20428
20429
20430
20431
20432
20433
20434
20435   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20436 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20437
20438 else
20439
20440 $as_echo "#define ptrdiff_t long" >>confdefs.h
20441
20442
20443 fi
20444
20445   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20446 stdlib.h string.h unistd.h sys/param.h
20447 do :
20448   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20449 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20450 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20451   cat >>confdefs.h <<_ACEOF
20452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20453 _ACEOF
20454
20455 fi
20456
20457 done
20458
20459   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20460 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20461 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20462 __fsetlocking
20463 do :
20464   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20465 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20466 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20467   cat >>confdefs.h <<_ACEOF
20468 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20469 _ACEOF
20470
20471 fi
20472 done
20473
20474
20475
20476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20477 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20478 if ${ac_cv_have_decl__snprintf+:} false; then :
20479   $as_echo_n "(cached) " >&6
20480 else
20481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20482 /* end confdefs.h.  */
20483 #include <stdio.h>
20484 int
20485 main ()
20486 {
20487
20488 #ifndef _snprintf
20489   char *p = (char *) _snprintf;
20490 #endif
20491
20492   ;
20493   return 0;
20494 }
20495 _ACEOF
20496 if ac_fn_c_try_compile "$LINENO"; then :
20497   ac_cv_have_decl__snprintf=yes
20498 else
20499   ac_cv_have_decl__snprintf=no
20500 fi
20501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20502 fi
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20504 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20505   if test $ac_cv_have_decl__snprintf = yes; then
20506     gt_value=1
20507   else
20508     gt_value=0
20509   fi
20510
20511 cat >>confdefs.h <<_ACEOF
20512 #define HAVE_DECL__SNPRINTF $gt_value
20513 _ACEOF
20514
20515
20516
20517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20518 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20519 if ${ac_cv_have_decl__snwprintf+:} false; then :
20520   $as_echo_n "(cached) " >&6
20521 else
20522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20523 /* end confdefs.h.  */
20524 #include <stdio.h>
20525 int
20526 main ()
20527 {
20528
20529 #ifndef _snwprintf
20530   char *p = (char *) _snwprintf;
20531 #endif
20532
20533   ;
20534   return 0;
20535 }
20536 _ACEOF
20537 if ac_fn_c_try_compile "$LINENO"; then :
20538   ac_cv_have_decl__snwprintf=yes
20539 else
20540   ac_cv_have_decl__snwprintf=no
20541 fi
20542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20543 fi
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20545 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20546   if test $ac_cv_have_decl__snwprintf = yes; then
20547     gt_value=1
20548   else
20549     gt_value=0
20550   fi
20551
20552 cat >>confdefs.h <<_ACEOF
20553 #define HAVE_DECL__SNWPRINTF $gt_value
20554 _ACEOF
20555
20556
20557
20558
20559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20560 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20561 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20562   $as_echo_n "(cached) " >&6
20563 else
20564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20565 /* end confdefs.h.  */
20566 #include <stdio.h>
20567 int
20568 main ()
20569 {
20570
20571 #ifndef feof_unlocked
20572   char *p = (char *) feof_unlocked;
20573 #endif
20574
20575   ;
20576   return 0;
20577 }
20578 _ACEOF
20579 if ac_fn_c_try_compile "$LINENO"; then :
20580   ac_cv_have_decl_feof_unlocked=yes
20581 else
20582   ac_cv_have_decl_feof_unlocked=no
20583 fi
20584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20585 fi
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20587 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20588   if test $ac_cv_have_decl_feof_unlocked = yes; then
20589     gt_value=1
20590   else
20591     gt_value=0
20592   fi
20593
20594 cat >>confdefs.h <<_ACEOF
20595 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20596 _ACEOF
20597
20598
20599
20600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20601 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20602 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20603   $as_echo_n "(cached) " >&6
20604 else
20605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20606 /* end confdefs.h.  */
20607 #include <stdio.h>
20608 int
20609 main ()
20610 {
20611
20612 #ifndef fgets_unlocked
20613   char *p = (char *) fgets_unlocked;
20614 #endif
20615
20616   ;
20617   return 0;
20618 }
20619 _ACEOF
20620 if ac_fn_c_try_compile "$LINENO"; then :
20621   ac_cv_have_decl_fgets_unlocked=yes
20622 else
20623   ac_cv_have_decl_fgets_unlocked=no
20624 fi
20625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20626 fi
20627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20628 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20629   if test $ac_cv_have_decl_fgets_unlocked = yes; then
20630     gt_value=1
20631   else
20632     gt_value=0
20633   fi
20634
20635 cat >>confdefs.h <<_ACEOF
20636 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20637 _ACEOF
20638
20639
20640
20641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20642 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20643 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20644   $as_echo_n "(cached) " >&6
20645 else
20646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20647 /* end confdefs.h.  */
20648 #include <stdio.h>
20649 int
20650 main ()
20651 {
20652
20653 #ifndef getc_unlocked
20654   char *p = (char *) getc_unlocked;
20655 #endif
20656
20657   ;
20658   return 0;
20659 }
20660 _ACEOF
20661 if ac_fn_c_try_compile "$LINENO"; then :
20662   ac_cv_have_decl_getc_unlocked=yes
20663 else
20664   ac_cv_have_decl_getc_unlocked=no
20665 fi
20666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20667 fi
20668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20669 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20670   if test $ac_cv_have_decl_getc_unlocked = yes; then
20671     gt_value=1
20672   else
20673     gt_value=0
20674   fi
20675
20676 cat >>confdefs.h <<_ACEOF
20677 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20678 _ACEOF
20679
20680
20681
20682   case $gt_cv_func_printf_posix in
20683     *yes) HAVE_POSIX_PRINTF=1 ;;
20684     *) HAVE_POSIX_PRINTF=0 ;;
20685   esac
20686
20687   if test "$ac_cv_func_asprintf" = yes; then
20688     HAVE_ASPRINTF=1
20689   else
20690     HAVE_ASPRINTF=0
20691   fi
20692
20693   if test "$ac_cv_func_snprintf" = yes; then
20694     HAVE_SNPRINTF=1
20695   else
20696     HAVE_SNPRINTF=0
20697   fi
20698
20699   if test "$ac_cv_func_wprintf" = yes; then
20700     HAVE_WPRINTF=1
20701   else
20702     HAVE_WPRINTF=0
20703   fi
20704
20705
20706
20707
20708
20709
20710
20711           am_save_CPPFLAGS="$CPPFLAGS"
20712
20713   for element in $INCICONV; do
20714     haveit=
20715     for x in $CPPFLAGS; do
20716
20717   acl_save_prefix="$prefix"
20718   prefix="$acl_final_prefix"
20719   acl_save_exec_prefix="$exec_prefix"
20720   exec_prefix="$acl_final_exec_prefix"
20721   eval x=\"$x\"
20722   exec_prefix="$acl_save_exec_prefix"
20723   prefix="$acl_save_prefix"
20724
20725       if test "X$x" = "X$element"; then
20726         haveit=yes
20727         break
20728       fi
20729     done
20730     if test -z "$haveit"; then
20731       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20732     fi
20733   done
20734
20735
20736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20737 $as_echo_n "checking for iconv... " >&6; }
20738 if ${am_cv_func_iconv+:} false; then :
20739   $as_echo_n "(cached) " >&6
20740 else
20741
20742     am_cv_func_iconv="no, consider installing GNU libiconv"
20743     am_cv_lib_iconv=no
20744     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20745 /* end confdefs.h.  */
20746 #include <stdlib.h>
20747 #include <iconv.h>
20748 int
20749 main ()
20750 {
20751 iconv_t cd = iconv_open("","");
20752        iconv(cd,NULL,NULL,NULL,NULL);
20753        iconv_close(cd);
20754   ;
20755   return 0;
20756 }
20757 _ACEOF
20758 if ac_fn_c_try_link "$LINENO"; then :
20759   am_cv_func_iconv=yes
20760 fi
20761 rm -f core conftest.err conftest.$ac_objext \
20762     conftest$ac_exeext conftest.$ac_ext
20763     if test "$am_cv_func_iconv" != yes; then
20764       am_save_LIBS="$LIBS"
20765       LIBS="$LIBS $LIBICONV"
20766       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20767 /* end confdefs.h.  */
20768 #include <stdlib.h>
20769 #include <iconv.h>
20770 int
20771 main ()
20772 {
20773 iconv_t cd = iconv_open("","");
20774          iconv(cd,NULL,NULL,NULL,NULL);
20775          iconv_close(cd);
20776   ;
20777   return 0;
20778 }
20779 _ACEOF
20780 if ac_fn_c_try_link "$LINENO"; then :
20781   am_cv_lib_iconv=yes
20782         am_cv_func_iconv=yes
20783 fi
20784 rm -f core conftest.err conftest.$ac_objext \
20785     conftest$ac_exeext conftest.$ac_ext
20786       LIBS="$am_save_LIBS"
20787     fi
20788
20789 fi
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20791 $as_echo "$am_cv_func_iconv" >&6; }
20792   if test "$am_cv_func_iconv" = yes; then
20793
20794 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20795
20796   fi
20797   if test "$am_cv_lib_iconv" = yes; then
20798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20799 $as_echo_n "checking how to link with libiconv... " >&6; }
20800     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20801 $as_echo "$LIBICONV" >&6; }
20802   else
20803             CPPFLAGS="$am_save_CPPFLAGS"
20804     LIBICONV=
20805     LTLIBICONV=
20806   fi
20807
20808
20809
20810   if test "$am_cv_func_iconv" = yes; then
20811     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20812 $as_echo_n "checking for iconv declaration... " >&6; }
20813     if ${am_cv_proto_iconv+:} false; then :
20814   $as_echo_n "(cached) " >&6
20815 else
20816
20817       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20818 /* end confdefs.h.  */
20819
20820 #include <stdlib.h>
20821 #include <iconv.h>
20822 extern
20823 #ifdef __cplusplus
20824 "C"
20825 #endif
20826 #if defined(__STDC__) || defined(__cplusplus)
20827 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20828 #else
20829 size_t iconv();
20830 #endif
20831
20832 int
20833 main ()
20834 {
20835
20836   ;
20837   return 0;
20838 }
20839 _ACEOF
20840 if ac_fn_c_try_compile "$LINENO"; then :
20841   am_cv_proto_iconv_arg1=""
20842 else
20843   am_cv_proto_iconv_arg1="const"
20844 fi
20845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20846       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);"
20847 fi
20848
20849     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20850     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20851          }$am_cv_proto_iconv" >&5
20852 $as_echo "${ac_t:-
20853          }$am_cv_proto_iconv" >&6; }
20854
20855 cat >>confdefs.h <<_ACEOF
20856 #define ICONV_CONST $am_cv_proto_iconv_arg1
20857 _ACEOF
20858
20859   fi
20860
20861
20862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20863 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20864 if ${am_cv_langinfo_codeset+:} false; then :
20865   $as_echo_n "(cached) " >&6
20866 else
20867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20868 /* end confdefs.h.  */
20869 #include <langinfo.h>
20870 int
20871 main ()
20872 {
20873 char* cs = nl_langinfo(CODESET);
20874   ;
20875   return 0;
20876 }
20877 _ACEOF
20878 if ac_fn_c_try_link "$LINENO"; then :
20879   am_cv_langinfo_codeset=yes
20880 else
20881   am_cv_langinfo_codeset=no
20882 fi
20883 rm -f core conftest.err conftest.$ac_objext \
20884     conftest$ac_exeext conftest.$ac_ext
20885
20886 fi
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20888 $as_echo "$am_cv_langinfo_codeset" >&6; }
20889   if test $am_cv_langinfo_codeset = yes; then
20890
20891 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20892
20893   fi
20894
20895   if test $ac_cv_header_locale_h = yes; then
20896
20897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20898 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20899 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20900   $as_echo_n "(cached) " >&6
20901 else
20902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20903 /* end confdefs.h.  */
20904 #include <locale.h>
20905 int
20906 main ()
20907 {
20908 return LC_MESSAGES
20909   ;
20910   return 0;
20911 }
20912 _ACEOF
20913 if ac_fn_c_try_link "$LINENO"; then :
20914   gt_cv_val_LC_MESSAGES=yes
20915 else
20916   gt_cv_val_LC_MESSAGES=no
20917 fi
20918 rm -f core conftest.err conftest.$ac_objext \
20919     conftest$ac_exeext conftest.$ac_ext
20920 fi
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20922 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20923   if test $gt_cv_val_LC_MESSAGES = yes; then
20924
20925 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20926
20927   fi
20928
20929   fi
20930
20931   if test -n "$INTL_MACOSX_LIBS"; then
20932     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20933   fi
20934
20935                       for ac_prog in bison
20936 do
20937   # Extract the first word of "$ac_prog", so it can be a program name with args.
20938 set dummy $ac_prog; ac_word=$2
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20940 $as_echo_n "checking for $ac_word... " >&6; }
20941 if ${ac_cv_prog_INTLBISON+:} false; then :
20942   $as_echo_n "(cached) " >&6
20943 else
20944   if test -n "$INTLBISON"; then
20945   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20946 else
20947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20948 for as_dir in $PATH
20949 do
20950   IFS=$as_save_IFS
20951   test -z "$as_dir" && as_dir=.
20952     for ac_exec_ext in '' $ac_executable_extensions; do
20953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20954     ac_cv_prog_INTLBISON="$ac_prog"
20955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20956     break 2
20957   fi
20958 done
20959   done
20960 IFS=$as_save_IFS
20961
20962 fi
20963 fi
20964 INTLBISON=$ac_cv_prog_INTLBISON
20965 if test -n "$INTLBISON"; then
20966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20967 $as_echo "$INTLBISON" >&6; }
20968 else
20969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20970 $as_echo "no" >&6; }
20971 fi
20972
20973
20974   test -n "$INTLBISON" && break
20975 done
20976
20977   if test -z "$INTLBISON"; then
20978     ac_verc_fail=yes
20979   else
20980         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20981 $as_echo_n "checking version of bison... " >&6; }
20982     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20983     case $ac_prog_version in
20984       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20985       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20986          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20987       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20988     esac
20989     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20990 $as_echo "$ac_prog_version" >&6; }
20991   fi
20992   if test $ac_verc_fail = yes; then
20993     INTLBISON=:
20994   fi
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
21012 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
21013 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
21014   $as_echo_n "(cached) " >&6
21015 else
21016   gt_save_CPPFLAGS="$CPPFLAGS"
21017      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21018      gt_save_LIBS="$LIBS"
21019      LIBS="$LIBS -framework CoreFoundation"
21020      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21021 /* end confdefs.h.  */
21022 #include <CFPreferences.h>
21023 int
21024 main ()
21025 {
21026 CFPreferencesCopyAppValue(NULL, NULL)
21027   ;
21028   return 0;
21029 }
21030 _ACEOF
21031 if ac_fn_c_try_link "$LINENO"; then :
21032   gt_cv_func_CFPreferencesCopyAppValue=yes
21033 else
21034   gt_cv_func_CFPreferencesCopyAppValue=no
21035 fi
21036 rm -f core conftest.err conftest.$ac_objext \
21037     conftest$ac_exeext conftest.$ac_ext
21038      CPPFLAGS="$gt_save_CPPFLAGS"
21039      LIBS="$gt_save_LIBS"
21040 fi
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21042 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21043   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21044
21045 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21046
21047   fi
21048     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21049 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21050 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21051   $as_echo_n "(cached) " >&6
21052 else
21053   gt_save_CPPFLAGS="$CPPFLAGS"
21054      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21055      gt_save_LIBS="$LIBS"
21056      LIBS="$LIBS -framework CoreFoundation"
21057      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21058 /* end confdefs.h.  */
21059 #include <CFLocale.h>
21060 int
21061 main ()
21062 {
21063 CFLocaleCopyCurrent();
21064   ;
21065   return 0;
21066 }
21067 _ACEOF
21068 if ac_fn_c_try_link "$LINENO"; then :
21069   gt_cv_func_CFLocaleCopyCurrent=yes
21070 else
21071   gt_cv_func_CFLocaleCopyCurrent=no
21072 fi
21073 rm -f core conftest.err conftest.$ac_objext \
21074     conftest$ac_exeext conftest.$ac_ext
21075      CPPFLAGS="$gt_save_CPPFLAGS"
21076      LIBS="$gt_save_LIBS"
21077 fi
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21079 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21080   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21081
21082 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21083
21084   fi
21085   INTL_MACOSX_LIBS=
21086   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21087     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21088   fi
21089
21090
21091
21092
21093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21094 $as_echo_n "checking whether NLS is requested... " >&6; }
21095     # Check whether --enable-nls was given.
21096 if test "${enable_nls+set}" = set; then :
21097   enableval=$enable_nls; USE_NLS=$enableval
21098 else
21099   USE_NLS=yes
21100 fi
21101
21102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21103 $as_echo "$USE_NLS" >&6; }
21104
21105
21106
21107
21108     BUILD_INCLUDED_LIBINTL=no
21109     USE_INCLUDED_LIBINTL=no
21110
21111   LIBINTL=
21112   LTLIBINTL=
21113   POSUB=
21114
21115     if test "$USE_NLS" = "yes"; then
21116     gt_use_preinstalled_gnugettext=no
21117
21118       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21119 $as_echo_n "checking whether included gettext is requested... " >&6; }
21120
21121 # Check whether --with-included-gettext was given.
21122 if test "${with_included_gettext+set}" = set; then :
21123   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21124 else
21125   nls_cv_force_use_gnu_gettext=no
21126 fi
21127
21128       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21129 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21130
21131       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21132       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21133
21134
21135
21136
21137
21138
21139         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21140 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21141 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21142   $as_echo_n "(cached) " >&6
21143 else
21144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21145 /* end confdefs.h.  */
21146 #include <libintl.h>
21147 extern int _nl_msg_cat_cntr;
21148 extern int *_nl_domain_bindings;
21149 int
21150 main ()
21151 {
21152 bindtextdomain ("", "");
21153 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21154   ;
21155   return 0;
21156 }
21157 _ACEOF
21158 if ac_fn_c_try_link "$LINENO"; then :
21159   gt_cv_func_gnugettext1_libc=yes
21160 else
21161   gt_cv_func_gnugettext1_libc=no
21162 fi
21163 rm -f core conftest.err conftest.$ac_objext \
21164     conftest$ac_exeext conftest.$ac_ext
21165 fi
21166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21167 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21168
21169         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21170
21171
21172
21173     use_additional=yes
21174
21175   acl_save_prefix="$prefix"
21176   prefix="$acl_final_prefix"
21177   acl_save_exec_prefix="$exec_prefix"
21178   exec_prefix="$acl_final_exec_prefix"
21179
21180     eval additional_includedir=\"$includedir\"
21181     eval additional_libdir=\"$libdir\"
21182
21183   exec_prefix="$acl_save_exec_prefix"
21184   prefix="$acl_save_prefix"
21185
21186
21187 # Check whether --with-libintl-prefix was given.
21188 if test "${with_libintl_prefix+set}" = set; then :
21189   withval=$with_libintl_prefix;
21190     if test "X$withval" = "Xno"; then
21191       use_additional=no
21192     else
21193       if test "X$withval" = "X"; then
21194
21195   acl_save_prefix="$prefix"
21196   prefix="$acl_final_prefix"
21197   acl_save_exec_prefix="$exec_prefix"
21198   exec_prefix="$acl_final_exec_prefix"
21199
21200           eval additional_includedir=\"$includedir\"
21201           eval additional_libdir=\"$libdir\"
21202
21203   exec_prefix="$acl_save_exec_prefix"
21204   prefix="$acl_save_prefix"
21205
21206       else
21207         additional_includedir="$withval/include"
21208         additional_libdir="$withval/lib"
21209       fi
21210     fi
21211
21212 fi
21213
21214       LIBINTL=
21215   LTLIBINTL=
21216   INCINTL=
21217   rpathdirs=
21218   ltrpathdirs=
21219   names_already_handled=
21220   names_next_round='intl '
21221   while test -n "$names_next_round"; do
21222     names_this_round="$names_next_round"
21223     names_next_round=
21224     for name in $names_this_round; do
21225       already_handled=
21226       for n in $names_already_handled; do
21227         if test "$n" = "$name"; then
21228           already_handled=yes
21229           break
21230         fi
21231       done
21232       if test -z "$already_handled"; then
21233         names_already_handled="$names_already_handled $name"
21234                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21235         eval value=\"\$HAVE_LIB$uppername\"
21236         if test -n "$value"; then
21237           if test "$value" = yes; then
21238             eval value=\"\$LIB$uppername\"
21239             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21240             eval value=\"\$LTLIB$uppername\"
21241             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21242           else
21243                                     :
21244           fi
21245         else
21246                               found_dir=
21247           found_la=
21248           found_so=
21249           found_a=
21250           if test $use_additional = yes; then
21251             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21252               found_dir="$additional_libdir"
21253               found_so="$additional_libdir/lib$name.$shlibext"
21254               if test -f "$additional_libdir/lib$name.la"; then
21255                 found_la="$additional_libdir/lib$name.la"
21256               fi
21257             else
21258               if test -f "$additional_libdir/lib$name.$libext"; then
21259                 found_dir="$additional_libdir"
21260                 found_a="$additional_libdir/lib$name.$libext"
21261                 if test -f "$additional_libdir/lib$name.la"; then
21262                   found_la="$additional_libdir/lib$name.la"
21263                 fi
21264               fi
21265             fi
21266           fi
21267           if test "X$found_dir" = "X"; then
21268             for x in $LDFLAGS $LTLIBINTL; do
21269
21270   acl_save_prefix="$prefix"
21271   prefix="$acl_final_prefix"
21272   acl_save_exec_prefix="$exec_prefix"
21273   exec_prefix="$acl_final_exec_prefix"
21274   eval x=\"$x\"
21275   exec_prefix="$acl_save_exec_prefix"
21276   prefix="$acl_save_prefix"
21277
21278               case "$x" in
21279                 -L*)
21280                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21281                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21282                     found_dir="$dir"
21283                     found_so="$dir/lib$name.$shlibext"
21284                     if test -f "$dir/lib$name.la"; then
21285                       found_la="$dir/lib$name.la"
21286                     fi
21287                   else
21288                     if test -f "$dir/lib$name.$libext"; then
21289                       found_dir="$dir"
21290                       found_a="$dir/lib$name.$libext"
21291                       if test -f "$dir/lib$name.la"; then
21292                         found_la="$dir/lib$name.la"
21293                       fi
21294                     fi
21295                   fi
21296                   ;;
21297               esac
21298               if test "X$found_dir" != "X"; then
21299                 break
21300               fi
21301             done
21302           fi
21303           if test "X$found_dir" != "X"; then
21304                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21305             if test "X$found_so" != "X"; then
21306                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21307                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21308               else
21309                                                                                 haveit=
21310                 for x in $ltrpathdirs; do
21311                   if test "X$x" = "X$found_dir"; then
21312                     haveit=yes
21313                     break
21314                   fi
21315                 done
21316                 if test -z "$haveit"; then
21317                   ltrpathdirs="$ltrpathdirs $found_dir"
21318                 fi
21319                                 if test "$hardcode_direct" = yes; then
21320                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21321                 else
21322                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21323                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21324                                                             haveit=
21325                     for x in $rpathdirs; do
21326                       if test "X$x" = "X$found_dir"; then
21327                         haveit=yes
21328                         break
21329                       fi
21330                     done
21331                     if test -z "$haveit"; then
21332                       rpathdirs="$rpathdirs $found_dir"
21333                     fi
21334                   else
21335                                                                                 haveit=
21336                     for x in $LDFLAGS $LIBINTL; do
21337
21338   acl_save_prefix="$prefix"
21339   prefix="$acl_final_prefix"
21340   acl_save_exec_prefix="$exec_prefix"
21341   exec_prefix="$acl_final_exec_prefix"
21342   eval x=\"$x\"
21343   exec_prefix="$acl_save_exec_prefix"
21344   prefix="$acl_save_prefix"
21345
21346                       if test "X$x" = "X-L$found_dir"; then
21347                         haveit=yes
21348                         break
21349                       fi
21350                     done
21351                     if test -z "$haveit"; then
21352                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21353                     fi
21354                     if test "$hardcode_minus_L" != no; then
21355                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21356                     else
21357                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21358                     fi
21359                   fi
21360                 fi
21361               fi
21362             else
21363               if test "X$found_a" != "X"; then
21364                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21365               else
21366                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21367               fi
21368             fi
21369                         additional_includedir=
21370             case "$found_dir" in
21371               */lib | */lib/)
21372                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21373                 additional_includedir="$basedir/include"
21374                 ;;
21375             esac
21376             if test "X$additional_includedir" != "X"; then
21377                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21378                 haveit=
21379                 if test "X$additional_includedir" = "X/usr/local/include"; then
21380                   if test -n "$GCC"; then
21381                     case $host_os in
21382                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21383                     esac
21384                   fi
21385                 fi
21386                 if test -z "$haveit"; then
21387                   for x in $CPPFLAGS $INCINTL; do
21388
21389   acl_save_prefix="$prefix"
21390   prefix="$acl_final_prefix"
21391   acl_save_exec_prefix="$exec_prefix"
21392   exec_prefix="$acl_final_exec_prefix"
21393   eval x=\"$x\"
21394   exec_prefix="$acl_save_exec_prefix"
21395   prefix="$acl_save_prefix"
21396
21397                     if test "X$x" = "X-I$additional_includedir"; then
21398                       haveit=yes
21399                       break
21400                     fi
21401                   done
21402                   if test -z "$haveit"; then
21403                     if test -d "$additional_includedir"; then
21404                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21405                     fi
21406                   fi
21407                 fi
21408               fi
21409             fi
21410                         if test -n "$found_la"; then
21411                                                         save_libdir="$libdir"
21412               case "$found_la" in
21413                 */* | *\\*) . "$found_la" ;;
21414                 *) . "./$found_la" ;;
21415               esac
21416               libdir="$save_libdir"
21417                             for dep in $dependency_libs; do
21418                 case "$dep" in
21419                   -L*)
21420                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21421                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21422                       haveit=
21423                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21424                         if test -n "$GCC"; then
21425                           case $host_os in
21426                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21427                           esac
21428                         fi
21429                       fi
21430                       if test -z "$haveit"; then
21431                         haveit=
21432                         for x in $LDFLAGS $LIBINTL; do
21433
21434   acl_save_prefix="$prefix"
21435   prefix="$acl_final_prefix"
21436   acl_save_exec_prefix="$exec_prefix"
21437   exec_prefix="$acl_final_exec_prefix"
21438   eval x=\"$x\"
21439   exec_prefix="$acl_save_exec_prefix"
21440   prefix="$acl_save_prefix"
21441
21442                           if test "X$x" = "X-L$additional_libdir"; then
21443                             haveit=yes
21444                             break
21445                           fi
21446                         done
21447                         if test -z "$haveit"; then
21448                           if test -d "$additional_libdir"; then
21449                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21450                           fi
21451                         fi
21452                         haveit=
21453                         for x in $LDFLAGS $LTLIBINTL; do
21454
21455   acl_save_prefix="$prefix"
21456   prefix="$acl_final_prefix"
21457   acl_save_exec_prefix="$exec_prefix"
21458   exec_prefix="$acl_final_exec_prefix"
21459   eval x=\"$x\"
21460   exec_prefix="$acl_save_exec_prefix"
21461   prefix="$acl_save_prefix"
21462
21463                           if test "X$x" = "X-L$additional_libdir"; then
21464                             haveit=yes
21465                             break
21466                           fi
21467                         done
21468                         if test -z "$haveit"; then
21469                           if test -d "$additional_libdir"; then
21470                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21471                           fi
21472                         fi
21473                       fi
21474                     fi
21475                     ;;
21476                   -R*)
21477                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21478                     if test "$enable_rpath" != no; then
21479                                                                   haveit=
21480                       for x in $rpathdirs; do
21481                         if test "X$x" = "X$dir"; then
21482                           haveit=yes
21483                           break
21484                         fi
21485                       done
21486                       if test -z "$haveit"; then
21487                         rpathdirs="$rpathdirs $dir"
21488                       fi
21489                                                                   haveit=
21490                       for x in $ltrpathdirs; do
21491                         if test "X$x" = "X$dir"; then
21492                           haveit=yes
21493                           break
21494                         fi
21495                       done
21496                       if test -z "$haveit"; then
21497                         ltrpathdirs="$ltrpathdirs $dir"
21498                       fi
21499                     fi
21500                     ;;
21501                   -l*)
21502                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21503                     ;;
21504                   *.la)
21505                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21506                     ;;
21507                   *)
21508                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21509                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21510                     ;;
21511                 esac
21512               done
21513             fi
21514           else
21515                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21516             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21517           fi
21518         fi
21519       fi
21520     done
21521   done
21522   if test "X$rpathdirs" != "X"; then
21523     if test -n "$hardcode_libdir_separator"; then
21524                         alldirs=
21525       for found_dir in $rpathdirs; do
21526         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21527       done
21528             acl_save_libdir="$libdir"
21529       libdir="$alldirs"
21530       eval flag=\"$hardcode_libdir_flag_spec\"
21531       libdir="$acl_save_libdir"
21532       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21533     else
21534             for found_dir in $rpathdirs; do
21535         acl_save_libdir="$libdir"
21536         libdir="$found_dir"
21537         eval flag=\"$hardcode_libdir_flag_spec\"
21538         libdir="$acl_save_libdir"
21539         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21540       done
21541     fi
21542   fi
21543   if test "X$ltrpathdirs" != "X"; then
21544             for found_dir in $ltrpathdirs; do
21545       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21546     done
21547   fi
21548
21549           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21550 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21551 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21552   $as_echo_n "(cached) " >&6
21553 else
21554   gt_save_CPPFLAGS="$CPPFLAGS"
21555             CPPFLAGS="$CPPFLAGS $INCINTL"
21556             gt_save_LIBS="$LIBS"
21557             LIBS="$LIBS $LIBINTL"
21558                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21559 /* end confdefs.h.  */
21560 #include <libintl.h>
21561 extern int _nl_msg_cat_cntr;
21562 extern
21563 #ifdef __cplusplus
21564 "C"
21565 #endif
21566 const char *_nl_expand_alias (const char *);
21567 int
21568 main ()
21569 {
21570 bindtextdomain ("", "");
21571 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21572   ;
21573   return 0;
21574 }
21575 _ACEOF
21576 if ac_fn_c_try_link "$LINENO"; then :
21577   gt_cv_func_gnugettext1_libintl=yes
21578 else
21579   gt_cv_func_gnugettext1_libintl=no
21580 fi
21581 rm -f core conftest.err conftest.$ac_objext \
21582     conftest$ac_exeext conftest.$ac_ext
21583                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21584               LIBS="$LIBS $LIBICONV"
21585               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21586 /* end confdefs.h.  */
21587 #include <libintl.h>
21588 extern int _nl_msg_cat_cntr;
21589 extern
21590 #ifdef __cplusplus
21591 "C"
21592 #endif
21593 const char *_nl_expand_alias (const char *);
21594 int
21595 main ()
21596 {
21597 bindtextdomain ("", "");
21598 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21599   ;
21600   return 0;
21601 }
21602 _ACEOF
21603 if ac_fn_c_try_link "$LINENO"; then :
21604   LIBINTL="$LIBINTL $LIBICONV"
21605                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21606                 gt_cv_func_gnugettext1_libintl=yes
21607
21608 fi
21609 rm -f core conftest.err conftest.$ac_objext \
21610     conftest$ac_exeext conftest.$ac_ext
21611             fi
21612             CPPFLAGS="$gt_save_CPPFLAGS"
21613             LIBS="$gt_save_LIBS"
21614 fi
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21616 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21617         fi
21618
21619                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21620            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21621                 && test "$PACKAGE" != gettext-runtime \
21622                 && test "$PACKAGE" != gettext-tools; }; then
21623           gt_use_preinstalled_gnugettext=yes
21624         else
21625                     LIBINTL=
21626           LTLIBINTL=
21627           INCINTL=
21628         fi
21629
21630
21631         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21632                               nls_cv_use_gnu_gettext=yes
21633         fi
21634       fi
21635
21636       if test "$nls_cv_use_gnu_gettext" = "yes"; then
21637                 BUILD_INCLUDED_LIBINTL=yes
21638         USE_INCLUDED_LIBINTL=yes
21639         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21640         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21641         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21642       fi
21643
21644       CATOBJEXT=
21645       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21646          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21647                 CATOBJEXT=.gmo
21648       fi
21649
21650
21651     if test -n "$INTL_MACOSX_LIBS"; then
21652       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21653          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21654                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21655         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21656       fi
21657     fi
21658
21659     if test "$gt_use_preinstalled_gnugettext" = "yes" \
21660        || test "$nls_cv_use_gnu_gettext" = "yes"; then
21661
21662 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21663
21664     else
21665       USE_NLS=no
21666     fi
21667   fi
21668
21669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21670 $as_echo_n "checking whether to use NLS... " >&6; }
21671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21672 $as_echo "$USE_NLS" >&6; }
21673   if test "$USE_NLS" = "yes"; then
21674     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21675 $as_echo_n "checking where the gettext function comes from... " >&6; }
21676     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21677       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21678         gt_source="external libintl"
21679       else
21680         gt_source="libc"
21681       fi
21682     else
21683       gt_source="included intl directory"
21684     fi
21685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21686 $as_echo "$gt_source" >&6; }
21687   fi
21688
21689   if test "$USE_NLS" = "yes"; then
21690
21691     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21692       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21693         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21694 $as_echo_n "checking how to link with libintl... " >&6; }
21695         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21696 $as_echo "$LIBINTL" >&6; }
21697
21698   for element in $INCINTL; do
21699     haveit=
21700     for x in $CPPFLAGS; do
21701
21702   acl_save_prefix="$prefix"
21703   prefix="$acl_final_prefix"
21704   acl_save_exec_prefix="$exec_prefix"
21705   exec_prefix="$acl_final_exec_prefix"
21706   eval x=\"$x\"
21707   exec_prefix="$acl_save_exec_prefix"
21708   prefix="$acl_save_prefix"
21709
21710       if test "X$x" = "X$element"; then
21711         haveit=yes
21712         break
21713       fi
21714     done
21715     if test -z "$haveit"; then
21716       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21717     fi
21718   done
21719
21720       fi
21721
21722
21723 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21724
21725
21726 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21727
21728     fi
21729
21730         POSUB=po
21731   fi
21732
21733
21734             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21735       BUILD_INCLUDED_LIBINTL=yes
21736     fi
21737
21738
21739
21740
21741
21742         nls_cv_header_intl=
21743     nls_cv_header_libgt=
21744
21745         DATADIRNAME=share
21746
21747
21748         INSTOBJEXT=.mo
21749
21750
21751         GENCAT=gencat
21752
21753
21754         INTLOBJS=
21755     if test "$USE_INCLUDED_LIBINTL" = yes; then
21756       INTLOBJS="\$(GETTOBJS)"
21757     fi
21758
21759
21760         INTL_LIBTOOL_SUFFIX_PREFIX=
21761
21762
21763
21764     INTLLIBS="$LIBINTL"
21765
21766
21767
21768
21769
21770
21771 fi
21772
21773 support_smartalloc=yes
21774 support_readline=yes
21775 support_lzo=yes
21776 support_conio=yes
21777 support_bat=no
21778 support_tls=no
21779 support_crypto=no
21780 support_static_tools=no
21781 support_static_fd=no
21782 support_static_sd=no
21783 support_static_dir=no
21784 support_static_cons=no
21785 build_client_only=no
21786 build_dird=yes
21787 build_stored=yes
21788 db_backends=""
21789 batch_insert_db_backends=""
21790 support_lockmgr=no
21791
21792
21793 # Check whether --enable-bat was given.
21794 if test "${enable_bat+set}" = set; then :
21795   enableval=$enable_bat;
21796        if test x$enableval = xyes; then
21797
21798 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21799
21800           support_bat=yes
21801        fi
21802
21803
21804 fi
21805
21806
21807 BAT_DIR=
21808 if test x$support_bat = xyes; then
21809    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21810    pkg=$?
21811    if test $pkg = 0; then
21812       BAT_DIR=src/qt-console
21813    else
21814       as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21815    fi
21816 fi
21817
21818 got_qwt=no
21819 QWT_INC=
21820 QWT_LDFLAGS=
21821 QWT_LIB=
21822 QWT=
21823 no_qwt=no
21824
21825
21826
21827
21828
21829
21830
21831
21832 # Check whether --enable-smartalloc was given.
21833 if test "${enable_smartalloc+set}" = set; then :
21834   enableval=$enable_smartalloc;
21835        if test x$enableval = xno; then
21836           support_smartalloc=no
21837        fi
21838
21839
21840 fi
21841
21842
21843 if test x$support_smartalloc = xyes; then
21844
21845 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21846
21847 fi
21848
21849 # Check whether --enable-lockmgr was given.
21850 if test "${enable_lockmgr+set}" = set; then :
21851   enableval=$enable_lockmgr;
21852        if test x$enableval = xyes; then
21853           support_lockmgr=yes
21854        fi
21855
21856
21857 fi
21858
21859
21860 if test x$support_lockmgr = xyes; then
21861
21862 $as_echo "#define USE_LOCKMGR 1" >>confdefs.h
21863
21864 fi
21865
21866
21867 # Check whether --enable-static-tools was given.
21868 if test "${enable_static_tools+set}" = set; then :
21869   enableval=$enable_static_tools;
21870        if test x$enableval = xyes; then
21871           if test x$use_libtool = xyes; then
21872              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21873   please rerun configure with --disable-libtool" "$LINENO" 5
21874           fi
21875           support_static_tools=yes
21876        fi
21877
21878
21879 fi
21880
21881
21882 TTOOL_LDFLAGS=
21883 if test x$support_static_tools = xyes; then
21884    TTOOL_LDFLAGS="-static"
21885 fi
21886
21887
21888 # Check whether --enable-static-fd was given.
21889 if test "${enable_static_fd+set}" = set; then :
21890   enableval=$enable_static_fd;
21891        if test x$enableval = xyes; then
21892           if test x$use_libtool = xyes; then
21893              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21894   please rerun configure with --disable-libtool" "$LINENO" 5
21895           fi
21896           support_static_fd=yes
21897        fi
21898
21899
21900 fi
21901
21902
21903 STATIC_FD=
21904 if test x$support_static_fd = xyes; then
21905    STATIC_FD="static-bacula-fd"
21906 fi
21907
21908
21909 # Check whether --enable-static-sd was given.
21910 if test "${enable_static_sd+set}" = set; then :
21911   enableval=$enable_static_sd;
21912        if test x$enableval = xyes; then
21913           if test x$use_libtool = xyes; then
21914              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21915   please rerun configure with --disable-libtool" "$LINENO" 5
21916           fi
21917           support_static_sd=yes
21918        fi
21919
21920
21921 fi
21922
21923
21924 STATIC_SD=
21925 if test x$support_static_sd = xyes; then
21926    STATIC_SD="static-bacula-sd"
21927 fi
21928
21929
21930 # Check whether --enable-static-dir was given.
21931 if test "${enable_static_dir+set}" = set; then :
21932   enableval=$enable_static_dir;
21933        if test x$enableval = xyes; then
21934           if test x$use_libtool = xyes; then
21935              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21936   please rerun configure with --disable-libtool" "$LINENO" 5
21937           fi
21938           support_static_dir=yes
21939        fi
21940
21941
21942 fi
21943
21944
21945 STATIC_DIR=
21946 if test x$support_static_dir = xyes; then
21947    STATIC_DIR="static-bacula-dir"
21948 fi
21949
21950
21951 # Check whether --enable-static-cons was given.
21952 if test "${enable_static_cons+set}" = set; then :
21953   enableval=$enable_static_cons;
21954        if test x$enableval = xyes; then
21955           if test x$use_libtool = xyes; then
21956              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21957   please rerun configure with --disable-libtool" "$LINENO" 5
21958           fi
21959           support_static_cons=yes
21960        fi
21961
21962
21963 fi
21964
21965
21966 STATIC_CONS=
21967 if test x$support_static_cons = xyes; then
21968    STATIC_CONS="static-bconsole"
21969 fi
21970
21971
21972 # Check whether --enable-client-only was given.
21973 if test "${enable_client_only+set}" = set; then :
21974   enableval=$enable_client_only;
21975        if test x$enableval = xyes; then
21976           build_client_only=yes
21977           db_backends="None"
21978           DB_BACKENDS="none"
21979        fi
21980
21981
21982 fi
21983
21984 if test x$build_client_only = xno; then
21985    ALL_DIRS="subdirs"
21986 else
21987    ALL_DIRS=""
21988 fi
21989
21990
21991 # Check whether --enable-build-dird was given.
21992 if test "${enable_build_dird+set}" = set; then :
21993   enableval=$enable_build_dird;
21994        if test x$enableval = xno; then
21995           build_dird=no
21996        fi
21997
21998
21999 fi
22000
22001
22002 DIRD_DIR="src/dird"
22003 DIR_TOOLS="DIRTOOLS"
22004
22005
22006
22007
22008 # Check whether --enable-build-stored was given.
22009 if test "${enable_build_stored+set}" = set; then :
22010   enableval=$enable_build_stored;
22011       if test x$enableval = xno; then
22012          build_stored=no
22013       fi
22014
22015
22016 fi
22017
22018 if test x$build_stored = xyes; then
22019    STORED_DIR="src/stored"
22020 else
22021    STORED_DIR=""
22022 fi
22023
22024
22025 # Check whether --enable-conio was given.
22026 if test "${enable_conio+set}" = set; then :
22027   enableval=$enable_conio;
22028        if test x$enableval = xno; then
22029           support_conio=no
22030        fi
22031
22032
22033 fi
22034
22035
22036
22037 support_ipv6=yes
22038 # Check whether --enable-ipv6 was given.
22039 if test "${enable_ipv6+set}" = set; then :
22040   enableval=$enable_ipv6;
22041        if test x$enableval = xno; then
22042           support_ipv6=no
22043        fi
22044
22045
22046 fi
22047
22048
22049 if test x$support_ipv6 = xyes; then
22050     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22051 /* end confdefs.h.  */
22052  #include <sys/types.h>
22053 #include <sys/socket.h>
22054 #include <netinet/in.h>
22055 int
22056 main ()
22057 {
22058 struct in6_addr t=in6addr_any; t.s6_addr[0] = 0;
22059   ;
22060   return 0;
22061 }
22062 _ACEOF
22063 if ac_fn_c_try_link "$LINENO"; then :
22064   support_in6addr_any=yes
22065 else
22066   support_in6addr_any=no
22067 fi
22068 rm -f core conftest.err conftest.$ac_objext \
22069     conftest$ac_exeext conftest.$ac_ext
22070
22071    if test x$support_in6addr_any = xno ; then
22072        in6addr_any="const struct in6_addr in6addr_any"
22073    else
22074        in6addr_any="1"
22075    fi
22076
22077    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22078 /* end confdefs.h.  */
22079  #include <sys/types.h>
22080 #include <sys/socket.h>
22081 #include <netinet/in.h>
22082 int
22083 main ()
22084 {
22085 $in6addr_any; struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22086   ;
22087   return 0;
22088 }
22089 _ACEOF
22090 if ac_fn_c_try_link "$LINENO"; then :
22091   support_ipv6=yes
22092 else
22093   support_ipv6=no
22094 fi
22095 rm -f core conftest.err conftest.$ac_objext \
22096     conftest$ac_exeext conftest.$ac_ext
22097 fi
22098
22099 if test x$support_ipv6 = xyes; then
22100
22101 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22102
22103
22104    if test x$support_in6addr_any = xno ; then
22105
22106 $as_echo "#define NEED_IN6ADDR_ANY 1" >>confdefs.h
22107
22108    fi
22109 fi
22110
22111 TERM_LIB=""
22112 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22113 if test "x$ac_cv_header_curses_h" = xyes; then :
22114
22115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22116 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22117 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22118   $as_echo_n "(cached) " >&6
22119 else
22120   ac_check_lib_save_LIBS=$LIBS
22121 LIBS="-ltinfo  $LIBS"
22122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22123 /* end confdefs.h.  */
22124
22125 /* Override any GCC internal prototype to avoid an error.
22126    Use char because int might match the return type of a GCC
22127    builtin and then its argument prototype would still apply.  */
22128 #ifdef __cplusplus
22129 extern "C"
22130 #endif
22131 char tgetent ();
22132 int
22133 main ()
22134 {
22135 return tgetent ();
22136   ;
22137   return 0;
22138 }
22139 _ACEOF
22140 if ac_fn_c_try_link "$LINENO"; then :
22141   ac_cv_lib_tinfo_tgetent=yes
22142 else
22143   ac_cv_lib_tinfo_tgetent=no
22144 fi
22145 rm -f core conftest.err conftest.$ac_objext \
22146     conftest$ac_exeext conftest.$ac_ext
22147 LIBS=$ac_check_lib_save_LIBS
22148 fi
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22150 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22151 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22152    TERM_LIB="-ltinfo"
22153 else
22154
22155       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22156 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22157 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22158   $as_echo_n "(cached) " >&6
22159 else
22160   ac_check_lib_save_LIBS=$LIBS
22161 LIBS="-lncurses  $LIBS"
22162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22163 /* end confdefs.h.  */
22164
22165 /* Override any GCC internal prototype to avoid an error.
22166    Use char because int might match the return type of a GCC
22167    builtin and then its argument prototype would still apply.  */
22168 #ifdef __cplusplus
22169 extern "C"
22170 #endif
22171 char tgetent ();
22172 int
22173 main ()
22174 {
22175 return tgetent ();
22176   ;
22177   return 0;
22178 }
22179 _ACEOF
22180 if ac_fn_c_try_link "$LINENO"; then :
22181   ac_cv_lib_ncurses_tgetent=yes
22182 else
22183   ac_cv_lib_ncurses_tgetent=no
22184 fi
22185 rm -f core conftest.err conftest.$ac_objext \
22186     conftest$ac_exeext conftest.$ac_ext
22187 LIBS=$ac_check_lib_save_LIBS
22188 fi
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22190 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22191 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22192    TERM_LIB="-lncurses"
22193 else
22194
22195         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22196 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22197 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22198   $as_echo_n "(cached) " >&6
22199 else
22200   ac_check_lib_save_LIBS=$LIBS
22201 LIBS="-ltermcap  $LIBS"
22202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22203 /* end confdefs.h.  */
22204
22205 /* Override any GCC internal prototype to avoid an error.
22206    Use char because int might match the return type of a GCC
22207    builtin and then its argument prototype would still apply.  */
22208 #ifdef __cplusplus
22209 extern "C"
22210 #endif
22211 char tgetent ();
22212 int
22213 main ()
22214 {
22215 return tgetent ();
22216   ;
22217   return 0;
22218 }
22219 _ACEOF
22220 if ac_fn_c_try_link "$LINENO"; then :
22221   ac_cv_lib_termcap_tgetent=yes
22222 else
22223   ac_cv_lib_termcap_tgetent=no
22224 fi
22225 rm -f core conftest.err conftest.$ac_objext \
22226     conftest$ac_exeext conftest.$ac_ext
22227 LIBS=$ac_check_lib_save_LIBS
22228 fi
22229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22230 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22231 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22232    TERM_LIB="-ltermcap"
22233 fi
22234
22235
22236 fi
22237
22238
22239 fi
22240
22241
22242 else
22243     for ac_header in curses.h
22244 do :
22245   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22246 if test "x$ac_cv_header_curses_h" = xyes; then :
22247   cat >>confdefs.h <<_ACEOF
22248 #define HAVE_CURSES_H 1
22249 _ACEOF
22250
22251 fi
22252
22253 done
22254
22255      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22256 if test "x$ac_cv_header_term_h" = xyes; then :
22257    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22258 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22259 if ${ac_cv_lib_curses_tgetent+:} false; then :
22260   $as_echo_n "(cached) " >&6
22261 else
22262   ac_check_lib_save_LIBS=$LIBS
22263 LIBS="-lcurses  $LIBS"
22264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22265 /* end confdefs.h.  */
22266
22267 /* Override any GCC internal prototype to avoid an error.
22268    Use char because int might match the return type of a GCC
22269    builtin and then its argument prototype would still apply.  */
22270 #ifdef __cplusplus
22271 extern "C"
22272 #endif
22273 char tgetent ();
22274 int
22275 main ()
22276 {
22277 return tgetent ();
22278   ;
22279   return 0;
22280 }
22281 _ACEOF
22282 if ac_fn_c_try_link "$LINENO"; then :
22283   ac_cv_lib_curses_tgetent=yes
22284 else
22285   ac_cv_lib_curses_tgetent=no
22286 fi
22287 rm -f core conftest.err conftest.$ac_objext \
22288     conftest$ac_exeext conftest.$ac_ext
22289 LIBS=$ac_check_lib_save_LIBS
22290 fi
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22292 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22293 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22294    TERM_LIB="-lcurses"
22295 fi
22296
22297
22298 fi
22299
22300
22301
22302 fi
22303
22304
22305
22306
22307 got_conio="no"
22308 if test x$support_conio = xyes; then
22309    if test x$TERM_LIB != x; then
22310       CONS_LIBS=$TERM_LIB
22311       CONS_OBJ="conio.o"
22312       CONS_SRC="conio.c"
22313       got_conio="yes"
22314       support_readline=no
22315
22316 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22317
22318    else
22319       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22320    fi
22321 fi
22322
22323
22324 # Check whether --enable-readline was given.
22325 if test "${enable_readline+set}" = set; then :
22326   enableval=$enable_readline;
22327        if test x$enableval = xno; then
22328           support_readline=no
22329        fi
22330
22331
22332 fi
22333
22334
22335 got_readline="no"
22336 READLINE_SRC=
22337 if test x$support_readline = xyes; then
22338
22339 # Check whether --with-readline was given.
22340 if test "${with_readline+set}" = set; then :
22341   withval=$with_readline;
22342           case "$with_readline" in
22343           no)
22344              :
22345              ;;
22346           yes|*)
22347              if test -f ${with_readline}/readline.h; then
22348                 CONS_INC="-I${with_readline}"
22349                 CONS_LDFLAGS="-L$with_readline"
22350              elif test -f ${with_readline}/include/readline/readline.h; then
22351                 CONS_INC="-I${with_readline}/include/readline"
22352                 CONS_LDFLAGS="-L${with_readline}/lib"
22353                 with_readline="${with_readline}/include/readline"
22354              else
22355                 with_readline="/usr/include/readline"
22356              fi
22357
22358              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22359 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22360 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22361
22362
22363 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22364
22365                     CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22366                     got_readline="yes"
22367
22368 else
22369
22370                     echo " "
22371                     echo "readline.h not found. readline turned off ..."
22372                     echo " "
22373
22374
22375 fi
22376
22377
22378              ;;
22379           esac
22380
22381 else
22382
22383                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22384 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22385
22386
22387 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22388
22389                 got_readline="yes"
22390                 CONS_INC="-I/usr/include/readline"
22391                 CONS_LIBS="-lreadline ${TERM_LIB}"
22392
22393 else
22394
22395                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22396 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22397 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22398
22399
22400 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22401
22402                         got_readline="yes"
22403                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
22404                         CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22405                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22406                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22407
22408 else
22409
22410                         echo " "
22411                         echo "readline.h not found. readline turned off ..."
22412                         echo " "
22413
22414
22415 fi
22416
22417
22418
22419
22420 fi
22421
22422
22423
22424
22425 fi
22426
22427 fi
22428
22429
22430
22431
22432
22433
22434
22435
22436 MAKE_SHELL=/bin/sh
22437
22438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22439 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22440 if ${ac_cv_header_stat_broken+:} false; then :
22441   $as_echo_n "(cached) " >&6
22442 else
22443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22444 /* end confdefs.h.  */
22445 #include <sys/types.h>
22446 #include <sys/stat.h>
22447
22448 #if defined S_ISBLK && defined S_IFDIR
22449 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22450 #endif
22451
22452 #if defined S_ISBLK && defined S_IFCHR
22453 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22454 #endif
22455
22456 #if defined S_ISLNK && defined S_IFREG
22457 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22458 #endif
22459
22460 #if defined S_ISSOCK && defined S_IFREG
22461 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22462 #endif
22463
22464 _ACEOF
22465 if ac_fn_c_try_compile "$LINENO"; then :
22466   ac_cv_header_stat_broken=no
22467 else
22468   ac_cv_header_stat_broken=yes
22469 fi
22470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22471 fi
22472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22473 $as_echo "$ac_cv_header_stat_broken" >&6; }
22474 if test $ac_cv_header_stat_broken = yes; then
22475
22476 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22477
22478 fi
22479
22480 ac_header_dirent=no
22481 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22482   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22484 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22485 if eval \${$as_ac_Header+:} false; then :
22486   $as_echo_n "(cached) " >&6
22487 else
22488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22489 /* end confdefs.h.  */
22490 #include <sys/types.h>
22491 #include <$ac_hdr>
22492
22493 int
22494 main ()
22495 {
22496 if ((DIR *) 0)
22497 return 0;
22498   ;
22499   return 0;
22500 }
22501 _ACEOF
22502 if ac_fn_c_try_compile "$LINENO"; then :
22503   eval "$as_ac_Header=yes"
22504 else
22505   eval "$as_ac_Header=no"
22506 fi
22507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22508 fi
22509 eval ac_res=\$$as_ac_Header
22510                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22511 $as_echo "$ac_res" >&6; }
22512 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22513   cat >>confdefs.h <<_ACEOF
22514 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22515 _ACEOF
22516
22517 ac_header_dirent=$ac_hdr; break
22518 fi
22519
22520 done
22521 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22522 if test $ac_header_dirent = dirent.h; then
22523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22524 $as_echo_n "checking for library containing opendir... " >&6; }
22525 if ${ac_cv_search_opendir+:} false; then :
22526   $as_echo_n "(cached) " >&6
22527 else
22528   ac_func_search_save_LIBS=$LIBS
22529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22530 /* end confdefs.h.  */
22531
22532 /* Override any GCC internal prototype to avoid an error.
22533    Use char because int might match the return type of a GCC
22534    builtin and then its argument prototype would still apply.  */
22535 #ifdef __cplusplus
22536 extern "C"
22537 #endif
22538 char opendir ();
22539 int
22540 main ()
22541 {
22542 return opendir ();
22543   ;
22544   return 0;
22545 }
22546 _ACEOF
22547 for ac_lib in '' dir; do
22548   if test -z "$ac_lib"; then
22549     ac_res="none required"
22550   else
22551     ac_res=-l$ac_lib
22552     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22553   fi
22554   if ac_fn_c_try_link "$LINENO"; then :
22555   ac_cv_search_opendir=$ac_res
22556 fi
22557 rm -f core conftest.err conftest.$ac_objext \
22558     conftest$ac_exeext
22559   if ${ac_cv_search_opendir+:} false; then :
22560   break
22561 fi
22562 done
22563 if ${ac_cv_search_opendir+:} false; then :
22564
22565 else
22566   ac_cv_search_opendir=no
22567 fi
22568 rm conftest.$ac_ext
22569 LIBS=$ac_func_search_save_LIBS
22570 fi
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22572 $as_echo "$ac_cv_search_opendir" >&6; }
22573 ac_res=$ac_cv_search_opendir
22574 if test "$ac_res" != no; then :
22575   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22576
22577 fi
22578
22579 else
22580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22581 $as_echo_n "checking for library containing opendir... " >&6; }
22582 if ${ac_cv_search_opendir+:} false; then :
22583   $as_echo_n "(cached) " >&6
22584 else
22585   ac_func_search_save_LIBS=$LIBS
22586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22587 /* end confdefs.h.  */
22588
22589 /* Override any GCC internal prototype to avoid an error.
22590    Use char because int might match the return type of a GCC
22591    builtin and then its argument prototype would still apply.  */
22592 #ifdef __cplusplus
22593 extern "C"
22594 #endif
22595 char opendir ();
22596 int
22597 main ()
22598 {
22599 return opendir ();
22600   ;
22601   return 0;
22602 }
22603 _ACEOF
22604 for ac_lib in '' x; do
22605   if test -z "$ac_lib"; then
22606     ac_res="none required"
22607   else
22608     ac_res=-l$ac_lib
22609     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22610   fi
22611   if ac_fn_c_try_link "$LINENO"; then :
22612   ac_cv_search_opendir=$ac_res
22613 fi
22614 rm -f core conftest.err conftest.$ac_objext \
22615     conftest$ac_exeext
22616   if ${ac_cv_search_opendir+:} false; then :
22617   break
22618 fi
22619 done
22620 if ${ac_cv_search_opendir+:} false; then :
22621
22622 else
22623   ac_cv_search_opendir=no
22624 fi
22625 rm conftest.$ac_ext
22626 LIBS=$ac_func_search_save_LIBS
22627 fi
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22629 $as_echo "$ac_cv_search_opendir" >&6; }
22630 ac_res=$ac_cv_search_opendir
22631 if test "$ac_res" != no; then :
22632   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22633
22634 fi
22635
22636 fi
22637
22638 for ac_func in strcasecmp select setenv putenv tcgetattr
22639 do :
22640   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22641 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22642 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22643   cat >>confdefs.h <<_ACEOF
22644 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22645 _ACEOF
22646
22647 fi
22648 done
22649
22650 for ac_func in lstat lchown lchmod futimes fchmod fchown
22651 do :
22652   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22653 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22654 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22655   cat >>confdefs.h <<_ACEOF
22656 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22657 _ACEOF
22658
22659 fi
22660 done
22661
22662 for ac_func in nanosleep nl_langinfo
22663 do :
22664   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22665 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22666 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22667   cat >>confdefs.h <<_ACEOF
22668 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22669 _ACEOF
22670
22671 fi
22672 done
22673
22674 for ac_func in be64toh htobe64
22675 do :
22676   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22677 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22678 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22679   cat >>confdefs.h <<_ACEOF
22680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22681 _ACEOF
22682
22683 fi
22684 done
22685
22686 for ac_header in varargs.h
22687 do :
22688   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22689 if test "x$ac_cv_header_varargs_h" = xyes; then :
22690   cat >>confdefs.h <<_ACEOF
22691 #define HAVE_VARARGS_H 1
22692 _ACEOF
22693
22694 fi
22695
22696 done
22697
22698
22699
22700 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22701 if test "x$ac_cv_func_socket" = xyes; then :
22702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22703 $as_echo "using libc's socket" >&6; }
22704 else
22705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22706 $as_echo_n "checking for socket in -lxnet... " >&6; }
22707 if ${ac_cv_lib_xnet_socket+:} false; then :
22708   $as_echo_n "(cached) " >&6
22709 else
22710   ac_check_lib_save_LIBS=$LIBS
22711 LIBS="-lxnet  $LIBS"
22712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22713 /* end confdefs.h.  */
22714
22715 /* Override any GCC internal prototype to avoid an error.
22716    Use char because int might match the return type of a GCC
22717    builtin and then its argument prototype would still apply.  */
22718 #ifdef __cplusplus
22719 extern "C"
22720 #endif
22721 char socket ();
22722 int
22723 main ()
22724 {
22725 return socket ();
22726   ;
22727   return 0;
22728 }
22729 _ACEOF
22730 if ac_fn_c_try_link "$LINENO"; then :
22731   ac_cv_lib_xnet_socket=yes
22732 else
22733   ac_cv_lib_xnet_socket=no
22734 fi
22735 rm -f core conftest.err conftest.$ac_objext \
22736     conftest$ac_exeext conftest.$ac_ext
22737 LIBS=$ac_check_lib_save_LIBS
22738 fi
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22740 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22741 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22742   cat >>confdefs.h <<_ACEOF
22743 #define HAVE_LIBXNET 1
22744 _ACEOF
22745
22746   LIBS="-lxnet $LIBS"
22747
22748 fi
22749
22750     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22751 $as_echo_n "checking for socket in -lsocket... " >&6; }
22752 if ${ac_cv_lib_socket_socket+:} false; then :
22753   $as_echo_n "(cached) " >&6
22754 else
22755   ac_check_lib_save_LIBS=$LIBS
22756 LIBS="-lsocket  $LIBS"
22757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22758 /* end confdefs.h.  */
22759
22760 /* Override any GCC internal prototype to avoid an error.
22761    Use char because int might match the return type of a GCC
22762    builtin and then its argument prototype would still apply.  */
22763 #ifdef __cplusplus
22764 extern "C"
22765 #endif
22766 char socket ();
22767 int
22768 main ()
22769 {
22770 return socket ();
22771   ;
22772   return 0;
22773 }
22774 _ACEOF
22775 if ac_fn_c_try_link "$LINENO"; then :
22776   ac_cv_lib_socket_socket=yes
22777 else
22778   ac_cv_lib_socket_socket=no
22779 fi
22780 rm -f core conftest.err conftest.$ac_objext \
22781     conftest$ac_exeext conftest.$ac_ext
22782 LIBS=$ac_check_lib_save_LIBS
22783 fi
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22785 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22786 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22787   cat >>confdefs.h <<_ACEOF
22788 #define HAVE_LIBSOCKET 1
22789 _ACEOF
22790
22791   LIBS="-lsocket $LIBS"
22792
22793 fi
22794
22795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22796 $as_echo_n "checking for socket in -linet... " >&6; }
22797 if ${ac_cv_lib_inet_socket+:} false; then :
22798   $as_echo_n "(cached) " >&6
22799 else
22800   ac_check_lib_save_LIBS=$LIBS
22801 LIBS="-linet  $LIBS"
22802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22803 /* end confdefs.h.  */
22804
22805 /* Override any GCC internal prototype to avoid an error.
22806    Use char because int might match the return type of a GCC
22807    builtin and then its argument prototype would still apply.  */
22808 #ifdef __cplusplus
22809 extern "C"
22810 #endif
22811 char socket ();
22812 int
22813 main ()
22814 {
22815 return socket ();
22816   ;
22817   return 0;
22818 }
22819 _ACEOF
22820 if ac_fn_c_try_link "$LINENO"; then :
22821   ac_cv_lib_inet_socket=yes
22822 else
22823   ac_cv_lib_inet_socket=no
22824 fi
22825 rm -f core conftest.err conftest.$ac_objext \
22826     conftest$ac_exeext conftest.$ac_ext
22827 LIBS=$ac_check_lib_save_LIBS
22828 fi
22829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22830 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22831 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22832   cat >>confdefs.h <<_ACEOF
22833 #define HAVE_LIBINET 1
22834 _ACEOF
22835
22836   LIBS="-linet $LIBS"
22837
22838 fi
22839
22840 fi
22841
22842
22843 TCPW_MSG="no"
22844 WRAPLIBS=""
22845
22846 # Check whether --with-tcp-wrappers was given.
22847 if test "${with_tcp_wrappers+set}" = set; then :
22848   withval=$with_tcp_wrappers;
22849        if test "x$withval" != "xno" ; then
22850           saved_LIBS="$LIBS"
22851           LIBS="$saved_LIBS -lwrap"
22852           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22853 $as_echo_n "checking for library containing nanosleep... " >&6; }
22854 if ${ac_cv_search_nanosleep+:} false; then :
22855   $as_echo_n "(cached) " >&6
22856 else
22857   ac_func_search_save_LIBS=$LIBS
22858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22859 /* end confdefs.h.  */
22860
22861 /* Override any GCC internal prototype to avoid an error.
22862    Use char because int might match the return type of a GCC
22863    builtin and then its argument prototype would still apply.  */
22864 #ifdef __cplusplus
22865 extern "C"
22866 #endif
22867 char nanosleep ();
22868 int
22869 main ()
22870 {
22871 return nanosleep ();
22872   ;
22873   return 0;
22874 }
22875 _ACEOF
22876 for ac_lib in '' rt; do
22877   if test -z "$ac_lib"; then
22878     ac_res="none required"
22879   else
22880     ac_res=-l$ac_lib
22881     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22882   fi
22883   if ac_fn_c_try_link "$LINENO"; then :
22884   ac_cv_search_nanosleep=$ac_res
22885 fi
22886 rm -f core conftest.err conftest.$ac_objext \
22887     conftest$ac_exeext
22888   if ${ac_cv_search_nanosleep+:} false; then :
22889   break
22890 fi
22891 done
22892 if ${ac_cv_search_nanosleep+:} false; then :
22893
22894 else
22895   ac_cv_search_nanosleep=no
22896 fi
22897 rm conftest.$ac_ext
22898 LIBS=$ac_func_search_save_LIBS
22899 fi
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22901 $as_echo "$ac_cv_search_nanosleep" >&6; }
22902 ac_res=$ac_cv_search_nanosleep
22903 if test "$ac_res" != no; then :
22904   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22905
22906 fi
22907
22908           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22909 $as_echo_n "checking for libwrap... " >&6; }
22910           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22911 /* end confdefs.h.  */
22912
22913                #include <sys/types.h>
22914                #include <tcpd.h>
22915                int deny_severity = 0;
22916                int allow_severity = 0;
22917                struct request_info *req;
22918
22919 int
22920 main ()
22921 {
22922
22923                 hosts_access(req);
22924
22925   ;
22926   return 0;
22927 }
22928 _ACEOF
22929 if ac_fn_c_try_link "$LINENO"; then :
22930
22931                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22932 $as_echo "yes" >&6; }
22933
22934 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22935
22936                  TCPW_MSG="yes"
22937                  LIBS="$saved_LIBS"
22938                  WRAPLIBS="-lwrap"
22939
22940 else
22941
22942                  LIBS="$saved_LIBS -lwrap -lnsl"
22943                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22944                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22945 /* end confdefs.h.  */
22946
22947                        #include <sys/types.h>
22948                        #include <tcpd.h>
22949                        int deny_severity = 0;
22950                        int allow_severity = 0;
22951                        struct request_info *req;
22952
22953 int
22954 main ()
22955 {
22956
22957                        hosts_access(req);
22958
22959   ;
22960   return 0;
22961 }
22962 _ACEOF
22963 if ac_fn_c_try_link "$LINENO"; then :
22964
22965                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22966 $as_echo "yes" >&6; }
22967
22968 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22969
22970                       TCPW_MSG="yes"
22971                       LIBS="$saved_LIBS"
22972                       WRAPLIBS="-lwrap"
22973
22974 else
22975
22976                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
22977
22978
22979 fi
22980 rm -f core conftest.err conftest.$ac_objext \
22981     conftest$ac_exeext conftest.$ac_ext
22982
22983
22984 fi
22985 rm -f core conftest.err conftest.$ac_objext \
22986     conftest$ac_exeext conftest.$ac_ext
22987        fi
22988
22989
22990 fi
22991
22992
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22994 $as_echo_n "checking for OpenSSL... " >&6; }
22995
22996 # Check whether --with-openssl was given.
22997 if test "${with_openssl+set}" = set; then :
22998   withval=$with_openssl;
22999         with_openssl_directory=${withval}
23000
23001
23002 fi
23003
23004
23005 if test "x$with_openssl_directory" != "xno"; then
23006    OPENSSL_LIBS="-lssl -lcrypto"
23007    OPENSSL_INC=""
23008
23009    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
23010       #
23011       # Make sure the $with_openssl_directory also makes sense
23012       #
23013       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
23014          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
23015          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
23016       fi
23017    fi
23018
23019    saved_LIBS="${LIBS}"
23020    saved_CFLAGS="${CFLAGS}"
23021    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
23022    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
23023
23024    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23025 /* end confdefs.h.  */
23026
23027           #include <openssl/ssl.h>
23028
23029 int
23030 main ()
23031 {
23032
23033            CRYPTO_set_id_callback(NULL);
23034
23035   ;
23036   return 0;
23037 }
23038 _ACEOF
23039 if ac_fn_c_try_link "$LINENO"; then :
23040
23041           support_tls="yes"
23042           support_crypto="yes"
23043
23044 else
23045
23046           support_tls="no"
23047           support_crypto="no"
23048
23049
23050 fi
23051 rm -f core conftest.err conftest.$ac_objext \
23052     conftest$ac_exeext conftest.$ac_ext
23053
23054    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23055 /* end confdefs.h.  */
23056
23057           #include <openssl/evp.h>
23058
23059 int
23060 main ()
23061 {
23062
23063           EVP_sha512();
23064
23065   ;
23066   return 0;
23067 }
23068 _ACEOF
23069 if ac_fn_c_try_link "$LINENO"; then :
23070
23071           ac_cv_openssl_sha2="yes"
23072
23073 else
23074
23075           ac_cv_openssl_sha2="no"
23076
23077
23078 fi
23079 rm -f core conftest.err conftest.$ac_objext \
23080     conftest$ac_exeext conftest.$ac_ext
23081
23082                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23083 /* end confdefs.h.  */
23084
23085           #include <openssl/evp.h>
23086
23087 int
23088 main ()
23089 {
23090
23091           EVP_aes_192_cbc();
23092
23093   ;
23094   return 0;
23095 }
23096 _ACEOF
23097 if ac_fn_c_try_link "$LINENO"; then :
23098
23099           ac_cv_openssl_export="no"
23100
23101 else
23102
23103           ac_cv_openssl_export="yes"
23104
23105
23106 fi
23107 rm -f core conftest.err conftest.$ac_objext \
23108     conftest$ac_exeext conftest.$ac_ext
23109
23110    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23111 $as_echo "$support_tls" >&6; }
23112    if test "$support_tls" = "yes"; then
23113
23114 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23115
23116
23117 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23118
23119
23120 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23121
23122    fi
23123
23124    if test "$ac_cv_openssl_sha2" = "yes"; then
23125
23126 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23127
23128    fi
23129
23130    if test "$ac_cv_openssl_export" = "yes"; then
23131
23132 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23133
23134    fi
23135
23136    if test "$support_crypto" = "yes"; then
23137       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23138 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23139 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23140   $as_echo_n "(cached) " >&6
23141 else
23142   ac_check_lib_save_LIBS=$LIBS
23143 LIBS="-lcrypto  $LIBS"
23144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23145 /* end confdefs.h.  */
23146
23147 /* Override any GCC internal prototype to avoid an error.
23148    Use char because int might match the return type of a GCC
23149    builtin and then its argument prototype would still apply.  */
23150 #ifdef __cplusplus
23151 extern "C"
23152 #endif
23153 char EVP_PKEY_encrypt_old ();
23154 int
23155 main ()
23156 {
23157 return EVP_PKEY_encrypt_old ();
23158   ;
23159   return 0;
23160 }
23161 _ACEOF
23162 if ac_fn_c_try_link "$LINENO"; then :
23163   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23164 else
23165   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23166 fi
23167 rm -f core conftest.err conftest.$ac_objext \
23168     conftest$ac_exeext conftest.$ac_ext
23169 LIBS=$ac_check_lib_save_LIBS
23170 fi
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23172 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23173 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23174
23175 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23176
23177 fi
23178
23179    fi
23180
23181    LIBS="${saved_LIBS}"
23182    CFLAGS="${saved_CFLAGS}"
23183 else
23184    support_tls="no"
23185    support_crypto="no"
23186    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23187 $as_echo "$support_tls" >&6; }
23188 fi
23189
23190 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23191    OPENSSL_LIBS=""
23192    OPENSSL_INC=""
23193 fi
23194
23195
23196
23197
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23199 $as_echo_n "checking for library containing dlopen... " >&6; }
23200 if ${ac_cv_search_dlopen+:} false; then :
23201   $as_echo_n "(cached) " >&6
23202 else
23203   ac_func_search_save_LIBS=$LIBS
23204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23205 /* end confdefs.h.  */
23206
23207 /* Override any GCC internal prototype to avoid an error.
23208    Use char because int might match the return type of a GCC
23209    builtin and then its argument prototype would still apply.  */
23210 #ifdef __cplusplus
23211 extern "C"
23212 #endif
23213 char dlopen ();
23214 int
23215 main ()
23216 {
23217 return dlopen ();
23218   ;
23219   return 0;
23220 }
23221 _ACEOF
23222 for ac_lib in '' dl; do
23223   if test -z "$ac_lib"; then
23224     ac_res="none required"
23225   else
23226     ac_res=-l$ac_lib
23227     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23228   fi
23229   if ac_fn_c_try_link "$LINENO"; then :
23230   ac_cv_search_dlopen=$ac_res
23231 fi
23232 rm -f core conftest.err conftest.$ac_objext \
23233     conftest$ac_exeext
23234   if ${ac_cv_search_dlopen+:} false; then :
23235   break
23236 fi
23237 done
23238 if ${ac_cv_search_dlopen+:} false; then :
23239
23240 else
23241   ac_cv_search_dlopen=no
23242 fi
23243 rm conftest.$ac_ext
23244 LIBS=$ac_func_search_save_LIBS
23245 fi
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23247 $as_echo "$ac_cv_search_dlopen" >&6; }
23248 ac_res=$ac_cv_search_dlopen
23249 if test "$ac_res" != no; then :
23250   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23251
23252 fi
23253
23254
23255 working_dir=`eval echo /opt/bacula/working`
23256
23257 # Check whether --with-working-dir was given.
23258 if test "${with_working_dir+set}" = set; then :
23259   withval=$with_working_dir;
23260        if test "x$withval" != "xno" ; then
23261          working_dir=$withval
23262        fi
23263
23264
23265 fi
23266
23267
23268
23269
23270 archivedir=/tmp
23271
23272 # Check whether --with-archivedir was given.
23273 if test "${with_archivedir+set}" = set; then :
23274   withval=$with_archivedir;
23275        if test "x$withval" != "xno" ; then
23276           archivedir=$withval
23277        fi
23278
23279
23280 fi
23281
23282
23283
23284
23285 basename=`hostname`
23286
23287 # Check whether --with-basename was given.
23288 if test "${with_basename+set}" = set; then :
23289   withval=$with_basename;
23290        if test "x$withval" != "xno" ; then
23291           basename=$withval
23292        fi
23293
23294
23295 fi
23296
23297
23298
23299
23300 hostname=`uname -n | cut -d '.' -f 1`
23301 if test x${hostname} = x ; then
23302   hostname="localhost"
23303 fi
23304 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23305 if test ! $? = 0; then
23306   hostname="localhost"
23307 fi
23308
23309 # Check whether --with-hostname was given.
23310 if test "${with_hostname+set}" = set; then :
23311   withval=$with_hostname;
23312        if test "x$withval" != "xno" ; then
23313          hostname=$withval
23314        fi
23315
23316
23317 fi
23318
23319
23320
23321
23322
23323 scriptdir=`eval echo ${sysconfdir}`
23324
23325 # Check whether --with-scriptdir was given.
23326 if test "${with_scriptdir+set}" = set; then :
23327   withval=$with_scriptdir;
23328        if test "x$withval" != "xno" ; then
23329           scriptdir=$withval
23330        fi
23331
23332
23333 fi
23334
23335
23336
23337
23338
23339 bsrdir=`eval echo /opt/bacula/bsr`
23340
23341 # Check whether --with-bsrdir was given.
23342 if test "${with_bsrdir+set}" = set; then :
23343   withval=$with_bsrdir;
23344        if test "x$withval" != "xno" ; then
23345           bsrdir=$withval
23346        fi
23347
23348
23349 fi
23350
23351
23352
23353
23354 logdir=`eval echo /opt/bacula/log`
23355
23356 # Check whether --with-logdir was given.
23357 if test "${with_logdir+set}" = set; then :
23358   withval=$with_logdir;
23359        if test "x$withval" != "xno" ; then
23360           logdir=$withval
23361        fi
23362
23363
23364 fi
23365
23366
23367
23368
23369
23370 # ------------------------------------------
23371 # Where to place plugindir (plugin files)
23372 # ------------------------------------------
23373 plugindir=`eval echo ${libdir}`
23374
23375 # Check whether --with-plugindir was given.
23376 if test "${with_plugindir+set}" = set; then :
23377   withval=$with_plugindir;
23378        if test "x$withval" != "xno" ; then
23379           plugindir=$withval
23380        fi
23381
23382
23383 fi
23384
23385
23386
23387
23388
23389 dump_email=root@localhost
23390
23391 # Check whether --with-dump-email was given.
23392 if test "${with_dump_email+set}" = set; then :
23393   withval=$with_dump_email;
23394        if test "x$withval" != "xno" ; then
23395           dump_email=$withval
23396        fi
23397
23398
23399 fi
23400
23401
23402
23403
23404 job_email=root@localhost
23405
23406 # Check whether --with-job-email was given.
23407 if test "${with_job_email+set}" = set; then :
23408   withval=$with_job_email;
23409        if test "x$withval" != "xno" ; then
23410           job_email=$withval
23411        fi
23412
23413
23414 fi
23415
23416
23417
23418
23419 smtp_host=localhost
23420
23421 # Check whether --with-smtp_host was given.
23422 if test "${with_smtp_host+set}" = set; then :
23423   withval=$with_smtp_host;
23424        if test "x$withval" != "xno" ; then
23425           smtp_host=$withval
23426        fi
23427
23428
23429 fi
23430
23431
23432
23433
23434 piddir=/var/run
23435
23436 # Check whether --with-pid-dir was given.
23437 if test "${with_pid_dir+set}" = set; then :
23438   withval=$with_pid_dir;
23439        if test "x$withval" != "xno" ; then
23440           piddir=$withval
23441        fi
23442
23443
23444 fi
23445
23446
23447 cat >>confdefs.h <<_ACEOF
23448 #define _PATH_BACULA_PIDDIR "$piddir"
23449 _ACEOF
23450
23451
23452
23453 subsysdir=/var/run/subsys
23454 if test -d /var/run/subsys; then
23455    subsysdir=/var/run/subsys
23456 elif test -d /var/lock/subsys; then
23457    subsysdir=/var/lock/subsys
23458 else
23459    subsysdir=/var/run/subsys
23460 fi
23461
23462 # Check whether --with-subsys-dir was given.
23463 if test "${with_subsys_dir+set}" = set; then :
23464   withval=$with_subsys_dir;
23465        if test "x$withval" != "xno" ; then
23466           subsysdir=$withval
23467        fi
23468
23469
23470 fi
23471
23472
23473
23474
23475 baseport=9101
23476
23477 # Check whether --with-baseport was given.
23478 if test "${with_baseport+set}" = set; then :
23479   withval=$with_baseport;
23480        if test "x$withval" != "xno" ; then
23481           baseport=$withval
23482        fi
23483
23484
23485 fi
23486
23487
23488
23489 dir_port=`expr $baseport`
23490 fd_port=`expr $baseport + 1`
23491 sd_port=`expr $fd_port + 1`
23492
23493
23494
23495
23496
23497 dir_password=
23498
23499 # Check whether --with-dir-password was given.
23500 if test "${with_dir_password+set}" = set; then :
23501   withval=$with_dir_password;
23502        if test "x$withval" != "xno" ; then
23503           dir_password=$withval
23504        fi
23505
23506
23507 fi
23508
23509
23510 if test "x$dir_password" = "x" ; then
23511    if test "x$OPENSSL" = "xnone" ; then
23512       key=`autoconf/randpass 33`
23513    else
23514       key=`openssl rand -base64 33`
23515    fi
23516    dir_password=$key
23517 fi
23518
23519 fd_password=
23520
23521 # Check whether --with-fd-password was given.
23522 if test "${with_fd_password+set}" = set; then :
23523   withval=$with_fd_password;
23524        if test "x$withval" != "xno" ; then
23525           fd_password=$withval
23526        fi
23527
23528
23529 fi
23530
23531
23532 if test "x$fd_password" = "x" ; then
23533    if test "x$OPENSSL" = "xnone" ; then
23534       key=`autoconf/randpass 37`
23535    else
23536       key=`openssl rand -base64 33`
23537    fi
23538    fd_password=$key
23539 fi
23540
23541 sd_password=
23542
23543 # Check whether --with-sd-password was given.
23544 if test "${with_sd_password+set}" = set; then :
23545   withval=$with_sd_password;
23546        if test "x$withval" != "xno" ; then
23547           sd_password=$withval
23548        fi
23549
23550
23551 fi
23552
23553
23554 if test "x$sd_password" = "x" ; then
23555    if test "x$OPENSSL" = "xnone" ; then
23556       key=`autoconf/randpass 41`
23557    else
23558       key=`openssl rand -base64 33`
23559    fi
23560    sd_password=$key
23561 fi
23562
23563 mon_dir_password=
23564
23565 # Check whether --with-mon-dir-password was given.
23566 if test "${with_mon_dir_password+set}" = set; then :
23567   withval=$with_mon_dir_password;
23568        if test "x$withval" != "xno" ; then
23569           mon_dir_password=$withval
23570        fi
23571
23572
23573 fi
23574
23575
23576 if test "x$mon_dir_password" = "x" ; then
23577    if test "x$OPENSSL" = "xnone" ; then
23578       key=`autoconf/randpass 33`
23579    else
23580       key=`openssl rand -base64 33`
23581    fi
23582    mon_dir_password=$key
23583 fi
23584
23585 mon_fd_password=
23586
23587 # Check whether --with-mon-fd-password was given.
23588 if test "${with_mon_fd_password+set}" = set; then :
23589   withval=$with_mon_fd_password;
23590        if test "x$withval" != "xno" ; then
23591           mon_fd_password=$withval
23592        fi
23593
23594
23595 fi
23596
23597
23598 if test "x$mon_fd_password" = "x" ; then
23599    if test "x$OPENSSL" = "xnone" ; then
23600       key=`autoconf/randpass 37`
23601    else
23602       key=`openssl rand -base64 33`
23603    fi
23604    mon_fd_password=$key
23605 fi
23606
23607 mon_sd_password=
23608
23609 # Check whether --with-mon-sd-password was given.
23610 if test "${with_mon_sd_password+set}" = set; then :
23611   withval=$with_mon_sd_password;
23612        if test "x$withval" != "xno" ; then
23613           mon_sd_password=$withval
23614        fi
23615
23616
23617 fi
23618
23619
23620 if test "x$mon_sd_password" = "x" ; then
23621    if test "x$OPENSSL" = "xnone" ; then
23622       key=`autoconf/randpass 41`
23623    else
23624       key=`openssl rand -base64 33`
23625    fi
23626    mon_sd_password=$key
23627 fi
23628
23629
23630
23631
23632
23633
23634
23635
23636 db_name=bacula
23637
23638 # Check whether --with-db_name was given.
23639 if test "${with_db_name+set}" = set; then :
23640   withval=$with_db_name;
23641        if test "x$withval" != "x" ; then
23642           db_name=$withval
23643        fi
23644
23645
23646 fi
23647
23648
23649
23650 db_user=bacula
23651
23652 # Check whether --with-db_user was given.
23653 if test "${with_db_user+set}" = set; then :
23654   withval=$with_db_user;
23655        if test "x$withval" != "x" ; then
23656           db_user=$withval
23657        fi
23658
23659
23660 fi
23661
23662
23663
23664 db_password=
23665
23666 # Check whether --with-db_password was given.
23667 if test "${with_db_password+set}" = set; then :
23668   withval=$with_db_password;
23669        if test "x$withval" != "x" ; then
23670           db_password=$withval
23671        fi
23672
23673
23674 fi
23675
23676
23677
23678 db_port=" "
23679
23680 # Check whether --with-db_port was given.
23681 if test "${with_db_port+set}" = set; then :
23682   withval=$with_db_port;
23683        if test "x$withval" != "x" ; then
23684           db_port=$withval
23685        fi
23686
23687
23688 fi
23689
23690
23691
23692 db_ssl_options=
23693
23694 # Check whether --with-db_ssl_options was given.
23695 if test "${with_db_ssl_options+set}" = set; then :
23696   withval=$with_db_ssl_options;
23697        if test "x$withval" != "x" ; then
23698          db_ssl_options=$withval
23699        fi
23700
23701
23702 fi
23703
23704
23705
23706 #
23707 # Handle users and groups for each daemon
23708 #
23709 dir_user=
23710
23711 # Check whether --with-dir_user was given.
23712 if test "${with_dir_user+set}" = set; then :
23713   withval=$with_dir_user;
23714        if test "x$withval" != "x" ; then
23715            dir_user=$withval
23716        fi
23717
23718
23719 fi
23720
23721
23722 dir_group=
23723
23724 # Check whether --with-dir_group was given.
23725 if test "${with_dir_group+set}" = set; then :
23726   withval=$with_dir_group;
23727        if test "x$withval" != "x" ; then
23728           dir_group=$withval
23729        fi
23730
23731
23732 fi
23733
23734
23735 sd_user=
23736
23737 # Check whether --with-sd_user was given.
23738 if test "${with_sd_user+set}" = set; then :
23739   withval=$with_sd_user;
23740        if test "x$withval" != "x" ; then
23741           sd_user=$withval
23742        fi
23743
23744
23745 fi
23746
23747
23748 sd_group=
23749
23750 # Check whether --with-sd_group was given.
23751 if test "${with_sd_group+set}" = set; then :
23752   withval=$with_sd_group;
23753        if test "x$withval" != "x" ; then
23754           sd_group=$withval
23755        fi
23756
23757
23758 fi
23759
23760
23761 fd_user=
23762
23763 # Check whether --with-fd_user was given.
23764 if test "${with_fd_user+set}" = set; then :
23765   withval=$with_fd_user;
23766        if test "x$withval" != "x" ; then
23767           fd_user=$withval
23768        fi
23769
23770
23771 fi
23772
23773
23774 fd_group=
23775
23776 # Check whether --with-fd_group was given.
23777 if test "${with_fd_group+set}" = set; then :
23778   withval=$with_fd_group;
23779        if test "x$withval" != "x" ; then
23780           fd_group=$withval
23781        fi
23782
23783
23784 fi
23785
23786
23787
23788
23789
23790
23791
23792
23793
23794 SBINPERM=0750
23795
23796 # Check whether --with-sbin-perm was given.
23797 if test "${with_sbin_perm+set}" = set; then :
23798   withval=$with_sbin_perm;
23799        if test "x$withval" != "x" ; then
23800           SBINPERM=$withval
23801        fi
23802
23803
23804 fi
23805
23806
23807
23808
23809 support_batch_insert=yes
23810 # Check whether --enable-batch-insert was given.
23811 if test "${enable_batch_insert+set}" = set; then :
23812   enableval=$enable_batch_insert;
23813        if test x$enableval = xno; then
23814           support_batch_insert=no
23815        fi
23816
23817
23818 fi
23819
23820
23821 if test x$support_batch_insert = xyes; then
23822
23823 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23824
23825 fi
23826
23827
23828 uncomment_dbi="#"
23829
23830
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23832 $as_echo_n "checking for PostgreSQL support... " >&6; }
23833
23834 # Check whether --with-postgresql was given.
23835 if test "${with_postgresql+set}" = set; then :
23836   withval=$with_postgresql;
23837   if test "$withval" != "no"; then
23838       if test "$withval" = "yes"; then
23839           PG_CONFIG=`which pg_config 2>/dev/null`
23840           if test -n "$PG_CONFIG"; then
23841               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23842               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23843               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23844           elif test -f /usr/local/include/libpq-fe.h; then
23845               POSTGRESQL_INCDIR=/usr/local/include
23846               if test -d /usr/local/lib64; then
23847                  POSTGRESQL_LIBDIR=/usr/local/lib64
23848               else
23849                  POSTGRESQL_LIBDIR=/usr/local/lib
23850               fi
23851               POSTGRESQL_BINDIR=/usr/local/bin
23852           elif test -f /usr/include/libpq-fe.h; then
23853               POSTGRESQL_INCDIR=/usr/include
23854               if test -d /usr/lib64; then
23855                  POSTGRESQL_LIBDIR=/usr/lib64
23856               else
23857                  POSTGRESQL_LIBDIR=/usr/lib
23858               fi
23859               POSTGRESQL_BINDIR=/usr/bin
23860           elif test -f /usr/include/pgsql/libpq-fe.h; then
23861               POSTGRESQL_INCDIR=/usr/include/pgsql
23862               if test -d /usr/lib64/pgsql; then
23863                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23864               else
23865                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
23866               fi
23867               POSTGRESQL_BINDIR=/usr/bin
23868           elif test -f /usr/include/postgresql/libpq-fe.h; then
23869               POSTGRESQL_INCDIR=/usr/include/postgresql
23870               if test -d /usr/lib64/postgresql; then
23871                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23872               else
23873                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
23874               fi
23875               POSTGRESQL_BINDIR=/usr/bin
23876           else
23877               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23878 $as_echo "no" >&6; }
23879               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23880           fi
23881       elif test -f $withval/include/libpq-fe.h; then
23882           POSTGRESQL_INCDIR=$withval/include
23883           POSTGRESQL_LIBDIR=$withval/lib
23884           POSTGRESQL_BINDIR=$withval/bin
23885       elif test -f $withval/include/postgresql/libpq-fe.h; then
23886           POSTGRESQL_INCDIR=$withval/include/postgresql
23887           if test -d $withval/lib64; then
23888               POSTGRESQL_LIBDIR=$withval/lib64
23889           else
23890               POSTGRESQL_LIBDIR=$withval/lib
23891           fi
23892           POSTGRESQL_BINDIR=$withval/bin
23893       else
23894           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23895 $as_echo "no" >&6; }
23896           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23897       fi
23898
23899 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23900
23901      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23902 $as_echo "yes" >&6; }
23903
23904      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23905      if test x$use_libtool != xno; then
23906         POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23907      else
23908         POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23909      fi
23910      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23911 if test "x$ac_cv_func_crypt" = xyes; then :
23912
23913 else
23914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23915 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23916 if ${ac_cv_lib_crypt_crypt+:} false; then :
23917   $as_echo_n "(cached) " >&6
23918 else
23919   ac_check_lib_save_LIBS=$LIBS
23920 LIBS="-lcrypt  $LIBS"
23921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23922 /* end confdefs.h.  */
23923
23924 /* Override any GCC internal prototype to avoid an error.
23925    Use char because int might match the return type of a GCC
23926    builtin and then its argument prototype would still apply.  */
23927 #ifdef __cplusplus
23928 extern "C"
23929 #endif
23930 char crypt ();
23931 int
23932 main ()
23933 {
23934 return crypt ();
23935   ;
23936   return 0;
23937 }
23938 _ACEOF
23939 if ac_fn_c_try_link "$LINENO"; then :
23940   ac_cv_lib_crypt_crypt=yes
23941 else
23942   ac_cv_lib_crypt_crypt=no
23943 fi
23944 rm -f core conftest.err conftest.$ac_objext \
23945     conftest$ac_exeext conftest.$ac_ext
23946 LIBS=$ac_check_lib_save_LIBS
23947 fi
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23949 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23950 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23951   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23952 fi
23953
23954 fi
23955
23956      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23957      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23958
23959      if test -z "${db_backends}"; then
23960          db_backends="PostgreSQL"
23961      else
23962          db_backends="${db_backends} PostgreSQL"
23963      fi
23964      if test -z "${DB_BACKENDS}"; then
23965          DB_BACKENDS="postgresql"
23966      else
23967          DB_BACKENDS="${DB_BACKENDS} postgresql"
23968      fi
23969
23970                     if test "x$support_batch_insert" = "xyes"; then
23971                   saved_LDFLAGS="${LDFLAGS}"
23972          LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23973          saved_LIBS="${LIBS}"
23974          if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23975             LIBS="${saved_LIBS} -lcrypt"
23976          fi
23977
23978          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23979 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23980 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23981   $as_echo_n "(cached) " >&6
23982 else
23983   ac_check_lib_save_LIBS=$LIBS
23984 LIBS="-lpq  $LIBS"
23985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23986 /* end confdefs.h.  */
23987
23988 /* Override any GCC internal prototype to avoid an error.
23989    Use char because int might match the return type of a GCC
23990    builtin and then its argument prototype would still apply.  */
23991 #ifdef __cplusplus
23992 extern "C"
23993 #endif
23994 char PQisthreadsafe ();
23995 int
23996 main ()
23997 {
23998 return PQisthreadsafe ();
23999   ;
24000   return 0;
24001 }
24002 _ACEOF
24003 if ac_fn_c_try_link "$LINENO"; then :
24004   ac_cv_lib_pq_PQisthreadsafe=yes
24005 else
24006   ac_cv_lib_pq_PQisthreadsafe=no
24007 fi
24008 rm -f core conftest.err conftest.$ac_objext \
24009     conftest$ac_exeext conftest.$ac_ext
24010 LIBS=$ac_check_lib_save_LIBS
24011 fi
24012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24013 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24014 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24015
24016 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24017
24018 fi
24019
24020          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24021 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24022 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24023   $as_echo_n "(cached) " >&6
24024 else
24025   ac_check_lib_save_LIBS=$LIBS
24026 LIBS="-lpq  $LIBS"
24027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24028 /* end confdefs.h.  */
24029
24030 /* Override any GCC internal prototype to avoid an error.
24031    Use char because int might match the return type of a GCC
24032    builtin and then its argument prototype would still apply.  */
24033 #ifdef __cplusplus
24034 extern "C"
24035 #endif
24036 char PQputCopyData ();
24037 int
24038 main ()
24039 {
24040 return PQputCopyData ();
24041   ;
24042   return 0;
24043 }
24044 _ACEOF
24045 if ac_fn_c_try_link "$LINENO"; then :
24046   ac_cv_lib_pq_PQputCopyData=yes
24047 else
24048   ac_cv_lib_pq_PQputCopyData=no
24049 fi
24050 rm -f core conftest.err conftest.$ac_objext \
24051     conftest$ac_exeext conftest.$ac_ext
24052 LIBS=$ac_check_lib_save_LIBS
24053 fi
24054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24055 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24056 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24057
24058 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24059
24060 fi
24061
24062          if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24063              if test $support_batch_insert = yes ; then
24064
24065 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24066
24067                  if test -z "${batch_insert_db_backends}"; then
24068                      batch_insert_db_backends="PostgreSQL"
24069                  else
24070                      batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24071                  fi
24072              fi
24073          fi
24074
24075          if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24076          then
24077              echo "WARNING: Your PostgreSQL client library is too old to detect "
24078              echo "if it was compiled with --enable-thread-safety, consider to "
24079              echo "upgrade it in order to avoid problems with Batch insert mode"
24080          fi
24081
24082                   LDFLAGS="${saved_LDFLAGS}"
24083          LIBS="${saved_LIBS}"
24084      fi
24085   else
24086      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24087 $as_echo "no" >&6; }
24088   fi
24089
24090 else
24091
24092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24093 $as_echo "no" >&6; }
24094
24095 fi
24096
24097
24098
24099
24100
24101
24102
24103
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24105 $as_echo_n "checking for MySQL support... " >&6; }
24106
24107 # Check whether --with-mysql was given.
24108 if test "${with_mysql+set}" = set; then :
24109   withval=$with_mysql;
24110   if test "$withval" != "no"; then
24111         if test "$withval" = "yes"; then
24112 #
24113 # This code is very broken on older systems
24114 #
24115 #           MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24116 #           if test "x${MYSQL_CONFIG}" != x; then
24117 #              MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24118 #              ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24119 #              if test $? = 0 ; then
24120 #                 MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24121 #                 MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24122 #              else
24123 #                 MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs_r | sed -e 's/.*-L//' -e 's/ .*//'`
24124 #                 MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
24125 #              fi
24126 #           fi
24127 #           if [ "x${MYSQL_LIB}" = x -o "x${MYSQL_INCDIR}" = x ]; then
24128            if test -f /usr/local/mysql/include/mysql/mysql.h; then
24129               MYSQL_INCDIR=/usr/local/mysql/include/mysql
24130               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24131                       -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24132                  MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24133               else
24134                  MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24135               fi
24136               MYSQL_BINDIR=/usr/local/mysql/bin
24137            elif test -f /usr/include/mysql/mysql.h; then
24138               MYSQL_INCDIR=/usr/include/mysql
24139               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24140                       -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24141                  MYSQL_LIBDIR=/usr/lib64/mysql
24142               elif test -f /usr/lib64/libmysqlclient_r.a \
24143                         -o -f /usr/lib64/libmysqlclient_r.so; then
24144                  MYSQL_LIBDIR=/usr/lib64
24145               elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24146                         -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24147                  MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24148               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24149                         -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24150                  MYSQL_LIBDIR=/usr/lib/mysql
24151               else
24152                  MYSQL_LIBDIR=/usr/lib
24153               fi
24154               MYSQL_BINDIR=/usr/bin
24155            elif test -f /usr/include/mysql.h; then
24156               MYSQL_INCDIR=/usr/include
24157               if test -f /usr/lib64/libmysqlclient_r.a \
24158                       -o -f /usr/lib64/libmysqlclient_r.so; then
24159                  MYSQL_LIBDIR=/usr/lib64
24160               else
24161                  MYSQL_LIBDIR=/usr/lib
24162               fi
24163               MYSQL_BINDIR=/usr/bin
24164            elif test -f /usr/local/include/mysql/mysql.h; then
24165               MYSQL_INCDIR=/usr/local/include/mysql
24166               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24167                       -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24168                  MYSQL_LIBDIR=/usr/local/lib64/mysql
24169               else
24170                  MYSQL_LIBDIR=/usr/local/lib/mysql
24171               fi
24172               MYSQL_BINDIR=/usr/local/bin
24173            elif test -f /usr/local/include/mysql.h; then
24174               MYSQL_INCDIR=/usr/local/include
24175               if test -f /usr/local/lib64/libmysqlclient_r.a \
24176                       -o -f /usr/local/lib64/libmysqlclient_r.so; then
24177                  MYSQL_LIBDIR=/usr/local/lib64
24178               else
24179                  MYSQL_LIBDIR=/usr/local/lib
24180               fi
24181               MYSQL_BINDIR=/usr/local/bin
24182            else
24183               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24184 $as_echo "no" >&6; }
24185               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24186            fi
24187         else
24188            if test -f $withval/include/mysql/mysql.h; then
24189               MYSQL_INCDIR=$withval/include/mysql
24190               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24191                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24192                  MYSQL_LIBDIR=$withval/lib64/mysql
24193               elif test -f $withval/lib64/libmysqlclient_r.a \
24194                    -o -f $withval/lib64/libmysqlclient_r.so; then
24195                  MYSQL_LIBDIR=$withval/lib64
24196               elif test -f $withval/lib/libmysqlclient_r.a \
24197                    -o -f $withval/lib/libmysqlclient_r.so; then
24198                  MYSQL_LIBDIR=$withval/lib
24199               else
24200                  MYSQL_LIBDIR=$withval/lib/mysql
24201               fi
24202               MYSQL_BINDIR=$withval/bin
24203            elif test -f $withval/include/mysql.h; then
24204               MYSQL_INCDIR=$withval/include
24205               if test -f $withval/lib64/libmysqlclient_r.a \
24206                    -o -f $withval/lib64/libmysqlclient_r.so; then
24207                  MYSQL_LIBDIR=$withval/lib64
24208               else
24209                  MYSQL_LIBDIR=$withval/lib
24210               fi
24211               MYSQL_BINDIR=$withval/bin
24212            elif test -f $withval/mysql.h; then
24213                             MYSQL_INCDIR=$withval
24214               { $as_echo "$as_me:${as_lineno-$LINENO}: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&5
24215 $as_echo "$as_me: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&6;}
24216               case $MYSQL_INCDIR in
24217                  *mysql55*)
24218                      { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.5 variant installed" >&5
24219 $as_echo "$as_me: Assuming MacPorts MySQL 5.5 variant installed" >&6;}
24220                                           if test -f $prefix/lib/mysql55/mysql/libmysqlclient_r.a \
24221                           -o -f $prefix/lib/mysql55/mysql/libmysqlclient_r.so; then
24222                         { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&5
24223 $as_echo "$as_me: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&6;}
24224                         MYSQL_LIBDIR=$prefix/lib/mysql55/mysql
24225                      fi
24226                      MYSQL_BINDIR=$prefix/lib/mysql55/bin
24227                  ;;
24228                  *mysql51*)
24229                      { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.1 variant installed" >&5
24230 $as_echo "$as_me: Assuming MacPorts MySQL 5.1 variant installed" >&6;}
24231                                           if test -f $prefix/lib/mysql51/mysql/libmysqlclient_r.a \
24232                           -o -f $prefix/lib/mysql51/mysql/libmysqlclient_r.so; then
24233                         { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&5
24234 $as_echo "$as_me: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&6;}
24235                         MYSQL_LIBDIR=$prefix/lib/mysql51/mysql
24236                      fi
24237                      MYSQL_BINDIR=$prefix/lib/mysql51/bin
24238                  ;;
24239               esac
24240               if test -z "${MYSQL_LIBDIR}" ; then
24241                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24242 $as_echo "no" >&6; }
24243                  as_fn_error $? "MySQL $withval - unable to find MySQL libraries" "$LINENO" 5
24244               fi
24245            else
24246               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24247 $as_echo "no" >&6; }
24248               as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24249            fi
24250         fi
24251      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24252      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24253           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24254         if test x$use_libtool != xno; then
24255            MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24256         else
24257            MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24258         fi
24259         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24260      fi
24261      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24262
24263
24264 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24265
24266      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24267 $as_echo "yes" >&6; }
24268
24269      if test -z "${db_backends}" ; then
24270          db_backends="MySQL"
24271      else
24272          db_backends="${db_backends} MySQL"
24273      fi
24274      if test -z "${DB_BACKENDS}" ; then
24275          DB_BACKENDS="mysql"
24276      else
24277          DB_BACKENDS="${DB_BACKENDS} mysql"
24278      fi
24279
24280                     if test "x$support_batch_insert" = "xyes"; then
24281                   saved_LDFLAGS="${LDFLAGS}"
24282          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24283          saved_LIBS="${LIBS}"
24284          LIBS="${saved_LIBS} -lz"
24285
24286          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24287 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24288 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24289   $as_echo_n "(cached) " >&6
24290 else
24291   ac_check_lib_save_LIBS=$LIBS
24292 LIBS="-lmysqlclient_r  $LIBS"
24293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24294 /* end confdefs.h.  */
24295
24296 /* Override any GCC internal prototype to avoid an error.
24297    Use char because int might match the return type of a GCC
24298    builtin and then its argument prototype would still apply.  */
24299 #ifdef __cplusplus
24300 extern "C"
24301 #endif
24302 char mysql_thread_safe ();
24303 int
24304 main ()
24305 {
24306 return mysql_thread_safe ();
24307   ;
24308   return 0;
24309 }
24310 _ACEOF
24311 if ac_fn_c_try_link "$LINENO"; then :
24312   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24313 else
24314   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24315 fi
24316 rm -f core conftest.err conftest.$ac_objext \
24317     conftest$ac_exeext conftest.$ac_ext
24318 LIBS=$ac_check_lib_save_LIBS
24319 fi
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24321 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24322 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24323
24324 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24325
24326 fi
24327
24328          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24329              if test -z "${batch_insert_db_backends}"; then
24330                  batch_insert_db_backends="MySQL"
24331              else
24332                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24333              fi
24334          fi
24335
24336                   LDFLAGS="${saved_LDFLAGS}"
24337          LIBS="${saved_LIBS}"
24338      fi
24339   else
24340      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24341 $as_echo "no" >&6; }
24342   fi
24343
24344 else
24345
24346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24347 $as_echo "no" >&6; }
24348
24349 fi
24350
24351
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24353 $as_echo_n "checking for MySQL embedded support... " >&6; }
24354
24355 # Check whether --with-embedded-mysql was given.
24356 if test "${with_embedded_mysql+set}" = set; then :
24357   withval=$with_embedded_mysql;
24358   if test "$withval" != "no"; then
24359         if test "$withval" = "yes"; then
24360                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24361                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
24362                         if test -d /usr/local/mysql/lib64/mysql; then
24363                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24364                         else
24365                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24366                         fi
24367                         MYSQL_BINDIR=/usr/local/mysql/bin
24368                 elif test -f /usr/include/mysql/mysql.h; then
24369                         MYSQL_INCDIR=/usr/include/mysql
24370                         if test -d /usr/lib64/mysql; then
24371                                 MYSQL_LIBDIR=/usr/lib64/mysql
24372                         else
24373                                 MYSQL_LIBDIR=/usr/lib/mysql
24374                         fi
24375                         MYSQL_BINDIR=/usr/bin
24376                 elif test -f /usr/include/mysql.h; then
24377                         MYSQL_INCDIR=/usr/include
24378                         if test -d /usr/lib64; then
24379                                 MYSQL_LIBDIR=/usr/lib64
24380                         else
24381                                 MYSQL_LIBDIR=/usr/lib
24382                         fi
24383                         MYSQL_BINDIR=/usr/bin
24384                 elif test -f /usr/local/include/mysql/mysql.h; then
24385                         MYSQL_INCDIR=/usr/local/include/mysql
24386                         if test -d /usr/local/lib64/mysql; then
24387                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
24388                         else
24389                                 MYSQL_LIBDIR=/usr/local/lib/mysql
24390                         fi
24391                         MYSQL_BINDIR=/usr/local/bin
24392                 elif test -f /usr/local/include/mysql.h; then
24393                         MYSQL_INCDIR=/usr/local/include
24394                         if test -d /usr/local/lib64; then
24395                                 MYSQL_LIBDIR=/usr/local/lib64
24396                         else
24397                                 MYSQL_LIBDIR=/usr/local/lib
24398                         fi
24399                         MYSQL_BINDIR=/usr/local/bin
24400                 else
24401                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24402 $as_echo "no" >&6; }
24403                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24404                 fi
24405         else
24406                 if test -f $withval/include/mysql/mysql.h; then
24407                         MYSQL_INCDIR=$withval/include/mysql
24408                         if test -d $withval/lib64/mysql; then
24409                                 MYSQL_LIBDIR=$withval/lib64/mysql
24410                         else
24411                                 MYSQL_LIBDIR=$withval/lib/mysql
24412                         fi
24413                         MYSQL_BINDIR=$withval/bin
24414                 elif test -f $withval/include/mysql.h; then
24415                         MYSQL_INCDIR=$withval/include
24416                         if test -d $withval/lib64; then
24417                                 MYSQL_LIBDIR=$withval/lib64
24418                         else
24419                                 MYSQL_LIBDIR=$withval/lib
24420                         fi
24421                         MYSQL_BINDIR=$withval/bin
24422                 else
24423                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24424 $as_echo "no" >&6; }
24425                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24426                 fi
24427         fi
24428      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24429      if test x$use_libtool != xno; then
24430         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24431      else
24432         MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24433      fi
24434      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24435      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24436
24437
24438 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24439
24440
24441 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24442
24443      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24444 $as_echo "yes" >&6; }
24445
24446      if test -z "${db_backends}"; then
24447          db_backends="MySQL"
24448      else
24449          db_backends="${db_backends} MySQL"
24450      fi
24451      if test -z "${DB_BACKENDS}"; then
24452          DB_BACKENDS="mysql"
24453      else
24454          DB_BACKENDS="${DB_BACKENDS} mysql"
24455      fi
24456
24457                     if test "x$support_batch_insert" = "xyes"; then
24458                   saved_LDFLAGS="${LDFLAGS}"
24459          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24460          saved_LIBS="${LIBS}"
24461          LIBS="${saved_LIBS} -lz -lm -lcrypt"
24462
24463          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24464 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24465 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24466   $as_echo_n "(cached) " >&6
24467 else
24468   ac_check_lib_save_LIBS=$LIBS
24469 LIBS="-lmysqlclient_r  $LIBS"
24470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24471 /* end confdefs.h.  */
24472
24473 /* Override any GCC internal prototype to avoid an error.
24474    Use char because int might match the return type of a GCC
24475    builtin and then its argument prototype would still apply.  */
24476 #ifdef __cplusplus
24477 extern "C"
24478 #endif
24479 char mysql_thread_safe ();
24480 int
24481 main ()
24482 {
24483 return mysql_thread_safe ();
24484   ;
24485   return 0;
24486 }
24487 _ACEOF
24488 if ac_fn_c_try_link "$LINENO"; then :
24489   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24490 else
24491   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24492 fi
24493 rm -f core conftest.err conftest.$ac_objext \
24494     conftest$ac_exeext conftest.$ac_ext
24495 LIBS=$ac_check_lib_save_LIBS
24496 fi
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24498 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24499 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24500
24501 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24502
24503 fi
24504
24505          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24506              if test -z "${batch_insert_db_backends}"; then
24507                  batch_insert_db_backends="MySQL"
24508              else
24509                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24510              fi
24511          fi
24512
24513                   LDFLAGS="${saved_LDFLAGS}"
24514          LIBS="${saved_LIBS}"
24515      fi
24516   else
24517      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24518 $as_echo "no" >&6; }
24519   fi
24520
24521 else
24522
24523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24524 $as_echo "no" >&6; }
24525
24526 fi
24527
24528
24529
24530
24531
24532
24533
24534
24535
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24537 $as_echo_n "checking for SQLite3 support... " >&6; }
24538
24539 # Check whether --with-sqlite3 was given.
24540 if test "${with_sqlite3+set}" = set; then :
24541   withval=$with_sqlite3;
24542   if test "$withval" != "no"; then
24543      if test "$withval" = "yes"; then
24544         if test -f /usr/local/include/sqlite3.h; then
24545            SQLITE_INCDIR=/usr/local/include
24546            if test -d /usr/local/lib64; then
24547               SQLITE_LIBDIR=/usr/local/lib64
24548            else
24549               SQLITE_LIBDIR=/usr/local/lib
24550            fi
24551            SQLITE_BINDIR=/usr/local/bin
24552         elif test -f /usr/include/sqlite3.h; then
24553            SQLITE_INCDIR=/usr/include
24554            if test -d /usr/lib64; then
24555               SQLITE_LIBDIR=/usr/lib64
24556            else
24557               SQLITE_LIBDIR=/usr/lib
24558            fi
24559            SQLITE_BINDIR=/usr/bin
24560         elif test -f $prefix/include/sqlite3.h; then
24561            SQLITE_INCDIR=$prefix/include
24562            if test -d $prefix/lib64; then
24563               SQLITE_LIBDIR=$prefix/lib64
24564            else
24565               SQLITE_LIBDIR=$prefix/lib
24566            fi
24567            SQLITE_BINDIR=$prefix/bin
24568         else
24569            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24570 $as_echo "no" >&6; }
24571            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24572         fi
24573      else
24574         if test -f $withval/sqlite3.h; then
24575            SQLITE_INCDIR=$withval
24576            SQLITE_LIBDIR=$withval
24577            SQLITE_BINDIR=$withval
24578         elif test -f $withval/include/sqlite3.h; then
24579            SQLITE_INCDIR=$withval/include
24580            if test -d $withval/lib64; then
24581               SQLITE_LIBDIR=$withval/lib64
24582            else
24583               SQLITE_LIBDIR=$withval/lib
24584            fi
24585            SQLITE_BINDIR=$withval/bin
24586         else
24587            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24588 $as_echo "no" >&6; }
24589            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24590         fi
24591      fi
24592      SQLITE_INCLUDE=-I$SQLITE_INCDIR
24593      if test x$use_libtool != xno; then
24594         SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24595      else
24596         SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24597      fi
24598      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24599      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24600
24601
24602 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24603
24604      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24605 $as_echo "yes" >&6; }
24606
24607      if test -z "${db_backends}"; then
24608          db_backends="SQLite3"
24609      else
24610          db_backends="${db_backends} SQLite3"
24611      fi
24612      if test -z "${DB_BACKENDS}"; then
24613          DB_BACKENDS="sqlite3"
24614      else
24615          DB_BACKENDS="${DB_BACKENDS} sqlite3"
24616      fi
24617
24618                     if test "x$support_batch_insert" = "xyes"; then
24619                   saved_LDFLAGS="${LDFLAGS}"
24620          LDFLAGS="${saved_LDFLAGS} -lpthread -L$SQLITE_LIBDIR"
24621
24622          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24623 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24624 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24625   $as_echo_n "(cached) " >&6
24626 else
24627   ac_check_lib_save_LIBS=$LIBS
24628 LIBS="-lsqlite3  $LIBS"
24629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24630 /* end confdefs.h.  */
24631
24632 /* Override any GCC internal prototype to avoid an error.
24633    Use char because int might match the return type of a GCC
24634    builtin and then its argument prototype would still apply.  */
24635 #ifdef __cplusplus
24636 extern "C"
24637 #endif
24638 char sqlite3_threadsafe ();
24639 int
24640 main ()
24641 {
24642 return sqlite3_threadsafe ();
24643   ;
24644   return 0;
24645 }
24646 _ACEOF
24647 if ac_fn_c_try_link "$LINENO"; then :
24648   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24649 else
24650   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24651 fi
24652 rm -f core conftest.err conftest.$ac_objext \
24653     conftest$ac_exeext conftest.$ac_ext
24654 LIBS=$ac_check_lib_save_LIBS
24655 fi
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24657 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24658 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24659
24660 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24661
24662 fi
24663
24664          if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24665              if test -z "${batch_insert_db_backends}"; then
24666                  batch_insert_db_backends="SQLite3"
24667              else
24668                  batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24669              fi
24670          fi
24671
24672                   LDFLAGS="${saved_LDFLAGS}"
24673      fi
24674   else
24675      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24676 $as_echo "no" >&6; }
24677   fi
24678
24679 else
24680
24681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24682 $as_echo "no" >&6; }
24683
24684 fi
24685
24686
24687
24688
24689
24690
24691
24692 if test -z "${batch_insert_db_backends}"; then
24693    batch_insert_db_backends="None"
24694 fi
24695
24696 if test "x${db_backends}" = "x" ; then
24697    echo " "
24698    echo " "
24699    echo "You have not specified either --enable-client-only or one of the"
24700    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24701    echo "This is not permitted. Please reconfigure."
24702    echo " "
24703    echo "Aborting the configuration ..."
24704    echo " "
24705    echo " "
24706    exit 1
24707 fi
24708
24709 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24710    1)
24711       DEFAULT_DB_TYPE="${DB_BACKENDS}"
24712       if test x$use_libtool = xno; then
24713          SHARED_CATALOG_TARGETS=""
24714       else
24715          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24716       fi
24717       ;;
24718    *)
24719                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24720
24721                         if test x$use_libtool = xno; then
24722          echo " "
24723          echo " "
24724          echo "You have specified two or more of the"
24725          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24726          echo "This is not permitted when not using libtool Please reconfigure."
24727          echo " "
24728          echo "Aborting the configuration ..."
24729          echo " "
24730          echo " "
24731          exit 1
24732       fi
24733
24734       SHARED_CATALOG_TARGETS=""
24735       for db_type in ${DB_BACKENDS}
24736       do
24737          if test -z "${SHARED_CATALOG_TARGETS}"; then
24738             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24739          else
24740             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24741          fi
24742       done
24743       ;;
24744 esac
24745
24746 if test x$use_libtool = xyes; then
24747    DB_LIBS=""
24748 fi
24749
24750
24751
24752
24753
24754
24755
24756 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24757
24758
24759 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24760    if test -z "$CCOPTS"; then
24761       CCOPTS='-g -O2 -Wall'
24762    fi
24763    CFLAGS="$CCOPTS"
24764 fi
24765
24766
24767
24768 largefile_support="no"
24769
24770    # Check whether --enable-largefile was given.
24771 if test "${enable_largefile+set}" = set; then :
24772   enableval=$enable_largefile;
24773 fi
24774
24775    if test "$enable_largefile" != no; then
24776      if test -n "$ac_tool_prefix"; then
24777   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24778 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24780 $as_echo_n "checking for $ac_word... " >&6; }
24781 if ${ac_cv_prog_GETCONF+:} false; then :
24782   $as_echo_n "(cached) " >&6
24783 else
24784   if test -n "$GETCONF"; then
24785   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24786 else
24787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24788 for as_dir in $PATH
24789 do
24790   IFS=$as_save_IFS
24791   test -z "$as_dir" && as_dir=.
24792     for ac_exec_ext in '' $ac_executable_extensions; do
24793   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24794     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24796     break 2
24797   fi
24798 done
24799   done
24800 IFS=$as_save_IFS
24801
24802 fi
24803 fi
24804 GETCONF=$ac_cv_prog_GETCONF
24805 if test -n "$GETCONF"; then
24806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24807 $as_echo "$GETCONF" >&6; }
24808 else
24809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24810 $as_echo "no" >&6; }
24811 fi
24812
24813
24814 fi
24815 if test -z "$ac_cv_prog_GETCONF"; then
24816   ac_ct_GETCONF=$GETCONF
24817   # Extract the first word of "getconf", so it can be a program name with args.
24818 set dummy getconf; ac_word=$2
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24820 $as_echo_n "checking for $ac_word... " >&6; }
24821 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24822   $as_echo_n "(cached) " >&6
24823 else
24824   if test -n "$ac_ct_GETCONF"; then
24825   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24826 else
24827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24828 for as_dir in $PATH
24829 do
24830   IFS=$as_save_IFS
24831   test -z "$as_dir" && as_dir=.
24832     for ac_exec_ext in '' $ac_executable_extensions; do
24833   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24834     ac_cv_prog_ac_ct_GETCONF="getconf"
24835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24836     break 2
24837   fi
24838 done
24839   done
24840 IFS=$as_save_IFS
24841
24842 fi
24843 fi
24844 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24845 if test -n "$ac_ct_GETCONF"; then
24846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24847 $as_echo "$ac_ct_GETCONF" >&6; }
24848 else
24849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24850 $as_echo "no" >&6; }
24851 fi
24852
24853   if test "x$ac_ct_GETCONF" = x; then
24854     GETCONF=""
24855   else
24856     case $cross_compiling:$ac_tool_warned in
24857 yes:)
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24860 ac_tool_warned=yes ;;
24861 esac
24862     GETCONF=$ac_ct_GETCONF
24863   fi
24864 else
24865   GETCONF="$ac_cv_prog_GETCONF"
24866 fi
24867
24868      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24869 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24870 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24871   $as_echo_n "(cached) " >&6
24872 else
24873   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24874         ac_cv_sys_largefile_CFLAGS=no
24875         case "$host_os" in
24876            # IRIX 6.2 and later require cc -n32.
24877            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24878              if test "$GCC" != yes; then
24879                ac_cv_sys_largefile_CFLAGS=-n32
24880              fi
24881              ac_save_CC="$CC"
24882              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24883              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24884 /* end confdefs.h.  */
24885
24886 int
24887 main ()
24888 {
24889
24890   ;
24891   return 0;
24892 }
24893 _ACEOF
24894 if ac_fn_c_try_link "$LINENO"; then :
24895
24896 else
24897   ac_cv_sys_largefile_CFLAGS=no
24898 fi
24899 rm -f core conftest.err conftest.$ac_objext \
24900     conftest$ac_exeext conftest.$ac_ext
24901              CC="$ac_save_CC"
24902            esac
24903       }
24904 fi
24905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24906 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24907      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24908 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24909 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24910   $as_echo_n "(cached) " >&6
24911 else
24912   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24913         ac_cv_sys_largefile_LDFLAGS=no
24914
24915       }
24916 fi
24917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24918 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24919      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24920 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24921 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24922   $as_echo_n "(cached) " >&6
24923 else
24924   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24925         ac_cv_sys_largefile_LIBS=no
24926
24927       }
24928 fi
24929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24930 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24931
24932      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24933        case "$ac_flag" in
24934        no) ;;
24935        -D_FILE_OFFSET_BITS=*) ;;
24936        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24937        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24938        -D?* | -I?*)
24939          case "$ac_flag" in
24940    no) ;;
24941    ?*)
24942      case "$CPPFLAGS" in
24943      '') CPPFLAGS="$ac_flag" ;;
24944      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24945      esac ;;
24946    esac ;;
24947        *)
24948          case "$ac_flag" in
24949    no) ;;
24950    ?*)
24951      case "$CFLAGS" in
24952      '') CFLAGS="$ac_flag" ;;
24953      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24954      esac ;;
24955    esac ;;
24956        esac
24957      done
24958      case "$ac_cv_sys_largefile_LDFLAGS" in
24959    no) ;;
24960    ?*)
24961      case "$LDFLAGS" in
24962      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24963      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24964      esac ;;
24965    esac
24966      case "$ac_cv_sys_largefile_LIBS" in
24967    no) ;;
24968    ?*)
24969      case "$LIBS" in
24970      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24971      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24972      esac ;;
24973    esac
24974      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24975 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24976 if ${ac_cv_sys_file_offset_bits+:} false; then :
24977   $as_echo_n "(cached) " >&6
24978 else
24979   ac_cv_sys_file_offset_bits=no
24980       ac_cv_sys_file_offset_bits=64
24981       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24982         case "$ac_flag" in
24983         -D_FILE_OFFSET_BITS)
24984           ac_cv_sys_file_offset_bits=1 ;;
24985         -D_FILE_OFFSET_BITS=*)
24986           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24987         esac
24988       done
24989
24990 fi
24991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24992 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24993    if test "$ac_cv_sys_file_offset_bits" != no; then
24994
24995 cat >>confdefs.h <<_ACEOF
24996 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24997 _ACEOF
24998
24999    fi
25000      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
25001 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
25002 if ${ac_cv_sys_largefile_source+:} false; then :
25003   $as_echo_n "(cached) " >&6
25004 else
25005   ac_cv_sys_largefile_source=no
25006       ac_cv_sys_largefile_source=1
25007       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25008         case "$ac_flag" in
25009         -D_LARGEFILE_SOURCE)
25010           ac_cv_sys_largefile_source=1 ;;
25011         -D_LARGEFILE_SOURCE=*)
25012           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25013         esac
25014       done
25015
25016 fi
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25018 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25019    if test "$ac_cv_sys_largefile_source" != no; then
25020
25021 cat >>confdefs.h <<_ACEOF
25022 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25023 _ACEOF
25024
25025    fi
25026      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
25027 $as_echo_n "checking for _LARGE_FILES... " >&6; }
25028 if ${ac_cv_sys_large_files+:} false; then :
25029   $as_echo_n "(cached) " >&6
25030 else
25031   ac_cv_sys_large_files=no
25032       ac_cv_sys_large_files=1
25033       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25034         case "$ac_flag" in
25035         -D_LARGE_FILES)
25036           ac_cv_sys_large_files=1 ;;
25037         -D_LARGE_FILES=*)
25038           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25039         esac
25040       done
25041
25042 fi
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25044 $as_echo "$ac_cv_sys_large_files" >&6; }
25045    if test "$ac_cv_sys_large_files" != no; then
25046
25047 cat >>confdefs.h <<_ACEOF
25048 #define _LARGE_FILES $ac_cv_sys_large_files
25049 _ACEOF
25050
25051    fi
25052    fi
25053
25054
25055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25056 $as_echo_n "checking for X... " >&6; }
25057
25058
25059 # Check whether --with-x was given.
25060 if test "${with_x+set}" = set; then :
25061   withval=$with_x;
25062 fi
25063
25064 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25065 if test "x$with_x" = xno; then
25066   # The user explicitly disabled X.
25067   have_x=disabled
25068 else
25069   case $x_includes,$x_libraries in #(
25070     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25071     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25072   $as_echo_n "(cached) " >&6
25073 else
25074   # One or both of the vars are not set, and there is no cached value.
25075 ac_x_includes=no ac_x_libraries=no
25076 rm -f -r conftest.dir
25077 if mkdir conftest.dir; then
25078   cd conftest.dir
25079   cat >Imakefile <<'_ACEOF'
25080 incroot:
25081         @echo incroot='${INCROOT}'
25082 usrlibdir:
25083         @echo usrlibdir='${USRLIBDIR}'
25084 libdir:
25085         @echo libdir='${LIBDIR}'
25086 _ACEOF
25087   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25088     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25089     for ac_var in incroot usrlibdir libdir; do
25090       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25091     done
25092     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25093     for ac_extension in a so sl dylib la dll; do
25094       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25095          test -f "$ac_im_libdir/libX11.$ac_extension"; then
25096         ac_im_usrlibdir=$ac_im_libdir; break
25097       fi
25098     done
25099     # Screen out bogus values from the imake configuration.  They are
25100     # bogus both because they are the default anyway, and because
25101     # using them would break gcc on systems where it needs fixed includes.
25102     case $ac_im_incroot in
25103         /usr/include) ac_x_includes= ;;
25104         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25105     esac
25106     case $ac_im_usrlibdir in
25107         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25108         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25109     esac
25110   fi
25111   cd ..
25112   rm -f -r conftest.dir
25113 fi
25114
25115 # Standard set of common directories for X headers.
25116 # Check X11 before X11Rn because it is often a symlink to the current release.
25117 ac_x_header_dirs='
25118 /usr/X11/include
25119 /usr/X11R7/include
25120 /usr/X11R6/include
25121 /usr/X11R5/include
25122 /usr/X11R4/include
25123
25124 /usr/include/X11
25125 /usr/include/X11R7
25126 /usr/include/X11R6
25127 /usr/include/X11R5
25128 /usr/include/X11R4
25129
25130 /usr/local/X11/include
25131 /usr/local/X11R7/include
25132 /usr/local/X11R6/include
25133 /usr/local/X11R5/include
25134 /usr/local/X11R4/include
25135
25136 /usr/local/include/X11
25137 /usr/local/include/X11R7
25138 /usr/local/include/X11R6
25139 /usr/local/include/X11R5
25140 /usr/local/include/X11R4
25141
25142 /usr/X386/include
25143 /usr/x386/include
25144 /usr/XFree86/include/X11
25145
25146 /usr/include
25147 /usr/local/include
25148 /usr/unsupported/include
25149 /usr/athena/include
25150 /usr/local/x11r5/include
25151 /usr/lpp/Xamples/include
25152
25153 /usr/openwin/include
25154 /usr/openwin/share/include'
25155
25156 if test "$ac_x_includes" = no; then
25157   # Guess where to find include files, by looking for Xlib.h.
25158   # First, try using that file with no special directory specified.
25159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25160 /* end confdefs.h.  */
25161 #include <X11/Xlib.h>
25162 _ACEOF
25163 if ac_fn_c_try_cpp "$LINENO"; then :
25164   # We can compile using X headers with no special include directory.
25165 ac_x_includes=
25166 else
25167   for ac_dir in $ac_x_header_dirs; do
25168   if test -r "$ac_dir/X11/Xlib.h"; then
25169     ac_x_includes=$ac_dir
25170     break
25171   fi
25172 done
25173 fi
25174 rm -f conftest.err conftest.i conftest.$ac_ext
25175 fi # $ac_x_includes = no
25176
25177 if test "$ac_x_libraries" = no; then
25178   # Check for the libraries.
25179   # See if we find them without any special options.
25180   # Don't add to $LIBS permanently.
25181   ac_save_LIBS=$LIBS
25182   LIBS="-lX11 $LIBS"
25183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25184 /* end confdefs.h.  */
25185 #include <X11/Xlib.h>
25186 int
25187 main ()
25188 {
25189 XrmInitialize ()
25190   ;
25191   return 0;
25192 }
25193 _ACEOF
25194 if ac_fn_c_try_link "$LINENO"; then :
25195   LIBS=$ac_save_LIBS
25196 # We can link X programs with no special library path.
25197 ac_x_libraries=
25198 else
25199   LIBS=$ac_save_LIBS
25200 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25201 do
25202   # Don't even attempt the hair of trying to link an X program!
25203   for ac_extension in a so sl dylib la dll; do
25204     if test -r "$ac_dir/libX11.$ac_extension"; then
25205       ac_x_libraries=$ac_dir
25206       break 2
25207     fi
25208   done
25209 done
25210 fi
25211 rm -f core conftest.err conftest.$ac_objext \
25212     conftest$ac_exeext conftest.$ac_ext
25213 fi # $ac_x_libraries = no
25214
25215 case $ac_x_includes,$ac_x_libraries in #(
25216   no,* | *,no | *\'*)
25217     # Didn't find X, or a directory has "'" in its name.
25218     ac_cv_have_x="have_x=no";; #(
25219   *)
25220     # Record where we found X for the cache.
25221     ac_cv_have_x="have_x=yes\
25222         ac_x_includes='$ac_x_includes'\
25223         ac_x_libraries='$ac_x_libraries'"
25224 esac
25225 fi
25226 ;; #(
25227     *) have_x=yes;;
25228   esac
25229   eval "$ac_cv_have_x"
25230 fi # $with_x != no
25231
25232 if test "$have_x" != yes; then
25233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25234 $as_echo "$have_x" >&6; }
25235   no_x=yes
25236 else
25237   # If each of the values was on the command line, it overrides each guess.
25238   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25239   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25240   # Update the cache value to reflect the command line values.
25241   ac_cv_have_x="have_x=yes\
25242         ac_x_includes='$x_includes'\
25243         ac_x_libraries='$x_libraries'"
25244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25245 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25246 fi
25247
25248 if test "$no_x" = yes; then
25249   # Not all programs may use this symbol, but it does not hurt to define it.
25250
25251 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25252
25253   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25254 else
25255   if test -n "$x_includes"; then
25256     X_CFLAGS="$X_CFLAGS -I$x_includes"
25257   fi
25258
25259   # It would also be nice to do this for all -L options, not just this one.
25260   if test -n "$x_libraries"; then
25261     X_LIBS="$X_LIBS -L$x_libraries"
25262     # For Solaris; some versions of Sun CC require a space after -R and
25263     # others require no space.  Words are not sufficient . . . .
25264     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25265 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25266     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25267     ac_xsave_c_werror_flag=$ac_c_werror_flag
25268     ac_c_werror_flag=yes
25269     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25270 /* end confdefs.h.  */
25271
25272 int
25273 main ()
25274 {
25275
25276   ;
25277   return 0;
25278 }
25279 _ACEOF
25280 if ac_fn_c_try_link "$LINENO"; then :
25281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25282 $as_echo "no" >&6; }
25283        X_LIBS="$X_LIBS -R$x_libraries"
25284 else
25285   LIBS="$ac_xsave_LIBS -R $x_libraries"
25286        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25287 /* end confdefs.h.  */
25288
25289 int
25290 main ()
25291 {
25292
25293   ;
25294   return 0;
25295 }
25296 _ACEOF
25297 if ac_fn_c_try_link "$LINENO"; then :
25298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25299 $as_echo "yes" >&6; }
25300           X_LIBS="$X_LIBS -R $x_libraries"
25301 else
25302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25303 $as_echo "neither works" >&6; }
25304 fi
25305 rm -f core conftest.err conftest.$ac_objext \
25306     conftest$ac_exeext conftest.$ac_ext
25307 fi
25308 rm -f core conftest.err conftest.$ac_objext \
25309     conftest$ac_exeext conftest.$ac_ext
25310     ac_c_werror_flag=$ac_xsave_c_werror_flag
25311     LIBS=$ac_xsave_LIBS
25312   fi
25313
25314   # Check for system-dependent libraries X programs must link with.
25315   # Do this before checking for the system-independent R6 libraries
25316   # (-lICE), since we may need -lsocket or whatever for X linking.
25317
25318   if test "$ISC" = yes; then
25319     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25320   else
25321     # Martyn Johnson says this is needed for Ultrix, if the X
25322     # libraries were built with DECnet support.  And Karl Berry says
25323     # the Alpha needs dnet_stub (dnet does not exist).
25324     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25325     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25326 /* end confdefs.h.  */
25327
25328 /* Override any GCC internal prototype to avoid an error.
25329    Use char because int might match the return type of a GCC
25330    builtin and then its argument prototype would still apply.  */
25331 #ifdef __cplusplus
25332 extern "C"
25333 #endif
25334 char XOpenDisplay ();
25335 int
25336 main ()
25337 {
25338 return XOpenDisplay ();
25339   ;
25340   return 0;
25341 }
25342 _ACEOF
25343 if ac_fn_c_try_link "$LINENO"; then :
25344
25345 else
25346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25347 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25348 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25349   $as_echo_n "(cached) " >&6
25350 else
25351   ac_check_lib_save_LIBS=$LIBS
25352 LIBS="-ldnet  $LIBS"
25353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25354 /* end confdefs.h.  */
25355
25356 /* Override any GCC internal prototype to avoid an error.
25357    Use char because int might match the return type of a GCC
25358    builtin and then its argument prototype would still apply.  */
25359 #ifdef __cplusplus
25360 extern "C"
25361 #endif
25362 char dnet_ntoa ();
25363 int
25364 main ()
25365 {
25366 return dnet_ntoa ();
25367   ;
25368   return 0;
25369 }
25370 _ACEOF
25371 if ac_fn_c_try_link "$LINENO"; then :
25372   ac_cv_lib_dnet_dnet_ntoa=yes
25373 else
25374   ac_cv_lib_dnet_dnet_ntoa=no
25375 fi
25376 rm -f core conftest.err conftest.$ac_objext \
25377     conftest$ac_exeext conftest.$ac_ext
25378 LIBS=$ac_check_lib_save_LIBS
25379 fi
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25381 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25382 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25383   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25384 fi
25385
25386     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25387       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25388 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25389 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25390   $as_echo_n "(cached) " >&6
25391 else
25392   ac_check_lib_save_LIBS=$LIBS
25393 LIBS="-ldnet_stub  $LIBS"
25394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25395 /* end confdefs.h.  */
25396
25397 /* Override any GCC internal prototype to avoid an error.
25398    Use char because int might match the return type of a GCC
25399    builtin and then its argument prototype would still apply.  */
25400 #ifdef __cplusplus
25401 extern "C"
25402 #endif
25403 char dnet_ntoa ();
25404 int
25405 main ()
25406 {
25407 return dnet_ntoa ();
25408   ;
25409   return 0;
25410 }
25411 _ACEOF
25412 if ac_fn_c_try_link "$LINENO"; then :
25413   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25414 else
25415   ac_cv_lib_dnet_stub_dnet_ntoa=no
25416 fi
25417 rm -f core conftest.err conftest.$ac_objext \
25418     conftest$ac_exeext conftest.$ac_ext
25419 LIBS=$ac_check_lib_save_LIBS
25420 fi
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25422 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25423 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25424   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25425 fi
25426
25427     fi
25428 fi
25429 rm -f core conftest.err conftest.$ac_objext \
25430     conftest$ac_exeext conftest.$ac_ext
25431     LIBS="$ac_xsave_LIBS"
25432
25433     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25434     # to get the SysV transport functions.
25435     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25436     # needs -lnsl.
25437     # The nsl library prevents programs from opening the X display
25438     # on Irix 5.2, according to T.E. Dickey.
25439     # The functions gethostbyname, getservbyname, and inet_addr are
25440     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25441     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25442 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25443
25444 fi
25445
25446     if test $ac_cv_func_gethostbyname = no; then
25447       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25448 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25449 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25450   $as_echo_n "(cached) " >&6
25451 else
25452   ac_check_lib_save_LIBS=$LIBS
25453 LIBS="-lnsl  $LIBS"
25454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25455 /* end confdefs.h.  */
25456
25457 /* Override any GCC internal prototype to avoid an error.
25458    Use char because int might match the return type of a GCC
25459    builtin and then its argument prototype would still apply.  */
25460 #ifdef __cplusplus
25461 extern "C"
25462 #endif
25463 char gethostbyname ();
25464 int
25465 main ()
25466 {
25467 return gethostbyname ();
25468   ;
25469   return 0;
25470 }
25471 _ACEOF
25472 if ac_fn_c_try_link "$LINENO"; then :
25473   ac_cv_lib_nsl_gethostbyname=yes
25474 else
25475   ac_cv_lib_nsl_gethostbyname=no
25476 fi
25477 rm -f core conftest.err conftest.$ac_objext \
25478     conftest$ac_exeext conftest.$ac_ext
25479 LIBS=$ac_check_lib_save_LIBS
25480 fi
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25482 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25483 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25484   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25485 fi
25486
25487       if test $ac_cv_lib_nsl_gethostbyname = no; then
25488         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25489 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25490 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25491   $as_echo_n "(cached) " >&6
25492 else
25493   ac_check_lib_save_LIBS=$LIBS
25494 LIBS="-lbsd  $LIBS"
25495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25496 /* end confdefs.h.  */
25497
25498 /* Override any GCC internal prototype to avoid an error.
25499    Use char because int might match the return type of a GCC
25500    builtin and then its argument prototype would still apply.  */
25501 #ifdef __cplusplus
25502 extern "C"
25503 #endif
25504 char gethostbyname ();
25505 int
25506 main ()
25507 {
25508 return gethostbyname ();
25509   ;
25510   return 0;
25511 }
25512 _ACEOF
25513 if ac_fn_c_try_link "$LINENO"; then :
25514   ac_cv_lib_bsd_gethostbyname=yes
25515 else
25516   ac_cv_lib_bsd_gethostbyname=no
25517 fi
25518 rm -f core conftest.err conftest.$ac_objext \
25519     conftest$ac_exeext conftest.$ac_ext
25520 LIBS=$ac_check_lib_save_LIBS
25521 fi
25522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25523 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25524 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25525   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25526 fi
25527
25528       fi
25529     fi
25530
25531     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25532     # socket/setsockopt and other routines are undefined under SCO ODT
25533     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25534     # on later versions), says Simon Leinen: it contains gethostby*
25535     # variants that don't use the name server (or something).  -lsocket
25536     # must be given before -lnsl if both are needed.  We assume that
25537     # if connect needs -lnsl, so does gethostbyname.
25538     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25539 if test "x$ac_cv_func_connect" = xyes; then :
25540
25541 fi
25542
25543     if test $ac_cv_func_connect = no; then
25544       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25545 $as_echo_n "checking for connect in -lsocket... " >&6; }
25546 if ${ac_cv_lib_socket_connect+:} false; then :
25547   $as_echo_n "(cached) " >&6
25548 else
25549   ac_check_lib_save_LIBS=$LIBS
25550 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25552 /* end confdefs.h.  */
25553
25554 /* Override any GCC internal prototype to avoid an error.
25555    Use char because int might match the return type of a GCC
25556    builtin and then its argument prototype would still apply.  */
25557 #ifdef __cplusplus
25558 extern "C"
25559 #endif
25560 char connect ();
25561 int
25562 main ()
25563 {
25564 return connect ();
25565   ;
25566   return 0;
25567 }
25568 _ACEOF
25569 if ac_fn_c_try_link "$LINENO"; then :
25570   ac_cv_lib_socket_connect=yes
25571 else
25572   ac_cv_lib_socket_connect=no
25573 fi
25574 rm -f core conftest.err conftest.$ac_objext \
25575     conftest$ac_exeext conftest.$ac_ext
25576 LIBS=$ac_check_lib_save_LIBS
25577 fi
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25579 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25580 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25581   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25582 fi
25583
25584     fi
25585
25586     # Guillermo Gomez says -lposix is necessary on A/UX.
25587     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25588 if test "x$ac_cv_func_remove" = xyes; then :
25589
25590 fi
25591
25592     if test $ac_cv_func_remove = no; then
25593       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25594 $as_echo_n "checking for remove in -lposix... " >&6; }
25595 if ${ac_cv_lib_posix_remove+:} false; then :
25596   $as_echo_n "(cached) " >&6
25597 else
25598   ac_check_lib_save_LIBS=$LIBS
25599 LIBS="-lposix  $LIBS"
25600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25601 /* end confdefs.h.  */
25602
25603 /* Override any GCC internal prototype to avoid an error.
25604    Use char because int might match the return type of a GCC
25605    builtin and then its argument prototype would still apply.  */
25606 #ifdef __cplusplus
25607 extern "C"
25608 #endif
25609 char remove ();
25610 int
25611 main ()
25612 {
25613 return remove ();
25614   ;
25615   return 0;
25616 }
25617 _ACEOF
25618 if ac_fn_c_try_link "$LINENO"; then :
25619   ac_cv_lib_posix_remove=yes
25620 else
25621   ac_cv_lib_posix_remove=no
25622 fi
25623 rm -f core conftest.err conftest.$ac_objext \
25624     conftest$ac_exeext conftest.$ac_ext
25625 LIBS=$ac_check_lib_save_LIBS
25626 fi
25627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25628 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25629 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25630   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25631 fi
25632
25633     fi
25634
25635     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25636     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25637 if test "x$ac_cv_func_shmat" = xyes; then :
25638
25639 fi
25640
25641     if test $ac_cv_func_shmat = no; then
25642       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25643 $as_echo_n "checking for shmat in -lipc... " >&6; }
25644 if ${ac_cv_lib_ipc_shmat+:} false; then :
25645   $as_echo_n "(cached) " >&6
25646 else
25647   ac_check_lib_save_LIBS=$LIBS
25648 LIBS="-lipc  $LIBS"
25649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25650 /* end confdefs.h.  */
25651
25652 /* Override any GCC internal prototype to avoid an error.
25653    Use char because int might match the return type of a GCC
25654    builtin and then its argument prototype would still apply.  */
25655 #ifdef __cplusplus
25656 extern "C"
25657 #endif
25658 char shmat ();
25659 int
25660 main ()
25661 {
25662 return shmat ();
25663   ;
25664   return 0;
25665 }
25666 _ACEOF
25667 if ac_fn_c_try_link "$LINENO"; then :
25668   ac_cv_lib_ipc_shmat=yes
25669 else
25670   ac_cv_lib_ipc_shmat=no
25671 fi
25672 rm -f core conftest.err conftest.$ac_objext \
25673     conftest$ac_exeext conftest.$ac_ext
25674 LIBS=$ac_check_lib_save_LIBS
25675 fi
25676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25677 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25678 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25679   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25680 fi
25681
25682     fi
25683   fi
25684
25685   # Check for libraries that X11R6 Xt/Xaw programs need.
25686   ac_save_LDFLAGS=$LDFLAGS
25687   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25688   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25689   # check for ICE first), but we must link in the order -lSM -lICE or
25690   # we get undefined symbols.  So assume we have SM if we have ICE.
25691   # These have to be linked with before -lX11, unlike the other
25692   # libraries we check for below, so use a different variable.
25693   # John Interrante, Karl Berry
25694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25695 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25696 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25697   $as_echo_n "(cached) " >&6
25698 else
25699   ac_check_lib_save_LIBS=$LIBS
25700 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25702 /* end confdefs.h.  */
25703
25704 /* Override any GCC internal prototype to avoid an error.
25705    Use char because int might match the return type of a GCC
25706    builtin and then its argument prototype would still apply.  */
25707 #ifdef __cplusplus
25708 extern "C"
25709 #endif
25710 char IceConnectionNumber ();
25711 int
25712 main ()
25713 {
25714 return IceConnectionNumber ();
25715   ;
25716   return 0;
25717 }
25718 _ACEOF
25719 if ac_fn_c_try_link "$LINENO"; then :
25720   ac_cv_lib_ICE_IceConnectionNumber=yes
25721 else
25722   ac_cv_lib_ICE_IceConnectionNumber=no
25723 fi
25724 rm -f core conftest.err conftest.$ac_objext \
25725     conftest$ac_exeext conftest.$ac_ext
25726 LIBS=$ac_check_lib_save_LIBS
25727 fi
25728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25729 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25730 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25731   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25732 fi
25733
25734   LDFLAGS=$ac_save_LDFLAGS
25735
25736 fi
25737
25738
25739 for ac_header in \
25740    assert.h \
25741    fcntl.h \
25742    grp.h \
25743    pwd.h \
25744    libc.h \
25745    limits.h \
25746    stdarg.h \
25747    stdlib.h \
25748    stdint.h \
25749    inttypes.h \
25750    string.h \
25751    strings.h \
25752    termios.h \
25753    termcap.h \
25754    term.h \
25755    unistd.h \
25756    sys/bitypes.h \
25757    sys/byteorder.h \
25758    sys/ioctl.h \
25759    sys/select.h \
25760    sys/socket.h \
25761    sys/sockio.h \
25762    sys/stat.h \
25763    sys/time.h \
25764    sys/types.h \
25765    arpa/nameser.h \
25766    mtio.h \
25767    sys/mtio.h \
25768    sys/tape.h \
25769    regex.h \
25770
25771 do :
25772   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25773 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25774 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25775   cat >>confdefs.h <<_ACEOF
25776 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25777 _ACEOF
25778
25779 fi
25780
25781 done
25782
25783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25784 $as_echo_n "checking for ANSI C header files... " >&6; }
25785 if ${ac_cv_header_stdc+:} false; then :
25786   $as_echo_n "(cached) " >&6
25787 else
25788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25789 /* end confdefs.h.  */
25790 #include <stdlib.h>
25791 #include <stdarg.h>
25792 #include <string.h>
25793 #include <float.h>
25794
25795 int
25796 main ()
25797 {
25798
25799   ;
25800   return 0;
25801 }
25802 _ACEOF
25803 if ac_fn_c_try_compile "$LINENO"; then :
25804   ac_cv_header_stdc=yes
25805 else
25806   ac_cv_header_stdc=no
25807 fi
25808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25809
25810 if test $ac_cv_header_stdc = yes; then
25811   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25813 /* end confdefs.h.  */
25814 #include <string.h>
25815
25816 _ACEOF
25817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25818   $EGREP "memchr" >/dev/null 2>&1; then :
25819
25820 else
25821   ac_cv_header_stdc=no
25822 fi
25823 rm -f conftest*
25824
25825 fi
25826
25827 if test $ac_cv_header_stdc = yes; then
25828   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25830 /* end confdefs.h.  */
25831 #include <stdlib.h>
25832
25833 _ACEOF
25834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25835   $EGREP "free" >/dev/null 2>&1; then :
25836
25837 else
25838   ac_cv_header_stdc=no
25839 fi
25840 rm -f conftest*
25841
25842 fi
25843
25844 if test $ac_cv_header_stdc = yes; then
25845   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25846   if test "$cross_compiling" = yes; then :
25847   :
25848 else
25849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25850 /* end confdefs.h.  */
25851 #include <ctype.h>
25852 #include <stdlib.h>
25853 #if ((' ' & 0x0FF) == 0x020)
25854 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25855 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25856 #else
25857 # define ISLOWER(c) \
25858                    (('a' <= (c) && (c) <= 'i') \
25859                      || ('j' <= (c) && (c) <= 'r') \
25860                      || ('s' <= (c) && (c) <= 'z'))
25861 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25862 #endif
25863
25864 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25865 int
25866 main ()
25867 {
25868   int i;
25869   for (i = 0; i < 256; i++)
25870     if (XOR (islower (i), ISLOWER (i))
25871         || toupper (i) != TOUPPER (i))
25872       return 2;
25873   return 0;
25874 }
25875 _ACEOF
25876 if ac_fn_c_try_run "$LINENO"; then :
25877
25878 else
25879   ac_cv_header_stdc=no
25880 fi
25881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25882   conftest.$ac_objext conftest.beam conftest.$ac_ext
25883 fi
25884
25885 fi
25886 fi
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25888 $as_echo "$ac_cv_header_stdc" >&6; }
25889 if test $ac_cv_header_stdc = yes; then
25890
25891 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25892
25893 fi
25894
25895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25896 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25897 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25898   $as_echo_n "(cached) " >&6
25899 else
25900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25901 /* end confdefs.h.  */
25902 #include <sys/types.h>
25903 int
25904 main ()
25905 {
25906 return makedev(0, 0);
25907   ;
25908   return 0;
25909 }
25910 _ACEOF
25911 if ac_fn_c_try_link "$LINENO"; then :
25912   ac_cv_header_sys_types_h_makedev=yes
25913 else
25914   ac_cv_header_sys_types_h_makedev=no
25915 fi
25916 rm -f core conftest.err conftest.$ac_objext \
25917     conftest$ac_exeext conftest.$ac_ext
25918
25919 fi
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25921 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25922
25923 if test $ac_cv_header_sys_types_h_makedev = no; then
25924 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25925 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25926
25927 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25928
25929 fi
25930
25931
25932
25933   if test $ac_cv_header_sys_mkdev_h = no; then
25934     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25935 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25936
25937 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25938
25939 fi
25940
25941
25942   fi
25943 fi
25944
25945 ac_header_dirent=no
25946 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25947   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25949 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25950 if eval \${$as_ac_Header+:} 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 #include <$ac_hdr>
25957
25958 int
25959 main ()
25960 {
25961 if ((DIR *) 0)
25962 return 0;
25963   ;
25964   return 0;
25965 }
25966 _ACEOF
25967 if ac_fn_c_try_compile "$LINENO"; then :
25968   eval "$as_ac_Header=yes"
25969 else
25970   eval "$as_ac_Header=no"
25971 fi
25972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25973 fi
25974 eval ac_res=\$$as_ac_Header
25975                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25976 $as_echo "$ac_res" >&6; }
25977 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25978   cat >>confdefs.h <<_ACEOF
25979 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25980 _ACEOF
25981
25982 ac_header_dirent=$ac_hdr; break
25983 fi
25984
25985 done
25986 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25987 if test $ac_header_dirent = dirent.h; then
25988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25989 $as_echo_n "checking for library containing opendir... " >&6; }
25990 if ${ac_cv_search_opendir+:} false; then :
25991   $as_echo_n "(cached) " >&6
25992 else
25993   ac_func_search_save_LIBS=$LIBS
25994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25995 /* end confdefs.h.  */
25996
25997 /* Override any GCC internal prototype to avoid an error.
25998    Use char because int might match the return type of a GCC
25999    builtin and then its argument prototype would still apply.  */
26000 #ifdef __cplusplus
26001 extern "C"
26002 #endif
26003 char opendir ();
26004 int
26005 main ()
26006 {
26007 return opendir ();
26008   ;
26009   return 0;
26010 }
26011 _ACEOF
26012 for ac_lib in '' dir; do
26013   if test -z "$ac_lib"; then
26014     ac_res="none required"
26015   else
26016     ac_res=-l$ac_lib
26017     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26018   fi
26019   if ac_fn_c_try_link "$LINENO"; then :
26020   ac_cv_search_opendir=$ac_res
26021 fi
26022 rm -f core conftest.err conftest.$ac_objext \
26023     conftest$ac_exeext
26024   if ${ac_cv_search_opendir+:} false; then :
26025   break
26026 fi
26027 done
26028 if ${ac_cv_search_opendir+:} false; then :
26029
26030 else
26031   ac_cv_search_opendir=no
26032 fi
26033 rm conftest.$ac_ext
26034 LIBS=$ac_func_search_save_LIBS
26035 fi
26036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26037 $as_echo "$ac_cv_search_opendir" >&6; }
26038 ac_res=$ac_cv_search_opendir
26039 if test "$ac_res" != no; then :
26040   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26041
26042 fi
26043
26044 else
26045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26046 $as_echo_n "checking for library containing opendir... " >&6; }
26047 if ${ac_cv_search_opendir+:} false; then :
26048   $as_echo_n "(cached) " >&6
26049 else
26050   ac_func_search_save_LIBS=$LIBS
26051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26052 /* end confdefs.h.  */
26053
26054 /* Override any GCC internal prototype to avoid an error.
26055    Use char because int might match the return type of a GCC
26056    builtin and then its argument prototype would still apply.  */
26057 #ifdef __cplusplus
26058 extern "C"
26059 #endif
26060 char opendir ();
26061 int
26062 main ()
26063 {
26064 return opendir ();
26065   ;
26066   return 0;
26067 }
26068 _ACEOF
26069 for ac_lib in '' x; do
26070   if test -z "$ac_lib"; then
26071     ac_res="none required"
26072   else
26073     ac_res=-l$ac_lib
26074     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26075   fi
26076   if ac_fn_c_try_link "$LINENO"; then :
26077   ac_cv_search_opendir=$ac_res
26078 fi
26079 rm -f core conftest.err conftest.$ac_objext \
26080     conftest$ac_exeext
26081   if ${ac_cv_search_opendir+:} false; then :
26082   break
26083 fi
26084 done
26085 if ${ac_cv_search_opendir+:} false; then :
26086
26087 else
26088   ac_cv_search_opendir=no
26089 fi
26090 rm conftest.$ac_ext
26091 LIBS=$ac_func_search_save_LIBS
26092 fi
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26094 $as_echo "$ac_cv_search_opendir" >&6; }
26095 ac_res=$ac_cv_search_opendir
26096 if test "$ac_res" != no; then :
26097   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26098
26099 fi
26100
26101 fi
26102
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26104 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26105 if ${ac_cv_header_stat_broken+:} false; then :
26106   $as_echo_n "(cached) " >&6
26107 else
26108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26109 /* end confdefs.h.  */
26110 #include <sys/types.h>
26111 #include <sys/stat.h>
26112
26113 #if defined S_ISBLK && defined S_IFDIR
26114 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26115 #endif
26116
26117 #if defined S_ISBLK && defined S_IFCHR
26118 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26119 #endif
26120
26121 #if defined S_ISLNK && defined S_IFREG
26122 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26123 #endif
26124
26125 #if defined S_ISSOCK && defined S_IFREG
26126 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26127 #endif
26128
26129 _ACEOF
26130 if ac_fn_c_try_compile "$LINENO"; then :
26131   ac_cv_header_stat_broken=no
26132 else
26133   ac_cv_header_stat_broken=yes
26134 fi
26135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26136 fi
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26138 $as_echo "$ac_cv_header_stat_broken" >&6; }
26139 if test $ac_cv_header_stat_broken = yes; then
26140
26141 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26142
26143 fi
26144
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26146 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26147 if ${ac_cv_header_sys_wait_h+:} false; then :
26148   $as_echo_n "(cached) " >&6
26149 else
26150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26151 /* end confdefs.h.  */
26152 #include <sys/types.h>
26153 #include <sys/wait.h>
26154 #ifndef WEXITSTATUS
26155 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26156 #endif
26157 #ifndef WIFEXITED
26158 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26159 #endif
26160
26161 int
26162 main ()
26163 {
26164   int s;
26165   wait (&s);
26166   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26167   ;
26168   return 0;
26169 }
26170 _ACEOF
26171 if ac_fn_c_try_compile "$LINENO"; then :
26172   ac_cv_header_sys_wait_h=yes
26173 else
26174   ac_cv_header_sys_wait_h=no
26175 fi
26176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26177 fi
26178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26179 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26180 if test $ac_cv_header_sys_wait_h = yes; then
26181
26182 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26183
26184 fi
26185
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26187 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26188 if ${ac_cv_header_time+:} false; then :
26189   $as_echo_n "(cached) " >&6
26190 else
26191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26192 /* end confdefs.h.  */
26193 #include <sys/types.h>
26194 #include <sys/time.h>
26195 #include <time.h>
26196
26197 int
26198 main ()
26199 {
26200 if ((struct tm *) 0)
26201 return 0;
26202   ;
26203   return 0;
26204 }
26205 _ACEOF
26206 if ac_fn_c_try_compile "$LINENO"; then :
26207   ac_cv_header_time=yes
26208 else
26209   ac_cv_header_time=no
26210 fi
26211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26212 fi
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26214 $as_echo "$ac_cv_header_time" >&6; }
26215 if test $ac_cv_header_time = yes; then
26216
26217 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26218
26219 fi
26220
26221 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26222 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26223
26224 cat >>confdefs.h <<_ACEOF
26225 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26226 _ACEOF
26227
26228
26229 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26230
26231 fi
26232
26233
26234 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26235 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26236
26237 cat >>confdefs.h <<_ACEOF
26238 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26239 _ACEOF
26240
26241
26242 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26243
26244 else
26245   case " $LIBOBJS " in
26246   *" fileblocks.$ac_objext "* ) ;;
26247   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26248  ;;
26249 esac
26250
26251 fi
26252
26253
26254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26255 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26256 if ${ac_cv_struct_tm+:} false; then :
26257   $as_echo_n "(cached) " >&6
26258 else
26259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26260 /* end confdefs.h.  */
26261 #include <sys/types.h>
26262 #include <time.h>
26263
26264 int
26265 main ()
26266 {
26267 struct tm tm;
26268                                      int *p = &tm.tm_sec;
26269                                      return !p;
26270   ;
26271   return 0;
26272 }
26273 _ACEOF
26274 if ac_fn_c_try_compile "$LINENO"; then :
26275   ac_cv_struct_tm=time.h
26276 else
26277   ac_cv_struct_tm=sys/time.h
26278 fi
26279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26280 fi
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26282 $as_echo "$ac_cv_struct_tm" >&6; }
26283 if test $ac_cv_struct_tm = sys/time.h; then
26284
26285 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26286
26287 fi
26288
26289 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26290 #include <$ac_cv_struct_tm>
26291
26292 "
26293 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26294
26295 cat >>confdefs.h <<_ACEOF
26296 #define HAVE_STRUCT_TM_TM_ZONE 1
26297 _ACEOF
26298
26299
26300 fi
26301
26302 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26303
26304 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26305
26306 else
26307   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26308 "
26309 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26310   ac_have_decl=1
26311 else
26312   ac_have_decl=0
26313 fi
26314
26315 cat >>confdefs.h <<_ACEOF
26316 #define HAVE_DECL_TZNAME $ac_have_decl
26317 _ACEOF
26318
26319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26320 $as_echo_n "checking for tzname... " >&6; }
26321 if ${ac_cv_var_tzname+:} false; then :
26322   $as_echo_n "(cached) " >&6
26323 else
26324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26325 /* end confdefs.h.  */
26326 #include <time.h>
26327 #if !HAVE_DECL_TZNAME
26328 extern char *tzname[];
26329 #endif
26330
26331 int
26332 main ()
26333 {
26334 return tzname[0][0];
26335   ;
26336   return 0;
26337 }
26338 _ACEOF
26339 if ac_fn_c_try_link "$LINENO"; then :
26340   ac_cv_var_tzname=yes
26341 else
26342   ac_cv_var_tzname=no
26343 fi
26344 rm -f core conftest.err conftest.$ac_objext \
26345     conftest$ac_exeext conftest.$ac_ext
26346 fi
26347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26348 $as_echo "$ac_cv_var_tzname" >&6; }
26349   if test $ac_cv_var_tzname = yes; then
26350
26351 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26352
26353   fi
26354 fi
26355
26356
26357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26358 $as_echo_n "checking for utime.h... " >&6; }
26359 if ${ba_cv_header_utime_h+:} false; then :
26360   $as_echo_n "(cached) " >&6
26361 else
26362
26363        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26364 /* end confdefs.h.  */
26365
26366               #include <sys/types.h>
26367               #include <utime.h>
26368
26369 int
26370 main ()
26371 {
26372
26373               struct utimbuf foo
26374
26375   ;
26376   return 0;
26377 }
26378 _ACEOF
26379 if ac_fn_c_try_compile "$LINENO"; then :
26380
26381               ba_cv_header_utime_h=yes
26382
26383 else
26384
26385               ba_cv_header_utime_h=no
26386
26387
26388 fi
26389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26390
26391
26392 fi
26393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26394 $as_echo "$ba_cv_header_utime_h" >&6; }
26395 test $ba_cv_header_utime_h = yes &&
26396 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26397
26398
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26400 $as_echo_n "checking for socklen_t... " >&6; }
26401 if ${ba_cv_header_socklen_t+:} false; then :
26402   $as_echo_n "(cached) " >&6
26403 else
26404
26405        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26406 /* end confdefs.h.  */
26407
26408               #include <sys/types.h>
26409               #include <sys/socket.h>
26410
26411 int
26412 main ()
26413 {
26414
26415               socklen_t x
26416
26417   ;
26418   return 0;
26419 }
26420 _ACEOF
26421 if ac_fn_c_try_compile "$LINENO"; then :
26422
26423              ba_cv_header_socklen_t=yes
26424
26425 else
26426
26427              ba_cv_header_socklen_t=no
26428
26429
26430 fi
26431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26432
26433
26434 fi
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26436 $as_echo "$ba_cv_header_socklen_t" >&6; }
26437 test $ba_cv_header_socklen_t = yes &&
26438 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26439
26440
26441 ac_ext=cpp
26442 ac_cpp='$CXXCPP $CPPFLAGS'
26443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26446
26447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26448 $as_echo_n "checking for ioctl_req_t... " >&6; }
26449 if ${ba_cv_header_ioctl_req_t+:} false; then :
26450   $as_echo_n "(cached) " >&6
26451 else
26452
26453        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26454 /* end confdefs.h.  */
26455
26456               #include <unistd.h>
26457               #include <sys/types.h>
26458               #include <sys/ioctl.h>
26459
26460 int
26461 main ()
26462 {
26463
26464               int (*d_ioctl)(int fd, unsigned long int request, ...);
26465               d_ioctl = ::ioctl;
26466
26467   ;
26468   return 0;
26469 }
26470 _ACEOF
26471 if ac_fn_cxx_try_compile "$LINENO"; then :
26472
26473              ba_cv_header_ioctl_req_t=yes
26474
26475 else
26476
26477              ba_cv_header_ioctl_req_t=no
26478
26479
26480 fi
26481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26482
26483
26484 fi
26485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26486 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26487 test $ba_cv_header_ioctl_req_t = yes &&
26488 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26489
26490
26491 ac_ext=c
26492 ac_cpp='$CPP $CPPFLAGS'
26493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26496
26497
26498 ac_ext=cpp
26499 ac_cpp='$CXXCPP $CPPFLAGS'
26500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26503
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26505 $as_echo_n "checking for typeof... " >&6; }
26506 if ${ba_cv_have_typeof+:} false; then :
26507   $as_echo_n "(cached) " >&6
26508 else
26509
26510        if test "$cross_compiling" = yes; then :
26511
26512               ba_cv_have_typeof=no
26513
26514
26515 else
26516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26517 /* end confdefs.h.  */
26518
26519               main(){char *a = 0; a = (typeof a)a;}
26520
26521 _ACEOF
26522 if ac_fn_cxx_try_run "$LINENO"; then :
26523
26524               ba_cv_have_typeof=yes
26525
26526 else
26527
26528               ba_cv_have_typeof=no
26529
26530 fi
26531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26532   conftest.$ac_objext conftest.beam conftest.$ac_ext
26533 fi
26534
26535
26536
26537 fi
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26539 $as_echo "$ba_cv_have_typeof" >&6; }
26540 test $ba_cv_have_typeof = yes &&
26541 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26542
26543 ac_ext=c
26544 ac_cpp='$CPP $CPPFLAGS'
26545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26548
26549
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26551 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26552 if ${ac_cv_c_const+:} false; then :
26553   $as_echo_n "(cached) " >&6
26554 else
26555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26556 /* end confdefs.h.  */
26557
26558 int
26559 main ()
26560 {
26561
26562 #ifndef __cplusplus
26563   /* Ultrix mips cc rejects this sort of thing.  */
26564   typedef int charset[2];
26565   const charset cs = { 0, 0 };
26566   /* SunOS 4.1.1 cc rejects this.  */
26567   char const *const *pcpcc;
26568   char **ppc;
26569   /* NEC SVR4.0.2 mips cc rejects this.  */
26570   struct point {int x, y;};
26571   static struct point const zero = {0,0};
26572   /* AIX XL C 1.02.0.0 rejects this.
26573      It does not let you subtract one const X* pointer from another in
26574      an arm of an if-expression whose if-part is not a constant
26575      expression */
26576   const char *g = "string";
26577   pcpcc = &g + (g ? g-g : 0);
26578   /* HPUX 7.0 cc rejects these. */
26579   ++pcpcc;
26580   ppc = (char**) pcpcc;
26581   pcpcc = (char const *const *) ppc;
26582   { /* SCO 3.2v4 cc rejects this sort of thing.  */
26583     char tx;
26584     char *t = &tx;
26585     char const *s = 0 ? (char *) 0 : (char const *) 0;
26586
26587     *t++ = 0;
26588     if (s) return 0;
26589   }
26590   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26591     int x[] = {25, 17};
26592     const int *foo = &x[0];
26593     ++foo;
26594   }
26595   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26596     typedef const int *iptr;
26597     iptr p = 0;
26598     ++p;
26599   }
26600   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26601        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26602     struct s { int j; const int *ap[3]; } bx;
26603     struct s *b = &bx; b->j = 5;
26604   }
26605   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26606     const int foo = 10;
26607     if (!foo) return 0;
26608   }
26609   return !cs[0] && !zero.x;
26610 #endif
26611
26612   ;
26613   return 0;
26614 }
26615 _ACEOF
26616 if ac_fn_c_try_compile "$LINENO"; then :
26617   ac_cv_c_const=yes
26618 else
26619   ac_cv_c_const=no
26620 fi
26621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26622 fi
26623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26624 $as_echo "$ac_cv_c_const" >&6; }
26625 if test $ac_cv_c_const = no; then
26626
26627 $as_echo "#define const /**/" >>confdefs.h
26628
26629 fi
26630
26631
26632  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26633 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26634 if ${ac_cv_c_bigendian+:} false; then :
26635   $as_echo_n "(cached) " >&6
26636 else
26637   ac_cv_c_bigendian=unknown
26638     # See if we're dealing with a universal compiler.
26639     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26640 /* end confdefs.h.  */
26641 #ifndef __APPLE_CC__
26642                not a universal capable compiler
26643              #endif
26644              typedef int dummy;
26645
26646 _ACEOF
26647 if ac_fn_c_try_compile "$LINENO"; then :
26648
26649         # Check for potential -arch flags.  It is not universal unless
26650         # there are at least two -arch flags with different values.
26651         ac_arch=
26652         ac_prev=
26653         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26654          if test -n "$ac_prev"; then
26655            case $ac_word in
26656              i?86 | x86_64 | ppc | ppc64)
26657                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26658                  ac_arch=$ac_word
26659                else
26660                  ac_cv_c_bigendian=universal
26661                  break
26662                fi
26663                ;;
26664            esac
26665            ac_prev=
26666          elif test "x$ac_word" = "x-arch"; then
26667            ac_prev=arch
26668          fi
26669        done
26670 fi
26671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26672     if test $ac_cv_c_bigendian = unknown; then
26673       # See if sys/param.h defines the BYTE_ORDER macro.
26674       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26675 /* end confdefs.h.  */
26676 #include <sys/types.h>
26677              #include <sys/param.h>
26678
26679 int
26680 main ()
26681 {
26682 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26683                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26684                      && LITTLE_ENDIAN)
26685               bogus endian macros
26686              #endif
26687
26688   ;
26689   return 0;
26690 }
26691 _ACEOF
26692 if ac_fn_c_try_compile "$LINENO"; then :
26693   # It does; now see whether it defined to BIG_ENDIAN or not.
26694          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26695 /* end confdefs.h.  */
26696 #include <sys/types.h>
26697                 #include <sys/param.h>
26698
26699 int
26700 main ()
26701 {
26702 #if BYTE_ORDER != BIG_ENDIAN
26703                  not big endian
26704                 #endif
26705
26706   ;
26707   return 0;
26708 }
26709 _ACEOF
26710 if ac_fn_c_try_compile "$LINENO"; then :
26711   ac_cv_c_bigendian=yes
26712 else
26713   ac_cv_c_bigendian=no
26714 fi
26715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26716 fi
26717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26718     fi
26719     if test $ac_cv_c_bigendian = unknown; then
26720       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26721       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26722 /* end confdefs.h.  */
26723 #include <limits.h>
26724
26725 int
26726 main ()
26727 {
26728 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26729               bogus endian macros
26730              #endif
26731
26732   ;
26733   return 0;
26734 }
26735 _ACEOF
26736 if ac_fn_c_try_compile "$LINENO"; then :
26737   # It does; now see whether it defined to _BIG_ENDIAN or not.
26738          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26739 /* end confdefs.h.  */
26740 #include <limits.h>
26741
26742 int
26743 main ()
26744 {
26745 #ifndef _BIG_ENDIAN
26746                  not big endian
26747                 #endif
26748
26749   ;
26750   return 0;
26751 }
26752 _ACEOF
26753 if ac_fn_c_try_compile "$LINENO"; then :
26754   ac_cv_c_bigendian=yes
26755 else
26756   ac_cv_c_bigendian=no
26757 fi
26758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26759 fi
26760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26761     fi
26762     if test $ac_cv_c_bigendian = unknown; then
26763       # Compile a test program.
26764       if test "$cross_compiling" = yes; then :
26765   # Try to guess by grepping values from an object file.
26766          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26767 /* end confdefs.h.  */
26768 short int ascii_mm[] =
26769                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26770                 short int ascii_ii[] =
26771                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26772                 int use_ascii (int i) {
26773                   return ascii_mm[i] + ascii_ii[i];
26774                 }
26775                 short int ebcdic_ii[] =
26776                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26777                 short int ebcdic_mm[] =
26778                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26779                 int use_ebcdic (int i) {
26780                   return ebcdic_mm[i] + ebcdic_ii[i];
26781                 }
26782                 extern int foo;
26783
26784 int
26785 main ()
26786 {
26787 return use_ascii (foo) == use_ebcdic (foo);
26788   ;
26789   return 0;
26790 }
26791 _ACEOF
26792 if ac_fn_c_try_compile "$LINENO"; then :
26793   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26794               ac_cv_c_bigendian=yes
26795             fi
26796             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26797               if test "$ac_cv_c_bigendian" = unknown; then
26798                 ac_cv_c_bigendian=no
26799               else
26800                 # finding both strings is unlikely to happen, but who knows?
26801                 ac_cv_c_bigendian=unknown
26802               fi
26803             fi
26804 fi
26805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26806 else
26807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26808 /* end confdefs.h.  */
26809 $ac_includes_default
26810 int
26811 main ()
26812 {
26813
26814              /* Are we little or big endian?  From Harbison&Steele.  */
26815              union
26816              {
26817                long int l;
26818                char c[sizeof (long int)];
26819              } u;
26820              u.l = 1;
26821              return u.c[sizeof (long int) - 1] == 1;
26822
26823   ;
26824   return 0;
26825 }
26826 _ACEOF
26827 if ac_fn_c_try_run "$LINENO"; then :
26828   ac_cv_c_bigendian=no
26829 else
26830   ac_cv_c_bigendian=yes
26831 fi
26832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26833   conftest.$ac_objext conftest.beam conftest.$ac_ext
26834 fi
26835
26836     fi
26837 fi
26838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26839 $as_echo "$ac_cv_c_bigendian" >&6; }
26840  case $ac_cv_c_bigendian in #(
26841    yes)
26842
26843 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26844 ;; #(
26845    no)
26846
26847 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26848  ;; #(
26849    universal)
26850
26851 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26852
26853      ;; #(
26854    *)
26855      as_fn_error $? "unknown endianness
26856  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26857  esac
26858
26859
26860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26861 $as_echo_n "checking how to get filesystem type... " >&6; }
26862 fstype=no
26863 # The order of these tests is important.
26864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26865 /* end confdefs.h.  */
26866
26867        #include <sys/statvfs.h>
26868        #include <sys/fstyp.h>
26869
26870 _ACEOF
26871 if ac_fn_c_try_cpp "$LINENO"; then :
26872   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26873  fstype=SVR4
26874
26875 fi
26876 rm -f conftest.err conftest.i conftest.$ac_ext
26877 if test $fstype = no; then
26878    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26879 /* end confdefs.h.  */
26880
26881           #include <sys/statfs.h>
26882           #include <sys/fstyp.h>
26883
26884 _ACEOF
26885 if ac_fn_c_try_cpp "$LINENO"; then :
26886   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26887  fstype=SVR3
26888
26889 fi
26890 rm -f conftest.err conftest.i conftest.$ac_ext
26891 fi
26892 if test $fstype = no; then
26893    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26894 /* end confdefs.h.  */
26895
26896           #include <sys/statfs.h>
26897           #include <sys/vmount.h>
26898
26899 _ACEOF
26900 if ac_fn_c_try_cpp "$LINENO"; then :
26901   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26902  fstype=AIX
26903
26904 fi
26905 rm -f conftest.err conftest.i conftest.$ac_ext
26906 fi
26907 if test $fstype = no; then
26908    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26909 /* end confdefs.h.  */
26910
26911           #include <mntent.h>
26912
26913 _ACEOF
26914 if ac_fn_c_try_cpp "$LINENO"; then :
26915   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26916  fstype=4.3BSD
26917
26918 fi
26919 rm -f conftest.err conftest.i conftest.$ac_ext
26920 fi
26921 if test $fstype = no; then
26922    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26923 /* end confdefs.h.  */
26924 #include <sys/mount.h>
26925
26926 _ACEOF
26927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26928   $EGREP "f_type;" >/dev/null 2>&1; then :
26929   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26930  fstype=4.4BSD/OSF1
26931 fi
26932 rm -f conftest*
26933
26934 fi
26935 if test $fstype = no; then
26936    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26937 /* end confdefs.h.  */
26938
26939           #include <sys/mount.h>
26940           #include <sys/fs_types.h>
26941
26942 _ACEOF
26943 if ac_fn_c_try_cpp "$LINENO"; then :
26944   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26945  fstype=Ultrix
26946
26947 fi
26948 rm -f conftest.err conftest.i conftest.$ac_ext
26949 fi
26950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26951 $as_echo "$fstype" >&6; }
26952
26953 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26954 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26955
26956 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26957
26958 fi
26959
26960
26961
26962 ac_ext=cpp
26963 ac_cpp='$CXXCPP $CPPFLAGS'
26964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26967
26968 for ac_func in backtrace
26969 do :
26970   ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26971 if test "x$ac_cv_func_backtrace" = xyes; then :
26972   cat >>confdefs.h <<_ACEOF
26973 #define HAVE_BACKTRACE 1
26974 _ACEOF
26975
26976 fi
26977 done
26978
26979 ac_ext=c
26980 ac_cpp='$CPP $CPPFLAGS'
26981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26984
26985
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26987 $as_echo_n "checking return type of signal handlers... " >&6; }
26988 if ${ac_cv_type_signal+:} false; then :
26989   $as_echo_n "(cached) " >&6
26990 else
26991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26992 /* end confdefs.h.  */
26993 #include <sys/types.h>
26994 #include <signal.h>
26995
26996 int
26997 main ()
26998 {
26999 return *(signal (0, 0)) (0) == 1;
27000   ;
27001   return 0;
27002 }
27003 _ACEOF
27004 if ac_fn_c_try_compile "$LINENO"; then :
27005   ac_cv_type_signal=int
27006 else
27007   ac_cv_type_signal=void
27008 fi
27009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27010 fi
27011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27012 $as_echo "$ac_cv_type_signal" >&6; }
27013
27014 cat >>confdefs.h <<_ACEOF
27015 #define RETSIGTYPE $ac_cv_type_signal
27016 _ACEOF
27017
27018
27019
27020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
27021 $as_echo_n "checking for type of signal functions... " >&6; }
27022   if ${bash_cv_signal_vintage+:} false; then :
27023   $as_echo_n "(cached) " >&6
27024 else
27025
27026     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27027 /* end confdefs.h.  */
27028 #include <signal.h>
27029 int
27030 main ()
27031 {
27032
27033       sigset_t ss;
27034       struct sigaction sa;
27035       sigemptyset(&ss); sigsuspend(&ss);
27036       sigaction(SIGINT, &sa, (struct sigaction *) 0);
27037       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27038
27039   ;
27040   return 0;
27041 }
27042 _ACEOF
27043 if ac_fn_c_try_link "$LINENO"; then :
27044   bash_cv_signal_vintage="posix"
27045 else
27046
27047       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27048 /* end confdefs.h.  */
27049 #include <signal.h>
27050 int
27051 main ()
27052 {
27053
27054           int mask = sigmask(SIGINT);
27055           sigsetmask(mask); sigblock(mask); sigpause(mask);
27056
27057   ;
27058   return 0;
27059 }
27060 _ACEOF
27061 if ac_fn_c_try_link "$LINENO"; then :
27062   bash_cv_signal_vintage="4.2bsd"
27063 else
27064
27065         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27066 /* end confdefs.h.  */
27067
27068           #include <signal.h>
27069           RETSIGTYPE foo() { }
27070 int
27071 main ()
27072 {
27073
27074                   int mask = sigmask(SIGINT);
27075                   sigset(SIGINT, foo); sigrelse(SIGINT);
27076                   sighold(SIGINT); sigpause(SIGINT);
27077
27078   ;
27079   return 0;
27080 }
27081 _ACEOF
27082 if ac_fn_c_try_link "$LINENO"; then :
27083   bash_cv_signal_vintage="svr3"
27084 else
27085   bash_cv_signal_vintage="v7"
27086
27087 fi
27088 rm -f core conftest.err conftest.$ac_objext \
27089     conftest$ac_exeext conftest.$ac_ext
27090
27091 fi
27092 rm -f core conftest.err conftest.$ac_objext \
27093     conftest$ac_exeext conftest.$ac_ext
27094
27095 fi
27096 rm -f core conftest.err conftest.$ac_objext \
27097     conftest$ac_exeext conftest.$ac_ext
27098
27099 fi
27100
27101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27102 $as_echo "$bash_cv_signal_vintage" >&6; }
27103   if test "$bash_cv_signal_vintage" = "posix"; then
27104     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27105
27106   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27107     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27108
27109   elif test "$bash_cv_signal_vintage" = "svr3"; then
27110     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27111
27112   fi
27113
27114 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27115 if test "x$ac_cv_type_mode_t" = xyes; then :
27116
27117 else
27118
27119 cat >>confdefs.h <<_ACEOF
27120 #define mode_t int
27121 _ACEOF
27122
27123 fi
27124
27125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27126 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27127 if ${ac_cv_type_uid_t+:} false; then :
27128   $as_echo_n "(cached) " >&6
27129 else
27130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27131 /* end confdefs.h.  */
27132 #include <sys/types.h>
27133
27134 _ACEOF
27135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27136   $EGREP "uid_t" >/dev/null 2>&1; then :
27137   ac_cv_type_uid_t=yes
27138 else
27139   ac_cv_type_uid_t=no
27140 fi
27141 rm -f conftest*
27142
27143 fi
27144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27145 $as_echo "$ac_cv_type_uid_t" >&6; }
27146 if test $ac_cv_type_uid_t = no; then
27147
27148 $as_echo "#define uid_t int" >>confdefs.h
27149
27150
27151 $as_echo "#define gid_t int" >>confdefs.h
27152
27153 fi
27154
27155 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27156 if test "x$ac_cv_type_size_t" = xyes; then :
27157
27158 else
27159
27160 cat >>confdefs.h <<_ACEOF
27161 #define size_t unsigned int
27162 _ACEOF
27163
27164 fi
27165
27166 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27167 if test "x$ac_cv_type_pid_t" = xyes; then :
27168
27169 else
27170
27171 cat >>confdefs.h <<_ACEOF
27172 #define pid_t int
27173 _ACEOF
27174
27175 fi
27176
27177 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27178 if test "x$ac_cv_type_off_t" = xyes; then :
27179
27180 else
27181
27182 cat >>confdefs.h <<_ACEOF
27183 #define off_t long int
27184 _ACEOF
27185
27186 fi
27187
27188
27189   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27190 if test "x$ac_cv_type_intptr_t" = xyes; then :
27191
27192 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27193
27194 else
27195   for ac_type in 'int' 'long int' 'long long int'; do
27196        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27197 /* end confdefs.h.  */
27198 $ac_includes_default
27199 int
27200 main ()
27201 {
27202 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27203 test_array [0] = 0;
27204 return test_array [0];
27205
27206   ;
27207   return 0;
27208 }
27209 _ACEOF
27210 if ac_fn_c_try_compile "$LINENO"; then :
27211
27212 cat >>confdefs.h <<_ACEOF
27213 #define intptr_t $ac_type
27214 _ACEOF
27215
27216           ac_type=
27217 fi
27218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27219        test -z "$ac_type" && break
27220      done
27221 fi
27222
27223
27224
27225   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27226 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27227
27228 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27229
27230 else
27231   for ac_type in 'unsigned int' 'unsigned long int' \
27232         'unsigned long long int'; do
27233        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27234 /* end confdefs.h.  */
27235 $ac_includes_default
27236 int
27237 main ()
27238 {
27239 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27240 test_array [0] = 0;
27241 return test_array [0];
27242
27243   ;
27244   return 0;
27245 }
27246 _ACEOF
27247 if ac_fn_c_try_compile "$LINENO"; then :
27248
27249 cat >>confdefs.h <<_ACEOF
27250 #define uintptr_t $ac_type
27251 _ACEOF
27252
27253           ac_type=
27254 fi
27255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27256        test -z "$ac_type" && break
27257      done
27258 fi
27259
27260
27261 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27262 if test "x$ac_cv_type_ino_t" = xyes; then :
27263
27264 else
27265
27266 cat >>confdefs.h <<_ACEOF
27267 #define ino_t unsigned long
27268 _ACEOF
27269
27270 fi
27271
27272 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27273 if test "x$ac_cv_type_dev_t" = xyes; then :
27274
27275 else
27276
27277 cat >>confdefs.h <<_ACEOF
27278 #define dev_t unsigned long
27279 _ACEOF
27280
27281 fi
27282
27283 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27284 if test "x$ac_cv_type_daddr_t" = xyes; then :
27285
27286 else
27287
27288 cat >>confdefs.h <<_ACEOF
27289 #define daddr_t long
27290 _ACEOF
27291
27292 fi
27293
27294 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27295 if test "x$ac_cv_type_major_t" = xyes; then :
27296
27297 else
27298
27299 cat >>confdefs.h <<_ACEOF
27300 #define major_t int
27301 _ACEOF
27302
27303 fi
27304
27305 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27306 if test "x$ac_cv_type_minor_t" = xyes; then :
27307
27308 else
27309
27310 cat >>confdefs.h <<_ACEOF
27311 #define minor_t int
27312 _ACEOF
27313
27314 fi
27315
27316 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27317 if test "x$ac_cv_type_ssize_t" = xyes; then :
27318
27319 else
27320
27321 cat >>confdefs.h <<_ACEOF
27322 #define ssize_t int
27323 _ACEOF
27324
27325 fi
27326
27327 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27328 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27329
27330 cat >>confdefs.h <<_ACEOF
27331 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27332 _ACEOF
27333
27334
27335 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27336
27337 else
27338   case " $LIBOBJS " in
27339   *" fileblocks.$ac_objext "* ) ;;
27340   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27341  ;;
27342 esac
27343
27344 fi
27345
27346
27347 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27348 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27349
27350 cat >>confdefs.h <<_ACEOF
27351 #define HAVE_STRUCT_STAT_ST_RDEV 1
27352 _ACEOF
27353
27354
27355 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27356
27357 fi
27358
27359
27360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27361 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27362 if ${ac_cv_struct_tm+:} false; then :
27363   $as_echo_n "(cached) " >&6
27364 else
27365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27366 /* end confdefs.h.  */
27367 #include <sys/types.h>
27368 #include <time.h>
27369
27370 int
27371 main ()
27372 {
27373 struct tm tm;
27374                                      int *p = &tm.tm_sec;
27375                                      return !p;
27376   ;
27377   return 0;
27378 }
27379 _ACEOF
27380 if ac_fn_c_try_compile "$LINENO"; then :
27381   ac_cv_struct_tm=time.h
27382 else
27383   ac_cv_struct_tm=sys/time.h
27384 fi
27385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27386 fi
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27388 $as_echo "$ac_cv_struct_tm" >&6; }
27389 if test $ac_cv_struct_tm = sys/time.h; then
27390
27391 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27392
27393 fi
27394
27395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27396 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27397 if ${ac_cv_c_const+:} false; then :
27398   $as_echo_n "(cached) " >&6
27399 else
27400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27401 /* end confdefs.h.  */
27402
27403 int
27404 main ()
27405 {
27406
27407 #ifndef __cplusplus
27408   /* Ultrix mips cc rejects this sort of thing.  */
27409   typedef int charset[2];
27410   const charset cs = { 0, 0 };
27411   /* SunOS 4.1.1 cc rejects this.  */
27412   char const *const *pcpcc;
27413   char **ppc;
27414   /* NEC SVR4.0.2 mips cc rejects this.  */
27415   struct point {int x, y;};
27416   static struct point const zero = {0,0};
27417   /* AIX XL C 1.02.0.0 rejects this.
27418      It does not let you subtract one const X* pointer from another in
27419      an arm of an if-expression whose if-part is not a constant
27420      expression */
27421   const char *g = "string";
27422   pcpcc = &g + (g ? g-g : 0);
27423   /* HPUX 7.0 cc rejects these. */
27424   ++pcpcc;
27425   ppc = (char**) pcpcc;
27426   pcpcc = (char const *const *) ppc;
27427   { /* SCO 3.2v4 cc rejects this sort of thing.  */
27428     char tx;
27429     char *t = &tx;
27430     char const *s = 0 ? (char *) 0 : (char const *) 0;
27431
27432     *t++ = 0;
27433     if (s) return 0;
27434   }
27435   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27436     int x[] = {25, 17};
27437     const int *foo = &x[0];
27438     ++foo;
27439   }
27440   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27441     typedef const int *iptr;
27442     iptr p = 0;
27443     ++p;
27444   }
27445   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27446        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27447     struct s { int j; const int *ap[3]; } bx;
27448     struct s *b = &bx; b->j = 5;
27449   }
27450   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27451     const int foo = 10;
27452     if (!foo) return 0;
27453   }
27454   return !cs[0] && !zero.x;
27455 #endif
27456
27457   ;
27458   return 0;
27459 }
27460 _ACEOF
27461 if ac_fn_c_try_compile "$LINENO"; then :
27462   ac_cv_c_const=yes
27463 else
27464   ac_cv_c_const=no
27465 fi
27466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27467 fi
27468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27469 $as_echo "$ac_cv_c_const" >&6; }
27470 if test $ac_cv_c_const = no; then
27471
27472 $as_echo "#define const /**/" >>confdefs.h
27473
27474 fi
27475
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
27477 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
27478 if ${ac_cv_c_restrict+:} false; then :
27479   $as_echo_n "(cached) " >&6
27480 else
27481   ac_cv_c_restrict=no
27482    # The order here caters to the fact that C++ does not require restrict.
27483    for ac_kw in __restrict __restrict__ _Restrict restrict; do
27484      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27485 /* end confdefs.h.  */
27486 typedef int * int_ptr;
27487         int foo (int_ptr $ac_kw ip) {
27488         return ip[0];
27489        }
27490 int
27491 main ()
27492 {
27493 int s[1];
27494         int * $ac_kw t = s;
27495         t[0] = 0;
27496         return foo(t)
27497   ;
27498   return 0;
27499 }
27500 _ACEOF
27501 if ac_fn_c_try_compile "$LINENO"; then :
27502   ac_cv_c_restrict=$ac_kw
27503 fi
27504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27505      test "$ac_cv_c_restrict" != no && break
27506    done
27507
27508 fi
27509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
27510 $as_echo "$ac_cv_c_restrict" >&6; }
27511
27512  case $ac_cv_c_restrict in
27513    restrict) ;;
27514    no) $as_echo "#define restrict /**/" >>confdefs.h
27515  ;;
27516    *)  cat >>confdefs.h <<_ACEOF
27517 #define restrict $ac_cv_c_restrict
27518 _ACEOF
27519  ;;
27520  esac
27521
27522
27523 # The cast to long int works around a bug in the HP C Compiler
27524 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27525 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27526 # This bug is HP SR number 8606223364.
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27528 $as_echo_n "checking size of char... " >&6; }
27529 if ${ac_cv_sizeof_char+:} false; then :
27530   $as_echo_n "(cached) " >&6
27531 else
27532   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
27533
27534 else
27535   if test "$ac_cv_type_char" = yes; then
27536      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27538 as_fn_error 77 "cannot compute sizeof (char)
27539 See \`config.log' for more details" "$LINENO" 5; }
27540    else
27541      ac_cv_sizeof_char=0
27542    fi
27543 fi
27544
27545 fi
27546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27547 $as_echo "$ac_cv_sizeof_char" >&6; }
27548
27549
27550
27551 cat >>confdefs.h <<_ACEOF
27552 #define SIZEOF_CHAR $ac_cv_sizeof_char
27553 _ACEOF
27554
27555
27556 # The cast to long int works around a bug in the HP C Compiler
27557 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27558 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27559 # This bug is HP SR number 8606223364.
27560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27561 $as_echo_n "checking size of short int... " >&6; }
27562 if ${ac_cv_sizeof_short_int+:} false; then :
27563   $as_echo_n "(cached) " >&6
27564 else
27565   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
27566
27567 else
27568   if test "$ac_cv_type_short_int" = yes; then
27569      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27571 as_fn_error 77 "cannot compute sizeof (short int)
27572 See \`config.log' for more details" "$LINENO" 5; }
27573    else
27574      ac_cv_sizeof_short_int=0
27575    fi
27576 fi
27577
27578 fi
27579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27580 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27581
27582
27583
27584 cat >>confdefs.h <<_ACEOF
27585 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27586 _ACEOF
27587
27588
27589 # The cast to long int works around a bug in the HP C Compiler
27590 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27591 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27592 # This bug is HP SR number 8606223364.
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27594 $as_echo_n "checking size of int... " >&6; }
27595 if ${ac_cv_sizeof_int+:} false; then :
27596   $as_echo_n "(cached) " >&6
27597 else
27598   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27599
27600 else
27601   if test "$ac_cv_type_int" = yes; then
27602      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27604 as_fn_error 77 "cannot compute sizeof (int)
27605 See \`config.log' for more details" "$LINENO" 5; }
27606    else
27607      ac_cv_sizeof_int=0
27608    fi
27609 fi
27610
27611 fi
27612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27613 $as_echo "$ac_cv_sizeof_int" >&6; }
27614
27615
27616
27617 cat >>confdefs.h <<_ACEOF
27618 #define SIZEOF_INT $ac_cv_sizeof_int
27619 _ACEOF
27620
27621
27622 # The cast to long int works around a bug in the HP C Compiler
27623 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27624 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27625 # This bug is HP SR number 8606223364.
27626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27627 $as_echo_n "checking size of long int... " >&6; }
27628 if ${ac_cv_sizeof_long_int+:} false; then :
27629   $as_echo_n "(cached) " >&6
27630 else
27631   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27632
27633 else
27634   if test "$ac_cv_type_long_int" = yes; then
27635      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27637 as_fn_error 77 "cannot compute sizeof (long int)
27638 See \`config.log' for more details" "$LINENO" 5; }
27639    else
27640      ac_cv_sizeof_long_int=0
27641    fi
27642 fi
27643
27644 fi
27645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27646 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27647
27648
27649
27650 cat >>confdefs.h <<_ACEOF
27651 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27652 _ACEOF
27653
27654
27655 # The cast to long int works around a bug in the HP C Compiler
27656 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27657 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27658 # This bug is HP SR number 8606223364.
27659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27660 $as_echo_n "checking size of long long int... " >&6; }
27661 if ${ac_cv_sizeof_long_long_int+:} false; then :
27662   $as_echo_n "(cached) " >&6
27663 else
27664   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27665
27666 else
27667   if test "$ac_cv_type_long_long_int" = yes; then
27668      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27670 as_fn_error 77 "cannot compute sizeof (long long int)
27671 See \`config.log' for more details" "$LINENO" 5; }
27672    else
27673      ac_cv_sizeof_long_long_int=0
27674    fi
27675 fi
27676
27677 fi
27678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27679 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27680
27681
27682
27683 cat >>confdefs.h <<_ACEOF
27684 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27685 _ACEOF
27686
27687
27688 # The cast to long int works around a bug in the HP C Compiler
27689 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27690 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27691 # This bug is HP SR number 8606223364.
27692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27693 $as_echo_n "checking size of int *... " >&6; }
27694 if ${ac_cv_sizeof_int_p+:} false; then :
27695   $as_echo_n "(cached) " >&6
27696 else
27697   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27698
27699 else
27700   if test "$ac_cv_type_int_p" = yes; then
27701      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27703 as_fn_error 77 "cannot compute sizeof (int *)
27704 See \`config.log' for more details" "$LINENO" 5; }
27705    else
27706      ac_cv_sizeof_int_p=0
27707    fi
27708 fi
27709
27710 fi
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27712 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27713
27714
27715
27716 cat >>confdefs.h <<_ACEOF
27717 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27718 _ACEOF
27719
27720
27721
27722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27723 $as_echo_n "checking for u_int type... " >&6; }
27724 if ${ac_cv_have_u_int+:} false; then :
27725   $as_echo_n "(cached) " >&6
27726 else
27727
27728        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27729 /* end confdefs.h.  */
27730
27731               #include <sys/types.h>
27732
27733 int
27734 main ()
27735 {
27736
27737               u_int a; a = 1;
27738
27739   ;
27740   return 0;
27741 }
27742 _ACEOF
27743 if ac_fn_c_try_compile "$LINENO"; then :
27744
27745               ac_cv_have_u_int="yes"
27746
27747 else
27748
27749               ac_cv_have_u_int="no"
27750
27751
27752 fi
27753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27754
27755
27756 fi
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27758 $as_echo "$ac_cv_have_u_int" >&6; }
27759 if test "x$ac_cv_have_u_int" = "xyes" ; then
27760    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27761
27762    have_u_int=1
27763 fi
27764
27765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27766 $as_echo_n "checking for intmax_t type... " >&6; }
27767 if ${ac_cv_have_intmax_t+:} false; then :
27768   $as_echo_n "(cached) " >&6
27769 else
27770
27771        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27772 /* end confdefs.h.  */
27773
27774               #include <sys/types.h>
27775
27776 int
27777 main ()
27778 {
27779
27780               intmax_t a; a = 1;
27781
27782   ;
27783   return 0;
27784 }
27785 _ACEOF
27786 if ac_fn_c_try_compile "$LINENO"; then :
27787
27788               ac_cv_have_intmax_t="yes"
27789
27790 else
27791
27792               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27793 /* end confdefs.h.  */
27794
27795                      #include <stdint.h>
27796
27797 int
27798 main ()
27799 {
27800
27801                      intmax_t a; a = 1;
27802
27803   ;
27804   return 0;
27805 }
27806 _ACEOF
27807 if ac_fn_c_try_compile "$LINENO"; then :
27808
27809                      ac_cv_have_intmax_t="yes"
27810
27811 else
27812
27813                      ac_cv_have_intmax_t="no"
27814
27815
27816 fi
27817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27818
27819
27820 fi
27821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27822
27823
27824 fi
27825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27826 $as_echo "$ac_cv_have_intmax_t" >&6; }
27827 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27828    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27829
27830    have_intmax_t=1
27831 fi
27832
27833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27834 $as_echo_n "checking for u_intmax_t type... " >&6; }
27835 if ${ac_cv_have_u_intmax_t+:} false; then :
27836   $as_echo_n "(cached) " >&6
27837 else
27838
27839        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27840 /* end confdefs.h.  */
27841
27842               #include <sys/types.h>
27843
27844 int
27845 main ()
27846 {
27847
27848               u_intmax_t a; a = 1;
27849
27850   ;
27851   return 0;
27852 }
27853 _ACEOF
27854 if ac_fn_c_try_compile "$LINENO"; then :
27855
27856               ac_cv_have_u_intmax_t="yes"
27857
27858 else
27859
27860               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27861 /* end confdefs.h.  */
27862
27863                      #include <stdint.h>
27864
27865 int
27866 main ()
27867 {
27868
27869                     u_intmax_t a; a = 1;
27870
27871   ;
27872   return 0;
27873 }
27874 _ACEOF
27875 if ac_fn_c_try_compile "$LINENO"; then :
27876
27877                     ac_cv_have_u_intmax_t="yes"
27878
27879 else
27880
27881                     ac_cv_have_u_intmax_t="no"
27882
27883
27884 fi
27885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27886
27887
27888 fi
27889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27890
27891
27892 fi
27893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27894 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27895 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27896    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27897
27898    have_u_intmax_t=1
27899 fi
27900
27901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27902 $as_echo_n "checking for intXX_t types... " >&6; }
27903 if ${ac_cv_have_intxx_t+:} false; then :
27904   $as_echo_n "(cached) " >&6
27905 else
27906
27907        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27908 /* end confdefs.h.  */
27909
27910               #include <sys/types.h>
27911
27912 int
27913 main ()
27914 {
27915
27916               int8_t a; int16_t b; int32_t c; a = b = c = 1;
27917
27918   ;
27919   return 0;
27920 }
27921 _ACEOF
27922 if ac_fn_c_try_compile "$LINENO"; then :
27923
27924               ac_cv_have_intxx_t="yes"
27925
27926 else
27927
27928               ac_cv_have_intxx_t="no"
27929
27930
27931 fi
27932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27933
27934
27935 fi
27936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27937 $as_echo "$ac_cv_have_intxx_t" >&6; }
27938 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27939    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27940
27941    have_intxx_t=1
27942 fi
27943
27944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27945 $as_echo_n "checking for int64_t type... " >&6; }
27946 if ${ac_cv_have_int64_t+:} false; then :
27947   $as_echo_n "(cached) " >&6
27948 else
27949
27950        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27951 /* end confdefs.h.  */
27952
27953               #include <sys/types.h>
27954
27955 int
27956 main ()
27957 {
27958
27959               int64_t a; a = 1;
27960
27961   ;
27962   return 0;
27963 }
27964 _ACEOF
27965 if ac_fn_c_try_compile "$LINENO"; then :
27966
27967               ac_cv_have_int64_t="yes"
27968
27969 else
27970
27971               ac_cv_have_int64_t="no"
27972
27973
27974 fi
27975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27976
27977
27978 fi
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27980 $as_echo "$ac_cv_have_int64_t" >&6; }
27981 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27982    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27983
27984    have_int64_t=1
27985 fi
27986
27987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27988 $as_echo_n "checking for u_intXX_t types... " >&6; }
27989 if ${ac_cv_have_u_intxx_t+:} false; then :
27990   $as_echo_n "(cached) " >&6
27991 else
27992
27993        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27994 /* end confdefs.h.  */
27995
27996               #include <sys/types.h>
27997
27998 int
27999 main ()
28000 {
28001
28002               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
28003
28004   ;
28005   return 0;
28006 }
28007 _ACEOF
28008 if ac_fn_c_try_compile "$LINENO"; then :
28009
28010              ac_cv_have_u_intxx_t="yes"
28011
28012 else
28013
28014              ac_cv_have_u_intxx_t="no"
28015
28016
28017 fi
28018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28019
28020
28021 fi
28022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
28023 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
28024 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
28025    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28026
28027    have_u_intxx_t=1
28028 fi
28029
28030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28031 $as_echo_n "checking for u_int64_t types... " >&6; }
28032 if ${ac_cv_have_u_int64_t+:} false; then :
28033   $as_echo_n "(cached) " >&6
28034 else
28035
28036        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28037 /* end confdefs.h.  */
28038
28039               #include <sys/types.h>
28040
28041 int
28042 main ()
28043 {
28044
28045               u_int64_t a; a = 1;
28046
28047   ;
28048   return 0;
28049 }
28050 _ACEOF
28051 if ac_fn_c_try_compile "$LINENO"; then :
28052
28053              ac_cv_have_u_int64_t="yes"
28054
28055 else
28056
28057              ac_cv_have_u_int64_t="no"
28058
28059
28060 fi
28061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28062
28063
28064 fi
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28066 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28067 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28068    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28069
28070    have_u_int64_t=1
28071 fi
28072
28073 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28074     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28075 then
28076    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28077 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28078    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28079 /* end confdefs.h.  */
28080
28081           #include <sys/bitypes.h>
28082
28083 int
28084 main ()
28085 {
28086
28087           int8_t a; int16_t b; int32_t c;
28088           u_int8_t e; u_int16_t f; u_int32_t g;
28089           a = b = c = e = f = g = 1;
28090
28091   ;
28092   return 0;
28093 }
28094 _ACEOF
28095 if ac_fn_c_try_compile "$LINENO"; then :
28096
28097           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28098
28099           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28100
28101           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28102
28103           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28104 $as_echo "yes" >&6; }
28105
28106 else
28107
28108           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28109 $as_echo "no" >&6; }
28110
28111
28112 fi
28113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28114 fi
28115
28116 if test -z "$have_u_intxx_t" ; then
28117    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28118 $as_echo_n "checking for uintXX_t types... " >&6; }
28119 if ${ac_cv_have_uintxx_t+:} false; then :
28120   $as_echo_n "(cached) " >&6
28121 else
28122
28123           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28124 /* end confdefs.h.  */
28125
28126                  #include <sys/types.h>
28127
28128 int
28129 main ()
28130 {
28131
28132                  uint8_t a; uint16_t b;
28133                  uint32_t c; a = b = c = 1;
28134
28135   ;
28136   return 0;
28137 }
28138 _ACEOF
28139 if ac_fn_c_try_compile "$LINENO"; then :
28140
28141                 ac_cv_have_uintxx_t="yes"
28142
28143 else
28144
28145                 ac_cv_have_uintxx_t="no"
28146
28147
28148 fi
28149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28150
28151
28152 fi
28153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28154 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28155    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28156       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28157
28158    fi
28159 fi
28160
28161 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28162     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28163 then
28164    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28165 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28166    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28167 /* end confdefs.h.  */
28168
28169           #include <sys/bitypes.h>
28170
28171 int
28172 main ()
28173 {
28174
28175           int64_t a; u_int64_t b;
28176           a = b = 1;
28177
28178   ;
28179   return 0;
28180 }
28181 _ACEOF
28182 if ac_fn_c_try_compile "$LINENO"; then :
28183
28184           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28185
28186           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28187
28188           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28189 $as_echo "yes" >&6; }
28190
28191 else
28192
28193           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28194 $as_echo "no" >&6; }
28195
28196
28197 fi
28198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28199 fi
28200
28201 if (test -z "$have_uintxx_t" && \
28202     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28203 then
28204    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28205 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28206    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28207 /* end confdefs.h.  */
28208
28209           #include <sys/bitypes.h>
28210
28211 int
28212 main ()
28213 {
28214
28215           uint8_t a; uint16_t b;
28216           uint32_t c; a = b = c = 1;
28217
28218   ;
28219   return 0;
28220 }
28221 _ACEOF
28222 if ac_fn_c_try_compile "$LINENO"; then :
28223
28224           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28225
28226           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28227 $as_echo "yes" >&6; }
28228
28229 else
28230
28231           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28232 $as_echo "no" >&6; }
28233
28234
28235 fi
28236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28237 fi
28238
28239 for ac_func in \
28240    fork \
28241    getcwd \
28242    gethostname \
28243    getpid \
28244    gettimeofday \
28245    setpgid \
28246    setpgrp \
28247    setsid \
28248    signal \
28249    strerror \
28250    strncmp \
28251    strncpy \
28252    vfprintf \
28253
28254 do :
28255   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28256 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28257 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28258   cat >>confdefs.h <<_ACEOF
28259 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28260 _ACEOF
28261
28262 else
28263   echo 'configure: cannot find needed function.'; exit 1
28264
28265 fi
28266 done
28267
28268
28269 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28270
28271 "
28272 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28273
28274 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28275
28276 fi
28277
28278
28279 ac_fn_c_check_decl "$LINENO" "F_SETLK" "ac_cv_have_decl_F_SETLK" "#include <fcntl.h>
28280
28281 "
28282 if test "x$ac_cv_have_decl_F_SETLK" = xyes; then :
28283
28284 $as_echo "#define HAVE_FCNTL_LOCK 1" >>confdefs.h
28285
28286 fi
28287
28288
28289 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28290 if test "x$ac_cv_func_closefrom" = xyes; then :
28291
28292 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28293
28294 fi
28295
28296 for ac_func in getpagesize
28297 do :
28298   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28299 if test "x$ac_cv_func_getpagesize" = xyes; then :
28300   cat >>confdefs.h <<_ACEOF
28301 #define HAVE_GETPAGESIZE 1
28302 _ACEOF
28303
28304 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28305
28306 fi
28307 done
28308
28309 for ac_func in malloc_trim
28310 do :
28311   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28312 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28313   cat >>confdefs.h <<_ACEOF
28314 #define HAVE_MALLOC_TRIM 1
28315 _ACEOF
28316
28317 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28318
28319 fi
28320 done
28321
28322
28323 for ac_func in fchdir
28324 do :
28325   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28326 if test "x$ac_cv_func_fchdir" = xyes; then :
28327   cat >>confdefs.h <<_ACEOF
28328 #define HAVE_FCHDIR 1
28329 _ACEOF
28330  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28331
28332 fi
28333 done
28334
28335 for ac_func in strtoll
28336 do :
28337   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28338 if test "x$ac_cv_func_strtoll" = xyes; then :
28339   cat >>confdefs.h <<_ACEOF
28340 #define HAVE_STRTOLL 1
28341 _ACEOF
28342  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28343
28344 fi
28345 done
28346
28347 for ac_func in posix_fadvise
28348 do :
28349   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28350 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28351   cat >>confdefs.h <<_ACEOF
28352 #define HAVE_POSIX_FADVISE 1
28353 _ACEOF
28354
28355 fi
28356 done
28357
28358 for ac_func in posix_fallocate
28359 do :
28360   ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
28361 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
28362   cat >>confdefs.h <<_ACEOF
28363 #define HAVE_POSIX_FALLOCATE 1
28364 _ACEOF
28365
28366 fi
28367 done
28368
28369 for ac_func in fdatasync
28370 do :
28371   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28372 if test "x$ac_cv_func_fdatasync" = xyes; then :
28373   cat >>confdefs.h <<_ACEOF
28374 #define HAVE_FDATASYNC 1
28375 _ACEOF
28376
28377 fi
28378 done
28379
28380
28381 for ac_func in chflags
28382 do :
28383   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28384 if test "x$ac_cv_func_chflags" = xyes; then :
28385   cat >>confdefs.h <<_ACEOF
28386 #define HAVE_CHFLAGS 1
28387 _ACEOF
28388
28389 fi
28390 done
28391
28392
28393 for ac_func in snprintf vsnprintf gethostid fseeko
28394 do :
28395   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28396 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28397 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28398   cat >>confdefs.h <<_ACEOF
28399 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28400 _ACEOF
28401
28402 fi
28403 done
28404
28405
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28407 $as_echo_n "checking for va_copy... " >&6; }
28408 if ${ba_cv_va_copy+:} false; then :
28409   $as_echo_n "(cached) " >&6
28410 else
28411
28412        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28413 /* end confdefs.h.  */
28414
28415               #include <stdarg.h>
28416               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28417               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28418
28419 int
28420 main ()
28421 {
28422
28423               call_use_va_copy(1,2,3)
28424
28425   ;
28426   return 0;
28427 }
28428 _ACEOF
28429 if ac_fn_c_try_link "$LINENO"; then :
28430
28431               ba_cv_va_copy=yes
28432
28433 else
28434
28435               ba_cv_va_copy=no
28436
28437
28438 fi
28439 rm -f core conftest.err conftest.$ac_objext \
28440     conftest$ac_exeext conftest.$ac_ext
28441
28442
28443 fi
28444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28445 $as_echo "$ba_cv_va_copy" >&6; }
28446 test $ba_cv_va_copy = yes &&
28447 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28448
28449
28450 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28451 do :
28452   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28453 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28454 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28455   cat >>confdefs.h <<_ACEOF
28456 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28457 _ACEOF
28458
28459 fi
28460 done
28461
28462
28463 # If resolver functions are not in libc check for -lnsl or -lresolv.
28464 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28465 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28467 $as_echo "using libc's resolver" >&6; }
28468 else
28469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28470 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28471 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28472   $as_echo_n "(cached) " >&6
28473 else
28474   ac_check_lib_save_LIBS=$LIBS
28475 LIBS="-lnsl  $LIBS"
28476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28477 /* end confdefs.h.  */
28478
28479 /* Override any GCC internal prototype to avoid an error.
28480    Use char because int might match the return type of a GCC
28481    builtin and then its argument prototype would still apply.  */
28482 #ifdef __cplusplus
28483 extern "C"
28484 #endif
28485 char gethostbyname_r ();
28486 int
28487 main ()
28488 {
28489 return gethostbyname_r ();
28490   ;
28491   return 0;
28492 }
28493 _ACEOF
28494 if ac_fn_c_try_link "$LINENO"; then :
28495   ac_cv_lib_nsl_gethostbyname_r=yes
28496 else
28497   ac_cv_lib_nsl_gethostbyname_r=no
28498 fi
28499 rm -f core conftest.err conftest.$ac_objext \
28500     conftest$ac_exeext conftest.$ac_ext
28501 LIBS=$ac_check_lib_save_LIBS
28502 fi
28503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28504 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28505 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28506   cat >>confdefs.h <<_ACEOF
28507 #define HAVE_LIBNSL 1
28508 _ACEOF
28509
28510   LIBS="-lnsl $LIBS"
28511
28512 fi
28513
28514     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28515 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28516 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28517   $as_echo_n "(cached) " >&6
28518 else
28519   ac_check_lib_save_LIBS=$LIBS
28520 LIBS="-lresolv  $LIBS"
28521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28522 /* end confdefs.h.  */
28523
28524 /* Override any GCC internal prototype to avoid an error.
28525    Use char because int might match the return type of a GCC
28526    builtin and then its argument prototype would still apply.  */
28527 #ifdef __cplusplus
28528 extern "C"
28529 #endif
28530 char gethostbyname_r ();
28531 int
28532 main ()
28533 {
28534 return gethostbyname_r ();
28535   ;
28536   return 0;
28537 }
28538 _ACEOF
28539 if ac_fn_c_try_link "$LINENO"; then :
28540   ac_cv_lib_resolv_gethostbyname_r=yes
28541 else
28542   ac_cv_lib_resolv_gethostbyname_r=no
28543 fi
28544 rm -f core conftest.err conftest.$ac_objext \
28545     conftest$ac_exeext conftest.$ac_ext
28546 LIBS=$ac_check_lib_save_LIBS
28547 fi
28548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28549 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28550 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28551   cat >>confdefs.h <<_ACEOF
28552 #define HAVE_LIBRESOLV 1
28553 _ACEOF
28554
28555   LIBS="-lresolv $LIBS"
28556
28557 fi
28558
28559 fi
28560
28561
28562 for ac_func in inet_pton
28563 do :
28564   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28565 if test "x$ac_cv_func_inet_pton" = xyes; then :
28566   cat >>confdefs.h <<_ACEOF
28567 #define HAVE_INET_PTON 1
28568 _ACEOF
28569  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28570
28571 fi
28572 done
28573
28574 for ac_func in inet_ntop
28575 do :
28576   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28577 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28578   cat >>confdefs.h <<_ACEOF
28579 #define HAVE_INET_NTOP 1
28580 _ACEOF
28581  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28582
28583 fi
28584 done
28585
28586 for ac_func in gethostbyname2
28587 do :
28588   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28589 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28590   cat >>confdefs.h <<_ACEOF
28591 #define HAVE_GETHOSTBYNAME2 1
28592 _ACEOF
28593  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28594
28595 fi
28596 done
28597
28598 for ac_func in getnameinfo
28599 do :
28600   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28601 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28602   cat >>confdefs.h <<_ACEOF
28603 #define HAVE_GETNAMEINFO 1
28604 _ACEOF
28605  $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28606
28607 fi
28608 done
28609
28610
28611
28612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28613 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28614 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28615   $as_echo_n "(cached) " >&6
28616 else
28617
28618        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28619 /* end confdefs.h.  */
28620
28621               #include <sys/socket.h>
28622
28623 int
28624 main ()
28625 {
28626
28627               struct sockaddr s; s.sa_len;
28628
28629   ;
28630   return 0;
28631 }
28632 _ACEOF
28633 if ac_fn_c_try_compile "$LINENO"; then :
28634
28635              ac_cv_struct_sockaddr_sa_len=yes
28636
28637 else
28638   ac_cv_struct_sockaddr_sa_len=no
28639
28640
28641 fi
28642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28643
28644
28645 fi
28646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28647 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28648
28649 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28650
28651 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28652
28653 fi
28654
28655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28656 $as_echo_n "checking for working getaddrinfo... " >&6; }
28657 if ${ac_cv_working_getaddrinfo+:} false; then :
28658   $as_echo_n "(cached) " >&6
28659 else
28660
28661        if test "$cross_compiling" = yes; then :
28662
28663               ac_cv_working_getaddrinfo="yes"
28664
28665
28666 else
28667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28668 /* end confdefs.h.  */
28669
28670               #include <netdb.h>
28671               #include <string.h>
28672               #include <sys/types.h>
28673               #include <sys/socket.h>
28674
28675               void main(void) {
28676                   struct addrinfo hints, *ai;
28677                   int error;
28678
28679                   memset(&hints, 0, sizeof(hints));
28680                   hints.ai_family = AF_UNSPEC;
28681                   hints.ai_socktype = SOCK_STREAM;
28682                   error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28683                   if (error) {
28684                       exit(1);
28685                   }
28686                   if (ai->ai_addr->sa_family != AF_INET) {
28687                       exit(1);
28688                   }
28689                   exit(0);
28690               }
28691
28692 _ACEOF
28693 if ac_fn_c_try_run "$LINENO"; then :
28694
28695               ac_cv_working_getaddrinfo="yes"
28696
28697 else
28698
28699               ac_cv_working_getaddrinfo="no"
28700
28701 fi
28702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28703   conftest.$ac_objext conftest.beam conftest.$ac_ext
28704 fi
28705
28706
28707
28708 fi
28709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28710 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28711 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28712 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28713
28714 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28715
28716 fi
28717
28718
28719 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28720   if test "$ac_cv_func_gai_strerror" != "yes"; then
28721     ac_cv_working_getaddrinfo="no"
28722   else
28723
28724 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28725
28726   fi
28727 fi
28728
28729 for ac_func in strftime
28730 do :
28731   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28732 if test "x$ac_cv_func_strftime" = xyes; then :
28733   cat >>confdefs.h <<_ACEOF
28734 #define HAVE_STRFTIME 1
28735 _ACEOF
28736
28737 else
28738   # strftime is in -lintl on SCO UNIX.
28739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28740 $as_echo_n "checking for strftime in -lintl... " >&6; }
28741 if ${ac_cv_lib_intl_strftime+:} false; then :
28742   $as_echo_n "(cached) " >&6
28743 else
28744   ac_check_lib_save_LIBS=$LIBS
28745 LIBS="-lintl  $LIBS"
28746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28747 /* end confdefs.h.  */
28748
28749 /* Override any GCC internal prototype to avoid an error.
28750    Use char because int might match the return type of a GCC
28751    builtin and then its argument prototype would still apply.  */
28752 #ifdef __cplusplus
28753 extern "C"
28754 #endif
28755 char strftime ();
28756 int
28757 main ()
28758 {
28759 return strftime ();
28760   ;
28761   return 0;
28762 }
28763 _ACEOF
28764 if ac_fn_c_try_link "$LINENO"; then :
28765   ac_cv_lib_intl_strftime=yes
28766 else
28767   ac_cv_lib_intl_strftime=no
28768 fi
28769 rm -f core conftest.err conftest.$ac_objext \
28770     conftest$ac_exeext conftest.$ac_ext
28771 LIBS=$ac_check_lib_save_LIBS
28772 fi
28773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28774 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28775 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28776   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28777
28778 LIBS="-lintl $LIBS"
28779 fi
28780
28781 fi
28782 done
28783
28784 for ac_func in vprintf
28785 do :
28786   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28787 if test "x$ac_cv_func_vprintf" = xyes; then :
28788   cat >>confdefs.h <<_ACEOF
28789 #define HAVE_VPRINTF 1
28790 _ACEOF
28791
28792 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28793 if test "x$ac_cv_func__doprnt" = xyes; then :
28794
28795 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28796
28797 fi
28798
28799 fi
28800 done
28801
28802
28803 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28804 # for constant arguments.  Useless!
28805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28806 $as_echo_n "checking for working alloca.h... " >&6; }
28807 if ${ac_cv_working_alloca_h+:} false; then :
28808   $as_echo_n "(cached) " >&6
28809 else
28810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28811 /* end confdefs.h.  */
28812 #include <alloca.h>
28813 int
28814 main ()
28815 {
28816 char *p = (char *) alloca (2 * sizeof (int));
28817                           if (p) return 0;
28818   ;
28819   return 0;
28820 }
28821 _ACEOF
28822 if ac_fn_c_try_link "$LINENO"; then :
28823   ac_cv_working_alloca_h=yes
28824 else
28825   ac_cv_working_alloca_h=no
28826 fi
28827 rm -f core conftest.err conftest.$ac_objext \
28828     conftest$ac_exeext conftest.$ac_ext
28829 fi
28830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28831 $as_echo "$ac_cv_working_alloca_h" >&6; }
28832 if test $ac_cv_working_alloca_h = yes; then
28833
28834 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28835
28836 fi
28837
28838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28839 $as_echo_n "checking for alloca... " >&6; }
28840 if ${ac_cv_func_alloca_works+:} false; then :
28841   $as_echo_n "(cached) " >&6
28842 else
28843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28844 /* end confdefs.h.  */
28845 #ifdef __GNUC__
28846 # define alloca __builtin_alloca
28847 #else
28848 # ifdef _MSC_VER
28849 #  include <malloc.h>
28850 #  define alloca _alloca
28851 # else
28852 #  ifdef HAVE_ALLOCA_H
28853 #   include <alloca.h>
28854 #  else
28855 #   ifdef _AIX
28856  #pragma alloca
28857 #   else
28858 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28859 void *alloca (size_t);
28860 #    endif
28861 #   endif
28862 #  endif
28863 # endif
28864 #endif
28865
28866 int
28867 main ()
28868 {
28869 char *p = (char *) alloca (1);
28870                                     if (p) return 0;
28871   ;
28872   return 0;
28873 }
28874 _ACEOF
28875 if ac_fn_c_try_link "$LINENO"; then :
28876   ac_cv_func_alloca_works=yes
28877 else
28878   ac_cv_func_alloca_works=no
28879 fi
28880 rm -f core conftest.err conftest.$ac_objext \
28881     conftest$ac_exeext conftest.$ac_ext
28882 fi
28883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28884 $as_echo "$ac_cv_func_alloca_works" >&6; }
28885
28886 if test $ac_cv_func_alloca_works = yes; then
28887
28888 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28889
28890 else
28891   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28892 # that cause trouble.  Some versions do not even contain alloca or
28893 # contain a buggy version.  If you still want to use their alloca,
28894 # use ar to extract alloca.o from them instead of compiling alloca.c.
28895
28896 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28897
28898 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28899
28900
28901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28902 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28903 if ${ac_cv_os_cray+:} false; then :
28904   $as_echo_n "(cached) " >&6
28905 else
28906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28907 /* end confdefs.h.  */
28908 #if defined CRAY && ! defined CRAY2
28909 webecray
28910 #else
28911 wenotbecray
28912 #endif
28913
28914 _ACEOF
28915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28916   $EGREP "webecray" >/dev/null 2>&1; then :
28917   ac_cv_os_cray=yes
28918 else
28919   ac_cv_os_cray=no
28920 fi
28921 rm -f conftest*
28922
28923 fi
28924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28925 $as_echo "$ac_cv_os_cray" >&6; }
28926 if test $ac_cv_os_cray = yes; then
28927   for ac_func in _getb67 GETB67 getb67; do
28928     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28929 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28930 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28931
28932 cat >>confdefs.h <<_ACEOF
28933 #define CRAY_STACKSEG_END $ac_func
28934 _ACEOF
28935
28936     break
28937 fi
28938
28939   done
28940 fi
28941
28942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28943 $as_echo_n "checking stack direction for C alloca... " >&6; }
28944 if ${ac_cv_c_stack_direction+:} false; then :
28945   $as_echo_n "(cached) " >&6
28946 else
28947   if test "$cross_compiling" = yes; then :
28948   ac_cv_c_stack_direction=0
28949 else
28950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28951 /* end confdefs.h.  */
28952 $ac_includes_default
28953 int
28954 find_stack_direction (int *addr, int depth)
28955 {
28956   int dir, dummy = 0;
28957   if (! addr)
28958     addr = &dummy;
28959   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
28960   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
28961   return dir + dummy;
28962 }
28963
28964 int
28965 main (int argc, char **argv)
28966 {
28967   return find_stack_direction (0, argc + !argv + 20) < 0;
28968 }
28969 _ACEOF
28970 if ac_fn_c_try_run "$LINENO"; then :
28971   ac_cv_c_stack_direction=1
28972 else
28973   ac_cv_c_stack_direction=-1
28974 fi
28975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28976   conftest.$ac_objext conftest.beam conftest.$ac_ext
28977 fi
28978
28979 fi
28980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28981 $as_echo "$ac_cv_c_stack_direction" >&6; }
28982 cat >>confdefs.h <<_ACEOF
28983 #define STACK_DIRECTION $ac_cv_c_stack_direction
28984 _ACEOF
28985
28986
28987 fi
28988
28989 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28990 # -lseq on Dynix/PTX, -lgen on Unixware.
28991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28992 $as_echo_n "checking for library containing getmntent... " >&6; }
28993 if ${ac_cv_search_getmntent+:} false; then :
28994   $as_echo_n "(cached) " >&6
28995 else
28996   ac_func_search_save_LIBS=$LIBS
28997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28998 /* end confdefs.h.  */
28999
29000 /* Override any GCC internal prototype to avoid an error.
29001    Use char because int might match the return type of a GCC
29002    builtin and then its argument prototype would still apply.  */
29003 #ifdef __cplusplus
29004 extern "C"
29005 #endif
29006 char getmntent ();
29007 int
29008 main ()
29009 {
29010 return getmntent ();
29011   ;
29012   return 0;
29013 }
29014 _ACEOF
29015 for ac_lib in '' sun seq gen; do
29016   if test -z "$ac_lib"; then
29017     ac_res="none required"
29018   else
29019     ac_res=-l$ac_lib
29020     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29021   fi
29022   if ac_fn_c_try_link "$LINENO"; then :
29023   ac_cv_search_getmntent=$ac_res
29024 fi
29025 rm -f core conftest.err conftest.$ac_objext \
29026     conftest$ac_exeext
29027   if ${ac_cv_search_getmntent+:} false; then :
29028   break
29029 fi
29030 done
29031 if ${ac_cv_search_getmntent+:} false; then :
29032
29033 else
29034   ac_cv_search_getmntent=no
29035 fi
29036 rm conftest.$ac_ext
29037 LIBS=$ac_func_search_save_LIBS
29038 fi
29039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29040 $as_echo "$ac_cv_search_getmntent" >&6; }
29041 ac_res=$ac_cv_search_getmntent
29042 if test "$ac_res" != no; then :
29043   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29044   ac_cv_func_getmntent=yes
29045
29046 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29047
29048 else
29049   ac_cv_func_getmntent=no
29050 fi
29051
29052
29053 for ac_func in getmntinfo
29054 do :
29055   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29056 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29057   cat >>confdefs.h <<_ACEOF
29058 #define HAVE_GETMNTINFO 1
29059 _ACEOF
29060  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29061
29062 fi
29063 done
29064
29065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29066 $as_echo_n "checking whether closedir returns void... " >&6; }
29067 if ${ac_cv_func_closedir_void+:} false; then :
29068   $as_echo_n "(cached) " >&6
29069 else
29070   if test "$cross_compiling" = yes; then :
29071   ac_cv_func_closedir_void=yes
29072 else
29073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29074 /* end confdefs.h.  */
29075 $ac_includes_default
29076 #include <$ac_header_dirent>
29077 #ifndef __cplusplus
29078 int closedir ();
29079 #endif
29080
29081 int
29082 main ()
29083 {
29084 return closedir (opendir (".")) != 0;
29085   ;
29086   return 0;
29087 }
29088 _ACEOF
29089 if ac_fn_c_try_run "$LINENO"; then :
29090   ac_cv_func_closedir_void=no
29091 else
29092   ac_cv_func_closedir_void=yes
29093 fi
29094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29095   conftest.$ac_objext conftest.beam conftest.$ac_ext
29096 fi
29097
29098 fi
29099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29100 $as_echo "$ac_cv_func_closedir_void" >&6; }
29101 if test $ac_cv_func_closedir_void = yes; then
29102
29103 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29104
29105 fi
29106
29107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29108 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29109 if ${ac_cv_func_setpgrp_void+:} false; then :
29110   $as_echo_n "(cached) " >&6
29111 else
29112   if test "$cross_compiling" = yes; then :
29113   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29114 else
29115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29116 /* end confdefs.h.  */
29117 $ac_includes_default
29118 int
29119 main ()
29120 {
29121 /* If this system has a BSD-style setpgrp which takes arguments,
29122   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29123   exit successfully. */
29124   return setpgrp (1,1) != -1;
29125   ;
29126   return 0;
29127 }
29128 _ACEOF
29129 if ac_fn_c_try_run "$LINENO"; then :
29130   ac_cv_func_setpgrp_void=no
29131 else
29132   ac_cv_func_setpgrp_void=yes
29133 fi
29134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29135   conftest.$ac_objext conftest.beam conftest.$ac_ext
29136 fi
29137
29138 fi
29139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29140 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29141 if test $ac_cv_func_setpgrp_void = yes; then
29142
29143 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29144
29145 fi
29146             # AC_FUNC_FNMATCH    dnl use local version
29147
29148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29149 $as_echo_n "checking for gettext in -lintl... " >&6; }
29150 if ${ac_cv_lib_intl_gettext+:} false; then :
29151   $as_echo_n "(cached) " >&6
29152 else
29153   ac_check_lib_save_LIBS=$LIBS
29154 LIBS="-lintl  $LIBS"
29155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29156 /* end confdefs.h.  */
29157
29158 /* Override any GCC internal prototype to avoid an error.
29159    Use char because int might match the return type of a GCC
29160    builtin and then its argument prototype would still apply.  */
29161 #ifdef __cplusplus
29162 extern "C"
29163 #endif
29164 char gettext ();
29165 int
29166 main ()
29167 {
29168 return gettext ();
29169   ;
29170   return 0;
29171 }
29172 _ACEOF
29173 if ac_fn_c_try_link "$LINENO"; then :
29174   ac_cv_lib_intl_gettext=yes
29175 else
29176   ac_cv_lib_intl_gettext=no
29177 fi
29178 rm -f core conftest.err conftest.$ac_objext \
29179     conftest$ac_exeext conftest.$ac_ext
29180 LIBS=$ac_check_lib_save_LIBS
29181 fi
29182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29183 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29184 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29185   LIBS="$LIBS -lintl"
29186 fi
29187
29188
29189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29190 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29191 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29192   $as_echo_n "(cached) " >&6
29193 else
29194   ac_check_lib_save_LIBS=$LIBS
29195 LIBS="-lsun  $LIBS"
29196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29197 /* end confdefs.h.  */
29198
29199 /* Override any GCC internal prototype to avoid an error.
29200    Use char because int might match the return type of a GCC
29201    builtin and then its argument prototype would still apply.  */
29202 #ifdef __cplusplus
29203 extern "C"
29204 #endif
29205 char getpwnam ();
29206 int
29207 main ()
29208 {
29209 return getpwnam ();
29210   ;
29211   return 0;
29212 }
29213 _ACEOF
29214 if ac_fn_c_try_link "$LINENO"; then :
29215   ac_cv_lib_sun_getpwnam=yes
29216 else
29217   ac_cv_lib_sun_getpwnam=no
29218 fi
29219 rm -f core conftest.err conftest.$ac_objext \
29220     conftest$ac_exeext conftest.$ac_ext
29221 LIBS=$ac_check_lib_save_LIBS
29222 fi
29223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29224 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29225 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29226   cat >>confdefs.h <<_ACEOF
29227 #define HAVE_LIBSUN 1
29228 _ACEOF
29229
29230   LIBS="-lsun $LIBS"
29231
29232 fi
29233
29234
29235 for ac_header in zlib.h
29236 do :
29237   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29238 if test "x$ac_cv_header_zlib_h" = xyes; then :
29239   cat >>confdefs.h <<_ACEOF
29240 #define HAVE_ZLIB_H 1
29241 _ACEOF
29242
29243 fi
29244
29245 done
29246
29247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29248 $as_echo_n "checking for deflate in -lz... " >&6; }
29249 if ${ac_cv_lib_z_deflate+:} false; then :
29250   $as_echo_n "(cached) " >&6
29251 else
29252   ac_check_lib_save_LIBS=$LIBS
29253 LIBS="-lz  $LIBS"
29254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29255 /* end confdefs.h.  */
29256
29257 /* Override any GCC internal prototype to avoid an error.
29258    Use char because int might match the return type of a GCC
29259    builtin and then its argument prototype would still apply.  */
29260 #ifdef __cplusplus
29261 extern "C"
29262 #endif
29263 char deflate ();
29264 int
29265 main ()
29266 {
29267 return deflate ();
29268   ;
29269   return 0;
29270 }
29271 _ACEOF
29272 if ac_fn_c_try_link "$LINENO"; then :
29273   ac_cv_lib_z_deflate=yes
29274 else
29275   ac_cv_lib_z_deflate=no
29276 fi
29277 rm -f core conftest.err conftest.$ac_objext \
29278     conftest$ac_exeext conftest.$ac_ext
29279 LIBS=$ac_check_lib_save_LIBS
29280 fi
29281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29282 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29283 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29284   ZLIBS="-lz"
29285 fi
29286
29287 have_zlib=no
29288 if test x$ZLIBS = x-lz; then
29289    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29290
29291    have_zlib=yes
29292 fi
29293
29294
29295 AFS_CFLAGS=""
29296 AFS_LIBS=""
29297 support_afs=auto
29298 # Check whether --enable-afs was given.
29299 if test "${enable_afs+set}" = set; then :
29300   enableval=$enable_afs;
29301        if test x$enableval = xyes; then
29302           support_afs=yes
29303        elif test x$enableval = xno; then
29304           support_afs=no
29305        fi
29306
29307
29308 fi
29309
29310
29311 have_afs=no
29312 if test x$support_afs = xyes -o x$support_afs = xauto; then
29313
29314 # Check whether --with-afsdir was given.
29315 if test "${with_afsdir+set}" = set; then :
29316   withval=$with_afsdir; with_afsdir=$withval
29317
29318 fi
29319
29320
29321             if test x$with_afsdir = x; then
29322       for root in /usr /usr/local; do
29323          if test -d ${root}/include/afs/ ; then
29324             with_afsdir=${root}
29325             break
29326          fi
29327          if test -d ${root}/include/openafs/afs/ ; then
29328             with_afsdir=${root}
29329             break
29330          fi
29331       done
29332    fi
29333
29334    if test -d ${with_afsdir}/include/afs/ ; then
29335       AFS_CFLAGS="-I${with_afsdir}/include"
29336    else
29337       if test -d ${with_afsdir}/include/openafs/afs/ ; then
29338          AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29339       fi
29340    fi
29341
29342    saved_CFLAGS="${CFLAGS}"
29343    saved_CPPFLAGS="${CPPFLAGS}"
29344    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29345    CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29346
29347    for ac_header in afs/afsint.h
29348 do :
29349   ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29350 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29351   cat >>confdefs.h <<_ACEOF
29352 #define HAVE_AFS_AFSINT_H 1
29353 _ACEOF
29354
29355 fi
29356
29357 done
29358
29359    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29360 /* end confdefs.h.  */
29361
29362           #include <afs/afsint.h>
29363           #include <afs/venus.h>
29364
29365 _ACEOF
29366 if ac_fn_c_try_cpp "$LINENO"; then :
29367
29368 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29369
29370
29371 fi
29372 rm -f conftest.err conftest.i conftest.$ac_ext
29373
29374    CFLAGS="${saved_CFLAGS}"
29375    CPPFLAGS="${saved_CPPFLAGS}"
29376
29377             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29378 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29379    for dir in ${with_afsdir}/lib \
29380               ${with_afsdir}/lib/afs \
29381               ${with_afsdir}/lib/openafs \
29382               ${with_afsdir}/lib64 \
29383               ${with_afsdir}/lib64/afs \
29384               ${with_afsdir}/lib64/openafs
29385    do
29386       for arch_type in .a .so
29387       do
29388          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29389          pkg=$?
29390          if test $pkg = 0; then
29391             have_afs=yes
29392             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29393             break
29394          fi
29395       done
29396    done
29397
29398    if test $have_afs = yes; then
29399       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29400 $as_echo "yes" >&6; }
29401    else
29402       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29403 $as_echo "no" >&6; }
29404    fi
29405
29406    if test x$support_afs = xyes -a $have_afs != yes; then
29407       as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29408   please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29409    else
29410       if test $have_afs = yes; then
29411
29412 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29413
29414
29415 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29416
29417       fi
29418    fi
29419 fi
29420
29421
29422
29423
29424 # Check whether --enable-lzo was given.
29425 if test "${enable_lzo+set}" = set; then :
29426   enableval=$enable_lzo;
29427        if test x$enableval = xno; then
29428           support_lzo=no
29429        fi
29430
29431
29432 fi
29433
29434
29435 LZO_INC=
29436 LZO_LIBS=
29437 LZO_LDFLAGS=
29438
29439 have_lzo="no"
29440 if test x$support_lzo = xyes; then
29441
29442 # Check whether --with-lzo was given.
29443 if test "${with_lzo+set}" = set; then :
29444   withval=$with_lzo;
29445           case "$with_lzo" in
29446           no)
29447              :
29448              ;;
29449           yes|*)
29450              if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29451                 LZO_INC="-I${with_lzo}/include"
29452                 LZO_LDFLAGS="-L${with_lzo}/lib"
29453                 with_lzo="${with_lzo}/include"
29454              else
29455                 with_lzo="/usr/include"
29456              fi
29457
29458              as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29459 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29460 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29461
29462
29463 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29464
29465                     LZO_LIBS="${LZO_LDFLAGS} -llzo2"
29466                     have_lzo="yes"
29467
29468 else
29469
29470                     echo " "
29471                     echo "lzoconf.h not found. lzo turned off ..."
29472                     echo " "
29473
29474
29475 fi
29476
29477
29478              ;;
29479           esac
29480
29481 else
29482
29483          ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29484 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29485
29486             ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29487 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29488
29489                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29490 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29491 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29492   $as_echo_n "(cached) " >&6
29493 else
29494   ac_check_lib_save_LIBS=$LIBS
29495 LIBS="-llzo2  $LIBS"
29496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29497 /* end confdefs.h.  */
29498
29499 /* Override any GCC internal prototype to avoid an error.
29500    Use char because int might match the return type of a GCC
29501    builtin and then its argument prototype would still apply.  */
29502 #ifdef __cplusplus
29503 extern "C"
29504 #endif
29505 char lzo1x_1_compress ();
29506 int
29507 main ()
29508 {
29509 return lzo1x_1_compress ();
29510   ;
29511   return 0;
29512 }
29513 _ACEOF
29514 if ac_fn_c_try_link "$LINENO"; then :
29515   ac_cv_lib_lzo2_lzo1x_1_compress=yes
29516 else
29517   ac_cv_lib_lzo2_lzo1x_1_compress=no
29518 fi
29519 rm -f core conftest.err conftest.$ac_objext \
29520     conftest$ac_exeext conftest.$ac_ext
29521 LIBS=$ac_check_lib_save_LIBS
29522 fi
29523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29524 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29525 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29526
29527                  LZO_LIBS="-llzo2"
29528
29529 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29530
29531                  have_lzo=yes
29532
29533 fi
29534
29535
29536 fi
29537
29538
29539
29540 fi
29541
29542
29543
29544 fi
29545
29546 fi
29547
29548
29549
29550
29551
29552 support_acl=auto
29553 # Check whether --enable-acl was given.
29554 if test "${enable_acl+set}" = set; then :
29555   enableval=$enable_acl;
29556        if test x$enableval = xyes; then
29557           support_acl=yes
29558        elif test x$enableval = xno; then
29559           support_acl=no
29560        fi
29561
29562
29563 fi
29564
29565
29566 have_acl=no
29567 have_extended_acl=no
29568 if test x$support_acl = xyes -o x$support_acl = xauto; then
29569    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29570 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29571
29572 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29573
29574 fi
29575
29576
29577
29578             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29579 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29580
29581           have_acl=yes
29582
29583
29584 fi
29585
29586
29587             if test $have_acl = no; then
29588       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29589 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29590 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29591   $as_echo_n "(cached) " >&6
29592 else
29593   ac_check_lib_save_LIBS=$LIBS
29594 LIBS="-lacl  $LIBS"
29595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29596 /* end confdefs.h.  */
29597
29598 /* Override any GCC internal prototype to avoid an error.
29599    Use char because int might match the return type of a GCC
29600    builtin and then its argument prototype would still apply.  */
29601 #ifdef __cplusplus
29602 extern "C"
29603 #endif
29604 char acl_get_file ();
29605 int
29606 main ()
29607 {
29608 return acl_get_file ();
29609   ;
29610   return 0;
29611 }
29612 _ACEOF
29613 if ac_fn_c_try_link "$LINENO"; then :
29614   ac_cv_lib_acl_acl_get_file=yes
29615 else
29616   ac_cv_lib_acl_acl_get_file=no
29617 fi
29618 rm -f core conftest.err conftest.$ac_objext \
29619     conftest$ac_exeext conftest.$ac_ext
29620 LIBS=$ac_check_lib_save_LIBS
29621 fi
29622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29623 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29624 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29625
29626              have_acl=yes
29627              if test $have_afs = yes; then
29628                                                                 if test -d /usr/lib64/; then
29629                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29630                 else
29631                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
29632                 fi
29633              else
29634                 FDLIBS="-lacl $FDLIBS"
29635              fi
29636
29637
29638 fi
29639
29640    fi
29641
29642                if test $have_acl = no -a \
29643            x${HAVE_OSF1_OS_TRUE} = x; then
29644       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29645 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29646 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29647   $as_echo_n "(cached) " >&6
29648 else
29649   ac_check_lib_save_LIBS=$LIBS
29650 LIBS="-lpacl  $LIBS"
29651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29652 /* end confdefs.h.  */
29653
29654 /* Override any GCC internal prototype to avoid an error.
29655    Use char because int might match the return type of a GCC
29656    builtin and then its argument prototype would still apply.  */
29657 #ifdef __cplusplus
29658 extern "C"
29659 #endif
29660 char acl_get_file ();
29661 int
29662 main ()
29663 {
29664 return acl_get_file ();
29665   ;
29666   return 0;
29667 }
29668 _ACEOF
29669 if ac_fn_c_try_link "$LINENO"; then :
29670   ac_cv_lib_pacl_acl_get_file=yes
29671 else
29672   ac_cv_lib_pacl_acl_get_file=no
29673 fi
29674 rm -f core conftest.err conftest.$ac_objext \
29675     conftest$ac_exeext conftest.$ac_ext
29676 LIBS=$ac_check_lib_save_LIBS
29677 fi
29678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29679 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29680 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29681
29682              have_acl=yes
29683              FDLIBS="-lpacl $FDLIBS"
29684
29685
29686 fi
29687
29688
29689       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29690 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29691       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29692       if test $? = 0; then
29693
29694 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29695
29696          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29697 $as_echo "yes" >&6; }
29698       else
29699          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29700 $as_echo "no" >&6; }
29701       fi
29702    fi
29703
29704             if test $have_acl = yes -a \
29705            x${HAVE_DARWIN_OS_TRUE} = x; then
29706       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29707 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29708       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29709       if test $? = 0; then
29710
29711 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29712
29713          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29714 $as_echo "yes" >&6; }
29715       else
29716          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29717 $as_echo "no" >&6; }
29718       fi
29719    fi
29720
29721             if test $have_acl = yes -a \
29722            x${HAVE_FREEBSD_OS_TRUE} = x; then
29723       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29724 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29725       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29726       if test $? = 0; then
29727
29728 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29729
29730          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29731 $as_echo "yes" >&6; }
29732       else
29733          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29734 $as_echo "no" >&6; }
29735       fi
29736    fi
29737
29738             if test $have_acl = no -a \
29739            x${HAVE_SUN_OS_TRUE} = x; then
29740       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29741 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29742 if ${ac_cv_lib_sec_acltotext+:} false; then :
29743   $as_echo_n "(cached) " >&6
29744 else
29745   ac_check_lib_save_LIBS=$LIBS
29746 LIBS="-lsec  $LIBS"
29747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29748 /* end confdefs.h.  */
29749
29750 /* Override any GCC internal prototype to avoid an error.
29751    Use char because int might match the return type of a GCC
29752    builtin and then its argument prototype would still apply.  */
29753 #ifdef __cplusplus
29754 extern "C"
29755 #endif
29756 char acltotext ();
29757 int
29758 main ()
29759 {
29760 return acltotext ();
29761   ;
29762   return 0;
29763 }
29764 _ACEOF
29765 if ac_fn_c_try_link "$LINENO"; then :
29766   ac_cv_lib_sec_acltotext=yes
29767 else
29768   ac_cv_lib_sec_acltotext=no
29769 fi
29770 rm -f core conftest.err conftest.$ac_objext \
29771     conftest$ac_exeext conftest.$ac_ext
29772 LIBS=$ac_check_lib_save_LIBS
29773 fi
29774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29775 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29776 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29777
29778              have_acl=yes
29779              FDLIBS="-lsec $FDLIBS"
29780
29781              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29782 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29783 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29784   $as_echo_n "(cached) " >&6
29785 else
29786   ac_check_lib_save_LIBS=$LIBS
29787 LIBS="-lsec  $LIBS"
29788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29789 /* end confdefs.h.  */
29790
29791 /* Override any GCC internal prototype to avoid an error.
29792    Use char because int might match the return type of a GCC
29793    builtin and then its argument prototype would still apply.  */
29794 #ifdef __cplusplus
29795 extern "C"
29796 #endif
29797 char acl_totext ();
29798 int
29799 main ()
29800 {
29801 return acl_totext ();
29802   ;
29803   return 0;
29804 }
29805 _ACEOF
29806 if ac_fn_c_try_link "$LINENO"; then :
29807   ac_cv_lib_sec_acl_totext=yes
29808 else
29809   ac_cv_lib_sec_acl_totext=no
29810 fi
29811 rm -f core conftest.err conftest.$ac_objext \
29812     conftest$ac_exeext conftest.$ac_ext
29813 LIBS=$ac_check_lib_save_LIBS
29814 fi
29815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29816 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29817 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29818
29819                     have_extended_acl=yes
29820
29821
29822 fi
29823
29824
29825
29826 fi
29827
29828    fi
29829
29830             if test $have_acl = no -a \
29831            x${HAVE_AIX_OS_TRUE} = x; then
29832       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29833 if test "x$ac_cv_func_acl_get" = xyes; then :
29834
29835              have_acl=yes
29836
29837              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29838 if test "x$ac_cv_func_aclx_get" = xyes; then :
29839
29840                     have_extended_acl=yes
29841
29842
29843 fi
29844
29845
29846
29847 fi
29848
29849    fi
29850
29851    if test x$support_acl = xyes -a $have_acl != yes; then
29852       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29853   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29854    else
29855       if test $have_acl = yes; then
29856
29857 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29858
29859       fi
29860
29861       if test $have_extended_acl = yes; then
29862
29863 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29864
29865       fi
29866    fi
29867 fi
29868
29869 support_xattr=auto
29870 # Check whether --enable-xattr was given.
29871 if test "${enable_xattr+set}" = set; then :
29872   enableval=$enable_xattr;
29873        if test x$enableval = xyes; then
29874           support_xattr=yes
29875        elif test x$enableval = xno; then
29876           support_xattr=no
29877        fi
29878
29879
29880 fi
29881
29882
29883 have_xattr=no
29884 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29885                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29886            x${HAVE_NETBSD_OS_TRUE} = x -o \
29887            x${HAVE_OPENBSD_OS_TRUE} = x; then
29888       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29889 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29890
29891 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29892
29893 fi
29894
29895
29896       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29897 if test "x$ac_cv_header_libutil_h" = xyes; then :
29898
29899 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29900
29901 fi
29902
29903
29904       for ac_func in extattr_get_link extattr_set_link extattr_list_link
29905 do :
29906   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29907 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29908 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29909   cat >>confdefs.h <<_ACEOF
29910 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29911 _ACEOF
29912
29913              have_xattr=yes
29914
29915 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29916
29917
29918 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29919
29920
29921 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29922
29923
29924
29925 fi
29926 done
29927
29928
29929       if test $have_xattr = no; then
29930          for ac_func in extattr_get_file extattr_set_file extattr_list_file
29931 do :
29932   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29933 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29934 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29935   cat >>confdefs.h <<_ACEOF
29936 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29937 _ACEOF
29938
29939                 have_xattr=yes
29940
29941 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29942
29943
29944 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29945
29946
29947 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29948
29949
29950
29951 fi
29952 done
29953
29954       fi
29955
29956       if test $have_xattr = yes; then
29957          have_extattr_string_in_libc=no
29958          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29959 do :
29960   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29961 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29962 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29963   cat >>confdefs.h <<_ACEOF
29964 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29965 _ACEOF
29966
29967                 have_extattr_string_in_libc=yes
29968
29969 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29970
29971
29972 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29973
29974
29975
29976 fi
29977 done
29978
29979
29980                                  if test $have_extattr_string_in_libc = no; then
29981             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29982 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29983 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29984   $as_echo_n "(cached) " >&6
29985 else
29986   ac_check_lib_save_LIBS=$LIBS
29987 LIBS="-lutil  $LIBS"
29988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29989 /* end confdefs.h.  */
29990
29991 /* Override any GCC internal prototype to avoid an error.
29992    Use char because int might match the return type of a GCC
29993    builtin and then its argument prototype would still apply.  */
29994 #ifdef __cplusplus
29995 extern "C"
29996 #endif
29997 char extattr_namespace_to_string extattr_string_to_namespace ();
29998 int
29999 main ()
30000 {
30001 return extattr_namespace_to_string extattr_string_to_namespace ();
30002   ;
30003   return 0;
30004 }
30005 _ACEOF
30006 if ac_fn_c_try_link "$LINENO"; then :
30007   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
30008 else
30009   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
30010 fi
30011 rm -f core conftest.err conftest.$ac_objext \
30012     conftest$ac_exeext conftest.$ac_ext
30013 LIBS=$ac_check_lib_save_LIBS
30014 fi
30015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
30016 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
30017 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
30018
30019
30020 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30021
30022
30023 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30024
30025                    FDLIBS="-lutil $FDLIBS"
30026
30027
30028 fi
30029
30030          fi
30031       fi
30032    fi
30033
30034                if test $have_xattr = no -a \
30035            x${HAVE_AIX_OS_TRUE} = x; then
30036       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30037 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30038
30039 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30040
30041 fi
30042
30043
30044       for ac_func in llistea lgetea lsetea
30045 do :
30046   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30047 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30048 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30049   cat >>confdefs.h <<_ACEOF
30050 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30051 _ACEOF
30052
30053              have_xattr=yes
30054
30055 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30056
30057
30058 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30059
30060
30061 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30062
30063
30064
30065 fi
30066 done
30067
30068
30069       if test $have_xattr = no; then
30070          for ac_func in listea getea setea
30071 do :
30072   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30073 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30074 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30075   cat >>confdefs.h <<_ACEOF
30076 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30077 _ACEOF
30078
30079                 have_xattr=yes
30080
30081 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30082
30083
30084 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30085
30086
30087 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30088
30089
30090
30091 fi
30092 done
30093
30094       fi
30095    fi
30096
30097                if test $have_xattr = no -a \
30098            x${HAVE_OSF1_OS_TRUE} = x; then
30099       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30100 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30101
30102 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30103
30104 fi
30105
30106
30107       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30108 do :
30109   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30110 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30111 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30112   cat >>confdefs.h <<_ACEOF
30113 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30114 _ACEOF
30115
30116              have_xattr=yes
30117
30118 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30119
30120
30121 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30122
30123
30124 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30125
30126
30127 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30128
30129
30130 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30131
30132
30133
30134 fi
30135 done
30136
30137    fi
30138
30139                if test $have_xattr = no -a \
30140            x${HAVE_SUN_OS_TRUE} = x; then
30141       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30142 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30143
30144 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30145
30146 fi
30147
30148
30149       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30150 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30151
30152 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30153
30154 fi
30155
30156
30157       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30158 if test "x$ac_cv_header_attr_h" = xyes; then :
30159
30160 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30161
30162 fi
30163
30164
30165
30166       for ac_func in openat fstatat unlinkat fchownat futimesat
30167 do :
30168   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30169 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30170 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30171   cat >>confdefs.h <<_ACEOF
30172 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30173 _ACEOF
30174
30175              have_xattr=yes
30176
30177 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30178
30179
30180 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30181
30182
30183 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30184
30185
30186 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30187
30188
30189 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30190
30191
30192
30193 fi
30194 done
30195
30196
30197       if test $have_xattr = yes; then
30198          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30199 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30200 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30201   $as_echo_n "(cached) " >&6
30202 else
30203   ac_check_lib_save_LIBS=$LIBS
30204 LIBS="-lnvpair  $LIBS"
30205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30206 /* end confdefs.h.  */
30207
30208 /* Override any GCC internal prototype to avoid an error.
30209    Use char because int might match the return type of a GCC
30210    builtin and then its argument prototype would still apply.  */
30211 #ifdef __cplusplus
30212 extern "C"
30213 #endif
30214 char nvlist_next_nvpair ();
30215 int
30216 main ()
30217 {
30218 return nvlist_next_nvpair ();
30219   ;
30220   return 0;
30221 }
30222 _ACEOF
30223 if ac_fn_c_try_link "$LINENO"; then :
30224   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30225 else
30226   ac_cv_lib_nvpair_nvlist_next_nvpair=no
30227 fi
30228 rm -f core conftest.err conftest.$ac_objext \
30229     conftest$ac_exeext conftest.$ac_ext
30230 LIBS=$ac_check_lib_save_LIBS
30231 fi
30232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30233 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30234 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30235
30236
30237 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30238
30239                 FDLIBS="-lnvpair $FDLIBS"
30240
30241
30242 fi
30243
30244       fi
30245    fi
30246
30247             if test $have_xattr = no; then
30248       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30249 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30250
30251 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30252
30253 fi
30254
30255
30256       for ac_func in llistxattr lgetxattr lsetxattr
30257 do :
30258   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30259 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30260 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30261   cat >>confdefs.h <<_ACEOF
30262 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30263 _ACEOF
30264
30265              have_xattr=yes
30266
30267 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30268
30269
30270 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30271
30272
30273 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30274
30275
30276
30277 fi
30278 done
30279
30280
30281       if test $have_xattr = no; then
30282          for ac_func in listxattr getxattr setxattr
30283 do :
30284   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30285 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30286 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30287   cat >>confdefs.h <<_ACEOF
30288 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30289 _ACEOF
30290
30291                 have_xattr=yes
30292
30293 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30294
30295
30296 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30297
30298
30299 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30300
30301
30302
30303 fi
30304 done
30305
30306       fi
30307    fi
30308
30309    if test x$support_xattr = xyes -a $have_xattr != yes; then
30310       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30311   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30312    else
30313       if test $have_xattr = yes; then
30314
30315 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30316
30317       fi
30318    fi
30319 fi
30320
30321 PTHREAD_LIB=""
30322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30323 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30324 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30325   $as_echo_n "(cached) " >&6
30326 else
30327   ac_check_lib_save_LIBS=$LIBS
30328 LIBS="-lpthread  $LIBS"
30329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30330 /* end confdefs.h.  */
30331
30332 /* Override any GCC internal prototype to avoid an error.
30333    Use char because int might match the return type of a GCC
30334    builtin and then its argument prototype would still apply.  */
30335 #ifdef __cplusplus
30336 extern "C"
30337 #endif
30338 char pthread_create ();
30339 int
30340 main ()
30341 {
30342 return pthread_create ();
30343   ;
30344   return 0;
30345 }
30346 _ACEOF
30347 if ac_fn_c_try_link "$LINENO"; then :
30348   ac_cv_lib_pthread_pthread_create=yes
30349 else
30350   ac_cv_lib_pthread_pthread_create=no
30351 fi
30352 rm -f core conftest.err conftest.$ac_objext \
30353     conftest$ac_exeext conftest.$ac_ext
30354 LIBS=$ac_check_lib_save_LIBS
30355 fi
30356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30357 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30358 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30359   PTHREAD_LIB="-lpthread"
30360 else
30361
30362        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30363 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30364 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30365   $as_echo_n "(cached) " >&6
30366 else
30367   ac_check_lib_save_LIBS=$LIBS
30368 LIBS="-lpthreads  $LIBS"
30369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30370 /* end confdefs.h.  */
30371
30372 /* Override any GCC internal prototype to avoid an error.
30373    Use char because int might match the return type of a GCC
30374    builtin and then its argument prototype would still apply.  */
30375 #ifdef __cplusplus
30376 extern "C"
30377 #endif
30378 char pthread_create ();
30379 int
30380 main ()
30381 {
30382 return pthread_create ();
30383   ;
30384   return 0;
30385 }
30386 _ACEOF
30387 if ac_fn_c_try_link "$LINENO"; then :
30388   ac_cv_lib_pthreads_pthread_create=yes
30389 else
30390   ac_cv_lib_pthreads_pthread_create=no
30391 fi
30392 rm -f core conftest.err conftest.$ac_objext \
30393     conftest$ac_exeext conftest.$ac_ext
30394 LIBS=$ac_check_lib_save_LIBS
30395 fi
30396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30397 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30398 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30399   PTHREAD_LIB="-lpthreads"
30400 else
30401
30402               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30403 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30404 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30405   $as_echo_n "(cached) " >&6
30406 else
30407   ac_check_lib_save_LIBS=$LIBS
30408 LIBS="-lc_r  $LIBS"
30409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30410 /* end confdefs.h.  */
30411
30412 /* Override any GCC internal prototype to avoid an error.
30413    Use char because int might match the return type of a GCC
30414    builtin and then its argument prototype would still apply.  */
30415 #ifdef __cplusplus
30416 extern "C"
30417 #endif
30418 char pthread_create ();
30419 int
30420 main ()
30421 {
30422 return pthread_create ();
30423   ;
30424   return 0;
30425 }
30426 _ACEOF
30427 if ac_fn_c_try_link "$LINENO"; then :
30428   ac_cv_lib_c_r_pthread_create=yes
30429 else
30430   ac_cv_lib_c_r_pthread_create=no
30431 fi
30432 rm -f core conftest.err conftest.$ac_objext \
30433     conftest$ac_exeext conftest.$ac_ext
30434 LIBS=$ac_check_lib_save_LIBS
30435 fi
30436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30437 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30438 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30439   PTHREAD_LIB="-lc_r"
30440 else
30441
30442                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30443 if test "x$ac_cv_func_pthread_create" = xyes; then :
30444
30445 fi
30446
30447
30448
30449 fi
30450
30451
30452
30453 fi
30454
30455
30456
30457 fi
30458
30459
30460 for ac_header in sys/prctl.h sys/capability.h
30461 do :
30462   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30463 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30464 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30465   cat >>confdefs.h <<_ACEOF
30466 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30467 _ACEOF
30468
30469 fi
30470
30471 done
30472
30473 for ac_func in prctl setreuid
30474 do :
30475   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30476 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30477 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30478   cat >>confdefs.h <<_ACEOF
30479 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30480 _ACEOF
30481
30482 fi
30483 done
30484
30485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30486 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30487 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30488   $as_echo_n "(cached) " >&6
30489 else
30490   ac_check_lib_save_LIBS=$LIBS
30491 LIBS="-lcap  $LIBS"
30492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30493 /* end confdefs.h.  */
30494
30495 /* Override any GCC internal prototype to avoid an error.
30496    Use char because int might match the return type of a GCC
30497    builtin and then its argument prototype would still apply.  */
30498 #ifdef __cplusplus
30499 extern "C"
30500 #endif
30501 char cap_set_proc ();
30502 int
30503 main ()
30504 {
30505 return cap_set_proc ();
30506   ;
30507   return 0;
30508 }
30509 _ACEOF
30510 if ac_fn_c_try_link "$LINENO"; then :
30511   ac_cv_lib_cap_cap_set_proc=yes
30512 else
30513   ac_cv_lib_cap_cap_set_proc=no
30514 fi
30515 rm -f core conftest.err conftest.$ac_objext \
30516     conftest$ac_exeext conftest.$ac_ext
30517 LIBS=$ac_check_lib_save_LIBS
30518 fi
30519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30520 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30521 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30522   CAP_LIBS="-lcap"
30523 else
30524   CAP_LIBS=
30525 fi
30526
30527 if test x$CAP_LIBS = x-lcap; then
30528
30529 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30530
30531 fi
30532
30533
30534
30535 $as_echo "#define FDLIBS 1" >>confdefs.h
30536
30537
30538 CFLAGS=${CFLAGS--O}
30539
30540 if test x$have_gcc = xyes ; then
30541    CPPFLAGS="$CPPFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30542    CFLAGS="$CFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30543 fi
30544 LDFLAGS=${LDFLAGS--O}
30545 CPPFLAGS="$CPPFLAGS"
30546 CFLAGS="$CFLAGS"
30547
30548
30549
30550
30551
30552
30553
30554
30555
30556
30557
30558
30559
30560
30561
30562 OBJLIST=
30563
30564
30565 lld="lld"
30566 llu="llu"
30567
30568 WCFLAGS=
30569 WLDFLAGS=
30570
30571 PSCMD="ps -e"
30572 WIN32=
30573 MACOSX=
30574 COMPRESS_MANPAGES=yes
30575
30576 case "$DISTNAME" in
30577 aix)
30578    DISTVER=`uname -r`
30579    PSCMD="ps -e -o pid,comm"
30580    PFILES="${PFILES} platforms/aix/Makefile"
30581    TAPEDRIVE="/dev/rmt0.1"
30582   ;;
30583 alpha)
30584    DISTVER=`uname -r`
30585    PTHREAD_LIB="-lpthread -lexc"
30586    if test "${CC}" = "gcc" ; then
30587       lld="lld"
30588       llu="llu"
30589    else
30590       lld="ld"
30591       llu="lu"
30592    fi
30593    TAPEDRIVE="/dev/nrmt0"
30594   ;;
30595 bsdi)
30596    DISTVER=`uname -a |awk '{print $3}'`
30597    TAPEDRIVE="/dev/nrmt0"
30598    PTHREAD_LIB="-pthread"
30599    CFLAGS="${CFLAGS} -pthread"
30600    PSCMD="ps -ax -o pid,command"
30601    lld="qd"
30602    llu="qu"
30603    PFILES="${PFILES} \
30604        platforms/bsdi/Makefile \
30605        platforms/bsdi/bacula-fd \
30606        platforms/bsdi/bacula-sd \
30607        platforms/bsdi/bacula-dir"
30608    largefile_support="yes"
30609   ;;
30610 cygwin)
30611    DISTVER=`uname -a |awk '{print $3}'`
30612    TAPEDRIVE="/dev/nrst0"
30613    WIN32=win32
30614    WCFLAGS="-mwindows"
30615    WLDFLAGS="-mwindows"
30616   ;;
30617 darwin)
30618    DISTVER=`uname -r`
30619    TAPEDRIVE="/dev/nst0"
30620    PSCMD="ps -e -o pid,command"
30621    MACOSX=macosx
30622    PFILES="${PFILES} \
30623       platforms/darwin/Makefile"
30624   ;;
30625 osx)
30626    DISTVER=`uname -r`
30627    TAPEDRIVE="/dev/nst0"
30628    PSCMD="ps -e -o pid,command"
30629    MACOSX=macosx
30630    PFILES="${PFILES} \
30631       platforms/osx/Makefile"
30632   ;;
30633 debian)
30634    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30635       DISTNAME="ubuntu"
30636    fi
30637    DISTVER=`cat /etc/debian_version`
30638    if test -f /etc/lsb-release ; then
30639       . /etc/lsb-release
30640       if test "x$DISTRIB_ID" != "x" ; then
30641          DISTNAME=$DISTRIB_ID
30642       fi
30643       if test "x$DISTRIB_RELEASE" != "x" ; then
30644          DISTVER=$DISTRIB_RELEASE
30645       fi
30646    fi
30647    if test "$DISTNAME" = "Ubuntu" ; then
30648       DISTNAME="ubuntu"
30649    fi
30650    TAPEDRIVE="/dev/nst0"
30651    PSCMD="ps -e -o pid,command"
30652    if test "$DISTNAME" = "ubuntu" ; then
30653       PFILES="${PFILES} \
30654          platforms/ubuntu/Makefile \
30655          platforms/ubuntu/bacula-fd \
30656          platforms/ubuntu/bacula-sd \
30657          platforms/ubuntu/bacula-dir"
30658    else
30659       PFILES="${PFILES} \
30660          platforms/debian/Makefile \
30661          platforms/debian/bacula-fd \
30662          platforms/debian/bacula-sd \
30663          platforms/debian/bacula-dir"
30664    fi
30665   ;;
30666 freebsd)
30667    DISTVER=`uname -a |awk '{print $3}'`
30668    VER=`echo $DISTVER | cut -c 1`
30669    if test x$VER = x4 ; then
30670       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30671       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30672    fi
30673    lld="qd"
30674    llu="qu"
30675    TAPEDRIVE="/dev/nrsa0"
30676    PSCMD="ps -ax -o pid,command"
30677    PFILES="${PFILES} \
30678        platforms/freebsd/Makefile \
30679        platforms/freebsd/bacula-fd \
30680        platforms/freebsd/bacula-sd \
30681        platforms/freebsd/bacula-dir"
30682    largefile_support="yes"
30683   ;;
30684 hurd)
30685    DISTVER=`uname -r`
30686    TAPEDRIVE="/dev/nst0"
30687    PSCMD="ps -e -o pid,command"
30688    PFILES="${PFILES} \
30689        platforms/hurd/Makefile \
30690        platforms/hurd/bacula-fd \
30691        platforms/hurd/bacula-sd \
30692        platforms/hurd/bacula-dir"
30693   ;;
30694 hpux)
30695    PSCMD="UNIX95=1; ps -e -o pid,comm"
30696    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30697    DISTVER=`uname -r`
30698    TAPEDRIVE="/dev/rmt/0hnb"
30699    PTHREAD_LIB="-lpthread"
30700    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30701
30702   ;;
30703 irix)
30704    DISTVER=`uname -r`
30705    TAPEDRIVE="/dev/rmt/0cbn"
30706    PSCMD="ps -e -o pid,comm"
30707    PFILES="${PFILES} \
30708        platforms/irix/Makefile \
30709        platforms/irix/bacula-fd \
30710        platforms/irix/bacula-sd \
30711        platforms/irix/bacula-dir"
30712   ;;
30713 netbsd)
30714    DISTVER=`uname -a |awk '{print $3}'`
30715    lld="qd"
30716    llu="qu"
30717    TAPEDRIVE="/dev/nrst0"
30718    PSCMD="ps -ax -o pid,command"
30719    PTHREAD_LIB="-pthread"
30720    CFLAGS="${CFLAGS} -pthread"
30721   ;;
30722 openbsd)
30723    DISTVER=`uname -a |awk '{print $3}'`
30724    lld="qd"
30725    llu="qu"
30726    TAPEDRIVE="/dev/nrst0"
30727    PSCMD="ps -ax -o pid,command"
30728    PTHREAD_LIB="-pthread"
30729    CFLAGS="${CFLAGS} -pthread"
30730    PFILES="${PFILES} \
30731        platforms/openbsd/Makefile \
30732        platforms/openbsd/bacula-fd \
30733        platforms/openbsd/bacula-sd \
30734        platforms/openbsd/bacula-dir"
30735   ;;
30736 redhat)
30737    if test -f /etc/whitebox-release ; then
30738       f=/etc/whitebox-release
30739    else
30740       f=/etc/redhat-release
30741    fi
30742    if test `cat $f | grep release |\
30743          cut -f 3 -d ' '`x = "Enterprise"x ; then
30744       DISTVER="Enterprise "`cat $f | grep release |\
30745           cut -f 6 -d ' '`
30746    else
30747        DISTVER=`cat /etc/redhat-release | grep release |\
30748            cut -f 5 -d ' '`
30749    fi
30750    TAPEDRIVE="/dev/nst0"
30751    PSCMD="ps -e -o pid,command"
30752    PFILES="${PFILES} \
30753        platforms/redhat/Makefile \
30754        platforms/redhat/bacula-fd \
30755        platforms/redhat/bacula-sd \
30756        platforms/redhat/bacula-dir
30757        "
30758   ;;
30759 mandrake)
30760    DISTVER=`cat /etc/mandrake-release | grep release |\
30761       cut -f 5 -d ' '`
30762    TAPEDRIVE="/dev/nst0"
30763    PSCMD="ps -e -o pid,command"
30764    PFILES="${PFILES} \
30765        platforms/mandrake/Makefile \
30766        platforms/mandrake/bacula-fd \
30767        platforms/mandrake/bacula-sd \
30768        platforms/mandrake/bacula-dir \
30769        "
30770   ;;
30771 gentoo)
30772    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30773    TAPEDRIVE="/dev/nst0"
30774    PSCMD="ps -e -o pid,command"
30775    PFILES="${PFILES} \
30776        platforms/gentoo/Makefile \
30777     platforms/gentoo/bacula-init \
30778        platforms/gentoo/bacula-fd \
30779        platforms/gentoo/bacula-sd \
30780        platforms/gentoo/bacula-dir"
30781   ;;
30782 slackware)
30783    DISTVER=`cat /etc/slackware-version`
30784    TAPEDRIVE="/dev/nst0"
30785    PSCMD="ps -e -o pid,command"
30786    PFILES="${PFILES} \
30787        platforms/slackware/Makefile \
30788        platforms/slackware/rc.bacula-fd \
30789        platforms/slackware/rc.bacula-sd \
30790        platforms/slackware/rc.bacula-dir\
30791        platforms/slackware/functions.bacula"
30792   ;;
30793 solaris)
30794    DISTVER=`uname -r`
30795    TAPEDRIVE="/dev/rmt/0cbn"
30796    PSCMD="ps -e -o pid,comm"
30797    PFILES="${PFILES} \
30798        platforms/solaris/Makefile \
30799        platforms/solaris/bacula-fd \
30800        platforms/solaris/bacula-sd \
30801        platforms/solaris/bacula-dir"
30802    COMPRESS_MANPAGES=
30803    case ${DISTVER} in
30804    5.5|5.6)
30805       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30806
30807       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30808
30809       ;;
30810    5.7|5.8)
30811       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30812
30813       ;;
30814    *)
30815       ;;
30816    esac
30817    LIBS="$LIBS -lresolv -lrt"
30818   ;;
30819 suse)
30820    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30821        cut -f 3 -d ' '`
30822    TAPEDRIVE="/dev/nst0"
30823    PSCMD="ps -e -o pid,command"
30824    PFILES="${PFILES} \
30825        platforms/suse/Makefile \
30826        platforms/suse/bacula-fd \
30827        platforms/suse/bacula-sd \
30828        platforms/suse/bacula-dir \
30829        platforms/suse/bacula"
30830   ;;
30831 suse5)
30832    DISTNAME=suse
30833    DISTVER=5.x
30834    TAPEDRIVE="/dev/nst0"
30835    PSCMD="ps -e -o pid,command"
30836    PFILES="${PFILES} \
30837        platforms/suse/Makefile \
30838        platforms/suse/bacula-fd \
30839        platforms/suse/bacula-sd \
30840        platforms/suse/bacula-dir"
30841   ;;
30842 unknown)
30843    DISTVER=unknown
30844    TAPEDRIVE="/dev/nst0"
30845   ;;
30846 *)
30847   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30848   ;;
30849 esac
30850
30851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30852 $as_echo_n "checking for systemd support... " >&6; }
30853
30854 # Check whether --with-systemd was given.
30855 if test "${with_systemd+set}" = set; then :
30856   withval=$with_systemd;
30857        if test "$withval" != "no"; then
30858            if test "$withval" = "yes"; then
30859                SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30860            else
30861                SYSTEMD_UNITDIR="${withval}"
30862            fi
30863
30864            PFILES="${PFILES} \
30865                    platforms/systemd/Makefile \
30866                    platforms/systemd/bacula-dir.service \
30867                    platforms/systemd/bacula-fd.service \
30868                    platforms/systemd/bacula-sd.service"
30869
30870 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30871
30872            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30873 $as_echo "yes" >&6; }
30874            support_systemd="yes"
30875        else
30876            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30877 $as_echo "no" >&6; }
30878            support_systemd="no"
30879        fi
30880
30881 else
30882
30883        support_systemd="no"
30884        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30885 $as_echo "no" >&6; }
30886
30887
30888 fi
30889
30890
30891
30892
30893
30894 LIBS="$PTHREAD_LIB $LIBS"
30895
30896 cat >>confdefs.h <<_ACEOF
30897 #define lld "$lld"
30898 _ACEOF
30899
30900 cat >>confdefs.h <<_ACEOF
30901 #define llu "$llu"
30902 _ACEOF
30903
30904
30905
30906
30907
30908
30909
30910
30911
30912 MCOMMON=./autoconf/Make.common
30913
30914
30915 if test "x${subsysdir}" = "x${sbindir}" ; then
30916    echo " "
30917    echo " "
30918    echo "You have set both --sbindir and --with-subsys-dir"
30919    echo "  equal to: ${subsysdir} "
30920    echo "This is not permitted. Please reconfigure."
30921    echo " "
30922    echo "Aborting configuration ..."
30923    echo " "
30924    echo " "
30925    exit 1
30926 fi
30927
30928
30929 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/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 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 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"
30930
30931 ac_config_commands="$ac_config_commands default"
30932
30933 cat >confcache <<\_ACEOF
30934 # This file is a shell script that caches the results of configure
30935 # tests run on this system so they can be shared between configure
30936 # scripts and configure runs, see configure's option --config-cache.
30937 # It is not useful on other systems.  If it contains results you don't
30938 # want to keep, you may remove or edit it.
30939 #
30940 # config.status only pays attention to the cache file if you give it
30941 # the --recheck option to rerun configure.
30942 #
30943 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30944 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30945 # following values.
30946
30947 _ACEOF
30948
30949 # The following way of writing the cache mishandles newlines in values,
30950 # but we know of no workaround that is simple, portable, and efficient.
30951 # So, we kill variables containing newlines.
30952 # Ultrix sh set writes to stderr and can't be redirected directly,
30953 # and sets the high bit in the cache file unless we assign to the vars.
30954 (
30955   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30956     eval ac_val=\$$ac_var
30957     case $ac_val in #(
30958     *${as_nl}*)
30959       case $ac_var in #(
30960       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30961 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30962       esac
30963       case $ac_var in #(
30964       _ | IFS | as_nl) ;; #(
30965       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30966       *) { eval $ac_var=; unset $ac_var;} ;;
30967       esac ;;
30968     esac
30969   done
30970
30971   (set) 2>&1 |
30972     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30973     *${as_nl}ac_space=\ *)
30974       # `set' does not quote correctly, so add quotes: double-quote
30975       # substitution turns \\\\ into \\, and sed turns \\ into \.
30976       sed -n \
30977         "s/'/'\\\\''/g;
30978           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30979       ;; #(
30980     *)
30981       # `set' quotes correctly as required by POSIX, so do not add quotes.
30982       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30983       ;;
30984     esac |
30985     sort
30986 ) |
30987   sed '
30988      /^ac_cv_env_/b end
30989      t clear
30990      :clear
30991      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30992      t end
30993      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30994      :end' >>confcache
30995 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30996   if test -w "$cache_file"; then
30997     if test "x$cache_file" != "x/dev/null"; then
30998       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30999 $as_echo "$as_me: updating cache $cache_file" >&6;}
31000       if test ! -f "$cache_file" || test -h "$cache_file"; then
31001         cat confcache >"$cache_file"
31002       else
31003         case $cache_file in #(
31004         */* | ?:*)
31005           mv -f confcache "$cache_file"$$ &&
31006           mv -f "$cache_file"$$ "$cache_file" ;; #(
31007         *)
31008           mv -f confcache "$cache_file" ;;
31009         esac
31010       fi
31011     fi
31012   else
31013     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31014 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31015   fi
31016 fi
31017 rm -f confcache
31018
31019 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31020 # Let make expand exec_prefix.
31021 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31022
31023 DEFS=-DHAVE_CONFIG_H
31024
31025 ac_libobjs=
31026 ac_ltlibobjs=
31027 U=
31028 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31029   # 1. Remove the extension, and $U if already installed.
31030   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31031   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31032   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
31033   #    will be set to the directory where LIBOBJS objects are built.
31034   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31035   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31036 done
31037 LIBOBJS=$ac_libobjs
31038
31039 LTLIBOBJS=$ac_ltlibobjs
31040
31041
31042
31043
31044 : "${CONFIG_STATUS=./config.status}"
31045 ac_write_fail=0
31046 ac_clean_files_save=$ac_clean_files
31047 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31048 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31049 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31050 as_write_fail=0
31051 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31052 #! $SHELL
31053 # Generated by $as_me.
31054 # Run this file to recreate the current configuration.
31055 # Compiler output produced by configure, useful for debugging
31056 # configure, is in config.log if it exists.
31057
31058 debug=false
31059 ac_cs_recheck=false
31060 ac_cs_silent=false
31061
31062 SHELL=\${CONFIG_SHELL-$SHELL}
31063 export SHELL
31064 _ASEOF
31065 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31066 ## -------------------- ##
31067 ## M4sh Initialization. ##
31068 ## -------------------- ##
31069
31070 # Be more Bourne compatible
31071 DUALCASE=1; export DUALCASE # for MKS sh
31072 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31073   emulate sh
31074   NULLCMD=:
31075   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31076   # is contrary to our usage.  Disable this feature.
31077   alias -g '${1+"$@"}'='"$@"'
31078   setopt NO_GLOB_SUBST
31079 else
31080   case `(set -o) 2>/dev/null` in #(
31081   *posix*) :
31082     set -o posix ;; #(
31083   *) :
31084      ;;
31085 esac
31086 fi
31087
31088
31089 as_nl='
31090 '
31091 export as_nl
31092 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31093 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31094 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31095 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31096 # Prefer a ksh shell builtin over an external printf program on Solaris,
31097 # but without wasting forks for bash or zsh.
31098 if test -z "$BASH_VERSION$ZSH_VERSION" \
31099     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31100   as_echo='print -r --'
31101   as_echo_n='print -rn --'
31102 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31103   as_echo='printf %s\n'
31104   as_echo_n='printf %s'
31105 else
31106   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31107     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31108     as_echo_n='/usr/ucb/echo -n'
31109   else
31110     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31111     as_echo_n_body='eval
31112       arg=$1;
31113       case $arg in #(
31114       *"$as_nl"*)
31115         expr "X$arg" : "X\\(.*\\)$as_nl";
31116         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31117       esac;
31118       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31119     '
31120     export as_echo_n_body
31121     as_echo_n='sh -c $as_echo_n_body as_echo'
31122   fi
31123   export as_echo_body
31124   as_echo='sh -c $as_echo_body as_echo'
31125 fi
31126
31127 # The user is always right.
31128 if test "${PATH_SEPARATOR+set}" != set; then
31129   PATH_SEPARATOR=:
31130   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31131     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31132       PATH_SEPARATOR=';'
31133   }
31134 fi
31135
31136
31137 # IFS
31138 # We need space, tab and new line, in precisely that order.  Quoting is
31139 # there to prevent editors from complaining about space-tab.
31140 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31141 # splitting by setting IFS to empty value.)
31142 IFS=" ""        $as_nl"
31143
31144 # Find who we are.  Look in the path if we contain no directory separator.
31145 as_myself=
31146 case $0 in #((
31147   *[\\/]* ) as_myself=$0 ;;
31148   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31149 for as_dir in $PATH
31150 do
31151   IFS=$as_save_IFS
31152   test -z "$as_dir" && as_dir=.
31153     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31154   done
31155 IFS=$as_save_IFS
31156
31157      ;;
31158 esac
31159 # We did not find ourselves, most probably we were run as `sh COMMAND'
31160 # in which case we are not to be found in the path.
31161 if test "x$as_myself" = x; then
31162   as_myself=$0
31163 fi
31164 if test ! -f "$as_myself"; then
31165   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31166   exit 1
31167 fi
31168
31169 # Unset variables that we do not need and which cause bugs (e.g. in
31170 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31171 # suppresses any "Segmentation fault" message there.  '((' could
31172 # trigger a bug in pdksh 5.2.14.
31173 for as_var in BASH_ENV ENV MAIL MAILPATH
31174 do eval test x\${$as_var+set} = xset \
31175   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31176 done
31177 PS1='$ '
31178 PS2='> '
31179 PS4='+ '
31180
31181 # NLS nuisances.
31182 LC_ALL=C
31183 export LC_ALL
31184 LANGUAGE=C
31185 export LANGUAGE
31186
31187 # CDPATH.
31188 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31189
31190
31191 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31192 # ----------------------------------------
31193 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31194 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31195 # script with STATUS, using 1 if that was 0.
31196 as_fn_error ()
31197 {
31198   as_status=$1; test $as_status -eq 0 && as_status=1
31199   if test "$4"; then
31200     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31201     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31202   fi
31203   $as_echo "$as_me: error: $2" >&2
31204   as_fn_exit $as_status
31205 } # as_fn_error
31206
31207
31208 # as_fn_set_status STATUS
31209 # -----------------------
31210 # Set $? to STATUS, without forking.
31211 as_fn_set_status ()
31212 {
31213   return $1
31214 } # as_fn_set_status
31215
31216 # as_fn_exit STATUS
31217 # -----------------
31218 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31219 as_fn_exit ()
31220 {
31221   set +e
31222   as_fn_set_status $1
31223   exit $1
31224 } # as_fn_exit
31225
31226 # as_fn_unset VAR
31227 # ---------------
31228 # Portably unset VAR.
31229 as_fn_unset ()
31230 {
31231   { eval $1=; unset $1;}
31232 }
31233 as_unset=as_fn_unset
31234 # as_fn_append VAR VALUE
31235 # ----------------------
31236 # Append the text in VALUE to the end of the definition contained in VAR. Take
31237 # advantage of any shell optimizations that allow amortized linear growth over
31238 # repeated appends, instead of the typical quadratic growth present in naive
31239 # implementations.
31240 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31241   eval 'as_fn_append ()
31242   {
31243     eval $1+=\$2
31244   }'
31245 else
31246   as_fn_append ()
31247   {
31248     eval $1=\$$1\$2
31249   }
31250 fi # as_fn_append
31251
31252 # as_fn_arith ARG...
31253 # ------------------
31254 # Perform arithmetic evaluation on the ARGs, and store the result in the
31255 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31256 # must be portable across $(()) and expr.
31257 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31258   eval 'as_fn_arith ()
31259   {
31260     as_val=$(( $* ))
31261   }'
31262 else
31263   as_fn_arith ()
31264   {
31265     as_val=`expr "$@" || test $? -eq 1`
31266   }
31267 fi # as_fn_arith
31268
31269
31270 if expr a : '\(a\)' >/dev/null 2>&1 &&
31271    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31272   as_expr=expr
31273 else
31274   as_expr=false
31275 fi
31276
31277 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31278   as_basename=basename
31279 else
31280   as_basename=false
31281 fi
31282
31283 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31284   as_dirname=dirname
31285 else
31286   as_dirname=false
31287 fi
31288
31289 as_me=`$as_basename -- "$0" ||
31290 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31291          X"$0" : 'X\(//\)$' \| \
31292          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31293 $as_echo X/"$0" |
31294     sed '/^.*\/\([^/][^/]*\)\/*$/{
31295             s//\1/
31296             q
31297           }
31298           /^X\/\(\/\/\)$/{
31299             s//\1/
31300             q
31301           }
31302           /^X\/\(\/\).*/{
31303             s//\1/
31304             q
31305           }
31306           s/.*/./; q'`
31307
31308 # Avoid depending upon Character Ranges.
31309 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31310 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31311 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31312 as_cr_digits='0123456789'
31313 as_cr_alnum=$as_cr_Letters$as_cr_digits
31314
31315 ECHO_C= ECHO_N= ECHO_T=
31316 case `echo -n x` in #(((((
31317 -n*)
31318   case `echo 'xy\c'` in
31319   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
31320   xy)  ECHO_C='\c';;
31321   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31322        ECHO_T=' ';;
31323   esac;;
31324 *)
31325   ECHO_N='-n';;
31326 esac
31327
31328 rm -f conf$$ conf$$.exe conf$$.file
31329 if test -d conf$$.dir; then
31330   rm -f conf$$.dir/conf$$.file
31331 else
31332   rm -f conf$$.dir
31333   mkdir conf$$.dir 2>/dev/null
31334 fi
31335 if (echo >conf$$.file) 2>/dev/null; then
31336   if ln -s conf$$.file conf$$ 2>/dev/null; then
31337     as_ln_s='ln -s'
31338     # ... but there are two gotchas:
31339     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31340     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31341     # In both cases, we have to default to `cp -pR'.
31342     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31343       as_ln_s='cp -pR'
31344   elif ln conf$$.file conf$$ 2>/dev/null; then
31345     as_ln_s=ln
31346   else
31347     as_ln_s='cp -pR'
31348   fi
31349 else
31350   as_ln_s='cp -pR'
31351 fi
31352 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31353 rmdir conf$$.dir 2>/dev/null
31354
31355
31356 # as_fn_mkdir_p
31357 # -------------
31358 # Create "$as_dir" as a directory, including parents if necessary.
31359 as_fn_mkdir_p ()
31360 {
31361
31362   case $as_dir in #(
31363   -*) as_dir=./$as_dir;;
31364   esac
31365   test -d "$as_dir" || eval $as_mkdir_p || {
31366     as_dirs=
31367     while :; do
31368       case $as_dir in #(
31369       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31370       *) as_qdir=$as_dir;;
31371       esac
31372       as_dirs="'$as_qdir' $as_dirs"
31373       as_dir=`$as_dirname -- "$as_dir" ||
31374 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31375          X"$as_dir" : 'X\(//\)[^/]' \| \
31376          X"$as_dir" : 'X\(//\)$' \| \
31377          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31378 $as_echo X"$as_dir" |
31379     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31380             s//\1/
31381             q
31382           }
31383           /^X\(\/\/\)[^/].*/{
31384             s//\1/
31385             q
31386           }
31387           /^X\(\/\/\)$/{
31388             s//\1/
31389             q
31390           }
31391           /^X\(\/\).*/{
31392             s//\1/
31393             q
31394           }
31395           s/.*/./; q'`
31396       test -d "$as_dir" && break
31397     done
31398     test -z "$as_dirs" || eval "mkdir $as_dirs"
31399   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31400
31401
31402 } # as_fn_mkdir_p
31403 if mkdir -p . 2>/dev/null; then
31404   as_mkdir_p='mkdir -p "$as_dir"'
31405 else
31406   test -d ./-p && rmdir ./-p
31407   as_mkdir_p=false
31408 fi
31409
31410
31411 # as_fn_executable_p FILE
31412 # -----------------------
31413 # Test if FILE is an executable regular file.
31414 as_fn_executable_p ()
31415 {
31416   test -f "$1" && test -x "$1"
31417 } # as_fn_executable_p
31418 as_test_x='test -x'
31419 as_executable_p=as_fn_executable_p
31420
31421 # Sed expression to map a string onto a valid CPP name.
31422 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31423
31424 # Sed expression to map a string onto a valid variable name.
31425 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31426
31427
31428 exec 6>&1
31429 ## ----------------------------------- ##
31430 ## Main body of $CONFIG_STATUS script. ##
31431 ## ----------------------------------- ##
31432 _ASEOF
31433 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31434
31435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31436 # Save the log message, to keep $0 and so on meaningful, and to
31437 # report actual input values of CONFIG_FILES etc. instead of their
31438 # values after options handling.
31439 ac_log="
31440 This file was extended by bacula $as_me 7.4.1, which was
31441 generated by GNU Autoconf 2.69.  Invocation command line was
31442
31443   CONFIG_FILES    = $CONFIG_FILES
31444   CONFIG_HEADERS  = $CONFIG_HEADERS
31445   CONFIG_LINKS    = $CONFIG_LINKS
31446   CONFIG_COMMANDS = $CONFIG_COMMANDS
31447   $ $0 $@
31448
31449 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31450 "
31451
31452 _ACEOF
31453
31454 case $ac_config_files in *"
31455 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31456 esac
31457
31458 case $ac_config_headers in *"
31459 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31460 esac
31461
31462
31463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31464 # Files that config.status was made for.
31465 config_files="$ac_config_files"
31466 config_headers="$ac_config_headers"
31467 config_commands="$ac_config_commands"
31468
31469 _ACEOF
31470
31471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31472 ac_cs_usage="\
31473 \`$as_me' instantiates files and other configuration actions
31474 from templates according to the current configuration.  Unless the files
31475 and actions are specified as TAGs, all are instantiated by default.
31476
31477 Usage: $0 [OPTION]... [TAG]...
31478
31479   -h, --help       print this help, then exit
31480   -V, --version    print version number and configuration settings, then exit
31481       --config     print configuration, then exit
31482   -q, --quiet, --silent
31483                    do not print progress messages
31484   -d, --debug      don't remove temporary files
31485       --recheck    update $as_me by reconfiguring in the same conditions
31486       --file=FILE[:TEMPLATE]
31487                    instantiate the configuration file FILE
31488       --header=FILE[:TEMPLATE]
31489                    instantiate the configuration header FILE
31490
31491 Configuration files:
31492 $config_files
31493
31494 Configuration headers:
31495 $config_headers
31496
31497 Configuration commands:
31498 $config_commands
31499
31500 Report bugs to the package provider."
31501
31502 _ACEOF
31503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31504 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31505 ac_cs_version="\\
31506 bacula config.status 7.4.1
31507 configured by $0, generated by GNU Autoconf 2.69,
31508   with options \\"\$ac_cs_config\\"
31509
31510 Copyright (C) 2012 Free Software Foundation, Inc.
31511 This config.status script is free software; the Free Software Foundation
31512 gives unlimited permission to copy, distribute and modify it."
31513
31514 ac_pwd='$ac_pwd'
31515 srcdir='$srcdir'
31516 INSTALL='$INSTALL'
31517 AWK='$AWK'
31518 test -n "\$AWK" || AWK=awk
31519 _ACEOF
31520
31521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31522 # The default lists apply if the user does not specify any file.
31523 ac_need_defaults=:
31524 while test $# != 0
31525 do
31526   case $1 in
31527   --*=?*)
31528     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31529     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31530     ac_shift=:
31531     ;;
31532   --*=)
31533     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31534     ac_optarg=
31535     ac_shift=:
31536     ;;
31537   *)
31538     ac_option=$1
31539     ac_optarg=$2
31540     ac_shift=shift
31541     ;;
31542   esac
31543
31544   case $ac_option in
31545   # Handling of the options.
31546   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31547     ac_cs_recheck=: ;;
31548   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31549     $as_echo "$ac_cs_version"; exit ;;
31550   --config | --confi | --conf | --con | --co | --c )
31551     $as_echo "$ac_cs_config"; exit ;;
31552   --debug | --debu | --deb | --de | --d | -d )
31553     debug=: ;;
31554   --file | --fil | --fi | --f )
31555     $ac_shift
31556     case $ac_optarg in
31557     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31558     '') as_fn_error $? "missing file argument" ;;
31559     esac
31560     as_fn_append CONFIG_FILES " '$ac_optarg'"
31561     ac_need_defaults=false;;
31562   --header | --heade | --head | --hea )
31563     $ac_shift
31564     case $ac_optarg in
31565     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31566     esac
31567     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31568     ac_need_defaults=false;;
31569   --he | --h)
31570     # Conflict between --help and --header
31571     as_fn_error $? "ambiguous option: \`$1'
31572 Try \`$0 --help' for more information.";;
31573   --help | --hel | -h )
31574     $as_echo "$ac_cs_usage"; exit ;;
31575   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31576   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31577     ac_cs_silent=: ;;
31578
31579   # This is an error.
31580   -*) as_fn_error $? "unrecognized option: \`$1'
31581 Try \`$0 --help' for more information." ;;
31582
31583   *) as_fn_append ac_config_targets " $1"
31584      ac_need_defaults=false ;;
31585
31586   esac
31587   shift
31588 done
31589
31590 ac_configure_extra_args=
31591
31592 if $ac_cs_silent; then
31593   exec 6>/dev/null
31594   ac_configure_extra_args="$ac_configure_extra_args --silent"
31595 fi
31596
31597 _ACEOF
31598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31599 if \$ac_cs_recheck; then
31600   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31601   shift
31602   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31603   CONFIG_SHELL='$SHELL'
31604   export CONFIG_SHELL
31605   exec "\$@"
31606 fi
31607
31608 _ACEOF
31609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31610 exec 5>>config.log
31611 {
31612   echo
31613   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31614 ## Running $as_me. ##
31615 _ASBOX
31616   $as_echo "$ac_log"
31617 } >&5
31618
31619 _ACEOF
31620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31621 #
31622 # INIT-COMMANDS
31623 #
31624
31625
31626 # The HP-UX ksh and POSIX shell print the target directory to stdout
31627 # if CDPATH is set.
31628 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31629
31630 sed_quote_subst='$sed_quote_subst'
31631 double_quote_subst='$double_quote_subst'
31632 delay_variable_subst='$delay_variable_subst'
31633 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31634 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31635 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31636 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31637 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31638 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31639 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31640 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31641 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31642 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31643 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31644 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31645 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31646 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31647 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31648 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31649 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31650 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31651 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31652 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31653 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31654 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31655 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31656 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31657 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31658 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31659 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31660 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31661 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31662 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31663 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31664 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31665 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31666 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31667 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31668 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31669 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31670 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31671 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31672 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31673 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31674 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31675 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31676 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31677 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31678 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31679 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31680 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31681 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31682 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31683 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31684 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31685 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31686 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31687 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31688 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31689 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"`'
31690 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31691 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31692 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31693 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31694 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31695 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31696 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31697 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31698 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31699 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31700 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31701 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31702 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31703 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31704 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31705 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31706 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31707 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31708 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31709 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31710 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31711 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31712 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31713 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31714 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31715 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31716 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31717 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31718 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31719 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31720 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31721 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31722 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31723 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31724 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31725 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31726 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31727 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31728 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31729 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31730 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31731 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31732 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31733 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31734 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31735 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31736 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31737 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31738 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31739 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31740 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31741 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31742 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31743 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31744 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31745 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31746 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31747 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31748 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31749 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31750 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31751 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31752 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31753 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31754 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31755 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31756 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31757 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31758 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31759 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31760 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31761 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31762 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31763 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31764 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31765 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31766 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31767 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31768 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31769 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31770 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31771 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31772 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31773 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31774 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31775 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31776 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31777 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31778 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31779 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31780 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31781 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31782 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31783 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31784 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31785 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31786 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31787 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31788 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31789 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31790 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31791 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31792 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31793 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31794 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31795 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31796 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31797 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31798 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31799 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31800 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31801 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31802 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31803 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31804 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31805 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31806 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31807 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31808 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31809 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31810 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31811 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31812 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31813 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31814 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31815 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31816 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31817
31818 LTCC='$LTCC'
31819 LTCFLAGS='$LTCFLAGS'
31820 compiler='$compiler_DEFAULT'
31821
31822 # A function that is used when there is no print builtin or printf.
31823 func_fallback_echo ()
31824 {
31825   eval 'cat <<_LTECHO_EOF
31826 \$1
31827 _LTECHO_EOF'
31828 }
31829
31830 # Quote evaled strings.
31831 for var in SHELL \
31832 ECHO \
31833 PATH_SEPARATOR \
31834 SED \
31835 GREP \
31836 EGREP \
31837 FGREP \
31838 LD \
31839 NM \
31840 LN_S \
31841 lt_SP2NL \
31842 lt_NL2SP \
31843 reload_flag \
31844 OBJDUMP \
31845 deplibs_check_method \
31846 file_magic_cmd \
31847 file_magic_glob \
31848 want_nocaseglob \
31849 DLLTOOL \
31850 sharedlib_from_linklib_cmd \
31851 AR \
31852 AR_FLAGS \
31853 archiver_list_spec \
31854 STRIP \
31855 RANLIB \
31856 CC \
31857 CFLAGS \
31858 compiler \
31859 lt_cv_sys_global_symbol_pipe \
31860 lt_cv_sys_global_symbol_to_cdecl \
31861 lt_cv_sys_global_symbol_to_c_name_address \
31862 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31863 nm_file_list_spec \
31864 lt_prog_compiler_no_builtin_flag \
31865 lt_prog_compiler_pic \
31866 lt_prog_compiler_wl \
31867 lt_prog_compiler_static \
31868 lt_cv_prog_compiler_c_o \
31869 need_locks \
31870 MANIFEST_TOOL \
31871 DSYMUTIL \
31872 NMEDIT \
31873 LIPO \
31874 OTOOL \
31875 OTOOL64 \
31876 shrext_cmds \
31877 export_dynamic_flag_spec \
31878 whole_archive_flag_spec \
31879 compiler_needs_object \
31880 with_gnu_ld \
31881 allow_undefined_flag \
31882 no_undefined_flag \
31883 hardcode_libdir_flag_spec \
31884 hardcode_libdir_separator \
31885 exclude_expsyms \
31886 include_expsyms \
31887 file_list_spec \
31888 variables_saved_for_relink \
31889 libname_spec \
31890 library_names_spec \
31891 soname_spec \
31892 install_override_mode \
31893 finish_eval \
31894 old_striplib \
31895 striplib \
31896 compiler_lib_search_dirs \
31897 predep_objects \
31898 postdep_objects \
31899 predeps \
31900 postdeps \
31901 compiler_lib_search_path \
31902 LD_CXX \
31903 reload_flag_CXX \
31904 compiler_CXX \
31905 lt_prog_compiler_no_builtin_flag_CXX \
31906 lt_prog_compiler_pic_CXX \
31907 lt_prog_compiler_wl_CXX \
31908 lt_prog_compiler_static_CXX \
31909 lt_cv_prog_compiler_c_o_CXX \
31910 export_dynamic_flag_spec_CXX \
31911 whole_archive_flag_spec_CXX \
31912 compiler_needs_object_CXX \
31913 with_gnu_ld_CXX \
31914 allow_undefined_flag_CXX \
31915 no_undefined_flag_CXX \
31916 hardcode_libdir_flag_spec_CXX \
31917 hardcode_libdir_separator_CXX \
31918 exclude_expsyms_CXX \
31919 include_expsyms_CXX \
31920 file_list_spec_CXX \
31921 compiler_lib_search_dirs_CXX \
31922 predep_objects_CXX \
31923 postdep_objects_CXX \
31924 predeps_CXX \
31925 postdeps_CXX \
31926 compiler_lib_search_path_CXX; do
31927     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31928     *[\\\\\\\`\\"\\\$]*)
31929       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31930       ;;
31931     *)
31932       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31933       ;;
31934     esac
31935 done
31936
31937 # Double-quote double-evaled strings.
31938 for var in reload_cmds \
31939 old_postinstall_cmds \
31940 old_postuninstall_cmds \
31941 old_archive_cmds \
31942 extract_expsyms_cmds \
31943 old_archive_from_new_cmds \
31944 old_archive_from_expsyms_cmds \
31945 archive_cmds \
31946 archive_expsym_cmds \
31947 module_cmds \
31948 module_expsym_cmds \
31949 export_symbols_cmds \
31950 prelink_cmds \
31951 postlink_cmds \
31952 postinstall_cmds \
31953 postuninstall_cmds \
31954 finish_cmds \
31955 sys_lib_search_path_spec \
31956 sys_lib_dlsearch_path_spec \
31957 reload_cmds_CXX \
31958 old_archive_cmds_CXX \
31959 old_archive_from_new_cmds_CXX \
31960 old_archive_from_expsyms_cmds_CXX \
31961 archive_cmds_CXX \
31962 archive_expsym_cmds_CXX \
31963 module_cmds_CXX \
31964 module_expsym_cmds_CXX \
31965 export_symbols_cmds_CXX \
31966 prelink_cmds_CXX \
31967 postlink_cmds_CXX; do
31968     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31969     *[\\\\\\\`\\"\\\$]*)
31970       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31971       ;;
31972     *)
31973       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31974       ;;
31975     esac
31976 done
31977
31978 ac_aux_dir='$ac_aux_dir'
31979 xsi_shell='$xsi_shell'
31980 lt_shell_append='$lt_shell_append'
31981
31982 # See if we are running on zsh, and set the options which allow our
31983 # commands through without removal of \ escapes INIT.
31984 if test -n "\${ZSH_VERSION+set}" ; then
31985    setopt NO_GLOB_SUBST
31986 fi
31987
31988
31989     PACKAGE='$PACKAGE'
31990     VERSION='$VERSION'
31991     TIMESTAMP='$TIMESTAMP'
31992     RM='$RM'
31993     ofile='$ofile'
31994
31995
31996
31997
31998
31999 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32000     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32001     # from automake.
32002     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32003     # Capture the value of LINGUAS because we need it to compute CATALOGS.
32004     LINGUAS="${LINGUAS-%UNSET%}"
32005
32006
32007 _ACEOF
32008
32009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32010
32011 # Handling of arguments.
32012 for ac_config_target in $ac_config_targets
32013 do
32014   case $ac_config_target in
32015     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
32016     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32017     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32018     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
32019     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32020     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
32021     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
32022     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
32023     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
32024     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
32025     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
32026     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
32027     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
32028     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32029     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32030     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32031     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32032     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32033     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32034     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32035     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32036     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32037     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32038     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32039     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32040     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32041     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32042     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32043     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32044     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32045     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32046     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32047     "src/qt-console/bat.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw64" ;;
32048     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32049     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
32050     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
32051     "src/qt-console/tray-monitor/tray-monitor.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw32" ;;
32052     "src/qt-console/tray-monitor/tray-monitor.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw64" ;;
32053     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32054     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32055     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32056     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32057     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32058     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32059     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32060     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32061     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32062     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32063     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32064     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32065     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32066     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32067     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32068     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32069     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32070     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32071     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32072     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32073     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32074     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32075     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32076     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32077     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32078     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32079     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32080     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32081     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32082     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32083     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32084     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32085     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32086     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32087     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32088     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32089     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32090     "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32091     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32092     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32093     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32094     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32095     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32096     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32097     "updatedb/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables" ;;
32098     "updatedb/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables" ;;
32099     "updatedb/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables" ;;
32100     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32101     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32102     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32103     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32104     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32105     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32106     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32107     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32108     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32109     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32110     "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32111     "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32112     "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32113     "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32114     "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
32115     "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
32116     "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
32117     "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
32118     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32119     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32120
32121   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32122   esac
32123 done
32124
32125
32126 # If the user did not use the arguments to specify the items to instantiate,
32127 # then the envvar interface is used.  Set only those that are not.
32128 # We use the long form for the default assignment because of an extremely
32129 # bizarre bug on SunOS 4.1.3.
32130 if $ac_need_defaults; then
32131   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32132   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32133   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32134 fi
32135
32136 # Have a temporary directory for convenience.  Make it in the build tree
32137 # simply because there is no reason against having it here, and in addition,
32138 # creating and moving files from /tmp can sometimes cause problems.
32139 # Hook for its removal unless debugging.
32140 # Note that there is a small window in which the directory will not be cleaned:
32141 # after its creation but before its name has been assigned to `$tmp'.
32142 $debug ||
32143 {
32144   tmp= ac_tmp=
32145   trap 'exit_status=$?
32146   : "${ac_tmp:=$tmp}"
32147   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32148 ' 0
32149   trap 'as_fn_exit 1' 1 2 13 15
32150 }
32151 # Create a (secure) tmp directory for tmp files.
32152
32153 {
32154   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32155   test -d "$tmp"
32156 }  ||
32157 {
32158   tmp=./conf$$-$RANDOM
32159   (umask 077 && mkdir "$tmp")
32160 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32161 ac_tmp=$tmp
32162
32163 # Set up the scripts for CONFIG_FILES section.
32164 # No need to generate them if there are no CONFIG_FILES.
32165 # This happens for instance with `./config.status config.h'.
32166 if test -n "$CONFIG_FILES"; then
32167
32168 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32169   ac_cs_awk_getline=:
32170   ac_cs_awk_pipe_init=
32171   ac_cs_awk_read_file='
32172       while ((getline aline < (F[key])) > 0)
32173         print(aline)
32174       close(F[key])'
32175   ac_cs_awk_pipe_fini=
32176 else
32177   ac_cs_awk_getline=false
32178   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32179   ac_cs_awk_read_file='
32180       print "|#_!!_#|"
32181       print "cat " F[key] " &&"
32182       '$ac_cs_awk_pipe_init
32183   # The final `:' finishes the AND list.
32184   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32185 fi
32186 ac_cr=`echo X | tr X '\015'`
32187 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32188 # But we know of no other shell where ac_cr would be empty at this
32189 # point, so we can use a bashism as a fallback.
32190 if test "x$ac_cr" = x; then
32191   eval ac_cr=\$\'\\r\'
32192 fi
32193 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32194 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32195   ac_cs_awk_cr='\\r'
32196 else
32197   ac_cs_awk_cr=$ac_cr
32198 fi
32199
32200 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32201 _ACEOF
32202
32203 # Create commands to substitute file output variables.
32204 {
32205   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32206   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32207   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32208   echo "_ACAWK" &&
32209   echo "_ACEOF"
32210 } >conf$$files.sh &&
32211 . ./conf$$files.sh ||
32212   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32213 rm -f conf$$files.sh
32214
32215 {
32216   echo "cat >conf$$subs.awk <<_ACEOF" &&
32217   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32218   echo "_ACEOF"
32219 } >conf$$subs.sh ||
32220   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32221 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32222 ac_delim='%!_!# '
32223 for ac_last_try in false false false false false :; do
32224   . ./conf$$subs.sh ||
32225     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32226
32227   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32228   if test $ac_delim_n = $ac_delim_num; then
32229     break
32230   elif $ac_last_try; then
32231     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32232   else
32233     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32234   fi
32235 done
32236 rm -f conf$$subs.sh
32237
32238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32239 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32240 _ACEOF
32241 sed -n '
32242 h
32243 s/^/S["/; s/!.*/"]=/
32244 p
32245 g
32246 s/^[^!]*!//
32247 :repl
32248 t repl
32249 s/'"$ac_delim"'$//
32250 t delim
32251 :nl
32252 h
32253 s/\(.\{148\}\)..*/\1/
32254 t more1
32255 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32256 p
32257 n
32258 b repl
32259 :more1
32260 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32261 p
32262 g
32263 s/.\{148\}//
32264 t nl
32265 :delim
32266 h
32267 s/\(.\{148\}\)..*/\1/
32268 t more2
32269 s/["\\]/\\&/g; s/^/"/; s/$/"/
32270 p
32271 b
32272 :more2
32273 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32274 p
32275 g
32276 s/.\{148\}//
32277 t delim
32278 ' <conf$$subs.awk | sed '
32279 /^[^""]/{
32280   N
32281   s/\n//
32282 }
32283 ' >>$CONFIG_STATUS || ac_write_fail=1
32284 rm -f conf$$subs.awk
32285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32286 _ACAWK
32287 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32288   for (key in S) S_is_set[key] = 1
32289   FS = "\a"
32290   \$ac_cs_awk_pipe_init
32291 }
32292 {
32293   line = $ 0
32294   nfields = split(line, field, "@")
32295   substed = 0
32296   len = length(field[1])
32297   for (i = 2; i < nfields; i++) {
32298     key = field[i]
32299     keylen = length(key)
32300     if (S_is_set[key]) {
32301       value = S[key]
32302       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32303       len += length(value) + length(field[++i])
32304       substed = 1
32305     } else
32306       len += 1 + keylen
32307   }
32308   if (nfields == 3 && !substed) {
32309     key = field[2]
32310     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
32311       \$ac_cs_awk_read_file
32312       next
32313     }
32314   }
32315   print line
32316 }
32317 \$ac_cs_awk_pipe_fini
32318 _ACAWK
32319 _ACEOF
32320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32321 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32322   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32323 else
32324   cat
32325 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32326   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32327 _ACEOF
32328
32329 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32330 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32331 # trailing colons and then remove the whole line if VPATH becomes empty
32332 # (actually we leave an empty line to preserve line numbers).
32333 if test "x$srcdir" = x.; then
32334   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
32335 h
32336 s///
32337 s/^/:/
32338 s/[      ]*$/:/
32339 s/:\$(srcdir):/:/g
32340 s/:\${srcdir}:/:/g
32341 s/:@srcdir@:/:/g
32342 s/^:*//
32343 s/:*$//
32344 x
32345 s/\(=[   ]*\).*/\1/
32346 G
32347 s/\n//
32348 s/^[^=]*=[       ]*$//
32349 }'
32350 fi
32351
32352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32353 fi # test -n "$CONFIG_FILES"
32354
32355 # Set up the scripts for CONFIG_HEADERS section.
32356 # No need to generate them if there are no CONFIG_HEADERS.
32357 # This happens for instance with `./config.status Makefile'.
32358 if test -n "$CONFIG_HEADERS"; then
32359 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32360 BEGIN {
32361 _ACEOF
32362
32363 # Transform confdefs.h into an awk script `defines.awk', embedded as
32364 # here-document in config.status, that substitutes the proper values into
32365 # config.h.in to produce config.h.
32366
32367 # Create a delimiter string that does not exist in confdefs.h, to ease
32368 # handling of long lines.
32369 ac_delim='%!_!# '
32370 for ac_last_try in false false :; do
32371   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32372   if test -z "$ac_tt"; then
32373     break
32374   elif $ac_last_try; then
32375     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32376   else
32377     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32378   fi
32379 done
32380
32381 # For the awk script, D is an array of macro values keyed by name,
32382 # likewise P contains macro parameters if any.  Preserve backslash
32383 # newline sequences.
32384
32385 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32386 sed -n '
32387 s/.\{148\}/&'"$ac_delim"'/g
32388 t rset
32389 :rset
32390 s/^[     ]*#[    ]*define[       ][      ]*/ /
32391 t def
32392 d
32393 :def
32394 s/\\$//
32395 t bsnl
32396 s/["\\]/\\&/g
32397 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32398 D["\1"]=" \3"/p
32399 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
32400 d
32401 :bsnl
32402 s/["\\]/\\&/g
32403 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32404 D["\1"]=" \3\\\\\\n"\\/p
32405 t cont
32406 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32407 t cont
32408 d
32409 :cont
32410 n
32411 s/.\{148\}/&'"$ac_delim"'/g
32412 t clear
32413 :clear
32414 s/\\$//
32415 t bsnlc
32416 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32417 d
32418 :bsnlc
32419 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32420 b cont
32421 ' <confdefs.h | sed '
32422 s/'"$ac_delim"'/"\\\
32423 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32424
32425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32426   for (key in D) D_is_set[key] = 1
32427   FS = "\a"
32428 }
32429 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32430   line = \$ 0
32431   split(line, arg, " ")
32432   if (arg[1] == "#") {
32433     defundef = arg[2]
32434     mac1 = arg[3]
32435   } else {
32436     defundef = substr(arg[1], 2)
32437     mac1 = arg[2]
32438   }
32439   split(mac1, mac2, "(") #)
32440   macro = mac2[1]
32441   prefix = substr(line, 1, index(line, defundef) - 1)
32442   if (D_is_set[macro]) {
32443     # Preserve the white space surrounding the "#".
32444     print prefix "define", macro P[macro] D[macro]
32445     next
32446   } else {
32447     # Replace #undef with comments.  This is necessary, for example,
32448     # in the case of _POSIX_SOURCE, which is predefined and required
32449     # on some systems where configure will not decide to define it.
32450     if (defundef == "undef") {
32451       print "/*", prefix defundef, macro, "*/"
32452       next
32453     }
32454   }
32455 }
32456 { print }
32457 _ACAWK
32458 _ACEOF
32459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32460   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32461 fi # test -n "$CONFIG_HEADERS"
32462
32463
32464 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32465 shift
32466 for ac_tag
32467 do
32468   case $ac_tag in
32469   :[FHLC]) ac_mode=$ac_tag; continue;;
32470   esac
32471   case $ac_mode$ac_tag in
32472   :[FHL]*:*);;
32473   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32474   :[FH]-) ac_tag=-:-;;
32475   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32476   esac
32477   ac_save_IFS=$IFS
32478   IFS=:
32479   set x $ac_tag
32480   IFS=$ac_save_IFS
32481   shift
32482   ac_file=$1
32483   shift
32484
32485   case $ac_mode in
32486   :L) ac_source=$1;;
32487   :[FH])
32488     ac_file_inputs=
32489     for ac_f
32490     do
32491       case $ac_f in
32492       -) ac_f="$ac_tmp/stdin";;
32493       *) # Look for the file first in the build tree, then in the source tree
32494          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32495          # because $ac_f cannot contain `:'.
32496          test -f "$ac_f" ||
32497            case $ac_f in
32498            [\\/$]*) false;;
32499            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32500            esac ||
32501            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32502       esac
32503       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32504       as_fn_append ac_file_inputs " '$ac_f'"
32505     done
32506
32507     # Let's still pretend it is `configure' which instantiates (i.e., don't
32508     # use $as_me), people would be surprised to read:
32509     #    /* config.h.  Generated by config.status.  */
32510     configure_input='Generated from '`
32511           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32512         `' by configure.'
32513     if test x"$ac_file" != x-; then
32514       configure_input="$ac_file.  $configure_input"
32515       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32516 $as_echo "$as_me: creating $ac_file" >&6;}
32517     fi
32518     # Neutralize special characters interpreted by sed in replacement strings.
32519     case $configure_input in #(
32520     *\&* | *\|* | *\\* )
32521        ac_sed_conf_input=`$as_echo "$configure_input" |
32522        sed 's/[\\\\&|]/\\\\&/g'`;; #(
32523     *) ac_sed_conf_input=$configure_input;;
32524     esac
32525
32526     case $ac_tag in
32527     *:-:* | *:-) cat >"$ac_tmp/stdin" \
32528       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32529     esac
32530     ;;
32531   esac
32532
32533   ac_dir=`$as_dirname -- "$ac_file" ||
32534 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32535          X"$ac_file" : 'X\(//\)[^/]' \| \
32536          X"$ac_file" : 'X\(//\)$' \| \
32537          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32538 $as_echo X"$ac_file" |
32539     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32540             s//\1/
32541             q
32542           }
32543           /^X\(\/\/\)[^/].*/{
32544             s//\1/
32545             q
32546           }
32547           /^X\(\/\/\)$/{
32548             s//\1/
32549             q
32550           }
32551           /^X\(\/\).*/{
32552             s//\1/
32553             q
32554           }
32555           s/.*/./; q'`
32556   as_dir="$ac_dir"; as_fn_mkdir_p
32557   ac_builddir=.
32558
32559 case "$ac_dir" in
32560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32561 *)
32562   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32563   # A ".." for each directory in $ac_dir_suffix.
32564   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32565   case $ac_top_builddir_sub in
32566   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32567   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32568   esac ;;
32569 esac
32570 ac_abs_top_builddir=$ac_pwd
32571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32572 # for backward compatibility:
32573 ac_top_builddir=$ac_top_build_prefix
32574
32575 case $srcdir in
32576   .)  # We are building in place.
32577     ac_srcdir=.
32578     ac_top_srcdir=$ac_top_builddir_sub
32579     ac_abs_top_srcdir=$ac_pwd ;;
32580   [\\/]* | ?:[\\/]* )  # Absolute name.
32581     ac_srcdir=$srcdir$ac_dir_suffix;
32582     ac_top_srcdir=$srcdir
32583     ac_abs_top_srcdir=$srcdir ;;
32584   *) # Relative name.
32585     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32586     ac_top_srcdir=$ac_top_build_prefix$srcdir
32587     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32588 esac
32589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32590
32591
32592   case $ac_mode in
32593   :F)
32594   #
32595   # CONFIG_FILE
32596   #
32597
32598   case $INSTALL in
32599   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32600   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32601   esac
32602 _ACEOF
32603
32604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32605 # If the template does not know about datarootdir, expand it.
32606 # FIXME: This hack should be removed a few years after 2.60.
32607 ac_datarootdir_hack=; ac_datarootdir_seen=
32608 ac_sed_dataroot='
32609 /datarootdir/ {
32610   p
32611   q
32612 }
32613 /@datadir@/p
32614 /@docdir@/p
32615 /@infodir@/p
32616 /@localedir@/p
32617 /@mandir@/p'
32618 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32619 *datarootdir*) ac_datarootdir_seen=yes;;
32620 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32621   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32622 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32623 _ACEOF
32624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32625   ac_datarootdir_hack='
32626   s&@datadir@&$datadir&g
32627   s&@docdir@&$docdir&g
32628   s&@infodir@&$infodir&g
32629   s&@localedir@&$localedir&g
32630   s&@mandir@&$mandir&g
32631   s&\\\${datarootdir}&$datarootdir&g' ;;
32632 esac
32633 _ACEOF
32634
32635 # Neutralize VPATH when `$srcdir' = `.'.
32636 # Shell code in configure.ac might set extrasub.
32637 # FIXME: do we really want to maintain this feature?
32638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32639 ac_sed_extra="$ac_vpsub
32640 $extrasub
32641 _ACEOF
32642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32643 :t
32644 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32645 s|@configure_input@|$ac_sed_conf_input|;t t
32646 s&@top_builddir@&$ac_top_builddir_sub&;t t
32647 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32648 s&@srcdir@&$ac_srcdir&;t t
32649 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32650 s&@top_srcdir@&$ac_top_srcdir&;t t
32651 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32652 s&@builddir@&$ac_builddir&;t t
32653 s&@abs_builddir@&$ac_abs_builddir&;t t
32654 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32655 s&@INSTALL@&$ac_INSTALL&;t t
32656 $ac_datarootdir_hack
32657 "
32658 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32659 if $ac_cs_awk_getline; then
32660   $AWK -f "$ac_tmp/subs.awk"
32661 else
32662   $AWK -f "$ac_tmp/subs.awk" | $SHELL
32663 fi \
32664   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32665
32666 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32667   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32668   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
32669       "$ac_tmp/out"`; test -z "$ac_out"; } &&
32670   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32671 which seems to be undefined.  Please make sure it is defined" >&5
32672 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32673 which seems to be undefined.  Please make sure it is defined" >&2;}
32674
32675   rm -f "$ac_tmp/stdin"
32676   case $ac_file in
32677   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32678   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32679   esac \
32680   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32681  ;;
32682   :H)
32683   #
32684   # CONFIG_HEADER
32685   #
32686   if test x"$ac_file" != x-; then
32687     {
32688       $as_echo "/* $configure_input  */" \
32689       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32690     } >"$ac_tmp/config.h" \
32691       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32692     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32693       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32694 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32695     else
32696       rm -f "$ac_file"
32697       mv "$ac_tmp/config.h" "$ac_file" \
32698         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32699     fi
32700   else
32701     $as_echo "/* $configure_input  */" \
32702       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32703       || as_fn_error $? "could not create -" "$LINENO" 5
32704   fi
32705  ;;
32706
32707   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32708 $as_echo "$as_me: executing $ac_file commands" >&6;}
32709  ;;
32710   esac
32711
32712
32713   case $ac_file$ac_mode in
32714     "libtool":C)
32715
32716     # See if we are running on zsh, and set the options which allow our
32717     # commands through without removal of \ escapes.
32718     if test -n "${ZSH_VERSION+set}" ; then
32719       setopt NO_GLOB_SUBST
32720     fi
32721
32722     cfgfile="${ofile}T"
32723     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32724     $RM "$cfgfile"
32725
32726     cat <<_LT_EOF >> "$cfgfile"
32727 #! $SHELL
32728
32729 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32730 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32731 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32732 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32733 #
32734 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32735 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
32736 #                 Foundation, Inc.
32737 #   Written by Gordon Matzigkeit, 1996
32738 #
32739 #   This file is part of GNU Libtool.
32740 #
32741 # GNU Libtool is free software; you can redistribute it and/or
32742 # modify it under the terms of the GNU General Public License as
32743 # published by the Free Software Foundation; either version 2 of
32744 # the License, or (at your option) any later version.
32745 #
32746 # As a special exception to the GNU General Public License,
32747 # if you distribute this file as part of a program or library that
32748 # is built using GNU Libtool, you may include this file under the
32749 # same distribution terms that you use for the rest of that program.
32750 #
32751 # GNU Libtool is distributed in the hope that it will be useful,
32752 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32753 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32754 # GNU General Public License for more details.
32755 #
32756 # You should have received a copy of the GNU General Public License
32757 # along with GNU Libtool; see the file COPYING.  If not, a copy
32758 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32759 # obtained by writing to the Free Software Foundation, Inc.,
32760 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32761
32762
32763 # The names of the tagged configurations supported by this script.
32764 available_tags="CXX "
32765
32766 # ### BEGIN LIBTOOL CONFIG
32767
32768 # Which release of libtool.m4 was used?
32769 macro_version=$macro_version
32770 macro_revision=$macro_revision
32771
32772 # Whether or not to build shared libraries.
32773 build_libtool_libs=$enable_shared
32774
32775 # Whether or not to build static libraries.
32776 build_old_libs=$enable_static
32777
32778 # What type of objects to build.
32779 pic_mode=$pic_mode
32780
32781 # Whether or not to optimize for fast installation.
32782 fast_install=$enable_fast_install
32783
32784 # Shell to use when invoking shell scripts.
32785 SHELL=$lt_SHELL
32786
32787 # An echo program that protects backslashes.
32788 ECHO=$lt_ECHO
32789
32790 # The PATH separator for the build system.
32791 PATH_SEPARATOR=$lt_PATH_SEPARATOR
32792
32793 # The host system.
32794 host_alias=$host_alias
32795 host=$host
32796 host_os=$host_os
32797
32798 # The build system.
32799 build_alias=$build_alias
32800 build=$build
32801 build_os=$build_os
32802
32803 # A sed program that does not truncate output.
32804 SED=$lt_SED
32805
32806 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32807 Xsed="\$SED -e 1s/^X//"
32808
32809 # A grep program that handles long lines.
32810 GREP=$lt_GREP
32811
32812 # An ERE matcher.
32813 EGREP=$lt_EGREP
32814
32815 # A literal string matcher.
32816 FGREP=$lt_FGREP
32817
32818 # A BSD- or MS-compatible name lister.
32819 NM=$lt_NM
32820
32821 # Whether we need soft or hard links.
32822 LN_S=$lt_LN_S
32823
32824 # What is the maximum length of a command?
32825 max_cmd_len=$max_cmd_len
32826
32827 # Object file suffix (normally "o").
32828 objext=$ac_objext
32829
32830 # Executable file suffix (normally "").
32831 exeext=$exeext
32832
32833 # whether the shell understands "unset".
32834 lt_unset=$lt_unset
32835
32836 # turn spaces into newlines.
32837 SP2NL=$lt_lt_SP2NL
32838
32839 # turn newlines into spaces.
32840 NL2SP=$lt_lt_NL2SP
32841
32842 # convert \$build file names to \$host format.
32843 to_host_file_cmd=$lt_cv_to_host_file_cmd
32844
32845 # convert \$build files to toolchain format.
32846 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32847
32848 # An object symbol dumper.
32849 OBJDUMP=$lt_OBJDUMP
32850
32851 # Method to check whether dependent libraries are shared objects.
32852 deplibs_check_method=$lt_deplibs_check_method
32853
32854 # Command to use when deplibs_check_method = "file_magic".
32855 file_magic_cmd=$lt_file_magic_cmd
32856
32857 # How to find potential files when deplibs_check_method = "file_magic".
32858 file_magic_glob=$lt_file_magic_glob
32859
32860 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32861 want_nocaseglob=$lt_want_nocaseglob
32862
32863 # DLL creation program.
32864 DLLTOOL=$lt_DLLTOOL
32865
32866 # Command to associate shared and link libraries.
32867 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32868
32869 # The archiver.
32870 AR=$lt_AR
32871
32872 # Flags to create an archive.
32873 AR_FLAGS=$lt_AR_FLAGS
32874
32875 # How to feed a file listing to the archiver.
32876 archiver_list_spec=$lt_archiver_list_spec
32877
32878 # A symbol stripping program.
32879 STRIP=$lt_STRIP
32880
32881 # Commands used to install an old-style archive.
32882 RANLIB=$lt_RANLIB
32883 old_postinstall_cmds=$lt_old_postinstall_cmds
32884 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32885
32886 # Whether to use a lock for old archive extraction.
32887 lock_old_archive_extraction=$lock_old_archive_extraction
32888
32889 # A C compiler.
32890 LTCC=$lt_CC
32891
32892 # LTCC compiler flags.
32893 LTCFLAGS=$lt_CFLAGS
32894
32895 # Take the output of nm and produce a listing of raw symbols and C names.
32896 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32897
32898 # Transform the output of nm in a proper C declaration.
32899 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32900
32901 # Transform the output of nm in a C name address pair.
32902 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32903
32904 # Transform the output of nm in a C name address pair when lib prefix is needed.
32905 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32906
32907 # Specify filename containing input files for \$NM.
32908 nm_file_list_spec=$lt_nm_file_list_spec
32909
32910 # The root where to search for dependent libraries,and in which our libraries should be installed.
32911 lt_sysroot=$lt_sysroot
32912
32913 # The name of the directory that contains temporary libtool files.
32914 objdir=$objdir
32915
32916 # Used to examine libraries when file_magic_cmd begins with "file".
32917 MAGIC_CMD=$MAGIC_CMD
32918
32919 # Must we lock files when doing compilation?
32920 need_locks=$lt_need_locks
32921
32922 # Manifest tool.
32923 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32924
32925 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32926 DSYMUTIL=$lt_DSYMUTIL
32927
32928 # Tool to change global to local symbols on Mac OS X.
32929 NMEDIT=$lt_NMEDIT
32930
32931 # Tool to manipulate fat objects and archives on Mac OS X.
32932 LIPO=$lt_LIPO
32933
32934 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32935 OTOOL=$lt_OTOOL
32936
32937 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32938 OTOOL64=$lt_OTOOL64
32939
32940 # Old archive suffix (normally "a").
32941 libext=$libext
32942
32943 # Shared library suffix (normally ".so").
32944 shrext_cmds=$lt_shrext_cmds
32945
32946 # The commands to extract the exported symbol list from a shared archive.
32947 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32948
32949 # Variables whose values should be saved in libtool wrapper scripts and
32950 # restored at link time.
32951 variables_saved_for_relink=$lt_variables_saved_for_relink
32952
32953 # Do we need the "lib" prefix for modules?
32954 need_lib_prefix=$need_lib_prefix
32955
32956 # Do we need a version for libraries?
32957 need_version=$need_version
32958
32959 # Library versioning type.
32960 version_type=$version_type
32961
32962 # Shared library runtime path variable.
32963 runpath_var=$runpath_var
32964
32965 # Shared library path variable.
32966 shlibpath_var=$shlibpath_var
32967
32968 # Is shlibpath searched before the hard-coded library search path?
32969 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32970
32971 # Format of library name prefix.
32972 libname_spec=$lt_libname_spec
32973
32974 # List of archive names.  First name is the real one, the rest are links.
32975 # The last name is the one that the linker finds with -lNAME
32976 library_names_spec=$lt_library_names_spec
32977
32978 # The coded name of the library, if different from the real name.
32979 soname_spec=$lt_soname_spec
32980
32981 # Permission mode override for installation of shared libraries.
32982 install_override_mode=$lt_install_override_mode
32983
32984 # Command to use after installation of a shared archive.
32985 postinstall_cmds=$lt_postinstall_cmds
32986
32987 # Command to use after uninstallation of a shared archive.
32988 postuninstall_cmds=$lt_postuninstall_cmds
32989
32990 # Commands used to finish a libtool library installation in a directory.
32991 finish_cmds=$lt_finish_cmds
32992
32993 # As "finish_cmds", except a single script fragment to be evaled but
32994 # not shown.
32995 finish_eval=$lt_finish_eval
32996
32997 # Whether we should hardcode library paths into libraries.
32998 hardcode_into_libs=$hardcode_into_libs
32999
33000 # Compile-time system search path for libraries.
33001 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33002
33003 # Run-time system search path for libraries.
33004 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33005
33006 # Whether dlopen is supported.
33007 dlopen_support=$enable_dlopen
33008
33009 # Whether dlopen of programs is supported.
33010 dlopen_self=$enable_dlopen_self
33011
33012 # Whether dlopen of statically linked programs is supported.
33013 dlopen_self_static=$enable_dlopen_self_static
33014
33015 # Commands to strip libraries.
33016 old_striplib=$lt_old_striplib
33017 striplib=$lt_striplib
33018
33019
33020 # The linker used to build libraries.
33021 LD=$lt_LD
33022
33023 # How to create reloadable object files.
33024 reload_flag=$lt_reload_flag
33025 reload_cmds=$lt_reload_cmds
33026
33027 # Commands used to build an old-style archive.
33028 old_archive_cmds=$lt_old_archive_cmds
33029
33030 # A language specific compiler.
33031 CC=$lt_compiler
33032
33033 # Is the compiler the GNU compiler?
33034 with_gcc=$GCC
33035
33036 # Compiler flag to turn off builtin functions.
33037 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33038
33039 # Additional compiler flags for building library objects.
33040 pic_flag=$lt_lt_prog_compiler_pic
33041
33042 # How to pass a linker flag through the compiler.
33043 wl=$lt_lt_prog_compiler_wl
33044
33045 # Compiler flag to prevent dynamic linking.
33046 link_static_flag=$lt_lt_prog_compiler_static
33047
33048 # Does compiler simultaneously support -c and -o options?
33049 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33050
33051 # Whether or not to add -lc for building shared libraries.
33052 build_libtool_need_lc=$archive_cmds_need_lc
33053
33054 # Whether or not to disallow shared libs when runtime libs are static.
33055 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33056
33057 # Compiler flag to allow reflexive dlopens.
33058 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33059
33060 # Compiler flag to generate shared objects directly from archives.
33061 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33062
33063 # Whether the compiler copes with passing no objects directly.
33064 compiler_needs_object=$lt_compiler_needs_object
33065
33066 # Create an old-style archive from a shared archive.
33067 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33068
33069 # Create a temporary old-style archive to link instead of a shared archive.
33070 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33071
33072 # Commands used to build a shared archive.
33073 archive_cmds=$lt_archive_cmds
33074 archive_expsym_cmds=$lt_archive_expsym_cmds
33075
33076 # Commands used to build a loadable module if different from building
33077 # a shared archive.
33078 module_cmds=$lt_module_cmds
33079 module_expsym_cmds=$lt_module_expsym_cmds
33080
33081 # Whether we are building with GNU ld or not.
33082 with_gnu_ld=$lt_with_gnu_ld
33083
33084 # Flag that allows shared libraries with undefined symbols to be built.
33085 allow_undefined_flag=$lt_allow_undefined_flag
33086
33087 # Flag that enforces no undefined symbols.
33088 no_undefined_flag=$lt_no_undefined_flag
33089
33090 # Flag to hardcode \$libdir into a binary during linking.
33091 # This must work even if \$libdir does not exist
33092 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33093
33094 # Whether we need a single "-rpath" flag with a separated argument.
33095 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33096
33097 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33098 # DIR into the resulting binary.
33099 hardcode_direct=$hardcode_direct
33100
33101 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33102 # DIR into the resulting binary and the resulting library dependency is
33103 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33104 # library is relocated.
33105 hardcode_direct_absolute=$hardcode_direct_absolute
33106
33107 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33108 # into the resulting binary.
33109 hardcode_minus_L=$hardcode_minus_L
33110
33111 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33112 # into the resulting binary.
33113 hardcode_shlibpath_var=$hardcode_shlibpath_var
33114
33115 # Set to "yes" if building a shared library automatically hardcodes DIR
33116 # into the library and all subsequent libraries and executables linked
33117 # against it.
33118 hardcode_automatic=$hardcode_automatic
33119
33120 # Set to yes if linker adds runtime paths of dependent libraries
33121 # to runtime path list.
33122 inherit_rpath=$inherit_rpath
33123
33124 # Whether libtool must link a program against all its dependency libraries.
33125 link_all_deplibs=$link_all_deplibs
33126
33127 # Set to "yes" if exported symbols are required.
33128 always_export_symbols=$always_export_symbols
33129
33130 # The commands to list exported symbols.
33131 export_symbols_cmds=$lt_export_symbols_cmds
33132
33133 # Symbols that should not be listed in the preloaded symbols.
33134 exclude_expsyms=$lt_exclude_expsyms
33135
33136 # Symbols that must always be exported.
33137 include_expsyms=$lt_include_expsyms
33138
33139 # Commands necessary for linking programs (against libraries) with templates.
33140 prelink_cmds=$lt_prelink_cmds
33141
33142 # Commands necessary for finishing linking programs.
33143 postlink_cmds=$lt_postlink_cmds
33144
33145 # Specify filename containing input files.
33146 file_list_spec=$lt_file_list_spec
33147
33148 # How to hardcode a shared library path into an executable.
33149 hardcode_action=$hardcode_action
33150
33151 # The directories searched by this compiler when creating a shared library.
33152 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33153
33154 # Dependencies to place before and after the objects being linked to
33155 # create a shared library.
33156 predep_objects=$lt_predep_objects
33157 postdep_objects=$lt_postdep_objects
33158 predeps=$lt_predeps
33159 postdeps=$lt_postdeps
33160
33161 # The library search path used internally by the compiler when linking
33162 # a shared library.
33163 compiler_lib_search_path=$lt_compiler_lib_search_path
33164
33165 # ### END LIBTOOL CONFIG
33166
33167 _LT_EOF
33168
33169   case $host_os in
33170   aix3*)
33171     cat <<\_LT_EOF >> "$cfgfile"
33172 # AIX sometimes has problems with the GCC collect2 program.  For some
33173 # reason, if we set the COLLECT_NAMES environment variable, the problems
33174 # vanish in a puff of smoke.
33175 if test "X${COLLECT_NAMES+set}" != Xset; then
33176   COLLECT_NAMES=
33177   export COLLECT_NAMES
33178 fi
33179 _LT_EOF
33180     ;;
33181   esac
33182
33183
33184 ltmain="$ac_aux_dir/ltmain.sh"
33185
33186
33187   # We use sed instead of cat because bash on DJGPP gets confused if
33188   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
33189   # text mode, it properly converts lines to CR/LF.  This bash problem
33190   # is reportedly fixed, but why not run on old versions too?
33191   sed '$q' "$ltmain" >> "$cfgfile" \
33192      || (rm -f "$cfgfile"; exit 1)
33193
33194   if test x"$xsi_shell" = xyes; then
33195   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33196 func_dirname ()\
33197 {\
33198 \    case ${1} in\
33199 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33200 \      *  ) func_dirname_result="${3}" ;;\
33201 \    esac\
33202 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33203   && mv -f "$cfgfile.tmp" "$cfgfile" \
33204     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33205 test 0 -eq $? || _lt_function_replace_fail=:
33206
33207
33208   sed -e '/^func_basename ()$/,/^} # func_basename /c\
33209 func_basename ()\
33210 {\
33211 \    func_basename_result="${1##*/}"\
33212 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33213   && mv -f "$cfgfile.tmp" "$cfgfile" \
33214     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33215 test 0 -eq $? || _lt_function_replace_fail=:
33216
33217
33218   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33219 func_dirname_and_basename ()\
33220 {\
33221 \    case ${1} in\
33222 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33223 \      *  ) func_dirname_result="${3}" ;;\
33224 \    esac\
33225 \    func_basename_result="${1##*/}"\
33226 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33227   && mv -f "$cfgfile.tmp" "$cfgfile" \
33228     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33229 test 0 -eq $? || _lt_function_replace_fail=:
33230
33231
33232   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33233 func_stripname ()\
33234 {\
33235 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33236 \    # positional parameters, so assign one to ordinary parameter first.\
33237 \    func_stripname_result=${3}\
33238 \    func_stripname_result=${func_stripname_result#"${1}"}\
33239 \    func_stripname_result=${func_stripname_result%"${2}"}\
33240 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33241   && mv -f "$cfgfile.tmp" "$cfgfile" \
33242     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33243 test 0 -eq $? || _lt_function_replace_fail=:
33244
33245
33246   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33247 func_split_long_opt ()\
33248 {\
33249 \    func_split_long_opt_name=${1%%=*}\
33250 \    func_split_long_opt_arg=${1#*=}\
33251 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33252   && mv -f "$cfgfile.tmp" "$cfgfile" \
33253     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33254 test 0 -eq $? || _lt_function_replace_fail=:
33255
33256
33257   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33258 func_split_short_opt ()\
33259 {\
33260 \    func_split_short_opt_arg=${1#??}\
33261 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33262 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33263   && mv -f "$cfgfile.tmp" "$cfgfile" \
33264     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33265 test 0 -eq $? || _lt_function_replace_fail=:
33266
33267
33268   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33269 func_lo2o ()\
33270 {\
33271 \    case ${1} in\
33272 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33273 \      *)    func_lo2o_result=${1} ;;\
33274 \    esac\
33275 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33276   && mv -f "$cfgfile.tmp" "$cfgfile" \
33277     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33278 test 0 -eq $? || _lt_function_replace_fail=:
33279
33280
33281   sed -e '/^func_xform ()$/,/^} # func_xform /c\
33282 func_xform ()\
33283 {\
33284     func_xform_result=${1%.*}.lo\
33285 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33286   && mv -f "$cfgfile.tmp" "$cfgfile" \
33287     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33288 test 0 -eq $? || _lt_function_replace_fail=:
33289
33290
33291   sed -e '/^func_arith ()$/,/^} # func_arith /c\
33292 func_arith ()\
33293 {\
33294     func_arith_result=$(( $* ))\
33295 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33296   && mv -f "$cfgfile.tmp" "$cfgfile" \
33297     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33298 test 0 -eq $? || _lt_function_replace_fail=:
33299
33300
33301   sed -e '/^func_len ()$/,/^} # func_len /c\
33302 func_len ()\
33303 {\
33304     func_len_result=${#1}\
33305 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33306   && mv -f "$cfgfile.tmp" "$cfgfile" \
33307     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33308 test 0 -eq $? || _lt_function_replace_fail=:
33309
33310 fi
33311
33312 if test x"$lt_shell_append" = xyes; then
33313   sed -e '/^func_append ()$/,/^} # func_append /c\
33314 func_append ()\
33315 {\
33316     eval "${1}+=\\${2}"\
33317 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33318   && mv -f "$cfgfile.tmp" "$cfgfile" \
33319     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33320 test 0 -eq $? || _lt_function_replace_fail=:
33321
33322
33323   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33324 func_append_quoted ()\
33325 {\
33326 \    func_quote_for_eval "${2}"\
33327 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33328 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33329   && mv -f "$cfgfile.tmp" "$cfgfile" \
33330     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33331 test 0 -eq $? || _lt_function_replace_fail=:
33332
33333
33334   # Save a `func_append' function call where possible by direct use of '+='
33335   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33336     && mv -f "$cfgfile.tmp" "$cfgfile" \
33337       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33338   test 0 -eq $? || _lt_function_replace_fail=:
33339 else
33340   # Save a `func_append' function call even when '+=' is not available
33341   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33342     && mv -f "$cfgfile.tmp" "$cfgfile" \
33343       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33344   test 0 -eq $? || _lt_function_replace_fail=:
33345 fi
33346
33347 if test x"$_lt_function_replace_fail" = x":"; then
33348   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33349 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33350 fi
33351
33352
33353    mv -f "$cfgfile" "$ofile" ||
33354     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33355   chmod +x "$ofile"
33356
33357
33358     cat <<_LT_EOF >> "$ofile"
33359
33360 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33361
33362 # The linker used to build libraries.
33363 LD=$lt_LD_CXX
33364
33365 # How to create reloadable object files.
33366 reload_flag=$lt_reload_flag_CXX
33367 reload_cmds=$lt_reload_cmds_CXX
33368
33369 # Commands used to build an old-style archive.
33370 old_archive_cmds=$lt_old_archive_cmds_CXX
33371
33372 # A language specific compiler.
33373 CC=$lt_compiler_CXX
33374
33375 # Is the compiler the GNU compiler?
33376 with_gcc=$GCC_CXX
33377
33378 # Compiler flag to turn off builtin functions.
33379 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33380
33381 # Additional compiler flags for building library objects.
33382 pic_flag=$lt_lt_prog_compiler_pic_CXX
33383
33384 # How to pass a linker flag through the compiler.
33385 wl=$lt_lt_prog_compiler_wl_CXX
33386
33387 # Compiler flag to prevent dynamic linking.
33388 link_static_flag=$lt_lt_prog_compiler_static_CXX
33389
33390 # Does compiler simultaneously support -c and -o options?
33391 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33392
33393 # Whether or not to add -lc for building shared libraries.
33394 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33395
33396 # Whether or not to disallow shared libs when runtime libs are static.
33397 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33398
33399 # Compiler flag to allow reflexive dlopens.
33400 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33401
33402 # Compiler flag to generate shared objects directly from archives.
33403 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33404
33405 # Whether the compiler copes with passing no objects directly.
33406 compiler_needs_object=$lt_compiler_needs_object_CXX
33407
33408 # Create an old-style archive from a shared archive.
33409 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33410
33411 # Create a temporary old-style archive to link instead of a shared archive.
33412 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33413
33414 # Commands used to build a shared archive.
33415 archive_cmds=$lt_archive_cmds_CXX
33416 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33417
33418 # Commands used to build a loadable module if different from building
33419 # a shared archive.
33420 module_cmds=$lt_module_cmds_CXX
33421 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33422
33423 # Whether we are building with GNU ld or not.
33424 with_gnu_ld=$lt_with_gnu_ld_CXX
33425
33426 # Flag that allows shared libraries with undefined symbols to be built.
33427 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33428
33429 # Flag that enforces no undefined symbols.
33430 no_undefined_flag=$lt_no_undefined_flag_CXX
33431
33432 # Flag to hardcode \$libdir into a binary during linking.
33433 # This must work even if \$libdir does not exist
33434 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33435
33436 # Whether we need a single "-rpath" flag with a separated argument.
33437 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33438
33439 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33440 # DIR into the resulting binary.
33441 hardcode_direct=$hardcode_direct_CXX
33442
33443 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33444 # DIR into the resulting binary and the resulting library dependency is
33445 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33446 # library is relocated.
33447 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33448
33449 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33450 # into the resulting binary.
33451 hardcode_minus_L=$hardcode_minus_L_CXX
33452
33453 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33454 # into the resulting binary.
33455 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33456
33457 # Set to "yes" if building a shared library automatically hardcodes DIR
33458 # into the library and all subsequent libraries and executables linked
33459 # against it.
33460 hardcode_automatic=$hardcode_automatic_CXX
33461
33462 # Set to yes if linker adds runtime paths of dependent libraries
33463 # to runtime path list.
33464 inherit_rpath=$inherit_rpath_CXX
33465
33466 # Whether libtool must link a program against all its dependency libraries.
33467 link_all_deplibs=$link_all_deplibs_CXX
33468
33469 # Set to "yes" if exported symbols are required.
33470 always_export_symbols=$always_export_symbols_CXX
33471
33472 # The commands to list exported symbols.
33473 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33474
33475 # Symbols that should not be listed in the preloaded symbols.
33476 exclude_expsyms=$lt_exclude_expsyms_CXX
33477
33478 # Symbols that must always be exported.
33479 include_expsyms=$lt_include_expsyms_CXX
33480
33481 # Commands necessary for linking programs (against libraries) with templates.
33482 prelink_cmds=$lt_prelink_cmds_CXX
33483
33484 # Commands necessary for finishing linking programs.
33485 postlink_cmds=$lt_postlink_cmds_CXX
33486
33487 # Specify filename containing input files.
33488 file_list_spec=$lt_file_list_spec_CXX
33489
33490 # How to hardcode a shared library path into an executable.
33491 hardcode_action=$hardcode_action_CXX
33492
33493 # The directories searched by this compiler when creating a shared library.
33494 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33495
33496 # Dependencies to place before and after the objects being linked to
33497 # create a shared library.
33498 predep_objects=$lt_predep_objects_CXX
33499 postdep_objects=$lt_postdep_objects_CXX
33500 predeps=$lt_predeps_CXX
33501 postdeps=$lt_postdeps_CXX
33502
33503 # The library search path used internally by the compiler when linking
33504 # a shared library.
33505 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33506
33507 # ### END LIBTOOL TAG CONFIG: CXX
33508 _LT_EOF
33509
33510  ;;
33511     "default-1":C)
33512     for ac_file in $CONFIG_FILES; do
33513       # Support "outfile[:infile[:infile...]]"
33514       case "$ac_file" in
33515         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33516       esac
33517       # PO directories have a Makefile.in generated from Makefile.in.in.
33518       case "$ac_file" in */Makefile.in)
33519         # Adjust a relative srcdir.
33520         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33521         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33522         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33523         # In autoconf-2.13 it is called $ac_given_srcdir.
33524         # In autoconf-2.50 it is called $srcdir.
33525         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33526         case "$ac_given_srcdir" in
33527           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33528           /*) top_srcdir="$ac_given_srcdir" ;;
33529           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
33530         esac
33531         # Treat a directory as a PO directory if and only if it has a
33532         # POTFILES.in file. This allows packages to have multiple PO
33533         # directories under different names or in different locations.
33534         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33535           rm -f "$ac_dir/POTFILES"
33536           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33537           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33538           POMAKEFILEDEPS="POTFILES.in"
33539           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33540           # on $ac_dir but don't depend on user-specified configuration
33541           # parameters.
33542           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33543             # The LINGUAS file contains the set of available languages.
33544             if test -n "$OBSOLETE_ALL_LINGUAS"; then
33545               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33546             fi
33547             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33548             # Hide the ALL_LINGUAS assigment from automake.
33549             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33550             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33551           else
33552             # The set of available languages was given in configure.in.
33553             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33554           fi
33555           # Compute POFILES
33556           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33557           # Compute UPDATEPOFILES
33558           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33559           # Compute DUMMYPOFILES
33560           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33561           # Compute GMOFILES
33562           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33563           case "$ac_given_srcdir" in
33564             .) srcdirpre= ;;
33565             *) srcdirpre='$(srcdir)/' ;;
33566           esac
33567           POFILES=
33568           UPDATEPOFILES=
33569           DUMMYPOFILES=
33570           GMOFILES=
33571           for lang in $ALL_LINGUAS; do
33572             POFILES="$POFILES $srcdirpre$lang.po"
33573             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33574             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33575             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33576           done
33577           # CATALOGS depends on both $ac_dir and the user's LINGUAS
33578           # environment variable.
33579           INST_LINGUAS=
33580           if test -n "$ALL_LINGUAS"; then
33581             for presentlang in $ALL_LINGUAS; do
33582               useit=no
33583               if test "%UNSET%" != "$LINGUAS"; then
33584                 desiredlanguages="$LINGUAS"
33585               else
33586                 desiredlanguages="$ALL_LINGUAS"
33587               fi
33588               for desiredlang in $desiredlanguages; do
33589                 # Use the presentlang catalog if desiredlang is
33590                 #   a. equal to presentlang, or
33591                 #   b. a variant of presentlang (because in this case,
33592                 #      presentlang can be used as a fallback for messages
33593                 #      which are not translated in the desiredlang catalog).
33594                 case "$desiredlang" in
33595                   "$presentlang"*) useit=yes;;
33596                 esac
33597               done
33598               if test $useit = yes; then
33599                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33600               fi
33601             done
33602           fi
33603           CATALOGS=
33604           if test -n "$INST_LINGUAS"; then
33605             for lang in $INST_LINGUAS; do
33606               CATALOGS="$CATALOGS $lang.gmo"
33607             done
33608           fi
33609           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33610           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"
33611           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33612             if test -f "$f"; then
33613               case "$f" in
33614                 *.orig | *.bak | *~) ;;
33615                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33616               esac
33617             fi
33618           done
33619         fi
33620         ;;
33621       esac
33622     done ;;
33623     "default":C)
33624  ;;
33625
33626   esac
33627 done # for ac_tag
33628
33629
33630 as_fn_exit 0
33631 _ACEOF
33632 ac_clean_files=$ac_clean_files_save
33633
33634 test $ac_write_fail = 0 ||
33635   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33636
33637
33638 # configure is writing to config.log, and then calls config.status.
33639 # config.status does its own redirection, appending to config.log.
33640 # Unfortunately, on DOS this fails, as config.log is still kept open
33641 # by configure, so config.status won't be able to write to it; its
33642 # output is simply discarded.  So we exec the FD to /dev/null,
33643 # effectively closing config.log, so it can be properly (re)opened and
33644 # appended to by config.status.  When coming back to configure, we
33645 # need to make the FD available again.
33646 if test "$no_create" != yes; then
33647   ac_cs_success=:
33648   ac_config_status_args=
33649   test "$silent" = yes &&
33650     ac_config_status_args="$ac_config_status_args --quiet"
33651   exec 5>/dev/null
33652   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33653   exec 5>>config.log
33654   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33655   # would make configure fail if this is the last instruction.
33656   $ac_cs_success || as_fn_exit 1
33657 fi
33658 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33659   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33660 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33661 fi
33662
33663
33664 if test "${support_bat}" = "yes" ; then
33665    if test "x$QMAKE" = "xnone"; then
33666       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33667    fi
33668
33669    cd src/qt-console
33670    echo "Creating bat Makefile"
33671    touch bat
33672    chmod 755 bat
33673    rm -f Makefile
33674    rm -rf moc32 obj32
33675    $QMAKE
33676    ${MAKE:-make} clean
33677    cd ${BUILD_DIR}
33678 fi
33679
33680 if test X"$GCC" = "Xyes" ; then
33681   echo "Doing make of dependencies"
33682   ${MAKE:-make} depend
33683 fi
33684
33685 cd src/qt-console
33686 chmod 755 install_conf_file build-depkgs-qt-console
33687 cd ${BUILD_DIR}
33688
33689 cd scripts
33690 chmod 755 bacula btraceback mtx-changer
33691 chmod 755 dvd-handler dvd-simulator
33692 chmod 755 bconsole disk-changer devel_bacula logrotate
33693 cd ..
33694
33695 c=updatedb
33696 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
33697 chmod 755 $c/update_postgresql_tables_10_to_11
33698 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
33699 chmod 755 $c/update_postgresql_tables_11_to_12
33700
33701
33702 c=src/cats
33703
33704 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
33705 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
33706
33707 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
33708 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
33709
33710 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
33711 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
33712
33713 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
33714 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
33715
33716 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
33717 chmod 755 $c/sqlite
33718 chmod 755 $c/mysql
33719
33720 chmod 755 $c/install-default-backend
33721
33722 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33723    largefile_support="yes"
33724 fi
33725
33726 if test X"$GCC" = "Xyes" ; then
33727                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33728    if test "x${CCVERSION}" = "x" ; then
33729       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33730    fi
33731    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33732    if test x"${CXXVERSION}" = x ; then
33733       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33734    fi
33735 fi
33736
33737 # clean up any old junk
33738 echo " "
33739 echo "Cleaning up"
33740 echo " "
33741 ${MAKE:-make} clean
33742
33743 echo "
33744 Configuration on `date`:
33745
33746    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33747    Bacula version:           ${BACULA} ${VERSION} (${DATE})
33748    Source code location:     ${srcdir}
33749    Install binaries:         ${sbindir}
33750    Install libraries:        ${libdir}
33751    Install config files:     ${sysconfdir}
33752    Scripts directory:        ${scriptdir}
33753    Archive directory:        ${archivedir}
33754    Working directory:        ${working_dir}
33755    PID directory:            ${piddir}
33756    Subsys directory:         ${subsysdir}
33757    Man directory:            ${mandir}
33758    Data directory:           ${datarootdir}
33759    Plugin directory:         ${plugindir}
33760    C Compiler:               ${CC} ${CCVERSION}
33761    C++ Compiler:             ${CXX} ${CXXVERSION}
33762    Compiler flags:           ${WCFLAGS} ${CFLAGS}
33763    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
33764    Libraries:                ${LIBS}
33765    Statically Linked Tools:  ${support_static_tools}
33766    Statically Linked FD:     ${support_static_fd}
33767    Statically Linked SD:     ${support_static_sd}
33768    Statically Linked DIR:    ${support_static_dir}
33769    Statically Linked CONS:   ${support_static_cons}
33770    Database backends:        ${db_backends}
33771    Database port:            ${db_port}
33772    Database name:            ${db_name}
33773    Database user:            ${db_user}
33774    Database SSL options:     ${db_ssl_options}
33775
33776    Job Output Email:         ${job_email}
33777    Traceback Email:          ${dump_email}
33778    SMTP Host Address:        ${smtp_host}
33779
33780    Director Port:            ${dir_port}
33781    File daemon Port:         ${fd_port}
33782    Storage daemon Port:      ${sd_port}
33783
33784    Director User:            ${dir_user}
33785    Director Group:           ${dir_group}
33786    Storage Daemon User:      ${sd_user}
33787    Storage DaemonGroup:      ${sd_group}
33788    File Daemon User:         ${fd_user}
33789    File Daemon Group:        ${fd_group}
33790
33791    Large file support:       $largefile_support
33792    Bacula conio support:     ${got_conio} ${CONS_LIBS}
33793    readline support:         ${got_readline} ${PRTREADLINE_SRC}
33794    TCP Wrappers support:     ${TCPW_MSG} ${WRAPLIBS}
33795    TLS support:              ${support_tls}
33796    Encryption support:       ${support_crypto}
33797    ZLIB support:             ${have_zlib}
33798    LZO support:              ${have_lzo}
33799    enable-smartalloc:        ${support_smartalloc}
33800    enable-lockmgr:           ${support_lockmgr}
33801    bat support:              ${support_bat}
33802    client-only:              ${build_client_only}
33803    build-dird:               ${build_dird}
33804    build-stored:             ${build_stored}
33805    Plugin support:           ${have_plugins}
33806    AFS support:              ${have_afs}
33807    ACL support:              ${have_acl}
33808    XATTR support:            ${have_xattr}
33809    systemd support:          ${support_systemd} ${SYSTEMD_UNITDIR}
33810    Batch insert enabled:     ${batch_insert_db_backends}
33811
33812   " > config.out
33813
33814 # create a small shell script useful for support with
33815 # configure options and config.out info
33816 cat > scripts/bacula_config << EOF
33817 #!/bin/sh
33818 cat << __EOC__
33819 $ $0 $ac_configure_args
33820 EOF
33821 cat config.out >> scripts/bacula_config
33822 echo __EOC__ >> scripts/bacula_config
33823 chmod 755 scripts/bacula_config
33824
33825 cat config.out