145be42078905c237c672c740769564bfff779a7
[platform/upstream/cryptsetup.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for cryptsetup 2.3.3.
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='cryptsetup'
589 PACKAGE_TARNAME='cryptsetup'
590 PACKAGE_VERSION='2.3.3'
591 PACKAGE_STRING='cryptsetup 2.3.3'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="src/cryptsetup.c"
596 ac_default_prefix=/usr
597 # Factoring default headers for most tests.
598 ac_includes_default="\
599 #include <stdio.h>
600 #ifdef HAVE_SYS_TYPES_H
601 # include <sys/types.h>
602 #endif
603 #ifdef HAVE_SYS_STAT_H
604 # include <sys/stat.h>
605 #endif
606 #ifdef STDC_HEADERS
607 # include <stdlib.h>
608 # include <stddef.h>
609 #else
610 # ifdef HAVE_STDLIB_H
611 #  include <stdlib.h>
612 # endif
613 #endif
614 #ifdef HAVE_STRING_H
615 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616 #  include <memory.h>
617 # endif
618 # include <string.h>
619 #endif
620 #ifdef HAVE_STRINGS_H
621 # include <strings.h>
622 #endif
623 #ifdef HAVE_INTTYPES_H
624 # include <inttypes.h>
625 #endif
626 #ifdef HAVE_STDINT_H
627 # include <stdint.h>
628 #endif
629 #ifdef HAVE_UNISTD_H
630 # include <unistd.h>
631 #endif"
632
633 gt_needs=
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 DEFAULT_LUKS2_LOCK_DIR_PERMS
639 DEFAULT_LUKS2_LOCK_PATH
640 CRYPTSETUP_TMPFILE_FALSE
641 CRYPTSETUP_TMPFILE_TRUE
642 DEFAULT_TMPFILESDIR
643 LIBCRYPTSETUP_VERSION_INFO
644 LIBCRYPTSETUP_VERSION
645 CRYPTO_STATIC_LIBS
646 CRYPTO_LIBS
647 CRYPTO_CFLAGS
648 PASSWDQC_LIBS
649 PWQUALITY_STATIC_LIBS
650 systemd_tmpfilesdir
651 DEVMAPPER_STATIC_LIBS
652 DEVMAPPER_STATIC_CFLAGS
653 HAVE_BLKID_STEP_BACK_FALSE
654 HAVE_BLKID_STEP_BACK_TRUE
655 HAVE_BLKID_WIPE_FALSE
656 HAVE_BLKID_WIPE_TRUE
657 HAVE_BLKID_FALSE
658 HAVE_BLKID_TRUE
659 BLKID_LIBS
660 BLKID_CFLAGS
661 CRYPTO_INTERNAL_SSE_ARGON2_FALSE
662 CRYPTO_INTERNAL_SSE_ARGON2_TRUE
663 CRYPTO_INTERNAL_ARGON2_FALSE
664 CRYPTO_INTERNAL_ARGON2_TRUE
665 LIBARGON2_LIBS
666 LIBARGON2_CFLAGS
667 CRYPTO_INTERNAL_PBKDF2_FALSE
668 CRYPTO_INTERNAL_PBKDF2_TRUE
669 CRYPTO_BACKEND_NETTLE_FALSE
670 CRYPTO_BACKEND_NETTLE_TRUE
671 CRYPTO_BACKEND_KERNEL_FALSE
672 CRYPTO_BACKEND_KERNEL_TRUE
673 CRYPTO_BACKEND_NSS_FALSE
674 CRYPTO_BACKEND_NSS_TRUE
675 CRYPTO_BACKEND_OPENSSL_FALSE
676 CRYPTO_BACKEND_OPENSSL_TRUE
677 CRYPTO_BACKEND_GCRYPT_FALSE
678 CRYPTO_BACKEND_GCRYPT_TRUE
679 NSS_LIBS
680 NSS_CFLAGS
681 OPENSSL_STATIC_LIBS
682 OPENSSL_STATIC_CFLAGS
683 OPENSSL_LIBS
684 OPENSSL_CFLAGS
685 LIBGCRYPT_LIBS
686 LIBGCRYPT_CFLAGS
687 LIBGCRYPT_CONFIG
688 JSON_C_LIBS
689 JSON_C_CFLAGS
690 DEVMAPPER_LIBS
691 DEVMAPPER_CFLAGS
692 INTEGRITYSETUP_FALSE
693 INTEGRITYSETUP_TRUE
694 REENCRYPT_FALSE
695 REENCRYPT_TRUE
696 VERITYSETUP_FALSE
697 VERITYSETUP_TRUE
698 CRYPTSETUP_FALSE
699 CRYPTSETUP_TRUE
700 STATIC_TOOLS_FALSE
701 STATIC_TOOLS_TRUE
702 PWQUALITY_LIBS
703 PWQUALITY_CFLAGS
704 POPT_LIBS
705 POSUB
706 LTLIBINTL
707 LIBINTL
708 INTLLIBS
709 INTL_MACOSX_LIBS
710 XGETTEXT_EXTRA_OPTIONS
711 MSGMERGE
712 XGETTEXT_015
713 XGETTEXT
714 GMSGFMT_015
715 MSGFMT_015
716 GMSGFMT
717 MSGFMT
718 GETTEXT_MACRO_VERSION
719 USE_NLS
720 UUID_LIBS
721 KERNEL_KEYRING_FALSE
722 KERNEL_KEYRING_TRUE
723 LTLIBICONV
724 LIBICONV
725 PKG_CONFIG_LIBDIR
726 PKG_CONFIG_PATH
727 PKG_CONFIG
728 LT_SYS_LIBRARY_PATH
729 OTOOL64
730 OTOOL
731 LIPO
732 NMEDIT
733 DSYMUTIL
734 MANIFEST_TOOL
735 RANLIB
736 ac_ct_AR
737 AR
738 DLLTOOL
739 OBJDUMP
740 LN_S
741 NM
742 ac_ct_DUMPBIN
743 DUMPBIN
744 LD
745 FGREP
746 SED
747 LIBTOOL
748 EGREP
749 GREP
750 CPP
751 am__fastdepCC_FALSE
752 am__fastdepCC_TRUE
753 CCDEPMODE
754 am__nodep
755 AMDEPBACKSLASH
756 AMDEP_FALSE
757 AMDEP_TRUE
758 am__include
759 DEPDIR
760 OBJEXT
761 EXEEXT
762 ac_ct_CC
763 CPPFLAGS
764 LDFLAGS
765 CFLAGS
766 CC
767 host_os
768 host_vendor
769 host_cpu
770 host
771 build_os
772 build_vendor
773 build_cpu
774 build
775 am__untar
776 am__tar
777 AMTAR
778 am__leading_dot
779 SET_MAKE
780 AWK
781 mkdir_p
782 MKDIR_P
783 INSTALL_STRIP_PROGRAM
784 STRIP
785 install_sh
786 MAKEINFO
787 AUTOHEADER
788 AUTOMAKE
789 AUTOCONF
790 ACLOCAL
791 VERSION
792 PACKAGE
793 CYGPATH_W
794 am__isrc
795 INSTALL_DATA
796 INSTALL_SCRIPT
797 INSTALL_PROGRAM
798 AM_BACKSLASH
799 AM_DEFAULT_VERBOSITY
800 AM_DEFAULT_V
801 AM_V
802 target_alias
803 host_alias
804 build_alias
805 LIBS
806 ECHO_T
807 ECHO_N
808 ECHO_C
809 DEFS
810 mandir
811 localedir
812 libdir
813 psdir
814 pdfdir
815 dvidir
816 htmldir
817 infodir
818 docdir
819 oldincludedir
820 includedir
821 runstatedir
822 localstatedir
823 sharedstatedir
824 sysconfdir
825 datadir
826 datarootdir
827 libexecdir
828 sbindir
829 bindir
830 program_transform_name
831 prefix
832 exec_prefix
833 PACKAGE_URL
834 PACKAGE_BUGREPORT
835 PACKAGE_STRING
836 PACKAGE_VERSION
837 PACKAGE_TARNAME
838 PACKAGE_NAME
839 PATH_SEPARATOR
840 SHELL
841 am__quote'
842 ac_subst_files=''
843 ac_user_opts='
844 enable_option_checking
845 enable_silent_rules
846 enable_dependency_tracking
847 enable_static
848 enable_shared
849 with_pic
850 enable_fast_install
851 with_aix_soname
852 with_gnu_ld
853 with_sysroot
854 enable_libtool_lock
855 enable_rpath
856 with_libiconv_prefix
857 enable_keyring
858 enable_largefile
859 enable_nls
860 with_libintl_prefix
861 enable_fips
862 enable_pwquality
863 enable_passwdqc
864 enable_static_cryptsetup
865 enable_cryptsetup
866 enable_veritysetup
867 enable_cryptsetup_reencrypt
868 enable_integritysetup
869 enable_selinux
870 enable_udev
871 with_crypto_backend
872 enable_kernel_crypto
873 enable_gcrypt_pbkdf2
874 with_libgcrypt_prefix
875 enable_internal_argon2
876 enable_libargon2
877 enable_internal_sse_argon2
878 enable_blkid
879 enable_dev_random
880 with_plain_hash
881 with_plain_cipher
882 with_plain_mode
883 with_plain_keybits
884 with_luks1_hash
885 with_luks1_cipher
886 with_luks1_mode
887 with_luks1_keybits
888 enable_luks_adjust_xts_keysize
889 with_luks2_pbkdf
890 with_luks1_iter_time
891 with_luks2_iter_time
892 with_luks2_memory_kb
893 with_luks2_parallel_threads
894 with_luks2_keyslot_cipher
895 with_luks2_keyslot_keybits
896 with_loopaes_cipher
897 with_loopaes_keybits
898 with_keyfile_size_maxkb
899 with_passphrase_size_max
900 with_verity_hash
901 with_verity_data_block
902 with_verity_hash_block
903 with_verity_salt_size
904 with_verity_fec_roots
905 with_tmpfilesdir
906 with_luks2_lock_path
907 with_luks2_lock_dir_perms
908 with_default_luks_format
909 '
910       ac_precious_vars='build_alias
911 host_alias
912 target_alias
913 CC
914 CFLAGS
915 LDFLAGS
916 LIBS
917 CPPFLAGS
918 CPP
919 LT_SYS_LIBRARY_PATH
920 PKG_CONFIG
921 PKG_CONFIG_PATH
922 PKG_CONFIG_LIBDIR
923 PWQUALITY_CFLAGS
924 PWQUALITY_LIBS
925 DEVMAPPER_CFLAGS
926 DEVMAPPER_LIBS
927 JSON_C_CFLAGS
928 JSON_C_LIBS
929 OPENSSL_CFLAGS
930 OPENSSL_LIBS
931 OPENSSL_STATIC_CFLAGS
932 OPENSSL_STATIC_LIBS
933 NSS_CFLAGS
934 NSS_LIBS
935 LIBARGON2_CFLAGS
936 LIBARGON2_LIBS
937 BLKID_CFLAGS
938 BLKID_LIBS
939 DEVMAPPER_STATIC_CFLAGS
940 DEVMAPPER_STATIC_LIBS
941 systemd_tmpfilesdir'
942
943
944 # Initialize some variables set by options.
945 ac_init_help=
946 ac_init_version=false
947 ac_unrecognized_opts=
948 ac_unrecognized_sep=
949 # The variables have the same names as the options, with
950 # dashes changed to underlines.
951 cache_file=/dev/null
952 exec_prefix=NONE
953 no_create=
954 no_recursion=
955 prefix=NONE
956 program_prefix=NONE
957 program_suffix=NONE
958 program_transform_name=s,x,x,
959 silent=
960 site=
961 srcdir=
962 verbose=
963 x_includes=NONE
964 x_libraries=NONE
965
966 # Installation directory options.
967 # These are left unexpanded so users can "make install exec_prefix=/foo"
968 # and all the variables that are supposed to be based on exec_prefix
969 # by default will actually change.
970 # Use braces instead of parens because sh, perl, etc. also accept them.
971 # (The list follows the same order as the GNU Coding Standards.)
972 bindir='${exec_prefix}/bin'
973 sbindir='${exec_prefix}/sbin'
974 libexecdir='${exec_prefix}/libexec'
975 datarootdir='${prefix}/share'
976 datadir='${datarootdir}'
977 sysconfdir='${prefix}/etc'
978 sharedstatedir='${prefix}/com'
979 localstatedir='${prefix}/var'
980 runstatedir='${localstatedir}/run'
981 includedir='${prefix}/include'
982 oldincludedir='/usr/include'
983 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
984 infodir='${datarootdir}/info'
985 htmldir='${docdir}'
986 dvidir='${docdir}'
987 pdfdir='${docdir}'
988 psdir='${docdir}'
989 libdir='${exec_prefix}/lib'
990 localedir='${datarootdir}/locale'
991 mandir='${datarootdir}/man'
992
993 ac_prev=
994 ac_dashdash=
995 for ac_option
996 do
997   # If the previous option needs an argument, assign it.
998   if test -n "$ac_prev"; then
999     eval $ac_prev=\$ac_option
1000     ac_prev=
1001     continue
1002   fi
1003
1004   case $ac_option in
1005   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006   *=)   ac_optarg= ;;
1007   *)    ac_optarg=yes ;;
1008   esac
1009
1010   # Accept the important Cygnus configure options, so we can diagnose typos.
1011
1012   case $ac_dashdash$ac_option in
1013   --)
1014     ac_dashdash=yes ;;
1015
1016   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017     ac_prev=bindir ;;
1018   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019     bindir=$ac_optarg ;;
1020
1021   -build | --build | --buil | --bui | --bu)
1022     ac_prev=build_alias ;;
1023   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024     build_alias=$ac_optarg ;;
1025
1026   -cache-file | --cache-file | --cache-fil | --cache-fi \
1027   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028     ac_prev=cache_file ;;
1029   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031     cache_file=$ac_optarg ;;
1032
1033   --config-cache | -C)
1034     cache_file=config.cache ;;
1035
1036   -datadir | --datadir | --datadi | --datad)
1037     ac_prev=datadir ;;
1038   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039     datadir=$ac_optarg ;;
1040
1041   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042   | --dataroo | --dataro | --datar)
1043     ac_prev=datarootdir ;;
1044   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046     datarootdir=$ac_optarg ;;
1047
1048   -disable-* | --disable-*)
1049     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050     # Reject names that are not valid shell variable names.
1051     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052       as_fn_error $? "invalid feature name: $ac_useropt"
1053     ac_useropt_orig=$ac_useropt
1054     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055     case $ac_user_opts in
1056       *"
1057 "enable_$ac_useropt"
1058 "*) ;;
1059       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1060          ac_unrecognized_sep=', ';;
1061     esac
1062     eval enable_$ac_useropt=no ;;
1063
1064   -docdir | --docdir | --docdi | --doc | --do)
1065     ac_prev=docdir ;;
1066   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067     docdir=$ac_optarg ;;
1068
1069   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1070     ac_prev=dvidir ;;
1071   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072     dvidir=$ac_optarg ;;
1073
1074   -enable-* | --enable-*)
1075     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076     # Reject names that are not valid shell variable names.
1077     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078       as_fn_error $? "invalid feature name: $ac_useropt"
1079     ac_useropt_orig=$ac_useropt
1080     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081     case $ac_user_opts in
1082       *"
1083 "enable_$ac_useropt"
1084 "*) ;;
1085       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1086          ac_unrecognized_sep=', ';;
1087     esac
1088     eval enable_$ac_useropt=\$ac_optarg ;;
1089
1090   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092   | --exec | --exe | --ex)
1093     ac_prev=exec_prefix ;;
1094   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096   | --exec=* | --exe=* | --ex=*)
1097     exec_prefix=$ac_optarg ;;
1098
1099   -gas | --gas | --ga | --g)
1100     # Obsolete; use --with-gas.
1101     with_gas=yes ;;
1102
1103   -help | --help | --hel | --he | -h)
1104     ac_init_help=long ;;
1105   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106     ac_init_help=recursive ;;
1107   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108     ac_init_help=short ;;
1109
1110   -host | --host | --hos | --ho)
1111     ac_prev=host_alias ;;
1112   -host=* | --host=* | --hos=* | --ho=*)
1113     host_alias=$ac_optarg ;;
1114
1115   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116     ac_prev=htmldir ;;
1117   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118   | --ht=*)
1119     htmldir=$ac_optarg ;;
1120
1121   -includedir | --includedir | --includedi | --included | --include \
1122   | --includ | --inclu | --incl | --inc)
1123     ac_prev=includedir ;;
1124   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125   | --includ=* | --inclu=* | --incl=* | --inc=*)
1126     includedir=$ac_optarg ;;
1127
1128   -infodir | --infodir | --infodi | --infod | --info | --inf)
1129     ac_prev=infodir ;;
1130   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131     infodir=$ac_optarg ;;
1132
1133   -libdir | --libdir | --libdi | --libd)
1134     ac_prev=libdir ;;
1135   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136     libdir=$ac_optarg ;;
1137
1138   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139   | --libexe | --libex | --libe)
1140     ac_prev=libexecdir ;;
1141   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142   | --libexe=* | --libex=* | --libe=*)
1143     libexecdir=$ac_optarg ;;
1144
1145   -localedir | --localedir | --localedi | --localed | --locale)
1146     ac_prev=localedir ;;
1147   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148     localedir=$ac_optarg ;;
1149
1150   -localstatedir | --localstatedir | --localstatedi | --localstated \
1151   | --localstate | --localstat | --localsta | --localst | --locals)
1152     ac_prev=localstatedir ;;
1153   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155     localstatedir=$ac_optarg ;;
1156
1157   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158     ac_prev=mandir ;;
1159   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160     mandir=$ac_optarg ;;
1161
1162   -nfp | --nfp | --nf)
1163     # Obsolete; use --without-fp.
1164     with_fp=no ;;
1165
1166   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167   | --no-cr | --no-c | -n)
1168     no_create=yes ;;
1169
1170   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172     no_recursion=yes ;;
1173
1174   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176   | --oldin | --oldi | --old | --ol | --o)
1177     ac_prev=oldincludedir ;;
1178   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181     oldincludedir=$ac_optarg ;;
1182
1183   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184     ac_prev=prefix ;;
1185   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186     prefix=$ac_optarg ;;
1187
1188   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189   | --program-pre | --program-pr | --program-p)
1190     ac_prev=program_prefix ;;
1191   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193     program_prefix=$ac_optarg ;;
1194
1195   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196   | --program-suf | --program-su | --program-s)
1197     ac_prev=program_suffix ;;
1198   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200     program_suffix=$ac_optarg ;;
1201
1202   -program-transform-name | --program-transform-name \
1203   | --program-transform-nam | --program-transform-na \
1204   | --program-transform-n | --program-transform- \
1205   | --program-transform | --program-transfor \
1206   | --program-transfo | --program-transf \
1207   | --program-trans | --program-tran \
1208   | --progr-tra | --program-tr | --program-t)
1209     ac_prev=program_transform_name ;;
1210   -program-transform-name=* | --program-transform-name=* \
1211   | --program-transform-nam=* | --program-transform-na=* \
1212   | --program-transform-n=* | --program-transform-=* \
1213   | --program-transform=* | --program-transfor=* \
1214   | --program-transfo=* | --program-transf=* \
1215   | --program-trans=* | --program-tran=* \
1216   | --progr-tra=* | --program-tr=* | --program-t=*)
1217     program_transform_name=$ac_optarg ;;
1218
1219   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220     ac_prev=pdfdir ;;
1221   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222     pdfdir=$ac_optarg ;;
1223
1224   -psdir | --psdir | --psdi | --psd | --ps)
1225     ac_prev=psdir ;;
1226   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227     psdir=$ac_optarg ;;
1228
1229   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230   | -silent | --silent | --silen | --sile | --sil)
1231     silent=yes ;;
1232
1233   -runstatedir | --runstatedir | --runstatedi | --runstated \
1234   | --runstate | --runstat | --runsta | --runst | --runs \
1235   | --run | --ru | --r)
1236     ac_prev=runstatedir ;;
1237   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1238   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1239   | --run=* | --ru=* | --r=*)
1240     runstatedir=$ac_optarg ;;
1241
1242   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1243     ac_prev=sbindir ;;
1244   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1245   | --sbi=* | --sb=*)
1246     sbindir=$ac_optarg ;;
1247
1248   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1249   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1250   | --sharedst | --shareds | --shared | --share | --shar \
1251   | --sha | --sh)
1252     ac_prev=sharedstatedir ;;
1253   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1254   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1255   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1256   | --sha=* | --sh=*)
1257     sharedstatedir=$ac_optarg ;;
1258
1259   -site | --site | --sit)
1260     ac_prev=site ;;
1261   -site=* | --site=* | --sit=*)
1262     site=$ac_optarg ;;
1263
1264   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1265     ac_prev=srcdir ;;
1266   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1267     srcdir=$ac_optarg ;;
1268
1269   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1270   | --syscon | --sysco | --sysc | --sys | --sy)
1271     ac_prev=sysconfdir ;;
1272   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1273   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1274     sysconfdir=$ac_optarg ;;
1275
1276   -target | --target | --targe | --targ | --tar | --ta | --t)
1277     ac_prev=target_alias ;;
1278   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1279     target_alias=$ac_optarg ;;
1280
1281   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1282     verbose=yes ;;
1283
1284   -version | --version | --versio | --versi | --vers | -V)
1285     ac_init_version=: ;;
1286
1287   -with-* | --with-*)
1288     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1289     # Reject names that are not valid shell variable names.
1290     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291       as_fn_error $? "invalid package name: $ac_useropt"
1292     ac_useropt_orig=$ac_useropt
1293     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294     case $ac_user_opts in
1295       *"
1296 "with_$ac_useropt"
1297 "*) ;;
1298       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1299          ac_unrecognized_sep=', ';;
1300     esac
1301     eval with_$ac_useropt=\$ac_optarg ;;
1302
1303   -without-* | --without-*)
1304     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1305     # Reject names that are not valid shell variable names.
1306     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307       as_fn_error $? "invalid package name: $ac_useropt"
1308     ac_useropt_orig=$ac_useropt
1309     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1310     case $ac_user_opts in
1311       *"
1312 "with_$ac_useropt"
1313 "*) ;;
1314       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1315          ac_unrecognized_sep=', ';;
1316     esac
1317     eval with_$ac_useropt=no ;;
1318
1319   --x)
1320     # Obsolete; use --with-x.
1321     with_x=yes ;;
1322
1323   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1324   | --x-incl | --x-inc | --x-in | --x-i)
1325     ac_prev=x_includes ;;
1326   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1327   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1328     x_includes=$ac_optarg ;;
1329
1330   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1331   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1332     ac_prev=x_libraries ;;
1333   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1334   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1335     x_libraries=$ac_optarg ;;
1336
1337   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1338 Try \`$0 --help' for more information"
1339     ;;
1340
1341   *=*)
1342     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1343     # Reject names that are not valid shell variable names.
1344     case $ac_envvar in #(
1345       '' | [0-9]* | *[!_$as_cr_alnum]* )
1346       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1347     esac
1348     eval $ac_envvar=\$ac_optarg
1349     export $ac_envvar ;;
1350
1351   *)
1352     # FIXME: should be removed in autoconf 3.0.
1353     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1354     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1355       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1356     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1357     ;;
1358
1359   esac
1360 done
1361
1362 if test -n "$ac_prev"; then
1363   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1364   as_fn_error $? "missing argument to $ac_option"
1365 fi
1366
1367 if test -n "$ac_unrecognized_opts"; then
1368   case $enable_option_checking in
1369     no) ;;
1370     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1371     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1372   esac
1373 fi
1374
1375 # Check all directory arguments for consistency.
1376 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1377                 datadir sysconfdir sharedstatedir localstatedir includedir \
1378                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1379                 libdir localedir mandir runstatedir
1380 do
1381   eval ac_val=\$$ac_var
1382   # Remove trailing slashes.
1383   case $ac_val in
1384     */ )
1385       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1386       eval $ac_var=\$ac_val;;
1387   esac
1388   # Be sure to have absolute directory names.
1389   case $ac_val in
1390     [\\/$]* | ?:[\\/]* )  continue;;
1391     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1392   esac
1393   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1394 done
1395
1396 # There might be people who depend on the old broken behavior: `$host'
1397 # used to hold the argument of --host etc.
1398 # FIXME: To remove some day.
1399 build=$build_alias
1400 host=$host_alias
1401 target=$target_alias
1402
1403 # FIXME: To remove some day.
1404 if test "x$host_alias" != x; then
1405   if test "x$build_alias" = x; then
1406     cross_compiling=maybe
1407   elif test "x$build_alias" != "x$host_alias"; then
1408     cross_compiling=yes
1409   fi
1410 fi
1411
1412 ac_tool_prefix=
1413 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1414
1415 test "$silent" = yes && exec 6>/dev/null
1416
1417
1418 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1419 ac_ls_di=`ls -di .` &&
1420 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1421   as_fn_error $? "working directory cannot be determined"
1422 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1423   as_fn_error $? "pwd does not report name of working directory"
1424
1425
1426 # Find the source files, if location was not specified.
1427 if test -z "$srcdir"; then
1428   ac_srcdir_defaulted=yes
1429   # Try the directory containing this script, then the parent directory.
1430   ac_confdir=`$as_dirname -- "$as_myself" ||
1431 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1432          X"$as_myself" : 'X\(//\)[^/]' \| \
1433          X"$as_myself" : 'X\(//\)$' \| \
1434          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1435 $as_echo X"$as_myself" |
1436     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1437             s//\1/
1438             q
1439           }
1440           /^X\(\/\/\)[^/].*/{
1441             s//\1/
1442             q
1443           }
1444           /^X\(\/\/\)$/{
1445             s//\1/
1446             q
1447           }
1448           /^X\(\/\).*/{
1449             s//\1/
1450             q
1451           }
1452           s/.*/./; q'`
1453   srcdir=$ac_confdir
1454   if test ! -r "$srcdir/$ac_unique_file"; then
1455     srcdir=..
1456   fi
1457 else
1458   ac_srcdir_defaulted=no
1459 fi
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1461   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1462   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1463 fi
1464 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1465 ac_abs_confdir=`(
1466         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1467         pwd)`
1468 # When building in place, set srcdir=.
1469 if test "$ac_abs_confdir" = "$ac_pwd"; then
1470   srcdir=.
1471 fi
1472 # Remove unnecessary trailing slashes from srcdir.
1473 # Double slashes in file names in object file debugging info
1474 # mess up M-x gdb in Emacs.
1475 case $srcdir in
1476 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1477 esac
1478 for ac_var in $ac_precious_vars; do
1479   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1480   eval ac_env_${ac_var}_value=\$${ac_var}
1481   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1482   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1483 done
1484
1485 #
1486 # Report the --help message.
1487 #
1488 if test "$ac_init_help" = "long"; then
1489   # Omit some internal or obsolete options to make the list less imposing.
1490   # This message is too long to be a string in the A/UX 3.1 sh.
1491   cat <<_ACEOF
1492 \`configure' configures cryptsetup 2.3.3 to adapt to many kinds of systems.
1493
1494 Usage: $0 [OPTION]... [VAR=VALUE]...
1495
1496 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1497 VAR=VALUE.  See below for descriptions of some of the useful variables.
1498
1499 Defaults for the options are specified in brackets.
1500
1501 Configuration:
1502   -h, --help              display this help and exit
1503       --help=short        display options specific to this package
1504       --help=recursive    display the short help of all the included packages
1505   -V, --version           display version information and exit
1506   -q, --quiet, --silent   do not print \`checking ...' messages
1507       --cache-file=FILE   cache test results in FILE [disabled]
1508   -C, --config-cache      alias for \`--cache-file=config.cache'
1509   -n, --no-create         do not create output files
1510       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1511
1512 Installation directories:
1513   --prefix=PREFIX         install architecture-independent files in PREFIX
1514                           [$ac_default_prefix]
1515   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1516                           [PREFIX]
1517
1518 By default, \`make install' will install all the files in
1519 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1520 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1521 for instance \`--prefix=\$HOME'.
1522
1523 For better control, use the options below.
1524
1525 Fine tuning of the installation directories:
1526   --bindir=DIR            user executables [EPREFIX/bin]
1527   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1528   --libexecdir=DIR        program executables [EPREFIX/libexec]
1529   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1530   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1531   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1532   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1533   --libdir=DIR            object code libraries [EPREFIX/lib]
1534   --includedir=DIR        C header files [PREFIX/include]
1535   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1536   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1537   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1538   --infodir=DIR           info documentation [DATAROOTDIR/info]
1539   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1540   --mandir=DIR            man documentation [DATAROOTDIR/man]
1541   --docdir=DIR            documentation root [DATAROOTDIR/doc/cryptsetup]
1542   --htmldir=DIR           html documentation [DOCDIR]
1543   --dvidir=DIR            dvi documentation [DOCDIR]
1544   --pdfdir=DIR            pdf documentation [DOCDIR]
1545   --psdir=DIR             ps documentation [DOCDIR]
1546 _ACEOF
1547
1548   cat <<\_ACEOF
1549
1550 Program names:
1551   --program-prefix=PREFIX            prepend PREFIX to installed program names
1552   --program-suffix=SUFFIX            append SUFFIX to installed program names
1553   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1554
1555 System types:
1556   --build=BUILD     configure for building on BUILD [guessed]
1557   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1558 _ACEOF
1559 fi
1560
1561 if test -n "$ac_init_help"; then
1562   case $ac_init_help in
1563      short | recursive ) echo "Configuration of cryptsetup 2.3.3:";;
1564    esac
1565   cat <<\_ACEOF
1566
1567 Optional Features:
1568   --disable-option-checking  ignore unrecognized --enable/--with options
1569   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1570   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1571   --enable-silent-rules   less verbose build output (undo: "make V=1")
1572   --disable-silent-rules  verbose build output (undo: "make V=0")
1573   --enable-dependency-tracking
1574                           do not reject slow dependency extractors
1575   --disable-dependency-tracking
1576                           speeds up one-time build
1577   --enable-static[=PKGS]  build static libraries [default=no]
1578   --enable-shared[=PKGS]  build shared libraries [default=yes]
1579   --enable-fast-install[=PKGS]
1580                           optimize for fast installation [default=yes]
1581   --disable-libtool-lock  avoid locking (might break parallel builds)
1582   --disable-rpath         do not hardcode runtime library paths
1583   --disable-keyring       disable kernel keyring support and builtin kernel
1584                           keyring token
1585   --disable-largefile     omit support for large files
1586   --disable-nls           do not use Native Language Support
1587   --enable-fips           enable FIPS mode restrictions
1588   --enable-pwquality      enable password quality checking using pwquality
1589                           library
1590   --enable-passwdqc[=CONFIG_PATH]
1591                           enable password quality checking using passwdqc
1592                           library (optionally with CONFIG_PATH)
1593   --enable-static-cryptsetup
1594                           enable build of static version of tools
1595   --disable-cryptsetup    disable cryptsetup support
1596   --disable-veritysetup   disable veritysetup support
1597   --disable-cryptsetup-reencrypt
1598                           disable cryptsetup-reencrypt tool
1599   --disable-integritysetup
1600                           disable integritysetup support
1601   --disable-selinux       disable selinux support [default=auto]
1602   --disable-udev          disable udev support
1603   --disable-kernel_crypto disable kernel userspace crypto (no benchmark and
1604                           tcrypt)
1605                   --enable-gcrypt-pbkdf2  force enable internal gcrypt PBKDF2
1606   --disable-internal-argon2
1607                           disable internal implementation of Argon2 PBKDF
1608   --enable-libargon2      enable external libargon2 (PHC) library (disables
1609                           internal bundled version)
1610   --enable-internal-sse-argon2
1611                           enable internal SSE implementation of Argon2 PBKDF
1612   --disable-blkid         disable use of blkid for device signature detection
1613                           and wiping
1614   --enable-dev-random     use /dev/random by default for key generation
1615                           (otherwise use /dev/urandom)
1616   --disable-luks-adjust-xts-keysize
1617                           XTS mode requires two keys, double default LUKS
1618                           keysize if needed
1619
1620 Optional Packages:
1621   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1622   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1623   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1624                           both]
1625   --with-aix-soname=aix|svr4|both
1626                           shared library versioning (aka "SONAME") variant to
1627                           provide on AIX, [default=aix].
1628   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1629   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1630                           compiler's sysroot if not specified).
1631   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1632   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1633   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1634   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1635   --without-libintl-prefix     don't search for libintl in includedir and libdir
1636   --with-crypto_backend=BACKEND
1637                           crypto backend (gcrypt/openssl/nss/kernel/nettle)
1638                           [openssl]
1639   --with-libgcrypt-prefix=PFX
1640                           prefix where LIBGCRYPT is installed (optional)
1641   --with-plain-hash       default password hashing function for plain mode
1642                           [ripemd160]
1643   --with-plain-cipher     default cipher for plain mode [aes]
1644   --with-plain-mode       default cipher mode for plain mode
1645                           [cbc-essiv:sha256]
1646   --with-plain-keybits    default key length in bits for plain mode [256]
1647   --with-luks1-hash       default hash function for LUKS1 header [sha256]
1648   --with-luks1-cipher     default cipher for LUKS1 [aes]
1649   --with-luks1-mode       default cipher mode for LUKS1 [xts-plain64]
1650   --with-luks1-keybits    default key length in bits for LUKS1 [256]
1651   --with-luks2-pbkdf      default Default PBKDF algorithm (pbkdf2 or
1652                           argon2i/argon2id) for LUKS2 [argon2i]
1653   --with-luks1-iter-time  default PBKDF2 iteration time for LUKS1 (in ms)
1654                           [2000]
1655   --with-luks2-iter-time  default Argon2 PBKDF iteration time for LUKS2 (in
1656                           ms) [2000]
1657   --with-luks2-memory-kb  default Argon2 PBKDF memory cost for LUKS2 (in kB)
1658                           [1048576]
1659   --with-luks2-parallel-threads
1660                           default Argon2 PBKDF max parallel cost for LUKS2 (if
1661                           CPUs available) [4]
1662   --with-luks2-keyslot-cipher
1663                           default fallback cipher for LUKS2 keyslot (if data
1664                           encryption is incompatible) [aes-xts-plain64]
1665   --with-luks2-keyslot-keybits
1666                           default fallback key size for LUKS2 keyslot (if data
1667                           encryption is incompatible) [512]
1668   --with-loopaes-cipher   default cipher for loop-AES mode [aes]
1669   --with-loopaes-keybits  default key length in bits for loop-AES mode [256]
1670   --with-keyfile-size-maxkb
1671                           default maximum keyfile size (in KiB) [8192]
1672   --with-passphrase-size-max
1673                           default maximum keyfile size (in characters) [512]
1674   --with-verity-hash      default hash function for verity mode [sha256]
1675   --with-verity-data-block
1676                           default data block size for verity mode [4096]
1677   --with-verity-hash-block
1678                           default hash block size for verity mode [4096]
1679   --with-verity-salt-size default salt size for verity mode [32]
1680   --with-verity-fec-roots default parity bytes for verity FEC [2]
1681   --with-tmpfilesdir      default override default path to directory with
1682                           systemd temporary files []
1683   --with-luks2-lock-path  default path to directory for LUKSv2 locks
1684                           [/run/cryptsetup]
1685   --with-luks2-lock-dir-perms
1686                           default default luks2 locking directory permissions
1687                           [0700]
1688   --with-default-luks-format=FORMAT
1689                           default LUKS format version (LUKS1/LUKS2) [LUKS2]
1690
1691 Some influential environment variables:
1692   CC          C compiler command
1693   CFLAGS      C compiler flags
1694   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1695               nonstandard directory <lib dir>
1696   LIBS        libraries to pass to the linker, e.g. -l<library>
1697   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1698               you have headers in a nonstandard directory <include dir>
1699   CPP         C preprocessor
1700   LT_SYS_LIBRARY_PATH
1701               User-defined run-time library search path.
1702   PKG_CONFIG  path to pkg-config utility
1703   PKG_CONFIG_PATH
1704               directories to add to pkg-config's search path
1705   PKG_CONFIG_LIBDIR
1706               path overriding pkg-config's built-in search path
1707   PWQUALITY_CFLAGS
1708               C compiler flags for PWQUALITY, overriding pkg-config
1709   PWQUALITY_LIBS
1710               linker flags for PWQUALITY, overriding pkg-config
1711   DEVMAPPER_CFLAGS
1712               C compiler flags for DEVMAPPER, overriding pkg-config
1713   DEVMAPPER_LIBS
1714               linker flags for DEVMAPPER, overriding pkg-config
1715   JSON_C_CFLAGS
1716               C compiler flags for JSON_C, overriding pkg-config
1717   JSON_C_LIBS linker flags for JSON_C, overriding pkg-config
1718   OPENSSL_CFLAGS
1719               C compiler flags for OPENSSL, overriding pkg-config
1720   OPENSSL_LIBS
1721               linker flags for OPENSSL, overriding pkg-config
1722   OPENSSL_STATIC_CFLAGS
1723               C compiler flags for OPENSSL_STATIC, overriding pkg-config
1724   OPENSSL_STATIC_LIBS
1725               linker flags for OPENSSL_STATIC, overriding pkg-config
1726   NSS_CFLAGS  C compiler flags for NSS, overriding pkg-config
1727   NSS_LIBS    linker flags for NSS, overriding pkg-config
1728   LIBARGON2_CFLAGS
1729               C compiler flags for LIBARGON2, overriding pkg-config
1730   LIBARGON2_LIBS
1731               linker flags for LIBARGON2, overriding pkg-config
1732   BLKID_CFLAGS
1733               C compiler flags for BLKID, overriding pkg-config
1734   BLKID_LIBS  linker flags for BLKID, overriding pkg-config
1735   DEVMAPPER_STATIC_CFLAGS
1736               C compiler flags for DEVMAPPER_STATIC, overriding pkg-config
1737   DEVMAPPER_STATIC_LIBS
1738               linker flags for DEVMAPPER_STATIC, overriding pkg-config
1739   systemd_tmpfilesdir
1740               value of tmpfilesdir for systemd, overriding pkg-config
1741
1742 Use these variables to override the choices made by `configure' or to help
1743 it to find libraries and programs with nonstandard names/locations.
1744
1745 Report bugs to the package provider.
1746 _ACEOF
1747 ac_status=$?
1748 fi
1749
1750 if test "$ac_init_help" = "recursive"; then
1751   # If there are subdirs, report their specific --help.
1752   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1753     test -d "$ac_dir" ||
1754       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1755       continue
1756     ac_builddir=.
1757
1758 case "$ac_dir" in
1759 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1760 *)
1761   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1762   # A ".." for each directory in $ac_dir_suffix.
1763   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1764   case $ac_top_builddir_sub in
1765   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1766   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1767   esac ;;
1768 esac
1769 ac_abs_top_builddir=$ac_pwd
1770 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1771 # for backward compatibility:
1772 ac_top_builddir=$ac_top_build_prefix
1773
1774 case $srcdir in
1775   .)  # We are building in place.
1776     ac_srcdir=.
1777     ac_top_srcdir=$ac_top_builddir_sub
1778     ac_abs_top_srcdir=$ac_pwd ;;
1779   [\\/]* | ?:[\\/]* )  # Absolute name.
1780     ac_srcdir=$srcdir$ac_dir_suffix;
1781     ac_top_srcdir=$srcdir
1782     ac_abs_top_srcdir=$srcdir ;;
1783   *) # Relative name.
1784     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1785     ac_top_srcdir=$ac_top_build_prefix$srcdir
1786     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1787 esac
1788 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1789
1790     cd "$ac_dir" || { ac_status=$?; continue; }
1791     # Check for guested configure.
1792     if test -f "$ac_srcdir/configure.gnu"; then
1793       echo &&
1794       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1795     elif test -f "$ac_srcdir/configure"; then
1796       echo &&
1797       $SHELL "$ac_srcdir/configure" --help=recursive
1798     else
1799       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1800     fi || ac_status=$?
1801     cd "$ac_pwd" || { ac_status=$?; break; }
1802   done
1803 fi
1804
1805 test -n "$ac_init_help" && exit $ac_status
1806 if $ac_init_version; then
1807   cat <<\_ACEOF
1808 cryptsetup configure 2.3.3
1809 generated by GNU Autoconf 2.69
1810
1811 Copyright (C) 2012 Free Software Foundation, Inc.
1812 This configure script is free software; the Free Software Foundation
1813 gives unlimited permission to copy, distribute and modify it.
1814 _ACEOF
1815   exit
1816 fi
1817
1818 ## ------------------------ ##
1819 ## Autoconf initialization. ##
1820 ## ------------------------ ##
1821
1822 # ac_fn_c_try_compile LINENO
1823 # --------------------------
1824 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1825 ac_fn_c_try_compile ()
1826 {
1827   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828   rm -f conftest.$ac_objext
1829   if { { ac_try="$ac_compile"
1830 case "(($ac_try" in
1831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832   *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836   (eval "$ac_compile") 2>conftest.err
1837   ac_status=$?
1838   if test -s conftest.err; then
1839     grep -v '^ *+' conftest.err >conftest.er1
1840     cat conftest.er1 >&5
1841     mv -f conftest.er1 conftest.err
1842   fi
1843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844   test $ac_status = 0; } && {
1845          test -z "$ac_c_werror_flag" ||
1846          test ! -s conftest.err
1847        } && test -s conftest.$ac_objext; then :
1848   ac_retval=0
1849 else
1850   $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1852
1853         ac_retval=1
1854 fi
1855   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856   as_fn_set_status $ac_retval
1857
1858 } # ac_fn_c_try_compile
1859
1860 # ac_fn_c_try_cpp LINENO
1861 # ----------------------
1862 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1863 ac_fn_c_try_cpp ()
1864 {
1865   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866   if { { ac_try="$ac_cpp conftest.$ac_ext"
1867 case "(($ac_try" in
1868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869   *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1874   ac_status=$?
1875   if test -s conftest.err; then
1876     grep -v '^ *+' conftest.err >conftest.er1
1877     cat conftest.er1 >&5
1878     mv -f conftest.er1 conftest.err
1879   fi
1880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881   test $ac_status = 0; } > conftest.i && {
1882          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1883          test ! -s conftest.err
1884        }; then :
1885   ac_retval=0
1886 else
1887   $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1889
1890     ac_retval=1
1891 fi
1892   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893   as_fn_set_status $ac_retval
1894
1895 } # ac_fn_c_try_cpp
1896
1897 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1898 # -------------------------------------------------------
1899 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1900 # the include files in INCLUDES and setting the cache variable VAR
1901 # accordingly.
1902 ac_fn_c_check_header_mongrel ()
1903 {
1904   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905   if eval \${$3+:} false; then :
1906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if eval \${$3+:} false; then :
1909   $as_echo_n "(cached) " >&6
1910 fi
1911 eval ac_res=\$$3
1912                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1914 else
1915   # Is the header compilable?
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1917 $as_echo_n "checking $2 usability... " >&6; }
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h.  */
1920 $4
1921 #include <$2>
1922 _ACEOF
1923 if ac_fn_c_try_compile "$LINENO"; then :
1924   ac_header_compiler=yes
1925 else
1926   ac_header_compiler=no
1927 fi
1928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1930 $as_echo "$ac_header_compiler" >&6; }
1931
1932 # Is the header present?
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1934 $as_echo_n "checking $2 presence... " >&6; }
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h.  */
1937 #include <$2>
1938 _ACEOF
1939 if ac_fn_c_try_cpp "$LINENO"; then :
1940   ac_header_preproc=yes
1941 else
1942   ac_header_preproc=no
1943 fi
1944 rm -f conftest.err conftest.i conftest.$ac_ext
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1946 $as_echo "$ac_header_preproc" >&6; }
1947
1948 # So?  What about this header?
1949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1950   yes:no: )
1951     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1952 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1953     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1955     ;;
1956   no:yes:* )
1957     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1958 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1959     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1960 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1961     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1962 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1963     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1964 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1965     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1966 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1967     ;;
1968 esac
1969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970 $as_echo_n "checking for $2... " >&6; }
1971 if eval \${$3+:} false; then :
1972   $as_echo_n "(cached) " >&6
1973 else
1974   eval "$3=\$ac_header_compiler"
1975 fi
1976 eval ac_res=\$$3
1977                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978 $as_echo "$ac_res" >&6; }
1979 fi
1980   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981
1982 } # ac_fn_c_check_header_mongrel
1983
1984 # ac_fn_c_try_run LINENO
1985 # ----------------------
1986 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1987 # that executables *can* be run.
1988 ac_fn_c_try_run ()
1989 {
1990   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991   if { { ac_try="$ac_link"
1992 case "(($ac_try" in
1993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994   *) ac_try_echo=$ac_try;;
1995 esac
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998   (eval "$ac_link") 2>&5
1999   ac_status=$?
2000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2002   { { case "(($ac_try" in
2003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2004   *) ac_try_echo=$ac_try;;
2005 esac
2006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2007 $as_echo "$ac_try_echo"; } >&5
2008   (eval "$ac_try") 2>&5
2009   ac_status=$?
2010   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011   test $ac_status = 0; }; }; then :
2012   ac_retval=0
2013 else
2014   $as_echo "$as_me: program exited with status $ac_status" >&5
2015        $as_echo "$as_me: failed program was:" >&5
2016 sed 's/^/| /' conftest.$ac_ext >&5
2017
2018        ac_retval=$ac_status
2019 fi
2020   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2021   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022   as_fn_set_status $ac_retval
2023
2024 } # ac_fn_c_try_run
2025
2026 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2027 # -------------------------------------------------------
2028 # Tests whether HEADER exists and can be compiled using the include files in
2029 # INCLUDES, setting the cache variable VAR accordingly.
2030 ac_fn_c_check_header_compile ()
2031 {
2032   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034 $as_echo_n "checking for $2... " >&6; }
2035 if eval \${$3+:} false; then :
2036   $as_echo_n "(cached) " >&6
2037 else
2038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h.  */
2040 $4
2041 #include <$2>
2042 _ACEOF
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044   eval "$3=yes"
2045 else
2046   eval "$3=no"
2047 fi
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 fi
2050 eval ac_res=\$$3
2051                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2053   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054
2055 } # ac_fn_c_check_header_compile
2056
2057 # ac_fn_c_try_link LINENO
2058 # -----------------------
2059 # Try to link conftest.$ac_ext, and return whether this succeeded.
2060 ac_fn_c_try_link ()
2061 {
2062   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063   rm -f conftest.$ac_objext conftest$ac_exeext
2064   if { { ac_try="$ac_link"
2065 case "(($ac_try" in
2066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2067   *) ac_try_echo=$ac_try;;
2068 esac
2069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2070 $as_echo "$ac_try_echo"; } >&5
2071   (eval "$ac_link") 2>conftest.err
2072   ac_status=$?
2073   if test -s conftest.err; then
2074     grep -v '^ *+' conftest.err >conftest.er1
2075     cat conftest.er1 >&5
2076     mv -f conftest.er1 conftest.err
2077   fi
2078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079   test $ac_status = 0; } && {
2080          test -z "$ac_c_werror_flag" ||
2081          test ! -s conftest.err
2082        } && test -s conftest$ac_exeext && {
2083          test "$cross_compiling" = yes ||
2084          test -x conftest$ac_exeext
2085        }; then :
2086   ac_retval=0
2087 else
2088   $as_echo "$as_me: failed program was:" >&5
2089 sed 's/^/| /' conftest.$ac_ext >&5
2090
2091         ac_retval=1
2092 fi
2093   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2094   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2095   # interfere with the next link command; also delete a directory that is
2096   # left behind by Apple's compiler.  We do this before executing the actions.
2097   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2098   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099   as_fn_set_status $ac_retval
2100
2101 } # ac_fn_c_try_link
2102
2103 # ac_fn_c_check_func LINENO FUNC VAR
2104 # ----------------------------------
2105 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2106 ac_fn_c_check_func ()
2107 {
2108   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2110 $as_echo_n "checking for $2... " >&6; }
2111 if eval \${$3+:} false; then :
2112   $as_echo_n "(cached) " >&6
2113 else
2114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h.  */
2116 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2117    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2118 #define $2 innocuous_$2
2119
2120 /* System header to define __stub macros and hopefully few prototypes,
2121     which can conflict with char $2 (); below.
2122     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2123     <limits.h> exists even on freestanding compilers.  */
2124
2125 #ifdef __STDC__
2126 # include <limits.h>
2127 #else
2128 # include <assert.h>
2129 #endif
2130
2131 #undef $2
2132
2133 /* Override any GCC internal prototype to avoid an error.
2134    Use char because int might match the return type of a GCC
2135    builtin and then its argument prototype would still apply.  */
2136 #ifdef __cplusplus
2137 extern "C"
2138 #endif
2139 char $2 ();
2140 /* The GNU C library defines this for functions which it implements
2141     to always fail with ENOSYS.  Some functions are actually named
2142     something starting with __ and the normal name is an alias.  */
2143 #if defined __stub_$2 || defined __stub___$2
2144 choke me
2145 #endif
2146
2147 int
2148 main ()
2149 {
2150 return $2 ();
2151   ;
2152   return 0;
2153 }
2154 _ACEOF
2155 if ac_fn_c_try_link "$LINENO"; then :
2156   eval "$3=yes"
2157 else
2158   eval "$3=no"
2159 fi
2160 rm -f core conftest.err conftest.$ac_objext \
2161     conftest$ac_exeext conftest.$ac_ext
2162 fi
2163 eval ac_res=\$$3
2164                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165 $as_echo "$ac_res" >&6; }
2166   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167
2168 } # ac_fn_c_check_func
2169
2170 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2171 # ---------------------------------------------
2172 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2173 # accordingly.
2174 ac_fn_c_check_decl ()
2175 {
2176   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177   as_decl_name=`echo $2|sed 's/ *(.*//'`
2178   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2180 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2181 if eval \${$3+:} false; then :
2182   $as_echo_n "(cached) " >&6
2183 else
2184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h.  */
2186 $4
2187 int
2188 main ()
2189 {
2190 #ifndef $as_decl_name
2191 #ifdef __cplusplus
2192   (void) $as_decl_use;
2193 #else
2194   (void) $as_decl_name;
2195 #endif
2196 #endif
2197
2198   ;
2199   return 0;
2200 }
2201 _ACEOF
2202 if ac_fn_c_try_compile "$LINENO"; then :
2203   eval "$3=yes"
2204 else
2205   eval "$3=no"
2206 fi
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 fi
2209 eval ac_res=\$$3
2210                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2211 $as_echo "$ac_res" >&6; }
2212   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2213
2214 } # ac_fn_c_check_decl
2215
2216 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2217 # -------------------------------------------
2218 # Tests whether TYPE exists after having included INCLUDES, setting cache
2219 # variable VAR accordingly.
2220 ac_fn_c_check_type ()
2221 {
2222   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224 $as_echo_n "checking for $2... " >&6; }
2225 if eval \${$3+:} false; then :
2226   $as_echo_n "(cached) " >&6
2227 else
2228   eval "$3=no"
2229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h.  */
2231 $4
2232 int
2233 main ()
2234 {
2235 if (sizeof ($2))
2236          return 0;
2237   ;
2238   return 0;
2239 }
2240 _ACEOF
2241 if ac_fn_c_try_compile "$LINENO"; then :
2242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h.  */
2244 $4
2245 int
2246 main ()
2247 {
2248 if (sizeof (($2)))
2249             return 0;
2250   ;
2251   return 0;
2252 }
2253 _ACEOF
2254 if ac_fn_c_try_compile "$LINENO"; then :
2255
2256 else
2257   eval "$3=yes"
2258 fi
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260 fi
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 fi
2263 eval ac_res=\$$3
2264                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2265 $as_echo "$ac_res" >&6; }
2266   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2267
2268 } # ac_fn_c_check_type
2269 cat >config.log <<_ACEOF
2270 This file contains any messages produced by compilers while
2271 running configure, to aid debugging if configure makes a mistake.
2272
2273 It was created by cryptsetup $as_me 2.3.3, which was
2274 generated by GNU Autoconf 2.69.  Invocation command line was
2275
2276   $ $0 $@
2277
2278 _ACEOF
2279 exec 5>>config.log
2280 {
2281 cat <<_ASUNAME
2282 ## --------- ##
2283 ## Platform. ##
2284 ## --------- ##
2285
2286 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2287 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2288 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2289 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2290 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2291
2292 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2293 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2294
2295 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2296 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2297 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2298 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2299 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2300 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2301 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2302
2303 _ASUNAME
2304
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 for as_dir in $PATH
2307 do
2308   IFS=$as_save_IFS
2309   test -z "$as_dir" && as_dir=.
2310     $as_echo "PATH: $as_dir"
2311   done
2312 IFS=$as_save_IFS
2313
2314 } >&5
2315
2316 cat >&5 <<_ACEOF
2317
2318
2319 ## ----------- ##
2320 ## Core tests. ##
2321 ## ----------- ##
2322
2323 _ACEOF
2324
2325
2326 # Keep a trace of the command line.
2327 # Strip out --no-create and --no-recursion so they do not pile up.
2328 # Strip out --silent because we don't want to record it for future runs.
2329 # Also quote any args containing shell meta-characters.
2330 # Make two passes to allow for proper duplicate-argument suppression.
2331 ac_configure_args=
2332 ac_configure_args0=
2333 ac_configure_args1=
2334 ac_must_keep_next=false
2335 for ac_pass in 1 2
2336 do
2337   for ac_arg
2338   do
2339     case $ac_arg in
2340     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2341     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2342     | -silent | --silent | --silen | --sile | --sil)
2343       continue ;;
2344     *\'*)
2345       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2346     esac
2347     case $ac_pass in
2348     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2349     2)
2350       as_fn_append ac_configure_args1 " '$ac_arg'"
2351       if test $ac_must_keep_next = true; then
2352         ac_must_keep_next=false # Got value, back to normal.
2353       else
2354         case $ac_arg in
2355           *=* | --config-cache | -C | -disable-* | --disable-* \
2356           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2357           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2358           | -with-* | --with-* | -without-* | --without-* | --x)
2359             case "$ac_configure_args0 " in
2360               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2361             esac
2362             ;;
2363           -* ) ac_must_keep_next=true ;;
2364         esac
2365       fi
2366       as_fn_append ac_configure_args " '$ac_arg'"
2367       ;;
2368     esac
2369   done
2370 done
2371 { ac_configure_args0=; unset ac_configure_args0;}
2372 { ac_configure_args1=; unset ac_configure_args1;}
2373
2374 # When interrupted or exit'd, cleanup temporary files, and complete
2375 # config.log.  We remove comments because anyway the quotes in there
2376 # would cause problems or look ugly.
2377 # WARNING: Use '\'' to represent an apostrophe within the trap.
2378 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2379 trap 'exit_status=$?
2380   # Save into config.log some information that might help in debugging.
2381   {
2382     echo
2383
2384     $as_echo "## ---------------- ##
2385 ## Cache variables. ##
2386 ## ---------------- ##"
2387     echo
2388     # The following way of writing the cache mishandles newlines in values,
2389 (
2390   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2391     eval ac_val=\$$ac_var
2392     case $ac_val in #(
2393     *${as_nl}*)
2394       case $ac_var in #(
2395       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2396 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2397       esac
2398       case $ac_var in #(
2399       _ | IFS | as_nl) ;; #(
2400       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2401       *) { eval $ac_var=; unset $ac_var;} ;;
2402       esac ;;
2403     esac
2404   done
2405   (set) 2>&1 |
2406     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2407     *${as_nl}ac_space=\ *)
2408       sed -n \
2409         "s/'\''/'\''\\\\'\'''\''/g;
2410           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2411       ;; #(
2412     *)
2413       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2414       ;;
2415     esac |
2416     sort
2417 )
2418     echo
2419
2420     $as_echo "## ----------------- ##
2421 ## Output variables. ##
2422 ## ----------------- ##"
2423     echo
2424     for ac_var in $ac_subst_vars
2425     do
2426       eval ac_val=\$$ac_var
2427       case $ac_val in
2428       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2429       esac
2430       $as_echo "$ac_var='\''$ac_val'\''"
2431     done | sort
2432     echo
2433
2434     if test -n "$ac_subst_files"; then
2435       $as_echo "## ------------------- ##
2436 ## File substitutions. ##
2437 ## ------------------- ##"
2438       echo
2439       for ac_var in $ac_subst_files
2440       do
2441         eval ac_val=\$$ac_var
2442         case $ac_val in
2443         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2444         esac
2445         $as_echo "$ac_var='\''$ac_val'\''"
2446       done | sort
2447       echo
2448     fi
2449
2450     if test -s confdefs.h; then
2451       $as_echo "## ----------- ##
2452 ## confdefs.h. ##
2453 ## ----------- ##"
2454       echo
2455       cat confdefs.h
2456       echo
2457     fi
2458     test "$ac_signal" != 0 &&
2459       $as_echo "$as_me: caught signal $ac_signal"
2460     $as_echo "$as_me: exit $exit_status"
2461   } >&5
2462   rm -f core *.core core.conftest.* &&
2463     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2464     exit $exit_status
2465 ' 0
2466 for ac_signal in 1 2 13 15; do
2467   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2468 done
2469 ac_signal=0
2470
2471 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2472 rm -f -r conftest* confdefs.h
2473
2474 $as_echo "/* confdefs.h */" > confdefs.h
2475
2476 # Predefined preprocessor variables.
2477
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_NAME "$PACKAGE_NAME"
2480 _ACEOF
2481
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2484 _ACEOF
2485
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2488 _ACEOF
2489
2490 cat >>confdefs.h <<_ACEOF
2491 #define PACKAGE_STRING "$PACKAGE_STRING"
2492 _ACEOF
2493
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2496 _ACEOF
2497
2498 cat >>confdefs.h <<_ACEOF
2499 #define PACKAGE_URL "$PACKAGE_URL"
2500 _ACEOF
2501
2502
2503 # Let the site file select an alternate cache file if it wants to.
2504 # Prefer an explicitly selected file to automatically selected ones.
2505 ac_site_file1=NONE
2506 ac_site_file2=NONE
2507 if test -n "$CONFIG_SITE"; then
2508   # We do not want a PATH search for config.site.
2509   case $CONFIG_SITE in #((
2510     -*)  ac_site_file1=./$CONFIG_SITE;;
2511     */*) ac_site_file1=$CONFIG_SITE;;
2512     *)   ac_site_file1=./$CONFIG_SITE;;
2513   esac
2514 elif test "x$prefix" != xNONE; then
2515   ac_site_file1=$prefix/share/config.site
2516   ac_site_file2=$prefix/etc/config.site
2517 else
2518   ac_site_file1=$ac_default_prefix/share/config.site
2519   ac_site_file2=$ac_default_prefix/etc/config.site
2520 fi
2521 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2522 do
2523   test "x$ac_site_file" = xNONE && continue
2524   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2525     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2526 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2527     sed 's/^/| /' "$ac_site_file" >&5
2528     . "$ac_site_file" \
2529       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2531 as_fn_error $? "failed to load site script $ac_site_file
2532 See \`config.log' for more details" "$LINENO" 5; }
2533   fi
2534 done
2535
2536 if test -r "$cache_file"; then
2537   # Some versions of bash will fail to source /dev/null (special files
2538   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2539   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2540     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2541 $as_echo "$as_me: loading cache $cache_file" >&6;}
2542     case $cache_file in
2543       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2544       *)                      . "./$cache_file";;
2545     esac
2546   fi
2547 else
2548   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2549 $as_echo "$as_me: creating cache $cache_file" >&6;}
2550   >$cache_file
2551 fi
2552
2553 gt_needs="$gt_needs need-ngettext"
2554 # Check that the precious variables saved in the cache have kept the same
2555 # value.
2556 ac_cache_corrupted=false
2557 for ac_var in $ac_precious_vars; do
2558   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2559   eval ac_new_set=\$ac_env_${ac_var}_set
2560   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2561   eval ac_new_val=\$ac_env_${ac_var}_value
2562   case $ac_old_set,$ac_new_set in
2563     set,)
2564       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2565 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2566       ac_cache_corrupted=: ;;
2567     ,set)
2568       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2569 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2570       ac_cache_corrupted=: ;;
2571     ,);;
2572     *)
2573       if test "x$ac_old_val" != "x$ac_new_val"; then
2574         # differences in whitespace do not lead to failure.
2575         ac_old_val_w=`echo x $ac_old_val`
2576         ac_new_val_w=`echo x $ac_new_val`
2577         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2578           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2579 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2580           ac_cache_corrupted=:
2581         else
2582           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2583 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2584           eval $ac_var=\$ac_old_val
2585         fi
2586         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2587 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2588         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2589 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2590       fi;;
2591   esac
2592   # Pass precious variables to config.status.
2593   if test "$ac_new_set" = set; then
2594     case $ac_new_val in
2595     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2596     *) ac_arg=$ac_var=$ac_new_val ;;
2597     esac
2598     case " $ac_configure_args " in
2599       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2600       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2601     esac
2602   fi
2603 done
2604 if $ac_cache_corrupted; then
2605   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2607   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2608 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2609   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2610 fi
2611 ## -------------------- ##
2612 ## Main body of script. ##
2613 ## -------------------- ##
2614
2615 ac_ext=c
2616 ac_cpp='$CPP $CPPFLAGS'
2617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2620
2621
2622
2623 LIBCRYPTSETUP_VERSION=$(echo $PACKAGE_VERSION | cut -f1 -d-)
2624 LIBCRYPTSETUP_VERSION_INFO=18:0:6
2625
2626 # Check whether --enable-silent-rules was given.
2627 if test "${enable_silent_rules+set}" = set; then :
2628   enableval=$enable_silent_rules;
2629 fi
2630
2631 case $enable_silent_rules in # (((
2632   yes) AM_DEFAULT_VERBOSITY=0;;
2633    no) AM_DEFAULT_VERBOSITY=1;;
2634     *) AM_DEFAULT_VERBOSITY=0;;
2635 esac
2636 am_make=${MAKE-make}
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2638 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2639 if ${am_cv_make_support_nested_variables+:} false; then :
2640   $as_echo_n "(cached) " >&6
2641 else
2642   if $as_echo 'TRUE=$(BAR$(V))
2643 BAR0=false
2644 BAR1=true
2645 V=1
2646 am__doit:
2647         @$(TRUE)
2648 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2649   am_cv_make_support_nested_variables=yes
2650 else
2651   am_cv_make_support_nested_variables=no
2652 fi
2653 fi
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2655 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2656 if test $am_cv_make_support_nested_variables = yes; then
2657     AM_V='$(V)'
2658   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2659 else
2660   AM_V=$AM_DEFAULT_VERBOSITY
2661   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2662 fi
2663 AM_BACKSLASH='\'
2664
2665
2666
2667
2668 ac_config_headers="$ac_config_headers config.h:config.h.in"
2669
2670
2671 # We do not want to run test in parallel. Really.
2672 # http://lists.gnu.org/archive/html/automake/2013-01/msg00060.html
2673
2674 # For old automake use this
2675 #AM_INIT_AUTOMAKE(dist-xz subdir-objects)
2676 am__api_version='1.16'
2677
2678 ac_aux_dir=
2679 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2680   if test -f "$ac_dir/install-sh"; then
2681     ac_aux_dir=$ac_dir
2682     ac_install_sh="$ac_aux_dir/install-sh -c"
2683     break
2684   elif test -f "$ac_dir/install.sh"; then
2685     ac_aux_dir=$ac_dir
2686     ac_install_sh="$ac_aux_dir/install.sh -c"
2687     break
2688   elif test -f "$ac_dir/shtool"; then
2689     ac_aux_dir=$ac_dir
2690     ac_install_sh="$ac_aux_dir/shtool install -c"
2691     break
2692   fi
2693 done
2694 if test -z "$ac_aux_dir"; then
2695   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2696 fi
2697
2698 # These three variables are undocumented and unsupported,
2699 # and are intended to be withdrawn in a future Autoconf release.
2700 # They can cause serious problems if a builder's source tree is in a directory
2701 # whose full name contains unusual characters.
2702 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2703 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2704 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2705
2706
2707 # Find a good install program.  We prefer a C program (faster),
2708 # so one script is as good as another.  But avoid the broken or
2709 # incompatible versions:
2710 # SysV /etc/install, /usr/sbin/install
2711 # SunOS /usr/etc/install
2712 # IRIX /sbin/install
2713 # AIX /bin/install
2714 # AmigaOS /C/install, which installs bootblocks on floppy discs
2715 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2716 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2717 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2718 # OS/2's system install, which has a completely different semantic
2719 # ./install, which can be erroneously created by make from ./install.sh.
2720 # Reject install programs that cannot install multiple files.
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2722 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2723 if test -z "$INSTALL"; then
2724 if ${ac_cv_path_install+:} false; then :
2725   $as_echo_n "(cached) " >&6
2726 else
2727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730   IFS=$as_save_IFS
2731   test -z "$as_dir" && as_dir=.
2732     # Account for people who put trailing slashes in PATH elements.
2733 case $as_dir/ in #((
2734   ./ | .// | /[cC]/* | \
2735   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2736   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2737   /usr/ucb/* ) ;;
2738   *)
2739     # OSF1 and SCO ODT 3.0 have their own names for install.
2740     # Don't use installbsd from OSF since it installs stuff as root
2741     # by default.
2742     for ac_prog in ginstall scoinst install; do
2743       for ac_exec_ext in '' $ac_executable_extensions; do
2744         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2745           if test $ac_prog = install &&
2746             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2747             # AIX install.  It has an incompatible calling convention.
2748             :
2749           elif test $ac_prog = install &&
2750             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2751             # program-specific install script used by HP pwplus--don't use.
2752             :
2753           else
2754             rm -rf conftest.one conftest.two conftest.dir
2755             echo one > conftest.one
2756             echo two > conftest.two
2757             mkdir conftest.dir
2758             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2759               test -s conftest.one && test -s conftest.two &&
2760               test -s conftest.dir/conftest.one &&
2761               test -s conftest.dir/conftest.two
2762             then
2763               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2764               break 3
2765             fi
2766           fi
2767         fi
2768       done
2769     done
2770     ;;
2771 esac
2772
2773   done
2774 IFS=$as_save_IFS
2775
2776 rm -rf conftest.one conftest.two conftest.dir
2777
2778 fi
2779   if test "${ac_cv_path_install+set}" = set; then
2780     INSTALL=$ac_cv_path_install
2781   else
2782     # As a last resort, use the slow shell script.  Don't cache a
2783     # value for INSTALL within a source directory, because that will
2784     # break other packages using the cache if that directory is
2785     # removed, or if the value is a relative name.
2786     INSTALL=$ac_install_sh
2787   fi
2788 fi
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2790 $as_echo "$INSTALL" >&6; }
2791
2792 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2793 # It thinks the first close brace ends the variable substitution.
2794 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2795
2796 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2797
2798 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2799
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2801 $as_echo_n "checking whether build environment is sane... " >&6; }
2802 # Reject unsafe characters in $srcdir or the absolute working directory
2803 # name.  Accept space and tab only in the latter.
2804 am_lf='
2805 '
2806 case `pwd` in
2807   *[\\\"\#\$\&\'\`$am_lf]*)
2808     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2809 esac
2810 case $srcdir in
2811   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2812     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2813 esac
2814
2815 # Do 'set' in a subshell so we don't clobber the current shell's
2816 # arguments.  Must try -L first in case configure is actually a
2817 # symlink; some systems play weird games with the mod time of symlinks
2818 # (eg FreeBSD returns the mod time of the symlink's containing
2819 # directory).
2820 if (
2821    am_has_slept=no
2822    for am_try in 1 2; do
2823      echo "timestamp, slept: $am_has_slept" > conftest.file
2824      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2825      if test "$*" = "X"; then
2826         # -L didn't work.
2827         set X `ls -t "$srcdir/configure" conftest.file`
2828      fi
2829      if test "$*" != "X $srcdir/configure conftest.file" \
2830         && test "$*" != "X conftest.file $srcdir/configure"; then
2831
2832         # If neither matched, then we have a broken ls.  This can happen
2833         # if, for instance, CONFIG_SHELL is bash and it inherits a
2834         # broken ls alias from the environment.  This has actually
2835         # happened.  Such a system could not be considered "sane".
2836         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2837   alias in your environment" "$LINENO" 5
2838      fi
2839      if test "$2" = conftest.file || test $am_try -eq 2; then
2840        break
2841      fi
2842      # Just in case.
2843      sleep 1
2844      am_has_slept=yes
2845    done
2846    test "$2" = conftest.file
2847    )
2848 then
2849    # Ok.
2850    :
2851 else
2852    as_fn_error $? "newly created file is older than distributed files!
2853 Check your system clock" "$LINENO" 5
2854 fi
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2856 $as_echo "yes" >&6; }
2857 # If we didn't sleep, we still need to ensure time stamps of config.status and
2858 # generated files are strictly newer.
2859 am_sleep_pid=
2860 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2861   ( sleep 1 ) &
2862   am_sleep_pid=$!
2863 fi
2864
2865 rm -f conftest.file
2866
2867 test "$program_prefix" != NONE &&
2868   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2869 # Use a double $ so make ignores it.
2870 test "$program_suffix" != NONE &&
2871   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2872 # Double any \ or $.
2873 # By default was `s,x,x', remove it if useless.
2874 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2875 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2876
2877 # Expand $ac_aux_dir to an absolute path.
2878 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2879
2880 if test x"${MISSING+set}" != xset; then
2881   case $am_aux_dir in
2882   *\ * | *\     *)
2883     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2884   *)
2885     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2886   esac
2887 fi
2888 # Use eval to expand $SHELL
2889 if eval "$MISSING --is-lightweight"; then
2890   am_missing_run="$MISSING "
2891 else
2892   am_missing_run=
2893   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2894 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2895 fi
2896
2897 if test x"${install_sh+set}" != xset; then
2898   case $am_aux_dir in
2899   *\ * | *\     *)
2900     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2901   *)
2902     install_sh="\${SHELL} $am_aux_dir/install-sh"
2903   esac
2904 fi
2905
2906 # Installed binaries are usually stripped using 'strip' when the user
2907 # run "make install-strip".  However 'strip' might not be the right
2908 # tool to use in cross-compilation environments, therefore Automake
2909 # will honor the 'STRIP' environment variable to overrule this program.
2910 if test "$cross_compiling" != no; then
2911   if test -n "$ac_tool_prefix"; then
2912   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2913 set dummy ${ac_tool_prefix}strip; ac_word=$2
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if ${ac_cv_prog_STRIP+:} false; then :
2917   $as_echo_n "(cached) " >&6
2918 else
2919   if test -n "$STRIP"; then
2920   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925   IFS=$as_save_IFS
2926   test -z "$as_dir" && as_dir=.
2927     for ac_exec_ext in '' $ac_executable_extensions; do
2928   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931     break 2
2932   fi
2933 done
2934   done
2935 IFS=$as_save_IFS
2936
2937 fi
2938 fi
2939 STRIP=$ac_cv_prog_STRIP
2940 if test -n "$STRIP"; then
2941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2942 $as_echo "$STRIP" >&6; }
2943 else
2944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2946 fi
2947
2948
2949 fi
2950 if test -z "$ac_cv_prog_STRIP"; then
2951   ac_ct_STRIP=$STRIP
2952   # Extract the first word of "strip", so it can be a program name with args.
2953 set dummy strip; ac_word=$2
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955 $as_echo_n "checking for $ac_word... " >&6; }
2956 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2957   $as_echo_n "(cached) " >&6
2958 else
2959   if test -n "$ac_ct_STRIP"; then
2960   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2964 do
2965   IFS=$as_save_IFS
2966   test -z "$as_dir" && as_dir=.
2967     for ac_exec_ext in '' $ac_executable_extensions; do
2968   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2969     ac_cv_prog_ac_ct_STRIP="strip"
2970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971     break 2
2972   fi
2973 done
2974   done
2975 IFS=$as_save_IFS
2976
2977 fi
2978 fi
2979 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2980 if test -n "$ac_ct_STRIP"; then
2981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2982 $as_echo "$ac_ct_STRIP" >&6; }
2983 else
2984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 $as_echo "no" >&6; }
2986 fi
2987
2988   if test "x$ac_ct_STRIP" = x; then
2989     STRIP=":"
2990   else
2991     case $cross_compiling:$ac_tool_warned in
2992 yes:)
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2995 ac_tool_warned=yes ;;
2996 esac
2997     STRIP=$ac_ct_STRIP
2998   fi
2999 else
3000   STRIP="$ac_cv_prog_STRIP"
3001 fi
3002
3003 fi
3004 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3005
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3007 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3008 if test -z "$MKDIR_P"; then
3009   if ${ac_cv_path_mkdir+:} false; then :
3010   $as_echo_n "(cached) " >&6
3011 else
3012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3014 do
3015   IFS=$as_save_IFS
3016   test -z "$as_dir" && as_dir=.
3017     for ac_prog in mkdir gmkdir; do
3018          for ac_exec_ext in '' $ac_executable_extensions; do
3019            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3020            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3021              'mkdir (GNU coreutils) '* | \
3022              'mkdir (coreutils) '* | \
3023              'mkdir (fileutils) '4.1*)
3024                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3025                break 3;;
3026            esac
3027          done
3028        done
3029   done
3030 IFS=$as_save_IFS
3031
3032 fi
3033
3034   test -d ./--version && rmdir ./--version
3035   if test "${ac_cv_path_mkdir+set}" = set; then
3036     MKDIR_P="$ac_cv_path_mkdir -p"
3037   else
3038     # As a last resort, use the slow shell script.  Don't cache a
3039     # value for MKDIR_P within a source directory, because that will
3040     # break other packages using the cache if that directory is
3041     # removed, or if the value is a relative name.
3042     MKDIR_P="$ac_install_sh -d"
3043   fi
3044 fi
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3046 $as_echo "$MKDIR_P" >&6; }
3047
3048 for ac_prog in gawk mawk nawk awk
3049 do
3050   # Extract the first word of "$ac_prog", so it can be a program name with args.
3051 set dummy $ac_prog; ac_word=$2
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053 $as_echo_n "checking for $ac_word... " >&6; }
3054 if ${ac_cv_prog_AWK+:} false; then :
3055   $as_echo_n "(cached) " >&6
3056 else
3057   if test -n "$AWK"; then
3058   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3059 else
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3062 do
3063   IFS=$as_save_IFS
3064   test -z "$as_dir" && as_dir=.
3065     for ac_exec_ext in '' $ac_executable_extensions; do
3066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3067     ac_cv_prog_AWK="$ac_prog"
3068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069     break 2
3070   fi
3071 done
3072   done
3073 IFS=$as_save_IFS
3074
3075 fi
3076 fi
3077 AWK=$ac_cv_prog_AWK
3078 if test -n "$AWK"; then
3079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3080 $as_echo "$AWK" >&6; }
3081 else
3082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083 $as_echo "no" >&6; }
3084 fi
3085
3086
3087   test -n "$AWK" && break
3088 done
3089
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3091 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3092 set x ${MAKE-make}
3093 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3094 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3095   $as_echo_n "(cached) " >&6
3096 else
3097   cat >conftest.make <<\_ACEOF
3098 SHELL = /bin/sh
3099 all:
3100         @echo '@@@%%%=$(MAKE)=@@@%%%'
3101 _ACEOF
3102 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3103 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3104   *@@@%%%=?*=@@@%%%*)
3105     eval ac_cv_prog_make_${ac_make}_set=yes;;
3106   *)
3107     eval ac_cv_prog_make_${ac_make}_set=no;;
3108 esac
3109 rm -f conftest.make
3110 fi
3111 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3113 $as_echo "yes" >&6; }
3114   SET_MAKE=
3115 else
3116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3118   SET_MAKE="MAKE=${MAKE-make}"
3119 fi
3120
3121 rm -rf .tst 2>/dev/null
3122 mkdir .tst 2>/dev/null
3123 if test -d .tst; then
3124   am__leading_dot=.
3125 else
3126   am__leading_dot=_
3127 fi
3128 rmdir .tst 2>/dev/null
3129
3130 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3131   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3132   # is not polluted with repeated "-I."
3133   am__isrc=' -I$(srcdir)'
3134   # test to see if srcdir already configured
3135   if test -f $srcdir/config.status; then
3136     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3137   fi
3138 fi
3139
3140 # test whether we have cygpath
3141 if test -z "$CYGPATH_W"; then
3142   if (cygpath --version) >/dev/null 2>/dev/null; then
3143     CYGPATH_W='cygpath -w'
3144   else
3145     CYGPATH_W=echo
3146   fi
3147 fi
3148
3149
3150 # Define the identity of the package.
3151  PACKAGE='cryptsetup'
3152  VERSION='2.3.3'
3153
3154
3155 cat >>confdefs.h <<_ACEOF
3156 #define PACKAGE "$PACKAGE"
3157 _ACEOF
3158
3159
3160 cat >>confdefs.h <<_ACEOF
3161 #define VERSION "$VERSION"
3162 _ACEOF
3163
3164 # Some tools Automake needs.
3165
3166 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3167
3168
3169 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3170
3171
3172 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3173
3174
3175 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3176
3177
3178 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3179
3180 # For better backward compatibility.  To be removed once Automake 1.9.x
3181 # dies out for good.  For more background, see:
3182 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3183 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3184 mkdir_p='$(MKDIR_P)'
3185
3186 # We need awk for the "check" target (and possibly the TAP driver).  The
3187 # system "awk" is bad on some platforms.
3188 # Always define AMTAR for backward compatibility.  Yes, it's still used
3189 # in the wild :-(  We should find a proper way to deprecate it ...
3190 AMTAR='$${TAR-tar}'
3191
3192
3193 # We'll loop over all known methods to create a tar archive until one works.
3194 _am_tools='gnutar  pax cpio none'
3195
3196 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3197
3198
3199
3200
3201
3202
3203 # POSIX will say in a future version that running "rm -f" with no argument
3204 # is OK; and we want to be able to make that assumption in our Makefile
3205 # recipes.  So use an aggressive probe to check that the usage we want is
3206 # actually supported "in the wild" to an acceptable degree.
3207 # See automake bug#10828.
3208 # To make any issue more visible, cause the running configure to be aborted
3209 # by default if the 'rm' program in use doesn't match our expectations; the
3210 # user can still override this though.
3211 if rm -f && rm -fr && rm -rf; then : OK; else
3212   cat >&2 <<'END'
3213 Oops!
3214
3215 Your 'rm' program seems unable to run without file operands specified
3216 on the command line, even when the '-f' option is present.  This is contrary
3217 to the behaviour of most rm programs out there, and not conforming with
3218 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3219
3220 Please tell bug-automake@gnu.org about your system, including the value
3221 of your $PATH and any error possibly output before this message.  This
3222 can help us improve future automake versions.
3223
3224 END
3225   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3226     echo 'Configuration will proceed anyway, since you have set the' >&2
3227     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3228     echo >&2
3229   else
3230     cat >&2 <<'END'
3231 Aborting the configuration process, to ensure you take notice of the issue.
3232
3233 You can download and install GNU coreutils to get an 'rm' implementation
3234 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3235
3236 If you want to complete the configuration process using your problematic
3237 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3238 to "yes", and re-run configure.
3239
3240 END
3241     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3242   fi
3243 fi
3244
3245
3246 if test "x$prefix" = "xNONE"; then
3247         sysconfdir=/etc
3248 fi
3249
3250
3251 # Make sure we can run config.sub.
3252 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3253   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3254
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3256 $as_echo_n "checking build system type... " >&6; }
3257 if ${ac_cv_build+:} false; then :
3258   $as_echo_n "(cached) " >&6
3259 else
3260   ac_build_alias=$build_alias
3261 test "x$ac_build_alias" = x &&
3262   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3263 test "x$ac_build_alias" = x &&
3264   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3265 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3266   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3267
3268 fi
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3270 $as_echo "$ac_cv_build" >&6; }
3271 case $ac_cv_build in
3272 *-*-*) ;;
3273 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3274 esac
3275 build=$ac_cv_build
3276 ac_save_IFS=$IFS; IFS='-'
3277 set x $ac_cv_build
3278 shift
3279 build_cpu=$1
3280 build_vendor=$2
3281 shift; shift
3282 # Remember, the first character of IFS is used to create $*,
3283 # except with old shells:
3284 build_os=$*
3285 IFS=$ac_save_IFS
3286 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3287
3288
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3290 $as_echo_n "checking host system type... " >&6; }
3291 if ${ac_cv_host+:} false; then :
3292   $as_echo_n "(cached) " >&6
3293 else
3294   if test "x$host_alias" = x; then
3295   ac_cv_host=$ac_cv_build
3296 else
3297   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3298     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3299 fi
3300
3301 fi
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3303 $as_echo "$ac_cv_host" >&6; }
3304 case $ac_cv_host in
3305 *-*-*) ;;
3306 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3307 esac
3308 host=$ac_cv_host
3309 ac_save_IFS=$IFS; IFS='-'
3310 set x $ac_cv_host
3311 shift
3312 host_cpu=$1
3313 host_vendor=$2
3314 shift; shift
3315 # Remember, the first character of IFS is used to create $*,
3316 # except with old shells:
3317 host_os=$*
3318 IFS=$ac_save_IFS
3319 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3320
3321
3322 DEPDIR="${am__leading_dot}deps"
3323
3324 ac_config_commands="$ac_config_commands depfiles"
3325
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3327 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3328 cat > confinc.mk << 'END'
3329 am__doit:
3330         @echo this is the am__doit target >confinc.out
3331 .PHONY: am__doit
3332 END
3333 am__include="#"
3334 am__quote=
3335 # BSD make does it like this.
3336 echo '.include "confinc.mk" # ignored' > confmf.BSD
3337 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3338 echo 'include confinc.mk # ignored' > confmf.GNU
3339 _am_result=no
3340 for s in GNU BSD; do
3341   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3342    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3343    ac_status=$?
3344    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345    (exit $ac_status); }
3346   case $?:`cat confinc.out 2>/dev/null` in #(
3347   '0:this is the am__doit target') :
3348     case $s in #(
3349   BSD) :
3350     am__include='.include' am__quote='"' ;; #(
3351   *) :
3352     am__include='include' am__quote='' ;;
3353 esac ;; #(
3354   *) :
3355      ;;
3356 esac
3357   if test "$am__include" != "#"; then
3358     _am_result="yes ($s style)"
3359     break
3360   fi
3361 done
3362 rm -f confinc.* confmf.*
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3364 $as_echo "${_am_result}" >&6; }
3365
3366 # Check whether --enable-dependency-tracking was given.
3367 if test "${enable_dependency_tracking+set}" = set; then :
3368   enableval=$enable_dependency_tracking;
3369 fi
3370
3371 if test "x$enable_dependency_tracking" != xno; then
3372   am_depcomp="$ac_aux_dir/depcomp"
3373   AMDEPBACKSLASH='\'
3374   am__nodep='_no'
3375 fi
3376  if test "x$enable_dependency_tracking" != xno; then
3377   AMDEP_TRUE=
3378   AMDEP_FALSE='#'
3379 else
3380   AMDEP_TRUE='#'
3381   AMDEP_FALSE=
3382 fi
3383
3384
3385 ac_ext=c
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390 if test -n "$ac_tool_prefix"; then
3391   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3392 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if ${ac_cv_prog_CC+:} false; then :
3396   $as_echo_n "(cached) " >&6
3397 else
3398   if test -n "$CC"; then
3399   ac_cv_prog_CC="$CC" # Let the user override the test.
3400 else
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3403 do
3404   IFS=$as_save_IFS
3405   test -z "$as_dir" && as_dir=.
3406     for ac_exec_ext in '' $ac_executable_extensions; do
3407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3408     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3410     break 2
3411   fi
3412 done
3413   done
3414 IFS=$as_save_IFS
3415
3416 fi
3417 fi
3418 CC=$ac_cv_prog_CC
3419 if test -n "$CC"; then
3420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3421 $as_echo "$CC" >&6; }
3422 else
3423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3425 fi
3426
3427
3428 fi
3429 if test -z "$ac_cv_prog_CC"; then
3430   ac_ct_CC=$CC
3431   # Extract the first word of "gcc", so it can be a program name with args.
3432 set dummy gcc; ac_word=$2
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3436   $as_echo_n "(cached) " >&6
3437 else
3438   if test -n "$ac_ct_CC"; then
3439   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3440 else
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444   IFS=$as_save_IFS
3445   test -z "$as_dir" && as_dir=.
3446     for ac_exec_ext in '' $ac_executable_extensions; do
3447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448     ac_cv_prog_ac_ct_CC="gcc"
3449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3450     break 2
3451   fi
3452 done
3453   done
3454 IFS=$as_save_IFS
3455
3456 fi
3457 fi
3458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3459 if test -n "$ac_ct_CC"; then
3460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3461 $as_echo "$ac_ct_CC" >&6; }
3462 else
3463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 $as_echo "no" >&6; }
3465 fi
3466
3467   if test "x$ac_ct_CC" = x; then
3468     CC=""
3469   else
3470     case $cross_compiling:$ac_tool_warned in
3471 yes:)
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3474 ac_tool_warned=yes ;;
3475 esac
3476     CC=$ac_ct_CC
3477   fi
3478 else
3479   CC="$ac_cv_prog_CC"
3480 fi
3481
3482 if test -z "$CC"; then
3483           if test -n "$ac_tool_prefix"; then
3484     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3485 set dummy ${ac_tool_prefix}cc; ac_word=$2
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3487 $as_echo_n "checking for $ac_word... " >&6; }
3488 if ${ac_cv_prog_CC+:} false; then :
3489   $as_echo_n "(cached) " >&6
3490 else
3491   if test -n "$CC"; then
3492   ac_cv_prog_CC="$CC" # Let the user override the test.
3493 else
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495 for as_dir in $PATH
3496 do
3497   IFS=$as_save_IFS
3498   test -z "$as_dir" && as_dir=.
3499     for ac_exec_ext in '' $ac_executable_extensions; do
3500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3501     ac_cv_prog_CC="${ac_tool_prefix}cc"
3502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3503     break 2
3504   fi
3505 done
3506   done
3507 IFS=$as_save_IFS
3508
3509 fi
3510 fi
3511 CC=$ac_cv_prog_CC
3512 if test -n "$CC"; then
3513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3514 $as_echo "$CC" >&6; }
3515 else
3516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 $as_echo "no" >&6; }
3518 fi
3519
3520
3521   fi
3522 fi
3523 if test -z "$CC"; then
3524   # Extract the first word of "cc", so it can be a program name with args.
3525 set dummy cc; ac_word=$2
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527 $as_echo_n "checking for $ac_word... " >&6; }
3528 if ${ac_cv_prog_CC+:} false; then :
3529   $as_echo_n "(cached) " >&6
3530 else
3531   if test -n "$CC"; then
3532   ac_cv_prog_CC="$CC" # Let the user override the test.
3533 else
3534   ac_prog_rejected=no
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH
3537 do
3538   IFS=$as_save_IFS
3539   test -z "$as_dir" && as_dir=.
3540     for ac_exec_ext in '' $ac_executable_extensions; do
3541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3542     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3543        ac_prog_rejected=yes
3544        continue
3545      fi
3546     ac_cv_prog_CC="cc"
3547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3548     break 2
3549   fi
3550 done
3551   done
3552 IFS=$as_save_IFS
3553
3554 if test $ac_prog_rejected = yes; then
3555   # We found a bogon in the path, so make sure we never use it.
3556   set dummy $ac_cv_prog_CC
3557   shift
3558   if test $# != 0; then
3559     # We chose a different compiler from the bogus one.
3560     # However, it has the same basename, so the bogon will be chosen
3561     # first if we set CC to just the basename; use the full file name.
3562     shift
3563     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3564   fi
3565 fi
3566 fi
3567 fi
3568 CC=$ac_cv_prog_CC
3569 if test -n "$CC"; then
3570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3571 $as_echo "$CC" >&6; }
3572 else
3573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 $as_echo "no" >&6; }
3575 fi
3576
3577
3578 fi
3579 if test -z "$CC"; then
3580   if test -n "$ac_tool_prefix"; then
3581   for ac_prog in cl.exe
3582   do
3583     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3584 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586 $as_echo_n "checking for $ac_word... " >&6; }
3587 if ${ac_cv_prog_CC+:} false; then :
3588   $as_echo_n "(cached) " >&6
3589 else
3590   if test -n "$CC"; then
3591   ac_cv_prog_CC="$CC" # Let the user override the test.
3592 else
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH
3595 do
3596   IFS=$as_save_IFS
3597   test -z "$as_dir" && as_dir=.
3598     for ac_exec_ext in '' $ac_executable_extensions; do
3599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3600     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3602     break 2
3603   fi
3604 done
3605   done
3606 IFS=$as_save_IFS
3607
3608 fi
3609 fi
3610 CC=$ac_cv_prog_CC
3611 if test -n "$CC"; then
3612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3613 $as_echo "$CC" >&6; }
3614 else
3615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 $as_echo "no" >&6; }
3617 fi
3618
3619
3620     test -n "$CC" && break
3621   done
3622 fi
3623 if test -z "$CC"; then
3624   ac_ct_CC=$CC
3625   for ac_prog in cl.exe
3626 do
3627   # Extract the first word of "$ac_prog", so it can be a program name with args.
3628 set dummy $ac_prog; ac_word=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3632   $as_echo_n "(cached) " >&6
3633 else
3634   if test -n "$ac_ct_CC"; then
3635   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3636 else
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3639 do
3640   IFS=$as_save_IFS
3641   test -z "$as_dir" && as_dir=.
3642     for ac_exec_ext in '' $ac_executable_extensions; do
3643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3644     ac_cv_prog_ac_ct_CC="$ac_prog"
3645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3646     break 2
3647   fi
3648 done
3649   done
3650 IFS=$as_save_IFS
3651
3652 fi
3653 fi
3654 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3655 if test -n "$ac_ct_CC"; then
3656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3657 $as_echo "$ac_ct_CC" >&6; }
3658 else
3659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3661 fi
3662
3663
3664   test -n "$ac_ct_CC" && break
3665 done
3666
3667   if test "x$ac_ct_CC" = x; then
3668     CC=""
3669   else
3670     case $cross_compiling:$ac_tool_warned in
3671 yes:)
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3674 ac_tool_warned=yes ;;
3675 esac
3676     CC=$ac_ct_CC
3677   fi
3678 fi
3679
3680 fi
3681
3682
3683 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685 as_fn_error $? "no acceptable C compiler found in \$PATH
3686 See \`config.log' for more details" "$LINENO" 5; }
3687
3688 # Provide some information about the compiler.
3689 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3690 set X $ac_compile
3691 ac_compiler=$2
3692 for ac_option in --version -v -V -qversion; do
3693   { { ac_try="$ac_compiler $ac_option >&5"
3694 case "(($ac_try" in
3695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696   *) ac_try_echo=$ac_try;;
3697 esac
3698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3699 $as_echo "$ac_try_echo"; } >&5
3700   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3701   ac_status=$?
3702   if test -s conftest.err; then
3703     sed '10a\
3704 ... rest of stderr output deleted ...
3705          10q' conftest.err >conftest.er1
3706     cat conftest.er1 >&5
3707   fi
3708   rm -f conftest.er1 conftest.err
3709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710   test $ac_status = 0; }
3711 done
3712
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h.  */
3715
3716 int
3717 main ()
3718 {
3719
3720   ;
3721   return 0;
3722 }
3723 _ACEOF
3724 ac_clean_files_save=$ac_clean_files
3725 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3726 # Try to create an executable without -o first, disregard a.out.
3727 # It will help us diagnose broken compilers, and finding out an intuition
3728 # of exeext.
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3730 $as_echo_n "checking whether the C compiler works... " >&6; }
3731 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3732
3733 # The possible output files:
3734 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3735
3736 ac_rmfiles=
3737 for ac_file in $ac_files
3738 do
3739   case $ac_file in
3740     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3741     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3742   esac
3743 done
3744 rm -f $ac_rmfiles
3745
3746 if { { ac_try="$ac_link_default"
3747 case "(($ac_try" in
3748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749   *) ac_try_echo=$ac_try;;
3750 esac
3751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3752 $as_echo "$ac_try_echo"; } >&5
3753   (eval "$ac_link_default") 2>&5
3754   ac_status=$?
3755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3756   test $ac_status = 0; }; then :
3757   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3758 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3759 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3760 # so that the user can short-circuit this test for compilers unknown to
3761 # Autoconf.
3762 for ac_file in $ac_files ''
3763 do
3764   test -f "$ac_file" || continue
3765   case $ac_file in
3766     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3767         ;;
3768     [ab].out )
3769         # We found the default executable, but exeext='' is most
3770         # certainly right.
3771         break;;
3772     *.* )
3773         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3774         then :; else
3775            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3776         fi
3777         # We set ac_cv_exeext here because the later test for it is not
3778         # safe: cross compilers may not add the suffix if given an `-o'
3779         # argument, so we may need to know it at that point already.
3780         # Even if this section looks crufty: it has the advantage of
3781         # actually working.
3782         break;;
3783     * )
3784         break;;
3785   esac
3786 done
3787 test "$ac_cv_exeext" = no && ac_cv_exeext=
3788
3789 else
3790   ac_file=''
3791 fi
3792 if test -z "$ac_file"; then :
3793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3795 $as_echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3797
3798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3800 as_fn_error 77 "C compiler cannot create executables
3801 See \`config.log' for more details" "$LINENO" 5; }
3802 else
3803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3804 $as_echo "yes" >&6; }
3805 fi
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3807 $as_echo_n "checking for C compiler default output file name... " >&6; }
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3809 $as_echo "$ac_file" >&6; }
3810 ac_exeext=$ac_cv_exeext
3811
3812 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3813 ac_clean_files=$ac_clean_files_save
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3815 $as_echo_n "checking for suffix of executables... " >&6; }
3816 if { { ac_try="$ac_link"
3817 case "(($ac_try" in
3818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819   *) ac_try_echo=$ac_try;;
3820 esac
3821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822 $as_echo "$ac_try_echo"; } >&5
3823   (eval "$ac_link") 2>&5
3824   ac_status=$?
3825   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826   test $ac_status = 0; }; then :
3827   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3828 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3829 # work properly (i.e., refer to `conftest.exe'), while it won't with
3830 # `rm'.
3831 for ac_file in conftest.exe conftest conftest.*; do
3832   test -f "$ac_file" || continue
3833   case $ac_file in
3834     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3835     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3836           break;;
3837     * ) break;;
3838   esac
3839 done
3840 else
3841   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3843 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3844 See \`config.log' for more details" "$LINENO" 5; }
3845 fi
3846 rm -f conftest conftest$ac_cv_exeext
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3848 $as_echo "$ac_cv_exeext" >&6; }
3849
3850 rm -f conftest.$ac_ext
3851 EXEEXT=$ac_cv_exeext
3852 ac_exeext=$EXEEXT
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h.  */
3855 #include <stdio.h>
3856 int
3857 main ()
3858 {
3859 FILE *f = fopen ("conftest.out", "w");
3860  return ferror (f) || fclose (f) != 0;
3861
3862   ;
3863   return 0;
3864 }
3865 _ACEOF
3866 ac_clean_files="$ac_clean_files conftest.out"
3867 # Check that the compiler produces executables we can run.  If not, either
3868 # the compiler is broken, or we cross compile.
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3870 $as_echo_n "checking whether we are cross compiling... " >&6; }
3871 if test "$cross_compiling" != yes; then
3872   { { ac_try="$ac_link"
3873 case "(($ac_try" in
3874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875   *) ac_try_echo=$ac_try;;
3876 esac
3877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3878 $as_echo "$ac_try_echo"; } >&5
3879   (eval "$ac_link") 2>&5
3880   ac_status=$?
3881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3882   test $ac_status = 0; }
3883   if { ac_try='./conftest$ac_cv_exeext'
3884   { { case "(($ac_try" in
3885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886   *) ac_try_echo=$ac_try;;
3887 esac
3888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3889 $as_echo "$ac_try_echo"; } >&5
3890   (eval "$ac_try") 2>&5
3891   ac_status=$?
3892   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893   test $ac_status = 0; }; }; then
3894     cross_compiling=no
3895   else
3896     if test "$cross_compiling" = maybe; then
3897         cross_compiling=yes
3898     else
3899         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3901 as_fn_error $? "cannot run C compiled programs.
3902 If you meant to cross compile, use \`--host'.
3903 See \`config.log' for more details" "$LINENO" 5; }
3904     fi
3905   fi
3906 fi
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3908 $as_echo "$cross_compiling" >&6; }
3909
3910 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3911 ac_clean_files=$ac_clean_files_save
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3913 $as_echo_n "checking for suffix of object files... " >&6; }
3914 if ${ac_cv_objext+:} false; then :
3915   $as_echo_n "(cached) " >&6
3916 else
3917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h.  */
3919
3920 int
3921 main ()
3922 {
3923
3924   ;
3925   return 0;
3926 }
3927 _ACEOF
3928 rm -f conftest.o conftest.obj
3929 if { { ac_try="$ac_compile"
3930 case "(($ac_try" in
3931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932   *) ac_try_echo=$ac_try;;
3933 esac
3934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935 $as_echo "$ac_try_echo"; } >&5
3936   (eval "$ac_compile") 2>&5
3937   ac_status=$?
3938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3939   test $ac_status = 0; }; then :
3940   for ac_file in conftest.o conftest.obj conftest.*; do
3941   test -f "$ac_file" || continue;
3942   case $ac_file in
3943     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3944     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3945        break;;
3946   esac
3947 done
3948 else
3949   $as_echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3951
3952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3954 as_fn_error $? "cannot compute suffix of object files: cannot compile
3955 See \`config.log' for more details" "$LINENO" 5; }
3956 fi
3957 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3958 fi
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3960 $as_echo "$ac_cv_objext" >&6; }
3961 OBJEXT=$ac_cv_objext
3962 ac_objext=$OBJEXT
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3964 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3965 if ${ac_cv_c_compiler_gnu+:} false; then :
3966   $as_echo_n "(cached) " >&6
3967 else
3968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h.  */
3970
3971 int
3972 main ()
3973 {
3974 #ifndef __GNUC__
3975        choke me
3976 #endif
3977
3978   ;
3979   return 0;
3980 }
3981 _ACEOF
3982 if ac_fn_c_try_compile "$LINENO"; then :
3983   ac_compiler_gnu=yes
3984 else
3985   ac_compiler_gnu=no
3986 fi
3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3989
3990 fi
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3992 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3993 if test $ac_compiler_gnu = yes; then
3994   GCC=yes
3995 else
3996   GCC=
3997 fi
3998 ac_test_CFLAGS=${CFLAGS+set}
3999 ac_save_CFLAGS=$CFLAGS
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4001 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4002 if ${ac_cv_prog_cc_g+:} false; then :
4003   $as_echo_n "(cached) " >&6
4004 else
4005   ac_save_c_werror_flag=$ac_c_werror_flag
4006    ac_c_werror_flag=yes
4007    ac_cv_prog_cc_g=no
4008    CFLAGS="-g"
4009    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h.  */
4011
4012 int
4013 main ()
4014 {
4015
4016   ;
4017   return 0;
4018 }
4019 _ACEOF
4020 if ac_fn_c_try_compile "$LINENO"; then :
4021   ac_cv_prog_cc_g=yes
4022 else
4023   CFLAGS=""
4024       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h.  */
4026
4027 int
4028 main ()
4029 {
4030
4031   ;
4032   return 0;
4033 }
4034 _ACEOF
4035 if ac_fn_c_try_compile "$LINENO"; then :
4036
4037 else
4038   ac_c_werror_flag=$ac_save_c_werror_flag
4039          CFLAGS="-g"
4040          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h.  */
4042
4043 int
4044 main ()
4045 {
4046
4047   ;
4048   return 0;
4049 }
4050 _ACEOF
4051 if ac_fn_c_try_compile "$LINENO"; then :
4052   ac_cv_prog_cc_g=yes
4053 fi
4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055 fi
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 fi
4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059    ac_c_werror_flag=$ac_save_c_werror_flag
4060 fi
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4062 $as_echo "$ac_cv_prog_cc_g" >&6; }
4063 if test "$ac_test_CFLAGS" = set; then
4064   CFLAGS=$ac_save_CFLAGS
4065 elif test $ac_cv_prog_cc_g = yes; then
4066   if test "$GCC" = yes; then
4067     CFLAGS="-g -O2"
4068   else
4069     CFLAGS="-g"
4070   fi
4071 else
4072   if test "$GCC" = yes; then
4073     CFLAGS="-O2"
4074   else
4075     CFLAGS=
4076   fi
4077 fi
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4079 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4080 if ${ac_cv_prog_cc_c89+:} false; then :
4081   $as_echo_n "(cached) " >&6
4082 else
4083   ac_cv_prog_cc_c89=no
4084 ac_save_CC=$CC
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h.  */
4087 #include <stdarg.h>
4088 #include <stdio.h>
4089 struct stat;
4090 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4091 struct buf { int x; };
4092 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4093 static char *e (p, i)
4094      char **p;
4095      int i;
4096 {
4097   return p[i];
4098 }
4099 static char *f (char * (*g) (char **, int), char **p, ...)
4100 {
4101   char *s;
4102   va_list v;
4103   va_start (v,p);
4104   s = g (p, va_arg (v,int));
4105   va_end (v);
4106   return s;
4107 }
4108
4109 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4110    function prototypes and stuff, but not '\xHH' hex character constants.
4111    These don't provoke an error unfortunately, instead are silently treated
4112    as 'x'.  The following induces an error, until -std is added to get
4113    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4114    array size at least.  It's necessary to write '\x00'==0 to get something
4115    that's true only with -std.  */
4116 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4117
4118 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4119    inside strings and character constants.  */
4120 #define FOO(x) 'x'
4121 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4122
4123 int test (int i, double x);
4124 struct s1 {int (*f) (int a);};
4125 struct s2 {int (*f) (double a);};
4126 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4127 int argc;
4128 char **argv;
4129 int
4130 main ()
4131 {
4132 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4133   ;
4134   return 0;
4135 }
4136 _ACEOF
4137 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4138         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4139 do
4140   CC="$ac_save_CC $ac_arg"
4141   if ac_fn_c_try_compile "$LINENO"; then :
4142   ac_cv_prog_cc_c89=$ac_arg
4143 fi
4144 rm -f core conftest.err conftest.$ac_objext
4145   test "x$ac_cv_prog_cc_c89" != "xno" && break
4146 done
4147 rm -f conftest.$ac_ext
4148 CC=$ac_save_CC
4149
4150 fi
4151 # AC_CACHE_VAL
4152 case "x$ac_cv_prog_cc_c89" in
4153   x)
4154     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4155 $as_echo "none needed" >&6; } ;;
4156   xno)
4157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4158 $as_echo "unsupported" >&6; } ;;
4159   *)
4160     CC="$CC $ac_cv_prog_cc_c89"
4161     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4162 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4163 esac
4164 if test "x$ac_cv_prog_cc_c89" != xno; then :
4165
4166 fi
4167
4168 ac_ext=c
4169 ac_cpp='$CPP $CPPFLAGS'
4170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4173
4174 ac_ext=c
4175 ac_cpp='$CPP $CPPFLAGS'
4176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4180 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4181 if ${am_cv_prog_cc_c_o+:} false; then :
4182   $as_echo_n "(cached) " >&6
4183 else
4184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h.  */
4186
4187 int
4188 main ()
4189 {
4190
4191   ;
4192   return 0;
4193 }
4194 _ACEOF
4195   # Make sure it works both with $CC and with simple cc.
4196   # Following AC_PROG_CC_C_O, we do the test twice because some
4197   # compilers refuse to overwrite an existing .o file with -o,
4198   # though they will create one.
4199   am_cv_prog_cc_c_o=yes
4200   for am_i in 1 2; do
4201     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4202    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4203    ac_status=$?
4204    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205    (exit $ac_status); } \
4206          && test -f conftest2.$ac_objext; then
4207       : OK
4208     else
4209       am_cv_prog_cc_c_o=no
4210       break
4211     fi
4212   done
4213   rm -f core conftest*
4214   unset am_i
4215 fi
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4217 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4218 if test "$am_cv_prog_cc_c_o" != yes; then
4219    # Losing compiler, so override with the script.
4220    # FIXME: It is wrong to rewrite CC.
4221    # But if we don't then we get into trouble of one sort or another.
4222    # A longer-term fix would be to have automake use am__CC in this case,
4223    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4224    CC="$am_aux_dir/compile $CC"
4225 fi
4226 ac_ext=c
4227 ac_cpp='$CPP $CPPFLAGS'
4228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4231
4232
4233 depcc="$CC"   am_compiler_list=
4234
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4236 $as_echo_n "checking dependency style of $depcc... " >&6; }
4237 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4238   $as_echo_n "(cached) " >&6
4239 else
4240   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4241   # We make a subdir and do the tests there.  Otherwise we can end up
4242   # making bogus files that we don't know about and never remove.  For
4243   # instance it was reported that on HP-UX the gcc test will end up
4244   # making a dummy file named 'D' -- because '-MD' means "put the output
4245   # in D".
4246   rm -rf conftest.dir
4247   mkdir conftest.dir
4248   # Copy depcomp to subdir because otherwise we won't find it if we're
4249   # using a relative directory.
4250   cp "$am_depcomp" conftest.dir
4251   cd conftest.dir
4252   # We will build objects and dependencies in a subdirectory because
4253   # it helps to detect inapplicable dependency modes.  For instance
4254   # both Tru64's cc and ICC support -MD to output dependencies as a
4255   # side effect of compilation, but ICC will put the dependencies in
4256   # the current directory while Tru64 will put them in the object
4257   # directory.
4258   mkdir sub
4259
4260   am_cv_CC_dependencies_compiler_type=none
4261   if test "$am_compiler_list" = ""; then
4262      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4263   fi
4264   am__universal=false
4265   case " $depcc " in #(
4266      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4267      esac
4268
4269   for depmode in $am_compiler_list; do
4270     # Setup a source with many dependencies, because some compilers
4271     # like to wrap large dependency lists on column 80 (with \), and
4272     # we should not choose a depcomp mode which is confused by this.
4273     #
4274     # We need to recreate these files for each test, as the compiler may
4275     # overwrite some of them when testing with obscure command lines.
4276     # This happens at least with the AIX C compiler.
4277     : > sub/conftest.c
4278     for i in 1 2 3 4 5 6; do
4279       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4280       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4281       # Solaris 10 /bin/sh.
4282       echo '/* dummy */' > sub/conftst$i.h
4283     done
4284     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4285
4286     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4287     # mode.  It turns out that the SunPro C++ compiler does not properly
4288     # handle '-M -o', and we need to detect this.  Also, some Intel
4289     # versions had trouble with output in subdirs.
4290     am__obj=sub/conftest.${OBJEXT-o}
4291     am__minus_obj="-o $am__obj"
4292     case $depmode in
4293     gcc)
4294       # This depmode causes a compiler race in universal mode.
4295       test "$am__universal" = false || continue
4296       ;;
4297     nosideeffect)
4298       # After this tag, mechanisms are not by side-effect, so they'll
4299       # only be used when explicitly requested.
4300       if test "x$enable_dependency_tracking" = xyes; then
4301         continue
4302       else
4303         break
4304       fi
4305       ;;
4306     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4307       # This compiler won't grok '-c -o', but also, the minuso test has
4308       # not run yet.  These depmodes are late enough in the game, and
4309       # so weak that their functioning should not be impacted.
4310       am__obj=conftest.${OBJEXT-o}
4311       am__minus_obj=
4312       ;;
4313     none) break ;;
4314     esac
4315     if depmode=$depmode \
4316        source=sub/conftest.c object=$am__obj \
4317        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4318        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4319          >/dev/null 2>conftest.err &&
4320        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4321        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4322        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4323        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4324       # icc doesn't choke on unknown options, it will just issue warnings
4325       # or remarks (even with -Werror).  So we grep stderr for any message
4326       # that says an option was ignored or not supported.
4327       # When given -MP, icc 7.0 and 7.1 complain thusly:
4328       #   icc: Command line warning: ignoring option '-M'; no argument required
4329       # The diagnosis changed in icc 8.0:
4330       #   icc: Command line remark: option '-MP' not supported
4331       if (grep 'ignoring option' conftest.err ||
4332           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4333         am_cv_CC_dependencies_compiler_type=$depmode
4334         break
4335       fi
4336     fi
4337   done
4338
4339   cd ..
4340   rm -rf conftest.dir
4341 else
4342   am_cv_CC_dependencies_compiler_type=none
4343 fi
4344
4345 fi
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4347 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4348 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4349
4350  if
4351   test "x$enable_dependency_tracking" != xno \
4352   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4353   am__fastdepCC_TRUE=
4354   am__fastdepCC_FALSE='#'
4355 else
4356   am__fastdepCC_TRUE='#'
4357   am__fastdepCC_FALSE=
4358 fi
4359
4360
4361
4362 ac_ext=c
4363 ac_cpp='$CPP $CPPFLAGS'
4364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4368 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4369 # On Suns, sometimes $CPP names a directory.
4370 if test -n "$CPP" && test -d "$CPP"; then
4371   CPP=
4372 fi
4373 if test -z "$CPP"; then
4374   if ${ac_cv_prog_CPP+:} false; then :
4375   $as_echo_n "(cached) " >&6
4376 else
4377       # Double quotes because CPP needs to be expanded
4378     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4379     do
4380       ac_preproc_ok=false
4381 for ac_c_preproc_warn_flag in '' yes
4382 do
4383   # Use a header file that comes with gcc, so configuring glibc
4384   # with a fresh cross-compiler works.
4385   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4386   # <limits.h> exists even on freestanding compilers.
4387   # On the NeXT, cc -E runs the code through the compiler's parser,
4388   # not just through cpp. "Syntax error" is here to catch this case.
4389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h.  */
4391 #ifdef __STDC__
4392 # include <limits.h>
4393 #else
4394 # include <assert.h>
4395 #endif
4396                      Syntax error
4397 _ACEOF
4398 if ac_fn_c_try_cpp "$LINENO"; then :
4399
4400 else
4401   # Broken: fails on valid input.
4402 continue
4403 fi
4404 rm -f conftest.err conftest.i conftest.$ac_ext
4405
4406   # OK, works on sane cases.  Now check whether nonexistent headers
4407   # can be detected and how.
4408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h.  */
4410 #include <ac_nonexistent.h>
4411 _ACEOF
4412 if ac_fn_c_try_cpp "$LINENO"; then :
4413   # Broken: success on invalid input.
4414 continue
4415 else
4416   # Passes both tests.
4417 ac_preproc_ok=:
4418 break
4419 fi
4420 rm -f conftest.err conftest.i conftest.$ac_ext
4421
4422 done
4423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4424 rm -f conftest.i conftest.err conftest.$ac_ext
4425 if $ac_preproc_ok; then :
4426   break
4427 fi
4428
4429     done
4430     ac_cv_prog_CPP=$CPP
4431
4432 fi
4433   CPP=$ac_cv_prog_CPP
4434 else
4435   ac_cv_prog_CPP=$CPP
4436 fi
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4438 $as_echo "$CPP" >&6; }
4439 ac_preproc_ok=false
4440 for ac_c_preproc_warn_flag in '' yes
4441 do
4442   # Use a header file that comes with gcc, so configuring glibc
4443   # with a fresh cross-compiler works.
4444   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4445   # <limits.h> exists even on freestanding compilers.
4446   # On the NeXT, cc -E runs the code through the compiler's parser,
4447   # not just through cpp. "Syntax error" is here to catch this case.
4448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h.  */
4450 #ifdef __STDC__
4451 # include <limits.h>
4452 #else
4453 # include <assert.h>
4454 #endif
4455                      Syntax error
4456 _ACEOF
4457 if ac_fn_c_try_cpp "$LINENO"; then :
4458
4459 else
4460   # Broken: fails on valid input.
4461 continue
4462 fi
4463 rm -f conftest.err conftest.i conftest.$ac_ext
4464
4465   # OK, works on sane cases.  Now check whether nonexistent headers
4466   # can be detected and how.
4467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h.  */
4469 #include <ac_nonexistent.h>
4470 _ACEOF
4471 if ac_fn_c_try_cpp "$LINENO"; then :
4472   # Broken: success on invalid input.
4473 continue
4474 else
4475   # Passes both tests.
4476 ac_preproc_ok=:
4477 break
4478 fi
4479 rm -f conftest.err conftest.i conftest.$ac_ext
4480
4481 done
4482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4483 rm -f conftest.i conftest.err conftest.$ac_ext
4484 if $ac_preproc_ok; then :
4485
4486 else
4487   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4489 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4490 See \`config.log' for more details" "$LINENO" 5; }
4491 fi
4492
4493 ac_ext=c
4494 ac_cpp='$CPP $CPPFLAGS'
4495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4498
4499
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4501 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4502 if ${ac_cv_path_GREP+:} false; then :
4503   $as_echo_n "(cached) " >&6
4504 else
4505   if test -z "$GREP"; then
4506   ac_path_GREP_found=false
4507   # Loop through the user's path and test for each of PROGNAME-LIST
4508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4510 do
4511   IFS=$as_save_IFS
4512   test -z "$as_dir" && as_dir=.
4513     for ac_prog in grep ggrep; do
4514     for ac_exec_ext in '' $ac_executable_extensions; do
4515       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4516       as_fn_executable_p "$ac_path_GREP" || continue
4517 # Check for GNU ac_path_GREP and select it if it is found.
4518   # Check for GNU $ac_path_GREP
4519 case `"$ac_path_GREP" --version 2>&1` in
4520 *GNU*)
4521   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4522 *)
4523   ac_count=0
4524   $as_echo_n 0123456789 >"conftest.in"
4525   while :
4526   do
4527     cat "conftest.in" "conftest.in" >"conftest.tmp"
4528     mv "conftest.tmp" "conftest.in"
4529     cp "conftest.in" "conftest.nl"
4530     $as_echo 'GREP' >> "conftest.nl"
4531     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4532     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4533     as_fn_arith $ac_count + 1 && ac_count=$as_val
4534     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4535       # Best one so far, save it but keep looking for a better one
4536       ac_cv_path_GREP="$ac_path_GREP"
4537       ac_path_GREP_max=$ac_count
4538     fi
4539     # 10*(2^10) chars as input seems more than enough
4540     test $ac_count -gt 10 && break
4541   done
4542   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4543 esac
4544
4545       $ac_path_GREP_found && break 3
4546     done
4547   done
4548   done
4549 IFS=$as_save_IFS
4550   if test -z "$ac_cv_path_GREP"; then
4551     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4552   fi
4553 else
4554   ac_cv_path_GREP=$GREP
4555 fi
4556
4557 fi
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4559 $as_echo "$ac_cv_path_GREP" >&6; }
4560  GREP="$ac_cv_path_GREP"
4561
4562
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4564 $as_echo_n "checking for egrep... " >&6; }
4565 if ${ac_cv_path_EGREP+:} false; then :
4566   $as_echo_n "(cached) " >&6
4567 else
4568   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4569    then ac_cv_path_EGREP="$GREP -E"
4570    else
4571      if test -z "$EGREP"; then
4572   ac_path_EGREP_found=false
4573   # Loop through the user's path and test for each of PROGNAME-LIST
4574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4576 do
4577   IFS=$as_save_IFS
4578   test -z "$as_dir" && as_dir=.
4579     for ac_prog in egrep; do
4580     for ac_exec_ext in '' $ac_executable_extensions; do
4581       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4582       as_fn_executable_p "$ac_path_EGREP" || continue
4583 # Check for GNU ac_path_EGREP and select it if it is found.
4584   # Check for GNU $ac_path_EGREP
4585 case `"$ac_path_EGREP" --version 2>&1` in
4586 *GNU*)
4587   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4588 *)
4589   ac_count=0
4590   $as_echo_n 0123456789 >"conftest.in"
4591   while :
4592   do
4593     cat "conftest.in" "conftest.in" >"conftest.tmp"
4594     mv "conftest.tmp" "conftest.in"
4595     cp "conftest.in" "conftest.nl"
4596     $as_echo 'EGREP' >> "conftest.nl"
4597     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4598     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4599     as_fn_arith $ac_count + 1 && ac_count=$as_val
4600     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4601       # Best one so far, save it but keep looking for a better one
4602       ac_cv_path_EGREP="$ac_path_EGREP"
4603       ac_path_EGREP_max=$ac_count
4604     fi
4605     # 10*(2^10) chars as input seems more than enough
4606     test $ac_count -gt 10 && break
4607   done
4608   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4609 esac
4610
4611       $ac_path_EGREP_found && break 3
4612     done
4613   done
4614   done
4615 IFS=$as_save_IFS
4616   if test -z "$ac_cv_path_EGREP"; then
4617     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4618   fi
4619 else
4620   ac_cv_path_EGREP=$EGREP
4621 fi
4622
4623    fi
4624 fi
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4626 $as_echo "$ac_cv_path_EGREP" >&6; }
4627  EGREP="$ac_cv_path_EGREP"
4628
4629
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4631 $as_echo_n "checking for ANSI C header files... " >&6; }
4632 if ${ac_cv_header_stdc+:} false; then :
4633   $as_echo_n "(cached) " >&6
4634 else
4635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h.  */
4637 #include <stdlib.h>
4638 #include <stdarg.h>
4639 #include <string.h>
4640 #include <float.h>
4641
4642 int
4643 main ()
4644 {
4645
4646   ;
4647   return 0;
4648 }
4649 _ACEOF
4650 if ac_fn_c_try_compile "$LINENO"; then :
4651   ac_cv_header_stdc=yes
4652 else
4653   ac_cv_header_stdc=no
4654 fi
4655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656
4657 if test $ac_cv_header_stdc = yes; then
4658   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h.  */
4661 #include <string.h>
4662
4663 _ACEOF
4664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4665   $EGREP "memchr" >/dev/null 2>&1; then :
4666
4667 else
4668   ac_cv_header_stdc=no
4669 fi
4670 rm -f conftest*
4671
4672 fi
4673
4674 if test $ac_cv_header_stdc = yes; then
4675   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h.  */
4678 #include <stdlib.h>
4679
4680 _ACEOF
4681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4682   $EGREP "free" >/dev/null 2>&1; then :
4683
4684 else
4685   ac_cv_header_stdc=no
4686 fi
4687 rm -f conftest*
4688
4689 fi
4690
4691 if test $ac_cv_header_stdc = yes; then
4692   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4693   if test "$cross_compiling" = yes; then :
4694   :
4695 else
4696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h.  */
4698 #include <ctype.h>
4699 #include <stdlib.h>
4700 #if ((' ' & 0x0FF) == 0x020)
4701 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4702 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4703 #else
4704 # define ISLOWER(c) \
4705                    (('a' <= (c) && (c) <= 'i') \
4706                      || ('j' <= (c) && (c) <= 'r') \
4707                      || ('s' <= (c) && (c) <= 'z'))
4708 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4709 #endif
4710
4711 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4712 int
4713 main ()
4714 {
4715   int i;
4716   for (i = 0; i < 256; i++)
4717     if (XOR (islower (i), ISLOWER (i))
4718         || toupper (i) != TOUPPER (i))
4719       return 2;
4720   return 0;
4721 }
4722 _ACEOF
4723 if ac_fn_c_try_run "$LINENO"; then :
4724
4725 else
4726   ac_cv_header_stdc=no
4727 fi
4728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4729   conftest.$ac_objext conftest.beam conftest.$ac_ext
4730 fi
4731
4732 fi
4733 fi
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4735 $as_echo "$ac_cv_header_stdc" >&6; }
4736 if test $ac_cv_header_stdc = yes; then
4737
4738 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4739
4740 fi
4741
4742 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4743 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4744                   inttypes.h stdint.h unistd.h
4745 do :
4746   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4747 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4748 "
4749 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4750   cat >>confdefs.h <<_ACEOF
4751 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4752 _ACEOF
4753
4754 fi
4755
4756 done
4757
4758
4759
4760   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4761 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4762   MINIX=yes
4763 else
4764   MINIX=
4765 fi
4766
4767
4768   if test "$MINIX" = yes; then
4769
4770 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4771
4772
4773 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4774
4775
4776 $as_echo "#define _MINIX 1" >>confdefs.h
4777
4778   fi
4779
4780
4781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4782 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4783 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4784   $as_echo_n "(cached) " >&6
4785 else
4786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h.  */
4788
4789 #         define __EXTENSIONS__ 1
4790           $ac_includes_default
4791 int
4792 main ()
4793 {
4794
4795   ;
4796   return 0;
4797 }
4798 _ACEOF
4799 if ac_fn_c_try_compile "$LINENO"; then :
4800   ac_cv_safe_to_define___extensions__=yes
4801 else
4802   ac_cv_safe_to_define___extensions__=no
4803 fi
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 fi
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4807 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4808   test $ac_cv_safe_to_define___extensions__ = yes &&
4809     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4810
4811   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4812
4813   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4814
4815   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4816
4817   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4818
4819
4820 ac_ext=c
4821 ac_cpp='$CPP $CPPFLAGS'
4822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4825 if test -n "$ac_tool_prefix"; then
4826   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4827 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if ${ac_cv_prog_CC+:} false; then :
4831   $as_echo_n "(cached) " >&6
4832 else
4833   if test -n "$CC"; then
4834   ac_cv_prog_CC="$CC" # Let the user override the test.
4835 else
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4838 do
4839   IFS=$as_save_IFS
4840   test -z "$as_dir" && as_dir=.
4841     for ac_exec_ext in '' $ac_executable_extensions; do
4842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4843     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4845     break 2
4846   fi
4847 done
4848   done
4849 IFS=$as_save_IFS
4850
4851 fi
4852 fi
4853 CC=$ac_cv_prog_CC
4854 if test -n "$CC"; then
4855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4856 $as_echo "$CC" >&6; }
4857 else
4858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4860 fi
4861
4862
4863 fi
4864 if test -z "$ac_cv_prog_CC"; then
4865   ac_ct_CC=$CC
4866   # Extract the first word of "gcc", so it can be a program name with args.
4867 set dummy gcc; ac_word=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4871   $as_echo_n "(cached) " >&6
4872 else
4873   if test -n "$ac_ct_CC"; then
4874   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4878 do
4879   IFS=$as_save_IFS
4880   test -z "$as_dir" && as_dir=.
4881     for ac_exec_ext in '' $ac_executable_extensions; do
4882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883     ac_cv_prog_ac_ct_CC="gcc"
4884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885     break 2
4886   fi
4887 done
4888   done
4889 IFS=$as_save_IFS
4890
4891 fi
4892 fi
4893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4894 if test -n "$ac_ct_CC"; then
4895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4896 $as_echo "$ac_ct_CC" >&6; }
4897 else
4898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4900 fi
4901
4902   if test "x$ac_ct_CC" = x; then
4903     CC=""
4904   else
4905     case $cross_compiling:$ac_tool_warned in
4906 yes:)
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4909 ac_tool_warned=yes ;;
4910 esac
4911     CC=$ac_ct_CC
4912   fi
4913 else
4914   CC="$ac_cv_prog_CC"
4915 fi
4916
4917 if test -z "$CC"; then
4918           if test -n "$ac_tool_prefix"; then
4919     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4920 set dummy ${ac_tool_prefix}cc; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if ${ac_cv_prog_CC+:} false; then :
4924   $as_echo_n "(cached) " >&6
4925 else
4926   if test -n "$CC"; then
4927   ac_cv_prog_CC="$CC" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4931 do
4932   IFS=$as_save_IFS
4933   test -z "$as_dir" && as_dir=.
4934     for ac_exec_ext in '' $ac_executable_extensions; do
4935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936     ac_cv_prog_CC="${ac_tool_prefix}cc"
4937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938     break 2
4939   fi
4940 done
4941   done
4942 IFS=$as_save_IFS
4943
4944 fi
4945 fi
4946 CC=$ac_cv_prog_CC
4947 if test -n "$CC"; then
4948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4949 $as_echo "$CC" >&6; }
4950 else
4951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4953 fi
4954
4955
4956   fi
4957 fi
4958 if test -z "$CC"; then
4959   # Extract the first word of "cc", so it can be a program name with args.
4960 set dummy cc; ac_word=$2
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962 $as_echo_n "checking for $ac_word... " >&6; }
4963 if ${ac_cv_prog_CC+:} false; then :
4964   $as_echo_n "(cached) " >&6
4965 else
4966   if test -n "$CC"; then
4967   ac_cv_prog_CC="$CC" # Let the user override the test.
4968 else
4969   ac_prog_rejected=no
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 for as_dir in $PATH
4972 do
4973   IFS=$as_save_IFS
4974   test -z "$as_dir" && as_dir=.
4975     for ac_exec_ext in '' $ac_executable_extensions; do
4976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4977     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4978        ac_prog_rejected=yes
4979        continue
4980      fi
4981     ac_cv_prog_CC="cc"
4982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983     break 2
4984   fi
4985 done
4986   done
4987 IFS=$as_save_IFS
4988
4989 if test $ac_prog_rejected = yes; then
4990   # We found a bogon in the path, so make sure we never use it.
4991   set dummy $ac_cv_prog_CC
4992   shift
4993   if test $# != 0; then
4994     # We chose a different compiler from the bogus one.
4995     # However, it has the same basename, so the bogon will be chosen
4996     # first if we set CC to just the basename; use the full file name.
4997     shift
4998     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4999   fi
5000 fi
5001 fi
5002 fi
5003 CC=$ac_cv_prog_CC
5004 if test -n "$CC"; then
5005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5006 $as_echo "$CC" >&6; }
5007 else
5008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 $as_echo "no" >&6; }
5010 fi
5011
5012
5013 fi
5014 if test -z "$CC"; then
5015   if test -n "$ac_tool_prefix"; then
5016   for ac_prog in cl.exe
5017   do
5018     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021 $as_echo_n "checking for $ac_word... " >&6; }
5022 if ${ac_cv_prog_CC+:} false; then :
5023   $as_echo_n "(cached) " >&6
5024 else
5025   if test -n "$CC"; then
5026   ac_cv_prog_CC="$CC" # Let the user override the test.
5027 else
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5030 do
5031   IFS=$as_save_IFS
5032   test -z "$as_dir" && as_dir=.
5033     for ac_exec_ext in '' $ac_executable_extensions; do
5034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5035     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5037     break 2
5038   fi
5039 done
5040   done
5041 IFS=$as_save_IFS
5042
5043 fi
5044 fi
5045 CC=$ac_cv_prog_CC
5046 if test -n "$CC"; then
5047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5048 $as_echo "$CC" >&6; }
5049 else
5050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5052 fi
5053
5054
5055     test -n "$CC" && break
5056   done
5057 fi
5058 if test -z "$CC"; then
5059   ac_ct_CC=$CC
5060   for ac_prog in cl.exe
5061 do
5062   # Extract the first word of "$ac_prog", so it can be a program name with args.
5063 set dummy $ac_prog; ac_word=$2
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065 $as_echo_n "checking for $ac_word... " >&6; }
5066 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5067   $as_echo_n "(cached) " >&6
5068 else
5069   if test -n "$ac_ct_CC"; then
5070   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5071 else
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5074 do
5075   IFS=$as_save_IFS
5076   test -z "$as_dir" && as_dir=.
5077     for ac_exec_ext in '' $ac_executable_extensions; do
5078   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5079     ac_cv_prog_ac_ct_CC="$ac_prog"
5080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081     break 2
5082   fi
5083 done
5084   done
5085 IFS=$as_save_IFS
5086
5087 fi
5088 fi
5089 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5090 if test -n "$ac_ct_CC"; then
5091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5092 $as_echo "$ac_ct_CC" >&6; }
5093 else
5094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5096 fi
5097
5098
5099   test -n "$ac_ct_CC" && break
5100 done
5101
5102   if test "x$ac_ct_CC" = x; then
5103     CC=""
5104   else
5105     case $cross_compiling:$ac_tool_warned in
5106 yes:)
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5109 ac_tool_warned=yes ;;
5110 esac
5111     CC=$ac_ct_CC
5112   fi
5113 fi
5114
5115 fi
5116
5117
5118 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5120 as_fn_error $? "no acceptable C compiler found in \$PATH
5121 See \`config.log' for more details" "$LINENO" 5; }
5122
5123 # Provide some information about the compiler.
5124 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5125 set X $ac_compile
5126 ac_compiler=$2
5127 for ac_option in --version -v -V -qversion; do
5128   { { ac_try="$ac_compiler $ac_option >&5"
5129 case "(($ac_try" in
5130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131   *) ac_try_echo=$ac_try;;
5132 esac
5133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5134 $as_echo "$ac_try_echo"; } >&5
5135   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5136   ac_status=$?
5137   if test -s conftest.err; then
5138     sed '10a\
5139 ... rest of stderr output deleted ...
5140          10q' conftest.err >conftest.er1
5141     cat conftest.er1 >&5
5142   fi
5143   rm -f conftest.er1 conftest.err
5144   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5145   test $ac_status = 0; }
5146 done
5147
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5149 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5150 if ${ac_cv_c_compiler_gnu+:} false; then :
5151   $as_echo_n "(cached) " >&6
5152 else
5153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h.  */
5155
5156 int
5157 main ()
5158 {
5159 #ifndef __GNUC__
5160        choke me
5161 #endif
5162
5163   ;
5164   return 0;
5165 }
5166 _ACEOF
5167 if ac_fn_c_try_compile "$LINENO"; then :
5168   ac_compiler_gnu=yes
5169 else
5170   ac_compiler_gnu=no
5171 fi
5172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5173 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5174
5175 fi
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5177 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5178 if test $ac_compiler_gnu = yes; then
5179   GCC=yes
5180 else
5181   GCC=
5182 fi
5183 ac_test_CFLAGS=${CFLAGS+set}
5184 ac_save_CFLAGS=$CFLAGS
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5186 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5187 if ${ac_cv_prog_cc_g+:} false; then :
5188   $as_echo_n "(cached) " >&6
5189 else
5190   ac_save_c_werror_flag=$ac_c_werror_flag
5191    ac_c_werror_flag=yes
5192    ac_cv_prog_cc_g=no
5193    CFLAGS="-g"
5194    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h.  */
5196
5197 int
5198 main ()
5199 {
5200
5201   ;
5202   return 0;
5203 }
5204 _ACEOF
5205 if ac_fn_c_try_compile "$LINENO"; then :
5206   ac_cv_prog_cc_g=yes
5207 else
5208   CFLAGS=""
5209       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210 /* end confdefs.h.  */
5211
5212 int
5213 main ()
5214 {
5215
5216   ;
5217   return 0;
5218 }
5219 _ACEOF
5220 if ac_fn_c_try_compile "$LINENO"; then :
5221
5222 else
5223   ac_c_werror_flag=$ac_save_c_werror_flag
5224          CFLAGS="-g"
5225          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h.  */
5227
5228 int
5229 main ()
5230 {
5231
5232   ;
5233   return 0;
5234 }
5235 _ACEOF
5236 if ac_fn_c_try_compile "$LINENO"; then :
5237   ac_cv_prog_cc_g=yes
5238 fi
5239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5240 fi
5241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242 fi
5243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5244    ac_c_werror_flag=$ac_save_c_werror_flag
5245 fi
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5247 $as_echo "$ac_cv_prog_cc_g" >&6; }
5248 if test "$ac_test_CFLAGS" = set; then
5249   CFLAGS=$ac_save_CFLAGS
5250 elif test $ac_cv_prog_cc_g = yes; then
5251   if test "$GCC" = yes; then
5252     CFLAGS="-g -O2"
5253   else
5254     CFLAGS="-g"
5255   fi
5256 else
5257   if test "$GCC" = yes; then
5258     CFLAGS="-O2"
5259   else
5260     CFLAGS=
5261   fi
5262 fi
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5264 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5265 if ${ac_cv_prog_cc_c89+:} false; then :
5266   $as_echo_n "(cached) " >&6
5267 else
5268   ac_cv_prog_cc_c89=no
5269 ac_save_CC=$CC
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h.  */
5272 #include <stdarg.h>
5273 #include <stdio.h>
5274 struct stat;
5275 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5276 struct buf { int x; };
5277 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5278 static char *e (p, i)
5279      char **p;
5280      int i;
5281 {
5282   return p[i];
5283 }
5284 static char *f (char * (*g) (char **, int), char **p, ...)
5285 {
5286   char *s;
5287   va_list v;
5288   va_start (v,p);
5289   s = g (p, va_arg (v,int));
5290   va_end (v);
5291   return s;
5292 }
5293
5294 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5295    function prototypes and stuff, but not '\xHH' hex character constants.
5296    These don't provoke an error unfortunately, instead are silently treated
5297    as 'x'.  The following induces an error, until -std is added to get
5298    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5299    array size at least.  It's necessary to write '\x00'==0 to get something
5300    that's true only with -std.  */
5301 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5302
5303 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5304    inside strings and character constants.  */
5305 #define FOO(x) 'x'
5306 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5307
5308 int test (int i, double x);
5309 struct s1 {int (*f) (int a);};
5310 struct s2 {int (*f) (double a);};
5311 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5312 int argc;
5313 char **argv;
5314 int
5315 main ()
5316 {
5317 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5318   ;
5319   return 0;
5320 }
5321 _ACEOF
5322 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5323         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5324 do
5325   CC="$ac_save_CC $ac_arg"
5326   if ac_fn_c_try_compile "$LINENO"; then :
5327   ac_cv_prog_cc_c89=$ac_arg
5328 fi
5329 rm -f core conftest.err conftest.$ac_objext
5330   test "x$ac_cv_prog_cc_c89" != "xno" && break
5331 done
5332 rm -f conftest.$ac_ext
5333 CC=$ac_save_CC
5334
5335 fi
5336 # AC_CACHE_VAL
5337 case "x$ac_cv_prog_cc_c89" in
5338   x)
5339     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5340 $as_echo "none needed" >&6; } ;;
5341   xno)
5342     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5343 $as_echo "unsupported" >&6; } ;;
5344   *)
5345     CC="$CC $ac_cv_prog_cc_c89"
5346     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5347 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5348 esac
5349 if test "x$ac_cv_prog_cc_c89" != xno; then :
5350
5351 fi
5352
5353 ac_ext=c
5354 ac_cpp='$CPP $CPPFLAGS'
5355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5358
5359 ac_ext=c
5360 ac_cpp='$CPP $CPPFLAGS'
5361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5365 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5366 if ${am_cv_prog_cc_c_o+:} false; then :
5367   $as_echo_n "(cached) " >&6
5368 else
5369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h.  */
5371
5372 int
5373 main ()
5374 {
5375
5376   ;
5377   return 0;
5378 }
5379 _ACEOF
5380   # Make sure it works both with $CC and with simple cc.
5381   # Following AC_PROG_CC_C_O, we do the test twice because some
5382   # compilers refuse to overwrite an existing .o file with -o,
5383   # though they will create one.
5384   am_cv_prog_cc_c_o=yes
5385   for am_i in 1 2; do
5386     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5387    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5388    ac_status=$?
5389    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390    (exit $ac_status); } \
5391          && test -f conftest2.$ac_objext; then
5392       : OK
5393     else
5394       am_cv_prog_cc_c_o=no
5395       break
5396     fi
5397   done
5398   rm -f core conftest*
5399   unset am_i
5400 fi
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5402 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5403 if test "$am_cv_prog_cc_c_o" != yes; then
5404    # Losing compiler, so override with the script.
5405    # FIXME: It is wrong to rewrite CC.
5406    # But if we don't then we get into trouble of one sort or another.
5407    # A longer-term fix would be to have automake use am__CC in this case,
5408    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5409    CC="$am_aux_dir/compile $CC"
5410 fi
5411 ac_ext=c
5412 ac_cpp='$CPP $CPPFLAGS'
5413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5416
5417
5418 depcc="$CC"   am_compiler_list=
5419
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5421 $as_echo_n "checking dependency style of $depcc... " >&6; }
5422 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5423   $as_echo_n "(cached) " >&6
5424 else
5425   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5426   # We make a subdir and do the tests there.  Otherwise we can end up
5427   # making bogus files that we don't know about and never remove.  For
5428   # instance it was reported that on HP-UX the gcc test will end up
5429   # making a dummy file named 'D' -- because '-MD' means "put the output
5430   # in D".
5431   rm -rf conftest.dir
5432   mkdir conftest.dir
5433   # Copy depcomp to subdir because otherwise we won't find it if we're
5434   # using a relative directory.
5435   cp "$am_depcomp" conftest.dir
5436   cd conftest.dir
5437   # We will build objects and dependencies in a subdirectory because
5438   # it helps to detect inapplicable dependency modes.  For instance
5439   # both Tru64's cc and ICC support -MD to output dependencies as a
5440   # side effect of compilation, but ICC will put the dependencies in
5441   # the current directory while Tru64 will put them in the object
5442   # directory.
5443   mkdir sub
5444
5445   am_cv_CC_dependencies_compiler_type=none
5446   if test "$am_compiler_list" = ""; then
5447      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5448   fi
5449   am__universal=false
5450   case " $depcc " in #(
5451      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5452      esac
5453
5454   for depmode in $am_compiler_list; do
5455     # Setup a source with many dependencies, because some compilers
5456     # like to wrap large dependency lists on column 80 (with \), and
5457     # we should not choose a depcomp mode which is confused by this.
5458     #
5459     # We need to recreate these files for each test, as the compiler may
5460     # overwrite some of them when testing with obscure command lines.
5461     # This happens at least with the AIX C compiler.
5462     : > sub/conftest.c
5463     for i in 1 2 3 4 5 6; do
5464       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5465       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5466       # Solaris 10 /bin/sh.
5467       echo '/* dummy */' > sub/conftst$i.h
5468     done
5469     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5470
5471     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5472     # mode.  It turns out that the SunPro C++ compiler does not properly
5473     # handle '-M -o', and we need to detect this.  Also, some Intel
5474     # versions had trouble with output in subdirs.
5475     am__obj=sub/conftest.${OBJEXT-o}
5476     am__minus_obj="-o $am__obj"
5477     case $depmode in
5478     gcc)
5479       # This depmode causes a compiler race in universal mode.
5480       test "$am__universal" = false || continue
5481       ;;
5482     nosideeffect)
5483       # After this tag, mechanisms are not by side-effect, so they'll
5484       # only be used when explicitly requested.
5485       if test "x$enable_dependency_tracking" = xyes; then
5486         continue
5487       else
5488         break
5489       fi
5490       ;;
5491     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5492       # This compiler won't grok '-c -o', but also, the minuso test has
5493       # not run yet.  These depmodes are late enough in the game, and
5494       # so weak that their functioning should not be impacted.
5495       am__obj=conftest.${OBJEXT-o}
5496       am__minus_obj=
5497       ;;
5498     none) break ;;
5499     esac
5500     if depmode=$depmode \
5501        source=sub/conftest.c object=$am__obj \
5502        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5503        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5504          >/dev/null 2>conftest.err &&
5505        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5506        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5507        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5508        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5509       # icc doesn't choke on unknown options, it will just issue warnings
5510       # or remarks (even with -Werror).  So we grep stderr for any message
5511       # that says an option was ignored or not supported.
5512       # When given -MP, icc 7.0 and 7.1 complain thusly:
5513       #   icc: Command line warning: ignoring option '-M'; no argument required
5514       # The diagnosis changed in icc 8.0:
5515       #   icc: Command line remark: option '-MP' not supported
5516       if (grep 'ignoring option' conftest.err ||
5517           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5518         am_cv_CC_dependencies_compiler_type=$depmode
5519         break
5520       fi
5521     fi
5522   done
5523
5524   cd ..
5525   rm -rf conftest.dir
5526 else
5527   am_cv_CC_dependencies_compiler_type=none
5528 fi
5529
5530 fi
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5532 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5533 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5534
5535  if
5536   test "x$enable_dependency_tracking" != xno \
5537   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5538   am__fastdepCC_TRUE=
5539   am__fastdepCC_FALSE='#'
5540 else
5541   am__fastdepCC_TRUE='#'
5542   am__fastdepCC_FALSE=
5543 fi
5544
5545
5546
5547 ac_ext=c
5548 ac_cpp='$CPP $CPPFLAGS'
5549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5553 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5554 # On Suns, sometimes $CPP names a directory.
5555 if test -n "$CPP" && test -d "$CPP"; then
5556   CPP=
5557 fi
5558 if test -z "$CPP"; then
5559   if ${ac_cv_prog_CPP+:} false; then :
5560   $as_echo_n "(cached) " >&6
5561 else
5562       # Double quotes because CPP needs to be expanded
5563     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5564     do
5565       ac_preproc_ok=false
5566 for ac_c_preproc_warn_flag in '' yes
5567 do
5568   # Use a header file that comes with gcc, so configuring glibc
5569   # with a fresh cross-compiler works.
5570   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5571   # <limits.h> exists even on freestanding compilers.
5572   # On the NeXT, cc -E runs the code through the compiler's parser,
5573   # not just through cpp. "Syntax error" is here to catch this case.
5574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h.  */
5576 #ifdef __STDC__
5577 # include <limits.h>
5578 #else
5579 # include <assert.h>
5580 #endif
5581                      Syntax error
5582 _ACEOF
5583 if ac_fn_c_try_cpp "$LINENO"; then :
5584
5585 else
5586   # Broken: fails on valid input.
5587 continue
5588 fi
5589 rm -f conftest.err conftest.i conftest.$ac_ext
5590
5591   # OK, works on sane cases.  Now check whether nonexistent headers
5592   # can be detected and how.
5593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h.  */
5595 #include <ac_nonexistent.h>
5596 _ACEOF
5597 if ac_fn_c_try_cpp "$LINENO"; then :
5598   # Broken: success on invalid input.
5599 continue
5600 else
5601   # Passes both tests.
5602 ac_preproc_ok=:
5603 break
5604 fi
5605 rm -f conftest.err conftest.i conftest.$ac_ext
5606
5607 done
5608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5609 rm -f conftest.i conftest.err conftest.$ac_ext
5610 if $ac_preproc_ok; then :
5611   break
5612 fi
5613
5614     done
5615     ac_cv_prog_CPP=$CPP
5616
5617 fi
5618   CPP=$ac_cv_prog_CPP
5619 else
5620   ac_cv_prog_CPP=$CPP
5621 fi
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5623 $as_echo "$CPP" >&6; }
5624 ac_preproc_ok=false
5625 for ac_c_preproc_warn_flag in '' yes
5626 do
5627   # Use a header file that comes with gcc, so configuring glibc
5628   # with a fresh cross-compiler works.
5629   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5630   # <limits.h> exists even on freestanding compilers.
5631   # On the NeXT, cc -E runs the code through the compiler's parser,
5632   # not just through cpp. "Syntax error" is here to catch this case.
5633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h.  */
5635 #ifdef __STDC__
5636 # include <limits.h>
5637 #else
5638 # include <assert.h>
5639 #endif
5640                      Syntax error
5641 _ACEOF
5642 if ac_fn_c_try_cpp "$LINENO"; then :
5643
5644 else
5645   # Broken: fails on valid input.
5646 continue
5647 fi
5648 rm -f conftest.err conftest.i conftest.$ac_ext
5649
5650   # OK, works on sane cases.  Now check whether nonexistent headers
5651   # can be detected and how.
5652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h.  */
5654 #include <ac_nonexistent.h>
5655 _ACEOF
5656 if ac_fn_c_try_cpp "$LINENO"; then :
5657   # Broken: success on invalid input.
5658 continue
5659 else
5660   # Passes both tests.
5661 ac_preproc_ok=:
5662 break
5663 fi
5664 rm -f conftest.err conftest.i conftest.$ac_ext
5665
5666 done
5667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5668 rm -f conftest.i conftest.err conftest.$ac_ext
5669 if $ac_preproc_ok; then :
5670
5671 else
5672   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5674 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5675 See \`config.log' for more details" "$LINENO" 5; }
5676 fi
5677
5678 ac_ext=c
5679 ac_cpp='$CPP $CPPFLAGS'
5680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5683
5684
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5686 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5687 set x ${MAKE-make}
5688 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5689 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5690   $as_echo_n "(cached) " >&6
5691 else
5692   cat >conftest.make <<\_ACEOF
5693 SHELL = /bin/sh
5694 all:
5695         @echo '@@@%%%=$(MAKE)=@@@%%%'
5696 _ACEOF
5697 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5698 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5699   *@@@%%%=?*=@@@%%%*)
5700     eval ac_cv_prog_make_${ac_make}_set=yes;;
5701   *)
5702     eval ac_cv_prog_make_${ac_make}_set=no;;
5703 esac
5704 rm -f conftest.make
5705 fi
5706 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5708 $as_echo "yes" >&6; }
5709   SET_MAKE=
5710 else
5711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5713   SET_MAKE="MAKE=${MAKE-make}"
5714 fi
5715
5716 # Check whether --enable-static was given.
5717 if test "${enable_static+set}" = set; then :
5718   enableval=$enable_static; p=${PACKAGE-default}
5719     case $enableval in
5720     yes) enable_static=yes ;;
5721     no) enable_static=no ;;
5722     *)
5723      enable_static=no
5724       # Look at the argument we got.  We use all the common list separators.
5725       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
5726       for pkg in $enableval; do
5727         IFS=$lt_save_ifs
5728         if test "X$pkg" = "X$p"; then
5729           enable_static=yes
5730         fi
5731       done
5732       IFS=$lt_save_ifs
5733       ;;
5734     esac
5735 else
5736   enable_static=no
5737 fi
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747 case `pwd` in
5748   *\ * | *\     *)
5749     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5750 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5751 esac
5752
5753
5754
5755 macro_version='2.4.6'
5756 macro_revision='2.4.6'
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770 ltmain=$ac_aux_dir/ltmain.sh
5771
5772 # Backslashify metacharacters that are still active within
5773 # double-quoted strings.
5774 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5775
5776 # Same as above, but do not quote variable references.
5777 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5778
5779 # Sed substitution to delay expansion of an escaped shell variable in a
5780 # double_quote_subst'ed string.
5781 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5782
5783 # Sed substitution to delay expansion of an escaped single quote.
5784 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5785
5786 # Sed substitution to avoid accidental globbing in evaled expressions
5787 no_glob_subst='s/\*/\\\*/g'
5788
5789 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5790 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5791 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5792
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5794 $as_echo_n "checking how to print strings... " >&6; }
5795 # Test print first, because it will be a builtin if present.
5796 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5797    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5798   ECHO='print -r --'
5799 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5800   ECHO='printf %s\n'
5801 else
5802   # Use this function as a fallback that always works.
5803   func_fallback_echo ()
5804   {
5805     eval 'cat <<_LTECHO_EOF
5806 $1
5807 _LTECHO_EOF'
5808   }
5809   ECHO='func_fallback_echo'
5810 fi
5811
5812 # func_echo_all arg...
5813 # Invoke $ECHO with all args, space-separated.
5814 func_echo_all ()
5815 {
5816     $ECHO ""
5817 }
5818
5819 case $ECHO in
5820   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5821 $as_echo "printf" >&6; } ;;
5822   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5823 $as_echo "print -r" >&6; } ;;
5824   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5825 $as_echo "cat" >&6; } ;;
5826 esac
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5842 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5843 if ${ac_cv_path_SED+:} false; then :
5844   $as_echo_n "(cached) " >&6
5845 else
5846             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5847      for ac_i in 1 2 3 4 5 6 7; do
5848        ac_script="$ac_script$as_nl$ac_script"
5849      done
5850      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5851      { ac_script=; unset ac_script;}
5852      if test -z "$SED"; then
5853   ac_path_SED_found=false
5854   # Loop through the user's path and test for each of PROGNAME-LIST
5855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858   IFS=$as_save_IFS
5859   test -z "$as_dir" && as_dir=.
5860     for ac_prog in sed gsed; do
5861     for ac_exec_ext in '' $ac_executable_extensions; do
5862       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5863       as_fn_executable_p "$ac_path_SED" || continue
5864 # Check for GNU ac_path_SED and select it if it is found.
5865   # Check for GNU $ac_path_SED
5866 case `"$ac_path_SED" --version 2>&1` in
5867 *GNU*)
5868   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5869 *)
5870   ac_count=0
5871   $as_echo_n 0123456789 >"conftest.in"
5872   while :
5873   do
5874     cat "conftest.in" "conftest.in" >"conftest.tmp"
5875     mv "conftest.tmp" "conftest.in"
5876     cp "conftest.in" "conftest.nl"
5877     $as_echo '' >> "conftest.nl"
5878     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5879     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5880     as_fn_arith $ac_count + 1 && ac_count=$as_val
5881     if test $ac_count -gt ${ac_path_SED_max-0}; then
5882       # Best one so far, save it but keep looking for a better one
5883       ac_cv_path_SED="$ac_path_SED"
5884       ac_path_SED_max=$ac_count
5885     fi
5886     # 10*(2^10) chars as input seems more than enough
5887     test $ac_count -gt 10 && break
5888   done
5889   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5890 esac
5891
5892       $ac_path_SED_found && break 3
5893     done
5894   done
5895   done
5896 IFS=$as_save_IFS
5897   if test -z "$ac_cv_path_SED"; then
5898     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5899   fi
5900 else
5901   ac_cv_path_SED=$SED
5902 fi
5903
5904 fi
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5906 $as_echo "$ac_cv_path_SED" >&6; }
5907  SED="$ac_cv_path_SED"
5908   rm -f conftest.sed
5909
5910 test -z "$SED" && SED=sed
5911 Xsed="$SED -e 1s/^X//"
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5924 $as_echo_n "checking for fgrep... " >&6; }
5925 if ${ac_cv_path_FGREP+:} false; then :
5926   $as_echo_n "(cached) " >&6
5927 else
5928   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5929    then ac_cv_path_FGREP="$GREP -F"
5930    else
5931      if test -z "$FGREP"; then
5932   ac_path_FGREP_found=false
5933   # Loop through the user's path and test for each of PROGNAME-LIST
5934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5936 do
5937   IFS=$as_save_IFS
5938   test -z "$as_dir" && as_dir=.
5939     for ac_prog in fgrep; do
5940     for ac_exec_ext in '' $ac_executable_extensions; do
5941       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5942       as_fn_executable_p "$ac_path_FGREP" || continue
5943 # Check for GNU ac_path_FGREP and select it if it is found.
5944   # Check for GNU $ac_path_FGREP
5945 case `"$ac_path_FGREP" --version 2>&1` in
5946 *GNU*)
5947   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5948 *)
5949   ac_count=0
5950   $as_echo_n 0123456789 >"conftest.in"
5951   while :
5952   do
5953     cat "conftest.in" "conftest.in" >"conftest.tmp"
5954     mv "conftest.tmp" "conftest.in"
5955     cp "conftest.in" "conftest.nl"
5956     $as_echo 'FGREP' >> "conftest.nl"
5957     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5958     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5959     as_fn_arith $ac_count + 1 && ac_count=$as_val
5960     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5961       # Best one so far, save it but keep looking for a better one
5962       ac_cv_path_FGREP="$ac_path_FGREP"
5963       ac_path_FGREP_max=$ac_count
5964     fi
5965     # 10*(2^10) chars as input seems more than enough
5966     test $ac_count -gt 10 && break
5967   done
5968   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5969 esac
5970
5971       $ac_path_FGREP_found && break 3
5972     done
5973   done
5974   done
5975 IFS=$as_save_IFS
5976   if test -z "$ac_cv_path_FGREP"; then
5977     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5978   fi
5979 else
5980   ac_cv_path_FGREP=$FGREP
5981 fi
5982
5983    fi
5984 fi
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5986 $as_echo "$ac_cv_path_FGREP" >&6; }
5987  FGREP="$ac_cv_path_FGREP"
5988
5989
5990 test -z "$GREP" && GREP=grep
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010 # Check whether --with-gnu-ld was given.
6011 if test "${with_gnu_ld+set}" = set; then :
6012   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6013 else
6014   with_gnu_ld=no
6015 fi
6016
6017 ac_prog=ld
6018 if test yes = "$GCC"; then
6019   # Check if gcc -print-prog-name=ld gives a path.
6020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6021 $as_echo_n "checking for ld used by $CC... " >&6; }
6022   case $host in
6023   *-*-mingw*)
6024     # gcc leaves a trailing carriage return, which upsets mingw
6025     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6026   *)
6027     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6028   esac
6029   case $ac_prog in
6030     # Accept absolute paths.
6031     [\\/]* | ?:[\\/]*)
6032       re_direlt='/[^/][^/]*/\.\./'
6033       # Canonicalize the pathname of ld
6034       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6035       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6036         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6037       done
6038       test -z "$LD" && LD=$ac_prog
6039       ;;
6040   "")
6041     # If it fails, then pretend we aren't using GCC.
6042     ac_prog=ld
6043     ;;
6044   *)
6045     # If it is relative, then search for the first ld in PATH.
6046     with_gnu_ld=unknown
6047     ;;
6048   esac
6049 elif test yes = "$with_gnu_ld"; then
6050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6051 $as_echo_n "checking for GNU ld... " >&6; }
6052 else
6053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6054 $as_echo_n "checking for non-GNU ld... " >&6; }
6055 fi
6056 if ${lt_cv_path_LD+:} false; then :
6057   $as_echo_n "(cached) " >&6
6058 else
6059   if test -z "$LD"; then
6060   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6061   for ac_dir in $PATH; do
6062     IFS=$lt_save_ifs
6063     test -z "$ac_dir" && ac_dir=.
6064     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6065       lt_cv_path_LD=$ac_dir/$ac_prog
6066       # Check to see if the program is GNU ld.  I'd rather use --version,
6067       # but apparently some variants of GNU ld only accept -v.
6068       # Break only if it was the GNU/non-GNU ld that we prefer.
6069       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6070       *GNU* | *'with BFD'*)
6071         test no != "$with_gnu_ld" && break
6072         ;;
6073       *)
6074         test yes != "$with_gnu_ld" && break
6075         ;;
6076       esac
6077     fi
6078   done
6079   IFS=$lt_save_ifs
6080 else
6081   lt_cv_path_LD=$LD # Let the user override the test with a path.
6082 fi
6083 fi
6084
6085 LD=$lt_cv_path_LD
6086 if test -n "$LD"; then
6087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6088 $as_echo "$LD" >&6; }
6089 else
6090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 $as_echo "no" >&6; }
6092 fi
6093 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6095 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6096 if ${lt_cv_prog_gnu_ld+:} false; then :
6097   $as_echo_n "(cached) " >&6
6098 else
6099   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6100 case `$LD -v 2>&1 </dev/null` in
6101 *GNU* | *'with BFD'*)
6102   lt_cv_prog_gnu_ld=yes
6103   ;;
6104 *)
6105   lt_cv_prog_gnu_ld=no
6106   ;;
6107 esac
6108 fi
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6110 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6111 with_gnu_ld=$lt_cv_prog_gnu_ld
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6122 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6123 if ${lt_cv_path_NM+:} false; then :
6124   $as_echo_n "(cached) " >&6
6125 else
6126   if test -n "$NM"; then
6127   # Let the user override the test.
6128   lt_cv_path_NM=$NM
6129 else
6130   lt_nm_to_check=${ac_tool_prefix}nm
6131   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6132     lt_nm_to_check="$lt_nm_to_check nm"
6133   fi
6134   for lt_tmp_nm in $lt_nm_to_check; do
6135     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6136     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6137       IFS=$lt_save_ifs
6138       test -z "$ac_dir" && ac_dir=.
6139       tmp_nm=$ac_dir/$lt_tmp_nm
6140       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6141         # Check to see if the nm accepts a BSD-compat flag.
6142         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6143         #   nm: unknown option "B" ignored
6144         # Tru64's nm complains that /dev/null is an invalid object file
6145         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6146         case $build_os in
6147         mingw*) lt_bad_file=conftest.nm/nofile ;;
6148         *) lt_bad_file=/dev/null ;;
6149         esac
6150         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6151         *$lt_bad_file* | *'Invalid file or object type'*)
6152           lt_cv_path_NM="$tmp_nm -B"
6153           break 2
6154           ;;
6155         *)
6156           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6157           */dev/null*)
6158             lt_cv_path_NM="$tmp_nm -p"
6159             break 2
6160             ;;
6161           *)
6162             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6163             continue # so that we can try to find one that supports BSD flags
6164             ;;
6165           esac
6166           ;;
6167         esac
6168       fi
6169     done
6170     IFS=$lt_save_ifs
6171   done
6172   : ${lt_cv_path_NM=no}
6173 fi
6174 fi
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6176 $as_echo "$lt_cv_path_NM" >&6; }
6177 if test no != "$lt_cv_path_NM"; then
6178   NM=$lt_cv_path_NM
6179 else
6180   # Didn't find any BSD compatible name lister, look for dumpbin.
6181   if test -n "$DUMPBIN"; then :
6182     # Let the user override the test.
6183   else
6184     if test -n "$ac_tool_prefix"; then
6185   for ac_prog in dumpbin "link -dump"
6186   do
6187     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6188 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190 $as_echo_n "checking for $ac_word... " >&6; }
6191 if ${ac_cv_prog_DUMPBIN+:} false; then :
6192   $as_echo_n "(cached) " >&6
6193 else
6194   if test -n "$DUMPBIN"; then
6195   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6196 else
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6199 do
6200   IFS=$as_save_IFS
6201   test -z "$as_dir" && as_dir=.
6202     for ac_exec_ext in '' $ac_executable_extensions; do
6203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6204     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206     break 2
6207   fi
6208 done
6209   done
6210 IFS=$as_save_IFS
6211
6212 fi
6213 fi
6214 DUMPBIN=$ac_cv_prog_DUMPBIN
6215 if test -n "$DUMPBIN"; then
6216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6217 $as_echo "$DUMPBIN" >&6; }
6218 else
6219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220 $as_echo "no" >&6; }
6221 fi
6222
6223
6224     test -n "$DUMPBIN" && break
6225   done
6226 fi
6227 if test -z "$DUMPBIN"; then
6228   ac_ct_DUMPBIN=$DUMPBIN
6229   for ac_prog in dumpbin "link -dump"
6230 do
6231   # Extract the first word of "$ac_prog", so it can be a program name with args.
6232 set dummy $ac_prog; ac_word=$2
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234 $as_echo_n "checking for $ac_word... " >&6; }
6235 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6236   $as_echo_n "(cached) " >&6
6237 else
6238   if test -n "$ac_ct_DUMPBIN"; then
6239   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6240 else
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6243 do
6244   IFS=$as_save_IFS
6245   test -z "$as_dir" && as_dir=.
6246     for ac_exec_ext in '' $ac_executable_extensions; do
6247   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6248     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6250     break 2
6251   fi
6252 done
6253   done
6254 IFS=$as_save_IFS
6255
6256 fi
6257 fi
6258 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6259 if test -n "$ac_ct_DUMPBIN"; then
6260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6261 $as_echo "$ac_ct_DUMPBIN" >&6; }
6262 else
6263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264 $as_echo "no" >&6; }
6265 fi
6266
6267
6268   test -n "$ac_ct_DUMPBIN" && break
6269 done
6270
6271   if test "x$ac_ct_DUMPBIN" = x; then
6272     DUMPBIN=":"
6273   else
6274     case $cross_compiling:$ac_tool_warned in
6275 yes:)
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6278 ac_tool_warned=yes ;;
6279 esac
6280     DUMPBIN=$ac_ct_DUMPBIN
6281   fi
6282 fi
6283
6284     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6285     *COFF*)
6286       DUMPBIN="$DUMPBIN -symbols -headers"
6287       ;;
6288     *)
6289       DUMPBIN=:
6290       ;;
6291     esac
6292   fi
6293
6294   if test : != "$DUMPBIN"; then
6295     NM=$DUMPBIN
6296   fi
6297 fi
6298 test -z "$NM" && NM=nm
6299
6300
6301
6302
6303
6304
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6306 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6307 if ${lt_cv_nm_interface+:} false; then :
6308   $as_echo_n "(cached) " >&6
6309 else
6310   lt_cv_nm_interface="BSD nm"
6311   echo "int some_variable = 0;" > conftest.$ac_ext
6312   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6313   (eval "$ac_compile" 2>conftest.err)
6314   cat conftest.err >&5
6315   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6316   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6317   cat conftest.err >&5
6318   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6319   cat conftest.out >&5
6320   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6321     lt_cv_nm_interface="MS dumpbin"
6322   fi
6323   rm -f conftest*
6324 fi
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6326 $as_echo "$lt_cv_nm_interface" >&6; }
6327
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6329 $as_echo_n "checking whether ln -s works... " >&6; }
6330 LN_S=$as_ln_s
6331 if test "$LN_S" = "ln -s"; then
6332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6333 $as_echo "yes" >&6; }
6334 else
6335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6336 $as_echo "no, using $LN_S" >&6; }
6337 fi
6338
6339 # find the maximum length of command line arguments
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6341 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6342 if ${lt_cv_sys_max_cmd_len+:} false; then :
6343   $as_echo_n "(cached) " >&6
6344 else
6345     i=0
6346   teststring=ABCD
6347
6348   case $build_os in
6349   msdosdjgpp*)
6350     # On DJGPP, this test can blow up pretty badly due to problems in libc
6351     # (any single argument exceeding 2000 bytes causes a buffer overrun
6352     # during glob expansion).  Even if it were fixed, the result of this
6353     # check would be larger than it should be.
6354     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6355     ;;
6356
6357   gnu*)
6358     # Under GNU Hurd, this test is not required because there is
6359     # no limit to the length of command line arguments.
6360     # Libtool will interpret -1 as no limit whatsoever
6361     lt_cv_sys_max_cmd_len=-1;
6362     ;;
6363
6364   cygwin* | mingw* | cegcc*)
6365     # On Win9x/ME, this test blows up -- it succeeds, but takes
6366     # about 5 minutes as the teststring grows exponentially.
6367     # Worse, since 9x/ME are not pre-emptively multitasking,
6368     # you end up with a "frozen" computer, even though with patience
6369     # the test eventually succeeds (with a max line length of 256k).
6370     # Instead, let's just punt: use the minimum linelength reported by
6371     # all of the supported platforms: 8192 (on NT/2K/XP).
6372     lt_cv_sys_max_cmd_len=8192;
6373     ;;
6374
6375   mint*)
6376     # On MiNT this can take a long time and run out of memory.
6377     lt_cv_sys_max_cmd_len=8192;
6378     ;;
6379
6380   amigaos*)
6381     # On AmigaOS with pdksh, this test takes hours, literally.
6382     # So we just punt and use a minimum line length of 8192.
6383     lt_cv_sys_max_cmd_len=8192;
6384     ;;
6385
6386   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6387     # This has been around since 386BSD, at least.  Likely further.
6388     if test -x /sbin/sysctl; then
6389       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6390     elif test -x /usr/sbin/sysctl; then
6391       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6392     else
6393       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6394     fi
6395     # And add a safety zone
6396     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6397     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6398     ;;
6399
6400   interix*)
6401     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6402     lt_cv_sys_max_cmd_len=196608
6403     ;;
6404
6405   os2*)
6406     # The test takes a long time on OS/2.
6407     lt_cv_sys_max_cmd_len=8192
6408     ;;
6409
6410   osf*)
6411     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6412     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6413     # nice to cause kernel panics so lets avoid the loop below.
6414     # First set a reasonable default.
6415     lt_cv_sys_max_cmd_len=16384
6416     #
6417     if test -x /sbin/sysconfig; then
6418       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6419         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6420       esac
6421     fi
6422     ;;
6423   sco3.2v5*)
6424     lt_cv_sys_max_cmd_len=102400
6425     ;;
6426   sysv5* | sco5v6* | sysv4.2uw2*)
6427     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6428     if test -n "$kargmax"; then
6429       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6430     else
6431       lt_cv_sys_max_cmd_len=32768
6432     fi
6433     ;;
6434   *)
6435     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6436     if test -n "$lt_cv_sys_max_cmd_len" && \
6437        test undefined != "$lt_cv_sys_max_cmd_len"; then
6438       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6439       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6440     else
6441       # Make teststring a little bigger before we do anything with it.
6442       # a 1K string should be a reasonable start.
6443       for i in 1 2 3 4 5 6 7 8; do
6444         teststring=$teststring$teststring
6445       done
6446       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6447       # If test is not a shell built-in, we'll probably end up computing a
6448       # maximum length that is only half of the actual maximum length, but
6449       # we can't tell.
6450       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6451                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6452               test 17 != "$i" # 1/2 MB should be enough
6453       do
6454         i=`expr $i + 1`
6455         teststring=$teststring$teststring
6456       done
6457       # Only check the string length outside the loop.
6458       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6459       teststring=
6460       # Add a significant safety factor because C++ compilers can tack on
6461       # massive amounts of additional arguments before passing them to the
6462       # linker.  It appears as though 1/2 is a usable value.
6463       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6464     fi
6465     ;;
6466   esac
6467
6468 fi
6469
6470 if test -n "$lt_cv_sys_max_cmd_len"; then
6471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6472 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6473 else
6474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6475 $as_echo "none" >&6; }
6476 fi
6477 max_cmd_len=$lt_cv_sys_max_cmd_len
6478
6479
6480
6481
6482
6483
6484 : ${CP="cp -f"}
6485 : ${MV="mv -f"}
6486 : ${RM="rm -f"}
6487
6488 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6489   lt_unset=unset
6490 else
6491   lt_unset=false
6492 fi
6493
6494
6495
6496
6497
6498 # test EBCDIC or ASCII
6499 case `echo X|tr X '\101'` in
6500  A) # ASCII based system
6501     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6502   lt_SP2NL='tr \040 \012'
6503   lt_NL2SP='tr \015\012 \040\040'
6504   ;;
6505  *) # EBCDIC based system
6506   lt_SP2NL='tr \100 \n'
6507   lt_NL2SP='tr \r\n \100\100'
6508   ;;
6509 esac
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6520 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6521 if ${lt_cv_to_host_file_cmd+:} false; then :
6522   $as_echo_n "(cached) " >&6
6523 else
6524   case $host in
6525   *-*-mingw* )
6526     case $build in
6527       *-*-mingw* ) # actually msys
6528         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6529         ;;
6530       *-*-cygwin* )
6531         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6532         ;;
6533       * ) # otherwise, assume *nix
6534         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6535         ;;
6536     esac
6537     ;;
6538   *-*-cygwin* )
6539     case $build in
6540       *-*-mingw* ) # actually msys
6541         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6542         ;;
6543       *-*-cygwin* )
6544         lt_cv_to_host_file_cmd=func_convert_file_noop
6545         ;;
6546       * ) # otherwise, assume *nix
6547         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6548         ;;
6549     esac
6550     ;;
6551   * ) # unhandled hosts (and "normal" native builds)
6552     lt_cv_to_host_file_cmd=func_convert_file_noop
6553     ;;
6554 esac
6555
6556 fi
6557
6558 to_host_file_cmd=$lt_cv_to_host_file_cmd
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6560 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6561
6562
6563
6564
6565
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6567 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6568 if ${lt_cv_to_tool_file_cmd+:} false; then :
6569   $as_echo_n "(cached) " >&6
6570 else
6571   #assume ordinary cross tools, or native build.
6572 lt_cv_to_tool_file_cmd=func_convert_file_noop
6573 case $host in
6574   *-*-mingw* )
6575     case $build in
6576       *-*-mingw* ) # actually msys
6577         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6578         ;;
6579     esac
6580     ;;
6581 esac
6582
6583 fi
6584
6585 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6587 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6588
6589
6590
6591
6592
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6594 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6595 if ${lt_cv_ld_reload_flag+:} false; then :
6596   $as_echo_n "(cached) " >&6
6597 else
6598   lt_cv_ld_reload_flag='-r'
6599 fi
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6601 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6602 reload_flag=$lt_cv_ld_reload_flag
6603 case $reload_flag in
6604 "" | " "*) ;;
6605 *) reload_flag=" $reload_flag" ;;
6606 esac
6607 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6608 case $host_os in
6609   cygwin* | mingw* | pw32* | cegcc*)
6610     if test yes != "$GCC"; then
6611       reload_cmds=false
6612     fi
6613     ;;
6614   darwin*)
6615     if test yes = "$GCC"; then
6616       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6617     else
6618       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6619     fi
6620     ;;
6621 esac
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631 if test -n "$ac_tool_prefix"; then
6632   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6633 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6635 $as_echo_n "checking for $ac_word... " >&6; }
6636 if ${ac_cv_prog_OBJDUMP+:} false; then :
6637   $as_echo_n "(cached) " >&6
6638 else
6639   if test -n "$OBJDUMP"; then
6640   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6641 else
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 for as_dir in $PATH
6644 do
6645   IFS=$as_save_IFS
6646   test -z "$as_dir" && as_dir=.
6647     for ac_exec_ext in '' $ac_executable_extensions; do
6648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6649     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651     break 2
6652   fi
6653 done
6654   done
6655 IFS=$as_save_IFS
6656
6657 fi
6658 fi
6659 OBJDUMP=$ac_cv_prog_OBJDUMP
6660 if test -n "$OBJDUMP"; then
6661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6662 $as_echo "$OBJDUMP" >&6; }
6663 else
6664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665 $as_echo "no" >&6; }
6666 fi
6667
6668
6669 fi
6670 if test -z "$ac_cv_prog_OBJDUMP"; then
6671   ac_ct_OBJDUMP=$OBJDUMP
6672   # Extract the first word of "objdump", so it can be a program name with args.
6673 set dummy objdump; ac_word=$2
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675 $as_echo_n "checking for $ac_word... " >&6; }
6676 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6677   $as_echo_n "(cached) " >&6
6678 else
6679   if test -n "$ac_ct_OBJDUMP"; then
6680   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6681 else
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 for as_dir in $PATH
6684 do
6685   IFS=$as_save_IFS
6686   test -z "$as_dir" && as_dir=.
6687     for ac_exec_ext in '' $ac_executable_extensions; do
6688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6689     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691     break 2
6692   fi
6693 done
6694   done
6695 IFS=$as_save_IFS
6696
6697 fi
6698 fi
6699 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6700 if test -n "$ac_ct_OBJDUMP"; then
6701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6702 $as_echo "$ac_ct_OBJDUMP" >&6; }
6703 else
6704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705 $as_echo "no" >&6; }
6706 fi
6707
6708   if test "x$ac_ct_OBJDUMP" = x; then
6709     OBJDUMP="false"
6710   else
6711     case $cross_compiling:$ac_tool_warned in
6712 yes:)
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6715 ac_tool_warned=yes ;;
6716 esac
6717     OBJDUMP=$ac_ct_OBJDUMP
6718   fi
6719 else
6720   OBJDUMP="$ac_cv_prog_OBJDUMP"
6721 fi
6722
6723 test -z "$OBJDUMP" && OBJDUMP=objdump
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6734 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6735 if ${lt_cv_deplibs_check_method+:} false; then :
6736   $as_echo_n "(cached) " >&6
6737 else
6738   lt_cv_file_magic_cmd='$MAGIC_CMD'
6739 lt_cv_file_magic_test_file=
6740 lt_cv_deplibs_check_method='unknown'
6741 # Need to set the preceding variable on all platforms that support
6742 # interlibrary dependencies.
6743 # 'none' -- dependencies not supported.
6744 # 'unknown' -- same as none, but documents that we really don't know.
6745 # 'pass_all' -- all dependencies passed with no checks.
6746 # 'test_compile' -- check by making test program.
6747 # 'file_magic [[regex]]' -- check by looking for files in library path
6748 # that responds to the $file_magic_cmd with a given extended regex.
6749 # If you have 'file' or equivalent on your system and you're not sure
6750 # whether 'pass_all' will *always* work, you probably want this one.
6751
6752 case $host_os in
6753 aix[4-9]*)
6754   lt_cv_deplibs_check_method=pass_all
6755   ;;
6756
6757 beos*)
6758   lt_cv_deplibs_check_method=pass_all
6759   ;;
6760
6761 bsdi[45]*)
6762   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6763   lt_cv_file_magic_cmd='/usr/bin/file -L'
6764   lt_cv_file_magic_test_file=/shlib/libc.so
6765   ;;
6766
6767 cygwin*)
6768   # func_win32_libid is a shell function defined in ltmain.sh
6769   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6770   lt_cv_file_magic_cmd='func_win32_libid'
6771   ;;
6772
6773 mingw* | pw32*)
6774   # Base MSYS/MinGW do not provide the 'file' command needed by
6775   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6776   # unless we find 'file', for example because we are cross-compiling.
6777   if ( file / ) >/dev/null 2>&1; then
6778     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6779     lt_cv_file_magic_cmd='func_win32_libid'
6780   else
6781     # Keep this pattern in sync with the one in func_win32_libid.
6782     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6783     lt_cv_file_magic_cmd='$OBJDUMP -f'
6784   fi
6785   ;;
6786
6787 cegcc*)
6788   # use the weaker test based on 'objdump'. See mingw*.
6789   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6790   lt_cv_file_magic_cmd='$OBJDUMP -f'
6791   ;;
6792
6793 darwin* | rhapsody*)
6794   lt_cv_deplibs_check_method=pass_all
6795   ;;
6796
6797 freebsd* | dragonfly*)
6798   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6799     case $host_cpu in
6800     i*86 )
6801       # Not sure whether the presence of OpenBSD here was a mistake.
6802       # Let's accept both of them until this is cleared up.
6803       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6804       lt_cv_file_magic_cmd=/usr/bin/file
6805       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6806       ;;
6807     esac
6808   else
6809     lt_cv_deplibs_check_method=pass_all
6810   fi
6811   ;;
6812
6813 haiku*)
6814   lt_cv_deplibs_check_method=pass_all
6815   ;;
6816
6817 hpux10.20* | hpux11*)
6818   lt_cv_file_magic_cmd=/usr/bin/file
6819   case $host_cpu in
6820   ia64*)
6821     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6822     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6823     ;;
6824   hppa*64*)
6825     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]'
6826     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6827     ;;
6828   *)
6829     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6830     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6831     ;;
6832   esac
6833   ;;
6834
6835 interix[3-9]*)
6836   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6837   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6838   ;;
6839
6840 irix5* | irix6* | nonstopux*)
6841   case $LD in
6842   *-32|*"-32 ") libmagic=32-bit;;
6843   *-n32|*"-n32 ") libmagic=N32;;
6844   *-64|*"-64 ") libmagic=64-bit;;
6845   *) libmagic=never-match;;
6846   esac
6847   lt_cv_deplibs_check_method=pass_all
6848   ;;
6849
6850 # This must be glibc/ELF.
6851 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6852   lt_cv_deplibs_check_method=pass_all
6853   ;;
6854
6855 netbsd* | netbsdelf*-gnu)
6856   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6857     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6858   else
6859     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6860   fi
6861   ;;
6862
6863 newos6*)
6864   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6865   lt_cv_file_magic_cmd=/usr/bin/file
6866   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6867   ;;
6868
6869 *nto* | *qnx*)
6870   lt_cv_deplibs_check_method=pass_all
6871   ;;
6872
6873 openbsd* | bitrig*)
6874   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6875     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6876   else
6877     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6878   fi
6879   ;;
6880
6881 osf3* | osf4* | osf5*)
6882   lt_cv_deplibs_check_method=pass_all
6883   ;;
6884
6885 rdos*)
6886   lt_cv_deplibs_check_method=pass_all
6887   ;;
6888
6889 solaris*)
6890   lt_cv_deplibs_check_method=pass_all
6891   ;;
6892
6893 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6894   lt_cv_deplibs_check_method=pass_all
6895   ;;
6896
6897 sysv4 | sysv4.3*)
6898   case $host_vendor in
6899   motorola)
6900     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]'
6901     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6902     ;;
6903   ncr)
6904     lt_cv_deplibs_check_method=pass_all
6905     ;;
6906   sequent)
6907     lt_cv_file_magic_cmd='/bin/file'
6908     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6909     ;;
6910   sni)
6911     lt_cv_file_magic_cmd='/bin/file'
6912     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6913     lt_cv_file_magic_test_file=/lib/libc.so
6914     ;;
6915   siemens)
6916     lt_cv_deplibs_check_method=pass_all
6917     ;;
6918   pc)
6919     lt_cv_deplibs_check_method=pass_all
6920     ;;
6921   esac
6922   ;;
6923
6924 tpf*)
6925   lt_cv_deplibs_check_method=pass_all
6926   ;;
6927 os2*)
6928   lt_cv_deplibs_check_method=pass_all
6929   ;;
6930 esac
6931
6932 fi
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6934 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6935
6936 file_magic_glob=
6937 want_nocaseglob=no
6938 if test "$build" = "$host"; then
6939   case $host_os in
6940   mingw* | pw32*)
6941     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6942       want_nocaseglob=yes
6943     else
6944       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6945     fi
6946     ;;
6947   esac
6948 fi
6949
6950 file_magic_cmd=$lt_cv_file_magic_cmd
6951 deplibs_check_method=$lt_cv_deplibs_check_method
6952 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975 if test -n "$ac_tool_prefix"; then
6976   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6977 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979 $as_echo_n "checking for $ac_word... " >&6; }
6980 if ${ac_cv_prog_DLLTOOL+:} false; then :
6981   $as_echo_n "(cached) " >&6
6982 else
6983   if test -n "$DLLTOOL"; then
6984   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6985 else
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6988 do
6989   IFS=$as_save_IFS
6990   test -z "$as_dir" && as_dir=.
6991     for ac_exec_ext in '' $ac_executable_extensions; do
6992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6993     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995     break 2
6996   fi
6997 done
6998   done
6999 IFS=$as_save_IFS
7000
7001 fi
7002 fi
7003 DLLTOOL=$ac_cv_prog_DLLTOOL
7004 if test -n "$DLLTOOL"; then
7005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7006 $as_echo "$DLLTOOL" >&6; }
7007 else
7008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 $as_echo "no" >&6; }
7010 fi
7011
7012
7013 fi
7014 if test -z "$ac_cv_prog_DLLTOOL"; then
7015   ac_ct_DLLTOOL=$DLLTOOL
7016   # Extract the first word of "dlltool", so it can be a program name with args.
7017 set dummy dlltool; ac_word=$2
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7019 $as_echo_n "checking for $ac_word... " >&6; }
7020 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7021   $as_echo_n "(cached) " >&6
7022 else
7023   if test -n "$ac_ct_DLLTOOL"; then
7024   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7025 else
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 for as_dir in $PATH
7028 do
7029   IFS=$as_save_IFS
7030   test -z "$as_dir" && as_dir=.
7031     for ac_exec_ext in '' $ac_executable_extensions; do
7032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7033     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7035     break 2
7036   fi
7037 done
7038   done
7039 IFS=$as_save_IFS
7040
7041 fi
7042 fi
7043 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7044 if test -n "$ac_ct_DLLTOOL"; then
7045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7046 $as_echo "$ac_ct_DLLTOOL" >&6; }
7047 else
7048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049 $as_echo "no" >&6; }
7050 fi
7051
7052   if test "x$ac_ct_DLLTOOL" = x; then
7053     DLLTOOL="false"
7054   else
7055     case $cross_compiling:$ac_tool_warned in
7056 yes:)
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7059 ac_tool_warned=yes ;;
7060 esac
7061     DLLTOOL=$ac_ct_DLLTOOL
7062   fi
7063 else
7064   DLLTOOL="$ac_cv_prog_DLLTOOL"
7065 fi
7066
7067 test -z "$DLLTOOL" && DLLTOOL=dlltool
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7079 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7080 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7081   $as_echo_n "(cached) " >&6
7082 else
7083   lt_cv_sharedlib_from_linklib_cmd='unknown'
7084
7085 case $host_os in
7086 cygwin* | mingw* | pw32* | cegcc*)
7087   # two different shell functions defined in ltmain.sh;
7088   # decide which one to use based on capabilities of $DLLTOOL
7089   case `$DLLTOOL --help 2>&1` in
7090   *--identify-strict*)
7091     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7092     ;;
7093   *)
7094     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7095     ;;
7096   esac
7097   ;;
7098 *)
7099   # fallback: assume linklib IS sharedlib
7100   lt_cv_sharedlib_from_linklib_cmd=$ECHO
7101   ;;
7102 esac
7103
7104 fi
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7106 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7107 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7108 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7109
7110
7111
7112
7113
7114
7115
7116 if test -n "$ac_tool_prefix"; then
7117   for ac_prog in ar
7118   do
7119     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if ${ac_cv_prog_AR+:} false; then :
7124   $as_echo_n "(cached) " >&6
7125 else
7126   if test -n "$AR"; then
7127   ac_cv_prog_AR="$AR" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132   IFS=$as_save_IFS
7133   test -z "$as_dir" && as_dir=.
7134     for ac_exec_ext in '' $ac_executable_extensions; do
7135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7136     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138     break 2
7139   fi
7140 done
7141   done
7142 IFS=$as_save_IFS
7143
7144 fi
7145 fi
7146 AR=$ac_cv_prog_AR
7147 if test -n "$AR"; then
7148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7149 $as_echo "$AR" >&6; }
7150 else
7151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7153 fi
7154
7155
7156     test -n "$AR" && break
7157   done
7158 fi
7159 if test -z "$AR"; then
7160   ac_ct_AR=$AR
7161   for ac_prog in ar
7162 do
7163   # Extract the first word of "$ac_prog", so it can be a program name with args.
7164 set dummy $ac_prog; ac_word=$2
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166 $as_echo_n "checking for $ac_word... " >&6; }
7167 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7168   $as_echo_n "(cached) " >&6
7169 else
7170   if test -n "$ac_ct_AR"; then
7171   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7172 else
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7175 do
7176   IFS=$as_save_IFS
7177   test -z "$as_dir" && as_dir=.
7178     for ac_exec_ext in '' $ac_executable_extensions; do
7179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7180     ac_cv_prog_ac_ct_AR="$ac_prog"
7181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7182     break 2
7183   fi
7184 done
7185   done
7186 IFS=$as_save_IFS
7187
7188 fi
7189 fi
7190 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7191 if test -n "$ac_ct_AR"; then
7192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7193 $as_echo "$ac_ct_AR" >&6; }
7194 else
7195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7197 fi
7198
7199
7200   test -n "$ac_ct_AR" && break
7201 done
7202
7203   if test "x$ac_ct_AR" = x; then
7204     AR="false"
7205   else
7206     case $cross_compiling:$ac_tool_warned in
7207 yes:)
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7210 ac_tool_warned=yes ;;
7211 esac
7212     AR=$ac_ct_AR
7213   fi
7214 fi
7215
7216 : ${AR=ar}
7217 : ${AR_FLAGS=cr}
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7230 $as_echo_n "checking for archiver @FILE support... " >&6; }
7231 if ${lt_cv_ar_at_file+:} false; then :
7232   $as_echo_n "(cached) " >&6
7233 else
7234   lt_cv_ar_at_file=no
7235    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h.  */
7237
7238 int
7239 main ()
7240 {
7241
7242   ;
7243   return 0;
7244 }
7245 _ACEOF
7246 if ac_fn_c_try_compile "$LINENO"; then :
7247   echo conftest.$ac_objext > conftest.lst
7248       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7249       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7250   (eval $lt_ar_try) 2>&5
7251   ac_status=$?
7252   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7253   test $ac_status = 0; }
7254       if test 0 -eq "$ac_status"; then
7255         # Ensure the archiver fails upon bogus file names.
7256         rm -f conftest.$ac_objext libconftest.a
7257         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7258   (eval $lt_ar_try) 2>&5
7259   ac_status=$?
7260   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7261   test $ac_status = 0; }
7262         if test 0 -ne "$ac_status"; then
7263           lt_cv_ar_at_file=@
7264         fi
7265       fi
7266       rm -f conftest.* libconftest.a
7267
7268 fi
7269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7270
7271 fi
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7273 $as_echo "$lt_cv_ar_at_file" >&6; }
7274
7275 if test no = "$lt_cv_ar_at_file"; then
7276   archiver_list_spec=
7277 else
7278   archiver_list_spec=$lt_cv_ar_at_file
7279 fi
7280
7281
7282
7283
7284
7285
7286
7287 if test -n "$ac_tool_prefix"; then
7288   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7289 set dummy ${ac_tool_prefix}strip; ac_word=$2
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291 $as_echo_n "checking for $ac_word... " >&6; }
7292 if ${ac_cv_prog_STRIP+:} false; then :
7293   $as_echo_n "(cached) " >&6
7294 else
7295   if test -n "$STRIP"; then
7296   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7297 else
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 for as_dir in $PATH
7300 do
7301   IFS=$as_save_IFS
7302   test -z "$as_dir" && as_dir=.
7303     for ac_exec_ext in '' $ac_executable_extensions; do
7304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7305     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7307     break 2
7308   fi
7309 done
7310   done
7311 IFS=$as_save_IFS
7312
7313 fi
7314 fi
7315 STRIP=$ac_cv_prog_STRIP
7316 if test -n "$STRIP"; then
7317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7318 $as_echo "$STRIP" >&6; }
7319 else
7320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321 $as_echo "no" >&6; }
7322 fi
7323
7324
7325 fi
7326 if test -z "$ac_cv_prog_STRIP"; then
7327   ac_ct_STRIP=$STRIP
7328   # Extract the first word of "strip", so it can be a program name with args.
7329 set dummy strip; ac_word=$2
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7333   $as_echo_n "(cached) " >&6
7334 else
7335   if test -n "$ac_ct_STRIP"; then
7336   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7337 else
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 for as_dir in $PATH
7340 do
7341   IFS=$as_save_IFS
7342   test -z "$as_dir" && as_dir=.
7343     for ac_exec_ext in '' $ac_executable_extensions; do
7344   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7345     ac_cv_prog_ac_ct_STRIP="strip"
7346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7347     break 2
7348   fi
7349 done
7350   done
7351 IFS=$as_save_IFS
7352
7353 fi
7354 fi
7355 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7356 if test -n "$ac_ct_STRIP"; then
7357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7358 $as_echo "$ac_ct_STRIP" >&6; }
7359 else
7360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7362 fi
7363
7364   if test "x$ac_ct_STRIP" = x; then
7365     STRIP=":"
7366   else
7367     case $cross_compiling:$ac_tool_warned in
7368 yes:)
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7371 ac_tool_warned=yes ;;
7372 esac
7373     STRIP=$ac_ct_STRIP
7374   fi
7375 else
7376   STRIP="$ac_cv_prog_STRIP"
7377 fi
7378
7379 test -z "$STRIP" && STRIP=:
7380
7381
7382
7383
7384
7385
7386 if test -n "$ac_tool_prefix"; then
7387   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7388 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if ${ac_cv_prog_RANLIB+:} false; then :
7392   $as_echo_n "(cached) " >&6
7393 else
7394   if test -n "$RANLIB"; then
7395   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7396 else
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7399 do
7400   IFS=$as_save_IFS
7401   test -z "$as_dir" && as_dir=.
7402     for ac_exec_ext in '' $ac_executable_extensions; do
7403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406     break 2
7407   fi
7408 done
7409   done
7410 IFS=$as_save_IFS
7411
7412 fi
7413 fi
7414 RANLIB=$ac_cv_prog_RANLIB
7415 if test -n "$RANLIB"; then
7416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7417 $as_echo "$RANLIB" >&6; }
7418 else
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7421 fi
7422
7423
7424 fi
7425 if test -z "$ac_cv_prog_RANLIB"; then
7426   ac_ct_RANLIB=$RANLIB
7427   # Extract the first word of "ranlib", so it can be a program name with args.
7428 set dummy ranlib; ac_word=$2
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7430 $as_echo_n "checking for $ac_word... " >&6; }
7431 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7432   $as_echo_n "(cached) " >&6
7433 else
7434   if test -n "$ac_ct_RANLIB"; then
7435   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7436 else
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 for as_dir in $PATH
7439 do
7440   IFS=$as_save_IFS
7441   test -z "$as_dir" && as_dir=.
7442     for ac_exec_ext in '' $ac_executable_extensions; do
7443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7444     ac_cv_prog_ac_ct_RANLIB="ranlib"
7445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7446     break 2
7447   fi
7448 done
7449   done
7450 IFS=$as_save_IFS
7451
7452 fi
7453 fi
7454 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7455 if test -n "$ac_ct_RANLIB"; then
7456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7457 $as_echo "$ac_ct_RANLIB" >&6; }
7458 else
7459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7460 $as_echo "no" >&6; }
7461 fi
7462
7463   if test "x$ac_ct_RANLIB" = x; then
7464     RANLIB=":"
7465   else
7466     case $cross_compiling:$ac_tool_warned in
7467 yes:)
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7470 ac_tool_warned=yes ;;
7471 esac
7472     RANLIB=$ac_ct_RANLIB
7473   fi
7474 else
7475   RANLIB="$ac_cv_prog_RANLIB"
7476 fi
7477
7478 test -z "$RANLIB" && RANLIB=:
7479
7480
7481
7482
7483
7484
7485 # Determine commands to create old-style static archives.
7486 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7487 old_postinstall_cmds='chmod 644 $oldlib'
7488 old_postuninstall_cmds=
7489
7490 if test -n "$RANLIB"; then
7491   case $host_os in
7492   bitrig* | openbsd*)
7493     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7494     ;;
7495   *)
7496     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7497     ;;
7498   esac
7499   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7500 fi
7501
7502 case $host_os in
7503   darwin*)
7504     lock_old_archive_extraction=yes ;;
7505   *)
7506     lock_old_archive_extraction=no ;;
7507 esac
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547 # If no C compiler was specified, use CC.
7548 LTCC=${LTCC-"$CC"}
7549
7550 # If no C compiler flags were specified, use CFLAGS.
7551 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7552
7553 # Allow CC to be a program name with arguments.
7554 compiler=$CC
7555
7556
7557 # Check for command to grab the raw symbol name followed by C symbol from nm.
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7559 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7560 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7561   $as_echo_n "(cached) " >&6
7562 else
7563
7564 # These are sane defaults that work on at least a few old systems.
7565 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7566
7567 # Character class describing NM global symbol codes.
7568 symcode='[BCDEGRST]'
7569
7570 # Regexp to match symbols that can be accessed directly from C.
7571 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7572
7573 # Define system-specific variables.
7574 case $host_os in
7575 aix*)
7576   symcode='[BCDT]'
7577   ;;
7578 cygwin* | mingw* | pw32* | cegcc*)
7579   symcode='[ABCDGISTW]'
7580   ;;
7581 hpux*)
7582   if test ia64 = "$host_cpu"; then
7583     symcode='[ABCDEGRST]'
7584   fi
7585   ;;
7586 irix* | nonstopux*)
7587   symcode='[BCDEGRST]'
7588   ;;
7589 osf*)
7590   symcode='[BCDEGQRST]'
7591   ;;
7592 solaris*)
7593   symcode='[BDRT]'
7594   ;;
7595 sco3.2v5*)
7596   symcode='[DT]'
7597   ;;
7598 sysv4.2uw2*)
7599   symcode='[DT]'
7600   ;;
7601 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7602   symcode='[ABDT]'
7603   ;;
7604 sysv4)
7605   symcode='[DFNSTU]'
7606   ;;
7607 esac
7608
7609 # If we're using GNU nm, then use its standard symbol codes.
7610 case `$NM -V 2>&1` in
7611 *GNU* | *'with BFD'*)
7612   symcode='[ABCDGIRSTW]' ;;
7613 esac
7614
7615 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7616   # Gets list of data symbols to import.
7617   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7618   # Adjust the below global symbol transforms to fixup imported variables.
7619   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7620   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7621   lt_c_name_lib_hook="\
7622   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7623   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7624 else
7625   # Disable hooks by default.
7626   lt_cv_sys_global_symbol_to_import=
7627   lt_cdecl_hook=
7628   lt_c_name_hook=
7629   lt_c_name_lib_hook=
7630 fi
7631
7632 # Transform an extracted symbol line into a proper C declaration.
7633 # Some systems (esp. on ia64) link data and code symbols differently,
7634 # so use this general approach.
7635 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7636 $lt_cdecl_hook\
7637 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7638 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7639
7640 # Transform an extracted symbol line into symbol name and symbol address
7641 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7642 $lt_c_name_hook\
7643 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7644 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7645
7646 # Transform an extracted symbol line into symbol name with lib prefix and
7647 # symbol address.
7648 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7649 $lt_c_name_lib_hook\
7650 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7651 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7652 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7653
7654 # Handle CRLF in mingw tool chain
7655 opt_cr=
7656 case $build_os in
7657 mingw*)
7658   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7659   ;;
7660 esac
7661
7662 # Try without a prefix underscore, then with it.
7663 for ac_symprfx in "" "_"; do
7664
7665   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7666   symxfrm="\\1 $ac_symprfx\\2 \\2"
7667
7668   # Write the raw and C identifiers.
7669   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7670     # Fake it for dumpbin and say T for any non-static function,
7671     # D for any global variable and I for any imported variable.
7672     # Also find C++ and __fastcall symbols from MSVC++,
7673     # which start with @ or ?.
7674     lt_cv_sys_global_symbol_pipe="$AWK '"\
7675 "     {last_section=section; section=\$ 3};"\
7676 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7677 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7678 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7679 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7680 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7681 "     \$ 0!~/External *\|/{next};"\
7682 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7683 "     {if(hide[section]) next};"\
7684 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7685 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7686 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7687 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7688 "     ' prfx=^$ac_symprfx"
7689   else
7690     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7691   fi
7692   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7693
7694   # Check to see that the pipe works correctly.
7695   pipe_works=no
7696
7697   rm -f conftest*
7698   cat > conftest.$ac_ext <<_LT_EOF
7699 #ifdef __cplusplus
7700 extern "C" {
7701 #endif
7702 char nm_test_var;
7703 void nm_test_func(void);
7704 void nm_test_func(void){}
7705 #ifdef __cplusplus
7706 }
7707 #endif
7708 int main(){nm_test_var='a';nm_test_func();return(0);}
7709 _LT_EOF
7710
7711   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7712   (eval $ac_compile) 2>&5
7713   ac_status=$?
7714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7715   test $ac_status = 0; }; then
7716     # Now try to grab the symbols.
7717     nlist=conftest.nm
7718     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7719     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7720       # Try sorting and uniquifying the output.
7721       if sort "$nlist" | uniq > "$nlist"T; then
7722         mv -f "$nlist"T "$nlist"
7723       else
7724         rm -f "$nlist"T
7725       fi
7726
7727       # Make sure that we snagged all the symbols we need.
7728       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7729         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7730           cat <<_LT_EOF > conftest.$ac_ext
7731 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7732 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7733 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7734    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7735 # define LT_DLSYM_CONST
7736 #elif defined __osf__
7737 /* This system does not cope well with relocations in const data.  */
7738 # define LT_DLSYM_CONST
7739 #else
7740 # define LT_DLSYM_CONST const
7741 #endif
7742
7743 #ifdef __cplusplus
7744 extern "C" {
7745 #endif
7746
7747 _LT_EOF
7748           # Now generate the symbol file.
7749           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7750
7751           cat <<_LT_EOF >> conftest.$ac_ext
7752
7753 /* The mapping between symbol names and symbols.  */
7754 LT_DLSYM_CONST struct {
7755   const char *name;
7756   void       *address;
7757 }
7758 lt__PROGRAM__LTX_preloaded_symbols[] =
7759 {
7760   { "@PROGRAM@", (void *) 0 },
7761 _LT_EOF
7762           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7763           cat <<\_LT_EOF >> conftest.$ac_ext
7764   {0, (void *) 0}
7765 };
7766
7767 /* This works around a problem in FreeBSD linker */
7768 #ifdef FREEBSD_WORKAROUND
7769 static const void *lt_preloaded_setup() {
7770   return lt__PROGRAM__LTX_preloaded_symbols;
7771 }
7772 #endif
7773
7774 #ifdef __cplusplus
7775 }
7776 #endif
7777 _LT_EOF
7778           # Now try linking the two files.
7779           mv conftest.$ac_objext conftstm.$ac_objext
7780           lt_globsym_save_LIBS=$LIBS
7781           lt_globsym_save_CFLAGS=$CFLAGS
7782           LIBS=conftstm.$ac_objext
7783           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7784           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7785   (eval $ac_link) 2>&5
7786   ac_status=$?
7787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7788   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7789             pipe_works=yes
7790           fi
7791           LIBS=$lt_globsym_save_LIBS
7792           CFLAGS=$lt_globsym_save_CFLAGS
7793         else
7794           echo "cannot find nm_test_func in $nlist" >&5
7795         fi
7796       else
7797         echo "cannot find nm_test_var in $nlist" >&5
7798       fi
7799     else
7800       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7801     fi
7802   else
7803     echo "$progname: failed program was:" >&5
7804     cat conftest.$ac_ext >&5
7805   fi
7806   rm -rf conftest* conftst*
7807
7808   # Do not use the global_symbol_pipe unless it works.
7809   if test yes = "$pipe_works"; then
7810     break
7811   else
7812     lt_cv_sys_global_symbol_pipe=
7813   fi
7814 done
7815
7816 fi
7817
7818 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7819   lt_cv_sys_global_symbol_to_cdecl=
7820 fi
7821 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7823 $as_echo "failed" >&6; }
7824 else
7825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7826 $as_echo "ok" >&6; }
7827 fi
7828
7829 # Response file support.
7830 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7831   nm_file_list_spec='@'
7832 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7833   nm_file_list_spec='@'
7834 fi
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7873 $as_echo_n "checking for sysroot... " >&6; }
7874
7875 # Check whether --with-sysroot was given.
7876 if test "${with_sysroot+set}" = set; then :
7877   withval=$with_sysroot;
7878 else
7879   with_sysroot=no
7880 fi
7881
7882
7883 lt_sysroot=
7884 case $with_sysroot in #(
7885  yes)
7886    if test yes = "$GCC"; then
7887      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7888    fi
7889    ;; #(
7890  /*)
7891    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7892    ;; #(
7893  no|'')
7894    ;; #(
7895  *)
7896    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7897 $as_echo "$with_sysroot" >&6; }
7898    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7899    ;;
7900 esac
7901
7902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7903 $as_echo "${lt_sysroot:-no}" >&6; }
7904
7905
7906
7907
7908
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7910 $as_echo_n "checking for a working dd... " >&6; }
7911 if ${ac_cv_path_lt_DD+:} false; then :
7912   $as_echo_n "(cached) " >&6
7913 else
7914   printf 0123456789abcdef0123456789abcdef >conftest.i
7915 cat conftest.i conftest.i >conftest2.i
7916 : ${lt_DD:=$DD}
7917 if test -z "$lt_DD"; then
7918   ac_path_lt_DD_found=false
7919   # Loop through the user's path and test for each of PROGNAME-LIST
7920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 for as_dir in $PATH
7922 do
7923   IFS=$as_save_IFS
7924   test -z "$as_dir" && as_dir=.
7925     for ac_prog in dd; do
7926     for ac_exec_ext in '' $ac_executable_extensions; do
7927       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7928       as_fn_executable_p "$ac_path_lt_DD" || continue
7929 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7930   cmp -s conftest.i conftest.out \
7931   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7932 fi
7933       $ac_path_lt_DD_found && break 3
7934     done
7935   done
7936   done
7937 IFS=$as_save_IFS
7938   if test -z "$ac_cv_path_lt_DD"; then
7939     :
7940   fi
7941 else
7942   ac_cv_path_lt_DD=$lt_DD
7943 fi
7944
7945 rm -f conftest.i conftest2.i conftest.out
7946 fi
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7948 $as_echo "$ac_cv_path_lt_DD" >&6; }
7949
7950
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7952 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7953 if ${lt_cv_truncate_bin+:} false; then :
7954   $as_echo_n "(cached) " >&6
7955 else
7956   printf 0123456789abcdef0123456789abcdef >conftest.i
7957 cat conftest.i conftest.i >conftest2.i
7958 lt_cv_truncate_bin=
7959 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7960   cmp -s conftest.i conftest.out \
7961   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7962 fi
7963 rm -f conftest.i conftest2.i conftest.out
7964 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7965 fi
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7967 $as_echo "$lt_cv_truncate_bin" >&6; }
7968
7969
7970
7971
7972
7973
7974
7975 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7976 func_cc_basename ()
7977 {
7978     for cc_temp in $*""; do
7979       case $cc_temp in
7980         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7981         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7982         \-*) ;;
7983         *) break;;
7984       esac
7985     done
7986     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7987 }
7988
7989 # Check whether --enable-libtool-lock was given.
7990 if test "${enable_libtool_lock+set}" = set; then :
7991   enableval=$enable_libtool_lock;
7992 fi
7993
7994 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7995
7996 # Some flags need to be propagated to the compiler or linker for good
7997 # libtool support.
7998 case $host in
7999 ia64-*-hpux*)
8000   # Find out what ABI is being produced by ac_compile, and set mode
8001   # options accordingly.
8002   echo 'int i;' > conftest.$ac_ext
8003   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8004   (eval $ac_compile) 2>&5
8005   ac_status=$?
8006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8007   test $ac_status = 0; }; then
8008     case `/usr/bin/file conftest.$ac_objext` in
8009       *ELF-32*)
8010         HPUX_IA64_MODE=32
8011         ;;
8012       *ELF-64*)
8013         HPUX_IA64_MODE=64
8014         ;;
8015     esac
8016   fi
8017   rm -rf conftest*
8018   ;;
8019 *-*-irix6*)
8020   # Find out what ABI is being produced by ac_compile, and set linker
8021   # options accordingly.
8022   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8023   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8024   (eval $ac_compile) 2>&5
8025   ac_status=$?
8026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8027   test $ac_status = 0; }; then
8028     if test yes = "$lt_cv_prog_gnu_ld"; then
8029       case `/usr/bin/file conftest.$ac_objext` in
8030         *32-bit*)
8031           LD="${LD-ld} -melf32bsmip"
8032           ;;
8033         *N32*)
8034           LD="${LD-ld} -melf32bmipn32"
8035           ;;
8036         *64-bit*)
8037           LD="${LD-ld} -melf64bmip"
8038         ;;
8039       esac
8040     else
8041       case `/usr/bin/file conftest.$ac_objext` in
8042         *32-bit*)
8043           LD="${LD-ld} -32"
8044           ;;
8045         *N32*)
8046           LD="${LD-ld} -n32"
8047           ;;
8048         *64-bit*)
8049           LD="${LD-ld} -64"
8050           ;;
8051       esac
8052     fi
8053   fi
8054   rm -rf conftest*
8055   ;;
8056
8057 mips64*-*linux*)
8058   # Find out what ABI is being produced by ac_compile, and set linker
8059   # options accordingly.
8060   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8061   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8062   (eval $ac_compile) 2>&5
8063   ac_status=$?
8064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8065   test $ac_status = 0; }; then
8066     emul=elf
8067     case `/usr/bin/file conftest.$ac_objext` in
8068       *32-bit*)
8069         emul="${emul}32"
8070         ;;
8071       *64-bit*)
8072         emul="${emul}64"
8073         ;;
8074     esac
8075     case `/usr/bin/file conftest.$ac_objext` in
8076       *MSB*)
8077         emul="${emul}btsmip"
8078         ;;
8079       *LSB*)
8080         emul="${emul}ltsmip"
8081         ;;
8082     esac
8083     case `/usr/bin/file conftest.$ac_objext` in
8084       *N32*)
8085         emul="${emul}n32"
8086         ;;
8087     esac
8088     LD="${LD-ld} -m $emul"
8089   fi
8090   rm -rf conftest*
8091   ;;
8092
8093 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8094 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8095   # Find out what ABI is being produced by ac_compile, and set linker
8096   # options accordingly.  Note that the listed cases only cover the
8097   # situations where additional linker options are needed (such as when
8098   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8099   # vice versa); the common cases where no linker options are needed do
8100   # not appear in the list.
8101   echo 'int i;' > conftest.$ac_ext
8102   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8103   (eval $ac_compile) 2>&5
8104   ac_status=$?
8105   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8106   test $ac_status = 0; }; then
8107     case `/usr/bin/file conftest.o` in
8108       *32-bit*)
8109         case $host in
8110           x86_64-*kfreebsd*-gnu)
8111             LD="${LD-ld} -m elf_i386_fbsd"
8112             ;;
8113           x86_64-*linux*)
8114             case `/usr/bin/file conftest.o` in
8115               *x86-64*)
8116                 LD="${LD-ld} -m elf32_x86_64"
8117                 ;;
8118               *)
8119                 LD="${LD-ld} -m elf_i386"
8120                 ;;
8121             esac
8122             ;;
8123           powerpc64le-*linux*)
8124             LD="${LD-ld} -m elf32lppclinux"
8125             ;;
8126           powerpc64-*linux*)
8127             LD="${LD-ld} -m elf32ppclinux"
8128             ;;
8129           s390x-*linux*)
8130             LD="${LD-ld} -m elf_s390"
8131             ;;
8132           sparc64-*linux*)
8133             LD="${LD-ld} -m elf32_sparc"
8134             ;;
8135         esac
8136         ;;
8137       *64-bit*)
8138         case $host in
8139           x86_64-*kfreebsd*-gnu)
8140             LD="${LD-ld} -m elf_x86_64_fbsd"
8141             ;;
8142           x86_64-*linux*)
8143             LD="${LD-ld} -m elf_x86_64"
8144             ;;
8145           powerpcle-*linux*)
8146             LD="${LD-ld} -m elf64lppc"
8147             ;;
8148           powerpc-*linux*)
8149             LD="${LD-ld} -m elf64ppc"
8150             ;;
8151           s390*-*linux*|s390*-*tpf*)
8152             LD="${LD-ld} -m elf64_s390"
8153             ;;
8154           sparc*-*linux*)
8155             LD="${LD-ld} -m elf64_sparc"
8156             ;;
8157         esac
8158         ;;
8159     esac
8160   fi
8161   rm -rf conftest*
8162   ;;
8163
8164 *-*-sco3.2v5*)
8165   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8166   SAVE_CFLAGS=$CFLAGS
8167   CFLAGS="$CFLAGS -belf"
8168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8169 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8170 if ${lt_cv_cc_needs_belf+:} false; then :
8171   $as_echo_n "(cached) " >&6
8172 else
8173   ac_ext=c
8174 ac_cpp='$CPP $CPPFLAGS'
8175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8178
8179      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h.  */
8181
8182 int
8183 main ()
8184 {
8185
8186   ;
8187   return 0;
8188 }
8189 _ACEOF
8190 if ac_fn_c_try_link "$LINENO"; then :
8191   lt_cv_cc_needs_belf=yes
8192 else
8193   lt_cv_cc_needs_belf=no
8194 fi
8195 rm -f core conftest.err conftest.$ac_objext \
8196     conftest$ac_exeext conftest.$ac_ext
8197      ac_ext=c
8198 ac_cpp='$CPP $CPPFLAGS'
8199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8202
8203 fi
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8205 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8206   if test yes != "$lt_cv_cc_needs_belf"; then
8207     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8208     CFLAGS=$SAVE_CFLAGS
8209   fi
8210   ;;
8211 *-*solaris*)
8212   # Find out what ABI is being produced by ac_compile, and set linker
8213   # options accordingly.
8214   echo 'int i;' > conftest.$ac_ext
8215   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8216   (eval $ac_compile) 2>&5
8217   ac_status=$?
8218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8219   test $ac_status = 0; }; then
8220     case `/usr/bin/file conftest.o` in
8221     *64-bit*)
8222       case $lt_cv_prog_gnu_ld in
8223       yes*)
8224         case $host in
8225         i?86-*-solaris*|x86_64-*-solaris*)
8226           LD="${LD-ld} -m elf_x86_64"
8227           ;;
8228         sparc*-*-solaris*)
8229           LD="${LD-ld} -m elf64_sparc"
8230           ;;
8231         esac
8232         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8233         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8234           LD=${LD-ld}_sol2
8235         fi
8236         ;;
8237       *)
8238         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8239           LD="${LD-ld} -64"
8240         fi
8241         ;;
8242       esac
8243       ;;
8244     esac
8245   fi
8246   rm -rf conftest*
8247   ;;
8248 esac
8249
8250 need_locks=$enable_libtool_lock
8251
8252 if test -n "$ac_tool_prefix"; then
8253   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8254 set dummy ${ac_tool_prefix}mt; ac_word=$2
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256 $as_echo_n "checking for $ac_word... " >&6; }
8257 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8258   $as_echo_n "(cached) " >&6
8259 else
8260   if test -n "$MANIFEST_TOOL"; then
8261   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8262 else
8263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264 for as_dir in $PATH
8265 do
8266   IFS=$as_save_IFS
8267   test -z "$as_dir" && as_dir=.
8268     for ac_exec_ext in '' $ac_executable_extensions; do
8269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8270     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8272     break 2
8273   fi
8274 done
8275   done
8276 IFS=$as_save_IFS
8277
8278 fi
8279 fi
8280 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8281 if test -n "$MANIFEST_TOOL"; then
8282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8283 $as_echo "$MANIFEST_TOOL" >&6; }
8284 else
8285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 $as_echo "no" >&6; }
8287 fi
8288
8289
8290 fi
8291 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8292   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8293   # Extract the first word of "mt", so it can be a program name with args.
8294 set dummy mt; ac_word=$2
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296 $as_echo_n "checking for $ac_word... " >&6; }
8297 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8298   $as_echo_n "(cached) " >&6
8299 else
8300   if test -n "$ac_ct_MANIFEST_TOOL"; then
8301   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8302 else
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304 for as_dir in $PATH
8305 do
8306   IFS=$as_save_IFS
8307   test -z "$as_dir" && as_dir=.
8308     for ac_exec_ext in '' $ac_executable_extensions; do
8309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8310     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8312     break 2
8313   fi
8314 done
8315   done
8316 IFS=$as_save_IFS
8317
8318 fi
8319 fi
8320 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8321 if test -n "$ac_ct_MANIFEST_TOOL"; then
8322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8323 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8324 else
8325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326 $as_echo "no" >&6; }
8327 fi
8328
8329   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8330     MANIFEST_TOOL=":"
8331   else
8332     case $cross_compiling:$ac_tool_warned in
8333 yes:)
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8336 ac_tool_warned=yes ;;
8337 esac
8338     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8339   fi
8340 else
8341   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8342 fi
8343
8344 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8346 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8347 if ${lt_cv_path_mainfest_tool+:} false; then :
8348   $as_echo_n "(cached) " >&6
8349 else
8350   lt_cv_path_mainfest_tool=no
8351   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8352   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8353   cat conftest.err >&5
8354   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8355     lt_cv_path_mainfest_tool=yes
8356   fi
8357   rm -f conftest*
8358 fi
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8360 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8361 if test yes != "$lt_cv_path_mainfest_tool"; then
8362   MANIFEST_TOOL=:
8363 fi
8364
8365
8366
8367
8368
8369
8370   case $host_os in
8371     rhapsody* | darwin*)
8372     if test -n "$ac_tool_prefix"; then
8373   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8374 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376 $as_echo_n "checking for $ac_word... " >&6; }
8377 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8378   $as_echo_n "(cached) " >&6
8379 else
8380   if test -n "$DSYMUTIL"; then
8381   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8382 else
8383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384 for as_dir in $PATH
8385 do
8386   IFS=$as_save_IFS
8387   test -z "$as_dir" && as_dir=.
8388     for ac_exec_ext in '' $ac_executable_extensions; do
8389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8390     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8392     break 2
8393   fi
8394 done
8395   done
8396 IFS=$as_save_IFS
8397
8398 fi
8399 fi
8400 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8401 if test -n "$DSYMUTIL"; then
8402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8403 $as_echo "$DSYMUTIL" >&6; }
8404 else
8405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406 $as_echo "no" >&6; }
8407 fi
8408
8409
8410 fi
8411 if test -z "$ac_cv_prog_DSYMUTIL"; then
8412   ac_ct_DSYMUTIL=$DSYMUTIL
8413   # Extract the first word of "dsymutil", so it can be a program name with args.
8414 set dummy dsymutil; ac_word=$2
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8416 $as_echo_n "checking for $ac_word... " >&6; }
8417 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8418   $as_echo_n "(cached) " >&6
8419 else
8420   if test -n "$ac_ct_DSYMUTIL"; then
8421   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8422 else
8423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8424 for as_dir in $PATH
8425 do
8426   IFS=$as_save_IFS
8427   test -z "$as_dir" && as_dir=.
8428     for ac_exec_ext in '' $ac_executable_extensions; do
8429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8430     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8432     break 2
8433   fi
8434 done
8435   done
8436 IFS=$as_save_IFS
8437
8438 fi
8439 fi
8440 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8441 if test -n "$ac_ct_DSYMUTIL"; then
8442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8443 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8444 else
8445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8446 $as_echo "no" >&6; }
8447 fi
8448
8449   if test "x$ac_ct_DSYMUTIL" = x; then
8450     DSYMUTIL=":"
8451   else
8452     case $cross_compiling:$ac_tool_warned in
8453 yes:)
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8456 ac_tool_warned=yes ;;
8457 esac
8458     DSYMUTIL=$ac_ct_DSYMUTIL
8459   fi
8460 else
8461   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8462 fi
8463
8464     if test -n "$ac_tool_prefix"; then
8465   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8466 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468 $as_echo_n "checking for $ac_word... " >&6; }
8469 if ${ac_cv_prog_NMEDIT+:} false; then :
8470   $as_echo_n "(cached) " >&6
8471 else
8472   if test -n "$NMEDIT"; then
8473   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8474 else
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476 for as_dir in $PATH
8477 do
8478   IFS=$as_save_IFS
8479   test -z "$as_dir" && as_dir=.
8480     for ac_exec_ext in '' $ac_executable_extensions; do
8481   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8482     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8484     break 2
8485   fi
8486 done
8487   done
8488 IFS=$as_save_IFS
8489
8490 fi
8491 fi
8492 NMEDIT=$ac_cv_prog_NMEDIT
8493 if test -n "$NMEDIT"; then
8494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8495 $as_echo "$NMEDIT" >&6; }
8496 else
8497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 $as_echo "no" >&6; }
8499 fi
8500
8501
8502 fi
8503 if test -z "$ac_cv_prog_NMEDIT"; then
8504   ac_ct_NMEDIT=$NMEDIT
8505   # Extract the first word of "nmedit", so it can be a program name with args.
8506 set dummy nmedit; ac_word=$2
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8508 $as_echo_n "checking for $ac_word... " >&6; }
8509 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8510   $as_echo_n "(cached) " >&6
8511 else
8512   if test -n "$ac_ct_NMEDIT"; then
8513   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8514 else
8515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8516 for as_dir in $PATH
8517 do
8518   IFS=$as_save_IFS
8519   test -z "$as_dir" && as_dir=.
8520     for ac_exec_ext in '' $ac_executable_extensions; do
8521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8522     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8524     break 2
8525   fi
8526 done
8527   done
8528 IFS=$as_save_IFS
8529
8530 fi
8531 fi
8532 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8533 if test -n "$ac_ct_NMEDIT"; then
8534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8535 $as_echo "$ac_ct_NMEDIT" >&6; }
8536 else
8537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538 $as_echo "no" >&6; }
8539 fi
8540
8541   if test "x$ac_ct_NMEDIT" = x; then
8542     NMEDIT=":"
8543   else
8544     case $cross_compiling:$ac_tool_warned in
8545 yes:)
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8548 ac_tool_warned=yes ;;
8549 esac
8550     NMEDIT=$ac_ct_NMEDIT
8551   fi
8552 else
8553   NMEDIT="$ac_cv_prog_NMEDIT"
8554 fi
8555
8556     if test -n "$ac_tool_prefix"; then
8557   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8558 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8560 $as_echo_n "checking for $ac_word... " >&6; }
8561 if ${ac_cv_prog_LIPO+:} false; then :
8562   $as_echo_n "(cached) " >&6
8563 else
8564   if test -n "$LIPO"; then
8565   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8566 else
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in $PATH
8569 do
8570   IFS=$as_save_IFS
8571   test -z "$as_dir" && as_dir=.
8572     for ac_exec_ext in '' $ac_executable_extensions; do
8573   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8574     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8576     break 2
8577   fi
8578 done
8579   done
8580 IFS=$as_save_IFS
8581
8582 fi
8583 fi
8584 LIPO=$ac_cv_prog_LIPO
8585 if test -n "$LIPO"; then
8586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8587 $as_echo "$LIPO" >&6; }
8588 else
8589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590 $as_echo "no" >&6; }
8591 fi
8592
8593
8594 fi
8595 if test -z "$ac_cv_prog_LIPO"; then
8596   ac_ct_LIPO=$LIPO
8597   # Extract the first word of "lipo", so it can be a program name with args.
8598 set dummy lipo; ac_word=$2
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8600 $as_echo_n "checking for $ac_word... " >&6; }
8601 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8602   $as_echo_n "(cached) " >&6
8603 else
8604   if test -n "$ac_ct_LIPO"; then
8605   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8606 else
8607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8608 for as_dir in $PATH
8609 do
8610   IFS=$as_save_IFS
8611   test -z "$as_dir" && as_dir=.
8612     for ac_exec_ext in '' $ac_executable_extensions; do
8613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8614     ac_cv_prog_ac_ct_LIPO="lipo"
8615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8616     break 2
8617   fi
8618 done
8619   done
8620 IFS=$as_save_IFS
8621
8622 fi
8623 fi
8624 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8625 if test -n "$ac_ct_LIPO"; then
8626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8627 $as_echo "$ac_ct_LIPO" >&6; }
8628 else
8629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8630 $as_echo "no" >&6; }
8631 fi
8632
8633   if test "x$ac_ct_LIPO" = x; then
8634     LIPO=":"
8635   else
8636     case $cross_compiling:$ac_tool_warned in
8637 yes:)
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8640 ac_tool_warned=yes ;;
8641 esac
8642     LIPO=$ac_ct_LIPO
8643   fi
8644 else
8645   LIPO="$ac_cv_prog_LIPO"
8646 fi
8647
8648     if test -n "$ac_tool_prefix"; then
8649   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8650 set dummy ${ac_tool_prefix}otool; ac_word=$2
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652 $as_echo_n "checking for $ac_word... " >&6; }
8653 if ${ac_cv_prog_OTOOL+:} false; then :
8654   $as_echo_n "(cached) " >&6
8655 else
8656   if test -n "$OTOOL"; then
8657   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8658 else
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660 for as_dir in $PATH
8661 do
8662   IFS=$as_save_IFS
8663   test -z "$as_dir" && as_dir=.
8664     for ac_exec_ext in '' $ac_executable_extensions; do
8665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8666     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8668     break 2
8669   fi
8670 done
8671   done
8672 IFS=$as_save_IFS
8673
8674 fi
8675 fi
8676 OTOOL=$ac_cv_prog_OTOOL
8677 if test -n "$OTOOL"; then
8678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8679 $as_echo "$OTOOL" >&6; }
8680 else
8681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682 $as_echo "no" >&6; }
8683 fi
8684
8685
8686 fi
8687 if test -z "$ac_cv_prog_OTOOL"; then
8688   ac_ct_OTOOL=$OTOOL
8689   # Extract the first word of "otool", so it can be a program name with args.
8690 set dummy otool; ac_word=$2
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8692 $as_echo_n "checking for $ac_word... " >&6; }
8693 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8694   $as_echo_n "(cached) " >&6
8695 else
8696   if test -n "$ac_ct_OTOOL"; then
8697   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8698 else
8699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8700 for as_dir in $PATH
8701 do
8702   IFS=$as_save_IFS
8703   test -z "$as_dir" && as_dir=.
8704     for ac_exec_ext in '' $ac_executable_extensions; do
8705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8706     ac_cv_prog_ac_ct_OTOOL="otool"
8707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8708     break 2
8709   fi
8710 done
8711   done
8712 IFS=$as_save_IFS
8713
8714 fi
8715 fi
8716 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8717 if test -n "$ac_ct_OTOOL"; then
8718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8719 $as_echo "$ac_ct_OTOOL" >&6; }
8720 else
8721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8722 $as_echo "no" >&6; }
8723 fi
8724
8725   if test "x$ac_ct_OTOOL" = x; then
8726     OTOOL=":"
8727   else
8728     case $cross_compiling:$ac_tool_warned in
8729 yes:)
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8732 ac_tool_warned=yes ;;
8733 esac
8734     OTOOL=$ac_ct_OTOOL
8735   fi
8736 else
8737   OTOOL="$ac_cv_prog_OTOOL"
8738 fi
8739
8740     if test -n "$ac_tool_prefix"; then
8741   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8742 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744 $as_echo_n "checking for $ac_word... " >&6; }
8745 if ${ac_cv_prog_OTOOL64+:} false; then :
8746   $as_echo_n "(cached) " >&6
8747 else
8748   if test -n "$OTOOL64"; then
8749   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8750 else
8751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8752 for as_dir in $PATH
8753 do
8754   IFS=$as_save_IFS
8755   test -z "$as_dir" && as_dir=.
8756     for ac_exec_ext in '' $ac_executable_extensions; do
8757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8758     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8760     break 2
8761   fi
8762 done
8763   done
8764 IFS=$as_save_IFS
8765
8766 fi
8767 fi
8768 OTOOL64=$ac_cv_prog_OTOOL64
8769 if test -n "$OTOOL64"; then
8770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8771 $as_echo "$OTOOL64" >&6; }
8772 else
8773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774 $as_echo "no" >&6; }
8775 fi
8776
8777
8778 fi
8779 if test -z "$ac_cv_prog_OTOOL64"; then
8780   ac_ct_OTOOL64=$OTOOL64
8781   # Extract the first word of "otool64", so it can be a program name with args.
8782 set dummy otool64; ac_word=$2
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8784 $as_echo_n "checking for $ac_word... " >&6; }
8785 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8786   $as_echo_n "(cached) " >&6
8787 else
8788   if test -n "$ac_ct_OTOOL64"; then
8789   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8790 else
8791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8792 for as_dir in $PATH
8793 do
8794   IFS=$as_save_IFS
8795   test -z "$as_dir" && as_dir=.
8796     for ac_exec_ext in '' $ac_executable_extensions; do
8797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8798     ac_cv_prog_ac_ct_OTOOL64="otool64"
8799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8800     break 2
8801   fi
8802 done
8803   done
8804 IFS=$as_save_IFS
8805
8806 fi
8807 fi
8808 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8809 if test -n "$ac_ct_OTOOL64"; then
8810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8811 $as_echo "$ac_ct_OTOOL64" >&6; }
8812 else
8813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8814 $as_echo "no" >&6; }
8815 fi
8816
8817   if test "x$ac_ct_OTOOL64" = x; then
8818     OTOOL64=":"
8819   else
8820     case $cross_compiling:$ac_tool_warned in
8821 yes:)
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8824 ac_tool_warned=yes ;;
8825 esac
8826     OTOOL64=$ac_ct_OTOOL64
8827   fi
8828 else
8829   OTOOL64="$ac_cv_prog_OTOOL64"
8830 fi
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8859 $as_echo_n "checking for -single_module linker flag... " >&6; }
8860 if ${lt_cv_apple_cc_single_mod+:} false; then :
8861   $as_echo_n "(cached) " >&6
8862 else
8863   lt_cv_apple_cc_single_mod=no
8864       if test -z "$LT_MULTI_MODULE"; then
8865         # By default we will add the -single_module flag. You can override
8866         # by either setting the environment variable LT_MULTI_MODULE
8867         # non-empty at configure time, or by adding -multi_module to the
8868         # link flags.
8869         rm -rf libconftest.dylib*
8870         echo "int foo(void){return 1;}" > conftest.c
8871         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8872 -dynamiclib -Wl,-single_module conftest.c" >&5
8873         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8874           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8875         _lt_result=$?
8876         # If there is a non-empty error log, and "single_module"
8877         # appears in it, assume the flag caused a linker warning
8878         if test -s conftest.err && $GREP single_module conftest.err; then
8879           cat conftest.err >&5
8880         # Otherwise, if the output was created with a 0 exit code from
8881         # the compiler, it worked.
8882         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8883           lt_cv_apple_cc_single_mod=yes
8884         else
8885           cat conftest.err >&5
8886         fi
8887         rm -rf libconftest.dylib*
8888         rm -f conftest.*
8889       fi
8890 fi
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8892 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8893
8894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8895 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8896 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8897   $as_echo_n "(cached) " >&6
8898 else
8899   lt_cv_ld_exported_symbols_list=no
8900       save_LDFLAGS=$LDFLAGS
8901       echo "_main" > conftest.sym
8902       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8903       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h.  */
8905
8906 int
8907 main ()
8908 {
8909
8910   ;
8911   return 0;
8912 }
8913 _ACEOF
8914 if ac_fn_c_try_link "$LINENO"; then :
8915   lt_cv_ld_exported_symbols_list=yes
8916 else
8917   lt_cv_ld_exported_symbols_list=no
8918 fi
8919 rm -f core conftest.err conftest.$ac_objext \
8920     conftest$ac_exeext conftest.$ac_ext
8921         LDFLAGS=$save_LDFLAGS
8922
8923 fi
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8925 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8926
8927     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8928 $as_echo_n "checking for -force_load linker flag... " >&6; }
8929 if ${lt_cv_ld_force_load+:} false; then :
8930   $as_echo_n "(cached) " >&6
8931 else
8932   lt_cv_ld_force_load=no
8933       cat > conftest.c << _LT_EOF
8934 int forced_loaded() { return 2;}
8935 _LT_EOF
8936       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8937       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8938       echo "$AR cr libconftest.a conftest.o" >&5
8939       $AR cr libconftest.a conftest.o 2>&5
8940       echo "$RANLIB libconftest.a" >&5
8941       $RANLIB libconftest.a 2>&5
8942       cat > conftest.c << _LT_EOF
8943 int main() { return 0;}
8944 _LT_EOF
8945       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8946       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8947       _lt_result=$?
8948       if test -s conftest.err && $GREP force_load conftest.err; then
8949         cat conftest.err >&5
8950       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8951         lt_cv_ld_force_load=yes
8952       else
8953         cat conftest.err >&5
8954       fi
8955         rm -f conftest.err libconftest.a conftest conftest.c
8956         rm -rf conftest.dSYM
8957
8958 fi
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8960 $as_echo "$lt_cv_ld_force_load" >&6; }
8961     case $host_os in
8962     rhapsody* | darwin1.[012])
8963       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8964     darwin1.*)
8965       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8966     darwin*) # darwin 5.x on
8967       # if running on 10.5 or later, the deployment target defaults
8968       # to the OS version, if on x86, and 10.4, the deployment
8969       # target defaults to 10.4. Don't you love it?
8970       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8971         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8972           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8973         10.[012][,.]*)
8974           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8975         10.*)
8976           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8977       esac
8978     ;;
8979   esac
8980     if test yes = "$lt_cv_apple_cc_single_mod"; then
8981       _lt_dar_single_mod='$single_module'
8982     fi
8983     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8984       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8985     else
8986       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8987     fi
8988     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8989       _lt_dsymutil='~$DSYMUTIL $lib || :'
8990     else
8991       _lt_dsymutil=
8992     fi
8993     ;;
8994   esac
8995
8996 # func_munge_path_list VARIABLE PATH
8997 # -----------------------------------
8998 # VARIABLE is name of variable containing _space_ separated list of
8999 # directories to be munged by the contents of PATH, which is string
9000 # having a format:
9001 # "DIR[:DIR]:"
9002 #       string "DIR[ DIR]" will be prepended to VARIABLE
9003 # ":DIR[:DIR]"
9004 #       string "DIR[ DIR]" will be appended to VARIABLE
9005 # "DIRP[:DIRP]::[DIRA:]DIRA"
9006 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9007 #       "DIRA[ DIRA]" will be appended to VARIABLE
9008 # "DIR[:DIR]"
9009 #       VARIABLE will be replaced by "DIR[ DIR]"
9010 func_munge_path_list ()
9011 {
9012     case x$2 in
9013     x)
9014         ;;
9015     *:)
9016         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9017         ;;
9018     x:*)
9019         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9020         ;;
9021     *::*)
9022         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9023         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9024         ;;
9025     *)
9026         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9027         ;;
9028     esac
9029 }
9030
9031 for ac_header in dlfcn.h
9032 do :
9033   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9034 "
9035 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9036   cat >>confdefs.h <<_ACEOF
9037 #define HAVE_DLFCN_H 1
9038 _ACEOF
9039
9040 fi
9041
9042 done
9043
9044
9045
9046
9047
9048 # Set options
9049
9050
9051
9052         enable_dlopen=no
9053
9054
9055   enable_win32_dll=no
9056
9057
9058             # Check whether --enable-shared was given.
9059 if test "${enable_shared+set}" = set; then :
9060   enableval=$enable_shared; p=${PACKAGE-default}
9061     case $enableval in
9062     yes) enable_shared=yes ;;
9063     no) enable_shared=no ;;
9064     *)
9065       enable_shared=no
9066       # Look at the argument we got.  We use all the common list separators.
9067       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9068       for pkg in $enableval; do
9069         IFS=$lt_save_ifs
9070         if test "X$pkg" = "X$p"; then
9071           enable_shared=yes
9072         fi
9073       done
9074       IFS=$lt_save_ifs
9075       ;;
9076     esac
9077 else
9078   enable_shared=yes
9079 fi
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091 # Check whether --with-pic was given.
9092 if test "${with_pic+set}" = set; then :
9093   withval=$with_pic; lt_p=${PACKAGE-default}
9094     case $withval in
9095     yes|no) pic_mode=$withval ;;
9096     *)
9097       pic_mode=default
9098       # Look at the argument we got.  We use all the common list separators.
9099       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9100       for lt_pkg in $withval; do
9101         IFS=$lt_save_ifs
9102         if test "X$lt_pkg" = "X$lt_p"; then
9103           pic_mode=yes
9104         fi
9105       done
9106       IFS=$lt_save_ifs
9107       ;;
9108     esac
9109 else
9110   pic_mode=default
9111 fi
9112
9113
9114
9115
9116
9117
9118
9119
9120   # Check whether --enable-fast-install was given.
9121 if test "${enable_fast_install+set}" = set; then :
9122   enableval=$enable_fast_install; p=${PACKAGE-default}
9123     case $enableval in
9124     yes) enable_fast_install=yes ;;
9125     no) enable_fast_install=no ;;
9126     *)
9127       enable_fast_install=no
9128       # Look at the argument we got.  We use all the common list separators.
9129       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9130       for pkg in $enableval; do
9131         IFS=$lt_save_ifs
9132         if test "X$pkg" = "X$p"; then
9133           enable_fast_install=yes
9134         fi
9135       done
9136       IFS=$lt_save_ifs
9137       ;;
9138     esac
9139 else
9140   enable_fast_install=yes
9141 fi
9142
9143
9144
9145
9146
9147
9148
9149
9150   shared_archive_member_spec=
9151 case $host,$enable_shared in
9152 power*-*-aix[5-9]*,yes)
9153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9154 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9155
9156 # Check whether --with-aix-soname was given.
9157 if test "${with_aix_soname+set}" = set; then :
9158   withval=$with_aix_soname; case $withval in
9159     aix|svr4|both)
9160       ;;
9161     *)
9162       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9163       ;;
9164     esac
9165     lt_cv_with_aix_soname=$with_aix_soname
9166 else
9167   if ${lt_cv_with_aix_soname+:} false; then :
9168   $as_echo_n "(cached) " >&6
9169 else
9170   lt_cv_with_aix_soname=aix
9171 fi
9172
9173     with_aix_soname=$lt_cv_with_aix_soname
9174 fi
9175
9176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9177 $as_echo "$with_aix_soname" >&6; }
9178   if test aix != "$with_aix_soname"; then
9179     # For the AIX way of multilib, we name the shared archive member
9180     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9181     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9182     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9183     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9184     if test 64 = "${OBJECT_MODE-32}"; then
9185       shared_archive_member_spec=shr_64
9186     else
9187       shared_archive_member_spec=shr
9188     fi
9189   fi
9190   ;;
9191 *)
9192   with_aix_soname=aix
9193   ;;
9194 esac
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205 # This can be used to rebuild libtool when needed
9206 LIBTOOL_DEPS=$ltmain
9207
9208 # Always use our own libtool.
9209 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240 test -z "$LN_S" && LN_S="ln -s"
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255 if test -n "${ZSH_VERSION+set}"; then
9256    setopt NO_GLOB_SUBST
9257 fi
9258
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9260 $as_echo_n "checking for objdir... " >&6; }
9261 if ${lt_cv_objdir+:} false; then :
9262   $as_echo_n "(cached) " >&6
9263 else
9264   rm -f .libs 2>/dev/null
9265 mkdir .libs 2>/dev/null
9266 if test -d .libs; then
9267   lt_cv_objdir=.libs
9268 else
9269   # MS-DOS does not allow filenames that begin with a dot.
9270   lt_cv_objdir=_libs
9271 fi
9272 rmdir .libs 2>/dev/null
9273 fi
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9275 $as_echo "$lt_cv_objdir" >&6; }
9276 objdir=$lt_cv_objdir
9277
9278
9279
9280
9281
9282 cat >>confdefs.h <<_ACEOF
9283 #define LT_OBJDIR "$lt_cv_objdir/"
9284 _ACEOF
9285
9286
9287
9288
9289 case $host_os in
9290 aix3*)
9291   # AIX sometimes has problems with the GCC collect2 program.  For some
9292   # reason, if we set the COLLECT_NAMES environment variable, the problems
9293   # vanish in a puff of smoke.
9294   if test set != "${COLLECT_NAMES+set}"; then
9295     COLLECT_NAMES=
9296     export COLLECT_NAMES
9297   fi
9298   ;;
9299 esac
9300
9301 # Global variables:
9302 ofile=libtool
9303 can_build_shared=yes
9304
9305 # All known linkers require a '.a' archive for static linking (except MSVC,
9306 # which needs '.lib').
9307 libext=a
9308
9309 with_gnu_ld=$lt_cv_prog_gnu_ld
9310
9311 old_CC=$CC
9312 old_CFLAGS=$CFLAGS
9313
9314 # Set sane defaults for various variables
9315 test -z "$CC" && CC=cc
9316 test -z "$LTCC" && LTCC=$CC
9317 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9318 test -z "$LD" && LD=ld
9319 test -z "$ac_objext" && ac_objext=o
9320
9321 func_cc_basename $compiler
9322 cc_basename=$func_cc_basename_result
9323
9324
9325 # Only perform the check for file, if the check method requires it
9326 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9327 case $deplibs_check_method in
9328 file_magic*)
9329   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9331 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9332 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9333   $as_echo_n "(cached) " >&6
9334 else
9335   case $MAGIC_CMD in
9336 [\\/*] |  ?:[\\/]*)
9337   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9338   ;;
9339 *)
9340   lt_save_MAGIC_CMD=$MAGIC_CMD
9341   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9342   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9343   for ac_dir in $ac_dummy; do
9344     IFS=$lt_save_ifs
9345     test -z "$ac_dir" && ac_dir=.
9346     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9347       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9348       if test -n "$file_magic_test_file"; then
9349         case $deplibs_check_method in
9350         "file_magic "*)
9351           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9352           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9353           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9354             $EGREP "$file_magic_regex" > /dev/null; then
9355             :
9356           else
9357             cat <<_LT_EOF 1>&2
9358
9359 *** Warning: the command libtool uses to detect shared libraries,
9360 *** $file_magic_cmd, produces output that libtool cannot recognize.
9361 *** The result is that libtool may fail to recognize shared libraries
9362 *** as such.  This will affect the creation of libtool libraries that
9363 *** depend on shared libraries, but programs linked with such libtool
9364 *** libraries will work regardless of this problem.  Nevertheless, you
9365 *** may want to report the problem to your system manager and/or to
9366 *** bug-libtool@gnu.org
9367
9368 _LT_EOF
9369           fi ;;
9370         esac
9371       fi
9372       break
9373     fi
9374   done
9375   IFS=$lt_save_ifs
9376   MAGIC_CMD=$lt_save_MAGIC_CMD
9377   ;;
9378 esac
9379 fi
9380
9381 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9382 if test -n "$MAGIC_CMD"; then
9383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9384 $as_echo "$MAGIC_CMD" >&6; }
9385 else
9386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9387 $as_echo "no" >&6; }
9388 fi
9389
9390
9391
9392
9393
9394 if test -z "$lt_cv_path_MAGIC_CMD"; then
9395   if test -n "$ac_tool_prefix"; then
9396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9397 $as_echo_n "checking for file... " >&6; }
9398 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9399   $as_echo_n "(cached) " >&6
9400 else
9401   case $MAGIC_CMD in
9402 [\\/*] |  ?:[\\/]*)
9403   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9404   ;;
9405 *)
9406   lt_save_MAGIC_CMD=$MAGIC_CMD
9407   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9408   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9409   for ac_dir in $ac_dummy; do
9410     IFS=$lt_save_ifs
9411     test -z "$ac_dir" && ac_dir=.
9412     if test -f "$ac_dir/file"; then
9413       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9414       if test -n "$file_magic_test_file"; then
9415         case $deplibs_check_method in
9416         "file_magic "*)
9417           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9418           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9419           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9420             $EGREP "$file_magic_regex" > /dev/null; then
9421             :
9422           else
9423             cat <<_LT_EOF 1>&2
9424
9425 *** Warning: the command libtool uses to detect shared libraries,
9426 *** $file_magic_cmd, produces output that libtool cannot recognize.
9427 *** The result is that libtool may fail to recognize shared libraries
9428 *** as such.  This will affect the creation of libtool libraries that
9429 *** depend on shared libraries, but programs linked with such libtool
9430 *** libraries will work regardless of this problem.  Nevertheless, you
9431 *** may want to report the problem to your system manager and/or to
9432 *** bug-libtool@gnu.org
9433
9434 _LT_EOF
9435           fi ;;
9436         esac
9437       fi
9438       break
9439     fi
9440   done
9441   IFS=$lt_save_ifs
9442   MAGIC_CMD=$lt_save_MAGIC_CMD
9443   ;;
9444 esac
9445 fi
9446
9447 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9448 if test -n "$MAGIC_CMD"; then
9449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9450 $as_echo "$MAGIC_CMD" >&6; }
9451 else
9452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453 $as_echo "no" >&6; }
9454 fi
9455
9456
9457   else
9458     MAGIC_CMD=:
9459   fi
9460 fi
9461
9462   fi
9463   ;;
9464 esac
9465
9466 # Use C for the default configuration in the libtool script
9467
9468 lt_save_CC=$CC
9469 ac_ext=c
9470 ac_cpp='$CPP $CPPFLAGS'
9471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9474
9475
9476 # Source file extension for C test sources.
9477 ac_ext=c
9478
9479 # Object file extension for compiled C test sources.
9480 objext=o
9481 objext=$objext
9482
9483 # Code to be used in simple compile tests
9484 lt_simple_compile_test_code="int some_variable = 0;"
9485
9486 # Code to be used in simple link tests
9487 lt_simple_link_test_code='int main(){return(0);}'
9488
9489
9490
9491
9492
9493
9494
9495 # If no C compiler was specified, use CC.
9496 LTCC=${LTCC-"$CC"}
9497
9498 # If no C compiler flags were specified, use CFLAGS.
9499 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9500
9501 # Allow CC to be a program name with arguments.
9502 compiler=$CC
9503
9504 # Save the default compiler, since it gets overwritten when the other
9505 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9506 compiler_DEFAULT=$CC
9507
9508 # save warnings/boilerplate of simple test code
9509 ac_outfile=conftest.$ac_objext
9510 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9511 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9512 _lt_compiler_boilerplate=`cat conftest.err`
9513 $RM conftest*
9514
9515 ac_outfile=conftest.$ac_objext
9516 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9517 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9518 _lt_linker_boilerplate=`cat conftest.err`
9519 $RM -r conftest*
9520
9521
9522 ## CAVEAT EMPTOR:
9523 ## There is no encapsulation within the following macros, do not change
9524 ## the running order or otherwise move them around unless you know exactly
9525 ## what you are doing...
9526 if test -n "$compiler"; then
9527
9528 lt_prog_compiler_no_builtin_flag=
9529
9530 if test yes = "$GCC"; then
9531   case $cc_basename in
9532   nvcc*)
9533     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9534   *)
9535     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9536   esac
9537
9538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9539 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9540 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9541   $as_echo_n "(cached) " >&6
9542 else
9543   lt_cv_prog_compiler_rtti_exceptions=no
9544    ac_outfile=conftest.$ac_objext
9545    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9546    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9547    # Insert the option either (1) after the last *FLAGS variable, or
9548    # (2) before a word containing "conftest.", or (3) at the end.
9549    # Note that $ac_compile itself does not contain backslashes and begins
9550    # with a dollar sign (not a hyphen), so the echo should work correctly.
9551    # The option is referenced via a variable to avoid confusing sed.
9552    lt_compile=`echo "$ac_compile" | $SED \
9553    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9554    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9555    -e 's:$: $lt_compiler_flag:'`
9556    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9557    (eval "$lt_compile" 2>conftest.err)
9558    ac_status=$?
9559    cat conftest.err >&5
9560    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561    if (exit $ac_status) && test -s "$ac_outfile"; then
9562      # The compiler can only warn and ignore the option if not recognized
9563      # So say no if there are warnings other than the usual output.
9564      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9565      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9566      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9567        lt_cv_prog_compiler_rtti_exceptions=yes
9568      fi
9569    fi
9570    $RM conftest*
9571
9572 fi
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9574 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9575
9576 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9577     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9578 else
9579     :
9580 fi
9581
9582 fi
9583
9584
9585
9586
9587
9588
9589   lt_prog_compiler_wl=
9590 lt_prog_compiler_pic=
9591 lt_prog_compiler_static=
9592
9593
9594   if test yes = "$GCC"; then
9595     lt_prog_compiler_wl='-Wl,'
9596     lt_prog_compiler_static='-static'
9597
9598     case $host_os in
9599       aix*)
9600       # All AIX code is PIC.
9601       if test ia64 = "$host_cpu"; then
9602         # AIX 5 now supports IA64 processor
9603         lt_prog_compiler_static='-Bstatic'
9604       fi
9605       lt_prog_compiler_pic='-fPIC'
9606       ;;
9607
9608     amigaos*)
9609       case $host_cpu in
9610       powerpc)
9611             # see comment about AmigaOS4 .so support
9612             lt_prog_compiler_pic='-fPIC'
9613         ;;
9614       m68k)
9615             # FIXME: we need at least 68020 code to build shared libraries, but
9616             # adding the '-m68020' flag to GCC prevents building anything better,
9617             # like '-m68040'.
9618             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9619         ;;
9620       esac
9621       ;;
9622
9623     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9624       # PIC is the default for these OSes.
9625       ;;
9626
9627     mingw* | cygwin* | pw32* | os2* | cegcc*)
9628       # This hack is so that the source file can tell whether it is being
9629       # built for inclusion in a dll (and should export symbols for example).
9630       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9631       # (--disable-auto-import) libraries
9632       lt_prog_compiler_pic='-DDLL_EXPORT'
9633       case $host_os in
9634       os2*)
9635         lt_prog_compiler_static='$wl-static'
9636         ;;
9637       esac
9638       ;;
9639
9640     darwin* | rhapsody*)
9641       # PIC is the default on this platform
9642       # Common symbols not allowed in MH_DYLIB files
9643       lt_prog_compiler_pic='-fno-common'
9644       ;;
9645
9646     haiku*)
9647       # PIC is the default for Haiku.
9648       # The "-static" flag exists, but is broken.
9649       lt_prog_compiler_static=
9650       ;;
9651
9652     hpux*)
9653       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9654       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9655       # sets the default TLS model and affects inlining.
9656       case $host_cpu in
9657       hppa*64*)
9658         # +Z the default
9659         ;;
9660       *)
9661         lt_prog_compiler_pic='-fPIC'
9662         ;;
9663       esac
9664       ;;
9665
9666     interix[3-9]*)
9667       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9668       # Instead, we relocate shared libraries at runtime.
9669       ;;
9670
9671     msdosdjgpp*)
9672       # Just because we use GCC doesn't mean we suddenly get shared libraries
9673       # on systems that don't support them.
9674       lt_prog_compiler_can_build_shared=no
9675       enable_shared=no
9676       ;;
9677
9678     *nto* | *qnx*)
9679       # QNX uses GNU C++, but need to define -shared option too, otherwise
9680       # it will coredump.
9681       lt_prog_compiler_pic='-fPIC -shared'
9682       ;;
9683
9684     sysv4*MP*)
9685       if test -d /usr/nec; then
9686         lt_prog_compiler_pic=-Kconform_pic
9687       fi
9688       ;;
9689
9690     *)
9691       lt_prog_compiler_pic='-fPIC'
9692       ;;
9693     esac
9694
9695     case $cc_basename in
9696     nvcc*) # Cuda Compiler Driver 2.2
9697       lt_prog_compiler_wl='-Xlinker '
9698       if test -n "$lt_prog_compiler_pic"; then
9699         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9700       fi
9701       ;;
9702     esac
9703   else
9704     # PORTME Check for flag to pass linker flags through the system compiler.
9705     case $host_os in
9706     aix*)
9707       lt_prog_compiler_wl='-Wl,'
9708       if test ia64 = "$host_cpu"; then
9709         # AIX 5 now supports IA64 processor
9710         lt_prog_compiler_static='-Bstatic'
9711       else
9712         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9713       fi
9714       ;;
9715
9716     darwin* | rhapsody*)
9717       # PIC is the default on this platform
9718       # Common symbols not allowed in MH_DYLIB files
9719       lt_prog_compiler_pic='-fno-common'
9720       case $cc_basename in
9721       nagfor*)
9722         # NAG Fortran compiler
9723         lt_prog_compiler_wl='-Wl,-Wl,,'
9724         lt_prog_compiler_pic='-PIC'
9725         lt_prog_compiler_static='-Bstatic'
9726         ;;
9727       esac
9728       ;;
9729
9730     mingw* | cygwin* | pw32* | os2* | cegcc*)
9731       # This hack is so that the source file can tell whether it is being
9732       # built for inclusion in a dll (and should export symbols for example).
9733       lt_prog_compiler_pic='-DDLL_EXPORT'
9734       case $host_os in
9735       os2*)
9736         lt_prog_compiler_static='$wl-static'
9737         ;;
9738       esac
9739       ;;
9740
9741     hpux9* | hpux10* | hpux11*)
9742       lt_prog_compiler_wl='-Wl,'
9743       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9744       # not for PA HP-UX.
9745       case $host_cpu in
9746       hppa*64*|ia64*)
9747         # +Z the default
9748         ;;
9749       *)
9750         lt_prog_compiler_pic='+Z'
9751         ;;
9752       esac
9753       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9754       lt_prog_compiler_static='$wl-a ${wl}archive'
9755       ;;
9756
9757     irix5* | irix6* | nonstopux*)
9758       lt_prog_compiler_wl='-Wl,'
9759       # PIC (with -KPIC) is the default.
9760       lt_prog_compiler_static='-non_shared'
9761       ;;
9762
9763     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9764       case $cc_basename in
9765       # old Intel for x86_64, which still supported -KPIC.
9766       ecc*)
9767         lt_prog_compiler_wl='-Wl,'
9768         lt_prog_compiler_pic='-KPIC'
9769         lt_prog_compiler_static='-static'
9770         ;;
9771       # flang / f18. f95 an alias for gfortran or flang on Debian
9772       flang* | f18* | f95*)
9773         lt_prog_compiler_wl='-Wl,'
9774         lt_prog_compiler_pic='-fPIC'
9775         lt_prog_compiler_static='-static'
9776         ;;
9777       # icc used to be incompatible with GCC.
9778       # ICC 10 doesn't accept -KPIC any more.
9779       icc* | ifort*)
9780         lt_prog_compiler_wl='-Wl,'
9781         lt_prog_compiler_pic='-fPIC'
9782         lt_prog_compiler_static='-static'
9783         ;;
9784       # Lahey Fortran 8.1.
9785       lf95*)
9786         lt_prog_compiler_wl='-Wl,'
9787         lt_prog_compiler_pic='--shared'
9788         lt_prog_compiler_static='--static'
9789         ;;
9790       nagfor*)
9791         # NAG Fortran compiler
9792         lt_prog_compiler_wl='-Wl,-Wl,,'
9793         lt_prog_compiler_pic='-PIC'
9794         lt_prog_compiler_static='-Bstatic'
9795         ;;
9796       tcc*)
9797         # Fabrice Bellard et al's Tiny C Compiler
9798         lt_prog_compiler_wl='-Wl,'
9799         lt_prog_compiler_pic='-fPIC'
9800         lt_prog_compiler_static='-static'
9801         ;;
9802       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9803         # Portland Group compilers (*not* the Pentium gcc compiler,
9804         # which looks to be a dead project)
9805         lt_prog_compiler_wl='-Wl,'
9806         lt_prog_compiler_pic='-fpic'
9807         lt_prog_compiler_static='-Bstatic'
9808         ;;
9809       ccc*)
9810         lt_prog_compiler_wl='-Wl,'
9811         # All Alpha code is PIC.
9812         lt_prog_compiler_static='-non_shared'
9813         ;;
9814       xl* | bgxl* | bgf* | mpixl*)
9815         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9816         lt_prog_compiler_wl='-Wl,'
9817         lt_prog_compiler_pic='-qpic'
9818         lt_prog_compiler_static='-qstaticlink'
9819         ;;
9820       *)
9821         case `$CC -V 2>&1 | sed 5q` in
9822         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9823           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9824           lt_prog_compiler_pic='-KPIC'
9825           lt_prog_compiler_static='-Bstatic'
9826           lt_prog_compiler_wl=''
9827           ;;
9828         *Sun\ F* | *Sun*Fortran*)
9829           lt_prog_compiler_pic='-KPIC'
9830           lt_prog_compiler_static='-Bstatic'
9831           lt_prog_compiler_wl='-Qoption ld '
9832           ;;
9833         *Sun\ C*)
9834           # Sun C 5.9
9835           lt_prog_compiler_pic='-KPIC'
9836           lt_prog_compiler_static='-Bstatic'
9837           lt_prog_compiler_wl='-Wl,'
9838           ;;
9839         *Intel*\ [CF]*Compiler*)
9840           lt_prog_compiler_wl='-Wl,'
9841           lt_prog_compiler_pic='-fPIC'
9842           lt_prog_compiler_static='-static'
9843           ;;
9844         *Portland\ Group*)
9845           lt_prog_compiler_wl='-Wl,'
9846           lt_prog_compiler_pic='-fpic'
9847           lt_prog_compiler_static='-Bstatic'
9848           ;;
9849         esac
9850         ;;
9851       esac
9852       ;;
9853
9854     newsos6)
9855       lt_prog_compiler_pic='-KPIC'
9856       lt_prog_compiler_static='-Bstatic'
9857       ;;
9858
9859     *nto* | *qnx*)
9860       # QNX uses GNU C++, but need to define -shared option too, otherwise
9861       # it will coredump.
9862       lt_prog_compiler_pic='-fPIC -shared'
9863       ;;
9864
9865     osf3* | osf4* | osf5*)
9866       lt_prog_compiler_wl='-Wl,'
9867       # All OSF/1 code is PIC.
9868       lt_prog_compiler_static='-non_shared'
9869       ;;
9870
9871     rdos*)
9872       lt_prog_compiler_static='-non_shared'
9873       ;;
9874
9875     solaris*)
9876       lt_prog_compiler_pic='-KPIC'
9877       lt_prog_compiler_static='-Bstatic'
9878       case $cc_basename in
9879       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9880         lt_prog_compiler_wl='-Qoption ld ';;
9881       *)
9882         lt_prog_compiler_wl='-Wl,';;
9883       esac
9884       ;;
9885
9886     sunos4*)
9887       lt_prog_compiler_wl='-Qoption ld '
9888       lt_prog_compiler_pic='-PIC'
9889       lt_prog_compiler_static='-Bstatic'
9890       ;;
9891
9892     sysv4 | sysv4.2uw2* | sysv4.3*)
9893       lt_prog_compiler_wl='-Wl,'
9894       lt_prog_compiler_pic='-KPIC'
9895       lt_prog_compiler_static='-Bstatic'
9896       ;;
9897
9898     sysv4*MP*)
9899       if test -d /usr/nec; then
9900         lt_prog_compiler_pic='-Kconform_pic'
9901         lt_prog_compiler_static='-Bstatic'
9902       fi
9903       ;;
9904
9905     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9906       lt_prog_compiler_wl='-Wl,'
9907       lt_prog_compiler_pic='-KPIC'
9908       lt_prog_compiler_static='-Bstatic'
9909       ;;
9910
9911     unicos*)
9912       lt_prog_compiler_wl='-Wl,'
9913       lt_prog_compiler_can_build_shared=no
9914       ;;
9915
9916     uts4*)
9917       lt_prog_compiler_pic='-pic'
9918       lt_prog_compiler_static='-Bstatic'
9919       ;;
9920
9921     *)
9922       lt_prog_compiler_can_build_shared=no
9923       ;;
9924     esac
9925   fi
9926
9927 case $host_os in
9928   # For platforms that do not support PIC, -DPIC is meaningless:
9929   *djgpp*)
9930     lt_prog_compiler_pic=
9931     ;;
9932   *)
9933     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9934     ;;
9935 esac
9936
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9938 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9939 if ${lt_cv_prog_compiler_pic+:} false; then :
9940   $as_echo_n "(cached) " >&6
9941 else
9942   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9943 fi
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9945 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9946 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9947
9948 #
9949 # Check to make sure the PIC flag actually works.
9950 #
9951 if test -n "$lt_prog_compiler_pic"; then
9952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9953 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9954 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9955   $as_echo_n "(cached) " >&6
9956 else
9957   lt_cv_prog_compiler_pic_works=no
9958    ac_outfile=conftest.$ac_objext
9959    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9960    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9961    # Insert the option either (1) after the last *FLAGS variable, or
9962    # (2) before a word containing "conftest.", or (3) at the end.
9963    # Note that $ac_compile itself does not contain backslashes and begins
9964    # with a dollar sign (not a hyphen), so the echo should work correctly.
9965    # The option is referenced via a variable to avoid confusing sed.
9966    lt_compile=`echo "$ac_compile" | $SED \
9967    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9968    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9969    -e 's:$: $lt_compiler_flag:'`
9970    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9971    (eval "$lt_compile" 2>conftest.err)
9972    ac_status=$?
9973    cat conftest.err >&5
9974    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975    if (exit $ac_status) && test -s "$ac_outfile"; then
9976      # The compiler can only warn and ignore the option if not recognized
9977      # So say no if there are warnings other than the usual output.
9978      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9979      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9980      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9981        lt_cv_prog_compiler_pic_works=yes
9982      fi
9983    fi
9984    $RM conftest*
9985
9986 fi
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9988 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9989
9990 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9991     case $lt_prog_compiler_pic in
9992      "" | " "*) ;;
9993      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9994      esac
9995 else
9996     lt_prog_compiler_pic=
9997      lt_prog_compiler_can_build_shared=no
9998 fi
9999
10000 fi
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012 #
10013 # Check to make sure the static flag actually works.
10014 #
10015 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10017 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10018 if ${lt_cv_prog_compiler_static_works+:} false; then :
10019   $as_echo_n "(cached) " >&6
10020 else
10021   lt_cv_prog_compiler_static_works=no
10022    save_LDFLAGS=$LDFLAGS
10023    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10024    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10025    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10026      # The linker can only warn and ignore the option if not recognized
10027      # So say no if there are warnings
10028      if test -s conftest.err; then
10029        # Append any errors to the config.log.
10030        cat conftest.err 1>&5
10031        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10032        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10033        if diff conftest.exp conftest.er2 >/dev/null; then
10034          lt_cv_prog_compiler_static_works=yes
10035        fi
10036      else
10037        lt_cv_prog_compiler_static_works=yes
10038      fi
10039    fi
10040    $RM -r conftest*
10041    LDFLAGS=$save_LDFLAGS
10042
10043 fi
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10045 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10046
10047 if test yes = "$lt_cv_prog_compiler_static_works"; then
10048     :
10049 else
10050     lt_prog_compiler_static=
10051 fi
10052
10053
10054
10055
10056
10057
10058
10059   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10060 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10061 if ${lt_cv_prog_compiler_c_o+:} false; then :
10062   $as_echo_n "(cached) " >&6
10063 else
10064   lt_cv_prog_compiler_c_o=no
10065    $RM -r conftest 2>/dev/null
10066    mkdir conftest
10067    cd conftest
10068    mkdir out
10069    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10070
10071    lt_compiler_flag="-o out/conftest2.$ac_objext"
10072    # Insert the option either (1) after the last *FLAGS variable, or
10073    # (2) before a word containing "conftest.", or (3) at the end.
10074    # Note that $ac_compile itself does not contain backslashes and begins
10075    # with a dollar sign (not a hyphen), so the echo should work correctly.
10076    lt_compile=`echo "$ac_compile" | $SED \
10077    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10078    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10079    -e 's:$: $lt_compiler_flag:'`
10080    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10081    (eval "$lt_compile" 2>out/conftest.err)
10082    ac_status=$?
10083    cat out/conftest.err >&5
10084    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10086    then
10087      # The compiler can only warn and ignore the option if not recognized
10088      # So say no if there are warnings
10089      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10090      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10091      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10092        lt_cv_prog_compiler_c_o=yes
10093      fi
10094    fi
10095    chmod u+w . 2>&5
10096    $RM conftest*
10097    # SGI C++ compiler will create directory out/ii_files/ for
10098    # template instantiation
10099    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10100    $RM out/* && rmdir out
10101    cd ..
10102    $RM -r conftest
10103    $RM conftest*
10104
10105 fi
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10107 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10108
10109
10110
10111
10112
10113
10114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10115 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10116 if ${lt_cv_prog_compiler_c_o+:} false; then :
10117   $as_echo_n "(cached) " >&6
10118 else
10119   lt_cv_prog_compiler_c_o=no
10120    $RM -r conftest 2>/dev/null
10121    mkdir conftest
10122    cd conftest
10123    mkdir out
10124    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10125
10126    lt_compiler_flag="-o out/conftest2.$ac_objext"
10127    # Insert the option either (1) after the last *FLAGS variable, or
10128    # (2) before a word containing "conftest.", or (3) at the end.
10129    # Note that $ac_compile itself does not contain backslashes and begins
10130    # with a dollar sign (not a hyphen), so the echo should work correctly.
10131    lt_compile=`echo "$ac_compile" | $SED \
10132    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10133    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10134    -e 's:$: $lt_compiler_flag:'`
10135    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10136    (eval "$lt_compile" 2>out/conftest.err)
10137    ac_status=$?
10138    cat out/conftest.err >&5
10139    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10141    then
10142      # The compiler can only warn and ignore the option if not recognized
10143      # So say no if there are warnings
10144      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10145      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10146      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10147        lt_cv_prog_compiler_c_o=yes
10148      fi
10149    fi
10150    chmod u+w . 2>&5
10151    $RM conftest*
10152    # SGI C++ compiler will create directory out/ii_files/ for
10153    # template instantiation
10154    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10155    $RM out/* && rmdir out
10156    cd ..
10157    $RM -r conftest
10158    $RM conftest*
10159
10160 fi
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10162 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10163
10164
10165
10166
10167 hard_links=nottested
10168 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10169   # do not overwrite the value of need_locks provided by the user
10170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10171 $as_echo_n "checking if we can lock with hard links... " >&6; }
10172   hard_links=yes
10173   $RM conftest*
10174   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10175   touch conftest.a
10176   ln conftest.a conftest.b 2>&5 || hard_links=no
10177   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10179 $as_echo "$hard_links" >&6; }
10180   if test no = "$hard_links"; then
10181     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10182 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10183     need_locks=warn
10184   fi
10185 else
10186   need_locks=no
10187 fi
10188
10189
10190
10191
10192
10193
10194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10195 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10196
10197   runpath_var=
10198   allow_undefined_flag=
10199   always_export_symbols=no
10200   archive_cmds=
10201   archive_expsym_cmds=
10202   compiler_needs_object=no
10203   enable_shared_with_static_runtimes=no
10204   export_dynamic_flag_spec=
10205   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10206   hardcode_automatic=no
10207   hardcode_direct=no
10208   hardcode_direct_absolute=no
10209   hardcode_libdir_flag_spec=
10210   hardcode_libdir_separator=
10211   hardcode_minus_L=no
10212   hardcode_shlibpath_var=unsupported
10213   inherit_rpath=no
10214   link_all_deplibs=unknown
10215   module_cmds=
10216   module_expsym_cmds=
10217   old_archive_from_new_cmds=
10218   old_archive_from_expsyms_cmds=
10219   thread_safe_flag_spec=
10220   whole_archive_flag_spec=
10221   # include_expsyms should be a list of space-separated symbols to be *always*
10222   # included in the symbol list
10223   include_expsyms=
10224   # exclude_expsyms can be an extended regexp of symbols to exclude
10225   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10226   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10227   # as well as any symbol that contains 'd'.
10228   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10229   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10230   # platforms (ab)use it in PIC code, but their linkers get confused if
10231   # the symbol is explicitly referenced.  Since portable code cannot
10232   # rely on this symbol name, it's probably fine to never include it in
10233   # preloaded symbol tables.
10234   # Exclude shared library initialization/finalization symbols.
10235   extract_expsyms_cmds=
10236
10237   case $host_os in
10238   cygwin* | mingw* | pw32* | cegcc*)
10239     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10240     # When not using gcc, we currently assume that we are using
10241     # Microsoft Visual C++.
10242     if test yes != "$GCC"; then
10243       with_gnu_ld=no
10244     fi
10245     ;;
10246   interix*)
10247     # we just hope/assume this is gcc and not c89 (= MSVC++)
10248     with_gnu_ld=yes
10249     ;;
10250   openbsd* | bitrig*)
10251     with_gnu_ld=no
10252     ;;
10253   linux* | k*bsd*-gnu | gnu*)
10254     link_all_deplibs=no
10255     ;;
10256   esac
10257
10258   ld_shlibs=yes
10259
10260   # On some targets, GNU ld is compatible enough with the native linker
10261   # that we're better off using the native interface for both.
10262   lt_use_gnu_ld_interface=no
10263   if test yes = "$with_gnu_ld"; then
10264     case $host_os in
10265       aix*)
10266         # The AIX port of GNU ld has always aspired to compatibility
10267         # with the native linker.  However, as the warning in the GNU ld
10268         # block says, versions before 2.19.5* couldn't really create working
10269         # shared libraries, regardless of the interface used.
10270         case `$LD -v 2>&1` in
10271           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10272           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10273           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10274           *)
10275             lt_use_gnu_ld_interface=yes
10276             ;;
10277         esac
10278         ;;
10279       *)
10280         lt_use_gnu_ld_interface=yes
10281         ;;
10282     esac
10283   fi
10284
10285   if test yes = "$lt_use_gnu_ld_interface"; then
10286     # If archive_cmds runs LD, not CC, wlarc should be empty
10287     wlarc='$wl'
10288
10289     # Set some defaults for GNU ld with shared library support. These
10290     # are reset later if shared libraries are not supported. Putting them
10291     # here allows them to be overridden if necessary.
10292     runpath_var=LD_RUN_PATH
10293     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10294     export_dynamic_flag_spec='$wl--export-dynamic'
10295     # ancient GNU ld didn't support --whole-archive et. al.
10296     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10297       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10298     else
10299       whole_archive_flag_spec=
10300     fi
10301     supports_anon_versioning=no
10302     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10303       *GNU\ gold*) supports_anon_versioning=yes ;;
10304       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10305       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10306       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10307       *\ 2.11.*) ;; # other 2.11 versions
10308       *) supports_anon_versioning=yes ;;
10309     esac
10310
10311     # See if GNU ld supports shared libraries.
10312     case $host_os in
10313     aix[3-9]*)
10314       # On AIX/PPC, the GNU linker is very broken
10315       if test ia64 != "$host_cpu"; then
10316         ld_shlibs=no
10317         cat <<_LT_EOF 1>&2
10318
10319 *** Warning: the GNU linker, at least up to release 2.19, is reported
10320 *** to be unable to reliably create shared libraries on AIX.
10321 *** Therefore, libtool is disabling shared libraries support.  If you
10322 *** really care for shared libraries, you may want to install binutils
10323 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10324 *** You will then need to restart the configuration process.
10325
10326 _LT_EOF
10327       fi
10328       ;;
10329
10330     amigaos*)
10331       case $host_cpu in
10332       powerpc)
10333             # see comment about AmigaOS4 .so support
10334             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10335             archive_expsym_cmds=''
10336         ;;
10337       m68k)
10338             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)'
10339             hardcode_libdir_flag_spec='-L$libdir'
10340             hardcode_minus_L=yes
10341         ;;
10342       esac
10343       ;;
10344
10345     beos*)
10346       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10347         allow_undefined_flag=unsupported
10348         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10349         # support --undefined.  This deserves some investigation.  FIXME
10350         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10351       else
10352         ld_shlibs=no
10353       fi
10354       ;;
10355
10356     cygwin* | mingw* | pw32* | cegcc*)
10357       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10358       # as there is no search path for DLLs.
10359       hardcode_libdir_flag_spec='-L$libdir'
10360       export_dynamic_flag_spec='$wl--export-all-symbols'
10361       allow_undefined_flag=unsupported
10362       always_export_symbols=no
10363       enable_shared_with_static_runtimes=yes
10364       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'
10365       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10366
10367       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10368         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10369         # If the export-symbols file already is a .def file, use it as
10370         # is; otherwise, prepend EXPORTS...
10371         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10372           cp $export_symbols $output_objdir/$soname.def;
10373         else
10374           echo EXPORTS > $output_objdir/$soname.def;
10375           cat $export_symbols >> $output_objdir/$soname.def;
10376         fi~
10377         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10378       else
10379         ld_shlibs=no
10380       fi
10381       ;;
10382
10383     haiku*)
10384       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10385       link_all_deplibs=yes
10386       ;;
10387
10388     os2*)
10389       hardcode_libdir_flag_spec='-L$libdir'
10390       hardcode_minus_L=yes
10391       allow_undefined_flag=unsupported
10392       shrext_cmds=.dll
10393       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10394         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10395         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10396         $ECHO EXPORTS >> $output_objdir/$libname.def~
10397         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10398         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10399         emximp -o $lib $output_objdir/$libname.def'
10400       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10401         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10402         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10403         $ECHO EXPORTS >> $output_objdir/$libname.def~
10404         prefix_cmds="$SED"~
10405         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10406           prefix_cmds="$prefix_cmds -e 1d";
10407         fi~
10408         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10409         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10410         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10411         emximp -o $lib $output_objdir/$libname.def'
10412       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10413       enable_shared_with_static_runtimes=yes
10414       ;;
10415
10416     interix[3-9]*)
10417       hardcode_direct=no
10418       hardcode_shlibpath_var=no
10419       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10420       export_dynamic_flag_spec='$wl-E'
10421       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10422       # Instead, shared libraries are loaded at an image base (0x10000000 by
10423       # default) and relocated if they conflict, which is a slow very memory
10424       # consuming and fragmenting process.  To avoid this, we pick a random,
10425       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10426       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10427       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10428       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'
10429       ;;
10430
10431     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10432       tmp_diet=no
10433       if test linux-dietlibc = "$host_os"; then
10434         case $cc_basename in
10435           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10436         esac
10437       fi
10438       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10439          && test no = "$tmp_diet"
10440       then
10441         tmp_addflag=' $pic_flag'
10442         tmp_sharedflag='-shared'
10443         case $cc_basename,$host_cpu in
10444         pgcc*)                          # Portland Group C compiler
10445           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'
10446           tmp_addflag=' $pic_flag'
10447           ;;
10448         pgf77* | pgf90* | pgf95* | pgfortran*)
10449                                         # Portland Group f77 and f90 compilers
10450           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'
10451           tmp_addflag=' $pic_flag -Mnomain' ;;
10452         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10453           tmp_addflag=' -i_dynamic' ;;
10454         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10455           tmp_addflag=' -i_dynamic -nofor_main' ;;
10456         ifc* | ifort*)                  # Intel Fortran compiler
10457           tmp_addflag=' -nofor_main' ;;
10458         lf95*)                          # Lahey Fortran 8.1
10459           whole_archive_flag_spec=
10460           tmp_sharedflag='--shared' ;;
10461         nagfor*)                        # NAGFOR 5.3
10462           tmp_sharedflag='-Wl,-shared' ;;
10463         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10464           tmp_sharedflag='-qmkshrobj'
10465           tmp_addflag= ;;
10466         nvcc*)  # Cuda Compiler Driver 2.2
10467           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'
10468           compiler_needs_object=yes
10469           ;;
10470         esac
10471         case `$CC -V 2>&1 | sed 5q` in
10472         *Sun\ C*)                       # Sun C 5.9
10473           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'
10474           compiler_needs_object=yes
10475           tmp_sharedflag='-G' ;;
10476         *Sun\ F*)                       # Sun Fortran 8.3
10477           tmp_sharedflag='-G' ;;
10478         esac
10479         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10480
10481         if test yes = "$supports_anon_versioning"; then
10482           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10483             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10484             echo "local: *; };" >> $output_objdir/$libname.ver~
10485             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10486         fi
10487
10488         case $cc_basename in
10489         tcc*)
10490           export_dynamic_flag_spec='-rdynamic'
10491           ;;
10492         xlf* | bgf* | bgxlf* | mpixlf*)
10493           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10494           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10495           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10496           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10497           if test yes = "$supports_anon_versioning"; then
10498             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10499               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10500               echo "local: *; };" >> $output_objdir/$libname.ver~
10501               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10502           fi
10503           ;;
10504         esac
10505       else
10506         ld_shlibs=no
10507       fi
10508       ;;
10509
10510     netbsd* | netbsdelf*-gnu)
10511       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10512         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10513         wlarc=
10514       else
10515         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10516         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10517       fi
10518       ;;
10519
10520     solaris*)
10521       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10522         ld_shlibs=no
10523         cat <<_LT_EOF 1>&2
10524
10525 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10526 *** create shared libraries on Solaris systems.  Therefore, libtool
10527 *** is disabling shared libraries support.  We urge you to upgrade GNU
10528 *** binutils to release 2.9.1 or newer.  Another option is to modify
10529 *** your PATH or compiler configuration so that the native linker is
10530 *** used, and then restart.
10531
10532 _LT_EOF
10533       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10534         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10535         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10536       else
10537         ld_shlibs=no
10538       fi
10539       ;;
10540
10541     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10542       case `$LD -v 2>&1` in
10543         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10544         ld_shlibs=no
10545         cat <<_LT_EOF 1>&2
10546
10547 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10548 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10549 *** is disabling shared libraries support.  We urge you to upgrade GNU
10550 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10551 *** your PATH or compiler configuration so that the native linker is
10552 *** used, and then restart.
10553
10554 _LT_EOF
10555         ;;
10556         *)
10557           # For security reasons, it is highly recommended that you always
10558           # use absolute paths for naming shared libraries, and exclude the
10559           # DT_RUNPATH tag from executables and libraries.  But doing so
10560           # requires that you compile everything twice, which is a pain.
10561           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10562             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10563             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10564             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10565           else
10566             ld_shlibs=no
10567           fi
10568         ;;
10569       esac
10570       ;;
10571
10572     sunos4*)
10573       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10574       wlarc=
10575       hardcode_direct=yes
10576       hardcode_shlibpath_var=no
10577       ;;
10578
10579     *)
10580       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10581         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10582         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10583       else
10584         ld_shlibs=no
10585       fi
10586       ;;
10587     esac
10588
10589     if test no = "$ld_shlibs"; then
10590       runpath_var=
10591       hardcode_libdir_flag_spec=
10592       export_dynamic_flag_spec=
10593       whole_archive_flag_spec=
10594     fi
10595   else
10596     # PORTME fill in a description of your system's linker (not GNU ld)
10597     case $host_os in
10598     aix3*)
10599       allow_undefined_flag=unsupported
10600       always_export_symbols=yes
10601       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'
10602       # Note: this linker hardcodes the directories in LIBPATH if there
10603       # are no directories specified by -L.
10604       hardcode_minus_L=yes
10605       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10606         # Neither direct hardcoding nor static linking is supported with a
10607         # broken collect2.
10608         hardcode_direct=unsupported
10609       fi
10610       ;;
10611
10612     aix[4-9]*)
10613       if test ia64 = "$host_cpu"; then
10614         # On IA64, the linker does run time linking by default, so we don't
10615         # have to do anything special.
10616         aix_use_runtimelinking=no
10617         exp_sym_flag='-Bexport'
10618         no_entry_flag=
10619       else
10620         # If we're using GNU nm, then we don't want the "-C" option.
10621         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10622         # Without the "-l" option, or with the "-B" option, AIX nm treats
10623         # weak defined symbols like other global defined symbols, whereas
10624         # GNU nm marks them as "W".
10625         # While the 'weak' keyword is ignored in the Export File, we need
10626         # it in the Import File for the 'aix-soname' feature, so we have
10627         # to replace the "-B" option with "-P" for AIX nm.
10628         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10629           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10630         else
10631           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10632         fi
10633         aix_use_runtimelinking=no
10634
10635         # Test if we are trying to use run time linking or normal
10636         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10637         # have runtime linking enabled, and use it for executables.
10638         # For shared libraries, we enable/disable runtime linking
10639         # depending on the kind of the shared library created -
10640         # when "with_aix_soname,aix_use_runtimelinking" is:
10641         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10642         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10643         #            lib.a           static archive
10644         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10645         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10646         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10647         #            lib.a(lib.so.V) shared, rtl:no
10648         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10649         #            lib.a           static archive
10650         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10651           for ld_flag in $LDFLAGS; do
10652           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10653             aix_use_runtimelinking=yes
10654             break
10655           fi
10656           done
10657           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10658             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10659             # so we don't have lib.a shared libs to link our executables.
10660             # We have to force runtime linking in this case.
10661             aix_use_runtimelinking=yes
10662             LDFLAGS="$LDFLAGS -Wl,-brtl"
10663           fi
10664           ;;
10665         esac
10666
10667         exp_sym_flag='-bexport'
10668         no_entry_flag='-bnoentry'
10669       fi
10670
10671       # When large executables or shared objects are built, AIX ld can
10672       # have problems creating the table of contents.  If linking a library
10673       # or program results in "error TOC overflow" add -mminimal-toc to
10674       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10675       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10676
10677       archive_cmds=''
10678       hardcode_direct=yes
10679       hardcode_direct_absolute=yes
10680       hardcode_libdir_separator=':'
10681       link_all_deplibs=yes
10682       file_list_spec='$wl-f,'
10683       case $with_aix_soname,$aix_use_runtimelinking in
10684       aix,*) ;; # traditional, no import file
10685       svr4,* | *,yes) # use import file
10686         # The Import File defines what to hardcode.
10687         hardcode_direct=no
10688         hardcode_direct_absolute=no
10689         ;;
10690       esac
10691
10692       if test yes = "$GCC"; then
10693         case $host_os in aix4.[012]|aix4.[012].*)
10694         # We only want to do this on AIX 4.2 and lower, the check
10695         # below for broken collect2 doesn't work under 4.3+
10696           collect2name=`$CC -print-prog-name=collect2`
10697           if test -f "$collect2name" &&
10698            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10699           then
10700           # We have reworked collect2
10701           :
10702           else
10703           # We have old collect2
10704           hardcode_direct=unsupported
10705           # It fails to find uninstalled libraries when the uninstalled
10706           # path is not listed in the libpath.  Setting hardcode_minus_L
10707           # to unsupported forces relinking
10708           hardcode_minus_L=yes
10709           hardcode_libdir_flag_spec='-L$libdir'
10710           hardcode_libdir_separator=
10711           fi
10712           ;;
10713         esac
10714         shared_flag='-shared'
10715         if test yes = "$aix_use_runtimelinking"; then
10716           shared_flag="$shared_flag "'$wl-G'
10717         fi
10718         # Need to ensure runtime linking is disabled for the traditional
10719         # shared library, or the linker may eventually find shared libraries
10720         # /with/ Import File - we do not want to mix them.
10721         shared_flag_aix='-shared'
10722         shared_flag_svr4='-shared $wl-G'
10723       else
10724         # not using gcc
10725         if test ia64 = "$host_cpu"; then
10726         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10727         # chokes on -Wl,-G. The following line is correct:
10728           shared_flag='-G'
10729         else
10730           if test yes = "$aix_use_runtimelinking"; then
10731             shared_flag='$wl-G'
10732           else
10733             shared_flag='$wl-bM:SRE'
10734           fi
10735           shared_flag_aix='$wl-bM:SRE'
10736           shared_flag_svr4='$wl-G'
10737         fi
10738       fi
10739
10740       export_dynamic_flag_spec='$wl-bexpall'
10741       # It seems that -bexpall does not export symbols beginning with
10742       # underscore (_), so it is better to generate a list of symbols to export.
10743       always_export_symbols=yes
10744       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10745         # Warning - without using the other runtime loading flags (-brtl),
10746         # -berok will link without error, but may produce a broken library.
10747         allow_undefined_flag='-berok'
10748         # Determine the default libpath from the value encoded in an
10749         # empty executable.
10750         if test set = "${lt_cv_aix_libpath+set}"; then
10751   aix_libpath=$lt_cv_aix_libpath
10752 else
10753   if ${lt_cv_aix_libpath_+:} false; then :
10754   $as_echo_n "(cached) " >&6
10755 else
10756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h.  */
10758
10759 int
10760 main ()
10761 {
10762
10763   ;
10764   return 0;
10765 }
10766 _ACEOF
10767 if ac_fn_c_try_link "$LINENO"; then :
10768
10769   lt_aix_libpath_sed='
10770       /Import File Strings/,/^$/ {
10771           /^0/ {
10772               s/^0  *\([^ ]*\) *$/\1/
10773               p
10774           }
10775       }'
10776   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10777   # Check for a 64-bit object if we didn't find anything.
10778   if test -z "$lt_cv_aix_libpath_"; then
10779     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10780   fi
10781 fi
10782 rm -f core conftest.err conftest.$ac_objext \
10783     conftest$ac_exeext conftest.$ac_ext
10784   if test -z "$lt_cv_aix_libpath_"; then
10785     lt_cv_aix_libpath_=/usr/lib:/lib
10786   fi
10787
10788 fi
10789
10790   aix_libpath=$lt_cv_aix_libpath_
10791 fi
10792
10793         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10794         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10795       else
10796         if test ia64 = "$host_cpu"; then
10797           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10798           allow_undefined_flag="-z nodefs"
10799           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"
10800         else
10801          # Determine the default libpath from the value encoded in an
10802          # empty executable.
10803          if test set = "${lt_cv_aix_libpath+set}"; then
10804   aix_libpath=$lt_cv_aix_libpath
10805 else
10806   if ${lt_cv_aix_libpath_+:} false; then :
10807   $as_echo_n "(cached) " >&6
10808 else
10809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h.  */
10811
10812 int
10813 main ()
10814 {
10815
10816   ;
10817   return 0;
10818 }
10819 _ACEOF
10820 if ac_fn_c_try_link "$LINENO"; then :
10821
10822   lt_aix_libpath_sed='
10823       /Import File Strings/,/^$/ {
10824           /^0/ {
10825               s/^0  *\([^ ]*\) *$/\1/
10826               p
10827           }
10828       }'
10829   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10830   # Check for a 64-bit object if we didn't find anything.
10831   if test -z "$lt_cv_aix_libpath_"; then
10832     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10833   fi
10834 fi
10835 rm -f core conftest.err conftest.$ac_objext \
10836     conftest$ac_exeext conftest.$ac_ext
10837   if test -z "$lt_cv_aix_libpath_"; then
10838     lt_cv_aix_libpath_=/usr/lib:/lib
10839   fi
10840
10841 fi
10842
10843   aix_libpath=$lt_cv_aix_libpath_
10844 fi
10845
10846          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10847           # Warning - without using the other run time loading flags,
10848           # -berok will link without error, but may produce a broken library.
10849           no_undefined_flag=' $wl-bernotok'
10850           allow_undefined_flag=' $wl-berok'
10851           if test yes = "$with_gnu_ld"; then
10852             # We only use this code for GNU lds that support --whole-archive.
10853             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10854           else
10855             # Exported symbols can be pulled into shared objects from archives
10856             whole_archive_flag_spec='$convenience'
10857           fi
10858           archive_cmds_need_lc=yes
10859           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10860           # -brtl affects multiple linker settings, -berok does not and is overridden later
10861           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10862           if test svr4 != "$with_aix_soname"; then
10863             # This is similar to how AIX traditionally builds its shared libraries.
10864             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10865           fi
10866           if test aix != "$with_aix_soname"; then
10867             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10868           else
10869             # used by -dlpreopen to get the symbols
10870             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10871           fi
10872           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10873         fi
10874       fi
10875       ;;
10876
10877     amigaos*)
10878       case $host_cpu in
10879       powerpc)
10880             # see comment about AmigaOS4 .so support
10881             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10882             archive_expsym_cmds=''
10883         ;;
10884       m68k)
10885             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)'
10886             hardcode_libdir_flag_spec='-L$libdir'
10887             hardcode_minus_L=yes
10888         ;;
10889       esac
10890       ;;
10891
10892     bsdi[45]*)
10893       export_dynamic_flag_spec=-rdynamic
10894       ;;
10895
10896     cygwin* | mingw* | pw32* | cegcc*)
10897       # When not using gcc, we currently assume that we are using
10898       # Microsoft Visual C++.
10899       # hardcode_libdir_flag_spec is actually meaningless, as there is
10900       # no search path for DLLs.
10901       case $cc_basename in
10902       cl*)
10903         # Native MSVC
10904         hardcode_libdir_flag_spec=' '
10905         allow_undefined_flag=unsupported
10906         always_export_symbols=yes
10907         file_list_spec='@'
10908         # Tell ltmain to make .lib files, not .a files.
10909         libext=lib
10910         # Tell ltmain to make .dll files, not .so files.
10911         shrext_cmds=.dll
10912         # FIXME: Setting linknames here is a bad hack.
10913         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10914         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10915             cp "$export_symbols" "$output_objdir/$soname.def";
10916             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10917           else
10918             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10919           fi~
10920           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10921           linknames='
10922         # The linker will not automatically build a static lib if we build a DLL.
10923         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10924         enable_shared_with_static_runtimes=yes
10925         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10926         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10927         # Don't use ranlib
10928         old_postinstall_cmds='chmod 644 $oldlib'
10929         postlink_cmds='lt_outputfile="@OUTPUT@"~
10930           lt_tool_outputfile="@TOOL_OUTPUT@"~
10931           case $lt_outputfile in
10932             *.exe|*.EXE) ;;
10933             *)
10934               lt_outputfile=$lt_outputfile.exe
10935               lt_tool_outputfile=$lt_tool_outputfile.exe
10936               ;;
10937           esac~
10938           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10939             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10940             $RM "$lt_outputfile.manifest";
10941           fi'
10942         ;;
10943       *)
10944         # Assume MSVC wrapper
10945         hardcode_libdir_flag_spec=' '
10946         allow_undefined_flag=unsupported
10947         # Tell ltmain to make .lib files, not .a files.
10948         libext=lib
10949         # Tell ltmain to make .dll files, not .so files.
10950         shrext_cmds=.dll
10951         # FIXME: Setting linknames here is a bad hack.
10952         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10953         # The linker will automatically build a .lib file if we build a DLL.
10954         old_archive_from_new_cmds='true'
10955         # FIXME: Should let the user specify the lib program.
10956         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10957         enable_shared_with_static_runtimes=yes
10958         ;;
10959       esac
10960       ;;
10961
10962     darwin* | rhapsody*)
10963
10964
10965   archive_cmds_need_lc=no
10966   hardcode_direct=no
10967   hardcode_automatic=yes
10968   hardcode_shlibpath_var=unsupported
10969   if test yes = "$lt_cv_ld_force_load"; then
10970     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\"`'
10971
10972   else
10973     whole_archive_flag_spec=''
10974   fi
10975   link_all_deplibs=yes
10976   allow_undefined_flag=$_lt_dar_allow_undefined
10977   case $cc_basename in
10978      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10979      *) _lt_dar_can_shared=$GCC ;;
10980   esac
10981   if test yes = "$_lt_dar_can_shared"; then
10982     output_verbose_link_cmd=func_echo_all
10983     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10984     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10985     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"
10986     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"
10987
10988   else
10989   ld_shlibs=no
10990   fi
10991
10992       ;;
10993
10994     dgux*)
10995       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10996       hardcode_libdir_flag_spec='-L$libdir'
10997       hardcode_shlibpath_var=no
10998       ;;
10999
11000     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11001     # support.  Future versions do this automatically, but an explicit c++rt0.o
11002     # does not break anything, and helps significantly (at the cost of a little
11003     # extra space).
11004     freebsd2.2*)
11005       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11006       hardcode_libdir_flag_spec='-R$libdir'
11007       hardcode_direct=yes
11008       hardcode_shlibpath_var=no
11009       ;;
11010
11011     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11012     freebsd2.*)
11013       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11014       hardcode_direct=yes
11015       hardcode_minus_L=yes
11016       hardcode_shlibpath_var=no
11017       ;;
11018
11019     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11020     freebsd* | dragonfly*)
11021       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11022       hardcode_libdir_flag_spec='-R$libdir'
11023       hardcode_direct=yes
11024       hardcode_shlibpath_var=no
11025       ;;
11026
11027     hpux9*)
11028       if test yes = "$GCC"; then
11029         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11030       else
11031         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11032       fi
11033       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11034       hardcode_libdir_separator=:
11035       hardcode_direct=yes
11036
11037       # hardcode_minus_L: Not really in the search PATH,
11038       # but as the default location of the library.
11039       hardcode_minus_L=yes
11040       export_dynamic_flag_spec='$wl-E'
11041       ;;
11042
11043     hpux10*)
11044       if test yes,no = "$GCC,$with_gnu_ld"; then
11045         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11046       else
11047         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11048       fi
11049       if test no = "$with_gnu_ld"; then
11050         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11051         hardcode_libdir_separator=:
11052         hardcode_direct=yes
11053         hardcode_direct_absolute=yes
11054         export_dynamic_flag_spec='$wl-E'
11055         # hardcode_minus_L: Not really in the search PATH,
11056         # but as the default location of the library.
11057         hardcode_minus_L=yes
11058       fi
11059       ;;
11060
11061     hpux11*)
11062       if test yes,no = "$GCC,$with_gnu_ld"; then
11063         case $host_cpu in
11064         hppa*64*)
11065           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11066           ;;
11067         ia64*)
11068           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11069           ;;
11070         *)
11071           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11072           ;;
11073         esac
11074       else
11075         case $host_cpu in
11076         hppa*64*)
11077           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11078           ;;
11079         ia64*)
11080           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11081           ;;
11082         *)
11083
11084           # Older versions of the 11.00 compiler do not understand -b yet
11085           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11086           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11087 $as_echo_n "checking if $CC understands -b... " >&6; }
11088 if ${lt_cv_prog_compiler__b+:} false; then :
11089   $as_echo_n "(cached) " >&6
11090 else
11091   lt_cv_prog_compiler__b=no
11092    save_LDFLAGS=$LDFLAGS
11093    LDFLAGS="$LDFLAGS -b"
11094    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11095    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11096      # The linker can only warn and ignore the option if not recognized
11097      # So say no if there are warnings
11098      if test -s conftest.err; then
11099        # Append any errors to the config.log.
11100        cat conftest.err 1>&5
11101        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11102        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11103        if diff conftest.exp conftest.er2 >/dev/null; then
11104          lt_cv_prog_compiler__b=yes
11105        fi
11106      else
11107        lt_cv_prog_compiler__b=yes
11108      fi
11109    fi
11110    $RM -r conftest*
11111    LDFLAGS=$save_LDFLAGS
11112
11113 fi
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11115 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11116
11117 if test yes = "$lt_cv_prog_compiler__b"; then
11118     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11119 else
11120     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11121 fi
11122
11123           ;;
11124         esac
11125       fi
11126       if test no = "$with_gnu_ld"; then
11127         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11128         hardcode_libdir_separator=:
11129
11130         case $host_cpu in
11131         hppa*64*|ia64*)
11132           hardcode_direct=no
11133           hardcode_shlibpath_var=no
11134           ;;
11135         *)
11136           hardcode_direct=yes
11137           hardcode_direct_absolute=yes
11138           export_dynamic_flag_spec='$wl-E'
11139
11140           # hardcode_minus_L: Not really in the search PATH,
11141           # but as the default location of the library.
11142           hardcode_minus_L=yes
11143           ;;
11144         esac
11145       fi
11146       ;;
11147
11148     irix5* | irix6* | nonstopux*)
11149       if test yes = "$GCC"; then
11150         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'
11151         # Try to use the -exported_symbol ld option, if it does not
11152         # work, assume that -exports_file does not work either and
11153         # implicitly export all symbols.
11154         # This should be the same for all languages, so no per-tag cache variable.
11155         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11156 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11157 if ${lt_cv_irix_exported_symbol+:} false; then :
11158   $as_echo_n "(cached) " >&6
11159 else
11160   save_LDFLAGS=$LDFLAGS
11161            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11162            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11163 /* end confdefs.h.  */
11164 int foo (void) { return 0; }
11165 _ACEOF
11166 if ac_fn_c_try_link "$LINENO"; then :
11167   lt_cv_irix_exported_symbol=yes
11168 else
11169   lt_cv_irix_exported_symbol=no
11170 fi
11171 rm -f core conftest.err conftest.$ac_objext \
11172     conftest$ac_exeext conftest.$ac_ext
11173            LDFLAGS=$save_LDFLAGS
11174 fi
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11176 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11177         if test yes = "$lt_cv_irix_exported_symbol"; then
11178           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'
11179         fi
11180         link_all_deplibs=no
11181       else
11182         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'
11183         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'
11184       fi
11185       archive_cmds_need_lc='no'
11186       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11187       hardcode_libdir_separator=:
11188       inherit_rpath=yes
11189       link_all_deplibs=yes
11190       ;;
11191
11192     linux*)
11193       case $cc_basename in
11194       tcc*)
11195         # Fabrice Bellard et al's Tiny C Compiler
11196         ld_shlibs=yes
11197         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11198         ;;
11199       esac
11200       ;;
11201
11202     netbsd* | netbsdelf*-gnu)
11203       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11204         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11205       else
11206         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11207       fi
11208       hardcode_libdir_flag_spec='-R$libdir'
11209       hardcode_direct=yes
11210       hardcode_shlibpath_var=no
11211       ;;
11212
11213     newsos6)
11214       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11215       hardcode_direct=yes
11216       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11217       hardcode_libdir_separator=:
11218       hardcode_shlibpath_var=no
11219       ;;
11220
11221     *nto* | *qnx*)
11222       ;;
11223
11224     openbsd* | bitrig*)
11225       if test -f /usr/libexec/ld.so; then
11226         hardcode_direct=yes
11227         hardcode_shlibpath_var=no
11228         hardcode_direct_absolute=yes
11229         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11230           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11231           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11232           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11233           export_dynamic_flag_spec='$wl-E'
11234         else
11235           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11236           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11237         fi
11238       else
11239         ld_shlibs=no
11240       fi
11241       ;;
11242
11243     os2*)
11244       hardcode_libdir_flag_spec='-L$libdir'
11245       hardcode_minus_L=yes
11246       allow_undefined_flag=unsupported
11247       shrext_cmds=.dll
11248       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11249         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11250         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11251         $ECHO EXPORTS >> $output_objdir/$libname.def~
11252         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11253         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11254         emximp -o $lib $output_objdir/$libname.def'
11255       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11256         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11257         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11258         $ECHO EXPORTS >> $output_objdir/$libname.def~
11259         prefix_cmds="$SED"~
11260         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11261           prefix_cmds="$prefix_cmds -e 1d";
11262         fi~
11263         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11264         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11265         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11266         emximp -o $lib $output_objdir/$libname.def'
11267       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11268       enable_shared_with_static_runtimes=yes
11269       ;;
11270
11271     osf3*)
11272       if test yes = "$GCC"; then
11273         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11274         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'
11275       else
11276         allow_undefined_flag=' -expect_unresolved \*'
11277         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'
11278       fi
11279       archive_cmds_need_lc='no'
11280       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11281       hardcode_libdir_separator=:
11282       ;;
11283
11284     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11285       if test yes = "$GCC"; then
11286         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11287         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'
11288         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11289       else
11290         allow_undefined_flag=' -expect_unresolved \*'
11291         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'
11292         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~
11293           $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'
11294
11295         # Both c and cxx compiler support -rpath directly
11296         hardcode_libdir_flag_spec='-rpath $libdir'
11297       fi
11298       archive_cmds_need_lc='no'
11299       hardcode_libdir_separator=:
11300       ;;
11301
11302     solaris*)
11303       no_undefined_flag=' -z defs'
11304       if test yes = "$GCC"; then
11305         wlarc='$wl'
11306         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11307         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11308           $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'
11309       else
11310         case `$CC -V 2>&1` in
11311         *"Compilers 5.0"*)
11312           wlarc=''
11313           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11314           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11315             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11316           ;;
11317         *)
11318           wlarc='$wl'
11319           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11320           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11321             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11322           ;;
11323         esac
11324       fi
11325       hardcode_libdir_flag_spec='-R$libdir'
11326       hardcode_shlibpath_var=no
11327       case $host_os in
11328       solaris2.[0-5] | solaris2.[0-5].*) ;;
11329       *)
11330         # The compiler driver will combine and reorder linker options,
11331         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11332         # but is careful enough not to reorder.
11333         # Supported since Solaris 2.6 (maybe 2.5.1?)
11334         if test yes = "$GCC"; then
11335           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11336         else
11337           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11338         fi
11339         ;;
11340       esac
11341       link_all_deplibs=yes
11342       ;;
11343
11344     sunos4*)
11345       if test sequent = "$host_vendor"; then
11346         # Use $CC to link under sequent, because it throws in some extra .o
11347         # files that make .init and .fini sections work.
11348         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11349       else
11350         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11351       fi
11352       hardcode_libdir_flag_spec='-L$libdir'
11353       hardcode_direct=yes
11354       hardcode_minus_L=yes
11355       hardcode_shlibpath_var=no
11356       ;;
11357
11358     sysv4)
11359       case $host_vendor in
11360         sni)
11361           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11362           hardcode_direct=yes # is this really true???
11363         ;;
11364         siemens)
11365           ## LD is ld it makes a PLAMLIB
11366           ## CC just makes a GrossModule.
11367           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11368           reload_cmds='$CC -r -o $output$reload_objs'
11369           hardcode_direct=no
11370         ;;
11371         motorola)
11372           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11373           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11374         ;;
11375       esac
11376       runpath_var='LD_RUN_PATH'
11377       hardcode_shlibpath_var=no
11378       ;;
11379
11380     sysv4.3*)
11381       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11382       hardcode_shlibpath_var=no
11383       export_dynamic_flag_spec='-Bexport'
11384       ;;
11385
11386     sysv4*MP*)
11387       if test -d /usr/nec; then
11388         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11389         hardcode_shlibpath_var=no
11390         runpath_var=LD_RUN_PATH
11391         hardcode_runpath_var=yes
11392         ld_shlibs=yes
11393       fi
11394       ;;
11395
11396     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11397       no_undefined_flag='$wl-z,text'
11398       archive_cmds_need_lc=no
11399       hardcode_shlibpath_var=no
11400       runpath_var='LD_RUN_PATH'
11401
11402       if test yes = "$GCC"; then
11403         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11404         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11405       else
11406         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11407         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11408       fi
11409       ;;
11410
11411     sysv5* | sco3.2v5* | sco5v6*)
11412       # Note: We CANNOT use -z defs as we might desire, because we do not
11413       # link with -lc, and that would cause any symbols used from libc to
11414       # always be unresolved, which means just about no library would
11415       # ever link correctly.  If we're not using GNU ld we use -z text
11416       # though, which does catch some bad symbols but isn't as heavy-handed
11417       # as -z defs.
11418       no_undefined_flag='$wl-z,text'
11419       allow_undefined_flag='$wl-z,nodefs'
11420       archive_cmds_need_lc=no
11421       hardcode_shlibpath_var=no
11422       hardcode_libdir_flag_spec='$wl-R,$libdir'
11423       hardcode_libdir_separator=':'
11424       link_all_deplibs=yes
11425       export_dynamic_flag_spec='$wl-Bexport'
11426       runpath_var='LD_RUN_PATH'
11427
11428       if test yes = "$GCC"; then
11429         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11430         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11431       else
11432         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11433         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11434       fi
11435       ;;
11436
11437     uts4*)
11438       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11439       hardcode_libdir_flag_spec='-L$libdir'
11440       hardcode_shlibpath_var=no
11441       ;;
11442
11443     *)
11444       ld_shlibs=no
11445       ;;
11446     esac
11447
11448     if test sni = "$host_vendor"; then
11449       case $host in
11450       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11451         export_dynamic_flag_spec='$wl-Blargedynsym'
11452         ;;
11453       esac
11454     fi
11455   fi
11456
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11458 $as_echo "$ld_shlibs" >&6; }
11459 test no = "$ld_shlibs" && can_build_shared=no
11460
11461 with_gnu_ld=$with_gnu_ld
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477 #
11478 # Do we need to explicitly link libc?
11479 #
11480 case "x$archive_cmds_need_lc" in
11481 x|xyes)
11482   # Assume -lc should be added
11483   archive_cmds_need_lc=yes
11484
11485   if test yes,yes = "$GCC,$enable_shared"; then
11486     case $archive_cmds in
11487     *'~'*)
11488       # FIXME: we may have to deal with multi-command sequences.
11489       ;;
11490     '$CC '*)
11491       # Test whether the compiler implicitly links with -lc since on some
11492       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11493       # to ld, don't add -lc before -lgcc.
11494       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11495 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11496 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11497   $as_echo_n "(cached) " >&6
11498 else
11499   $RM conftest*
11500         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11501
11502         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11503   (eval $ac_compile) 2>&5
11504   ac_status=$?
11505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11506   test $ac_status = 0; } 2>conftest.err; then
11507           soname=conftest
11508           lib=conftest
11509           libobjs=conftest.$ac_objext
11510           deplibs=
11511           wl=$lt_prog_compiler_wl
11512           pic_flag=$lt_prog_compiler_pic
11513           compiler_flags=-v
11514           linker_flags=-v
11515           verstring=
11516           output_objdir=.
11517           libname=conftest
11518           lt_save_allow_undefined_flag=$allow_undefined_flag
11519           allow_undefined_flag=
11520           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11521   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11522   ac_status=$?
11523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11524   test $ac_status = 0; }
11525           then
11526             lt_cv_archive_cmds_need_lc=no
11527           else
11528             lt_cv_archive_cmds_need_lc=yes
11529           fi
11530           allow_undefined_flag=$lt_save_allow_undefined_flag
11531         else
11532           cat conftest.err 1>&5
11533         fi
11534         $RM conftest*
11535
11536 fi
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11538 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11539       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11540       ;;
11541     esac
11542   fi
11543   ;;
11544 esac
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
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11698 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11699
11700 if test yes = "$GCC"; then
11701   case $host_os in
11702     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11703     *) lt_awk_arg='/^libraries:/' ;;
11704   esac
11705   case $host_os in
11706     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11707     *) lt_sed_strip_eq='s|=/|/|g' ;;
11708   esac
11709   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11710   case $lt_search_path_spec in
11711   *\;*)
11712     # if the path contains ";" then we assume it to be the separator
11713     # otherwise default to the standard path separator (i.e. ":") - it is
11714     # assumed that no part of a normal pathname contains ";" but that should
11715     # okay in the real world where ";" in dirpaths is itself problematic.
11716     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11717     ;;
11718   *)
11719     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11720     ;;
11721   esac
11722   # Ok, now we have the path, separated by spaces, we can step through it
11723   # and add multilib dir if necessary...
11724   lt_tmp_lt_search_path_spec=
11725   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11726   # ...but if some path component already ends with the multilib dir we assume
11727   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11728   case "$lt_multi_os_dir; $lt_search_path_spec " in
11729   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11730     lt_multi_os_dir=
11731     ;;
11732   esac
11733   for lt_sys_path in $lt_search_path_spec; do
11734     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11735       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11736     elif test -n "$lt_multi_os_dir"; then
11737       test -d "$lt_sys_path" && \
11738         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11739     fi
11740   done
11741   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11742 BEGIN {RS = " "; FS = "/|\n";} {
11743   lt_foo = "";
11744   lt_count = 0;
11745   for (lt_i = NF; lt_i > 0; lt_i--) {
11746     if ($lt_i != "" && $lt_i != ".") {
11747       if ($lt_i == "..") {
11748         lt_count++;
11749       } else {
11750         if (lt_count == 0) {
11751           lt_foo = "/" $lt_i lt_foo;
11752         } else {
11753           lt_count--;
11754         }
11755       }
11756     }
11757   }
11758   if (lt_foo != "") { lt_freq[lt_foo]++; }
11759   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11760 }'`
11761   # AWK program above erroneously prepends '/' to C:/dos/paths
11762   # for these hosts.
11763   case $host_os in
11764     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11765       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11766   esac
11767   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11768 else
11769   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11770 fi
11771 library_names_spec=
11772 libname_spec='lib$name'
11773 soname_spec=
11774 shrext_cmds=.so
11775 postinstall_cmds=
11776 postuninstall_cmds=
11777 finish_cmds=
11778 finish_eval=
11779 shlibpath_var=
11780 shlibpath_overrides_runpath=unknown
11781 version_type=none
11782 dynamic_linker="$host_os ld.so"
11783 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11784 need_lib_prefix=unknown
11785 hardcode_into_libs=no
11786
11787 # when you set need_version to no, make sure it does not cause -set_version
11788 # flags to be left without arguments
11789 need_version=unknown
11790
11791
11792
11793 case $host_os in
11794 aix3*)
11795   version_type=linux # correct to gnu/linux during the next big refactor
11796   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11797   shlibpath_var=LIBPATH
11798
11799   # AIX 3 has no versioning support, so we append a major version to the name.
11800   soname_spec='$libname$release$shared_ext$major'
11801   ;;
11802
11803 aix[4-9]*)
11804   version_type=linux # correct to gnu/linux during the next big refactor
11805   need_lib_prefix=no
11806   need_version=no
11807   hardcode_into_libs=yes
11808   if test ia64 = "$host_cpu"; then
11809     # AIX 5 supports IA64
11810     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11811     shlibpath_var=LD_LIBRARY_PATH
11812   else
11813     # With GCC up to 2.95.x, collect2 would create an import file
11814     # for dependence libraries.  The import file would start with
11815     # the line '#! .'.  This would cause the generated library to
11816     # depend on '.', always an invalid library.  This was fixed in
11817     # development snapshots of GCC prior to 3.0.
11818     case $host_os in
11819       aix4 | aix4.[01] | aix4.[01].*)
11820       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11821            echo ' yes '
11822            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11823         :
11824       else
11825         can_build_shared=no
11826       fi
11827       ;;
11828     esac
11829     # Using Import Files as archive members, it is possible to support
11830     # filename-based versioning of shared library archives on AIX. While
11831     # this would work for both with and without runtime linking, it will
11832     # prevent static linking of such archives. So we do filename-based
11833     # shared library versioning with .so extension only, which is used
11834     # when both runtime linking and shared linking is enabled.
11835     # Unfortunately, runtime linking may impact performance, so we do
11836     # not want this to be the default eventually. Also, we use the
11837     # versioned .so libs for executables only if there is the -brtl
11838     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11839     # To allow for filename-based versioning support, we need to create
11840     # libNAME.so.V as an archive file, containing:
11841     # *) an Import File, referring to the versioned filename of the
11842     #    archive as well as the shared archive member, telling the
11843     #    bitwidth (32 or 64) of that shared object, and providing the
11844     #    list of exported symbols of that shared object, eventually
11845     #    decorated with the 'weak' keyword
11846     # *) the shared object with the F_LOADONLY flag set, to really avoid
11847     #    it being seen by the linker.
11848     # At run time we better use the real file rather than another symlink,
11849     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11850
11851     case $with_aix_soname,$aix_use_runtimelinking in
11852     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11853     # soname into executable. Probably we can add versioning support to
11854     # collect2, so additional links can be useful in future.
11855     aix,yes) # traditional libtool
11856       dynamic_linker='AIX unversionable lib.so'
11857       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11858       # instead of lib<name>.a to let people know that these are not
11859       # typical AIX shared libraries.
11860       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11861       ;;
11862     aix,no) # traditional AIX only
11863       dynamic_linker='AIX lib.a(lib.so.V)'
11864       # We preserve .a as extension for shared libraries through AIX4.2
11865       # and later when we are not doing run time linking.
11866       library_names_spec='$libname$release.a $libname.a'
11867       soname_spec='$libname$release$shared_ext$major'
11868       ;;
11869     svr4,*) # full svr4 only
11870       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11871       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11872       # We do not specify a path in Import Files, so LIBPATH fires.
11873       shlibpath_overrides_runpath=yes
11874       ;;
11875     *,yes) # both, prefer svr4
11876       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11877       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11878       # unpreferred sharedlib libNAME.a needs extra handling
11879       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11880       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11881       # We do not specify a path in Import Files, so LIBPATH fires.
11882       shlibpath_overrides_runpath=yes
11883       ;;
11884     *,no) # both, prefer aix
11885       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11886       library_names_spec='$libname$release.a $libname.a'
11887       soname_spec='$libname$release$shared_ext$major'
11888       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11889       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11890       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11891       ;;
11892     esac
11893     shlibpath_var=LIBPATH
11894   fi
11895   ;;
11896
11897 amigaos*)
11898   case $host_cpu in
11899   powerpc)
11900     # Since July 2007 AmigaOS4 officially supports .so libraries.
11901     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11902     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11903     ;;
11904   m68k)
11905     library_names_spec='$libname.ixlibrary $libname.a'
11906     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11907     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11908     ;;
11909   esac
11910   ;;
11911
11912 beos*)
11913   library_names_spec='$libname$shared_ext'
11914   dynamic_linker="$host_os ld.so"
11915   shlibpath_var=LIBRARY_PATH
11916   ;;
11917
11918 bsdi[45]*)
11919   version_type=linux # correct to gnu/linux during the next big refactor
11920   need_version=no
11921   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11922   soname_spec='$libname$release$shared_ext$major'
11923   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11924   shlibpath_var=LD_LIBRARY_PATH
11925   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11926   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11927   # the default ld.so.conf also contains /usr/contrib/lib and
11928   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11929   # libtool to hard-code these into programs
11930   ;;
11931
11932 cygwin* | mingw* | pw32* | cegcc*)
11933   version_type=windows
11934   shrext_cmds=.dll
11935   need_version=no
11936   need_lib_prefix=no
11937
11938   case $GCC,$cc_basename in
11939   yes,*)
11940     # gcc
11941     library_names_spec='$libname.dll.a'
11942     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11943     postinstall_cmds='base_file=`basename \$file`~
11944       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11945       dldir=$destdir/`dirname \$dlpath`~
11946       test -d \$dldir || mkdir -p \$dldir~
11947       $install_prog $dir/$dlname \$dldir/$dlname~
11948       chmod a+x \$dldir/$dlname~
11949       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11950         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11951       fi'
11952     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11953       dlpath=$dir/\$dldll~
11954        $RM \$dlpath'
11955     shlibpath_overrides_runpath=yes
11956
11957     case $host_os in
11958     cygwin*)
11959       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11960       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11961
11962       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11963       ;;
11964     mingw* | cegcc*)
11965       # MinGW DLLs use traditional 'lib' prefix
11966       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11967       ;;
11968     pw32*)
11969       # pw32 DLLs use 'pw' prefix rather than 'lib'
11970       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11971       ;;
11972     esac
11973     dynamic_linker='Win32 ld.exe'
11974     ;;
11975
11976   *,cl*)
11977     # Native MSVC
11978     libname_spec='$name'
11979     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11980     library_names_spec='$libname.dll.lib'
11981
11982     case $build_os in
11983     mingw*)
11984       sys_lib_search_path_spec=
11985       lt_save_ifs=$IFS
11986       IFS=';'
11987       for lt_path in $LIB
11988       do
11989         IFS=$lt_save_ifs
11990         # Let DOS variable expansion print the short 8.3 style file name.
11991         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11992         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11993       done
11994       IFS=$lt_save_ifs
11995       # Convert to MSYS style.
11996       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11997       ;;
11998     cygwin*)
11999       # Convert to unix form, then to dos form, then back to unix form
12000       # but this time dos style (no spaces!) so that the unix form looks
12001       # like /cygdrive/c/PROGRA~1:/cygdr...
12002       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12003       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12004       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12005       ;;
12006     *)
12007       sys_lib_search_path_spec=$LIB
12008       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12009         # It is most probably a Windows format PATH.
12010         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12011       else
12012         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12013       fi
12014       # FIXME: find the short name or the path components, as spaces are
12015       # common. (e.g. "Program Files" -> "PROGRA~1")
12016       ;;
12017     esac
12018
12019     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12020     postinstall_cmds='base_file=`basename \$file`~
12021       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12022       dldir=$destdir/`dirname \$dlpath`~
12023       test -d \$dldir || mkdir -p \$dldir~
12024       $install_prog $dir/$dlname \$dldir/$dlname'
12025     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12026       dlpath=$dir/\$dldll~
12027        $RM \$dlpath'
12028     shlibpath_overrides_runpath=yes
12029     dynamic_linker='Win32 link.exe'
12030     ;;
12031
12032   *)
12033     # Assume MSVC wrapper
12034     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12035     dynamic_linker='Win32 ld.exe'
12036     ;;
12037   esac
12038   # FIXME: first we should search . and the directory the executable is in
12039   shlibpath_var=PATH
12040   ;;
12041
12042 darwin* | rhapsody*)
12043   dynamic_linker="$host_os dyld"
12044   version_type=darwin
12045   need_lib_prefix=no
12046   need_version=no
12047   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12048   soname_spec='$libname$release$major$shared_ext'
12049   shlibpath_overrides_runpath=yes
12050   shlibpath_var=DYLD_LIBRARY_PATH
12051   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12052
12053   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12054   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12055   ;;
12056
12057 dgux*)
12058   version_type=linux # correct to gnu/linux during the next big refactor
12059   need_lib_prefix=no
12060   need_version=no
12061   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12062   soname_spec='$libname$release$shared_ext$major'
12063   shlibpath_var=LD_LIBRARY_PATH
12064   ;;
12065
12066 freebsd* | dragonfly*)
12067   # DragonFly does not have aout.  When/if they implement a new
12068   # versioning mechanism, adjust this.
12069   if test -x /usr/bin/objformat; then
12070     objformat=`/usr/bin/objformat`
12071   else
12072     case $host_os in
12073     freebsd[23].*) objformat=aout ;;
12074     *) objformat=elf ;;
12075     esac
12076   fi
12077   version_type=freebsd-$objformat
12078   case $version_type in
12079     freebsd-elf*)
12080       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12081       soname_spec='$libname$release$shared_ext$major'
12082       need_version=no
12083       need_lib_prefix=no
12084       ;;
12085     freebsd-*)
12086       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12087       need_version=yes
12088       ;;
12089   esac
12090   shlibpath_var=LD_LIBRARY_PATH
12091   case $host_os in
12092   freebsd2.*)
12093     shlibpath_overrides_runpath=yes
12094     ;;
12095   freebsd3.[01]* | freebsdelf3.[01]*)
12096     shlibpath_overrides_runpath=yes
12097     hardcode_into_libs=yes
12098     ;;
12099   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12100   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12101     shlibpath_overrides_runpath=no
12102     hardcode_into_libs=yes
12103     ;;
12104   *) # from 4.6 on, and DragonFly
12105     shlibpath_overrides_runpath=yes
12106     hardcode_into_libs=yes
12107     ;;
12108   esac
12109   ;;
12110
12111 haiku*)
12112   version_type=linux # correct to gnu/linux during the next big refactor
12113   need_lib_prefix=no
12114   need_version=no
12115   dynamic_linker="$host_os runtime_loader"
12116   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12117   soname_spec='$libname$release$shared_ext$major'
12118   shlibpath_var=LIBRARY_PATH
12119   shlibpath_overrides_runpath=no
12120   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12121   hardcode_into_libs=yes
12122   ;;
12123
12124 hpux9* | hpux10* | hpux11*)
12125   # Give a soname corresponding to the major version so that dld.sl refuses to
12126   # link against other versions.
12127   version_type=sunos
12128   need_lib_prefix=no
12129   need_version=no
12130   case $host_cpu in
12131   ia64*)
12132     shrext_cmds='.so'
12133     hardcode_into_libs=yes
12134     dynamic_linker="$host_os dld.so"
12135     shlibpath_var=LD_LIBRARY_PATH
12136     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12137     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12138     soname_spec='$libname$release$shared_ext$major'
12139     if test 32 = "$HPUX_IA64_MODE"; then
12140       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12141       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12142     else
12143       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12144       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12145     fi
12146     ;;
12147   hppa*64*)
12148     shrext_cmds='.sl'
12149     hardcode_into_libs=yes
12150     dynamic_linker="$host_os dld.sl"
12151     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12152     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12153     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12154     soname_spec='$libname$release$shared_ext$major'
12155     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12156     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12157     ;;
12158   *)
12159     shrext_cmds='.sl'
12160     dynamic_linker="$host_os dld.sl"
12161     shlibpath_var=SHLIB_PATH
12162     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12163     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12164     soname_spec='$libname$release$shared_ext$major'
12165     ;;
12166   esac
12167   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12168   postinstall_cmds='chmod 555 $lib'
12169   # or fails outright, so override atomically:
12170   install_override_mode=555
12171   ;;
12172
12173 interix[3-9]*)
12174   version_type=linux # correct to gnu/linux during the next big refactor
12175   need_lib_prefix=no
12176   need_version=no
12177   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12178   soname_spec='$libname$release$shared_ext$major'
12179   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12180   shlibpath_var=LD_LIBRARY_PATH
12181   shlibpath_overrides_runpath=no
12182   hardcode_into_libs=yes
12183   ;;
12184
12185 irix5* | irix6* | nonstopux*)
12186   case $host_os in
12187     nonstopux*) version_type=nonstopux ;;
12188     *)
12189         if test yes = "$lt_cv_prog_gnu_ld"; then
12190                 version_type=linux # correct to gnu/linux during the next big refactor
12191         else
12192                 version_type=irix
12193         fi ;;
12194   esac
12195   need_lib_prefix=no
12196   need_version=no
12197   soname_spec='$libname$release$shared_ext$major'
12198   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12199   case $host_os in
12200   irix5* | nonstopux*)
12201     libsuff= shlibsuff=
12202     ;;
12203   *)
12204     case $LD in # libtool.m4 will add one of these switches to LD
12205     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12206       libsuff= shlibsuff= libmagic=32-bit;;
12207     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12208       libsuff=32 shlibsuff=N32 libmagic=N32;;
12209     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12210       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12211     *) libsuff= shlibsuff= libmagic=never-match;;
12212     esac
12213     ;;
12214   esac
12215   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12216   shlibpath_overrides_runpath=no
12217   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12218   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12219   hardcode_into_libs=yes
12220   ;;
12221
12222 # No shared lib support for Linux oldld, aout, or coff.
12223 linux*oldld* | linux*aout* | linux*coff*)
12224   dynamic_linker=no
12225   ;;
12226
12227 linux*android*)
12228   version_type=none # Android doesn't support versioned libraries.
12229   need_lib_prefix=no
12230   need_version=no
12231   library_names_spec='$libname$release$shared_ext'
12232   soname_spec='$libname$release$shared_ext'
12233   finish_cmds=
12234   shlibpath_var=LD_LIBRARY_PATH
12235   shlibpath_overrides_runpath=yes
12236
12237   # This implies no fast_install, which is unacceptable.
12238   # Some rework will be needed to allow for fast_install
12239   # before this can be enabled.
12240   hardcode_into_libs=yes
12241
12242   dynamic_linker='Android linker'
12243   # Don't embed -rpath directories since the linker doesn't support them.
12244   hardcode_libdir_flag_spec='-L$libdir'
12245   ;;
12246
12247 # This must be glibc/ELF.
12248 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12249   version_type=linux # correct to gnu/linux during the next big refactor
12250   need_lib_prefix=no
12251   need_version=no
12252   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12253   soname_spec='$libname$release$shared_ext$major'
12254   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12255   shlibpath_var=LD_LIBRARY_PATH
12256   shlibpath_overrides_runpath=no
12257
12258   # Some binutils ld are patched to set DT_RUNPATH
12259   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12260   $as_echo_n "(cached) " >&6
12261 else
12262   lt_cv_shlibpath_overrides_runpath=no
12263     save_LDFLAGS=$LDFLAGS
12264     save_libdir=$libdir
12265     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12266          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12267     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h.  */
12269
12270 int
12271 main ()
12272 {
12273
12274   ;
12275   return 0;
12276 }
12277 _ACEOF
12278 if ac_fn_c_try_link "$LINENO"; then :
12279   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12280   lt_cv_shlibpath_overrides_runpath=yes
12281 fi
12282 fi
12283 rm -f core conftest.err conftest.$ac_objext \
12284     conftest$ac_exeext conftest.$ac_ext
12285     LDFLAGS=$save_LDFLAGS
12286     libdir=$save_libdir
12287
12288 fi
12289
12290   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12291
12292   # This implies no fast_install, which is unacceptable.
12293   # Some rework will be needed to allow for fast_install
12294   # before this can be enabled.
12295   hardcode_into_libs=yes
12296
12297   # Ideally, we could use ldconfig to report *all* directores which are
12298   # searched for libraries, however this is still not possible.  Aside from not
12299   # being certain /sbin/ldconfig is available, command
12300   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12301   # even though it is searched at run-time.  Try to do the best guess by
12302   # appending ld.so.conf contents (and includes) to the search path.
12303   if test -f /etc/ld.so.conf; then
12304     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' ' '`
12305     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12306   fi
12307
12308   # We used to test for /lib/ld.so.1 and disable shared libraries on
12309   # powerpc, because MkLinux only supported shared libraries with the
12310   # GNU dynamic linker.  Since this was broken with cross compilers,
12311   # most powerpc-linux boxes support dynamic linking these days and
12312   # people can always --disable-shared, the test was removed, and we
12313   # assume the GNU/Linux dynamic linker is in use.
12314   dynamic_linker='GNU/Linux ld.so'
12315   ;;
12316
12317 netbsdelf*-gnu)
12318   version_type=linux
12319   need_lib_prefix=no
12320   need_version=no
12321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12322   soname_spec='${libname}${release}${shared_ext}$major'
12323   shlibpath_var=LD_LIBRARY_PATH
12324   shlibpath_overrides_runpath=no
12325   hardcode_into_libs=yes
12326   dynamic_linker='NetBSD ld.elf_so'
12327   ;;
12328
12329 netbsd*)
12330   version_type=sunos
12331   need_lib_prefix=no
12332   need_version=no
12333   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12334     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12335     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12336     dynamic_linker='NetBSD (a.out) ld.so'
12337   else
12338     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12339     soname_spec='$libname$release$shared_ext$major'
12340     dynamic_linker='NetBSD ld.elf_so'
12341   fi
12342   shlibpath_var=LD_LIBRARY_PATH
12343   shlibpath_overrides_runpath=yes
12344   hardcode_into_libs=yes
12345   ;;
12346
12347 newsos6)
12348   version_type=linux # correct to gnu/linux during the next big refactor
12349   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12350   shlibpath_var=LD_LIBRARY_PATH
12351   shlibpath_overrides_runpath=yes
12352   ;;
12353
12354 *nto* | *qnx*)
12355   version_type=qnx
12356   need_lib_prefix=no
12357   need_version=no
12358   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12359   soname_spec='$libname$release$shared_ext$major'
12360   shlibpath_var=LD_LIBRARY_PATH
12361   shlibpath_overrides_runpath=no
12362   hardcode_into_libs=yes
12363   dynamic_linker='ldqnx.so'
12364   ;;
12365
12366 openbsd* | bitrig*)
12367   version_type=sunos
12368   sys_lib_dlsearch_path_spec=/usr/lib
12369   need_lib_prefix=no
12370   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12371     need_version=no
12372   else
12373     need_version=yes
12374   fi
12375   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12376   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12377   shlibpath_var=LD_LIBRARY_PATH
12378   shlibpath_overrides_runpath=yes
12379   ;;
12380
12381 os2*)
12382   libname_spec='$name'
12383   version_type=windows
12384   shrext_cmds=.dll
12385   need_version=no
12386   need_lib_prefix=no
12387   # OS/2 can only load a DLL with a base name of 8 characters or less.
12388   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12389     v=$($ECHO $release$versuffix | tr -d .-);
12390     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12391     $ECHO $n$v`$shared_ext'
12392   library_names_spec='${libname}_dll.$libext'
12393   dynamic_linker='OS/2 ld.exe'
12394   shlibpath_var=BEGINLIBPATH
12395   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12396   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12397   postinstall_cmds='base_file=`basename \$file`~
12398     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12399     dldir=$destdir/`dirname \$dlpath`~
12400     test -d \$dldir || mkdir -p \$dldir~
12401     $install_prog $dir/$dlname \$dldir/$dlname~
12402     chmod a+x \$dldir/$dlname~
12403     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12404       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12405     fi'
12406   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12407     dlpath=$dir/\$dldll~
12408     $RM \$dlpath'
12409   ;;
12410
12411 osf3* | osf4* | osf5*)
12412   version_type=osf
12413   need_lib_prefix=no
12414   need_version=no
12415   soname_spec='$libname$release$shared_ext$major'
12416   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12417   shlibpath_var=LD_LIBRARY_PATH
12418   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12419   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12420   ;;
12421
12422 rdos*)
12423   dynamic_linker=no
12424   ;;
12425
12426 solaris*)
12427   version_type=linux # correct to gnu/linux during the next big refactor
12428   need_lib_prefix=no
12429   need_version=no
12430   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12431   soname_spec='$libname$release$shared_ext$major'
12432   shlibpath_var=LD_LIBRARY_PATH
12433   shlibpath_overrides_runpath=yes
12434   hardcode_into_libs=yes
12435   # ldd complains unless libraries are executable
12436   postinstall_cmds='chmod +x $lib'
12437   ;;
12438
12439 sunos4*)
12440   version_type=sunos
12441   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12442   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12443   shlibpath_var=LD_LIBRARY_PATH
12444   shlibpath_overrides_runpath=yes
12445   if test yes = "$with_gnu_ld"; then
12446     need_lib_prefix=no
12447   fi
12448   need_version=yes
12449   ;;
12450
12451 sysv4 | sysv4.3*)
12452   version_type=linux # correct to gnu/linux during the next big refactor
12453   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12454   soname_spec='$libname$release$shared_ext$major'
12455   shlibpath_var=LD_LIBRARY_PATH
12456   case $host_vendor in
12457     sni)
12458       shlibpath_overrides_runpath=no
12459       need_lib_prefix=no
12460       runpath_var=LD_RUN_PATH
12461       ;;
12462     siemens)
12463       need_lib_prefix=no
12464       ;;
12465     motorola)
12466       need_lib_prefix=no
12467       need_version=no
12468       shlibpath_overrides_runpath=no
12469       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12470       ;;
12471   esac
12472   ;;
12473
12474 sysv4*MP*)
12475   if test -d /usr/nec; then
12476     version_type=linux # correct to gnu/linux during the next big refactor
12477     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12478     soname_spec='$libname$shared_ext.$major'
12479     shlibpath_var=LD_LIBRARY_PATH
12480   fi
12481   ;;
12482
12483 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12484   version_type=sco
12485   need_lib_prefix=no
12486   need_version=no
12487   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12488   soname_spec='$libname$release$shared_ext$major'
12489   shlibpath_var=LD_LIBRARY_PATH
12490   shlibpath_overrides_runpath=yes
12491   hardcode_into_libs=yes
12492   if test yes = "$with_gnu_ld"; then
12493     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12494   else
12495     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12496     case $host_os in
12497       sco3.2v5*)
12498         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12499         ;;
12500     esac
12501   fi
12502   sys_lib_dlsearch_path_spec='/usr/lib'
12503   ;;
12504
12505 tpf*)
12506   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12507   version_type=linux # correct to gnu/linux during the next big refactor
12508   need_lib_prefix=no
12509   need_version=no
12510   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12511   shlibpath_var=LD_LIBRARY_PATH
12512   shlibpath_overrides_runpath=no
12513   hardcode_into_libs=yes
12514   ;;
12515
12516 uts4*)
12517   version_type=linux # correct to gnu/linux during the next big refactor
12518   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12519   soname_spec='$libname$release$shared_ext$major'
12520   shlibpath_var=LD_LIBRARY_PATH
12521   ;;
12522
12523 *)
12524   dynamic_linker=no
12525   ;;
12526 esac
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12528 $as_echo "$dynamic_linker" >&6; }
12529 test no = "$dynamic_linker" && can_build_shared=no
12530
12531 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12532 if test yes = "$GCC"; then
12533   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12534 fi
12535
12536 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12537   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12538 fi
12539
12540 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12541   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12542 fi
12543
12544 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12545 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12546
12547 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12548 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12549
12550 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12551 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12650 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12651 hardcode_action=
12652 if test -n "$hardcode_libdir_flag_spec" ||
12653    test -n "$runpath_var" ||
12654    test yes = "$hardcode_automatic"; then
12655
12656   # We can hardcode non-existent directories.
12657   if test no != "$hardcode_direct" &&
12658      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12659      # have to relink, otherwise we might link with an installed library
12660      # when we should be linking with a yet-to-be-installed one
12661      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12662      test no != "$hardcode_minus_L"; then
12663     # Linking always hardcodes the temporary library directory.
12664     hardcode_action=relink
12665   else
12666     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12667     hardcode_action=immediate
12668   fi
12669 else
12670   # We cannot hardcode anything, or else we can only hardcode existing
12671   # directories.
12672   hardcode_action=unsupported
12673 fi
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12675 $as_echo "$hardcode_action" >&6; }
12676
12677 if test relink = "$hardcode_action" ||
12678    test yes = "$inherit_rpath"; then
12679   # Fast installation is not supported
12680   enable_fast_install=no
12681 elif test yes = "$shlibpath_overrides_runpath" ||
12682      test no = "$enable_shared"; then
12683   # Fast installation is not necessary
12684   enable_fast_install=needless
12685 fi
12686
12687
12688
12689
12690
12691
12692   if test yes != "$enable_dlopen"; then
12693   enable_dlopen=unknown
12694   enable_dlopen_self=unknown
12695   enable_dlopen_self_static=unknown
12696 else
12697   lt_cv_dlopen=no
12698   lt_cv_dlopen_libs=
12699
12700   case $host_os in
12701   beos*)
12702     lt_cv_dlopen=load_add_on
12703     lt_cv_dlopen_libs=
12704     lt_cv_dlopen_self=yes
12705     ;;
12706
12707   mingw* | pw32* | cegcc*)
12708     lt_cv_dlopen=LoadLibrary
12709     lt_cv_dlopen_libs=
12710     ;;
12711
12712   cygwin*)
12713     lt_cv_dlopen=dlopen
12714     lt_cv_dlopen_libs=
12715     ;;
12716
12717   darwin*)
12718     # if libdl is installed we need to link against it
12719     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12720 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12721 if ${ac_cv_lib_dl_dlopen+:} false; then :
12722   $as_echo_n "(cached) " >&6
12723 else
12724   ac_check_lib_save_LIBS=$LIBS
12725 LIBS="-ldl  $LIBS"
12726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12727 /* end confdefs.h.  */
12728
12729 /* Override any GCC internal prototype to avoid an error.
12730    Use char because int might match the return type of a GCC
12731    builtin and then its argument prototype would still apply.  */
12732 #ifdef __cplusplus
12733 extern "C"
12734 #endif
12735 char dlopen ();
12736 int
12737 main ()
12738 {
12739 return dlopen ();
12740   ;
12741   return 0;
12742 }
12743 _ACEOF
12744 if ac_fn_c_try_link "$LINENO"; then :
12745   ac_cv_lib_dl_dlopen=yes
12746 else
12747   ac_cv_lib_dl_dlopen=no
12748 fi
12749 rm -f core conftest.err conftest.$ac_objext \
12750     conftest$ac_exeext conftest.$ac_ext
12751 LIBS=$ac_check_lib_save_LIBS
12752 fi
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12754 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12755 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12756   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12757 else
12758
12759     lt_cv_dlopen=dyld
12760     lt_cv_dlopen_libs=
12761     lt_cv_dlopen_self=yes
12762
12763 fi
12764
12765     ;;
12766
12767   tpf*)
12768     # Don't try to run any link tests for TPF.  We know it's impossible
12769     # because TPF is a cross-compiler, and we know how we open DSOs.
12770     lt_cv_dlopen=dlopen
12771     lt_cv_dlopen_libs=
12772     lt_cv_dlopen_self=no
12773     ;;
12774
12775   *)
12776     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12777 if test "x$ac_cv_func_shl_load" = xyes; then :
12778   lt_cv_dlopen=shl_load
12779 else
12780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12781 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12782 if ${ac_cv_lib_dld_shl_load+:} false; then :
12783   $as_echo_n "(cached) " >&6
12784 else
12785   ac_check_lib_save_LIBS=$LIBS
12786 LIBS="-ldld  $LIBS"
12787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12788 /* end confdefs.h.  */
12789
12790 /* Override any GCC internal prototype to avoid an error.
12791    Use char because int might match the return type of a GCC
12792    builtin and then its argument prototype would still apply.  */
12793 #ifdef __cplusplus
12794 extern "C"
12795 #endif
12796 char shl_load ();
12797 int
12798 main ()
12799 {
12800 return shl_load ();
12801   ;
12802   return 0;
12803 }
12804 _ACEOF
12805 if ac_fn_c_try_link "$LINENO"; then :
12806   ac_cv_lib_dld_shl_load=yes
12807 else
12808   ac_cv_lib_dld_shl_load=no
12809 fi
12810 rm -f core conftest.err conftest.$ac_objext \
12811     conftest$ac_exeext conftest.$ac_ext
12812 LIBS=$ac_check_lib_save_LIBS
12813 fi
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12815 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12816 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12817   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12818 else
12819   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12820 if test "x$ac_cv_func_dlopen" = xyes; then :
12821   lt_cv_dlopen=dlopen
12822 else
12823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12824 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12825 if ${ac_cv_lib_dl_dlopen+:} false; then :
12826   $as_echo_n "(cached) " >&6
12827 else
12828   ac_check_lib_save_LIBS=$LIBS
12829 LIBS="-ldl  $LIBS"
12830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12831 /* end confdefs.h.  */
12832
12833 /* Override any GCC internal prototype to avoid an error.
12834    Use char because int might match the return type of a GCC
12835    builtin and then its argument prototype would still apply.  */
12836 #ifdef __cplusplus
12837 extern "C"
12838 #endif
12839 char dlopen ();
12840 int
12841 main ()
12842 {
12843 return dlopen ();
12844   ;
12845   return 0;
12846 }
12847 _ACEOF
12848 if ac_fn_c_try_link "$LINENO"; then :
12849   ac_cv_lib_dl_dlopen=yes
12850 else
12851   ac_cv_lib_dl_dlopen=no
12852 fi
12853 rm -f core conftest.err conftest.$ac_objext \
12854     conftest$ac_exeext conftest.$ac_ext
12855 LIBS=$ac_check_lib_save_LIBS
12856 fi
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12858 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12859 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12860   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12861 else
12862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12863 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12864 if ${ac_cv_lib_svld_dlopen+:} false; then :
12865   $as_echo_n "(cached) " >&6
12866 else
12867   ac_check_lib_save_LIBS=$LIBS
12868 LIBS="-lsvld  $LIBS"
12869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12870 /* end confdefs.h.  */
12871
12872 /* Override any GCC internal prototype to avoid an error.
12873    Use char because int might match the return type of a GCC
12874    builtin and then its argument prototype would still apply.  */
12875 #ifdef __cplusplus
12876 extern "C"
12877 #endif
12878 char dlopen ();
12879 int
12880 main ()
12881 {
12882 return dlopen ();
12883   ;
12884   return 0;
12885 }
12886 _ACEOF
12887 if ac_fn_c_try_link "$LINENO"; then :
12888   ac_cv_lib_svld_dlopen=yes
12889 else
12890   ac_cv_lib_svld_dlopen=no
12891 fi
12892 rm -f core conftest.err conftest.$ac_objext \
12893     conftest$ac_exeext conftest.$ac_ext
12894 LIBS=$ac_check_lib_save_LIBS
12895 fi
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12897 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12898 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12899   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12900 else
12901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12902 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12903 if ${ac_cv_lib_dld_dld_link+:} false; then :
12904   $as_echo_n "(cached) " >&6
12905 else
12906   ac_check_lib_save_LIBS=$LIBS
12907 LIBS="-ldld  $LIBS"
12908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12909 /* end confdefs.h.  */
12910
12911 /* Override any GCC internal prototype to avoid an error.
12912    Use char because int might match the return type of a GCC
12913    builtin and then its argument prototype would still apply.  */
12914 #ifdef __cplusplus
12915 extern "C"
12916 #endif
12917 char dld_link ();
12918 int
12919 main ()
12920 {
12921 return dld_link ();
12922   ;
12923   return 0;
12924 }
12925 _ACEOF
12926 if ac_fn_c_try_link "$LINENO"; then :
12927   ac_cv_lib_dld_dld_link=yes
12928 else
12929   ac_cv_lib_dld_dld_link=no
12930 fi
12931 rm -f core conftest.err conftest.$ac_objext \
12932     conftest$ac_exeext conftest.$ac_ext
12933 LIBS=$ac_check_lib_save_LIBS
12934 fi
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12936 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12937 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12938   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12939 fi
12940
12941
12942 fi
12943
12944
12945 fi
12946
12947
12948 fi
12949
12950
12951 fi
12952
12953
12954 fi
12955
12956     ;;
12957   esac
12958
12959   if test no = "$lt_cv_dlopen"; then
12960     enable_dlopen=no
12961   else
12962     enable_dlopen=yes
12963   fi
12964
12965   case $lt_cv_dlopen in
12966   dlopen)
12967     save_CPPFLAGS=$CPPFLAGS
12968     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12969
12970     save_LDFLAGS=$LDFLAGS
12971     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12972
12973     save_LIBS=$LIBS
12974     LIBS="$lt_cv_dlopen_libs $LIBS"
12975
12976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12977 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12978 if ${lt_cv_dlopen_self+:} false; then :
12979   $as_echo_n "(cached) " >&6
12980 else
12981           if test yes = "$cross_compiling"; then :
12982   lt_cv_dlopen_self=cross
12983 else
12984   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12985   lt_status=$lt_dlunknown
12986   cat > conftest.$ac_ext <<_LT_EOF
12987 #line $LINENO "configure"
12988 #include "confdefs.h"
12989
12990 #if HAVE_DLFCN_H
12991 #include <dlfcn.h>
12992 #endif
12993
12994 #include <stdio.h>
12995
12996 #ifdef RTLD_GLOBAL
12997 #  define LT_DLGLOBAL           RTLD_GLOBAL
12998 #else
12999 #  ifdef DL_GLOBAL
13000 #    define LT_DLGLOBAL         DL_GLOBAL
13001 #  else
13002 #    define LT_DLGLOBAL         0
13003 #  endif
13004 #endif
13005
13006 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13007    find out it does not work in some platform. */
13008 #ifndef LT_DLLAZY_OR_NOW
13009 #  ifdef RTLD_LAZY
13010 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13011 #  else
13012 #    ifdef DL_LAZY
13013 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13014 #    else
13015 #      ifdef RTLD_NOW
13016 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13017 #      else
13018 #        ifdef DL_NOW
13019 #          define LT_DLLAZY_OR_NOW      DL_NOW
13020 #        else
13021 #          define LT_DLLAZY_OR_NOW      0
13022 #        endif
13023 #      endif
13024 #    endif
13025 #  endif
13026 #endif
13027
13028 /* When -fvisibility=hidden is used, assume the code has been annotated
13029    correspondingly for the symbols needed.  */
13030 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13031 int fnord () __attribute__((visibility("default")));
13032 #endif
13033
13034 int fnord () { return 42; }
13035 int main ()
13036 {
13037   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13038   int status = $lt_dlunknown;
13039
13040   if (self)
13041     {
13042       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13043       else
13044         {
13045           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13046           else puts (dlerror ());
13047         }
13048       /* dlclose (self); */
13049     }
13050   else
13051     puts (dlerror ());
13052
13053   return status;
13054 }
13055 _LT_EOF
13056   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13057   (eval $ac_link) 2>&5
13058   ac_status=$?
13059   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13060   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13061     (./conftest; exit; ) >&5 2>/dev/null
13062     lt_status=$?
13063     case x$lt_status in
13064       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13065       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13066       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13067     esac
13068   else :
13069     # compilation failed
13070     lt_cv_dlopen_self=no
13071   fi
13072 fi
13073 rm -fr conftest*
13074
13075
13076 fi
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13078 $as_echo "$lt_cv_dlopen_self" >&6; }
13079
13080     if test yes = "$lt_cv_dlopen_self"; then
13081       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13082       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13083 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13084 if ${lt_cv_dlopen_self_static+:} false; then :
13085   $as_echo_n "(cached) " >&6
13086 else
13087           if test yes = "$cross_compiling"; then :
13088   lt_cv_dlopen_self_static=cross
13089 else
13090   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13091   lt_status=$lt_dlunknown
13092   cat > conftest.$ac_ext <<_LT_EOF
13093 #line $LINENO "configure"
13094 #include "confdefs.h"
13095
13096 #if HAVE_DLFCN_H
13097 #include <dlfcn.h>
13098 #endif
13099
13100 #include <stdio.h>
13101
13102 #ifdef RTLD_GLOBAL
13103 #  define LT_DLGLOBAL           RTLD_GLOBAL
13104 #else
13105 #  ifdef DL_GLOBAL
13106 #    define LT_DLGLOBAL         DL_GLOBAL
13107 #  else
13108 #    define LT_DLGLOBAL         0
13109 #  endif
13110 #endif
13111
13112 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13113    find out it does not work in some platform. */
13114 #ifndef LT_DLLAZY_OR_NOW
13115 #  ifdef RTLD_LAZY
13116 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13117 #  else
13118 #    ifdef DL_LAZY
13119 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13120 #    else
13121 #      ifdef RTLD_NOW
13122 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13123 #      else
13124 #        ifdef DL_NOW
13125 #          define LT_DLLAZY_OR_NOW      DL_NOW
13126 #        else
13127 #          define LT_DLLAZY_OR_NOW      0
13128 #        endif
13129 #      endif
13130 #    endif
13131 #  endif
13132 #endif
13133
13134 /* When -fvisibility=hidden is used, assume the code has been annotated
13135    correspondingly for the symbols needed.  */
13136 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13137 int fnord () __attribute__((visibility("default")));
13138 #endif
13139
13140 int fnord () { return 42; }
13141 int main ()
13142 {
13143   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13144   int status = $lt_dlunknown;
13145
13146   if (self)
13147     {
13148       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13149       else
13150         {
13151           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13152           else puts (dlerror ());
13153         }
13154       /* dlclose (self); */
13155     }
13156   else
13157     puts (dlerror ());
13158
13159   return status;
13160 }
13161 _LT_EOF
13162   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13163   (eval $ac_link) 2>&5
13164   ac_status=$?
13165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13166   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13167     (./conftest; exit; ) >&5 2>/dev/null
13168     lt_status=$?
13169     case x$lt_status in
13170       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13171       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13172       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13173     esac
13174   else :
13175     # compilation failed
13176     lt_cv_dlopen_self_static=no
13177   fi
13178 fi
13179 rm -fr conftest*
13180
13181
13182 fi
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13184 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13185     fi
13186
13187     CPPFLAGS=$save_CPPFLAGS
13188     LDFLAGS=$save_LDFLAGS
13189     LIBS=$save_LIBS
13190     ;;
13191   esac
13192
13193   case $lt_cv_dlopen_self in
13194   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13195   *) enable_dlopen_self=unknown ;;
13196   esac
13197
13198   case $lt_cv_dlopen_self_static in
13199   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13200   *) enable_dlopen_self_static=unknown ;;
13201   esac
13202 fi
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220 striplib=
13221 old_striplib=
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13223 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13224 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13225   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13226   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13228 $as_echo "yes" >&6; }
13229 else
13230 # FIXME - insert some real tests, host_os isn't really good enough
13231   case $host_os in
13232   darwin*)
13233     if test -n "$STRIP"; then
13234       striplib="$STRIP -x"
13235       old_striplib="$STRIP -S"
13236       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13237 $as_echo "yes" >&6; }
13238     else
13239       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13240 $as_echo "no" >&6; }
13241     fi
13242     ;;
13243   *)
13244     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13245 $as_echo "no" >&6; }
13246     ;;
13247   esac
13248 fi
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261   # Report what library types will actually be built
13262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13263 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13265 $as_echo "$can_build_shared" >&6; }
13266
13267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13268 $as_echo_n "checking whether to build shared libraries... " >&6; }
13269   test no = "$can_build_shared" && enable_shared=no
13270
13271   # On AIX, shared libraries and static libraries use the same namespace, and
13272   # are all built from PIC.
13273   case $host_os in
13274   aix3*)
13275     test yes = "$enable_shared" && enable_static=no
13276     if test -n "$RANLIB"; then
13277       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13278       postinstall_cmds='$RANLIB $lib'
13279     fi
13280     ;;
13281
13282   aix[4-9]*)
13283     if test ia64 != "$host_cpu"; then
13284       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13285       yes,aix,yes) ;;                   # shared object as lib.so file only
13286       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13287       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13288       esac
13289     fi
13290     ;;
13291   esac
13292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13293 $as_echo "$enable_shared" >&6; }
13294
13295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13296 $as_echo_n "checking whether to build static libraries... " >&6; }
13297   # Make sure either enable_shared or enable_static is yes.
13298   test yes = "$enable_shared" || enable_static=yes
13299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13300 $as_echo "$enable_static" >&6; }
13301
13302
13303
13304
13305 fi
13306 ac_ext=c
13307 ac_cpp='$CPP $CPPFLAGS'
13308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13311
13312 CC=$lt_save_CC
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328         ac_config_commands="$ac_config_commands libtool"
13329
13330
13331
13332
13333 # Only expand once:
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13344         if test -n "$ac_tool_prefix"; then
13345   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13346 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13348 $as_echo_n "checking for $ac_word... " >&6; }
13349 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13350   $as_echo_n "(cached) " >&6
13351 else
13352   case $PKG_CONFIG in
13353   [\\/]* | ?:[\\/]*)
13354   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13355   ;;
13356   *)
13357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13358 for as_dir in $PATH
13359 do
13360   IFS=$as_save_IFS
13361   test -z "$as_dir" && as_dir=.
13362     for ac_exec_ext in '' $ac_executable_extensions; do
13363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13364     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13366     break 2
13367   fi
13368 done
13369   done
13370 IFS=$as_save_IFS
13371
13372   ;;
13373 esac
13374 fi
13375 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13376 if test -n "$PKG_CONFIG"; then
13377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13378 $as_echo "$PKG_CONFIG" >&6; }
13379 else
13380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381 $as_echo "no" >&6; }
13382 fi
13383
13384
13385 fi
13386 if test -z "$ac_cv_path_PKG_CONFIG"; then
13387   ac_pt_PKG_CONFIG=$PKG_CONFIG
13388   # Extract the first word of "pkg-config", so it can be a program name with args.
13389 set dummy pkg-config; ac_word=$2
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13391 $as_echo_n "checking for $ac_word... " >&6; }
13392 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13393   $as_echo_n "(cached) " >&6
13394 else
13395   case $ac_pt_PKG_CONFIG in
13396   [\\/]* | ?:[\\/]*)
13397   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13398   ;;
13399   *)
13400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13401 for as_dir in $PATH
13402 do
13403   IFS=$as_save_IFS
13404   test -z "$as_dir" && as_dir=.
13405     for ac_exec_ext in '' $ac_executable_extensions; do
13406   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13407     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13409     break 2
13410   fi
13411 done
13412   done
13413 IFS=$as_save_IFS
13414
13415   ;;
13416 esac
13417 fi
13418 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13419 if test -n "$ac_pt_PKG_CONFIG"; then
13420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13421 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13422 else
13423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13424 $as_echo "no" >&6; }
13425 fi
13426
13427   if test "x$ac_pt_PKG_CONFIG" = x; then
13428     PKG_CONFIG=""
13429   else
13430     case $cross_compiling:$ac_tool_warned in
13431 yes:)
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13434 ac_tool_warned=yes ;;
13435 esac
13436     PKG_CONFIG=$ac_pt_PKG_CONFIG
13437   fi
13438 else
13439   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13440 fi
13441
13442 fi
13443 if test -n "$PKG_CONFIG"; then
13444         _pkg_min_version=0.9.0
13445         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13446 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13447         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13448                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13449 $as_echo "yes" >&6; }
13450         else
13451                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13452 $as_echo "no" >&6; }
13453                 PKG_CONFIG=""
13454         fi
13455 fi
13456
13457       if test "X$prefix" = "XNONE"; then
13458     acl_final_prefix="$ac_default_prefix"
13459   else
13460     acl_final_prefix="$prefix"
13461   fi
13462   if test "X$exec_prefix" = "XNONE"; then
13463     acl_final_exec_prefix='${prefix}'
13464   else
13465     acl_final_exec_prefix="$exec_prefix"
13466   fi
13467   acl_save_prefix="$prefix"
13468   prefix="$acl_final_prefix"
13469   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13470   prefix="$acl_save_prefix"
13471
13472
13473
13474 # Check whether --with-gnu-ld was given.
13475 if test "${with_gnu_ld+set}" = set; then :
13476   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13477 else
13478   with_gnu_ld=no
13479 fi
13480
13481 # Prepare PATH_SEPARATOR.
13482 # The user is always right.
13483 if test "${PATH_SEPARATOR+set}" != set; then
13484   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13485   # contains only /bin. Note that ksh looks also at the FPATH variable,
13486   # so we have to set that as well for the test.
13487   PATH_SEPARATOR=:
13488   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13489     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13490            || PATH_SEPARATOR=';'
13491        }
13492 fi
13493
13494 ac_prog=ld
13495 if test "$GCC" = yes; then
13496   # Check if gcc -print-prog-name=ld gives a path.
13497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13498 $as_echo_n "checking for ld used by $CC... " >&6; }
13499   case $host in
13500   *-*-mingw*)
13501     # gcc leaves a trailing carriage return which upsets mingw
13502     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13503   *)
13504     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13505   esac
13506   case $ac_prog in
13507     # Accept absolute paths.
13508     [\\/]* | ?:[\\/]*)
13509       re_direlt='/[^/][^/]*/\.\./'
13510       # Canonicalize the pathname of ld
13511       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
13512       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
13513         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13514       done
13515       test -z "$LD" && LD="$ac_prog"
13516       ;;
13517   "")
13518     # If it fails, then pretend we aren't using GCC.
13519     ac_prog=ld
13520     ;;
13521   *)
13522     # If it is relative, then search for the first ld in PATH.
13523     with_gnu_ld=unknown
13524     ;;
13525   esac
13526 elif test "$with_gnu_ld" = yes; then
13527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13528 $as_echo_n "checking for GNU ld... " >&6; }
13529 else
13530   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13531 $as_echo_n "checking for non-GNU ld... " >&6; }
13532 fi
13533 if ${acl_cv_path_LD+:} false; then :
13534   $as_echo_n "(cached) " >&6
13535 else
13536   if test -z "$LD"; then
13537   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13538   for ac_dir in $PATH; do
13539     IFS="$acl_save_ifs"
13540     test -z "$ac_dir" && ac_dir=.
13541     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13542       acl_cv_path_LD="$ac_dir/$ac_prog"
13543       # Check to see if the program is GNU ld.  I'd rather use --version,
13544       # but apparently some variants of GNU ld only accept -v.
13545       # Break only if it was the GNU/non-GNU ld that we prefer.
13546       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
13547       *GNU* | *'with BFD'*)
13548         test "$with_gnu_ld" != no && break
13549         ;;
13550       *)
13551         test "$with_gnu_ld" != yes && break
13552         ;;
13553       esac
13554     fi
13555   done
13556   IFS="$acl_save_ifs"
13557 else
13558   acl_cv_path_LD="$LD" # Let the user override the test with a path.
13559 fi
13560 fi
13561
13562 LD="$acl_cv_path_LD"
13563 if test -n "$LD"; then
13564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13565 $as_echo "$LD" >&6; }
13566 else
13567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13568 $as_echo "no" >&6; }
13569 fi
13570 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13572 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13573 if ${acl_cv_prog_gnu_ld+:} false; then :
13574   $as_echo_n "(cached) " >&6
13575 else
13576   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13577 case `$LD -v 2>&1 </dev/null` in
13578 *GNU* | *'with BFD'*)
13579   acl_cv_prog_gnu_ld=yes
13580   ;;
13581 *)
13582   acl_cv_prog_gnu_ld=no
13583   ;;
13584 esac
13585 fi
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13587 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13588 with_gnu_ld=$acl_cv_prog_gnu_ld
13589
13590
13591
13592
13593                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13594 $as_echo_n "checking for shared library run path origin... " >&6; }
13595 if ${acl_cv_rpath+:} false; then :
13596   $as_echo_n "(cached) " >&6
13597 else
13598
13599     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13600     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13601     . ./conftest.sh
13602     rm -f ./conftest.sh
13603     acl_cv_rpath=done
13604
13605 fi
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13607 $as_echo "$acl_cv_rpath" >&6; }
13608   wl="$acl_cv_wl"
13609   acl_libext="$acl_cv_libext"
13610   acl_shlibext="$acl_cv_shlibext"
13611   acl_libname_spec="$acl_cv_libname_spec"
13612   acl_library_names_spec="$acl_cv_library_names_spec"
13613   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13614   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13615   acl_hardcode_direct="$acl_cv_hardcode_direct"
13616   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13617     # Check whether --enable-rpath was given.
13618 if test "${enable_rpath+set}" = set; then :
13619   enableval=$enable_rpath; :
13620 else
13621   enable_rpath=yes
13622 fi
13623
13624
13625
13626
13627   acl_libdirstem=lib
13628   acl_libdirstem2=
13629   case "$host_os" in
13630     solaris*)
13631                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13632 $as_echo_n "checking for 64-bit host... " >&6; }
13633 if ${gl_cv_solaris_64bit+:} false; then :
13634   $as_echo_n "(cached) " >&6
13635 else
13636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13637 /* end confdefs.h.  */
13638
13639 #ifdef _LP64
13640 sixtyfour bits
13641 #endif
13642
13643 _ACEOF
13644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13645   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
13646   gl_cv_solaris_64bit=yes
13647 else
13648   gl_cv_solaris_64bit=no
13649 fi
13650 rm -f conftest*
13651
13652
13653 fi
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
13655 $as_echo "$gl_cv_solaris_64bit" >&6; }
13656       if test $gl_cv_solaris_64bit = yes; then
13657         acl_libdirstem=lib/64
13658         case "$host_cpu" in
13659           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
13660           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
13661         esac
13662       fi
13663       ;;
13664     *)
13665       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13666       if test -n "$searchpath"; then
13667         acl_save_IFS="${IFS=    }"; IFS=":"
13668         for searchdir in $searchpath; do
13669           if test -d "$searchdir"; then
13670             case "$searchdir" in
13671               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13672               */../ | */.. )
13673                 # Better ignore directories of this form. They are misleading.
13674                 ;;
13675               *) searchdir=`cd "$searchdir" && pwd`
13676                  case "$searchdir" in
13677                    */lib64 ) acl_libdirstem=lib64 ;;
13678                  esac ;;
13679             esac
13680           fi
13681         done
13682         IFS="$acl_save_IFS"
13683       fi
13684       ;;
13685   esac
13686   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699     use_additional=yes
13700
13701   acl_save_prefix="$prefix"
13702   prefix="$acl_final_prefix"
13703   acl_save_exec_prefix="$exec_prefix"
13704   exec_prefix="$acl_final_exec_prefix"
13705
13706     eval additional_includedir=\"$includedir\"
13707     eval additional_libdir=\"$libdir\"
13708
13709   exec_prefix="$acl_save_exec_prefix"
13710   prefix="$acl_save_prefix"
13711
13712
13713 # Check whether --with-libiconv-prefix was given.
13714 if test "${with_libiconv_prefix+set}" = set; then :
13715   withval=$with_libiconv_prefix;
13716     if test "X$withval" = "Xno"; then
13717       use_additional=no
13718     else
13719       if test "X$withval" = "X"; then
13720
13721   acl_save_prefix="$prefix"
13722   prefix="$acl_final_prefix"
13723   acl_save_exec_prefix="$exec_prefix"
13724   exec_prefix="$acl_final_exec_prefix"
13725
13726           eval additional_includedir=\"$includedir\"
13727           eval additional_libdir=\"$libdir\"
13728
13729   exec_prefix="$acl_save_exec_prefix"
13730   prefix="$acl_save_prefix"
13731
13732       else
13733         additional_includedir="$withval/include"
13734         additional_libdir="$withval/$acl_libdirstem"
13735         if test "$acl_libdirstem2" != "$acl_libdirstem" \
13736            && ! test -d "$withval/$acl_libdirstem"; then
13737           additional_libdir="$withval/$acl_libdirstem2"
13738         fi
13739       fi
13740     fi
13741
13742 fi
13743
13744       LIBICONV=
13745   LTLIBICONV=
13746   INCICONV=
13747   LIBICONV_PREFIX=
13748       HAVE_LIBICONV=
13749   rpathdirs=
13750   ltrpathdirs=
13751   names_already_handled=
13752   names_next_round='iconv '
13753   while test -n "$names_next_round"; do
13754     names_this_round="$names_next_round"
13755     names_next_round=
13756     for name in $names_this_round; do
13757       already_handled=
13758       for n in $names_already_handled; do
13759         if test "$n" = "$name"; then
13760           already_handled=yes
13761           break
13762         fi
13763       done
13764       if test -z "$already_handled"; then
13765         names_already_handled="$names_already_handled $name"
13766                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
13767         eval value=\"\$HAVE_LIB$uppername\"
13768         if test -n "$value"; then
13769           if test "$value" = yes; then
13770             eval value=\"\$LIB$uppername\"
13771             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13772             eval value=\"\$LTLIB$uppername\"
13773             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13774           else
13775                                     :
13776           fi
13777         else
13778                               found_dir=
13779           found_la=
13780           found_so=
13781           found_a=
13782           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
13783           if test -n "$acl_shlibext"; then
13784             shrext=".$acl_shlibext"             # typically: shrext=.so
13785           else
13786             shrext=
13787           fi
13788           if test $use_additional = yes; then
13789             dir="$additional_libdir"
13790                                     if test -n "$acl_shlibext"; then
13791               if test -f "$dir/$libname$shrext"; then
13792                 found_dir="$dir"
13793                 found_so="$dir/$libname$shrext"
13794               else
13795                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13796                   ver=`(cd "$dir" && \
13797                         for f in "$libname$shrext".*; do echo "$f"; done \
13798                         | sed -e "s,^$libname$shrext\\\\.,," \
13799                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13800                         | sed 1q ) 2>/dev/null`
13801                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13802                     found_dir="$dir"
13803                     found_so="$dir/$libname$shrext.$ver"
13804                   fi
13805                 else
13806                   eval library_names=\"$acl_library_names_spec\"
13807                   for f in $library_names; do
13808                     if test -f "$dir/$f"; then
13809                       found_dir="$dir"
13810                       found_so="$dir/$f"
13811                       break
13812                     fi
13813                   done
13814                 fi
13815               fi
13816             fi
13817                         if test "X$found_dir" = "X"; then
13818               if test -f "$dir/$libname.$acl_libext"; then
13819                 found_dir="$dir"
13820                 found_a="$dir/$libname.$acl_libext"
13821               fi
13822             fi
13823             if test "X$found_dir" != "X"; then
13824               if test -f "$dir/$libname.la"; then
13825                 found_la="$dir/$libname.la"
13826               fi
13827             fi
13828           fi
13829           if test "X$found_dir" = "X"; then
13830             for x in $LDFLAGS $LTLIBICONV; do
13831
13832   acl_save_prefix="$prefix"
13833   prefix="$acl_final_prefix"
13834   acl_save_exec_prefix="$exec_prefix"
13835   exec_prefix="$acl_final_exec_prefix"
13836   eval x=\"$x\"
13837   exec_prefix="$acl_save_exec_prefix"
13838   prefix="$acl_save_prefix"
13839
13840               case "$x" in
13841                 -L*)
13842                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13843                                     if test -n "$acl_shlibext"; then
13844                     if test -f "$dir/$libname$shrext"; then
13845                       found_dir="$dir"
13846                       found_so="$dir/$libname$shrext"
13847                     else
13848                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13849                         ver=`(cd "$dir" && \
13850                               for f in "$libname$shrext".*; do echo "$f"; done \
13851                               | sed -e "s,^$libname$shrext\\\\.,," \
13852                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13853                               | sed 1q ) 2>/dev/null`
13854                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13855                           found_dir="$dir"
13856                           found_so="$dir/$libname$shrext.$ver"
13857                         fi
13858                       else
13859                         eval library_names=\"$acl_library_names_spec\"
13860                         for f in $library_names; do
13861                           if test -f "$dir/$f"; then
13862                             found_dir="$dir"
13863                             found_so="$dir/$f"
13864                             break
13865                           fi
13866                         done
13867                       fi
13868                     fi
13869                   fi
13870                                     if test "X$found_dir" = "X"; then
13871                     if test -f "$dir/$libname.$acl_libext"; then
13872                       found_dir="$dir"
13873                       found_a="$dir/$libname.$acl_libext"
13874                     fi
13875                   fi
13876                   if test "X$found_dir" != "X"; then
13877                     if test -f "$dir/$libname.la"; then
13878                       found_la="$dir/$libname.la"
13879                     fi
13880                   fi
13881                   ;;
13882               esac
13883               if test "X$found_dir" != "X"; then
13884                 break
13885               fi
13886             done
13887           fi
13888           if test "X$found_dir" != "X"; then
13889                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13890             if test "X$found_so" != "X"; then
13891                                                         if test "$enable_rpath" = no \
13892                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13893                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13894                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13895               else
13896                                                                                 haveit=
13897                 for x in $ltrpathdirs; do
13898                   if test "X$x" = "X$found_dir"; then
13899                     haveit=yes
13900                     break
13901                   fi
13902                 done
13903                 if test -z "$haveit"; then
13904                   ltrpathdirs="$ltrpathdirs $found_dir"
13905                 fi
13906                                 if test "$acl_hardcode_direct" = yes; then
13907                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13908                 else
13909                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13910                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13911                                                             haveit=
13912                     for x in $rpathdirs; do
13913                       if test "X$x" = "X$found_dir"; then
13914                         haveit=yes
13915                         break
13916                       fi
13917                     done
13918                     if test -z "$haveit"; then
13919                       rpathdirs="$rpathdirs $found_dir"
13920                     fi
13921                   else
13922                                                                                 haveit=
13923                     for x in $LDFLAGS $LIBICONV; do
13924
13925   acl_save_prefix="$prefix"
13926   prefix="$acl_final_prefix"
13927   acl_save_exec_prefix="$exec_prefix"
13928   exec_prefix="$acl_final_exec_prefix"
13929   eval x=\"$x\"
13930   exec_prefix="$acl_save_exec_prefix"
13931   prefix="$acl_save_prefix"
13932
13933                       if test "X$x" = "X-L$found_dir"; then
13934                         haveit=yes
13935                         break
13936                       fi
13937                     done
13938                     if test -z "$haveit"; then
13939                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13940                     fi
13941                     if test "$acl_hardcode_minus_L" != no; then
13942                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13943                     else
13944                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13945                     fi
13946                   fi
13947                 fi
13948               fi
13949             else
13950               if test "X$found_a" != "X"; then
13951                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13952               else
13953                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13954               fi
13955             fi
13956                         additional_includedir=
13957             case "$found_dir" in
13958               */$acl_libdirstem | */$acl_libdirstem/)
13959                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13960                 if test "$name" = 'iconv'; then
13961                   LIBICONV_PREFIX="$basedir"
13962                 fi
13963                 additional_includedir="$basedir/include"
13964                 ;;
13965               */$acl_libdirstem2 | */$acl_libdirstem2/)
13966                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13967                 if test "$name" = 'iconv'; then
13968                   LIBICONV_PREFIX="$basedir"
13969                 fi
13970                 additional_includedir="$basedir/include"
13971                 ;;
13972             esac
13973             if test "X$additional_includedir" != "X"; then
13974                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
13975                 haveit=
13976                 if test "X$additional_includedir" = "X/usr/local/include"; then
13977                   if test -n "$GCC"; then
13978                     case $host_os in
13979                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13980                     esac
13981                   fi
13982                 fi
13983                 if test -z "$haveit"; then
13984                   for x in $CPPFLAGS $INCICONV; do
13985
13986   acl_save_prefix="$prefix"
13987   prefix="$acl_final_prefix"
13988   acl_save_exec_prefix="$exec_prefix"
13989   exec_prefix="$acl_final_exec_prefix"
13990   eval x=\"$x\"
13991   exec_prefix="$acl_save_exec_prefix"
13992   prefix="$acl_save_prefix"
13993
13994                     if test "X$x" = "X-I$additional_includedir"; then
13995                       haveit=yes
13996                       break
13997                     fi
13998                   done
13999                   if test -z "$haveit"; then
14000                     if test -d "$additional_includedir"; then
14001                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14002                     fi
14003                   fi
14004                 fi
14005               fi
14006             fi
14007                         if test -n "$found_la"; then
14008                                                         save_libdir="$libdir"
14009               case "$found_la" in
14010                 */* | *\\*) . "$found_la" ;;
14011                 *) . "./$found_la" ;;
14012               esac
14013               libdir="$save_libdir"
14014                             for dep in $dependency_libs; do
14015                 case "$dep" in
14016                   -L*)
14017                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14018                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14019                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14020                       haveit=
14021                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14022                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14023                         if test -n "$GCC"; then
14024                           case $host_os in
14025                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14026                           esac
14027                         fi
14028                       fi
14029                       if test -z "$haveit"; then
14030                         haveit=
14031                         for x in $LDFLAGS $LIBICONV; do
14032
14033   acl_save_prefix="$prefix"
14034   prefix="$acl_final_prefix"
14035   acl_save_exec_prefix="$exec_prefix"
14036   exec_prefix="$acl_final_exec_prefix"
14037   eval x=\"$x\"
14038   exec_prefix="$acl_save_exec_prefix"
14039   prefix="$acl_save_prefix"
14040
14041                           if test "X$x" = "X-L$additional_libdir"; then
14042                             haveit=yes
14043                             break
14044                           fi
14045                         done
14046                         if test -z "$haveit"; then
14047                           if test -d "$additional_libdir"; then
14048                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14049                           fi
14050                         fi
14051                         haveit=
14052                         for x in $LDFLAGS $LTLIBICONV; do
14053
14054   acl_save_prefix="$prefix"
14055   prefix="$acl_final_prefix"
14056   acl_save_exec_prefix="$exec_prefix"
14057   exec_prefix="$acl_final_exec_prefix"
14058   eval x=\"$x\"
14059   exec_prefix="$acl_save_exec_prefix"
14060   prefix="$acl_save_prefix"
14061
14062                           if test "X$x" = "X-L$additional_libdir"; then
14063                             haveit=yes
14064                             break
14065                           fi
14066                         done
14067                         if test -z "$haveit"; then
14068                           if test -d "$additional_libdir"; then
14069                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14070                           fi
14071                         fi
14072                       fi
14073                     fi
14074                     ;;
14075                   -R*)
14076                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14077                     if test "$enable_rpath" != no; then
14078                                                                   haveit=
14079                       for x in $rpathdirs; do
14080                         if test "X$x" = "X$dir"; then
14081                           haveit=yes
14082                           break
14083                         fi
14084                       done
14085                       if test -z "$haveit"; then
14086                         rpathdirs="$rpathdirs $dir"
14087                       fi
14088                                                                   haveit=
14089                       for x in $ltrpathdirs; do
14090                         if test "X$x" = "X$dir"; then
14091                           haveit=yes
14092                           break
14093                         fi
14094                       done
14095                       if test -z "$haveit"; then
14096                         ltrpathdirs="$ltrpathdirs $dir"
14097                       fi
14098                     fi
14099                     ;;
14100                   -l*)
14101                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14102                     ;;
14103                   *.la)
14104                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14105                     ;;
14106                   *)
14107                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14108                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14109                     ;;
14110                 esac
14111               done
14112             fi
14113           else
14114                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14115             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14116           fi
14117         fi
14118       fi
14119     done
14120   done
14121   if test "X$rpathdirs" != "X"; then
14122     if test -n "$acl_hardcode_libdir_separator"; then
14123                         alldirs=
14124       for found_dir in $rpathdirs; do
14125         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14126       done
14127             acl_save_libdir="$libdir"
14128       libdir="$alldirs"
14129       eval flag=\"$acl_hardcode_libdir_flag_spec\"
14130       libdir="$acl_save_libdir"
14131       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14132     else
14133             for found_dir in $rpathdirs; do
14134         acl_save_libdir="$libdir"
14135         libdir="$found_dir"
14136         eval flag=\"$acl_hardcode_libdir_flag_spec\"
14137         libdir="$acl_save_libdir"
14138         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14139       done
14140     fi
14141   fi
14142   if test "X$ltrpathdirs" != "X"; then
14143             for found_dir in $ltrpathdirs; do
14144       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14145     done
14146   fi
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159           am_save_CPPFLAGS="$CPPFLAGS"
14160
14161   for element in $INCICONV; do
14162     haveit=
14163     for x in $CPPFLAGS; do
14164
14165   acl_save_prefix="$prefix"
14166   prefix="$acl_final_prefix"
14167   acl_save_exec_prefix="$exec_prefix"
14168   exec_prefix="$acl_final_exec_prefix"
14169   eval x=\"$x\"
14170   exec_prefix="$acl_save_exec_prefix"
14171   prefix="$acl_save_prefix"
14172
14173       if test "X$x" = "X$element"; then
14174         haveit=yes
14175         break
14176       fi
14177     done
14178     if test -z "$haveit"; then
14179       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14180     fi
14181   done
14182
14183
14184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14185 $as_echo_n "checking for iconv... " >&6; }
14186 if ${am_cv_func_iconv+:} false; then :
14187   $as_echo_n "(cached) " >&6
14188 else
14189
14190     am_cv_func_iconv="no, consider installing GNU libiconv"
14191     am_cv_lib_iconv=no
14192     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14193 /* end confdefs.h.  */
14194
14195 #include <stdlib.h>
14196 #include <iconv.h>
14197
14198 int
14199 main ()
14200 {
14201 iconv_t cd = iconv_open("","");
14202            iconv(cd,NULL,NULL,NULL,NULL);
14203            iconv_close(cd);
14204   ;
14205   return 0;
14206 }
14207 _ACEOF
14208 if ac_fn_c_try_link "$LINENO"; then :
14209   am_cv_func_iconv=yes
14210 fi
14211 rm -f core conftest.err conftest.$ac_objext \
14212     conftest$ac_exeext conftest.$ac_ext
14213     if test "$am_cv_func_iconv" != yes; then
14214       am_save_LIBS="$LIBS"
14215       LIBS="$LIBS $LIBICONV"
14216       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h.  */
14218
14219 #include <stdlib.h>
14220 #include <iconv.h>
14221
14222 int
14223 main ()
14224 {
14225 iconv_t cd = iconv_open("","");
14226              iconv(cd,NULL,NULL,NULL,NULL);
14227              iconv_close(cd);
14228   ;
14229   return 0;
14230 }
14231 _ACEOF
14232 if ac_fn_c_try_link "$LINENO"; then :
14233   am_cv_lib_iconv=yes
14234         am_cv_func_iconv=yes
14235 fi
14236 rm -f core conftest.err conftest.$ac_objext \
14237     conftest$ac_exeext conftest.$ac_ext
14238       LIBS="$am_save_LIBS"
14239     fi
14240
14241 fi
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14243 $as_echo "$am_cv_func_iconv" >&6; }
14244   if test "$am_cv_func_iconv" = yes; then
14245     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14246 $as_echo_n "checking for working iconv... " >&6; }
14247 if ${am_cv_func_iconv_works+:} false; then :
14248   $as_echo_n "(cached) " >&6
14249 else
14250
14251                   am_save_LIBS="$LIBS"
14252       if test $am_cv_lib_iconv = yes; then
14253         LIBS="$LIBS $LIBICONV"
14254       fi
14255       if test "$cross_compiling" = yes; then :
14256
14257          case "$host_os" in
14258            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14259            *)            am_cv_func_iconv_works="guessing yes" ;;
14260          esac
14261
14262 else
14263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14264 /* end confdefs.h.  */
14265
14266 #include <iconv.h>
14267 #include <string.h>
14268 int main ()
14269 {
14270   int result = 0;
14271   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14272      returns.  */
14273   {
14274     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14275     if (cd_utf8_to_88591 != (iconv_t)(-1))
14276       {
14277         static const char input[] = "\342\202\254"; /* EURO SIGN */
14278         char buf[10];
14279         const char *inptr = input;
14280         size_t inbytesleft = strlen (input);
14281         char *outptr = buf;
14282         size_t outbytesleft = sizeof (buf);
14283         size_t res = iconv (cd_utf8_to_88591,
14284                             (char **) &inptr, &inbytesleft,
14285                             &outptr, &outbytesleft);
14286         if (res == 0)
14287           result |= 1;
14288         iconv_close (cd_utf8_to_88591);
14289       }
14290   }
14291   /* Test against Solaris 10 bug: Failures are not distinguishable from
14292      successful returns.  */
14293   {
14294     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14295     if (cd_ascii_to_88591 != (iconv_t)(-1))
14296       {
14297         static const char input[] = "\263";
14298         char buf[10];
14299         const char *inptr = input;
14300         size_t inbytesleft = strlen (input);
14301         char *outptr = buf;
14302         size_t outbytesleft = sizeof (buf);
14303         size_t res = iconv (cd_ascii_to_88591,
14304                             (char **) &inptr, &inbytesleft,
14305                             &outptr, &outbytesleft);
14306         if (res == 0)
14307           result |= 2;
14308         iconv_close (cd_ascii_to_88591);
14309       }
14310   }
14311   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
14312   {
14313     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14314     if (cd_88591_to_utf8 != (iconv_t)(-1))
14315       {
14316         static const char input[] = "\304";
14317         static char buf[2] = { (char)0xDE, (char)0xAD };
14318         const char *inptr = input;
14319         size_t inbytesleft = 1;
14320         char *outptr = buf;
14321         size_t outbytesleft = 1;
14322         size_t res = iconv (cd_88591_to_utf8,
14323                             (char **) &inptr, &inbytesleft,
14324                             &outptr, &outbytesleft);
14325         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14326           result |= 4;
14327         iconv_close (cd_88591_to_utf8);
14328       }
14329   }
14330 #if 0 /* This bug could be worked around by the caller.  */
14331   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
14332   {
14333     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14334     if (cd_88591_to_utf8 != (iconv_t)(-1))
14335       {
14336         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14337         char buf[50];
14338         const char *inptr = input;
14339         size_t inbytesleft = strlen (input);
14340         char *outptr = buf;
14341         size_t outbytesleft = sizeof (buf);
14342         size_t res = iconv (cd_88591_to_utf8,
14343                             (char **) &inptr, &inbytesleft,
14344                             &outptr, &outbytesleft);
14345         if ((int)res > 0)
14346           result |= 8;
14347         iconv_close (cd_88591_to_utf8);
14348       }
14349   }
14350 #endif
14351   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14352      provided.  */
14353   if (/* Try standardized names.  */
14354       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14355       /* Try IRIX, OSF/1 names.  */
14356       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14357       /* Try AIX names.  */
14358       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14359       /* Try HP-UX names.  */
14360       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14361     result |= 16;
14362   return result;
14363 }
14364 _ACEOF
14365 if ac_fn_c_try_run "$LINENO"; then :
14366   am_cv_func_iconv_works=yes
14367 else
14368   am_cv_func_iconv_works=no
14369 fi
14370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14371   conftest.$ac_objext conftest.beam conftest.$ac_ext
14372 fi
14373
14374       LIBS="$am_save_LIBS"
14375
14376 fi
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14378 $as_echo "$am_cv_func_iconv_works" >&6; }
14379     case "$am_cv_func_iconv_works" in
14380       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14381       *)   am_func_iconv=yes ;;
14382     esac
14383   else
14384     am_func_iconv=no am_cv_lib_iconv=no
14385   fi
14386   if test "$am_func_iconv" = yes; then
14387
14388 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14389
14390   fi
14391   if test "$am_cv_lib_iconv" = yes; then
14392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14393 $as_echo_n "checking how to link with libiconv... " >&6; }
14394     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14395 $as_echo "$LIBICONV" >&6; }
14396   else
14397             CPPFLAGS="$am_save_CPPFLAGS"
14398     LIBICONV=
14399     LTLIBICONV=
14400   fi
14401
14402
14403
14404   if test "$am_cv_func_iconv" = yes; then
14405     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14406 $as_echo_n "checking for iconv declaration... " >&6; }
14407     if ${am_cv_proto_iconv+:} false; then :
14408   $as_echo_n "(cached) " >&6
14409 else
14410
14411       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14412 /* end confdefs.h.  */
14413
14414 #include <stdlib.h>
14415 #include <iconv.h>
14416 extern
14417 #ifdef __cplusplus
14418 "C"
14419 #endif
14420 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
14421 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14422 #else
14423 size_t iconv();
14424 #endif
14425
14426 int
14427 main ()
14428 {
14429
14430   ;
14431   return 0;
14432 }
14433 _ACEOF
14434 if ac_fn_c_try_compile "$LINENO"; then :
14435   am_cv_proto_iconv_arg1=""
14436 else
14437   am_cv_proto_iconv_arg1="const"
14438 fi
14439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14440       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);"
14441 fi
14442
14443     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14444     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
14445          $am_cv_proto_iconv" >&5
14446 $as_echo "
14447          $am_cv_proto_iconv" >&6; }
14448
14449 cat >>confdefs.h <<_ACEOF
14450 #define ICONV_CONST $am_cv_proto_iconv_arg1
14451 _ACEOF
14452
14453
14454   fi
14455
14456
14457
14458
14459
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14461 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14462 if ${ac_cv_c_restrict+:} false; then :
14463   $as_echo_n "(cached) " >&6
14464 else
14465   ac_cv_c_restrict=no
14466    # The order here caters to the fact that C++ does not require restrict.
14467    for ac_kw in __restrict __restrict__ _Restrict restrict; do
14468      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14469 /* end confdefs.h.  */
14470 typedef int * int_ptr;
14471         int foo (int_ptr $ac_kw ip) {
14472         return ip[0];
14473        }
14474 int
14475 main ()
14476 {
14477 int s[1];
14478         int * $ac_kw t = s;
14479         t[0] = 0;
14480         return foo(t)
14481   ;
14482   return 0;
14483 }
14484 _ACEOF
14485 if ac_fn_c_try_compile "$LINENO"; then :
14486   ac_cv_c_restrict=$ac_kw
14487 fi
14488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14489      test "$ac_cv_c_restrict" != no && break
14490    done
14491
14492 fi
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14494 $as_echo "$ac_cv_c_restrict" >&6; }
14495
14496  case $ac_cv_c_restrict in
14497    restrict) ;;
14498    no) $as_echo "#define restrict /**/" >>confdefs.h
14499  ;;
14500    *)  cat >>confdefs.h <<_ACEOF
14501 #define restrict $ac_cv_c_restrict
14502 _ACEOF
14503  ;;
14504  esac
14505
14506
14507 ac_header_dirent=no
14508 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14509   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14511 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
14512 if eval \${$as_ac_Header+:} false; then :
14513   $as_echo_n "(cached) " >&6
14514 else
14515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516 /* end confdefs.h.  */
14517 #include <sys/types.h>
14518 #include <$ac_hdr>
14519
14520 int
14521 main ()
14522 {
14523 if ((DIR *) 0)
14524 return 0;
14525   ;
14526   return 0;
14527 }
14528 _ACEOF
14529 if ac_fn_c_try_compile "$LINENO"; then :
14530   eval "$as_ac_Header=yes"
14531 else
14532   eval "$as_ac_Header=no"
14533 fi
14534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14535 fi
14536 eval ac_res=\$$as_ac_Header
14537                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14538 $as_echo "$ac_res" >&6; }
14539 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14540   cat >>confdefs.h <<_ACEOF
14541 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14542 _ACEOF
14543
14544 ac_header_dirent=$ac_hdr; break
14545 fi
14546
14547 done
14548 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14549 if test $ac_header_dirent = dirent.h; then
14550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14551 $as_echo_n "checking for library containing opendir... " >&6; }
14552 if ${ac_cv_search_opendir+:} false; then :
14553   $as_echo_n "(cached) " >&6
14554 else
14555   ac_func_search_save_LIBS=$LIBS
14556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14557 /* end confdefs.h.  */
14558
14559 /* Override any GCC internal prototype to avoid an error.
14560    Use char because int might match the return type of a GCC
14561    builtin and then its argument prototype would still apply.  */
14562 #ifdef __cplusplus
14563 extern "C"
14564 #endif
14565 char opendir ();
14566 int
14567 main ()
14568 {
14569 return opendir ();
14570   ;
14571   return 0;
14572 }
14573 _ACEOF
14574 for ac_lib in '' dir; do
14575   if test -z "$ac_lib"; then
14576     ac_res="none required"
14577   else
14578     ac_res=-l$ac_lib
14579     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14580   fi
14581   if ac_fn_c_try_link "$LINENO"; then :
14582   ac_cv_search_opendir=$ac_res
14583 fi
14584 rm -f core conftest.err conftest.$ac_objext \
14585     conftest$ac_exeext
14586   if ${ac_cv_search_opendir+:} false; then :
14587   break
14588 fi
14589 done
14590 if ${ac_cv_search_opendir+:} false; then :
14591
14592 else
14593   ac_cv_search_opendir=no
14594 fi
14595 rm conftest.$ac_ext
14596 LIBS=$ac_func_search_save_LIBS
14597 fi
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14599 $as_echo "$ac_cv_search_opendir" >&6; }
14600 ac_res=$ac_cv_search_opendir
14601 if test "$ac_res" != no; then :
14602   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14603
14604 fi
14605
14606 else
14607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14608 $as_echo_n "checking for library containing opendir... " >&6; }
14609 if ${ac_cv_search_opendir+:} false; then :
14610   $as_echo_n "(cached) " >&6
14611 else
14612   ac_func_search_save_LIBS=$LIBS
14613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614 /* end confdefs.h.  */
14615
14616 /* Override any GCC internal prototype to avoid an error.
14617    Use char because int might match the return type of a GCC
14618    builtin and then its argument prototype would still apply.  */
14619 #ifdef __cplusplus
14620 extern "C"
14621 #endif
14622 char opendir ();
14623 int
14624 main ()
14625 {
14626 return opendir ();
14627   ;
14628   return 0;
14629 }
14630 _ACEOF
14631 for ac_lib in '' x; do
14632   if test -z "$ac_lib"; then
14633     ac_res="none required"
14634   else
14635     ac_res=-l$ac_lib
14636     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14637   fi
14638   if ac_fn_c_try_link "$LINENO"; then :
14639   ac_cv_search_opendir=$ac_res
14640 fi
14641 rm -f core conftest.err conftest.$ac_objext \
14642     conftest$ac_exeext
14643   if ${ac_cv_search_opendir+:} false; then :
14644   break
14645 fi
14646 done
14647 if ${ac_cv_search_opendir+:} false; then :
14648
14649 else
14650   ac_cv_search_opendir=no
14651 fi
14652 rm conftest.$ac_ext
14653 LIBS=$ac_func_search_save_LIBS
14654 fi
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14656 $as_echo "$ac_cv_search_opendir" >&6; }
14657 ac_res=$ac_cv_search_opendir
14658 if test "$ac_res" != no; then :
14659   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14660
14661 fi
14662
14663 fi
14664
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14666 $as_echo_n "checking for ANSI C header files... " >&6; }
14667 if ${ac_cv_header_stdc+:} false; then :
14668   $as_echo_n "(cached) " >&6
14669 else
14670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671 /* end confdefs.h.  */
14672 #include <stdlib.h>
14673 #include <stdarg.h>
14674 #include <string.h>
14675 #include <float.h>
14676
14677 int
14678 main ()
14679 {
14680
14681   ;
14682   return 0;
14683 }
14684 _ACEOF
14685 if ac_fn_c_try_compile "$LINENO"; then :
14686   ac_cv_header_stdc=yes
14687 else
14688   ac_cv_header_stdc=no
14689 fi
14690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14691
14692 if test $ac_cv_header_stdc = yes; then
14693   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14695 /* end confdefs.h.  */
14696 #include <string.h>
14697
14698 _ACEOF
14699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14700   $EGREP "memchr" >/dev/null 2>&1; then :
14701
14702 else
14703   ac_cv_header_stdc=no
14704 fi
14705 rm -f conftest*
14706
14707 fi
14708
14709 if test $ac_cv_header_stdc = yes; then
14710   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14712 /* end confdefs.h.  */
14713 #include <stdlib.h>
14714
14715 _ACEOF
14716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14717   $EGREP "free" >/dev/null 2>&1; then :
14718
14719 else
14720   ac_cv_header_stdc=no
14721 fi
14722 rm -f conftest*
14723
14724 fi
14725
14726 if test $ac_cv_header_stdc = yes; then
14727   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14728   if test "$cross_compiling" = yes; then :
14729   :
14730 else
14731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14732 /* end confdefs.h.  */
14733 #include <ctype.h>
14734 #include <stdlib.h>
14735 #if ((' ' & 0x0FF) == 0x020)
14736 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14737 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14738 #else
14739 # define ISLOWER(c) \
14740                    (('a' <= (c) && (c) <= 'i') \
14741                      || ('j' <= (c) && (c) <= 'r') \
14742                      || ('s' <= (c) && (c) <= 'z'))
14743 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14744 #endif
14745
14746 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14747 int
14748 main ()
14749 {
14750   int i;
14751   for (i = 0; i < 256; i++)
14752     if (XOR (islower (i), ISLOWER (i))
14753         || toupper (i) != TOUPPER (i))
14754       return 2;
14755   return 0;
14756 }
14757 _ACEOF
14758 if ac_fn_c_try_run "$LINENO"; then :
14759
14760 else
14761   ac_cv_header_stdc=no
14762 fi
14763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14764   conftest.$ac_objext conftest.beam conftest.$ac_ext
14765 fi
14766
14767 fi
14768 fi
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14770 $as_echo "$ac_cv_header_stdc" >&6; }
14771 if test $ac_cv_header_stdc = yes; then
14772
14773 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14774
14775 fi
14776
14777 for ac_header in fcntl.h malloc.h inttypes.h sys/ioctl.h sys/mman.h \
14778         sys/sysmacros.h sys/statvfs.h ctype.h unistd.h locale.h byteswap.h endian.h stdint.h
14779 do :
14780   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14781 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14782 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14783   cat >>confdefs.h <<_ACEOF
14784 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14785 _ACEOF
14786
14787 fi
14788
14789 done
14790
14791 ac_fn_c_check_decl "$LINENO" "O_CLOEXEC" "ac_cv_have_decl_O_CLOEXEC" "
14792 #ifdef HAVE_FCNTL_H
14793 # include <fcntl.h>
14794 #endif
14795
14796 "
14797 if test "x$ac_cv_have_decl_O_CLOEXEC" = xyes; then :
14798   ac_have_decl=1
14799 else
14800   ac_have_decl=0
14801 fi
14802
14803 cat >>confdefs.h <<_ACEOF
14804 #define HAVE_DECL_O_CLOEXEC $ac_have_decl
14805 _ACEOF
14806 if test $ac_have_decl = 1; then :
14807
14808 else
14809
14810 $as_echo "#define O_CLOEXEC 0" >>confdefs.h
14811
14812 fi
14813
14814
14815 for ac_header in uuid/uuid.h
14816 do :
14817   ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
14818 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
14819   cat >>confdefs.h <<_ACEOF
14820 #define HAVE_UUID_UUID_H 1
14821 _ACEOF
14822
14823 else
14824   as_fn_error $? "You need the uuid library." "$LINENO" 5
14825 fi
14826
14827 done
14828
14829 ac_fn_c_check_header_mongrel "$LINENO" "libdevmapper.h" "ac_cv_header_libdevmapper_h" "$ac_includes_default"
14830 if test "x$ac_cv_header_libdevmapper_h" = xyes; then :
14831
14832 else
14833   as_fn_error $? "You need the device-mapper library." "$LINENO" 5
14834 fi
14835
14836
14837
14838 # Check whether --enable-keyring was given.
14839 if test "${enable_keyring+set}" = set; then :
14840   enableval=$enable_keyring;
14841 else
14842   enable_keyring=yes
14843 fi
14844
14845 if test "x$enable_keyring" = "xyes"; then
14846         for ac_header in linux/keyctl.h
14847 do :
14848   ac_fn_c_check_header_mongrel "$LINENO" "linux/keyctl.h" "ac_cv_header_linux_keyctl_h" "$ac_includes_default"
14849 if test "x$ac_cv_header_linux_keyctl_h" = xyes; then :
14850   cat >>confdefs.h <<_ACEOF
14851 #define HAVE_LINUX_KEYCTL_H 1
14852 _ACEOF
14853
14854 else
14855   as_fn_error $? "You need Linux kernel headers with kernel keyring service compiled." "$LINENO" 5
14856 fi
14857
14858 done
14859
14860
14861                         ac_fn_c_check_decl "$LINENO" "__NR_add_key" "ac_cv_have_decl___NR_add_key" "#include <syscall.h>
14862 "
14863 if test "x$ac_cv_have_decl___NR_add_key" = xyes; then :
14864
14865 else
14866   as_fn_error $? "The kernel is missing add_key syscall." "$LINENO" 5
14867 fi
14868
14869         ac_fn_c_check_decl "$LINENO" "__NR_keyctl" "ac_cv_have_decl___NR_keyctl" "#include <syscall.h>
14870 "
14871 if test "x$ac_cv_have_decl___NR_keyctl" = xyes; then :
14872
14873 else
14874   as_fn_error $? "The kernel is missing keyctl syscall." "$LINENO" 5
14875 fi
14876
14877         ac_fn_c_check_decl "$LINENO" "__NR_request_key" "ac_cv_have_decl___NR_request_key" "#include <syscall.h>
14878 "
14879 if test "x$ac_cv_have_decl___NR_request_key" = xyes; then :
14880
14881 else
14882   as_fn_error $? "The kernel is missing request_key syscall." "$LINENO" 5
14883 fi
14884
14885
14886                         ac_fn_c_check_type "$LINENO" "key_serial_t" "ac_cv_type_key_serial_t" "
14887         $ac_includes_default
14888         #ifdef HAVE_LINUX_KEYCTL_H
14889         # include <linux/keyctl.h>
14890         #endif
14891
14892 "
14893 if test "x$ac_cv_type_key_serial_t" = xyes; then :
14894
14895 cat >>confdefs.h <<_ACEOF
14896 #define HAVE_KEY_SERIAL_T 1
14897 _ACEOF
14898
14899
14900 fi
14901
14902
14903
14904 $as_echo "#define KERNEL_KEYRING 1" >>confdefs.h
14905
14906 fi
14907  if test "x$enable_keyring" = "xyes"; then
14908   KERNEL_KEYRING_TRUE=
14909   KERNEL_KEYRING_FALSE='#'
14910 else
14911   KERNEL_KEYRING_TRUE='#'
14912   KERNEL_KEYRING_FALSE=
14913 fi
14914
14915
14916 saved_LIBS=$LIBS
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_clear in -luuid" >&5
14918 $as_echo_n "checking for uuid_clear in -luuid... " >&6; }
14919 if ${ac_cv_lib_uuid_uuid_clear+:} false; then :
14920   $as_echo_n "(cached) " >&6
14921 else
14922   ac_check_lib_save_LIBS=$LIBS
14923 LIBS="-luuid  $LIBS"
14924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14925 /* end confdefs.h.  */
14926
14927 /* Override any GCC internal prototype to avoid an error.
14928    Use char because int might match the return type of a GCC
14929    builtin and then its argument prototype would still apply.  */
14930 #ifdef __cplusplus
14931 extern "C"
14932 #endif
14933 char uuid_clear ();
14934 int
14935 main ()
14936 {
14937 return uuid_clear ();
14938   ;
14939   return 0;
14940 }
14941 _ACEOF
14942 if ac_fn_c_try_link "$LINENO"; then :
14943   ac_cv_lib_uuid_uuid_clear=yes
14944 else
14945   ac_cv_lib_uuid_uuid_clear=no
14946 fi
14947 rm -f core conftest.err conftest.$ac_objext \
14948     conftest$ac_exeext conftest.$ac_ext
14949 LIBS=$ac_check_lib_save_LIBS
14950 fi
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_clear" >&5
14952 $as_echo "$ac_cv_lib_uuid_uuid_clear" >&6; }
14953 if test "x$ac_cv_lib_uuid_uuid_clear" = xyes; then :
14954   cat >>confdefs.h <<_ACEOF
14955 #define HAVE_LIBUUID 1
14956 _ACEOF
14957
14958   LIBS="-luuid $LIBS"
14959
14960 else
14961   as_fn_error $? "You need the uuid library." "$LINENO" 5
14962 fi
14963
14964 UUID_LIBS=$LIBS
14965
14966 LIBS=$saved_LIBS
14967
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14969 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14970 if ${ac_cv_search_clock_gettime+:} false; then :
14971   $as_echo_n "(cached) " >&6
14972 else
14973   ac_func_search_save_LIBS=$LIBS
14974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14975 /* end confdefs.h.  */
14976
14977 /* Override any GCC internal prototype to avoid an error.
14978    Use char because int might match the return type of a GCC
14979    builtin and then its argument prototype would still apply.  */
14980 #ifdef __cplusplus
14981 extern "C"
14982 #endif
14983 char clock_gettime ();
14984 int
14985 main ()
14986 {
14987 return clock_gettime ();
14988   ;
14989   return 0;
14990 }
14991 _ACEOF
14992 for ac_lib in '' rt posix4; do
14993   if test -z "$ac_lib"; then
14994     ac_res="none required"
14995   else
14996     ac_res=-l$ac_lib
14997     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14998   fi
14999   if ac_fn_c_try_link "$LINENO"; then :
15000   ac_cv_search_clock_gettime=$ac_res
15001 fi
15002 rm -f core conftest.err conftest.$ac_objext \
15003     conftest$ac_exeext
15004   if ${ac_cv_search_clock_gettime+:} false; then :
15005   break
15006 fi
15007 done
15008 if ${ac_cv_search_clock_gettime+:} false; then :
15009
15010 else
15011   ac_cv_search_clock_gettime=no
15012 fi
15013 rm conftest.$ac_ext
15014 LIBS=$ac_func_search_save_LIBS
15015 fi
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
15017 $as_echo "$ac_cv_search_clock_gettime" >&6; }
15018 ac_res=$ac_cv_search_clock_gettime
15019 if test "$ac_res" != no; then :
15020   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15021
15022 fi
15023
15024 for ac_func in posix_memalign clock_gettime posix_fallocate explicit_bzero
15025 do :
15026   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15027 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15028 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15029   cat >>confdefs.h <<_ACEOF
15030 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15031 _ACEOF
15032
15033 fi
15034 done
15035
15036
15037 if test "x$enable_largefile" = "xno"; then
15038   as_fn_error $? "Building with --disable-largefile is not supported, it can cause data corruption." "$LINENO" 5
15039 fi
15040
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15042 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15043 if ${ac_cv_c_const+:} false; then :
15044   $as_echo_n "(cached) " >&6
15045 else
15046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15047 /* end confdefs.h.  */
15048
15049 int
15050 main ()
15051 {
15052
15053 #ifndef __cplusplus
15054   /* Ultrix mips cc rejects this sort of thing.  */
15055   typedef int charset[2];
15056   const charset cs = { 0, 0 };
15057   /* SunOS 4.1.1 cc rejects this.  */
15058   char const *const *pcpcc;
15059   char **ppc;
15060   /* NEC SVR4.0.2 mips cc rejects this.  */
15061   struct point {int x, y;};
15062   static struct point const zero = {0,0};
15063   /* AIX XL C 1.02.0.0 rejects this.
15064      It does not let you subtract one const X* pointer from another in
15065      an arm of an if-expression whose if-part is not a constant
15066      expression */
15067   const char *g = "string";
15068   pcpcc = &g + (g ? g-g : 0);
15069   /* HPUX 7.0 cc rejects these. */
15070   ++pcpcc;
15071   ppc = (char**) pcpcc;
15072   pcpcc = (char const *const *) ppc;
15073   { /* SCO 3.2v4 cc rejects this sort of thing.  */
15074     char tx;
15075     char *t = &tx;
15076     char const *s = 0 ? (char *) 0 : (char const *) 0;
15077
15078     *t++ = 0;
15079     if (s) return 0;
15080   }
15081   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15082     int x[] = {25, 17};
15083     const int *foo = &x[0];
15084     ++foo;
15085   }
15086   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15087     typedef const int *iptr;
15088     iptr p = 0;
15089     ++p;
15090   }
15091   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
15092        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15093     struct s { int j; const int *ap[3]; } bx;
15094     struct s *b = &bx; b->j = 5;
15095   }
15096   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15097     const int foo = 10;
15098     if (!foo) return 0;
15099   }
15100   return !cs[0] && !zero.x;
15101 #endif
15102
15103   ;
15104   return 0;
15105 }
15106 _ACEOF
15107 if ac_fn_c_try_compile "$LINENO"; then :
15108   ac_cv_c_const=yes
15109 else
15110   ac_cv_c_const=no
15111 fi
15112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15113 fi
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15115 $as_echo "$ac_cv_c_const" >&6; }
15116 if test $ac_cv_c_const = no; then
15117
15118 $as_echo "#define const /**/" >>confdefs.h
15119
15120 fi
15121
15122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15123 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15124 if ${ac_cv_c_bigendian+:} false; then :
15125   $as_echo_n "(cached) " >&6
15126 else
15127   ac_cv_c_bigendian=unknown
15128     # See if we're dealing with a universal compiler.
15129     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15130 /* end confdefs.h.  */
15131 #ifndef __APPLE_CC__
15132                not a universal capable compiler
15133              #endif
15134              typedef int dummy;
15135
15136 _ACEOF
15137 if ac_fn_c_try_compile "$LINENO"; then :
15138
15139         # Check for potential -arch flags.  It is not universal unless
15140         # there are at least two -arch flags with different values.
15141         ac_arch=
15142         ac_prev=
15143         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15144          if test -n "$ac_prev"; then
15145            case $ac_word in
15146              i?86 | x86_64 | ppc | ppc64)
15147                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15148                  ac_arch=$ac_word
15149                else
15150                  ac_cv_c_bigendian=universal
15151                  break
15152                fi
15153                ;;
15154            esac
15155            ac_prev=
15156          elif test "x$ac_word" = "x-arch"; then
15157            ac_prev=arch
15158          fi
15159        done
15160 fi
15161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15162     if test $ac_cv_c_bigendian = unknown; then
15163       # See if sys/param.h defines the BYTE_ORDER macro.
15164       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15165 /* end confdefs.h.  */
15166 #include <sys/types.h>
15167              #include <sys/param.h>
15168
15169 int
15170 main ()
15171 {
15172 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15173                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15174                      && LITTLE_ENDIAN)
15175               bogus endian macros
15176              #endif
15177
15178   ;
15179   return 0;
15180 }
15181 _ACEOF
15182 if ac_fn_c_try_compile "$LINENO"; then :
15183   # It does; now see whether it defined to BIG_ENDIAN or not.
15184          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15185 /* end confdefs.h.  */
15186 #include <sys/types.h>
15187                 #include <sys/param.h>
15188
15189 int
15190 main ()
15191 {
15192 #if BYTE_ORDER != BIG_ENDIAN
15193                  not big endian
15194                 #endif
15195
15196   ;
15197   return 0;
15198 }
15199 _ACEOF
15200 if ac_fn_c_try_compile "$LINENO"; then :
15201   ac_cv_c_bigendian=yes
15202 else
15203   ac_cv_c_bigendian=no
15204 fi
15205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15206 fi
15207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15208     fi
15209     if test $ac_cv_c_bigendian = unknown; then
15210       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15211       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15212 /* end confdefs.h.  */
15213 #include <limits.h>
15214
15215 int
15216 main ()
15217 {
15218 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15219               bogus endian macros
15220              #endif
15221
15222   ;
15223   return 0;
15224 }
15225 _ACEOF
15226 if ac_fn_c_try_compile "$LINENO"; then :
15227   # It does; now see whether it defined to _BIG_ENDIAN or not.
15228          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229 /* end confdefs.h.  */
15230 #include <limits.h>
15231
15232 int
15233 main ()
15234 {
15235 #ifndef _BIG_ENDIAN
15236                  not big endian
15237                 #endif
15238
15239   ;
15240   return 0;
15241 }
15242 _ACEOF
15243 if ac_fn_c_try_compile "$LINENO"; then :
15244   ac_cv_c_bigendian=yes
15245 else
15246   ac_cv_c_bigendian=no
15247 fi
15248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15249 fi
15250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15251     fi
15252     if test $ac_cv_c_bigendian = unknown; then
15253       # Compile a test program.
15254       if test "$cross_compiling" = yes; then :
15255   # Try to guess by grepping values from an object file.
15256          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15257 /* end confdefs.h.  */
15258 short int ascii_mm[] =
15259                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15260                 short int ascii_ii[] =
15261                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15262                 int use_ascii (int i) {
15263                   return ascii_mm[i] + ascii_ii[i];
15264                 }
15265                 short int ebcdic_ii[] =
15266                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15267                 short int ebcdic_mm[] =
15268                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15269                 int use_ebcdic (int i) {
15270                   return ebcdic_mm[i] + ebcdic_ii[i];
15271                 }
15272                 extern int foo;
15273
15274 int
15275 main ()
15276 {
15277 return use_ascii (foo) == use_ebcdic (foo);
15278   ;
15279   return 0;
15280 }
15281 _ACEOF
15282 if ac_fn_c_try_compile "$LINENO"; then :
15283   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15284               ac_cv_c_bigendian=yes
15285             fi
15286             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15287               if test "$ac_cv_c_bigendian" = unknown; then
15288                 ac_cv_c_bigendian=no
15289               else
15290                 # finding both strings is unlikely to happen, but who knows?
15291                 ac_cv_c_bigendian=unknown
15292               fi
15293             fi
15294 fi
15295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15296 else
15297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15298 /* end confdefs.h.  */
15299 $ac_includes_default
15300 int
15301 main ()
15302 {
15303
15304              /* Are we little or big endian?  From Harbison&Steele.  */
15305              union
15306              {
15307                long int l;
15308                char c[sizeof (long int)];
15309              } u;
15310              u.l = 1;
15311              return u.c[sizeof (long int) - 1] == 1;
15312
15313   ;
15314   return 0;
15315 }
15316 _ACEOF
15317 if ac_fn_c_try_run "$LINENO"; then :
15318   ac_cv_c_bigendian=no
15319 else
15320   ac_cv_c_bigendian=yes
15321 fi
15322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15323   conftest.$ac_objext conftest.beam conftest.$ac_ext
15324 fi
15325
15326     fi
15327 fi
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15329 $as_echo "$ac_cv_c_bigendian" >&6; }
15330  case $ac_cv_c_bigendian in #(
15331    yes)
15332      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15333 ;; #(
15334    no)
15335       ;; #(
15336    universal)
15337
15338 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15339
15340      ;; #(
15341    *)
15342      as_fn_error $? "unknown endianness
15343  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15344  esac
15345
15346 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15347 if test "x$ac_cv_type_off_t" = xyes; then :
15348
15349 else
15350
15351 cat >>confdefs.h <<_ACEOF
15352 #define off_t long int
15353 _ACEOF
15354
15355 fi
15356
15357 # Check whether --enable-largefile was given.
15358 if test "${enable_largefile+set}" = set; then :
15359   enableval=$enable_largefile;
15360 fi
15361
15362 if test "$enable_largefile" != no; then
15363
15364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15365 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15366 if ${ac_cv_sys_largefile_CC+:} false; then :
15367   $as_echo_n "(cached) " >&6
15368 else
15369   ac_cv_sys_largefile_CC=no
15370      if test "$GCC" != yes; then
15371        ac_save_CC=$CC
15372        while :; do
15373          # IRIX 6.2 and later do not support large files by default,
15374          # so use the C compiler's -n32 option if that helps.
15375          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h.  */
15377 #include <sys/types.h>
15378  /* Check that off_t can represent 2**63 - 1 correctly.
15379     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15380     since some C++ compilers masquerading as C compilers
15381     incorrectly reject 9223372036854775807.  */
15382 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15383   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15384                        && LARGE_OFF_T % 2147483647 == 1)
15385                       ? 1 : -1];
15386 int
15387 main ()
15388 {
15389
15390   ;
15391   return 0;
15392 }
15393 _ACEOF
15394          if ac_fn_c_try_compile "$LINENO"; then :
15395   break
15396 fi
15397 rm -f core conftest.err conftest.$ac_objext
15398          CC="$CC -n32"
15399          if ac_fn_c_try_compile "$LINENO"; then :
15400   ac_cv_sys_largefile_CC=' -n32'; break
15401 fi
15402 rm -f core conftest.err conftest.$ac_objext
15403          break
15404        done
15405        CC=$ac_save_CC
15406        rm -f conftest.$ac_ext
15407     fi
15408 fi
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15410 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15411   if test "$ac_cv_sys_largefile_CC" != no; then
15412     CC=$CC$ac_cv_sys_largefile_CC
15413   fi
15414
15415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15416 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15417 if ${ac_cv_sys_file_offset_bits+:} false; then :
15418   $as_echo_n "(cached) " >&6
15419 else
15420   while :; do
15421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15422 /* end confdefs.h.  */
15423 #include <sys/types.h>
15424  /* Check that off_t can represent 2**63 - 1 correctly.
15425     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15426     since some C++ compilers masquerading as C compilers
15427     incorrectly reject 9223372036854775807.  */
15428 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15429   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15430                        && LARGE_OFF_T % 2147483647 == 1)
15431                       ? 1 : -1];
15432 int
15433 main ()
15434 {
15435
15436   ;
15437   return 0;
15438 }
15439 _ACEOF
15440 if ac_fn_c_try_compile "$LINENO"; then :
15441   ac_cv_sys_file_offset_bits=no; break
15442 fi
15443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15445 /* end confdefs.h.  */
15446 #define _FILE_OFFSET_BITS 64
15447 #include <sys/types.h>
15448  /* Check that off_t can represent 2**63 - 1 correctly.
15449     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15450     since some C++ compilers masquerading as C compilers
15451     incorrectly reject 9223372036854775807.  */
15452 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15453   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15454                        && LARGE_OFF_T % 2147483647 == 1)
15455                       ? 1 : -1];
15456 int
15457 main ()
15458 {
15459
15460   ;
15461   return 0;
15462 }
15463 _ACEOF
15464 if ac_fn_c_try_compile "$LINENO"; then :
15465   ac_cv_sys_file_offset_bits=64; break
15466 fi
15467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15468   ac_cv_sys_file_offset_bits=unknown
15469   break
15470 done
15471 fi
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15473 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15474 case $ac_cv_sys_file_offset_bits in #(
15475   no | unknown) ;;
15476   *)
15477 cat >>confdefs.h <<_ACEOF
15478 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15479 _ACEOF
15480 ;;
15481 esac
15482 rm -rf conftest*
15483   if test $ac_cv_sys_file_offset_bits = unknown; then
15484     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15485 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15486 if ${ac_cv_sys_large_files+:} false; then :
15487   $as_echo_n "(cached) " >&6
15488 else
15489   while :; do
15490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15491 /* end confdefs.h.  */
15492 #include <sys/types.h>
15493  /* Check that off_t can represent 2**63 - 1 correctly.
15494     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15495     since some C++ compilers masquerading as C compilers
15496     incorrectly reject 9223372036854775807.  */
15497 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15498   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15499                        && LARGE_OFF_T % 2147483647 == 1)
15500                       ? 1 : -1];
15501 int
15502 main ()
15503 {
15504
15505   ;
15506   return 0;
15507 }
15508 _ACEOF
15509 if ac_fn_c_try_compile "$LINENO"; then :
15510   ac_cv_sys_large_files=no; break
15511 fi
15512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15514 /* end confdefs.h.  */
15515 #define _LARGE_FILES 1
15516 #include <sys/types.h>
15517  /* Check that off_t can represent 2**63 - 1 correctly.
15518     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15519     since some C++ compilers masquerading as C compilers
15520     incorrectly reject 9223372036854775807.  */
15521 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15522   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15523                        && LARGE_OFF_T % 2147483647 == 1)
15524                       ? 1 : -1];
15525 int
15526 main ()
15527 {
15528
15529   ;
15530   return 0;
15531 }
15532 _ACEOF
15533 if ac_fn_c_try_compile "$LINENO"; then :
15534   ac_cv_sys_large_files=1; break
15535 fi
15536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15537   ac_cv_sys_large_files=unknown
15538   break
15539 done
15540 fi
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15542 $as_echo "$ac_cv_sys_large_files" >&6; }
15543 case $ac_cv_sys_large_files in #(
15544   no | unknown) ;;
15545   *)
15546 cat >>confdefs.h <<_ACEOF
15547 #define _LARGE_FILES $ac_cv_sys_large_files
15548 _ACEOF
15549 ;;
15550 esac
15551 rm -rf conftest*
15552   fi
15553
15554
15555 fi
15556
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15558 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15559 if ${ac_cv_sys_largefile_source+:} false; then :
15560   $as_echo_n "(cached) " >&6
15561 else
15562   while :; do
15563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15564 /* end confdefs.h.  */
15565 #include <sys/types.h> /* for off_t */
15566      #include <stdio.h>
15567 int
15568 main ()
15569 {
15570 int (*fp) (FILE *, off_t, int) = fseeko;
15571      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15572   ;
15573   return 0;
15574 }
15575 _ACEOF
15576 if ac_fn_c_try_link "$LINENO"; then :
15577   ac_cv_sys_largefile_source=no; break
15578 fi
15579 rm -f core conftest.err conftest.$ac_objext \
15580     conftest$ac_exeext conftest.$ac_ext
15581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15582 /* end confdefs.h.  */
15583 #define _LARGEFILE_SOURCE 1
15584 #include <sys/types.h> /* for off_t */
15585      #include <stdio.h>
15586 int
15587 main ()
15588 {
15589 int (*fp) (FILE *, off_t, int) = fseeko;
15590      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15591   ;
15592   return 0;
15593 }
15594 _ACEOF
15595 if ac_fn_c_try_link "$LINENO"; then :
15596   ac_cv_sys_largefile_source=1; break
15597 fi
15598 rm -f core conftest.err conftest.$ac_objext \
15599     conftest$ac_exeext conftest.$ac_ext
15600   ac_cv_sys_largefile_source=unknown
15601   break
15602 done
15603 fi
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15605 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15606 case $ac_cv_sys_largefile_source in #(
15607   no | unknown) ;;
15608   *)
15609 cat >>confdefs.h <<_ACEOF
15610 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15611 _ACEOF
15612 ;;
15613 esac
15614 rm -rf conftest*
15615
15616 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15617 # in glibc 2.1.3, but that breaks too many other things.
15618 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15619 if test $ac_cv_sys_largefile_source != unknown; then
15620
15621 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15622
15623 fi
15624
15625 if test $ac_cv_c_compiler_gnu = yes; then
15626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
15627 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
15628 if ${ac_cv_prog_gcc_traditional+:} false; then :
15629   $as_echo_n "(cached) " >&6
15630 else
15631     ac_pattern="Autoconf.*'x'"
15632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15633 /* end confdefs.h.  */
15634 #include <sgtty.h>
15635 Autoconf TIOCGETP
15636 _ACEOF
15637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15638   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
15639   ac_cv_prog_gcc_traditional=yes
15640 else
15641   ac_cv_prog_gcc_traditional=no
15642 fi
15643 rm -f conftest*
15644
15645
15646   if test $ac_cv_prog_gcc_traditional = no; then
15647     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15648 /* end confdefs.h.  */
15649 #include <termio.h>
15650 Autoconf TCGETA
15651 _ACEOF
15652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15653   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
15654   ac_cv_prog_gcc_traditional=yes
15655 fi
15656 rm -f conftest*
15657
15658   fi
15659 fi
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
15661 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
15662   if test $ac_cv_prog_gcc_traditional = yes; then
15663     CC="$CC -traditional"
15664   fi
15665 fi
15666
15667 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
15668 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
15669   ac_have_decl=1
15670 else
15671   ac_have_decl=0
15672 fi
15673
15674 cat >>confdefs.h <<_ACEOF
15675 #define HAVE_DECL_STRERROR_R $ac_have_decl
15676 _ACEOF
15677
15678 for ac_func in strerror_r
15679 do :
15680   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
15681 if test "x$ac_cv_func_strerror_r" = xyes; then :
15682   cat >>confdefs.h <<_ACEOF
15683 #define HAVE_STRERROR_R 1
15684 _ACEOF
15685
15686 fi
15687 done
15688
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
15690 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
15691 if ${ac_cv_func_strerror_r_char_p+:} false; then :
15692   $as_echo_n "(cached) " >&6
15693 else
15694
15695     ac_cv_func_strerror_r_char_p=no
15696     if test $ac_cv_have_decl_strerror_r = yes; then
15697       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15698 /* end confdefs.h.  */
15699 $ac_includes_default
15700 int
15701 main ()
15702 {
15703
15704           char buf[100];
15705           char x = *strerror_r (0, buf, sizeof buf);
15706           char *p = strerror_r (0, buf, sizeof buf);
15707           return !p || x;
15708
15709   ;
15710   return 0;
15711 }
15712 _ACEOF
15713 if ac_fn_c_try_compile "$LINENO"; then :
15714   ac_cv_func_strerror_r_char_p=yes
15715 fi
15716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15717     else
15718       # strerror_r is not declared.  Choose between
15719       # systems that have relatively inaccessible declarations for the
15720       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
15721       # former has a strerror_r that returns char*, while the latter
15722       # has a strerror_r that returns `int'.
15723       # This test should segfault on the DEC system.
15724       if test "$cross_compiling" = yes; then :
15725   :
15726 else
15727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15728 /* end confdefs.h.  */
15729 $ac_includes_default
15730         extern char *strerror_r ();
15731 int
15732 main ()
15733 {
15734 char buf[100];
15735           char x = *strerror_r (0, buf, sizeof buf);
15736           return ! isalpha (x);
15737   ;
15738   return 0;
15739 }
15740 _ACEOF
15741 if ac_fn_c_try_run "$LINENO"; then :
15742   ac_cv_func_strerror_r_char_p=yes
15743 fi
15744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15745   conftest.$ac_objext conftest.beam conftest.$ac_ext
15746 fi
15747
15748     fi
15749
15750 fi
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
15752 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
15753 if test $ac_cv_func_strerror_r_char_p = yes; then
15754
15755 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
15756
15757 fi
15758
15759
15760
15761
15762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15763 $as_echo_n "checking whether NLS is requested... " >&6; }
15764     # Check whether --enable-nls was given.
15765 if test "${enable_nls+set}" = set; then :
15766   enableval=$enable_nls; USE_NLS=$enableval
15767 else
15768   USE_NLS=yes
15769 fi
15770
15771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15772 $as_echo "$USE_NLS" >&6; }
15773
15774
15775
15776
15777       GETTEXT_MACRO_VERSION=0.18
15778
15779
15780
15781
15782 # Prepare PATH_SEPARATOR.
15783 # The user is always right.
15784 if test "${PATH_SEPARATOR+set}" != set; then
15785   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15786   # contains only /bin. Note that ksh looks also at the FPATH variable,
15787   # so we have to set that as well for the test.
15788   PATH_SEPARATOR=:
15789   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15790     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15791            || PATH_SEPARATOR=';'
15792        }
15793 fi
15794
15795 # Find out how to test for executable files. Don't use a zero-byte file,
15796 # as systems may use methods other than mode bits to determine executability.
15797 cat >conf$$.file <<_ASEOF
15798 #! /bin/sh
15799 exit 0
15800 _ASEOF
15801 chmod +x conf$$.file
15802 if test -x conf$$.file >/dev/null 2>&1; then
15803   ac_executable_p="test -x"
15804 else
15805   ac_executable_p="test -f"
15806 fi
15807 rm -f conf$$.file
15808
15809 # Extract the first word of "msgfmt", so it can be a program name with args.
15810 set dummy msgfmt; ac_word=$2
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15812 $as_echo_n "checking for $ac_word... " >&6; }
15813 if ${ac_cv_path_MSGFMT+:} false; then :
15814   $as_echo_n "(cached) " >&6
15815 else
15816   case "$MSGFMT" in
15817   [\\/]* | ?:[\\/]*)
15818     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15819     ;;
15820   *)
15821     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15822     for ac_dir in $PATH; do
15823       IFS="$ac_save_IFS"
15824       test -z "$ac_dir" && ac_dir=.
15825       for ac_exec_ext in '' $ac_executable_extensions; do
15826         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15827           echo "$as_me: trying $ac_dir/$ac_word..." >&5
15828           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
15829      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15830             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15831             break 2
15832           fi
15833         fi
15834       done
15835     done
15836     IFS="$ac_save_IFS"
15837   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15838     ;;
15839 esac
15840 fi
15841 MSGFMT="$ac_cv_path_MSGFMT"
15842 if test "$MSGFMT" != ":"; then
15843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15844 $as_echo "$MSGFMT" >&6; }
15845 else
15846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15847 $as_echo "no" >&6; }
15848 fi
15849
15850   # Extract the first word of "gmsgfmt", so it can be a program name with args.
15851 set dummy gmsgfmt; ac_word=$2
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15853 $as_echo_n "checking for $ac_word... " >&6; }
15854 if ${ac_cv_path_GMSGFMT+:} false; then :
15855   $as_echo_n "(cached) " >&6
15856 else
15857   case $GMSGFMT in
15858   [\\/]* | ?:[\\/]*)
15859   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15860   ;;
15861   *)
15862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15863 for as_dir in $PATH
15864 do
15865   IFS=$as_save_IFS
15866   test -z "$as_dir" && as_dir=.
15867     for ac_exec_ext in '' $ac_executable_extensions; do
15868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15869     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15871     break 2
15872   fi
15873 done
15874   done
15875 IFS=$as_save_IFS
15876
15877   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15878   ;;
15879 esac
15880 fi
15881 GMSGFMT=$ac_cv_path_GMSGFMT
15882 if test -n "$GMSGFMT"; then
15883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15884 $as_echo "$GMSGFMT" >&6; }
15885 else
15886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15887 $as_echo "no" >&6; }
15888 fi
15889
15890
15891
15892     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15893     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
15894     *) MSGFMT_015=$MSGFMT ;;
15895   esac
15896
15897   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15898     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
15899     *) GMSGFMT_015=$GMSGFMT ;;
15900   esac
15901
15902
15903
15904 # Prepare PATH_SEPARATOR.
15905 # The user is always right.
15906 if test "${PATH_SEPARATOR+set}" != set; then
15907   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15908   # contains only /bin. Note that ksh looks also at the FPATH variable,
15909   # so we have to set that as well for the test.
15910   PATH_SEPARATOR=:
15911   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15912     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15913            || PATH_SEPARATOR=';'
15914        }
15915 fi
15916
15917 # Find out how to test for executable files. Don't use a zero-byte file,
15918 # as systems may use methods other than mode bits to determine executability.
15919 cat >conf$$.file <<_ASEOF
15920 #! /bin/sh
15921 exit 0
15922 _ASEOF
15923 chmod +x conf$$.file
15924 if test -x conf$$.file >/dev/null 2>&1; then
15925   ac_executable_p="test -x"
15926 else
15927   ac_executable_p="test -f"
15928 fi
15929 rm -f conf$$.file
15930
15931 # Extract the first word of "xgettext", so it can be a program name with args.
15932 set dummy xgettext; ac_word=$2
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15934 $as_echo_n "checking for $ac_word... " >&6; }
15935 if ${ac_cv_path_XGETTEXT+:} false; then :
15936   $as_echo_n "(cached) " >&6
15937 else
15938   case "$XGETTEXT" in
15939   [\\/]* | ?:[\\/]*)
15940     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15941     ;;
15942   *)
15943     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15944     for ac_dir in $PATH; do
15945       IFS="$ac_save_IFS"
15946       test -z "$ac_dir" && ac_dir=.
15947       for ac_exec_ext in '' $ac_executable_extensions; do
15948         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15949           echo "$as_me: trying $ac_dir/$ac_word..." >&5
15950           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
15951      (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
15952             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15953             break 2
15954           fi
15955         fi
15956       done
15957     done
15958     IFS="$ac_save_IFS"
15959   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15960     ;;
15961 esac
15962 fi
15963 XGETTEXT="$ac_cv_path_XGETTEXT"
15964 if test "$XGETTEXT" != ":"; then
15965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15966 $as_echo "$XGETTEXT" >&6; }
15967 else
15968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15969 $as_echo "no" >&6; }
15970 fi
15971
15972     rm -f messages.po
15973
15974     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15975     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
15976     *) XGETTEXT_015=$XGETTEXT ;;
15977   esac
15978
15979
15980
15981 # Prepare PATH_SEPARATOR.
15982 # The user is always right.
15983 if test "${PATH_SEPARATOR+set}" != set; then
15984   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15985   # contains only /bin. Note that ksh looks also at the FPATH variable,
15986   # so we have to set that as well for the test.
15987   PATH_SEPARATOR=:
15988   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15989     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15990            || PATH_SEPARATOR=';'
15991        }
15992 fi
15993
15994 # Find out how to test for executable files. Don't use a zero-byte file,
15995 # as systems may use methods other than mode bits to determine executability.
15996 cat >conf$$.file <<_ASEOF
15997 #! /bin/sh
15998 exit 0
15999 _ASEOF
16000 chmod +x conf$$.file
16001 if test -x conf$$.file >/dev/null 2>&1; then
16002   ac_executable_p="test -x"
16003 else
16004   ac_executable_p="test -f"
16005 fi
16006 rm -f conf$$.file
16007
16008 # Extract the first word of "msgmerge", so it can be a program name with args.
16009 set dummy msgmerge; ac_word=$2
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16011 $as_echo_n "checking for $ac_word... " >&6; }
16012 if ${ac_cv_path_MSGMERGE+:} false; then :
16013   $as_echo_n "(cached) " >&6
16014 else
16015   case "$MSGMERGE" in
16016   [\\/]* | ?:[\\/]*)
16017     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16018     ;;
16019   *)
16020     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16021     for ac_dir in $PATH; do
16022       IFS="$ac_save_IFS"
16023       test -z "$ac_dir" && ac_dir=.
16024       for ac_exec_ext in '' $ac_executable_extensions; do
16025         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16026           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16027           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16028             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16029             break 2
16030           fi
16031         fi
16032       done
16033     done
16034     IFS="$ac_save_IFS"
16035   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16036     ;;
16037 esac
16038 fi
16039 MSGMERGE="$ac_cv_path_MSGMERGE"
16040 if test "$MSGMERGE" != ":"; then
16041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16042 $as_echo "$MSGMERGE" >&6; }
16043 else
16044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16045 $as_echo "no" >&6; }
16046 fi
16047
16048
16049         test -n "$localedir" || localedir='${datadir}/locale'
16050
16051
16052     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
16053
16054
16055   ac_config_commands="$ac_config_commands po-directories"
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16083 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16084 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
16085   $as_echo_n "(cached) " >&6
16086 else
16087   gt_save_LIBS="$LIBS"
16088      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
16089      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090 /* end confdefs.h.  */
16091 #include <CoreFoundation/CFPreferences.h>
16092 int
16093 main ()
16094 {
16095 CFPreferencesCopyAppValue(NULL, NULL)
16096   ;
16097   return 0;
16098 }
16099 _ACEOF
16100 if ac_fn_c_try_link "$LINENO"; then :
16101   gt_cv_func_CFPreferencesCopyAppValue=yes
16102 else
16103   gt_cv_func_CFPreferencesCopyAppValue=no
16104 fi
16105 rm -f core conftest.err conftest.$ac_objext \
16106     conftest$ac_exeext conftest.$ac_ext
16107      LIBS="$gt_save_LIBS"
16108 fi
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16110 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16111   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16112
16113 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16114
16115   fi
16116     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16117 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16118 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
16119   $as_echo_n "(cached) " >&6
16120 else
16121   gt_save_LIBS="$LIBS"
16122      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
16123      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16124 /* end confdefs.h.  */
16125 #include <CoreFoundation/CFLocale.h>
16126 int
16127 main ()
16128 {
16129 CFLocaleCopyCurrent();
16130   ;
16131   return 0;
16132 }
16133 _ACEOF
16134 if ac_fn_c_try_link "$LINENO"; then :
16135   gt_cv_func_CFLocaleCopyCurrent=yes
16136 else
16137   gt_cv_func_CFLocaleCopyCurrent=no
16138 fi
16139 rm -f core conftest.err conftest.$ac_objext \
16140     conftest$ac_exeext conftest.$ac_ext
16141      LIBS="$gt_save_LIBS"
16142 fi
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16144 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16145   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16146
16147 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16148
16149   fi
16150   INTL_MACOSX_LIBS=
16151   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16152     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16153   fi
16154
16155
16156
16157
16158
16159
16160   LIBINTL=
16161   LTLIBINTL=
16162   POSUB=
16163
16164     case " $gt_needs " in
16165     *" need-formatstring-macros "*) gt_api_version=3 ;;
16166     *" need-ngettext "*) gt_api_version=2 ;;
16167     *) gt_api_version=1 ;;
16168   esac
16169   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
16170   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
16171
16172     if test "$USE_NLS" = "yes"; then
16173     gt_use_preinstalled_gnugettext=no
16174
16175
16176         if test $gt_api_version -ge 3; then
16177           gt_revision_test_code='
16178 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16179 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
16180 #endif
16181 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
16182 '
16183         else
16184           gt_revision_test_code=
16185         fi
16186         if test $gt_api_version -ge 2; then
16187           gt_expression_test_code=' + * ngettext ("", "", 0)'
16188         else
16189           gt_expression_test_code=
16190         fi
16191
16192         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
16193 $as_echo_n "checking for GNU gettext in libc... " >&6; }
16194 if eval \${$gt_func_gnugettext_libc+:} false; then :
16195   $as_echo_n "(cached) " >&6
16196 else
16197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16198 /* end confdefs.h.  */
16199
16200 #include <libintl.h>
16201 $gt_revision_test_code
16202 extern int _nl_msg_cat_cntr;
16203 extern int *_nl_domain_bindings;
16204
16205 int
16206 main ()
16207 {
16208
16209 bindtextdomain ("", "");
16210 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
16211
16212   ;
16213   return 0;
16214 }
16215 _ACEOF
16216 if ac_fn_c_try_link "$LINENO"; then :
16217   eval "$gt_func_gnugettext_libc=yes"
16218 else
16219   eval "$gt_func_gnugettext_libc=no"
16220 fi
16221 rm -f core conftest.err conftest.$ac_objext \
16222     conftest$ac_exeext conftest.$ac_ext
16223 fi
16224 eval ac_res=\$$gt_func_gnugettext_libc
16225                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16226 $as_echo "$ac_res" >&6; }
16227
16228         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
16229
16230
16231
16232
16233
16234           am_save_CPPFLAGS="$CPPFLAGS"
16235
16236   for element in $INCICONV; do
16237     haveit=
16238     for x in $CPPFLAGS; do
16239
16240   acl_save_prefix="$prefix"
16241   prefix="$acl_final_prefix"
16242   acl_save_exec_prefix="$exec_prefix"
16243   exec_prefix="$acl_final_exec_prefix"
16244   eval x=\"$x\"
16245   exec_prefix="$acl_save_exec_prefix"
16246   prefix="$acl_save_prefix"
16247
16248       if test "X$x" = "X$element"; then
16249         haveit=yes
16250         break
16251       fi
16252     done
16253     if test -z "$haveit"; then
16254       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16255     fi
16256   done
16257
16258
16259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
16260 $as_echo_n "checking for iconv... " >&6; }
16261 if ${am_cv_func_iconv+:} false; then :
16262   $as_echo_n "(cached) " >&6
16263 else
16264
16265     am_cv_func_iconv="no, consider installing GNU libiconv"
16266     am_cv_lib_iconv=no
16267     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268 /* end confdefs.h.  */
16269
16270 #include <stdlib.h>
16271 #include <iconv.h>
16272
16273 int
16274 main ()
16275 {
16276 iconv_t cd = iconv_open("","");
16277            iconv(cd,NULL,NULL,NULL,NULL);
16278            iconv_close(cd);
16279   ;
16280   return 0;
16281 }
16282 _ACEOF
16283 if ac_fn_c_try_link "$LINENO"; then :
16284   am_cv_func_iconv=yes
16285 fi
16286 rm -f core conftest.err conftest.$ac_objext \
16287     conftest$ac_exeext conftest.$ac_ext
16288     if test "$am_cv_func_iconv" != yes; then
16289       am_save_LIBS="$LIBS"
16290       LIBS="$LIBS $LIBICONV"
16291       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16292 /* end confdefs.h.  */
16293
16294 #include <stdlib.h>
16295 #include <iconv.h>
16296
16297 int
16298 main ()
16299 {
16300 iconv_t cd = iconv_open("","");
16301              iconv(cd,NULL,NULL,NULL,NULL);
16302              iconv_close(cd);
16303   ;
16304   return 0;
16305 }
16306 _ACEOF
16307 if ac_fn_c_try_link "$LINENO"; then :
16308   am_cv_lib_iconv=yes
16309         am_cv_func_iconv=yes
16310 fi
16311 rm -f core conftest.err conftest.$ac_objext \
16312     conftest$ac_exeext conftest.$ac_ext
16313       LIBS="$am_save_LIBS"
16314     fi
16315
16316 fi
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
16318 $as_echo "$am_cv_func_iconv" >&6; }
16319   if test "$am_cv_func_iconv" = yes; then
16320     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
16321 $as_echo_n "checking for working iconv... " >&6; }
16322 if ${am_cv_func_iconv_works+:} false; then :
16323   $as_echo_n "(cached) " >&6
16324 else
16325
16326                   am_save_LIBS="$LIBS"
16327       if test $am_cv_lib_iconv = yes; then
16328         LIBS="$LIBS $LIBICONV"
16329       fi
16330       if test "$cross_compiling" = yes; then :
16331
16332          case "$host_os" in
16333            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
16334            *)            am_cv_func_iconv_works="guessing yes" ;;
16335          esac
16336
16337 else
16338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16339 /* end confdefs.h.  */
16340
16341 #include <iconv.h>
16342 #include <string.h>
16343 int main ()
16344 {
16345   int result = 0;
16346   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
16347      returns.  */
16348   {
16349     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
16350     if (cd_utf8_to_88591 != (iconv_t)(-1))
16351       {
16352         static const char input[] = "\342\202\254"; /* EURO SIGN */
16353         char buf[10];
16354         const char *inptr = input;
16355         size_t inbytesleft = strlen (input);
16356         char *outptr = buf;
16357         size_t outbytesleft = sizeof (buf);
16358         size_t res = iconv (cd_utf8_to_88591,
16359                             (char **) &inptr, &inbytesleft,
16360                             &outptr, &outbytesleft);
16361         if (res == 0)
16362           result |= 1;
16363         iconv_close (cd_utf8_to_88591);
16364       }
16365   }
16366   /* Test against Solaris 10 bug: Failures are not distinguishable from
16367      successful returns.  */
16368   {
16369     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
16370     if (cd_ascii_to_88591 != (iconv_t)(-1))
16371       {
16372         static const char input[] = "\263";
16373         char buf[10];
16374         const char *inptr = input;
16375         size_t inbytesleft = strlen (input);
16376         char *outptr = buf;
16377         size_t outbytesleft = sizeof (buf);
16378         size_t res = iconv (cd_ascii_to_88591,
16379                             (char **) &inptr, &inbytesleft,
16380                             &outptr, &outbytesleft);
16381         if (res == 0)
16382           result |= 2;
16383         iconv_close (cd_ascii_to_88591);
16384       }
16385   }
16386   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
16387   {
16388     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
16389     if (cd_88591_to_utf8 != (iconv_t)(-1))
16390       {
16391         static const char input[] = "\304";
16392         static char buf[2] = { (char)0xDE, (char)0xAD };
16393         const char *inptr = input;
16394         size_t inbytesleft = 1;
16395         char *outptr = buf;
16396         size_t outbytesleft = 1;
16397         size_t res = iconv (cd_88591_to_utf8,
16398                             (char **) &inptr, &inbytesleft,
16399                             &outptr, &outbytesleft);
16400         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
16401           result |= 4;
16402         iconv_close (cd_88591_to_utf8);
16403       }
16404   }
16405 #if 0 /* This bug could be worked around by the caller.  */
16406   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
16407   {
16408     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
16409     if (cd_88591_to_utf8 != (iconv_t)(-1))
16410       {
16411         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
16412         char buf[50];
16413         const char *inptr = input;
16414         size_t inbytesleft = strlen (input);
16415         char *outptr = buf;
16416         size_t outbytesleft = sizeof (buf);
16417         size_t res = iconv (cd_88591_to_utf8,
16418                             (char **) &inptr, &inbytesleft,
16419                             &outptr, &outbytesleft);
16420         if ((int)res > 0)
16421           result |= 8;
16422         iconv_close (cd_88591_to_utf8);
16423       }
16424   }
16425 #endif
16426   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
16427      provided.  */
16428   if (/* Try standardized names.  */
16429       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
16430       /* Try IRIX, OSF/1 names.  */
16431       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
16432       /* Try AIX names.  */
16433       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
16434       /* Try HP-UX names.  */
16435       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
16436     result |= 16;
16437   return result;
16438 }
16439 _ACEOF
16440 if ac_fn_c_try_run "$LINENO"; then :
16441   am_cv_func_iconv_works=yes
16442 else
16443   am_cv_func_iconv_works=no
16444 fi
16445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16446   conftest.$ac_objext conftest.beam conftest.$ac_ext
16447 fi
16448
16449       LIBS="$am_save_LIBS"
16450
16451 fi
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16453 $as_echo "$am_cv_func_iconv_works" >&6; }
16454     case "$am_cv_func_iconv_works" in
16455       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16456       *)   am_func_iconv=yes ;;
16457     esac
16458   else
16459     am_func_iconv=no am_cv_lib_iconv=no
16460   fi
16461   if test "$am_func_iconv" = yes; then
16462
16463 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
16464
16465   fi
16466   if test "$am_cv_lib_iconv" = yes; then
16467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16468 $as_echo_n "checking how to link with libiconv... " >&6; }
16469     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16470 $as_echo "$LIBICONV" >&6; }
16471   else
16472             CPPFLAGS="$am_save_CPPFLAGS"
16473     LIBICONV=
16474     LTLIBICONV=
16475   fi
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487     use_additional=yes
16488
16489   acl_save_prefix="$prefix"
16490   prefix="$acl_final_prefix"
16491   acl_save_exec_prefix="$exec_prefix"
16492   exec_prefix="$acl_final_exec_prefix"
16493
16494     eval additional_includedir=\"$includedir\"
16495     eval additional_libdir=\"$libdir\"
16496
16497   exec_prefix="$acl_save_exec_prefix"
16498   prefix="$acl_save_prefix"
16499
16500
16501 # Check whether --with-libintl-prefix was given.
16502 if test "${with_libintl_prefix+set}" = set; then :
16503   withval=$with_libintl_prefix;
16504     if test "X$withval" = "Xno"; then
16505       use_additional=no
16506     else
16507       if test "X$withval" = "X"; then
16508
16509   acl_save_prefix="$prefix"
16510   prefix="$acl_final_prefix"
16511   acl_save_exec_prefix="$exec_prefix"
16512   exec_prefix="$acl_final_exec_prefix"
16513
16514           eval additional_includedir=\"$includedir\"
16515           eval additional_libdir=\"$libdir\"
16516
16517   exec_prefix="$acl_save_exec_prefix"
16518   prefix="$acl_save_prefix"
16519
16520       else
16521         additional_includedir="$withval/include"
16522         additional_libdir="$withval/$acl_libdirstem"
16523         if test "$acl_libdirstem2" != "$acl_libdirstem" \
16524            && ! test -d "$withval/$acl_libdirstem"; then
16525           additional_libdir="$withval/$acl_libdirstem2"
16526         fi
16527       fi
16528     fi
16529
16530 fi
16531
16532       LIBINTL=
16533   LTLIBINTL=
16534   INCINTL=
16535   LIBINTL_PREFIX=
16536       HAVE_LIBINTL=
16537   rpathdirs=
16538   ltrpathdirs=
16539   names_already_handled=
16540   names_next_round='intl '
16541   while test -n "$names_next_round"; do
16542     names_this_round="$names_next_round"
16543     names_next_round=
16544     for name in $names_this_round; do
16545       already_handled=
16546       for n in $names_already_handled; do
16547         if test "$n" = "$name"; then
16548           already_handled=yes
16549           break
16550         fi
16551       done
16552       if test -z "$already_handled"; then
16553         names_already_handled="$names_already_handled $name"
16554                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16555         eval value=\"\$HAVE_LIB$uppername\"
16556         if test -n "$value"; then
16557           if test "$value" = yes; then
16558             eval value=\"\$LIB$uppername\"
16559             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16560             eval value=\"\$LTLIB$uppername\"
16561             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16562           else
16563                                     :
16564           fi
16565         else
16566                               found_dir=
16567           found_la=
16568           found_so=
16569           found_a=
16570           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16571           if test -n "$acl_shlibext"; then
16572             shrext=".$acl_shlibext"             # typically: shrext=.so
16573           else
16574             shrext=
16575           fi
16576           if test $use_additional = yes; then
16577             dir="$additional_libdir"
16578                                     if test -n "$acl_shlibext"; then
16579               if test -f "$dir/$libname$shrext"; then
16580                 found_dir="$dir"
16581                 found_so="$dir/$libname$shrext"
16582               else
16583                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16584                   ver=`(cd "$dir" && \
16585                         for f in "$libname$shrext".*; do echo "$f"; done \
16586                         | sed -e "s,^$libname$shrext\\\\.,," \
16587                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16588                         | sed 1q ) 2>/dev/null`
16589                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16590                     found_dir="$dir"
16591                     found_so="$dir/$libname$shrext.$ver"
16592                   fi
16593                 else
16594                   eval library_names=\"$acl_library_names_spec\"
16595                   for f in $library_names; do
16596                     if test -f "$dir/$f"; then
16597                       found_dir="$dir"
16598                       found_so="$dir/$f"
16599                       break
16600                     fi
16601                   done
16602                 fi
16603               fi
16604             fi
16605                         if test "X$found_dir" = "X"; then
16606               if test -f "$dir/$libname.$acl_libext"; then
16607                 found_dir="$dir"
16608                 found_a="$dir/$libname.$acl_libext"
16609               fi
16610             fi
16611             if test "X$found_dir" != "X"; then
16612               if test -f "$dir/$libname.la"; then
16613                 found_la="$dir/$libname.la"
16614               fi
16615             fi
16616           fi
16617           if test "X$found_dir" = "X"; then
16618             for x in $LDFLAGS $LTLIBINTL; do
16619
16620   acl_save_prefix="$prefix"
16621   prefix="$acl_final_prefix"
16622   acl_save_exec_prefix="$exec_prefix"
16623   exec_prefix="$acl_final_exec_prefix"
16624   eval x=\"$x\"
16625   exec_prefix="$acl_save_exec_prefix"
16626   prefix="$acl_save_prefix"
16627
16628               case "$x" in
16629                 -L*)
16630                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16631                                     if test -n "$acl_shlibext"; then
16632                     if test -f "$dir/$libname$shrext"; then
16633                       found_dir="$dir"
16634                       found_so="$dir/$libname$shrext"
16635                     else
16636                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16637                         ver=`(cd "$dir" && \
16638                               for f in "$libname$shrext".*; do echo "$f"; done \
16639                               | sed -e "s,^$libname$shrext\\\\.,," \
16640                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16641                               | sed 1q ) 2>/dev/null`
16642                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16643                           found_dir="$dir"
16644                           found_so="$dir/$libname$shrext.$ver"
16645                         fi
16646                       else
16647                         eval library_names=\"$acl_library_names_spec\"
16648                         for f in $library_names; do
16649                           if test -f "$dir/$f"; then
16650                             found_dir="$dir"
16651                             found_so="$dir/$f"
16652                             break
16653                           fi
16654                         done
16655                       fi
16656                     fi
16657                   fi
16658                                     if test "X$found_dir" = "X"; then
16659                     if test -f "$dir/$libname.$acl_libext"; then
16660                       found_dir="$dir"
16661                       found_a="$dir/$libname.$acl_libext"
16662                     fi
16663                   fi
16664                   if test "X$found_dir" != "X"; then
16665                     if test -f "$dir/$libname.la"; then
16666                       found_la="$dir/$libname.la"
16667                     fi
16668                   fi
16669                   ;;
16670               esac
16671               if test "X$found_dir" != "X"; then
16672                 break
16673               fi
16674             done
16675           fi
16676           if test "X$found_dir" != "X"; then
16677                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
16678             if test "X$found_so" != "X"; then
16679                                                         if test "$enable_rpath" = no \
16680                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16681                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16682                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16683               else
16684                                                                                 haveit=
16685                 for x in $ltrpathdirs; do
16686                   if test "X$x" = "X$found_dir"; then
16687                     haveit=yes
16688                     break
16689                   fi
16690                 done
16691                 if test -z "$haveit"; then
16692                   ltrpathdirs="$ltrpathdirs $found_dir"
16693                 fi
16694                                 if test "$acl_hardcode_direct" = yes; then
16695                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16696                 else
16697                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16698                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16699                                                             haveit=
16700                     for x in $rpathdirs; do
16701                       if test "X$x" = "X$found_dir"; then
16702                         haveit=yes
16703                         break
16704                       fi
16705                     done
16706                     if test -z "$haveit"; then
16707                       rpathdirs="$rpathdirs $found_dir"
16708                     fi
16709                   else
16710                                                                                 haveit=
16711                     for x in $LDFLAGS $LIBINTL; do
16712
16713   acl_save_prefix="$prefix"
16714   prefix="$acl_final_prefix"
16715   acl_save_exec_prefix="$exec_prefix"
16716   exec_prefix="$acl_final_exec_prefix"
16717   eval x=\"$x\"
16718   exec_prefix="$acl_save_exec_prefix"
16719   prefix="$acl_save_prefix"
16720
16721                       if test "X$x" = "X-L$found_dir"; then
16722                         haveit=yes
16723                         break
16724                       fi
16725                     done
16726                     if test -z "$haveit"; then
16727                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16728                     fi
16729                     if test "$acl_hardcode_minus_L" != no; then
16730                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16731                     else
16732                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16733                     fi
16734                   fi
16735                 fi
16736               fi
16737             else
16738               if test "X$found_a" != "X"; then
16739                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16740               else
16741                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16742               fi
16743             fi
16744                         additional_includedir=
16745             case "$found_dir" in
16746               */$acl_libdirstem | */$acl_libdirstem/)
16747                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16748                 if test "$name" = 'intl'; then
16749                   LIBINTL_PREFIX="$basedir"
16750                 fi
16751                 additional_includedir="$basedir/include"
16752                 ;;
16753               */$acl_libdirstem2 | */$acl_libdirstem2/)
16754                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16755                 if test "$name" = 'intl'; then
16756                   LIBINTL_PREFIX="$basedir"
16757                 fi
16758                 additional_includedir="$basedir/include"
16759                 ;;
16760             esac
16761             if test "X$additional_includedir" != "X"; then
16762                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16763                 haveit=
16764                 if test "X$additional_includedir" = "X/usr/local/include"; then
16765                   if test -n "$GCC"; then
16766                     case $host_os in
16767                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16768                     esac
16769                   fi
16770                 fi
16771                 if test -z "$haveit"; then
16772                   for x in $CPPFLAGS $INCINTL; do
16773
16774   acl_save_prefix="$prefix"
16775   prefix="$acl_final_prefix"
16776   acl_save_exec_prefix="$exec_prefix"
16777   exec_prefix="$acl_final_exec_prefix"
16778   eval x=\"$x\"
16779   exec_prefix="$acl_save_exec_prefix"
16780   prefix="$acl_save_prefix"
16781
16782                     if test "X$x" = "X-I$additional_includedir"; then
16783                       haveit=yes
16784                       break
16785                     fi
16786                   done
16787                   if test -z "$haveit"; then
16788                     if test -d "$additional_includedir"; then
16789                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
16790                     fi
16791                   fi
16792                 fi
16793               fi
16794             fi
16795                         if test -n "$found_la"; then
16796                                                         save_libdir="$libdir"
16797               case "$found_la" in
16798                 */* | *\\*) . "$found_la" ;;
16799                 *) . "./$found_la" ;;
16800               esac
16801               libdir="$save_libdir"
16802                             for dep in $dependency_libs; do
16803                 case "$dep" in
16804                   -L*)
16805                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16806                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16807                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16808                       haveit=
16809                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16810                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16811                         if test -n "$GCC"; then
16812                           case $host_os in
16813                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16814                           esac
16815                         fi
16816                       fi
16817                       if test -z "$haveit"; then
16818                         haveit=
16819                         for x in $LDFLAGS $LIBINTL; do
16820
16821   acl_save_prefix="$prefix"
16822   prefix="$acl_final_prefix"
16823   acl_save_exec_prefix="$exec_prefix"
16824   exec_prefix="$acl_final_exec_prefix"
16825   eval x=\"$x\"
16826   exec_prefix="$acl_save_exec_prefix"
16827   prefix="$acl_save_prefix"
16828
16829                           if test "X$x" = "X-L$additional_libdir"; then
16830                             haveit=yes
16831                             break
16832                           fi
16833                         done
16834                         if test -z "$haveit"; then
16835                           if test -d "$additional_libdir"; then
16836                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
16837                           fi
16838                         fi
16839                         haveit=
16840                         for x in $LDFLAGS $LTLIBINTL; do
16841
16842   acl_save_prefix="$prefix"
16843   prefix="$acl_final_prefix"
16844   acl_save_exec_prefix="$exec_prefix"
16845   exec_prefix="$acl_final_exec_prefix"
16846   eval x=\"$x\"
16847   exec_prefix="$acl_save_exec_prefix"
16848   prefix="$acl_save_prefix"
16849
16850                           if test "X$x" = "X-L$additional_libdir"; then
16851                             haveit=yes
16852                             break
16853                           fi
16854                         done
16855                         if test -z "$haveit"; then
16856                           if test -d "$additional_libdir"; then
16857                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16858                           fi
16859                         fi
16860                       fi
16861                     fi
16862                     ;;
16863                   -R*)
16864                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16865                     if test "$enable_rpath" != no; then
16866                                                                   haveit=
16867                       for x in $rpathdirs; do
16868                         if test "X$x" = "X$dir"; then
16869                           haveit=yes
16870                           break
16871                         fi
16872                       done
16873                       if test -z "$haveit"; then
16874                         rpathdirs="$rpathdirs $dir"
16875                       fi
16876                                                                   haveit=
16877                       for x in $ltrpathdirs; do
16878                         if test "X$x" = "X$dir"; then
16879                           haveit=yes
16880                           break
16881                         fi
16882                       done
16883                       if test -z "$haveit"; then
16884                         ltrpathdirs="$ltrpathdirs $dir"
16885                       fi
16886                     fi
16887                     ;;
16888                   -l*)
16889                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16890                     ;;
16891                   *.la)
16892                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16893                     ;;
16894                   *)
16895                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16896                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16897                     ;;
16898                 esac
16899               done
16900             fi
16901           else
16902                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16903             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16904           fi
16905         fi
16906       fi
16907     done
16908   done
16909   if test "X$rpathdirs" != "X"; then
16910     if test -n "$acl_hardcode_libdir_separator"; then
16911                         alldirs=
16912       for found_dir in $rpathdirs; do
16913         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16914       done
16915             acl_save_libdir="$libdir"
16916       libdir="$alldirs"
16917       eval flag=\"$acl_hardcode_libdir_flag_spec\"
16918       libdir="$acl_save_libdir"
16919       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16920     else
16921             for found_dir in $rpathdirs; do
16922         acl_save_libdir="$libdir"
16923         libdir="$found_dir"
16924         eval flag=\"$acl_hardcode_libdir_flag_spec\"
16925         libdir="$acl_save_libdir"
16926         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16927       done
16928     fi
16929   fi
16930   if test "X$ltrpathdirs" != "X"; then
16931             for found_dir in $ltrpathdirs; do
16932       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16933     done
16934   fi
16935
16936
16937
16938
16939
16940
16941           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16942 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
16943 if eval \${$gt_func_gnugettext_libintl+:} false; then :
16944   $as_echo_n "(cached) " >&6
16945 else
16946   gt_save_CPPFLAGS="$CPPFLAGS"
16947             CPPFLAGS="$CPPFLAGS $INCINTL"
16948             gt_save_LIBS="$LIBS"
16949             LIBS="$LIBS $LIBINTL"
16950                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16951 /* end confdefs.h.  */
16952
16953 #include <libintl.h>
16954 $gt_revision_test_code
16955 extern int _nl_msg_cat_cntr;
16956 extern
16957 #ifdef __cplusplus
16958 "C"
16959 #endif
16960 const char *_nl_expand_alias (const char *);
16961
16962 int
16963 main ()
16964 {
16965
16966 bindtextdomain ("", "");
16967 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16968
16969   ;
16970   return 0;
16971 }
16972 _ACEOF
16973 if ac_fn_c_try_link "$LINENO"; then :
16974   eval "$gt_func_gnugettext_libintl=yes"
16975 else
16976   eval "$gt_func_gnugettext_libintl=no"
16977 fi
16978 rm -f core conftest.err conftest.$ac_objext \
16979     conftest$ac_exeext conftest.$ac_ext
16980                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
16981               LIBS="$LIBS $LIBICONV"
16982               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16983 /* end confdefs.h.  */
16984
16985 #include <libintl.h>
16986 $gt_revision_test_code
16987 extern int _nl_msg_cat_cntr;
16988 extern
16989 #ifdef __cplusplus
16990 "C"
16991 #endif
16992 const char *_nl_expand_alias (const char *);
16993
16994 int
16995 main ()
16996 {
16997
16998 bindtextdomain ("", "");
16999 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17000
17001   ;
17002   return 0;
17003 }
17004 _ACEOF
17005 if ac_fn_c_try_link "$LINENO"; then :
17006   LIBINTL="$LIBINTL $LIBICONV"
17007                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17008                  eval "$gt_func_gnugettext_libintl=yes"
17009
17010 fi
17011 rm -f core conftest.err conftest.$ac_objext \
17012     conftest$ac_exeext conftest.$ac_ext
17013             fi
17014             CPPFLAGS="$gt_save_CPPFLAGS"
17015             LIBS="$gt_save_LIBS"
17016 fi
17017 eval ac_res=\$$gt_func_gnugettext_libintl
17018                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17019 $as_echo "$ac_res" >&6; }
17020         fi
17021
17022                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
17023            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
17024                 && test "$PACKAGE" != gettext-runtime \
17025                 && test "$PACKAGE" != gettext-tools; }; then
17026           gt_use_preinstalled_gnugettext=yes
17027         else
17028                     LIBINTL=
17029           LTLIBINTL=
17030           INCINTL=
17031         fi
17032
17033
17034
17035     if test -n "$INTL_MACOSX_LIBS"; then
17036       if test "$gt_use_preinstalled_gnugettext" = "yes" \
17037          || test "$nls_cv_use_gnu_gettext" = "yes"; then
17038                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17039         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17040       fi
17041     fi
17042
17043     if test "$gt_use_preinstalled_gnugettext" = "yes" \
17044        || test "$nls_cv_use_gnu_gettext" = "yes"; then
17045
17046 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17047
17048     else
17049       USE_NLS=no
17050     fi
17051   fi
17052
17053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17054 $as_echo_n "checking whether to use NLS... " >&6; }
17055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17056 $as_echo "$USE_NLS" >&6; }
17057   if test "$USE_NLS" = "yes"; then
17058     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17059 $as_echo_n "checking where the gettext function comes from... " >&6; }
17060     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17061       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
17062         gt_source="external libintl"
17063       else
17064         gt_source="libc"
17065       fi
17066     else
17067       gt_source="included intl directory"
17068     fi
17069     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17070 $as_echo "$gt_source" >&6; }
17071   fi
17072
17073   if test "$USE_NLS" = "yes"; then
17074
17075     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17076       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
17077         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17078 $as_echo_n "checking how to link with libintl... " >&6; }
17079         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17080 $as_echo "$LIBINTL" >&6; }
17081
17082   for element in $INCINTL; do
17083     haveit=
17084     for x in $CPPFLAGS; do
17085
17086   acl_save_prefix="$prefix"
17087   prefix="$acl_final_prefix"
17088   acl_save_exec_prefix="$exec_prefix"
17089   exec_prefix="$acl_final_exec_prefix"
17090   eval x=\"$x\"
17091   exec_prefix="$acl_save_exec_prefix"
17092   prefix="$acl_save_prefix"
17093
17094       if test "X$x" = "X$element"; then
17095         haveit=yes
17096         break
17097       fi
17098     done
17099     if test -z "$haveit"; then
17100       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17101     fi
17102   done
17103
17104       fi
17105
17106
17107 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17108
17109
17110 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17111
17112     fi
17113
17114         POSUB=po
17115   fi
17116
17117
17118
17119     INTLLIBS="$LIBINTL"
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129 saved_LIBS=$LIBS
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poptConfigFileToString in -lpopt" >&5
17131 $as_echo_n "checking for poptConfigFileToString in -lpopt... " >&6; }
17132 if ${ac_cv_lib_popt_poptConfigFileToString+:} false; then :
17133   $as_echo_n "(cached) " >&6
17134 else
17135   ac_check_lib_save_LIBS=$LIBS
17136 LIBS="-lpopt  $LIBS"
17137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138 /* end confdefs.h.  */
17139
17140 /* Override any GCC internal prototype to avoid an error.
17141    Use char because int might match the return type of a GCC
17142    builtin and then its argument prototype would still apply.  */
17143 #ifdef __cplusplus
17144 extern "C"
17145 #endif
17146 char poptConfigFileToString ();
17147 int
17148 main ()
17149 {
17150 return poptConfigFileToString ();
17151   ;
17152   return 0;
17153 }
17154 _ACEOF
17155 if ac_fn_c_try_link "$LINENO"; then :
17156   ac_cv_lib_popt_poptConfigFileToString=yes
17157 else
17158   ac_cv_lib_popt_poptConfigFileToString=no
17159 fi
17160 rm -f core conftest.err conftest.$ac_objext \
17161     conftest$ac_exeext conftest.$ac_ext
17162 LIBS=$ac_check_lib_save_LIBS
17163 fi
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptConfigFileToString" >&5
17165 $as_echo "$ac_cv_lib_popt_poptConfigFileToString" >&6; }
17166 if test "x$ac_cv_lib_popt_poptConfigFileToString" = xyes; then :
17167   cat >>confdefs.h <<_ACEOF
17168 #define HAVE_LIBPOPT 1
17169 _ACEOF
17170
17171   LIBS="-lpopt $LIBS"
17172
17173 else
17174   as_fn_error $? "You need popt 1.7 or newer to compile." "$LINENO" 5
17175 fi
17176
17177 POPT_LIBS=$LIBS
17178
17179 LIBS=$saved_LIBS
17180
17181 # Check whether --enable-fips was given.
17182 if test "${enable_fips+set}" = set; then :
17183   enableval=$enable_fips;
17184 fi
17185
17186 if test "x$enable_fips" = "xyes"; then
17187
17188 $as_echo "#define ENABLE_FIPS 1" >>confdefs.h
17189
17190
17191         if test "x$enable_static" = "xyes" -o "x$enable_static_cryptsetup" = "xyes" ; then
17192                 as_fn_error $? "Static build is not compatible with FIPS." "$LINENO" 5
17193         fi
17194 fi
17195
17196
17197
17198 # Check whether --enable-pwquality was given.
17199 if test "${enable_pwquality+set}" = set; then :
17200   enableval=$enable_pwquality;
17201 fi
17202
17203
17204 if test "x$enable_pwquality" = "xyes"; then
17205
17206 $as_echo "#define ENABLE_PWQUALITY 1" >>confdefs.h
17207
17208
17209 pkg_failed=no
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pwquality >= 1.0.0" >&5
17211 $as_echo_n "checking for pwquality >= 1.0.0... " >&6; }
17212
17213 if test -n "$PWQUALITY_CFLAGS"; then
17214     pkg_cv_PWQUALITY_CFLAGS="$PWQUALITY_CFLAGS"
17215  elif test -n "$PKG_CONFIG"; then
17216     if test -n "$PKG_CONFIG" && \
17217     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pwquality >= 1.0.0\""; } >&5
17218   ($PKG_CONFIG --exists --print-errors "pwquality >= 1.0.0") 2>&5
17219   ac_status=$?
17220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17221   test $ac_status = 0; }; then
17222   pkg_cv_PWQUALITY_CFLAGS=`$PKG_CONFIG --cflags "pwquality >= 1.0.0" 2>/dev/null`
17223                       test "x$?" != "x0" && pkg_failed=yes
17224 else
17225   pkg_failed=yes
17226 fi
17227  else
17228     pkg_failed=untried
17229 fi
17230 if test -n "$PWQUALITY_LIBS"; then
17231     pkg_cv_PWQUALITY_LIBS="$PWQUALITY_LIBS"
17232  elif test -n "$PKG_CONFIG"; then
17233     if test -n "$PKG_CONFIG" && \
17234     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pwquality >= 1.0.0\""; } >&5
17235   ($PKG_CONFIG --exists --print-errors "pwquality >= 1.0.0") 2>&5
17236   ac_status=$?
17237   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17238   test $ac_status = 0; }; then
17239   pkg_cv_PWQUALITY_LIBS=`$PKG_CONFIG --libs "pwquality >= 1.0.0" 2>/dev/null`
17240                       test "x$?" != "x0" && pkg_failed=yes
17241 else
17242   pkg_failed=yes
17243 fi
17244  else
17245     pkg_failed=untried
17246 fi
17247
17248
17249
17250 if test $pkg_failed = yes; then
17251         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17252 $as_echo "no" >&6; }
17253
17254 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17255         _pkg_short_errors_supported=yes
17256 else
17257         _pkg_short_errors_supported=no
17258 fi
17259         if test $_pkg_short_errors_supported = yes; then
17260                 PWQUALITY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pwquality >= 1.0.0" 2>&1`
17261         else
17262                 PWQUALITY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pwquality >= 1.0.0" 2>&1`
17263         fi
17264         # Put the nasty error message in config.log where it belongs
17265         echo "$PWQUALITY_PKG_ERRORS" >&5
17266
17267         as_fn_error $? "You need pwquality library." "$LINENO" 5
17268 elif test $pkg_failed = untried; then
17269         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17270 $as_echo "no" >&6; }
17271         as_fn_error $? "You need pwquality library." "$LINENO" 5
17272 else
17273         PWQUALITY_CFLAGS=$pkg_cv_PWQUALITY_CFLAGS
17274         PWQUALITY_LIBS=$pkg_cv_PWQUALITY_LIBS
17275         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17276 $as_echo "yes" >&6; }
17277
17278 fi
17279
17280                 PWQUALITY_STATIC_LIBS="$PWQUALITY_LIBS -lcrack -lz"
17281 fi
17282
17283 # Check whether --enable-passwdqc was given.
17284 if test "${enable_passwdqc+set}" = set; then :
17285   enableval=$enable_passwdqc;
17286 fi
17287
17288
17289 case "$enable_passwdqc" in
17290         ""|yes|no) use_passwdqc_config="" ;;
17291         /*) use_passwdqc_config="$enable_passwdqc"; enable_passwdqc=yes ;;
17292         *) as_fn_error $? "Unrecognized --enable-passwdqc parameter." "$LINENO" 5 ;;
17293 esac
17294
17295 cat >>confdefs.h <<_ACEOF
17296 #define PASSWDQC_CONFIG_FILE "$use_passwdqc_config"
17297 _ACEOF
17298
17299
17300 if test "x$enable_passwdqc" = "xyes"; then
17301
17302 $as_echo "#define ENABLE_PASSWDQC 1" >>confdefs.h
17303
17304
17305         PASSWDQC_LIBS="-lpasswdqc"
17306 fi
17307
17308 if test "x$enable_pwquality$enable_passwdqc" = "xyesyes"; then
17309         as_fn_error $? "--enable-pwquality and --enable-passwdqc are mutually incompatible." "$LINENO" 5
17310 fi
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323 saved_LIBS=$LIBS
17324
17325 # Check whether --enable-static-cryptsetup was given.
17326 if test "${enable_static_cryptsetup+set}" = set; then :
17327   enableval=$enable_static_cryptsetup;
17328 fi
17329
17330 if test "x$enable_static_cryptsetup" = "xyes"; then
17331         if test "x$enable_static" = "xno"; then
17332                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Requested static cryptsetup build, enabling static library." >&5
17333 $as_echo "$as_me: WARNING: Requested static cryptsetup build, enabling static library." >&2;}
17334                 enable_static=yes
17335         fi
17336 fi
17337  if test "x$enable_static_cryptsetup" = "xyes"; then
17338   STATIC_TOOLS_TRUE=
17339   STATIC_TOOLS_FALSE='#'
17340 else
17341   STATIC_TOOLS_TRUE='#'
17342   STATIC_TOOLS_FALSE=
17343 fi
17344
17345
17346 # Check whether --enable-cryptsetup was given.
17347 if test "${enable_cryptsetup+set}" = set; then :
17348   enableval=$enable_cryptsetup;
17349 else
17350   enable_cryptsetup=yes
17351 fi
17352
17353  if test "x$enable_cryptsetup" = "xyes"; then
17354   CRYPTSETUP_TRUE=
17355   CRYPTSETUP_FALSE='#'
17356 else
17357   CRYPTSETUP_TRUE='#'
17358   CRYPTSETUP_FALSE=
17359 fi
17360
17361
17362 # Check whether --enable-veritysetup was given.
17363 if test "${enable_veritysetup+set}" = set; then :
17364   enableval=$enable_veritysetup;
17365 else
17366   enable_veritysetup=yes
17367 fi
17368
17369  if test "x$enable_veritysetup" = "xyes"; then
17370   VERITYSETUP_TRUE=
17371   VERITYSETUP_FALSE='#'
17372 else
17373   VERITYSETUP_TRUE='#'
17374   VERITYSETUP_FALSE=
17375 fi
17376
17377
17378 # Check whether --enable-cryptsetup-reencrypt was given.
17379 if test "${enable_cryptsetup_reencrypt+set}" = set; then :
17380   enableval=$enable_cryptsetup_reencrypt;
17381 else
17382   enable_cryptsetup_reencrypt=yes
17383 fi
17384
17385  if test "x$enable_cryptsetup_reencrypt" = "xyes"; then
17386   REENCRYPT_TRUE=
17387   REENCRYPT_FALSE='#'
17388 else
17389   REENCRYPT_TRUE='#'
17390   REENCRYPT_FALSE=
17391 fi
17392
17393
17394 # Check whether --enable-integritysetup was given.
17395 if test "${enable_integritysetup+set}" = set; then :
17396   enableval=$enable_integritysetup;
17397 else
17398   enable_integritysetup=yes
17399 fi
17400
17401  if test "x$enable_integritysetup" = "xyes"; then
17402   INTEGRITYSETUP_TRUE=
17403   INTEGRITYSETUP_FALSE='#'
17404 else
17405   INTEGRITYSETUP_TRUE='#'
17406   INTEGRITYSETUP_FALSE=
17407 fi
17408
17409
17410 # Check whether --enable-selinux was given.
17411 if test "${enable_selinux+set}" = set; then :
17412   enableval=$enable_selinux;
17413 else
17414   enable_selinux=yes
17415 fi
17416
17417
17418 # Check whether --enable-udev was given.
17419 if test "${enable_udev+set}" = set; then :
17420   enableval=$enable_udev;
17421 else
17422   enable_udev=yes
17423 fi
17424
17425
17426
17427 pkg_failed=no
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devmapper >= 1.02.03" >&5
17429 $as_echo_n "checking for devmapper >= 1.02.03... " >&6; }
17430
17431 if test -n "$DEVMAPPER_CFLAGS"; then
17432     pkg_cv_DEVMAPPER_CFLAGS="$DEVMAPPER_CFLAGS"
17433  elif test -n "$PKG_CONFIG"; then
17434     if test -n "$PKG_CONFIG" && \
17435     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.03\""; } >&5
17436   ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.03") 2>&5
17437   ac_status=$?
17438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17439   test $ac_status = 0; }; then
17440   pkg_cv_DEVMAPPER_CFLAGS=`$PKG_CONFIG --cflags "devmapper >= 1.02.03" 2>/dev/null`
17441                       test "x$?" != "x0" && pkg_failed=yes
17442 else
17443   pkg_failed=yes
17444 fi
17445  else
17446     pkg_failed=untried
17447 fi
17448 if test -n "$DEVMAPPER_LIBS"; then
17449     pkg_cv_DEVMAPPER_LIBS="$DEVMAPPER_LIBS"
17450  elif test -n "$PKG_CONFIG"; then
17451     if test -n "$PKG_CONFIG" && \
17452     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.03\""; } >&5
17453   ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.03") 2>&5
17454   ac_status=$?
17455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17456   test $ac_status = 0; }; then
17457   pkg_cv_DEVMAPPER_LIBS=`$PKG_CONFIG --libs "devmapper >= 1.02.03" 2>/dev/null`
17458                       test "x$?" != "x0" && pkg_failed=yes
17459 else
17460   pkg_failed=yes
17461 fi
17462  else
17463     pkg_failed=untried
17464 fi
17465
17466
17467
17468 if test $pkg_failed = yes; then
17469         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17470 $as_echo "no" >&6; }
17471
17472 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17473         _pkg_short_errors_supported=yes
17474 else
17475         _pkg_short_errors_supported=no
17476 fi
17477         if test $_pkg_short_errors_supported = yes; then
17478                 DEVMAPPER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "devmapper >= 1.02.03" 2>&1`
17479         else
17480                 DEVMAPPER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "devmapper >= 1.02.03" 2>&1`
17481         fi
17482         # Put the nasty error message in config.log where it belongs
17483         echo "$DEVMAPPER_PKG_ERRORS" >&5
17484
17485
17486         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_name in -ldevmapper" >&5
17487 $as_echo_n "checking for dm_task_set_name in -ldevmapper... " >&6; }
17488 if ${ac_cv_lib_devmapper_dm_task_set_name+:} false; then :
17489   $as_echo_n "(cached) " >&6
17490 else
17491   ac_check_lib_save_LIBS=$LIBS
17492 LIBS="-ldevmapper  $LIBS"
17493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17494 /* end confdefs.h.  */
17495
17496 /* Override any GCC internal prototype to avoid an error.
17497    Use char because int might match the return type of a GCC
17498    builtin and then its argument prototype would still apply.  */
17499 #ifdef __cplusplus
17500 extern "C"
17501 #endif
17502 char dm_task_set_name ();
17503 int
17504 main ()
17505 {
17506 return dm_task_set_name ();
17507   ;
17508   return 0;
17509 }
17510 _ACEOF
17511 if ac_fn_c_try_link "$LINENO"; then :
17512   ac_cv_lib_devmapper_dm_task_set_name=yes
17513 else
17514   ac_cv_lib_devmapper_dm_task_set_name=no
17515 fi
17516 rm -f core conftest.err conftest.$ac_objext \
17517     conftest$ac_exeext conftest.$ac_ext
17518 LIBS=$ac_check_lib_save_LIBS
17519 fi
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_name" >&5
17521 $as_echo "$ac_cv_lib_devmapper_dm_task_set_name" >&6; }
17522 if test "x$ac_cv_lib_devmapper_dm_task_set_name" = xyes; then :
17523   cat >>confdefs.h <<_ACEOF
17524 #define HAVE_LIBDEVMAPPER 1
17525 _ACEOF
17526
17527   LIBS="-ldevmapper $LIBS"
17528
17529 else
17530   as_fn_error $? "You need the device-mapper library." "$LINENO" 5
17531 fi
17532
17533         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_message in -ldevmapper" >&5
17534 $as_echo_n "checking for dm_task_set_message in -ldevmapper... " >&6; }
17535 if ${ac_cv_lib_devmapper_dm_task_set_message+:} false; then :
17536   $as_echo_n "(cached) " >&6
17537 else
17538   ac_check_lib_save_LIBS=$LIBS
17539 LIBS="-ldevmapper  $LIBS"
17540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17541 /* end confdefs.h.  */
17542
17543 /* Override any GCC internal prototype to avoid an error.
17544    Use char because int might match the return type of a GCC
17545    builtin and then its argument prototype would still apply.  */
17546 #ifdef __cplusplus
17547 extern "C"
17548 #endif
17549 char dm_task_set_message ();
17550 int
17551 main ()
17552 {
17553 return dm_task_set_message ();
17554   ;
17555   return 0;
17556 }
17557 _ACEOF
17558 if ac_fn_c_try_link "$LINENO"; then :
17559   ac_cv_lib_devmapper_dm_task_set_message=yes
17560 else
17561   ac_cv_lib_devmapper_dm_task_set_message=no
17562 fi
17563 rm -f core conftest.err conftest.$ac_objext \
17564     conftest$ac_exeext conftest.$ac_ext
17565 LIBS=$ac_check_lib_save_LIBS
17566 fi
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_message" >&5
17568 $as_echo "$ac_cv_lib_devmapper_dm_task_set_message" >&6; }
17569 if test "x$ac_cv_lib_devmapper_dm_task_set_message" = xyes; then :
17570   cat >>confdefs.h <<_ACEOF
17571 #define HAVE_LIBDEVMAPPER 1
17572 _ACEOF
17573
17574   LIBS="-ldevmapper $LIBS"
17575
17576 else
17577   as_fn_error $? "The device-mapper library on your system is too old." "$LINENO" 5
17578 fi
17579
17580         DEVMAPPER_LIBS=$LIBS
17581
17582 elif test $pkg_failed = untried; then
17583         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17584 $as_echo "no" >&6; }
17585
17586         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_name in -ldevmapper" >&5
17587 $as_echo_n "checking for dm_task_set_name in -ldevmapper... " >&6; }
17588 if ${ac_cv_lib_devmapper_dm_task_set_name+:} false; then :
17589   $as_echo_n "(cached) " >&6
17590 else
17591   ac_check_lib_save_LIBS=$LIBS
17592 LIBS="-ldevmapper  $LIBS"
17593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17594 /* end confdefs.h.  */
17595
17596 /* Override any GCC internal prototype to avoid an error.
17597    Use char because int might match the return type of a GCC
17598    builtin and then its argument prototype would still apply.  */
17599 #ifdef __cplusplus
17600 extern "C"
17601 #endif
17602 char dm_task_set_name ();
17603 int
17604 main ()
17605 {
17606 return dm_task_set_name ();
17607   ;
17608   return 0;
17609 }
17610 _ACEOF
17611 if ac_fn_c_try_link "$LINENO"; then :
17612   ac_cv_lib_devmapper_dm_task_set_name=yes
17613 else
17614   ac_cv_lib_devmapper_dm_task_set_name=no
17615 fi
17616 rm -f core conftest.err conftest.$ac_objext \
17617     conftest$ac_exeext conftest.$ac_ext
17618 LIBS=$ac_check_lib_save_LIBS
17619 fi
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_name" >&5
17621 $as_echo "$ac_cv_lib_devmapper_dm_task_set_name" >&6; }
17622 if test "x$ac_cv_lib_devmapper_dm_task_set_name" = xyes; then :
17623   cat >>confdefs.h <<_ACEOF
17624 #define HAVE_LIBDEVMAPPER 1
17625 _ACEOF
17626
17627   LIBS="-ldevmapper $LIBS"
17628
17629 else
17630   as_fn_error $? "You need the device-mapper library." "$LINENO" 5
17631 fi
17632
17633         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_message in -ldevmapper" >&5
17634 $as_echo_n "checking for dm_task_set_message in -ldevmapper... " >&6; }
17635 if ${ac_cv_lib_devmapper_dm_task_set_message+:} false; then :
17636   $as_echo_n "(cached) " >&6
17637 else
17638   ac_check_lib_save_LIBS=$LIBS
17639 LIBS="-ldevmapper  $LIBS"
17640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17641 /* end confdefs.h.  */
17642
17643 /* Override any GCC internal prototype to avoid an error.
17644    Use char because int might match the return type of a GCC
17645    builtin and then its argument prototype would still apply.  */
17646 #ifdef __cplusplus
17647 extern "C"
17648 #endif
17649 char dm_task_set_message ();
17650 int
17651 main ()
17652 {
17653 return dm_task_set_message ();
17654   ;
17655   return 0;
17656 }
17657 _ACEOF
17658 if ac_fn_c_try_link "$LINENO"; then :
17659   ac_cv_lib_devmapper_dm_task_set_message=yes
17660 else
17661   ac_cv_lib_devmapper_dm_task_set_message=no
17662 fi
17663 rm -f core conftest.err conftest.$ac_objext \
17664     conftest$ac_exeext conftest.$ac_ext
17665 LIBS=$ac_check_lib_save_LIBS
17666 fi
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_message" >&5
17668 $as_echo "$ac_cv_lib_devmapper_dm_task_set_message" >&6; }
17669 if test "x$ac_cv_lib_devmapper_dm_task_set_message" = xyes; then :
17670   cat >>confdefs.h <<_ACEOF
17671 #define HAVE_LIBDEVMAPPER 1
17672 _ACEOF
17673
17674   LIBS="-ldevmapper $LIBS"
17675
17676 else
17677   as_fn_error $? "The device-mapper library on your system is too old." "$LINENO" 5
17678 fi
17679
17680         DEVMAPPER_LIBS=$LIBS
17681
17682 else
17683         DEVMAPPER_CFLAGS=$pkg_cv_DEVMAPPER_CFLAGS
17684         DEVMAPPER_LIBS=$pkg_cv_DEVMAPPER_LIBS
17685         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17686 $as_echo "yes" >&6; }
17687
17688 fi
17689 LIBS=$saved_LIBS
17690
17691 LIBS="$LIBS $DEVMAPPER_LIBS"
17692 ac_fn_c_check_decl "$LINENO" "dm_task_secure_data" "ac_cv_have_decl_dm_task_secure_data" "#include <libdevmapper.h>
17693 "
17694 if test "x$ac_cv_have_decl_dm_task_secure_data" = xyes; then :
17695   ac_have_decl=1
17696 else
17697   ac_have_decl=0
17698 fi
17699
17700 cat >>confdefs.h <<_ACEOF
17701 #define HAVE_DECL_DM_TASK_SECURE_DATA $ac_have_decl
17702 _ACEOF
17703
17704 ac_fn_c_check_decl "$LINENO" "dm_task_retry_remove" "ac_cv_have_decl_dm_task_retry_remove" "#include <libdevmapper.h>
17705 "
17706 if test "x$ac_cv_have_decl_dm_task_retry_remove" = xyes; then :
17707   ac_have_decl=1
17708 else
17709   ac_have_decl=0
17710 fi
17711
17712 cat >>confdefs.h <<_ACEOF
17713 #define HAVE_DECL_DM_TASK_RETRY_REMOVE $ac_have_decl
17714 _ACEOF
17715
17716 ac_fn_c_check_decl "$LINENO" "dm_task_deferred_remove" "ac_cv_have_decl_dm_task_deferred_remove" "#include <libdevmapper.h>
17717 "
17718 if test "x$ac_cv_have_decl_dm_task_deferred_remove" = xyes; then :
17719   ac_have_decl=1
17720 else
17721   ac_have_decl=0
17722 fi
17723
17724 cat >>confdefs.h <<_ACEOF
17725 #define HAVE_DECL_DM_TASK_DEFERRED_REMOVE $ac_have_decl
17726 _ACEOF
17727
17728 ac_fn_c_check_decl "$LINENO" "dm_device_has_mounted_fs" "ac_cv_have_decl_dm_device_has_mounted_fs" "#include <libdevmapper.h>
17729 "
17730 if test "x$ac_cv_have_decl_dm_device_has_mounted_fs" = xyes; then :
17731   ac_have_decl=1
17732 else
17733   ac_have_decl=0
17734 fi
17735
17736 cat >>confdefs.h <<_ACEOF
17737 #define HAVE_DECL_DM_DEVICE_HAS_MOUNTED_FS $ac_have_decl
17738 _ACEOF
17739
17740 ac_fn_c_check_decl "$LINENO" "dm_device_has_holders" "ac_cv_have_decl_dm_device_has_holders" "#include <libdevmapper.h>
17741 "
17742 if test "x$ac_cv_have_decl_dm_device_has_holders" = xyes; then :
17743   ac_have_decl=1
17744 else
17745   ac_have_decl=0
17746 fi
17747
17748 cat >>confdefs.h <<_ACEOF
17749 #define HAVE_DECL_DM_DEVICE_HAS_HOLDERS $ac_have_decl
17750 _ACEOF
17751
17752 ac_fn_c_check_decl "$LINENO" "dm_device_get_name" "ac_cv_have_decl_dm_device_get_name" "#include <libdevmapper.h>
17753 "
17754 if test "x$ac_cv_have_decl_dm_device_get_name" = xyes; then :
17755   ac_have_decl=1
17756 else
17757   ac_have_decl=0
17758 fi
17759
17760 cat >>confdefs.h <<_ACEOF
17761 #define HAVE_DECL_DM_DEVICE_GET_NAME $ac_have_decl
17762 _ACEOF
17763
17764 ac_fn_c_check_decl "$LINENO" "DM_DEVICE_GET_TARGET_VERSION" "ac_cv_have_decl_DM_DEVICE_GET_TARGET_VERSION" "#include <libdevmapper.h>
17765 "
17766 if test "x$ac_cv_have_decl_DM_DEVICE_GET_TARGET_VERSION" = xyes; then :
17767   ac_have_decl=1
17768 else
17769   ac_have_decl=0
17770 fi
17771
17772 cat >>confdefs.h <<_ACEOF
17773 #define HAVE_DECL_DM_DEVICE_GET_TARGET_VERSION $ac_have_decl
17774 _ACEOF
17775
17776 ac_fn_c_check_decl "$LINENO" "DM_UDEV_DISABLE_DISK_RULES_FLAG" "ac_cv_have_decl_DM_UDEV_DISABLE_DISK_RULES_FLAG" "#include <libdevmapper.h>
17777 "
17778 if test "x$ac_cv_have_decl_DM_UDEV_DISABLE_DISK_RULES_FLAG" = xyes; then :
17779   ac_have_decl=1
17780 else
17781   ac_have_decl=0
17782 fi
17783
17784 cat >>confdefs.h <<_ACEOF
17785 #define HAVE_DECL_DM_UDEV_DISABLE_DISK_RULES_FLAG $ac_have_decl
17786 _ACEOF
17787 if test $ac_have_decl = 1; then :
17788   have_cookie=yes
17789 else
17790   have_cookie=no
17791 fi
17792
17793 if test "x$enable_udev" = xyes; then
17794         if test "x$have_cookie" = xno; then
17795                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The device-mapper library on your system has no udev support, udev support disabled." >&5
17796 $as_echo "$as_me: WARNING: The device-mapper library on your system has no udev support, udev support disabled." >&2;}
17797         else
17798
17799 $as_echo "#define USE_UDEV 1" >>confdefs.h
17800
17801         fi
17802 fi
17803 LIBS=$saved_LIBS
17804
17805
17806 pkg_failed=no
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json-c" >&5
17808 $as_echo_n "checking for json-c... " >&6; }
17809
17810 if test -n "$JSON_C_CFLAGS"; then
17811     pkg_cv_JSON_C_CFLAGS="$JSON_C_CFLAGS"
17812  elif test -n "$PKG_CONFIG"; then
17813     if test -n "$PKG_CONFIG" && \
17814     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
17815   ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
17816   ac_status=$?
17817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17818   test $ac_status = 0; }; then
17819   pkg_cv_JSON_C_CFLAGS=`$PKG_CONFIG --cflags "json-c" 2>/dev/null`
17820                       test "x$?" != "x0" && pkg_failed=yes
17821 else
17822   pkg_failed=yes
17823 fi
17824  else
17825     pkg_failed=untried
17826 fi
17827 if test -n "$JSON_C_LIBS"; then
17828     pkg_cv_JSON_C_LIBS="$JSON_C_LIBS"
17829  elif test -n "$PKG_CONFIG"; then
17830     if test -n "$PKG_CONFIG" && \
17831     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
17832   ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
17833   ac_status=$?
17834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17835   test $ac_status = 0; }; then
17836   pkg_cv_JSON_C_LIBS=`$PKG_CONFIG --libs "json-c" 2>/dev/null`
17837                       test "x$?" != "x0" && pkg_failed=yes
17838 else
17839   pkg_failed=yes
17840 fi
17841  else
17842     pkg_failed=untried
17843 fi
17844
17845
17846
17847 if test $pkg_failed = yes; then
17848         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17849 $as_echo "no" >&6; }
17850
17851 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17852         _pkg_short_errors_supported=yes
17853 else
17854         _pkg_short_errors_supported=no
17855 fi
17856         if test $_pkg_short_errors_supported = yes; then
17857                 JSON_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1`
17858         else
17859                 JSON_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1`
17860         fi
17861         # Put the nasty error message in config.log where it belongs
17862         echo "$JSON_C_PKG_ERRORS" >&5
17863
17864         as_fn_error $? "Package requirements (json-c) were not met:
17865
17866 $JSON_C_PKG_ERRORS
17867
17868 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17869 installed software in a non-standard prefix.
17870
17871 Alternatively, you may set the environment variables JSON_C_CFLAGS
17872 and JSON_C_LIBS to avoid the need to call pkg-config.
17873 See the pkg-config man page for more details." "$LINENO" 5
17874 elif test $pkg_failed = untried; then
17875         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17876 $as_echo "no" >&6; }
17877         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17879 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17880 is in your PATH or set the PKG_CONFIG environment variable to the full
17881 path to pkg-config.
17882
17883 Alternatively, you may set the environment variables JSON_C_CFLAGS
17884 and JSON_C_LIBS to avoid the need to call pkg-config.
17885 See the pkg-config man page for more details.
17886
17887 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17888 See \`config.log' for more details" "$LINENO" 5; }
17889 else
17890         JSON_C_CFLAGS=$pkg_cv_JSON_C_CFLAGS
17891         JSON_C_LIBS=$pkg_cv_JSON_C_LIBS
17892         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17893 $as_echo "yes" >&6; }
17894
17895 fi
17896 ac_fn_c_check_decl "$LINENO" "json_object_object_add_ex" "ac_cv_have_decl_json_object_object_add_ex" "#include <json-c/json.h>
17897 "
17898 if test "x$ac_cv_have_decl_json_object_object_add_ex" = xyes; then :
17899   ac_have_decl=1
17900 else
17901   ac_have_decl=0
17902 fi
17903
17904 cat >>confdefs.h <<_ACEOF
17905 #define HAVE_DECL_JSON_OBJECT_OBJECT_ADD_EX $ac_have_decl
17906 _ACEOF
17907
17908 ac_fn_c_check_decl "$LINENO" "json_object_deep_copy" "ac_cv_have_decl_json_object_deep_copy" "#include <json-c/json.h>
17909 "
17910 if test "x$ac_cv_have_decl_json_object_deep_copy" = xyes; then :
17911   ac_have_decl=1
17912 else
17913   ac_have_decl=0
17914 fi
17915
17916 cat >>confdefs.h <<_ACEOF
17917 #define HAVE_DECL_JSON_OBJECT_DEEP_COPY $ac_have_decl
17918 _ACEOF
17919
17920
17921
17922 # Check whether --with-crypto_backend was given.
17923 if test "${with_crypto_backend+set}" = set; then :
17924   withval=$with_crypto_backend;
17925 else
17926   with_crypto_backend=openssl
17927 fi
17928
17929
17930 # Check whether --enable-kernel_crypto was given.
17931 if test "${enable_kernel_crypto+set}" = set; then :
17932   enableval=$enable_kernel_crypto;
17933 else
17934   enable_kernel_crypto=yes
17935 fi
17936
17937
17938 if test "x$enable_kernel_crypto" = "xyes"; then
17939         for ac_header in linux/if_alg.h
17940 do :
17941   ac_fn_c_check_header_mongrel "$LINENO" "linux/if_alg.h" "ac_cv_header_linux_if_alg_h" "$ac_includes_default"
17942 if test "x$ac_cv_header_linux_if_alg_h" = xyes; then :
17943   cat >>confdefs.h <<_ACEOF
17944 #define HAVE_LINUX_IF_ALG_H 1
17945 _ACEOF
17946
17947 else
17948   as_fn_error $? "You need Linux kernel headers with userspace crypto interface. (Or use --disable-kernel_crypto.)" "$LINENO" 5
17949 fi
17950
17951 done
17952
17953
17954 $as_echo "#define ENABLE_AF_ALG 1" >>confdefs.h
17955
17956 fi
17957
17958 case $with_crypto_backend in
17959         gcrypt)
17960         if test "x$enable_fips" = "xyes"; then
17961                 GCRYPT_REQ_VERSION=1.4.5
17962         else
17963                 GCRYPT_REQ_VERSION=1.1.42
17964         fi
17965
17966
17967         # Check whether --enable-gcrypt-pbkdf2 was given.
17968 if test "${enable_gcrypt_pbkdf2+set}" = set; then :
17969   enableval=$enable_gcrypt_pbkdf2; if test "x$enableval" = "xyes"; then
17970                         use_internal_pbkdf2=0
17971                 else
17972                         use_internal_pbkdf2=1
17973                 fi
17974 else
17975
17976
17977 # Check whether --with-libgcrypt-prefix was given.
17978 if test "${with_libgcrypt_prefix+set}" = set; then :
17979   withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
17980 else
17981   libgcrypt_config_prefix=""
17982 fi
17983
17984   if test x"${LIBGCRYPT_CONFIG}" = x ; then
17985      if test x"${libgcrypt_config_prefix}" != x ; then
17986         LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
17987      fi
17988   fi
17989
17990   use_gpgrt_config=""
17991   if test x"${LIBGCRYPT_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
17992     if $GPGRT_CONFIG libgcrypt --exists; then
17993       LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt"
17994       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libgcrypt-config" >&5
17995 $as_echo "$as_me: Use gpgrt-config as libgcrypt-config" >&6;}
17996       use_gpgrt_config=yes
17997     fi
17998   fi
17999   if test -z "$use_gpgrt_config"; then
18000     if test x"${LIBGCRYPT_CONFIG}" = x ; then
18001       case "${SYSROOT}" in
18002          /*)
18003            if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
18004              LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
18005            fi
18006            ;;
18007          '')
18008            ;;
18009           *)
18010            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
18011 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
18012            ;;
18013       esac
18014     fi
18015     # Extract the first word of "libgcrypt-config", so it can be a program name with args.
18016 set dummy libgcrypt-config; ac_word=$2
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18018 $as_echo_n "checking for $ac_word... " >&6; }
18019 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
18020   $as_echo_n "(cached) " >&6
18021 else
18022   case $LIBGCRYPT_CONFIG in
18023   [\\/]* | ?:[\\/]*)
18024   ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
18025   ;;
18026   *)
18027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18028 for as_dir in $PATH
18029 do
18030   IFS=$as_save_IFS
18031   test -z "$as_dir" && as_dir=.
18032     for ac_exec_ext in '' $ac_executable_extensions; do
18033   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18034     ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18036     break 2
18037   fi
18038 done
18039   done
18040 IFS=$as_save_IFS
18041
18042   test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
18043   ;;
18044 esac
18045 fi
18046 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
18047 if test -n "$LIBGCRYPT_CONFIG"; then
18048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
18049 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
18050 else
18051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18052 $as_echo "no" >&6; }
18053 fi
18054
18055
18056   fi
18057
18058   tmp=1.6.1
18059   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
18060      req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
18061      min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
18062   else
18063      req_libgcrypt_api=0
18064      min_libgcrypt_version="$tmp"
18065   fi
18066
18067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
18068 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
18069   ok=no
18070   if test "$LIBGCRYPT_CONFIG" != "no" ; then
18071     req_major=`echo $min_libgcrypt_version | \
18072                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
18073     req_minor=`echo $min_libgcrypt_version | \
18074                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
18075     req_micro=`echo $min_libgcrypt_version | \
18076                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
18077     if test -z "$use_gpgrt_config"; then
18078       libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
18079     else
18080       libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion`
18081     fi
18082     major=`echo $libgcrypt_config_version | \
18083                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
18084     minor=`echo $libgcrypt_config_version | \
18085                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
18086     micro=`echo $libgcrypt_config_version | \
18087                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
18088     if test "$major" -gt "$req_major"; then
18089         ok=yes
18090     else
18091         if test "$major" -eq "$req_major"; then
18092             if test "$minor" -gt "$req_minor"; then
18093                ok=yes
18094             else
18095                if test "$minor" -eq "$req_minor"; then
18096                    if test "$micro" -ge "$req_micro"; then
18097                      ok=yes
18098                    fi
18099                fi
18100             fi
18101         fi
18102     fi
18103   fi
18104   if test $ok = yes; then
18105     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
18106 $as_echo "yes ($libgcrypt_config_version)" >&6; }
18107   else
18108     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18109 $as_echo "no" >&6; }
18110   fi
18111   if test $ok = yes; then
18112      # If we have a recent libgcrypt, we should also check that the
18113      # API is compatible
18114      if test "$req_libgcrypt_api" -gt 0 ; then
18115         if test -z "$use_gpgrt_config"; then
18116            tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
18117         else
18118            tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0`
18119         fi
18120         if test "$tmp" -gt 0 ; then
18121            { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
18122 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
18123            if test "$req_libgcrypt_api" -eq "$tmp" ; then
18124              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
18125 $as_echo "okay" >&6; }
18126            else
18127              ok=no
18128              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
18129 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
18130            fi
18131         fi
18132      fi
18133   fi
18134   if test $ok = yes; then
18135     LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
18136     LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
18137     use_internal_pbkdf2=0
18138     if test -z "$use_gpgrt_config"; then
18139       libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
18140     else
18141       libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none`
18142     fi
18143     if test x"$libgcrypt_config_host" != xnone ; then
18144       if test x"$libgcrypt_config_host" != x"$host" ; then
18145   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18146 ***
18147 *** The config script \"$LIBGCRYPT_CONFIG\" was
18148 *** built for $libgcrypt_config_host and thus may not match the
18149 *** used host $host.
18150 *** You may want to use the configure option --with-libgcrypt-prefix
18151 *** to specify a matching config script or use \$SYSROOT.
18152 ***" >&5
18153 $as_echo "$as_me: WARNING:
18154 ***
18155 *** The config script \"$LIBGCRYPT_CONFIG\" was
18156 *** built for $libgcrypt_config_host and thus may not match the
18157 *** used host $host.
18158 *** You may want to use the configure option --with-libgcrypt-prefix
18159 *** to specify a matching config script or use \$SYSROOT.
18160 ***" >&2;}
18161         gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
18162       fi
18163     fi
18164   else
18165     LIBGCRYPT_CFLAGS=""
18166     LIBGCRYPT_LIBS=""
18167     use_internal_pbkdf2=1
18168   fi
18169
18170
18171
18172 fi
18173
18174
18175
18176 # Check whether --with-libgcrypt-prefix was given.
18177 if test "${with_libgcrypt_prefix+set}" = set; then :
18178   withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
18179 else
18180   libgcrypt_config_prefix=""
18181 fi
18182
18183   if test x"${LIBGCRYPT_CONFIG}" = x ; then
18184      if test x"${libgcrypt_config_prefix}" != x ; then
18185         LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
18186      fi
18187   fi
18188
18189   use_gpgrt_config=""
18190   if test x"${LIBGCRYPT_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
18191     if $GPGRT_CONFIG libgcrypt --exists; then
18192       LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt"
18193       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libgcrypt-config" >&5
18194 $as_echo "$as_me: Use gpgrt-config as libgcrypt-config" >&6;}
18195       use_gpgrt_config=yes
18196     fi
18197   fi
18198   if test -z "$use_gpgrt_config"; then
18199     if test x"${LIBGCRYPT_CONFIG}" = x ; then
18200       case "${SYSROOT}" in
18201          /*)
18202            if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
18203              LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
18204            fi
18205            ;;
18206          '')
18207            ;;
18208           *)
18209            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
18210 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
18211            ;;
18212       esac
18213     fi
18214     # Extract the first word of "libgcrypt-config", so it can be a program name with args.
18215 set dummy libgcrypt-config; ac_word=$2
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18217 $as_echo_n "checking for $ac_word... " >&6; }
18218 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
18219   $as_echo_n "(cached) " >&6
18220 else
18221   case $LIBGCRYPT_CONFIG in
18222   [\\/]* | ?:[\\/]*)
18223   ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
18224   ;;
18225   *)
18226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18227 for as_dir in $PATH
18228 do
18229   IFS=$as_save_IFS
18230   test -z "$as_dir" && as_dir=.
18231     for ac_exec_ext in '' $ac_executable_extensions; do
18232   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18233     ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18235     break 2
18236   fi
18237 done
18238   done
18239 IFS=$as_save_IFS
18240
18241   test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
18242   ;;
18243 esac
18244 fi
18245 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
18246 if test -n "$LIBGCRYPT_CONFIG"; then
18247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
18248 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
18249 else
18250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18251 $as_echo "no" >&6; }
18252 fi
18253
18254
18255   fi
18256
18257   tmp=$GCRYPT_REQ_VERSION
18258   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
18259      req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
18260      min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
18261   else
18262      req_libgcrypt_api=0
18263      min_libgcrypt_version="$tmp"
18264   fi
18265
18266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
18267 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
18268   ok=no
18269   if test "$LIBGCRYPT_CONFIG" != "no" ; then
18270     req_major=`echo $min_libgcrypt_version | \
18271                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
18272     req_minor=`echo $min_libgcrypt_version | \
18273                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
18274     req_micro=`echo $min_libgcrypt_version | \
18275                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
18276     if test -z "$use_gpgrt_config"; then
18277       libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
18278     else
18279       libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion`
18280     fi
18281     major=`echo $libgcrypt_config_version | \
18282                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
18283     minor=`echo $libgcrypt_config_version | \
18284                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
18285     micro=`echo $libgcrypt_config_version | \
18286                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
18287     if test "$major" -gt "$req_major"; then
18288         ok=yes
18289     else
18290         if test "$major" -eq "$req_major"; then
18291             if test "$minor" -gt "$req_minor"; then
18292                ok=yes
18293             else
18294                if test "$minor" -eq "$req_minor"; then
18295                    if test "$micro" -ge "$req_micro"; then
18296                      ok=yes
18297                    fi
18298                fi
18299             fi
18300         fi
18301     fi
18302   fi
18303   if test $ok = yes; then
18304     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
18305 $as_echo "yes ($libgcrypt_config_version)" >&6; }
18306   else
18307     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18308 $as_echo "no" >&6; }
18309   fi
18310   if test $ok = yes; then
18311      # If we have a recent libgcrypt, we should also check that the
18312      # API is compatible
18313      if test "$req_libgcrypt_api" -gt 0 ; then
18314         if test -z "$use_gpgrt_config"; then
18315            tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
18316         else
18317            tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0`
18318         fi
18319         if test "$tmp" -gt 0 ; then
18320            { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
18321 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
18322            if test "$req_libgcrypt_api" -eq "$tmp" ; then
18323              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
18324 $as_echo "okay" >&6; }
18325            else
18326              ok=no
18327              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
18328 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
18329            fi
18330         fi
18331      fi
18332   fi
18333   if test $ok = yes; then
18334     LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
18335     LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
18336     :
18337     if test -z "$use_gpgrt_config"; then
18338       libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
18339     else
18340       libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none`
18341     fi
18342     if test x"$libgcrypt_config_host" != xnone ; then
18343       if test x"$libgcrypt_config_host" != x"$host" ; then
18344   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18345 ***
18346 *** The config script \"$LIBGCRYPT_CONFIG\" was
18347 *** built for $libgcrypt_config_host and thus may not match the
18348 *** used host $host.
18349 *** You may want to use the configure option --with-libgcrypt-prefix
18350 *** to specify a matching config script or use \$SYSROOT.
18351 ***" >&5
18352 $as_echo "$as_me: WARNING:
18353 ***
18354 *** The config script \"$LIBGCRYPT_CONFIG\" was
18355 *** built for $libgcrypt_config_host and thus may not match the
18356 *** used host $host.
18357 *** You may want to use the configure option --with-libgcrypt-prefix
18358 *** to specify a matching config script or use \$SYSROOT.
18359 ***" >&2;}
18360         gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
18361       fi
18362     fi
18363   else
18364     LIBGCRYPT_CFLAGS=""
18365     LIBGCRYPT_LIBS=""
18366     as_fn_error $? "You need the gcrypt library." "$LINENO" 5
18367   fi
18368
18369
18370
18371
18372         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if internal cryptsetup PBKDF2 is compiled-in" >&5
18373 $as_echo_n "checking if internal cryptsetup PBKDF2 is compiled-in... " >&6; }
18374         if test $use_internal_pbkdf2 = 0; then
18375                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18376 $as_echo "no" >&6; }
18377         else
18378                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18379 $as_echo "yes" >&6; }
18380
18381         if test "x$enable_fips" = "xyes"; then
18382                 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
18383         fi
18384
18385         fi
18386
18387         ac_fn_c_check_decl "$LINENO" "GCRY_CIPHER_MODE_XTS" "ac_cv_have_decl_GCRY_CIPHER_MODE_XTS" "#include <gcrypt.h>
18388 "
18389 if test "x$ac_cv_have_decl_GCRY_CIPHER_MODE_XTS" = xyes; then :
18390   ac_have_decl=1
18391 else
18392   ac_have_decl=0
18393 fi
18394
18395 cat >>confdefs.h <<_ACEOF
18396 #define HAVE_DECL_GCRY_CIPHER_MODE_XTS $ac_have_decl
18397 _ACEOF
18398
18399
18400         if test "x$enable_static_cryptsetup" = "xyes"; then
18401                 saved_LIBS=$LIBS
18402                 LIBS="$saved_LIBS $LIBGCRYPT_LIBS -static"
18403                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_check_version in -lgcrypt" >&5
18404 $as_echo_n "checking for gcry_check_version in -lgcrypt... " >&6; }
18405 if ${ac_cv_lib_gcrypt_gcry_check_version+:} false; then :
18406   $as_echo_n "(cached) " >&6
18407 else
18408   ac_check_lib_save_LIBS=$LIBS
18409 LIBS="-lgcrypt -lgpg-error $LIBS"
18410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18411 /* end confdefs.h.  */
18412
18413 /* Override any GCC internal prototype to avoid an error.
18414    Use char because int might match the return type of a GCC
18415    builtin and then its argument prototype would still apply.  */
18416 #ifdef __cplusplus
18417 extern "C"
18418 #endif
18419 char gcry_check_version ();
18420 int
18421 main ()
18422 {
18423 return gcry_check_version ();
18424   ;
18425   return 0;
18426 }
18427 _ACEOF
18428 if ac_fn_c_try_link "$LINENO"; then :
18429   ac_cv_lib_gcrypt_gcry_check_version=yes
18430 else
18431   ac_cv_lib_gcrypt_gcry_check_version=no
18432 fi
18433 rm -f core conftest.err conftest.$ac_objext \
18434     conftest$ac_exeext conftest.$ac_ext
18435 LIBS=$ac_check_lib_save_LIBS
18436 fi
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_check_version" >&5
18438 $as_echo "$ac_cv_lib_gcrypt_gcry_check_version" >&6; }
18439 if test "x$ac_cv_lib_gcrypt_gcry_check_version" = xyes; then :
18440   cat >>confdefs.h <<_ACEOF
18441 #define HAVE_LIBGCRYPT 1
18442 _ACEOF
18443
18444   LIBS="-lgcrypt $LIBS"
18445
18446 else
18447   as_fn_error $? "Cannot find static gcrypt library." "$LINENO" 5
18448 fi
18449
18450                 LIBGCRYPT_STATIC_LIBS="$LIBGCRYPT_LIBS -lgpg-error"
18451                 LIBS=$saved_LIBS
18452         fi
18453
18454         CRYPTO_CFLAGS=$LIBGCRYPT_CFLAGS
18455         CRYPTO_LIBS=$LIBGCRYPT_LIBS
18456         CRYPTO_STATIC_LIBS=$LIBGCRYPT_STATIC_LIBS
18457
18458
18459 cat >>confdefs.h <<_ACEOF
18460 #define GCRYPT_REQ_VERSION "$GCRYPT_REQ_VERSION"
18461 _ACEOF
18462
18463  ;;
18464         openssl)
18465
18466 pkg_failed=no
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl >= 0.9.8" >&5
18468 $as_echo_n "checking for openssl >= 0.9.8... " >&6; }
18469
18470 if test -n "$OPENSSL_CFLAGS"; then
18471     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
18472  elif test -n "$PKG_CONFIG"; then
18473     if test -n "$PKG_CONFIG" && \
18474     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.8\""; } >&5
18475   ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.8") 2>&5
18476   ac_status=$?
18477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18478   test $ac_status = 0; }; then
18479   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.8" 2>/dev/null`
18480                       test "x$?" != "x0" && pkg_failed=yes
18481 else
18482   pkg_failed=yes
18483 fi
18484  else
18485     pkg_failed=untried
18486 fi
18487 if test -n "$OPENSSL_LIBS"; then
18488     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
18489  elif test -n "$PKG_CONFIG"; then
18490     if test -n "$PKG_CONFIG" && \
18491     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.8\""; } >&5
18492   ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.8") 2>&5
18493   ac_status=$?
18494   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18495   test $ac_status = 0; }; then
18496   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.8" 2>/dev/null`
18497                       test "x$?" != "x0" && pkg_failed=yes
18498 else
18499   pkg_failed=yes
18500 fi
18501  else
18502     pkg_failed=untried
18503 fi
18504
18505
18506
18507 if test $pkg_failed = yes; then
18508         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18509 $as_echo "no" >&6; }
18510
18511 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18512         _pkg_short_errors_supported=yes
18513 else
18514         _pkg_short_errors_supported=no
18515 fi
18516         if test $_pkg_short_errors_supported = yes; then
18517                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 0.9.8" 2>&1`
18518         else
18519                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 0.9.8" 2>&1`
18520         fi
18521         # Put the nasty error message in config.log where it belongs
18522         echo "$OPENSSL_PKG_ERRORS" >&5
18523
18524         as_fn_error $? "You need openssl library." "$LINENO" 5
18525 elif test $pkg_failed = untried; then
18526         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18527 $as_echo "no" >&6; }
18528         as_fn_error $? "You need openssl library." "$LINENO" 5
18529 else
18530         OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
18531         OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
18532         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18533 $as_echo "yes" >&6; }
18534
18535 fi
18536         CRYPTO_CFLAGS=$OPENSSL_CFLAGS
18537         CRYPTO_LIBS=$OPENSSL_LIBS
18538         use_internal_pbkdf2=0
18539
18540         if test "x$enable_static_cryptsetup" = "xyes"; then
18541                 saved_PKG_CONFIG=$PKG_CONFIG
18542                 PKG_CONFIG="$PKG_CONFIG --static"
18543
18544 pkg_failed=no
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
18546 $as_echo_n "checking for openssl... " >&6; }
18547
18548 if test -n "$OPENSSL_STATIC_CFLAGS"; then
18549     pkg_cv_OPENSSL_STATIC_CFLAGS="$OPENSSL_STATIC_CFLAGS"
18550  elif test -n "$PKG_CONFIG"; then
18551     if test -n "$PKG_CONFIG" && \
18552     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
18553   ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
18554   ac_status=$?
18555   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18556   test $ac_status = 0; }; then
18557   pkg_cv_OPENSSL_STATIC_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
18558                       test "x$?" != "x0" && pkg_failed=yes
18559 else
18560   pkg_failed=yes
18561 fi
18562  else
18563     pkg_failed=untried
18564 fi
18565 if test -n "$OPENSSL_STATIC_LIBS"; then
18566     pkg_cv_OPENSSL_STATIC_LIBS="$OPENSSL_STATIC_LIBS"
18567  elif test -n "$PKG_CONFIG"; then
18568     if test -n "$PKG_CONFIG" && \
18569     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
18570   ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
18571   ac_status=$?
18572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18573   test $ac_status = 0; }; then
18574   pkg_cv_OPENSSL_STATIC_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
18575                       test "x$?" != "x0" && pkg_failed=yes
18576 else
18577   pkg_failed=yes
18578 fi
18579  else
18580     pkg_failed=untried
18581 fi
18582
18583
18584
18585 if test $pkg_failed = yes; then
18586         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18587 $as_echo "no" >&6; }
18588
18589 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18590         _pkg_short_errors_supported=yes
18591 else
18592         _pkg_short_errors_supported=no
18593 fi
18594         if test $_pkg_short_errors_supported = yes; then
18595                 OPENSSL_STATIC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
18596         else
18597                 OPENSSL_STATIC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
18598         fi
18599         # Put the nasty error message in config.log where it belongs
18600         echo "$OPENSSL_STATIC_PKG_ERRORS" >&5
18601
18602         as_fn_error $? "Package requirements (openssl) were not met:
18603
18604 $OPENSSL_STATIC_PKG_ERRORS
18605
18606 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18607 installed software in a non-standard prefix.
18608
18609 Alternatively, you may set the environment variables OPENSSL_STATIC_CFLAGS
18610 and OPENSSL_STATIC_LIBS to avoid the need to call pkg-config.
18611 See the pkg-config man page for more details." "$LINENO" 5
18612 elif test $pkg_failed = untried; then
18613         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18614 $as_echo "no" >&6; }
18615         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18617 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18618 is in your PATH or set the PKG_CONFIG environment variable to the full
18619 path to pkg-config.
18620
18621 Alternatively, you may set the environment variables OPENSSL_STATIC_CFLAGS
18622 and OPENSSL_STATIC_LIBS to avoid the need to call pkg-config.
18623 See the pkg-config man page for more details.
18624
18625 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18626 See \`config.log' for more details" "$LINENO" 5; }
18627 else
18628         OPENSSL_STATIC_CFLAGS=$pkg_cv_OPENSSL_STATIC_CFLAGS
18629         OPENSSL_STATIC_LIBS=$pkg_cv_OPENSSL_STATIC_LIBS
18630         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18631 $as_echo "yes" >&6; }
18632
18633 fi
18634                 CRYPTO_STATIC_LIBS=$OPENSSL_STATIC_LIBS
18635                 PKG_CONFIG=$saved_PKG_CONFIG
18636         fi
18637  ;;
18638         nss)
18639         if test "x$enable_static_cryptsetup" = "xyes"; then
18640                 as_fn_error $? "Static build of cryptsetup is not supported with NSS." "$LINENO" 5
18641         fi
18642
18643         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NSS backend does NOT provide backward compatibility (missing ripemd160 hash)." >&5
18644 $as_echo "$as_me: WARNING: NSS backend does NOT provide backward compatibility (missing ripemd160 hash)." >&2;}
18645
18646
18647 pkg_failed=no
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss" >&5
18649 $as_echo_n "checking for nss... " >&6; }
18650
18651 if test -n "$NSS_CFLAGS"; then
18652     pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
18653  elif test -n "$PKG_CONFIG"; then
18654     if test -n "$PKG_CONFIG" && \
18655     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
18656   ($PKG_CONFIG --exists --print-errors "nss") 2>&5
18657   ac_status=$?
18658   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18659   test $ac_status = 0; }; then
18660   pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
18661                       test "x$?" != "x0" && pkg_failed=yes
18662 else
18663   pkg_failed=yes
18664 fi
18665  else
18666     pkg_failed=untried
18667 fi
18668 if test -n "$NSS_LIBS"; then
18669     pkg_cv_NSS_LIBS="$NSS_LIBS"
18670  elif test -n "$PKG_CONFIG"; then
18671     if test -n "$PKG_CONFIG" && \
18672     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
18673   ($PKG_CONFIG --exists --print-errors "nss") 2>&5
18674   ac_status=$?
18675   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18676   test $ac_status = 0; }; then
18677   pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
18678                       test "x$?" != "x0" && pkg_failed=yes
18679 else
18680   pkg_failed=yes
18681 fi
18682  else
18683     pkg_failed=untried
18684 fi
18685
18686
18687
18688 if test $pkg_failed = yes; then
18689         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18690 $as_echo "no" >&6; }
18691
18692 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18693         _pkg_short_errors_supported=yes
18694 else
18695         _pkg_short_errors_supported=no
18696 fi
18697         if test $_pkg_short_errors_supported = yes; then
18698                 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss" 2>&1`
18699         else
18700                 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss" 2>&1`
18701         fi
18702         # Put the nasty error message in config.log where it belongs
18703         echo "$NSS_PKG_ERRORS" >&5
18704
18705         as_fn_error $? "You need nss library." "$LINENO" 5
18706 elif test $pkg_failed = untried; then
18707         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18708 $as_echo "no" >&6; }
18709         as_fn_error $? "You need nss library." "$LINENO" 5
18710 else
18711         NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
18712         NSS_LIBS=$pkg_cv_NSS_LIBS
18713         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18714 $as_echo "yes" >&6; }
18715
18716 fi
18717
18718         saved_CFLAGS=$CFLAGS
18719         CFLAGS="$CFLAGS $NSS_CFLAGS"
18720         ac_fn_c_check_decl "$LINENO" "NSS_GetVersion" "ac_cv_have_decl_NSS_GetVersion" "#include <nss.h>
18721 "
18722 if test "x$ac_cv_have_decl_NSS_GetVersion" = xyes; then :
18723   ac_have_decl=1
18724 else
18725   ac_have_decl=0
18726 fi
18727
18728 cat >>confdefs.h <<_ACEOF
18729 #define HAVE_DECL_NSS_GETVERSION $ac_have_decl
18730 _ACEOF
18731
18732         CFLAGS=$saved_CFLAGS
18733
18734         CRYPTO_CFLAGS=$NSS_CFLAGS
18735         CRYPTO_LIBS=$NSS_LIBS
18736         use_internal_pbkdf2=1
18737
18738         if test "x$enable_fips" = "xyes"; then
18739                 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
18740         fi
18741
18742  ;;
18743         kernel)
18744         for ac_header in linux/if_alg.h
18745 do :
18746   ac_fn_c_check_header_mongrel "$LINENO" "linux/if_alg.h" "ac_cv_header_linux_if_alg_h" "$ac_includes_default"
18747 if test "x$ac_cv_header_linux_if_alg_h" = xyes; then :
18748   cat >>confdefs.h <<_ACEOF
18749 #define HAVE_LINUX_IF_ALG_H 1
18750 _ACEOF
18751
18752 else
18753   as_fn_error $? "You need Linux kernel headers with userspace crypto interface." "$LINENO" 5
18754 fi
18755
18756 done
18757
18758 #       AC_CHECK_DECLS([AF_ALG],,
18759 #               [AC_MSG_ERROR([You need Linux kernel with userspace crypto interface.])],
18760 #               [#include <sys/socket.h>])
18761         use_internal_pbkdf2=1
18762
18763         if test "x$enable_fips" = "xyes"; then
18764                 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
18765         fi
18766
18767  ;;
18768         nettle)
18769         for ac_header in nettle/sha.h
18770 do :
18771   ac_fn_c_check_header_mongrel "$LINENO" "nettle/sha.h" "ac_cv_header_nettle_sha_h" "$ac_includes_default"
18772 if test "x$ac_cv_header_nettle_sha_h" = xyes; then :
18773   cat >>confdefs.h <<_ACEOF
18774 #define HAVE_NETTLE_SHA_H 1
18775 _ACEOF
18776
18777 else
18778   as_fn_error $? "You need Nettle cryptographic library." "$LINENO" 5
18779 fi
18780
18781 done
18782
18783         for ac_header in nettle/version.h
18784 do :
18785   ac_fn_c_check_header_mongrel "$LINENO" "nettle/version.h" "ac_cv_header_nettle_version_h" "$ac_includes_default"
18786 if test "x$ac_cv_header_nettle_version_h" = xyes; then :
18787   cat >>confdefs.h <<_ACEOF
18788 #define HAVE_NETTLE_VERSION_H 1
18789 _ACEOF
18790
18791 fi
18792
18793 done
18794
18795
18796         saved_LIBS=$LIBS
18797         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_pbkdf2_hmac_sha256 in -lnettle" >&5
18798 $as_echo_n "checking for nettle_pbkdf2_hmac_sha256 in -lnettle... " >&6; }
18799 if ${ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256+:} false; then :
18800   $as_echo_n "(cached) " >&6
18801 else
18802   ac_check_lib_save_LIBS=$LIBS
18803 LIBS="-lnettle  $LIBS"
18804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18805 /* end confdefs.h.  */
18806
18807 /* Override any GCC internal prototype to avoid an error.
18808    Use char because int might match the return type of a GCC
18809    builtin and then its argument prototype would still apply.  */
18810 #ifdef __cplusplus
18811 extern "C"
18812 #endif
18813 char nettle_pbkdf2_hmac_sha256 ();
18814 int
18815 main ()
18816 {
18817 return nettle_pbkdf2_hmac_sha256 ();
18818   ;
18819   return 0;
18820 }
18821 _ACEOF
18822 if ac_fn_c_try_link "$LINENO"; then :
18823   ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256=yes
18824 else
18825   ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256=no
18826 fi
18827 rm -f core conftest.err conftest.$ac_objext \
18828     conftest$ac_exeext conftest.$ac_ext
18829 LIBS=$ac_check_lib_save_LIBS
18830 fi
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256" >&5
18832 $as_echo "$ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256" >&6; }
18833 if test "x$ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256" = xyes; then :
18834   cat >>confdefs.h <<_ACEOF
18835 #define HAVE_LIBNETTLE 1
18836 _ACEOF
18837
18838   LIBS="-lnettle $LIBS"
18839
18840 else
18841   as_fn_error $? "You need Nettle library version 2.6 or more recent." "$LINENO" 5
18842 fi
18843
18844         CRYPTO_LIBS=$LIBS
18845         LIBS=$saved_LIBS
18846
18847         CRYPTO_STATIC_LIBS=$CRYPTO_LIBS
18848         use_internal_pbkdf2=0
18849
18850         if test "x$enable_fips" = "xyes"; then
18851                 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
18852         fi
18853
18854  ;;
18855         *) as_fn_error $? "Unknown crypto backend." "$LINENO" 5 ;;
18856 esac
18857  if test "$with_crypto_backend" = "gcrypt"; then
18858   CRYPTO_BACKEND_GCRYPT_TRUE=
18859   CRYPTO_BACKEND_GCRYPT_FALSE='#'
18860 else
18861   CRYPTO_BACKEND_GCRYPT_TRUE='#'
18862   CRYPTO_BACKEND_GCRYPT_FALSE=
18863 fi
18864
18865  if test "$with_crypto_backend" = "openssl"; then
18866   CRYPTO_BACKEND_OPENSSL_TRUE=
18867   CRYPTO_BACKEND_OPENSSL_FALSE='#'
18868 else
18869   CRYPTO_BACKEND_OPENSSL_TRUE='#'
18870   CRYPTO_BACKEND_OPENSSL_FALSE=
18871 fi
18872
18873  if test "$with_crypto_backend" = "nss"; then
18874   CRYPTO_BACKEND_NSS_TRUE=
18875   CRYPTO_BACKEND_NSS_FALSE='#'
18876 else
18877   CRYPTO_BACKEND_NSS_TRUE='#'
18878   CRYPTO_BACKEND_NSS_FALSE=
18879 fi
18880
18881  if test "$with_crypto_backend" = "kernel"; then
18882   CRYPTO_BACKEND_KERNEL_TRUE=
18883   CRYPTO_BACKEND_KERNEL_FALSE='#'
18884 else
18885   CRYPTO_BACKEND_KERNEL_TRUE='#'
18886   CRYPTO_BACKEND_KERNEL_FALSE=
18887 fi
18888
18889  if test "$with_crypto_backend" = "nettle"; then
18890   CRYPTO_BACKEND_NETTLE_TRUE=
18891   CRYPTO_BACKEND_NETTLE_FALSE='#'
18892 else
18893   CRYPTO_BACKEND_NETTLE_TRUE='#'
18894   CRYPTO_BACKEND_NETTLE_FALSE=
18895 fi
18896
18897
18898  if test $use_internal_pbkdf2 = 1; then
18899   CRYPTO_INTERNAL_PBKDF2_TRUE=
18900   CRYPTO_INTERNAL_PBKDF2_FALSE='#'
18901 else
18902   CRYPTO_INTERNAL_PBKDF2_TRUE='#'
18903   CRYPTO_INTERNAL_PBKDF2_FALSE=
18904 fi
18905
18906
18907 cat >>confdefs.h <<_ACEOF
18908 #define USE_INTERNAL_PBKDF2 $use_internal_pbkdf2
18909 _ACEOF
18910
18911
18912 # Check whether --enable-internal-argon2 was given.
18913 if test "${enable_internal_argon2+set}" = set; then :
18914   enableval=$enable_internal_argon2;
18915 else
18916   enable_internal_argon2=yes
18917 fi
18918
18919
18920 # Check whether --enable-libargon2 was given.
18921 if test "${enable_libargon2+set}" = set; then :
18922   enableval=$enable_libargon2;
18923 fi
18924
18925
18926 if test "x$enable_libargon2" = "xyes" ; then
18927         for ac_header in argon2.h
18928 do :
18929   ac_fn_c_check_header_mongrel "$LINENO" "argon2.h" "ac_cv_header_argon2_h" "$ac_includes_default"
18930 if test "x$ac_cv_header_argon2_h" = xyes; then :
18931   cat >>confdefs.h <<_ACEOF
18932 #define HAVE_ARGON2_H 1
18933 _ACEOF
18934
18935 else
18936   as_fn_error $? "You need libargon2 development library installed." "$LINENO" 5
18937 fi
18938
18939 done
18940
18941         ac_fn_c_check_decl "$LINENO" "Argon2_id" "ac_cv_have_decl_Argon2_id" "#include <argon2.h>
18942 "
18943 if test "x$ac_cv_have_decl_Argon2_id" = xyes; then :
18944
18945 else
18946   as_fn_error $? "You need more recent Argon2 library with support for Argon2id." "$LINENO" 5
18947 fi
18948
18949
18950 pkg_failed=no
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libargon2" >&5
18952 $as_echo_n "checking for libargon2... " >&6; }
18953
18954 if test -n "$LIBARGON2_CFLAGS"; then
18955     pkg_cv_LIBARGON2_CFLAGS="$LIBARGON2_CFLAGS"
18956  elif test -n "$PKG_CONFIG"; then
18957     if test -n "$PKG_CONFIG" && \
18958     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libargon2\""; } >&5
18959   ($PKG_CONFIG --exists --print-errors "libargon2") 2>&5
18960   ac_status=$?
18961   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18962   test $ac_status = 0; }; then
18963   pkg_cv_LIBARGON2_CFLAGS=`$PKG_CONFIG --cflags "libargon2" 2>/dev/null`
18964                       test "x$?" != "x0" && pkg_failed=yes
18965 else
18966   pkg_failed=yes
18967 fi
18968  else
18969     pkg_failed=untried
18970 fi
18971 if test -n "$LIBARGON2_LIBS"; then
18972     pkg_cv_LIBARGON2_LIBS="$LIBARGON2_LIBS"
18973  elif test -n "$PKG_CONFIG"; then
18974     if test -n "$PKG_CONFIG" && \
18975     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libargon2\""; } >&5
18976   ($PKG_CONFIG --exists --print-errors "libargon2") 2>&5
18977   ac_status=$?
18978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18979   test $ac_status = 0; }; then
18980   pkg_cv_LIBARGON2_LIBS=`$PKG_CONFIG --libs "libargon2" 2>/dev/null`
18981                       test "x$?" != "x0" && pkg_failed=yes
18982 else
18983   pkg_failed=yes
18984 fi
18985  else
18986     pkg_failed=untried
18987 fi
18988
18989
18990
18991 if test $pkg_failed = yes; then
18992         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18993 $as_echo "no" >&6; }
18994
18995 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18996         _pkg_short_errors_supported=yes
18997 else
18998         _pkg_short_errors_supported=no
18999 fi
19000         if test $_pkg_short_errors_supported = yes; then
19001                 LIBARGON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libargon2" 2>&1`
19002         else
19003                 LIBARGON2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libargon2" 2>&1`
19004         fi
19005         # Put the nasty error message in config.log where it belongs
19006         echo "$LIBARGON2_PKG_ERRORS" >&5
19007
19008         LIBARGON2_LIBS="-largon2"
19009 elif test $pkg_failed = untried; then
19010         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19011 $as_echo "no" >&6; }
19012         LIBARGON2_LIBS="-largon2"
19013 else
19014         LIBARGON2_CFLAGS=$pkg_cv_LIBARGON2_CFLAGS
19015         LIBARGON2_LIBS=$pkg_cv_LIBARGON2_LIBS
19016         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19017 $as_echo "yes" >&6; }
19018
19019 fi
19020         enable_internal_argon2=no
19021 else
19022         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Argon2 bundled (slow) reference implementation will be used, please consider to use system library with --enable-libargon2." >&5
19023 $as_echo "$as_me: WARNING: Argon2 bundled (slow) reference implementation will be used, please consider to use system library with --enable-libargon2." >&2;}
19024
19025         # Check whether --enable-internal-sse-argon2 was given.
19026 if test "${enable_internal_sse_argon2+set}" = set; then :
19027   enableval=$enable_internal_sse_argon2;
19028 fi
19029
19030
19031         if test "x$enable_internal_sse_argon2" = "xyes"; then
19032                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Argon2 SSE optimization can be used" >&5
19033 $as_echo_n "checking if Argon2 SSE optimization can be used... " >&6; }
19034                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19035 /* end confdefs.h.  */
19036
19037                         #include <emmintrin.h>
19038                         __m128i testfunc(__m128i *a, __m128i *b) {
19039                           return _mm_xor_si128(_mm_loadu_si128(a), _mm_loadu_si128(b));
19040                         }
19041
19042 int
19043 main ()
19044 {
19045
19046   ;
19047   return 0;
19048 }
19049 _ACEOF
19050 if ac_fn_c_try_link "$LINENO"; then :
19051
19052 else
19053   enable_internal_sse_argon2=no
19054 fi
19055 rm -f core conftest.err conftest.$ac_objext \
19056     conftest$ac_exeext conftest.$ac_ext
19057                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_internal_sse_argon2" >&5
19058 $as_echo "$enable_internal_sse_argon2" >&6; }
19059         fi
19060 fi
19061
19062 if test "x$enable_internal_argon2" = "xyes"; then
19063
19064 $as_echo "#define USE_INTERNAL_ARGON2 1" >>confdefs.h
19065
19066 fi
19067  if test "x$enable_internal_argon2" = "xyes"; then
19068   CRYPTO_INTERNAL_ARGON2_TRUE=
19069   CRYPTO_INTERNAL_ARGON2_FALSE='#'
19070 else
19071   CRYPTO_INTERNAL_ARGON2_TRUE='#'
19072   CRYPTO_INTERNAL_ARGON2_FALSE=
19073 fi
19074
19075  if test "x$enable_internal_sse_argon2" = "xyes"; then
19076   CRYPTO_INTERNAL_SSE_ARGON2_TRUE=
19077   CRYPTO_INTERNAL_SSE_ARGON2_FALSE='#'
19078 else
19079   CRYPTO_INTERNAL_SSE_ARGON2_TRUE='#'
19080   CRYPTO_INTERNAL_SSE_ARGON2_FALSE=
19081 fi
19082
19083
19084 # Check whether --enable-blkid was given.
19085 if test "${enable_blkid+set}" = set; then :
19086   enableval=$enable_blkid;
19087 else
19088   enable_blkid=yes
19089 fi
19090
19091
19092 if test "x$enable_blkid" = "xyes"; then
19093
19094 pkg_failed=no
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid" >&5
19096 $as_echo_n "checking for blkid... " >&6; }
19097
19098 if test -n "$BLKID_CFLAGS"; then
19099     pkg_cv_BLKID_CFLAGS="$BLKID_CFLAGS"
19100  elif test -n "$PKG_CONFIG"; then
19101     if test -n "$PKG_CONFIG" && \
19102     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid\""; } >&5
19103   ($PKG_CONFIG --exists --print-errors "blkid") 2>&5
19104   ac_status=$?
19105   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19106   test $ac_status = 0; }; then
19107   pkg_cv_BLKID_CFLAGS=`$PKG_CONFIG --cflags "blkid" 2>/dev/null`
19108                       test "x$?" != "x0" && pkg_failed=yes
19109 else
19110   pkg_failed=yes
19111 fi
19112  else
19113     pkg_failed=untried
19114 fi
19115 if test -n "$BLKID_LIBS"; then
19116     pkg_cv_BLKID_LIBS="$BLKID_LIBS"
19117  elif test -n "$PKG_CONFIG"; then
19118     if test -n "$PKG_CONFIG" && \
19119     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid\""; } >&5
19120   ($PKG_CONFIG --exists --print-errors "blkid") 2>&5
19121   ac_status=$?
19122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19123   test $ac_status = 0; }; then
19124   pkg_cv_BLKID_LIBS=`$PKG_CONFIG --libs "blkid" 2>/dev/null`
19125                       test "x$?" != "x0" && pkg_failed=yes
19126 else
19127   pkg_failed=yes
19128 fi
19129  else
19130     pkg_failed=untried
19131 fi
19132
19133
19134
19135 if test $pkg_failed = yes; then
19136         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19137 $as_echo "no" >&6; }
19138
19139 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19140         _pkg_short_errors_supported=yes
19141 else
19142         _pkg_short_errors_supported=no
19143 fi
19144         if test $_pkg_short_errors_supported = yes; then
19145                 BLKID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "blkid" 2>&1`
19146         else
19147                 BLKID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "blkid" 2>&1`
19148         fi
19149         # Put the nasty error message in config.log where it belongs
19150         echo "$BLKID_PKG_ERRORS" >&5
19151
19152         LIBBLKID_LIBS="-lblkid"
19153 elif test $pkg_failed = untried; then
19154         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19155 $as_echo "no" >&6; }
19156         LIBBLKID_LIBS="-lblkid"
19157 else
19158         BLKID_CFLAGS=$pkg_cv_BLKID_CFLAGS
19159         BLKID_LIBS=$pkg_cv_BLKID_LIBS
19160         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19161 $as_echo "yes" >&6; }
19162
19163 $as_echo "#define HAVE_BLKID 1" >>confdefs.h
19164
19165 fi
19166
19167         for ac_header in blkid/blkid.h
19168 do :
19169   ac_fn_c_check_header_mongrel "$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
19170 if test "x$ac_cv_header_blkid_blkid_h" = xyes; then :
19171   cat >>confdefs.h <<_ACEOF
19172 #define HAVE_BLKID_BLKID_H 1
19173 _ACEOF
19174
19175 else
19176   as_fn_error $? "You need blkid development library installed." "$LINENO" 5
19177 fi
19178
19179 done
19180
19181         ac_fn_c_check_decl "$LINENO" "blkid_do_wipe" "ac_cv_have_decl_blkid_do_wipe" "#include <blkid/blkid.h>
19182 "
19183 if test "x$ac_cv_have_decl_blkid_do_wipe" = xyes; then :
19184
19185 $as_echo "#define HAVE_BLKID_WIPE 1" >>confdefs.h
19186
19187                         enable_blkid_wipe=yes
19188
19189 fi
19190
19191         ac_fn_c_check_decl "$LINENO" "blkid_probe_step_back" "ac_cv_have_decl_blkid_probe_step_back" "#include <blkid/blkid.h>
19192 "
19193 if test "x$ac_cv_have_decl_blkid_probe_step_back" = xyes; then :
19194
19195 $as_echo "#define HAVE_BLKID_STEP_BACK 1" >>confdefs.h
19196
19197                         enable_blkid_step_back=yes
19198
19199 fi
19200
19201         ac_fn_c_check_decl "$LINENO" "blkid_reset_probe" "ac_cv_have_decl_blkid_reset_probe" "#include <blkid/blkid.h>
19202 "
19203 if test "x$ac_cv_have_decl_blkid_reset_probe" = xyes; then :
19204   ac_have_decl=1
19205 else
19206   ac_have_decl=0
19207 fi
19208
19209 cat >>confdefs.h <<_ACEOF
19210 #define HAVE_DECL_BLKID_RESET_PROBE $ac_have_decl
19211 _ACEOF
19212 if test $ac_have_decl = 1; then :
19213
19214 else
19215   as_fn_error $? "Can not compile with blkid support, disable it by --disable-blkid." "$LINENO" 5
19216 fi
19217 ac_fn_c_check_decl "$LINENO" "blkid_probe_set_device" "ac_cv_have_decl_blkid_probe_set_device" "#include <blkid/blkid.h>
19218 "
19219 if test "x$ac_cv_have_decl_blkid_probe_set_device" = xyes; then :
19220   ac_have_decl=1
19221 else
19222   ac_have_decl=0
19223 fi
19224
19225 cat >>confdefs.h <<_ACEOF
19226 #define HAVE_DECL_BLKID_PROBE_SET_DEVICE $ac_have_decl
19227 _ACEOF
19228 if test $ac_have_decl = 1; then :
19229
19230 else
19231   as_fn_error $? "Can not compile with blkid support, disable it by --disable-blkid." "$LINENO" 5
19232 fi
19233 ac_fn_c_check_decl "$LINENO" "blkid_probe_filter_superblocks_type" "ac_cv_have_decl_blkid_probe_filter_superblocks_type" "#include <blkid/blkid.h>
19234 "
19235 if test "x$ac_cv_have_decl_blkid_probe_filter_superblocks_type" = xyes; then :
19236   ac_have_decl=1
19237 else
19238   ac_have_decl=0
19239 fi
19240
19241 cat >>confdefs.h <<_ACEOF
19242 #define HAVE_DECL_BLKID_PROBE_FILTER_SUPERBLOCKS_TYPE $ac_have_decl
19243 _ACEOF
19244 if test $ac_have_decl = 1; then :
19245
19246 else
19247   as_fn_error $? "Can not compile with blkid support, disable it by --disable-blkid." "$LINENO" 5
19248 fi
19249 ac_fn_c_check_decl "$LINENO" "blkid_do_safeprobe" "ac_cv_have_decl_blkid_do_safeprobe" "#include <blkid/blkid.h>
19250 "
19251 if test "x$ac_cv_have_decl_blkid_do_safeprobe" = xyes; then :
19252   ac_have_decl=1
19253 else
19254   ac_have_decl=0
19255 fi
19256
19257 cat >>confdefs.h <<_ACEOF
19258 #define HAVE_DECL_BLKID_DO_SAFEPROBE $ac_have_decl
19259 _ACEOF
19260 if test $ac_have_decl = 1; then :
19261
19262 else
19263   as_fn_error $? "Can not compile with blkid support, disable it by --disable-blkid." "$LINENO" 5
19264 fi
19265 ac_fn_c_check_decl "$LINENO" "blkid_do_probe" "ac_cv_have_decl_blkid_do_probe" "#include <blkid/blkid.h>
19266 "
19267 if test "x$ac_cv_have_decl_blkid_do_probe" = xyes; then :
19268   ac_have_decl=1
19269 else
19270   ac_have_decl=0
19271 fi
19272
19273 cat >>confdefs.h <<_ACEOF
19274 #define HAVE_DECL_BLKID_DO_PROBE $ac_have_decl
19275 _ACEOF
19276 if test $ac_have_decl = 1; then :
19277
19278 else
19279   as_fn_error $? "Can not compile with blkid support, disable it by --disable-blkid." "$LINENO" 5
19280 fi
19281 ac_fn_c_check_decl "$LINENO" "blkid_probe_lookup_value
19282                        " "ac_cv_have_decl_blkid_probe_lookup_value__________" "#include <blkid/blkid.h>
19283 "
19284 if test "x$ac_cv_have_decl_blkid_probe_lookup_value__________" = xyes; then :
19285   ac_have_decl=1
19286 else
19287   ac_have_decl=0
19288 fi
19289
19290 cat >>confdefs.h <<_ACEOF
19291 #define HAVE_DECL_BLKID_PROBE_LOOKUP_VALUE__________ $ac_have_decl
19292 _ACEOF
19293 if test $ac_have_decl = 1; then :
19294
19295 else
19296   as_fn_error $? "Can not compile with blkid support, disable it by --disable-blkid." "$LINENO" 5
19297 fi
19298
19299 fi
19300  if test "x$enable_blkid" = "xyes"; then
19301   HAVE_BLKID_TRUE=
19302   HAVE_BLKID_FALSE='#'
19303 else
19304   HAVE_BLKID_TRUE='#'
19305   HAVE_BLKID_FALSE=
19306 fi
19307
19308  if test "x$enable_blkid_wipe" = "xyes"; then
19309   HAVE_BLKID_WIPE_TRUE=
19310   HAVE_BLKID_WIPE_FALSE='#'
19311 else
19312   HAVE_BLKID_WIPE_TRUE='#'
19313   HAVE_BLKID_WIPE_FALSE=
19314 fi
19315
19316  if test "x$enable_blkid_step_back" = "xyes"; then
19317   HAVE_BLKID_STEP_BACK_TRUE=
19318   HAVE_BLKID_STEP_BACK_FALSE='#'
19319 else
19320   HAVE_BLKID_STEP_BACK_TRUE='#'
19321   HAVE_BLKID_STEP_BACK_FALSE=
19322 fi
19323
19324
19325 if test "x$enable_static_cryptsetup" = "xyes"; then
19326         saved_PKG_CONFIG=$PKG_CONFIG
19327         PKG_CONFIG="$PKG_CONFIG --static"
19328
19329         LIBS="$saved_LIBS -static"
19330         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poptGetContext in -lpopt" >&5
19331 $as_echo_n "checking for poptGetContext in -lpopt... " >&6; }
19332 if ${ac_cv_lib_popt_poptGetContext+:} false; then :
19333   $as_echo_n "(cached) " >&6
19334 else
19335   ac_check_lib_save_LIBS=$LIBS
19336 LIBS="-lpopt  $LIBS"
19337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19338 /* end confdefs.h.  */
19339
19340 /* Override any GCC internal prototype to avoid an error.
19341    Use char because int might match the return type of a GCC
19342    builtin and then its argument prototype would still apply.  */
19343 #ifdef __cplusplus
19344 extern "C"
19345 #endif
19346 char poptGetContext ();
19347 int
19348 main ()
19349 {
19350 return poptGetContext ();
19351   ;
19352   return 0;
19353 }
19354 _ACEOF
19355 if ac_fn_c_try_link "$LINENO"; then :
19356   ac_cv_lib_popt_poptGetContext=yes
19357 else
19358   ac_cv_lib_popt_poptGetContext=no
19359 fi
19360 rm -f core conftest.err conftest.$ac_objext \
19361     conftest$ac_exeext conftest.$ac_ext
19362 LIBS=$ac_check_lib_save_LIBS
19363 fi
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptGetContext" >&5
19365 $as_echo "$ac_cv_lib_popt_poptGetContext" >&6; }
19366 if test "x$ac_cv_lib_popt_poptGetContext" = xyes; then :
19367   cat >>confdefs.h <<_ACEOF
19368 #define HAVE_LIBPOPT 1
19369 _ACEOF
19370
19371   LIBS="-lpopt $LIBS"
19372
19373 else
19374   as_fn_error $? "Cannot find static popt library." "$LINENO" 5
19375 fi
19376
19377
19378                 LIBS="$saved_LIBS -static"
19379
19380 pkg_failed=no
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devmapper >= 1.02.27" >&5
19382 $as_echo_n "checking for devmapper >= 1.02.27... " >&6; }
19383
19384 if test -n "$DEVMAPPER_STATIC_CFLAGS"; then
19385     pkg_cv_DEVMAPPER_STATIC_CFLAGS="$DEVMAPPER_STATIC_CFLAGS"
19386  elif test -n "$PKG_CONFIG"; then
19387     if test -n "$PKG_CONFIG" && \
19388     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.27\""; } >&5
19389   ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.27") 2>&5
19390   ac_status=$?
19391   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19392   test $ac_status = 0; }; then
19393   pkg_cv_DEVMAPPER_STATIC_CFLAGS=`$PKG_CONFIG --cflags "devmapper >= 1.02.27" 2>/dev/null`
19394                       test "x$?" != "x0" && pkg_failed=yes
19395 else
19396   pkg_failed=yes
19397 fi
19398  else
19399     pkg_failed=untried
19400 fi
19401 if test -n "$DEVMAPPER_STATIC_LIBS"; then
19402     pkg_cv_DEVMAPPER_STATIC_LIBS="$DEVMAPPER_STATIC_LIBS"
19403  elif test -n "$PKG_CONFIG"; then
19404     if test -n "$PKG_CONFIG" && \
19405     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.27\""; } >&5
19406   ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.27") 2>&5
19407   ac_status=$?
19408   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19409   test $ac_status = 0; }; then
19410   pkg_cv_DEVMAPPER_STATIC_LIBS=`$PKG_CONFIG --libs "devmapper >= 1.02.27" 2>/dev/null`
19411                       test "x$?" != "x0" && pkg_failed=yes
19412 else
19413   pkg_failed=yes
19414 fi
19415  else
19416     pkg_failed=untried
19417 fi
19418
19419
19420
19421 if test $pkg_failed = yes; then
19422         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19423 $as_echo "no" >&6; }
19424
19425 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19426         _pkg_short_errors_supported=yes
19427 else
19428         _pkg_short_errors_supported=no
19429 fi
19430         if test $_pkg_short_errors_supported = yes; then
19431                 DEVMAPPER_STATIC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "devmapper >= 1.02.27" 2>&1`
19432         else
19433                 DEVMAPPER_STATIC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "devmapper >= 1.02.27" 2>&1`
19434         fi
19435         # Put the nasty error message in config.log where it belongs
19436         echo "$DEVMAPPER_STATIC_PKG_ERRORS" >&5
19437
19438
19439                 DEVMAPPER_STATIC_LIBS=$DEVMAPPER_LIBS
19440                 if test "x$enable_selinux" = "xyes"; then
19441                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_bool_set in -lsepol" >&5
19442 $as_echo_n "checking for sepol_bool_set in -lsepol... " >&6; }
19443 if ${ac_cv_lib_sepol_sepol_bool_set+:} false; then :
19444   $as_echo_n "(cached) " >&6
19445 else
19446   ac_check_lib_save_LIBS=$LIBS
19447 LIBS="-lsepol  $LIBS"
19448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19449 /* end confdefs.h.  */
19450
19451 /* Override any GCC internal prototype to avoid an error.
19452    Use char because int might match the return type of a GCC
19453    builtin and then its argument prototype would still apply.  */
19454 #ifdef __cplusplus
19455 extern "C"
19456 #endif
19457 char sepol_bool_set ();
19458 int
19459 main ()
19460 {
19461 return sepol_bool_set ();
19462   ;
19463   return 0;
19464 }
19465 _ACEOF
19466 if ac_fn_c_try_link "$LINENO"; then :
19467   ac_cv_lib_sepol_sepol_bool_set=yes
19468 else
19469   ac_cv_lib_sepol_sepol_bool_set=no
19470 fi
19471 rm -f core conftest.err conftest.$ac_objext \
19472     conftest$ac_exeext conftest.$ac_ext
19473 LIBS=$ac_check_lib_save_LIBS
19474 fi
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_bool_set" >&5
19476 $as_echo "$ac_cv_lib_sepol_sepol_bool_set" >&6; }
19477 if test "x$ac_cv_lib_sepol_sepol_bool_set" = xyes; then :
19478   cat >>confdefs.h <<_ACEOF
19479 #define HAVE_LIBSEPOL 1
19480 _ACEOF
19481
19482   LIBS="-lsepol $LIBS"
19483
19484 fi
19485
19486                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
19487 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
19488 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
19489   $as_echo_n "(cached) " >&6
19490 else
19491   ac_check_lib_save_LIBS=$LIBS
19492 LIBS="-lselinux  $LIBS"
19493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19494 /* end confdefs.h.  */
19495
19496 /* Override any GCC internal prototype to avoid an error.
19497    Use char because int might match the return type of a GCC
19498    builtin and then its argument prototype would still apply.  */
19499 #ifdef __cplusplus
19500 extern "C"
19501 #endif
19502 char is_selinux_enabled ();
19503 int
19504 main ()
19505 {
19506 return is_selinux_enabled ();
19507   ;
19508   return 0;
19509 }
19510 _ACEOF
19511 if ac_fn_c_try_link "$LINENO"; then :
19512   ac_cv_lib_selinux_is_selinux_enabled=yes
19513 else
19514   ac_cv_lib_selinux_is_selinux_enabled=no
19515 fi
19516 rm -f core conftest.err conftest.$ac_objext \
19517     conftest$ac_exeext conftest.$ac_ext
19518 LIBS=$ac_check_lib_save_LIBS
19519 fi
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
19521 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
19522 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
19523   cat >>confdefs.h <<_ACEOF
19524 #define HAVE_LIBSELINUX 1
19525 _ACEOF
19526
19527   LIBS="-lselinux $LIBS"
19528
19529 fi
19530
19531                         DEVMAPPER_STATIC_LIBS="$DEVMAPPER_STATIC_LIBS $LIBS"
19532                 fi
19533
19534 elif test $pkg_failed = untried; then
19535         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19536 $as_echo "no" >&6; }
19537
19538                 DEVMAPPER_STATIC_LIBS=$DEVMAPPER_LIBS
19539                 if test "x$enable_selinux" = "xyes"; then
19540                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_bool_set in -lsepol" >&5
19541 $as_echo_n "checking for sepol_bool_set in -lsepol... " >&6; }
19542 if ${ac_cv_lib_sepol_sepol_bool_set+:} false; then :
19543   $as_echo_n "(cached) " >&6
19544 else
19545   ac_check_lib_save_LIBS=$LIBS
19546 LIBS="-lsepol  $LIBS"
19547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19548 /* end confdefs.h.  */
19549
19550 /* Override any GCC internal prototype to avoid an error.
19551    Use char because int might match the return type of a GCC
19552    builtin and then its argument prototype would still apply.  */
19553 #ifdef __cplusplus
19554 extern "C"
19555 #endif
19556 char sepol_bool_set ();
19557 int
19558 main ()
19559 {
19560 return sepol_bool_set ();
19561   ;
19562   return 0;
19563 }
19564 _ACEOF
19565 if ac_fn_c_try_link "$LINENO"; then :
19566   ac_cv_lib_sepol_sepol_bool_set=yes
19567 else
19568   ac_cv_lib_sepol_sepol_bool_set=no
19569 fi
19570 rm -f core conftest.err conftest.$ac_objext \
19571     conftest$ac_exeext conftest.$ac_ext
19572 LIBS=$ac_check_lib_save_LIBS
19573 fi
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_bool_set" >&5
19575 $as_echo "$ac_cv_lib_sepol_sepol_bool_set" >&6; }
19576 if test "x$ac_cv_lib_sepol_sepol_bool_set" = xyes; then :
19577   cat >>confdefs.h <<_ACEOF
19578 #define HAVE_LIBSEPOL 1
19579 _ACEOF
19580
19581   LIBS="-lsepol $LIBS"
19582
19583 fi
19584
19585                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
19586 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
19587 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
19588   $as_echo_n "(cached) " >&6
19589 else
19590   ac_check_lib_save_LIBS=$LIBS
19591 LIBS="-lselinux  $LIBS"
19592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19593 /* end confdefs.h.  */
19594
19595 /* Override any GCC internal prototype to avoid an error.
19596    Use char because int might match the return type of a GCC
19597    builtin and then its argument prototype would still apply.  */
19598 #ifdef __cplusplus
19599 extern "C"
19600 #endif
19601 char is_selinux_enabled ();
19602 int
19603 main ()
19604 {
19605 return is_selinux_enabled ();
19606   ;
19607   return 0;
19608 }
19609 _ACEOF
19610 if ac_fn_c_try_link "$LINENO"; then :
19611   ac_cv_lib_selinux_is_selinux_enabled=yes
19612 else
19613   ac_cv_lib_selinux_is_selinux_enabled=no
19614 fi
19615 rm -f core conftest.err conftest.$ac_objext \
19616     conftest$ac_exeext conftest.$ac_ext
19617 LIBS=$ac_check_lib_save_LIBS
19618 fi
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
19620 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
19621 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
19622   cat >>confdefs.h <<_ACEOF
19623 #define HAVE_LIBSELINUX 1
19624 _ACEOF
19625
19626   LIBS="-lselinux $LIBS"
19627
19628 fi
19629
19630                         DEVMAPPER_STATIC_LIBS="$DEVMAPPER_STATIC_LIBS $LIBS"
19631                 fi
19632
19633 else
19634         DEVMAPPER_STATIC_CFLAGS=$pkg_cv_DEVMAPPER_STATIC_CFLAGS
19635         DEVMAPPER_STATIC_LIBS=$pkg_cv_DEVMAPPER_STATIC_LIBS
19636         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19637 $as_echo "yes" >&6; }
19638
19639 fi
19640         LIBS="$saved_LIBS $DEVMAPPER_STATIC_LIBS"
19641         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_uuid in -ldevmapper" >&5
19642 $as_echo_n "checking for dm_task_set_uuid in -ldevmapper... " >&6; }
19643 if ${ac_cv_lib_devmapper_dm_task_set_uuid+:} false; then :
19644   $as_echo_n "(cached) " >&6
19645 else
19646   ac_check_lib_save_LIBS=$LIBS
19647 LIBS="-ldevmapper  $LIBS"
19648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19649 /* end confdefs.h.  */
19650
19651 /* Override any GCC internal prototype to avoid an error.
19652    Use char because int might match the return type of a GCC
19653    builtin and then its argument prototype would still apply.  */
19654 #ifdef __cplusplus
19655 extern "C"
19656 #endif
19657 char dm_task_set_uuid ();
19658 int
19659 main ()
19660 {
19661 return dm_task_set_uuid ();
19662   ;
19663   return 0;
19664 }
19665 _ACEOF
19666 if ac_fn_c_try_link "$LINENO"; then :
19667   ac_cv_lib_devmapper_dm_task_set_uuid=yes
19668 else
19669   ac_cv_lib_devmapper_dm_task_set_uuid=no
19670 fi
19671 rm -f core conftest.err conftest.$ac_objext \
19672     conftest$ac_exeext conftest.$ac_ext
19673 LIBS=$ac_check_lib_save_LIBS
19674 fi
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_uuid" >&5
19676 $as_echo "$ac_cv_lib_devmapper_dm_task_set_uuid" >&6; }
19677 if test "x$ac_cv_lib_devmapper_dm_task_set_uuid" = xyes; then :
19678   cat >>confdefs.h <<_ACEOF
19679 #define HAVE_LIBDEVMAPPER 1
19680 _ACEOF
19681
19682   LIBS="-ldevmapper $LIBS"
19683
19684 else
19685   as_fn_error $? "Cannot link with static device-mapper library." "$LINENO" 5
19686 fi
19687
19688
19689                 LIBS="$saved_LIBS -static"
19690         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
19691 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
19692 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
19693   $as_echo_n "(cached) " >&6
19694 else
19695   ac_check_lib_save_LIBS=$LIBS
19696 LIBS="-luuid  $LIBS"
19697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19698 /* end confdefs.h.  */
19699
19700 /* Override any GCC internal prototype to avoid an error.
19701    Use char because int might match the return type of a GCC
19702    builtin and then its argument prototype would still apply.  */
19703 #ifdef __cplusplus
19704 extern "C"
19705 #endif
19706 char uuid_generate ();
19707 int
19708 main ()
19709 {
19710 return uuid_generate ();
19711   ;
19712   return 0;
19713 }
19714 _ACEOF
19715 if ac_fn_c_try_link "$LINENO"; then :
19716   ac_cv_lib_uuid_uuid_generate=yes
19717 else
19718   ac_cv_lib_uuid_uuid_generate=no
19719 fi
19720 rm -f core conftest.err conftest.$ac_objext \
19721     conftest$ac_exeext conftest.$ac_ext
19722 LIBS=$ac_check_lib_save_LIBS
19723 fi
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
19725 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
19726 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
19727   cat >>confdefs.h <<_ACEOF
19728 #define HAVE_LIBUUID 1
19729 _ACEOF
19730
19731   LIBS="-luuid $LIBS"
19732
19733 else
19734   as_fn_error $? "Cannot find static uuid library." "$LINENO" 5
19735 fi
19736
19737
19738         LIBS=$saved_LIBS
19739         PKG_CONFIG=$saved_PKG_CONFIG
19740 fi
19741
19742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd tmpfiles config directory" >&5
19743 $as_echo_n "checking for systemd tmpfiles config directory... " >&6; }
19744
19745 if test -n "$systemd_tmpfilesdir"; then
19746     pkg_cv_systemd_tmpfilesdir="$systemd_tmpfilesdir"
19747  elif test -n "$PKG_CONFIG"; then
19748     if test -n "$PKG_CONFIG" && \
19749     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
19750   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
19751   ac_status=$?
19752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19753   test $ac_status = 0; }; then
19754   pkg_cv_systemd_tmpfilesdir=`$PKG_CONFIG --variable="tmpfilesdir" "systemd" 2>/dev/null`
19755                       test "x$?" != "x0" && pkg_failed=yes
19756 else
19757   pkg_failed=yes
19758 fi
19759  else
19760     pkg_failed=untried
19761 fi
19762 systemd_tmpfilesdir=$pkg_cv_systemd_tmpfilesdir
19763
19764 if test "x$systemd_tmpfilesdir" = x""; then :
19765   systemd_tmpfilesdir=no
19766 fi
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $systemd_tmpfilesdir" >&5
19768 $as_echo "$systemd_tmpfilesdir" >&6; }
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789 # Check whether --enable-dev-random was given.
19790 if test "${enable_dev_random+set}" = set; then :
19791   enableval=$enable_dev_random;
19792 fi
19793
19794 if test "x$enable_dev_random" = "xyes"; then
19795         default_rng=/dev/random
19796 else
19797         default_rng=/dev/urandom
19798 fi
19799
19800 cat >>confdefs.h <<_ACEOF
19801 #define DEFAULT_RNG "$default_rng"
19802 _ACEOF
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814 # Check whether --with-plain-hash was given.
19815 if test "${with_plain_hash+set}" = set; then :
19816   withval=$with_plain_hash;
19817 cat >>confdefs.h <<_ACEOF
19818 #define DEFAULT_PLAIN_HASH "$withval"
19819 _ACEOF
19820
19821
19822 else
19823
19824 cat >>confdefs.h <<_ACEOF
19825 #define DEFAULT_PLAIN_HASH "ripemd160"
19826 _ACEOF
19827
19828
19829
19830 fi
19831
19832
19833 # Check whether --with-plain-cipher was given.
19834 if test "${with_plain_cipher+set}" = set; then :
19835   withval=$with_plain_cipher;
19836 cat >>confdefs.h <<_ACEOF
19837 #define DEFAULT_PLAIN_CIPHER "$withval"
19838 _ACEOF
19839
19840
19841 else
19842
19843 cat >>confdefs.h <<_ACEOF
19844 #define DEFAULT_PLAIN_CIPHER "aes"
19845 _ACEOF
19846
19847
19848
19849 fi
19850
19851
19852 # Check whether --with-plain-mode was given.
19853 if test "${with_plain_mode+set}" = set; then :
19854   withval=$with_plain_mode;
19855 cat >>confdefs.h <<_ACEOF
19856 #define DEFAULT_PLAIN_MODE "$withval"
19857 _ACEOF
19858
19859
19860 else
19861
19862 cat >>confdefs.h <<_ACEOF
19863 #define DEFAULT_PLAIN_MODE "cbc-essiv:sha256"
19864 _ACEOF
19865
19866
19867
19868 fi
19869
19870
19871 # Check whether --with-plain-keybits was given.
19872 if test "${with_plain_keybits+set}" = set; then :
19873   withval=$with_plain_keybits;
19874 cat >>confdefs.h <<_ACEOF
19875 #define DEFAULT_PLAIN_KEYBITS $withval
19876 _ACEOF
19877
19878
19879 else
19880
19881 cat >>confdefs.h <<_ACEOF
19882 #define DEFAULT_PLAIN_KEYBITS 256
19883 _ACEOF
19884
19885
19886
19887 fi
19888
19889
19890
19891 # Check whether --with-luks1-hash was given.
19892 if test "${with_luks1_hash+set}" = set; then :
19893   withval=$with_luks1_hash;
19894 cat >>confdefs.h <<_ACEOF
19895 #define DEFAULT_LUKS1_HASH "$withval"
19896 _ACEOF
19897
19898
19899 else
19900
19901 cat >>confdefs.h <<_ACEOF
19902 #define DEFAULT_LUKS1_HASH "sha256"
19903 _ACEOF
19904
19905
19906
19907 fi
19908
19909
19910 # Check whether --with-luks1-cipher was given.
19911 if test "${with_luks1_cipher+set}" = set; then :
19912   withval=$with_luks1_cipher;
19913 cat >>confdefs.h <<_ACEOF
19914 #define DEFAULT_LUKS1_CIPHER "$withval"
19915 _ACEOF
19916
19917
19918 else
19919
19920 cat >>confdefs.h <<_ACEOF
19921 #define DEFAULT_LUKS1_CIPHER "aes"
19922 _ACEOF
19923
19924
19925
19926 fi
19927
19928
19929 # Check whether --with-luks1-mode was given.
19930 if test "${with_luks1_mode+set}" = set; then :
19931   withval=$with_luks1_mode;
19932 cat >>confdefs.h <<_ACEOF
19933 #define DEFAULT_LUKS1_MODE "$withval"
19934 _ACEOF
19935
19936
19937 else
19938
19939 cat >>confdefs.h <<_ACEOF
19940 #define DEFAULT_LUKS1_MODE "xts-plain64"
19941 _ACEOF
19942
19943
19944
19945 fi
19946
19947
19948 # Check whether --with-luks1-keybits was given.
19949 if test "${with_luks1_keybits+set}" = set; then :
19950   withval=$with_luks1_keybits;
19951 cat >>confdefs.h <<_ACEOF
19952 #define DEFAULT_LUKS1_KEYBITS $withval
19953 _ACEOF
19954
19955
19956 else
19957
19958 cat >>confdefs.h <<_ACEOF
19959 #define DEFAULT_LUKS1_KEYBITS 256
19960 _ACEOF
19961
19962
19963
19964 fi
19965
19966
19967 # Check whether --enable-luks_adjust_xts_keysize was given.
19968 if test "${enable_luks_adjust_xts_keysize+set}" = set; then :
19969   enableval=$enable_luks_adjust_xts_keysize;
19970 else
19971   enable_luks_adjust_xts_keysize=yes
19972 fi
19973
19974 if test "x$enable_luks_adjust_xts_keysize" = "xyes"; then
19975
19976 $as_echo "#define ENABLE_LUKS_ADJUST_XTS_KEYSIZE 1" >>confdefs.h
19977
19978 fi
19979
19980
19981 # Check whether --with-luks2-pbkdf was given.
19982 if test "${with_luks2_pbkdf+set}" = set; then :
19983   withval=$with_luks2_pbkdf;
19984 cat >>confdefs.h <<_ACEOF
19985 #define DEFAULT_LUKS2_PBKDF "$withval"
19986 _ACEOF
19987
19988
19989 else
19990
19991 cat >>confdefs.h <<_ACEOF
19992 #define DEFAULT_LUKS2_PBKDF "argon2i"
19993 _ACEOF
19994
19995
19996
19997 fi
19998
19999
20000 # Check whether --with-luks1-iter-time was given.
20001 if test "${with_luks1_iter_time+set}" = set; then :
20002   withval=$with_luks1_iter_time;
20003 cat >>confdefs.h <<_ACEOF
20004 #define DEFAULT_LUKS1_ITER_TIME $withval
20005 _ACEOF
20006
20007
20008 else
20009
20010 cat >>confdefs.h <<_ACEOF
20011 #define DEFAULT_LUKS1_ITER_TIME 2000
20012 _ACEOF
20013
20014
20015
20016 fi
20017
20018
20019 # Check whether --with-luks2-iter-time was given.
20020 if test "${with_luks2_iter_time+set}" = set; then :
20021   withval=$with_luks2_iter_time;
20022 cat >>confdefs.h <<_ACEOF
20023 #define DEFAULT_LUKS2_ITER_TIME $withval
20024 _ACEOF
20025
20026
20027 else
20028
20029 cat >>confdefs.h <<_ACEOF
20030 #define DEFAULT_LUKS2_ITER_TIME 2000
20031 _ACEOF
20032
20033
20034
20035 fi
20036
20037
20038 # Check whether --with-luks2-memory-kb was given.
20039 if test "${with_luks2_memory_kb+set}" = set; then :
20040   withval=$with_luks2_memory_kb;
20041 cat >>confdefs.h <<_ACEOF
20042 #define DEFAULT_LUKS2_MEMORY_KB $withval
20043 _ACEOF
20044
20045
20046 else
20047
20048 cat >>confdefs.h <<_ACEOF
20049 #define DEFAULT_LUKS2_MEMORY_KB 1048576
20050 _ACEOF
20051
20052
20053
20054 fi
20055
20056
20057 # Check whether --with-luks2-parallel-threads was given.
20058 if test "${with_luks2_parallel_threads+set}" = set; then :
20059   withval=$with_luks2_parallel_threads;
20060 cat >>confdefs.h <<_ACEOF
20061 #define DEFAULT_LUKS2_PARALLEL_THREADS $withval
20062 _ACEOF
20063
20064
20065 else
20066
20067 cat >>confdefs.h <<_ACEOF
20068 #define DEFAULT_LUKS2_PARALLEL_THREADS 4
20069 _ACEOF
20070
20071
20072
20073 fi
20074
20075
20076
20077 # Check whether --with-luks2-keyslot-cipher was given.
20078 if test "${with_luks2_keyslot_cipher+set}" = set; then :
20079   withval=$with_luks2_keyslot_cipher;
20080 cat >>confdefs.h <<_ACEOF
20081 #define DEFAULT_LUKS2_KEYSLOT_CIPHER "$withval"
20082 _ACEOF
20083
20084
20085 else
20086
20087 cat >>confdefs.h <<_ACEOF
20088 #define DEFAULT_LUKS2_KEYSLOT_CIPHER "aes-xts-plain64"
20089 _ACEOF
20090
20091
20092
20093 fi
20094
20095
20096 # Check whether --with-luks2-keyslot-keybits was given.
20097 if test "${with_luks2_keyslot_keybits+set}" = set; then :
20098   withval=$with_luks2_keyslot_keybits;
20099 cat >>confdefs.h <<_ACEOF
20100 #define DEFAULT_LUKS2_KEYSLOT_KEYBITS $withval
20101 _ACEOF
20102
20103
20104 else
20105
20106 cat >>confdefs.h <<_ACEOF
20107 #define DEFAULT_LUKS2_KEYSLOT_KEYBITS 512
20108 _ACEOF
20109
20110
20111
20112 fi
20113
20114
20115
20116 # Check whether --with-loopaes-cipher was given.
20117 if test "${with_loopaes_cipher+set}" = set; then :
20118   withval=$with_loopaes_cipher;
20119 cat >>confdefs.h <<_ACEOF
20120 #define DEFAULT_LOOPAES_CIPHER "$withval"
20121 _ACEOF
20122
20123
20124 else
20125
20126 cat >>confdefs.h <<_ACEOF
20127 #define DEFAULT_LOOPAES_CIPHER "aes"
20128 _ACEOF
20129
20130
20131
20132 fi
20133
20134
20135 # Check whether --with-loopaes-keybits was given.
20136 if test "${with_loopaes_keybits+set}" = set; then :
20137   withval=$with_loopaes_keybits;
20138 cat >>confdefs.h <<_ACEOF
20139 #define DEFAULT_LOOPAES_KEYBITS $withval
20140 _ACEOF
20141
20142
20143 else
20144
20145 cat >>confdefs.h <<_ACEOF
20146 #define DEFAULT_LOOPAES_KEYBITS 256
20147 _ACEOF
20148
20149
20150
20151 fi
20152
20153
20154
20155 # Check whether --with-keyfile-size-maxkb was given.
20156 if test "${with_keyfile_size_maxkb+set}" = set; then :
20157   withval=$with_keyfile_size_maxkb;
20158 cat >>confdefs.h <<_ACEOF
20159 #define DEFAULT_KEYFILE_SIZE_MAXKB $withval
20160 _ACEOF
20161
20162
20163 else
20164
20165 cat >>confdefs.h <<_ACEOF
20166 #define DEFAULT_KEYFILE_SIZE_MAXKB 8192
20167 _ACEOF
20168
20169
20170
20171 fi
20172
20173
20174 # Check whether --with-passphrase-size-max was given.
20175 if test "${with_passphrase_size_max+set}" = set; then :
20176   withval=$with_passphrase_size_max;
20177 cat >>confdefs.h <<_ACEOF
20178 #define DEFAULT_PASSPHRASE_SIZE_MAX $withval
20179 _ACEOF
20180
20181
20182 else
20183
20184 cat >>confdefs.h <<_ACEOF
20185 #define DEFAULT_PASSPHRASE_SIZE_MAX 512
20186 _ACEOF
20187
20188
20189
20190 fi
20191
20192
20193
20194 # Check whether --with-verity-hash was given.
20195 if test "${with_verity_hash+set}" = set; then :
20196   withval=$with_verity_hash;
20197 cat >>confdefs.h <<_ACEOF
20198 #define DEFAULT_VERITY_HASH "$withval"
20199 _ACEOF
20200
20201
20202 else
20203
20204 cat >>confdefs.h <<_ACEOF
20205 #define DEFAULT_VERITY_HASH "sha256"
20206 _ACEOF
20207
20208
20209
20210 fi
20211
20212
20213 # Check whether --with-verity-data-block was given.
20214 if test "${with_verity_data_block+set}" = set; then :
20215   withval=$with_verity_data_block;
20216 cat >>confdefs.h <<_ACEOF
20217 #define DEFAULT_VERITY_DATA_BLOCK $withval
20218 _ACEOF
20219
20220
20221 else
20222
20223 cat >>confdefs.h <<_ACEOF
20224 #define DEFAULT_VERITY_DATA_BLOCK 4096
20225 _ACEOF
20226
20227
20228
20229 fi
20230
20231
20232 # Check whether --with-verity-hash-block was given.
20233 if test "${with_verity_hash_block+set}" = set; then :
20234   withval=$with_verity_hash_block;
20235 cat >>confdefs.h <<_ACEOF
20236 #define DEFAULT_VERITY_HASH_BLOCK $withval
20237 _ACEOF
20238
20239
20240 else
20241
20242 cat >>confdefs.h <<_ACEOF
20243 #define DEFAULT_VERITY_HASH_BLOCK 4096
20244 _ACEOF
20245
20246
20247
20248 fi
20249
20250
20251 # Check whether --with-verity-salt-size was given.
20252 if test "${with_verity_salt_size+set}" = set; then :
20253   withval=$with_verity_salt_size;
20254 cat >>confdefs.h <<_ACEOF
20255 #define DEFAULT_VERITY_SALT_SIZE $withval
20256 _ACEOF
20257
20258
20259 else
20260
20261 cat >>confdefs.h <<_ACEOF
20262 #define DEFAULT_VERITY_SALT_SIZE 32
20263 _ACEOF
20264
20265
20266
20267 fi
20268
20269
20270 # Check whether --with-verity-fec-roots was given.
20271 if test "${with_verity_fec_roots+set}" = set; then :
20272   withval=$with_verity_fec_roots;
20273 cat >>confdefs.h <<_ACEOF
20274 #define DEFAULT_VERITY_FEC_ROOTS $withval
20275 _ACEOF
20276
20277
20278 else
20279
20280 cat >>confdefs.h <<_ACEOF
20281 #define DEFAULT_VERITY_FEC_ROOTS 2
20282 _ACEOF
20283
20284
20285
20286 fi
20287
20288
20289
20290 # Check whether --with-tmpfilesdir was given.
20291 if test "${with_tmpfilesdir+set}" = set; then :
20292   withval=$with_tmpfilesdir;
20293 cat >>confdefs.h <<_ACEOF
20294 #define DEFAULT_TMPFILESDIR "$withval"
20295 _ACEOF
20296
20297
20298 else
20299
20300 cat >>confdefs.h <<_ACEOF
20301 #define DEFAULT_TMPFILESDIR ""
20302 _ACEOF
20303
20304
20305
20306 fi
20307
20308 test -z "$with_tmpfilesdir" && with_tmpfilesdir=$systemd_tmpfilesdir
20309 test "x$with_tmpfilesdir" = "xno" || {
20310
20311         case "${with_tmpfilesdir}" in
20312                 /*) ;;
20313                 *) as_fn_error $? "with-tmpfilesdir argument must be an absolute path." "$LINENO" 5;;
20314         esac
20315
20316         DEFAULT_TMPFILESDIR=$with_tmpfilesdir
20317
20318 }
20319  if test -n "$DEFAULT_TMPFILESDIR"; then
20320   CRYPTSETUP_TMPFILE_TRUE=
20321   CRYPTSETUP_TMPFILE_FALSE='#'
20322 else
20323   CRYPTSETUP_TMPFILE_TRUE='#'
20324   CRYPTSETUP_TMPFILE_FALSE=
20325 fi
20326
20327
20328
20329 # Check whether --with-luks2-lock-path was given.
20330 if test "${with_luks2_lock_path+set}" = set; then :
20331   withval=$with_luks2_lock_path;
20332 cat >>confdefs.h <<_ACEOF
20333 #define DEFAULT_LUKS2_LOCK_PATH "$withval"
20334 _ACEOF
20335
20336
20337 else
20338
20339 cat >>confdefs.h <<_ACEOF
20340 #define DEFAULT_LUKS2_LOCK_PATH "/run/cryptsetup"
20341 _ACEOF
20342
20343
20344
20345 fi
20346
20347 test -z "$with_luks2_lock_path" && with_luks2_lock_path=/run/cryptsetup
20348
20349         case "${with_luks2_lock_path}" in
20350                 /*) ;;
20351                 *) as_fn_error $? "with-luks2-lock-path argument must be an absolute path." "$LINENO" 5;;
20352         esac
20353
20354 DEFAULT_LUKS2_LOCK_PATH=$with_luks2_lock_path
20355
20356
20357
20358 # Check whether --with-luks2-lock-dir-perms was given.
20359 if test "${with_luks2_lock_dir_perms+set}" = set; then :
20360   withval=$with_luks2_lock_dir_perms;
20361 cat >>confdefs.h <<_ACEOF
20362 #define DEFAULT_LUKS2_LOCK_DIR_PERMS $withval
20363 _ACEOF
20364
20365
20366 else
20367
20368 cat >>confdefs.h <<_ACEOF
20369 #define DEFAULT_LUKS2_LOCK_DIR_PERMS 0700
20370 _ACEOF
20371
20372
20373
20374 fi
20375
20376 test -z "$with_luks2_lock_dir_perms" && with_luks2_lock_dir_perms=0700
20377 DEFAULT_LUKS2_LOCK_DIR_PERMS=$with_luks2_lock_dir_perms
20378
20379
20380
20381 # Check whether --with-default_luks_format was given.
20382 if test "${with_default_luks_format+set}" = set; then :
20383   withval=$with_default_luks_format;
20384 else
20385   with_default_luks_format=LUKS2
20386 fi
20387
20388
20389 case $with_default_luks_format in
20390         LUKS1) default_luks=CRYPT_LUKS1 ;;
20391         LUKS2) default_luks=CRYPT_LUKS2 ;;
20392         *) as_fn_error $? "Unknown default LUKS format. Use LUKS1 or LUKS2 only." "$LINENO" 5 ;;
20393 esac
20394
20395 cat >>confdefs.h <<_ACEOF
20396 #define DEFAULT_LUKS_FORMAT $default_luks
20397 _ACEOF
20398
20399
20400
20401 ac_config_files="$ac_config_files Makefile lib/libcryptsetup.pc po/Makefile.in scripts/cryptsetup.conf tests/Makefile"
20402
20403 cat >confcache <<\_ACEOF
20404 # This file is a shell script that caches the results of configure
20405 # tests run on this system so they can be shared between configure
20406 # scripts and configure runs, see configure's option --config-cache.
20407 # It is not useful on other systems.  If it contains results you don't
20408 # want to keep, you may remove or edit it.
20409 #
20410 # config.status only pays attention to the cache file if you give it
20411 # the --recheck option to rerun configure.
20412 #
20413 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20414 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20415 # following values.
20416
20417 _ACEOF
20418
20419 # The following way of writing the cache mishandles newlines in values,
20420 # but we know of no workaround that is simple, portable, and efficient.
20421 # So, we kill variables containing newlines.
20422 # Ultrix sh set writes to stderr and can't be redirected directly,
20423 # and sets the high bit in the cache file unless we assign to the vars.
20424 (
20425   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20426     eval ac_val=\$$ac_var
20427     case $ac_val in #(
20428     *${as_nl}*)
20429       case $ac_var in #(
20430       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20431 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20432       esac
20433       case $ac_var in #(
20434       _ | IFS | as_nl) ;; #(
20435       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20436       *) { eval $ac_var=; unset $ac_var;} ;;
20437       esac ;;
20438     esac
20439   done
20440
20441   (set) 2>&1 |
20442     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20443     *${as_nl}ac_space=\ *)
20444       # `set' does not quote correctly, so add quotes: double-quote
20445       # substitution turns \\\\ into \\, and sed turns \\ into \.
20446       sed -n \
20447         "s/'/'\\\\''/g;
20448           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20449       ;; #(
20450     *)
20451       # `set' quotes correctly as required by POSIX, so do not add quotes.
20452       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20453       ;;
20454     esac |
20455     sort
20456 ) |
20457   sed '
20458      /^ac_cv_env_/b end
20459      t clear
20460      :clear
20461      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20462      t end
20463      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20464      :end' >>confcache
20465 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20466   if test -w "$cache_file"; then
20467     if test "x$cache_file" != "x/dev/null"; then
20468       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20469 $as_echo "$as_me: updating cache $cache_file" >&6;}
20470       if test ! -f "$cache_file" || test -h "$cache_file"; then
20471         cat confcache >"$cache_file"
20472       else
20473         case $cache_file in #(
20474         */* | ?:*)
20475           mv -f confcache "$cache_file"$$ &&
20476           mv -f "$cache_file"$$ "$cache_file" ;; #(
20477         *)
20478           mv -f confcache "$cache_file" ;;
20479         esac
20480       fi
20481     fi
20482   else
20483     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20484 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20485   fi
20486 fi
20487 rm -f confcache
20488
20489 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20490 # Let make expand exec_prefix.
20491 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20492
20493 DEFS=-DHAVE_CONFIG_H
20494
20495 ac_libobjs=
20496 ac_ltlibobjs=
20497 U=
20498 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20499   # 1. Remove the extension, and $U if already installed.
20500   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20501   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20502   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20503   #    will be set to the directory where LIBOBJS objects are built.
20504   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20505   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20506 done
20507 LIBOBJS=$ac_libobjs
20508
20509 LTLIBOBJS=$ac_ltlibobjs
20510
20511
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20513 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20514    if test -n "$am_sleep_pid"; then
20515      # Hide warnings about reused PIDs.
20516      wait $am_sleep_pid 2>/dev/null
20517    fi
20518    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20519 $as_echo "done" >&6; }
20520  if test -n "$EXEEXT"; then
20521   am__EXEEXT_TRUE=
20522   am__EXEEXT_FALSE='#'
20523 else
20524   am__EXEEXT_TRUE='#'
20525   am__EXEEXT_FALSE=
20526 fi
20527
20528 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20529   as_fn_error $? "conditional \"AMDEP\" was never defined.
20530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20531 fi
20532 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20533   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20535 fi
20536 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20537   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20539 fi
20540 if test -z "${KERNEL_KEYRING_TRUE}" && test -z "${KERNEL_KEYRING_FALSE}"; then
20541   as_fn_error $? "conditional \"KERNEL_KEYRING\" was never defined.
20542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20543 fi
20544
20545 if test -z "${STATIC_TOOLS_TRUE}" && test -z "${STATIC_TOOLS_FALSE}"; then
20546   as_fn_error $? "conditional \"STATIC_TOOLS\" was never defined.
20547 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20548 fi
20549 if test -z "${CRYPTSETUP_TRUE}" && test -z "${CRYPTSETUP_FALSE}"; then
20550   as_fn_error $? "conditional \"CRYPTSETUP\" was never defined.
20551 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20552 fi
20553 if test -z "${VERITYSETUP_TRUE}" && test -z "${VERITYSETUP_FALSE}"; then
20554   as_fn_error $? "conditional \"VERITYSETUP\" was never defined.
20555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20556 fi
20557 if test -z "${REENCRYPT_TRUE}" && test -z "${REENCRYPT_FALSE}"; then
20558   as_fn_error $? "conditional \"REENCRYPT\" was never defined.
20559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20560 fi
20561 if test -z "${INTEGRITYSETUP_TRUE}" && test -z "${INTEGRITYSETUP_FALSE}"; then
20562   as_fn_error $? "conditional \"INTEGRITYSETUP\" was never defined.
20563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20564 fi
20565 if test -z "${CRYPTO_BACKEND_GCRYPT_TRUE}" && test -z "${CRYPTO_BACKEND_GCRYPT_FALSE}"; then
20566   as_fn_error $? "conditional \"CRYPTO_BACKEND_GCRYPT\" was never defined.
20567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20568 fi
20569 if test -z "${CRYPTO_BACKEND_OPENSSL_TRUE}" && test -z "${CRYPTO_BACKEND_OPENSSL_FALSE}"; then
20570   as_fn_error $? "conditional \"CRYPTO_BACKEND_OPENSSL\" was never defined.
20571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20572 fi
20573 if test -z "${CRYPTO_BACKEND_NSS_TRUE}" && test -z "${CRYPTO_BACKEND_NSS_FALSE}"; then
20574   as_fn_error $? "conditional \"CRYPTO_BACKEND_NSS\" was never defined.
20575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20576 fi
20577 if test -z "${CRYPTO_BACKEND_KERNEL_TRUE}" && test -z "${CRYPTO_BACKEND_KERNEL_FALSE}"; then
20578   as_fn_error $? "conditional \"CRYPTO_BACKEND_KERNEL\" was never defined.
20579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20580 fi
20581 if test -z "${CRYPTO_BACKEND_NETTLE_TRUE}" && test -z "${CRYPTO_BACKEND_NETTLE_FALSE}"; then
20582   as_fn_error $? "conditional \"CRYPTO_BACKEND_NETTLE\" was never defined.
20583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20584 fi
20585 if test -z "${CRYPTO_INTERNAL_PBKDF2_TRUE}" && test -z "${CRYPTO_INTERNAL_PBKDF2_FALSE}"; then
20586   as_fn_error $? "conditional \"CRYPTO_INTERNAL_PBKDF2\" was never defined.
20587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20588 fi
20589 if test -z "${CRYPTO_INTERNAL_ARGON2_TRUE}" && test -z "${CRYPTO_INTERNAL_ARGON2_FALSE}"; then
20590   as_fn_error $? "conditional \"CRYPTO_INTERNAL_ARGON2\" was never defined.
20591 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20592 fi
20593 if test -z "${CRYPTO_INTERNAL_SSE_ARGON2_TRUE}" && test -z "${CRYPTO_INTERNAL_SSE_ARGON2_FALSE}"; then
20594   as_fn_error $? "conditional \"CRYPTO_INTERNAL_SSE_ARGON2\" was never defined.
20595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20596 fi
20597 if test -z "${HAVE_BLKID_TRUE}" && test -z "${HAVE_BLKID_FALSE}"; then
20598   as_fn_error $? "conditional \"HAVE_BLKID\" was never defined.
20599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20600 fi
20601 if test -z "${HAVE_BLKID_WIPE_TRUE}" && test -z "${HAVE_BLKID_WIPE_FALSE}"; then
20602   as_fn_error $? "conditional \"HAVE_BLKID_WIPE\" was never defined.
20603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20604 fi
20605 if test -z "${HAVE_BLKID_STEP_BACK_TRUE}" && test -z "${HAVE_BLKID_STEP_BACK_FALSE}"; then
20606   as_fn_error $? "conditional \"HAVE_BLKID_STEP_BACK\" was never defined.
20607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20608 fi
20609 if test -z "${CRYPTSETUP_TMPFILE_TRUE}" && test -z "${CRYPTSETUP_TMPFILE_FALSE}"; then
20610   as_fn_error $? "conditional \"CRYPTSETUP_TMPFILE\" was never defined.
20611 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20612 fi
20613
20614 : "${CONFIG_STATUS=./config.status}"
20615 ac_write_fail=0
20616 ac_clean_files_save=$ac_clean_files
20617 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20619 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20620 as_write_fail=0
20621 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20622 #! $SHELL
20623 # Generated by $as_me.
20624 # Run this file to recreate the current configuration.
20625 # Compiler output produced by configure, useful for debugging
20626 # configure, is in config.log if it exists.
20627
20628 debug=false
20629 ac_cs_recheck=false
20630 ac_cs_silent=false
20631
20632 SHELL=\${CONFIG_SHELL-$SHELL}
20633 export SHELL
20634 _ASEOF
20635 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20636 ## -------------------- ##
20637 ## M4sh Initialization. ##
20638 ## -------------------- ##
20639
20640 # Be more Bourne compatible
20641 DUALCASE=1; export DUALCASE # for MKS sh
20642 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20643   emulate sh
20644   NULLCMD=:
20645   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20646   # is contrary to our usage.  Disable this feature.
20647   alias -g '${1+"$@"}'='"$@"'
20648   setopt NO_GLOB_SUBST
20649 else
20650   case `(set -o) 2>/dev/null` in #(
20651   *posix*) :
20652     set -o posix ;; #(
20653   *) :
20654      ;;
20655 esac
20656 fi
20657
20658
20659 as_nl='
20660 '
20661 export as_nl
20662 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20663 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20664 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20665 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20666 # Prefer a ksh shell builtin over an external printf program on Solaris,
20667 # but without wasting forks for bash or zsh.
20668 if test -z "$BASH_VERSION$ZSH_VERSION" \
20669     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20670   as_echo='print -r --'
20671   as_echo_n='print -rn --'
20672 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20673   as_echo='printf %s\n'
20674   as_echo_n='printf %s'
20675 else
20676   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20677     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20678     as_echo_n='/usr/ucb/echo -n'
20679   else
20680     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20681     as_echo_n_body='eval
20682       arg=$1;
20683       case $arg in #(
20684       *"$as_nl"*)
20685         expr "X$arg" : "X\\(.*\\)$as_nl";
20686         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20687       esac;
20688       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20689     '
20690     export as_echo_n_body
20691     as_echo_n='sh -c $as_echo_n_body as_echo'
20692   fi
20693   export as_echo_body
20694   as_echo='sh -c $as_echo_body as_echo'
20695 fi
20696
20697 # The user is always right.
20698 if test "${PATH_SEPARATOR+set}" != set; then
20699   PATH_SEPARATOR=:
20700   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20701     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20702       PATH_SEPARATOR=';'
20703   }
20704 fi
20705
20706
20707 # IFS
20708 # We need space, tab and new line, in precisely that order.  Quoting is
20709 # there to prevent editors from complaining about space-tab.
20710 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20711 # splitting by setting IFS to empty value.)
20712 IFS=" ""        $as_nl"
20713
20714 # Find who we are.  Look in the path if we contain no directory separator.
20715 as_myself=
20716 case $0 in #((
20717   *[\\/]* ) as_myself=$0 ;;
20718   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20719 for as_dir in $PATH
20720 do
20721   IFS=$as_save_IFS
20722   test -z "$as_dir" && as_dir=.
20723     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20724   done
20725 IFS=$as_save_IFS
20726
20727      ;;
20728 esac
20729 # We did not find ourselves, most probably we were run as `sh COMMAND'
20730 # in which case we are not to be found in the path.
20731 if test "x$as_myself" = x; then
20732   as_myself=$0
20733 fi
20734 if test ! -f "$as_myself"; then
20735   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20736   exit 1
20737 fi
20738
20739 # Unset variables that we do not need and which cause bugs (e.g. in
20740 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20741 # suppresses any "Segmentation fault" message there.  '((' could
20742 # trigger a bug in pdksh 5.2.14.
20743 for as_var in BASH_ENV ENV MAIL MAILPATH
20744 do eval test x\${$as_var+set} = xset \
20745   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20746 done
20747 PS1='$ '
20748 PS2='> '
20749 PS4='+ '
20750
20751 # NLS nuisances.
20752 LC_ALL=C
20753 export LC_ALL
20754 LANGUAGE=C
20755 export LANGUAGE
20756
20757 # CDPATH.
20758 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20759
20760
20761 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20762 # ----------------------------------------
20763 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20764 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20765 # script with STATUS, using 1 if that was 0.
20766 as_fn_error ()
20767 {
20768   as_status=$1; test $as_status -eq 0 && as_status=1
20769   if test "$4"; then
20770     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20771     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20772   fi
20773   $as_echo "$as_me: error: $2" >&2
20774   as_fn_exit $as_status
20775 } # as_fn_error
20776
20777
20778 # as_fn_set_status STATUS
20779 # -----------------------
20780 # Set $? to STATUS, without forking.
20781 as_fn_set_status ()
20782 {
20783   return $1
20784 } # as_fn_set_status
20785
20786 # as_fn_exit STATUS
20787 # -----------------
20788 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20789 as_fn_exit ()
20790 {
20791   set +e
20792   as_fn_set_status $1
20793   exit $1
20794 } # as_fn_exit
20795
20796 # as_fn_unset VAR
20797 # ---------------
20798 # Portably unset VAR.
20799 as_fn_unset ()
20800 {
20801   { eval $1=; unset $1;}
20802 }
20803 as_unset=as_fn_unset
20804 # as_fn_append VAR VALUE
20805 # ----------------------
20806 # Append the text in VALUE to the end of the definition contained in VAR. Take
20807 # advantage of any shell optimizations that allow amortized linear growth over
20808 # repeated appends, instead of the typical quadratic growth present in naive
20809 # implementations.
20810 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20811   eval 'as_fn_append ()
20812   {
20813     eval $1+=\$2
20814   }'
20815 else
20816   as_fn_append ()
20817   {
20818     eval $1=\$$1\$2
20819   }
20820 fi # as_fn_append
20821
20822 # as_fn_arith ARG...
20823 # ------------------
20824 # Perform arithmetic evaluation on the ARGs, and store the result in the
20825 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20826 # must be portable across $(()) and expr.
20827 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20828   eval 'as_fn_arith ()
20829   {
20830     as_val=$(( $* ))
20831   }'
20832 else
20833   as_fn_arith ()
20834   {
20835     as_val=`expr "$@" || test $? -eq 1`
20836   }
20837 fi # as_fn_arith
20838
20839
20840 if expr a : '\(a\)' >/dev/null 2>&1 &&
20841    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20842   as_expr=expr
20843 else
20844   as_expr=false
20845 fi
20846
20847 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20848   as_basename=basename
20849 else
20850   as_basename=false
20851 fi
20852
20853 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20854   as_dirname=dirname
20855 else
20856   as_dirname=false
20857 fi
20858
20859 as_me=`$as_basename -- "$0" ||
20860 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20861          X"$0" : 'X\(//\)$' \| \
20862          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20863 $as_echo X/"$0" |
20864     sed '/^.*\/\([^/][^/]*\)\/*$/{
20865             s//\1/
20866             q
20867           }
20868           /^X\/\(\/\/\)$/{
20869             s//\1/
20870             q
20871           }
20872           /^X\/\(\/\).*/{
20873             s//\1/
20874             q
20875           }
20876           s/.*/./; q'`
20877
20878 # Avoid depending upon Character Ranges.
20879 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20880 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20881 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20882 as_cr_digits='0123456789'
20883 as_cr_alnum=$as_cr_Letters$as_cr_digits
20884
20885 ECHO_C= ECHO_N= ECHO_T=
20886 case `echo -n x` in #(((((
20887 -n*)
20888   case `echo 'xy\c'` in
20889   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20890   xy)  ECHO_C='\c';;
20891   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20892        ECHO_T=' ';;
20893   esac;;
20894 *)
20895   ECHO_N='-n';;
20896 esac
20897
20898 rm -f conf$$ conf$$.exe conf$$.file
20899 if test -d conf$$.dir; then
20900   rm -f conf$$.dir/conf$$.file
20901 else
20902   rm -f conf$$.dir
20903   mkdir conf$$.dir 2>/dev/null
20904 fi
20905 if (echo >conf$$.file) 2>/dev/null; then
20906   if ln -s conf$$.file conf$$ 2>/dev/null; then
20907     as_ln_s='ln -s'
20908     # ... but there are two gotchas:
20909     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20910     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20911     # In both cases, we have to default to `cp -pR'.
20912     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20913       as_ln_s='cp -pR'
20914   elif ln conf$$.file conf$$ 2>/dev/null; then
20915     as_ln_s=ln
20916   else
20917     as_ln_s='cp -pR'
20918   fi
20919 else
20920   as_ln_s='cp -pR'
20921 fi
20922 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20923 rmdir conf$$.dir 2>/dev/null
20924
20925
20926 # as_fn_mkdir_p
20927 # -------------
20928 # Create "$as_dir" as a directory, including parents if necessary.
20929 as_fn_mkdir_p ()
20930 {
20931
20932   case $as_dir in #(
20933   -*) as_dir=./$as_dir;;
20934   esac
20935   test -d "$as_dir" || eval $as_mkdir_p || {
20936     as_dirs=
20937     while :; do
20938       case $as_dir in #(
20939       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20940       *) as_qdir=$as_dir;;
20941       esac
20942       as_dirs="'$as_qdir' $as_dirs"
20943       as_dir=`$as_dirname -- "$as_dir" ||
20944 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20945          X"$as_dir" : 'X\(//\)[^/]' \| \
20946          X"$as_dir" : 'X\(//\)$' \| \
20947          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20948 $as_echo X"$as_dir" |
20949     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20950             s//\1/
20951             q
20952           }
20953           /^X\(\/\/\)[^/].*/{
20954             s//\1/
20955             q
20956           }
20957           /^X\(\/\/\)$/{
20958             s//\1/
20959             q
20960           }
20961           /^X\(\/\).*/{
20962             s//\1/
20963             q
20964           }
20965           s/.*/./; q'`
20966       test -d "$as_dir" && break
20967     done
20968     test -z "$as_dirs" || eval "mkdir $as_dirs"
20969   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20970
20971
20972 } # as_fn_mkdir_p
20973 if mkdir -p . 2>/dev/null; then
20974   as_mkdir_p='mkdir -p "$as_dir"'
20975 else
20976   test -d ./-p && rmdir ./-p
20977   as_mkdir_p=false
20978 fi
20979
20980
20981 # as_fn_executable_p FILE
20982 # -----------------------
20983 # Test if FILE is an executable regular file.
20984 as_fn_executable_p ()
20985 {
20986   test -f "$1" && test -x "$1"
20987 } # as_fn_executable_p
20988 as_test_x='test -x'
20989 as_executable_p=as_fn_executable_p
20990
20991 # Sed expression to map a string onto a valid CPP name.
20992 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20993
20994 # Sed expression to map a string onto a valid variable name.
20995 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20996
20997
20998 exec 6>&1
20999 ## ----------------------------------- ##
21000 ## Main body of $CONFIG_STATUS script. ##
21001 ## ----------------------------------- ##
21002 _ASEOF
21003 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21004
21005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21006 # Save the log message, to keep $0 and so on meaningful, and to
21007 # report actual input values of CONFIG_FILES etc. instead of their
21008 # values after options handling.
21009 ac_log="
21010 This file was extended by cryptsetup $as_me 2.3.3, which was
21011 generated by GNU Autoconf 2.69.  Invocation command line was
21012
21013   CONFIG_FILES    = $CONFIG_FILES
21014   CONFIG_HEADERS  = $CONFIG_HEADERS
21015   CONFIG_LINKS    = $CONFIG_LINKS
21016   CONFIG_COMMANDS = $CONFIG_COMMANDS
21017   $ $0 $@
21018
21019 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21020 "
21021
21022 _ACEOF
21023
21024 case $ac_config_files in *"
21025 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21026 esac
21027
21028 case $ac_config_headers in *"
21029 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21030 esac
21031
21032
21033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21034 # Files that config.status was made for.
21035 config_files="$ac_config_files"
21036 config_headers="$ac_config_headers"
21037 config_commands="$ac_config_commands"
21038
21039 _ACEOF
21040
21041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21042 ac_cs_usage="\
21043 \`$as_me' instantiates files and other configuration actions
21044 from templates according to the current configuration.  Unless the files
21045 and actions are specified as TAGs, all are instantiated by default.
21046
21047 Usage: $0 [OPTION]... [TAG]...
21048
21049   -h, --help       print this help, then exit
21050   -V, --version    print version number and configuration settings, then exit
21051       --config     print configuration, then exit
21052   -q, --quiet, --silent
21053                    do not print progress messages
21054   -d, --debug      don't remove temporary files
21055       --recheck    update $as_me by reconfiguring in the same conditions
21056       --file=FILE[:TEMPLATE]
21057                    instantiate the configuration file FILE
21058       --header=FILE[:TEMPLATE]
21059                    instantiate the configuration header FILE
21060
21061 Configuration files:
21062 $config_files
21063
21064 Configuration headers:
21065 $config_headers
21066
21067 Configuration commands:
21068 $config_commands
21069
21070 Report bugs to the package provider."
21071
21072 _ACEOF
21073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21074 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21075 ac_cs_version="\\
21076 cryptsetup config.status 2.3.3
21077 configured by $0, generated by GNU Autoconf 2.69,
21078   with options \\"\$ac_cs_config\\"
21079
21080 Copyright (C) 2012 Free Software Foundation, Inc.
21081 This config.status script is free software; the Free Software Foundation
21082 gives unlimited permission to copy, distribute and modify it."
21083
21084 ac_pwd='$ac_pwd'
21085 srcdir='$srcdir'
21086 INSTALL='$INSTALL'
21087 MKDIR_P='$MKDIR_P'
21088 AWK='$AWK'
21089 test -n "\$AWK" || AWK=awk
21090 _ACEOF
21091
21092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21093 # The default lists apply if the user does not specify any file.
21094 ac_need_defaults=:
21095 while test $# != 0
21096 do
21097   case $1 in
21098   --*=?*)
21099     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21100     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21101     ac_shift=:
21102     ;;
21103   --*=)
21104     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21105     ac_optarg=
21106     ac_shift=:
21107     ;;
21108   *)
21109     ac_option=$1
21110     ac_optarg=$2
21111     ac_shift=shift
21112     ;;
21113   esac
21114
21115   case $ac_option in
21116   # Handling of the options.
21117   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21118     ac_cs_recheck=: ;;
21119   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21120     $as_echo "$ac_cs_version"; exit ;;
21121   --config | --confi | --conf | --con | --co | --c )
21122     $as_echo "$ac_cs_config"; exit ;;
21123   --debug | --debu | --deb | --de | --d | -d )
21124     debug=: ;;
21125   --file | --fil | --fi | --f )
21126     $ac_shift
21127     case $ac_optarg in
21128     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21129     '') as_fn_error $? "missing file argument" ;;
21130     esac
21131     as_fn_append CONFIG_FILES " '$ac_optarg'"
21132     ac_need_defaults=false;;
21133   --header | --heade | --head | --hea )
21134     $ac_shift
21135     case $ac_optarg in
21136     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21137     esac
21138     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21139     ac_need_defaults=false;;
21140   --he | --h)
21141     # Conflict between --help and --header
21142     as_fn_error $? "ambiguous option: \`$1'
21143 Try \`$0 --help' for more information.";;
21144   --help | --hel | -h )
21145     $as_echo "$ac_cs_usage"; exit ;;
21146   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21147   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21148     ac_cs_silent=: ;;
21149
21150   # This is an error.
21151   -*) as_fn_error $? "unrecognized option: \`$1'
21152 Try \`$0 --help' for more information." ;;
21153
21154   *) as_fn_append ac_config_targets " $1"
21155      ac_need_defaults=false ;;
21156
21157   esac
21158   shift
21159 done
21160
21161 ac_configure_extra_args=
21162
21163 if $ac_cs_silent; then
21164   exec 6>/dev/null
21165   ac_configure_extra_args="$ac_configure_extra_args --silent"
21166 fi
21167
21168 _ACEOF
21169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21170 if \$ac_cs_recheck; then
21171   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21172   shift
21173   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21174   CONFIG_SHELL='$SHELL'
21175   export CONFIG_SHELL
21176   exec "\$@"
21177 fi
21178
21179 _ACEOF
21180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21181 exec 5>>config.log
21182 {
21183   echo
21184   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21185 ## Running $as_me. ##
21186 _ASBOX
21187   $as_echo "$ac_log"
21188 } >&5
21189
21190 _ACEOF
21191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21192 #
21193 # INIT-COMMANDS
21194 #
21195 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21196
21197
21198 # The HP-UX ksh and POSIX shell print the target directory to stdout
21199 # if CDPATH is set.
21200 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21201
21202 sed_quote_subst='$sed_quote_subst'
21203 double_quote_subst='$double_quote_subst'
21204 delay_variable_subst='$delay_variable_subst'
21205 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21206 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21207 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21208 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21209 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21210 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21211 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21212 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21213 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21214 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21215 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21216 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21217 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21218 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21219 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21220 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21221 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21222 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21223 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21224 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21225 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21226 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21227 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21228 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21229 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21230 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21231 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21232 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21233 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21234 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21235 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21236 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21237 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21238 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21239 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21240 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21241 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21242 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21243 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21244 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21245 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21246 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21247 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21248 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21249 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21250 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21251 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21252 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21253 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21254 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21255 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21256 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21257 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21258 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21259 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21260 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21261 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21262 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21263 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"`'
21264 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21265 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21266 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21267 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21268 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21269 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21270 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21271 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21272 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21273 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21274 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21275 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21276 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21277 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21278 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21279 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21280 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21281 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21282 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21283 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21284 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21285 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21286 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21287 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21288 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21289 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21290 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21291 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21292 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21293 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21294 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21295 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21296 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21297 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21298 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21299 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21300 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21301 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21302 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21303 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21304 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21305 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21306 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21307 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21308 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21309 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21310 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21311 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21312 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21313 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21314 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21315 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21316 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21317 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21318 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21319 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21320 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21321 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21322 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21323 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21324 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21325 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21326 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21327 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21328 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21329 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21330 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21331 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21332 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21333 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21334 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21335 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21336 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21337 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21338 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21339 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21340
21341 LTCC='$LTCC'
21342 LTCFLAGS='$LTCFLAGS'
21343 compiler='$compiler_DEFAULT'
21344
21345 # A function that is used when there is no print builtin or printf.
21346 func_fallback_echo ()
21347 {
21348   eval 'cat <<_LTECHO_EOF
21349 \$1
21350 _LTECHO_EOF'
21351 }
21352
21353 # Quote evaled strings.
21354 for var in SHELL \
21355 ECHO \
21356 PATH_SEPARATOR \
21357 SED \
21358 GREP \
21359 EGREP \
21360 FGREP \
21361 LD \
21362 NM \
21363 LN_S \
21364 lt_SP2NL \
21365 lt_NL2SP \
21366 reload_flag \
21367 OBJDUMP \
21368 deplibs_check_method \
21369 file_magic_cmd \
21370 file_magic_glob \
21371 want_nocaseglob \
21372 DLLTOOL \
21373 sharedlib_from_linklib_cmd \
21374 AR \
21375 AR_FLAGS \
21376 archiver_list_spec \
21377 STRIP \
21378 RANLIB \
21379 CC \
21380 CFLAGS \
21381 compiler \
21382 lt_cv_sys_global_symbol_pipe \
21383 lt_cv_sys_global_symbol_to_cdecl \
21384 lt_cv_sys_global_symbol_to_import \
21385 lt_cv_sys_global_symbol_to_c_name_address \
21386 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21387 lt_cv_nm_interface \
21388 nm_file_list_spec \
21389 lt_cv_truncate_bin \
21390 lt_prog_compiler_no_builtin_flag \
21391 lt_prog_compiler_pic \
21392 lt_prog_compiler_wl \
21393 lt_prog_compiler_static \
21394 lt_cv_prog_compiler_c_o \
21395 need_locks \
21396 MANIFEST_TOOL \
21397 DSYMUTIL \
21398 NMEDIT \
21399 LIPO \
21400 OTOOL \
21401 OTOOL64 \
21402 shrext_cmds \
21403 export_dynamic_flag_spec \
21404 whole_archive_flag_spec \
21405 compiler_needs_object \
21406 with_gnu_ld \
21407 allow_undefined_flag \
21408 no_undefined_flag \
21409 hardcode_libdir_flag_spec \
21410 hardcode_libdir_separator \
21411 exclude_expsyms \
21412 include_expsyms \
21413 file_list_spec \
21414 variables_saved_for_relink \
21415 libname_spec \
21416 library_names_spec \
21417 soname_spec \
21418 install_override_mode \
21419 finish_eval \
21420 old_striplib \
21421 striplib; do
21422     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21423     *[\\\\\\\`\\"\\\$]*)
21424       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21425       ;;
21426     *)
21427       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21428       ;;
21429     esac
21430 done
21431
21432 # Double-quote double-evaled strings.
21433 for var in reload_cmds \
21434 old_postinstall_cmds \
21435 old_postuninstall_cmds \
21436 old_archive_cmds \
21437 extract_expsyms_cmds \
21438 old_archive_from_new_cmds \
21439 old_archive_from_expsyms_cmds \
21440 archive_cmds \
21441 archive_expsym_cmds \
21442 module_cmds \
21443 module_expsym_cmds \
21444 export_symbols_cmds \
21445 prelink_cmds \
21446 postlink_cmds \
21447 postinstall_cmds \
21448 postuninstall_cmds \
21449 finish_cmds \
21450 sys_lib_search_path_spec \
21451 configure_time_dlsearch_path \
21452 configure_time_lt_sys_library_path; do
21453     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21454     *[\\\\\\\`\\"\\\$]*)
21455       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21456       ;;
21457     *)
21458       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21459       ;;
21460     esac
21461 done
21462
21463 ac_aux_dir='$ac_aux_dir'
21464
21465 # See if we are running on zsh, and set the options that allow our
21466 # commands through without removal of \ escapes INIT.
21467 if test -n "\${ZSH_VERSION+set}"; then
21468    setopt NO_GLOB_SUBST
21469 fi
21470
21471
21472     PACKAGE='$PACKAGE'
21473     VERSION='$VERSION'
21474     RM='$RM'
21475     ofile='$ofile'
21476
21477
21478
21479 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21480     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21481     # from automake < 1.5.
21482     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21483     # Capture the value of LINGUAS because we need it to compute CATALOGS.
21484     LINGUAS="${LINGUAS-%UNSET%}"
21485
21486
21487 _ACEOF
21488
21489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21490
21491 # Handling of arguments.
21492 for ac_config_target in $ac_config_targets
21493 do
21494   case $ac_config_target in
21495     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
21496     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21497     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21498     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
21499     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21500     "lib/libcryptsetup.pc") CONFIG_FILES="$CONFIG_FILES lib/libcryptsetup.pc" ;;
21501     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21502     "scripts/cryptsetup.conf") CONFIG_FILES="$CONFIG_FILES scripts/cryptsetup.conf" ;;
21503     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21504
21505   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21506   esac
21507 done
21508
21509
21510 # If the user did not use the arguments to specify the items to instantiate,
21511 # then the envvar interface is used.  Set only those that are not.
21512 # We use the long form for the default assignment because of an extremely
21513 # bizarre bug on SunOS 4.1.3.
21514 if $ac_need_defaults; then
21515   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21516   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21517   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21518 fi
21519
21520 # Have a temporary directory for convenience.  Make it in the build tree
21521 # simply because there is no reason against having it here, and in addition,
21522 # creating and moving files from /tmp can sometimes cause problems.
21523 # Hook for its removal unless debugging.
21524 # Note that there is a small window in which the directory will not be cleaned:
21525 # after its creation but before its name has been assigned to `$tmp'.
21526 $debug ||
21527 {
21528   tmp= ac_tmp=
21529   trap 'exit_status=$?
21530   : "${ac_tmp:=$tmp}"
21531   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21532 ' 0
21533   trap 'as_fn_exit 1' 1 2 13 15
21534 }
21535 # Create a (secure) tmp directory for tmp files.
21536
21537 {
21538   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21539   test -d "$tmp"
21540 }  ||
21541 {
21542   tmp=./conf$$-$RANDOM
21543   (umask 077 && mkdir "$tmp")
21544 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21545 ac_tmp=$tmp
21546
21547 # Set up the scripts for CONFIG_FILES section.
21548 # No need to generate them if there are no CONFIG_FILES.
21549 # This happens for instance with `./config.status config.h'.
21550 if test -n "$CONFIG_FILES"; then
21551
21552
21553 ac_cr=`echo X | tr X '\015'`
21554 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21555 # But we know of no other shell where ac_cr would be empty at this
21556 # point, so we can use a bashism as a fallback.
21557 if test "x$ac_cr" = x; then
21558   eval ac_cr=\$\'\\r\'
21559 fi
21560 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21561 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21562   ac_cs_awk_cr='\\r'
21563 else
21564   ac_cs_awk_cr=$ac_cr
21565 fi
21566
21567 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21568 _ACEOF
21569
21570
21571 {
21572   echo "cat >conf$$subs.awk <<_ACEOF" &&
21573   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21574   echo "_ACEOF"
21575 } >conf$$subs.sh ||
21576   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21577 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21578 ac_delim='%!_!# '
21579 for ac_last_try in false false false false false :; do
21580   . ./conf$$subs.sh ||
21581     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21582
21583   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21584   if test $ac_delim_n = $ac_delim_num; then
21585     break
21586   elif $ac_last_try; then
21587     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21588   else
21589     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21590   fi
21591 done
21592 rm -f conf$$subs.sh
21593
21594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21595 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21596 _ACEOF
21597 sed -n '
21598 h
21599 s/^/S["/; s/!.*/"]=/
21600 p
21601 g
21602 s/^[^!]*!//
21603 :repl
21604 t repl
21605 s/'"$ac_delim"'$//
21606 t delim
21607 :nl
21608 h
21609 s/\(.\{148\}\)..*/\1/
21610 t more1
21611 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21612 p
21613 n
21614 b repl
21615 :more1
21616 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21617 p
21618 g
21619 s/.\{148\}//
21620 t nl
21621 :delim
21622 h
21623 s/\(.\{148\}\)..*/\1/
21624 t more2
21625 s/["\\]/\\&/g; s/^/"/; s/$/"/
21626 p
21627 b
21628 :more2
21629 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21630 p
21631 g
21632 s/.\{148\}//
21633 t delim
21634 ' <conf$$subs.awk | sed '
21635 /^[^""]/{
21636   N
21637   s/\n//
21638 }
21639 ' >>$CONFIG_STATUS || ac_write_fail=1
21640 rm -f conf$$subs.awk
21641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21642 _ACAWK
21643 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21644   for (key in S) S_is_set[key] = 1
21645   FS = "\a"
21646
21647 }
21648 {
21649   line = $ 0
21650   nfields = split(line, field, "@")
21651   substed = 0
21652   len = length(field[1])
21653   for (i = 2; i < nfields; i++) {
21654     key = field[i]
21655     keylen = length(key)
21656     if (S_is_set[key]) {
21657       value = S[key]
21658       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21659       len += length(value) + length(field[++i])
21660       substed = 1
21661     } else
21662       len += 1 + keylen
21663   }
21664
21665   print line
21666 }
21667
21668 _ACAWK
21669 _ACEOF
21670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21671 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21672   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21673 else
21674   cat
21675 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21676   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21677 _ACEOF
21678
21679 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21680 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21681 # trailing colons and then remove the whole line if VPATH becomes empty
21682 # (actually we leave an empty line to preserve line numbers).
21683 if test "x$srcdir" = x.; then
21684   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
21685 h
21686 s///
21687 s/^/:/
21688 s/[      ]*$/:/
21689 s/:\$(srcdir):/:/g
21690 s/:\${srcdir}:/:/g
21691 s/:@srcdir@:/:/g
21692 s/^:*//
21693 s/:*$//
21694 x
21695 s/\(=[   ]*\).*/\1/
21696 G
21697 s/\n//
21698 s/^[^=]*=[       ]*$//
21699 }'
21700 fi
21701
21702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21703 fi # test -n "$CONFIG_FILES"
21704
21705 # Set up the scripts for CONFIG_HEADERS section.
21706 # No need to generate them if there are no CONFIG_HEADERS.
21707 # This happens for instance with `./config.status Makefile'.
21708 if test -n "$CONFIG_HEADERS"; then
21709 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21710 BEGIN {
21711 _ACEOF
21712
21713 # Transform confdefs.h into an awk script `defines.awk', embedded as
21714 # here-document in config.status, that substitutes the proper values into
21715 # config.h.in to produce config.h.
21716
21717 # Create a delimiter string that does not exist in confdefs.h, to ease
21718 # handling of long lines.
21719 ac_delim='%!_!# '
21720 for ac_last_try in false false :; do
21721   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21722   if test -z "$ac_tt"; then
21723     break
21724   elif $ac_last_try; then
21725     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21726   else
21727     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21728   fi
21729 done
21730
21731 # For the awk script, D is an array of macro values keyed by name,
21732 # likewise P contains macro parameters if any.  Preserve backslash
21733 # newline sequences.
21734
21735 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21736 sed -n '
21737 s/.\{148\}/&'"$ac_delim"'/g
21738 t rset
21739 :rset
21740 s/^[     ]*#[    ]*define[       ][      ]*/ /
21741 t def
21742 d
21743 :def
21744 s/\\$//
21745 t bsnl
21746 s/["\\]/\\&/g
21747 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21748 D["\1"]=" \3"/p
21749 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21750 d
21751 :bsnl
21752 s/["\\]/\\&/g
21753 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21754 D["\1"]=" \3\\\\\\n"\\/p
21755 t cont
21756 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21757 t cont
21758 d
21759 :cont
21760 n
21761 s/.\{148\}/&'"$ac_delim"'/g
21762 t clear
21763 :clear
21764 s/\\$//
21765 t bsnlc
21766 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21767 d
21768 :bsnlc
21769 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21770 b cont
21771 ' <confdefs.h | sed '
21772 s/'"$ac_delim"'/"\\\
21773 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21774
21775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21776   for (key in D) D_is_set[key] = 1
21777   FS = "\a"
21778 }
21779 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21780   line = \$ 0
21781   split(line, arg, " ")
21782   if (arg[1] == "#") {
21783     defundef = arg[2]
21784     mac1 = arg[3]
21785   } else {
21786     defundef = substr(arg[1], 2)
21787     mac1 = arg[2]
21788   }
21789   split(mac1, mac2, "(") #)
21790   macro = mac2[1]
21791   prefix = substr(line, 1, index(line, defundef) - 1)
21792   if (D_is_set[macro]) {
21793     # Preserve the white space surrounding the "#".
21794     print prefix "define", macro P[macro] D[macro]
21795     next
21796   } else {
21797     # Replace #undef with comments.  This is necessary, for example,
21798     # in the case of _POSIX_SOURCE, which is predefined and required
21799     # on some systems where configure will not decide to define it.
21800     if (defundef == "undef") {
21801       print "/*", prefix defundef, macro, "*/"
21802       next
21803     }
21804   }
21805 }
21806 { print }
21807 _ACAWK
21808 _ACEOF
21809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21810   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21811 fi # test -n "$CONFIG_HEADERS"
21812
21813
21814 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21815 shift
21816 for ac_tag
21817 do
21818   case $ac_tag in
21819   :[FHLC]) ac_mode=$ac_tag; continue;;
21820   esac
21821   case $ac_mode$ac_tag in
21822   :[FHL]*:*);;
21823   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21824   :[FH]-) ac_tag=-:-;;
21825   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21826   esac
21827   ac_save_IFS=$IFS
21828   IFS=:
21829   set x $ac_tag
21830   IFS=$ac_save_IFS
21831   shift
21832   ac_file=$1
21833   shift
21834
21835   case $ac_mode in
21836   :L) ac_source=$1;;
21837   :[FH])
21838     ac_file_inputs=
21839     for ac_f
21840     do
21841       case $ac_f in
21842       -) ac_f="$ac_tmp/stdin";;
21843       *) # Look for the file first in the build tree, then in the source tree
21844          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21845          # because $ac_f cannot contain `:'.
21846          test -f "$ac_f" ||
21847            case $ac_f in
21848            [\\/$]*) false;;
21849            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21850            esac ||
21851            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21852       esac
21853       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21854       as_fn_append ac_file_inputs " '$ac_f'"
21855     done
21856
21857     # Let's still pretend it is `configure' which instantiates (i.e., don't
21858     # use $as_me), people would be surprised to read:
21859     #    /* config.h.  Generated by config.status.  */
21860     configure_input='Generated from '`
21861           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21862         `' by configure.'
21863     if test x"$ac_file" != x-; then
21864       configure_input="$ac_file.  $configure_input"
21865       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21866 $as_echo "$as_me: creating $ac_file" >&6;}
21867     fi
21868     # Neutralize special characters interpreted by sed in replacement strings.
21869     case $configure_input in #(
21870     *\&* | *\|* | *\\* )
21871        ac_sed_conf_input=`$as_echo "$configure_input" |
21872        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21873     *) ac_sed_conf_input=$configure_input;;
21874     esac
21875
21876     case $ac_tag in
21877     *:-:* | *:-) cat >"$ac_tmp/stdin" \
21878       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21879     esac
21880     ;;
21881   esac
21882
21883   ac_dir=`$as_dirname -- "$ac_file" ||
21884 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21885          X"$ac_file" : 'X\(//\)[^/]' \| \
21886          X"$ac_file" : 'X\(//\)$' \| \
21887          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21888 $as_echo X"$ac_file" |
21889     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21890             s//\1/
21891             q
21892           }
21893           /^X\(\/\/\)[^/].*/{
21894             s//\1/
21895             q
21896           }
21897           /^X\(\/\/\)$/{
21898             s//\1/
21899             q
21900           }
21901           /^X\(\/\).*/{
21902             s//\1/
21903             q
21904           }
21905           s/.*/./; q'`
21906   as_dir="$ac_dir"; as_fn_mkdir_p
21907   ac_builddir=.
21908
21909 case "$ac_dir" in
21910 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21911 *)
21912   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21913   # A ".." for each directory in $ac_dir_suffix.
21914   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21915   case $ac_top_builddir_sub in
21916   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21917   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21918   esac ;;
21919 esac
21920 ac_abs_top_builddir=$ac_pwd
21921 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21922 # for backward compatibility:
21923 ac_top_builddir=$ac_top_build_prefix
21924
21925 case $srcdir in
21926   .)  # We are building in place.
21927     ac_srcdir=.
21928     ac_top_srcdir=$ac_top_builddir_sub
21929     ac_abs_top_srcdir=$ac_pwd ;;
21930   [\\/]* | ?:[\\/]* )  # Absolute name.
21931     ac_srcdir=$srcdir$ac_dir_suffix;
21932     ac_top_srcdir=$srcdir
21933     ac_abs_top_srcdir=$srcdir ;;
21934   *) # Relative name.
21935     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21936     ac_top_srcdir=$ac_top_build_prefix$srcdir
21937     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21938 esac
21939 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21940
21941
21942   case $ac_mode in
21943   :F)
21944   #
21945   # CONFIG_FILE
21946   #
21947
21948   case $INSTALL in
21949   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21950   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21951   esac
21952   ac_MKDIR_P=$MKDIR_P
21953   case $MKDIR_P in
21954   [\\/$]* | ?:[\\/]* ) ;;
21955   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21956   esac
21957 _ACEOF
21958
21959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21960 # If the template does not know about datarootdir, expand it.
21961 # FIXME: This hack should be removed a few years after 2.60.
21962 ac_datarootdir_hack=; ac_datarootdir_seen=
21963 ac_sed_dataroot='
21964 /datarootdir/ {
21965   p
21966   q
21967 }
21968 /@datadir@/p
21969 /@docdir@/p
21970 /@infodir@/p
21971 /@localedir@/p
21972 /@mandir@/p'
21973 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21974 *datarootdir*) ac_datarootdir_seen=yes;;
21975 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21976   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21977 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21978 _ACEOF
21979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21980   ac_datarootdir_hack='
21981   s&@datadir@&$datadir&g
21982   s&@docdir@&$docdir&g
21983   s&@infodir@&$infodir&g
21984   s&@localedir@&$localedir&g
21985   s&@mandir@&$mandir&g
21986   s&\\\${datarootdir}&$datarootdir&g' ;;
21987 esac
21988 _ACEOF
21989
21990 # Neutralize VPATH when `$srcdir' = `.'.
21991 # Shell code in configure.ac might set extrasub.
21992 # FIXME: do we really want to maintain this feature?
21993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21994 ac_sed_extra="$ac_vpsub
21995 $extrasub
21996 _ACEOF
21997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21998 :t
21999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22000 s|@configure_input@|$ac_sed_conf_input|;t t
22001 s&@top_builddir@&$ac_top_builddir_sub&;t t
22002 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22003 s&@srcdir@&$ac_srcdir&;t t
22004 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22005 s&@top_srcdir@&$ac_top_srcdir&;t t
22006 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22007 s&@builddir@&$ac_builddir&;t t
22008 s&@abs_builddir@&$ac_abs_builddir&;t t
22009 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22010 s&@INSTALL@&$ac_INSTALL&;t t
22011 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22012 $ac_datarootdir_hack
22013 "
22014 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22015   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22016
22017 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22018   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22019   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
22020       "$ac_tmp/out"`; test -z "$ac_out"; } &&
22021   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22022 which seems to be undefined.  Please make sure it is defined" >&5
22023 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22024 which seems to be undefined.  Please make sure it is defined" >&2;}
22025
22026   rm -f "$ac_tmp/stdin"
22027   case $ac_file in
22028   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22029   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22030   esac \
22031   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22032  ;;
22033   :H)
22034   #
22035   # CONFIG_HEADER
22036   #
22037   if test x"$ac_file" != x-; then
22038     {
22039       $as_echo "/* $configure_input  */" \
22040       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22041     } >"$ac_tmp/config.h" \
22042       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22043     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22044       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22045 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22046     else
22047       rm -f "$ac_file"
22048       mv "$ac_tmp/config.h" "$ac_file" \
22049         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22050     fi
22051   else
22052     $as_echo "/* $configure_input  */" \
22053       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22054       || as_fn_error $? "could not create -" "$LINENO" 5
22055   fi
22056 # Compute "$ac_file"'s index in $config_headers.
22057 _am_arg="$ac_file"
22058 _am_stamp_count=1
22059 for _am_header in $config_headers :; do
22060   case $_am_header in
22061     $_am_arg | $_am_arg:* )
22062       break ;;
22063     * )
22064       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22065   esac
22066 done
22067 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22068 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22069          X"$_am_arg" : 'X\(//\)[^/]' \| \
22070          X"$_am_arg" : 'X\(//\)$' \| \
22071          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22072 $as_echo X"$_am_arg" |
22073     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22074             s//\1/
22075             q
22076           }
22077           /^X\(\/\/\)[^/].*/{
22078             s//\1/
22079             q
22080           }
22081           /^X\(\/\/\)$/{
22082             s//\1/
22083             q
22084           }
22085           /^X\(\/\).*/{
22086             s//\1/
22087             q
22088           }
22089           s/.*/./; q'`/stamp-h$_am_stamp_count
22090  ;;
22091
22092   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22093 $as_echo "$as_me: executing $ac_file commands" >&6;}
22094  ;;
22095   esac
22096
22097
22098   case $ac_file$ac_mode in
22099     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22100   # Older Autoconf quotes --file arguments for eval, but not when files
22101   # are listed without --file.  Let's play safe and only enable the eval
22102   # if we detect the quoting.
22103   # TODO: see whether this extra hack can be removed once we start
22104   # requiring Autoconf 2.70 or later.
22105   case $CONFIG_FILES in #(
22106   *\'*) :
22107     eval set x "$CONFIG_FILES" ;; #(
22108   *) :
22109     set x $CONFIG_FILES ;; #(
22110   *) :
22111      ;;
22112 esac
22113   shift
22114   # Used to flag and report bootstrapping failures.
22115   am_rc=0
22116   for am_mf
22117   do
22118     # Strip MF so we end up with the name of the file.
22119     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
22120     # Check whether this is an Automake generated Makefile which includes
22121     # dependency-tracking related rules and includes.
22122     # Grep'ing the whole file directly is not great: AIX grep has a line
22123     # limit of 2048, but all sed's we know have understand at least 4000.
22124     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22125       || continue
22126     am_dirpart=`$as_dirname -- "$am_mf" ||
22127 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22128          X"$am_mf" : 'X\(//\)[^/]' \| \
22129          X"$am_mf" : 'X\(//\)$' \| \
22130          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22131 $as_echo X"$am_mf" |
22132     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22133             s//\1/
22134             q
22135           }
22136           /^X\(\/\/\)[^/].*/{
22137             s//\1/
22138             q
22139           }
22140           /^X\(\/\/\)$/{
22141             s//\1/
22142             q
22143           }
22144           /^X\(\/\).*/{
22145             s//\1/
22146             q
22147           }
22148           s/.*/./; q'`
22149     am_filepart=`$as_basename -- "$am_mf" ||
22150 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22151          X"$am_mf" : 'X\(//\)$' \| \
22152          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22153 $as_echo X/"$am_mf" |
22154     sed '/^.*\/\([^/][^/]*\)\/*$/{
22155             s//\1/
22156             q
22157           }
22158           /^X\/\(\/\/\)$/{
22159             s//\1/
22160             q
22161           }
22162           /^X\/\(\/\).*/{
22163             s//\1/
22164             q
22165           }
22166           s/.*/./; q'`
22167     { echo "$as_me:$LINENO: cd "$am_dirpart" \
22168       && sed -e '/# am--include-marker/d' "$am_filepart" \
22169         | $MAKE -f - am--depfiles" >&5
22170    (cd "$am_dirpart" \
22171       && sed -e '/# am--include-marker/d' "$am_filepart" \
22172         | $MAKE -f - am--depfiles) >&5 2>&5
22173    ac_status=$?
22174    echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175    (exit $ac_status); } || am_rc=$?
22176   done
22177   if test $am_rc -ne 0; then
22178     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22180 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22181     for automatic dependency tracking.  If GNU make was not used, consider
22182     re-running the configure script with MAKE=\"gmake\" (or whatever is
22183     necessary).  You can also try re-running configure with the
22184     '--disable-dependency-tracking' option to at least be able to build
22185     the package (albeit without support for automatic dependency tracking).
22186 See \`config.log' for more details" "$LINENO" 5; }
22187   fi
22188   { am_dirpart=; unset am_dirpart;}
22189   { am_filepart=; unset am_filepart;}
22190   { am_mf=; unset am_mf;}
22191   { am_rc=; unset am_rc;}
22192   rm -f conftest-deps.mk
22193 }
22194  ;;
22195     "libtool":C)
22196
22197     # See if we are running on zsh, and set the options that allow our
22198     # commands through without removal of \ escapes.
22199     if test -n "${ZSH_VERSION+set}"; then
22200       setopt NO_GLOB_SUBST
22201     fi
22202
22203     cfgfile=${ofile}T
22204     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22205     $RM "$cfgfile"
22206
22207     cat <<_LT_EOF >> "$cfgfile"
22208 #! $SHELL
22209 # Generated automatically by $as_me ($PACKAGE) $VERSION
22210 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22211
22212 # Provide generalized library-building support services.
22213 # Written by Gordon Matzigkeit, 1996
22214
22215 # Copyright (C) 2014 Free Software Foundation, Inc.
22216 # This is free software; see the source for copying conditions.  There is NO
22217 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22218
22219 # GNU Libtool is free software; you can redistribute it and/or modify
22220 # it under the terms of the GNU General Public License as published by
22221 # the Free Software Foundation; either version 2 of of the License, or
22222 # (at your option) any later version.
22223 #
22224 # As a special exception to the GNU General Public License, if you
22225 # distribute this file as part of a program or library that is built
22226 # using GNU Libtool, you may include this file under the  same
22227 # distribution terms that you use for the rest of that program.
22228 #
22229 # GNU Libtool is distributed in the hope that it will be useful, but
22230 # WITHOUT ANY WARRANTY; without even the implied warranty of
22231 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22232 # GNU General Public License for more details.
22233 #
22234 # You should have received a copy of the GNU General Public License
22235 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
22236
22237
22238 # The names of the tagged configurations supported by this script.
22239 available_tags=''
22240
22241 # Configured defaults for sys_lib_dlsearch_path munging.
22242 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22243
22244 # ### BEGIN LIBTOOL CONFIG
22245
22246 # Whether or not to build static libraries.
22247 build_old_libs=$enable_static
22248
22249 # Which release of libtool.m4 was used?
22250 macro_version=$macro_version
22251 macro_revision=$macro_revision
22252
22253 # Whether or not to build shared libraries.
22254 build_libtool_libs=$enable_shared
22255
22256 # What type of objects to build.
22257 pic_mode=$pic_mode
22258
22259 # Whether or not to optimize for fast installation.
22260 fast_install=$enable_fast_install
22261
22262 # Shared archive member basename,for filename based shared library versioning on AIX.
22263 shared_archive_member_spec=$shared_archive_member_spec
22264
22265 # Shell to use when invoking shell scripts.
22266 SHELL=$lt_SHELL
22267
22268 # An echo program that protects backslashes.
22269 ECHO=$lt_ECHO
22270
22271 # The PATH separator for the build system.
22272 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22273
22274 # The host system.
22275 host_alias=$host_alias
22276 host=$host
22277 host_os=$host_os
22278
22279 # The build system.
22280 build_alias=$build_alias
22281 build=$build
22282 build_os=$build_os
22283
22284 # A sed program that does not truncate output.
22285 SED=$lt_SED
22286
22287 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22288 Xsed="\$SED -e 1s/^X//"
22289
22290 # A grep program that handles long lines.
22291 GREP=$lt_GREP
22292
22293 # An ERE matcher.
22294 EGREP=$lt_EGREP
22295
22296 # A literal string matcher.
22297 FGREP=$lt_FGREP
22298
22299 # A BSD- or MS-compatible name lister.
22300 NM=$lt_NM
22301
22302 # Whether we need soft or hard links.
22303 LN_S=$lt_LN_S
22304
22305 # What is the maximum length of a command?
22306 max_cmd_len=$max_cmd_len
22307
22308 # Object file suffix (normally "o").
22309 objext=$ac_objext
22310
22311 # Executable file suffix (normally "").
22312 exeext=$exeext
22313
22314 # whether the shell understands "unset".
22315 lt_unset=$lt_unset
22316
22317 # turn spaces into newlines.
22318 SP2NL=$lt_lt_SP2NL
22319
22320 # turn newlines into spaces.
22321 NL2SP=$lt_lt_NL2SP
22322
22323 # convert \$build file names to \$host format.
22324 to_host_file_cmd=$lt_cv_to_host_file_cmd
22325
22326 # convert \$build files to toolchain format.
22327 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22328
22329 # An object symbol dumper.
22330 OBJDUMP=$lt_OBJDUMP
22331
22332 # Method to check whether dependent libraries are shared objects.
22333 deplibs_check_method=$lt_deplibs_check_method
22334
22335 # Command to use when deplibs_check_method = "file_magic".
22336 file_magic_cmd=$lt_file_magic_cmd
22337
22338 # How to find potential files when deplibs_check_method = "file_magic".
22339 file_magic_glob=$lt_file_magic_glob
22340
22341 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22342 want_nocaseglob=$lt_want_nocaseglob
22343
22344 # DLL creation program.
22345 DLLTOOL=$lt_DLLTOOL
22346
22347 # Command to associate shared and link libraries.
22348 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22349
22350 # The archiver.
22351 AR=$lt_AR
22352
22353 # Flags to create an archive.
22354 AR_FLAGS=$lt_AR_FLAGS
22355
22356 # How to feed a file listing to the archiver.
22357 archiver_list_spec=$lt_archiver_list_spec
22358
22359 # A symbol stripping program.
22360 STRIP=$lt_STRIP
22361
22362 # Commands used to install an old-style archive.
22363 RANLIB=$lt_RANLIB
22364 old_postinstall_cmds=$lt_old_postinstall_cmds
22365 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22366
22367 # Whether to use a lock for old archive extraction.
22368 lock_old_archive_extraction=$lock_old_archive_extraction
22369
22370 # A C compiler.
22371 LTCC=$lt_CC
22372
22373 # LTCC compiler flags.
22374 LTCFLAGS=$lt_CFLAGS
22375
22376 # Take the output of nm and produce a listing of raw symbols and C names.
22377 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22378
22379 # Transform the output of nm in a proper C declaration.
22380 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22381
22382 # Transform the output of nm into a list of symbols to manually relocate.
22383 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22384
22385 # Transform the output of nm in a C name address pair.
22386 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22387
22388 # Transform the output of nm in a C name address pair when lib prefix is needed.
22389 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22390
22391 # The name lister interface.
22392 nm_interface=$lt_lt_cv_nm_interface
22393
22394 # Specify filename containing input files for \$NM.
22395 nm_file_list_spec=$lt_nm_file_list_spec
22396
22397 # The root where to search for dependent libraries,and where our libraries should be installed.
22398 lt_sysroot=$lt_sysroot
22399
22400 # Command to truncate a binary pipe.
22401 lt_truncate_bin=$lt_lt_cv_truncate_bin
22402
22403 # The name of the directory that contains temporary libtool files.
22404 objdir=$objdir
22405
22406 # Used to examine libraries when file_magic_cmd begins with "file".
22407 MAGIC_CMD=$MAGIC_CMD
22408
22409 # Must we lock files when doing compilation?
22410 need_locks=$lt_need_locks
22411
22412 # Manifest tool.
22413 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22414
22415 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22416 DSYMUTIL=$lt_DSYMUTIL
22417
22418 # Tool to change global to local symbols on Mac OS X.
22419 NMEDIT=$lt_NMEDIT
22420
22421 # Tool to manipulate fat objects and archives on Mac OS X.
22422 LIPO=$lt_LIPO
22423
22424 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22425 OTOOL=$lt_OTOOL
22426
22427 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22428 OTOOL64=$lt_OTOOL64
22429
22430 # Old archive suffix (normally "a").
22431 libext=$libext
22432
22433 # Shared library suffix (normally ".so").
22434 shrext_cmds=$lt_shrext_cmds
22435
22436 # The commands to extract the exported symbol list from a shared archive.
22437 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22438
22439 # Variables whose values should be saved in libtool wrapper scripts and
22440 # restored at link time.
22441 variables_saved_for_relink=$lt_variables_saved_for_relink
22442
22443 # Do we need the "lib" prefix for modules?
22444 need_lib_prefix=$need_lib_prefix
22445
22446 # Do we need a version for libraries?
22447 need_version=$need_version
22448
22449 # Library versioning type.
22450 version_type=$version_type
22451
22452 # Shared library runtime path variable.
22453 runpath_var=$runpath_var
22454
22455 # Shared library path variable.
22456 shlibpath_var=$shlibpath_var
22457
22458 # Is shlibpath searched before the hard-coded library search path?
22459 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22460
22461 # Format of library name prefix.
22462 libname_spec=$lt_libname_spec
22463
22464 # List of archive names.  First name is the real one, the rest are links.
22465 # The last name is the one that the linker finds with -lNAME
22466 library_names_spec=$lt_library_names_spec
22467
22468 # The coded name of the library, if different from the real name.
22469 soname_spec=$lt_soname_spec
22470
22471 # Permission mode override for installation of shared libraries.
22472 install_override_mode=$lt_install_override_mode
22473
22474 # Command to use after installation of a shared archive.
22475 postinstall_cmds=$lt_postinstall_cmds
22476
22477 # Command to use after uninstallation of a shared archive.
22478 postuninstall_cmds=$lt_postuninstall_cmds
22479
22480 # Commands used to finish a libtool library installation in a directory.
22481 finish_cmds=$lt_finish_cmds
22482
22483 # As "finish_cmds", except a single script fragment to be evaled but
22484 # not shown.
22485 finish_eval=$lt_finish_eval
22486
22487 # Whether we should hardcode library paths into libraries.
22488 hardcode_into_libs=$hardcode_into_libs
22489
22490 # Compile-time system search path for libraries.
22491 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22492
22493 # Detected run-time system search path for libraries.
22494 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22495
22496 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22497 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22498
22499 # Whether dlopen is supported.
22500 dlopen_support=$enable_dlopen
22501
22502 # Whether dlopen of programs is supported.
22503 dlopen_self=$enable_dlopen_self
22504
22505 # Whether dlopen of statically linked programs is supported.
22506 dlopen_self_static=$enable_dlopen_self_static
22507
22508 # Commands to strip libraries.
22509 old_striplib=$lt_old_striplib
22510 striplib=$lt_striplib
22511
22512
22513 # The linker used to build libraries.
22514 LD=$lt_LD
22515
22516 # How to create reloadable object files.
22517 reload_flag=$lt_reload_flag
22518 reload_cmds=$lt_reload_cmds
22519
22520 # Commands used to build an old-style archive.
22521 old_archive_cmds=$lt_old_archive_cmds
22522
22523 # A language specific compiler.
22524 CC=$lt_compiler
22525
22526 # Is the compiler the GNU compiler?
22527 with_gcc=$GCC
22528
22529 # Compiler flag to turn off builtin functions.
22530 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22531
22532 # Additional compiler flags for building library objects.
22533 pic_flag=$lt_lt_prog_compiler_pic
22534
22535 # How to pass a linker flag through the compiler.
22536 wl=$lt_lt_prog_compiler_wl
22537
22538 # Compiler flag to prevent dynamic linking.
22539 link_static_flag=$lt_lt_prog_compiler_static
22540
22541 # Does compiler simultaneously support -c and -o options?
22542 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22543
22544 # Whether or not to add -lc for building shared libraries.
22545 build_libtool_need_lc=$archive_cmds_need_lc
22546
22547 # Whether or not to disallow shared libs when runtime libs are static.
22548 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22549
22550 # Compiler flag to allow reflexive dlopens.
22551 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22552
22553 # Compiler flag to generate shared objects directly from archives.
22554 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22555
22556 # Whether the compiler copes with passing no objects directly.
22557 compiler_needs_object=$lt_compiler_needs_object
22558
22559 # Create an old-style archive from a shared archive.
22560 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22561
22562 # Create a temporary old-style archive to link instead of a shared archive.
22563 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22564
22565 # Commands used to build a shared archive.
22566 archive_cmds=$lt_archive_cmds
22567 archive_expsym_cmds=$lt_archive_expsym_cmds
22568
22569 # Commands used to build a loadable module if different from building
22570 # a shared archive.
22571 module_cmds=$lt_module_cmds
22572 module_expsym_cmds=$lt_module_expsym_cmds
22573
22574 # Whether we are building with GNU ld or not.
22575 with_gnu_ld=$lt_with_gnu_ld
22576
22577 # Flag that allows shared libraries with undefined symbols to be built.
22578 allow_undefined_flag=$lt_allow_undefined_flag
22579
22580 # Flag that enforces no undefined symbols.
22581 no_undefined_flag=$lt_no_undefined_flag
22582
22583 # Flag to hardcode \$libdir into a binary during linking.
22584 # This must work even if \$libdir does not exist
22585 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22586
22587 # Whether we need a single "-rpath" flag with a separated argument.
22588 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22589
22590 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22591 # DIR into the resulting binary.
22592 hardcode_direct=$hardcode_direct
22593
22594 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22595 # DIR into the resulting binary and the resulting library dependency is
22596 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22597 # library is relocated.
22598 hardcode_direct_absolute=$hardcode_direct_absolute
22599
22600 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22601 # into the resulting binary.
22602 hardcode_minus_L=$hardcode_minus_L
22603
22604 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22605 # into the resulting binary.
22606 hardcode_shlibpath_var=$hardcode_shlibpath_var
22607
22608 # Set to "yes" if building a shared library automatically hardcodes DIR
22609 # into the library and all subsequent libraries and executables linked
22610 # against it.
22611 hardcode_automatic=$hardcode_automatic
22612
22613 # Set to yes if linker adds runtime paths of dependent libraries
22614 # to runtime path list.
22615 inherit_rpath=$inherit_rpath
22616
22617 # Whether libtool must link a program against all its dependency libraries.
22618 link_all_deplibs=$link_all_deplibs
22619
22620 # Set to "yes" if exported symbols are required.
22621 always_export_symbols=$always_export_symbols
22622
22623 # The commands to list exported symbols.
22624 export_symbols_cmds=$lt_export_symbols_cmds
22625
22626 # Symbols that should not be listed in the preloaded symbols.
22627 exclude_expsyms=$lt_exclude_expsyms
22628
22629 # Symbols that must always be exported.
22630 include_expsyms=$lt_include_expsyms
22631
22632 # Commands necessary for linking programs (against libraries) with templates.
22633 prelink_cmds=$lt_prelink_cmds
22634
22635 # Commands necessary for finishing linking programs.
22636 postlink_cmds=$lt_postlink_cmds
22637
22638 # Specify filename containing input files.
22639 file_list_spec=$lt_file_list_spec
22640
22641 # How to hardcode a shared library path into an executable.
22642 hardcode_action=$hardcode_action
22643
22644 # ### END LIBTOOL CONFIG
22645
22646 _LT_EOF
22647
22648     cat <<'_LT_EOF' >> "$cfgfile"
22649
22650 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22651
22652 # func_munge_path_list VARIABLE PATH
22653 # -----------------------------------
22654 # VARIABLE is name of variable containing _space_ separated list of
22655 # directories to be munged by the contents of PATH, which is string
22656 # having a format:
22657 # "DIR[:DIR]:"
22658 #       string "DIR[ DIR]" will be prepended to VARIABLE
22659 # ":DIR[:DIR]"
22660 #       string "DIR[ DIR]" will be appended to VARIABLE
22661 # "DIRP[:DIRP]::[DIRA:]DIRA"
22662 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22663 #       "DIRA[ DIRA]" will be appended to VARIABLE
22664 # "DIR[:DIR]"
22665 #       VARIABLE will be replaced by "DIR[ DIR]"
22666 func_munge_path_list ()
22667 {
22668     case x$2 in
22669     x)
22670         ;;
22671     *:)
22672         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22673         ;;
22674     x:*)
22675         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22676         ;;
22677     *::*)
22678         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22679         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22680         ;;
22681     *)
22682         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22683         ;;
22684     esac
22685 }
22686
22687
22688 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22689 func_cc_basename ()
22690 {
22691     for cc_temp in $*""; do
22692       case $cc_temp in
22693         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22694         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22695         \-*) ;;
22696         *) break;;
22697       esac
22698     done
22699     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22700 }
22701
22702
22703 # ### END FUNCTIONS SHARED WITH CONFIGURE
22704
22705 _LT_EOF
22706
22707   case $host_os in
22708   aix3*)
22709     cat <<\_LT_EOF >> "$cfgfile"
22710 # AIX sometimes has problems with the GCC collect2 program.  For some
22711 # reason, if we set the COLLECT_NAMES environment variable, the problems
22712 # vanish in a puff of smoke.
22713 if test set != "${COLLECT_NAMES+set}"; then
22714   COLLECT_NAMES=
22715   export COLLECT_NAMES
22716 fi
22717 _LT_EOF
22718     ;;
22719   esac
22720
22721
22722 ltmain=$ac_aux_dir/ltmain.sh
22723
22724
22725   # We use sed instead of cat because bash on DJGPP gets confused if
22726   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22727   # text mode, it properly converts lines to CR/LF.  This bash problem
22728   # is reportedly fixed, but why not run on old versions too?
22729   sed '$q' "$ltmain" >> "$cfgfile" \
22730      || (rm -f "$cfgfile"; exit 1)
22731
22732    mv -f "$cfgfile" "$ofile" ||
22733     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22734   chmod +x "$ofile"
22735
22736  ;;
22737     "po-directories":C)
22738     for ac_file in $CONFIG_FILES; do
22739       # Support "outfile[:infile[:infile...]]"
22740       case "$ac_file" in
22741         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22742       esac
22743       # PO directories have a Makefile.in generated from Makefile.in.in.
22744       case "$ac_file" in */Makefile.in)
22745         # Adjust a relative srcdir.
22746         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22747         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
22748         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22749         # In autoconf-2.13 it is called $ac_given_srcdir.
22750         # In autoconf-2.50 it is called $srcdir.
22751         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22752         case "$ac_given_srcdir" in
22753           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22754           /*) top_srcdir="$ac_given_srcdir" ;;
22755           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
22756         esac
22757         # Treat a directory as a PO directory if and only if it has a
22758         # POTFILES.in file. This allows packages to have multiple PO
22759         # directories under different names or in different locations.
22760         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22761           rm -f "$ac_dir/POTFILES"
22762           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22763           gt_tab=`printf '\t'`
22764           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22765           POMAKEFILEDEPS="POTFILES.in"
22766           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
22767           # on $ac_dir but don't depend on user-specified configuration
22768           # parameters.
22769           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22770             # The LINGUAS file contains the set of available languages.
22771             if test -n "$OBSOLETE_ALL_LINGUAS"; then
22772               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22773             fi
22774             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22775             # Hide the ALL_LINGUAS assignment from automake < 1.5.
22776             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22777             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22778           else
22779             # The set of available languages was given in configure.in.
22780             # Hide the ALL_LINGUAS assignment from automake < 1.5.
22781             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22782           fi
22783           # Compute POFILES
22784           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
22785           # Compute UPDATEPOFILES
22786           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
22787           # Compute DUMMYPOFILES
22788           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
22789           # Compute GMOFILES
22790           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
22791           case "$ac_given_srcdir" in
22792             .) srcdirpre= ;;
22793             *) srcdirpre='$(srcdir)/' ;;
22794           esac
22795           POFILES=
22796           UPDATEPOFILES=
22797           DUMMYPOFILES=
22798           GMOFILES=
22799           for lang in $ALL_LINGUAS; do
22800             POFILES="$POFILES $srcdirpre$lang.po"
22801             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22802             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22803             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22804           done
22805           # CATALOGS depends on both $ac_dir and the user's LINGUAS
22806           # environment variable.
22807           INST_LINGUAS=
22808           if test -n "$ALL_LINGUAS"; then
22809             for presentlang in $ALL_LINGUAS; do
22810               useit=no
22811               if test "%UNSET%" != "$LINGUAS"; then
22812                 desiredlanguages="$LINGUAS"
22813               else
22814                 desiredlanguages="$ALL_LINGUAS"
22815               fi
22816               for desiredlang in $desiredlanguages; do
22817                 # Use the presentlang catalog if desiredlang is
22818                 #   a. equal to presentlang, or
22819                 #   b. a variant of presentlang (because in this case,
22820                 #      presentlang can be used as a fallback for messages
22821                 #      which are not translated in the desiredlang catalog).
22822                 case "$desiredlang" in
22823                   "$presentlang"*) useit=yes;;
22824                 esac
22825               done
22826               if test $useit = yes; then
22827                 INST_LINGUAS="$INST_LINGUAS $presentlang"
22828               fi
22829             done
22830           fi
22831           CATALOGS=
22832           if test -n "$INST_LINGUAS"; then
22833             for lang in $INST_LINGUAS; do
22834               CATALOGS="$CATALOGS $lang.gmo"
22835             done
22836           fi
22837           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22838           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"
22839           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22840             if test -f "$f"; then
22841               case "$f" in
22842                 *.orig | *.bak | *~) ;;
22843                 *) cat "$f" >> "$ac_dir/Makefile" ;;
22844               esac
22845             fi
22846           done
22847         fi
22848         ;;
22849       esac
22850     done ;;
22851
22852   esac
22853 done # for ac_tag
22854
22855
22856 as_fn_exit 0
22857 _ACEOF
22858 ac_clean_files=$ac_clean_files_save
22859
22860 test $ac_write_fail = 0 ||
22861   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22862
22863
22864 # configure is writing to config.log, and then calls config.status.
22865 # config.status does its own redirection, appending to config.log.
22866 # Unfortunately, on DOS this fails, as config.log is still kept open
22867 # by configure, so config.status won't be able to write to it; its
22868 # output is simply discarded.  So we exec the FD to /dev/null,
22869 # effectively closing config.log, so it can be properly (re)opened and
22870 # appended to by config.status.  When coming back to configure, we
22871 # need to make the FD available again.
22872 if test "$no_create" != yes; then
22873   ac_cs_success=:
22874   ac_config_status_args=
22875   test "$silent" = yes &&
22876     ac_config_status_args="$ac_config_status_args --quiet"
22877   exec 5>/dev/null
22878   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22879   exec 5>>config.log
22880   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22881   # would make configure fail if this is the last instruction.
22882   $ac_cs_success || as_fn_exit 1
22883 fi
22884 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22885   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22886 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22887 fi
22888