Merge branch 'upstream' into tizen
[platform/upstream/cryptsetup.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for cryptsetup 2.3.7.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21   emulate sh
22   NULLCMD=:
23   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24   # is contrary to our usage.  Disable this feature.
25   alias -g '${1+"$@"}'='"$@"'
26   setopt NO_GLOB_SUBST
27 else $as_nop
28   case `(set -o) 2>/dev/null` in #(
29   *posix*) :
30     set -o posix ;; #(
31   *) :
32      ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" ""        $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77   PATH_SEPARATOR=:
78   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80       PATH_SEPARATOR=';'
81   }
82 fi
83
84
85 # Find who we are.  Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88   *[\\/]* ) as_myself=$0 ;;
89   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92   IFS=$as_save_IFS
93   case $as_dir in #(((
94     '') as_dir=./ ;;
95     */) ;;
96     *) as_dir=$as_dir/ ;;
97   esac
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   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116   # into an infinite loop, continuously re-executing ourselves.
117   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118     _as_can_reexec=no; export _as_can_reexec;
119     # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127   *v*x* | *x*v* ) as_opts=-vx ;;
128   *v* ) as_opts=-v ;;
129   *x* ) as_opts=-x ;;
130   * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137   fi
138   # We don't want this to propagate to other subprocesses.
139           { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141   as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144   emulate sh
145   NULLCMD=:
146   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147   # is contrary to our usage.  Disable this feature.
148   alias -g '\${1+\"\$@\"}'='\"\$@\"'
149   setopt NO_GLOB_SUBST
150 else \$as_nop
151   case \`(set -o) 2>/dev/null\` in #(
152   *posix*) :
153     set -o posix ;; #(
154   *) :
155      ;;
156 esac
157 fi
158 "
159   as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174   exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184
185   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
186     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
187     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
188     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189     PATH=/empty FPATH=/empty; export PATH FPATH
190     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
191       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
192 test \$(( 1 + 1 )) = 2 || exit 1"
193   if (eval "$as_required") 2>/dev/null
194 then :
195   as_have_required=yes
196 else $as_nop
197   as_have_required=no
198 fi
199   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
200 then :
201
202 else $as_nop
203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
204 as_found=false
205 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
206 do
207   IFS=$as_save_IFS
208   case $as_dir in #(((
209     '') as_dir=./ ;;
210     */) ;;
211     *) as_dir=$as_dir/ ;;
212   esac
213   as_found=:
214   case $as_dir in #(
215          /*)
216            for as_base in sh bash ksh sh5; do
217              # Try only shells that exist, to save several forks.
218              as_shell=$as_dir$as_base
219              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220                     as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
221 then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
224 then :
225   break 2
226 fi
227 fi
228            done;;
229        esac
230   as_found=false
231 done
232 IFS=$as_save_IFS
233 if $as_found
234 then :
235
236 else $as_nop
237   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
238               as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
239 then :
240   CONFIG_SHELL=$SHELL as_have_required=yes
241 fi
242 fi
243
244
245       if test "x$CONFIG_SHELL" != x
246 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno
269 then :
270   printf "%s\n" "$0: This script requires a shell more modern than all"
271   printf "%s\n" "$0: the shells that I found on your system."
272   if test ${ZSH_VERSION+y} ; then
273     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
275   else
276     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
277 $0: including any error possibly output before this
278 $0: message. Then install a modern shell, or manually run
279 $0: the script under such a shell if you do have one."
280   fi
281   exit 1
282 fi
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299   { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309   return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317   set +e
318   as_fn_set_status $1
319   exit $1
320 } # as_fn_exit
321 # as_fn_nop
322 # ---------
323 # Do nothing but, unlike ":", preserve the value of $?.
324 as_fn_nop ()
325 {
326   return $?
327 }
328 as_nop=as_fn_nop
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336   case $as_dir in #(
337   -*) as_dir=./$as_dir;;
338   esac
339   test -d "$as_dir" || eval $as_mkdir_p || {
340     as_dirs=
341     while :; do
342       case $as_dir in #(
343       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344       *) as_qdir=$as_dir;;
345       esac
346       as_dirs="'$as_qdir' $as_dirs"
347       as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349          X"$as_dir" : 'X\(//\)[^/]' \| \
350          X"$as_dir" : 'X\(//\)$' \| \
351          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354             s//\1/
355             q
356           }
357           /^X\(\/\/\)[^/].*/{
358             s//\1/
359             q
360           }
361           /^X\(\/\/\)$/{
362             s//\1/
363             q
364           }
365           /^X\(\/\).*/{
366             s//\1/
367             q
368           }
369           s/.*/./; q'`
370       test -d "$as_dir" && break
371     done
372     test -z "$as_dirs" || eval "mkdir $as_dirs"
373   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383   test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393   eval 'as_fn_append ()
394   {
395     eval $1+=\$2
396   }'
397 else $as_nop
398   as_fn_append ()
399   {
400     eval $1=\$$1\$2
401   }
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411   eval 'as_fn_arith ()
412   {
413     as_val=$(( $* ))
414   }'
415 else $as_nop
416   as_fn_arith ()
417   {
418     as_val=`expr "$@" || test $? -eq 1`
419   }
420 fi # as_fn_arith
421
422 # as_fn_nop
423 # ---------
424 # Do nothing but, unlike ":", preserve the value of $?.
425 as_fn_nop ()
426 {
427   return $?
428 }
429 as_nop=as_fn_nop
430
431 # as_fn_error STATUS ERROR [LINENO LOG_FD]
432 # ----------------------------------------
433 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
434 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
435 # script with STATUS, using 1 if that was 0.
436 as_fn_error ()
437 {
438   as_status=$1; test $as_status -eq 0 && as_status=1
439   if test "$4"; then
440     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
441     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
442   fi
443   printf "%s\n" "$as_me: error: $2" >&2
444   as_fn_exit $as_status
445 } # as_fn_error
446
447 if expr a : '\(a\)' >/dev/null 2>&1 &&
448    test "X`expr 00001 : '.*\(...\)'`" = X001; then
449   as_expr=expr
450 else
451   as_expr=false
452 fi
453
454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455   as_basename=basename
456 else
457   as_basename=false
458 fi
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461   as_dirname=dirname
462 else
463   as_dirname=false
464 fi
465
466 as_me=`$as_basename -- "$0" ||
467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
468          X"$0" : 'X\(//\)$' \| \
469          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
470 printf "%s\n" X/"$0" |
471     sed '/^.*\/\([^/][^/]*\)\/*$/{
472             s//\1/
473             q
474           }
475           /^X\/\(\/\/\)$/{
476             s//\1/
477             q
478           }
479           /^X\/\(\/\).*/{
480             s//\1/
481             q
482           }
483           s/.*/./; q'`
484
485 # Avoid depending upon Character Ranges.
486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
489 as_cr_digits='0123456789'
490 as_cr_alnum=$as_cr_Letters$as_cr_digits
491
492
493   as_lineno_1=$LINENO as_lineno_1a=$LINENO
494   as_lineno_2=$LINENO as_lineno_2a=$LINENO
495   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
496   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
497   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
498   sed -n '
499     p
500     /[$]LINENO/=
501   ' <$as_myself |
502     sed '
503       s/[$]LINENO.*/&-/
504       t lineno
505       b
506       :lineno
507       N
508       :loop
509       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
510       t loop
511       s/-\n.*//
512     ' >$as_me.lineno &&
513   chmod +x "$as_me.lineno" ||
514     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
515
516   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
517   # already done that, so ensure we don't try to do so again and fall
518   # in an infinite loop.  This has already happened in practice.
519   _as_can_reexec=no; export _as_can_reexec
520   # Don't try to exec as it changes $[0], causing all sort of problems
521   # (the dirname of $[0] is not the place where we might find the
522   # original and so on.  Autoconf is especially sensitive to this).
523   . "./$as_me.lineno"
524   # Exit status is that of the last command.
525   exit
526 }
527
528
529 # Determine whether it's possible to make 'echo' print without a newline.
530 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
531 # for compatibility with existing Makefiles.
532 ECHO_C= ECHO_N= ECHO_T=
533 case `echo -n x` in #(((((
534 -n*)
535   case `echo 'xy\c'` in
536   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
537   xy)  ECHO_C='\c';;
538   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
539        ECHO_T=' ';;
540   esac;;
541 *)
542   ECHO_N='-n';;
543 esac
544
545 # For backward compatibility with old third-party macros, we provide
546 # the shell variables $as_echo and $as_echo_n.  New code should use
547 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
548 as_echo='printf %s\n'
549 as_echo_n='printf %s'
550
551
552 rm -f conf$$ conf$$.exe conf$$.file
553 if test -d conf$$.dir; then
554   rm -f conf$$.dir/conf$$.file
555 else
556   rm -f conf$$.dir
557   mkdir conf$$.dir 2>/dev/null
558 fi
559 if (echo >conf$$.file) 2>/dev/null; then
560   if ln -s conf$$.file conf$$ 2>/dev/null; then
561     as_ln_s='ln -s'
562     # ... but there are two gotchas:
563     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
564     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
565     # In both cases, we have to default to `cp -pR'.
566     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
567       as_ln_s='cp -pR'
568   elif ln conf$$.file conf$$ 2>/dev/null; then
569     as_ln_s=ln
570   else
571     as_ln_s='cp -pR'
572   fi
573 else
574   as_ln_s='cp -pR'
575 fi
576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
577 rmdir conf$$.dir 2>/dev/null
578
579 if mkdir -p . 2>/dev/null; then
580   as_mkdir_p='mkdir -p "$as_dir"'
581 else
582   test -d ./-p && rmdir ./-p
583   as_mkdir_p=false
584 fi
585
586 as_test_x='test -x'
587 as_executable_p=as_fn_executable_p
588
589 # Sed expression to map a string onto a valid CPP name.
590 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
591
592 # Sed expression to map a string onto a valid variable name.
593 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
594
595 SHELL=${CONFIG_SHELL-/bin/sh}
596
597
598 test -n "$DJDIR" || exec 7<&0 </dev/null
599 exec 6>&1
600
601 # Name of the host.
602 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
603 # so uname gets run too.
604 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
605
606 #
607 # Initializations.
608 #
609 ac_default_prefix=/usr/local
610 ac_clean_files=
611 ac_config_libobj_dir=.
612 LIBOBJS=
613 cross_compiling=no
614 subdirs=
615 MFLAGS=
616 MAKEFLAGS=
617
618 # Identity of this package.
619 PACKAGE_NAME='cryptsetup'
620 PACKAGE_TARNAME='cryptsetup'
621 PACKAGE_VERSION='2.3.7'
622 PACKAGE_STRING='cryptsetup 2.3.7'
623 PACKAGE_BUGREPORT=''
624 PACKAGE_URL=''
625
626 ac_unique_file="src/cryptsetup.c"
627 ac_default_prefix=/usr
628 # Factoring default headers for most tests.
629 ac_includes_default="\
630 #include <stddef.h>
631 #ifdef HAVE_STDIO_H
632 # include <stdio.h>
633 #endif
634 #ifdef HAVE_STDLIB_H
635 # include <stdlib.h>
636 #endif
637 #ifdef HAVE_STRING_H
638 # include <string.h>
639 #endif
640 #ifdef HAVE_INTTYPES_H
641 # include <inttypes.h>
642 #endif
643 #ifdef HAVE_STDINT_H
644 # include <stdint.h>
645 #endif
646 #ifdef HAVE_STRINGS_H
647 # include <strings.h>
648 #endif
649 #ifdef HAVE_SYS_TYPES_H
650 # include <sys/types.h>
651 #endif
652 #ifdef HAVE_SYS_STAT_H
653 # include <sys/stat.h>
654 #endif
655 #ifdef HAVE_UNISTD_H
656 # include <unistd.h>
657 #endif"
658
659 ac_header_c_list=
660 gt_needs=
661 ac_subst_vars='am__EXEEXT_FALSE
662 am__EXEEXT_TRUE
663 LTLIBOBJS
664 LIBOBJS
665 DEFAULT_LUKS2_LOCK_DIR_PERMS
666 DEFAULT_LUKS2_LOCK_PATH
667 CRYPTSETUP_TMPFILE_FALSE
668 CRYPTSETUP_TMPFILE_TRUE
669 DEFAULT_TMPFILESDIR
670 LIBCRYPTSETUP_VERSION_INFO
671 LIBCRYPTSETUP_VERSION
672 CRYPTO_STATIC_LIBS
673 CRYPTO_LIBS
674 CRYPTO_CFLAGS
675 PASSWDQC_LIBS
676 PWQUALITY_STATIC_LIBS
677 systemd_tmpfilesdir
678 DEVMAPPER_STATIC_LIBS
679 DEVMAPPER_STATIC_CFLAGS
680 HAVE_BLKID_STEP_BACK_FALSE
681 HAVE_BLKID_STEP_BACK_TRUE
682 HAVE_BLKID_WIPE_FALSE
683 HAVE_BLKID_WIPE_TRUE
684 HAVE_BLKID_FALSE
685 HAVE_BLKID_TRUE
686 BLKID_LIBS
687 BLKID_CFLAGS
688 CRYPTO_INTERNAL_SSE_ARGON2_FALSE
689 CRYPTO_INTERNAL_SSE_ARGON2_TRUE
690 CRYPTO_INTERNAL_ARGON2_FALSE
691 CRYPTO_INTERNAL_ARGON2_TRUE
692 LIBARGON2_LIBS
693 LIBARGON2_CFLAGS
694 CRYPTO_INTERNAL_PBKDF2_FALSE
695 CRYPTO_INTERNAL_PBKDF2_TRUE
696 CRYPTO_BACKEND_NETTLE_FALSE
697 CRYPTO_BACKEND_NETTLE_TRUE
698 CRYPTO_BACKEND_KERNEL_FALSE
699 CRYPTO_BACKEND_KERNEL_TRUE
700 CRYPTO_BACKEND_NSS_FALSE
701 CRYPTO_BACKEND_NSS_TRUE
702 CRYPTO_BACKEND_OPENSSL_FALSE
703 CRYPTO_BACKEND_OPENSSL_TRUE
704 CRYPTO_BACKEND_GCRYPT_FALSE
705 CRYPTO_BACKEND_GCRYPT_TRUE
706 NSS_LIBS
707 NSS_CFLAGS
708 OPENSSL_STATIC_LIBS
709 OPENSSL_STATIC_CFLAGS
710 OPENSSL_LIBS
711 OPENSSL_CFLAGS
712 LIBGCRYPT_LIBS
713 LIBGCRYPT_CFLAGS
714 LIBGCRYPT_CONFIG
715 JSON_C_LIBS
716 JSON_C_CFLAGS
717 DEVMAPPER_LIBS
718 DEVMAPPER_CFLAGS
719 INTEGRITYSETUP_FALSE
720 INTEGRITYSETUP_TRUE
721 REENCRYPT_FALSE
722 REENCRYPT_TRUE
723 VERITYSETUP_FALSE
724 VERITYSETUP_TRUE
725 CRYPTSETUP_FALSE
726 CRYPTSETUP_TRUE
727 STATIC_TOOLS_FALSE
728 STATIC_TOOLS_TRUE
729 PWQUALITY_LIBS
730 PWQUALITY_CFLAGS
731 POPT_LIBS
732 POSUB
733 LTLIBINTL
734 LIBINTL
735 INTLLIBS
736 INTL_MACOSX_LIBS
737 XGETTEXT_EXTRA_OPTIONS
738 MSGMERGE
739 XGETTEXT_015
740 XGETTEXT
741 GMSGFMT_015
742 MSGFMT_015
743 GMSGFMT
744 MSGFMT
745 GETTEXT_MACRO_VERSION
746 USE_NLS
747 UUID_LIBS
748 KERNEL_KEYRING_FALSE
749 KERNEL_KEYRING_TRUE
750 LTLIBICONV
751 LIBICONV
752 PKG_CONFIG_LIBDIR
753 PKG_CONFIG_PATH
754 PKG_CONFIG
755 LT_SYS_LIBRARY_PATH
756 OTOOL64
757 OTOOL
758 LIPO
759 NMEDIT
760 DSYMUTIL
761 MANIFEST_TOOL
762 RANLIB
763 ac_ct_AR
764 AR
765 DLLTOOL
766 OBJDUMP
767 LN_S
768 NM
769 ac_ct_DUMPBIN
770 DUMPBIN
771 LD
772 FGREP
773 EGREP
774 GREP
775 SED
776 LIBTOOL
777 CPP
778 am__fastdepCC_FALSE
779 am__fastdepCC_TRUE
780 CCDEPMODE
781 am__nodep
782 AMDEPBACKSLASH
783 AMDEP_FALSE
784 AMDEP_TRUE
785 am__include
786 DEPDIR
787 OBJEXT
788 EXEEXT
789 ac_ct_CC
790 CPPFLAGS
791 LDFLAGS
792 CFLAGS
793 CC
794 host_os
795 host_vendor
796 host_cpu
797 host
798 build_os
799 build_vendor
800 build_cpu
801 build
802 CSCOPE
803 ETAGS
804 CTAGS
805 am__untar
806 am__tar
807 AMTAR
808 am__leading_dot
809 SET_MAKE
810 AWK
811 mkdir_p
812 MKDIR_P
813 INSTALL_STRIP_PROGRAM
814 STRIP
815 install_sh
816 MAKEINFO
817 AUTOHEADER
818 AUTOMAKE
819 AUTOCONF
820 ACLOCAL
821 VERSION
822 PACKAGE
823 CYGPATH_W
824 am__isrc
825 INSTALL_DATA
826 INSTALL_SCRIPT
827 INSTALL_PROGRAM
828 AM_BACKSLASH
829 AM_DEFAULT_VERBOSITY
830 AM_DEFAULT_V
831 AM_V
832 target_alias
833 host_alias
834 build_alias
835 LIBS
836 ECHO_T
837 ECHO_N
838 ECHO_C
839 DEFS
840 mandir
841 localedir
842 libdir
843 psdir
844 pdfdir
845 dvidir
846 htmldir
847 infodir
848 docdir
849 oldincludedir
850 includedir
851 runstatedir
852 localstatedir
853 sharedstatedir
854 sysconfdir
855 datadir
856 datarootdir
857 libexecdir
858 sbindir
859 bindir
860 program_transform_name
861 prefix
862 exec_prefix
863 PACKAGE_URL
864 PACKAGE_BUGREPORT
865 PACKAGE_STRING
866 PACKAGE_VERSION
867 PACKAGE_TARNAME
868 PACKAGE_NAME
869 PATH_SEPARATOR
870 SHELL
871 am__quote'
872 ac_subst_files=''
873 ac_user_opts='
874 enable_option_checking
875 enable_silent_rules
876 enable_dependency_tracking
877 enable_static
878 enable_shared
879 with_pic
880 enable_fast_install
881 with_aix_soname
882 with_gnu_ld
883 with_sysroot
884 enable_libtool_lock
885 enable_rpath
886 with_libiconv_prefix
887 enable_keyring
888 enable_largefile
889 enable_nls
890 with_libintl_prefix
891 enable_fips
892 enable_luks2_reencryption
893 enable_pwquality
894 enable_passwdqc
895 enable_static_cryptsetup
896 enable_cryptsetup
897 enable_veritysetup
898 enable_cryptsetup_reencrypt
899 enable_integritysetup
900 enable_selinux
901 enable_udev
902 with_crypto_backend
903 enable_kernel_crypto
904 enable_gcrypt_pbkdf2
905 with_libgcrypt_prefix
906 enable_internal_argon2
907 enable_libargon2
908 enable_internal_sse_argon2
909 enable_blkid
910 enable_dev_random
911 with_plain_hash
912 with_plain_cipher
913 with_plain_mode
914 with_plain_keybits
915 with_luks1_hash
916 with_luks1_cipher
917 with_luks1_mode
918 with_luks1_keybits
919 enable_luks_adjust_xts_keysize
920 with_luks2_pbkdf
921 with_luks1_iter_time
922 with_luks2_iter_time
923 with_luks2_memory_kb
924 with_luks2_parallel_threads
925 with_luks2_keyslot_cipher
926 with_luks2_keyslot_keybits
927 with_loopaes_cipher
928 with_loopaes_keybits
929 with_keyfile_size_maxkb
930 with_integrity_keyfile_size_maxkb
931 with_passphrase_size_max
932 with_verity_hash
933 with_verity_data_block
934 with_verity_hash_block
935 with_verity_salt_size
936 with_verity_fec_roots
937 with_tmpfilesdir
938 with_luks2_lock_path
939 with_luks2_lock_dir_perms
940 with_default_luks_format
941 '
942       ac_precious_vars='build_alias
943 host_alias
944 target_alias
945 CC
946 CFLAGS
947 LDFLAGS
948 LIBS
949 CPPFLAGS
950 CPP
951 LT_SYS_LIBRARY_PATH
952 PKG_CONFIG
953 PKG_CONFIG_PATH
954 PKG_CONFIG_LIBDIR
955 PWQUALITY_CFLAGS
956 PWQUALITY_LIBS
957 DEVMAPPER_CFLAGS
958 DEVMAPPER_LIBS
959 JSON_C_CFLAGS
960 JSON_C_LIBS
961 OPENSSL_CFLAGS
962 OPENSSL_LIBS
963 OPENSSL_STATIC_CFLAGS
964 OPENSSL_STATIC_LIBS
965 NSS_CFLAGS
966 NSS_LIBS
967 LIBARGON2_CFLAGS
968 LIBARGON2_LIBS
969 BLKID_CFLAGS
970 BLKID_LIBS
971 DEVMAPPER_STATIC_CFLAGS
972 DEVMAPPER_STATIC_LIBS
973 systemd_tmpfilesdir'
974
975
976 # Initialize some variables set by options.
977 ac_init_help=
978 ac_init_version=false
979 ac_unrecognized_opts=
980 ac_unrecognized_sep=
981 # The variables have the same names as the options, with
982 # dashes changed to underlines.
983 cache_file=/dev/null
984 exec_prefix=NONE
985 no_create=
986 no_recursion=
987 prefix=NONE
988 program_prefix=NONE
989 program_suffix=NONE
990 program_transform_name=s,x,x,
991 silent=
992 site=
993 srcdir=
994 verbose=
995 x_includes=NONE
996 x_libraries=NONE
997
998 # Installation directory options.
999 # These are left unexpanded so users can "make install exec_prefix=/foo"
1000 # and all the variables that are supposed to be based on exec_prefix
1001 # by default will actually change.
1002 # Use braces instead of parens because sh, perl, etc. also accept them.
1003 # (The list follows the same order as the GNU Coding Standards.)
1004 bindir='${exec_prefix}/bin'
1005 sbindir='${exec_prefix}/sbin'
1006 libexecdir='${exec_prefix}/libexec'
1007 datarootdir='${prefix}/share'
1008 datadir='${datarootdir}'
1009 sysconfdir='${prefix}/etc'
1010 sharedstatedir='${prefix}/com'
1011 localstatedir='${prefix}/var'
1012 runstatedir='${localstatedir}/run'
1013 includedir='${prefix}/include'
1014 oldincludedir='/usr/include'
1015 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1016 infodir='${datarootdir}/info'
1017 htmldir='${docdir}'
1018 dvidir='${docdir}'
1019 pdfdir='${docdir}'
1020 psdir='${docdir}'
1021 libdir='${exec_prefix}/lib'
1022 localedir='${datarootdir}/locale'
1023 mandir='${datarootdir}/man'
1024
1025 ac_prev=
1026 ac_dashdash=
1027 for ac_option
1028 do
1029   # If the previous option needs an argument, assign it.
1030   if test -n "$ac_prev"; then
1031     eval $ac_prev=\$ac_option
1032     ac_prev=
1033     continue
1034   fi
1035
1036   case $ac_option in
1037   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038   *=)   ac_optarg= ;;
1039   *)    ac_optarg=yes ;;
1040   esac
1041
1042   case $ac_dashdash$ac_option in
1043   --)
1044     ac_dashdash=yes ;;
1045
1046   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1047     ac_prev=bindir ;;
1048   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1049     bindir=$ac_optarg ;;
1050
1051   -build | --build | --buil | --bui | --bu)
1052     ac_prev=build_alias ;;
1053   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1054     build_alias=$ac_optarg ;;
1055
1056   -cache-file | --cache-file | --cache-fil | --cache-fi \
1057   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1058     ac_prev=cache_file ;;
1059   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1060   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1061     cache_file=$ac_optarg ;;
1062
1063   --config-cache | -C)
1064     cache_file=config.cache ;;
1065
1066   -datadir | --datadir | --datadi | --datad)
1067     ac_prev=datadir ;;
1068   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1069     datadir=$ac_optarg ;;
1070
1071   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1072   | --dataroo | --dataro | --datar)
1073     ac_prev=datarootdir ;;
1074   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1075   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1076     datarootdir=$ac_optarg ;;
1077
1078   -disable-* | --disable-*)
1079     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1080     # Reject names that are not valid shell variable names.
1081     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1083     ac_useropt_orig=$ac_useropt
1084     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1085     case $ac_user_opts in
1086       *"
1087 "enable_$ac_useropt"
1088 "*) ;;
1089       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1090          ac_unrecognized_sep=', ';;
1091     esac
1092     eval enable_$ac_useropt=no ;;
1093
1094   -docdir | --docdir | --docdi | --doc | --do)
1095     ac_prev=docdir ;;
1096   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1097     docdir=$ac_optarg ;;
1098
1099   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1100     ac_prev=dvidir ;;
1101   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1102     dvidir=$ac_optarg ;;
1103
1104   -enable-* | --enable-*)
1105     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1106     # Reject names that are not valid shell variable names.
1107     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1109     ac_useropt_orig=$ac_useropt
1110     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1111     case $ac_user_opts in
1112       *"
1113 "enable_$ac_useropt"
1114 "*) ;;
1115       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1116          ac_unrecognized_sep=', ';;
1117     esac
1118     eval enable_$ac_useropt=\$ac_optarg ;;
1119
1120   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1121   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1122   | --exec | --exe | --ex)
1123     ac_prev=exec_prefix ;;
1124   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1125   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1126   | --exec=* | --exe=* | --ex=*)
1127     exec_prefix=$ac_optarg ;;
1128
1129   -gas | --gas | --ga | --g)
1130     # Obsolete; use --with-gas.
1131     with_gas=yes ;;
1132
1133   -help | --help | --hel | --he | -h)
1134     ac_init_help=long ;;
1135   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1136     ac_init_help=recursive ;;
1137   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1138     ac_init_help=short ;;
1139
1140   -host | --host | --hos | --ho)
1141     ac_prev=host_alias ;;
1142   -host=* | --host=* | --hos=* | --ho=*)
1143     host_alias=$ac_optarg ;;
1144
1145   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1146     ac_prev=htmldir ;;
1147   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1148   | --ht=*)
1149     htmldir=$ac_optarg ;;
1150
1151   -includedir | --includedir | --includedi | --included | --include \
1152   | --includ | --inclu | --incl | --inc)
1153     ac_prev=includedir ;;
1154   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1155   | --includ=* | --inclu=* | --incl=* | --inc=*)
1156     includedir=$ac_optarg ;;
1157
1158   -infodir | --infodir | --infodi | --infod | --info | --inf)
1159     ac_prev=infodir ;;
1160   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1161     infodir=$ac_optarg ;;
1162
1163   -libdir | --libdir | --libdi | --libd)
1164     ac_prev=libdir ;;
1165   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1166     libdir=$ac_optarg ;;
1167
1168   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1169   | --libexe | --libex | --libe)
1170     ac_prev=libexecdir ;;
1171   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1172   | --libexe=* | --libex=* | --libe=*)
1173     libexecdir=$ac_optarg ;;
1174
1175   -localedir | --localedir | --localedi | --localed | --locale)
1176     ac_prev=localedir ;;
1177   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1178     localedir=$ac_optarg ;;
1179
1180   -localstatedir | --localstatedir | --localstatedi | --localstated \
1181   | --localstate | --localstat | --localsta | --localst | --locals)
1182     ac_prev=localstatedir ;;
1183   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1184   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1185     localstatedir=$ac_optarg ;;
1186
1187   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1188     ac_prev=mandir ;;
1189   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1190     mandir=$ac_optarg ;;
1191
1192   -nfp | --nfp | --nf)
1193     # Obsolete; use --without-fp.
1194     with_fp=no ;;
1195
1196   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1197   | --no-cr | --no-c | -n)
1198     no_create=yes ;;
1199
1200   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1201   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1202     no_recursion=yes ;;
1203
1204   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1205   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1206   | --oldin | --oldi | --old | --ol | --o)
1207     ac_prev=oldincludedir ;;
1208   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1209   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1210   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1211     oldincludedir=$ac_optarg ;;
1212
1213   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1214     ac_prev=prefix ;;
1215   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1216     prefix=$ac_optarg ;;
1217
1218   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1219   | --program-pre | --program-pr | --program-p)
1220     ac_prev=program_prefix ;;
1221   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1222   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1223     program_prefix=$ac_optarg ;;
1224
1225   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1226   | --program-suf | --program-su | --program-s)
1227     ac_prev=program_suffix ;;
1228   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1229   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1230     program_suffix=$ac_optarg ;;
1231
1232   -program-transform-name | --program-transform-name \
1233   | --program-transform-nam | --program-transform-na \
1234   | --program-transform-n | --program-transform- \
1235   | --program-transform | --program-transfor \
1236   | --program-transfo | --program-transf \
1237   | --program-trans | --program-tran \
1238   | --progr-tra | --program-tr | --program-t)
1239     ac_prev=program_transform_name ;;
1240   -program-transform-name=* | --program-transform-name=* \
1241   | --program-transform-nam=* | --program-transform-na=* \
1242   | --program-transform-n=* | --program-transform-=* \
1243   | --program-transform=* | --program-transfor=* \
1244   | --program-transfo=* | --program-transf=* \
1245   | --program-trans=* | --program-tran=* \
1246   | --progr-tra=* | --program-tr=* | --program-t=*)
1247     program_transform_name=$ac_optarg ;;
1248
1249   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1250     ac_prev=pdfdir ;;
1251   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1252     pdfdir=$ac_optarg ;;
1253
1254   -psdir | --psdir | --psdi | --psd | --ps)
1255     ac_prev=psdir ;;
1256   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1257     psdir=$ac_optarg ;;
1258
1259   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1260   | -silent | --silent | --silen | --sile | --sil)
1261     silent=yes ;;
1262
1263   -runstatedir | --runstatedir | --runstatedi | --runstated \
1264   | --runstate | --runstat | --runsta | --runst | --runs \
1265   | --run | --ru | --r)
1266     ac_prev=runstatedir ;;
1267   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1268   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1269   | --run=* | --ru=* | --r=*)
1270     runstatedir=$ac_optarg ;;
1271
1272   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1273     ac_prev=sbindir ;;
1274   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1275   | --sbi=* | --sb=*)
1276     sbindir=$ac_optarg ;;
1277
1278   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1279   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1280   | --sharedst | --shareds | --shared | --share | --shar \
1281   | --sha | --sh)
1282     ac_prev=sharedstatedir ;;
1283   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1284   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1285   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1286   | --sha=* | --sh=*)
1287     sharedstatedir=$ac_optarg ;;
1288
1289   -site | --site | --sit)
1290     ac_prev=site ;;
1291   -site=* | --site=* | --sit=*)
1292     site=$ac_optarg ;;
1293
1294   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1295     ac_prev=srcdir ;;
1296   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1297     srcdir=$ac_optarg ;;
1298
1299   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1300   | --syscon | --sysco | --sysc | --sys | --sy)
1301     ac_prev=sysconfdir ;;
1302   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1303   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1304     sysconfdir=$ac_optarg ;;
1305
1306   -target | --target | --targe | --targ | --tar | --ta | --t)
1307     ac_prev=target_alias ;;
1308   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1309     target_alias=$ac_optarg ;;
1310
1311   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1312     verbose=yes ;;
1313
1314   -version | --version | --versio | --versi | --vers | -V)
1315     ac_init_version=: ;;
1316
1317   -with-* | --with-*)
1318     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1319     # Reject names that are not valid shell variable names.
1320     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1321       as_fn_error $? "invalid package name: \`$ac_useropt'"
1322     ac_useropt_orig=$ac_useropt
1323     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1324     case $ac_user_opts in
1325       *"
1326 "with_$ac_useropt"
1327 "*) ;;
1328       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1329          ac_unrecognized_sep=', ';;
1330     esac
1331     eval with_$ac_useropt=\$ac_optarg ;;
1332
1333   -without-* | --without-*)
1334     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1335     # Reject names that are not valid shell variable names.
1336     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1337       as_fn_error $? "invalid package name: \`$ac_useropt'"
1338     ac_useropt_orig=$ac_useropt
1339     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1340     case $ac_user_opts in
1341       *"
1342 "with_$ac_useropt"
1343 "*) ;;
1344       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1345          ac_unrecognized_sep=', ';;
1346     esac
1347     eval with_$ac_useropt=no ;;
1348
1349   --x)
1350     # Obsolete; use --with-x.
1351     with_x=yes ;;
1352
1353   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1354   | --x-incl | --x-inc | --x-in | --x-i)
1355     ac_prev=x_includes ;;
1356   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1357   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1358     x_includes=$ac_optarg ;;
1359
1360   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1361   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1362     ac_prev=x_libraries ;;
1363   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1364   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1365     x_libraries=$ac_optarg ;;
1366
1367   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1368 Try \`$0 --help' for more information"
1369     ;;
1370
1371   *=*)
1372     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1373     # Reject names that are not valid shell variable names.
1374     case $ac_envvar in #(
1375       '' | [0-9]* | *[!_$as_cr_alnum]* )
1376       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1377     esac
1378     eval $ac_envvar=\$ac_optarg
1379     export $ac_envvar ;;
1380
1381   *)
1382     # FIXME: should be removed in autoconf 3.0.
1383     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1384     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1385       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1386     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1387     ;;
1388
1389   esac
1390 done
1391
1392 if test -n "$ac_prev"; then
1393   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1394   as_fn_error $? "missing argument to $ac_option"
1395 fi
1396
1397 if test -n "$ac_unrecognized_opts"; then
1398   case $enable_option_checking in
1399     no) ;;
1400     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1401     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1402   esac
1403 fi
1404
1405 # Check all directory arguments for consistency.
1406 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1407                 datadir sysconfdir sharedstatedir localstatedir includedir \
1408                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1409                 libdir localedir mandir runstatedir
1410 do
1411   eval ac_val=\$$ac_var
1412   # Remove trailing slashes.
1413   case $ac_val in
1414     */ )
1415       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1416       eval $ac_var=\$ac_val;;
1417   esac
1418   # Be sure to have absolute directory names.
1419   case $ac_val in
1420     [\\/$]* | ?:[\\/]* )  continue;;
1421     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1422   esac
1423   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1424 done
1425
1426 # There might be people who depend on the old broken behavior: `$host'
1427 # used to hold the argument of --host etc.
1428 # FIXME: To remove some day.
1429 build=$build_alias
1430 host=$host_alias
1431 target=$target_alias
1432
1433 # FIXME: To remove some day.
1434 if test "x$host_alias" != x; then
1435   if test "x$build_alias" = x; then
1436     cross_compiling=maybe
1437   elif test "x$build_alias" != "x$host_alias"; then
1438     cross_compiling=yes
1439   fi
1440 fi
1441
1442 ac_tool_prefix=
1443 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1444
1445 test "$silent" = yes && exec 6>/dev/null
1446
1447
1448 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1449 ac_ls_di=`ls -di .` &&
1450 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1451   as_fn_error $? "working directory cannot be determined"
1452 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1453   as_fn_error $? "pwd does not report name of working directory"
1454
1455
1456 # Find the source files, if location was not specified.
1457 if test -z "$srcdir"; then
1458   ac_srcdir_defaulted=yes
1459   # Try the directory containing this script, then the parent directory.
1460   ac_confdir=`$as_dirname -- "$as_myself" ||
1461 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1462          X"$as_myself" : 'X\(//\)[^/]' \| \
1463          X"$as_myself" : 'X\(//\)$' \| \
1464          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1465 printf "%s\n" X"$as_myself" |
1466     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1467             s//\1/
1468             q
1469           }
1470           /^X\(\/\/\)[^/].*/{
1471             s//\1/
1472             q
1473           }
1474           /^X\(\/\/\)$/{
1475             s//\1/
1476             q
1477           }
1478           /^X\(\/\).*/{
1479             s//\1/
1480             q
1481           }
1482           s/.*/./; q'`
1483   srcdir=$ac_confdir
1484   if test ! -r "$srcdir/$ac_unique_file"; then
1485     srcdir=..
1486   fi
1487 else
1488   ac_srcdir_defaulted=no
1489 fi
1490 if test ! -r "$srcdir/$ac_unique_file"; then
1491   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1492   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1493 fi
1494 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1495 ac_abs_confdir=`(
1496         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1497         pwd)`
1498 # When building in place, set srcdir=.
1499 if test "$ac_abs_confdir" = "$ac_pwd"; then
1500   srcdir=.
1501 fi
1502 # Remove unnecessary trailing slashes from srcdir.
1503 # Double slashes in file names in object file debugging info
1504 # mess up M-x gdb in Emacs.
1505 case $srcdir in
1506 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1507 esac
1508 for ac_var in $ac_precious_vars; do
1509   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1510   eval ac_env_${ac_var}_value=\$${ac_var}
1511   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1512   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1513 done
1514
1515 #
1516 # Report the --help message.
1517 #
1518 if test "$ac_init_help" = "long"; then
1519   # Omit some internal or obsolete options to make the list less imposing.
1520   # This message is too long to be a string in the A/UX 3.1 sh.
1521   cat <<_ACEOF
1522 \`configure' configures cryptsetup 2.3.7 to adapt to many kinds of systems.
1523
1524 Usage: $0 [OPTION]... [VAR=VALUE]...
1525
1526 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1527 VAR=VALUE.  See below for descriptions of some of the useful variables.
1528
1529 Defaults for the options are specified in brackets.
1530
1531 Configuration:
1532   -h, --help              display this help and exit
1533       --help=short        display options specific to this package
1534       --help=recursive    display the short help of all the included packages
1535   -V, --version           display version information and exit
1536   -q, --quiet, --silent   do not print \`checking ...' messages
1537       --cache-file=FILE   cache test results in FILE [disabled]
1538   -C, --config-cache      alias for \`--cache-file=config.cache'
1539   -n, --no-create         do not create output files
1540       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1541
1542 Installation directories:
1543   --prefix=PREFIX         install architecture-independent files in PREFIX
1544                           [$ac_default_prefix]
1545   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1546                           [PREFIX]
1547
1548 By default, \`make install' will install all the files in
1549 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1550 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1551 for instance \`--prefix=\$HOME'.
1552
1553 For better control, use the options below.
1554
1555 Fine tuning of the installation directories:
1556   --bindir=DIR            user executables [EPREFIX/bin]
1557   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1558   --libexecdir=DIR        program executables [EPREFIX/libexec]
1559   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1560   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1561   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1562   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1563   --libdir=DIR            object code libraries [EPREFIX/lib]
1564   --includedir=DIR        C header files [PREFIX/include]
1565   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1566   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1567   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1568   --infodir=DIR           info documentation [DATAROOTDIR/info]
1569   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1570   --mandir=DIR            man documentation [DATAROOTDIR/man]
1571   --docdir=DIR            documentation root [DATAROOTDIR/doc/cryptsetup]
1572   --htmldir=DIR           html documentation [DOCDIR]
1573   --dvidir=DIR            dvi documentation [DOCDIR]
1574   --pdfdir=DIR            pdf documentation [DOCDIR]
1575   --psdir=DIR             ps documentation [DOCDIR]
1576 _ACEOF
1577
1578   cat <<\_ACEOF
1579
1580 Program names:
1581   --program-prefix=PREFIX            prepend PREFIX to installed program names
1582   --program-suffix=SUFFIX            append SUFFIX to installed program names
1583   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1584
1585 System types:
1586   --build=BUILD     configure for building on BUILD [guessed]
1587   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1588 _ACEOF
1589 fi
1590
1591 if test -n "$ac_init_help"; then
1592   case $ac_init_help in
1593      short | recursive ) echo "Configuration of cryptsetup 2.3.7:";;
1594    esac
1595   cat <<\_ACEOF
1596
1597 Optional Features:
1598   --disable-option-checking  ignore unrecognized --enable/--with options
1599   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1600   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1601   --enable-silent-rules   less verbose build output (undo: "make V=1")
1602   --disable-silent-rules  verbose build output (undo: "make V=0")
1603   --enable-dependency-tracking
1604                           do not reject slow dependency extractors
1605   --disable-dependency-tracking
1606                           speeds up one-time build
1607   --enable-static[=PKGS]  build static libraries [default=no]
1608   --enable-shared[=PKGS]  build shared libraries [default=yes]
1609   --enable-fast-install[=PKGS]
1610                           optimize for fast installation [default=yes]
1611   --disable-libtool-lock  avoid locking (might break parallel builds)
1612   --disable-rpath         do not hardcode runtime library paths
1613   --disable-keyring       disable kernel keyring support and builtin kernel
1614                           keyring token
1615   --disable-largefile     omit support for large files
1616   --disable-nls           do not use Native Language Support
1617   --enable-fips           enable FIPS mode restrictions
1618   --disable-luks2-reencryption
1619                           disable LUKS2 online reencryption extension
1620   --enable-pwquality      enable password quality checking using pwquality
1621                           library
1622   --enable-passwdqc[=CONFIG_PATH]
1623                           enable password quality checking using passwdqc
1624                           library (optionally with CONFIG_PATH)
1625   --enable-static-cryptsetup
1626                           enable build of static version of tools
1627   --disable-cryptsetup    disable cryptsetup support
1628   --disable-veritysetup   disable veritysetup support
1629   --disable-cryptsetup-reencrypt
1630                           disable cryptsetup-reencrypt tool
1631   --disable-integritysetup
1632                           disable integritysetup support
1633   --disable-selinux       disable selinux support [default=auto]
1634   --disable-udev          disable udev support
1635   --disable-kernel_crypto disable kernel userspace crypto (no benchmark and
1636                           tcrypt)
1637                   --enable-gcrypt-pbkdf2  force enable internal gcrypt PBKDF2
1638   --disable-internal-argon2
1639                           disable internal implementation of Argon2 PBKDF
1640   --enable-libargon2      enable external libargon2 (PHC) library (disables
1641                           internal bundled version)
1642   --enable-internal-sse-argon2
1643                           enable internal SSE implementation of Argon2 PBKDF
1644   --disable-blkid         disable use of blkid for device signature detection
1645                           and wiping
1646   --enable-dev-random     use /dev/random by default for key generation
1647                           (otherwise use /dev/urandom)
1648   --disable-luks-adjust-xts-keysize
1649                           XTS mode requires two keys, double default LUKS
1650                           keysize if needed
1651
1652 Optional Packages:
1653   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1654   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1655   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1656                           both]
1657   --with-aix-soname=aix|svr4|both
1658                           shared library versioning (aka "SONAME") variant to
1659                           provide on AIX, [default=aix].
1660   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1661   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1662                           compiler's sysroot if not specified).
1663   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1664   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1665   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1666   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1667   --without-libintl-prefix     don't search for libintl in includedir and libdir
1668   --with-crypto_backend=BACKEND
1669                           crypto backend (gcrypt/openssl/nss/kernel/nettle)
1670                           [openssl]
1671   --with-libgcrypt-prefix=PFX
1672                           prefix where LIBGCRYPT is installed (optional)
1673   --with-plain-hash       default password hashing function for plain mode
1674                           [ripemd160]
1675   --with-plain-cipher     default cipher for plain mode [aes]
1676   --with-plain-mode       default cipher mode for plain mode
1677                           [cbc-essiv:sha256]
1678   --with-plain-keybits    default key length in bits for plain mode [256]
1679   --with-luks1-hash       default hash function for LUKS1 header [sha256]
1680   --with-luks1-cipher     default cipher for LUKS1 [aes]
1681   --with-luks1-mode       default cipher mode for LUKS1 [xts-plain64]
1682   --with-luks1-keybits    default key length in bits for LUKS1 [256]
1683   --with-luks2-pbkdf      default Default PBKDF algorithm (pbkdf2 or
1684                           argon2i/argon2id) for LUKS2 [argon2i]
1685   --with-luks1-iter-time  default PBKDF2 iteration time for LUKS1 (in ms)
1686                           [2000]
1687   --with-luks2-iter-time  default Argon2 PBKDF iteration time for LUKS2 (in
1688                           ms) [2000]
1689   --with-luks2-memory-kb  default Argon2 PBKDF memory cost for LUKS2 (in kB)
1690                           [1048576]
1691   --with-luks2-parallel-threads
1692                           default Argon2 PBKDF max parallel cost for LUKS2 (if
1693                           CPUs available) [4]
1694   --with-luks2-keyslot-cipher
1695                           default fallback cipher for LUKS2 keyslot (if data
1696                           encryption is incompatible) [aes-xts-plain64]
1697   --with-luks2-keyslot-keybits
1698                           default fallback key size for LUKS2 keyslot (if data
1699                           encryption is incompatible) [512]
1700   --with-loopaes-cipher   default cipher for loop-AES mode [aes]
1701   --with-loopaes-keybits  default key length in bits for loop-AES mode [256]
1702   --with-keyfile-size-maxkb
1703                           default maximum keyfile size (in KiB) [8192]
1704   --with-integrity-keyfile-size-maxkb
1705                           default maximum integritysetup keyfile size (in KiB)
1706                           [4]
1707   --with-passphrase-size-max
1708                           default maximum passphrase size (in characters)
1709                           [512]
1710   --with-verity-hash      default hash function for verity mode [sha256]
1711   --with-verity-data-block
1712                           default data block size for verity mode [4096]
1713   --with-verity-hash-block
1714                           default hash block size for verity mode [4096]
1715   --with-verity-salt-size default salt size for verity mode [32]
1716   --with-verity-fec-roots default parity bytes for verity FEC [2]
1717   --with-tmpfilesdir      default override default path to directory with
1718                           systemd temporary files []
1719   --with-luks2-lock-path  default path to directory for LUKSv2 locks
1720                           [/run/cryptsetup]
1721   --with-luks2-lock-dir-perms
1722                           default default luks2 locking directory permissions
1723                           [0700]
1724   --with-default-luks-format=FORMAT
1725                           default LUKS format version (LUKS1/LUKS2) [LUKS2]
1726
1727 Some influential environment variables:
1728   CC          C compiler command
1729   CFLAGS      C compiler flags
1730   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1731               nonstandard directory <lib dir>
1732   LIBS        libraries to pass to the linker, e.g. -l<library>
1733   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1734               you have headers in a nonstandard directory <include dir>
1735   CPP         C preprocessor
1736   LT_SYS_LIBRARY_PATH
1737               User-defined run-time library search path.
1738   PKG_CONFIG  path to pkg-config utility
1739   PKG_CONFIG_PATH
1740               directories to add to pkg-config's search path
1741   PKG_CONFIG_LIBDIR
1742               path overriding pkg-config's built-in search path
1743   PWQUALITY_CFLAGS
1744               C compiler flags for PWQUALITY, overriding pkg-config
1745   PWQUALITY_LIBS
1746               linker flags for PWQUALITY, overriding pkg-config
1747   DEVMAPPER_CFLAGS
1748               C compiler flags for DEVMAPPER, overriding pkg-config
1749   DEVMAPPER_LIBS
1750               linker flags for DEVMAPPER, overriding pkg-config
1751   JSON_C_CFLAGS
1752               C compiler flags for JSON_C, overriding pkg-config
1753   JSON_C_LIBS linker flags for JSON_C, overriding pkg-config
1754   OPENSSL_CFLAGS
1755               C compiler flags for OPENSSL, overriding pkg-config
1756   OPENSSL_LIBS
1757               linker flags for OPENSSL, overriding pkg-config
1758   OPENSSL_STATIC_CFLAGS
1759               C compiler flags for OPENSSL_STATIC, overriding pkg-config
1760   OPENSSL_STATIC_LIBS
1761               linker flags for OPENSSL_STATIC, overriding pkg-config
1762   NSS_CFLAGS  C compiler flags for NSS, overriding pkg-config
1763   NSS_LIBS    linker flags for NSS, overriding pkg-config
1764   LIBARGON2_CFLAGS
1765               C compiler flags for LIBARGON2, overriding pkg-config
1766   LIBARGON2_LIBS
1767               linker flags for LIBARGON2, overriding pkg-config
1768   BLKID_CFLAGS
1769               C compiler flags for BLKID, overriding pkg-config
1770   BLKID_LIBS  linker flags for BLKID, overriding pkg-config
1771   DEVMAPPER_STATIC_CFLAGS
1772               C compiler flags for DEVMAPPER_STATIC, overriding pkg-config
1773   DEVMAPPER_STATIC_LIBS
1774               linker flags for DEVMAPPER_STATIC, overriding pkg-config
1775   systemd_tmpfilesdir
1776               value of tmpfilesdir for systemd, overriding pkg-config
1777
1778 Use these variables to override the choices made by `configure' or to help
1779 it to find libraries and programs with nonstandard names/locations.
1780
1781 Report bugs to the package provider.
1782 _ACEOF
1783 ac_status=$?
1784 fi
1785
1786 if test "$ac_init_help" = "recursive"; then
1787   # If there are subdirs, report their specific --help.
1788   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1789     test -d "$ac_dir" ||
1790       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1791       continue
1792     ac_builddir=.
1793
1794 case "$ac_dir" in
1795 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1796 *)
1797   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1798   # A ".." for each directory in $ac_dir_suffix.
1799   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1800   case $ac_top_builddir_sub in
1801   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1802   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1803   esac ;;
1804 esac
1805 ac_abs_top_builddir=$ac_pwd
1806 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1807 # for backward compatibility:
1808 ac_top_builddir=$ac_top_build_prefix
1809
1810 case $srcdir in
1811   .)  # We are building in place.
1812     ac_srcdir=.
1813     ac_top_srcdir=$ac_top_builddir_sub
1814     ac_abs_top_srcdir=$ac_pwd ;;
1815   [\\/]* | ?:[\\/]* )  # Absolute name.
1816     ac_srcdir=$srcdir$ac_dir_suffix;
1817     ac_top_srcdir=$srcdir
1818     ac_abs_top_srcdir=$srcdir ;;
1819   *) # Relative name.
1820     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1821     ac_top_srcdir=$ac_top_build_prefix$srcdir
1822     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1823 esac
1824 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1825
1826     cd "$ac_dir" || { ac_status=$?; continue; }
1827     # Check for configure.gnu first; this name is used for a wrapper for
1828     # Metaconfig's "Configure" on case-insensitive file systems.
1829     if test -f "$ac_srcdir/configure.gnu"; then
1830       echo &&
1831       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1832     elif test -f "$ac_srcdir/configure"; then
1833       echo &&
1834       $SHELL "$ac_srcdir/configure" --help=recursive
1835     else
1836       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1837     fi || ac_status=$?
1838     cd "$ac_pwd" || { ac_status=$?; break; }
1839   done
1840 fi
1841
1842 test -n "$ac_init_help" && exit $ac_status
1843 if $ac_init_version; then
1844   cat <<\_ACEOF
1845 cryptsetup configure 2.3.7
1846 generated by GNU Autoconf 2.71
1847
1848 Copyright (C) 2021 Free Software Foundation, Inc.
1849 This configure script is free software; the Free Software Foundation
1850 gives unlimited permission to copy, distribute and modify it.
1851 _ACEOF
1852   exit
1853 fi
1854
1855 ## ------------------------ ##
1856 ## Autoconf initialization. ##
1857 ## ------------------------ ##
1858
1859 # ac_fn_c_try_compile LINENO
1860 # --------------------------
1861 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1862 ac_fn_c_try_compile ()
1863 {
1864   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865   rm -f conftest.$ac_objext conftest.beam
1866   if { { ac_try="$ac_compile"
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 printf "%s\n" "$ac_try_echo"; } >&5
1873   (eval "$ac_compile") 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   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881   test $ac_status = 0; } && {
1882          test -z "$ac_c_werror_flag" ||
1883          test ! -s conftest.err
1884        } && test -s conftest.$ac_objext
1885 then :
1886   ac_retval=0
1887 else $as_nop
1888   printf "%s\n" "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1890
1891         ac_retval=1
1892 fi
1893   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894   as_fn_set_status $ac_retval
1895
1896 } # ac_fn_c_try_compile
1897
1898 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1899 # -------------------------------------------------------
1900 # Tests whether HEADER exists and can be compiled using the include files in
1901 # INCLUDES, setting the cache variable VAR accordingly.
1902 ac_fn_c_check_header_compile ()
1903 {
1904   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 printf %s "checking for $2... " >&6; }
1907 if eval test \${$3+y}
1908 then :
1909   printf %s "(cached) " >&6
1910 else $as_nop
1911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h.  */
1913 $4
1914 #include <$2>
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"
1917 then :
1918   eval "$3=yes"
1919 else $as_nop
1920   eval "$3=no"
1921 fi
1922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1923 fi
1924 eval ac_res=\$$3
1925                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926 printf "%s\n" "$ac_res" >&6; }
1927   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928
1929 } # ac_fn_c_check_header_compile
1930
1931 # ac_fn_c_try_cpp LINENO
1932 # ----------------------
1933 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1934 ac_fn_c_try_cpp ()
1935 {
1936   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937   if { { ac_try="$ac_cpp conftest.$ac_ext"
1938 case "(($ac_try" in
1939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940   *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 printf "%s\n" "$ac_try_echo"; } >&5
1944   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1945   ac_status=$?
1946   if test -s conftest.err; then
1947     grep -v '^ *+' conftest.err >conftest.er1
1948     cat conftest.er1 >&5
1949     mv -f conftest.er1 conftest.err
1950   fi
1951   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952   test $ac_status = 0; } > conftest.i && {
1953          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1954          test ! -s conftest.err
1955        }
1956 then :
1957   ac_retval=0
1958 else $as_nop
1959   printf "%s\n" "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1961
1962     ac_retval=1
1963 fi
1964   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965   as_fn_set_status $ac_retval
1966
1967 } # ac_fn_c_try_cpp
1968
1969 # ac_fn_c_try_link LINENO
1970 # -----------------------
1971 # Try to link conftest.$ac_ext, and return whether this succeeded.
1972 ac_fn_c_try_link ()
1973 {
1974   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1976   if { { ac_try="$ac_link"
1977 case "(($ac_try" in
1978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1979   *) ac_try_echo=$ac_try;;
1980 esac
1981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1982 printf "%s\n" "$ac_try_echo"; } >&5
1983   (eval "$ac_link") 2>conftest.err
1984   ac_status=$?
1985   if test -s conftest.err; then
1986     grep -v '^ *+' conftest.err >conftest.er1
1987     cat conftest.er1 >&5
1988     mv -f conftest.er1 conftest.err
1989   fi
1990   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991   test $ac_status = 0; } && {
1992          test -z "$ac_c_werror_flag" ||
1993          test ! -s conftest.err
1994        } && test -s conftest$ac_exeext && {
1995          test "$cross_compiling" = yes ||
1996          test -x conftest$ac_exeext
1997        }
1998 then :
1999   ac_retval=0
2000 else $as_nop
2001   printf "%s\n" "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2003
2004         ac_retval=1
2005 fi
2006   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2007   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2008   # interfere with the next link command; also delete a directory that is
2009   # left behind by Apple's compiler.  We do this before executing the actions.
2010   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012   as_fn_set_status $ac_retval
2013
2014 } # ac_fn_c_try_link
2015
2016 # ac_fn_c_check_func LINENO FUNC VAR
2017 # ----------------------------------
2018 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2019 ac_fn_c_check_func ()
2020 {
2021   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 printf %s "checking for $2... " >&6; }
2024 if eval test \${$3+y}
2025 then :
2026   printf %s "(cached) " >&6
2027 else $as_nop
2028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h.  */
2030 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2032 #define $2 innocuous_$2
2033
2034 /* System header to define __stub macros and hopefully few prototypes,
2035    which can conflict with char $2 (); below.  */
2036
2037 #include <limits.h>
2038 #undef $2
2039
2040 /* Override any GCC internal prototype to avoid an error.
2041    Use char because int might match the return type of a GCC
2042    builtin and then its argument prototype would still apply.  */
2043 #ifdef __cplusplus
2044 extern "C"
2045 #endif
2046 char $2 ();
2047 /* The GNU C library defines this for functions which it implements
2048     to always fail with ENOSYS.  Some functions are actually named
2049     something starting with __ and the normal name is an alias.  */
2050 #if defined __stub_$2 || defined __stub___$2
2051 choke me
2052 #endif
2053
2054 int
2055 main (void)
2056 {
2057 return $2 ();
2058   ;
2059   return 0;
2060 }
2061 _ACEOF
2062 if ac_fn_c_try_link "$LINENO"
2063 then :
2064   eval "$3=yes"
2065 else $as_nop
2066   eval "$3=no"
2067 fi
2068 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2069     conftest$ac_exeext conftest.$ac_ext
2070 fi
2071 eval ac_res=\$$3
2072                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 printf "%s\n" "$ac_res" >&6; }
2074   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075
2076 } # ac_fn_c_check_func
2077
2078 # ac_fn_c_try_run LINENO
2079 # ----------------------
2080 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2081 # executables *can* be run.
2082 ac_fn_c_try_run ()
2083 {
2084   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085   if { { ac_try="$ac_link"
2086 case "(($ac_try" in
2087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088   *) ac_try_echo=$ac_try;;
2089 esac
2090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2091 printf "%s\n" "$ac_try_echo"; } >&5
2092   (eval "$ac_link") 2>&5
2093   ac_status=$?
2094   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2095   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2096   { { case "(($ac_try" in
2097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098   *) ac_try_echo=$ac_try;;
2099 esac
2100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2101 printf "%s\n" "$ac_try_echo"; } >&5
2102   (eval "$ac_try") 2>&5
2103   ac_status=$?
2104   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2105   test $ac_status = 0; }; }
2106 then :
2107   ac_retval=0
2108 else $as_nop
2109   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2110        printf "%s\n" "$as_me: failed program was:" >&5
2111 sed 's/^/| /' conftest.$ac_ext >&5
2112
2113        ac_retval=$ac_status
2114 fi
2115   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2116   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117   as_fn_set_status $ac_retval
2118
2119 } # ac_fn_c_try_run
2120
2121 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2122 # ------------------------------------------------------------------
2123 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2124 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2125 ac_fn_check_decl ()
2126 {
2127   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128   as_decl_name=`echo $2|sed 's/ *(.*//'`
2129   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2130 printf %s "checking whether $as_decl_name is declared... " >&6; }
2131 if eval test \${$3+y}
2132 then :
2133   printf %s "(cached) " >&6
2134 else $as_nop
2135   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2136   eval ac_save_FLAGS=\$$6
2137   as_fn_append $6 " $5"
2138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h.  */
2140 $4
2141 int
2142 main (void)
2143 {
2144 #ifndef $as_decl_name
2145 #ifdef __cplusplus
2146   (void) $as_decl_use;
2147 #else
2148   (void) $as_decl_name;
2149 #endif
2150 #endif
2151
2152   ;
2153   return 0;
2154 }
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"
2157 then :
2158   eval "$3=yes"
2159 else $as_nop
2160   eval "$3=no"
2161 fi
2162 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2163   eval $6=\$ac_save_FLAGS
2164
2165 fi
2166 eval ac_res=\$$3
2167                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 printf "%s\n" "$ac_res" >&6; }
2169   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2170
2171 } # ac_fn_check_decl
2172
2173 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2174 # -------------------------------------------
2175 # Tests whether TYPE exists after having included INCLUDES, setting cache
2176 # variable VAR accordingly.
2177 ac_fn_c_check_type ()
2178 {
2179   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2181 printf %s "checking for $2... " >&6; }
2182 if eval test \${$3+y}
2183 then :
2184   printf %s "(cached) " >&6
2185 else $as_nop
2186   eval "$3=no"
2187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h.  */
2189 $4
2190 int
2191 main (void)
2192 {
2193 if (sizeof ($2))
2194          return 0;
2195   ;
2196   return 0;
2197 }
2198 _ACEOF
2199 if ac_fn_c_try_compile "$LINENO"
2200 then :
2201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h.  */
2203 $4
2204 int
2205 main (void)
2206 {
2207 if (sizeof (($2)))
2208             return 0;
2209   ;
2210   return 0;
2211 }
2212 _ACEOF
2213 if ac_fn_c_try_compile "$LINENO"
2214 then :
2215
2216 else $as_nop
2217   eval "$3=yes"
2218 fi
2219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2220 fi
2221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2222 fi
2223 eval ac_res=\$$3
2224                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225 printf "%s\n" "$ac_res" >&6; }
2226   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2227
2228 } # ac_fn_c_check_type
2229 ac_configure_args_raw=
2230 for ac_arg
2231 do
2232   case $ac_arg in
2233   *\'*)
2234     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2235   esac
2236   as_fn_append ac_configure_args_raw " '$ac_arg'"
2237 done
2238
2239 case $ac_configure_args_raw in
2240   *$as_nl*)
2241     ac_safe_unquote= ;;
2242   *)
2243     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
2244     ac_unsafe_a="$ac_unsafe_z#~"
2245     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2246     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2247 esac
2248
2249 cat >config.log <<_ACEOF
2250 This file contains any messages produced by compilers while
2251 running configure, to aid debugging if configure makes a mistake.
2252
2253 It was created by cryptsetup $as_me 2.3.7, which was
2254 generated by GNU Autoconf 2.71.  Invocation command line was
2255
2256   $ $0$ac_configure_args_raw
2257
2258 _ACEOF
2259 exec 5>>config.log
2260 {
2261 cat <<_ASUNAME
2262 ## --------- ##
2263 ## Platform. ##
2264 ## --------- ##
2265
2266 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2267 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2268 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2269 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2270 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2271
2272 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2273 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2274
2275 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2276 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2277 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2278 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2279 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2280 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2281 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2282
2283 _ASUNAME
2284
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2287 do
2288   IFS=$as_save_IFS
2289   case $as_dir in #(((
2290     '') as_dir=./ ;;
2291     */) ;;
2292     *) as_dir=$as_dir/ ;;
2293   esac
2294     printf "%s\n" "PATH: $as_dir"
2295   done
2296 IFS=$as_save_IFS
2297
2298 } >&5
2299
2300 cat >&5 <<_ACEOF
2301
2302
2303 ## ----------- ##
2304 ## Core tests. ##
2305 ## ----------- ##
2306
2307 _ACEOF
2308
2309
2310 # Keep a trace of the command line.
2311 # Strip out --no-create and --no-recursion so they do not pile up.
2312 # Strip out --silent because we don't want to record it for future runs.
2313 # Also quote any args containing shell meta-characters.
2314 # Make two passes to allow for proper duplicate-argument suppression.
2315 ac_configure_args=
2316 ac_configure_args0=
2317 ac_configure_args1=
2318 ac_must_keep_next=false
2319 for ac_pass in 1 2
2320 do
2321   for ac_arg
2322   do
2323     case $ac_arg in
2324     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2325     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2326     | -silent | --silent | --silen | --sile | --sil)
2327       continue ;;
2328     *\'*)
2329       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2330     esac
2331     case $ac_pass in
2332     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2333     2)
2334       as_fn_append ac_configure_args1 " '$ac_arg'"
2335       if test $ac_must_keep_next = true; then
2336         ac_must_keep_next=false # Got value, back to normal.
2337       else
2338         case $ac_arg in
2339           *=* | --config-cache | -C | -disable-* | --disable-* \
2340           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2341           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2342           | -with-* | --with-* | -without-* | --without-* | --x)
2343             case "$ac_configure_args0 " in
2344               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2345             esac
2346             ;;
2347           -* ) ac_must_keep_next=true ;;
2348         esac
2349       fi
2350       as_fn_append ac_configure_args " '$ac_arg'"
2351       ;;
2352     esac
2353   done
2354 done
2355 { ac_configure_args0=; unset ac_configure_args0;}
2356 { ac_configure_args1=; unset ac_configure_args1;}
2357
2358 # When interrupted or exit'd, cleanup temporary files, and complete
2359 # config.log.  We remove comments because anyway the quotes in there
2360 # would cause problems or look ugly.
2361 # WARNING: Use '\'' to represent an apostrophe within the trap.
2362 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2363 trap 'exit_status=$?
2364   # Sanitize IFS.
2365   IFS=" ""      $as_nl"
2366   # Save into config.log some information that might help in debugging.
2367   {
2368     echo
2369
2370     printf "%s\n" "## ---------------- ##
2371 ## Cache variables. ##
2372 ## ---------------- ##"
2373     echo
2374     # The following way of writing the cache mishandles newlines in values,
2375 (
2376   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2377     eval ac_val=\$$ac_var
2378     case $ac_val in #(
2379     *${as_nl}*)
2380       case $ac_var in #(
2381       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2382 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2383       esac
2384       case $ac_var in #(
2385       _ | IFS | as_nl) ;; #(
2386       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2387       *) { eval $ac_var=; unset $ac_var;} ;;
2388       esac ;;
2389     esac
2390   done
2391   (set) 2>&1 |
2392     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2393     *${as_nl}ac_space=\ *)
2394       sed -n \
2395         "s/'\''/'\''\\\\'\'''\''/g;
2396           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2397       ;; #(
2398     *)
2399       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2400       ;;
2401     esac |
2402     sort
2403 )
2404     echo
2405
2406     printf "%s\n" "## ----------------- ##
2407 ## Output variables. ##
2408 ## ----------------- ##"
2409     echo
2410     for ac_var in $ac_subst_vars
2411     do
2412       eval ac_val=\$$ac_var
2413       case $ac_val in
2414       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2415       esac
2416       printf "%s\n" "$ac_var='\''$ac_val'\''"
2417     done | sort
2418     echo
2419
2420     if test -n "$ac_subst_files"; then
2421       printf "%s\n" "## ------------------- ##
2422 ## File substitutions. ##
2423 ## ------------------- ##"
2424       echo
2425       for ac_var in $ac_subst_files
2426       do
2427         eval ac_val=\$$ac_var
2428         case $ac_val in
2429         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2430         esac
2431         printf "%s\n" "$ac_var='\''$ac_val'\''"
2432       done | sort
2433       echo
2434     fi
2435
2436     if test -s confdefs.h; then
2437       printf "%s\n" "## ----------- ##
2438 ## confdefs.h. ##
2439 ## ----------- ##"
2440       echo
2441       cat confdefs.h
2442       echo
2443     fi
2444     test "$ac_signal" != 0 &&
2445       printf "%s\n" "$as_me: caught signal $ac_signal"
2446     printf "%s\n" "$as_me: exit $exit_status"
2447   } >&5
2448   rm -f core *.core core.conftest.* &&
2449     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2450     exit $exit_status
2451 ' 0
2452 for ac_signal in 1 2 13 15; do
2453   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2454 done
2455 ac_signal=0
2456
2457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2458 rm -f -r conftest* confdefs.h
2459
2460 printf "%s\n" "/* confdefs.h */" > confdefs.h
2461
2462 # Predefined preprocessor variables.
2463
2464 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2465
2466 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2467
2468 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2469
2470 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2471
2472 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2473
2474 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2475
2476
2477 # Let the site file select an alternate cache file if it wants to.
2478 # Prefer an explicitly selected file to automatically selected ones.
2479 if test -n "$CONFIG_SITE"; then
2480   ac_site_files="$CONFIG_SITE"
2481 elif test "x$prefix" != xNONE; then
2482   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2483 else
2484   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2485 fi
2486
2487 for ac_site_file in $ac_site_files
2488 do
2489   case $ac_site_file in #(
2490   */*) :
2491      ;; #(
2492   *) :
2493     ac_site_file=./$ac_site_file ;;
2494 esac
2495   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2496     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2497 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2498     sed 's/^/| /' "$ac_site_file" >&5
2499     . "$ac_site_file" \
2500       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2501 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2502 as_fn_error $? "failed to load site script $ac_site_file
2503 See \`config.log' for more details" "$LINENO" 5; }
2504   fi
2505 done
2506
2507 if test -r "$cache_file"; then
2508   # Some versions of bash will fail to source /dev/null (special files
2509   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2510   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2511     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2512 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2513     case $cache_file in
2514       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2515       *)                      . "./$cache_file";;
2516     esac
2517   fi
2518 else
2519   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2520 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2521   >$cache_file
2522 fi
2523
2524 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2525 # Test code for whether the C compiler supports C89 (global declarations)
2526 ac_c_conftest_c89_globals='
2527 /* Does the compiler advertise C89 conformance?
2528    Do not test the value of __STDC__, because some compilers set it to 0
2529    while being otherwise adequately conformant. */
2530 #if !defined __STDC__
2531 # error "Compiler does not advertise C89 conformance"
2532 #endif
2533
2534 #include <stddef.h>
2535 #include <stdarg.h>
2536 struct stat;
2537 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2538 struct buf { int x; };
2539 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2540 static char *e (p, i)
2541      char **p;
2542      int i;
2543 {
2544   return p[i];
2545 }
2546 static char *f (char * (*g) (char **, int), char **p, ...)
2547 {
2548   char *s;
2549   va_list v;
2550   va_start (v,p);
2551   s = g (p, va_arg (v,int));
2552   va_end (v);
2553   return s;
2554 }
2555
2556 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2557    function prototypes and stuff, but not \xHH hex character constants.
2558    These do not provoke an error unfortunately, instead are silently treated
2559    as an "x".  The following induces an error, until -std is added to get
2560    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2561    array size at least.  It is necessary to write \x00 == 0 to get something
2562    that is true only with -std.  */
2563 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2564
2565 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2566    inside strings and character constants.  */
2567 #define FOO(x) '\''x'\''
2568 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2569
2570 int test (int i, double x);
2571 struct s1 {int (*f) (int a);};
2572 struct s2 {int (*f) (double a);};
2573 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2574                int, int);'
2575
2576 # Test code for whether the C compiler supports C89 (body of main).
2577 ac_c_conftest_c89_main='
2578 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2579 '
2580
2581 # Test code for whether the C compiler supports C99 (global declarations)
2582 ac_c_conftest_c99_globals='
2583 // Does the compiler advertise C99 conformance?
2584 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2585 # error "Compiler does not advertise C99 conformance"
2586 #endif
2587
2588 #include <stdbool.h>
2589 extern int puts (const char *);
2590 extern int printf (const char *, ...);
2591 extern int dprintf (int, const char *, ...);
2592 extern void *malloc (size_t);
2593
2594 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
2595 // dprintf is used instead of fprintf to avoid needing to declare
2596 // FILE and stderr.
2597 #define debug(...) dprintf (2, __VA_ARGS__)
2598 #define showlist(...) puts (#__VA_ARGS__)
2599 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2600 static void
2601 test_varargs_macros (void)
2602 {
2603   int x = 1234;
2604   int y = 5678;
2605   debug ("Flag");
2606   debug ("X = %d\n", x);
2607   showlist (The first, second, and third items.);
2608   report (x>y, "x is %d but y is %d", x, y);
2609 }
2610
2611 // Check long long types.
2612 #define BIG64 18446744073709551615ull
2613 #define BIG32 4294967295ul
2614 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2615 #if !BIG_OK
2616   #error "your preprocessor is broken"
2617 #endif
2618 #if BIG_OK
2619 #else
2620   #error "your preprocessor is broken"
2621 #endif
2622 static long long int bignum = -9223372036854775807LL;
2623 static unsigned long long int ubignum = BIG64;
2624
2625 struct incomplete_array
2626 {
2627   int datasize;
2628   double data[];
2629 };
2630
2631 struct named_init {
2632   int number;
2633   const wchar_t *name;
2634   double average;
2635 };
2636
2637 typedef const char *ccp;
2638
2639 static inline int
2640 test_restrict (ccp restrict text)
2641 {
2642   // See if C++-style comments work.
2643   // Iterate through items via the restricted pointer.
2644   // Also check for declarations in for loops.
2645   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2646     continue;
2647   return 0;
2648 }
2649
2650 // Check varargs and va_copy.
2651 static bool
2652 test_varargs (const char *format, ...)
2653 {
2654   va_list args;
2655   va_start (args, format);
2656   va_list args_copy;
2657   va_copy (args_copy, args);
2658
2659   const char *str = "";
2660   int number = 0;
2661   float fnumber = 0;
2662
2663   while (*format)
2664     {
2665       switch (*format++)
2666         {
2667         case '\''s'\'': // string
2668           str = va_arg (args_copy, const char *);
2669           break;
2670         case '\''d'\'': // int
2671           number = va_arg (args_copy, int);
2672           break;
2673         case '\''f'\'': // float
2674           fnumber = va_arg (args_copy, double);
2675           break;
2676         default:
2677           break;
2678         }
2679     }
2680   va_end (args_copy);
2681   va_end (args);
2682
2683   return *str && number && fnumber;
2684 }
2685 '
2686
2687 # Test code for whether the C compiler supports C99 (body of main).
2688 ac_c_conftest_c99_main='
2689   // Check bool.
2690   _Bool success = false;
2691   success |= (argc != 0);
2692
2693   // Check restrict.
2694   if (test_restrict ("String literal") == 0)
2695     success = true;
2696   char *restrict newvar = "Another string";
2697
2698   // Check varargs.
2699   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2700   test_varargs_macros ();
2701
2702   // Check flexible array members.
2703   struct incomplete_array *ia =
2704     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2705   ia->datasize = 10;
2706   for (int i = 0; i < ia->datasize; ++i)
2707     ia->data[i] = i * 1.234;
2708
2709   // Check named initializers.
2710   struct named_init ni = {
2711     .number = 34,
2712     .name = L"Test wide string",
2713     .average = 543.34343,
2714   };
2715
2716   ni.number = 58;
2717
2718   int dynamic_array[ni.number];
2719   dynamic_array[0] = argv[0][0];
2720   dynamic_array[ni.number - 1] = 543;
2721
2722   // work around unused variable warnings
2723   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2724          || dynamic_array[ni.number - 1] != 543);
2725 '
2726
2727 # Test code for whether the C compiler supports C11 (global declarations)
2728 ac_c_conftest_c11_globals='
2729 // Does the compiler advertise C11 conformance?
2730 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2731 # error "Compiler does not advertise C11 conformance"
2732 #endif
2733
2734 // Check _Alignas.
2735 char _Alignas (double) aligned_as_double;
2736 char _Alignas (0) no_special_alignment;
2737 extern char aligned_as_int;
2738 char _Alignas (0) _Alignas (int) aligned_as_int;
2739
2740 // Check _Alignof.
2741 enum
2742 {
2743   int_alignment = _Alignof (int),
2744   int_array_alignment = _Alignof (int[100]),
2745   char_alignment = _Alignof (char)
2746 };
2747 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2748
2749 // Check _Noreturn.
2750 int _Noreturn does_not_return (void) { for (;;) continue; }
2751
2752 // Check _Static_assert.
2753 struct test_static_assert
2754 {
2755   int x;
2756   _Static_assert (sizeof (int) <= sizeof (long int),
2757                   "_Static_assert does not work in struct");
2758   long int y;
2759 };
2760
2761 // Check UTF-8 literals.
2762 #define u8 syntax error!
2763 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2764
2765 // Check duplicate typedefs.
2766 typedef long *long_ptr;
2767 typedef long int *long_ptr;
2768 typedef long_ptr long_ptr;
2769
2770 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2771 struct anonymous
2772 {
2773   union {
2774     struct { int i; int j; };
2775     struct { int k; long int l; } w;
2776   };
2777   int m;
2778 } v1;
2779 '
2780
2781 # Test code for whether the C compiler supports C11 (body of main).
2782 ac_c_conftest_c11_main='
2783   _Static_assert ((offsetof (struct anonymous, i)
2784                    == offsetof (struct anonymous, w.k)),
2785                   "Anonymous union alignment botch");
2786   v1.i = 2;
2787   v1.w.k = 5;
2788   ok |= v1.i != 5;
2789 '
2790
2791 # Test code for whether the C compiler supports C11 (complete).
2792 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2793 ${ac_c_conftest_c99_globals}
2794 ${ac_c_conftest_c11_globals}
2795
2796 int
2797 main (int argc, char **argv)
2798 {
2799   int ok = 0;
2800   ${ac_c_conftest_c89_main}
2801   ${ac_c_conftest_c99_main}
2802   ${ac_c_conftest_c11_main}
2803   return ok;
2804 }
2805 "
2806
2807 # Test code for whether the C compiler supports C99 (complete).
2808 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2809 ${ac_c_conftest_c99_globals}
2810
2811 int
2812 main (int argc, char **argv)
2813 {
2814   int ok = 0;
2815   ${ac_c_conftest_c89_main}
2816   ${ac_c_conftest_c99_main}
2817   return ok;
2818 }
2819 "
2820
2821 # Test code for whether the C compiler supports C89 (complete).
2822 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2823
2824 int
2825 main (int argc, char **argv)
2826 {
2827   int ok = 0;
2828   ${ac_c_conftest_c89_main}
2829   return ok;
2830 }
2831 "
2832
2833 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2834 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2835 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2836 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2837 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2838 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2839 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2840 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2841 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2842 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2843 gt_needs="$gt_needs need-ngettext"
2844
2845 # Auxiliary files required by this configure script.
2846 ac_aux_files="config.rpath ltmain.sh compile config.guess config.sub missing install-sh"
2847
2848 # Locations in which to look for auxiliary files.
2849 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2850
2851 # Search for a directory containing all of the required auxiliary files,
2852 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2853 # If we don't find one directory that contains all the files we need,
2854 # we report the set of missing files from the *first* directory in
2855 # $ac_aux_dir_candidates and give up.
2856 ac_missing_aux_files=""
2857 ac_first_candidate=:
2858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 as_found=false
2861 for as_dir in $ac_aux_dir_candidates
2862 do
2863   IFS=$as_save_IFS
2864   case $as_dir in #(((
2865     '') as_dir=./ ;;
2866     */) ;;
2867     *) as_dir=$as_dir/ ;;
2868   esac
2869   as_found=:
2870
2871   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2872   ac_aux_dir_found=yes
2873   ac_install_sh=
2874   for ac_aux in $ac_aux_files
2875   do
2876     # As a special case, if "install-sh" is required, that requirement
2877     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2878     # and $ac_install_sh is set appropriately for whichever one is found.
2879     if test x"$ac_aux" = x"install-sh"
2880     then
2881       if test -f "${as_dir}install-sh"; then
2882         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2883         ac_install_sh="${as_dir}install-sh -c"
2884       elif test -f "${as_dir}install.sh"; then
2885         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2886         ac_install_sh="${as_dir}install.sh -c"
2887       elif test -f "${as_dir}shtool"; then
2888         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2889         ac_install_sh="${as_dir}shtool install -c"
2890       else
2891         ac_aux_dir_found=no
2892         if $ac_first_candidate; then
2893           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2894         else
2895           break
2896         fi
2897       fi
2898     else
2899       if test -f "${as_dir}${ac_aux}"; then
2900         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2901       else
2902         ac_aux_dir_found=no
2903         if $ac_first_candidate; then
2904           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2905         else
2906           break
2907         fi
2908       fi
2909     fi
2910   done
2911   if test "$ac_aux_dir_found" = yes; then
2912     ac_aux_dir="$as_dir"
2913     break
2914   fi
2915   ac_first_candidate=false
2916
2917   as_found=false
2918 done
2919 IFS=$as_save_IFS
2920 if $as_found
2921 then :
2922
2923 else $as_nop
2924   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2925 fi
2926
2927
2928 # These three variables are undocumented and unsupported,
2929 # and are intended to be withdrawn in a future Autoconf release.
2930 # They can cause serious problems if a builder's source tree is in a directory
2931 # whose full name contains unusual characters.
2932 if test -f "${ac_aux_dir}config.guess"; then
2933   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2934 fi
2935 if test -f "${ac_aux_dir}config.sub"; then
2936   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2937 fi
2938 if test -f "$ac_aux_dir/configure"; then
2939   ac_configure="$SHELL ${ac_aux_dir}configure"
2940 fi
2941
2942 # Check that the precious variables saved in the cache have kept the same
2943 # value.
2944 ac_cache_corrupted=false
2945 for ac_var in $ac_precious_vars; do
2946   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2947   eval ac_new_set=\$ac_env_${ac_var}_set
2948   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2949   eval ac_new_val=\$ac_env_${ac_var}_value
2950   case $ac_old_set,$ac_new_set in
2951     set,)
2952       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2953 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2954       ac_cache_corrupted=: ;;
2955     ,set)
2956       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2957 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2958       ac_cache_corrupted=: ;;
2959     ,);;
2960     *)
2961       if test "x$ac_old_val" != "x$ac_new_val"; then
2962         # differences in whitespace do not lead to failure.
2963         ac_old_val_w=`echo x $ac_old_val`
2964         ac_new_val_w=`echo x $ac_new_val`
2965         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2966           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2967 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2968           ac_cache_corrupted=:
2969         else
2970           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2971 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2972           eval $ac_var=\$ac_old_val
2973         fi
2974         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2975 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2976         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2977 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2978       fi;;
2979   esac
2980   # Pass precious variables to config.status.
2981   if test "$ac_new_set" = set; then
2982     case $ac_new_val in
2983     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2984     *) ac_arg=$ac_var=$ac_new_val ;;
2985     esac
2986     case " $ac_configure_args " in
2987       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2988       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2989     esac
2990   fi
2991 done
2992 if $ac_cache_corrupted; then
2993   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2994 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2995   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2996 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2997   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2998             and start over" "$LINENO" 5
2999 fi
3000 ## -------------------- ##
3001 ## Main body of script. ##
3002 ## -------------------- ##
3003
3004 ac_ext=c
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009
3010
3011
3012 LIBCRYPTSETUP_VERSION=$(echo $PACKAGE_VERSION | cut -f1 -d-)
3013 LIBCRYPTSETUP_VERSION_INFO=18:0:6
3014
3015 # Check whether --enable-silent-rules was given.
3016 if test ${enable_silent_rules+y}
3017 then :
3018   enableval=$enable_silent_rules;
3019 fi
3020
3021 case $enable_silent_rules in # (((
3022   yes) AM_DEFAULT_VERBOSITY=0;;
3023    no) AM_DEFAULT_VERBOSITY=1;;
3024     *) AM_DEFAULT_VERBOSITY=0;;
3025 esac
3026 am_make=${MAKE-make}
3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3028 printf %s "checking whether $am_make supports nested variables... " >&6; }
3029 if test ${am_cv_make_support_nested_variables+y}
3030 then :
3031   printf %s "(cached) " >&6
3032 else $as_nop
3033   if printf "%s\n" 'TRUE=$(BAR$(V))
3034 BAR0=false
3035 BAR1=true
3036 V=1
3037 am__doit:
3038         @$(TRUE)
3039 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3040   am_cv_make_support_nested_variables=yes
3041 else
3042   am_cv_make_support_nested_variables=no
3043 fi
3044 fi
3045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3046 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3047 if test $am_cv_make_support_nested_variables = yes; then
3048     AM_V='$(V)'
3049   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3050 else
3051   AM_V=$AM_DEFAULT_VERBOSITY
3052   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3053 fi
3054 AM_BACKSLASH='\'
3055
3056
3057
3058
3059 ac_config_headers="$ac_config_headers config.h:config.h.in"
3060
3061
3062 # We do not want to run test in parallel. Really.
3063 # http://lists.gnu.org/archive/html/automake/2013-01/msg00060.html
3064
3065 # For old automake use this
3066 #AM_INIT_AUTOMAKE(dist-xz subdir-objects)
3067 am__api_version='1.16'
3068
3069
3070
3071   # Find a good install program.  We prefer a C program (faster),
3072 # so one script is as good as another.  But avoid the broken or
3073 # incompatible versions:
3074 # SysV /etc/install, /usr/sbin/install
3075 # SunOS /usr/etc/install
3076 # IRIX /sbin/install
3077 # AIX /bin/install
3078 # AmigaOS /C/install, which installs bootblocks on floppy discs
3079 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3080 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3081 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3082 # OS/2's system install, which has a completely different semantic
3083 # ./install, which can be erroneously created by make from ./install.sh.
3084 # Reject install programs that cannot install multiple files.
3085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3086 printf %s "checking for a BSD-compatible install... " >&6; }
3087 if test -z "$INSTALL"; then
3088 if test ${ac_cv_path_install+y}
3089 then :
3090   printf %s "(cached) " >&6
3091 else $as_nop
3092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3094 do
3095   IFS=$as_save_IFS
3096   case $as_dir in #(((
3097     '') as_dir=./ ;;
3098     */) ;;
3099     *) as_dir=$as_dir/ ;;
3100   esac
3101     # Account for fact that we put trailing slashes in our PATH walk.
3102 case $as_dir in #((
3103   ./ | /[cC]/* | \
3104   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3105   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3106   /usr/ucb/* ) ;;
3107   *)
3108     # OSF1 and SCO ODT 3.0 have their own names for install.
3109     # Don't use installbsd from OSF since it installs stuff as root
3110     # by default.
3111     for ac_prog in ginstall scoinst install; do
3112       for ac_exec_ext in '' $ac_executable_extensions; do
3113         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3114           if test $ac_prog = install &&
3115             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3116             # AIX install.  It has an incompatible calling convention.
3117             :
3118           elif test $ac_prog = install &&
3119             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3120             # program-specific install script used by HP pwplus--don't use.
3121             :
3122           else
3123             rm -rf conftest.one conftest.two conftest.dir
3124             echo one > conftest.one
3125             echo two > conftest.two
3126             mkdir conftest.dir
3127             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3128               test -s conftest.one && test -s conftest.two &&
3129               test -s conftest.dir/conftest.one &&
3130               test -s conftest.dir/conftest.two
3131             then
3132               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3133               break 3
3134             fi
3135           fi
3136         fi
3137       done
3138     done
3139     ;;
3140 esac
3141
3142   done
3143 IFS=$as_save_IFS
3144
3145 rm -rf conftest.one conftest.two conftest.dir
3146
3147 fi
3148   if test ${ac_cv_path_install+y}; then
3149     INSTALL=$ac_cv_path_install
3150   else
3151     # As a last resort, use the slow shell script.  Don't cache a
3152     # value for INSTALL within a source directory, because that will
3153     # break other packages using the cache if that directory is
3154     # removed, or if the value is a relative name.
3155     INSTALL=$ac_install_sh
3156   fi
3157 fi
3158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3159 printf "%s\n" "$INSTALL" >&6; }
3160
3161 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3162 # It thinks the first close brace ends the variable substitution.
3163 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3164
3165 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3166
3167 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3168
3169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3170 printf %s "checking whether build environment is sane... " >&6; }
3171 # Reject unsafe characters in $srcdir or the absolute working directory
3172 # name.  Accept space and tab only in the latter.
3173 am_lf='
3174 '
3175 case `pwd` in
3176   *[\\\"\#\$\&\'\`$am_lf]*)
3177     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3178 esac
3179 case $srcdir in
3180   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3181     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3182 esac
3183
3184 # Do 'set' in a subshell so we don't clobber the current shell's
3185 # arguments.  Must try -L first in case configure is actually a
3186 # symlink; some systems play weird games with the mod time of symlinks
3187 # (eg FreeBSD returns the mod time of the symlink's containing
3188 # directory).
3189 if (
3190    am_has_slept=no
3191    for am_try in 1 2; do
3192      echo "timestamp, slept: $am_has_slept" > conftest.file
3193      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3194      if test "$*" = "X"; then
3195         # -L didn't work.
3196         set X `ls -t "$srcdir/configure" conftest.file`
3197      fi
3198      if test "$*" != "X $srcdir/configure conftest.file" \
3199         && test "$*" != "X conftest.file $srcdir/configure"; then
3200
3201         # If neither matched, then we have a broken ls.  This can happen
3202         # if, for instance, CONFIG_SHELL is bash and it inherits a
3203         # broken ls alias from the environment.  This has actually
3204         # happened.  Such a system could not be considered "sane".
3205         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3206   alias in your environment" "$LINENO" 5
3207      fi
3208      if test "$2" = conftest.file || test $am_try -eq 2; then
3209        break
3210      fi
3211      # Just in case.
3212      sleep 1
3213      am_has_slept=yes
3214    done
3215    test "$2" = conftest.file
3216    )
3217 then
3218    # Ok.
3219    :
3220 else
3221    as_fn_error $? "newly created file is older than distributed files!
3222 Check your system clock" "$LINENO" 5
3223 fi
3224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3225 printf "%s\n" "yes" >&6; }
3226 # If we didn't sleep, we still need to ensure time stamps of config.status and
3227 # generated files are strictly newer.
3228 am_sleep_pid=
3229 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3230   ( sleep 1 ) &
3231   am_sleep_pid=$!
3232 fi
3233
3234 rm -f conftest.file
3235
3236 test "$program_prefix" != NONE &&
3237   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3238 # Use a double $ so make ignores it.
3239 test "$program_suffix" != NONE &&
3240   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3241 # Double any \ or $.
3242 # By default was `s,x,x', remove it if useless.
3243 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3244 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3245
3246
3247 # Expand $ac_aux_dir to an absolute path.
3248 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3249
3250
3251   if test x"${MISSING+set}" != xset; then
3252   MISSING="\${SHELL} '$am_aux_dir/missing'"
3253 fi
3254 # Use eval to expand $SHELL
3255 if eval "$MISSING --is-lightweight"; then
3256   am_missing_run="$MISSING "
3257 else
3258   am_missing_run=
3259   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3260 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3261 fi
3262
3263 if test x"${install_sh+set}" != xset; then
3264   case $am_aux_dir in
3265   *\ * | *\     *)
3266     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3267   *)
3268     install_sh="\${SHELL} $am_aux_dir/install-sh"
3269   esac
3270 fi
3271
3272 # Installed binaries are usually stripped using 'strip' when the user
3273 # run "make install-strip".  However 'strip' might not be the right
3274 # tool to use in cross-compilation environments, therefore Automake
3275 # will honor the 'STRIP' environment variable to overrule this program.
3276 if test "$cross_compiling" != no; then
3277   if test -n "$ac_tool_prefix"; then
3278   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3279 set dummy ${ac_tool_prefix}strip; ac_word=$2
3280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 printf %s "checking for $ac_word... " >&6; }
3282 if test ${ac_cv_prog_STRIP+y}
3283 then :
3284   printf %s "(cached) " >&6
3285 else $as_nop
3286   if test -n "$STRIP"; then
3287   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3288 else
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH
3291 do
3292   IFS=$as_save_IFS
3293   case $as_dir in #(((
3294     '') as_dir=./ ;;
3295     */) ;;
3296     *) as_dir=$as_dir/ ;;
3297   esac
3298     for ac_exec_ext in '' $ac_executable_extensions; do
3299   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3300     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3301     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3302     break 2
3303   fi
3304 done
3305   done
3306 IFS=$as_save_IFS
3307
3308 fi
3309 fi
3310 STRIP=$ac_cv_prog_STRIP
3311 if test -n "$STRIP"; then
3312   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3313 printf "%s\n" "$STRIP" >&6; }
3314 else
3315   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 printf "%s\n" "no" >&6; }
3317 fi
3318
3319
3320 fi
3321 if test -z "$ac_cv_prog_STRIP"; then
3322   ac_ct_STRIP=$STRIP
3323   # Extract the first word of "strip", so it can be a program name with args.
3324 set dummy strip; ac_word=$2
3325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326 printf %s "checking for $ac_word... " >&6; }
3327 if test ${ac_cv_prog_ac_ct_STRIP+y}
3328 then :
3329   printf %s "(cached) " >&6
3330 else $as_nop
3331   if test -n "$ac_ct_STRIP"; then
3332   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3333 else
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 for as_dir in $PATH
3336 do
3337   IFS=$as_save_IFS
3338   case $as_dir in #(((
3339     '') as_dir=./ ;;
3340     */) ;;
3341     *) as_dir=$as_dir/ ;;
3342   esac
3343     for ac_exec_ext in '' $ac_executable_extensions; do
3344   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3345     ac_cv_prog_ac_ct_STRIP="strip"
3346     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3347     break 2
3348   fi
3349 done
3350   done
3351 IFS=$as_save_IFS
3352
3353 fi
3354 fi
3355 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3356 if test -n "$ac_ct_STRIP"; then
3357   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3358 printf "%s\n" "$ac_ct_STRIP" >&6; }
3359 else
3360   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361 printf "%s\n" "no" >&6; }
3362 fi
3363
3364   if test "x$ac_ct_STRIP" = x; then
3365     STRIP=":"
3366   else
3367     case $cross_compiling:$ac_tool_warned in
3368 yes:)
3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3370 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3371 ac_tool_warned=yes ;;
3372 esac
3373     STRIP=$ac_ct_STRIP
3374   fi
3375 else
3376   STRIP="$ac_cv_prog_STRIP"
3377 fi
3378
3379 fi
3380 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3381
3382
3383   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3384 printf %s "checking for a race-free mkdir -p... " >&6; }
3385 if test -z "$MKDIR_P"; then
3386   if test ${ac_cv_path_mkdir+y}
3387 then :
3388   printf %s "(cached) " >&6
3389 else $as_nop
3390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3392 do
3393   IFS=$as_save_IFS
3394   case $as_dir in #(((
3395     '') as_dir=./ ;;
3396     */) ;;
3397     *) as_dir=$as_dir/ ;;
3398   esac
3399     for ac_prog in mkdir gmkdir; do
3400          for ac_exec_ext in '' $ac_executable_extensions; do
3401            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3402            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3403              'mkdir ('*'coreutils) '* | \
3404              'BusyBox '* | \
3405              'mkdir (fileutils) '4.1*)
3406                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3407                break 3;;
3408            esac
3409          done
3410        done
3411   done
3412 IFS=$as_save_IFS
3413
3414 fi
3415
3416   test -d ./--version && rmdir ./--version
3417   if test ${ac_cv_path_mkdir+y}; then
3418     MKDIR_P="$ac_cv_path_mkdir -p"
3419   else
3420     # As a last resort, use the slow shell script.  Don't cache a
3421     # value for MKDIR_P within a source directory, because that will
3422     # break other packages using the cache if that directory is
3423     # removed, or if the value is a relative name.
3424     MKDIR_P="$ac_install_sh -d"
3425   fi
3426 fi
3427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3428 printf "%s\n" "$MKDIR_P" >&6; }
3429
3430 for ac_prog in gawk mawk nawk awk
3431 do
3432   # Extract the first word of "$ac_prog", so it can be a program name with args.
3433 set dummy $ac_prog; ac_word=$2
3434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 printf %s "checking for $ac_word... " >&6; }
3436 if test ${ac_cv_prog_AWK+y}
3437 then :
3438   printf %s "(cached) " >&6
3439 else $as_nop
3440   if test -n "$AWK"; then
3441   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3442 else
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3445 do
3446   IFS=$as_save_IFS
3447   case $as_dir in #(((
3448     '') as_dir=./ ;;
3449     */) ;;
3450     *) as_dir=$as_dir/ ;;
3451   esac
3452     for ac_exec_ext in '' $ac_executable_extensions; do
3453   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3454     ac_cv_prog_AWK="$ac_prog"
3455     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3456     break 2
3457   fi
3458 done
3459   done
3460 IFS=$as_save_IFS
3461
3462 fi
3463 fi
3464 AWK=$ac_cv_prog_AWK
3465 if test -n "$AWK"; then
3466   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3467 printf "%s\n" "$AWK" >&6; }
3468 else
3469   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 printf "%s\n" "no" >&6; }
3471 fi
3472
3473
3474   test -n "$AWK" && break
3475 done
3476
3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3478 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3479 set x ${MAKE-make}
3480 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3481 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3482 then :
3483   printf %s "(cached) " >&6
3484 else $as_nop
3485   cat >conftest.make <<\_ACEOF
3486 SHELL = /bin/sh
3487 all:
3488         @echo '@@@%%%=$(MAKE)=@@@%%%'
3489 _ACEOF
3490 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3491 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3492   *@@@%%%=?*=@@@%%%*)
3493     eval ac_cv_prog_make_${ac_make}_set=yes;;
3494   *)
3495     eval ac_cv_prog_make_${ac_make}_set=no;;
3496 esac
3497 rm -f conftest.make
3498 fi
3499 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3500   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3501 printf "%s\n" "yes" >&6; }
3502   SET_MAKE=
3503 else
3504   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 printf "%s\n" "no" >&6; }
3506   SET_MAKE="MAKE=${MAKE-make}"
3507 fi
3508
3509 rm -rf .tst 2>/dev/null
3510 mkdir .tst 2>/dev/null
3511 if test -d .tst; then
3512   am__leading_dot=.
3513 else
3514   am__leading_dot=_
3515 fi
3516 rmdir .tst 2>/dev/null
3517
3518 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3519   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3520   # is not polluted with repeated "-I."
3521   am__isrc=' -I$(srcdir)'
3522   # test to see if srcdir already configured
3523   if test -f $srcdir/config.status; then
3524     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3525   fi
3526 fi
3527
3528 # test whether we have cygpath
3529 if test -z "$CYGPATH_W"; then
3530   if (cygpath --version) >/dev/null 2>/dev/null; then
3531     CYGPATH_W='cygpath -w'
3532   else
3533     CYGPATH_W=echo
3534   fi
3535 fi
3536
3537
3538 # Define the identity of the package.
3539  PACKAGE='cryptsetup'
3540  VERSION='2.3.7'
3541
3542
3543 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3544
3545
3546 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3547
3548 # Some tools Automake needs.
3549
3550 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3551
3552
3553 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3554
3555
3556 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3557
3558
3559 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3560
3561
3562 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3563
3564 # For better backward compatibility.  To be removed once Automake 1.9.x
3565 # dies out for good.  For more background, see:
3566 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3567 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3568 mkdir_p='$(MKDIR_P)'
3569
3570 # We need awk for the "check" target (and possibly the TAP driver).  The
3571 # system "awk" is bad on some platforms.
3572 # Always define AMTAR for backward compatibility.  Yes, it's still used
3573 # in the wild :-(  We should find a proper way to deprecate it ...
3574 AMTAR='$${TAR-tar}'
3575
3576
3577 # We'll loop over all known methods to create a tar archive until one works.
3578 _am_tools='gnutar  pax cpio none'
3579
3580 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3581
3582
3583
3584
3585
3586 # Variables for tags utilities; see am/tags.am
3587 if test -z "$CTAGS"; then
3588   CTAGS=ctags
3589 fi
3590
3591 if test -z "$ETAGS"; then
3592   ETAGS=etags
3593 fi
3594
3595 if test -z "$CSCOPE"; then
3596   CSCOPE=cscope
3597 fi
3598
3599
3600
3601 # POSIX will say in a future version that running "rm -f" with no argument
3602 # is OK; and we want to be able to make that assumption in our Makefile
3603 # recipes.  So use an aggressive probe to check that the usage we want is
3604 # actually supported "in the wild" to an acceptable degree.
3605 # See automake bug#10828.
3606 # To make any issue more visible, cause the running configure to be aborted
3607 # by default if the 'rm' program in use doesn't match our expectations; the
3608 # user can still override this though.
3609 if rm -f && rm -fr && rm -rf; then : OK; else
3610   cat >&2 <<'END'
3611 Oops!
3612
3613 Your 'rm' program seems unable to run without file operands specified
3614 on the command line, even when the '-f' option is present.  This is contrary
3615 to the behaviour of most rm programs out there, and not conforming with
3616 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3617
3618 Please tell bug-automake@gnu.org about your system, including the value
3619 of your $PATH and any error possibly output before this message.  This
3620 can help us improve future automake versions.
3621
3622 END
3623   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3624     echo 'Configuration will proceed anyway, since you have set the' >&2
3625     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3626     echo >&2
3627   else
3628     cat >&2 <<'END'
3629 Aborting the configuration process, to ensure you take notice of the issue.
3630
3631 You can download and install GNU coreutils to get an 'rm' implementation
3632 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3633
3634 If you want to complete the configuration process using your problematic
3635 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3636 to "yes", and re-run configure.
3637
3638 END
3639     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3640   fi
3641 fi
3642
3643
3644 if test "x$prefix" = "xNONE"; then
3645         sysconfdir=/etc
3646 fi
3647
3648
3649
3650
3651   # Make sure we can run config.sub.
3652 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3653   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3654
3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3656 printf %s "checking build system type... " >&6; }
3657 if test ${ac_cv_build+y}
3658 then :
3659   printf %s "(cached) " >&6
3660 else $as_nop
3661   ac_build_alias=$build_alias
3662 test "x$ac_build_alias" = x &&
3663   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3664 test "x$ac_build_alias" = x &&
3665   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3666 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3667   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3668
3669 fi
3670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3671 printf "%s\n" "$ac_cv_build" >&6; }
3672 case $ac_cv_build in
3673 *-*-*) ;;
3674 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3675 esac
3676 build=$ac_cv_build
3677 ac_save_IFS=$IFS; IFS='-'
3678 set x $ac_cv_build
3679 shift
3680 build_cpu=$1
3681 build_vendor=$2
3682 shift; shift
3683 # Remember, the first character of IFS is used to create $*,
3684 # except with old shells:
3685 build_os=$*
3686 IFS=$ac_save_IFS
3687 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3688
3689
3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3691 printf %s "checking host system type... " >&6; }
3692 if test ${ac_cv_host+y}
3693 then :
3694   printf %s "(cached) " >&6
3695 else $as_nop
3696   if test "x$host_alias" = x; then
3697   ac_cv_host=$ac_cv_build
3698 else
3699   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3700     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3701 fi
3702
3703 fi
3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3705 printf "%s\n" "$ac_cv_host" >&6; }
3706 case $ac_cv_host in
3707 *-*-*) ;;
3708 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3709 esac
3710 host=$ac_cv_host
3711 ac_save_IFS=$IFS; IFS='-'
3712 set x $ac_cv_host
3713 shift
3714 host_cpu=$1
3715 host_vendor=$2
3716 shift; shift
3717 # Remember, the first character of IFS is used to create $*,
3718 # except with old shells:
3719 host_os=$*
3720 IFS=$ac_save_IFS
3721 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733 DEPDIR="${am__leading_dot}deps"
3734
3735 ac_config_commands="$ac_config_commands depfiles"
3736
3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3738 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3739 cat > confinc.mk << 'END'
3740 am__doit:
3741         @echo this is the am__doit target >confinc.out
3742 .PHONY: am__doit
3743 END
3744 am__include="#"
3745 am__quote=
3746 # BSD make does it like this.
3747 echo '.include "confinc.mk" # ignored' > confmf.BSD
3748 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3749 echo 'include confinc.mk # ignored' > confmf.GNU
3750 _am_result=no
3751 for s in GNU BSD; do
3752   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3753    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3754    ac_status=$?
3755    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756    (exit $ac_status); }
3757   case $?:`cat confinc.out 2>/dev/null` in #(
3758   '0:this is the am__doit target') :
3759     case $s in #(
3760   BSD) :
3761     am__include='.include' am__quote='"' ;; #(
3762   *) :
3763     am__include='include' am__quote='' ;;
3764 esac ;; #(
3765   *) :
3766      ;;
3767 esac
3768   if test "$am__include" != "#"; then
3769     _am_result="yes ($s style)"
3770     break
3771   fi
3772 done
3773 rm -f confinc.* confmf.*
3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3775 printf "%s\n" "${_am_result}" >&6; }
3776
3777 # Check whether --enable-dependency-tracking was given.
3778 if test ${enable_dependency_tracking+y}
3779 then :
3780   enableval=$enable_dependency_tracking;
3781 fi
3782
3783 if test "x$enable_dependency_tracking" != xno; then
3784   am_depcomp="$ac_aux_dir/depcomp"
3785   AMDEPBACKSLASH='\'
3786   am__nodep='_no'
3787 fi
3788  if test "x$enable_dependency_tracking" != xno; then
3789   AMDEP_TRUE=
3790   AMDEP_FALSE='#'
3791 else
3792   AMDEP_TRUE='#'
3793   AMDEP_FALSE=
3794 fi
3795
3796
3797 ac_ext=c
3798 ac_cpp='$CPP $CPPFLAGS'
3799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3802 if test -n "$ac_tool_prefix"; then
3803   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3804 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806 printf %s "checking for $ac_word... " >&6; }
3807 if test ${ac_cv_prog_CC+y}
3808 then :
3809   printf %s "(cached) " >&6
3810 else $as_nop
3811   if test -n "$CC"; then
3812   ac_cv_prog_CC="$CC" # Let the user override the test.
3813 else
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 for as_dir in $PATH
3816 do
3817   IFS=$as_save_IFS
3818   case $as_dir in #(((
3819     '') as_dir=./ ;;
3820     */) ;;
3821     *) as_dir=$as_dir/ ;;
3822   esac
3823     for ac_exec_ext in '' $ac_executable_extensions; do
3824   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3825     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3826     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3827     break 2
3828   fi
3829 done
3830   done
3831 IFS=$as_save_IFS
3832
3833 fi
3834 fi
3835 CC=$ac_cv_prog_CC
3836 if test -n "$CC"; then
3837   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3838 printf "%s\n" "$CC" >&6; }
3839 else
3840   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 printf "%s\n" "no" >&6; }
3842 fi
3843
3844
3845 fi
3846 if test -z "$ac_cv_prog_CC"; then
3847   ac_ct_CC=$CC
3848   # Extract the first word of "gcc", so it can be a program name with args.
3849 set dummy gcc; ac_word=$2
3850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851 printf %s "checking for $ac_word... " >&6; }
3852 if test ${ac_cv_prog_ac_ct_CC+y}
3853 then :
3854   printf %s "(cached) " >&6
3855 else $as_nop
3856   if test -n "$ac_ct_CC"; then
3857   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3858 else
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH
3861 do
3862   IFS=$as_save_IFS
3863   case $as_dir in #(((
3864     '') as_dir=./ ;;
3865     */) ;;
3866     *) as_dir=$as_dir/ ;;
3867   esac
3868     for ac_exec_ext in '' $ac_executable_extensions; do
3869   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3870     ac_cv_prog_ac_ct_CC="gcc"
3871     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3872     break 2
3873   fi
3874 done
3875   done
3876 IFS=$as_save_IFS
3877
3878 fi
3879 fi
3880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3881 if test -n "$ac_ct_CC"; then
3882   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3883 printf "%s\n" "$ac_ct_CC" >&6; }
3884 else
3885   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 printf "%s\n" "no" >&6; }
3887 fi
3888
3889   if test "x$ac_ct_CC" = x; then
3890     CC=""
3891   else
3892     case $cross_compiling:$ac_tool_warned in
3893 yes:)
3894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3895 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3896 ac_tool_warned=yes ;;
3897 esac
3898     CC=$ac_ct_CC
3899   fi
3900 else
3901   CC="$ac_cv_prog_CC"
3902 fi
3903
3904 if test -z "$CC"; then
3905           if test -n "$ac_tool_prefix"; then
3906     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3907 set dummy ${ac_tool_prefix}cc; ac_word=$2
3908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909 printf %s "checking for $ac_word... " >&6; }
3910 if test ${ac_cv_prog_CC+y}
3911 then :
3912   printf %s "(cached) " >&6
3913 else $as_nop
3914   if test -n "$CC"; then
3915   ac_cv_prog_CC="$CC" # Let the user override the test.
3916 else
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH
3919 do
3920   IFS=$as_save_IFS
3921   case $as_dir in #(((
3922     '') as_dir=./ ;;
3923     */) ;;
3924     *) as_dir=$as_dir/ ;;
3925   esac
3926     for ac_exec_ext in '' $ac_executable_extensions; do
3927   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3928     ac_cv_prog_CC="${ac_tool_prefix}cc"
3929     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3930     break 2
3931   fi
3932 done
3933   done
3934 IFS=$as_save_IFS
3935
3936 fi
3937 fi
3938 CC=$ac_cv_prog_CC
3939 if test -n "$CC"; then
3940   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3941 printf "%s\n" "$CC" >&6; }
3942 else
3943   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 printf "%s\n" "no" >&6; }
3945 fi
3946
3947
3948   fi
3949 fi
3950 if test -z "$CC"; then
3951   # Extract the first word of "cc", so it can be a program name with args.
3952 set dummy cc; ac_word=$2
3953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3954 printf %s "checking for $ac_word... " >&6; }
3955 if test ${ac_cv_prog_CC+y}
3956 then :
3957   printf %s "(cached) " >&6
3958 else $as_nop
3959   if test -n "$CC"; then
3960   ac_cv_prog_CC="$CC" # Let the user override the test.
3961 else
3962   ac_prog_rejected=no
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH
3965 do
3966   IFS=$as_save_IFS
3967   case $as_dir in #(((
3968     '') as_dir=./ ;;
3969     */) ;;
3970     *) as_dir=$as_dir/ ;;
3971   esac
3972     for ac_exec_ext in '' $ac_executable_extensions; do
3973   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3974     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3975        ac_prog_rejected=yes
3976        continue
3977      fi
3978     ac_cv_prog_CC="cc"
3979     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3980     break 2
3981   fi
3982 done
3983   done
3984 IFS=$as_save_IFS
3985
3986 if test $ac_prog_rejected = yes; then
3987   # We found a bogon in the path, so make sure we never use it.
3988   set dummy $ac_cv_prog_CC
3989   shift
3990   if test $# != 0; then
3991     # We chose a different compiler from the bogus one.
3992     # However, it has the same basename, so the bogon will be chosen
3993     # first if we set CC to just the basename; use the full file name.
3994     shift
3995     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3996   fi
3997 fi
3998 fi
3999 fi
4000 CC=$ac_cv_prog_CC
4001 if test -n "$CC"; then
4002   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4003 printf "%s\n" "$CC" >&6; }
4004 else
4005   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006 printf "%s\n" "no" >&6; }
4007 fi
4008
4009
4010 fi
4011 if test -z "$CC"; then
4012   if test -n "$ac_tool_prefix"; then
4013   for ac_prog in cl.exe
4014   do
4015     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4016 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018 printf %s "checking for $ac_word... " >&6; }
4019 if test ${ac_cv_prog_CC+y}
4020 then :
4021   printf %s "(cached) " >&6
4022 else $as_nop
4023   if test -n "$CC"; then
4024   ac_cv_prog_CC="$CC" # Let the user override the test.
4025 else
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH
4028 do
4029   IFS=$as_save_IFS
4030   case $as_dir in #(((
4031     '') as_dir=./ ;;
4032     */) ;;
4033     *) as_dir=$as_dir/ ;;
4034   esac
4035     for ac_exec_ext in '' $ac_executable_extensions; do
4036   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4037     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4038     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4039     break 2
4040   fi
4041 done
4042   done
4043 IFS=$as_save_IFS
4044
4045 fi
4046 fi
4047 CC=$ac_cv_prog_CC
4048 if test -n "$CC"; then
4049   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4050 printf "%s\n" "$CC" >&6; }
4051 else
4052   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 printf "%s\n" "no" >&6; }
4054 fi
4055
4056
4057     test -n "$CC" && break
4058   done
4059 fi
4060 if test -z "$CC"; then
4061   ac_ct_CC=$CC
4062   for ac_prog in cl.exe
4063 do
4064   # Extract the first word of "$ac_prog", so it can be a program name with args.
4065 set dummy $ac_prog; ac_word=$2
4066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4067 printf %s "checking for $ac_word... " >&6; }
4068 if test ${ac_cv_prog_ac_ct_CC+y}
4069 then :
4070   printf %s "(cached) " >&6
4071 else $as_nop
4072   if test -n "$ac_ct_CC"; then
4073   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4074 else
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH
4077 do
4078   IFS=$as_save_IFS
4079   case $as_dir in #(((
4080     '') as_dir=./ ;;
4081     */) ;;
4082     *) as_dir=$as_dir/ ;;
4083   esac
4084     for ac_exec_ext in '' $ac_executable_extensions; do
4085   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4086     ac_cv_prog_ac_ct_CC="$ac_prog"
4087     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4088     break 2
4089   fi
4090 done
4091   done
4092 IFS=$as_save_IFS
4093
4094 fi
4095 fi
4096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4097 if test -n "$ac_ct_CC"; then
4098   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4099 printf "%s\n" "$ac_ct_CC" >&6; }
4100 else
4101   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102 printf "%s\n" "no" >&6; }
4103 fi
4104
4105
4106   test -n "$ac_ct_CC" && break
4107 done
4108
4109   if test "x$ac_ct_CC" = x; then
4110     CC=""
4111   else
4112     case $cross_compiling:$ac_tool_warned in
4113 yes:)
4114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4115 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4116 ac_tool_warned=yes ;;
4117 esac
4118     CC=$ac_ct_CC
4119   fi
4120 fi
4121
4122 fi
4123 if test -z "$CC"; then
4124   if test -n "$ac_tool_prefix"; then
4125   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4126 set dummy ${ac_tool_prefix}clang; ac_word=$2
4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4128 printf %s "checking for $ac_word... " >&6; }
4129 if test ${ac_cv_prog_CC+y}
4130 then :
4131   printf %s "(cached) " >&6
4132 else $as_nop
4133   if test -n "$CC"; then
4134   ac_cv_prog_CC="$CC" # Let the user override the test.
4135 else
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $PATH
4138 do
4139   IFS=$as_save_IFS
4140   case $as_dir in #(((
4141     '') as_dir=./ ;;
4142     */) ;;
4143     *) as_dir=$as_dir/ ;;
4144   esac
4145     for ac_exec_ext in '' $ac_executable_extensions; do
4146   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4147     ac_cv_prog_CC="${ac_tool_prefix}clang"
4148     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4149     break 2
4150   fi
4151 done
4152   done
4153 IFS=$as_save_IFS
4154
4155 fi
4156 fi
4157 CC=$ac_cv_prog_CC
4158 if test -n "$CC"; then
4159   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4160 printf "%s\n" "$CC" >&6; }
4161 else
4162   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163 printf "%s\n" "no" >&6; }
4164 fi
4165
4166
4167 fi
4168 if test -z "$ac_cv_prog_CC"; then
4169   ac_ct_CC=$CC
4170   # Extract the first word of "clang", so it can be a program name with args.
4171 set dummy clang; ac_word=$2
4172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 printf %s "checking for $ac_word... " >&6; }
4174 if test ${ac_cv_prog_ac_ct_CC+y}
4175 then :
4176   printf %s "(cached) " >&6
4177 else $as_nop
4178   if test -n "$ac_ct_CC"; then
4179   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4180 else
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4183 do
4184   IFS=$as_save_IFS
4185   case $as_dir in #(((
4186     '') as_dir=./ ;;
4187     */) ;;
4188     *) as_dir=$as_dir/ ;;
4189   esac
4190     for ac_exec_ext in '' $ac_executable_extensions; do
4191   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4192     ac_cv_prog_ac_ct_CC="clang"
4193     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4194     break 2
4195   fi
4196 done
4197   done
4198 IFS=$as_save_IFS
4199
4200 fi
4201 fi
4202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4203 if test -n "$ac_ct_CC"; then
4204   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4205 printf "%s\n" "$ac_ct_CC" >&6; }
4206 else
4207   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4208 printf "%s\n" "no" >&6; }
4209 fi
4210
4211   if test "x$ac_ct_CC" = x; then
4212     CC=""
4213   else
4214     case $cross_compiling:$ac_tool_warned in
4215 yes:)
4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4217 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4218 ac_tool_warned=yes ;;
4219 esac
4220     CC=$ac_ct_CC
4221   fi
4222 else
4223   CC="$ac_cv_prog_CC"
4224 fi
4225
4226 fi
4227
4228
4229 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4230 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4231 as_fn_error $? "no acceptable C compiler found in \$PATH
4232 See \`config.log' for more details" "$LINENO" 5; }
4233
4234 # Provide some information about the compiler.
4235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4236 set X $ac_compile
4237 ac_compiler=$2
4238 for ac_option in --version -v -V -qversion -version; do
4239   { { ac_try="$ac_compiler $ac_option >&5"
4240 case "(($ac_try" in
4241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242   *) ac_try_echo=$ac_try;;
4243 esac
4244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4245 printf "%s\n" "$ac_try_echo"; } >&5
4246   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4247   ac_status=$?
4248   if test -s conftest.err; then
4249     sed '10a\
4250 ... rest of stderr output deleted ...
4251          10q' conftest.err >conftest.er1
4252     cat conftest.er1 >&5
4253   fi
4254   rm -f conftest.er1 conftest.err
4255   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4256   test $ac_status = 0; }
4257 done
4258
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h.  */
4261
4262 int
4263 main (void)
4264 {
4265
4266   ;
4267   return 0;
4268 }
4269 _ACEOF
4270 ac_clean_files_save=$ac_clean_files
4271 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4272 # Try to create an executable without -o first, disregard a.out.
4273 # It will help us diagnose broken compilers, and finding out an intuition
4274 # of exeext.
4275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4276 printf %s "checking whether the C compiler works... " >&6; }
4277 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4278
4279 # The possible output files:
4280 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4281
4282 ac_rmfiles=
4283 for ac_file in $ac_files
4284 do
4285   case $ac_file in
4286     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4287     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4288   esac
4289 done
4290 rm -f $ac_rmfiles
4291
4292 if { { ac_try="$ac_link_default"
4293 case "(($ac_try" in
4294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295   *) ac_try_echo=$ac_try;;
4296 esac
4297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298 printf "%s\n" "$ac_try_echo"; } >&5
4299   (eval "$ac_link_default") 2>&5
4300   ac_status=$?
4301   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302   test $ac_status = 0; }
4303 then :
4304   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4305 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4306 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4307 # so that the user can short-circuit this test for compilers unknown to
4308 # Autoconf.
4309 for ac_file in $ac_files ''
4310 do
4311   test -f "$ac_file" || continue
4312   case $ac_file in
4313     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4314         ;;
4315     [ab].out )
4316         # We found the default executable, but exeext='' is most
4317         # certainly right.
4318         break;;
4319     *.* )
4320         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4321         then :; else
4322            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4323         fi
4324         # We set ac_cv_exeext here because the later test for it is not
4325         # safe: cross compilers may not add the suffix if given an `-o'
4326         # argument, so we may need to know it at that point already.
4327         # Even if this section looks crufty: it has the advantage of
4328         # actually working.
4329         break;;
4330     * )
4331         break;;
4332   esac
4333 done
4334 test "$ac_cv_exeext" = no && ac_cv_exeext=
4335
4336 else $as_nop
4337   ac_file=''
4338 fi
4339 if test -z "$ac_file"
4340 then :
4341   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 printf "%s\n" "no" >&6; }
4343 printf "%s\n" "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4345
4346 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4347 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4348 as_fn_error 77 "C compiler cannot create executables
4349 See \`config.log' for more details" "$LINENO" 5; }
4350 else $as_nop
4351   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4352 printf "%s\n" "yes" >&6; }
4353 fi
4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4355 printf %s "checking for C compiler default output file name... " >&6; }
4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4357 printf "%s\n" "$ac_file" >&6; }
4358 ac_exeext=$ac_cv_exeext
4359
4360 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4361 ac_clean_files=$ac_clean_files_save
4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4363 printf %s "checking for suffix of executables... " >&6; }
4364 if { { ac_try="$ac_link"
4365 case "(($ac_try" in
4366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367   *) ac_try_echo=$ac_try;;
4368 esac
4369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4370 printf "%s\n" "$ac_try_echo"; } >&5
4371   (eval "$ac_link") 2>&5
4372   ac_status=$?
4373   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4374   test $ac_status = 0; }
4375 then :
4376   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4377 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4378 # work properly (i.e., refer to `conftest.exe'), while it won't with
4379 # `rm'.
4380 for ac_file in conftest.exe conftest conftest.*; do
4381   test -f "$ac_file" || continue
4382   case $ac_file in
4383     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4384     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4385           break;;
4386     * ) break;;
4387   esac
4388 done
4389 else $as_nop
4390   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4391 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4392 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4393 See \`config.log' for more details" "$LINENO" 5; }
4394 fi
4395 rm -f conftest conftest$ac_cv_exeext
4396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4397 printf "%s\n" "$ac_cv_exeext" >&6; }
4398
4399 rm -f conftest.$ac_ext
4400 EXEEXT=$ac_cv_exeext
4401 ac_exeext=$EXEEXT
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h.  */
4404 #include <stdio.h>
4405 int
4406 main (void)
4407 {
4408 FILE *f = fopen ("conftest.out", "w");
4409  return ferror (f) || fclose (f) != 0;
4410
4411   ;
4412   return 0;
4413 }
4414 _ACEOF
4415 ac_clean_files="$ac_clean_files conftest.out"
4416 # Check that the compiler produces executables we can run.  If not, either
4417 # the compiler is broken, or we cross compile.
4418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4419 printf %s "checking whether we are cross compiling... " >&6; }
4420 if test "$cross_compiling" != yes; then
4421   { { ac_try="$ac_link"
4422 case "(($ac_try" in
4423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424   *) ac_try_echo=$ac_try;;
4425 esac
4426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4427 printf "%s\n" "$ac_try_echo"; } >&5
4428   (eval "$ac_link") 2>&5
4429   ac_status=$?
4430   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4431   test $ac_status = 0; }
4432   if { ac_try='./conftest$ac_cv_exeext'
4433   { { case "(($ac_try" in
4434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435   *) ac_try_echo=$ac_try;;
4436 esac
4437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4438 printf "%s\n" "$ac_try_echo"; } >&5
4439   (eval "$ac_try") 2>&5
4440   ac_status=$?
4441   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4442   test $ac_status = 0; }; }; then
4443     cross_compiling=no
4444   else
4445     if test "$cross_compiling" = maybe; then
4446         cross_compiling=yes
4447     else
4448         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4449 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4450 as_fn_error 77 "cannot run C compiled programs.
4451 If you meant to cross compile, use \`--host'.
4452 See \`config.log' for more details" "$LINENO" 5; }
4453     fi
4454   fi
4455 fi
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4457 printf "%s\n" "$cross_compiling" >&6; }
4458
4459 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4460 ac_clean_files=$ac_clean_files_save
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4462 printf %s "checking for suffix of object files... " >&6; }
4463 if test ${ac_cv_objext+y}
4464 then :
4465   printf %s "(cached) " >&6
4466 else $as_nop
4467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h.  */
4469
4470 int
4471 main (void)
4472 {
4473
4474   ;
4475   return 0;
4476 }
4477 _ACEOF
4478 rm -f conftest.o conftest.obj
4479 if { { ac_try="$ac_compile"
4480 case "(($ac_try" in
4481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482   *) ac_try_echo=$ac_try;;
4483 esac
4484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4485 printf "%s\n" "$ac_try_echo"; } >&5
4486   (eval "$ac_compile") 2>&5
4487   ac_status=$?
4488   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4489   test $ac_status = 0; }
4490 then :
4491   for ac_file in conftest.o conftest.obj conftest.*; do
4492   test -f "$ac_file" || continue;
4493   case $ac_file in
4494     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4495     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4496        break;;
4497   esac
4498 done
4499 else $as_nop
4500   printf "%s\n" "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4502
4503 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4504 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4505 as_fn_error $? "cannot compute suffix of object files: cannot compile
4506 See \`config.log' for more details" "$LINENO" 5; }
4507 fi
4508 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4509 fi
4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4511 printf "%s\n" "$ac_cv_objext" >&6; }
4512 OBJEXT=$ac_cv_objext
4513 ac_objext=$OBJEXT
4514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4515 printf %s "checking whether the compiler supports GNU C... " >&6; }
4516 if test ${ac_cv_c_compiler_gnu+y}
4517 then :
4518   printf %s "(cached) " >&6
4519 else $as_nop
4520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h.  */
4522
4523 int
4524 main (void)
4525 {
4526 #ifndef __GNUC__
4527        choke me
4528 #endif
4529
4530   ;
4531   return 0;
4532 }
4533 _ACEOF
4534 if ac_fn_c_try_compile "$LINENO"
4535 then :
4536   ac_compiler_gnu=yes
4537 else $as_nop
4538   ac_compiler_gnu=no
4539 fi
4540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4541 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4542
4543 fi
4544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4545 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4547
4548 if test $ac_compiler_gnu = yes; then
4549   GCC=yes
4550 else
4551   GCC=
4552 fi
4553 ac_test_CFLAGS=${CFLAGS+y}
4554 ac_save_CFLAGS=$CFLAGS
4555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4556 printf %s "checking whether $CC accepts -g... " >&6; }
4557 if test ${ac_cv_prog_cc_g+y}
4558 then :
4559   printf %s "(cached) " >&6
4560 else $as_nop
4561   ac_save_c_werror_flag=$ac_c_werror_flag
4562    ac_c_werror_flag=yes
4563    ac_cv_prog_cc_g=no
4564    CFLAGS="-g"
4565    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h.  */
4567
4568 int
4569 main (void)
4570 {
4571
4572   ;
4573   return 0;
4574 }
4575 _ACEOF
4576 if ac_fn_c_try_compile "$LINENO"
4577 then :
4578   ac_cv_prog_cc_g=yes
4579 else $as_nop
4580   CFLAGS=""
4581       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h.  */
4583
4584 int
4585 main (void)
4586 {
4587
4588   ;
4589   return 0;
4590 }
4591 _ACEOF
4592 if ac_fn_c_try_compile "$LINENO"
4593 then :
4594
4595 else $as_nop
4596   ac_c_werror_flag=$ac_save_c_werror_flag
4597          CFLAGS="-g"
4598          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h.  */
4600
4601 int
4602 main (void)
4603 {
4604
4605   ;
4606   return 0;
4607 }
4608 _ACEOF
4609 if ac_fn_c_try_compile "$LINENO"
4610 then :
4611   ac_cv_prog_cc_g=yes
4612 fi
4613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4614 fi
4615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4616 fi
4617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4618    ac_c_werror_flag=$ac_save_c_werror_flag
4619 fi
4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4621 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4622 if test $ac_test_CFLAGS; then
4623   CFLAGS=$ac_save_CFLAGS
4624 elif test $ac_cv_prog_cc_g = yes; then
4625   if test "$GCC" = yes; then
4626     CFLAGS="-g -O2"
4627   else
4628     CFLAGS="-g"
4629   fi
4630 else
4631   if test "$GCC" = yes; then
4632     CFLAGS="-O2"
4633   else
4634     CFLAGS=
4635   fi
4636 fi
4637 ac_prog_cc_stdc=no
4638 if test x$ac_prog_cc_stdc = xno
4639 then :
4640   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4641 printf %s "checking for $CC option to enable C11 features... " >&6; }
4642 if test ${ac_cv_prog_cc_c11+y}
4643 then :
4644   printf %s "(cached) " >&6
4645 else $as_nop
4646   ac_cv_prog_cc_c11=no
4647 ac_save_CC=$CC
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h.  */
4650 $ac_c_conftest_c11_program
4651 _ACEOF
4652 for ac_arg in '' -std=gnu11
4653 do
4654   CC="$ac_save_CC $ac_arg"
4655   if ac_fn_c_try_compile "$LINENO"
4656 then :
4657   ac_cv_prog_cc_c11=$ac_arg
4658 fi
4659 rm -f core conftest.err conftest.$ac_objext conftest.beam
4660   test "x$ac_cv_prog_cc_c11" != "xno" && break
4661 done
4662 rm -f conftest.$ac_ext
4663 CC=$ac_save_CC
4664 fi
4665
4666 if test "x$ac_cv_prog_cc_c11" = xno
4667 then :
4668   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4669 printf "%s\n" "unsupported" >&6; }
4670 else $as_nop
4671   if test "x$ac_cv_prog_cc_c11" = x
4672 then :
4673   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4674 printf "%s\n" "none needed" >&6; }
4675 else $as_nop
4676   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4677 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4678      CC="$CC $ac_cv_prog_cc_c11"
4679 fi
4680   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4681   ac_prog_cc_stdc=c11
4682 fi
4683 fi
4684 if test x$ac_prog_cc_stdc = xno
4685 then :
4686   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4687 printf %s "checking for $CC option to enable C99 features... " >&6; }
4688 if test ${ac_cv_prog_cc_c99+y}
4689 then :
4690   printf %s "(cached) " >&6
4691 else $as_nop
4692   ac_cv_prog_cc_c99=no
4693 ac_save_CC=$CC
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h.  */
4696 $ac_c_conftest_c99_program
4697 _ACEOF
4698 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4699 do
4700   CC="$ac_save_CC $ac_arg"
4701   if ac_fn_c_try_compile "$LINENO"
4702 then :
4703   ac_cv_prog_cc_c99=$ac_arg
4704 fi
4705 rm -f core conftest.err conftest.$ac_objext conftest.beam
4706   test "x$ac_cv_prog_cc_c99" != "xno" && break
4707 done
4708 rm -f conftest.$ac_ext
4709 CC=$ac_save_CC
4710 fi
4711
4712 if test "x$ac_cv_prog_cc_c99" = xno
4713 then :
4714   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4715 printf "%s\n" "unsupported" >&6; }
4716 else $as_nop
4717   if test "x$ac_cv_prog_cc_c99" = x
4718 then :
4719   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4720 printf "%s\n" "none needed" >&6; }
4721 else $as_nop
4722   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4723 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4724      CC="$CC $ac_cv_prog_cc_c99"
4725 fi
4726   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4727   ac_prog_cc_stdc=c99
4728 fi
4729 fi
4730 if test x$ac_prog_cc_stdc = xno
4731 then :
4732   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4733 printf %s "checking for $CC option to enable C89 features... " >&6; }
4734 if test ${ac_cv_prog_cc_c89+y}
4735 then :
4736   printf %s "(cached) " >&6
4737 else $as_nop
4738   ac_cv_prog_cc_c89=no
4739 ac_save_CC=$CC
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h.  */
4742 $ac_c_conftest_c89_program
4743 _ACEOF
4744 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4745 do
4746   CC="$ac_save_CC $ac_arg"
4747   if ac_fn_c_try_compile "$LINENO"
4748 then :
4749   ac_cv_prog_cc_c89=$ac_arg
4750 fi
4751 rm -f core conftest.err conftest.$ac_objext conftest.beam
4752   test "x$ac_cv_prog_cc_c89" != "xno" && break
4753 done
4754 rm -f conftest.$ac_ext
4755 CC=$ac_save_CC
4756 fi
4757
4758 if test "x$ac_cv_prog_cc_c89" = xno
4759 then :
4760   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4761 printf "%s\n" "unsupported" >&6; }
4762 else $as_nop
4763   if test "x$ac_cv_prog_cc_c89" = x
4764 then :
4765   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4766 printf "%s\n" "none needed" >&6; }
4767 else $as_nop
4768   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4769 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4770      CC="$CC $ac_cv_prog_cc_c89"
4771 fi
4772   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4773   ac_prog_cc_stdc=c89
4774 fi
4775 fi
4776
4777 ac_ext=c
4778 ac_cpp='$CPP $CPPFLAGS'
4779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4782
4783
4784   ac_ext=c
4785 ac_cpp='$CPP $CPPFLAGS'
4786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4790 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4791 if test ${am_cv_prog_cc_c_o+y}
4792 then :
4793   printf %s "(cached) " >&6
4794 else $as_nop
4795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h.  */
4797
4798 int
4799 main (void)
4800 {
4801
4802   ;
4803   return 0;
4804 }
4805 _ACEOF
4806   # Make sure it works both with $CC and with simple cc.
4807   # Following AC_PROG_CC_C_O, we do the test twice because some
4808   # compilers refuse to overwrite an existing .o file with -o,
4809   # though they will create one.
4810   am_cv_prog_cc_c_o=yes
4811   for am_i in 1 2; do
4812     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4813    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4814    ac_status=$?
4815    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816    (exit $ac_status); } \
4817          && test -f conftest2.$ac_objext; then
4818       : OK
4819     else
4820       am_cv_prog_cc_c_o=no
4821       break
4822     fi
4823   done
4824   rm -f core conftest*
4825   unset am_i
4826 fi
4827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4828 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4829 if test "$am_cv_prog_cc_c_o" != yes; then
4830    # Losing compiler, so override with the script.
4831    # FIXME: It is wrong to rewrite CC.
4832    # But if we don't then we get into trouble of one sort or another.
4833    # A longer-term fix would be to have automake use am__CC in this case,
4834    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4835    CC="$am_aux_dir/compile $CC"
4836 fi
4837 ac_ext=c
4838 ac_cpp='$CPP $CPPFLAGS'
4839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4842
4843
4844 depcc="$CC"   am_compiler_list=
4845
4846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4847 printf %s "checking dependency style of $depcc... " >&6; }
4848 if test ${am_cv_CC_dependencies_compiler_type+y}
4849 then :
4850   printf %s "(cached) " >&6
4851 else $as_nop
4852   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4853   # We make a subdir and do the tests there.  Otherwise we can end up
4854   # making bogus files that we don't know about and never remove.  For
4855   # instance it was reported that on HP-UX the gcc test will end up
4856   # making a dummy file named 'D' -- because '-MD' means "put the output
4857   # in D".
4858   rm -rf conftest.dir
4859   mkdir conftest.dir
4860   # Copy depcomp to subdir because otherwise we won't find it if we're
4861   # using a relative directory.
4862   cp "$am_depcomp" conftest.dir
4863   cd conftest.dir
4864   # We will build objects and dependencies in a subdirectory because
4865   # it helps to detect inapplicable dependency modes.  For instance
4866   # both Tru64's cc and ICC support -MD to output dependencies as a
4867   # side effect of compilation, but ICC will put the dependencies in
4868   # the current directory while Tru64 will put them in the object
4869   # directory.
4870   mkdir sub
4871
4872   am_cv_CC_dependencies_compiler_type=none
4873   if test "$am_compiler_list" = ""; then
4874      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4875   fi
4876   am__universal=false
4877   case " $depcc " in #(
4878      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4879      esac
4880
4881   for depmode in $am_compiler_list; do
4882     # Setup a source with many dependencies, because some compilers
4883     # like to wrap large dependency lists on column 80 (with \), and
4884     # we should not choose a depcomp mode which is confused by this.
4885     #
4886     # We need to recreate these files for each test, as the compiler may
4887     # overwrite some of them when testing with obscure command lines.
4888     # This happens at least with the AIX C compiler.
4889     : > sub/conftest.c
4890     for i in 1 2 3 4 5 6; do
4891       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4892       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4893       # Solaris 10 /bin/sh.
4894       echo '/* dummy */' > sub/conftst$i.h
4895     done
4896     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4897
4898     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4899     # mode.  It turns out that the SunPro C++ compiler does not properly
4900     # handle '-M -o', and we need to detect this.  Also, some Intel
4901     # versions had trouble with output in subdirs.
4902     am__obj=sub/conftest.${OBJEXT-o}
4903     am__minus_obj="-o $am__obj"
4904     case $depmode in
4905     gcc)
4906       # This depmode causes a compiler race in universal mode.
4907       test "$am__universal" = false || continue
4908       ;;
4909     nosideeffect)
4910       # After this tag, mechanisms are not by side-effect, so they'll
4911       # only be used when explicitly requested.
4912       if test "x$enable_dependency_tracking" = xyes; then
4913         continue
4914       else
4915         break
4916       fi
4917       ;;
4918     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4919       # This compiler won't grok '-c -o', but also, the minuso test has
4920       # not run yet.  These depmodes are late enough in the game, and
4921       # so weak that their functioning should not be impacted.
4922       am__obj=conftest.${OBJEXT-o}
4923       am__minus_obj=
4924       ;;
4925     none) break ;;
4926     esac
4927     if depmode=$depmode \
4928        source=sub/conftest.c object=$am__obj \
4929        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4930        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4931          >/dev/null 2>conftest.err &&
4932        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4933        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4934        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4935        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4936       # icc doesn't choke on unknown options, it will just issue warnings
4937       # or remarks (even with -Werror).  So we grep stderr for any message
4938       # that says an option was ignored or not supported.
4939       # When given -MP, icc 7.0 and 7.1 complain thusly:
4940       #   icc: Command line warning: ignoring option '-M'; no argument required
4941       # The diagnosis changed in icc 8.0:
4942       #   icc: Command line remark: option '-MP' not supported
4943       if (grep 'ignoring option' conftest.err ||
4944           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4945         am_cv_CC_dependencies_compiler_type=$depmode
4946         break
4947       fi
4948     fi
4949   done
4950
4951   cd ..
4952   rm -rf conftest.dir
4953 else
4954   am_cv_CC_dependencies_compiler_type=none
4955 fi
4956
4957 fi
4958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4959 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4960 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4961
4962  if
4963   test "x$enable_dependency_tracking" != xno \
4964   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4965   am__fastdepCC_TRUE=
4966   am__fastdepCC_FALSE='#'
4967 else
4968   am__fastdepCC_TRUE='#'
4969   am__fastdepCC_FALSE=
4970 fi
4971
4972
4973
4974 ac_header= ac_cache=
4975 for ac_item in $ac_header_c_list
4976 do
4977   if test $ac_cache; then
4978     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4979     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4980       printf "%s\n" "#define $ac_item 1" >> confdefs.h
4981     fi
4982     ac_header= ac_cache=
4983   elif test $ac_header; then
4984     ac_cache=$ac_item
4985   else
4986     ac_header=$ac_item
4987   fi
4988 done
4989
4990
4991
4992
4993
4994
4995
4996
4997 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4998 then :
4999
5000 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5001
5002 fi
5003
5004
5005
5006
5007
5008
5009   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5010 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5011 if test ${ac_cv_safe_to_define___extensions__+y}
5012 then :
5013   printf %s "(cached) " >&6
5014 else $as_nop
5015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h.  */
5017
5018 #         define __EXTENSIONS__ 1
5019           $ac_includes_default
5020 int
5021 main (void)
5022 {
5023
5024   ;
5025   return 0;
5026 }
5027 _ACEOF
5028 if ac_fn_c_try_compile "$LINENO"
5029 then :
5030   ac_cv_safe_to_define___extensions__=yes
5031 else $as_nop
5032   ac_cv_safe_to_define___extensions__=no
5033 fi
5034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5035 fi
5036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5037 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5038
5039   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5040 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5041 if test ${ac_cv_should_define__xopen_source+y}
5042 then :
5043   printf %s "(cached) " >&6
5044 else $as_nop
5045   ac_cv_should_define__xopen_source=no
5046     if test $ac_cv_header_wchar_h = yes
5047 then :
5048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h.  */
5050
5051           #include <wchar.h>
5052           mbstate_t x;
5053 int
5054 main (void)
5055 {
5056
5057   ;
5058   return 0;
5059 }
5060 _ACEOF
5061 if ac_fn_c_try_compile "$LINENO"
5062 then :
5063
5064 else $as_nop
5065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h.  */
5067
5068             #define _XOPEN_SOURCE 500
5069             #include <wchar.h>
5070             mbstate_t x;
5071 int
5072 main (void)
5073 {
5074
5075   ;
5076   return 0;
5077 }
5078 _ACEOF
5079 if ac_fn_c_try_compile "$LINENO"
5080 then :
5081   ac_cv_should_define__xopen_source=yes
5082 fi
5083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5084 fi
5085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5086 fi
5087 fi
5088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5089 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5090
5091   printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5092
5093   printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5094
5095   printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5096
5097   printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5098
5099   printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5100
5101   printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5102
5103   printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5104
5105   printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5106
5107   printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5108
5109   printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5110
5111   printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5112
5113   printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5114
5115   printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5116
5117   printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5118
5119   printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5120
5121   if test $ac_cv_header_minix_config_h = yes
5122 then :
5123   MINIX=yes
5124     printf "%s\n" "#define _MINIX 1" >>confdefs.h
5125
5126     printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5127
5128     printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5129
5130 else $as_nop
5131   MINIX=
5132 fi
5133   if test $ac_cv_safe_to_define___extensions__ = yes
5134 then :
5135   printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5136
5137 fi
5138   if test $ac_cv_should_define__xopen_source = yes
5139 then :
5140   printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5141
5142 fi
5143
5144 ac_ext=c
5145 ac_cpp='$CPP $CPPFLAGS'
5146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5149 if test -n "$ac_tool_prefix"; then
5150   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5151 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 printf %s "checking for $ac_word... " >&6; }
5154 if test ${ac_cv_prog_CC+y}
5155 then :
5156   printf %s "(cached) " >&6
5157 else $as_nop
5158   if test -n "$CC"; then
5159   ac_cv_prog_CC="$CC" # Let the user override the test.
5160 else
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5163 do
5164   IFS=$as_save_IFS
5165   case $as_dir in #(((
5166     '') as_dir=./ ;;
5167     */) ;;
5168     *) as_dir=$as_dir/ ;;
5169   esac
5170     for ac_exec_ext in '' $ac_executable_extensions; do
5171   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5172     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5173     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5174     break 2
5175   fi
5176 done
5177   done
5178 IFS=$as_save_IFS
5179
5180 fi
5181 fi
5182 CC=$ac_cv_prog_CC
5183 if test -n "$CC"; then
5184   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5185 printf "%s\n" "$CC" >&6; }
5186 else
5187   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188 printf "%s\n" "no" >&6; }
5189 fi
5190
5191
5192 fi
5193 if test -z "$ac_cv_prog_CC"; then
5194   ac_ct_CC=$CC
5195   # Extract the first word of "gcc", so it can be a program name with args.
5196 set dummy gcc; ac_word=$2
5197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 printf %s "checking for $ac_word... " >&6; }
5199 if test ${ac_cv_prog_ac_ct_CC+y}
5200 then :
5201   printf %s "(cached) " >&6
5202 else $as_nop
5203   if test -n "$ac_ct_CC"; then
5204   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5205 else
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH
5208 do
5209   IFS=$as_save_IFS
5210   case $as_dir in #(((
5211     '') as_dir=./ ;;
5212     */) ;;
5213     *) as_dir=$as_dir/ ;;
5214   esac
5215     for ac_exec_ext in '' $ac_executable_extensions; do
5216   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5217     ac_cv_prog_ac_ct_CC="gcc"
5218     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5219     break 2
5220   fi
5221 done
5222   done
5223 IFS=$as_save_IFS
5224
5225 fi
5226 fi
5227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5228 if test -n "$ac_ct_CC"; then
5229   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5230 printf "%s\n" "$ac_ct_CC" >&6; }
5231 else
5232   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 printf "%s\n" "no" >&6; }
5234 fi
5235
5236   if test "x$ac_ct_CC" = x; then
5237     CC=""
5238   else
5239     case $cross_compiling:$ac_tool_warned in
5240 yes:)
5241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5242 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5243 ac_tool_warned=yes ;;
5244 esac
5245     CC=$ac_ct_CC
5246   fi
5247 else
5248   CC="$ac_cv_prog_CC"
5249 fi
5250
5251 if test -z "$CC"; then
5252           if test -n "$ac_tool_prefix"; then
5253     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5254 set dummy ${ac_tool_prefix}cc; ac_word=$2
5255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5256 printf %s "checking for $ac_word... " >&6; }
5257 if test ${ac_cv_prog_CC+y}
5258 then :
5259   printf %s "(cached) " >&6
5260 else $as_nop
5261   if test -n "$CC"; then
5262   ac_cv_prog_CC="$CC" # Let the user override the test.
5263 else
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 for as_dir in $PATH
5266 do
5267   IFS=$as_save_IFS
5268   case $as_dir in #(((
5269     '') as_dir=./ ;;
5270     */) ;;
5271     *) as_dir=$as_dir/ ;;
5272   esac
5273     for ac_exec_ext in '' $ac_executable_extensions; do
5274   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5275     ac_cv_prog_CC="${ac_tool_prefix}cc"
5276     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5277     break 2
5278   fi
5279 done
5280   done
5281 IFS=$as_save_IFS
5282
5283 fi
5284 fi
5285 CC=$ac_cv_prog_CC
5286 if test -n "$CC"; then
5287   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5288 printf "%s\n" "$CC" >&6; }
5289 else
5290   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 printf "%s\n" "no" >&6; }
5292 fi
5293
5294
5295   fi
5296 fi
5297 if test -z "$CC"; then
5298   # Extract the first word of "cc", so it can be a program name with args.
5299 set dummy cc; ac_word=$2
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5301 printf %s "checking for $ac_word... " >&6; }
5302 if test ${ac_cv_prog_CC+y}
5303 then :
5304   printf %s "(cached) " >&6
5305 else $as_nop
5306   if test -n "$CC"; then
5307   ac_cv_prog_CC="$CC" # Let the user override the test.
5308 else
5309   ac_prog_rejected=no
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5312 do
5313   IFS=$as_save_IFS
5314   case $as_dir in #(((
5315     '') as_dir=./ ;;
5316     */) ;;
5317     *) as_dir=$as_dir/ ;;
5318   esac
5319     for ac_exec_ext in '' $ac_executable_extensions; do
5320   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5321     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5322        ac_prog_rejected=yes
5323        continue
5324      fi
5325     ac_cv_prog_CC="cc"
5326     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5327     break 2
5328   fi
5329 done
5330   done
5331 IFS=$as_save_IFS
5332
5333 if test $ac_prog_rejected = yes; then
5334   # We found a bogon in the path, so make sure we never use it.
5335   set dummy $ac_cv_prog_CC
5336   shift
5337   if test $# != 0; then
5338     # We chose a different compiler from the bogus one.
5339     # However, it has the same basename, so the bogon will be chosen
5340     # first if we set CC to just the basename; use the full file name.
5341     shift
5342     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5343   fi
5344 fi
5345 fi
5346 fi
5347 CC=$ac_cv_prog_CC
5348 if test -n "$CC"; then
5349   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5350 printf "%s\n" "$CC" >&6; }
5351 else
5352   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 printf "%s\n" "no" >&6; }
5354 fi
5355
5356
5357 fi
5358 if test -z "$CC"; then
5359   if test -n "$ac_tool_prefix"; then
5360   for ac_prog in cl.exe
5361   do
5362     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365 printf %s "checking for $ac_word... " >&6; }
5366 if test ${ac_cv_prog_CC+y}
5367 then :
5368   printf %s "(cached) " >&6
5369 else $as_nop
5370   if test -n "$CC"; then
5371   ac_cv_prog_CC="$CC" # Let the user override the test.
5372 else
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 for as_dir in $PATH
5375 do
5376   IFS=$as_save_IFS
5377   case $as_dir in #(((
5378     '') as_dir=./ ;;
5379     */) ;;
5380     *) as_dir=$as_dir/ ;;
5381   esac
5382     for ac_exec_ext in '' $ac_executable_extensions; do
5383   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5384     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5385     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5386     break 2
5387   fi
5388 done
5389   done
5390 IFS=$as_save_IFS
5391
5392 fi
5393 fi
5394 CC=$ac_cv_prog_CC
5395 if test -n "$CC"; then
5396   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5397 printf "%s\n" "$CC" >&6; }
5398 else
5399   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400 printf "%s\n" "no" >&6; }
5401 fi
5402
5403
5404     test -n "$CC" && break
5405   done
5406 fi
5407 if test -z "$CC"; then
5408   ac_ct_CC=$CC
5409   for ac_prog in cl.exe
5410 do
5411   # Extract the first word of "$ac_prog", so it can be a program name with args.
5412 set dummy $ac_prog; ac_word=$2
5413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5414 printf %s "checking for $ac_word... " >&6; }
5415 if test ${ac_cv_prog_ac_ct_CC+y}
5416 then :
5417   printf %s "(cached) " >&6
5418 else $as_nop
5419   if test -n "$ac_ct_CC"; then
5420   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5421 else
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 for as_dir in $PATH
5424 do
5425   IFS=$as_save_IFS
5426   case $as_dir in #(((
5427     '') as_dir=./ ;;
5428     */) ;;
5429     *) as_dir=$as_dir/ ;;
5430   esac
5431     for ac_exec_ext in '' $ac_executable_extensions; do
5432   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5433     ac_cv_prog_ac_ct_CC="$ac_prog"
5434     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5435     break 2
5436   fi
5437 done
5438   done
5439 IFS=$as_save_IFS
5440
5441 fi
5442 fi
5443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5444 if test -n "$ac_ct_CC"; then
5445   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5446 printf "%s\n" "$ac_ct_CC" >&6; }
5447 else
5448   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 printf "%s\n" "no" >&6; }
5450 fi
5451
5452
5453   test -n "$ac_ct_CC" && break
5454 done
5455
5456   if test "x$ac_ct_CC" = x; then
5457     CC=""
5458   else
5459     case $cross_compiling:$ac_tool_warned in
5460 yes:)
5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5462 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5463 ac_tool_warned=yes ;;
5464 esac
5465     CC=$ac_ct_CC
5466   fi
5467 fi
5468
5469 fi
5470 if test -z "$CC"; then
5471   if test -n "$ac_tool_prefix"; then
5472   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5473 set dummy ${ac_tool_prefix}clang; ac_word=$2
5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475 printf %s "checking for $ac_word... " >&6; }
5476 if test ${ac_cv_prog_CC+y}
5477 then :
5478   printf %s "(cached) " >&6
5479 else $as_nop
5480   if test -n "$CC"; then
5481   ac_cv_prog_CC="$CC" # Let the user override the test.
5482 else
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5485 do
5486   IFS=$as_save_IFS
5487   case $as_dir in #(((
5488     '') as_dir=./ ;;
5489     */) ;;
5490     *) as_dir=$as_dir/ ;;
5491   esac
5492     for ac_exec_ext in '' $ac_executable_extensions; do
5493   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5494     ac_cv_prog_CC="${ac_tool_prefix}clang"
5495     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5496     break 2
5497   fi
5498 done
5499   done
5500 IFS=$as_save_IFS
5501
5502 fi
5503 fi
5504 CC=$ac_cv_prog_CC
5505 if test -n "$CC"; then
5506   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5507 printf "%s\n" "$CC" >&6; }
5508 else
5509   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 printf "%s\n" "no" >&6; }
5511 fi
5512
5513
5514 fi
5515 if test -z "$ac_cv_prog_CC"; then
5516   ac_ct_CC=$CC
5517   # Extract the first word of "clang", so it can be a program name with args.
5518 set dummy clang; ac_word=$2
5519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 printf %s "checking for $ac_word... " >&6; }
5521 if test ${ac_cv_prog_ac_ct_CC+y}
5522 then :
5523   printf %s "(cached) " >&6
5524 else $as_nop
5525   if test -n "$ac_ct_CC"; then
5526   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5527 else
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5530 do
5531   IFS=$as_save_IFS
5532   case $as_dir in #(((
5533     '') as_dir=./ ;;
5534     */) ;;
5535     *) as_dir=$as_dir/ ;;
5536   esac
5537     for ac_exec_ext in '' $ac_executable_extensions; do
5538   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5539     ac_cv_prog_ac_ct_CC="clang"
5540     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5541     break 2
5542   fi
5543 done
5544   done
5545 IFS=$as_save_IFS
5546
5547 fi
5548 fi
5549 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5550 if test -n "$ac_ct_CC"; then
5551   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5552 printf "%s\n" "$ac_ct_CC" >&6; }
5553 else
5554   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 printf "%s\n" "no" >&6; }
5556 fi
5557
5558   if test "x$ac_ct_CC" = x; then
5559     CC=""
5560   else
5561     case $cross_compiling:$ac_tool_warned in
5562 yes:)
5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5564 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5565 ac_tool_warned=yes ;;
5566 esac
5567     CC=$ac_ct_CC
5568   fi
5569 else
5570   CC="$ac_cv_prog_CC"
5571 fi
5572
5573 fi
5574
5575
5576 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5577 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5578 as_fn_error $? "no acceptable C compiler found in \$PATH
5579 See \`config.log' for more details" "$LINENO" 5; }
5580
5581 # Provide some information about the compiler.
5582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5583 set X $ac_compile
5584 ac_compiler=$2
5585 for ac_option in --version -v -V -qversion -version; do
5586   { { ac_try="$ac_compiler $ac_option >&5"
5587 case "(($ac_try" in
5588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589   *) ac_try_echo=$ac_try;;
5590 esac
5591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5592 printf "%s\n" "$ac_try_echo"; } >&5
5593   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5594   ac_status=$?
5595   if test -s conftest.err; then
5596     sed '10a\
5597 ... rest of stderr output deleted ...
5598          10q' conftest.err >conftest.er1
5599     cat conftest.er1 >&5
5600   fi
5601   rm -f conftest.er1 conftest.err
5602   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5603   test $ac_status = 0; }
5604 done
5605
5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5607 printf %s "checking whether the compiler supports GNU C... " >&6; }
5608 if test ${ac_cv_c_compiler_gnu+y}
5609 then :
5610   printf %s "(cached) " >&6
5611 else $as_nop
5612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h.  */
5614
5615 int
5616 main (void)
5617 {
5618 #ifndef __GNUC__
5619        choke me
5620 #endif
5621
5622   ;
5623   return 0;
5624 }
5625 _ACEOF
5626 if ac_fn_c_try_compile "$LINENO"
5627 then :
5628   ac_compiler_gnu=yes
5629 else $as_nop
5630   ac_compiler_gnu=no
5631 fi
5632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5633 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5634
5635 fi
5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5637 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5639
5640 if test $ac_compiler_gnu = yes; then
5641   GCC=yes
5642 else
5643   GCC=
5644 fi
5645 ac_test_CFLAGS=${CFLAGS+y}
5646 ac_save_CFLAGS=$CFLAGS
5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5648 printf %s "checking whether $CC accepts -g... " >&6; }
5649 if test ${ac_cv_prog_cc_g+y}
5650 then :
5651   printf %s "(cached) " >&6
5652 else $as_nop
5653   ac_save_c_werror_flag=$ac_c_werror_flag
5654    ac_c_werror_flag=yes
5655    ac_cv_prog_cc_g=no
5656    CFLAGS="-g"
5657    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h.  */
5659
5660 int
5661 main (void)
5662 {
5663
5664   ;
5665   return 0;
5666 }
5667 _ACEOF
5668 if ac_fn_c_try_compile "$LINENO"
5669 then :
5670   ac_cv_prog_cc_g=yes
5671 else $as_nop
5672   CFLAGS=""
5673       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h.  */
5675
5676 int
5677 main (void)
5678 {
5679
5680   ;
5681   return 0;
5682 }
5683 _ACEOF
5684 if ac_fn_c_try_compile "$LINENO"
5685 then :
5686
5687 else $as_nop
5688   ac_c_werror_flag=$ac_save_c_werror_flag
5689          CFLAGS="-g"
5690          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h.  */
5692
5693 int
5694 main (void)
5695 {
5696
5697   ;
5698   return 0;
5699 }
5700 _ACEOF
5701 if ac_fn_c_try_compile "$LINENO"
5702 then :
5703   ac_cv_prog_cc_g=yes
5704 fi
5705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5706 fi
5707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5708 fi
5709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5710    ac_c_werror_flag=$ac_save_c_werror_flag
5711 fi
5712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5713 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5714 if test $ac_test_CFLAGS; then
5715   CFLAGS=$ac_save_CFLAGS
5716 elif test $ac_cv_prog_cc_g = yes; then
5717   if test "$GCC" = yes; then
5718     CFLAGS="-g -O2"
5719   else
5720     CFLAGS="-g"
5721   fi
5722 else
5723   if test "$GCC" = yes; then
5724     CFLAGS="-O2"
5725   else
5726     CFLAGS=
5727   fi
5728 fi
5729 ac_prog_cc_stdc=no
5730 if test x$ac_prog_cc_stdc = xno
5731 then :
5732   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5733 printf %s "checking for $CC option to enable C11 features... " >&6; }
5734 if test ${ac_cv_prog_cc_c11+y}
5735 then :
5736   printf %s "(cached) " >&6
5737 else $as_nop
5738   ac_cv_prog_cc_c11=no
5739 ac_save_CC=$CC
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h.  */
5742 $ac_c_conftest_c11_program
5743 _ACEOF
5744 for ac_arg in '' -std=gnu11
5745 do
5746   CC="$ac_save_CC $ac_arg"
5747   if ac_fn_c_try_compile "$LINENO"
5748 then :
5749   ac_cv_prog_cc_c11=$ac_arg
5750 fi
5751 rm -f core conftest.err conftest.$ac_objext conftest.beam
5752   test "x$ac_cv_prog_cc_c11" != "xno" && break
5753 done
5754 rm -f conftest.$ac_ext
5755 CC=$ac_save_CC
5756 fi
5757
5758 if test "x$ac_cv_prog_cc_c11" = xno
5759 then :
5760   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5761 printf "%s\n" "unsupported" >&6; }
5762 else $as_nop
5763   if test "x$ac_cv_prog_cc_c11" = x
5764 then :
5765   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5766 printf "%s\n" "none needed" >&6; }
5767 else $as_nop
5768   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5769 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5770      CC="$CC $ac_cv_prog_cc_c11"
5771 fi
5772   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5773   ac_prog_cc_stdc=c11
5774 fi
5775 fi
5776 if test x$ac_prog_cc_stdc = xno
5777 then :
5778   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5779 printf %s "checking for $CC option to enable C99 features... " >&6; }
5780 if test ${ac_cv_prog_cc_c99+y}
5781 then :
5782   printf %s "(cached) " >&6
5783 else $as_nop
5784   ac_cv_prog_cc_c99=no
5785 ac_save_CC=$CC
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h.  */
5788 $ac_c_conftest_c99_program
5789 _ACEOF
5790 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5791 do
5792   CC="$ac_save_CC $ac_arg"
5793   if ac_fn_c_try_compile "$LINENO"
5794 then :
5795   ac_cv_prog_cc_c99=$ac_arg
5796 fi
5797 rm -f core conftest.err conftest.$ac_objext conftest.beam
5798   test "x$ac_cv_prog_cc_c99" != "xno" && break
5799 done
5800 rm -f conftest.$ac_ext
5801 CC=$ac_save_CC
5802 fi
5803
5804 if test "x$ac_cv_prog_cc_c99" = xno
5805 then :
5806   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5807 printf "%s\n" "unsupported" >&6; }
5808 else $as_nop
5809   if test "x$ac_cv_prog_cc_c99" = x
5810 then :
5811   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5812 printf "%s\n" "none needed" >&6; }
5813 else $as_nop
5814   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5815 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5816      CC="$CC $ac_cv_prog_cc_c99"
5817 fi
5818   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5819   ac_prog_cc_stdc=c99
5820 fi
5821 fi
5822 if test x$ac_prog_cc_stdc = xno
5823 then :
5824   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5825 printf %s "checking for $CC option to enable C89 features... " >&6; }
5826 if test ${ac_cv_prog_cc_c89+y}
5827 then :
5828   printf %s "(cached) " >&6
5829 else $as_nop
5830   ac_cv_prog_cc_c89=no
5831 ac_save_CC=$CC
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h.  */
5834 $ac_c_conftest_c89_program
5835 _ACEOF
5836 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5837 do
5838   CC="$ac_save_CC $ac_arg"
5839   if ac_fn_c_try_compile "$LINENO"
5840 then :
5841   ac_cv_prog_cc_c89=$ac_arg
5842 fi
5843 rm -f core conftest.err conftest.$ac_objext conftest.beam
5844   test "x$ac_cv_prog_cc_c89" != "xno" && break
5845 done
5846 rm -f conftest.$ac_ext
5847 CC=$ac_save_CC
5848 fi
5849
5850 if test "x$ac_cv_prog_cc_c89" = xno
5851 then :
5852   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5853 printf "%s\n" "unsupported" >&6; }
5854 else $as_nop
5855   if test "x$ac_cv_prog_cc_c89" = x
5856 then :
5857   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5858 printf "%s\n" "none needed" >&6; }
5859 else $as_nop
5860   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5861 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5862      CC="$CC $ac_cv_prog_cc_c89"
5863 fi
5864   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5865   ac_prog_cc_stdc=c89
5866 fi
5867 fi
5868
5869 ac_ext=c
5870 ac_cpp='$CPP $CPPFLAGS'
5871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5874
5875
5876   ac_ext=c
5877 ac_cpp='$CPP $CPPFLAGS'
5878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5882 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5883 if test ${am_cv_prog_cc_c_o+y}
5884 then :
5885   printf %s "(cached) " >&6
5886 else $as_nop
5887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h.  */
5889
5890 int
5891 main (void)
5892 {
5893
5894   ;
5895   return 0;
5896 }
5897 _ACEOF
5898   # Make sure it works both with $CC and with simple cc.
5899   # Following AC_PROG_CC_C_O, we do the test twice because some
5900   # compilers refuse to overwrite an existing .o file with -o,
5901   # though they will create one.
5902   am_cv_prog_cc_c_o=yes
5903   for am_i in 1 2; do
5904     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5905    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5906    ac_status=$?
5907    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908    (exit $ac_status); } \
5909          && test -f conftest2.$ac_objext; then
5910       : OK
5911     else
5912       am_cv_prog_cc_c_o=no
5913       break
5914     fi
5915   done
5916   rm -f core conftest*
5917   unset am_i
5918 fi
5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5920 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5921 if test "$am_cv_prog_cc_c_o" != yes; then
5922    # Losing compiler, so override with the script.
5923    # FIXME: It is wrong to rewrite CC.
5924    # But if we don't then we get into trouble of one sort or another.
5925    # A longer-term fix would be to have automake use am__CC in this case,
5926    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5927    CC="$am_aux_dir/compile $CC"
5928 fi
5929 ac_ext=c
5930 ac_cpp='$CPP $CPPFLAGS'
5931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5934
5935
5936 depcc="$CC"   am_compiler_list=
5937
5938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5939 printf %s "checking dependency style of $depcc... " >&6; }
5940 if test ${am_cv_CC_dependencies_compiler_type+y}
5941 then :
5942   printf %s "(cached) " >&6
5943 else $as_nop
5944   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5945   # We make a subdir and do the tests there.  Otherwise we can end up
5946   # making bogus files that we don't know about and never remove.  For
5947   # instance it was reported that on HP-UX the gcc test will end up
5948   # making a dummy file named 'D' -- because '-MD' means "put the output
5949   # in D".
5950   rm -rf conftest.dir
5951   mkdir conftest.dir
5952   # Copy depcomp to subdir because otherwise we won't find it if we're
5953   # using a relative directory.
5954   cp "$am_depcomp" conftest.dir
5955   cd conftest.dir
5956   # We will build objects and dependencies in a subdirectory because
5957   # it helps to detect inapplicable dependency modes.  For instance
5958   # both Tru64's cc and ICC support -MD to output dependencies as a
5959   # side effect of compilation, but ICC will put the dependencies in
5960   # the current directory while Tru64 will put them in the object
5961   # directory.
5962   mkdir sub
5963
5964   am_cv_CC_dependencies_compiler_type=none
5965   if test "$am_compiler_list" = ""; then
5966      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5967   fi
5968   am__universal=false
5969   case " $depcc " in #(
5970      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5971      esac
5972
5973   for depmode in $am_compiler_list; do
5974     # Setup a source with many dependencies, because some compilers
5975     # like to wrap large dependency lists on column 80 (with \), and
5976     # we should not choose a depcomp mode which is confused by this.
5977     #
5978     # We need to recreate these files for each test, as the compiler may
5979     # overwrite some of them when testing with obscure command lines.
5980     # This happens at least with the AIX C compiler.
5981     : > sub/conftest.c
5982     for i in 1 2 3 4 5 6; do
5983       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5984       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5985       # Solaris 10 /bin/sh.
5986       echo '/* dummy */' > sub/conftst$i.h
5987     done
5988     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5989
5990     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5991     # mode.  It turns out that the SunPro C++ compiler does not properly
5992     # handle '-M -o', and we need to detect this.  Also, some Intel
5993     # versions had trouble with output in subdirs.
5994     am__obj=sub/conftest.${OBJEXT-o}
5995     am__minus_obj="-o $am__obj"
5996     case $depmode in
5997     gcc)
5998       # This depmode causes a compiler race in universal mode.
5999       test "$am__universal" = false || continue
6000       ;;
6001     nosideeffect)
6002       # After this tag, mechanisms are not by side-effect, so they'll
6003       # only be used when explicitly requested.
6004       if test "x$enable_dependency_tracking" = xyes; then
6005         continue
6006       else
6007         break
6008       fi
6009       ;;
6010     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6011       # This compiler won't grok '-c -o', but also, the minuso test has
6012       # not run yet.  These depmodes are late enough in the game, and
6013       # so weak that their functioning should not be impacted.
6014       am__obj=conftest.${OBJEXT-o}
6015       am__minus_obj=
6016       ;;
6017     none) break ;;
6018     esac
6019     if depmode=$depmode \
6020        source=sub/conftest.c object=$am__obj \
6021        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6022        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6023          >/dev/null 2>conftest.err &&
6024        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6025        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6026        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6027        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6028       # icc doesn't choke on unknown options, it will just issue warnings
6029       # or remarks (even with -Werror).  So we grep stderr for any message
6030       # that says an option was ignored or not supported.
6031       # When given -MP, icc 7.0 and 7.1 complain thusly:
6032       #   icc: Command line warning: ignoring option '-M'; no argument required
6033       # The diagnosis changed in icc 8.0:
6034       #   icc: Command line remark: option '-MP' not supported
6035       if (grep 'ignoring option' conftest.err ||
6036           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6037         am_cv_CC_dependencies_compiler_type=$depmode
6038         break
6039       fi
6040     fi
6041   done
6042
6043   cd ..
6044   rm -rf conftest.dir
6045 else
6046   am_cv_CC_dependencies_compiler_type=none
6047 fi
6048
6049 fi
6050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6051 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6052 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6053
6054  if
6055   test "x$enable_dependency_tracking" != xno \
6056   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6057   am__fastdepCC_TRUE=
6058   am__fastdepCC_FALSE='#'
6059 else
6060   am__fastdepCC_TRUE='#'
6061   am__fastdepCC_FALSE=
6062 fi
6063
6064
6065
6066 ac_ext=c
6067 ac_cpp='$CPP $CPPFLAGS'
6068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6072 printf %s "checking how to run the C preprocessor... " >&6; }
6073 # On Suns, sometimes $CPP names a directory.
6074 if test -n "$CPP" && test -d "$CPP"; then
6075   CPP=
6076 fi
6077 if test -z "$CPP"; then
6078   if test ${ac_cv_prog_CPP+y}
6079 then :
6080   printf %s "(cached) " >&6
6081 else $as_nop
6082       # Double quotes because $CC needs to be expanded
6083     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6084     do
6085       ac_preproc_ok=false
6086 for ac_c_preproc_warn_flag in '' yes
6087 do
6088   # Use a header file that comes with gcc, so configuring glibc
6089   # with a fresh cross-compiler works.
6090   # On the NeXT, cc -E runs the code through the compiler's parser,
6091   # not just through cpp. "Syntax error" is here to catch this case.
6092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093 /* end confdefs.h.  */
6094 #include <limits.h>
6095                      Syntax error
6096 _ACEOF
6097 if ac_fn_c_try_cpp "$LINENO"
6098 then :
6099
6100 else $as_nop
6101   # Broken: fails on valid input.
6102 continue
6103 fi
6104 rm -f conftest.err conftest.i conftest.$ac_ext
6105
6106   # OK, works on sane cases.  Now check whether nonexistent headers
6107   # can be detected and how.
6108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h.  */
6110 #include <ac_nonexistent.h>
6111 _ACEOF
6112 if ac_fn_c_try_cpp "$LINENO"
6113 then :
6114   # Broken: success on invalid input.
6115 continue
6116 else $as_nop
6117   # Passes both tests.
6118 ac_preproc_ok=:
6119 break
6120 fi
6121 rm -f conftest.err conftest.i conftest.$ac_ext
6122
6123 done
6124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6125 rm -f conftest.i conftest.err conftest.$ac_ext
6126 if $ac_preproc_ok
6127 then :
6128   break
6129 fi
6130
6131     done
6132     ac_cv_prog_CPP=$CPP
6133
6134 fi
6135   CPP=$ac_cv_prog_CPP
6136 else
6137   ac_cv_prog_CPP=$CPP
6138 fi
6139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6140 printf "%s\n" "$CPP" >&6; }
6141 ac_preproc_ok=false
6142 for ac_c_preproc_warn_flag in '' yes
6143 do
6144   # Use a header file that comes with gcc, so configuring glibc
6145   # with a fresh cross-compiler works.
6146   # On the NeXT, cc -E runs the code through the compiler's parser,
6147   # not just through cpp. "Syntax error" is here to catch this case.
6148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149 /* end confdefs.h.  */
6150 #include <limits.h>
6151                      Syntax error
6152 _ACEOF
6153 if ac_fn_c_try_cpp "$LINENO"
6154 then :
6155
6156 else $as_nop
6157   # Broken: fails on valid input.
6158 continue
6159 fi
6160 rm -f conftest.err conftest.i conftest.$ac_ext
6161
6162   # OK, works on sane cases.  Now check whether nonexistent headers
6163   # can be detected and how.
6164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h.  */
6166 #include <ac_nonexistent.h>
6167 _ACEOF
6168 if ac_fn_c_try_cpp "$LINENO"
6169 then :
6170   # Broken: success on invalid input.
6171 continue
6172 else $as_nop
6173   # Passes both tests.
6174 ac_preproc_ok=:
6175 break
6176 fi
6177 rm -f conftest.err conftest.i conftest.$ac_ext
6178
6179 done
6180 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6181 rm -f conftest.i conftest.err conftest.$ac_ext
6182 if $ac_preproc_ok
6183 then :
6184
6185 else $as_nop
6186   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6187 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6188 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6189 See \`config.log' for more details" "$LINENO" 5; }
6190 fi
6191
6192 ac_ext=c
6193 ac_cpp='$CPP $CPPFLAGS'
6194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6197
6198
6199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6200 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6201 set x ${MAKE-make}
6202 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6203 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6204 then :
6205   printf %s "(cached) " >&6
6206 else $as_nop
6207   cat >conftest.make <<\_ACEOF
6208 SHELL = /bin/sh
6209 all:
6210         @echo '@@@%%%=$(MAKE)=@@@%%%'
6211 _ACEOF
6212 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6213 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6214   *@@@%%%=?*=@@@%%%*)
6215     eval ac_cv_prog_make_${ac_make}_set=yes;;
6216   *)
6217     eval ac_cv_prog_make_${ac_make}_set=no;;
6218 esac
6219 rm -f conftest.make
6220 fi
6221 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6222   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6223 printf "%s\n" "yes" >&6; }
6224   SET_MAKE=
6225 else
6226   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 printf "%s\n" "no" >&6; }
6228   SET_MAKE="MAKE=${MAKE-make}"
6229 fi
6230
6231 # Check whether --enable-static was given.
6232 if test ${enable_static+y}
6233 then :
6234   enableval=$enable_static; p=${PACKAGE-default}
6235     case $enableval in
6236     yes) enable_static=yes ;;
6237     no) enable_static=no ;;
6238     *)
6239      enable_static=no
6240       # Look at the argument we got.  We use all the common list separators.
6241       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
6242       for pkg in $enableval; do
6243         IFS=$lt_save_ifs
6244         if test "X$pkg" = "X$p"; then
6245           enable_static=yes
6246         fi
6247       done
6248       IFS=$lt_save_ifs
6249       ;;
6250     esac
6251 else $as_nop
6252   enable_static=no
6253 fi
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263 case `pwd` in
6264   *\ * | *\     *)
6265     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6266 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6267 esac
6268
6269
6270
6271 macro_version='2.4.6'
6272 macro_revision='2.4.6'
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287 ltmain=$ac_aux_dir/ltmain.sh
6288
6289 # Backslashify metacharacters that are still active within
6290 # double-quoted strings.
6291 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6292
6293 # Same as above, but do not quote variable references.
6294 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6295
6296 # Sed substitution to delay expansion of an escaped shell variable in a
6297 # double_quote_subst'ed string.
6298 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6299
6300 # Sed substitution to delay expansion of an escaped single quote.
6301 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6302
6303 # Sed substitution to avoid accidental globbing in evaled expressions
6304 no_glob_subst='s/\*/\\\*/g'
6305
6306 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6307 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6308 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6309
6310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6311 printf %s "checking how to print strings... " >&6; }
6312 # Test print first, because it will be a builtin if present.
6313 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6314    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6315   ECHO='print -r --'
6316 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6317   ECHO='printf %s\n'
6318 else
6319   # Use this function as a fallback that always works.
6320   func_fallback_echo ()
6321   {
6322     eval 'cat <<_LTECHO_EOF
6323 $1
6324 _LTECHO_EOF'
6325   }
6326   ECHO='func_fallback_echo'
6327 fi
6328
6329 # func_echo_all arg...
6330 # Invoke $ECHO with all args, space-separated.
6331 func_echo_all ()
6332 {
6333     $ECHO ""
6334 }
6335
6336 case $ECHO in
6337   printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6338 printf "%s\n" "printf" >&6; } ;;
6339   print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6340 printf "%s\n" "print -r" >&6; } ;;
6341   *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6342 printf "%s\n" "cat" >&6; } ;;
6343 esac
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6359 printf %s "checking for a sed that does not truncate output... " >&6; }
6360 if test ${ac_cv_path_SED+y}
6361 then :
6362   printf %s "(cached) " >&6
6363 else $as_nop
6364             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6365      for ac_i in 1 2 3 4 5 6 7; do
6366        ac_script="$ac_script$as_nl$ac_script"
6367      done
6368      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6369      { ac_script=; unset ac_script;}
6370      if test -z "$SED"; then
6371   ac_path_SED_found=false
6372   # Loop through the user's path and test for each of PROGNAME-LIST
6373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 for as_dir in $PATH
6375 do
6376   IFS=$as_save_IFS
6377   case $as_dir in #(((
6378     '') as_dir=./ ;;
6379     */) ;;
6380     *) as_dir=$as_dir/ ;;
6381   esac
6382     for ac_prog in sed gsed
6383    do
6384     for ac_exec_ext in '' $ac_executable_extensions; do
6385       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6386       as_fn_executable_p "$ac_path_SED" || continue
6387 # Check for GNU ac_path_SED and select it if it is found.
6388   # Check for GNU $ac_path_SED
6389 case `"$ac_path_SED" --version 2>&1` in
6390 *GNU*)
6391   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6392 *)
6393   ac_count=0
6394   printf %s 0123456789 >"conftest.in"
6395   while :
6396   do
6397     cat "conftest.in" "conftest.in" >"conftest.tmp"
6398     mv "conftest.tmp" "conftest.in"
6399     cp "conftest.in" "conftest.nl"
6400     printf "%s\n" '' >> "conftest.nl"
6401     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6402     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6403     as_fn_arith $ac_count + 1 && ac_count=$as_val
6404     if test $ac_count -gt ${ac_path_SED_max-0}; then
6405       # Best one so far, save it but keep looking for a better one
6406       ac_cv_path_SED="$ac_path_SED"
6407       ac_path_SED_max=$ac_count
6408     fi
6409     # 10*(2^10) chars as input seems more than enough
6410     test $ac_count -gt 10 && break
6411   done
6412   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6413 esac
6414
6415       $ac_path_SED_found && break 3
6416     done
6417   done
6418   done
6419 IFS=$as_save_IFS
6420   if test -z "$ac_cv_path_SED"; then
6421     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6422   fi
6423 else
6424   ac_cv_path_SED=$SED
6425 fi
6426
6427 fi
6428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6429 printf "%s\n" "$ac_cv_path_SED" >&6; }
6430  SED="$ac_cv_path_SED"
6431   rm -f conftest.sed
6432
6433 test -z "$SED" && SED=sed
6434 Xsed="$SED -e 1s/^X//"
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6447 printf %s "checking for grep that handles long lines and -e... " >&6; }
6448 if test ${ac_cv_path_GREP+y}
6449 then :
6450   printf %s "(cached) " >&6
6451 else $as_nop
6452   if test -z "$GREP"; then
6453   ac_path_GREP_found=false
6454   # Loop through the user's path and test for each of PROGNAME-LIST
6455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6457 do
6458   IFS=$as_save_IFS
6459   case $as_dir in #(((
6460     '') as_dir=./ ;;
6461     */) ;;
6462     *) as_dir=$as_dir/ ;;
6463   esac
6464     for ac_prog in grep ggrep
6465    do
6466     for ac_exec_ext in '' $ac_executable_extensions; do
6467       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6468       as_fn_executable_p "$ac_path_GREP" || continue
6469 # Check for GNU ac_path_GREP and select it if it is found.
6470   # Check for GNU $ac_path_GREP
6471 case `"$ac_path_GREP" --version 2>&1` in
6472 *GNU*)
6473   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6474 *)
6475   ac_count=0
6476   printf %s 0123456789 >"conftest.in"
6477   while :
6478   do
6479     cat "conftest.in" "conftest.in" >"conftest.tmp"
6480     mv "conftest.tmp" "conftest.in"
6481     cp "conftest.in" "conftest.nl"
6482     printf "%s\n" 'GREP' >> "conftest.nl"
6483     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6484     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6485     as_fn_arith $ac_count + 1 && ac_count=$as_val
6486     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6487       # Best one so far, save it but keep looking for a better one
6488       ac_cv_path_GREP="$ac_path_GREP"
6489       ac_path_GREP_max=$ac_count
6490     fi
6491     # 10*(2^10) chars as input seems more than enough
6492     test $ac_count -gt 10 && break
6493   done
6494   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6495 esac
6496
6497       $ac_path_GREP_found && break 3
6498     done
6499   done
6500   done
6501 IFS=$as_save_IFS
6502   if test -z "$ac_cv_path_GREP"; then
6503     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6504   fi
6505 else
6506   ac_cv_path_GREP=$GREP
6507 fi
6508
6509 fi
6510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6511 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6512  GREP="$ac_cv_path_GREP"
6513
6514
6515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6516 printf %s "checking for egrep... " >&6; }
6517 if test ${ac_cv_path_EGREP+y}
6518 then :
6519   printf %s "(cached) " >&6
6520 else $as_nop
6521   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6522    then ac_cv_path_EGREP="$GREP -E"
6523    else
6524      if test -z "$EGREP"; then
6525   ac_path_EGREP_found=false
6526   # Loop through the user's path and test for each of PROGNAME-LIST
6527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6529 do
6530   IFS=$as_save_IFS
6531   case $as_dir in #(((
6532     '') as_dir=./ ;;
6533     */) ;;
6534     *) as_dir=$as_dir/ ;;
6535   esac
6536     for ac_prog in egrep
6537    do
6538     for ac_exec_ext in '' $ac_executable_extensions; do
6539       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6540       as_fn_executable_p "$ac_path_EGREP" || continue
6541 # Check for GNU ac_path_EGREP and select it if it is found.
6542   # Check for GNU $ac_path_EGREP
6543 case `"$ac_path_EGREP" --version 2>&1` in
6544 *GNU*)
6545   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6546 *)
6547   ac_count=0
6548   printf %s 0123456789 >"conftest.in"
6549   while :
6550   do
6551     cat "conftest.in" "conftest.in" >"conftest.tmp"
6552     mv "conftest.tmp" "conftest.in"
6553     cp "conftest.in" "conftest.nl"
6554     printf "%s\n" 'EGREP' >> "conftest.nl"
6555     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6556     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6557     as_fn_arith $ac_count + 1 && ac_count=$as_val
6558     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6559       # Best one so far, save it but keep looking for a better one
6560       ac_cv_path_EGREP="$ac_path_EGREP"
6561       ac_path_EGREP_max=$ac_count
6562     fi
6563     # 10*(2^10) chars as input seems more than enough
6564     test $ac_count -gt 10 && break
6565   done
6566   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6567 esac
6568
6569       $ac_path_EGREP_found && break 3
6570     done
6571   done
6572   done
6573 IFS=$as_save_IFS
6574   if test -z "$ac_cv_path_EGREP"; then
6575     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6576   fi
6577 else
6578   ac_cv_path_EGREP=$EGREP
6579 fi
6580
6581    fi
6582 fi
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6584 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6585  EGREP="$ac_cv_path_EGREP"
6586
6587
6588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6589 printf %s "checking for fgrep... " >&6; }
6590 if test ${ac_cv_path_FGREP+y}
6591 then :
6592   printf %s "(cached) " >&6
6593 else $as_nop
6594   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6595    then ac_cv_path_FGREP="$GREP -F"
6596    else
6597      if test -z "$FGREP"; then
6598   ac_path_FGREP_found=false
6599   # Loop through the user's path and test for each of PROGNAME-LIST
6600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6602 do
6603   IFS=$as_save_IFS
6604   case $as_dir in #(((
6605     '') as_dir=./ ;;
6606     */) ;;
6607     *) as_dir=$as_dir/ ;;
6608   esac
6609     for ac_prog in fgrep
6610    do
6611     for ac_exec_ext in '' $ac_executable_extensions; do
6612       ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6613       as_fn_executable_p "$ac_path_FGREP" || continue
6614 # Check for GNU ac_path_FGREP and select it if it is found.
6615   # Check for GNU $ac_path_FGREP
6616 case `"$ac_path_FGREP" --version 2>&1` in
6617 *GNU*)
6618   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6619 *)
6620   ac_count=0
6621   printf %s 0123456789 >"conftest.in"
6622   while :
6623   do
6624     cat "conftest.in" "conftest.in" >"conftest.tmp"
6625     mv "conftest.tmp" "conftest.in"
6626     cp "conftest.in" "conftest.nl"
6627     printf "%s\n" 'FGREP' >> "conftest.nl"
6628     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6629     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6630     as_fn_arith $ac_count + 1 && ac_count=$as_val
6631     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6632       # Best one so far, save it but keep looking for a better one
6633       ac_cv_path_FGREP="$ac_path_FGREP"
6634       ac_path_FGREP_max=$ac_count
6635     fi
6636     # 10*(2^10) chars as input seems more than enough
6637     test $ac_count -gt 10 && break
6638   done
6639   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6640 esac
6641
6642       $ac_path_FGREP_found && break 3
6643     done
6644   done
6645   done
6646 IFS=$as_save_IFS
6647   if test -z "$ac_cv_path_FGREP"; then
6648     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6649   fi
6650 else
6651   ac_cv_path_FGREP=$FGREP
6652 fi
6653
6654    fi
6655 fi
6656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6657 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6658  FGREP="$ac_cv_path_FGREP"
6659
6660
6661 test -z "$GREP" && GREP=grep
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681 # Check whether --with-gnu-ld was given.
6682 if test ${with_gnu_ld+y}
6683 then :
6684   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6685 else $as_nop
6686   with_gnu_ld=no
6687 fi
6688
6689 ac_prog=ld
6690 if test yes = "$GCC"; then
6691   # Check if gcc -print-prog-name=ld gives a path.
6692   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6693 printf %s "checking for ld used by $CC... " >&6; }
6694   case $host in
6695   *-*-mingw*)
6696     # gcc leaves a trailing carriage return, which upsets mingw
6697     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6698   *)
6699     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6700   esac
6701   case $ac_prog in
6702     # Accept absolute paths.
6703     [\\/]* | ?:[\\/]*)
6704       re_direlt='/[^/][^/]*/\.\./'
6705       # Canonicalize the pathname of ld
6706       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6707       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6708         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6709       done
6710       test -z "$LD" && LD=$ac_prog
6711       ;;
6712   "")
6713     # If it fails, then pretend we aren't using GCC.
6714     ac_prog=ld
6715     ;;
6716   *)
6717     # If it is relative, then search for the first ld in PATH.
6718     with_gnu_ld=unknown
6719     ;;
6720   esac
6721 elif test yes = "$with_gnu_ld"; then
6722   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6723 printf %s "checking for GNU ld... " >&6; }
6724 else
6725   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6726 printf %s "checking for non-GNU ld... " >&6; }
6727 fi
6728 if test ${lt_cv_path_LD+y}
6729 then :
6730   printf %s "(cached) " >&6
6731 else $as_nop
6732   if test -z "$LD"; then
6733   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6734   for ac_dir in $PATH; do
6735     IFS=$lt_save_ifs
6736     test -z "$ac_dir" && ac_dir=.
6737     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6738       lt_cv_path_LD=$ac_dir/$ac_prog
6739       # Check to see if the program is GNU ld.  I'd rather use --version,
6740       # but apparently some variants of GNU ld only accept -v.
6741       # Break only if it was the GNU/non-GNU ld that we prefer.
6742       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6743       *GNU* | *'with BFD'*)
6744         test no != "$with_gnu_ld" && break
6745         ;;
6746       *)
6747         test yes != "$with_gnu_ld" && break
6748         ;;
6749       esac
6750     fi
6751   done
6752   IFS=$lt_save_ifs
6753 else
6754   lt_cv_path_LD=$LD # Let the user override the test with a path.
6755 fi
6756 fi
6757
6758 LD=$lt_cv_path_LD
6759 if test -n "$LD"; then
6760   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6761 printf "%s\n" "$LD" >&6; }
6762 else
6763   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764 printf "%s\n" "no" >&6; }
6765 fi
6766 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6768 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6769 if test ${lt_cv_prog_gnu_ld+y}
6770 then :
6771   printf %s "(cached) " >&6
6772 else $as_nop
6773   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6774 case `$LD -v 2>&1 </dev/null` in
6775 *GNU* | *'with BFD'*)
6776   lt_cv_prog_gnu_ld=yes
6777   ;;
6778 *)
6779   lt_cv_prog_gnu_ld=no
6780   ;;
6781 esac
6782 fi
6783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6784 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6785 with_gnu_ld=$lt_cv_prog_gnu_ld
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6796 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6797 if test ${lt_cv_path_NM+y}
6798 then :
6799   printf %s "(cached) " >&6
6800 else $as_nop
6801   if test -n "$NM"; then
6802   # Let the user override the test.
6803   lt_cv_path_NM=$NM
6804 else
6805   lt_nm_to_check=${ac_tool_prefix}nm
6806   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6807     lt_nm_to_check="$lt_nm_to_check nm"
6808   fi
6809   for lt_tmp_nm in $lt_nm_to_check; do
6810     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6811     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6812       IFS=$lt_save_ifs
6813       test -z "$ac_dir" && ac_dir=.
6814       tmp_nm=$ac_dir/$lt_tmp_nm
6815       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6816         # Check to see if the nm accepts a BSD-compat flag.
6817         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6818         #   nm: unknown option "B" ignored
6819         # Tru64's nm complains that /dev/null is an invalid object file
6820         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6821         case $build_os in
6822         mingw*) lt_bad_file=conftest.nm/nofile ;;
6823         *) lt_bad_file=/dev/null ;;
6824         esac
6825         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6826         *$lt_bad_file* | *'Invalid file or object type'*)
6827           lt_cv_path_NM="$tmp_nm -B"
6828           break 2
6829           ;;
6830         *)
6831           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6832           */dev/null*)
6833             lt_cv_path_NM="$tmp_nm -p"
6834             break 2
6835             ;;
6836           *)
6837             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6838             continue # so that we can try to find one that supports BSD flags
6839             ;;
6840           esac
6841           ;;
6842         esac
6843       fi
6844     done
6845     IFS=$lt_save_ifs
6846   done
6847   : ${lt_cv_path_NM=no}
6848 fi
6849 fi
6850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6851 printf "%s\n" "$lt_cv_path_NM" >&6; }
6852 if test no != "$lt_cv_path_NM"; then
6853   NM=$lt_cv_path_NM
6854 else
6855   # Didn't find any BSD compatible name lister, look for dumpbin.
6856   if test -n "$DUMPBIN"; then :
6857     # Let the user override the test.
6858   else
6859     if test -n "$ac_tool_prefix"; then
6860   for ac_prog in dumpbin "link -dump"
6861   do
6862     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865 printf %s "checking for $ac_word... " >&6; }
6866 if test ${ac_cv_prog_DUMPBIN+y}
6867 then :
6868   printf %s "(cached) " >&6
6869 else $as_nop
6870   if test -n "$DUMPBIN"; then
6871   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6872 else
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6875 do
6876   IFS=$as_save_IFS
6877   case $as_dir in #(((
6878     '') as_dir=./ ;;
6879     */) ;;
6880     *) as_dir=$as_dir/ ;;
6881   esac
6882     for ac_exec_ext in '' $ac_executable_extensions; do
6883   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6884     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6885     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6886     break 2
6887   fi
6888 done
6889   done
6890 IFS=$as_save_IFS
6891
6892 fi
6893 fi
6894 DUMPBIN=$ac_cv_prog_DUMPBIN
6895 if test -n "$DUMPBIN"; then
6896   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6897 printf "%s\n" "$DUMPBIN" >&6; }
6898 else
6899   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900 printf "%s\n" "no" >&6; }
6901 fi
6902
6903
6904     test -n "$DUMPBIN" && break
6905   done
6906 fi
6907 if test -z "$DUMPBIN"; then
6908   ac_ct_DUMPBIN=$DUMPBIN
6909   for ac_prog in dumpbin "link -dump"
6910 do
6911   # Extract the first word of "$ac_prog", so it can be a program name with args.
6912 set dummy $ac_prog; ac_word=$2
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 printf %s "checking for $ac_word... " >&6; }
6915 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6916 then :
6917   printf %s "(cached) " >&6
6918 else $as_nop
6919   if test -n "$ac_ct_DUMPBIN"; then
6920   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6921 else
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925   IFS=$as_save_IFS
6926   case $as_dir in #(((
6927     '') as_dir=./ ;;
6928     */) ;;
6929     *) as_dir=$as_dir/ ;;
6930   esac
6931     for ac_exec_ext in '' $ac_executable_extensions; do
6932   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6933     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6934     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6935     break 2
6936   fi
6937 done
6938   done
6939 IFS=$as_save_IFS
6940
6941 fi
6942 fi
6943 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6944 if test -n "$ac_ct_DUMPBIN"; then
6945   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6946 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6947 else
6948   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949 printf "%s\n" "no" >&6; }
6950 fi
6951
6952
6953   test -n "$ac_ct_DUMPBIN" && break
6954 done
6955
6956   if test "x$ac_ct_DUMPBIN" = x; then
6957     DUMPBIN=":"
6958   else
6959     case $cross_compiling:$ac_tool_warned in
6960 yes:)
6961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6962 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6963 ac_tool_warned=yes ;;
6964 esac
6965     DUMPBIN=$ac_ct_DUMPBIN
6966   fi
6967 fi
6968
6969     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6970     *COFF*)
6971       DUMPBIN="$DUMPBIN -symbols -headers"
6972       ;;
6973     *)
6974       DUMPBIN=:
6975       ;;
6976     esac
6977   fi
6978
6979   if test : != "$DUMPBIN"; then
6980     NM=$DUMPBIN
6981   fi
6982 fi
6983 test -z "$NM" && NM=nm
6984
6985
6986
6987
6988
6989
6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6991 printf %s "checking the name lister ($NM) interface... " >&6; }
6992 if test ${lt_cv_nm_interface+y}
6993 then :
6994   printf %s "(cached) " >&6
6995 else $as_nop
6996   lt_cv_nm_interface="BSD nm"
6997   echo "int some_variable = 0;" > conftest.$ac_ext
6998   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6999   (eval "$ac_compile" 2>conftest.err)
7000   cat conftest.err >&5
7001   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7002   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7003   cat conftest.err >&5
7004   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7005   cat conftest.out >&5
7006   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7007     lt_cv_nm_interface="MS dumpbin"
7008   fi
7009   rm -f conftest*
7010 fi
7011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7012 printf "%s\n" "$lt_cv_nm_interface" >&6; }
7013
7014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7015 printf %s "checking whether ln -s works... " >&6; }
7016 LN_S=$as_ln_s
7017 if test "$LN_S" = "ln -s"; then
7018   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7019 printf "%s\n" "yes" >&6; }
7020 else
7021   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7022 printf "%s\n" "no, using $LN_S" >&6; }
7023 fi
7024
7025 # find the maximum length of command line arguments
7026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7027 printf %s "checking the maximum length of command line arguments... " >&6; }
7028 if test ${lt_cv_sys_max_cmd_len+y}
7029 then :
7030   printf %s "(cached) " >&6
7031 else $as_nop
7032     i=0
7033   teststring=ABCD
7034
7035   case $build_os in
7036   msdosdjgpp*)
7037     # On DJGPP, this test can blow up pretty badly due to problems in libc
7038     # (any single argument exceeding 2000 bytes causes a buffer overrun
7039     # during glob expansion).  Even if it were fixed, the result of this
7040     # check would be larger than it should be.
7041     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7042     ;;
7043
7044   gnu*)
7045     # Under GNU Hurd, this test is not required because there is
7046     # no limit to the length of command line arguments.
7047     # Libtool will interpret -1 as no limit whatsoever
7048     lt_cv_sys_max_cmd_len=-1;
7049     ;;
7050
7051   cygwin* | mingw* | cegcc*)
7052     # On Win9x/ME, this test blows up -- it succeeds, but takes
7053     # about 5 minutes as the teststring grows exponentially.
7054     # Worse, since 9x/ME are not pre-emptively multitasking,
7055     # you end up with a "frozen" computer, even though with patience
7056     # the test eventually succeeds (with a max line length of 256k).
7057     # Instead, let's just punt: use the minimum linelength reported by
7058     # all of the supported platforms: 8192 (on NT/2K/XP).
7059     lt_cv_sys_max_cmd_len=8192;
7060     ;;
7061
7062   mint*)
7063     # On MiNT this can take a long time and run out of memory.
7064     lt_cv_sys_max_cmd_len=8192;
7065     ;;
7066
7067   amigaos*)
7068     # On AmigaOS with pdksh, this test takes hours, literally.
7069     # So we just punt and use a minimum line length of 8192.
7070     lt_cv_sys_max_cmd_len=8192;
7071     ;;
7072
7073   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7074     # This has been around since 386BSD, at least.  Likely further.
7075     if test -x /sbin/sysctl; then
7076       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7077     elif test -x /usr/sbin/sysctl; then
7078       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7079     else
7080       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7081     fi
7082     # And add a safety zone
7083     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7084     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7085     ;;
7086
7087   interix*)
7088     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7089     lt_cv_sys_max_cmd_len=196608
7090     ;;
7091
7092   os2*)
7093     # The test takes a long time on OS/2.
7094     lt_cv_sys_max_cmd_len=8192
7095     ;;
7096
7097   osf*)
7098     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7099     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7100     # nice to cause kernel panics so lets avoid the loop below.
7101     # First set a reasonable default.
7102     lt_cv_sys_max_cmd_len=16384
7103     #
7104     if test -x /sbin/sysconfig; then
7105       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7106         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7107       esac
7108     fi
7109     ;;
7110   sco3.2v5*)
7111     lt_cv_sys_max_cmd_len=102400
7112     ;;
7113   sysv5* | sco5v6* | sysv4.2uw2*)
7114     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7115     if test -n "$kargmax"; then
7116       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7117     else
7118       lt_cv_sys_max_cmd_len=32768
7119     fi
7120     ;;
7121   *)
7122     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7123     if test -n "$lt_cv_sys_max_cmd_len" && \
7124        test undefined != "$lt_cv_sys_max_cmd_len"; then
7125       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7126       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7127     else
7128       # Make teststring a little bigger before we do anything with it.
7129       # a 1K string should be a reasonable start.
7130       for i in 1 2 3 4 5 6 7 8; do
7131         teststring=$teststring$teststring
7132       done
7133       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7134       # If test is not a shell built-in, we'll probably end up computing a
7135       # maximum length that is only half of the actual maximum length, but
7136       # we can't tell.
7137       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7138                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7139               test 17 != "$i" # 1/2 MB should be enough
7140       do
7141         i=`expr $i + 1`
7142         teststring=$teststring$teststring
7143       done
7144       # Only check the string length outside the loop.
7145       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7146       teststring=
7147       # Add a significant safety factor because C++ compilers can tack on
7148       # massive amounts of additional arguments before passing them to the
7149       # linker.  It appears as though 1/2 is a usable value.
7150       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7151     fi
7152     ;;
7153   esac
7154
7155 fi
7156
7157 if test -n "$lt_cv_sys_max_cmd_len"; then
7158   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7159 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7160 else
7161   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7162 printf "%s\n" "none" >&6; }
7163 fi
7164 max_cmd_len=$lt_cv_sys_max_cmd_len
7165
7166
7167
7168
7169
7170
7171 : ${CP="cp -f"}
7172 : ${MV="mv -f"}
7173 : ${RM="rm -f"}
7174
7175 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7176   lt_unset=unset
7177 else
7178   lt_unset=false
7179 fi
7180
7181
7182
7183
7184
7185 # test EBCDIC or ASCII
7186 case `echo X|tr X '\101'` in
7187  A) # ASCII based system
7188     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7189   lt_SP2NL='tr \040 \012'
7190   lt_NL2SP='tr \015\012 \040\040'
7191   ;;
7192  *) # EBCDIC based system
7193   lt_SP2NL='tr \100 \n'
7194   lt_NL2SP='tr \r\n \100\100'
7195   ;;
7196 esac
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7207 printf %s "checking how to convert $build file names to $host format... " >&6; }
7208 if test ${lt_cv_to_host_file_cmd+y}
7209 then :
7210   printf %s "(cached) " >&6
7211 else $as_nop
7212   case $host in
7213   *-*-mingw* )
7214     case $build in
7215       *-*-mingw* ) # actually msys
7216         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7217         ;;
7218       *-*-cygwin* )
7219         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7220         ;;
7221       * ) # otherwise, assume *nix
7222         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7223         ;;
7224     esac
7225     ;;
7226   *-*-cygwin* )
7227     case $build in
7228       *-*-mingw* ) # actually msys
7229         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7230         ;;
7231       *-*-cygwin* )
7232         lt_cv_to_host_file_cmd=func_convert_file_noop
7233         ;;
7234       * ) # otherwise, assume *nix
7235         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7236         ;;
7237     esac
7238     ;;
7239   * ) # unhandled hosts (and "normal" native builds)
7240     lt_cv_to_host_file_cmd=func_convert_file_noop
7241     ;;
7242 esac
7243
7244 fi
7245
7246 to_host_file_cmd=$lt_cv_to_host_file_cmd
7247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7248 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7249
7250
7251
7252
7253
7254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7255 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7256 if test ${lt_cv_to_tool_file_cmd+y}
7257 then :
7258   printf %s "(cached) " >&6
7259 else $as_nop
7260   #assume ordinary cross tools, or native build.
7261 lt_cv_to_tool_file_cmd=func_convert_file_noop
7262 case $host in
7263   *-*-mingw* )
7264     case $build in
7265       *-*-mingw* ) # actually msys
7266         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7267         ;;
7268     esac
7269     ;;
7270 esac
7271
7272 fi
7273
7274 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7276 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7277
7278
7279
7280
7281
7282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7283 printf %s "checking for $LD option to reload object files... " >&6; }
7284 if test ${lt_cv_ld_reload_flag+y}
7285 then :
7286   printf %s "(cached) " >&6
7287 else $as_nop
7288   lt_cv_ld_reload_flag='-r'
7289 fi
7290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7291 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7292 reload_flag=$lt_cv_ld_reload_flag
7293 case $reload_flag in
7294 "" | " "*) ;;
7295 *) reload_flag=" $reload_flag" ;;
7296 esac
7297 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7298 case $host_os in
7299   cygwin* | mingw* | pw32* | cegcc*)
7300     if test yes != "$GCC"; then
7301       reload_cmds=false
7302     fi
7303     ;;
7304   darwin*)
7305     if test yes = "$GCC"; then
7306       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7307     else
7308       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7309     fi
7310     ;;
7311 esac
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321 if test -n "$ac_tool_prefix"; then
7322   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7323 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7325 printf %s "checking for $ac_word... " >&6; }
7326 if test ${ac_cv_prog_OBJDUMP+y}
7327 then :
7328   printf %s "(cached) " >&6
7329 else $as_nop
7330   if test -n "$OBJDUMP"; then
7331   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7332 else
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 for as_dir in $PATH
7335 do
7336   IFS=$as_save_IFS
7337   case $as_dir in #(((
7338     '') as_dir=./ ;;
7339     */) ;;
7340     *) as_dir=$as_dir/ ;;
7341   esac
7342     for ac_exec_ext in '' $ac_executable_extensions; do
7343   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7344     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7345     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7346     break 2
7347   fi
7348 done
7349   done
7350 IFS=$as_save_IFS
7351
7352 fi
7353 fi
7354 OBJDUMP=$ac_cv_prog_OBJDUMP
7355 if test -n "$OBJDUMP"; then
7356   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7357 printf "%s\n" "$OBJDUMP" >&6; }
7358 else
7359   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 printf "%s\n" "no" >&6; }
7361 fi
7362
7363
7364 fi
7365 if test -z "$ac_cv_prog_OBJDUMP"; then
7366   ac_ct_OBJDUMP=$OBJDUMP
7367   # Extract the first word of "objdump", so it can be a program name with args.
7368 set dummy objdump; ac_word=$2
7369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370 printf %s "checking for $ac_word... " >&6; }
7371 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7372 then :
7373   printf %s "(cached) " >&6
7374 else $as_nop
7375   if test -n "$ac_ct_OBJDUMP"; then
7376   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7377 else
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7380 do
7381   IFS=$as_save_IFS
7382   case $as_dir in #(((
7383     '') as_dir=./ ;;
7384     */) ;;
7385     *) as_dir=$as_dir/ ;;
7386   esac
7387     for ac_exec_ext in '' $ac_executable_extensions; do
7388   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7389     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7390     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7391     break 2
7392   fi
7393 done
7394   done
7395 IFS=$as_save_IFS
7396
7397 fi
7398 fi
7399 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7400 if test -n "$ac_ct_OBJDUMP"; then
7401   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7402 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7403 else
7404   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 printf "%s\n" "no" >&6; }
7406 fi
7407
7408   if test "x$ac_ct_OBJDUMP" = x; then
7409     OBJDUMP="false"
7410   else
7411     case $cross_compiling:$ac_tool_warned in
7412 yes:)
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7414 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7415 ac_tool_warned=yes ;;
7416 esac
7417     OBJDUMP=$ac_ct_OBJDUMP
7418   fi
7419 else
7420   OBJDUMP="$ac_cv_prog_OBJDUMP"
7421 fi
7422
7423 test -z "$OBJDUMP" && OBJDUMP=objdump
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7434 printf %s "checking how to recognize dependent libraries... " >&6; }
7435 if test ${lt_cv_deplibs_check_method+y}
7436 then :
7437   printf %s "(cached) " >&6
7438 else $as_nop
7439   lt_cv_file_magic_cmd='$MAGIC_CMD'
7440 lt_cv_file_magic_test_file=
7441 lt_cv_deplibs_check_method='unknown'
7442 # Need to set the preceding variable on all platforms that support
7443 # interlibrary dependencies.
7444 # 'none' -- dependencies not supported.
7445 # 'unknown' -- same as none, but documents that we really don't know.
7446 # 'pass_all' -- all dependencies passed with no checks.
7447 # 'test_compile' -- check by making test program.
7448 # 'file_magic [[regex]]' -- check by looking for files in library path
7449 # that responds to the $file_magic_cmd with a given extended regex.
7450 # If you have 'file' or equivalent on your system and you're not sure
7451 # whether 'pass_all' will *always* work, you probably want this one.
7452
7453 case $host_os in
7454 aix[4-9]*)
7455   lt_cv_deplibs_check_method=pass_all
7456   ;;
7457
7458 beos*)
7459   lt_cv_deplibs_check_method=pass_all
7460   ;;
7461
7462 bsdi[45]*)
7463   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7464   lt_cv_file_magic_cmd='/usr/bin/file -L'
7465   lt_cv_file_magic_test_file=/shlib/libc.so
7466   ;;
7467
7468 cygwin*)
7469   # func_win32_libid is a shell function defined in ltmain.sh
7470   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7471   lt_cv_file_magic_cmd='func_win32_libid'
7472   ;;
7473
7474 mingw* | pw32*)
7475   # Base MSYS/MinGW do not provide the 'file' command needed by
7476   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7477   # unless we find 'file', for example because we are cross-compiling.
7478   if ( file / ) >/dev/null 2>&1; then
7479     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7480     lt_cv_file_magic_cmd='func_win32_libid'
7481   else
7482     # Keep this pattern in sync with the one in func_win32_libid.
7483     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7484     lt_cv_file_magic_cmd='$OBJDUMP -f'
7485   fi
7486   ;;
7487
7488 cegcc*)
7489   # use the weaker test based on 'objdump'. See mingw*.
7490   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7491   lt_cv_file_magic_cmd='$OBJDUMP -f'
7492   ;;
7493
7494 darwin* | rhapsody*)
7495   lt_cv_deplibs_check_method=pass_all
7496   ;;
7497
7498 freebsd* | dragonfly*)
7499   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7500     case $host_cpu in
7501     i*86 )
7502       # Not sure whether the presence of OpenBSD here was a mistake.
7503       # Let's accept both of them until this is cleared up.
7504       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7505       lt_cv_file_magic_cmd=/usr/bin/file
7506       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7507       ;;
7508     esac
7509   else
7510     lt_cv_deplibs_check_method=pass_all
7511   fi
7512   ;;
7513
7514 haiku*)
7515   lt_cv_deplibs_check_method=pass_all
7516   ;;
7517
7518 hpux10.20* | hpux11*)
7519   lt_cv_file_magic_cmd=/usr/bin/file
7520   case $host_cpu in
7521   ia64*)
7522     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7523     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7524     ;;
7525   hppa*64*)
7526     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]'
7527     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7528     ;;
7529   *)
7530     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7531     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7532     ;;
7533   esac
7534   ;;
7535
7536 interix[3-9]*)
7537   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7538   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7539   ;;
7540
7541 irix5* | irix6* | nonstopux*)
7542   case $LD in
7543   *-32|*"-32 ") libmagic=32-bit;;
7544   *-n32|*"-n32 ") libmagic=N32;;
7545   *-64|*"-64 ") libmagic=64-bit;;
7546   *) libmagic=never-match;;
7547   esac
7548   lt_cv_deplibs_check_method=pass_all
7549   ;;
7550
7551 # This must be glibc/ELF.
7552 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7553   lt_cv_deplibs_check_method=pass_all
7554   ;;
7555
7556 netbsd* | netbsdelf*-gnu)
7557   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7558     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7559   else
7560     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7561   fi
7562   ;;
7563
7564 newos6*)
7565   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7566   lt_cv_file_magic_cmd=/usr/bin/file
7567   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7568   ;;
7569
7570 *nto* | *qnx*)
7571   lt_cv_deplibs_check_method=pass_all
7572   ;;
7573
7574 openbsd* | bitrig*)
7575   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7576     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7577   else
7578     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7579   fi
7580   ;;
7581
7582 osf3* | osf4* | osf5*)
7583   lt_cv_deplibs_check_method=pass_all
7584   ;;
7585
7586 rdos*)
7587   lt_cv_deplibs_check_method=pass_all
7588   ;;
7589
7590 solaris*)
7591   lt_cv_deplibs_check_method=pass_all
7592   ;;
7593
7594 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7595   lt_cv_deplibs_check_method=pass_all
7596   ;;
7597
7598 sysv4 | sysv4.3*)
7599   case $host_vendor in
7600   motorola)
7601     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]'
7602     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7603     ;;
7604   ncr)
7605     lt_cv_deplibs_check_method=pass_all
7606     ;;
7607   sequent)
7608     lt_cv_file_magic_cmd='/bin/file'
7609     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7610     ;;
7611   sni)
7612     lt_cv_file_magic_cmd='/bin/file'
7613     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7614     lt_cv_file_magic_test_file=/lib/libc.so
7615     ;;
7616   siemens)
7617     lt_cv_deplibs_check_method=pass_all
7618     ;;
7619   pc)
7620     lt_cv_deplibs_check_method=pass_all
7621     ;;
7622   esac
7623   ;;
7624
7625 tpf*)
7626   lt_cv_deplibs_check_method=pass_all
7627   ;;
7628 os2*)
7629   lt_cv_deplibs_check_method=pass_all
7630   ;;
7631 esac
7632
7633 fi
7634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7635 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7636
7637 file_magic_glob=
7638 want_nocaseglob=no
7639 if test "$build" = "$host"; then
7640   case $host_os in
7641   mingw* | pw32*)
7642     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7643       want_nocaseglob=yes
7644     else
7645       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7646     fi
7647     ;;
7648   esac
7649 fi
7650
7651 file_magic_cmd=$lt_cv_file_magic_cmd
7652 deplibs_check_method=$lt_cv_deplibs_check_method
7653 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676 if test -n "$ac_tool_prefix"; then
7677   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7678 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 printf %s "checking for $ac_word... " >&6; }
7681 if test ${ac_cv_prog_DLLTOOL+y}
7682 then :
7683   printf %s "(cached) " >&6
7684 else $as_nop
7685   if test -n "$DLLTOOL"; then
7686   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7687 else
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 for as_dir in $PATH
7690 do
7691   IFS=$as_save_IFS
7692   case $as_dir in #(((
7693     '') as_dir=./ ;;
7694     */) ;;
7695     *) as_dir=$as_dir/ ;;
7696   esac
7697     for ac_exec_ext in '' $ac_executable_extensions; do
7698   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7699     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7700     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7701     break 2
7702   fi
7703 done
7704   done
7705 IFS=$as_save_IFS
7706
7707 fi
7708 fi
7709 DLLTOOL=$ac_cv_prog_DLLTOOL
7710 if test -n "$DLLTOOL"; then
7711   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7712 printf "%s\n" "$DLLTOOL" >&6; }
7713 else
7714   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7715 printf "%s\n" "no" >&6; }
7716 fi
7717
7718
7719 fi
7720 if test -z "$ac_cv_prog_DLLTOOL"; then
7721   ac_ct_DLLTOOL=$DLLTOOL
7722   # Extract the first word of "dlltool", so it can be a program name with args.
7723 set dummy dlltool; ac_word=$2
7724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7725 printf %s "checking for $ac_word... " >&6; }
7726 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7727 then :
7728   printf %s "(cached) " >&6
7729 else $as_nop
7730   if test -n "$ac_ct_DLLTOOL"; then
7731   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7732 else
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 for as_dir in $PATH
7735 do
7736   IFS=$as_save_IFS
7737   case $as_dir in #(((
7738     '') as_dir=./ ;;
7739     */) ;;
7740     *) as_dir=$as_dir/ ;;
7741   esac
7742     for ac_exec_ext in '' $ac_executable_extensions; do
7743   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7744     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7745     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7746     break 2
7747   fi
7748 done
7749   done
7750 IFS=$as_save_IFS
7751
7752 fi
7753 fi
7754 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7755 if test -n "$ac_ct_DLLTOOL"; then
7756   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7757 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7758 else
7759   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760 printf "%s\n" "no" >&6; }
7761 fi
7762
7763   if test "x$ac_ct_DLLTOOL" = x; then
7764     DLLTOOL="false"
7765   else
7766     case $cross_compiling:$ac_tool_warned in
7767 yes:)
7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7769 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7770 ac_tool_warned=yes ;;
7771 esac
7772     DLLTOOL=$ac_ct_DLLTOOL
7773   fi
7774 else
7775   DLLTOOL="$ac_cv_prog_DLLTOOL"
7776 fi
7777
7778 test -z "$DLLTOOL" && DLLTOOL=dlltool
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7790 printf %s "checking how to associate runtime and link libraries... " >&6; }
7791 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7792 then :
7793   printf %s "(cached) " >&6
7794 else $as_nop
7795   lt_cv_sharedlib_from_linklib_cmd='unknown'
7796
7797 case $host_os in
7798 cygwin* | mingw* | pw32* | cegcc*)
7799   # two different shell functions defined in ltmain.sh;
7800   # decide which one to use based on capabilities of $DLLTOOL
7801   case `$DLLTOOL --help 2>&1` in
7802   *--identify-strict*)
7803     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7804     ;;
7805   *)
7806     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7807     ;;
7808   esac
7809   ;;
7810 *)
7811   # fallback: assume linklib IS sharedlib
7812   lt_cv_sharedlib_from_linklib_cmd=$ECHO
7813   ;;
7814 esac
7815
7816 fi
7817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7818 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7819 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7820 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7821
7822
7823
7824
7825
7826
7827
7828 if test -n "$ac_tool_prefix"; then
7829   for ac_prog in ar
7830   do
7831     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834 printf %s "checking for $ac_word... " >&6; }
7835 if test ${ac_cv_prog_AR+y}
7836 then :
7837   printf %s "(cached) " >&6
7838 else $as_nop
7839   if test -n "$AR"; then
7840   ac_cv_prog_AR="$AR" # Let the user override the test.
7841 else
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 for as_dir in $PATH
7844 do
7845   IFS=$as_save_IFS
7846   case $as_dir in #(((
7847     '') as_dir=./ ;;
7848     */) ;;
7849     *) as_dir=$as_dir/ ;;
7850   esac
7851     for ac_exec_ext in '' $ac_executable_extensions; do
7852   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7853     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7854     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7855     break 2
7856   fi
7857 done
7858   done
7859 IFS=$as_save_IFS
7860
7861 fi
7862 fi
7863 AR=$ac_cv_prog_AR
7864 if test -n "$AR"; then
7865   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7866 printf "%s\n" "$AR" >&6; }
7867 else
7868   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 printf "%s\n" "no" >&6; }
7870 fi
7871
7872
7873     test -n "$AR" && break
7874   done
7875 fi
7876 if test -z "$AR"; then
7877   ac_ct_AR=$AR
7878   for ac_prog in ar
7879 do
7880   # Extract the first word of "$ac_prog", so it can be a program name with args.
7881 set dummy $ac_prog; ac_word=$2
7882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883 printf %s "checking for $ac_word... " >&6; }
7884 if test ${ac_cv_prog_ac_ct_AR+y}
7885 then :
7886   printf %s "(cached) " >&6
7887 else $as_nop
7888   if test -n "$ac_ct_AR"; then
7889   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7890 else
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 for as_dir in $PATH
7893 do
7894   IFS=$as_save_IFS
7895   case $as_dir in #(((
7896     '') as_dir=./ ;;
7897     */) ;;
7898     *) as_dir=$as_dir/ ;;
7899   esac
7900     for ac_exec_ext in '' $ac_executable_extensions; do
7901   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7902     ac_cv_prog_ac_ct_AR="$ac_prog"
7903     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7904     break 2
7905   fi
7906 done
7907   done
7908 IFS=$as_save_IFS
7909
7910 fi
7911 fi
7912 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7913 if test -n "$ac_ct_AR"; then
7914   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7915 printf "%s\n" "$ac_ct_AR" >&6; }
7916 else
7917   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 printf "%s\n" "no" >&6; }
7919 fi
7920
7921
7922   test -n "$ac_ct_AR" && break
7923 done
7924
7925   if test "x$ac_ct_AR" = x; then
7926     AR="false"
7927   else
7928     case $cross_compiling:$ac_tool_warned in
7929 yes:)
7930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7931 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7932 ac_tool_warned=yes ;;
7933 esac
7934     AR=$ac_ct_AR
7935   fi
7936 fi
7937
7938 : ${AR=ar}
7939 : ${AR_FLAGS=cr}
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7952 printf %s "checking for archiver @FILE support... " >&6; }
7953 if test ${lt_cv_ar_at_file+y}
7954 then :
7955   printf %s "(cached) " >&6
7956 else $as_nop
7957   lt_cv_ar_at_file=no
7958    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7959 /* end confdefs.h.  */
7960
7961 int
7962 main (void)
7963 {
7964
7965   ;
7966   return 0;
7967 }
7968 _ACEOF
7969 if ac_fn_c_try_compile "$LINENO"
7970 then :
7971   echo conftest.$ac_objext > conftest.lst
7972       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7973       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7974   (eval $lt_ar_try) 2>&5
7975   ac_status=$?
7976   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7977   test $ac_status = 0; }
7978       if test 0 -eq "$ac_status"; then
7979         # Ensure the archiver fails upon bogus file names.
7980         rm -f conftest.$ac_objext libconftest.a
7981         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7982   (eval $lt_ar_try) 2>&5
7983   ac_status=$?
7984   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7985   test $ac_status = 0; }
7986         if test 0 -ne "$ac_status"; then
7987           lt_cv_ar_at_file=@
7988         fi
7989       fi
7990       rm -f conftest.* libconftest.a
7991
7992 fi
7993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7994
7995 fi
7996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7997 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7998
7999 if test no = "$lt_cv_ar_at_file"; then
8000   archiver_list_spec=
8001 else
8002   archiver_list_spec=$lt_cv_ar_at_file
8003 fi
8004
8005
8006
8007
8008
8009
8010
8011 if test -n "$ac_tool_prefix"; then
8012   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8013 set dummy ${ac_tool_prefix}strip; ac_word=$2
8014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015 printf %s "checking for $ac_word... " >&6; }
8016 if test ${ac_cv_prog_STRIP+y}
8017 then :
8018   printf %s "(cached) " >&6
8019 else $as_nop
8020   if test -n "$STRIP"; then
8021   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8022 else
8023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 for as_dir in $PATH
8025 do
8026   IFS=$as_save_IFS
8027   case $as_dir in #(((
8028     '') as_dir=./ ;;
8029     */) ;;
8030     *) as_dir=$as_dir/ ;;
8031   esac
8032     for ac_exec_ext in '' $ac_executable_extensions; do
8033   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8034     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8035     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8036     break 2
8037   fi
8038 done
8039   done
8040 IFS=$as_save_IFS
8041
8042 fi
8043 fi
8044 STRIP=$ac_cv_prog_STRIP
8045 if test -n "$STRIP"; then
8046   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8047 printf "%s\n" "$STRIP" >&6; }
8048 else
8049   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 printf "%s\n" "no" >&6; }
8051 fi
8052
8053
8054 fi
8055 if test -z "$ac_cv_prog_STRIP"; then
8056   ac_ct_STRIP=$STRIP
8057   # Extract the first word of "strip", so it can be a program name with args.
8058 set dummy strip; ac_word=$2
8059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8060 printf %s "checking for $ac_word... " >&6; }
8061 if test ${ac_cv_prog_ac_ct_STRIP+y}
8062 then :
8063   printf %s "(cached) " >&6
8064 else $as_nop
8065   if test -n "$ac_ct_STRIP"; then
8066   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8067 else
8068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069 for as_dir in $PATH
8070 do
8071   IFS=$as_save_IFS
8072   case $as_dir in #(((
8073     '') as_dir=./ ;;
8074     */) ;;
8075     *) as_dir=$as_dir/ ;;
8076   esac
8077     for ac_exec_ext in '' $ac_executable_extensions; do
8078   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8079     ac_cv_prog_ac_ct_STRIP="strip"
8080     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8081     break 2
8082   fi
8083 done
8084   done
8085 IFS=$as_save_IFS
8086
8087 fi
8088 fi
8089 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8090 if test -n "$ac_ct_STRIP"; then
8091   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8092 printf "%s\n" "$ac_ct_STRIP" >&6; }
8093 else
8094   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8095 printf "%s\n" "no" >&6; }
8096 fi
8097
8098   if test "x$ac_ct_STRIP" = x; then
8099     STRIP=":"
8100   else
8101     case $cross_compiling:$ac_tool_warned in
8102 yes:)
8103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8104 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8105 ac_tool_warned=yes ;;
8106 esac
8107     STRIP=$ac_ct_STRIP
8108   fi
8109 else
8110   STRIP="$ac_cv_prog_STRIP"
8111 fi
8112
8113 test -z "$STRIP" && STRIP=:
8114
8115
8116
8117
8118
8119
8120 if test -n "$ac_tool_prefix"; then
8121   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8122 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 printf %s "checking for $ac_word... " >&6; }
8125 if test ${ac_cv_prog_RANLIB+y}
8126 then :
8127   printf %s "(cached) " >&6
8128 else $as_nop
8129   if test -n "$RANLIB"; then
8130   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8131 else
8132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133 for as_dir in $PATH
8134 do
8135   IFS=$as_save_IFS
8136   case $as_dir in #(((
8137     '') as_dir=./ ;;
8138     */) ;;
8139     *) as_dir=$as_dir/ ;;
8140   esac
8141     for ac_exec_ext in '' $ac_executable_extensions; do
8142   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8143     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8144     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8145     break 2
8146   fi
8147 done
8148   done
8149 IFS=$as_save_IFS
8150
8151 fi
8152 fi
8153 RANLIB=$ac_cv_prog_RANLIB
8154 if test -n "$RANLIB"; then
8155   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8156 printf "%s\n" "$RANLIB" >&6; }
8157 else
8158   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 printf "%s\n" "no" >&6; }
8160 fi
8161
8162
8163 fi
8164 if test -z "$ac_cv_prog_RANLIB"; then
8165   ac_ct_RANLIB=$RANLIB
8166   # Extract the first word of "ranlib", so it can be a program name with args.
8167 set dummy ranlib; ac_word=$2
8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8169 printf %s "checking for $ac_word... " >&6; }
8170 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8171 then :
8172   printf %s "(cached) " >&6
8173 else $as_nop
8174   if test -n "$ac_ct_RANLIB"; then
8175   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8176 else
8177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 for as_dir in $PATH
8179 do
8180   IFS=$as_save_IFS
8181   case $as_dir in #(((
8182     '') as_dir=./ ;;
8183     */) ;;
8184     *) as_dir=$as_dir/ ;;
8185   esac
8186     for ac_exec_ext in '' $ac_executable_extensions; do
8187   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8188     ac_cv_prog_ac_ct_RANLIB="ranlib"
8189     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8190     break 2
8191   fi
8192 done
8193   done
8194 IFS=$as_save_IFS
8195
8196 fi
8197 fi
8198 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8199 if test -n "$ac_ct_RANLIB"; then
8200   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8201 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8202 else
8203   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 printf "%s\n" "no" >&6; }
8205 fi
8206
8207   if test "x$ac_ct_RANLIB" = x; then
8208     RANLIB=":"
8209   else
8210     case $cross_compiling:$ac_tool_warned in
8211 yes:)
8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8213 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8214 ac_tool_warned=yes ;;
8215 esac
8216     RANLIB=$ac_ct_RANLIB
8217   fi
8218 else
8219   RANLIB="$ac_cv_prog_RANLIB"
8220 fi
8221
8222 test -z "$RANLIB" && RANLIB=:
8223
8224
8225
8226
8227
8228
8229 # Determine commands to create old-style static archives.
8230 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8231 old_postinstall_cmds='chmod 644 $oldlib'
8232 old_postuninstall_cmds=
8233
8234 if test -n "$RANLIB"; then
8235   case $host_os in
8236   bitrig* | openbsd*)
8237     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8238     ;;
8239   *)
8240     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8241     ;;
8242   esac
8243   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8244 fi
8245
8246 case $host_os in
8247   darwin*)
8248     lock_old_archive_extraction=yes ;;
8249   *)
8250     lock_old_archive_extraction=no ;;
8251 esac
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291 # If no C compiler was specified, use CC.
8292 LTCC=${LTCC-"$CC"}
8293
8294 # If no C compiler flags were specified, use CFLAGS.
8295 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8296
8297 # Allow CC to be a program name with arguments.
8298 compiler=$CC
8299
8300
8301 # Check for command to grab the raw symbol name followed by C symbol from nm.
8302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8303 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8304 if test ${lt_cv_sys_global_symbol_pipe+y}
8305 then :
8306   printf %s "(cached) " >&6
8307 else $as_nop
8308
8309 # These are sane defaults that work on at least a few old systems.
8310 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8311
8312 # Character class describing NM global symbol codes.
8313 symcode='[BCDEGRST]'
8314
8315 # Regexp to match symbols that can be accessed directly from C.
8316 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8317
8318 # Define system-specific variables.
8319 case $host_os in
8320 aix*)
8321   symcode='[BCDT]'
8322   ;;
8323 cygwin* | mingw* | pw32* | cegcc*)
8324   symcode='[ABCDGISTW]'
8325   ;;
8326 hpux*)
8327   if test ia64 = "$host_cpu"; then
8328     symcode='[ABCDEGRST]'
8329   fi
8330   ;;
8331 irix* | nonstopux*)
8332   symcode='[BCDEGRST]'
8333   ;;
8334 osf*)
8335   symcode='[BCDEGQRST]'
8336   ;;
8337 solaris*)
8338   symcode='[BDRT]'
8339   ;;
8340 sco3.2v5*)
8341   symcode='[DT]'
8342   ;;
8343 sysv4.2uw2*)
8344   symcode='[DT]'
8345   ;;
8346 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8347   symcode='[ABDT]'
8348   ;;
8349 sysv4)
8350   symcode='[DFNSTU]'
8351   ;;
8352 esac
8353
8354 # If we're using GNU nm, then use its standard symbol codes.
8355 case `$NM -V 2>&1` in
8356 *GNU* | *'with BFD'*)
8357   symcode='[ABCDGIRSTW]' ;;
8358 esac
8359
8360 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8361   # Gets list of data symbols to import.
8362   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8363   # Adjust the below global symbol transforms to fixup imported variables.
8364   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8365   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8366   lt_c_name_lib_hook="\
8367   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8368   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8369 else
8370   # Disable hooks by default.
8371   lt_cv_sys_global_symbol_to_import=
8372   lt_cdecl_hook=
8373   lt_c_name_hook=
8374   lt_c_name_lib_hook=
8375 fi
8376
8377 # Transform an extracted symbol line into a proper C declaration.
8378 # Some systems (esp. on ia64) link data and code symbols differently,
8379 # so use this general approach.
8380 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8381 $lt_cdecl_hook\
8382 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8383 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8384
8385 # Transform an extracted symbol line into symbol name and symbol address
8386 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8387 $lt_c_name_hook\
8388 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8389 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8390
8391 # Transform an extracted symbol line into symbol name with lib prefix and
8392 # symbol address.
8393 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8394 $lt_c_name_lib_hook\
8395 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8396 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8397 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8398
8399 # Handle CRLF in mingw tool chain
8400 opt_cr=
8401 case $build_os in
8402 mingw*)
8403   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8404   ;;
8405 esac
8406
8407 # Try without a prefix underscore, then with it.
8408 for ac_symprfx in "" "_"; do
8409
8410   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8411   symxfrm="\\1 $ac_symprfx\\2 \\2"
8412
8413   # Write the raw and C identifiers.
8414   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8415     # Fake it for dumpbin and say T for any non-static function,
8416     # D for any global variable and I for any imported variable.
8417     # Also find C++ and __fastcall symbols from MSVC++,
8418     # which start with @ or ?.
8419     lt_cv_sys_global_symbol_pipe="$AWK '"\
8420 "     {last_section=section; section=\$ 3};"\
8421 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8422 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8423 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8424 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8425 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8426 "     \$ 0!~/External *\|/{next};"\
8427 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8428 "     {if(hide[section]) next};"\
8429 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8430 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8431 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8432 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8433 "     ' prfx=^$ac_symprfx"
8434   else
8435     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8436   fi
8437   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8438
8439   # Check to see that the pipe works correctly.
8440   pipe_works=no
8441
8442   rm -f conftest*
8443   cat > conftest.$ac_ext <<_LT_EOF
8444 #ifdef __cplusplus
8445 extern "C" {
8446 #endif
8447 char nm_test_var;
8448 void nm_test_func(void);
8449 void nm_test_func(void){}
8450 #ifdef __cplusplus
8451 }
8452 #endif
8453 int main(){nm_test_var='a';nm_test_func();return(0);}
8454 _LT_EOF
8455
8456   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8457   (eval $ac_compile) 2>&5
8458   ac_status=$?
8459   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8460   test $ac_status = 0; }; then
8461     # Now try to grab the symbols.
8462     nlist=conftest.nm
8463     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8464     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8465       # Try sorting and uniquifying the output.
8466       if sort "$nlist" | uniq > "$nlist"T; then
8467         mv -f "$nlist"T "$nlist"
8468       else
8469         rm -f "$nlist"T
8470       fi
8471
8472       # Make sure that we snagged all the symbols we need.
8473       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8474         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8475           cat <<_LT_EOF > conftest.$ac_ext
8476 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8477 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8478 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8479    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8480 # define LT_DLSYM_CONST
8481 #elif defined __osf__
8482 /* This system does not cope well with relocations in const data.  */
8483 # define LT_DLSYM_CONST
8484 #else
8485 # define LT_DLSYM_CONST const
8486 #endif
8487
8488 #ifdef __cplusplus
8489 extern "C" {
8490 #endif
8491
8492 _LT_EOF
8493           # Now generate the symbol file.
8494           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8495
8496           cat <<_LT_EOF >> conftest.$ac_ext
8497
8498 /* The mapping between symbol names and symbols.  */
8499 LT_DLSYM_CONST struct {
8500   const char *name;
8501   void       *address;
8502 }
8503 lt__PROGRAM__LTX_preloaded_symbols[] =
8504 {
8505   { "@PROGRAM@", (void *) 0 },
8506 _LT_EOF
8507           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8508           cat <<\_LT_EOF >> conftest.$ac_ext
8509   {0, (void *) 0}
8510 };
8511
8512 /* This works around a problem in FreeBSD linker */
8513 #ifdef FREEBSD_WORKAROUND
8514 static const void *lt_preloaded_setup() {
8515   return lt__PROGRAM__LTX_preloaded_symbols;
8516 }
8517 #endif
8518
8519 #ifdef __cplusplus
8520 }
8521 #endif
8522 _LT_EOF
8523           # Now try linking the two files.
8524           mv conftest.$ac_objext conftstm.$ac_objext
8525           lt_globsym_save_LIBS=$LIBS
8526           lt_globsym_save_CFLAGS=$CFLAGS
8527           LIBS=conftstm.$ac_objext
8528           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8529           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8530   (eval $ac_link) 2>&5
8531   ac_status=$?
8532   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8533   test $ac_status = 0; } && test -s conftest$ac_exeext; then
8534             pipe_works=yes
8535           fi
8536           LIBS=$lt_globsym_save_LIBS
8537           CFLAGS=$lt_globsym_save_CFLAGS
8538         else
8539           echo "cannot find nm_test_func in $nlist" >&5
8540         fi
8541       else
8542         echo "cannot find nm_test_var in $nlist" >&5
8543       fi
8544     else
8545       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8546     fi
8547   else
8548     echo "$progname: failed program was:" >&5
8549     cat conftest.$ac_ext >&5
8550   fi
8551   rm -rf conftest* conftst*
8552
8553   # Do not use the global_symbol_pipe unless it works.
8554   if test yes = "$pipe_works"; then
8555     break
8556   else
8557     lt_cv_sys_global_symbol_pipe=
8558   fi
8559 done
8560
8561 fi
8562
8563 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8564   lt_cv_sys_global_symbol_to_cdecl=
8565 fi
8566 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8567   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8568 printf "%s\n" "failed" >&6; }
8569 else
8570   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8571 printf "%s\n" "ok" >&6; }
8572 fi
8573
8574 # Response file support.
8575 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8576   nm_file_list_spec='@'
8577 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8578   nm_file_list_spec='@'
8579 fi
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8618 printf %s "checking for sysroot... " >&6; }
8619
8620 # Check whether --with-sysroot was given.
8621 if test ${with_sysroot+y}
8622 then :
8623   withval=$with_sysroot;
8624 else $as_nop
8625   with_sysroot=no
8626 fi
8627
8628
8629 lt_sysroot=
8630 case $with_sysroot in #(
8631  yes)
8632    if test yes = "$GCC"; then
8633      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8634    fi
8635    ;; #(
8636  /*)
8637    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8638    ;; #(
8639  no|'')
8640    ;; #(
8641  *)
8642    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8643 printf "%s\n" "$with_sysroot" >&6; }
8644    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8645    ;;
8646 esac
8647
8648  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8649 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8650
8651
8652
8653
8654
8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8656 printf %s "checking for a working dd... " >&6; }
8657 if test ${ac_cv_path_lt_DD+y}
8658 then :
8659   printf %s "(cached) " >&6
8660 else $as_nop
8661   printf 0123456789abcdef0123456789abcdef >conftest.i
8662 cat conftest.i conftest.i >conftest2.i
8663 : ${lt_DD:=$DD}
8664 if test -z "$lt_DD"; then
8665   ac_path_lt_DD_found=false
8666   # Loop through the user's path and test for each of PROGNAME-LIST
8667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668 for as_dir in $PATH
8669 do
8670   IFS=$as_save_IFS
8671   case $as_dir in #(((
8672     '') as_dir=./ ;;
8673     */) ;;
8674     *) as_dir=$as_dir/ ;;
8675   esac
8676     for ac_prog in dd
8677    do
8678     for ac_exec_ext in '' $ac_executable_extensions; do
8679       ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8680       as_fn_executable_p "$ac_path_lt_DD" || continue
8681 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8682   cmp -s conftest.i conftest.out \
8683   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8684 fi
8685       $ac_path_lt_DD_found && break 3
8686     done
8687   done
8688   done
8689 IFS=$as_save_IFS
8690   if test -z "$ac_cv_path_lt_DD"; then
8691     :
8692   fi
8693 else
8694   ac_cv_path_lt_DD=$lt_DD
8695 fi
8696
8697 rm -f conftest.i conftest2.i conftest.out
8698 fi
8699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8700 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8701
8702
8703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8704 printf %s "checking how to truncate binary pipes... " >&6; }
8705 if test ${lt_cv_truncate_bin+y}
8706 then :
8707   printf %s "(cached) " >&6
8708 else $as_nop
8709   printf 0123456789abcdef0123456789abcdef >conftest.i
8710 cat conftest.i conftest.i >conftest2.i
8711 lt_cv_truncate_bin=
8712 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8713   cmp -s conftest.i conftest.out \
8714   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8715 fi
8716 rm -f conftest.i conftest2.i conftest.out
8717 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8718 fi
8719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8720 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8721
8722
8723
8724
8725
8726
8727
8728 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8729 func_cc_basename ()
8730 {
8731     for cc_temp in $*""; do
8732       case $cc_temp in
8733         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8734         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8735         \-*) ;;
8736         *) break;;
8737       esac
8738     done
8739     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8740 }
8741
8742 # Check whether --enable-libtool-lock was given.
8743 if test ${enable_libtool_lock+y}
8744 then :
8745   enableval=$enable_libtool_lock;
8746 fi
8747
8748 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8749
8750 # Some flags need to be propagated to the compiler or linker for good
8751 # libtool support.
8752 case $host in
8753 ia64-*-hpux*)
8754   # Find out what ABI is being produced by ac_compile, and set mode
8755   # options accordingly.
8756   echo 'int i;' > conftest.$ac_ext
8757   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8758   (eval $ac_compile) 2>&5
8759   ac_status=$?
8760   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8761   test $ac_status = 0; }; then
8762     case `/usr/bin/file conftest.$ac_objext` in
8763       *ELF-32*)
8764         HPUX_IA64_MODE=32
8765         ;;
8766       *ELF-64*)
8767         HPUX_IA64_MODE=64
8768         ;;
8769     esac
8770   fi
8771   rm -rf conftest*
8772   ;;
8773 *-*-irix6*)
8774   # Find out what ABI is being produced by ac_compile, and set linker
8775   # options accordingly.
8776   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8777   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8778   (eval $ac_compile) 2>&5
8779   ac_status=$?
8780   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8781   test $ac_status = 0; }; then
8782     if test yes = "$lt_cv_prog_gnu_ld"; then
8783       case `/usr/bin/file conftest.$ac_objext` in
8784         *32-bit*)
8785           LD="${LD-ld} -melf32bsmip"
8786           ;;
8787         *N32*)
8788           LD="${LD-ld} -melf32bmipn32"
8789           ;;
8790         *64-bit*)
8791           LD="${LD-ld} -melf64bmip"
8792         ;;
8793       esac
8794     else
8795       case `/usr/bin/file conftest.$ac_objext` in
8796         *32-bit*)
8797           LD="${LD-ld} -32"
8798           ;;
8799         *N32*)
8800           LD="${LD-ld} -n32"
8801           ;;
8802         *64-bit*)
8803           LD="${LD-ld} -64"
8804           ;;
8805       esac
8806     fi
8807   fi
8808   rm -rf conftest*
8809   ;;
8810
8811 mips64*-*linux*)
8812   # Find out what ABI is being produced by ac_compile, and set linker
8813   # options accordingly.
8814   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8815   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8816   (eval $ac_compile) 2>&5
8817   ac_status=$?
8818   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8819   test $ac_status = 0; }; then
8820     emul=elf
8821     case `/usr/bin/file conftest.$ac_objext` in
8822       *32-bit*)
8823         emul="${emul}32"
8824         ;;
8825       *64-bit*)
8826         emul="${emul}64"
8827         ;;
8828     esac
8829     case `/usr/bin/file conftest.$ac_objext` in
8830       *MSB*)
8831         emul="${emul}btsmip"
8832         ;;
8833       *LSB*)
8834         emul="${emul}ltsmip"
8835         ;;
8836     esac
8837     case `/usr/bin/file conftest.$ac_objext` in
8838       *N32*)
8839         emul="${emul}n32"
8840         ;;
8841     esac
8842     LD="${LD-ld} -m $emul"
8843   fi
8844   rm -rf conftest*
8845   ;;
8846
8847 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8848 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8849   # Find out what ABI is being produced by ac_compile, and set linker
8850   # options accordingly.  Note that the listed cases only cover the
8851   # situations where additional linker options are needed (such as when
8852   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8853   # vice versa); the common cases where no linker options are needed do
8854   # not appear in the list.
8855   echo 'int i;' > conftest.$ac_ext
8856   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8857   (eval $ac_compile) 2>&5
8858   ac_status=$?
8859   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8860   test $ac_status = 0; }; then
8861     case `/usr/bin/file conftest.o` in
8862       *32-bit*)
8863         case $host in
8864           x86_64-*kfreebsd*-gnu)
8865             LD="${LD-ld} -m elf_i386_fbsd"
8866             ;;
8867           x86_64-*linux*)
8868             case `/usr/bin/file conftest.o` in
8869               *x86-64*)
8870                 LD="${LD-ld} -m elf32_x86_64"
8871                 ;;
8872               *)
8873                 LD="${LD-ld} -m elf_i386"
8874                 ;;
8875             esac
8876             ;;
8877           powerpc64le-*linux*)
8878             LD="${LD-ld} -m elf32lppclinux"
8879             ;;
8880           powerpc64-*linux*)
8881             LD="${LD-ld} -m elf32ppclinux"
8882             ;;
8883           s390x-*linux*)
8884             LD="${LD-ld} -m elf_s390"
8885             ;;
8886           sparc64-*linux*)
8887             LD="${LD-ld} -m elf32_sparc"
8888             ;;
8889         esac
8890         ;;
8891       *64-bit*)
8892         case $host in
8893           x86_64-*kfreebsd*-gnu)
8894             LD="${LD-ld} -m elf_x86_64_fbsd"
8895             ;;
8896           x86_64-*linux*)
8897             LD="${LD-ld} -m elf_x86_64"
8898             ;;
8899           powerpcle-*linux*)
8900             LD="${LD-ld} -m elf64lppc"
8901             ;;
8902           powerpc-*linux*)
8903             LD="${LD-ld} -m elf64ppc"
8904             ;;
8905           s390*-*linux*|s390*-*tpf*)
8906             LD="${LD-ld} -m elf64_s390"
8907             ;;
8908           sparc*-*linux*)
8909             LD="${LD-ld} -m elf64_sparc"
8910             ;;
8911         esac
8912         ;;
8913     esac
8914   fi
8915   rm -rf conftest*
8916   ;;
8917
8918 *-*-sco3.2v5*)
8919   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8920   SAVE_CFLAGS=$CFLAGS
8921   CFLAGS="$CFLAGS -belf"
8922   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8923 printf %s "checking whether the C compiler needs -belf... " >&6; }
8924 if test ${lt_cv_cc_needs_belf+y}
8925 then :
8926   printf %s "(cached) " >&6
8927 else $as_nop
8928   ac_ext=c
8929 ac_cpp='$CPP $CPPFLAGS'
8930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8933
8934      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h.  */
8936
8937 int
8938 main (void)
8939 {
8940
8941   ;
8942   return 0;
8943 }
8944 _ACEOF
8945 if ac_fn_c_try_link "$LINENO"
8946 then :
8947   lt_cv_cc_needs_belf=yes
8948 else $as_nop
8949   lt_cv_cc_needs_belf=no
8950 fi
8951 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8952     conftest$ac_exeext conftest.$ac_ext
8953      ac_ext=c
8954 ac_cpp='$CPP $CPPFLAGS'
8955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8958
8959 fi
8960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8961 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8962   if test yes != "$lt_cv_cc_needs_belf"; then
8963     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8964     CFLAGS=$SAVE_CFLAGS
8965   fi
8966   ;;
8967 *-*solaris*)
8968   # Find out what ABI is being produced by ac_compile, and set linker
8969   # options accordingly.
8970   echo 'int i;' > conftest.$ac_ext
8971   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8972   (eval $ac_compile) 2>&5
8973   ac_status=$?
8974   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8975   test $ac_status = 0; }; then
8976     case `/usr/bin/file conftest.o` in
8977     *64-bit*)
8978       case $lt_cv_prog_gnu_ld in
8979       yes*)
8980         case $host in
8981         i?86-*-solaris*|x86_64-*-solaris*)
8982           LD="${LD-ld} -m elf_x86_64"
8983           ;;
8984         sparc*-*-solaris*)
8985           LD="${LD-ld} -m elf64_sparc"
8986           ;;
8987         esac
8988         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8989         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8990           LD=${LD-ld}_sol2
8991         fi
8992         ;;
8993       *)
8994         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8995           LD="${LD-ld} -64"
8996         fi
8997         ;;
8998       esac
8999       ;;
9000     esac
9001   fi
9002   rm -rf conftest*
9003   ;;
9004 esac
9005
9006 need_locks=$enable_libtool_lock
9007
9008 if test -n "$ac_tool_prefix"; then
9009   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9010 set dummy ${ac_tool_prefix}mt; ac_word=$2
9011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9012 printf %s "checking for $ac_word... " >&6; }
9013 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9014 then :
9015   printf %s "(cached) " >&6
9016 else $as_nop
9017   if test -n "$MANIFEST_TOOL"; then
9018   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9019 else
9020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9021 for as_dir in $PATH
9022 do
9023   IFS=$as_save_IFS
9024   case $as_dir in #(((
9025     '') as_dir=./ ;;
9026     */) ;;
9027     *) as_dir=$as_dir/ ;;
9028   esac
9029     for ac_exec_ext in '' $ac_executable_extensions; do
9030   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9031     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9032     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9033     break 2
9034   fi
9035 done
9036   done
9037 IFS=$as_save_IFS
9038
9039 fi
9040 fi
9041 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9042 if test -n "$MANIFEST_TOOL"; then
9043   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9044 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9045 else
9046   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9047 printf "%s\n" "no" >&6; }
9048 fi
9049
9050
9051 fi
9052 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9053   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9054   # Extract the first word of "mt", so it can be a program name with args.
9055 set dummy mt; ac_word=$2
9056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9057 printf %s "checking for $ac_word... " >&6; }
9058 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9059 then :
9060   printf %s "(cached) " >&6
9061 else $as_nop
9062   if test -n "$ac_ct_MANIFEST_TOOL"; then
9063   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9064 else
9065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066 for as_dir in $PATH
9067 do
9068   IFS=$as_save_IFS
9069   case $as_dir in #(((
9070     '') as_dir=./ ;;
9071     */) ;;
9072     *) as_dir=$as_dir/ ;;
9073   esac
9074     for ac_exec_ext in '' $ac_executable_extensions; do
9075   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9076     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9077     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9078     break 2
9079   fi
9080 done
9081   done
9082 IFS=$as_save_IFS
9083
9084 fi
9085 fi
9086 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9087 if test -n "$ac_ct_MANIFEST_TOOL"; then
9088   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9089 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9090 else
9091   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9092 printf "%s\n" "no" >&6; }
9093 fi
9094
9095   if test "x$ac_ct_MANIFEST_TOOL" = x; then
9096     MANIFEST_TOOL=":"
9097   else
9098     case $cross_compiling:$ac_tool_warned in
9099 yes:)
9100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9101 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9102 ac_tool_warned=yes ;;
9103 esac
9104     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9105   fi
9106 else
9107   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9108 fi
9109
9110 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9112 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9113 if test ${lt_cv_path_mainfest_tool+y}
9114 then :
9115   printf %s "(cached) " >&6
9116 else $as_nop
9117   lt_cv_path_mainfest_tool=no
9118   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9119   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9120   cat conftest.err >&5
9121   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9122     lt_cv_path_mainfest_tool=yes
9123   fi
9124   rm -f conftest*
9125 fi
9126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9127 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
9128 if test yes != "$lt_cv_path_mainfest_tool"; then
9129   MANIFEST_TOOL=:
9130 fi
9131
9132
9133
9134
9135
9136
9137   case $host_os in
9138     rhapsody* | darwin*)
9139     if test -n "$ac_tool_prefix"; then
9140   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9141 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9143 printf %s "checking for $ac_word... " >&6; }
9144 if test ${ac_cv_prog_DSYMUTIL+y}
9145 then :
9146   printf %s "(cached) " >&6
9147 else $as_nop
9148   if test -n "$DSYMUTIL"; then
9149   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9150 else
9151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9152 for as_dir in $PATH
9153 do
9154   IFS=$as_save_IFS
9155   case $as_dir in #(((
9156     '') as_dir=./ ;;
9157     */) ;;
9158     *) as_dir=$as_dir/ ;;
9159   esac
9160     for ac_exec_ext in '' $ac_executable_extensions; do
9161   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9162     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9163     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9164     break 2
9165   fi
9166 done
9167   done
9168 IFS=$as_save_IFS
9169
9170 fi
9171 fi
9172 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9173 if test -n "$DSYMUTIL"; then
9174   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9175 printf "%s\n" "$DSYMUTIL" >&6; }
9176 else
9177   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9178 printf "%s\n" "no" >&6; }
9179 fi
9180
9181
9182 fi
9183 if test -z "$ac_cv_prog_DSYMUTIL"; then
9184   ac_ct_DSYMUTIL=$DSYMUTIL
9185   # Extract the first word of "dsymutil", so it can be a program name with args.
9186 set dummy dsymutil; ac_word=$2
9187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9188 printf %s "checking for $ac_word... " >&6; }
9189 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9190 then :
9191   printf %s "(cached) " >&6
9192 else $as_nop
9193   if test -n "$ac_ct_DSYMUTIL"; then
9194   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9195 else
9196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9197 for as_dir in $PATH
9198 do
9199   IFS=$as_save_IFS
9200   case $as_dir in #(((
9201     '') as_dir=./ ;;
9202     */) ;;
9203     *) as_dir=$as_dir/ ;;
9204   esac
9205     for ac_exec_ext in '' $ac_executable_extensions; do
9206   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9207     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9208     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9209     break 2
9210   fi
9211 done
9212   done
9213 IFS=$as_save_IFS
9214
9215 fi
9216 fi
9217 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9218 if test -n "$ac_ct_DSYMUTIL"; then
9219   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9220 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9221 else
9222   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223 printf "%s\n" "no" >&6; }
9224 fi
9225
9226   if test "x$ac_ct_DSYMUTIL" = x; then
9227     DSYMUTIL=":"
9228   else
9229     case $cross_compiling:$ac_tool_warned in
9230 yes:)
9231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9232 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9233 ac_tool_warned=yes ;;
9234 esac
9235     DSYMUTIL=$ac_ct_DSYMUTIL
9236   fi
9237 else
9238   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9239 fi
9240
9241     if test -n "$ac_tool_prefix"; then
9242   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9243 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9245 printf %s "checking for $ac_word... " >&6; }
9246 if test ${ac_cv_prog_NMEDIT+y}
9247 then :
9248   printf %s "(cached) " >&6
9249 else $as_nop
9250   if test -n "$NMEDIT"; then
9251   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9252 else
9253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9254 for as_dir in $PATH
9255 do
9256   IFS=$as_save_IFS
9257   case $as_dir in #(((
9258     '') as_dir=./ ;;
9259     */) ;;
9260     *) as_dir=$as_dir/ ;;
9261   esac
9262     for ac_exec_ext in '' $ac_executable_extensions; do
9263   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9264     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9265     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9266     break 2
9267   fi
9268 done
9269   done
9270 IFS=$as_save_IFS
9271
9272 fi
9273 fi
9274 NMEDIT=$ac_cv_prog_NMEDIT
9275 if test -n "$NMEDIT"; then
9276   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9277 printf "%s\n" "$NMEDIT" >&6; }
9278 else
9279   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9280 printf "%s\n" "no" >&6; }
9281 fi
9282
9283
9284 fi
9285 if test -z "$ac_cv_prog_NMEDIT"; then
9286   ac_ct_NMEDIT=$NMEDIT
9287   # Extract the first word of "nmedit", so it can be a program name with args.
9288 set dummy nmedit; ac_word=$2
9289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9290 printf %s "checking for $ac_word... " >&6; }
9291 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9292 then :
9293   printf %s "(cached) " >&6
9294 else $as_nop
9295   if test -n "$ac_ct_NMEDIT"; then
9296   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9297 else
9298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9299 for as_dir in $PATH
9300 do
9301   IFS=$as_save_IFS
9302   case $as_dir in #(((
9303     '') as_dir=./ ;;
9304     */) ;;
9305     *) as_dir=$as_dir/ ;;
9306   esac
9307     for ac_exec_ext in '' $ac_executable_extensions; do
9308   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9309     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9310     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9311     break 2
9312   fi
9313 done
9314   done
9315 IFS=$as_save_IFS
9316
9317 fi
9318 fi
9319 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9320 if test -n "$ac_ct_NMEDIT"; then
9321   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9322 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9323 else
9324   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325 printf "%s\n" "no" >&6; }
9326 fi
9327
9328   if test "x$ac_ct_NMEDIT" = x; then
9329     NMEDIT=":"
9330   else
9331     case $cross_compiling:$ac_tool_warned in
9332 yes:)
9333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9334 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9335 ac_tool_warned=yes ;;
9336 esac
9337     NMEDIT=$ac_ct_NMEDIT
9338   fi
9339 else
9340   NMEDIT="$ac_cv_prog_NMEDIT"
9341 fi
9342
9343     if test -n "$ac_tool_prefix"; then
9344   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9345 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9347 printf %s "checking for $ac_word... " >&6; }
9348 if test ${ac_cv_prog_LIPO+y}
9349 then :
9350   printf %s "(cached) " >&6
9351 else $as_nop
9352   if test -n "$LIPO"; then
9353   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9354 else
9355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9356 for as_dir in $PATH
9357 do
9358   IFS=$as_save_IFS
9359   case $as_dir in #(((
9360     '') as_dir=./ ;;
9361     */) ;;
9362     *) as_dir=$as_dir/ ;;
9363   esac
9364     for ac_exec_ext in '' $ac_executable_extensions; do
9365   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9366     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9367     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9368     break 2
9369   fi
9370 done
9371   done
9372 IFS=$as_save_IFS
9373
9374 fi
9375 fi
9376 LIPO=$ac_cv_prog_LIPO
9377 if test -n "$LIPO"; then
9378   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9379 printf "%s\n" "$LIPO" >&6; }
9380 else
9381   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9382 printf "%s\n" "no" >&6; }
9383 fi
9384
9385
9386 fi
9387 if test -z "$ac_cv_prog_LIPO"; then
9388   ac_ct_LIPO=$LIPO
9389   # Extract the first word of "lipo", so it can be a program name with args.
9390 set dummy lipo; ac_word=$2
9391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9392 printf %s "checking for $ac_word... " >&6; }
9393 if test ${ac_cv_prog_ac_ct_LIPO+y}
9394 then :
9395   printf %s "(cached) " >&6
9396 else $as_nop
9397   if test -n "$ac_ct_LIPO"; then
9398   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9399 else
9400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9401 for as_dir in $PATH
9402 do
9403   IFS=$as_save_IFS
9404   case $as_dir in #(((
9405     '') as_dir=./ ;;
9406     */) ;;
9407     *) as_dir=$as_dir/ ;;
9408   esac
9409     for ac_exec_ext in '' $ac_executable_extensions; do
9410   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9411     ac_cv_prog_ac_ct_LIPO="lipo"
9412     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9413     break 2
9414   fi
9415 done
9416   done
9417 IFS=$as_save_IFS
9418
9419 fi
9420 fi
9421 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9422 if test -n "$ac_ct_LIPO"; then
9423   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9424 printf "%s\n" "$ac_ct_LIPO" >&6; }
9425 else
9426   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9427 printf "%s\n" "no" >&6; }
9428 fi
9429
9430   if test "x$ac_ct_LIPO" = x; then
9431     LIPO=":"
9432   else
9433     case $cross_compiling:$ac_tool_warned in
9434 yes:)
9435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9436 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9437 ac_tool_warned=yes ;;
9438 esac
9439     LIPO=$ac_ct_LIPO
9440   fi
9441 else
9442   LIPO="$ac_cv_prog_LIPO"
9443 fi
9444
9445     if test -n "$ac_tool_prefix"; then
9446   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9447 set dummy ${ac_tool_prefix}otool; ac_word=$2
9448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9449 printf %s "checking for $ac_word... " >&6; }
9450 if test ${ac_cv_prog_OTOOL+y}
9451 then :
9452   printf %s "(cached) " >&6
9453 else $as_nop
9454   if test -n "$OTOOL"; then
9455   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9456 else
9457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9458 for as_dir in $PATH
9459 do
9460   IFS=$as_save_IFS
9461   case $as_dir in #(((
9462     '') as_dir=./ ;;
9463     */) ;;
9464     *) as_dir=$as_dir/ ;;
9465   esac
9466     for ac_exec_ext in '' $ac_executable_extensions; do
9467   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9468     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9469     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9470     break 2
9471   fi
9472 done
9473   done
9474 IFS=$as_save_IFS
9475
9476 fi
9477 fi
9478 OTOOL=$ac_cv_prog_OTOOL
9479 if test -n "$OTOOL"; then
9480   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9481 printf "%s\n" "$OTOOL" >&6; }
9482 else
9483   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9484 printf "%s\n" "no" >&6; }
9485 fi
9486
9487
9488 fi
9489 if test -z "$ac_cv_prog_OTOOL"; then
9490   ac_ct_OTOOL=$OTOOL
9491   # Extract the first word of "otool", so it can be a program name with args.
9492 set dummy otool; ac_word=$2
9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9494 printf %s "checking for $ac_word... " >&6; }
9495 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9496 then :
9497   printf %s "(cached) " >&6
9498 else $as_nop
9499   if test -n "$ac_ct_OTOOL"; then
9500   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9501 else
9502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9503 for as_dir in $PATH
9504 do
9505   IFS=$as_save_IFS
9506   case $as_dir in #(((
9507     '') as_dir=./ ;;
9508     */) ;;
9509     *) as_dir=$as_dir/ ;;
9510   esac
9511     for ac_exec_ext in '' $ac_executable_extensions; do
9512   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9513     ac_cv_prog_ac_ct_OTOOL="otool"
9514     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9515     break 2
9516   fi
9517 done
9518   done
9519 IFS=$as_save_IFS
9520
9521 fi
9522 fi
9523 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9524 if test -n "$ac_ct_OTOOL"; then
9525   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9526 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9527 else
9528   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9529 printf "%s\n" "no" >&6; }
9530 fi
9531
9532   if test "x$ac_ct_OTOOL" = x; then
9533     OTOOL=":"
9534   else
9535     case $cross_compiling:$ac_tool_warned in
9536 yes:)
9537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9538 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9539 ac_tool_warned=yes ;;
9540 esac
9541     OTOOL=$ac_ct_OTOOL
9542   fi
9543 else
9544   OTOOL="$ac_cv_prog_OTOOL"
9545 fi
9546
9547     if test -n "$ac_tool_prefix"; then
9548   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9549 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9551 printf %s "checking for $ac_word... " >&6; }
9552 if test ${ac_cv_prog_OTOOL64+y}
9553 then :
9554   printf %s "(cached) " >&6
9555 else $as_nop
9556   if test -n "$OTOOL64"; then
9557   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9558 else
9559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9560 for as_dir in $PATH
9561 do
9562   IFS=$as_save_IFS
9563   case $as_dir in #(((
9564     '') as_dir=./ ;;
9565     */) ;;
9566     *) as_dir=$as_dir/ ;;
9567   esac
9568     for ac_exec_ext in '' $ac_executable_extensions; do
9569   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9570     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9571     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9572     break 2
9573   fi
9574 done
9575   done
9576 IFS=$as_save_IFS
9577
9578 fi
9579 fi
9580 OTOOL64=$ac_cv_prog_OTOOL64
9581 if test -n "$OTOOL64"; then
9582   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9583 printf "%s\n" "$OTOOL64" >&6; }
9584 else
9585   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9586 printf "%s\n" "no" >&6; }
9587 fi
9588
9589
9590 fi
9591 if test -z "$ac_cv_prog_OTOOL64"; then
9592   ac_ct_OTOOL64=$OTOOL64
9593   # Extract the first word of "otool64", so it can be a program name with args.
9594 set dummy otool64; ac_word=$2
9595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9596 printf %s "checking for $ac_word... " >&6; }
9597 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9598 then :
9599   printf %s "(cached) " >&6
9600 else $as_nop
9601   if test -n "$ac_ct_OTOOL64"; then
9602   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9603 else
9604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9605 for as_dir in $PATH
9606 do
9607   IFS=$as_save_IFS
9608   case $as_dir in #(((
9609     '') as_dir=./ ;;
9610     */) ;;
9611     *) as_dir=$as_dir/ ;;
9612   esac
9613     for ac_exec_ext in '' $ac_executable_extensions; do
9614   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9615     ac_cv_prog_ac_ct_OTOOL64="otool64"
9616     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9617     break 2
9618   fi
9619 done
9620   done
9621 IFS=$as_save_IFS
9622
9623 fi
9624 fi
9625 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9626 if test -n "$ac_ct_OTOOL64"; then
9627   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9628 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9629 else
9630   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 printf "%s\n" "no" >&6; }
9632 fi
9633
9634   if test "x$ac_ct_OTOOL64" = x; then
9635     OTOOL64=":"
9636   else
9637     case $cross_compiling:$ac_tool_warned in
9638 yes:)
9639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9640 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9641 ac_tool_warned=yes ;;
9642 esac
9643     OTOOL64=$ac_ct_OTOOL64
9644   fi
9645 else
9646   OTOOL64="$ac_cv_prog_OTOOL64"
9647 fi
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9676 printf %s "checking for -single_module linker flag... " >&6; }
9677 if test ${lt_cv_apple_cc_single_mod+y}
9678 then :
9679   printf %s "(cached) " >&6
9680 else $as_nop
9681   lt_cv_apple_cc_single_mod=no
9682       if test -z "$LT_MULTI_MODULE"; then
9683         # By default we will add the -single_module flag. You can override
9684         # by either setting the environment variable LT_MULTI_MODULE
9685         # non-empty at configure time, or by adding -multi_module to the
9686         # link flags.
9687         rm -rf libconftest.dylib*
9688         echo "int foo(void){return 1;}" > conftest.c
9689         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9690 -dynamiclib -Wl,-single_module conftest.c" >&5
9691         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9692           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9693         _lt_result=$?
9694         # If there is a non-empty error log, and "single_module"
9695         # appears in it, assume the flag caused a linker warning
9696         if test -s conftest.err && $GREP single_module conftest.err; then
9697           cat conftest.err >&5
9698         # Otherwise, if the output was created with a 0 exit code from
9699         # the compiler, it worked.
9700         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9701           lt_cv_apple_cc_single_mod=yes
9702         else
9703           cat conftest.err >&5
9704         fi
9705         rm -rf libconftest.dylib*
9706         rm -f conftest.*
9707       fi
9708 fi
9709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9710 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9711
9712     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9713 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9714 if test ${lt_cv_ld_exported_symbols_list+y}
9715 then :
9716   printf %s "(cached) " >&6
9717 else $as_nop
9718   lt_cv_ld_exported_symbols_list=no
9719       save_LDFLAGS=$LDFLAGS
9720       echo "_main" > conftest.sym
9721       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9722       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9723 /* end confdefs.h.  */
9724
9725 int
9726 main (void)
9727 {
9728
9729   ;
9730   return 0;
9731 }
9732 _ACEOF
9733 if ac_fn_c_try_link "$LINENO"
9734 then :
9735   lt_cv_ld_exported_symbols_list=yes
9736 else $as_nop
9737   lt_cv_ld_exported_symbols_list=no
9738 fi
9739 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9740     conftest$ac_exeext conftest.$ac_ext
9741         LDFLAGS=$save_LDFLAGS
9742
9743 fi
9744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9745 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9746
9747     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9748 printf %s "checking for -force_load linker flag... " >&6; }
9749 if test ${lt_cv_ld_force_load+y}
9750 then :
9751   printf %s "(cached) " >&6
9752 else $as_nop
9753   lt_cv_ld_force_load=no
9754       cat > conftest.c << _LT_EOF
9755 int forced_loaded() { return 2;}
9756 _LT_EOF
9757       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9758       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9759       echo "$AR cr libconftest.a conftest.o" >&5
9760       $AR cr libconftest.a conftest.o 2>&5
9761       echo "$RANLIB libconftest.a" >&5
9762       $RANLIB libconftest.a 2>&5
9763       cat > conftest.c << _LT_EOF
9764 int main() { return 0;}
9765 _LT_EOF
9766       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9767       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9768       _lt_result=$?
9769       if test -s conftest.err && $GREP force_load conftest.err; then
9770         cat conftest.err >&5
9771       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9772         lt_cv_ld_force_load=yes
9773       else
9774         cat conftest.err >&5
9775       fi
9776         rm -f conftest.err libconftest.a conftest conftest.c
9777         rm -rf conftest.dSYM
9778
9779 fi
9780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9781 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9782     case $host_os in
9783     rhapsody* | darwin1.[012])
9784       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9785     darwin1.*)
9786       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9787     darwin*) # darwin 5.x on
9788       # if running on 10.5 or later, the deployment target defaults
9789       # to the OS version, if on x86, and 10.4, the deployment
9790       # target defaults to 10.4. Don't you love it?
9791       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9792         10.0,*86*-darwin8*|10.0,*-darwin[912]*)
9793           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9794         10.[012][,.]*)
9795           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9796         10.*|11.*)
9797           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9798       esac
9799     ;;
9800   esac
9801     if test yes = "$lt_cv_apple_cc_single_mod"; then
9802       _lt_dar_single_mod='$single_module'
9803     fi
9804     if test yes = "$lt_cv_ld_exported_symbols_list"; then
9805       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9806     else
9807       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9808     fi
9809     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9810       _lt_dsymutil='~$DSYMUTIL $lib || :'
9811     else
9812       _lt_dsymutil=
9813     fi
9814     ;;
9815   esac
9816
9817 # func_munge_path_list VARIABLE PATH
9818 # -----------------------------------
9819 # VARIABLE is name of variable containing _space_ separated list of
9820 # directories to be munged by the contents of PATH, which is string
9821 # having a format:
9822 # "DIR[:DIR]:"
9823 #       string "DIR[ DIR]" will be prepended to VARIABLE
9824 # ":DIR[:DIR]"
9825 #       string "DIR[ DIR]" will be appended to VARIABLE
9826 # "DIRP[:DIRP]::[DIRA:]DIRA"
9827 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9828 #       "DIRA[ DIRA]" will be appended to VARIABLE
9829 # "DIR[:DIR]"
9830 #       VARIABLE will be replaced by "DIR[ DIR]"
9831 func_munge_path_list ()
9832 {
9833     case x$2 in
9834     x)
9835         ;;
9836     *:)
9837         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9838         ;;
9839     x:*)
9840         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9841         ;;
9842     *::*)
9843         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9844         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9845         ;;
9846     *)
9847         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9848         ;;
9849     esac
9850 }
9851
9852 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9853 "
9854 if test "x$ac_cv_header_dlfcn_h" = xyes
9855 then :
9856   printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9857
9858 fi
9859
9860
9861
9862
9863
9864 # Set options
9865
9866
9867
9868         enable_dlopen=no
9869
9870
9871   enable_win32_dll=no
9872
9873
9874             # Check whether --enable-shared was given.
9875 if test ${enable_shared+y}
9876 then :
9877   enableval=$enable_shared; p=${PACKAGE-default}
9878     case $enableval in
9879     yes) enable_shared=yes ;;
9880     no) enable_shared=no ;;
9881     *)
9882       enable_shared=no
9883       # Look at the argument we got.  We use all the common list separators.
9884       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9885       for pkg in $enableval; do
9886         IFS=$lt_save_ifs
9887         if test "X$pkg" = "X$p"; then
9888           enable_shared=yes
9889         fi
9890       done
9891       IFS=$lt_save_ifs
9892       ;;
9893     esac
9894 else $as_nop
9895   enable_shared=yes
9896 fi
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908 # Check whether --with-pic was given.
9909 if test ${with_pic+y}
9910 then :
9911   withval=$with_pic; lt_p=${PACKAGE-default}
9912     case $withval in
9913     yes|no) pic_mode=$withval ;;
9914     *)
9915       pic_mode=default
9916       # Look at the argument we got.  We use all the common list separators.
9917       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9918       for lt_pkg in $withval; do
9919         IFS=$lt_save_ifs
9920         if test "X$lt_pkg" = "X$lt_p"; then
9921           pic_mode=yes
9922         fi
9923       done
9924       IFS=$lt_save_ifs
9925       ;;
9926     esac
9927 else $as_nop
9928   pic_mode=default
9929 fi
9930
9931
9932
9933
9934
9935
9936
9937
9938   # Check whether --enable-fast-install was given.
9939 if test ${enable_fast_install+y}
9940 then :
9941   enableval=$enable_fast_install; p=${PACKAGE-default}
9942     case $enableval in
9943     yes) enable_fast_install=yes ;;
9944     no) enable_fast_install=no ;;
9945     *)
9946       enable_fast_install=no
9947       # Look at the argument we got.  We use all the common list separators.
9948       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9949       for pkg in $enableval; do
9950         IFS=$lt_save_ifs
9951         if test "X$pkg" = "X$p"; then
9952           enable_fast_install=yes
9953         fi
9954       done
9955       IFS=$lt_save_ifs
9956       ;;
9957     esac
9958 else $as_nop
9959   enable_fast_install=yes
9960 fi
9961
9962
9963
9964
9965
9966
9967
9968
9969   shared_archive_member_spec=
9970 case $host,$enable_shared in
9971 power*-*-aix[5-9]*,yes)
9972   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9973 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9974
9975 # Check whether --with-aix-soname was given.
9976 if test ${with_aix_soname+y}
9977 then :
9978   withval=$with_aix_soname; case $withval in
9979     aix|svr4|both)
9980       ;;
9981     *)
9982       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9983       ;;
9984     esac
9985     lt_cv_with_aix_soname=$with_aix_soname
9986 else $as_nop
9987   if test ${lt_cv_with_aix_soname+y}
9988 then :
9989   printf %s "(cached) " >&6
9990 else $as_nop
9991   lt_cv_with_aix_soname=aix
9992 fi
9993
9994     with_aix_soname=$lt_cv_with_aix_soname
9995 fi
9996
9997   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9998 printf "%s\n" "$with_aix_soname" >&6; }
9999   if test aix != "$with_aix_soname"; then
10000     # For the AIX way of multilib, we name the shared archive member
10001     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10002     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10003     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10004     # the AIX toolchain works better with OBJECT_MODE set (default 32).
10005     if test 64 = "${OBJECT_MODE-32}"; then
10006       shared_archive_member_spec=shr_64
10007     else
10008       shared_archive_member_spec=shr
10009     fi
10010   fi
10011   ;;
10012 *)
10013   with_aix_soname=aix
10014   ;;
10015 esac
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026 # This can be used to rebuild libtool when needed
10027 LIBTOOL_DEPS=$ltmain
10028
10029 # Always use our own libtool.
10030 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061 test -z "$LN_S" && LN_S="ln -s"
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076 if test -n "${ZSH_VERSION+set}"; then
10077    setopt NO_GLOB_SUBST
10078 fi
10079
10080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10081 printf %s "checking for objdir... " >&6; }
10082 if test ${lt_cv_objdir+y}
10083 then :
10084   printf %s "(cached) " >&6
10085 else $as_nop
10086   rm -f .libs 2>/dev/null
10087 mkdir .libs 2>/dev/null
10088 if test -d .libs; then
10089   lt_cv_objdir=.libs
10090 else
10091   # MS-DOS does not allow filenames that begin with a dot.
10092   lt_cv_objdir=_libs
10093 fi
10094 rmdir .libs 2>/dev/null
10095 fi
10096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10097 printf "%s\n" "$lt_cv_objdir" >&6; }
10098 objdir=$lt_cv_objdir
10099
10100
10101
10102
10103
10104 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10105
10106
10107
10108
10109 case $host_os in
10110 aix3*)
10111   # AIX sometimes has problems with the GCC collect2 program.  For some
10112   # reason, if we set the COLLECT_NAMES environment variable, the problems
10113   # vanish in a puff of smoke.
10114   if test set != "${COLLECT_NAMES+set}"; then
10115     COLLECT_NAMES=
10116     export COLLECT_NAMES
10117   fi
10118   ;;
10119 esac
10120
10121 # Global variables:
10122 ofile=libtool
10123 can_build_shared=yes
10124
10125 # All known linkers require a '.a' archive for static linking (except MSVC,
10126 # which needs '.lib').
10127 libext=a
10128
10129 with_gnu_ld=$lt_cv_prog_gnu_ld
10130
10131 old_CC=$CC
10132 old_CFLAGS=$CFLAGS
10133
10134 # Set sane defaults for various variables
10135 test -z "$CC" && CC=cc
10136 test -z "$LTCC" && LTCC=$CC
10137 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10138 test -z "$LD" && LD=ld
10139 test -z "$ac_objext" && ac_objext=o
10140
10141 func_cc_basename $compiler
10142 cc_basename=$func_cc_basename_result
10143
10144
10145 # Only perform the check for file, if the check method requires it
10146 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10147 case $deplibs_check_method in
10148 file_magic*)
10149   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10150     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10151 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10152 if test ${lt_cv_path_MAGIC_CMD+y}
10153 then :
10154   printf %s "(cached) " >&6
10155 else $as_nop
10156   case $MAGIC_CMD in
10157 [\\/*] |  ?:[\\/]*)
10158   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10159   ;;
10160 *)
10161   lt_save_MAGIC_CMD=$MAGIC_CMD
10162   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10163   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10164   for ac_dir in $ac_dummy; do
10165     IFS=$lt_save_ifs
10166     test -z "$ac_dir" && ac_dir=.
10167     if test -f "$ac_dir/${ac_tool_prefix}file"; then
10168       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10169       if test -n "$file_magic_test_file"; then
10170         case $deplibs_check_method in
10171         "file_magic "*)
10172           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10173           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10174           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10175             $EGREP "$file_magic_regex" > /dev/null; then
10176             :
10177           else
10178             cat <<_LT_EOF 1>&2
10179
10180 *** Warning: the command libtool uses to detect shared libraries,
10181 *** $file_magic_cmd, produces output that libtool cannot recognize.
10182 *** The result is that libtool may fail to recognize shared libraries
10183 *** as such.  This will affect the creation of libtool libraries that
10184 *** depend on shared libraries, but programs linked with such libtool
10185 *** libraries will work regardless of this problem.  Nevertheless, you
10186 *** may want to report the problem to your system manager and/or to
10187 *** bug-libtool@gnu.org
10188
10189 _LT_EOF
10190           fi ;;
10191         esac
10192       fi
10193       break
10194     fi
10195   done
10196   IFS=$lt_save_ifs
10197   MAGIC_CMD=$lt_save_MAGIC_CMD
10198   ;;
10199 esac
10200 fi
10201
10202 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10203 if test -n "$MAGIC_CMD"; then
10204   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10205 printf "%s\n" "$MAGIC_CMD" >&6; }
10206 else
10207   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10208 printf "%s\n" "no" >&6; }
10209 fi
10210
10211
10212
10213
10214
10215 if test -z "$lt_cv_path_MAGIC_CMD"; then
10216   if test -n "$ac_tool_prefix"; then
10217     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10218 printf %s "checking for file... " >&6; }
10219 if test ${lt_cv_path_MAGIC_CMD+y}
10220 then :
10221   printf %s "(cached) " >&6
10222 else $as_nop
10223   case $MAGIC_CMD in
10224 [\\/*] |  ?:[\\/]*)
10225   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10226   ;;
10227 *)
10228   lt_save_MAGIC_CMD=$MAGIC_CMD
10229   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10230   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10231   for ac_dir in $ac_dummy; do
10232     IFS=$lt_save_ifs
10233     test -z "$ac_dir" && ac_dir=.
10234     if test -f "$ac_dir/file"; then
10235       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10236       if test -n "$file_magic_test_file"; then
10237         case $deplibs_check_method in
10238         "file_magic "*)
10239           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10240           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10241           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10242             $EGREP "$file_magic_regex" > /dev/null; then
10243             :
10244           else
10245             cat <<_LT_EOF 1>&2
10246
10247 *** Warning: the command libtool uses to detect shared libraries,
10248 *** $file_magic_cmd, produces output that libtool cannot recognize.
10249 *** The result is that libtool may fail to recognize shared libraries
10250 *** as such.  This will affect the creation of libtool libraries that
10251 *** depend on shared libraries, but programs linked with such libtool
10252 *** libraries will work regardless of this problem.  Nevertheless, you
10253 *** may want to report the problem to your system manager and/or to
10254 *** bug-libtool@gnu.org
10255
10256 _LT_EOF
10257           fi ;;
10258         esac
10259       fi
10260       break
10261     fi
10262   done
10263   IFS=$lt_save_ifs
10264   MAGIC_CMD=$lt_save_MAGIC_CMD
10265   ;;
10266 esac
10267 fi
10268
10269 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10270 if test -n "$MAGIC_CMD"; then
10271   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10272 printf "%s\n" "$MAGIC_CMD" >&6; }
10273 else
10274   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10275 printf "%s\n" "no" >&6; }
10276 fi
10277
10278
10279   else
10280     MAGIC_CMD=:
10281   fi
10282 fi
10283
10284   fi
10285   ;;
10286 esac
10287
10288 # Use C for the default configuration in the libtool script
10289
10290 lt_save_CC=$CC
10291 ac_ext=c
10292 ac_cpp='$CPP $CPPFLAGS'
10293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10296
10297
10298 # Source file extension for C test sources.
10299 ac_ext=c
10300
10301 # Object file extension for compiled C test sources.
10302 objext=o
10303 objext=$objext
10304
10305 # Code to be used in simple compile tests
10306 lt_simple_compile_test_code="int some_variable = 0;"
10307
10308 # Code to be used in simple link tests
10309 lt_simple_link_test_code='int main(){return(0);}'
10310
10311
10312
10313
10314
10315
10316
10317 # If no C compiler was specified, use CC.
10318 LTCC=${LTCC-"$CC"}
10319
10320 # If no C compiler flags were specified, use CFLAGS.
10321 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10322
10323 # Allow CC to be a program name with arguments.
10324 compiler=$CC
10325
10326 # Save the default compiler, since it gets overwritten when the other
10327 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10328 compiler_DEFAULT=$CC
10329
10330 # save warnings/boilerplate of simple test code
10331 ac_outfile=conftest.$ac_objext
10332 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10333 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10334 _lt_compiler_boilerplate=`cat conftest.err`
10335 $RM conftest*
10336
10337 ac_outfile=conftest.$ac_objext
10338 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10339 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10340 _lt_linker_boilerplate=`cat conftest.err`
10341 $RM -r conftest*
10342
10343
10344 ## CAVEAT EMPTOR:
10345 ## There is no encapsulation within the following macros, do not change
10346 ## the running order or otherwise move them around unless you know exactly
10347 ## what you are doing...
10348 if test -n "$compiler"; then
10349
10350 lt_prog_compiler_no_builtin_flag=
10351
10352 if test yes = "$GCC"; then
10353   case $cc_basename in
10354   nvcc*)
10355     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10356   *)
10357     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10358   esac
10359
10360   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10361 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10362 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10363 then :
10364   printf %s "(cached) " >&6
10365 else $as_nop
10366   lt_cv_prog_compiler_rtti_exceptions=no
10367    ac_outfile=conftest.$ac_objext
10368    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10369    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10370    # Insert the option either (1) after the last *FLAGS variable, or
10371    # (2) before a word containing "conftest.", or (3) at the end.
10372    # Note that $ac_compile itself does not contain backslashes and begins
10373    # with a dollar sign (not a hyphen), so the echo should work correctly.
10374    # The option is referenced via a variable to avoid confusing sed.
10375    lt_compile=`echo "$ac_compile" | $SED \
10376    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10377    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10378    -e 's:$: $lt_compiler_flag:'`
10379    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10380    (eval "$lt_compile" 2>conftest.err)
10381    ac_status=$?
10382    cat conftest.err >&5
10383    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384    if (exit $ac_status) && test -s "$ac_outfile"; then
10385      # The compiler can only warn and ignore the option if not recognized
10386      # So say no if there are warnings other than the usual output.
10387      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10388      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10389      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10390        lt_cv_prog_compiler_rtti_exceptions=yes
10391      fi
10392    fi
10393    $RM conftest*
10394
10395 fi
10396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10397 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10398
10399 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10400     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10401 else
10402     :
10403 fi
10404
10405 fi
10406
10407
10408
10409
10410
10411
10412   lt_prog_compiler_wl=
10413 lt_prog_compiler_pic=
10414 lt_prog_compiler_static=
10415
10416
10417   if test yes = "$GCC"; then
10418     lt_prog_compiler_wl='-Wl,'
10419     lt_prog_compiler_static='-static'
10420
10421     case $host_os in
10422       aix*)
10423       # All AIX code is PIC.
10424       if test ia64 = "$host_cpu"; then
10425         # AIX 5 now supports IA64 processor
10426         lt_prog_compiler_static='-Bstatic'
10427       fi
10428       lt_prog_compiler_pic='-fPIC'
10429       ;;
10430
10431     amigaos*)
10432       case $host_cpu in
10433       powerpc)
10434             # see comment about AmigaOS4 .so support
10435             lt_prog_compiler_pic='-fPIC'
10436         ;;
10437       m68k)
10438             # FIXME: we need at least 68020 code to build shared libraries, but
10439             # adding the '-m68020' flag to GCC prevents building anything better,
10440             # like '-m68040'.
10441             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10442         ;;
10443       esac
10444       ;;
10445
10446     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10447       # PIC is the default for these OSes.
10448       ;;
10449
10450     mingw* | cygwin* | pw32* | os2* | cegcc*)
10451       # This hack is so that the source file can tell whether it is being
10452       # built for inclusion in a dll (and should export symbols for example).
10453       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10454       # (--disable-auto-import) libraries
10455       lt_prog_compiler_pic='-DDLL_EXPORT'
10456       case $host_os in
10457       os2*)
10458         lt_prog_compiler_static='$wl-static'
10459         ;;
10460       esac
10461       ;;
10462
10463     darwin* | rhapsody*)
10464       # PIC is the default on this platform
10465       # Common symbols not allowed in MH_DYLIB files
10466       lt_prog_compiler_pic='-fno-common'
10467       ;;
10468
10469     haiku*)
10470       # PIC is the default for Haiku.
10471       # The "-static" flag exists, but is broken.
10472       lt_prog_compiler_static=
10473       ;;
10474
10475     hpux*)
10476       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10477       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10478       # sets the default TLS model and affects inlining.
10479       case $host_cpu in
10480       hppa*64*)
10481         # +Z the default
10482         ;;
10483       *)
10484         lt_prog_compiler_pic='-fPIC'
10485         ;;
10486       esac
10487       ;;
10488
10489     interix[3-9]*)
10490       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10491       # Instead, we relocate shared libraries at runtime.
10492       ;;
10493
10494     msdosdjgpp*)
10495       # Just because we use GCC doesn't mean we suddenly get shared libraries
10496       # on systems that don't support them.
10497       lt_prog_compiler_can_build_shared=no
10498       enable_shared=no
10499       ;;
10500
10501     *nto* | *qnx*)
10502       # QNX uses GNU C++, but need to define -shared option too, otherwise
10503       # it will coredump.
10504       lt_prog_compiler_pic='-fPIC -shared'
10505       ;;
10506
10507     sysv4*MP*)
10508       if test -d /usr/nec; then
10509         lt_prog_compiler_pic=-Kconform_pic
10510       fi
10511       ;;
10512
10513     *)
10514       lt_prog_compiler_pic='-fPIC'
10515       ;;
10516     esac
10517
10518     case $cc_basename in
10519     nvcc*) # Cuda Compiler Driver 2.2
10520       lt_prog_compiler_wl='-Xlinker '
10521       if test -n "$lt_prog_compiler_pic"; then
10522         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10523       fi
10524       ;;
10525     esac
10526   else
10527     # PORTME Check for flag to pass linker flags through the system compiler.
10528     case $host_os in
10529     aix*)
10530       lt_prog_compiler_wl='-Wl,'
10531       if test ia64 = "$host_cpu"; then
10532         # AIX 5 now supports IA64 processor
10533         lt_prog_compiler_static='-Bstatic'
10534       else
10535         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10536       fi
10537       ;;
10538
10539     darwin* | rhapsody*)
10540       # PIC is the default on this platform
10541       # Common symbols not allowed in MH_DYLIB files
10542       lt_prog_compiler_pic='-fno-common'
10543       case $cc_basename in
10544       nagfor*)
10545         # NAG Fortran compiler
10546         lt_prog_compiler_wl='-Wl,-Wl,,'
10547         lt_prog_compiler_pic='-PIC'
10548         lt_prog_compiler_static='-Bstatic'
10549         ;;
10550       esac
10551       ;;
10552
10553     mingw* | cygwin* | pw32* | os2* | cegcc*)
10554       # This hack is so that the source file can tell whether it is being
10555       # built for inclusion in a dll (and should export symbols for example).
10556       lt_prog_compiler_pic='-DDLL_EXPORT'
10557       case $host_os in
10558       os2*)
10559         lt_prog_compiler_static='$wl-static'
10560         ;;
10561       esac
10562       ;;
10563
10564     hpux9* | hpux10* | hpux11*)
10565       lt_prog_compiler_wl='-Wl,'
10566       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10567       # not for PA HP-UX.
10568       case $host_cpu in
10569       hppa*64*|ia64*)
10570         # +Z the default
10571         ;;
10572       *)
10573         lt_prog_compiler_pic='+Z'
10574         ;;
10575       esac
10576       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10577       lt_prog_compiler_static='$wl-a ${wl}archive'
10578       ;;
10579
10580     irix5* | irix6* | nonstopux*)
10581       lt_prog_compiler_wl='-Wl,'
10582       # PIC (with -KPIC) is the default.
10583       lt_prog_compiler_static='-non_shared'
10584       ;;
10585
10586     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10587       case $cc_basename in
10588       # old Intel for x86_64, which still supported -KPIC.
10589       ecc*)
10590         lt_prog_compiler_wl='-Wl,'
10591         lt_prog_compiler_pic='-KPIC'
10592         lt_prog_compiler_static='-static'
10593         ;;
10594       # flang / f18. f95 an alias for gfortran or flang on Debian
10595       flang* | f18* | f95*)
10596         lt_prog_compiler_wl='-Wl,'
10597         lt_prog_compiler_pic='-fPIC'
10598         lt_prog_compiler_static='-static'
10599         ;;
10600       # icc used to be incompatible with GCC.
10601       # ICC 10 doesn't accept -KPIC any more.
10602       icc* | ifort*)
10603         lt_prog_compiler_wl='-Wl,'
10604         lt_prog_compiler_pic='-fPIC'
10605         lt_prog_compiler_static='-static'
10606         ;;
10607       # Lahey Fortran 8.1.
10608       lf95*)
10609         lt_prog_compiler_wl='-Wl,'
10610         lt_prog_compiler_pic='--shared'
10611         lt_prog_compiler_static='--static'
10612         ;;
10613       nagfor*)
10614         # NAG Fortran compiler
10615         lt_prog_compiler_wl='-Wl,-Wl,,'
10616         lt_prog_compiler_pic='-PIC'
10617         lt_prog_compiler_static='-Bstatic'
10618         ;;
10619       tcc*)
10620         # Fabrice Bellard et al's Tiny C Compiler
10621         lt_prog_compiler_wl='-Wl,'
10622         lt_prog_compiler_pic='-fPIC'
10623         lt_prog_compiler_static='-static'
10624         ;;
10625       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10626         # Portland Group compilers (*not* the Pentium gcc compiler,
10627         # which looks to be a dead project)
10628         lt_prog_compiler_wl='-Wl,'
10629         lt_prog_compiler_pic='-fpic'
10630         lt_prog_compiler_static='-Bstatic'
10631         ;;
10632       ccc*)
10633         lt_prog_compiler_wl='-Wl,'
10634         # All Alpha code is PIC.
10635         lt_prog_compiler_static='-non_shared'
10636         ;;
10637       xl* | bgxl* | bgf* | mpixl*)
10638         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10639         lt_prog_compiler_wl='-Wl,'
10640         lt_prog_compiler_pic='-qpic'
10641         lt_prog_compiler_static='-qstaticlink'
10642         ;;
10643       *)
10644         case `$CC -V 2>&1 | sed 5q` in
10645         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10646           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10647           lt_prog_compiler_pic='-KPIC'
10648           lt_prog_compiler_static='-Bstatic'
10649           lt_prog_compiler_wl=''
10650           ;;
10651         *Sun\ F* | *Sun*Fortran*)
10652           lt_prog_compiler_pic='-KPIC'
10653           lt_prog_compiler_static='-Bstatic'
10654           lt_prog_compiler_wl='-Qoption ld '
10655           ;;
10656         *Sun\ C*)
10657           # Sun C 5.9
10658           lt_prog_compiler_pic='-KPIC'
10659           lt_prog_compiler_static='-Bstatic'
10660           lt_prog_compiler_wl='-Wl,'
10661           ;;
10662         *Intel*\ [CF]*Compiler*)
10663           lt_prog_compiler_wl='-Wl,'
10664           lt_prog_compiler_pic='-fPIC'
10665           lt_prog_compiler_static='-static'
10666           ;;
10667         *Portland\ Group*)
10668           lt_prog_compiler_wl='-Wl,'
10669           lt_prog_compiler_pic='-fpic'
10670           lt_prog_compiler_static='-Bstatic'
10671           ;;
10672         esac
10673         ;;
10674       esac
10675       ;;
10676
10677     newsos6)
10678       lt_prog_compiler_pic='-KPIC'
10679       lt_prog_compiler_static='-Bstatic'
10680       ;;
10681
10682     *nto* | *qnx*)
10683       # QNX uses GNU C++, but need to define -shared option too, otherwise
10684       # it will coredump.
10685       lt_prog_compiler_pic='-fPIC -shared'
10686       ;;
10687
10688     osf3* | osf4* | osf5*)
10689       lt_prog_compiler_wl='-Wl,'
10690       # All OSF/1 code is PIC.
10691       lt_prog_compiler_static='-non_shared'
10692       ;;
10693
10694     rdos*)
10695       lt_prog_compiler_static='-non_shared'
10696       ;;
10697
10698     solaris*)
10699       lt_prog_compiler_pic='-KPIC'
10700       lt_prog_compiler_static='-Bstatic'
10701       case $cc_basename in
10702       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10703         lt_prog_compiler_wl='-Qoption ld ';;
10704       *)
10705         lt_prog_compiler_wl='-Wl,';;
10706       esac
10707       ;;
10708
10709     sunos4*)
10710       lt_prog_compiler_wl='-Qoption ld '
10711       lt_prog_compiler_pic='-PIC'
10712       lt_prog_compiler_static='-Bstatic'
10713       ;;
10714
10715     sysv4 | sysv4.2uw2* | sysv4.3*)
10716       lt_prog_compiler_wl='-Wl,'
10717       lt_prog_compiler_pic='-KPIC'
10718       lt_prog_compiler_static='-Bstatic'
10719       ;;
10720
10721     sysv4*MP*)
10722       if test -d /usr/nec; then
10723         lt_prog_compiler_pic='-Kconform_pic'
10724         lt_prog_compiler_static='-Bstatic'
10725       fi
10726       ;;
10727
10728     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10729       lt_prog_compiler_wl='-Wl,'
10730       lt_prog_compiler_pic='-KPIC'
10731       lt_prog_compiler_static='-Bstatic'
10732       ;;
10733
10734     unicos*)
10735       lt_prog_compiler_wl='-Wl,'
10736       lt_prog_compiler_can_build_shared=no
10737       ;;
10738
10739     uts4*)
10740       lt_prog_compiler_pic='-pic'
10741       lt_prog_compiler_static='-Bstatic'
10742       ;;
10743
10744     *)
10745       lt_prog_compiler_can_build_shared=no
10746       ;;
10747     esac
10748   fi
10749
10750 case $host_os in
10751   # For platforms that do not support PIC, -DPIC is meaningless:
10752   *djgpp*)
10753     lt_prog_compiler_pic=
10754     ;;
10755   *)
10756     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10757     ;;
10758 esac
10759
10760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10761 printf %s "checking for $compiler option to produce PIC... " >&6; }
10762 if test ${lt_cv_prog_compiler_pic+y}
10763 then :
10764   printf %s "(cached) " >&6
10765 else $as_nop
10766   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10767 fi
10768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10769 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10770 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10771
10772 #
10773 # Check to make sure the PIC flag actually works.
10774 #
10775 if test -n "$lt_prog_compiler_pic"; then
10776   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10777 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10778 if test ${lt_cv_prog_compiler_pic_works+y}
10779 then :
10780   printf %s "(cached) " >&6
10781 else $as_nop
10782   lt_cv_prog_compiler_pic_works=no
10783    ac_outfile=conftest.$ac_objext
10784    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10785    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10786    # Insert the option either (1) after the last *FLAGS variable, or
10787    # (2) before a word containing "conftest.", or (3) at the end.
10788    # Note that $ac_compile itself does not contain backslashes and begins
10789    # with a dollar sign (not a hyphen), so the echo should work correctly.
10790    # The option is referenced via a variable to avoid confusing sed.
10791    lt_compile=`echo "$ac_compile" | $SED \
10792    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10793    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10794    -e 's:$: $lt_compiler_flag:'`
10795    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10796    (eval "$lt_compile" 2>conftest.err)
10797    ac_status=$?
10798    cat conftest.err >&5
10799    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800    if (exit $ac_status) && test -s "$ac_outfile"; then
10801      # The compiler can only warn and ignore the option if not recognized
10802      # So say no if there are warnings other than the usual output.
10803      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10804      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10805      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10806        lt_cv_prog_compiler_pic_works=yes
10807      fi
10808    fi
10809    $RM conftest*
10810
10811 fi
10812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10813 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10814
10815 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10816     case $lt_prog_compiler_pic in
10817      "" | " "*) ;;
10818      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10819      esac
10820 else
10821     lt_prog_compiler_pic=
10822      lt_prog_compiler_can_build_shared=no
10823 fi
10824
10825 fi
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837 #
10838 # Check to make sure the static flag actually works.
10839 #
10840 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10842 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10843 if test ${lt_cv_prog_compiler_static_works+y}
10844 then :
10845   printf %s "(cached) " >&6
10846 else $as_nop
10847   lt_cv_prog_compiler_static_works=no
10848    save_LDFLAGS=$LDFLAGS
10849    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10850    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10851    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10852      # The linker can only warn and ignore the option if not recognized
10853      # So say no if there are warnings
10854      if test -s conftest.err; then
10855        # Append any errors to the config.log.
10856        cat conftest.err 1>&5
10857        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10858        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10859        if diff conftest.exp conftest.er2 >/dev/null; then
10860          lt_cv_prog_compiler_static_works=yes
10861        fi
10862      else
10863        lt_cv_prog_compiler_static_works=yes
10864      fi
10865    fi
10866    $RM -r conftest*
10867    LDFLAGS=$save_LDFLAGS
10868
10869 fi
10870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10871 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10872
10873 if test yes = "$lt_cv_prog_compiler_static_works"; then
10874     :
10875 else
10876     lt_prog_compiler_static=
10877 fi
10878
10879
10880
10881
10882
10883
10884
10885   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10886 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10887 if test ${lt_cv_prog_compiler_c_o+y}
10888 then :
10889   printf %s "(cached) " >&6
10890 else $as_nop
10891   lt_cv_prog_compiler_c_o=no
10892    $RM -r conftest 2>/dev/null
10893    mkdir conftest
10894    cd conftest
10895    mkdir out
10896    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10897
10898    lt_compiler_flag="-o out/conftest2.$ac_objext"
10899    # Insert the option either (1) after the last *FLAGS variable, or
10900    # (2) before a word containing "conftest.", or (3) at the end.
10901    # Note that $ac_compile itself does not contain backslashes and begins
10902    # with a dollar sign (not a hyphen), so the echo should work correctly.
10903    lt_compile=`echo "$ac_compile" | $SED \
10904    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10905    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10906    -e 's:$: $lt_compiler_flag:'`
10907    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10908    (eval "$lt_compile" 2>out/conftest.err)
10909    ac_status=$?
10910    cat out/conftest.err >&5
10911    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10913    then
10914      # The compiler can only warn and ignore the option if not recognized
10915      # So say no if there are warnings
10916      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10917      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10918      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10919        lt_cv_prog_compiler_c_o=yes
10920      fi
10921    fi
10922    chmod u+w . 2>&5
10923    $RM conftest*
10924    # SGI C++ compiler will create directory out/ii_files/ for
10925    # template instantiation
10926    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10927    $RM out/* && rmdir out
10928    cd ..
10929    $RM -r conftest
10930    $RM conftest*
10931
10932 fi
10933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10934 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10935
10936
10937
10938
10939
10940
10941   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10942 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10943 if test ${lt_cv_prog_compiler_c_o+y}
10944 then :
10945   printf %s "(cached) " >&6
10946 else $as_nop
10947   lt_cv_prog_compiler_c_o=no
10948    $RM -r conftest 2>/dev/null
10949    mkdir conftest
10950    cd conftest
10951    mkdir out
10952    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10953
10954    lt_compiler_flag="-o out/conftest2.$ac_objext"
10955    # Insert the option either (1) after the last *FLAGS variable, or
10956    # (2) before a word containing "conftest.", or (3) at the end.
10957    # Note that $ac_compile itself does not contain backslashes and begins
10958    # with a dollar sign (not a hyphen), so the echo should work correctly.
10959    lt_compile=`echo "$ac_compile" | $SED \
10960    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10961    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10962    -e 's:$: $lt_compiler_flag:'`
10963    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10964    (eval "$lt_compile" 2>out/conftest.err)
10965    ac_status=$?
10966    cat out/conftest.err >&5
10967    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10969    then
10970      # The compiler can only warn and ignore the option if not recognized
10971      # So say no if there are warnings
10972      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10973      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10974      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10975        lt_cv_prog_compiler_c_o=yes
10976      fi
10977    fi
10978    chmod u+w . 2>&5
10979    $RM conftest*
10980    # SGI C++ compiler will create directory out/ii_files/ for
10981    # template instantiation
10982    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10983    $RM out/* && rmdir out
10984    cd ..
10985    $RM -r conftest
10986    $RM conftest*
10987
10988 fi
10989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10990 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10991
10992
10993
10994
10995 hard_links=nottested
10996 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10997   # do not overwrite the value of need_locks provided by the user
10998   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10999 printf %s "checking if we can lock with hard links... " >&6; }
11000   hard_links=yes
11001   $RM conftest*
11002   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11003   touch conftest.a
11004   ln conftest.a conftest.b 2>&5 || hard_links=no
11005   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11006   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11007 printf "%s\n" "$hard_links" >&6; }
11008   if test no = "$hard_links"; then
11009     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11010 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11011     need_locks=warn
11012   fi
11013 else
11014   need_locks=no
11015 fi
11016
11017
11018
11019
11020
11021
11022   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11023 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11024
11025   runpath_var=
11026   allow_undefined_flag=
11027   always_export_symbols=no
11028   archive_cmds=
11029   archive_expsym_cmds=
11030   compiler_needs_object=no
11031   enable_shared_with_static_runtimes=no
11032   export_dynamic_flag_spec=
11033   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11034   hardcode_automatic=no
11035   hardcode_direct=no
11036   hardcode_direct_absolute=no
11037   hardcode_libdir_flag_spec=
11038   hardcode_libdir_separator=
11039   hardcode_minus_L=no
11040   hardcode_shlibpath_var=unsupported
11041   inherit_rpath=no
11042   link_all_deplibs=unknown
11043   module_cmds=
11044   module_expsym_cmds=
11045   old_archive_from_new_cmds=
11046   old_archive_from_expsyms_cmds=
11047   thread_safe_flag_spec=
11048   whole_archive_flag_spec=
11049   # include_expsyms should be a list of space-separated symbols to be *always*
11050   # included in the symbol list
11051   include_expsyms=
11052   # exclude_expsyms can be an extended regexp of symbols to exclude
11053   # it will be wrapped by ' (' and ')$', so one must not match beginning or
11054   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11055   # as well as any symbol that contains 'd'.
11056   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11057   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11058   # platforms (ab)use it in PIC code, but their linkers get confused if
11059   # the symbol is explicitly referenced.  Since portable code cannot
11060   # rely on this symbol name, it's probably fine to never include it in
11061   # preloaded symbol tables.
11062   # Exclude shared library initialization/finalization symbols.
11063   extract_expsyms_cmds=
11064
11065   case $host_os in
11066   cygwin* | mingw* | pw32* | cegcc*)
11067     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11068     # When not using gcc, we currently assume that we are using
11069     # Microsoft Visual C++.
11070     if test yes != "$GCC"; then
11071       with_gnu_ld=no
11072     fi
11073     ;;
11074   interix*)
11075     # we just hope/assume this is gcc and not c89 (= MSVC++)
11076     with_gnu_ld=yes
11077     ;;
11078   openbsd* | bitrig*)
11079     with_gnu_ld=no
11080     ;;
11081   linux* | k*bsd*-gnu | gnu*)
11082     link_all_deplibs=no
11083     ;;
11084   esac
11085
11086   ld_shlibs=yes
11087
11088   # On some targets, GNU ld is compatible enough with the native linker
11089   # that we're better off using the native interface for both.
11090   lt_use_gnu_ld_interface=no
11091   if test yes = "$with_gnu_ld"; then
11092     case $host_os in
11093       aix*)
11094         # The AIX port of GNU ld has always aspired to compatibility
11095         # with the native linker.  However, as the warning in the GNU ld
11096         # block says, versions before 2.19.5* couldn't really create working
11097         # shared libraries, regardless of the interface used.
11098         case `$LD -v 2>&1` in
11099           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11100           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11101           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11102           *)
11103             lt_use_gnu_ld_interface=yes
11104             ;;
11105         esac
11106         ;;
11107       *)
11108         lt_use_gnu_ld_interface=yes
11109         ;;
11110     esac
11111   fi
11112
11113   if test yes = "$lt_use_gnu_ld_interface"; then
11114     # If archive_cmds runs LD, not CC, wlarc should be empty
11115     wlarc='$wl'
11116
11117     # Set some defaults for GNU ld with shared library support. These
11118     # are reset later if shared libraries are not supported. Putting them
11119     # here allows them to be overridden if necessary.
11120     runpath_var=LD_RUN_PATH
11121     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11122     export_dynamic_flag_spec='$wl--export-dynamic'
11123     # ancient GNU ld didn't support --whole-archive et. al.
11124     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11125       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11126     else
11127       whole_archive_flag_spec=
11128     fi
11129     supports_anon_versioning=no
11130     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11131       *GNU\ gold*) supports_anon_versioning=yes ;;
11132       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11133       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11134       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11135       *\ 2.11.*) ;; # other 2.11 versions
11136       *) supports_anon_versioning=yes ;;
11137     esac
11138
11139     # See if GNU ld supports shared libraries.
11140     case $host_os in
11141     aix[3-9]*)
11142       # On AIX/PPC, the GNU linker is very broken
11143       if test ia64 != "$host_cpu"; then
11144         ld_shlibs=no
11145         cat <<_LT_EOF 1>&2
11146
11147 *** Warning: the GNU linker, at least up to release 2.19, is reported
11148 *** to be unable to reliably create shared libraries on AIX.
11149 *** Therefore, libtool is disabling shared libraries support.  If you
11150 *** really care for shared libraries, you may want to install binutils
11151 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11152 *** You will then need to restart the configuration process.
11153
11154 _LT_EOF
11155       fi
11156       ;;
11157
11158     amigaos*)
11159       case $host_cpu in
11160       powerpc)
11161             # see comment about AmigaOS4 .so support
11162             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11163             archive_expsym_cmds=''
11164         ;;
11165       m68k)
11166             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)'
11167             hardcode_libdir_flag_spec='-L$libdir'
11168             hardcode_minus_L=yes
11169         ;;
11170       esac
11171       ;;
11172
11173     beos*)
11174       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11175         allow_undefined_flag=unsupported
11176         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11177         # support --undefined.  This deserves some investigation.  FIXME
11178         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11179       else
11180         ld_shlibs=no
11181       fi
11182       ;;
11183
11184     cygwin* | mingw* | pw32* | cegcc*)
11185       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11186       # as there is no search path for DLLs.
11187       hardcode_libdir_flag_spec='-L$libdir'
11188       export_dynamic_flag_spec='$wl--export-all-symbols'
11189       allow_undefined_flag=unsupported
11190       always_export_symbols=no
11191       enable_shared_with_static_runtimes=yes
11192       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'
11193       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11194
11195       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11196         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11197         # If the export-symbols file already is a .def file, use it as
11198         # is; otherwise, prepend EXPORTS...
11199         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11200           cp $export_symbols $output_objdir/$soname.def;
11201         else
11202           echo EXPORTS > $output_objdir/$soname.def;
11203           cat $export_symbols >> $output_objdir/$soname.def;
11204         fi~
11205         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11206       else
11207         ld_shlibs=no
11208       fi
11209       ;;
11210
11211     haiku*)
11212       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11213       link_all_deplibs=yes
11214       ;;
11215
11216     os2*)
11217       hardcode_libdir_flag_spec='-L$libdir'
11218       hardcode_minus_L=yes
11219       allow_undefined_flag=unsupported
11220       shrext_cmds=.dll
11221       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11222         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11223         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11224         $ECHO EXPORTS >> $output_objdir/$libname.def~
11225         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11226         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11227         emximp -o $lib $output_objdir/$libname.def'
11228       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11229         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11230         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11231         $ECHO EXPORTS >> $output_objdir/$libname.def~
11232         prefix_cmds="$SED"~
11233         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11234           prefix_cmds="$prefix_cmds -e 1d";
11235         fi~
11236         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11237         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11238         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11239         emximp -o $lib $output_objdir/$libname.def'
11240       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11241       enable_shared_with_static_runtimes=yes
11242       ;;
11243
11244     interix[3-9]*)
11245       hardcode_direct=no
11246       hardcode_shlibpath_var=no
11247       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11248       export_dynamic_flag_spec='$wl-E'
11249       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11250       # Instead, shared libraries are loaded at an image base (0x10000000 by
11251       # default) and relocated if they conflict, which is a slow very memory
11252       # consuming and fragmenting process.  To avoid this, we pick a random,
11253       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11254       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11255       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11256       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'
11257       ;;
11258
11259     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11260       tmp_diet=no
11261       if test linux-dietlibc = "$host_os"; then
11262         case $cc_basename in
11263           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11264         esac
11265       fi
11266       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11267          && test no = "$tmp_diet"
11268       then
11269         tmp_addflag=' $pic_flag'
11270         tmp_sharedflag='-shared'
11271         case $cc_basename,$host_cpu in
11272         pgcc*)                          # Portland Group C compiler
11273           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'
11274           tmp_addflag=' $pic_flag'
11275           ;;
11276         pgf77* | pgf90* | pgf95* | pgfortran*)
11277                                         # Portland Group f77 and f90 compilers
11278           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'
11279           tmp_addflag=' $pic_flag -Mnomain' ;;
11280         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11281           tmp_addflag=' -i_dynamic' ;;
11282         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11283           tmp_addflag=' -i_dynamic -nofor_main' ;;
11284         ifc* | ifort*)                  # Intel Fortran compiler
11285           tmp_addflag=' -nofor_main' ;;
11286         lf95*)                          # Lahey Fortran 8.1
11287           whole_archive_flag_spec=
11288           tmp_sharedflag='--shared' ;;
11289         nagfor*)                        # NAGFOR 5.3
11290           tmp_sharedflag='-Wl,-shared' ;;
11291         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11292           tmp_sharedflag='-qmkshrobj'
11293           tmp_addflag= ;;
11294         nvcc*)  # Cuda Compiler Driver 2.2
11295           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'
11296           compiler_needs_object=yes
11297           ;;
11298         esac
11299         case `$CC -V 2>&1 | sed 5q` in
11300         *Sun\ C*)                       # Sun C 5.9
11301           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'
11302           compiler_needs_object=yes
11303           tmp_sharedflag='-G' ;;
11304         *Sun\ F*)                       # Sun Fortran 8.3
11305           tmp_sharedflag='-G' ;;
11306         esac
11307         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11308
11309         if test yes = "$supports_anon_versioning"; then
11310           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11311             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11312             echo "local: *; };" >> $output_objdir/$libname.ver~
11313             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11314         fi
11315
11316         case $cc_basename in
11317         tcc*)
11318           export_dynamic_flag_spec='-rdynamic'
11319           ;;
11320         xlf* | bgf* | bgxlf* | mpixlf*)
11321           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11322           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11323           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11324           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11325           if test yes = "$supports_anon_versioning"; then
11326             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11327               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11328               echo "local: *; };" >> $output_objdir/$libname.ver~
11329               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11330           fi
11331           ;;
11332         esac
11333       else
11334         ld_shlibs=no
11335       fi
11336       ;;
11337
11338     netbsd* | netbsdelf*-gnu)
11339       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11340         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11341         wlarc=
11342       else
11343         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11344         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11345       fi
11346       ;;
11347
11348     solaris*)
11349       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11350         ld_shlibs=no
11351         cat <<_LT_EOF 1>&2
11352
11353 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11354 *** create shared libraries on Solaris systems.  Therefore, libtool
11355 *** is disabling shared libraries support.  We urge you to upgrade GNU
11356 *** binutils to release 2.9.1 or newer.  Another option is to modify
11357 *** your PATH or compiler configuration so that the native linker is
11358 *** used, and then restart.
11359
11360 _LT_EOF
11361       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11362         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11363         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11364       else
11365         ld_shlibs=no
11366       fi
11367       ;;
11368
11369     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11370       case `$LD -v 2>&1` in
11371         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11372         ld_shlibs=no
11373         cat <<_LT_EOF 1>&2
11374
11375 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11376 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11377 *** is disabling shared libraries support.  We urge you to upgrade GNU
11378 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11379 *** your PATH or compiler configuration so that the native linker is
11380 *** used, and then restart.
11381
11382 _LT_EOF
11383         ;;
11384         *)
11385           # For security reasons, it is highly recommended that you always
11386           # use absolute paths for naming shared libraries, and exclude the
11387           # DT_RUNPATH tag from executables and libraries.  But doing so
11388           # requires that you compile everything twice, which is a pain.
11389           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11390             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11391             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11392             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11393           else
11394             ld_shlibs=no
11395           fi
11396         ;;
11397       esac
11398       ;;
11399
11400     sunos4*)
11401       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11402       wlarc=
11403       hardcode_direct=yes
11404       hardcode_shlibpath_var=no
11405       ;;
11406
11407     *)
11408       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11409         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11410         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11411       else
11412         ld_shlibs=no
11413       fi
11414       ;;
11415     esac
11416
11417     if test no = "$ld_shlibs"; then
11418       runpath_var=
11419       hardcode_libdir_flag_spec=
11420       export_dynamic_flag_spec=
11421       whole_archive_flag_spec=
11422     fi
11423   else
11424     # PORTME fill in a description of your system's linker (not GNU ld)
11425     case $host_os in
11426     aix3*)
11427       allow_undefined_flag=unsupported
11428       always_export_symbols=yes
11429       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'
11430       # Note: this linker hardcodes the directories in LIBPATH if there
11431       # are no directories specified by -L.
11432       hardcode_minus_L=yes
11433       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11434         # Neither direct hardcoding nor static linking is supported with a
11435         # broken collect2.
11436         hardcode_direct=unsupported
11437       fi
11438       ;;
11439
11440     aix[4-9]*)
11441       if test ia64 = "$host_cpu"; then
11442         # On IA64, the linker does run time linking by default, so we don't
11443         # have to do anything special.
11444         aix_use_runtimelinking=no
11445         exp_sym_flag='-Bexport'
11446         no_entry_flag=
11447       else
11448         # If we're using GNU nm, then we don't want the "-C" option.
11449         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11450         # Without the "-l" option, or with the "-B" option, AIX nm treats
11451         # weak defined symbols like other global defined symbols, whereas
11452         # GNU nm marks them as "W".
11453         # While the 'weak' keyword is ignored in the Export File, we need
11454         # it in the Import File for the 'aix-soname' feature, so we have
11455         # to replace the "-B" option with "-P" for AIX nm.
11456         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11457           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'
11458         else
11459           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'
11460         fi
11461         aix_use_runtimelinking=no
11462
11463         # Test if we are trying to use run time linking or normal
11464         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11465         # have runtime linking enabled, and use it for executables.
11466         # For shared libraries, we enable/disable runtime linking
11467         # depending on the kind of the shared library created -
11468         # when "with_aix_soname,aix_use_runtimelinking" is:
11469         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11470         # "aix,yes"  lib.so          shared, rtl:yes, for executables
11471         #            lib.a           static archive
11472         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
11473         #            lib.a(lib.so.V) shared, rtl:no,  for executables
11474         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11475         #            lib.a(lib.so.V) shared, rtl:no
11476         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11477         #            lib.a           static archive
11478         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11479           for ld_flag in $LDFLAGS; do
11480           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11481             aix_use_runtimelinking=yes
11482             break
11483           fi
11484           done
11485           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11486             # With aix-soname=svr4, we create the lib.so.V shared archives only,
11487             # so we don't have lib.a shared libs to link our executables.
11488             # We have to force runtime linking in this case.
11489             aix_use_runtimelinking=yes
11490             LDFLAGS="$LDFLAGS -Wl,-brtl"
11491           fi
11492           ;;
11493         esac
11494
11495         exp_sym_flag='-bexport'
11496         no_entry_flag='-bnoentry'
11497       fi
11498
11499       # When large executables or shared objects are built, AIX ld can
11500       # have problems creating the table of contents.  If linking a library
11501       # or program results in "error TOC overflow" add -mminimal-toc to
11502       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11503       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11504
11505       archive_cmds=''
11506       hardcode_direct=yes
11507       hardcode_direct_absolute=yes
11508       hardcode_libdir_separator=':'
11509       link_all_deplibs=yes
11510       file_list_spec='$wl-f,'
11511       case $with_aix_soname,$aix_use_runtimelinking in
11512       aix,*) ;; # traditional, no import file
11513       svr4,* | *,yes) # use import file
11514         # The Import File defines what to hardcode.
11515         hardcode_direct=no
11516         hardcode_direct_absolute=no
11517         ;;
11518       esac
11519
11520       if test yes = "$GCC"; then
11521         case $host_os in aix4.[012]|aix4.[012].*)
11522         # We only want to do this on AIX 4.2 and lower, the check
11523         # below for broken collect2 doesn't work under 4.3+
11524           collect2name=`$CC -print-prog-name=collect2`
11525           if test -f "$collect2name" &&
11526            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11527           then
11528           # We have reworked collect2
11529           :
11530           else
11531           # We have old collect2
11532           hardcode_direct=unsupported
11533           # It fails to find uninstalled libraries when the uninstalled
11534           # path is not listed in the libpath.  Setting hardcode_minus_L
11535           # to unsupported forces relinking
11536           hardcode_minus_L=yes
11537           hardcode_libdir_flag_spec='-L$libdir'
11538           hardcode_libdir_separator=
11539           fi
11540           ;;
11541         esac
11542         shared_flag='-shared'
11543         if test yes = "$aix_use_runtimelinking"; then
11544           shared_flag="$shared_flag "'$wl-G'
11545         fi
11546         # Need to ensure runtime linking is disabled for the traditional
11547         # shared library, or the linker may eventually find shared libraries
11548         # /with/ Import File - we do not want to mix them.
11549         shared_flag_aix='-shared'
11550         shared_flag_svr4='-shared $wl-G'
11551       else
11552         # not using gcc
11553         if test ia64 = "$host_cpu"; then
11554         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11555         # chokes on -Wl,-G. The following line is correct:
11556           shared_flag='-G'
11557         else
11558           if test yes = "$aix_use_runtimelinking"; then
11559             shared_flag='$wl-G'
11560           else
11561             shared_flag='$wl-bM:SRE'
11562           fi
11563           shared_flag_aix='$wl-bM:SRE'
11564           shared_flag_svr4='$wl-G'
11565         fi
11566       fi
11567
11568       export_dynamic_flag_spec='$wl-bexpall'
11569       # It seems that -bexpall does not export symbols beginning with
11570       # underscore (_), so it is better to generate a list of symbols to export.
11571       always_export_symbols=yes
11572       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11573         # Warning - without using the other runtime loading flags (-brtl),
11574         # -berok will link without error, but may produce a broken library.
11575         allow_undefined_flag='-berok'
11576         # Determine the default libpath from the value encoded in an
11577         # empty executable.
11578         if test set = "${lt_cv_aix_libpath+set}"; then
11579   aix_libpath=$lt_cv_aix_libpath
11580 else
11581   if test ${lt_cv_aix_libpath_+y}
11582 then :
11583   printf %s "(cached) " >&6
11584 else $as_nop
11585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11586 /* end confdefs.h.  */
11587
11588 int
11589 main (void)
11590 {
11591
11592   ;
11593   return 0;
11594 }
11595 _ACEOF
11596 if ac_fn_c_try_link "$LINENO"
11597 then :
11598
11599   lt_aix_libpath_sed='
11600       /Import File Strings/,/^$/ {
11601           /^0/ {
11602               s/^0  *\([^ ]*\) *$/\1/
11603               p
11604           }
11605       }'
11606   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11607   # Check for a 64-bit object if we didn't find anything.
11608   if test -z "$lt_cv_aix_libpath_"; then
11609     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11610   fi
11611 fi
11612 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11613     conftest$ac_exeext conftest.$ac_ext
11614   if test -z "$lt_cv_aix_libpath_"; then
11615     lt_cv_aix_libpath_=/usr/lib:/lib
11616   fi
11617
11618 fi
11619
11620   aix_libpath=$lt_cv_aix_libpath_
11621 fi
11622
11623         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11624         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
11625       else
11626         if test ia64 = "$host_cpu"; then
11627           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11628           allow_undefined_flag="-z nodefs"
11629           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"
11630         else
11631          # Determine the default libpath from the value encoded in an
11632          # empty executable.
11633          if test set = "${lt_cv_aix_libpath+set}"; then
11634   aix_libpath=$lt_cv_aix_libpath
11635 else
11636   if test ${lt_cv_aix_libpath_+y}
11637 then :
11638   printf %s "(cached) " >&6
11639 else $as_nop
11640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11641 /* end confdefs.h.  */
11642
11643 int
11644 main (void)
11645 {
11646
11647   ;
11648   return 0;
11649 }
11650 _ACEOF
11651 if ac_fn_c_try_link "$LINENO"
11652 then :
11653
11654   lt_aix_libpath_sed='
11655       /Import File Strings/,/^$/ {
11656           /^0/ {
11657               s/^0  *\([^ ]*\) *$/\1/
11658               p
11659           }
11660       }'
11661   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11662   # Check for a 64-bit object if we didn't find anything.
11663   if test -z "$lt_cv_aix_libpath_"; then
11664     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11665   fi
11666 fi
11667 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11668     conftest$ac_exeext conftest.$ac_ext
11669   if test -z "$lt_cv_aix_libpath_"; then
11670     lt_cv_aix_libpath_=/usr/lib:/lib
11671   fi
11672
11673 fi
11674
11675   aix_libpath=$lt_cv_aix_libpath_
11676 fi
11677
11678          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11679           # Warning - without using the other run time loading flags,
11680           # -berok will link without error, but may produce a broken library.
11681           no_undefined_flag=' $wl-bernotok'
11682           allow_undefined_flag=' $wl-berok'
11683           if test yes = "$with_gnu_ld"; then
11684             # We only use this code for GNU lds that support --whole-archive.
11685             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11686           else
11687             # Exported symbols can be pulled into shared objects from archives
11688             whole_archive_flag_spec='$convenience'
11689           fi
11690           archive_cmds_need_lc=yes
11691           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11692           # -brtl affects multiple linker settings, -berok does not and is overridden later
11693           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11694           if test svr4 != "$with_aix_soname"; then
11695             # This is similar to how AIX traditionally builds its shared libraries.
11696             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'
11697           fi
11698           if test aix != "$with_aix_soname"; then
11699             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'
11700           else
11701             # used by -dlpreopen to get the symbols
11702             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11703           fi
11704           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11705         fi
11706       fi
11707       ;;
11708
11709     amigaos*)
11710       case $host_cpu in
11711       powerpc)
11712             # see comment about AmigaOS4 .so support
11713             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11714             archive_expsym_cmds=''
11715         ;;
11716       m68k)
11717             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)'
11718             hardcode_libdir_flag_spec='-L$libdir'
11719             hardcode_minus_L=yes
11720         ;;
11721       esac
11722       ;;
11723
11724     bsdi[45]*)
11725       export_dynamic_flag_spec=-rdynamic
11726       ;;
11727
11728     cygwin* | mingw* | pw32* | cegcc*)
11729       # When not using gcc, we currently assume that we are using
11730       # Microsoft Visual C++.
11731       # hardcode_libdir_flag_spec is actually meaningless, as there is
11732       # no search path for DLLs.
11733       case $cc_basename in
11734       cl*)
11735         # Native MSVC
11736         hardcode_libdir_flag_spec=' '
11737         allow_undefined_flag=unsupported
11738         always_export_symbols=yes
11739         file_list_spec='@'
11740         # Tell ltmain to make .lib files, not .a files.
11741         libext=lib
11742         # Tell ltmain to make .dll files, not .so files.
11743         shrext_cmds=.dll
11744         # FIXME: Setting linknames here is a bad hack.
11745         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11746         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11747             cp "$export_symbols" "$output_objdir/$soname.def";
11748             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11749           else
11750             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11751           fi~
11752           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11753           linknames='
11754         # The linker will not automatically build a static lib if we build a DLL.
11755         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11756         enable_shared_with_static_runtimes=yes
11757         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11758         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11759         # Don't use ranlib
11760         old_postinstall_cmds='chmod 644 $oldlib'
11761         postlink_cmds='lt_outputfile="@OUTPUT@"~
11762           lt_tool_outputfile="@TOOL_OUTPUT@"~
11763           case $lt_outputfile in
11764             *.exe|*.EXE) ;;
11765             *)
11766               lt_outputfile=$lt_outputfile.exe
11767               lt_tool_outputfile=$lt_tool_outputfile.exe
11768               ;;
11769           esac~
11770           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11771             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11772             $RM "$lt_outputfile.manifest";
11773           fi'
11774         ;;
11775       *)
11776         # Assume MSVC wrapper
11777         hardcode_libdir_flag_spec=' '
11778         allow_undefined_flag=unsupported
11779         # Tell ltmain to make .lib files, not .a files.
11780         libext=lib
11781         # Tell ltmain to make .dll files, not .so files.
11782         shrext_cmds=.dll
11783         # FIXME: Setting linknames here is a bad hack.
11784         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11785         # The linker will automatically build a .lib file if we build a DLL.
11786         old_archive_from_new_cmds='true'
11787         # FIXME: Should let the user specify the lib program.
11788         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11789         enable_shared_with_static_runtimes=yes
11790         ;;
11791       esac
11792       ;;
11793
11794     darwin* | rhapsody*)
11795
11796
11797   archive_cmds_need_lc=no
11798   hardcode_direct=no
11799   hardcode_automatic=yes
11800   hardcode_shlibpath_var=unsupported
11801   if test yes = "$lt_cv_ld_force_load"; then
11802     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\"`'
11803
11804   else
11805     whole_archive_flag_spec=''
11806   fi
11807   link_all_deplibs=yes
11808   allow_undefined_flag=$_lt_dar_allow_undefined
11809   case $cc_basename in
11810      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11811      *) _lt_dar_can_shared=$GCC ;;
11812   esac
11813   if test yes = "$_lt_dar_can_shared"; then
11814     output_verbose_link_cmd=func_echo_all
11815     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11816     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11817     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"
11818     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"
11819
11820   else
11821   ld_shlibs=no
11822   fi
11823
11824       ;;
11825
11826     dgux*)
11827       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11828       hardcode_libdir_flag_spec='-L$libdir'
11829       hardcode_shlibpath_var=no
11830       ;;
11831
11832     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11833     # support.  Future versions do this automatically, but an explicit c++rt0.o
11834     # does not break anything, and helps significantly (at the cost of a little
11835     # extra space).
11836     freebsd2.2*)
11837       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11838       hardcode_libdir_flag_spec='-R$libdir'
11839       hardcode_direct=yes
11840       hardcode_shlibpath_var=no
11841       ;;
11842
11843     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11844     freebsd2.*)
11845       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11846       hardcode_direct=yes
11847       hardcode_minus_L=yes
11848       hardcode_shlibpath_var=no
11849       ;;
11850
11851     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11852     freebsd* | dragonfly*)
11853       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11854       hardcode_libdir_flag_spec='-R$libdir'
11855       hardcode_direct=yes
11856       hardcode_shlibpath_var=no
11857       ;;
11858
11859     hpux9*)
11860       if test yes = "$GCC"; then
11861         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'
11862       else
11863         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'
11864       fi
11865       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11866       hardcode_libdir_separator=:
11867       hardcode_direct=yes
11868
11869       # hardcode_minus_L: Not really in the search PATH,
11870       # but as the default location of the library.
11871       hardcode_minus_L=yes
11872       export_dynamic_flag_spec='$wl-E'
11873       ;;
11874
11875     hpux10*)
11876       if test yes,no = "$GCC,$with_gnu_ld"; then
11877         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11878       else
11879         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11880       fi
11881       if test no = "$with_gnu_ld"; then
11882         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11883         hardcode_libdir_separator=:
11884         hardcode_direct=yes
11885         hardcode_direct_absolute=yes
11886         export_dynamic_flag_spec='$wl-E'
11887         # hardcode_minus_L: Not really in the search PATH,
11888         # but as the default location of the library.
11889         hardcode_minus_L=yes
11890       fi
11891       ;;
11892
11893     hpux11*)
11894       if test yes,no = "$GCC,$with_gnu_ld"; then
11895         case $host_cpu in
11896         hppa*64*)
11897           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11898           ;;
11899         ia64*)
11900           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11901           ;;
11902         *)
11903           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11904           ;;
11905         esac
11906       else
11907         case $host_cpu in
11908         hppa*64*)
11909           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11910           ;;
11911         ia64*)
11912           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11913           ;;
11914         *)
11915
11916           # Older versions of the 11.00 compiler do not understand -b yet
11917           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11918           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11919 printf %s "checking if $CC understands -b... " >&6; }
11920 if test ${lt_cv_prog_compiler__b+y}
11921 then :
11922   printf %s "(cached) " >&6
11923 else $as_nop
11924   lt_cv_prog_compiler__b=no
11925    save_LDFLAGS=$LDFLAGS
11926    LDFLAGS="$LDFLAGS -b"
11927    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11928    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11929      # The linker can only warn and ignore the option if not recognized
11930      # So say no if there are warnings
11931      if test -s conftest.err; then
11932        # Append any errors to the config.log.
11933        cat conftest.err 1>&5
11934        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11935        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11936        if diff conftest.exp conftest.er2 >/dev/null; then
11937          lt_cv_prog_compiler__b=yes
11938        fi
11939      else
11940        lt_cv_prog_compiler__b=yes
11941      fi
11942    fi
11943    $RM -r conftest*
11944    LDFLAGS=$save_LDFLAGS
11945
11946 fi
11947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11948 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11949
11950 if test yes = "$lt_cv_prog_compiler__b"; then
11951     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11952 else
11953     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11954 fi
11955
11956           ;;
11957         esac
11958       fi
11959       if test no = "$with_gnu_ld"; then
11960         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11961         hardcode_libdir_separator=:
11962
11963         case $host_cpu in
11964         hppa*64*|ia64*)
11965           hardcode_direct=no
11966           hardcode_shlibpath_var=no
11967           ;;
11968         *)
11969           hardcode_direct=yes
11970           hardcode_direct_absolute=yes
11971           export_dynamic_flag_spec='$wl-E'
11972
11973           # hardcode_minus_L: Not really in the search PATH,
11974           # but as the default location of the library.
11975           hardcode_minus_L=yes
11976           ;;
11977         esac
11978       fi
11979       ;;
11980
11981     irix5* | irix6* | nonstopux*)
11982       if test yes = "$GCC"; then
11983         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'
11984         # Try to use the -exported_symbol ld option, if it does not
11985         # work, assume that -exports_file does not work either and
11986         # implicitly export all symbols.
11987         # This should be the same for all languages, so no per-tag cache variable.
11988         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11989 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11990 if test ${lt_cv_irix_exported_symbol+y}
11991 then :
11992   printf %s "(cached) " >&6
11993 else $as_nop
11994   save_LDFLAGS=$LDFLAGS
11995            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11996            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h.  */
11998 int foo (void) { return 0; }
11999 _ACEOF
12000 if ac_fn_c_try_link "$LINENO"
12001 then :
12002   lt_cv_irix_exported_symbol=yes
12003 else $as_nop
12004   lt_cv_irix_exported_symbol=no
12005 fi
12006 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12007     conftest$ac_exeext conftest.$ac_ext
12008            LDFLAGS=$save_LDFLAGS
12009 fi
12010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12011 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12012         if test yes = "$lt_cv_irix_exported_symbol"; then
12013           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'
12014         fi
12015         link_all_deplibs=no
12016       else
12017         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'
12018         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'
12019       fi
12020       archive_cmds_need_lc='no'
12021       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12022       hardcode_libdir_separator=:
12023       inherit_rpath=yes
12024       link_all_deplibs=yes
12025       ;;
12026
12027     linux*)
12028       case $cc_basename in
12029       tcc*)
12030         # Fabrice Bellard et al's Tiny C Compiler
12031         ld_shlibs=yes
12032         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12033         ;;
12034       esac
12035       ;;
12036
12037     netbsd* | netbsdelf*-gnu)
12038       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12039         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12040       else
12041         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12042       fi
12043       hardcode_libdir_flag_spec='-R$libdir'
12044       hardcode_direct=yes
12045       hardcode_shlibpath_var=no
12046       ;;
12047
12048     newsos6)
12049       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12050       hardcode_direct=yes
12051       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12052       hardcode_libdir_separator=:
12053       hardcode_shlibpath_var=no
12054       ;;
12055
12056     *nto* | *qnx*)
12057       ;;
12058
12059     openbsd* | bitrig*)
12060       if test -f /usr/libexec/ld.so; then
12061         hardcode_direct=yes
12062         hardcode_shlibpath_var=no
12063         hardcode_direct_absolute=yes
12064         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12065           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12066           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12067           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12068           export_dynamic_flag_spec='$wl-E'
12069         else
12070           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12071           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12072         fi
12073       else
12074         ld_shlibs=no
12075       fi
12076       ;;
12077
12078     os2*)
12079       hardcode_libdir_flag_spec='-L$libdir'
12080       hardcode_minus_L=yes
12081       allow_undefined_flag=unsupported
12082       shrext_cmds=.dll
12083       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12084         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12085         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12086         $ECHO EXPORTS >> $output_objdir/$libname.def~
12087         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12088         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12089         emximp -o $lib $output_objdir/$libname.def'
12090       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12091         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12092         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12093         $ECHO EXPORTS >> $output_objdir/$libname.def~
12094         prefix_cmds="$SED"~
12095         if test EXPORTS = "`$SED 1q $export_symbols`"; then
12096           prefix_cmds="$prefix_cmds -e 1d";
12097         fi~
12098         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12099         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12100         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12101         emximp -o $lib $output_objdir/$libname.def'
12102       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12103       enable_shared_with_static_runtimes=yes
12104       ;;
12105
12106     osf3*)
12107       if test yes = "$GCC"; then
12108         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12109         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'
12110       else
12111         allow_undefined_flag=' -expect_unresolved \*'
12112         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'
12113       fi
12114       archive_cmds_need_lc='no'
12115       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12116       hardcode_libdir_separator=:
12117       ;;
12118
12119     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12120       if test yes = "$GCC"; then
12121         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12122         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'
12123         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12124       else
12125         allow_undefined_flag=' -expect_unresolved \*'
12126         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'
12127         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~
12128           $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'
12129
12130         # Both c and cxx compiler support -rpath directly
12131         hardcode_libdir_flag_spec='-rpath $libdir'
12132       fi
12133       archive_cmds_need_lc='no'
12134       hardcode_libdir_separator=:
12135       ;;
12136
12137     solaris*)
12138       no_undefined_flag=' -z defs'
12139       if test yes = "$GCC"; then
12140         wlarc='$wl'
12141         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12142         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12143           $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'
12144       else
12145         case `$CC -V 2>&1` in
12146         *"Compilers 5.0"*)
12147           wlarc=''
12148           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12149           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12150             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12151           ;;
12152         *)
12153           wlarc='$wl'
12154           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12155           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12156             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12157           ;;
12158         esac
12159       fi
12160       hardcode_libdir_flag_spec='-R$libdir'
12161       hardcode_shlibpath_var=no
12162       case $host_os in
12163       solaris2.[0-5] | solaris2.[0-5].*) ;;
12164       *)
12165         # The compiler driver will combine and reorder linker options,
12166         # but understands '-z linker_flag'.  GCC discards it without '$wl',
12167         # but is careful enough not to reorder.
12168         # Supported since Solaris 2.6 (maybe 2.5.1?)
12169         if test yes = "$GCC"; then
12170           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12171         else
12172           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12173         fi
12174         ;;
12175       esac
12176       link_all_deplibs=yes
12177       ;;
12178
12179     sunos4*)
12180       if test sequent = "$host_vendor"; then
12181         # Use $CC to link under sequent, because it throws in some extra .o
12182         # files that make .init and .fini sections work.
12183         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12184       else
12185         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12186       fi
12187       hardcode_libdir_flag_spec='-L$libdir'
12188       hardcode_direct=yes
12189       hardcode_minus_L=yes
12190       hardcode_shlibpath_var=no
12191       ;;
12192
12193     sysv4)
12194       case $host_vendor in
12195         sni)
12196           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12197           hardcode_direct=yes # is this really true???
12198         ;;
12199         siemens)
12200           ## LD is ld it makes a PLAMLIB
12201           ## CC just makes a GrossModule.
12202           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12203           reload_cmds='$CC -r -o $output$reload_objs'
12204           hardcode_direct=no
12205         ;;
12206         motorola)
12207           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12208           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12209         ;;
12210       esac
12211       runpath_var='LD_RUN_PATH'
12212       hardcode_shlibpath_var=no
12213       ;;
12214
12215     sysv4.3*)
12216       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12217       hardcode_shlibpath_var=no
12218       export_dynamic_flag_spec='-Bexport'
12219       ;;
12220
12221     sysv4*MP*)
12222       if test -d /usr/nec; then
12223         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12224         hardcode_shlibpath_var=no
12225         runpath_var=LD_RUN_PATH
12226         hardcode_runpath_var=yes
12227         ld_shlibs=yes
12228       fi
12229       ;;
12230
12231     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12232       no_undefined_flag='$wl-z,text'
12233       archive_cmds_need_lc=no
12234       hardcode_shlibpath_var=no
12235       runpath_var='LD_RUN_PATH'
12236
12237       if test yes = "$GCC"; then
12238         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12239         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12240       else
12241         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12242         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12243       fi
12244       ;;
12245
12246     sysv5* | sco3.2v5* | sco5v6*)
12247       # Note: We CANNOT use -z defs as we might desire, because we do not
12248       # link with -lc, and that would cause any symbols used from libc to
12249       # always be unresolved, which means just about no library would
12250       # ever link correctly.  If we're not using GNU ld we use -z text
12251       # though, which does catch some bad symbols but isn't as heavy-handed
12252       # as -z defs.
12253       no_undefined_flag='$wl-z,text'
12254       allow_undefined_flag='$wl-z,nodefs'
12255       archive_cmds_need_lc=no
12256       hardcode_shlibpath_var=no
12257       hardcode_libdir_flag_spec='$wl-R,$libdir'
12258       hardcode_libdir_separator=':'
12259       link_all_deplibs=yes
12260       export_dynamic_flag_spec='$wl-Bexport'
12261       runpath_var='LD_RUN_PATH'
12262
12263       if test yes = "$GCC"; then
12264         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12265         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12266       else
12267         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12268         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12269       fi
12270       ;;
12271
12272     uts4*)
12273       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12274       hardcode_libdir_flag_spec='-L$libdir'
12275       hardcode_shlibpath_var=no
12276       ;;
12277
12278     *)
12279       ld_shlibs=no
12280       ;;
12281     esac
12282
12283     if test sni = "$host_vendor"; then
12284       case $host in
12285       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12286         export_dynamic_flag_spec='$wl-Blargedynsym'
12287         ;;
12288       esac
12289     fi
12290   fi
12291
12292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12293 printf "%s\n" "$ld_shlibs" >&6; }
12294 test no = "$ld_shlibs" && can_build_shared=no
12295
12296 with_gnu_ld=$with_gnu_ld
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312 #
12313 # Do we need to explicitly link libc?
12314 #
12315 case "x$archive_cmds_need_lc" in
12316 x|xyes)
12317   # Assume -lc should be added
12318   archive_cmds_need_lc=yes
12319
12320   if test yes,yes = "$GCC,$enable_shared"; then
12321     case $archive_cmds in
12322     *'~'*)
12323       # FIXME: we may have to deal with multi-command sequences.
12324       ;;
12325     '$CC '*)
12326       # Test whether the compiler implicitly links with -lc since on some
12327       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12328       # to ld, don't add -lc before -lgcc.
12329       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12330 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12331 if test ${lt_cv_archive_cmds_need_lc+y}
12332 then :
12333   printf %s "(cached) " >&6
12334 else $as_nop
12335   $RM conftest*
12336         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12337
12338         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12339   (eval $ac_compile) 2>&5
12340   ac_status=$?
12341   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12342   test $ac_status = 0; } 2>conftest.err; then
12343           soname=conftest
12344           lib=conftest
12345           libobjs=conftest.$ac_objext
12346           deplibs=
12347           wl=$lt_prog_compiler_wl
12348           pic_flag=$lt_prog_compiler_pic
12349           compiler_flags=-v
12350           linker_flags=-v
12351           verstring=
12352           output_objdir=.
12353           libname=conftest
12354           lt_save_allow_undefined_flag=$allow_undefined_flag
12355           allow_undefined_flag=
12356           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12357   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12358   ac_status=$?
12359   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12360   test $ac_status = 0; }
12361           then
12362             lt_cv_archive_cmds_need_lc=no
12363           else
12364             lt_cv_archive_cmds_need_lc=yes
12365           fi
12366           allow_undefined_flag=$lt_save_allow_undefined_flag
12367         else
12368           cat conftest.err 1>&5
12369         fi
12370         $RM conftest*
12371
12372 fi
12373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12374 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12375       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12376       ;;
12377     esac
12378   fi
12379   ;;
12380 esac
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12534 printf %s "checking dynamic linker characteristics... " >&6; }
12535
12536 if test yes = "$GCC"; then
12537   case $host_os in
12538     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12539     *) lt_awk_arg='/^libraries:/' ;;
12540   esac
12541   case $host_os in
12542     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12543     *) lt_sed_strip_eq='s|=/|/|g' ;;
12544   esac
12545   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12546   case $lt_search_path_spec in
12547   *\;*)
12548     # if the path contains ";" then we assume it to be the separator
12549     # otherwise default to the standard path separator (i.e. ":") - it is
12550     # assumed that no part of a normal pathname contains ";" but that should
12551     # okay in the real world where ";" in dirpaths is itself problematic.
12552     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12553     ;;
12554   *)
12555     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12556     ;;
12557   esac
12558   # Ok, now we have the path, separated by spaces, we can step through it
12559   # and add multilib dir if necessary...
12560   lt_tmp_lt_search_path_spec=
12561   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12562   # ...but if some path component already ends with the multilib dir we assume
12563   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12564   case "$lt_multi_os_dir; $lt_search_path_spec " in
12565   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12566     lt_multi_os_dir=
12567     ;;
12568   esac
12569   for lt_sys_path in $lt_search_path_spec; do
12570     if test -d "$lt_sys_path$lt_multi_os_dir"; then
12571       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12572     elif test -n "$lt_multi_os_dir"; then
12573       test -d "$lt_sys_path" && \
12574         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12575     fi
12576   done
12577   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12578 BEGIN {RS = " "; FS = "/|\n";} {
12579   lt_foo = "";
12580   lt_count = 0;
12581   for (lt_i = NF; lt_i > 0; lt_i--) {
12582     if ($lt_i != "" && $lt_i != ".") {
12583       if ($lt_i == "..") {
12584         lt_count++;
12585       } else {
12586         if (lt_count == 0) {
12587           lt_foo = "/" $lt_i lt_foo;
12588         } else {
12589           lt_count--;
12590         }
12591       }
12592     }
12593   }
12594   if (lt_foo != "") { lt_freq[lt_foo]++; }
12595   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12596 }'`
12597   # AWK program above erroneously prepends '/' to C:/dos/paths
12598   # for these hosts.
12599   case $host_os in
12600     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12601       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12602   esac
12603   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12604 else
12605   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12606 fi
12607 library_names_spec=
12608 libname_spec='lib$name'
12609 soname_spec=
12610 shrext_cmds=.so
12611 postinstall_cmds=
12612 postuninstall_cmds=
12613 finish_cmds=
12614 finish_eval=
12615 shlibpath_var=
12616 shlibpath_overrides_runpath=unknown
12617 version_type=none
12618 dynamic_linker="$host_os ld.so"
12619 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12620 need_lib_prefix=unknown
12621 hardcode_into_libs=no
12622
12623 # when you set need_version to no, make sure it does not cause -set_version
12624 # flags to be left without arguments
12625 need_version=unknown
12626
12627
12628
12629 case $host_os in
12630 aix3*)
12631   version_type=linux # correct to gnu/linux during the next big refactor
12632   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12633   shlibpath_var=LIBPATH
12634
12635   # AIX 3 has no versioning support, so we append a major version to the name.
12636   soname_spec='$libname$release$shared_ext$major'
12637   ;;
12638
12639 aix[4-9]*)
12640   version_type=linux # correct to gnu/linux during the next big refactor
12641   need_lib_prefix=no
12642   need_version=no
12643   hardcode_into_libs=yes
12644   if test ia64 = "$host_cpu"; then
12645     # AIX 5 supports IA64
12646     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12647     shlibpath_var=LD_LIBRARY_PATH
12648   else
12649     # With GCC up to 2.95.x, collect2 would create an import file
12650     # for dependence libraries.  The import file would start with
12651     # the line '#! .'.  This would cause the generated library to
12652     # depend on '.', always an invalid library.  This was fixed in
12653     # development snapshots of GCC prior to 3.0.
12654     case $host_os in
12655       aix4 | aix4.[01] | aix4.[01].*)
12656       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12657            echo ' yes '
12658            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12659         :
12660       else
12661         can_build_shared=no
12662       fi
12663       ;;
12664     esac
12665     # Using Import Files as archive members, it is possible to support
12666     # filename-based versioning of shared library archives on AIX. While
12667     # this would work for both with and without runtime linking, it will
12668     # prevent static linking of such archives. So we do filename-based
12669     # shared library versioning with .so extension only, which is used
12670     # when both runtime linking and shared linking is enabled.
12671     # Unfortunately, runtime linking may impact performance, so we do
12672     # not want this to be the default eventually. Also, we use the
12673     # versioned .so libs for executables only if there is the -brtl
12674     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12675     # To allow for filename-based versioning support, we need to create
12676     # libNAME.so.V as an archive file, containing:
12677     # *) an Import File, referring to the versioned filename of the
12678     #    archive as well as the shared archive member, telling the
12679     #    bitwidth (32 or 64) of that shared object, and providing the
12680     #    list of exported symbols of that shared object, eventually
12681     #    decorated with the 'weak' keyword
12682     # *) the shared object with the F_LOADONLY flag set, to really avoid
12683     #    it being seen by the linker.
12684     # At run time we better use the real file rather than another symlink,
12685     # but for link time we create the symlink libNAME.so -> libNAME.so.V
12686
12687     case $with_aix_soname,$aix_use_runtimelinking in
12688     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12689     # soname into executable. Probably we can add versioning support to
12690     # collect2, so additional links can be useful in future.
12691     aix,yes) # traditional libtool
12692       dynamic_linker='AIX unversionable lib.so'
12693       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12694       # instead of lib<name>.a to let people know that these are not
12695       # typical AIX shared libraries.
12696       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12697       ;;
12698     aix,no) # traditional AIX only
12699       dynamic_linker='AIX lib.a(lib.so.V)'
12700       # We preserve .a as extension for shared libraries through AIX4.2
12701       # and later when we are not doing run time linking.
12702       library_names_spec='$libname$release.a $libname.a'
12703       soname_spec='$libname$release$shared_ext$major'
12704       ;;
12705     svr4,*) # full svr4 only
12706       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12707       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12708       # We do not specify a path in Import Files, so LIBPATH fires.
12709       shlibpath_overrides_runpath=yes
12710       ;;
12711     *,yes) # both, prefer svr4
12712       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12713       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12714       # unpreferred sharedlib libNAME.a needs extra handling
12715       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"'
12716       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"'
12717       # We do not specify a path in Import Files, so LIBPATH fires.
12718       shlibpath_overrides_runpath=yes
12719       ;;
12720     *,no) # both, prefer aix
12721       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12722       library_names_spec='$libname$release.a $libname.a'
12723       soname_spec='$libname$release$shared_ext$major'
12724       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12725       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)'
12726       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"'
12727       ;;
12728     esac
12729     shlibpath_var=LIBPATH
12730   fi
12731   ;;
12732
12733 amigaos*)
12734   case $host_cpu in
12735   powerpc)
12736     # Since July 2007 AmigaOS4 officially supports .so libraries.
12737     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12738     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12739     ;;
12740   m68k)
12741     library_names_spec='$libname.ixlibrary $libname.a'
12742     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12743     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'
12744     ;;
12745   esac
12746   ;;
12747
12748 beos*)
12749   library_names_spec='$libname$shared_ext'
12750   dynamic_linker="$host_os ld.so"
12751   shlibpath_var=LIBRARY_PATH
12752   ;;
12753
12754 bsdi[45]*)
12755   version_type=linux # correct to gnu/linux during the next big refactor
12756   need_version=no
12757   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12758   soname_spec='$libname$release$shared_ext$major'
12759   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12760   shlibpath_var=LD_LIBRARY_PATH
12761   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12762   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12763   # the default ld.so.conf also contains /usr/contrib/lib and
12764   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12765   # libtool to hard-code these into programs
12766   ;;
12767
12768 cygwin* | mingw* | pw32* | cegcc*)
12769   version_type=windows
12770   shrext_cmds=.dll
12771   need_version=no
12772   need_lib_prefix=no
12773
12774   case $GCC,$cc_basename in
12775   yes,*)
12776     # gcc
12777     library_names_spec='$libname.dll.a'
12778     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12779     postinstall_cmds='base_file=`basename \$file`~
12780       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12781       dldir=$destdir/`dirname \$dlpath`~
12782       test -d \$dldir || mkdir -p \$dldir~
12783       $install_prog $dir/$dlname \$dldir/$dlname~
12784       chmod a+x \$dldir/$dlname~
12785       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12786         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12787       fi'
12788     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12789       dlpath=$dir/\$dldll~
12790        $RM \$dlpath'
12791     shlibpath_overrides_runpath=yes
12792
12793     case $host_os in
12794     cygwin*)
12795       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12796       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12797
12798       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12799       ;;
12800     mingw* | cegcc*)
12801       # MinGW DLLs use traditional 'lib' prefix
12802       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12803       ;;
12804     pw32*)
12805       # pw32 DLLs use 'pw' prefix rather than 'lib'
12806       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12807       ;;
12808     esac
12809     dynamic_linker='Win32 ld.exe'
12810     ;;
12811
12812   *,cl*)
12813     # Native MSVC
12814     libname_spec='$name'
12815     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12816     library_names_spec='$libname.dll.lib'
12817
12818     case $build_os in
12819     mingw*)
12820       sys_lib_search_path_spec=
12821       lt_save_ifs=$IFS
12822       IFS=';'
12823       for lt_path in $LIB
12824       do
12825         IFS=$lt_save_ifs
12826         # Let DOS variable expansion print the short 8.3 style file name.
12827         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12828         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12829       done
12830       IFS=$lt_save_ifs
12831       # Convert to MSYS style.
12832       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12833       ;;
12834     cygwin*)
12835       # Convert to unix form, then to dos form, then back to unix form
12836       # but this time dos style (no spaces!) so that the unix form looks
12837       # like /cygdrive/c/PROGRA~1:/cygdr...
12838       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12839       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12840       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12841       ;;
12842     *)
12843       sys_lib_search_path_spec=$LIB
12844       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12845         # It is most probably a Windows format PATH.
12846         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12847       else
12848         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12849       fi
12850       # FIXME: find the short name or the path components, as spaces are
12851       # common. (e.g. "Program Files" -> "PROGRA~1")
12852       ;;
12853     esac
12854
12855     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12856     postinstall_cmds='base_file=`basename \$file`~
12857       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12858       dldir=$destdir/`dirname \$dlpath`~
12859       test -d \$dldir || mkdir -p \$dldir~
12860       $install_prog $dir/$dlname \$dldir/$dlname'
12861     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12862       dlpath=$dir/\$dldll~
12863        $RM \$dlpath'
12864     shlibpath_overrides_runpath=yes
12865     dynamic_linker='Win32 link.exe'
12866     ;;
12867
12868   *)
12869     # Assume MSVC wrapper
12870     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12871     dynamic_linker='Win32 ld.exe'
12872     ;;
12873   esac
12874   # FIXME: first we should search . and the directory the executable is in
12875   shlibpath_var=PATH
12876   ;;
12877
12878 darwin* | rhapsody*)
12879   dynamic_linker="$host_os dyld"
12880   version_type=darwin
12881   need_lib_prefix=no
12882   need_version=no
12883   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12884   soname_spec='$libname$release$major$shared_ext'
12885   shlibpath_overrides_runpath=yes
12886   shlibpath_var=DYLD_LIBRARY_PATH
12887   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12888
12889   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12890   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12891   ;;
12892
12893 dgux*)
12894   version_type=linux # correct to gnu/linux during the next big refactor
12895   need_lib_prefix=no
12896   need_version=no
12897   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12898   soname_spec='$libname$release$shared_ext$major'
12899   shlibpath_var=LD_LIBRARY_PATH
12900   ;;
12901
12902 freebsd* | dragonfly*)
12903   # DragonFly does not have aout.  When/if they implement a new
12904   # versioning mechanism, adjust this.
12905   if test -x /usr/bin/objformat; then
12906     objformat=`/usr/bin/objformat`
12907   else
12908     case $host_os in
12909     freebsd[23].*) objformat=aout ;;
12910     *) objformat=elf ;;
12911     esac
12912   fi
12913   version_type=freebsd-$objformat
12914   case $version_type in
12915     freebsd-elf*)
12916       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12917       soname_spec='$libname$release$shared_ext$major'
12918       need_version=no
12919       need_lib_prefix=no
12920       ;;
12921     freebsd-*)
12922       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12923       need_version=yes
12924       ;;
12925   esac
12926   shlibpath_var=LD_LIBRARY_PATH
12927   case $host_os in
12928   freebsd2.*)
12929     shlibpath_overrides_runpath=yes
12930     ;;
12931   freebsd3.[01]* | freebsdelf3.[01]*)
12932     shlibpath_overrides_runpath=yes
12933     hardcode_into_libs=yes
12934     ;;
12935   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12936   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12937     shlibpath_overrides_runpath=no
12938     hardcode_into_libs=yes
12939     ;;
12940   *) # from 4.6 on, and DragonFly
12941     shlibpath_overrides_runpath=yes
12942     hardcode_into_libs=yes
12943     ;;
12944   esac
12945   ;;
12946
12947 haiku*)
12948   version_type=linux # correct to gnu/linux during the next big refactor
12949   need_lib_prefix=no
12950   need_version=no
12951   dynamic_linker="$host_os runtime_loader"
12952   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12953   soname_spec='$libname$release$shared_ext$major'
12954   shlibpath_var=LIBRARY_PATH
12955   shlibpath_overrides_runpath=no
12956   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12957   hardcode_into_libs=yes
12958   ;;
12959
12960 hpux9* | hpux10* | hpux11*)
12961   # Give a soname corresponding to the major version so that dld.sl refuses to
12962   # link against other versions.
12963   version_type=sunos
12964   need_lib_prefix=no
12965   need_version=no
12966   case $host_cpu in
12967   ia64*)
12968     shrext_cmds='.so'
12969     hardcode_into_libs=yes
12970     dynamic_linker="$host_os dld.so"
12971     shlibpath_var=LD_LIBRARY_PATH
12972     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12973     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12974     soname_spec='$libname$release$shared_ext$major'
12975     if test 32 = "$HPUX_IA64_MODE"; then
12976       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12977       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12978     else
12979       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12980       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12981     fi
12982     ;;
12983   hppa*64*)
12984     shrext_cmds='.sl'
12985     hardcode_into_libs=yes
12986     dynamic_linker="$host_os dld.sl"
12987     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12988     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12989     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12990     soname_spec='$libname$release$shared_ext$major'
12991     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12992     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12993     ;;
12994   *)
12995     shrext_cmds='.sl'
12996     dynamic_linker="$host_os dld.sl"
12997     shlibpath_var=SHLIB_PATH
12998     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12999     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13000     soname_spec='$libname$release$shared_ext$major'
13001     ;;
13002   esac
13003   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13004   postinstall_cmds='chmod 555 $lib'
13005   # or fails outright, so override atomically:
13006   install_override_mode=555
13007   ;;
13008
13009 interix[3-9]*)
13010   version_type=linux # correct to gnu/linux during the next big refactor
13011   need_lib_prefix=no
13012   need_version=no
13013   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13014   soname_spec='$libname$release$shared_ext$major'
13015   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13016   shlibpath_var=LD_LIBRARY_PATH
13017   shlibpath_overrides_runpath=no
13018   hardcode_into_libs=yes
13019   ;;
13020
13021 irix5* | irix6* | nonstopux*)
13022   case $host_os in
13023     nonstopux*) version_type=nonstopux ;;
13024     *)
13025         if test yes = "$lt_cv_prog_gnu_ld"; then
13026                 version_type=linux # correct to gnu/linux during the next big refactor
13027         else
13028                 version_type=irix
13029         fi ;;
13030   esac
13031   need_lib_prefix=no
13032   need_version=no
13033   soname_spec='$libname$release$shared_ext$major'
13034   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13035   case $host_os in
13036   irix5* | nonstopux*)
13037     libsuff= shlibsuff=
13038     ;;
13039   *)
13040     case $LD in # libtool.m4 will add one of these switches to LD
13041     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13042       libsuff= shlibsuff= libmagic=32-bit;;
13043     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13044       libsuff=32 shlibsuff=N32 libmagic=N32;;
13045     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13046       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13047     *) libsuff= shlibsuff= libmagic=never-match;;
13048     esac
13049     ;;
13050   esac
13051   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13052   shlibpath_overrides_runpath=no
13053   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13054   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13055   hardcode_into_libs=yes
13056   ;;
13057
13058 # No shared lib support for Linux oldld, aout, or coff.
13059 linux*oldld* | linux*aout* | linux*coff*)
13060   dynamic_linker=no
13061   ;;
13062
13063 linux*android*)
13064   version_type=none # Android doesn't support versioned libraries.
13065   need_lib_prefix=no
13066   need_version=no
13067   library_names_spec='$libname$release$shared_ext'
13068   soname_spec='$libname$release$shared_ext'
13069   finish_cmds=
13070   shlibpath_var=LD_LIBRARY_PATH
13071   shlibpath_overrides_runpath=yes
13072
13073   # This implies no fast_install, which is unacceptable.
13074   # Some rework will be needed to allow for fast_install
13075   # before this can be enabled.
13076   hardcode_into_libs=yes
13077
13078   dynamic_linker='Android linker'
13079   # Don't embed -rpath directories since the linker doesn't support them.
13080   hardcode_libdir_flag_spec='-L$libdir'
13081   ;;
13082
13083 # This must be glibc/ELF.
13084 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13085   version_type=linux # correct to gnu/linux during the next big refactor
13086   need_lib_prefix=no
13087   need_version=no
13088   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13089   soname_spec='$libname$release$shared_ext$major'
13090   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13091   shlibpath_var=LD_LIBRARY_PATH
13092   shlibpath_overrides_runpath=no
13093
13094   # Some binutils ld are patched to set DT_RUNPATH
13095   if test ${lt_cv_shlibpath_overrides_runpath+y}
13096 then :
13097   printf %s "(cached) " >&6
13098 else $as_nop
13099   lt_cv_shlibpath_overrides_runpath=no
13100     save_LDFLAGS=$LDFLAGS
13101     save_libdir=$libdir
13102     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13103          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13104     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h.  */
13106
13107 int
13108 main (void)
13109 {
13110
13111   ;
13112   return 0;
13113 }
13114 _ACEOF
13115 if ac_fn_c_try_link "$LINENO"
13116 then :
13117   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13118 then :
13119   lt_cv_shlibpath_overrides_runpath=yes
13120 fi
13121 fi
13122 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13123     conftest$ac_exeext conftest.$ac_ext
13124     LDFLAGS=$save_LDFLAGS
13125     libdir=$save_libdir
13126
13127 fi
13128
13129   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13130
13131   # This implies no fast_install, which is unacceptable.
13132   # Some rework will be needed to allow for fast_install
13133   # before this can be enabled.
13134   hardcode_into_libs=yes
13135
13136   # Ideally, we could use ldconfig to report *all* directores which are
13137   # searched for libraries, however this is still not possible.  Aside from not
13138   # being certain /sbin/ldconfig is available, command
13139   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13140   # even though it is searched at run-time.  Try to do the best guess by
13141   # appending ld.so.conf contents (and includes) to the search path.
13142   if test -f /etc/ld.so.conf; then
13143     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' ' '`
13144     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13145   fi
13146
13147   # We used to test for /lib/ld.so.1 and disable shared libraries on
13148   # powerpc, because MkLinux only supported shared libraries with the
13149   # GNU dynamic linker.  Since this was broken with cross compilers,
13150   # most powerpc-linux boxes support dynamic linking these days and
13151   # people can always --disable-shared, the test was removed, and we
13152   # assume the GNU/Linux dynamic linker is in use.
13153   dynamic_linker='GNU/Linux ld.so'
13154   ;;
13155
13156 netbsdelf*-gnu)
13157   version_type=linux
13158   need_lib_prefix=no
13159   need_version=no
13160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13161   soname_spec='${libname}${release}${shared_ext}$major'
13162   shlibpath_var=LD_LIBRARY_PATH
13163   shlibpath_overrides_runpath=no
13164   hardcode_into_libs=yes
13165   dynamic_linker='NetBSD ld.elf_so'
13166   ;;
13167
13168 netbsd*)
13169   version_type=sunos
13170   need_lib_prefix=no
13171   need_version=no
13172   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13173     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13174     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13175     dynamic_linker='NetBSD (a.out) ld.so'
13176   else
13177     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13178     soname_spec='$libname$release$shared_ext$major'
13179     dynamic_linker='NetBSD ld.elf_so'
13180   fi
13181   shlibpath_var=LD_LIBRARY_PATH
13182   shlibpath_overrides_runpath=yes
13183   hardcode_into_libs=yes
13184   ;;
13185
13186 newsos6)
13187   version_type=linux # correct to gnu/linux during the next big refactor
13188   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13189   shlibpath_var=LD_LIBRARY_PATH
13190   shlibpath_overrides_runpath=yes
13191   ;;
13192
13193 *nto* | *qnx*)
13194   version_type=qnx
13195   need_lib_prefix=no
13196   need_version=no
13197   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13198   soname_spec='$libname$release$shared_ext$major'
13199   shlibpath_var=LD_LIBRARY_PATH
13200   shlibpath_overrides_runpath=no
13201   hardcode_into_libs=yes
13202   dynamic_linker='ldqnx.so'
13203   ;;
13204
13205 openbsd* | bitrig*)
13206   version_type=sunos
13207   sys_lib_dlsearch_path_spec=/usr/lib
13208   need_lib_prefix=no
13209   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13210     need_version=no
13211   else
13212     need_version=yes
13213   fi
13214   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13215   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13216   shlibpath_var=LD_LIBRARY_PATH
13217   shlibpath_overrides_runpath=yes
13218   ;;
13219
13220 os2*)
13221   libname_spec='$name'
13222   version_type=windows
13223   shrext_cmds=.dll
13224   need_version=no
13225   need_lib_prefix=no
13226   # OS/2 can only load a DLL with a base name of 8 characters or less.
13227   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13228     v=$($ECHO $release$versuffix | tr -d .-);
13229     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13230     $ECHO $n$v`$shared_ext'
13231   library_names_spec='${libname}_dll.$libext'
13232   dynamic_linker='OS/2 ld.exe'
13233   shlibpath_var=BEGINLIBPATH
13234   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13235   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13236   postinstall_cmds='base_file=`basename \$file`~
13237     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13238     dldir=$destdir/`dirname \$dlpath`~
13239     test -d \$dldir || mkdir -p \$dldir~
13240     $install_prog $dir/$dlname \$dldir/$dlname~
13241     chmod a+x \$dldir/$dlname~
13242     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13243       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13244     fi'
13245   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13246     dlpath=$dir/\$dldll~
13247     $RM \$dlpath'
13248   ;;
13249
13250 osf3* | osf4* | osf5*)
13251   version_type=osf
13252   need_lib_prefix=no
13253   need_version=no
13254   soname_spec='$libname$release$shared_ext$major'
13255   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13256   shlibpath_var=LD_LIBRARY_PATH
13257   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13258   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13259   ;;
13260
13261 rdos*)
13262   dynamic_linker=no
13263   ;;
13264
13265 solaris*)
13266   version_type=linux # correct to gnu/linux during the next big refactor
13267   need_lib_prefix=no
13268   need_version=no
13269   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13270   soname_spec='$libname$release$shared_ext$major'
13271   shlibpath_var=LD_LIBRARY_PATH
13272   shlibpath_overrides_runpath=yes
13273   hardcode_into_libs=yes
13274   # ldd complains unless libraries are executable
13275   postinstall_cmds='chmod +x $lib'
13276   ;;
13277
13278 sunos4*)
13279   version_type=sunos
13280   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13281   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13282   shlibpath_var=LD_LIBRARY_PATH
13283   shlibpath_overrides_runpath=yes
13284   if test yes = "$with_gnu_ld"; then
13285     need_lib_prefix=no
13286   fi
13287   need_version=yes
13288   ;;
13289
13290 sysv4 | sysv4.3*)
13291   version_type=linux # correct to gnu/linux during the next big refactor
13292   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13293   soname_spec='$libname$release$shared_ext$major'
13294   shlibpath_var=LD_LIBRARY_PATH
13295   case $host_vendor in
13296     sni)
13297       shlibpath_overrides_runpath=no
13298       need_lib_prefix=no
13299       runpath_var=LD_RUN_PATH
13300       ;;
13301     siemens)
13302       need_lib_prefix=no
13303       ;;
13304     motorola)
13305       need_lib_prefix=no
13306       need_version=no
13307       shlibpath_overrides_runpath=no
13308       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13309       ;;
13310   esac
13311   ;;
13312
13313 sysv4*MP*)
13314   if test -d /usr/nec; then
13315     version_type=linux # correct to gnu/linux during the next big refactor
13316     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13317     soname_spec='$libname$shared_ext.$major'
13318     shlibpath_var=LD_LIBRARY_PATH
13319   fi
13320   ;;
13321
13322 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13323   version_type=sco
13324   need_lib_prefix=no
13325   need_version=no
13326   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13327   soname_spec='$libname$release$shared_ext$major'
13328   shlibpath_var=LD_LIBRARY_PATH
13329   shlibpath_overrides_runpath=yes
13330   hardcode_into_libs=yes
13331   if test yes = "$with_gnu_ld"; then
13332     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13333   else
13334     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13335     case $host_os in
13336       sco3.2v5*)
13337         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13338         ;;
13339     esac
13340   fi
13341   sys_lib_dlsearch_path_spec='/usr/lib'
13342   ;;
13343
13344 tpf*)
13345   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13346   version_type=linux # correct to gnu/linux during the next big refactor
13347   need_lib_prefix=no
13348   need_version=no
13349   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13350   shlibpath_var=LD_LIBRARY_PATH
13351   shlibpath_overrides_runpath=no
13352   hardcode_into_libs=yes
13353   ;;
13354
13355 uts4*)
13356   version_type=linux # correct to gnu/linux during the next big refactor
13357   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13358   soname_spec='$libname$release$shared_ext$major'
13359   shlibpath_var=LD_LIBRARY_PATH
13360   ;;
13361
13362 *)
13363   dynamic_linker=no
13364   ;;
13365 esac
13366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13367 printf "%s\n" "$dynamic_linker" >&6; }
13368 test no = "$dynamic_linker" && can_build_shared=no
13369
13370 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13371 if test yes = "$GCC"; then
13372   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13373 fi
13374
13375 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13376   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13377 fi
13378
13379 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13380   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13381 fi
13382
13383 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13384 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13385
13386 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13387 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13388
13389 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13390 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13489 printf %s "checking how to hardcode library paths into programs... " >&6; }
13490 hardcode_action=
13491 if test -n "$hardcode_libdir_flag_spec" ||
13492    test -n "$runpath_var" ||
13493    test yes = "$hardcode_automatic"; then
13494
13495   # We can hardcode non-existent directories.
13496   if test no != "$hardcode_direct" &&
13497      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13498      # have to relink, otherwise we might link with an installed library
13499      # when we should be linking with a yet-to-be-installed one
13500      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13501      test no != "$hardcode_minus_L"; then
13502     # Linking always hardcodes the temporary library directory.
13503     hardcode_action=relink
13504   else
13505     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13506     hardcode_action=immediate
13507   fi
13508 else
13509   # We cannot hardcode anything, or else we can only hardcode existing
13510   # directories.
13511   hardcode_action=unsupported
13512 fi
13513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13514 printf "%s\n" "$hardcode_action" >&6; }
13515
13516 if test relink = "$hardcode_action" ||
13517    test yes = "$inherit_rpath"; then
13518   # Fast installation is not supported
13519   enable_fast_install=no
13520 elif test yes = "$shlibpath_overrides_runpath" ||
13521      test no = "$enable_shared"; then
13522   # Fast installation is not necessary
13523   enable_fast_install=needless
13524 fi
13525
13526
13527
13528
13529
13530
13531   if test yes != "$enable_dlopen"; then
13532   enable_dlopen=unknown
13533   enable_dlopen_self=unknown
13534   enable_dlopen_self_static=unknown
13535 else
13536   lt_cv_dlopen=no
13537   lt_cv_dlopen_libs=
13538
13539   case $host_os in
13540   beos*)
13541     lt_cv_dlopen=load_add_on
13542     lt_cv_dlopen_libs=
13543     lt_cv_dlopen_self=yes
13544     ;;
13545
13546   mingw* | pw32* | cegcc*)
13547     lt_cv_dlopen=LoadLibrary
13548     lt_cv_dlopen_libs=
13549     ;;
13550
13551   cygwin*)
13552     lt_cv_dlopen=dlopen
13553     lt_cv_dlopen_libs=
13554     ;;
13555
13556   darwin*)
13557     # if libdl is installed we need to link against it
13558     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13559 printf %s "checking for dlopen in -ldl... " >&6; }
13560 if test ${ac_cv_lib_dl_dlopen+y}
13561 then :
13562   printf %s "(cached) " >&6
13563 else $as_nop
13564   ac_check_lib_save_LIBS=$LIBS
13565 LIBS="-ldl  $LIBS"
13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h.  */
13568
13569 /* Override any GCC internal prototype to avoid an error.
13570    Use char because int might match the return type of a GCC
13571    builtin and then its argument prototype would still apply.  */
13572 char dlopen ();
13573 int
13574 main (void)
13575 {
13576 return dlopen ();
13577   ;
13578   return 0;
13579 }
13580 _ACEOF
13581 if ac_fn_c_try_link "$LINENO"
13582 then :
13583   ac_cv_lib_dl_dlopen=yes
13584 else $as_nop
13585   ac_cv_lib_dl_dlopen=no
13586 fi
13587 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13588     conftest$ac_exeext conftest.$ac_ext
13589 LIBS=$ac_check_lib_save_LIBS
13590 fi
13591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13592 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13593 if test "x$ac_cv_lib_dl_dlopen" = xyes
13594 then :
13595   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13596 else $as_nop
13597
13598     lt_cv_dlopen=dyld
13599     lt_cv_dlopen_libs=
13600     lt_cv_dlopen_self=yes
13601
13602 fi
13603
13604     ;;
13605
13606   tpf*)
13607     # Don't try to run any link tests for TPF.  We know it's impossible
13608     # because TPF is a cross-compiler, and we know how we open DSOs.
13609     lt_cv_dlopen=dlopen
13610     lt_cv_dlopen_libs=
13611     lt_cv_dlopen_self=no
13612     ;;
13613
13614   *)
13615     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13616 if test "x$ac_cv_func_shl_load" = xyes
13617 then :
13618   lt_cv_dlopen=shl_load
13619 else $as_nop
13620   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13621 printf %s "checking for shl_load in -ldld... " >&6; }
13622 if test ${ac_cv_lib_dld_shl_load+y}
13623 then :
13624   printf %s "(cached) " >&6
13625 else $as_nop
13626   ac_check_lib_save_LIBS=$LIBS
13627 LIBS="-ldld  $LIBS"
13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629 /* end confdefs.h.  */
13630
13631 /* Override any GCC internal prototype to avoid an error.
13632    Use char because int might match the return type of a GCC
13633    builtin and then its argument prototype would still apply.  */
13634 char shl_load ();
13635 int
13636 main (void)
13637 {
13638 return shl_load ();
13639   ;
13640   return 0;
13641 }
13642 _ACEOF
13643 if ac_fn_c_try_link "$LINENO"
13644 then :
13645   ac_cv_lib_dld_shl_load=yes
13646 else $as_nop
13647   ac_cv_lib_dld_shl_load=no
13648 fi
13649 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13650     conftest$ac_exeext conftest.$ac_ext
13651 LIBS=$ac_check_lib_save_LIBS
13652 fi
13653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13654 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13655 if test "x$ac_cv_lib_dld_shl_load" = xyes
13656 then :
13657   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13658 else $as_nop
13659   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13660 if test "x$ac_cv_func_dlopen" = xyes
13661 then :
13662   lt_cv_dlopen=dlopen
13663 else $as_nop
13664   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13665 printf %s "checking for dlopen in -ldl... " >&6; }
13666 if test ${ac_cv_lib_dl_dlopen+y}
13667 then :
13668   printf %s "(cached) " >&6
13669 else $as_nop
13670   ac_check_lib_save_LIBS=$LIBS
13671 LIBS="-ldl  $LIBS"
13672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13673 /* end confdefs.h.  */
13674
13675 /* Override any GCC internal prototype to avoid an error.
13676    Use char because int might match the return type of a GCC
13677    builtin and then its argument prototype would still apply.  */
13678 char dlopen ();
13679 int
13680 main (void)
13681 {
13682 return dlopen ();
13683   ;
13684   return 0;
13685 }
13686 _ACEOF
13687 if ac_fn_c_try_link "$LINENO"
13688 then :
13689   ac_cv_lib_dl_dlopen=yes
13690 else $as_nop
13691   ac_cv_lib_dl_dlopen=no
13692 fi
13693 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13694     conftest$ac_exeext conftest.$ac_ext
13695 LIBS=$ac_check_lib_save_LIBS
13696 fi
13697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13698 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13699 if test "x$ac_cv_lib_dl_dlopen" = xyes
13700 then :
13701   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13702 else $as_nop
13703   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13704 printf %s "checking for dlopen in -lsvld... " >&6; }
13705 if test ${ac_cv_lib_svld_dlopen+y}
13706 then :
13707   printf %s "(cached) " >&6
13708 else $as_nop
13709   ac_check_lib_save_LIBS=$LIBS
13710 LIBS="-lsvld  $LIBS"
13711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712 /* end confdefs.h.  */
13713
13714 /* Override any GCC internal prototype to avoid an error.
13715    Use char because int might match the return type of a GCC
13716    builtin and then its argument prototype would still apply.  */
13717 char dlopen ();
13718 int
13719 main (void)
13720 {
13721 return dlopen ();
13722   ;
13723   return 0;
13724 }
13725 _ACEOF
13726 if ac_fn_c_try_link "$LINENO"
13727 then :
13728   ac_cv_lib_svld_dlopen=yes
13729 else $as_nop
13730   ac_cv_lib_svld_dlopen=no
13731 fi
13732 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13733     conftest$ac_exeext conftest.$ac_ext
13734 LIBS=$ac_check_lib_save_LIBS
13735 fi
13736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13737 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13738 if test "x$ac_cv_lib_svld_dlopen" = xyes
13739 then :
13740   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13741 else $as_nop
13742   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13743 printf %s "checking for dld_link in -ldld... " >&6; }
13744 if test ${ac_cv_lib_dld_dld_link+y}
13745 then :
13746   printf %s "(cached) " >&6
13747 else $as_nop
13748   ac_check_lib_save_LIBS=$LIBS
13749 LIBS="-ldld  $LIBS"
13750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13751 /* end confdefs.h.  */
13752
13753 /* Override any GCC internal prototype to avoid an error.
13754    Use char because int might match the return type of a GCC
13755    builtin and then its argument prototype would still apply.  */
13756 char dld_link ();
13757 int
13758 main (void)
13759 {
13760 return dld_link ();
13761   ;
13762   return 0;
13763 }
13764 _ACEOF
13765 if ac_fn_c_try_link "$LINENO"
13766 then :
13767   ac_cv_lib_dld_dld_link=yes
13768 else $as_nop
13769   ac_cv_lib_dld_dld_link=no
13770 fi
13771 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13772     conftest$ac_exeext conftest.$ac_ext
13773 LIBS=$ac_check_lib_save_LIBS
13774 fi
13775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13776 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13777 if test "x$ac_cv_lib_dld_dld_link" = xyes
13778 then :
13779   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13780 fi
13781
13782
13783 fi
13784
13785
13786 fi
13787
13788
13789 fi
13790
13791
13792 fi
13793
13794
13795 fi
13796
13797     ;;
13798   esac
13799
13800   if test no = "$lt_cv_dlopen"; then
13801     enable_dlopen=no
13802   else
13803     enable_dlopen=yes
13804   fi
13805
13806   case $lt_cv_dlopen in
13807   dlopen)
13808     save_CPPFLAGS=$CPPFLAGS
13809     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13810
13811     save_LDFLAGS=$LDFLAGS
13812     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13813
13814     save_LIBS=$LIBS
13815     LIBS="$lt_cv_dlopen_libs $LIBS"
13816
13817     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13818 printf %s "checking whether a program can dlopen itself... " >&6; }
13819 if test ${lt_cv_dlopen_self+y}
13820 then :
13821   printf %s "(cached) " >&6
13822 else $as_nop
13823           if test yes = "$cross_compiling"; then :
13824   lt_cv_dlopen_self=cross
13825 else
13826   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13827   lt_status=$lt_dlunknown
13828   cat > conftest.$ac_ext <<_LT_EOF
13829 #line $LINENO "configure"
13830 #include "confdefs.h"
13831
13832 #if HAVE_DLFCN_H
13833 #include <dlfcn.h>
13834 #endif
13835
13836 #include <stdio.h>
13837
13838 #ifdef RTLD_GLOBAL
13839 #  define LT_DLGLOBAL           RTLD_GLOBAL
13840 #else
13841 #  ifdef DL_GLOBAL
13842 #    define LT_DLGLOBAL         DL_GLOBAL
13843 #  else
13844 #    define LT_DLGLOBAL         0
13845 #  endif
13846 #endif
13847
13848 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13849    find out it does not work in some platform. */
13850 #ifndef LT_DLLAZY_OR_NOW
13851 #  ifdef RTLD_LAZY
13852 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13853 #  else
13854 #    ifdef DL_LAZY
13855 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13856 #    else
13857 #      ifdef RTLD_NOW
13858 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13859 #      else
13860 #        ifdef DL_NOW
13861 #          define LT_DLLAZY_OR_NOW      DL_NOW
13862 #        else
13863 #          define LT_DLLAZY_OR_NOW      0
13864 #        endif
13865 #      endif
13866 #    endif
13867 #  endif
13868 #endif
13869
13870 /* When -fvisibility=hidden is used, assume the code has been annotated
13871    correspondingly for the symbols needed.  */
13872 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13873 int fnord () __attribute__((visibility("default")));
13874 #endif
13875
13876 int fnord () { return 42; }
13877 int main ()
13878 {
13879   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13880   int status = $lt_dlunknown;
13881
13882   if (self)
13883     {
13884       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13885       else
13886         {
13887           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13888           else puts (dlerror ());
13889         }
13890       /* dlclose (self); */
13891     }
13892   else
13893     puts (dlerror ());
13894
13895   return status;
13896 }
13897 _LT_EOF
13898   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13899   (eval $ac_link) 2>&5
13900   ac_status=$?
13901   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13902   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13903     (./conftest; exit; ) >&5 2>/dev/null
13904     lt_status=$?
13905     case x$lt_status in
13906       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13907       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13908       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13909     esac
13910   else :
13911     # compilation failed
13912     lt_cv_dlopen_self=no
13913   fi
13914 fi
13915 rm -fr conftest*
13916
13917
13918 fi
13919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13920 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13921
13922     if test yes = "$lt_cv_dlopen_self"; then
13923       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13924       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13925 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13926 if test ${lt_cv_dlopen_self_static+y}
13927 then :
13928   printf %s "(cached) " >&6
13929 else $as_nop
13930           if test yes = "$cross_compiling"; then :
13931   lt_cv_dlopen_self_static=cross
13932 else
13933   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13934   lt_status=$lt_dlunknown
13935   cat > conftest.$ac_ext <<_LT_EOF
13936 #line $LINENO "configure"
13937 #include "confdefs.h"
13938
13939 #if HAVE_DLFCN_H
13940 #include <dlfcn.h>
13941 #endif
13942
13943 #include <stdio.h>
13944
13945 #ifdef RTLD_GLOBAL
13946 #  define LT_DLGLOBAL           RTLD_GLOBAL
13947 #else
13948 #  ifdef DL_GLOBAL
13949 #    define LT_DLGLOBAL         DL_GLOBAL
13950 #  else
13951 #    define LT_DLGLOBAL         0
13952 #  endif
13953 #endif
13954
13955 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13956    find out it does not work in some platform. */
13957 #ifndef LT_DLLAZY_OR_NOW
13958 #  ifdef RTLD_LAZY
13959 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13960 #  else
13961 #    ifdef DL_LAZY
13962 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13963 #    else
13964 #      ifdef RTLD_NOW
13965 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13966 #      else
13967 #        ifdef DL_NOW
13968 #          define LT_DLLAZY_OR_NOW      DL_NOW
13969 #        else
13970 #          define LT_DLLAZY_OR_NOW      0
13971 #        endif
13972 #      endif
13973 #    endif
13974 #  endif
13975 #endif
13976
13977 /* When -fvisibility=hidden is used, assume the code has been annotated
13978    correspondingly for the symbols needed.  */
13979 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13980 int fnord () __attribute__((visibility("default")));
13981 #endif
13982
13983 int fnord () { return 42; }
13984 int main ()
13985 {
13986   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13987   int status = $lt_dlunknown;
13988
13989   if (self)
13990     {
13991       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13992       else
13993         {
13994           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13995           else puts (dlerror ());
13996         }
13997       /* dlclose (self); */
13998     }
13999   else
14000     puts (dlerror ());
14001
14002   return status;
14003 }
14004 _LT_EOF
14005   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14006   (eval $ac_link) 2>&5
14007   ac_status=$?
14008   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14009   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14010     (./conftest; exit; ) >&5 2>/dev/null
14011     lt_status=$?
14012     case x$lt_status in
14013       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14014       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14015       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14016     esac
14017   else :
14018     # compilation failed
14019     lt_cv_dlopen_self_static=no
14020   fi
14021 fi
14022 rm -fr conftest*
14023
14024
14025 fi
14026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14027 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14028     fi
14029
14030     CPPFLAGS=$save_CPPFLAGS
14031     LDFLAGS=$save_LDFLAGS
14032     LIBS=$save_LIBS
14033     ;;
14034   esac
14035
14036   case $lt_cv_dlopen_self in
14037   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14038   *) enable_dlopen_self=unknown ;;
14039   esac
14040
14041   case $lt_cv_dlopen_self_static in
14042   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14043   *) enable_dlopen_self_static=unknown ;;
14044   esac
14045 fi
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063 striplib=
14064 old_striplib=
14065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14066 printf %s "checking whether stripping libraries is possible... " >&6; }
14067 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14068   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14069   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14070   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14071 printf "%s\n" "yes" >&6; }
14072 else
14073 # FIXME - insert some real tests, host_os isn't really good enough
14074   case $host_os in
14075   darwin*)
14076     if test -n "$STRIP"; then
14077       striplib="$STRIP -x"
14078       old_striplib="$STRIP -S"
14079       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14080 printf "%s\n" "yes" >&6; }
14081     else
14082       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14083 printf "%s\n" "no" >&6; }
14084     fi
14085     ;;
14086   *)
14087     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14088 printf "%s\n" "no" >&6; }
14089     ;;
14090   esac
14091 fi
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104   # Report what library types will actually be built
14105   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14106 printf %s "checking if libtool supports shared libraries... " >&6; }
14107   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14108 printf "%s\n" "$can_build_shared" >&6; }
14109
14110   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14111 printf %s "checking whether to build shared libraries... " >&6; }
14112   test no = "$can_build_shared" && enable_shared=no
14113
14114   # On AIX, shared libraries and static libraries use the same namespace, and
14115   # are all built from PIC.
14116   case $host_os in
14117   aix3*)
14118     test yes = "$enable_shared" && enable_static=no
14119     if test -n "$RANLIB"; then
14120       archive_cmds="$archive_cmds~\$RANLIB \$lib"
14121       postinstall_cmds='$RANLIB $lib'
14122     fi
14123     ;;
14124
14125   aix[4-9]*)
14126     if test ia64 != "$host_cpu"; then
14127       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14128       yes,aix,yes) ;;                   # shared object as lib.so file only
14129       yes,svr4,*) ;;                    # shared object as lib.so archive member only
14130       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
14131       esac
14132     fi
14133     ;;
14134   esac
14135   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14136 printf "%s\n" "$enable_shared" >&6; }
14137
14138   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14139 printf %s "checking whether to build static libraries... " >&6; }
14140   # Make sure either enable_shared or enable_static is yes.
14141   test yes = "$enable_shared" || enable_static=yes
14142   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14143 printf "%s\n" "$enable_static" >&6; }
14144
14145
14146
14147
14148 fi
14149 ac_ext=c
14150 ac_cpp='$CPP $CPPFLAGS'
14151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14154
14155 CC=$lt_save_CC
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171         ac_config_commands="$ac_config_commands libtool"
14172
14173
14174
14175
14176 # Only expand once:
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14187         if test -n "$ac_tool_prefix"; then
14188   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14189 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14191 printf %s "checking for $ac_word... " >&6; }
14192 if test ${ac_cv_path_PKG_CONFIG+y}
14193 then :
14194   printf %s "(cached) " >&6
14195 else $as_nop
14196   case $PKG_CONFIG in
14197   [\\/]* | ?:[\\/]*)
14198   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14199   ;;
14200   *)
14201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14202 for as_dir in $PATH
14203 do
14204   IFS=$as_save_IFS
14205   case $as_dir in #(((
14206     '') as_dir=./ ;;
14207     */) ;;
14208     *) as_dir=$as_dir/ ;;
14209   esac
14210     for ac_exec_ext in '' $ac_executable_extensions; do
14211   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14212     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14213     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14214     break 2
14215   fi
14216 done
14217   done
14218 IFS=$as_save_IFS
14219
14220   ;;
14221 esac
14222 fi
14223 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14224 if test -n "$PKG_CONFIG"; then
14225   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14226 printf "%s\n" "$PKG_CONFIG" >&6; }
14227 else
14228   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14229 printf "%s\n" "no" >&6; }
14230 fi
14231
14232
14233 fi
14234 if test -z "$ac_cv_path_PKG_CONFIG"; then
14235   ac_pt_PKG_CONFIG=$PKG_CONFIG
14236   # Extract the first word of "pkg-config", so it can be a program name with args.
14237 set dummy pkg-config; ac_word=$2
14238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14239 printf %s "checking for $ac_word... " >&6; }
14240 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
14241 then :
14242   printf %s "(cached) " >&6
14243 else $as_nop
14244   case $ac_pt_PKG_CONFIG in
14245   [\\/]* | ?:[\\/]*)
14246   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14247   ;;
14248   *)
14249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250 for as_dir in $PATH
14251 do
14252   IFS=$as_save_IFS
14253   case $as_dir in #(((
14254     '') as_dir=./ ;;
14255     */) ;;
14256     *) as_dir=$as_dir/ ;;
14257   esac
14258     for ac_exec_ext in '' $ac_executable_extensions; do
14259   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14260     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14261     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14262     break 2
14263   fi
14264 done
14265   done
14266 IFS=$as_save_IFS
14267
14268   ;;
14269 esac
14270 fi
14271 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14272 if test -n "$ac_pt_PKG_CONFIG"; then
14273   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14274 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
14275 else
14276   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14277 printf "%s\n" "no" >&6; }
14278 fi
14279
14280   if test "x$ac_pt_PKG_CONFIG" = x; then
14281     PKG_CONFIG=""
14282   else
14283     case $cross_compiling:$ac_tool_warned in
14284 yes:)
14285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14286 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14287 ac_tool_warned=yes ;;
14288 esac
14289     PKG_CONFIG=$ac_pt_PKG_CONFIG
14290   fi
14291 else
14292   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14293 fi
14294
14295 fi
14296 if test -n "$PKG_CONFIG"; then
14297         _pkg_min_version=0.9.0
14298         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14299 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14300         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14301                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14302 printf "%s\n" "yes" >&6; }
14303         else
14304                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14305 printf "%s\n" "no" >&6; }
14306                 PKG_CONFIG=""
14307         fi
14308 fi
14309
14310       if test "X$prefix" = "XNONE"; then
14311     acl_final_prefix="$ac_default_prefix"
14312   else
14313     acl_final_prefix="$prefix"
14314   fi
14315   if test "X$exec_prefix" = "XNONE"; then
14316     acl_final_exec_prefix='${prefix}'
14317   else
14318     acl_final_exec_prefix="$exec_prefix"
14319   fi
14320   acl_save_prefix="$prefix"
14321   prefix="$acl_final_prefix"
14322   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14323   prefix="$acl_save_prefix"
14324
14325
14326
14327 # Check whether --with-gnu-ld was given.
14328 if test ${with_gnu_ld+y}
14329 then :
14330   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14331 else $as_nop
14332   with_gnu_ld=no
14333 fi
14334
14335 # Prepare PATH_SEPARATOR.
14336 # The user is always right.
14337 if test "${PATH_SEPARATOR+set}" != set; then
14338   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14339   # contains only /bin. Note that ksh looks also at the FPATH variable,
14340   # so we have to set that as well for the test.
14341   PATH_SEPARATOR=:
14342   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14343     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14344            || PATH_SEPARATOR=';'
14345        }
14346 fi
14347
14348 ac_prog=ld
14349 if test "$GCC" = yes; then
14350   # Check if gcc -print-prog-name=ld gives a path.
14351   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14352 printf %s "checking for ld used by $CC... " >&6; }
14353   case $host in
14354   *-*-mingw*)
14355     # gcc leaves a trailing carriage return which upsets mingw
14356     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14357   *)
14358     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14359   esac
14360   case $ac_prog in
14361     # Accept absolute paths.
14362     [\\/]* | ?:[\\/]*)
14363       re_direlt='/[^/][^/]*/\.\./'
14364       # Canonicalize the pathname of ld
14365       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
14366       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
14367         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14368       done
14369       test -z "$LD" && LD="$ac_prog"
14370       ;;
14371   "")
14372     # If it fails, then pretend we aren't using GCC.
14373     ac_prog=ld
14374     ;;
14375   *)
14376     # If it is relative, then search for the first ld in PATH.
14377     with_gnu_ld=unknown
14378     ;;
14379   esac
14380 elif test "$with_gnu_ld" = yes; then
14381   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14382 printf %s "checking for GNU ld... " >&6; }
14383 else
14384   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14385 printf %s "checking for non-GNU ld... " >&6; }
14386 fi
14387 if test ${acl_cv_path_LD+y}
14388 then :
14389   printf %s "(cached) " >&6
14390 else $as_nop
14391   if test -z "$LD"; then
14392   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14393   for ac_dir in $PATH; do
14394     IFS="$acl_save_ifs"
14395     test -z "$ac_dir" && ac_dir=.
14396     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14397       acl_cv_path_LD="$ac_dir/$ac_prog"
14398       # Check to see if the program is GNU ld.  I'd rather use --version,
14399       # but apparently some variants of GNU ld only accept -v.
14400       # Break only if it was the GNU/non-GNU ld that we prefer.
14401       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
14402       *GNU* | *'with BFD'*)
14403         test "$with_gnu_ld" != no && break
14404         ;;
14405       *)
14406         test "$with_gnu_ld" != yes && break
14407         ;;
14408       esac
14409     fi
14410   done
14411   IFS="$acl_save_ifs"
14412 else
14413   acl_cv_path_LD="$LD" # Let the user override the test with a path.
14414 fi
14415 fi
14416
14417 LD="$acl_cv_path_LD"
14418 if test -n "$LD"; then
14419   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14420 printf "%s\n" "$LD" >&6; }
14421 else
14422   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14423 printf "%s\n" "no" >&6; }
14424 fi
14425 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14427 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14428 if test ${acl_cv_prog_gnu_ld+y}
14429 then :
14430   printf %s "(cached) " >&6
14431 else $as_nop
14432   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14433 case `$LD -v 2>&1 </dev/null` in
14434 *GNU* | *'with BFD'*)
14435   acl_cv_prog_gnu_ld=yes
14436   ;;
14437 *)
14438   acl_cv_prog_gnu_ld=no
14439   ;;
14440 esac
14441 fi
14442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14443 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
14444 with_gnu_ld=$acl_cv_prog_gnu_ld
14445
14446
14447
14448
14449
14450                                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14451 printf %s "checking for shared library run path origin... " >&6; }
14452 if test ${acl_cv_rpath+y}
14453 then :
14454   printf %s "(cached) " >&6
14455 else $as_nop
14456
14457     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14458     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14459     . ./conftest.sh
14460     rm -f ./conftest.sh
14461     acl_cv_rpath=done
14462
14463 fi
14464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14465 printf "%s\n" "$acl_cv_rpath" >&6; }
14466   wl="$acl_cv_wl"
14467   acl_libext="$acl_cv_libext"
14468   acl_shlibext="$acl_cv_shlibext"
14469   acl_libname_spec="$acl_cv_libname_spec"
14470   acl_library_names_spec="$acl_cv_library_names_spec"
14471   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14472   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14473   acl_hardcode_direct="$acl_cv_hardcode_direct"
14474   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14475     # Check whether --enable-rpath was given.
14476 if test ${enable_rpath+y}
14477 then :
14478   enableval=$enable_rpath; :
14479 else $as_nop
14480   enable_rpath=yes
14481 fi
14482
14483
14484
14485
14486
14487   acl_libdirstem=lib
14488   acl_libdirstem2=
14489   case "$host_os" in
14490     solaris*)
14491                                     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
14492 printf %s "checking for 64-bit host... " >&6; }
14493 if test ${gl_cv_solaris_64bit+y}
14494 then :
14495   printf %s "(cached) " >&6
14496 else $as_nop
14497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498 /* end confdefs.h.  */
14499
14500 #ifdef _LP64
14501 sixtyfour bits
14502 #endif
14503
14504 _ACEOF
14505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14506   $EGREP "sixtyfour bits" >/dev/null 2>&1
14507 then :
14508   gl_cv_solaris_64bit=yes
14509 else $as_nop
14510   gl_cv_solaris_64bit=no
14511 fi
14512 rm -rf conftest*
14513
14514
14515 fi
14516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
14517 printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
14518       if test $gl_cv_solaris_64bit = yes; then
14519         acl_libdirstem=lib/64
14520         case "$host_cpu" in
14521           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
14522           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
14523         esac
14524       fi
14525       ;;
14526     *)
14527       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14528       if test -n "$searchpath"; then
14529         acl_save_IFS="${IFS=    }"; IFS=":"
14530         for searchdir in $searchpath; do
14531           if test -d "$searchdir"; then
14532             case "$searchdir" in
14533               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14534               */../ | */.. )
14535                 # Better ignore directories of this form. They are misleading.
14536                 ;;
14537               *) searchdir=`cd "$searchdir" && pwd`
14538                  case "$searchdir" in
14539                    */lib64 ) acl_libdirstem=lib64 ;;
14540                  esac ;;
14541             esac
14542           fi
14543         done
14544         IFS="$acl_save_IFS"
14545       fi
14546       ;;
14547   esac
14548   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561     use_additional=yes
14562
14563   acl_save_prefix="$prefix"
14564   prefix="$acl_final_prefix"
14565   acl_save_exec_prefix="$exec_prefix"
14566   exec_prefix="$acl_final_exec_prefix"
14567
14568     eval additional_includedir=\"$includedir\"
14569     eval additional_libdir=\"$libdir\"
14570
14571   exec_prefix="$acl_save_exec_prefix"
14572   prefix="$acl_save_prefix"
14573
14574
14575 # Check whether --with-libiconv-prefix was given.
14576 if test ${with_libiconv_prefix+y}
14577 then :
14578   withval=$with_libiconv_prefix;
14579     if test "X$withval" = "Xno"; then
14580       use_additional=no
14581     else
14582       if test "X$withval" = "X"; then
14583
14584   acl_save_prefix="$prefix"
14585   prefix="$acl_final_prefix"
14586   acl_save_exec_prefix="$exec_prefix"
14587   exec_prefix="$acl_final_exec_prefix"
14588
14589           eval additional_includedir=\"$includedir\"
14590           eval additional_libdir=\"$libdir\"
14591
14592   exec_prefix="$acl_save_exec_prefix"
14593   prefix="$acl_save_prefix"
14594
14595       else
14596         additional_includedir="$withval/include"
14597         additional_libdir="$withval/$acl_libdirstem"
14598         if test "$acl_libdirstem2" != "$acl_libdirstem" \
14599            && ! test -d "$withval/$acl_libdirstem"; then
14600           additional_libdir="$withval/$acl_libdirstem2"
14601         fi
14602       fi
14603     fi
14604
14605 fi
14606
14607       LIBICONV=
14608   LTLIBICONV=
14609   INCICONV=
14610   LIBICONV_PREFIX=
14611       HAVE_LIBICONV=
14612   rpathdirs=
14613   ltrpathdirs=
14614   names_already_handled=
14615   names_next_round='iconv '
14616   while test -n "$names_next_round"; do
14617     names_this_round="$names_next_round"
14618     names_next_round=
14619     for name in $names_this_round; do
14620       already_handled=
14621       for n in $names_already_handled; do
14622         if test "$n" = "$name"; then
14623           already_handled=yes
14624           break
14625         fi
14626       done
14627       if test -z "$already_handled"; then
14628         names_already_handled="$names_already_handled $name"
14629                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
14630         eval value=\"\$HAVE_LIB$uppername\"
14631         if test -n "$value"; then
14632           if test "$value" = yes; then
14633             eval value=\"\$LIB$uppername\"
14634             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14635             eval value=\"\$LTLIB$uppername\"
14636             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14637           else
14638                                     :
14639           fi
14640         else
14641                               found_dir=
14642           found_la=
14643           found_so=
14644           found_a=
14645           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14646           if test -n "$acl_shlibext"; then
14647             shrext=".$acl_shlibext"             # typically: shrext=.so
14648           else
14649             shrext=
14650           fi
14651           if test $use_additional = yes; then
14652             dir="$additional_libdir"
14653                                     if test -n "$acl_shlibext"; then
14654               if test -f "$dir/$libname$shrext"; then
14655                 found_dir="$dir"
14656                 found_so="$dir/$libname$shrext"
14657               else
14658                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14659                   ver=`(cd "$dir" && \
14660                         for f in "$libname$shrext".*; do echo "$f"; done \
14661                         | sed -e "s,^$libname$shrext\\\\.,," \
14662                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14663                         | sed 1q ) 2>/dev/null`
14664                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14665                     found_dir="$dir"
14666                     found_so="$dir/$libname$shrext.$ver"
14667                   fi
14668                 else
14669                   eval library_names=\"$acl_library_names_spec\"
14670                   for f in $library_names; do
14671                     if test -f "$dir/$f"; then
14672                       found_dir="$dir"
14673                       found_so="$dir/$f"
14674                       break
14675                     fi
14676                   done
14677                 fi
14678               fi
14679             fi
14680                         if test "X$found_dir" = "X"; then
14681               if test -f "$dir/$libname.$acl_libext"; then
14682                 found_dir="$dir"
14683                 found_a="$dir/$libname.$acl_libext"
14684               fi
14685             fi
14686             if test "X$found_dir" != "X"; then
14687               if test -f "$dir/$libname.la"; then
14688                 found_la="$dir/$libname.la"
14689               fi
14690             fi
14691           fi
14692           if test "X$found_dir" = "X"; then
14693             for x in $LDFLAGS $LTLIBICONV; do
14694
14695   acl_save_prefix="$prefix"
14696   prefix="$acl_final_prefix"
14697   acl_save_exec_prefix="$exec_prefix"
14698   exec_prefix="$acl_final_exec_prefix"
14699   eval x=\"$x\"
14700   exec_prefix="$acl_save_exec_prefix"
14701   prefix="$acl_save_prefix"
14702
14703               case "$x" in
14704                 -L*)
14705                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14706                                     if test -n "$acl_shlibext"; then
14707                     if test -f "$dir/$libname$shrext"; then
14708                       found_dir="$dir"
14709                       found_so="$dir/$libname$shrext"
14710                     else
14711                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14712                         ver=`(cd "$dir" && \
14713                               for f in "$libname$shrext".*; do echo "$f"; done \
14714                               | sed -e "s,^$libname$shrext\\\\.,," \
14715                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14716                               | sed 1q ) 2>/dev/null`
14717                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14718                           found_dir="$dir"
14719                           found_so="$dir/$libname$shrext.$ver"
14720                         fi
14721                       else
14722                         eval library_names=\"$acl_library_names_spec\"
14723                         for f in $library_names; do
14724                           if test -f "$dir/$f"; then
14725                             found_dir="$dir"
14726                             found_so="$dir/$f"
14727                             break
14728                           fi
14729                         done
14730                       fi
14731                     fi
14732                   fi
14733                                     if test "X$found_dir" = "X"; then
14734                     if test -f "$dir/$libname.$acl_libext"; then
14735                       found_dir="$dir"
14736                       found_a="$dir/$libname.$acl_libext"
14737                     fi
14738                   fi
14739                   if test "X$found_dir" != "X"; then
14740                     if test -f "$dir/$libname.la"; then
14741                       found_la="$dir/$libname.la"
14742                     fi
14743                   fi
14744                   ;;
14745               esac
14746               if test "X$found_dir" != "X"; then
14747                 break
14748               fi
14749             done
14750           fi
14751           if test "X$found_dir" != "X"; then
14752                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14753             if test "X$found_so" != "X"; then
14754                                                         if test "$enable_rpath" = no \
14755                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14756                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14757                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14758               else
14759                                                                                 haveit=
14760                 for x in $ltrpathdirs; do
14761                   if test "X$x" = "X$found_dir"; then
14762                     haveit=yes
14763                     break
14764                   fi
14765                 done
14766                 if test -z "$haveit"; then
14767                   ltrpathdirs="$ltrpathdirs $found_dir"
14768                 fi
14769                                 if test "$acl_hardcode_direct" = yes; then
14770                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14771                 else
14772                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14773                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14774                                                             haveit=
14775                     for x in $rpathdirs; do
14776                       if test "X$x" = "X$found_dir"; then
14777                         haveit=yes
14778                         break
14779                       fi
14780                     done
14781                     if test -z "$haveit"; then
14782                       rpathdirs="$rpathdirs $found_dir"
14783                     fi
14784                   else
14785                                                                                 haveit=
14786                     for x in $LDFLAGS $LIBICONV; do
14787
14788   acl_save_prefix="$prefix"
14789   prefix="$acl_final_prefix"
14790   acl_save_exec_prefix="$exec_prefix"
14791   exec_prefix="$acl_final_exec_prefix"
14792   eval x=\"$x\"
14793   exec_prefix="$acl_save_exec_prefix"
14794   prefix="$acl_save_prefix"
14795
14796                       if test "X$x" = "X-L$found_dir"; then
14797                         haveit=yes
14798                         break
14799                       fi
14800                     done
14801                     if test -z "$haveit"; then
14802                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14803                     fi
14804                     if test "$acl_hardcode_minus_L" != no; then
14805                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14806                     else
14807                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14808                     fi
14809                   fi
14810                 fi
14811               fi
14812             else
14813               if test "X$found_a" != "X"; then
14814                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14815               else
14816                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14817               fi
14818             fi
14819                         additional_includedir=
14820             case "$found_dir" in
14821               */$acl_libdirstem | */$acl_libdirstem/)
14822                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14823                 if test "$name" = 'iconv'; then
14824                   LIBICONV_PREFIX="$basedir"
14825                 fi
14826                 additional_includedir="$basedir/include"
14827                 ;;
14828               */$acl_libdirstem2 | */$acl_libdirstem2/)
14829                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14830                 if test "$name" = 'iconv'; then
14831                   LIBICONV_PREFIX="$basedir"
14832                 fi
14833                 additional_includedir="$basedir/include"
14834                 ;;
14835             esac
14836             if test "X$additional_includedir" != "X"; then
14837                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14838                 haveit=
14839                 if test "X$additional_includedir" = "X/usr/local/include"; then
14840                   if test -n "$GCC"; then
14841                     case $host_os in
14842                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14843                     esac
14844                   fi
14845                 fi
14846                 if test -z "$haveit"; then
14847                   for x in $CPPFLAGS $INCICONV; do
14848
14849   acl_save_prefix="$prefix"
14850   prefix="$acl_final_prefix"
14851   acl_save_exec_prefix="$exec_prefix"
14852   exec_prefix="$acl_final_exec_prefix"
14853   eval x=\"$x\"
14854   exec_prefix="$acl_save_exec_prefix"
14855   prefix="$acl_save_prefix"
14856
14857                     if test "X$x" = "X-I$additional_includedir"; then
14858                       haveit=yes
14859                       break
14860                     fi
14861                   done
14862                   if test -z "$haveit"; then
14863                     if test -d "$additional_includedir"; then
14864                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14865                     fi
14866                   fi
14867                 fi
14868               fi
14869             fi
14870                         if test -n "$found_la"; then
14871                                                         save_libdir="$libdir"
14872               case "$found_la" in
14873                 */* | *\\*) . "$found_la" ;;
14874                 *) . "./$found_la" ;;
14875               esac
14876               libdir="$save_libdir"
14877                             for dep in $dependency_libs; do
14878                 case "$dep" in
14879                   -L*)
14880                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14881                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14882                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14883                       haveit=
14884                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14885                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14886                         if test -n "$GCC"; then
14887                           case $host_os in
14888                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14889                           esac
14890                         fi
14891                       fi
14892                       if test -z "$haveit"; then
14893                         haveit=
14894                         for x in $LDFLAGS $LIBICONV; do
14895
14896   acl_save_prefix="$prefix"
14897   prefix="$acl_final_prefix"
14898   acl_save_exec_prefix="$exec_prefix"
14899   exec_prefix="$acl_final_exec_prefix"
14900   eval x=\"$x\"
14901   exec_prefix="$acl_save_exec_prefix"
14902   prefix="$acl_save_prefix"
14903
14904                           if test "X$x" = "X-L$additional_libdir"; then
14905                             haveit=yes
14906                             break
14907                           fi
14908                         done
14909                         if test -z "$haveit"; then
14910                           if test -d "$additional_libdir"; then
14911                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14912                           fi
14913                         fi
14914                         haveit=
14915                         for x in $LDFLAGS $LTLIBICONV; do
14916
14917   acl_save_prefix="$prefix"
14918   prefix="$acl_final_prefix"
14919   acl_save_exec_prefix="$exec_prefix"
14920   exec_prefix="$acl_final_exec_prefix"
14921   eval x=\"$x\"
14922   exec_prefix="$acl_save_exec_prefix"
14923   prefix="$acl_save_prefix"
14924
14925                           if test "X$x" = "X-L$additional_libdir"; then
14926                             haveit=yes
14927                             break
14928                           fi
14929                         done
14930                         if test -z "$haveit"; then
14931                           if test -d "$additional_libdir"; then
14932                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14933                           fi
14934                         fi
14935                       fi
14936                     fi
14937                     ;;
14938                   -R*)
14939                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14940                     if test "$enable_rpath" != no; then
14941                                                                   haveit=
14942                       for x in $rpathdirs; do
14943                         if test "X$x" = "X$dir"; then
14944                           haveit=yes
14945                           break
14946                         fi
14947                       done
14948                       if test -z "$haveit"; then
14949                         rpathdirs="$rpathdirs $dir"
14950                       fi
14951                                                                   haveit=
14952                       for x in $ltrpathdirs; do
14953                         if test "X$x" = "X$dir"; then
14954                           haveit=yes
14955                           break
14956                         fi
14957                       done
14958                       if test -z "$haveit"; then
14959                         ltrpathdirs="$ltrpathdirs $dir"
14960                       fi
14961                     fi
14962                     ;;
14963                   -l*)
14964                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14965                     ;;
14966                   *.la)
14967                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14968                     ;;
14969                   *)
14970                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14971                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14972                     ;;
14973                 esac
14974               done
14975             fi
14976           else
14977                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14978             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14979           fi
14980         fi
14981       fi
14982     done
14983   done
14984   if test "X$rpathdirs" != "X"; then
14985     if test -n "$acl_hardcode_libdir_separator"; then
14986                         alldirs=
14987       for found_dir in $rpathdirs; do
14988         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14989       done
14990             acl_save_libdir="$libdir"
14991       libdir="$alldirs"
14992       eval flag=\"$acl_hardcode_libdir_flag_spec\"
14993       libdir="$acl_save_libdir"
14994       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14995     else
14996             for found_dir in $rpathdirs; do
14997         acl_save_libdir="$libdir"
14998         libdir="$found_dir"
14999         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15000         libdir="$acl_save_libdir"
15001         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15002       done
15003     fi
15004   fi
15005   if test "X$ltrpathdirs" != "X"; then
15006             for found_dir in $ltrpathdirs; do
15007       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15008     done
15009   fi
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022           am_save_CPPFLAGS="$CPPFLAGS"
15023
15024   for element in $INCICONV; do
15025     haveit=
15026     for x in $CPPFLAGS; do
15027
15028   acl_save_prefix="$prefix"
15029   prefix="$acl_final_prefix"
15030   acl_save_exec_prefix="$exec_prefix"
15031   exec_prefix="$acl_final_exec_prefix"
15032   eval x=\"$x\"
15033   exec_prefix="$acl_save_exec_prefix"
15034   prefix="$acl_save_prefix"
15035
15036       if test "X$x" = "X$element"; then
15037         haveit=yes
15038         break
15039       fi
15040     done
15041     if test -z "$haveit"; then
15042       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15043     fi
15044   done
15045
15046
15047   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15048 printf %s "checking for iconv... " >&6; }
15049 if test ${am_cv_func_iconv+y}
15050 then :
15051   printf %s "(cached) " >&6
15052 else $as_nop
15053
15054     am_cv_func_iconv="no, consider installing GNU libiconv"
15055     am_cv_lib_iconv=no
15056     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15057 /* end confdefs.h.  */
15058
15059 #include <stdlib.h>
15060 #include <iconv.h>
15061
15062 int
15063 main (void)
15064 {
15065 iconv_t cd = iconv_open("","");
15066            iconv(cd,NULL,NULL,NULL,NULL);
15067            iconv_close(cd);
15068   ;
15069   return 0;
15070 }
15071 _ACEOF
15072 if ac_fn_c_try_link "$LINENO"
15073 then :
15074   am_cv_func_iconv=yes
15075 fi
15076 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15077     conftest$ac_exeext conftest.$ac_ext
15078     if test "$am_cv_func_iconv" != yes; then
15079       am_save_LIBS="$LIBS"
15080       LIBS="$LIBS $LIBICONV"
15081       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15082 /* end confdefs.h.  */
15083
15084 #include <stdlib.h>
15085 #include <iconv.h>
15086
15087 int
15088 main (void)
15089 {
15090 iconv_t cd = iconv_open("","");
15091              iconv(cd,NULL,NULL,NULL,NULL);
15092              iconv_close(cd);
15093   ;
15094   return 0;
15095 }
15096 _ACEOF
15097 if ac_fn_c_try_link "$LINENO"
15098 then :
15099   am_cv_lib_iconv=yes
15100         am_cv_func_iconv=yes
15101 fi
15102 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15103     conftest$ac_exeext conftest.$ac_ext
15104       LIBS="$am_save_LIBS"
15105     fi
15106
15107 fi
15108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15109 printf "%s\n" "$am_cv_func_iconv" >&6; }
15110   if test "$am_cv_func_iconv" = yes; then
15111     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15112 printf %s "checking for working iconv... " >&6; }
15113 if test ${am_cv_func_iconv_works+y}
15114 then :
15115   printf %s "(cached) " >&6
15116 else $as_nop
15117
15118                   am_save_LIBS="$LIBS"
15119       if test $am_cv_lib_iconv = yes; then
15120         LIBS="$LIBS $LIBICONV"
15121       fi
15122       if test "$cross_compiling" = yes
15123 then :
15124
15125          case "$host_os" in
15126            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15127            *)            am_cv_func_iconv_works="guessing yes" ;;
15128          esac
15129
15130 else $as_nop
15131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h.  */
15133
15134 #include <iconv.h>
15135 #include <string.h>
15136 int main ()
15137 {
15138   int result = 0;
15139   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15140      returns.  */
15141   {
15142     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15143     if (cd_utf8_to_88591 != (iconv_t)(-1))
15144       {
15145         static const char input[] = "\342\202\254"; /* EURO SIGN */
15146         char buf[10];
15147         const char *inptr = input;
15148         size_t inbytesleft = strlen (input);
15149         char *outptr = buf;
15150         size_t outbytesleft = sizeof (buf);
15151         size_t res = iconv (cd_utf8_to_88591,
15152                             (char **) &inptr, &inbytesleft,
15153                             &outptr, &outbytesleft);
15154         if (res == 0)
15155           result |= 1;
15156         iconv_close (cd_utf8_to_88591);
15157       }
15158   }
15159   /* Test against Solaris 10 bug: Failures are not distinguishable from
15160      successful returns.  */
15161   {
15162     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
15163     if (cd_ascii_to_88591 != (iconv_t)(-1))
15164       {
15165         static const char input[] = "\263";
15166         char buf[10];
15167         const char *inptr = input;
15168         size_t inbytesleft = strlen (input);
15169         char *outptr = buf;
15170         size_t outbytesleft = sizeof (buf);
15171         size_t res = iconv (cd_ascii_to_88591,
15172                             (char **) &inptr, &inbytesleft,
15173                             &outptr, &outbytesleft);
15174         if (res == 0)
15175           result |= 2;
15176         iconv_close (cd_ascii_to_88591);
15177       }
15178   }
15179   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
15180   {
15181     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
15182     if (cd_88591_to_utf8 != (iconv_t)(-1))
15183       {
15184         static const char input[] = "\304";
15185         static char buf[2] = { (char)0xDE, (char)0xAD };
15186         const char *inptr = input;
15187         size_t inbytesleft = 1;
15188         char *outptr = buf;
15189         size_t outbytesleft = 1;
15190         size_t res = iconv (cd_88591_to_utf8,
15191                             (char **) &inptr, &inbytesleft,
15192                             &outptr, &outbytesleft);
15193         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
15194           result |= 4;
15195         iconv_close (cd_88591_to_utf8);
15196       }
15197   }
15198 #if 0 /* This bug could be worked around by the caller.  */
15199   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
15200   {
15201     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15202     if (cd_88591_to_utf8 != (iconv_t)(-1))
15203       {
15204         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15205         char buf[50];
15206         const char *inptr = input;
15207         size_t inbytesleft = strlen (input);
15208         char *outptr = buf;
15209         size_t outbytesleft = sizeof (buf);
15210         size_t res = iconv (cd_88591_to_utf8,
15211                             (char **) &inptr, &inbytesleft,
15212                             &outptr, &outbytesleft);
15213         if ((int)res > 0)
15214           result |= 8;
15215         iconv_close (cd_88591_to_utf8);
15216       }
15217   }
15218 #endif
15219   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15220      provided.  */
15221   if (/* Try standardized names.  */
15222       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15223       /* Try IRIX, OSF/1 names.  */
15224       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15225       /* Try AIX names.  */
15226       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15227       /* Try HP-UX names.  */
15228       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15229     result |= 16;
15230   return result;
15231 }
15232 _ACEOF
15233 if ac_fn_c_try_run "$LINENO"
15234 then :
15235   am_cv_func_iconv_works=yes
15236 else $as_nop
15237   am_cv_func_iconv_works=no
15238 fi
15239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15240   conftest.$ac_objext conftest.beam conftest.$ac_ext
15241 fi
15242
15243       LIBS="$am_save_LIBS"
15244
15245 fi
15246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15247 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
15248     case "$am_cv_func_iconv_works" in
15249       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15250       *)   am_func_iconv=yes ;;
15251     esac
15252   else
15253     am_func_iconv=no am_cv_lib_iconv=no
15254   fi
15255   if test "$am_func_iconv" = yes; then
15256
15257 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
15258
15259   fi
15260   if test "$am_cv_lib_iconv" = yes; then
15261     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15262 printf %s "checking how to link with libiconv... " >&6; }
15263     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15264 printf "%s\n" "$LIBICONV" >&6; }
15265   else
15266             CPPFLAGS="$am_save_CPPFLAGS"
15267     LIBICONV=
15268     LTLIBICONV=
15269   fi
15270
15271
15272
15273   if test "$am_cv_func_iconv" = yes; then
15274     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
15275 printf %s "checking for iconv declaration... " >&6; }
15276     if test ${am_cv_proto_iconv+y}
15277 then :
15278   printf %s "(cached) " >&6
15279 else $as_nop
15280
15281       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282 /* end confdefs.h.  */
15283
15284 #include <stdlib.h>
15285 #include <iconv.h>
15286 extern
15287 #ifdef __cplusplus
15288 "C"
15289 #endif
15290 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
15291 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15292 #else
15293 size_t iconv();
15294 #endif
15295
15296 int
15297 main (void)
15298 {
15299
15300   ;
15301   return 0;
15302 }
15303 _ACEOF
15304 if ac_fn_c_try_compile "$LINENO"
15305 then :
15306   am_cv_proto_iconv_arg1=""
15307 else $as_nop
15308   am_cv_proto_iconv_arg1="const"
15309 fi
15310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15311       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);"
15312 fi
15313
15314     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
15315     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
15316          $am_cv_proto_iconv" >&5
15317 printf "%s\n" "
15318          $am_cv_proto_iconv" >&6; }
15319
15320 printf "%s\n" "#define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h
15321
15322
15323   fi
15324
15325
15326
15327
15328
15329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15330 printf %s "checking for C/C++ restrict keyword... " >&6; }
15331 if test ${ac_cv_c_restrict+y}
15332 then :
15333   printf %s "(cached) " >&6
15334 else $as_nop
15335   ac_cv_c_restrict=no
15336    # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
15337    # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
15338    # Put 'restrict' last, because C++ lacks it.
15339    for ac_kw in __restrict__ __restrict _Restrict restrict; do
15340      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15341 /* end confdefs.h.  */
15342 typedef int *int_ptr;
15343            int foo (int_ptr $ac_kw ip) { return ip[0]; }
15344            int bar (int [$ac_kw]); /* Catch GCC bug 14050.  */
15345            int bar (int ip[$ac_kw]) { return ip[0]; }
15346
15347 int
15348 main (void)
15349 {
15350 int s[1];
15351            int *$ac_kw t = s;
15352            t[0] = 0;
15353            return foo (t) + bar (t);
15354
15355   ;
15356   return 0;
15357 }
15358 _ACEOF
15359 if ac_fn_c_try_compile "$LINENO"
15360 then :
15361   ac_cv_c_restrict=$ac_kw
15362 fi
15363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15364      test "$ac_cv_c_restrict" != no && break
15365    done
15366
15367 fi
15368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15369 printf "%s\n" "$ac_cv_c_restrict" >&6; }
15370
15371  case $ac_cv_c_restrict in
15372    restrict) ;;
15373    no) printf "%s\n" "#define restrict /**/" >>confdefs.h
15374  ;;
15375    *)  printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
15376  ;;
15377  esac
15378
15379
15380 ac_header_dirent=no
15381 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15382   as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15384 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
15385 if eval test \${$as_ac_Header+y}
15386 then :
15387   printf %s "(cached) " >&6
15388 else $as_nop
15389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15390 /* end confdefs.h.  */
15391 #include <sys/types.h>
15392 #include <$ac_hdr>
15393
15394 int
15395 main (void)
15396 {
15397 if ((DIR *) 0)
15398 return 0;
15399   ;
15400   return 0;
15401 }
15402 _ACEOF
15403 if ac_fn_c_try_compile "$LINENO"
15404 then :
15405   eval "$as_ac_Header=yes"
15406 else $as_nop
15407   eval "$as_ac_Header=no"
15408 fi
15409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15410 fi
15411 eval ac_res=\$$as_ac_Header
15412                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15413 printf "%s\n" "$ac_res" >&6; }
15414 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15415 then :
15416   cat >>confdefs.h <<_ACEOF
15417 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
15418 _ACEOF
15419
15420 ac_header_dirent=$ac_hdr; break
15421 fi
15422
15423 done
15424 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15425 if test $ac_header_dirent = dirent.h; then
15426   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15427 printf %s "checking for library containing opendir... " >&6; }
15428 if test ${ac_cv_search_opendir+y}
15429 then :
15430   printf %s "(cached) " >&6
15431 else $as_nop
15432   ac_func_search_save_LIBS=$LIBS
15433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15434 /* end confdefs.h.  */
15435
15436 /* Override any GCC internal prototype to avoid an error.
15437    Use char because int might match the return type of a GCC
15438    builtin and then its argument prototype would still apply.  */
15439 char opendir ();
15440 int
15441 main (void)
15442 {
15443 return opendir ();
15444   ;
15445   return 0;
15446 }
15447 _ACEOF
15448 for ac_lib in '' dir
15449 do
15450   if test -z "$ac_lib"; then
15451     ac_res="none required"
15452   else
15453     ac_res=-l$ac_lib
15454     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15455   fi
15456   if ac_fn_c_try_link "$LINENO"
15457 then :
15458   ac_cv_search_opendir=$ac_res
15459 fi
15460 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15461     conftest$ac_exeext
15462   if test ${ac_cv_search_opendir+y}
15463 then :
15464   break
15465 fi
15466 done
15467 if test ${ac_cv_search_opendir+y}
15468 then :
15469
15470 else $as_nop
15471   ac_cv_search_opendir=no
15472 fi
15473 rm conftest.$ac_ext
15474 LIBS=$ac_func_search_save_LIBS
15475 fi
15476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15477 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15478 ac_res=$ac_cv_search_opendir
15479 if test "$ac_res" != no
15480 then :
15481   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15482
15483 fi
15484
15485 else
15486   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15487 printf %s "checking for library containing opendir... " >&6; }
15488 if test ${ac_cv_search_opendir+y}
15489 then :
15490   printf %s "(cached) " >&6
15491 else $as_nop
15492   ac_func_search_save_LIBS=$LIBS
15493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15494 /* end confdefs.h.  */
15495
15496 /* Override any GCC internal prototype to avoid an error.
15497    Use char because int might match the return type of a GCC
15498    builtin and then its argument prototype would still apply.  */
15499 char opendir ();
15500 int
15501 main (void)
15502 {
15503 return opendir ();
15504   ;
15505   return 0;
15506 }
15507 _ACEOF
15508 for ac_lib in '' x
15509 do
15510   if test -z "$ac_lib"; then
15511     ac_res="none required"
15512   else
15513     ac_res=-l$ac_lib
15514     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15515   fi
15516   if ac_fn_c_try_link "$LINENO"
15517 then :
15518   ac_cv_search_opendir=$ac_res
15519 fi
15520 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15521     conftest$ac_exeext
15522   if test ${ac_cv_search_opendir+y}
15523 then :
15524   break
15525 fi
15526 done
15527 if test ${ac_cv_search_opendir+y}
15528 then :
15529
15530 else $as_nop
15531   ac_cv_search_opendir=no
15532 fi
15533 rm conftest.$ac_ext
15534 LIBS=$ac_func_search_save_LIBS
15535 fi
15536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15537 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15538 ac_res=$ac_cv_search_opendir
15539 if test "$ac_res" != no
15540 then :
15541   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15542
15543 fi
15544
15545 fi
15546
15547 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
15548 if test "x$ac_cv_header_fcntl_h" = xyes
15549 then :
15550   printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
15551
15552 fi
15553 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
15554 if test "x$ac_cv_header_malloc_h" = xyes
15555 then :
15556   printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
15557
15558 fi
15559 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
15560 if test "x$ac_cv_header_inttypes_h" = xyes
15561 then :
15562   printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
15563
15564 fi
15565 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
15566 if test "x$ac_cv_header_sys_ioctl_h" = xyes
15567 then :
15568   printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
15569
15570 fi
15571 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15572 if test "x$ac_cv_header_sys_mman_h" = xyes
15573 then :
15574   printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
15575
15576 fi
15577 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
15578 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
15579 then :
15580   printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
15581
15582 fi
15583 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
15584 if test "x$ac_cv_header_sys_statvfs_h" = xyes
15585 then :
15586   printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
15587
15588 fi
15589 ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
15590 if test "x$ac_cv_header_ctype_h" = xyes
15591 then :
15592   printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
15593
15594 fi
15595 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15596 if test "x$ac_cv_header_unistd_h" = xyes
15597 then :
15598   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
15599
15600 fi
15601 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
15602 if test "x$ac_cv_header_locale_h" = xyes
15603 then :
15604   printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
15605
15606 fi
15607 ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
15608 if test "x$ac_cv_header_byteswap_h" = xyes
15609 then :
15610   printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
15611
15612 fi
15613 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
15614 if test "x$ac_cv_header_endian_h" = xyes
15615 then :
15616   printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
15617
15618 fi
15619 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
15620 if test "x$ac_cv_header_stdint_h" = xyes
15621 then :
15622   printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
15623
15624 fi
15625
15626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
15627 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
15628 if test ${ac_cv_c_undeclared_builtin_options+y}
15629 then :
15630   printf %s "(cached) " >&6
15631 else $as_nop
15632   ac_save_CFLAGS=$CFLAGS
15633    ac_cv_c_undeclared_builtin_options='cannot detect'
15634    for ac_arg in '' -fno-builtin; do
15635      CFLAGS="$ac_save_CFLAGS $ac_arg"
15636      # This test program should *not* compile successfully.
15637      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15638 /* end confdefs.h.  */
15639
15640 int
15641 main (void)
15642 {
15643 (void) strchr;
15644   ;
15645   return 0;
15646 }
15647 _ACEOF
15648 if ac_fn_c_try_compile "$LINENO"
15649 then :
15650
15651 else $as_nop
15652   # This test program should compile successfully.
15653         # No library function is consistently available on
15654         # freestanding implementations, so test against a dummy
15655         # declaration.  Include always-available headers on the
15656         # off chance that they somehow elicit warnings.
15657         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15658 /* end confdefs.h.  */
15659 #include <float.h>
15660 #include <limits.h>
15661 #include <stdarg.h>
15662 #include <stddef.h>
15663 extern void ac_decl (int, char *);
15664
15665 int
15666 main (void)
15667 {
15668 (void) ac_decl (0, (char *) 0);
15669   (void) ac_decl;
15670
15671   ;
15672   return 0;
15673 }
15674 _ACEOF
15675 if ac_fn_c_try_compile "$LINENO"
15676 then :
15677   if test x"$ac_arg" = x
15678 then :
15679   ac_cv_c_undeclared_builtin_options='none needed'
15680 else $as_nop
15681   ac_cv_c_undeclared_builtin_options=$ac_arg
15682 fi
15683           break
15684 fi
15685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15686 fi
15687 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15688     done
15689     CFLAGS=$ac_save_CFLAGS
15690
15691 fi
15692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
15693 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
15694   case $ac_cv_c_undeclared_builtin_options in #(
15695   'cannot detect') :
15696     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15697 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15698 as_fn_error $? "cannot make $CC report undeclared builtins
15699 See \`config.log' for more details" "$LINENO" 5; } ;; #(
15700   'none needed') :
15701     ac_c_undeclared_builtin_options='' ;; #(
15702   *) :
15703     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
15704 esac
15705
15706 ac_fn_check_decl "$LINENO" "O_CLOEXEC" "ac_cv_have_decl_O_CLOEXEC" "
15707 #ifdef HAVE_FCNTL_H
15708 # include <fcntl.h>
15709 #endif
15710
15711 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15712 if test "x$ac_cv_have_decl_O_CLOEXEC" = xyes
15713 then :
15714   ac_have_decl=1
15715 else $as_nop
15716   ac_have_decl=0
15717 fi
15718 printf "%s\n" "#define HAVE_DECL_O_CLOEXEC $ac_have_decl" >>confdefs.h
15719 if test $ac_have_decl = 1
15720 then :
15721
15722 else $as_nop
15723
15724 printf "%s\n" "#define O_CLOEXEC 0" >>confdefs.h
15725
15726 fi
15727
15728
15729        for ac_header in uuid/uuid.h
15730 do :
15731   ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
15732 if test "x$ac_cv_header_uuid_uuid_h" = xyes
15733 then :
15734   printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h
15735
15736 else $as_nop
15737   as_fn_error $? "You need the uuid library." "$LINENO" 5
15738 fi
15739
15740 done
15741 ac_fn_c_check_header_compile "$LINENO" "libdevmapper.h" "ac_cv_header_libdevmapper_h" "$ac_includes_default"
15742 if test "x$ac_cv_header_libdevmapper_h" = xyes
15743 then :
15744
15745 else $as_nop
15746   as_fn_error $? "You need the device-mapper library." "$LINENO" 5
15747 fi
15748
15749
15750 # Check whether --enable-keyring was given.
15751 if test ${enable_keyring+y}
15752 then :
15753   enableval=$enable_keyring;
15754 else $as_nop
15755   enable_keyring=yes
15756 fi
15757
15758 if test "x$enable_keyring" = "xyes"; then
15759                for ac_header in linux/keyctl.h
15760 do :
15761   ac_fn_c_check_header_compile "$LINENO" "linux/keyctl.h" "ac_cv_header_linux_keyctl_h" "$ac_includes_default"
15762 if test "x$ac_cv_header_linux_keyctl_h" = xyes
15763 then :
15764   printf "%s\n" "#define HAVE_LINUX_KEYCTL_H 1" >>confdefs.h
15765
15766 else $as_nop
15767   as_fn_error $? "You need Linux kernel headers with kernel keyring service compiled." "$LINENO" 5
15768 fi
15769
15770 done
15771
15772                         ac_fn_check_decl "$LINENO" "__NR_add_key" "ac_cv_have_decl___NR_add_key" "#include <syscall.h>
15773 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15774 if test "x$ac_cv_have_decl___NR_add_key" = xyes
15775 then :
15776
15777 else $as_nop
15778   as_fn_error $? "The kernel is missing add_key syscall." "$LINENO" 5
15779 fi
15780         ac_fn_check_decl "$LINENO" "__NR_keyctl" "ac_cv_have_decl___NR_keyctl" "#include <syscall.h>
15781 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15782 if test "x$ac_cv_have_decl___NR_keyctl" = xyes
15783 then :
15784
15785 else $as_nop
15786   as_fn_error $? "The kernel is missing keyctl syscall." "$LINENO" 5
15787 fi
15788         ac_fn_check_decl "$LINENO" "__NR_request_key" "ac_cv_have_decl___NR_request_key" "#include <syscall.h>
15789 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15790 if test "x$ac_cv_have_decl___NR_request_key" = xyes
15791 then :
15792
15793 else $as_nop
15794   as_fn_error $? "The kernel is missing request_key syscall." "$LINENO" 5
15795 fi
15796
15797                         ac_fn_c_check_type "$LINENO" "key_serial_t" "ac_cv_type_key_serial_t" "
15798         $ac_includes_default
15799         #ifdef HAVE_LINUX_KEYCTL_H
15800         # include <linux/keyctl.h>
15801         #endif
15802
15803 "
15804 if test "x$ac_cv_type_key_serial_t" = xyes
15805 then :
15806
15807 printf "%s\n" "#define HAVE_KEY_SERIAL_T 1" >>confdefs.h
15808
15809
15810 fi
15811
15812
15813
15814 printf "%s\n" "#define KERNEL_KEYRING 1" >>confdefs.h
15815
15816 fi
15817  if test "x$enable_keyring" = "xyes"; then
15818   KERNEL_KEYRING_TRUE=
15819   KERNEL_KEYRING_FALSE='#'
15820 else
15821   KERNEL_KEYRING_TRUE='#'
15822   KERNEL_KEYRING_FALSE=
15823 fi
15824
15825
15826 saved_LIBS=$LIBS
15827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_clear in -luuid" >&5
15828 printf %s "checking for uuid_clear in -luuid... " >&6; }
15829 if test ${ac_cv_lib_uuid_uuid_clear+y}
15830 then :
15831   printf %s "(cached) " >&6
15832 else $as_nop
15833   ac_check_lib_save_LIBS=$LIBS
15834 LIBS="-luuid  $LIBS"
15835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15836 /* end confdefs.h.  */
15837
15838 /* Override any GCC internal prototype to avoid an error.
15839    Use char because int might match the return type of a GCC
15840    builtin and then its argument prototype would still apply.  */
15841 char uuid_clear ();
15842 int
15843 main (void)
15844 {
15845 return uuid_clear ();
15846   ;
15847   return 0;
15848 }
15849 _ACEOF
15850 if ac_fn_c_try_link "$LINENO"
15851 then :
15852   ac_cv_lib_uuid_uuid_clear=yes
15853 else $as_nop
15854   ac_cv_lib_uuid_uuid_clear=no
15855 fi
15856 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15857     conftest$ac_exeext conftest.$ac_ext
15858 LIBS=$ac_check_lib_save_LIBS
15859 fi
15860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_clear" >&5
15861 printf "%s\n" "$ac_cv_lib_uuid_uuid_clear" >&6; }
15862 if test "x$ac_cv_lib_uuid_uuid_clear" = xyes
15863 then :
15864   printf "%s\n" "#define HAVE_LIBUUID 1" >>confdefs.h
15865
15866   LIBS="-luuid $LIBS"
15867
15868 else $as_nop
15869   as_fn_error $? "You need the uuid library." "$LINENO" 5
15870 fi
15871
15872 UUID_LIBS=$LIBS
15873
15874 LIBS=$saved_LIBS
15875
15876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
15877 printf %s "checking for library containing clock_gettime... " >&6; }
15878 if test ${ac_cv_search_clock_gettime+y}
15879 then :
15880   printf %s "(cached) " >&6
15881 else $as_nop
15882   ac_func_search_save_LIBS=$LIBS
15883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884 /* end confdefs.h.  */
15885
15886 /* Override any GCC internal prototype to avoid an error.
15887    Use char because int might match the return type of a GCC
15888    builtin and then its argument prototype would still apply.  */
15889 char clock_gettime ();
15890 int
15891 main (void)
15892 {
15893 return clock_gettime ();
15894   ;
15895   return 0;
15896 }
15897 _ACEOF
15898 for ac_lib in '' rt posix4
15899 do
15900   if test -z "$ac_lib"; then
15901     ac_res="none required"
15902   else
15903     ac_res=-l$ac_lib
15904     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15905   fi
15906   if ac_fn_c_try_link "$LINENO"
15907 then :
15908   ac_cv_search_clock_gettime=$ac_res
15909 fi
15910 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15911     conftest$ac_exeext
15912   if test ${ac_cv_search_clock_gettime+y}
15913 then :
15914   break
15915 fi
15916 done
15917 if test ${ac_cv_search_clock_gettime+y}
15918 then :
15919
15920 else $as_nop
15921   ac_cv_search_clock_gettime=no
15922 fi
15923 rm conftest.$ac_ext
15924 LIBS=$ac_func_search_save_LIBS
15925 fi
15926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
15927 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
15928 ac_res=$ac_cv_search_clock_gettime
15929 if test "$ac_res" != no
15930 then :
15931   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15932
15933 fi
15934
15935 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
15936 if test "x$ac_cv_func_posix_memalign" = xyes
15937 then :
15938   printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
15939
15940 fi
15941 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
15942 if test "x$ac_cv_func_clock_gettime" = xyes
15943 then :
15944   printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15945
15946 fi
15947 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
15948 if test "x$ac_cv_func_posix_fallocate" = xyes
15949 then :
15950   printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
15951
15952 fi
15953 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
15954 if test "x$ac_cv_func_explicit_bzero" = xyes
15955 then :
15956   printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
15957
15958 fi
15959
15960
15961 if test "x$enable_largefile" = "xno"; then
15962   as_fn_error $? "Building with --disable-largefile is not supported, it can cause data corruption." "$LINENO" 5
15963 fi
15964
15965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15966 printf %s "checking for an ANSI C-conforming const... " >&6; }
15967 if test ${ac_cv_c_const+y}
15968 then :
15969   printf %s "(cached) " >&6
15970 else $as_nop
15971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15972 /* end confdefs.h.  */
15973
15974 int
15975 main (void)
15976 {
15977
15978 #ifndef __cplusplus
15979   /* Ultrix mips cc rejects this sort of thing.  */
15980   typedef int charset[2];
15981   const charset cs = { 0, 0 };
15982   /* SunOS 4.1.1 cc rejects this.  */
15983   char const *const *pcpcc;
15984   char **ppc;
15985   /* NEC SVR4.0.2 mips cc rejects this.  */
15986   struct point {int x, y;};
15987   static struct point const zero = {0,0};
15988   /* IBM XL C 1.02.0.0 rejects this.
15989      It does not let you subtract one const X* pointer from another in
15990      an arm of an if-expression whose if-part is not a constant
15991      expression */
15992   const char *g = "string";
15993   pcpcc = &g + (g ? g-g : 0);
15994   /* HPUX 7.0 cc rejects these. */
15995   ++pcpcc;
15996   ppc = (char**) pcpcc;
15997   pcpcc = (char const *const *) ppc;
15998   { /* SCO 3.2v4 cc rejects this sort of thing.  */
15999     char tx;
16000     char *t = &tx;
16001     char const *s = 0 ? (char *) 0 : (char const *) 0;
16002
16003     *t++ = 0;
16004     if (s) return 0;
16005   }
16006   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16007     int x[] = {25, 17};
16008     const int *foo = &x[0];
16009     ++foo;
16010   }
16011   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16012     typedef const int *iptr;
16013     iptr p = 0;
16014     ++p;
16015   }
16016   { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
16017        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16018     struct s { int j; const int *ap[3]; } bx;
16019     struct s *b = &bx; b->j = 5;
16020   }
16021   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16022     const int foo = 10;
16023     if (!foo) return 0;
16024   }
16025   return !cs[0] && !zero.x;
16026 #endif
16027
16028   ;
16029   return 0;
16030 }
16031 _ACEOF
16032 if ac_fn_c_try_compile "$LINENO"
16033 then :
16034   ac_cv_c_const=yes
16035 else $as_nop
16036   ac_cv_c_const=no
16037 fi
16038 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16039 fi
16040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16041 printf "%s\n" "$ac_cv_c_const" >&6; }
16042 if test $ac_cv_c_const = no; then
16043
16044 printf "%s\n" "#define const /**/" >>confdefs.h
16045
16046 fi
16047
16048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16049 printf %s "checking whether byte ordering is bigendian... " >&6; }
16050 if test ${ac_cv_c_bigendian+y}
16051 then :
16052   printf %s "(cached) " >&6
16053 else $as_nop
16054   ac_cv_c_bigendian=unknown
16055     # See if we're dealing with a universal compiler.
16056     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16057 /* end confdefs.h.  */
16058 #ifndef __APPLE_CC__
16059                not a universal capable compiler
16060              #endif
16061              typedef int dummy;
16062
16063 _ACEOF
16064 if ac_fn_c_try_compile "$LINENO"
16065 then :
16066
16067         # Check for potential -arch flags.  It is not universal unless
16068         # there are at least two -arch flags with different values.
16069         ac_arch=
16070         ac_prev=
16071         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16072          if test -n "$ac_prev"; then
16073            case $ac_word in
16074              i?86 | x86_64 | ppc | ppc64)
16075                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16076                  ac_arch=$ac_word
16077                else
16078                  ac_cv_c_bigendian=universal
16079                  break
16080                fi
16081                ;;
16082            esac
16083            ac_prev=
16084          elif test "x$ac_word" = "x-arch"; then
16085            ac_prev=arch
16086          fi
16087        done
16088 fi
16089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16090     if test $ac_cv_c_bigendian = unknown; then
16091       # See if sys/param.h defines the BYTE_ORDER macro.
16092       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093 /* end confdefs.h.  */
16094 #include <sys/types.h>
16095              #include <sys/param.h>
16096
16097 int
16098 main (void)
16099 {
16100 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16101                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16102                      && LITTLE_ENDIAN)
16103               bogus endian macros
16104              #endif
16105
16106   ;
16107   return 0;
16108 }
16109 _ACEOF
16110 if ac_fn_c_try_compile "$LINENO"
16111 then :
16112   # It does; now see whether it defined to BIG_ENDIAN or not.
16113          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h.  */
16115 #include <sys/types.h>
16116                 #include <sys/param.h>
16117
16118 int
16119 main (void)
16120 {
16121 #if BYTE_ORDER != BIG_ENDIAN
16122                  not big endian
16123                 #endif
16124
16125   ;
16126   return 0;
16127 }
16128 _ACEOF
16129 if ac_fn_c_try_compile "$LINENO"
16130 then :
16131   ac_cv_c_bigendian=yes
16132 else $as_nop
16133   ac_cv_c_bigendian=no
16134 fi
16135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16136 fi
16137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16138     fi
16139     if test $ac_cv_c_bigendian = unknown; then
16140       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16141       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16142 /* end confdefs.h.  */
16143 #include <limits.h>
16144
16145 int
16146 main (void)
16147 {
16148 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16149               bogus endian macros
16150              #endif
16151
16152   ;
16153   return 0;
16154 }
16155 _ACEOF
16156 if ac_fn_c_try_compile "$LINENO"
16157 then :
16158   # It does; now see whether it defined to _BIG_ENDIAN or not.
16159          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16160 /* end confdefs.h.  */
16161 #include <limits.h>
16162
16163 int
16164 main (void)
16165 {
16166 #ifndef _BIG_ENDIAN
16167                  not big endian
16168                 #endif
16169
16170   ;
16171   return 0;
16172 }
16173 _ACEOF
16174 if ac_fn_c_try_compile "$LINENO"
16175 then :
16176   ac_cv_c_bigendian=yes
16177 else $as_nop
16178   ac_cv_c_bigendian=no
16179 fi
16180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16181 fi
16182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16183     fi
16184     if test $ac_cv_c_bigendian = unknown; then
16185       # Compile a test program.
16186       if test "$cross_compiling" = yes
16187 then :
16188   # Try to guess by grepping values from an object file.
16189          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16190 /* end confdefs.h.  */
16191 unsigned short int ascii_mm[] =
16192                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16193                 unsigned short int ascii_ii[] =
16194                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16195                 int use_ascii (int i) {
16196                   return ascii_mm[i] + ascii_ii[i];
16197                 }
16198                 unsigned short int ebcdic_ii[] =
16199                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16200                 unsigned short int ebcdic_mm[] =
16201                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16202                 int use_ebcdic (int i) {
16203                   return ebcdic_mm[i] + ebcdic_ii[i];
16204                 }
16205                 extern int foo;
16206
16207 int
16208 main (void)
16209 {
16210 return use_ascii (foo) == use_ebcdic (foo);
16211   ;
16212   return 0;
16213 }
16214 _ACEOF
16215 if ac_fn_c_try_compile "$LINENO"
16216 then :
16217   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16218               ac_cv_c_bigendian=yes
16219             fi
16220             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16221               if test "$ac_cv_c_bigendian" = unknown; then
16222                 ac_cv_c_bigendian=no
16223               else
16224                 # finding both strings is unlikely to happen, but who knows?
16225                 ac_cv_c_bigendian=unknown
16226               fi
16227             fi
16228 fi
16229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16230 else $as_nop
16231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16232 /* end confdefs.h.  */
16233 $ac_includes_default
16234 int
16235 main (void)
16236 {
16237
16238              /* Are we little or big endian?  From Harbison&Steele.  */
16239              union
16240              {
16241                long int l;
16242                char c[sizeof (long int)];
16243              } u;
16244              u.l = 1;
16245              return u.c[sizeof (long int) - 1] == 1;
16246
16247   ;
16248   return 0;
16249 }
16250 _ACEOF
16251 if ac_fn_c_try_run "$LINENO"
16252 then :
16253   ac_cv_c_bigendian=no
16254 else $as_nop
16255   ac_cv_c_bigendian=yes
16256 fi
16257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16258   conftest.$ac_objext conftest.beam conftest.$ac_ext
16259 fi
16260
16261     fi
16262 fi
16263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16264 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
16265  case $ac_cv_c_bigendian in #(
16266    yes)
16267      printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
16268 ;; #(
16269    no)
16270       ;; #(
16271    universal)
16272
16273 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16274
16275      ;; #(
16276    *)
16277      as_fn_error $? "unknown endianness
16278  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16279  esac
16280
16281 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16282 if test "x$ac_cv_type_off_t" = xyes
16283 then :
16284
16285 else $as_nop
16286
16287 printf "%s\n" "#define off_t long int" >>confdefs.h
16288
16289 fi
16290
16291 # Check whether --enable-largefile was given.
16292 if test ${enable_largefile+y}
16293 then :
16294   enableval=$enable_largefile;
16295 fi
16296
16297 if test "$enable_largefile" != no; then
16298
16299   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16300 printf %s "checking for special C compiler options needed for large files... " >&6; }
16301 if test ${ac_cv_sys_largefile_CC+y}
16302 then :
16303   printf %s "(cached) " >&6
16304 else $as_nop
16305   ac_cv_sys_largefile_CC=no
16306      if test "$GCC" != yes; then
16307        ac_save_CC=$CC
16308        while :; do
16309          # IRIX 6.2 and later do not support large files by default,
16310          # so use the C compiler's -n32 option if that helps.
16311          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16312 /* end confdefs.h.  */
16313 #include <sys/types.h>
16314  /* Check that off_t can represent 2**63 - 1 correctly.
16315     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16316     since some C++ compilers masquerading as C compilers
16317     incorrectly reject 9223372036854775807.  */
16318 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
16319   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16320                        && LARGE_OFF_T % 2147483647 == 1)
16321                       ? 1 : -1];
16322 int
16323 main (void)
16324 {
16325
16326   ;
16327   return 0;
16328 }
16329 _ACEOF
16330          if ac_fn_c_try_compile "$LINENO"
16331 then :
16332   break
16333 fi
16334 rm -f core conftest.err conftest.$ac_objext conftest.beam
16335          CC="$CC -n32"
16336          if ac_fn_c_try_compile "$LINENO"
16337 then :
16338   ac_cv_sys_largefile_CC=' -n32'; break
16339 fi
16340 rm -f core conftest.err conftest.$ac_objext conftest.beam
16341          break
16342        done
16343        CC=$ac_save_CC
16344        rm -f conftest.$ac_ext
16345     fi
16346 fi
16347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16348 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
16349   if test "$ac_cv_sys_largefile_CC" != no; then
16350     CC=$CC$ac_cv_sys_largefile_CC
16351   fi
16352
16353   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16354 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
16355 if test ${ac_cv_sys_file_offset_bits+y}
16356 then :
16357   printf %s "(cached) " >&6
16358 else $as_nop
16359   while :; do
16360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16361 /* end confdefs.h.  */
16362 #include <sys/types.h>
16363  /* Check that off_t can represent 2**63 - 1 correctly.
16364     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16365     since some C++ compilers masquerading as C compilers
16366     incorrectly reject 9223372036854775807.  */
16367 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
16368   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16369                        && LARGE_OFF_T % 2147483647 == 1)
16370                       ? 1 : -1];
16371 int
16372 main (void)
16373 {
16374
16375   ;
16376   return 0;
16377 }
16378 _ACEOF
16379 if ac_fn_c_try_compile "$LINENO"
16380 then :
16381   ac_cv_sys_file_offset_bits=no; break
16382 fi
16383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16385 /* end confdefs.h.  */
16386 #define _FILE_OFFSET_BITS 64
16387 #include <sys/types.h>
16388  /* Check that off_t can represent 2**63 - 1 correctly.
16389     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16390     since some C++ compilers masquerading as C compilers
16391     incorrectly reject 9223372036854775807.  */
16392 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
16393   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16394                        && LARGE_OFF_T % 2147483647 == 1)
16395                       ? 1 : -1];
16396 int
16397 main (void)
16398 {
16399
16400   ;
16401   return 0;
16402 }
16403 _ACEOF
16404 if ac_fn_c_try_compile "$LINENO"
16405 then :
16406   ac_cv_sys_file_offset_bits=64; break
16407 fi
16408 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16409   ac_cv_sys_file_offset_bits=unknown
16410   break
16411 done
16412 fi
16413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16414 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
16415 case $ac_cv_sys_file_offset_bits in #(
16416   no | unknown) ;;
16417   *)
16418 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
16419 ;;
16420 esac
16421 rm -rf conftest*
16422   if test $ac_cv_sys_file_offset_bits = unknown; then
16423     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16424 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
16425 if test ${ac_cv_sys_large_files+y}
16426 then :
16427   printf %s "(cached) " >&6
16428 else $as_nop
16429   while :; do
16430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16431 /* end confdefs.h.  */
16432 #include <sys/types.h>
16433  /* Check that off_t can represent 2**63 - 1 correctly.
16434     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16435     since some C++ compilers masquerading as C compilers
16436     incorrectly reject 9223372036854775807.  */
16437 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
16438   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16439                        && LARGE_OFF_T % 2147483647 == 1)
16440                       ? 1 : -1];
16441 int
16442 main (void)
16443 {
16444
16445   ;
16446   return 0;
16447 }
16448 _ACEOF
16449 if ac_fn_c_try_compile "$LINENO"
16450 then :
16451   ac_cv_sys_large_files=no; break
16452 fi
16453 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16455 /* end confdefs.h.  */
16456 #define _LARGE_FILES 1
16457 #include <sys/types.h>
16458  /* Check that off_t can represent 2**63 - 1 correctly.
16459     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16460     since some C++ compilers masquerading as C compilers
16461     incorrectly reject 9223372036854775807.  */
16462 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
16463   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16464                        && LARGE_OFF_T % 2147483647 == 1)
16465                       ? 1 : -1];
16466 int
16467 main (void)
16468 {
16469
16470   ;
16471   return 0;
16472 }
16473 _ACEOF
16474 if ac_fn_c_try_compile "$LINENO"
16475 then :
16476   ac_cv_sys_large_files=1; break
16477 fi
16478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16479   ac_cv_sys_large_files=unknown
16480   break
16481 done
16482 fi
16483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16484 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
16485 case $ac_cv_sys_large_files in #(
16486   no | unknown) ;;
16487   *)
16488 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
16489 ;;
16490 esac
16491 rm -rf conftest*
16492   fi
16493 fi
16494
16495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16496 printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
16497 if test ${ac_cv_sys_largefile_source+y}
16498 then :
16499   printf %s "(cached) " >&6
16500 else $as_nop
16501   while :; do
16502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h.  */
16504 #include <sys/types.h> /* for off_t */
16505      #include <stdio.h>
16506 int
16507 main (void)
16508 {
16509 int (*fp) (FILE *, off_t, int) = fseeko;
16510      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
16511   ;
16512   return 0;
16513 }
16514 _ACEOF
16515 if ac_fn_c_try_link "$LINENO"
16516 then :
16517   ac_cv_sys_largefile_source=no; break
16518 fi
16519 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16520     conftest$ac_exeext conftest.$ac_ext
16521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16522 /* end confdefs.h.  */
16523 #define _LARGEFILE_SOURCE 1
16524 #include <sys/types.h> /* for off_t */
16525      #include <stdio.h>
16526 int
16527 main (void)
16528 {
16529 int (*fp) (FILE *, off_t, int) = fseeko;
16530      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
16531   ;
16532   return 0;
16533 }
16534 _ACEOF
16535 if ac_fn_c_try_link "$LINENO"
16536 then :
16537   ac_cv_sys_largefile_source=1; break
16538 fi
16539 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16540     conftest$ac_exeext conftest.$ac_ext
16541   ac_cv_sys_largefile_source=unknown
16542   break
16543 done
16544 fi
16545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
16546 printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
16547 case $ac_cv_sys_largefile_source in #(
16548   no | unknown) ;;
16549   *)
16550 printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
16551 ;;
16552 esac
16553 rm -rf conftest*
16554
16555 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16556 # in glibc 2.1.3, but that breaks too many other things.
16557 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16558 if test $ac_cv_sys_largefile_source != unknown; then
16559
16560 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
16561
16562 fi
16563
16564 if test $ac_cv_c_compiler_gnu = yes; then
16565     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
16566 printf %s "checking whether $CC needs -traditional... " >&6; }
16567 if test ${ac_cv_prog_gcc_traditional+y}
16568 then :
16569   printf %s "(cached) " >&6
16570 else $as_nop
16571     ac_pattern="Autoconf.*'x'"
16572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16573 /* end confdefs.h.  */
16574 #include <sgtty.h>
16575 Autoconf TIOCGETP
16576 _ACEOF
16577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16578   $EGREP "$ac_pattern" >/dev/null 2>&1
16579 then :
16580   ac_cv_prog_gcc_traditional=yes
16581 else $as_nop
16582   ac_cv_prog_gcc_traditional=no
16583 fi
16584 rm -rf conftest*
16585
16586
16587   if test $ac_cv_prog_gcc_traditional = no; then
16588     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16589 /* end confdefs.h.  */
16590 #include <termio.h>
16591 Autoconf TCGETA
16592 _ACEOF
16593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16594   $EGREP "$ac_pattern" >/dev/null 2>&1
16595 then :
16596   ac_cv_prog_gcc_traditional=yes
16597 fi
16598 rm -rf conftest*
16599
16600   fi
16601 fi
16602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
16603 printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; }
16604   if test $ac_cv_prog_gcc_traditional = yes; then
16605     CC="$CC -traditional"
16606   fi
16607 fi
16608
16609 ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
16610 if test "x$ac_cv_have_decl_strerror_r" = xyes
16611 then :
16612   ac_have_decl=1
16613 else $as_nop
16614   ac_have_decl=0
16615 fi
16616 printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
16617
16618
16619 if test $ac_cv_have_decl_strerror_r = yes; then
16620   # For backward compatibility's sake, define HAVE_STRERROR_R.
16621   # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
16622   # as AC_CHECK_DECLS_ONCE.)
16623
16624 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
16625
16626 fi
16627
16628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
16629 printf %s "checking whether strerror_r returns char *... " >&6; }
16630 if test ${ac_cv_func_strerror_r_char_p+y}
16631 then :
16632   printf %s "(cached) " >&6
16633 else $as_nop
16634
16635     ac_cv_func_strerror_r_char_p=no
16636     if test $ac_cv_have_decl_strerror_r = yes; then
16637       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16638 /* end confdefs.h.  */
16639 #include <string.h>
16640 int
16641 main (void)
16642 {
16643
16644           char buf[100];
16645           char x = *strerror_r (0, buf, sizeof buf);
16646           char *p = strerror_r (0, buf, sizeof buf);
16647           return !p || x;
16648
16649   ;
16650   return 0;
16651 }
16652 _ACEOF
16653 if ac_fn_c_try_compile "$LINENO"
16654 then :
16655   ac_cv_func_strerror_r_char_p=yes
16656 fi
16657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16658
16659     fi
16660
16661 fi
16662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
16663 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
16664 if test $ac_cv_func_strerror_r_char_p = yes; then
16665
16666 printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
16667
16668 fi
16669
16670
16671
16672
16673   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16674 printf %s "checking whether NLS is requested... " >&6; }
16675     # Check whether --enable-nls was given.
16676 if test ${enable_nls+y}
16677 then :
16678   enableval=$enable_nls; USE_NLS=$enableval
16679 else $as_nop
16680   USE_NLS=yes
16681 fi
16682
16683   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16684 printf "%s\n" "$USE_NLS" >&6; }
16685
16686
16687
16688
16689       GETTEXT_MACRO_VERSION=0.18
16690
16691
16692
16693
16694 # Prepare PATH_SEPARATOR.
16695 # The user is always right.
16696 if test "${PATH_SEPARATOR+set}" != set; then
16697   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16698   # contains only /bin. Note that ksh looks also at the FPATH variable,
16699   # so we have to set that as well for the test.
16700   PATH_SEPARATOR=:
16701   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16702     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16703            || PATH_SEPARATOR=';'
16704        }
16705 fi
16706
16707 # Find out how to test for executable files. Don't use a zero-byte file,
16708 # as systems may use methods other than mode bits to determine executability.
16709 cat >conf$$.file <<_ASEOF
16710 #! /bin/sh
16711 exit 0
16712 _ASEOF
16713 chmod +x conf$$.file
16714 if test -x conf$$.file >/dev/null 2>&1; then
16715   ac_executable_p="test -x"
16716 else
16717   ac_executable_p="test -f"
16718 fi
16719 rm -f conf$$.file
16720
16721 # Extract the first word of "msgfmt", so it can be a program name with args.
16722 set dummy msgfmt; ac_word=$2
16723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16724 printf %s "checking for $ac_word... " >&6; }
16725 if test ${ac_cv_path_MSGFMT+y}
16726 then :
16727   printf %s "(cached) " >&6
16728 else $as_nop
16729   case "$MSGFMT" in
16730   [\\/]* | ?:[\\/]*)
16731     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16732     ;;
16733   *)
16734     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16735     for ac_dir in $PATH; do
16736       IFS="$ac_save_IFS"
16737       test -z "$ac_dir" && ac_dir=.
16738       for ac_exec_ext in '' $ac_executable_extensions; do
16739         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16740           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16741           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16742      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16743             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16744             break 2
16745           fi
16746         fi
16747       done
16748     done
16749     IFS="$ac_save_IFS"
16750   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16751     ;;
16752 esac
16753 fi
16754 MSGFMT="$ac_cv_path_MSGFMT"
16755 if test "$MSGFMT" != ":"; then
16756   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16757 printf "%s\n" "$MSGFMT" >&6; }
16758 else
16759   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16760 printf "%s\n" "no" >&6; }
16761 fi
16762
16763   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16764 set dummy gmsgfmt; ac_word=$2
16765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16766 printf %s "checking for $ac_word... " >&6; }
16767 if test ${ac_cv_path_GMSGFMT+y}
16768 then :
16769   printf %s "(cached) " >&6
16770 else $as_nop
16771   case $GMSGFMT in
16772   [\\/]* | ?:[\\/]*)
16773   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16774   ;;
16775   *)
16776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16777 for as_dir in $PATH
16778 do
16779   IFS=$as_save_IFS
16780   case $as_dir in #(((
16781     '') as_dir=./ ;;
16782     */) ;;
16783     *) as_dir=$as_dir/ ;;
16784   esac
16785     for ac_exec_ext in '' $ac_executable_extensions; do
16786   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16787     ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
16788     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16789     break 2
16790   fi
16791 done
16792   done
16793 IFS=$as_save_IFS
16794
16795   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16796   ;;
16797 esac
16798 fi
16799 GMSGFMT=$ac_cv_path_GMSGFMT
16800 if test -n "$GMSGFMT"; then
16801   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16802 printf "%s\n" "$GMSGFMT" >&6; }
16803 else
16804   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16805 printf "%s\n" "no" >&6; }
16806 fi
16807
16808
16809
16810     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16811     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
16812     *) MSGFMT_015=$MSGFMT ;;
16813   esac
16814
16815   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16816     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
16817     *) GMSGFMT_015=$GMSGFMT ;;
16818   esac
16819
16820
16821
16822 # Prepare PATH_SEPARATOR.
16823 # The user is always right.
16824 if test "${PATH_SEPARATOR+set}" != set; then
16825   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16826   # contains only /bin. Note that ksh looks also at the FPATH variable,
16827   # so we have to set that as well for the test.
16828   PATH_SEPARATOR=:
16829   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16830     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16831            || PATH_SEPARATOR=';'
16832        }
16833 fi
16834
16835 # Find out how to test for executable files. Don't use a zero-byte file,
16836 # as systems may use methods other than mode bits to determine executability.
16837 cat >conf$$.file <<_ASEOF
16838 #! /bin/sh
16839 exit 0
16840 _ASEOF
16841 chmod +x conf$$.file
16842 if test -x conf$$.file >/dev/null 2>&1; then
16843   ac_executable_p="test -x"
16844 else
16845   ac_executable_p="test -f"
16846 fi
16847 rm -f conf$$.file
16848
16849 # Extract the first word of "xgettext", so it can be a program name with args.
16850 set dummy xgettext; ac_word=$2
16851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16852 printf %s "checking for $ac_word... " >&6; }
16853 if test ${ac_cv_path_XGETTEXT+y}
16854 then :
16855   printf %s "(cached) " >&6
16856 else $as_nop
16857   case "$XGETTEXT" in
16858   [\\/]* | ?:[\\/]*)
16859     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16860     ;;
16861   *)
16862     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16863     for ac_dir in $PATH; do
16864       IFS="$ac_save_IFS"
16865       test -z "$ac_dir" && ac_dir=.
16866       for ac_exec_ext in '' $ac_executable_extensions; do
16867         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16868           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16869           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16870      (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
16871             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16872             break 2
16873           fi
16874         fi
16875       done
16876     done
16877     IFS="$ac_save_IFS"
16878   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16879     ;;
16880 esac
16881 fi
16882 XGETTEXT="$ac_cv_path_XGETTEXT"
16883 if test "$XGETTEXT" != ":"; then
16884   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16885 printf "%s\n" "$XGETTEXT" >&6; }
16886 else
16887   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16888 printf "%s\n" "no" >&6; }
16889 fi
16890
16891     rm -f messages.po
16892
16893     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16894     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
16895     *) XGETTEXT_015=$XGETTEXT ;;
16896   esac
16897
16898
16899
16900 # Prepare PATH_SEPARATOR.
16901 # The user is always right.
16902 if test "${PATH_SEPARATOR+set}" != set; then
16903   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16904   # contains only /bin. Note that ksh looks also at the FPATH variable,
16905   # so we have to set that as well for the test.
16906   PATH_SEPARATOR=:
16907   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16908     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16909            || PATH_SEPARATOR=';'
16910        }
16911 fi
16912
16913 # Find out how to test for executable files. Don't use a zero-byte file,
16914 # as systems may use methods other than mode bits to determine executability.
16915 cat >conf$$.file <<_ASEOF
16916 #! /bin/sh
16917 exit 0
16918 _ASEOF
16919 chmod +x conf$$.file
16920 if test -x conf$$.file >/dev/null 2>&1; then
16921   ac_executable_p="test -x"
16922 else
16923   ac_executable_p="test -f"
16924 fi
16925 rm -f conf$$.file
16926
16927 # Extract the first word of "msgmerge", so it can be a program name with args.
16928 set dummy msgmerge; ac_word=$2
16929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16930 printf %s "checking for $ac_word... " >&6; }
16931 if test ${ac_cv_path_MSGMERGE+y}
16932 then :
16933   printf %s "(cached) " >&6
16934 else $as_nop
16935   case "$MSGMERGE" in
16936   [\\/]* | ?:[\\/]*)
16937     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16938     ;;
16939   *)
16940     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16941     for ac_dir in $PATH; do
16942       IFS="$ac_save_IFS"
16943       test -z "$ac_dir" && ac_dir=.
16944       for ac_exec_ext in '' $ac_executable_extensions; do
16945         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16946           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16947           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16948             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16949             break 2
16950           fi
16951         fi
16952       done
16953     done
16954     IFS="$ac_save_IFS"
16955   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16956     ;;
16957 esac
16958 fi
16959 MSGMERGE="$ac_cv_path_MSGMERGE"
16960 if test "$MSGMERGE" != ":"; then
16961   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16962 printf "%s\n" "$MSGMERGE" >&6; }
16963 else
16964   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16965 printf "%s\n" "no" >&6; }
16966 fi
16967
16968
16969         test -n "$localedir" || localedir='${datadir}/locale'
16970
16971
16972     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
16973
16974
16975   ac_config_commands="$ac_config_commands po-directories"
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17003 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
17004 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
17005 then :
17006   printf %s "(cached) " >&6
17007 else $as_nop
17008   gt_save_LIBS="$LIBS"
17009      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17010      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17011 /* end confdefs.h.  */
17012 #include <CoreFoundation/CFPreferences.h>
17013 int
17014 main (void)
17015 {
17016 CFPreferencesCopyAppValue(NULL, NULL)
17017   ;
17018   return 0;
17019 }
17020 _ACEOF
17021 if ac_fn_c_try_link "$LINENO"
17022 then :
17023   gt_cv_func_CFPreferencesCopyAppValue=yes
17024 else $as_nop
17025   gt_cv_func_CFPreferencesCopyAppValue=no
17026 fi
17027 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17028     conftest$ac_exeext conftest.$ac_ext
17029      LIBS="$gt_save_LIBS"
17030 fi
17031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17032 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17033   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17034
17035 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17036
17037   fi
17038     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
17039 printf %s "checking for CFLocaleCopyCurrent... " >&6; }
17040 if test ${gt_cv_func_CFLocaleCopyCurrent+y}
17041 then :
17042   printf %s "(cached) " >&6
17043 else $as_nop
17044   gt_save_LIBS="$LIBS"
17045      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17046      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17047 /* end confdefs.h.  */
17048 #include <CoreFoundation/CFLocale.h>
17049 int
17050 main (void)
17051 {
17052 CFLocaleCopyCurrent();
17053   ;
17054   return 0;
17055 }
17056 _ACEOF
17057 if ac_fn_c_try_link "$LINENO"
17058 then :
17059   gt_cv_func_CFLocaleCopyCurrent=yes
17060 else $as_nop
17061   gt_cv_func_CFLocaleCopyCurrent=no
17062 fi
17063 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17064     conftest$ac_exeext conftest.$ac_ext
17065      LIBS="$gt_save_LIBS"
17066 fi
17067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17068 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17069   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17070
17071 printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
17072
17073   fi
17074   INTL_MACOSX_LIBS=
17075   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17076     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17077   fi
17078
17079
17080
17081
17082
17083
17084   LIBINTL=
17085   LTLIBINTL=
17086   POSUB=
17087
17088     case " $gt_needs " in
17089     *" need-formatstring-macros "*) gt_api_version=3 ;;
17090     *" need-ngettext "*) gt_api_version=2 ;;
17091     *) gt_api_version=1 ;;
17092   esac
17093   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
17094   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
17095
17096     if test "$USE_NLS" = "yes"; then
17097     gt_use_preinstalled_gnugettext=no
17098
17099
17100         if test $gt_api_version -ge 3; then
17101           gt_revision_test_code='
17102 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17103 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
17104 #endif
17105 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
17106 '
17107         else
17108           gt_revision_test_code=
17109         fi
17110         if test $gt_api_version -ge 2; then
17111           gt_expression_test_code=' + * ngettext ("", "", 0)'
17112         else
17113           gt_expression_test_code=
17114         fi
17115
17116         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17117 printf %s "checking for GNU gettext in libc... " >&6; }
17118 if eval test \${$gt_func_gnugettext_libc+y}
17119 then :
17120   printf %s "(cached) " >&6
17121 else $as_nop
17122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17123 /* end confdefs.h.  */
17124
17125 #include <libintl.h>
17126 $gt_revision_test_code
17127 extern int _nl_msg_cat_cntr;
17128 extern int *_nl_domain_bindings;
17129
17130 int
17131 main (void)
17132 {
17133
17134 bindtextdomain ("", "");
17135 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
17136
17137   ;
17138   return 0;
17139 }
17140 _ACEOF
17141 if ac_fn_c_try_link "$LINENO"
17142 then :
17143   eval "$gt_func_gnugettext_libc=yes"
17144 else $as_nop
17145   eval "$gt_func_gnugettext_libc=no"
17146 fi
17147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17148     conftest$ac_exeext conftest.$ac_ext
17149 fi
17150 eval ac_res=\$$gt_func_gnugettext_libc
17151                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17152 printf "%s\n" "$ac_res" >&6; }
17153
17154         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
17155
17156
17157
17158
17159
17160           am_save_CPPFLAGS="$CPPFLAGS"
17161
17162   for element in $INCICONV; do
17163     haveit=
17164     for x in $CPPFLAGS; do
17165
17166   acl_save_prefix="$prefix"
17167   prefix="$acl_final_prefix"
17168   acl_save_exec_prefix="$exec_prefix"
17169   exec_prefix="$acl_final_exec_prefix"
17170   eval x=\"$x\"
17171   exec_prefix="$acl_save_exec_prefix"
17172   prefix="$acl_save_prefix"
17173
17174       if test "X$x" = "X$element"; then
17175         haveit=yes
17176         break
17177       fi
17178     done
17179     if test -z "$haveit"; then
17180       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17181     fi
17182   done
17183
17184
17185   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17186 printf %s "checking for iconv... " >&6; }
17187 if test ${am_cv_func_iconv+y}
17188 then :
17189   printf %s "(cached) " >&6
17190 else $as_nop
17191
17192     am_cv_func_iconv="no, consider installing GNU libiconv"
17193     am_cv_lib_iconv=no
17194     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17195 /* end confdefs.h.  */
17196
17197 #include <stdlib.h>
17198 #include <iconv.h>
17199
17200 int
17201 main (void)
17202 {
17203 iconv_t cd = iconv_open("","");
17204            iconv(cd,NULL,NULL,NULL,NULL);
17205            iconv_close(cd);
17206   ;
17207   return 0;
17208 }
17209 _ACEOF
17210 if ac_fn_c_try_link "$LINENO"
17211 then :
17212   am_cv_func_iconv=yes
17213 fi
17214 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17215     conftest$ac_exeext conftest.$ac_ext
17216     if test "$am_cv_func_iconv" != yes; then
17217       am_save_LIBS="$LIBS"
17218       LIBS="$LIBS $LIBICONV"
17219       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17220 /* end confdefs.h.  */
17221
17222 #include <stdlib.h>
17223 #include <iconv.h>
17224
17225 int
17226 main (void)
17227 {
17228 iconv_t cd = iconv_open("","");
17229              iconv(cd,NULL,NULL,NULL,NULL);
17230              iconv_close(cd);
17231   ;
17232   return 0;
17233 }
17234 _ACEOF
17235 if ac_fn_c_try_link "$LINENO"
17236 then :
17237   am_cv_lib_iconv=yes
17238         am_cv_func_iconv=yes
17239 fi
17240 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17241     conftest$ac_exeext conftest.$ac_ext
17242       LIBS="$am_save_LIBS"
17243     fi
17244
17245 fi
17246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17247 printf "%s\n" "$am_cv_func_iconv" >&6; }
17248   if test "$am_cv_func_iconv" = yes; then
17249     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17250 printf %s "checking for working iconv... " >&6; }
17251 if test ${am_cv_func_iconv_works+y}
17252 then :
17253   printf %s "(cached) " >&6
17254 else $as_nop
17255
17256                   am_save_LIBS="$LIBS"
17257       if test $am_cv_lib_iconv = yes; then
17258         LIBS="$LIBS $LIBICONV"
17259       fi
17260       if test "$cross_compiling" = yes
17261 then :
17262
17263          case "$host_os" in
17264            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17265            *)            am_cv_func_iconv_works="guessing yes" ;;
17266          esac
17267
17268 else $as_nop
17269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17270 /* end confdefs.h.  */
17271
17272 #include <iconv.h>
17273 #include <string.h>
17274 int main ()
17275 {
17276   int result = 0;
17277   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
17278      returns.  */
17279   {
17280     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17281     if (cd_utf8_to_88591 != (iconv_t)(-1))
17282       {
17283         static const char input[] = "\342\202\254"; /* EURO SIGN */
17284         char buf[10];
17285         const char *inptr = input;
17286         size_t inbytesleft = strlen (input);
17287         char *outptr = buf;
17288         size_t outbytesleft = sizeof (buf);
17289         size_t res = iconv (cd_utf8_to_88591,
17290                             (char **) &inptr, &inbytesleft,
17291                             &outptr, &outbytesleft);
17292         if (res == 0)
17293           result |= 1;
17294         iconv_close (cd_utf8_to_88591);
17295       }
17296   }
17297   /* Test against Solaris 10 bug: Failures are not distinguishable from
17298      successful returns.  */
17299   {
17300     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
17301     if (cd_ascii_to_88591 != (iconv_t)(-1))
17302       {
17303         static const char input[] = "\263";
17304         char buf[10];
17305         const char *inptr = input;
17306         size_t inbytesleft = strlen (input);
17307         char *outptr = buf;
17308         size_t outbytesleft = sizeof (buf);
17309         size_t res = iconv (cd_ascii_to_88591,
17310                             (char **) &inptr, &inbytesleft,
17311                             &outptr, &outbytesleft);
17312         if (res == 0)
17313           result |= 2;
17314         iconv_close (cd_ascii_to_88591);
17315       }
17316   }
17317   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
17318   {
17319     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
17320     if (cd_88591_to_utf8 != (iconv_t)(-1))
17321       {
17322         static const char input[] = "\304";
17323         static char buf[2] = { (char)0xDE, (char)0xAD };
17324         const char *inptr = input;
17325         size_t inbytesleft = 1;
17326         char *outptr = buf;
17327         size_t outbytesleft = 1;
17328         size_t res = iconv (cd_88591_to_utf8,
17329                             (char **) &inptr, &inbytesleft,
17330                             &outptr, &outbytesleft);
17331         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
17332           result |= 4;
17333         iconv_close (cd_88591_to_utf8);
17334       }
17335   }
17336 #if 0 /* This bug could be worked around by the caller.  */
17337   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
17338   {
17339     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17340     if (cd_88591_to_utf8 != (iconv_t)(-1))
17341       {
17342         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17343         char buf[50];
17344         const char *inptr = input;
17345         size_t inbytesleft = strlen (input);
17346         char *outptr = buf;
17347         size_t outbytesleft = sizeof (buf);
17348         size_t res = iconv (cd_88591_to_utf8,
17349                             (char **) &inptr, &inbytesleft,
17350                             &outptr, &outbytesleft);
17351         if ((int)res > 0)
17352           result |= 8;
17353         iconv_close (cd_88591_to_utf8);
17354       }
17355   }
17356 #endif
17357   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17358      provided.  */
17359   if (/* Try standardized names.  */
17360       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
17361       /* Try IRIX, OSF/1 names.  */
17362       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
17363       /* Try AIX names.  */
17364       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
17365       /* Try HP-UX names.  */
17366       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
17367     result |= 16;
17368   return result;
17369 }
17370 _ACEOF
17371 if ac_fn_c_try_run "$LINENO"
17372 then :
17373   am_cv_func_iconv_works=yes
17374 else $as_nop
17375   am_cv_func_iconv_works=no
17376 fi
17377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17378   conftest.$ac_objext conftest.beam conftest.$ac_ext
17379 fi
17380
17381       LIBS="$am_save_LIBS"
17382
17383 fi
17384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17385 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
17386     case "$am_cv_func_iconv_works" in
17387       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17388       *)   am_func_iconv=yes ;;
17389     esac
17390   else
17391     am_func_iconv=no am_cv_lib_iconv=no
17392   fi
17393   if test "$am_func_iconv" = yes; then
17394
17395 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
17396
17397   fi
17398   if test "$am_cv_lib_iconv" = yes; then
17399     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17400 printf %s "checking how to link with libiconv... " >&6; }
17401     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17402 printf "%s\n" "$LIBICONV" >&6; }
17403   else
17404             CPPFLAGS="$am_save_CPPFLAGS"
17405     LIBICONV=
17406     LTLIBICONV=
17407   fi
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419     use_additional=yes
17420
17421   acl_save_prefix="$prefix"
17422   prefix="$acl_final_prefix"
17423   acl_save_exec_prefix="$exec_prefix"
17424   exec_prefix="$acl_final_exec_prefix"
17425
17426     eval additional_includedir=\"$includedir\"
17427     eval additional_libdir=\"$libdir\"
17428
17429   exec_prefix="$acl_save_exec_prefix"
17430   prefix="$acl_save_prefix"
17431
17432
17433 # Check whether --with-libintl-prefix was given.
17434 if test ${with_libintl_prefix+y}
17435 then :
17436   withval=$with_libintl_prefix;
17437     if test "X$withval" = "Xno"; then
17438       use_additional=no
17439     else
17440       if test "X$withval" = "X"; then
17441
17442   acl_save_prefix="$prefix"
17443   prefix="$acl_final_prefix"
17444   acl_save_exec_prefix="$exec_prefix"
17445   exec_prefix="$acl_final_exec_prefix"
17446
17447           eval additional_includedir=\"$includedir\"
17448           eval additional_libdir=\"$libdir\"
17449
17450   exec_prefix="$acl_save_exec_prefix"
17451   prefix="$acl_save_prefix"
17452
17453       else
17454         additional_includedir="$withval/include"
17455         additional_libdir="$withval/$acl_libdirstem"
17456         if test "$acl_libdirstem2" != "$acl_libdirstem" \
17457            && ! test -d "$withval/$acl_libdirstem"; then
17458           additional_libdir="$withval/$acl_libdirstem2"
17459         fi
17460       fi
17461     fi
17462
17463 fi
17464
17465       LIBINTL=
17466   LTLIBINTL=
17467   INCINTL=
17468   LIBINTL_PREFIX=
17469       HAVE_LIBINTL=
17470   rpathdirs=
17471   ltrpathdirs=
17472   names_already_handled=
17473   names_next_round='intl '
17474   while test -n "$names_next_round"; do
17475     names_this_round="$names_next_round"
17476     names_next_round=
17477     for name in $names_this_round; do
17478       already_handled=
17479       for n in $names_already_handled; do
17480         if test "$n" = "$name"; then
17481           already_handled=yes
17482           break
17483         fi
17484       done
17485       if test -z "$already_handled"; then
17486         names_already_handled="$names_already_handled $name"
17487                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
17488         eval value=\"\$HAVE_LIB$uppername\"
17489         if test -n "$value"; then
17490           if test "$value" = yes; then
17491             eval value=\"\$LIB$uppername\"
17492             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17493             eval value=\"\$LTLIB$uppername\"
17494             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17495           else
17496                                     :
17497           fi
17498         else
17499                               found_dir=
17500           found_la=
17501           found_so=
17502           found_a=
17503           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
17504           if test -n "$acl_shlibext"; then
17505             shrext=".$acl_shlibext"             # typically: shrext=.so
17506           else
17507             shrext=
17508           fi
17509           if test $use_additional = yes; then
17510             dir="$additional_libdir"
17511                                     if test -n "$acl_shlibext"; then
17512               if test -f "$dir/$libname$shrext"; then
17513                 found_dir="$dir"
17514                 found_so="$dir/$libname$shrext"
17515               else
17516                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17517                   ver=`(cd "$dir" && \
17518                         for f in "$libname$shrext".*; do echo "$f"; done \
17519                         | sed -e "s,^$libname$shrext\\\\.,," \
17520                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17521                         | sed 1q ) 2>/dev/null`
17522                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17523                     found_dir="$dir"
17524                     found_so="$dir/$libname$shrext.$ver"
17525                   fi
17526                 else
17527                   eval library_names=\"$acl_library_names_spec\"
17528                   for f in $library_names; do
17529                     if test -f "$dir/$f"; then
17530                       found_dir="$dir"
17531                       found_so="$dir/$f"
17532                       break
17533                     fi
17534                   done
17535                 fi
17536               fi
17537             fi
17538                         if test "X$found_dir" = "X"; then
17539               if test -f "$dir/$libname.$acl_libext"; then
17540                 found_dir="$dir"
17541                 found_a="$dir/$libname.$acl_libext"
17542               fi
17543             fi
17544             if test "X$found_dir" != "X"; then
17545               if test -f "$dir/$libname.la"; then
17546                 found_la="$dir/$libname.la"
17547               fi
17548             fi
17549           fi
17550           if test "X$found_dir" = "X"; then
17551             for x in $LDFLAGS $LTLIBINTL; do
17552
17553   acl_save_prefix="$prefix"
17554   prefix="$acl_final_prefix"
17555   acl_save_exec_prefix="$exec_prefix"
17556   exec_prefix="$acl_final_exec_prefix"
17557   eval x=\"$x\"
17558   exec_prefix="$acl_save_exec_prefix"
17559   prefix="$acl_save_prefix"
17560
17561               case "$x" in
17562                 -L*)
17563                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17564                                     if test -n "$acl_shlibext"; then
17565                     if test -f "$dir/$libname$shrext"; then
17566                       found_dir="$dir"
17567                       found_so="$dir/$libname$shrext"
17568                     else
17569                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17570                         ver=`(cd "$dir" && \
17571                               for f in "$libname$shrext".*; do echo "$f"; done \
17572                               | sed -e "s,^$libname$shrext\\\\.,," \
17573                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17574                               | sed 1q ) 2>/dev/null`
17575                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17576                           found_dir="$dir"
17577                           found_so="$dir/$libname$shrext.$ver"
17578                         fi
17579                       else
17580                         eval library_names=\"$acl_library_names_spec\"
17581                         for f in $library_names; do
17582                           if test -f "$dir/$f"; then
17583                             found_dir="$dir"
17584                             found_so="$dir/$f"
17585                             break
17586                           fi
17587                         done
17588                       fi
17589                     fi
17590                   fi
17591                                     if test "X$found_dir" = "X"; then
17592                     if test -f "$dir/$libname.$acl_libext"; then
17593                       found_dir="$dir"
17594                       found_a="$dir/$libname.$acl_libext"
17595                     fi
17596                   fi
17597                   if test "X$found_dir" != "X"; then
17598                     if test -f "$dir/$libname.la"; then
17599                       found_la="$dir/$libname.la"
17600                     fi
17601                   fi
17602                   ;;
17603               esac
17604               if test "X$found_dir" != "X"; then
17605                 break
17606               fi
17607             done
17608           fi
17609           if test "X$found_dir" != "X"; then
17610                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17611             if test "X$found_so" != "X"; then
17612                                                         if test "$enable_rpath" = no \
17613                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17614                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17615                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17616               else
17617                                                                                 haveit=
17618                 for x in $ltrpathdirs; do
17619                   if test "X$x" = "X$found_dir"; then
17620                     haveit=yes
17621                     break
17622                   fi
17623                 done
17624                 if test -z "$haveit"; then
17625                   ltrpathdirs="$ltrpathdirs $found_dir"
17626                 fi
17627                                 if test "$acl_hardcode_direct" = yes; then
17628                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17629                 else
17630                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17631                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17632                                                             haveit=
17633                     for x in $rpathdirs; do
17634                       if test "X$x" = "X$found_dir"; then
17635                         haveit=yes
17636                         break
17637                       fi
17638                     done
17639                     if test -z "$haveit"; then
17640                       rpathdirs="$rpathdirs $found_dir"
17641                     fi
17642                   else
17643                                                                                 haveit=
17644                     for x in $LDFLAGS $LIBINTL; do
17645
17646   acl_save_prefix="$prefix"
17647   prefix="$acl_final_prefix"
17648   acl_save_exec_prefix="$exec_prefix"
17649   exec_prefix="$acl_final_exec_prefix"
17650   eval x=\"$x\"
17651   exec_prefix="$acl_save_exec_prefix"
17652   prefix="$acl_save_prefix"
17653
17654                       if test "X$x" = "X-L$found_dir"; then
17655                         haveit=yes
17656                         break
17657                       fi
17658                     done
17659                     if test -z "$haveit"; then
17660                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17661                     fi
17662                     if test "$acl_hardcode_minus_L" != no; then
17663                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17664                     else
17665                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17666                     fi
17667                   fi
17668                 fi
17669               fi
17670             else
17671               if test "X$found_a" != "X"; then
17672                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17673               else
17674                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17675               fi
17676             fi
17677                         additional_includedir=
17678             case "$found_dir" in
17679               */$acl_libdirstem | */$acl_libdirstem/)
17680                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17681                 if test "$name" = 'intl'; then
17682                   LIBINTL_PREFIX="$basedir"
17683                 fi
17684                 additional_includedir="$basedir/include"
17685                 ;;
17686               */$acl_libdirstem2 | */$acl_libdirstem2/)
17687                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17688                 if test "$name" = 'intl'; then
17689                   LIBINTL_PREFIX="$basedir"
17690                 fi
17691                 additional_includedir="$basedir/include"
17692                 ;;
17693             esac
17694             if test "X$additional_includedir" != "X"; then
17695                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17696                 haveit=
17697                 if test "X$additional_includedir" = "X/usr/local/include"; then
17698                   if test -n "$GCC"; then
17699                     case $host_os in
17700                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17701                     esac
17702                   fi
17703                 fi
17704                 if test -z "$haveit"; then
17705                   for x in $CPPFLAGS $INCINTL; do
17706
17707   acl_save_prefix="$prefix"
17708   prefix="$acl_final_prefix"
17709   acl_save_exec_prefix="$exec_prefix"
17710   exec_prefix="$acl_final_exec_prefix"
17711   eval x=\"$x\"
17712   exec_prefix="$acl_save_exec_prefix"
17713   prefix="$acl_save_prefix"
17714
17715                     if test "X$x" = "X-I$additional_includedir"; then
17716                       haveit=yes
17717                       break
17718                     fi
17719                   done
17720                   if test -z "$haveit"; then
17721                     if test -d "$additional_includedir"; then
17722                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17723                     fi
17724                   fi
17725                 fi
17726               fi
17727             fi
17728                         if test -n "$found_la"; then
17729                                                         save_libdir="$libdir"
17730               case "$found_la" in
17731                 */* | *\\*) . "$found_la" ;;
17732                 *) . "./$found_la" ;;
17733               esac
17734               libdir="$save_libdir"
17735                             for dep in $dependency_libs; do
17736                 case "$dep" in
17737                   -L*)
17738                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17739                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17740                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17741                       haveit=
17742                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17743                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17744                         if test -n "$GCC"; then
17745                           case $host_os in
17746                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17747                           esac
17748                         fi
17749                       fi
17750                       if test -z "$haveit"; then
17751                         haveit=
17752                         for x in $LDFLAGS $LIBINTL; do
17753
17754   acl_save_prefix="$prefix"
17755   prefix="$acl_final_prefix"
17756   acl_save_exec_prefix="$exec_prefix"
17757   exec_prefix="$acl_final_exec_prefix"
17758   eval x=\"$x\"
17759   exec_prefix="$acl_save_exec_prefix"
17760   prefix="$acl_save_prefix"
17761
17762                           if test "X$x" = "X-L$additional_libdir"; then
17763                             haveit=yes
17764                             break
17765                           fi
17766                         done
17767                         if test -z "$haveit"; then
17768                           if test -d "$additional_libdir"; then
17769                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17770                           fi
17771                         fi
17772                         haveit=
17773                         for x in $LDFLAGS $LTLIBINTL; do
17774
17775   acl_save_prefix="$prefix"
17776   prefix="$acl_final_prefix"
17777   acl_save_exec_prefix="$exec_prefix"
17778   exec_prefix="$acl_final_exec_prefix"
17779   eval x=\"$x\"
17780   exec_prefix="$acl_save_exec_prefix"
17781   prefix="$acl_save_prefix"
17782
17783                           if test "X$x" = "X-L$additional_libdir"; then
17784                             haveit=yes
17785                             break
17786                           fi
17787                         done
17788                         if test -z "$haveit"; then
17789                           if test -d "$additional_libdir"; then
17790                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17791                           fi
17792                         fi
17793                       fi
17794                     fi
17795                     ;;
17796                   -R*)
17797                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17798                     if test "$enable_rpath" != no; then
17799                                                                   haveit=
17800                       for x in $rpathdirs; do
17801                         if test "X$x" = "X$dir"; then
17802                           haveit=yes
17803                           break
17804                         fi
17805                       done
17806                       if test -z "$haveit"; then
17807                         rpathdirs="$rpathdirs $dir"
17808                       fi
17809                                                                   haveit=
17810                       for x in $ltrpathdirs; do
17811                         if test "X$x" = "X$dir"; then
17812                           haveit=yes
17813                           break
17814                         fi
17815                       done
17816                       if test -z "$haveit"; then
17817                         ltrpathdirs="$ltrpathdirs $dir"
17818                       fi
17819                     fi
17820                     ;;
17821                   -l*)
17822                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17823                     ;;
17824                   *.la)
17825                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17826                     ;;
17827                   *)
17828                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17829                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17830                     ;;
17831                 esac
17832               done
17833             fi
17834           else
17835                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17836             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17837           fi
17838         fi
17839       fi
17840     done
17841   done
17842   if test "X$rpathdirs" != "X"; then
17843     if test -n "$acl_hardcode_libdir_separator"; then
17844                         alldirs=
17845       for found_dir in $rpathdirs; do
17846         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17847       done
17848             acl_save_libdir="$libdir"
17849       libdir="$alldirs"
17850       eval flag=\"$acl_hardcode_libdir_flag_spec\"
17851       libdir="$acl_save_libdir"
17852       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17853     else
17854             for found_dir in $rpathdirs; do
17855         acl_save_libdir="$libdir"
17856         libdir="$found_dir"
17857         eval flag=\"$acl_hardcode_libdir_flag_spec\"
17858         libdir="$acl_save_libdir"
17859         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17860       done
17861     fi
17862   fi
17863   if test "X$ltrpathdirs" != "X"; then
17864             for found_dir in $ltrpathdirs; do
17865       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17866     done
17867   fi
17868
17869
17870
17871
17872
17873
17874           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17875 printf %s "checking for GNU gettext in libintl... " >&6; }
17876 if eval test \${$gt_func_gnugettext_libintl+y}
17877 then :
17878   printf %s "(cached) " >&6
17879 else $as_nop
17880   gt_save_CPPFLAGS="$CPPFLAGS"
17881             CPPFLAGS="$CPPFLAGS $INCINTL"
17882             gt_save_LIBS="$LIBS"
17883             LIBS="$LIBS $LIBINTL"
17884                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17885 /* end confdefs.h.  */
17886
17887 #include <libintl.h>
17888 $gt_revision_test_code
17889 extern int _nl_msg_cat_cntr;
17890 extern
17891 #ifdef __cplusplus
17892 "C"
17893 #endif
17894 const char *_nl_expand_alias (const char *);
17895
17896 int
17897 main (void)
17898 {
17899
17900 bindtextdomain ("", "");
17901 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17902
17903   ;
17904   return 0;
17905 }
17906 _ACEOF
17907 if ac_fn_c_try_link "$LINENO"
17908 then :
17909   eval "$gt_func_gnugettext_libintl=yes"
17910 else $as_nop
17911   eval "$gt_func_gnugettext_libintl=no"
17912 fi
17913 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17914     conftest$ac_exeext conftest.$ac_ext
17915                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
17916               LIBS="$LIBS $LIBICONV"
17917               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17918 /* end confdefs.h.  */
17919
17920 #include <libintl.h>
17921 $gt_revision_test_code
17922 extern int _nl_msg_cat_cntr;
17923 extern
17924 #ifdef __cplusplus
17925 "C"
17926 #endif
17927 const char *_nl_expand_alias (const char *);
17928
17929 int
17930 main (void)
17931 {
17932
17933 bindtextdomain ("", "");
17934 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17935
17936   ;
17937   return 0;
17938 }
17939 _ACEOF
17940 if ac_fn_c_try_link "$LINENO"
17941 then :
17942   LIBINTL="$LIBINTL $LIBICONV"
17943                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17944                  eval "$gt_func_gnugettext_libintl=yes"
17945
17946 fi
17947 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17948     conftest$ac_exeext conftest.$ac_ext
17949             fi
17950             CPPFLAGS="$gt_save_CPPFLAGS"
17951             LIBS="$gt_save_LIBS"
17952 fi
17953 eval ac_res=\$$gt_func_gnugettext_libintl
17954                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17955 printf "%s\n" "$ac_res" >&6; }
17956         fi
17957
17958                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
17959            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
17960                 && test "$PACKAGE" != gettext-runtime \
17961                 && test "$PACKAGE" != gettext-tools; }; then
17962           gt_use_preinstalled_gnugettext=yes
17963         else
17964                     LIBINTL=
17965           LTLIBINTL=
17966           INCINTL=
17967         fi
17968
17969
17970
17971     if test -n "$INTL_MACOSX_LIBS"; then
17972       if test "$gt_use_preinstalled_gnugettext" = "yes" \
17973          || test "$nls_cv_use_gnu_gettext" = "yes"; then
17974                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17975         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17976       fi
17977     fi
17978
17979     if test "$gt_use_preinstalled_gnugettext" = "yes" \
17980        || test "$nls_cv_use_gnu_gettext" = "yes"; then
17981
17982 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
17983
17984     else
17985       USE_NLS=no
17986     fi
17987   fi
17988
17989   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17990 printf %s "checking whether to use NLS... " >&6; }
17991   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17992 printf "%s\n" "$USE_NLS" >&6; }
17993   if test "$USE_NLS" = "yes"; then
17994     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17995 printf %s "checking where the gettext function comes from... " >&6; }
17996     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17997       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
17998         gt_source="external libintl"
17999       else
18000         gt_source="libc"
18001       fi
18002     else
18003       gt_source="included intl directory"
18004     fi
18005     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18006 printf "%s\n" "$gt_source" >&6; }
18007   fi
18008
18009   if test "$USE_NLS" = "yes"; then
18010
18011     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18012       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18013         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18014 printf %s "checking how to link with libintl... " >&6; }
18015         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18016 printf "%s\n" "$LIBINTL" >&6; }
18017
18018   for element in $INCINTL; do
18019     haveit=
18020     for x in $CPPFLAGS; do
18021
18022   acl_save_prefix="$prefix"
18023   prefix="$acl_final_prefix"
18024   acl_save_exec_prefix="$exec_prefix"
18025   exec_prefix="$acl_final_exec_prefix"
18026   eval x=\"$x\"
18027   exec_prefix="$acl_save_exec_prefix"
18028   prefix="$acl_save_prefix"
18029
18030       if test "X$x" = "X$element"; then
18031         haveit=yes
18032         break
18033       fi
18034     done
18035     if test -z "$haveit"; then
18036       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18037     fi
18038   done
18039
18040       fi
18041
18042
18043 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
18044
18045
18046 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
18047
18048     fi
18049
18050         POSUB=po
18051   fi
18052
18053
18054
18055     INTLLIBS="$LIBINTL"
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065 saved_LIBS=$LIBS
18066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for poptConfigFileToString in -lpopt" >&5
18067 printf %s "checking for poptConfigFileToString in -lpopt... " >&6; }
18068 if test ${ac_cv_lib_popt_poptConfigFileToString+y}
18069 then :
18070   printf %s "(cached) " >&6
18071 else $as_nop
18072   ac_check_lib_save_LIBS=$LIBS
18073 LIBS="-lpopt  $LIBS"
18074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18075 /* end confdefs.h.  */
18076
18077 /* Override any GCC internal prototype to avoid an error.
18078    Use char because int might match the return type of a GCC
18079    builtin and then its argument prototype would still apply.  */
18080 char poptConfigFileToString ();
18081 int
18082 main (void)
18083 {
18084 return poptConfigFileToString ();
18085   ;
18086   return 0;
18087 }
18088 _ACEOF
18089 if ac_fn_c_try_link "$LINENO"
18090 then :
18091   ac_cv_lib_popt_poptConfigFileToString=yes
18092 else $as_nop
18093   ac_cv_lib_popt_poptConfigFileToString=no
18094 fi
18095 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18096     conftest$ac_exeext conftest.$ac_ext
18097 LIBS=$ac_check_lib_save_LIBS
18098 fi
18099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptConfigFileToString" >&5
18100 printf "%s\n" "$ac_cv_lib_popt_poptConfigFileToString" >&6; }
18101 if test "x$ac_cv_lib_popt_poptConfigFileToString" = xyes
18102 then :
18103   printf "%s\n" "#define HAVE_LIBPOPT 1" >>confdefs.h
18104
18105   LIBS="-lpopt $LIBS"
18106
18107 else $as_nop
18108   as_fn_error $? "You need popt 1.7 or newer to compile." "$LINENO" 5
18109 fi
18110
18111 POPT_LIBS=$LIBS
18112
18113 LIBS=$saved_LIBS
18114
18115 # Check whether --enable-fips was given.
18116 if test ${enable_fips+y}
18117 then :
18118   enableval=$enable_fips;
18119 fi
18120
18121 if test "x$enable_fips" = "xyes"; then
18122
18123 printf "%s\n" "#define ENABLE_FIPS 1" >>confdefs.h
18124
18125
18126         if test "x$enable_static" = "xyes" -o "x$enable_static_cryptsetup" = "xyes" ; then
18127                 as_fn_error $? "Static build is not compatible with FIPS." "$LINENO" 5
18128         fi
18129 fi
18130
18131
18132
18133 # Check whether --enable-luks2-reencryption was given.
18134 if test ${enable_luks2_reencryption+y}
18135 then :
18136   enableval=$enable_luks2_reencryption;
18137 else $as_nop
18138   enable_luks2_reencryption=yes
18139 fi
18140
18141 if test "x$enable_luks2_reencryption" = "xyes"; then
18142
18143 printf "%s\n" "#define USE_LUKS2_REENCRYPTION 1" >>confdefs.h
18144
18145 fi
18146
18147 # Check whether --enable-pwquality was given.
18148 if test ${enable_pwquality+y}
18149 then :
18150   enableval=$enable_pwquality;
18151 fi
18152
18153
18154 if test "x$enable_pwquality" = "xyes"; then
18155
18156 printf "%s\n" "#define ENABLE_PWQUALITY 1" >>confdefs.h
18157
18158
18159 pkg_failed=no
18160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pwquality >= 1.0.0" >&5
18161 printf %s "checking for pwquality >= 1.0.0... " >&6; }
18162
18163 if test -n "$PWQUALITY_CFLAGS"; then
18164     pkg_cv_PWQUALITY_CFLAGS="$PWQUALITY_CFLAGS"
18165  elif test -n "$PKG_CONFIG"; then
18166     if test -n "$PKG_CONFIG" && \
18167     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pwquality >= 1.0.0\""; } >&5
18168   ($PKG_CONFIG --exists --print-errors "pwquality >= 1.0.0") 2>&5
18169   ac_status=$?
18170   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18171   test $ac_status = 0; }; then
18172   pkg_cv_PWQUALITY_CFLAGS=`$PKG_CONFIG --cflags "pwquality >= 1.0.0" 2>/dev/null`
18173                       test "x$?" != "x0" && pkg_failed=yes
18174 else
18175   pkg_failed=yes
18176 fi
18177  else
18178     pkg_failed=untried
18179 fi
18180 if test -n "$PWQUALITY_LIBS"; then
18181     pkg_cv_PWQUALITY_LIBS="$PWQUALITY_LIBS"
18182  elif test -n "$PKG_CONFIG"; then
18183     if test -n "$PKG_CONFIG" && \
18184     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pwquality >= 1.0.0\""; } >&5
18185   ($PKG_CONFIG --exists --print-errors "pwquality >= 1.0.0") 2>&5
18186   ac_status=$?
18187   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18188   test $ac_status = 0; }; then
18189   pkg_cv_PWQUALITY_LIBS=`$PKG_CONFIG --libs "pwquality >= 1.0.0" 2>/dev/null`
18190                       test "x$?" != "x0" && pkg_failed=yes
18191 else
18192   pkg_failed=yes
18193 fi
18194  else
18195     pkg_failed=untried
18196 fi
18197
18198
18199
18200 if test $pkg_failed = yes; then
18201         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18202 printf "%s\n" "no" >&6; }
18203
18204 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18205         _pkg_short_errors_supported=yes
18206 else
18207         _pkg_short_errors_supported=no
18208 fi
18209         if test $_pkg_short_errors_supported = yes; then
18210                 PWQUALITY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pwquality >= 1.0.0" 2>&1`
18211         else
18212                 PWQUALITY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pwquality >= 1.0.0" 2>&1`
18213         fi
18214         # Put the nasty error message in config.log where it belongs
18215         echo "$PWQUALITY_PKG_ERRORS" >&5
18216
18217         as_fn_error $? "You need pwquality library." "$LINENO" 5
18218 elif test $pkg_failed = untried; then
18219         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18220 printf "%s\n" "no" >&6; }
18221         as_fn_error $? "You need pwquality library." "$LINENO" 5
18222 else
18223         PWQUALITY_CFLAGS=$pkg_cv_PWQUALITY_CFLAGS
18224         PWQUALITY_LIBS=$pkg_cv_PWQUALITY_LIBS
18225         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18226 printf "%s\n" "yes" >&6; }
18227
18228 fi
18229
18230                 PWQUALITY_STATIC_LIBS="$PWQUALITY_LIBS -lcrack -lz"
18231 fi
18232
18233 # Check whether --enable-passwdqc was given.
18234 if test ${enable_passwdqc+y}
18235 then :
18236   enableval=$enable_passwdqc;
18237 fi
18238
18239
18240 case "$enable_passwdqc" in
18241         ""|yes|no) use_passwdqc_config="" ;;
18242         /*) use_passwdqc_config="$enable_passwdqc"; enable_passwdqc=yes ;;
18243         *) as_fn_error $? "Unrecognized --enable-passwdqc parameter." "$LINENO" 5 ;;
18244 esac
18245
18246 printf "%s\n" "#define PASSWDQC_CONFIG_FILE \"$use_passwdqc_config\"" >>confdefs.h
18247
18248
18249 if test "x$enable_passwdqc" = "xyes"; then
18250
18251 printf "%s\n" "#define ENABLE_PASSWDQC 1" >>confdefs.h
18252
18253
18254         saved_LIBS="$LIBS"
18255         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing passwdqc_check" >&5
18256 printf %s "checking for library containing passwdqc_check... " >&6; }
18257 if test ${ac_cv_search_passwdqc_check+y}
18258 then :
18259   printf %s "(cached) " >&6
18260 else $as_nop
18261   ac_func_search_save_LIBS=$LIBS
18262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18263 /* end confdefs.h.  */
18264
18265 /* Override any GCC internal prototype to avoid an error.
18266    Use char because int might match the return type of a GCC
18267    builtin and then its argument prototype would still apply.  */
18268 char passwdqc_check ();
18269 int
18270 main (void)
18271 {
18272 return passwdqc_check ();
18273   ;
18274   return 0;
18275 }
18276 _ACEOF
18277 for ac_lib in '' passwdqc
18278 do
18279   if test -z "$ac_lib"; then
18280     ac_res="none required"
18281   else
18282     ac_res=-l$ac_lib
18283     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18284   fi
18285   if ac_fn_c_try_link "$LINENO"
18286 then :
18287   ac_cv_search_passwdqc_check=$ac_res
18288 fi
18289 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18290     conftest$ac_exeext
18291   if test ${ac_cv_search_passwdqc_check+y}
18292 then :
18293   break
18294 fi
18295 done
18296 if test ${ac_cv_search_passwdqc_check+y}
18297 then :
18298
18299 else $as_nop
18300   ac_cv_search_passwdqc_check=no
18301 fi
18302 rm conftest.$ac_ext
18303 LIBS=$ac_func_search_save_LIBS
18304 fi
18305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_passwdqc_check" >&5
18306 printf "%s\n" "$ac_cv_search_passwdqc_check" >&6; }
18307 ac_res=$ac_cv_search_passwdqc_check
18308 if test "$ac_res" != no
18309 then :
18310   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18311
18312 fi
18313
18314         case "$ac_cv_search_passwdqc_check" in
18315                 no) as_fn_error $? "failed to find passwdqc_check" "$LINENO" 5 ;;
18316                 -l*) PASSWDQC_LIBS="$ac_cv_search_passwdqc_check" ;;
18317                 *) PASSWDQC_LIBS= ;;
18318         esac
18319         ac_fn_c_check_func "$LINENO" "passwdqc_params_free" "ac_cv_func_passwdqc_params_free"
18320 if test "x$ac_cv_func_passwdqc_params_free" = xyes
18321 then :
18322   printf "%s\n" "#define HAVE_PASSWDQC_PARAMS_FREE 1" >>confdefs.h
18323
18324 fi
18325
18326         LIBS="$saved_LIBS"
18327 fi
18328
18329 if test "x$enable_pwquality$enable_passwdqc" = "xyesyes"; then
18330         as_fn_error $? "--enable-pwquality and --enable-passwdqc are mutually incompatible." "$LINENO" 5
18331 fi
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344 saved_LIBS=$LIBS
18345
18346 # Check whether --enable-static-cryptsetup was given.
18347 if test ${enable_static_cryptsetup+y}
18348 then :
18349   enableval=$enable_static_cryptsetup;
18350 fi
18351
18352 if test "x$enable_static_cryptsetup" = "xyes"; then
18353         if test "x$enable_static" = "xno"; then
18354                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Requested static cryptsetup build, enabling static library." >&5
18355 printf "%s\n" "$as_me: WARNING: Requested static cryptsetup build, enabling static library." >&2;}
18356                 enable_static=yes
18357         fi
18358 fi
18359  if test "x$enable_static_cryptsetup" = "xyes"; then
18360   STATIC_TOOLS_TRUE=
18361   STATIC_TOOLS_FALSE='#'
18362 else
18363   STATIC_TOOLS_TRUE='#'
18364   STATIC_TOOLS_FALSE=
18365 fi
18366
18367
18368 # Check whether --enable-cryptsetup was given.
18369 if test ${enable_cryptsetup+y}
18370 then :
18371   enableval=$enable_cryptsetup;
18372 else $as_nop
18373   enable_cryptsetup=yes
18374 fi
18375
18376  if test "x$enable_cryptsetup" = "xyes"; then
18377   CRYPTSETUP_TRUE=
18378   CRYPTSETUP_FALSE='#'
18379 else
18380   CRYPTSETUP_TRUE='#'
18381   CRYPTSETUP_FALSE=
18382 fi
18383
18384
18385 # Check whether --enable-veritysetup was given.
18386 if test ${enable_veritysetup+y}
18387 then :
18388   enableval=$enable_veritysetup;
18389 else $as_nop
18390   enable_veritysetup=yes
18391 fi
18392
18393  if test "x$enable_veritysetup" = "xyes"; then
18394   VERITYSETUP_TRUE=
18395   VERITYSETUP_FALSE='#'
18396 else
18397   VERITYSETUP_TRUE='#'
18398   VERITYSETUP_FALSE=
18399 fi
18400
18401
18402 # Check whether --enable-cryptsetup-reencrypt was given.
18403 if test ${enable_cryptsetup_reencrypt+y}
18404 then :
18405   enableval=$enable_cryptsetup_reencrypt;
18406 else $as_nop
18407   enable_cryptsetup_reencrypt=yes
18408 fi
18409
18410  if test "x$enable_cryptsetup_reencrypt" = "xyes"; then
18411   REENCRYPT_TRUE=
18412   REENCRYPT_FALSE='#'
18413 else
18414   REENCRYPT_TRUE='#'
18415   REENCRYPT_FALSE=
18416 fi
18417
18418
18419 # Check whether --enable-integritysetup was given.
18420 if test ${enable_integritysetup+y}
18421 then :
18422   enableval=$enable_integritysetup;
18423 else $as_nop
18424   enable_integritysetup=yes
18425 fi
18426
18427  if test "x$enable_integritysetup" = "xyes"; then
18428   INTEGRITYSETUP_TRUE=
18429   INTEGRITYSETUP_FALSE='#'
18430 else
18431   INTEGRITYSETUP_TRUE='#'
18432   INTEGRITYSETUP_FALSE=
18433 fi
18434
18435
18436 # Check whether --enable-selinux was given.
18437 if test ${enable_selinux+y}
18438 then :
18439   enableval=$enable_selinux;
18440 else $as_nop
18441   enable_selinux=yes
18442 fi
18443
18444
18445 # Check whether --enable-udev was given.
18446 if test ${enable_udev+y}
18447 then :
18448   enableval=$enable_udev;
18449 else $as_nop
18450   enable_udev=yes
18451 fi
18452
18453
18454
18455 pkg_failed=no
18456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for devmapper >= 1.02.03" >&5
18457 printf %s "checking for devmapper >= 1.02.03... " >&6; }
18458
18459 if test -n "$DEVMAPPER_CFLAGS"; then
18460     pkg_cv_DEVMAPPER_CFLAGS="$DEVMAPPER_CFLAGS"
18461  elif test -n "$PKG_CONFIG"; then
18462     if test -n "$PKG_CONFIG" && \
18463     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.03\""; } >&5
18464   ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.03") 2>&5
18465   ac_status=$?
18466   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18467   test $ac_status = 0; }; then
18468   pkg_cv_DEVMAPPER_CFLAGS=`$PKG_CONFIG --cflags "devmapper >= 1.02.03" 2>/dev/null`
18469                       test "x$?" != "x0" && pkg_failed=yes
18470 else
18471   pkg_failed=yes
18472 fi
18473  else
18474     pkg_failed=untried
18475 fi
18476 if test -n "$DEVMAPPER_LIBS"; then
18477     pkg_cv_DEVMAPPER_LIBS="$DEVMAPPER_LIBS"
18478  elif test -n "$PKG_CONFIG"; then
18479     if test -n "$PKG_CONFIG" && \
18480     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.03\""; } >&5
18481   ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.03") 2>&5
18482   ac_status=$?
18483   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18484   test $ac_status = 0; }; then
18485   pkg_cv_DEVMAPPER_LIBS=`$PKG_CONFIG --libs "devmapper >= 1.02.03" 2>/dev/null`
18486                       test "x$?" != "x0" && pkg_failed=yes
18487 else
18488   pkg_failed=yes
18489 fi
18490  else
18491     pkg_failed=untried
18492 fi
18493
18494
18495
18496 if test $pkg_failed = yes; then
18497         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18498 printf "%s\n" "no" >&6; }
18499
18500 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18501         _pkg_short_errors_supported=yes
18502 else
18503         _pkg_short_errors_supported=no
18504 fi
18505         if test $_pkg_short_errors_supported = yes; then
18506                 DEVMAPPER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "devmapper >= 1.02.03" 2>&1`
18507         else
18508                 DEVMAPPER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "devmapper >= 1.02.03" 2>&1`
18509         fi
18510         # Put the nasty error message in config.log where it belongs
18511         echo "$DEVMAPPER_PKG_ERRORS" >&5
18512
18513
18514         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_name in -ldevmapper" >&5
18515 printf %s "checking for dm_task_set_name in -ldevmapper... " >&6; }
18516 if test ${ac_cv_lib_devmapper_dm_task_set_name+y}
18517 then :
18518   printf %s "(cached) " >&6
18519 else $as_nop
18520   ac_check_lib_save_LIBS=$LIBS
18521 LIBS="-ldevmapper  $LIBS"
18522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18523 /* end confdefs.h.  */
18524
18525 /* Override any GCC internal prototype to avoid an error.
18526    Use char because int might match the return type of a GCC
18527    builtin and then its argument prototype would still apply.  */
18528 char dm_task_set_name ();
18529 int
18530 main (void)
18531 {
18532 return dm_task_set_name ();
18533   ;
18534   return 0;
18535 }
18536 _ACEOF
18537 if ac_fn_c_try_link "$LINENO"
18538 then :
18539   ac_cv_lib_devmapper_dm_task_set_name=yes
18540 else $as_nop
18541   ac_cv_lib_devmapper_dm_task_set_name=no
18542 fi
18543 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18544     conftest$ac_exeext conftest.$ac_ext
18545 LIBS=$ac_check_lib_save_LIBS
18546 fi
18547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_name" >&5
18548 printf "%s\n" "$ac_cv_lib_devmapper_dm_task_set_name" >&6; }
18549 if test "x$ac_cv_lib_devmapper_dm_task_set_name" = xyes
18550 then :
18551   printf "%s\n" "#define HAVE_LIBDEVMAPPER 1" >>confdefs.h
18552
18553   LIBS="-ldevmapper $LIBS"
18554
18555 else $as_nop
18556   as_fn_error $? "You need the device-mapper library." "$LINENO" 5
18557 fi
18558
18559         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_message in -ldevmapper" >&5
18560 printf %s "checking for dm_task_set_message in -ldevmapper... " >&6; }
18561 if test ${ac_cv_lib_devmapper_dm_task_set_message+y}
18562 then :
18563   printf %s "(cached) " >&6
18564 else $as_nop
18565   ac_check_lib_save_LIBS=$LIBS
18566 LIBS="-ldevmapper  $LIBS"
18567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18568 /* end confdefs.h.  */
18569
18570 /* Override any GCC internal prototype to avoid an error.
18571    Use char because int might match the return type of a GCC
18572    builtin and then its argument prototype would still apply.  */
18573 char dm_task_set_message ();
18574 int
18575 main (void)
18576 {
18577 return dm_task_set_message ();
18578   ;
18579   return 0;
18580 }
18581 _ACEOF
18582 if ac_fn_c_try_link "$LINENO"
18583 then :
18584   ac_cv_lib_devmapper_dm_task_set_message=yes
18585 else $as_nop
18586   ac_cv_lib_devmapper_dm_task_set_message=no
18587 fi
18588 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18589     conftest$ac_exeext conftest.$ac_ext
18590 LIBS=$ac_check_lib_save_LIBS
18591 fi
18592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_message" >&5
18593 printf "%s\n" "$ac_cv_lib_devmapper_dm_task_set_message" >&6; }
18594 if test "x$ac_cv_lib_devmapper_dm_task_set_message" = xyes
18595 then :
18596   printf "%s\n" "#define HAVE_LIBDEVMAPPER 1" >>confdefs.h
18597
18598   LIBS="-ldevmapper $LIBS"
18599
18600 else $as_nop
18601   as_fn_error $? "The device-mapper library on your system is too old." "$LINENO" 5
18602 fi
18603
18604         DEVMAPPER_LIBS=$LIBS
18605
18606 elif test $pkg_failed = untried; then
18607         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18608 printf "%s\n" "no" >&6; }
18609
18610         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_name in -ldevmapper" >&5
18611 printf %s "checking for dm_task_set_name in -ldevmapper... " >&6; }
18612 if test ${ac_cv_lib_devmapper_dm_task_set_name+y}
18613 then :
18614   printf %s "(cached) " >&6
18615 else $as_nop
18616   ac_check_lib_save_LIBS=$LIBS
18617 LIBS="-ldevmapper  $LIBS"
18618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18619 /* end confdefs.h.  */
18620
18621 /* Override any GCC internal prototype to avoid an error.
18622    Use char because int might match the return type of a GCC
18623    builtin and then its argument prototype would still apply.  */
18624 char dm_task_set_name ();
18625 int
18626 main (void)
18627 {
18628 return dm_task_set_name ();
18629   ;
18630   return 0;
18631 }
18632 _ACEOF
18633 if ac_fn_c_try_link "$LINENO"
18634 then :
18635   ac_cv_lib_devmapper_dm_task_set_name=yes
18636 else $as_nop
18637   ac_cv_lib_devmapper_dm_task_set_name=no
18638 fi
18639 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18640     conftest$ac_exeext conftest.$ac_ext
18641 LIBS=$ac_check_lib_save_LIBS
18642 fi
18643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_name" >&5
18644 printf "%s\n" "$ac_cv_lib_devmapper_dm_task_set_name" >&6; }
18645 if test "x$ac_cv_lib_devmapper_dm_task_set_name" = xyes
18646 then :
18647   printf "%s\n" "#define HAVE_LIBDEVMAPPER 1" >>confdefs.h
18648
18649   LIBS="-ldevmapper $LIBS"
18650
18651 else $as_nop
18652   as_fn_error $? "You need the device-mapper library." "$LINENO" 5
18653 fi
18654
18655         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_message in -ldevmapper" >&5
18656 printf %s "checking for dm_task_set_message in -ldevmapper... " >&6; }
18657 if test ${ac_cv_lib_devmapper_dm_task_set_message+y}
18658 then :
18659   printf %s "(cached) " >&6
18660 else $as_nop
18661   ac_check_lib_save_LIBS=$LIBS
18662 LIBS="-ldevmapper  $LIBS"
18663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18664 /* end confdefs.h.  */
18665
18666 /* Override any GCC internal prototype to avoid an error.
18667    Use char because int might match the return type of a GCC
18668    builtin and then its argument prototype would still apply.  */
18669 char dm_task_set_message ();
18670 int
18671 main (void)
18672 {
18673 return dm_task_set_message ();
18674   ;
18675   return 0;
18676 }
18677 _ACEOF
18678 if ac_fn_c_try_link "$LINENO"
18679 then :
18680   ac_cv_lib_devmapper_dm_task_set_message=yes
18681 else $as_nop
18682   ac_cv_lib_devmapper_dm_task_set_message=no
18683 fi
18684 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18685     conftest$ac_exeext conftest.$ac_ext
18686 LIBS=$ac_check_lib_save_LIBS
18687 fi
18688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_message" >&5
18689 printf "%s\n" "$ac_cv_lib_devmapper_dm_task_set_message" >&6; }
18690 if test "x$ac_cv_lib_devmapper_dm_task_set_message" = xyes
18691 then :
18692   printf "%s\n" "#define HAVE_LIBDEVMAPPER 1" >>confdefs.h
18693
18694   LIBS="-ldevmapper $LIBS"
18695
18696 else $as_nop
18697   as_fn_error $? "The device-mapper library on your system is too old." "$LINENO" 5
18698 fi
18699
18700         DEVMAPPER_LIBS=$LIBS
18701
18702 else
18703         DEVMAPPER_CFLAGS=$pkg_cv_DEVMAPPER_CFLAGS
18704         DEVMAPPER_LIBS=$pkg_cv_DEVMAPPER_LIBS
18705         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18706 printf "%s\n" "yes" >&6; }
18707
18708 fi
18709 LIBS=$saved_LIBS
18710
18711 LIBS="$LIBS $DEVMAPPER_LIBS"
18712 ac_fn_check_decl "$LINENO" "dm_task_secure_data" "ac_cv_have_decl_dm_task_secure_data" "#include <libdevmapper.h>
18713 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18714 if test "x$ac_cv_have_decl_dm_task_secure_data" = xyes
18715 then :
18716   ac_have_decl=1
18717 else $as_nop
18718   ac_have_decl=0
18719 fi
18720 printf "%s\n" "#define HAVE_DECL_DM_TASK_SECURE_DATA $ac_have_decl" >>confdefs.h
18721
18722 ac_fn_check_decl "$LINENO" "dm_task_retry_remove" "ac_cv_have_decl_dm_task_retry_remove" "#include <libdevmapper.h>
18723 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18724 if test "x$ac_cv_have_decl_dm_task_retry_remove" = xyes
18725 then :
18726   ac_have_decl=1
18727 else $as_nop
18728   ac_have_decl=0
18729 fi
18730 printf "%s\n" "#define HAVE_DECL_DM_TASK_RETRY_REMOVE $ac_have_decl" >>confdefs.h
18731
18732 ac_fn_check_decl "$LINENO" "dm_task_deferred_remove" "ac_cv_have_decl_dm_task_deferred_remove" "#include <libdevmapper.h>
18733 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18734 if test "x$ac_cv_have_decl_dm_task_deferred_remove" = xyes
18735 then :
18736   ac_have_decl=1
18737 else $as_nop
18738   ac_have_decl=0
18739 fi
18740 printf "%s\n" "#define HAVE_DECL_DM_TASK_DEFERRED_REMOVE $ac_have_decl" >>confdefs.h
18741
18742 ac_fn_check_decl "$LINENO" "dm_device_has_mounted_fs" "ac_cv_have_decl_dm_device_has_mounted_fs" "#include <libdevmapper.h>
18743 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18744 if test "x$ac_cv_have_decl_dm_device_has_mounted_fs" = xyes
18745 then :
18746   ac_have_decl=1
18747 else $as_nop
18748   ac_have_decl=0
18749 fi
18750 printf "%s\n" "#define HAVE_DECL_DM_DEVICE_HAS_MOUNTED_FS $ac_have_decl" >>confdefs.h
18751
18752 ac_fn_check_decl "$LINENO" "dm_device_has_holders" "ac_cv_have_decl_dm_device_has_holders" "#include <libdevmapper.h>
18753 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18754 if test "x$ac_cv_have_decl_dm_device_has_holders" = xyes
18755 then :
18756   ac_have_decl=1
18757 else $as_nop
18758   ac_have_decl=0
18759 fi
18760 printf "%s\n" "#define HAVE_DECL_DM_DEVICE_HAS_HOLDERS $ac_have_decl" >>confdefs.h
18761
18762 ac_fn_check_decl "$LINENO" "dm_device_get_name" "ac_cv_have_decl_dm_device_get_name" "#include <libdevmapper.h>
18763 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18764 if test "x$ac_cv_have_decl_dm_device_get_name" = xyes
18765 then :
18766   ac_have_decl=1
18767 else $as_nop
18768   ac_have_decl=0
18769 fi
18770 printf "%s\n" "#define HAVE_DECL_DM_DEVICE_GET_NAME $ac_have_decl" >>confdefs.h
18771
18772 ac_fn_check_decl "$LINENO" "DM_DEVICE_GET_TARGET_VERSION" "ac_cv_have_decl_DM_DEVICE_GET_TARGET_VERSION" "#include <libdevmapper.h>
18773 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18774 if test "x$ac_cv_have_decl_DM_DEVICE_GET_TARGET_VERSION" = xyes
18775 then :
18776   ac_have_decl=1
18777 else $as_nop
18778   ac_have_decl=0
18779 fi
18780 printf "%s\n" "#define HAVE_DECL_DM_DEVICE_GET_TARGET_VERSION $ac_have_decl" >>confdefs.h
18781
18782 ac_fn_check_decl "$LINENO" "DM_UDEV_DISABLE_DISK_RULES_FLAG" "ac_cv_have_decl_DM_UDEV_DISABLE_DISK_RULES_FLAG" "#include <libdevmapper.h>
18783 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18784 if test "x$ac_cv_have_decl_DM_UDEV_DISABLE_DISK_RULES_FLAG" = xyes
18785 then :
18786   ac_have_decl=1
18787 else $as_nop
18788   ac_have_decl=0
18789 fi
18790 printf "%s\n" "#define HAVE_DECL_DM_UDEV_DISABLE_DISK_RULES_FLAG $ac_have_decl" >>confdefs.h
18791 if test $ac_have_decl = 1
18792 then :
18793   have_cookie=yes
18794 else $as_nop
18795   have_cookie=no
18796 fi
18797
18798 if test "x$enable_udev" = xyes; then
18799         if test "x$have_cookie" = xno; then
18800                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The device-mapper library on your system has no udev support, udev support disabled." >&5
18801 printf "%s\n" "$as_me: WARNING: The device-mapper library on your system has no udev support, udev support disabled." >&2;}
18802         else
18803
18804 printf "%s\n" "#define USE_UDEV 1" >>confdefs.h
18805
18806         fi
18807 fi
18808 LIBS=$saved_LIBS
18809
18810
18811 pkg_failed=no
18812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for json-c" >&5
18813 printf %s "checking for json-c... " >&6; }
18814
18815 if test -n "$JSON_C_CFLAGS"; then
18816     pkg_cv_JSON_C_CFLAGS="$JSON_C_CFLAGS"
18817  elif test -n "$PKG_CONFIG"; then
18818     if test -n "$PKG_CONFIG" && \
18819     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
18820   ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
18821   ac_status=$?
18822   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18823   test $ac_status = 0; }; then
18824   pkg_cv_JSON_C_CFLAGS=`$PKG_CONFIG --cflags "json-c" 2>/dev/null`
18825                       test "x$?" != "x0" && pkg_failed=yes
18826 else
18827   pkg_failed=yes
18828 fi
18829  else
18830     pkg_failed=untried
18831 fi
18832 if test -n "$JSON_C_LIBS"; then
18833     pkg_cv_JSON_C_LIBS="$JSON_C_LIBS"
18834  elif test -n "$PKG_CONFIG"; then
18835     if test -n "$PKG_CONFIG" && \
18836     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
18837   ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
18838   ac_status=$?
18839   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18840   test $ac_status = 0; }; then
18841   pkg_cv_JSON_C_LIBS=`$PKG_CONFIG --libs "json-c" 2>/dev/null`
18842                       test "x$?" != "x0" && pkg_failed=yes
18843 else
18844   pkg_failed=yes
18845 fi
18846  else
18847     pkg_failed=untried
18848 fi
18849
18850
18851
18852 if test $pkg_failed = yes; then
18853         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18854 printf "%s\n" "no" >&6; }
18855
18856 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18857         _pkg_short_errors_supported=yes
18858 else
18859         _pkg_short_errors_supported=no
18860 fi
18861         if test $_pkg_short_errors_supported = yes; then
18862                 JSON_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1`
18863         else
18864                 JSON_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1`
18865         fi
18866         # Put the nasty error message in config.log where it belongs
18867         echo "$JSON_C_PKG_ERRORS" >&5
18868
18869         as_fn_error $? "Package requirements (json-c) were not met:
18870
18871 $JSON_C_PKG_ERRORS
18872
18873 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18874 installed software in a non-standard prefix.
18875
18876 Alternatively, you may set the environment variables JSON_C_CFLAGS
18877 and JSON_C_LIBS to avoid the need to call pkg-config.
18878 See the pkg-config man page for more details." "$LINENO" 5
18879 elif test $pkg_failed = untried; then
18880         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18881 printf "%s\n" "no" >&6; }
18882         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18883 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18884 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18885 is in your PATH or set the PKG_CONFIG environment variable to the full
18886 path to pkg-config.
18887
18888 Alternatively, you may set the environment variables JSON_C_CFLAGS
18889 and JSON_C_LIBS to avoid the need to call pkg-config.
18890 See the pkg-config man page for more details.
18891
18892 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18893 See \`config.log' for more details" "$LINENO" 5; }
18894 else
18895         JSON_C_CFLAGS=$pkg_cv_JSON_C_CFLAGS
18896         JSON_C_LIBS=$pkg_cv_JSON_C_LIBS
18897         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18898 printf "%s\n" "yes" >&6; }
18899
18900 fi
18901 ac_fn_check_decl "$LINENO" "json_object_object_add_ex" "ac_cv_have_decl_json_object_object_add_ex" "#include <json-c/json.h>
18902 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18903 if test "x$ac_cv_have_decl_json_object_object_add_ex" = xyes
18904 then :
18905   ac_have_decl=1
18906 else $as_nop
18907   ac_have_decl=0
18908 fi
18909 printf "%s\n" "#define HAVE_DECL_JSON_OBJECT_OBJECT_ADD_EX $ac_have_decl" >>confdefs.h
18910
18911 ac_fn_check_decl "$LINENO" "json_object_deep_copy" "ac_cv_have_decl_json_object_deep_copy" "#include <json-c/json.h>
18912 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18913 if test "x$ac_cv_have_decl_json_object_deep_copy" = xyes
18914 then :
18915   ac_have_decl=1
18916 else $as_nop
18917   ac_have_decl=0
18918 fi
18919 printf "%s\n" "#define HAVE_DECL_JSON_OBJECT_DEEP_COPY $ac_have_decl" >>confdefs.h
18920
18921
18922
18923 # Check whether --with-crypto_backend was given.
18924 if test ${with_crypto_backend+y}
18925 then :
18926   withval=$with_crypto_backend;
18927 else $as_nop
18928   with_crypto_backend=openssl
18929 fi
18930
18931
18932 # Check whether --enable-kernel_crypto was given.
18933 if test ${enable_kernel_crypto+y}
18934 then :
18935   enableval=$enable_kernel_crypto;
18936 else $as_nop
18937   enable_kernel_crypto=yes
18938 fi
18939
18940
18941 if test "x$enable_kernel_crypto" = "xyes"; then
18942                for ac_header in linux/if_alg.h
18943 do :
18944   ac_fn_c_check_header_compile "$LINENO" "linux/if_alg.h" "ac_cv_header_linux_if_alg_h" "$ac_includes_default"
18945 if test "x$ac_cv_header_linux_if_alg_h" = xyes
18946 then :
18947   printf "%s\n" "#define HAVE_LINUX_IF_ALG_H 1" >>confdefs.h
18948
18949 else $as_nop
18950   as_fn_error $? "You need Linux kernel headers with userspace crypto interface. (Or use --disable-kernel_crypto.)" "$LINENO" 5
18951 fi
18952
18953 done
18954
18955 printf "%s\n" "#define ENABLE_AF_ALG 1" >>confdefs.h
18956
18957 fi
18958
18959 case $with_crypto_backend in
18960         gcrypt)
18961         if test "x$enable_fips" = "xyes"; then
18962                 GCRYPT_REQ_VERSION=1.4.5
18963         else
18964                 GCRYPT_REQ_VERSION=1.1.42
18965         fi
18966
18967
18968         # Check whether --enable-gcrypt-pbkdf2 was given.
18969 if test ${enable_gcrypt_pbkdf2+y}
18970 then :
18971   enableval=$enable_gcrypt_pbkdf2; if test "x$enableval" = "xyes"; then
18972                         use_internal_pbkdf2=0
18973                 else
18974                         use_internal_pbkdf2=1
18975                 fi
18976 else $as_nop
18977
18978
18979 # Check whether --with-libgcrypt-prefix was given.
18980 if test ${with_libgcrypt_prefix+y}
18981 then :
18982   withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
18983 else $as_nop
18984   libgcrypt_config_prefix=""
18985 fi
18986
18987   if test x"${LIBGCRYPT_CONFIG}" = x ; then
18988      if test x"${libgcrypt_config_prefix}" != x ; then
18989         LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
18990      fi
18991   fi
18992
18993   use_gpgrt_config=""
18994   if test x"${LIBGCRYPT_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
18995     if $GPGRT_CONFIG libgcrypt --exists; then
18996       LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt"
18997       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libgcrypt-config" >&5
18998 printf "%s\n" "$as_me: Use gpgrt-config as libgcrypt-config" >&6;}
18999       use_gpgrt_config=yes
19000     fi
19001   fi
19002   if test -z "$use_gpgrt_config"; then
19003     if test x"${LIBGCRYPT_CONFIG}" = x ; then
19004       case "${SYSROOT}" in
19005          /*)
19006            if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
19007              LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
19008            fi
19009            ;;
19010          '')
19011            ;;
19012           *)
19013            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
19014 printf "%s\n" "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
19015            ;;
19016       esac
19017     fi
19018     # Extract the first word of "libgcrypt-config", so it can be a program name with args.
19019 set dummy libgcrypt-config; ac_word=$2
19020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19021 printf %s "checking for $ac_word... " >&6; }
19022 if test ${ac_cv_path_LIBGCRYPT_CONFIG+y}
19023 then :
19024   printf %s "(cached) " >&6
19025 else $as_nop
19026   case $LIBGCRYPT_CONFIG in
19027   [\\/]* | ?:[\\/]*)
19028   ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
19029   ;;
19030   *)
19031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19032 for as_dir in $PATH
19033 do
19034   IFS=$as_save_IFS
19035   case $as_dir in #(((
19036     '') as_dir=./ ;;
19037     */) ;;
19038     *) as_dir=$as_dir/ ;;
19039   esac
19040     for ac_exec_ext in '' $ac_executable_extensions; do
19041   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19042     ac_cv_path_LIBGCRYPT_CONFIG="$as_dir$ac_word$ac_exec_ext"
19043     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19044     break 2
19045   fi
19046 done
19047   done
19048 IFS=$as_save_IFS
19049
19050   test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
19051   ;;
19052 esac
19053 fi
19054 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
19055 if test -n "$LIBGCRYPT_CONFIG"; then
19056   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
19057 printf "%s\n" "$LIBGCRYPT_CONFIG" >&6; }
19058 else
19059   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19060 printf "%s\n" "no" >&6; }
19061 fi
19062
19063
19064   fi
19065
19066   tmp=1.6.1
19067   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
19068      req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
19069      min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
19070   else
19071      req_libgcrypt_api=0
19072      min_libgcrypt_version="$tmp"
19073   fi
19074
19075   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
19076 printf %s "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
19077   ok=no
19078   if test "$LIBGCRYPT_CONFIG" != "no" ; then
19079     req_major=`echo $min_libgcrypt_version | \
19080                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
19081     req_minor=`echo $min_libgcrypt_version | \
19082                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
19083     req_micro=`echo $min_libgcrypt_version | \
19084                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
19085     if test -z "$use_gpgrt_config"; then
19086       libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
19087     else
19088       libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion`
19089     fi
19090     major=`echo $libgcrypt_config_version | \
19091                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
19092     minor=`echo $libgcrypt_config_version | \
19093                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
19094     micro=`echo $libgcrypt_config_version | \
19095                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
19096     if test "$major" -gt "$req_major"; then
19097         ok=yes
19098     else
19099         if test "$major" -eq "$req_major"; then
19100             if test "$minor" -gt "$req_minor"; then
19101                ok=yes
19102             else
19103                if test "$minor" -eq "$req_minor"; then
19104                    if test "$micro" -ge "$req_micro"; then
19105                      ok=yes
19106                    fi
19107                fi
19108             fi
19109         fi
19110     fi
19111   fi
19112   if test $ok = yes; then
19113     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
19114 printf "%s\n" "yes ($libgcrypt_config_version)" >&6; }
19115   else
19116     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19117 printf "%s\n" "no" >&6; }
19118   fi
19119   if test $ok = yes; then
19120      # If we have a recent libgcrypt, we should also check that the
19121      # API is compatible
19122      if test "$req_libgcrypt_api" -gt 0 ; then
19123         if test -z "$use_gpgrt_config"; then
19124            tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
19125         else
19126            tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0`
19127         fi
19128         if test "$tmp" -gt 0 ; then
19129            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
19130 printf %s "checking LIBGCRYPT API version... " >&6; }
19131            if test "$req_libgcrypt_api" -eq "$tmp" ; then
19132              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: okay" >&5
19133 printf "%s\n" "okay" >&6; }
19134            else
19135              ok=no
19136              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
19137 printf "%s\n" "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
19138            fi
19139         fi
19140      fi
19141   fi
19142   if test $ok = yes; then
19143     LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
19144     LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
19145     use_internal_pbkdf2=0
19146     if test -z "$use_gpgrt_config"; then
19147       libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
19148     else
19149       libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none`
19150     fi
19151     if test x"$libgcrypt_config_host" != xnone ; then
19152       if test x"$libgcrypt_config_host" != x"$host" ; then
19153   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
19154 ***
19155 *** The config script \"$LIBGCRYPT_CONFIG\" was
19156 *** built for $libgcrypt_config_host and thus may not match the
19157 *** used host $host.
19158 *** You may want to use the configure option --with-libgcrypt-prefix
19159 *** to specify a matching config script or use \$SYSROOT.
19160 ***" >&5
19161 printf "%s\n" "$as_me: WARNING:
19162 ***
19163 *** The config script \"$LIBGCRYPT_CONFIG\" was
19164 *** built for $libgcrypt_config_host and thus may not match the
19165 *** used host $host.
19166 *** You may want to use the configure option --with-libgcrypt-prefix
19167 *** to specify a matching config script or use \$SYSROOT.
19168 ***" >&2;}
19169         gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
19170       fi
19171     fi
19172   else
19173     LIBGCRYPT_CFLAGS=""
19174     LIBGCRYPT_LIBS=""
19175     use_internal_pbkdf2=1
19176   fi
19177
19178
19179
19180 fi
19181
19182
19183
19184 # Check whether --with-libgcrypt-prefix was given.
19185 if test ${with_libgcrypt_prefix+y}
19186 then :
19187   withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
19188 else $as_nop
19189   libgcrypt_config_prefix=""
19190 fi
19191
19192   if test x"${LIBGCRYPT_CONFIG}" = x ; then
19193      if test x"${libgcrypt_config_prefix}" != x ; then
19194         LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
19195      fi
19196   fi
19197
19198   use_gpgrt_config=""
19199   if test x"${LIBGCRYPT_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
19200     if $GPGRT_CONFIG libgcrypt --exists; then
19201       LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt"
19202       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libgcrypt-config" >&5
19203 printf "%s\n" "$as_me: Use gpgrt-config as libgcrypt-config" >&6;}
19204       use_gpgrt_config=yes
19205     fi
19206   fi
19207   if test -z "$use_gpgrt_config"; then
19208     if test x"${LIBGCRYPT_CONFIG}" = x ; then
19209       case "${SYSROOT}" in
19210          /*)
19211            if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
19212              LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
19213            fi
19214            ;;
19215          '')
19216            ;;
19217           *)
19218            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
19219 printf "%s\n" "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
19220            ;;
19221       esac
19222     fi
19223     # Extract the first word of "libgcrypt-config", so it can be a program name with args.
19224 set dummy libgcrypt-config; ac_word=$2
19225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19226 printf %s "checking for $ac_word... " >&6; }
19227 if test ${ac_cv_path_LIBGCRYPT_CONFIG+y}
19228 then :
19229   printf %s "(cached) " >&6
19230 else $as_nop
19231   case $LIBGCRYPT_CONFIG in
19232   [\\/]* | ?:[\\/]*)
19233   ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
19234   ;;
19235   *)
19236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19237 for as_dir in $PATH
19238 do
19239   IFS=$as_save_IFS
19240   case $as_dir in #(((
19241     '') as_dir=./ ;;
19242     */) ;;
19243     *) as_dir=$as_dir/ ;;
19244   esac
19245     for ac_exec_ext in '' $ac_executable_extensions; do
19246   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19247     ac_cv_path_LIBGCRYPT_CONFIG="$as_dir$ac_word$ac_exec_ext"
19248     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19249     break 2
19250   fi
19251 done
19252   done
19253 IFS=$as_save_IFS
19254
19255   test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
19256   ;;
19257 esac
19258 fi
19259 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
19260 if test -n "$LIBGCRYPT_CONFIG"; then
19261   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
19262 printf "%s\n" "$LIBGCRYPT_CONFIG" >&6; }
19263 else
19264   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19265 printf "%s\n" "no" >&6; }
19266 fi
19267
19268
19269   fi
19270
19271   tmp=$GCRYPT_REQ_VERSION
19272   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
19273      req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
19274      min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
19275   else
19276      req_libgcrypt_api=0
19277      min_libgcrypt_version="$tmp"
19278   fi
19279
19280   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
19281 printf %s "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
19282   ok=no
19283   if test "$LIBGCRYPT_CONFIG" != "no" ; then
19284     req_major=`echo $min_libgcrypt_version | \
19285                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
19286     req_minor=`echo $min_libgcrypt_version | \
19287                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
19288     req_micro=`echo $min_libgcrypt_version | \
19289                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
19290     if test -z "$use_gpgrt_config"; then
19291       libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
19292     else
19293       libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion`
19294     fi
19295     major=`echo $libgcrypt_config_version | \
19296                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
19297     minor=`echo $libgcrypt_config_version | \
19298                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
19299     micro=`echo $libgcrypt_config_version | \
19300                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
19301     if test "$major" -gt "$req_major"; then
19302         ok=yes
19303     else
19304         if test "$major" -eq "$req_major"; then
19305             if test "$minor" -gt "$req_minor"; then
19306                ok=yes
19307             else
19308                if test "$minor" -eq "$req_minor"; then
19309                    if test "$micro" -ge "$req_micro"; then
19310                      ok=yes
19311                    fi
19312                fi
19313             fi
19314         fi
19315     fi
19316   fi
19317   if test $ok = yes; then
19318     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
19319 printf "%s\n" "yes ($libgcrypt_config_version)" >&6; }
19320   else
19321     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19322 printf "%s\n" "no" >&6; }
19323   fi
19324   if test $ok = yes; then
19325      # If we have a recent libgcrypt, we should also check that the
19326      # API is compatible
19327      if test "$req_libgcrypt_api" -gt 0 ; then
19328         if test -z "$use_gpgrt_config"; then
19329            tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
19330         else
19331            tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0`
19332         fi
19333         if test "$tmp" -gt 0 ; then
19334            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
19335 printf %s "checking LIBGCRYPT API version... " >&6; }
19336            if test "$req_libgcrypt_api" -eq "$tmp" ; then
19337              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: okay" >&5
19338 printf "%s\n" "okay" >&6; }
19339            else
19340              ok=no
19341              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
19342 printf "%s\n" "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
19343            fi
19344         fi
19345      fi
19346   fi
19347   if test $ok = yes; then
19348     LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
19349     LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
19350     :
19351     if test -z "$use_gpgrt_config"; then
19352       libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
19353     else
19354       libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none`
19355     fi
19356     if test x"$libgcrypt_config_host" != xnone ; then
19357       if test x"$libgcrypt_config_host" != x"$host" ; then
19358   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
19359 ***
19360 *** The config script \"$LIBGCRYPT_CONFIG\" was
19361 *** built for $libgcrypt_config_host and thus may not match the
19362 *** used host $host.
19363 *** You may want to use the configure option --with-libgcrypt-prefix
19364 *** to specify a matching config script or use \$SYSROOT.
19365 ***" >&5
19366 printf "%s\n" "$as_me: WARNING:
19367 ***
19368 *** The config script \"$LIBGCRYPT_CONFIG\" was
19369 *** built for $libgcrypt_config_host and thus may not match the
19370 *** used host $host.
19371 *** You may want to use the configure option --with-libgcrypt-prefix
19372 *** to specify a matching config script or use \$SYSROOT.
19373 ***" >&2;}
19374         gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
19375       fi
19376     fi
19377   else
19378     LIBGCRYPT_CFLAGS=""
19379     LIBGCRYPT_LIBS=""
19380     as_fn_error $? "You need the gcrypt library." "$LINENO" 5
19381   fi
19382
19383
19384
19385
19386         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if internal cryptsetup PBKDF2 is compiled-in" >&5
19387 printf %s "checking if internal cryptsetup PBKDF2 is compiled-in... " >&6; }
19388         if test $use_internal_pbkdf2 = 0; then
19389                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19390 printf "%s\n" "no" >&6; }
19391         else
19392                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19393 printf "%s\n" "yes" >&6; }
19394
19395         if test "x$enable_fips" = "xyes"; then
19396                 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
19397         fi
19398
19399         fi
19400
19401         ac_fn_check_decl "$LINENO" "GCRY_CIPHER_MODE_XTS" "ac_cv_have_decl_GCRY_CIPHER_MODE_XTS" "#include <gcrypt.h>
19402 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19403 if test "x$ac_cv_have_decl_GCRY_CIPHER_MODE_XTS" = xyes
19404 then :
19405   ac_have_decl=1
19406 else $as_nop
19407   ac_have_decl=0
19408 fi
19409 printf "%s\n" "#define HAVE_DECL_GCRY_CIPHER_MODE_XTS $ac_have_decl" >>confdefs.h
19410
19411
19412         if test "x$enable_static_cryptsetup" = "xyes"; then
19413                 saved_LIBS=$LIBS
19414                 LIBS="$saved_LIBS $LIBGCRYPT_LIBS -static"
19415                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcry_check_version in -lgcrypt" >&5
19416 printf %s "checking for gcry_check_version in -lgcrypt... " >&6; }
19417 if test ${ac_cv_lib_gcrypt_gcry_check_version+y}
19418 then :
19419   printf %s "(cached) " >&6
19420 else $as_nop
19421   ac_check_lib_save_LIBS=$LIBS
19422 LIBS="-lgcrypt -lgpg-error $LIBS"
19423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19424 /* end confdefs.h.  */
19425
19426 /* Override any GCC internal prototype to avoid an error.
19427    Use char because int might match the return type of a GCC
19428    builtin and then its argument prototype would still apply.  */
19429 char gcry_check_version ();
19430 int
19431 main (void)
19432 {
19433 return gcry_check_version ();
19434   ;
19435   return 0;
19436 }
19437 _ACEOF
19438 if ac_fn_c_try_link "$LINENO"
19439 then :
19440   ac_cv_lib_gcrypt_gcry_check_version=yes
19441 else $as_nop
19442   ac_cv_lib_gcrypt_gcry_check_version=no
19443 fi
19444 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19445     conftest$ac_exeext conftest.$ac_ext
19446 LIBS=$ac_check_lib_save_LIBS
19447 fi
19448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_check_version" >&5
19449 printf "%s\n" "$ac_cv_lib_gcrypt_gcry_check_version" >&6; }
19450 if test "x$ac_cv_lib_gcrypt_gcry_check_version" = xyes
19451 then :
19452   printf "%s\n" "#define HAVE_LIBGCRYPT 1" >>confdefs.h
19453
19454   LIBS="-lgcrypt $LIBS"
19455
19456 else $as_nop
19457   as_fn_error $? "Cannot find static gcrypt library." "$LINENO" 5
19458 fi
19459
19460                 LIBGCRYPT_STATIC_LIBS="$LIBGCRYPT_LIBS -lgpg-error"
19461                 LIBS=$saved_LIBS
19462         fi
19463
19464         CRYPTO_CFLAGS=$LIBGCRYPT_CFLAGS
19465         CRYPTO_LIBS=$LIBGCRYPT_LIBS
19466         CRYPTO_STATIC_LIBS=$LIBGCRYPT_STATIC_LIBS
19467
19468
19469 printf "%s\n" "#define GCRYPT_REQ_VERSION \"$GCRYPT_REQ_VERSION\"" >>confdefs.h
19470
19471  ;;
19472         openssl)
19473
19474 pkg_failed=no
19475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl >= 0.9.8" >&5
19476 printf %s "checking for openssl >= 0.9.8... " >&6; }
19477
19478 if test -n "$OPENSSL_CFLAGS"; then
19479     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
19480  elif test -n "$PKG_CONFIG"; then
19481     if test -n "$PKG_CONFIG" && \
19482     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.8\""; } >&5
19483   ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.8") 2>&5
19484   ac_status=$?
19485   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19486   test $ac_status = 0; }; then
19487   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.8" 2>/dev/null`
19488                       test "x$?" != "x0" && pkg_failed=yes
19489 else
19490   pkg_failed=yes
19491 fi
19492  else
19493     pkg_failed=untried
19494 fi
19495 if test -n "$OPENSSL_LIBS"; then
19496     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
19497  elif test -n "$PKG_CONFIG"; then
19498     if test -n "$PKG_CONFIG" && \
19499     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.8\""; } >&5
19500   ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.8") 2>&5
19501   ac_status=$?
19502   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19503   test $ac_status = 0; }; then
19504   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.8" 2>/dev/null`
19505                       test "x$?" != "x0" && pkg_failed=yes
19506 else
19507   pkg_failed=yes
19508 fi
19509  else
19510     pkg_failed=untried
19511 fi
19512
19513
19514
19515 if test $pkg_failed = yes; then
19516         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19517 printf "%s\n" "no" >&6; }
19518
19519 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19520         _pkg_short_errors_supported=yes
19521 else
19522         _pkg_short_errors_supported=no
19523 fi
19524         if test $_pkg_short_errors_supported = yes; then
19525                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 0.9.8" 2>&1`
19526         else
19527                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 0.9.8" 2>&1`
19528         fi
19529         # Put the nasty error message in config.log where it belongs
19530         echo "$OPENSSL_PKG_ERRORS" >&5
19531
19532         as_fn_error $? "You need openssl library." "$LINENO" 5
19533 elif test $pkg_failed = untried; then
19534         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19535 printf "%s\n" "no" >&6; }
19536         as_fn_error $? "You need openssl library." "$LINENO" 5
19537 else
19538         OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
19539         OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
19540         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19541 printf "%s\n" "yes" >&6; }
19542
19543 fi
19544         CRYPTO_CFLAGS=$OPENSSL_CFLAGS
19545         CRYPTO_LIBS=$OPENSSL_LIBS
19546         use_internal_pbkdf2=0
19547
19548         if test "x$enable_static_cryptsetup" = "xyes"; then
19549                 saved_PKG_CONFIG=$PKG_CONFIG
19550                 PKG_CONFIG="$PKG_CONFIG --static"
19551
19552 pkg_failed=no
19553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
19554 printf %s "checking for openssl... " >&6; }
19555
19556 if test -n "$OPENSSL_STATIC_CFLAGS"; then
19557     pkg_cv_OPENSSL_STATIC_CFLAGS="$OPENSSL_STATIC_CFLAGS"
19558  elif test -n "$PKG_CONFIG"; then
19559     if test -n "$PKG_CONFIG" && \
19560     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
19561   ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
19562   ac_status=$?
19563   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19564   test $ac_status = 0; }; then
19565   pkg_cv_OPENSSL_STATIC_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
19566                       test "x$?" != "x0" && pkg_failed=yes
19567 else
19568   pkg_failed=yes
19569 fi
19570  else
19571     pkg_failed=untried
19572 fi
19573 if test -n "$OPENSSL_STATIC_LIBS"; then
19574     pkg_cv_OPENSSL_STATIC_LIBS="$OPENSSL_STATIC_LIBS"
19575  elif test -n "$PKG_CONFIG"; then
19576     if test -n "$PKG_CONFIG" && \
19577     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
19578   ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
19579   ac_status=$?
19580   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19581   test $ac_status = 0; }; then
19582   pkg_cv_OPENSSL_STATIC_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
19583                       test "x$?" != "x0" && pkg_failed=yes
19584 else
19585   pkg_failed=yes
19586 fi
19587  else
19588     pkg_failed=untried
19589 fi
19590
19591
19592
19593 if test $pkg_failed = yes; then
19594         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19595 printf "%s\n" "no" >&6; }
19596
19597 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19598         _pkg_short_errors_supported=yes
19599 else
19600         _pkg_short_errors_supported=no
19601 fi
19602         if test $_pkg_short_errors_supported = yes; then
19603                 OPENSSL_STATIC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
19604         else
19605                 OPENSSL_STATIC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
19606         fi
19607         # Put the nasty error message in config.log where it belongs
19608         echo "$OPENSSL_STATIC_PKG_ERRORS" >&5
19609
19610         as_fn_error $? "Package requirements (openssl) were not met:
19611
19612 $OPENSSL_STATIC_PKG_ERRORS
19613
19614 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19615 installed software in a non-standard prefix.
19616
19617 Alternatively, you may set the environment variables OPENSSL_STATIC_CFLAGS
19618 and OPENSSL_STATIC_LIBS to avoid the need to call pkg-config.
19619 See the pkg-config man page for more details." "$LINENO" 5
19620 elif test $pkg_failed = untried; then
19621         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19622 printf "%s\n" "no" >&6; }
19623         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19624 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19625 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19626 is in your PATH or set the PKG_CONFIG environment variable to the full
19627 path to pkg-config.
19628
19629 Alternatively, you may set the environment variables OPENSSL_STATIC_CFLAGS
19630 and OPENSSL_STATIC_LIBS to avoid the need to call pkg-config.
19631 See the pkg-config man page for more details.
19632
19633 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19634 See \`config.log' for more details" "$LINENO" 5; }
19635 else
19636         OPENSSL_STATIC_CFLAGS=$pkg_cv_OPENSSL_STATIC_CFLAGS
19637         OPENSSL_STATIC_LIBS=$pkg_cv_OPENSSL_STATIC_LIBS
19638         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19639 printf "%s\n" "yes" >&6; }
19640
19641 fi
19642                 CRYPTO_STATIC_LIBS=$OPENSSL_STATIC_LIBS
19643                 PKG_CONFIG=$saved_PKG_CONFIG
19644         fi
19645  ;;
19646         nss)
19647         if test "x$enable_static_cryptsetup" = "xyes"; then
19648                 as_fn_error $? "Static build of cryptsetup is not supported with NSS." "$LINENO" 5
19649         fi
19650
19651         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: NSS backend does NOT provide backward compatibility (missing ripemd160 hash)." >&5
19652 printf "%s\n" "$as_me: WARNING: NSS backend does NOT provide backward compatibility (missing ripemd160 hash)." >&2;}
19653
19654
19655 pkg_failed=no
19656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nss" >&5
19657 printf %s "checking for nss... " >&6; }
19658
19659 if test -n "$NSS_CFLAGS"; then
19660     pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
19661  elif test -n "$PKG_CONFIG"; then
19662     if test -n "$PKG_CONFIG" && \
19663     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
19664   ($PKG_CONFIG --exists --print-errors "nss") 2>&5
19665   ac_status=$?
19666   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19667   test $ac_status = 0; }; then
19668   pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
19669                       test "x$?" != "x0" && pkg_failed=yes
19670 else
19671   pkg_failed=yes
19672 fi
19673  else
19674     pkg_failed=untried
19675 fi
19676 if test -n "$NSS_LIBS"; then
19677     pkg_cv_NSS_LIBS="$NSS_LIBS"
19678  elif test -n "$PKG_CONFIG"; then
19679     if test -n "$PKG_CONFIG" && \
19680     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
19681   ($PKG_CONFIG --exists --print-errors "nss") 2>&5
19682   ac_status=$?
19683   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19684   test $ac_status = 0; }; then
19685   pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
19686                       test "x$?" != "x0" && pkg_failed=yes
19687 else
19688   pkg_failed=yes
19689 fi
19690  else
19691     pkg_failed=untried
19692 fi
19693
19694
19695
19696 if test $pkg_failed = yes; then
19697         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19698 printf "%s\n" "no" >&6; }
19699
19700 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19701         _pkg_short_errors_supported=yes
19702 else
19703         _pkg_short_errors_supported=no
19704 fi
19705         if test $_pkg_short_errors_supported = yes; then
19706                 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss" 2>&1`
19707         else
19708                 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss" 2>&1`
19709         fi
19710         # Put the nasty error message in config.log where it belongs
19711         echo "$NSS_PKG_ERRORS" >&5
19712
19713         as_fn_error $? "You need nss library." "$LINENO" 5
19714 elif test $pkg_failed = untried; then
19715         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19716 printf "%s\n" "no" >&6; }
19717         as_fn_error $? "You need nss library." "$LINENO" 5
19718 else
19719         NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
19720         NSS_LIBS=$pkg_cv_NSS_LIBS
19721         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19722 printf "%s\n" "yes" >&6; }
19723
19724 fi
19725
19726         saved_CFLAGS=$CFLAGS
19727         CFLAGS="$CFLAGS $NSS_CFLAGS"
19728         ac_fn_check_decl "$LINENO" "NSS_GetVersion" "ac_cv_have_decl_NSS_GetVersion" "#include <nss.h>
19729 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19730 if test "x$ac_cv_have_decl_NSS_GetVersion" = xyes
19731 then :
19732   ac_have_decl=1
19733 else $as_nop
19734   ac_have_decl=0
19735 fi
19736 printf "%s\n" "#define HAVE_DECL_NSS_GETVERSION $ac_have_decl" >>confdefs.h
19737
19738         CFLAGS=$saved_CFLAGS
19739
19740         CRYPTO_CFLAGS=$NSS_CFLAGS
19741         CRYPTO_LIBS=$NSS_LIBS
19742         use_internal_pbkdf2=1
19743
19744         if test "x$enable_fips" = "xyes"; then
19745                 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
19746         fi
19747
19748  ;;
19749         kernel)
19750                for ac_header in linux/if_alg.h
19751 do :
19752   ac_fn_c_check_header_compile "$LINENO" "linux/if_alg.h" "ac_cv_header_linux_if_alg_h" "$ac_includes_default"
19753 if test "x$ac_cv_header_linux_if_alg_h" = xyes
19754 then :
19755   printf "%s\n" "#define HAVE_LINUX_IF_ALG_H 1" >>confdefs.h
19756
19757 else $as_nop
19758   as_fn_error $? "You need Linux kernel headers with userspace crypto interface." "$LINENO" 5
19759 fi
19760
19761 done
19762 #       AC_CHECK_DECLS([AF_ALG],,
19763 #               [AC_MSG_ERROR([You need Linux kernel with userspace crypto interface.])],
19764 #               [#include <sys/socket.h>])
19765         use_internal_pbkdf2=1
19766
19767         if test "x$enable_fips" = "xyes"; then
19768                 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
19769         fi
19770
19771  ;;
19772         nettle)
19773                for ac_header in nettle/sha.h
19774 do :
19775   ac_fn_c_check_header_compile "$LINENO" "nettle/sha.h" "ac_cv_header_nettle_sha_h" "$ac_includes_default"
19776 if test "x$ac_cv_header_nettle_sha_h" = xyes
19777 then :
19778   printf "%s\n" "#define HAVE_NETTLE_SHA_H 1" >>confdefs.h
19779
19780 else $as_nop
19781   as_fn_error $? "You need Nettle cryptographic library." "$LINENO" 5
19782 fi
19783
19784 done
19785         ac_fn_c_check_header_compile "$LINENO" "nettle/version.h" "ac_cv_header_nettle_version_h" "$ac_includes_default"
19786 if test "x$ac_cv_header_nettle_version_h" = xyes
19787 then :
19788   printf "%s\n" "#define HAVE_NETTLE_VERSION_H 1" >>confdefs.h
19789
19790 fi
19791
19792
19793         saved_LIBS=$LIBS
19794         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_pbkdf2_hmac_sha256 in -lnettle" >&5
19795 printf %s "checking for nettle_pbkdf2_hmac_sha256 in -lnettle... " >&6; }
19796 if test ${ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256+y}
19797 then :
19798   printf %s "(cached) " >&6
19799 else $as_nop
19800   ac_check_lib_save_LIBS=$LIBS
19801 LIBS="-lnettle  $LIBS"
19802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19803 /* end confdefs.h.  */
19804
19805 /* Override any GCC internal prototype to avoid an error.
19806    Use char because int might match the return type of a GCC
19807    builtin and then its argument prototype would still apply.  */
19808 char nettle_pbkdf2_hmac_sha256 ();
19809 int
19810 main (void)
19811 {
19812 return nettle_pbkdf2_hmac_sha256 ();
19813   ;
19814   return 0;
19815 }
19816 _ACEOF
19817 if ac_fn_c_try_link "$LINENO"
19818 then :
19819   ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256=yes
19820 else $as_nop
19821   ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256=no
19822 fi
19823 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19824     conftest$ac_exeext conftest.$ac_ext
19825 LIBS=$ac_check_lib_save_LIBS
19826 fi
19827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256" >&5
19828 printf "%s\n" "$ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256" >&6; }
19829 if test "x$ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256" = xyes
19830 then :
19831   printf "%s\n" "#define HAVE_LIBNETTLE 1" >>confdefs.h
19832
19833   LIBS="-lnettle $LIBS"
19834
19835 else $as_nop
19836   as_fn_error $? "You need Nettle library version 2.6 or more recent." "$LINENO" 5
19837 fi
19838
19839         CRYPTO_LIBS=$LIBS
19840         LIBS=$saved_LIBS
19841
19842         CRYPTO_STATIC_LIBS=$CRYPTO_LIBS
19843         use_internal_pbkdf2=0
19844
19845         if test "x$enable_fips" = "xyes"; then
19846                 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
19847         fi
19848
19849  ;;
19850         *) as_fn_error $? "Unknown crypto backend." "$LINENO" 5 ;;
19851 esac
19852  if test "$with_crypto_backend" = "gcrypt"; then
19853   CRYPTO_BACKEND_GCRYPT_TRUE=
19854   CRYPTO_BACKEND_GCRYPT_FALSE='#'
19855 else
19856   CRYPTO_BACKEND_GCRYPT_TRUE='#'
19857   CRYPTO_BACKEND_GCRYPT_FALSE=
19858 fi
19859
19860  if test "$with_crypto_backend" = "openssl"; then
19861   CRYPTO_BACKEND_OPENSSL_TRUE=
19862   CRYPTO_BACKEND_OPENSSL_FALSE='#'
19863 else
19864   CRYPTO_BACKEND_OPENSSL_TRUE='#'
19865   CRYPTO_BACKEND_OPENSSL_FALSE=
19866 fi
19867
19868  if test "$with_crypto_backend" = "nss"; then
19869   CRYPTO_BACKEND_NSS_TRUE=
19870   CRYPTO_BACKEND_NSS_FALSE='#'
19871 else
19872   CRYPTO_BACKEND_NSS_TRUE='#'
19873   CRYPTO_BACKEND_NSS_FALSE=
19874 fi
19875
19876  if test "$with_crypto_backend" = "kernel"; then
19877   CRYPTO_BACKEND_KERNEL_TRUE=
19878   CRYPTO_BACKEND_KERNEL_FALSE='#'
19879 else
19880   CRYPTO_BACKEND_KERNEL_TRUE='#'
19881   CRYPTO_BACKEND_KERNEL_FALSE=
19882 fi
19883
19884  if test "$with_crypto_backend" = "nettle"; then
19885   CRYPTO_BACKEND_NETTLE_TRUE=
19886   CRYPTO_BACKEND_NETTLE_FALSE='#'
19887 else
19888   CRYPTO_BACKEND_NETTLE_TRUE='#'
19889   CRYPTO_BACKEND_NETTLE_FALSE=
19890 fi
19891
19892
19893  if test $use_internal_pbkdf2 = 1; then
19894   CRYPTO_INTERNAL_PBKDF2_TRUE=
19895   CRYPTO_INTERNAL_PBKDF2_FALSE='#'
19896 else
19897   CRYPTO_INTERNAL_PBKDF2_TRUE='#'
19898   CRYPTO_INTERNAL_PBKDF2_FALSE=
19899 fi
19900
19901
19902 printf "%s\n" "#define USE_INTERNAL_PBKDF2 $use_internal_pbkdf2" >>confdefs.h
19903
19904
19905 # Check whether --enable-internal-argon2 was given.
19906 if test ${enable_internal_argon2+y}
19907 then :
19908   enableval=$enable_internal_argon2;
19909 else $as_nop
19910   enable_internal_argon2=yes
19911 fi
19912
19913
19914 # Check whether --enable-libargon2 was given.
19915 if test ${enable_libargon2+y}
19916 then :
19917   enableval=$enable_libargon2;
19918 fi
19919
19920
19921 if test "x$enable_libargon2" = "xyes" ; then
19922                for ac_header in argon2.h
19923 do :
19924   ac_fn_c_check_header_compile "$LINENO" "argon2.h" "ac_cv_header_argon2_h" "$ac_includes_default"
19925 if test "x$ac_cv_header_argon2_h" = xyes
19926 then :
19927   printf "%s\n" "#define HAVE_ARGON2_H 1" >>confdefs.h
19928
19929 else $as_nop
19930   as_fn_error $? "You need libargon2 development library installed." "$LINENO" 5
19931 fi
19932
19933 done
19934         ac_fn_check_decl "$LINENO" "Argon2_id" "ac_cv_have_decl_Argon2_id" "#include <argon2.h>
19935 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19936 if test "x$ac_cv_have_decl_Argon2_id" = xyes
19937 then :
19938
19939 else $as_nop
19940   as_fn_error $? "You need more recent Argon2 library with support for Argon2id." "$LINENO" 5
19941 fi
19942
19943 pkg_failed=no
19944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libargon2" >&5
19945 printf %s "checking for libargon2... " >&6; }
19946
19947 if test -n "$LIBARGON2_CFLAGS"; then
19948     pkg_cv_LIBARGON2_CFLAGS="$LIBARGON2_CFLAGS"
19949  elif test -n "$PKG_CONFIG"; then
19950     if test -n "$PKG_CONFIG" && \
19951     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libargon2\""; } >&5
19952   ($PKG_CONFIG --exists --print-errors "libargon2") 2>&5
19953   ac_status=$?
19954   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19955   test $ac_status = 0; }; then
19956   pkg_cv_LIBARGON2_CFLAGS=`$PKG_CONFIG --cflags "libargon2" 2>/dev/null`
19957                       test "x$?" != "x0" && pkg_failed=yes
19958 else
19959   pkg_failed=yes
19960 fi
19961  else
19962     pkg_failed=untried
19963 fi
19964 if test -n "$LIBARGON2_LIBS"; then
19965     pkg_cv_LIBARGON2_LIBS="$LIBARGON2_LIBS"
19966  elif test -n "$PKG_CONFIG"; then
19967     if test -n "$PKG_CONFIG" && \
19968     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libargon2\""; } >&5
19969   ($PKG_CONFIG --exists --print-errors "libargon2") 2>&5
19970   ac_status=$?
19971   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19972   test $ac_status = 0; }; then
19973   pkg_cv_LIBARGON2_LIBS=`$PKG_CONFIG --libs "libargon2" 2>/dev/null`
19974                       test "x$?" != "x0" && pkg_failed=yes
19975 else
19976   pkg_failed=yes
19977 fi
19978  else
19979     pkg_failed=untried
19980 fi
19981
19982
19983
19984 if test $pkg_failed = yes; then
19985         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19986 printf "%s\n" "no" >&6; }
19987
19988 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19989         _pkg_short_errors_supported=yes
19990 else
19991         _pkg_short_errors_supported=no
19992 fi
19993         if test $_pkg_short_errors_supported = yes; then
19994                 LIBARGON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libargon2" 2>&1`
19995         else
19996                 LIBARGON2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libargon2" 2>&1`
19997         fi
19998         # Put the nasty error message in config.log where it belongs
19999         echo "$LIBARGON2_PKG_ERRORS" >&5
20000
20001         LIBARGON2_LIBS="-largon2"
20002 elif test $pkg_failed = untried; then
20003         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20004 printf "%s\n" "no" >&6; }
20005         LIBARGON2_LIBS="-largon2"
20006 else
20007         LIBARGON2_CFLAGS=$pkg_cv_LIBARGON2_CFLAGS
20008         LIBARGON2_LIBS=$pkg_cv_LIBARGON2_LIBS
20009         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20010 printf "%s\n" "yes" >&6; }
20011
20012 fi
20013         enable_internal_argon2=no
20014 else
20015         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Argon2 bundled (slow) reference implementation will be used, please consider to use system library with --enable-libargon2." >&5
20016 printf "%s\n" "$as_me: WARNING: Argon2 bundled (slow) reference implementation will be used, please consider to use system library with --enable-libargon2." >&2;}
20017
20018         # Check whether --enable-internal-sse-argon2 was given.
20019 if test ${enable_internal_sse_argon2+y}
20020 then :
20021   enableval=$enable_internal_sse_argon2;
20022 fi
20023
20024
20025         if test "x$enable_internal_sse_argon2" = "xyes"; then
20026                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Argon2 SSE optimization can be used" >&5
20027 printf %s "checking if Argon2 SSE optimization can be used... " >&6; }
20028                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20029 /* end confdefs.h.  */
20030
20031                         #include <emmintrin.h>
20032                         __m128i testfunc(__m128i *a, __m128i *b) {
20033                           return _mm_xor_si128(_mm_loadu_si128(a), _mm_loadu_si128(b));
20034                         }
20035
20036 int
20037 main (void)
20038 {
20039
20040   ;
20041   return 0;
20042 }
20043 _ACEOF
20044 if ac_fn_c_try_link "$LINENO"
20045 then :
20046
20047 else $as_nop
20048   enable_internal_sse_argon2=no
20049 fi
20050 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20051     conftest$ac_exeext conftest.$ac_ext
20052                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_internal_sse_argon2" >&5
20053 printf "%s\n" "$enable_internal_sse_argon2" >&6; }
20054         fi
20055 fi
20056
20057 if test "x$enable_internal_argon2" = "xyes"; then
20058
20059 printf "%s\n" "#define USE_INTERNAL_ARGON2 1" >>confdefs.h
20060
20061 fi
20062  if test "x$enable_internal_argon2" = "xyes"; then
20063   CRYPTO_INTERNAL_ARGON2_TRUE=
20064   CRYPTO_INTERNAL_ARGON2_FALSE='#'
20065 else
20066   CRYPTO_INTERNAL_ARGON2_TRUE='#'
20067   CRYPTO_INTERNAL_ARGON2_FALSE=
20068 fi
20069
20070  if test "x$enable_internal_sse_argon2" = "xyes"; then
20071   CRYPTO_INTERNAL_SSE_ARGON2_TRUE=
20072   CRYPTO_INTERNAL_SSE_ARGON2_FALSE='#'
20073 else
20074   CRYPTO_INTERNAL_SSE_ARGON2_TRUE='#'
20075   CRYPTO_INTERNAL_SSE_ARGON2_FALSE=
20076 fi
20077
20078
20079 # Check whether --enable-blkid was given.
20080 if test ${enable_blkid+y}
20081 then :
20082   enableval=$enable_blkid;
20083 else $as_nop
20084   enable_blkid=yes
20085 fi
20086
20087
20088 if test "x$enable_blkid" = "xyes"; then
20089
20090 pkg_failed=no
20091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid" >&5
20092 printf %s "checking for blkid... " >&6; }
20093
20094 if test -n "$BLKID_CFLAGS"; then
20095     pkg_cv_BLKID_CFLAGS="$BLKID_CFLAGS"
20096  elif test -n "$PKG_CONFIG"; then
20097     if test -n "$PKG_CONFIG" && \
20098     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid\""; } >&5
20099   ($PKG_CONFIG --exists --print-errors "blkid") 2>&5
20100   ac_status=$?
20101   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20102   test $ac_status = 0; }; then
20103   pkg_cv_BLKID_CFLAGS=`$PKG_CONFIG --cflags "blkid" 2>/dev/null`
20104                       test "x$?" != "x0" && pkg_failed=yes
20105 else
20106   pkg_failed=yes
20107 fi
20108  else
20109     pkg_failed=untried
20110 fi
20111 if test -n "$BLKID_LIBS"; then
20112     pkg_cv_BLKID_LIBS="$BLKID_LIBS"
20113  elif test -n "$PKG_CONFIG"; then
20114     if test -n "$PKG_CONFIG" && \
20115     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid\""; } >&5
20116   ($PKG_CONFIG --exists --print-errors "blkid") 2>&5
20117   ac_status=$?
20118   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20119   test $ac_status = 0; }; then
20120   pkg_cv_BLKID_LIBS=`$PKG_CONFIG --libs "blkid" 2>/dev/null`
20121                       test "x$?" != "x0" && pkg_failed=yes
20122 else
20123   pkg_failed=yes
20124 fi
20125  else
20126     pkg_failed=untried
20127 fi
20128
20129
20130
20131 if test $pkg_failed = yes; then
20132         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20133 printf "%s\n" "no" >&6; }
20134
20135 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20136         _pkg_short_errors_supported=yes
20137 else
20138         _pkg_short_errors_supported=no
20139 fi
20140         if test $_pkg_short_errors_supported = yes; then
20141                 BLKID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "blkid" 2>&1`
20142         else
20143                 BLKID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "blkid" 2>&1`
20144         fi
20145         # Put the nasty error message in config.log where it belongs
20146         echo "$BLKID_PKG_ERRORS" >&5
20147
20148         LIBBLKID_LIBS="-lblkid"
20149 elif test $pkg_failed = untried; then
20150         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20151 printf "%s\n" "no" >&6; }
20152         LIBBLKID_LIBS="-lblkid"
20153 else
20154         BLKID_CFLAGS=$pkg_cv_BLKID_CFLAGS
20155         BLKID_LIBS=$pkg_cv_BLKID_LIBS
20156         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20157 printf "%s\n" "yes" >&6; }
20158
20159 printf "%s\n" "#define HAVE_BLKID 1" >>confdefs.h
20160
20161 fi
20162
20163                for ac_header in blkid/blkid.h
20164 do :
20165   ac_fn_c_check_header_compile "$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
20166 if test "x$ac_cv_header_blkid_blkid_h" = xyes
20167 then :
20168   printf "%s\n" "#define HAVE_BLKID_BLKID_H 1" >>confdefs.h
20169
20170 else $as_nop
20171   as_fn_error $? "You need blkid development library installed." "$LINENO" 5
20172 fi
20173
20174 done
20175         ac_fn_check_decl "$LINENO" "blkid_do_wipe" "ac_cv_have_decl_blkid_do_wipe" "#include <blkid/blkid.h>
20176 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20177 if test "x$ac_cv_have_decl_blkid_do_wipe" = xyes
20178 then :
20179
20180 printf "%s\n" "#define HAVE_BLKID_WIPE 1" >>confdefs.h
20181
20182                         enable_blkid_wipe=yes
20183
20184 fi
20185         ac_fn_check_decl "$LINENO" "blkid_probe_step_back" "ac_cv_have_decl_blkid_probe_step_back" "#include <blkid/blkid.h>
20186 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20187 if test "x$ac_cv_have_decl_blkid_probe_step_back" = xyes
20188 then :
20189
20190 printf "%s\n" "#define HAVE_BLKID_STEP_BACK 1" >>confdefs.h
20191
20192                         enable_blkid_step_back=yes
20193
20194 fi
20195         ac_fn_check_decl "$LINENO" "blkid_reset_probe" "ac_cv_have_decl_blkid_reset_probe" "#include <blkid/blkid.h>
20196 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20197 if test "x$ac_cv_have_decl_blkid_reset_probe" = xyes
20198 then :
20199   ac_have_decl=1
20200 else $as_nop
20201   ac_have_decl=0
20202 fi
20203 printf "%s\n" "#define HAVE_DECL_BLKID_RESET_PROBE $ac_have_decl" >>confdefs.h
20204 if test $ac_have_decl = 1
20205 then :
20206
20207 else $as_nop
20208   as_fn_error $? "Can not compile with blkid support, disable it by --disable-blkid." "$LINENO" 5
20209 fi
20210 ac_fn_check_decl "$LINENO" "blkid_probe_set_device" "ac_cv_have_decl_blkid_probe_set_device" "#include <blkid/blkid.h>
20211 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20212 if test "x$ac_cv_have_decl_blkid_probe_set_device" = xyes
20213 then :
20214   ac_have_decl=1
20215 else $as_nop
20216   ac_have_decl=0
20217 fi
20218 printf "%s\n" "#define HAVE_DECL_BLKID_PROBE_SET_DEVICE $ac_have_decl" >>confdefs.h
20219 if test $ac_have_decl = 1
20220 then :
20221
20222 else $as_nop
20223   as_fn_error $? "Can not compile with blkid support, disable it by --disable-blkid." "$LINENO" 5
20224 fi
20225 ac_fn_check_decl "$LINENO" "blkid_probe_filter_superblocks_type" "ac_cv_have_decl_blkid_probe_filter_superblocks_type" "#include <blkid/blkid.h>
20226 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20227 if test "x$ac_cv_have_decl_blkid_probe_filter_superblocks_type" = xyes
20228 then :
20229   ac_have_decl=1
20230 else $as_nop
20231   ac_have_decl=0
20232 fi
20233 printf "%s\n" "#define HAVE_DECL_BLKID_PROBE_FILTER_SUPERBLOCKS_TYPE $ac_have_decl" >>confdefs.h
20234 if test $ac_have_decl = 1
20235 then :
20236
20237 else $as_nop
20238   as_fn_error $? "Can not compile with blkid support, disable it by --disable-blkid." "$LINENO" 5
20239 fi
20240 ac_fn_check_decl "$LINENO" "blkid_do_safeprobe" "ac_cv_have_decl_blkid_do_safeprobe" "#include <blkid/blkid.h>
20241 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20242 if test "x$ac_cv_have_decl_blkid_do_safeprobe" = xyes
20243 then :
20244   ac_have_decl=1
20245 else $as_nop
20246   ac_have_decl=0
20247 fi
20248 printf "%s\n" "#define HAVE_DECL_BLKID_DO_SAFEPROBE $ac_have_decl" >>confdefs.h
20249 if test $ac_have_decl = 1
20250 then :
20251
20252 else $as_nop
20253   as_fn_error $? "Can not compile with blkid support, disable it by --disable-blkid." "$LINENO" 5
20254 fi
20255 ac_fn_check_decl "$LINENO" "blkid_do_probe" "ac_cv_have_decl_blkid_do_probe" "#include <blkid/blkid.h>
20256 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20257 if test "x$ac_cv_have_decl_blkid_do_probe" = xyes
20258 then :
20259   ac_have_decl=1
20260 else $as_nop
20261   ac_have_decl=0
20262 fi
20263 printf "%s\n" "#define HAVE_DECL_BLKID_DO_PROBE $ac_have_decl" >>confdefs.h
20264 if test $ac_have_decl = 1
20265 then :
20266
20267 else $as_nop
20268   as_fn_error $? "Can not compile with blkid support, disable it by --disable-blkid." "$LINENO" 5
20269 fi
20270 ac_fn_check_decl "$LINENO" "blkid_probe_lookup_value
20271                        " "ac_cv_have_decl_blkid_probe_lookup_value__________" "#include <blkid/blkid.h>
20272 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20273 if test "x$ac_cv_have_decl_blkid_probe_lookup_value__________" = xyes
20274 then :
20275   ac_have_decl=1
20276 else $as_nop
20277   ac_have_decl=0
20278 fi
20279 printf "%s\n" "#define HAVE_DECL_BLKID_PROBE_LOOKUP_VALUE__________ $ac_have_decl" >>confdefs.h
20280 if test $ac_have_decl = 1
20281 then :
20282
20283 else $as_nop
20284   as_fn_error $? "Can not compile with blkid support, disable it by --disable-blkid." "$LINENO" 5
20285 fi
20286
20287 fi
20288  if test "x$enable_blkid" = "xyes"; then
20289   HAVE_BLKID_TRUE=
20290   HAVE_BLKID_FALSE='#'
20291 else
20292   HAVE_BLKID_TRUE='#'
20293   HAVE_BLKID_FALSE=
20294 fi
20295
20296  if test "x$enable_blkid_wipe" = "xyes"; then
20297   HAVE_BLKID_WIPE_TRUE=
20298   HAVE_BLKID_WIPE_FALSE='#'
20299 else
20300   HAVE_BLKID_WIPE_TRUE='#'
20301   HAVE_BLKID_WIPE_FALSE=
20302 fi
20303
20304  if test "x$enable_blkid_step_back" = "xyes"; then
20305   HAVE_BLKID_STEP_BACK_TRUE=
20306   HAVE_BLKID_STEP_BACK_FALSE='#'
20307 else
20308   HAVE_BLKID_STEP_BACK_TRUE='#'
20309   HAVE_BLKID_STEP_BACK_FALSE=
20310 fi
20311
20312
20313 if test "x$enable_static_cryptsetup" = "xyes"; then
20314         saved_PKG_CONFIG=$PKG_CONFIG
20315         PKG_CONFIG="$PKG_CONFIG --static"
20316
20317         LIBS="$saved_LIBS -static"
20318         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for poptGetContext in -lpopt" >&5
20319 printf %s "checking for poptGetContext in -lpopt... " >&6; }
20320 if test ${ac_cv_lib_popt_poptGetContext+y}
20321 then :
20322   printf %s "(cached) " >&6
20323 else $as_nop
20324   ac_check_lib_save_LIBS=$LIBS
20325 LIBS="-lpopt  $LIBS"
20326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20327 /* end confdefs.h.  */
20328
20329 /* Override any GCC internal prototype to avoid an error.
20330    Use char because int might match the return type of a GCC
20331    builtin and then its argument prototype would still apply.  */
20332 char poptGetContext ();
20333 int
20334 main (void)
20335 {
20336 return poptGetContext ();
20337   ;
20338   return 0;
20339 }
20340 _ACEOF
20341 if ac_fn_c_try_link "$LINENO"
20342 then :
20343   ac_cv_lib_popt_poptGetContext=yes
20344 else $as_nop
20345   ac_cv_lib_popt_poptGetContext=no
20346 fi
20347 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20348     conftest$ac_exeext conftest.$ac_ext
20349 LIBS=$ac_check_lib_save_LIBS
20350 fi
20351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptGetContext" >&5
20352 printf "%s\n" "$ac_cv_lib_popt_poptGetContext" >&6; }
20353 if test "x$ac_cv_lib_popt_poptGetContext" = xyes
20354 then :
20355   printf "%s\n" "#define HAVE_LIBPOPT 1" >>confdefs.h
20356
20357   LIBS="-lpopt $LIBS"
20358
20359 else $as_nop
20360   as_fn_error $? "Cannot find static popt library." "$LINENO" 5
20361 fi
20362
20363
20364                 LIBS="$saved_LIBS -static"
20365
20366 pkg_failed=no
20367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for devmapper >= 1.02.27" >&5
20368 printf %s "checking for devmapper >= 1.02.27... " >&6; }
20369
20370 if test -n "$DEVMAPPER_STATIC_CFLAGS"; then
20371     pkg_cv_DEVMAPPER_STATIC_CFLAGS="$DEVMAPPER_STATIC_CFLAGS"
20372  elif test -n "$PKG_CONFIG"; then
20373     if test -n "$PKG_CONFIG" && \
20374     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.27\""; } >&5
20375   ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.27") 2>&5
20376   ac_status=$?
20377   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20378   test $ac_status = 0; }; then
20379   pkg_cv_DEVMAPPER_STATIC_CFLAGS=`$PKG_CONFIG --cflags "devmapper >= 1.02.27" 2>/dev/null`
20380                       test "x$?" != "x0" && pkg_failed=yes
20381 else
20382   pkg_failed=yes
20383 fi
20384  else
20385     pkg_failed=untried
20386 fi
20387 if test -n "$DEVMAPPER_STATIC_LIBS"; then
20388     pkg_cv_DEVMAPPER_STATIC_LIBS="$DEVMAPPER_STATIC_LIBS"
20389  elif test -n "$PKG_CONFIG"; then
20390     if test -n "$PKG_CONFIG" && \
20391     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.27\""; } >&5
20392   ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.27") 2>&5
20393   ac_status=$?
20394   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20395   test $ac_status = 0; }; then
20396   pkg_cv_DEVMAPPER_STATIC_LIBS=`$PKG_CONFIG --libs "devmapper >= 1.02.27" 2>/dev/null`
20397                       test "x$?" != "x0" && pkg_failed=yes
20398 else
20399   pkg_failed=yes
20400 fi
20401  else
20402     pkg_failed=untried
20403 fi
20404
20405
20406
20407 if test $pkg_failed = yes; then
20408         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20409 printf "%s\n" "no" >&6; }
20410
20411 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20412         _pkg_short_errors_supported=yes
20413 else
20414         _pkg_short_errors_supported=no
20415 fi
20416         if test $_pkg_short_errors_supported = yes; then
20417                 DEVMAPPER_STATIC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "devmapper >= 1.02.27" 2>&1`
20418         else
20419                 DEVMAPPER_STATIC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "devmapper >= 1.02.27" 2>&1`
20420         fi
20421         # Put the nasty error message in config.log where it belongs
20422         echo "$DEVMAPPER_STATIC_PKG_ERRORS" >&5
20423
20424
20425                 DEVMAPPER_STATIC_LIBS=$DEVMAPPER_LIBS
20426                 if test "x$enable_selinux" = "xyes"; then
20427                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sepol_bool_set in -lsepol" >&5
20428 printf %s "checking for sepol_bool_set in -lsepol... " >&6; }
20429 if test ${ac_cv_lib_sepol_sepol_bool_set+y}
20430 then :
20431   printf %s "(cached) " >&6
20432 else $as_nop
20433   ac_check_lib_save_LIBS=$LIBS
20434 LIBS="-lsepol  $LIBS"
20435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20436 /* end confdefs.h.  */
20437
20438 /* Override any GCC internal prototype to avoid an error.
20439    Use char because int might match the return type of a GCC
20440    builtin and then its argument prototype would still apply.  */
20441 char sepol_bool_set ();
20442 int
20443 main (void)
20444 {
20445 return sepol_bool_set ();
20446   ;
20447   return 0;
20448 }
20449 _ACEOF
20450 if ac_fn_c_try_link "$LINENO"
20451 then :
20452   ac_cv_lib_sepol_sepol_bool_set=yes
20453 else $as_nop
20454   ac_cv_lib_sepol_sepol_bool_set=no
20455 fi
20456 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20457     conftest$ac_exeext conftest.$ac_ext
20458 LIBS=$ac_check_lib_save_LIBS
20459 fi
20460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_bool_set" >&5
20461 printf "%s\n" "$ac_cv_lib_sepol_sepol_bool_set" >&6; }
20462 if test "x$ac_cv_lib_sepol_sepol_bool_set" = xyes
20463 then :
20464   printf "%s\n" "#define HAVE_LIBSEPOL 1" >>confdefs.h
20465
20466   LIBS="-lsepol $LIBS"
20467
20468 fi
20469
20470                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
20471 printf %s "checking for is_selinux_enabled in -lselinux... " >&6; }
20472 if test ${ac_cv_lib_selinux_is_selinux_enabled+y}
20473 then :
20474   printf %s "(cached) " >&6
20475 else $as_nop
20476   ac_check_lib_save_LIBS=$LIBS
20477 LIBS="-lselinux  $LIBS"
20478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20479 /* end confdefs.h.  */
20480
20481 /* Override any GCC internal prototype to avoid an error.
20482    Use char because int might match the return type of a GCC
20483    builtin and then its argument prototype would still apply.  */
20484 char is_selinux_enabled ();
20485 int
20486 main (void)
20487 {
20488 return is_selinux_enabled ();
20489   ;
20490   return 0;
20491 }
20492 _ACEOF
20493 if ac_fn_c_try_link "$LINENO"
20494 then :
20495   ac_cv_lib_selinux_is_selinux_enabled=yes
20496 else $as_nop
20497   ac_cv_lib_selinux_is_selinux_enabled=no
20498 fi
20499 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20500     conftest$ac_exeext conftest.$ac_ext
20501 LIBS=$ac_check_lib_save_LIBS
20502 fi
20503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
20504 printf "%s\n" "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
20505 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes
20506 then :
20507   printf "%s\n" "#define HAVE_LIBSELINUX 1" >>confdefs.h
20508
20509   LIBS="-lselinux $LIBS"
20510
20511 fi
20512
20513                         DEVMAPPER_STATIC_LIBS="$DEVMAPPER_STATIC_LIBS $LIBS"
20514                 fi
20515
20516 elif test $pkg_failed = untried; then
20517         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20518 printf "%s\n" "no" >&6; }
20519
20520                 DEVMAPPER_STATIC_LIBS=$DEVMAPPER_LIBS
20521                 if test "x$enable_selinux" = "xyes"; then
20522                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sepol_bool_set in -lsepol" >&5
20523 printf %s "checking for sepol_bool_set in -lsepol... " >&6; }
20524 if test ${ac_cv_lib_sepol_sepol_bool_set+y}
20525 then :
20526   printf %s "(cached) " >&6
20527 else $as_nop
20528   ac_check_lib_save_LIBS=$LIBS
20529 LIBS="-lsepol  $LIBS"
20530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20531 /* end confdefs.h.  */
20532
20533 /* Override any GCC internal prototype to avoid an error.
20534    Use char because int might match the return type of a GCC
20535    builtin and then its argument prototype would still apply.  */
20536 char sepol_bool_set ();
20537 int
20538 main (void)
20539 {
20540 return sepol_bool_set ();
20541   ;
20542   return 0;
20543 }
20544 _ACEOF
20545 if ac_fn_c_try_link "$LINENO"
20546 then :
20547   ac_cv_lib_sepol_sepol_bool_set=yes
20548 else $as_nop
20549   ac_cv_lib_sepol_sepol_bool_set=no
20550 fi
20551 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20552     conftest$ac_exeext conftest.$ac_ext
20553 LIBS=$ac_check_lib_save_LIBS
20554 fi
20555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_bool_set" >&5
20556 printf "%s\n" "$ac_cv_lib_sepol_sepol_bool_set" >&6; }
20557 if test "x$ac_cv_lib_sepol_sepol_bool_set" = xyes
20558 then :
20559   printf "%s\n" "#define HAVE_LIBSEPOL 1" >>confdefs.h
20560
20561   LIBS="-lsepol $LIBS"
20562
20563 fi
20564
20565                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
20566 printf %s "checking for is_selinux_enabled in -lselinux... " >&6; }
20567 if test ${ac_cv_lib_selinux_is_selinux_enabled+y}
20568 then :
20569   printf %s "(cached) " >&6
20570 else $as_nop
20571   ac_check_lib_save_LIBS=$LIBS
20572 LIBS="-lselinux  $LIBS"
20573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20574 /* end confdefs.h.  */
20575
20576 /* Override any GCC internal prototype to avoid an error.
20577    Use char because int might match the return type of a GCC
20578    builtin and then its argument prototype would still apply.  */
20579 char is_selinux_enabled ();
20580 int
20581 main (void)
20582 {
20583 return is_selinux_enabled ();
20584   ;
20585   return 0;
20586 }
20587 _ACEOF
20588 if ac_fn_c_try_link "$LINENO"
20589 then :
20590   ac_cv_lib_selinux_is_selinux_enabled=yes
20591 else $as_nop
20592   ac_cv_lib_selinux_is_selinux_enabled=no
20593 fi
20594 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20595     conftest$ac_exeext conftest.$ac_ext
20596 LIBS=$ac_check_lib_save_LIBS
20597 fi
20598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
20599 printf "%s\n" "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
20600 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes
20601 then :
20602   printf "%s\n" "#define HAVE_LIBSELINUX 1" >>confdefs.h
20603
20604   LIBS="-lselinux $LIBS"
20605
20606 fi
20607
20608                         DEVMAPPER_STATIC_LIBS="$DEVMAPPER_STATIC_LIBS $LIBS"
20609                 fi
20610
20611 else
20612         DEVMAPPER_STATIC_CFLAGS=$pkg_cv_DEVMAPPER_STATIC_CFLAGS
20613         DEVMAPPER_STATIC_LIBS=$pkg_cv_DEVMAPPER_STATIC_LIBS
20614         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20615 printf "%s\n" "yes" >&6; }
20616
20617 fi
20618         LIBS="$saved_LIBS $DEVMAPPER_STATIC_LIBS"
20619         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_uuid in -ldevmapper" >&5
20620 printf %s "checking for dm_task_set_uuid in -ldevmapper... " >&6; }
20621 if test ${ac_cv_lib_devmapper_dm_task_set_uuid+y}
20622 then :
20623   printf %s "(cached) " >&6
20624 else $as_nop
20625   ac_check_lib_save_LIBS=$LIBS
20626 LIBS="-ldevmapper  $LIBS"
20627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20628 /* end confdefs.h.  */
20629
20630 /* Override any GCC internal prototype to avoid an error.
20631    Use char because int might match the return type of a GCC
20632    builtin and then its argument prototype would still apply.  */
20633 char dm_task_set_uuid ();
20634 int
20635 main (void)
20636 {
20637 return dm_task_set_uuid ();
20638   ;
20639   return 0;
20640 }
20641 _ACEOF
20642 if ac_fn_c_try_link "$LINENO"
20643 then :
20644   ac_cv_lib_devmapper_dm_task_set_uuid=yes
20645 else $as_nop
20646   ac_cv_lib_devmapper_dm_task_set_uuid=no
20647 fi
20648 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20649     conftest$ac_exeext conftest.$ac_ext
20650 LIBS=$ac_check_lib_save_LIBS
20651 fi
20652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_uuid" >&5
20653 printf "%s\n" "$ac_cv_lib_devmapper_dm_task_set_uuid" >&6; }
20654 if test "x$ac_cv_lib_devmapper_dm_task_set_uuid" = xyes
20655 then :
20656   printf "%s\n" "#define HAVE_LIBDEVMAPPER 1" >>confdefs.h
20657
20658   LIBS="-ldevmapper $LIBS"
20659
20660 else $as_nop
20661   as_fn_error $? "Cannot link with static device-mapper library." "$LINENO" 5
20662 fi
20663
20664
20665                 LIBS="$saved_LIBS -static"
20666         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
20667 printf %s "checking for uuid_generate in -luuid... " >&6; }
20668 if test ${ac_cv_lib_uuid_uuid_generate+y}
20669 then :
20670   printf %s "(cached) " >&6
20671 else $as_nop
20672   ac_check_lib_save_LIBS=$LIBS
20673 LIBS="-luuid  $LIBS"
20674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20675 /* end confdefs.h.  */
20676
20677 /* Override any GCC internal prototype to avoid an error.
20678    Use char because int might match the return type of a GCC
20679    builtin and then its argument prototype would still apply.  */
20680 char uuid_generate ();
20681 int
20682 main (void)
20683 {
20684 return uuid_generate ();
20685   ;
20686   return 0;
20687 }
20688 _ACEOF
20689 if ac_fn_c_try_link "$LINENO"
20690 then :
20691   ac_cv_lib_uuid_uuid_generate=yes
20692 else $as_nop
20693   ac_cv_lib_uuid_uuid_generate=no
20694 fi
20695 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20696     conftest$ac_exeext conftest.$ac_ext
20697 LIBS=$ac_check_lib_save_LIBS
20698 fi
20699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
20700 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
20701 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
20702 then :
20703   printf "%s\n" "#define HAVE_LIBUUID 1" >>confdefs.h
20704
20705   LIBS="-luuid $LIBS"
20706
20707 else $as_nop
20708   as_fn_error $? "Cannot find static uuid library." "$LINENO" 5
20709 fi
20710
20711
20712         LIBS=$saved_LIBS
20713         PKG_CONFIG=$saved_PKG_CONFIG
20714 fi
20715
20716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd tmpfiles config directory" >&5
20717 printf %s "checking for systemd tmpfiles config directory... " >&6; }
20718
20719 if test -n "$systemd_tmpfilesdir"; then
20720     pkg_cv_systemd_tmpfilesdir="$systemd_tmpfilesdir"
20721  elif test -n "$PKG_CONFIG"; then
20722     if test -n "$PKG_CONFIG" && \
20723     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
20724   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
20725   ac_status=$?
20726   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20727   test $ac_status = 0; }; then
20728   pkg_cv_systemd_tmpfilesdir=`$PKG_CONFIG --variable="tmpfilesdir" "systemd" 2>/dev/null`
20729                       test "x$?" != "x0" && pkg_failed=yes
20730 else
20731   pkg_failed=yes
20732 fi
20733  else
20734     pkg_failed=untried
20735 fi
20736 systemd_tmpfilesdir=$pkg_cv_systemd_tmpfilesdir
20737
20738 if test "x$systemd_tmpfilesdir" = x""
20739 then :
20740   systemd_tmpfilesdir=no
20741 fi
20742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $systemd_tmpfilesdir" >&5
20743 printf "%s\n" "$systemd_tmpfilesdir" >&6; }
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764 # Check whether --enable-dev-random was given.
20765 if test ${enable_dev_random+y}
20766 then :
20767   enableval=$enable_dev_random;
20768 fi
20769
20770 if test "x$enable_dev_random" = "xyes"; then
20771         default_rng=/dev/random
20772 else
20773         default_rng=/dev/urandom
20774 fi
20775
20776 printf "%s\n" "#define DEFAULT_RNG \"$default_rng\"" >>confdefs.h
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788 # Check whether --with-plain-hash was given.
20789 if test ${with_plain_hash+y}
20790 then :
20791   withval=$with_plain_hash;
20792 printf "%s\n" "#define DEFAULT_PLAIN_HASH \"$withval\"" >>confdefs.h
20793
20794
20795 else $as_nop
20796
20797 printf "%s\n" "#define DEFAULT_PLAIN_HASH \"ripemd160\"" >>confdefs.h
20798
20799
20800
20801 fi
20802
20803
20804 # Check whether --with-plain-cipher was given.
20805 if test ${with_plain_cipher+y}
20806 then :
20807   withval=$with_plain_cipher;
20808 printf "%s\n" "#define DEFAULT_PLAIN_CIPHER \"$withval\"" >>confdefs.h
20809
20810
20811 else $as_nop
20812
20813 printf "%s\n" "#define DEFAULT_PLAIN_CIPHER \"aes\"" >>confdefs.h
20814
20815
20816
20817 fi
20818
20819
20820 # Check whether --with-plain-mode was given.
20821 if test ${with_plain_mode+y}
20822 then :
20823   withval=$with_plain_mode;
20824 printf "%s\n" "#define DEFAULT_PLAIN_MODE \"$withval\"" >>confdefs.h
20825
20826
20827 else $as_nop
20828
20829 printf "%s\n" "#define DEFAULT_PLAIN_MODE \"cbc-essiv:sha256\"" >>confdefs.h
20830
20831
20832
20833 fi
20834
20835
20836 # Check whether --with-plain-keybits was given.
20837 if test ${with_plain_keybits+y}
20838 then :
20839   withval=$with_plain_keybits;
20840 printf "%s\n" "#define DEFAULT_PLAIN_KEYBITS $withval" >>confdefs.h
20841
20842
20843 else $as_nop
20844
20845 printf "%s\n" "#define DEFAULT_PLAIN_KEYBITS 256" >>confdefs.h
20846
20847
20848
20849 fi
20850
20851
20852
20853 # Check whether --with-luks1-hash was given.
20854 if test ${with_luks1_hash+y}
20855 then :
20856   withval=$with_luks1_hash;
20857 printf "%s\n" "#define DEFAULT_LUKS1_HASH \"$withval\"" >>confdefs.h
20858
20859
20860 else $as_nop
20861
20862 printf "%s\n" "#define DEFAULT_LUKS1_HASH \"sha256\"" >>confdefs.h
20863
20864
20865
20866 fi
20867
20868
20869 # Check whether --with-luks1-cipher was given.
20870 if test ${with_luks1_cipher+y}
20871 then :
20872   withval=$with_luks1_cipher;
20873 printf "%s\n" "#define DEFAULT_LUKS1_CIPHER \"$withval\"" >>confdefs.h
20874
20875
20876 else $as_nop
20877
20878 printf "%s\n" "#define DEFAULT_LUKS1_CIPHER \"aes\"" >>confdefs.h
20879
20880
20881
20882 fi
20883
20884
20885 # Check whether --with-luks1-mode was given.
20886 if test ${with_luks1_mode+y}
20887 then :
20888   withval=$with_luks1_mode;
20889 printf "%s\n" "#define DEFAULT_LUKS1_MODE \"$withval\"" >>confdefs.h
20890
20891
20892 else $as_nop
20893
20894 printf "%s\n" "#define DEFAULT_LUKS1_MODE \"xts-plain64\"" >>confdefs.h
20895
20896
20897
20898 fi
20899
20900
20901 # Check whether --with-luks1-keybits was given.
20902 if test ${with_luks1_keybits+y}
20903 then :
20904   withval=$with_luks1_keybits;
20905 printf "%s\n" "#define DEFAULT_LUKS1_KEYBITS $withval" >>confdefs.h
20906
20907
20908 else $as_nop
20909
20910 printf "%s\n" "#define DEFAULT_LUKS1_KEYBITS 256" >>confdefs.h
20911
20912
20913
20914 fi
20915
20916
20917 # Check whether --enable-luks_adjust_xts_keysize was given.
20918 if test ${enable_luks_adjust_xts_keysize+y}
20919 then :
20920   enableval=$enable_luks_adjust_xts_keysize;
20921 else $as_nop
20922   enable_luks_adjust_xts_keysize=yes
20923 fi
20924
20925 if test "x$enable_luks_adjust_xts_keysize" = "xyes"; then
20926
20927 printf "%s\n" "#define ENABLE_LUKS_ADJUST_XTS_KEYSIZE 1" >>confdefs.h
20928
20929 fi
20930
20931
20932 # Check whether --with-luks2-pbkdf was given.
20933 if test ${with_luks2_pbkdf+y}
20934 then :
20935   withval=$with_luks2_pbkdf;
20936 printf "%s\n" "#define DEFAULT_LUKS2_PBKDF \"$withval\"" >>confdefs.h
20937
20938
20939 else $as_nop
20940
20941 printf "%s\n" "#define DEFAULT_LUKS2_PBKDF \"argon2i\"" >>confdefs.h
20942
20943
20944
20945 fi
20946
20947
20948 # Check whether --with-luks1-iter-time was given.
20949 if test ${with_luks1_iter_time+y}
20950 then :
20951   withval=$with_luks1_iter_time;
20952 printf "%s\n" "#define DEFAULT_LUKS1_ITER_TIME $withval" >>confdefs.h
20953
20954
20955 else $as_nop
20956
20957 printf "%s\n" "#define DEFAULT_LUKS1_ITER_TIME 2000" >>confdefs.h
20958
20959
20960
20961 fi
20962
20963
20964 # Check whether --with-luks2-iter-time was given.
20965 if test ${with_luks2_iter_time+y}
20966 then :
20967   withval=$with_luks2_iter_time;
20968 printf "%s\n" "#define DEFAULT_LUKS2_ITER_TIME $withval" >>confdefs.h
20969
20970
20971 else $as_nop
20972
20973 printf "%s\n" "#define DEFAULT_LUKS2_ITER_TIME 2000" >>confdefs.h
20974
20975
20976
20977 fi
20978
20979
20980 # Check whether --with-luks2-memory-kb was given.
20981 if test ${with_luks2_memory_kb+y}
20982 then :
20983   withval=$with_luks2_memory_kb;
20984 printf "%s\n" "#define DEFAULT_LUKS2_MEMORY_KB $withval" >>confdefs.h
20985
20986
20987 else $as_nop
20988
20989 printf "%s\n" "#define DEFAULT_LUKS2_MEMORY_KB 1048576" >>confdefs.h
20990
20991
20992
20993 fi
20994
20995
20996 # Check whether --with-luks2-parallel-threads was given.
20997 if test ${with_luks2_parallel_threads+y}
20998 then :
20999   withval=$with_luks2_parallel_threads;
21000 printf "%s\n" "#define DEFAULT_LUKS2_PARALLEL_THREADS $withval" >>confdefs.h
21001
21002
21003 else $as_nop
21004
21005 printf "%s\n" "#define DEFAULT_LUKS2_PARALLEL_THREADS 4" >>confdefs.h
21006
21007
21008
21009 fi
21010
21011
21012
21013 # Check whether --with-luks2-keyslot-cipher was given.
21014 if test ${with_luks2_keyslot_cipher+y}
21015 then :
21016   withval=$with_luks2_keyslot_cipher;
21017 printf "%s\n" "#define DEFAULT_LUKS2_KEYSLOT_CIPHER \"$withval\"" >>confdefs.h
21018
21019
21020 else $as_nop
21021
21022 printf "%s\n" "#define DEFAULT_LUKS2_KEYSLOT_CIPHER \"aes-xts-plain64\"" >>confdefs.h
21023
21024
21025
21026 fi
21027
21028
21029 # Check whether --with-luks2-keyslot-keybits was given.
21030 if test ${with_luks2_keyslot_keybits+y}
21031 then :
21032   withval=$with_luks2_keyslot_keybits;
21033 printf "%s\n" "#define DEFAULT_LUKS2_KEYSLOT_KEYBITS $withval" >>confdefs.h
21034
21035
21036 else $as_nop
21037
21038 printf "%s\n" "#define DEFAULT_LUKS2_KEYSLOT_KEYBITS 512" >>confdefs.h
21039
21040
21041
21042 fi
21043
21044
21045
21046 # Check whether --with-loopaes-cipher was given.
21047 if test ${with_loopaes_cipher+y}
21048 then :
21049   withval=$with_loopaes_cipher;
21050 printf "%s\n" "#define DEFAULT_LOOPAES_CIPHER \"$withval\"" >>confdefs.h
21051
21052
21053 else $as_nop
21054
21055 printf "%s\n" "#define DEFAULT_LOOPAES_CIPHER \"aes\"" >>confdefs.h
21056
21057
21058
21059 fi
21060
21061
21062 # Check whether --with-loopaes-keybits was given.
21063 if test ${with_loopaes_keybits+y}
21064 then :
21065   withval=$with_loopaes_keybits;
21066 printf "%s\n" "#define DEFAULT_LOOPAES_KEYBITS $withval" >>confdefs.h
21067
21068
21069 else $as_nop
21070
21071 printf "%s\n" "#define DEFAULT_LOOPAES_KEYBITS 256" >>confdefs.h
21072
21073
21074
21075 fi
21076
21077
21078
21079 # Check whether --with-keyfile-size-maxkb was given.
21080 if test ${with_keyfile_size_maxkb+y}
21081 then :
21082   withval=$with_keyfile_size_maxkb;
21083 printf "%s\n" "#define DEFAULT_KEYFILE_SIZE_MAXKB $withval" >>confdefs.h
21084
21085
21086 else $as_nop
21087
21088 printf "%s\n" "#define DEFAULT_KEYFILE_SIZE_MAXKB 8192" >>confdefs.h
21089
21090
21091
21092 fi
21093
21094
21095 # Check whether --with-integrity-keyfile-size-maxkb was given.
21096 if test ${with_integrity_keyfile_size_maxkb+y}
21097 then :
21098   withval=$with_integrity_keyfile_size_maxkb;
21099 printf "%s\n" "#define DEFAULT_INTEGRITY_KEYFILE_SIZE_MAXKB $withval" >>confdefs.h
21100
21101
21102 else $as_nop
21103
21104 printf "%s\n" "#define DEFAULT_INTEGRITY_KEYFILE_SIZE_MAXKB 4" >>confdefs.h
21105
21106
21107
21108 fi
21109
21110
21111 # Check whether --with-passphrase-size-max was given.
21112 if test ${with_passphrase_size_max+y}
21113 then :
21114   withval=$with_passphrase_size_max;
21115 printf "%s\n" "#define DEFAULT_PASSPHRASE_SIZE_MAX $withval" >>confdefs.h
21116
21117
21118 else $as_nop
21119
21120 printf "%s\n" "#define DEFAULT_PASSPHRASE_SIZE_MAX 512" >>confdefs.h
21121
21122
21123
21124 fi
21125
21126
21127
21128 # Check whether --with-verity-hash was given.
21129 if test ${with_verity_hash+y}
21130 then :
21131   withval=$with_verity_hash;
21132 printf "%s\n" "#define DEFAULT_VERITY_HASH \"$withval\"" >>confdefs.h
21133
21134
21135 else $as_nop
21136
21137 printf "%s\n" "#define DEFAULT_VERITY_HASH \"sha256\"" >>confdefs.h
21138
21139
21140
21141 fi
21142
21143
21144 # Check whether --with-verity-data-block was given.
21145 if test ${with_verity_data_block+y}
21146 then :
21147   withval=$with_verity_data_block;
21148 printf "%s\n" "#define DEFAULT_VERITY_DATA_BLOCK $withval" >>confdefs.h
21149
21150
21151 else $as_nop
21152
21153 printf "%s\n" "#define DEFAULT_VERITY_DATA_BLOCK 4096" >>confdefs.h
21154
21155
21156
21157 fi
21158
21159
21160 # Check whether --with-verity-hash-block was given.
21161 if test ${with_verity_hash_block+y}
21162 then :
21163   withval=$with_verity_hash_block;
21164 printf "%s\n" "#define DEFAULT_VERITY_HASH_BLOCK $withval" >>confdefs.h
21165
21166
21167 else $as_nop
21168
21169 printf "%s\n" "#define DEFAULT_VERITY_HASH_BLOCK 4096" >>confdefs.h
21170
21171
21172
21173 fi
21174
21175
21176 # Check whether --with-verity-salt-size was given.
21177 if test ${with_verity_salt_size+y}
21178 then :
21179   withval=$with_verity_salt_size;
21180 printf "%s\n" "#define DEFAULT_VERITY_SALT_SIZE $withval" >>confdefs.h
21181
21182
21183 else $as_nop
21184
21185 printf "%s\n" "#define DEFAULT_VERITY_SALT_SIZE 32" >>confdefs.h
21186
21187
21188
21189 fi
21190
21191
21192 # Check whether --with-verity-fec-roots was given.
21193 if test ${with_verity_fec_roots+y}
21194 then :
21195   withval=$with_verity_fec_roots;
21196 printf "%s\n" "#define DEFAULT_VERITY_FEC_ROOTS $withval" >>confdefs.h
21197
21198
21199 else $as_nop
21200
21201 printf "%s\n" "#define DEFAULT_VERITY_FEC_ROOTS 2" >>confdefs.h
21202
21203
21204
21205 fi
21206
21207
21208
21209 # Check whether --with-tmpfilesdir was given.
21210 if test ${with_tmpfilesdir+y}
21211 then :
21212   withval=$with_tmpfilesdir;
21213 printf "%s\n" "#define DEFAULT_TMPFILESDIR \"$withval\"" >>confdefs.h
21214
21215
21216 else $as_nop
21217
21218 printf "%s\n" "#define DEFAULT_TMPFILESDIR \"\"" >>confdefs.h
21219
21220
21221
21222 fi
21223
21224 test -z "$with_tmpfilesdir" && with_tmpfilesdir=$systemd_tmpfilesdir
21225 test "x$with_tmpfilesdir" = "xno" || {
21226
21227         case "${with_tmpfilesdir}" in
21228                 /*) ;;
21229                 *) as_fn_error $? "with-tmpfilesdir argument must be an absolute path." "$LINENO" 5;;
21230         esac
21231
21232         DEFAULT_TMPFILESDIR=$with_tmpfilesdir
21233
21234 }
21235  if test -n "$DEFAULT_TMPFILESDIR"; then
21236   CRYPTSETUP_TMPFILE_TRUE=
21237   CRYPTSETUP_TMPFILE_FALSE='#'
21238 else
21239   CRYPTSETUP_TMPFILE_TRUE='#'
21240   CRYPTSETUP_TMPFILE_FALSE=
21241 fi
21242
21243
21244
21245 # Check whether --with-luks2-lock-path was given.
21246 if test ${with_luks2_lock_path+y}
21247 then :
21248   withval=$with_luks2_lock_path;
21249 printf "%s\n" "#define DEFAULT_LUKS2_LOCK_PATH \"$withval\"" >>confdefs.h
21250
21251
21252 else $as_nop
21253
21254 printf "%s\n" "#define DEFAULT_LUKS2_LOCK_PATH \"/run/cryptsetup\"" >>confdefs.h
21255
21256
21257
21258 fi
21259
21260 test -z "$with_luks2_lock_path" && with_luks2_lock_path=/run/cryptsetup
21261
21262         case "${with_luks2_lock_path}" in
21263                 /*) ;;
21264                 *) as_fn_error $? "with-luks2-lock-path argument must be an absolute path." "$LINENO" 5;;
21265         esac
21266
21267 DEFAULT_LUKS2_LOCK_PATH=$with_luks2_lock_path
21268
21269
21270
21271 # Check whether --with-luks2-lock-dir-perms was given.
21272 if test ${with_luks2_lock_dir_perms+y}
21273 then :
21274   withval=$with_luks2_lock_dir_perms;
21275 printf "%s\n" "#define DEFAULT_LUKS2_LOCK_DIR_PERMS $withval" >>confdefs.h
21276
21277
21278 else $as_nop
21279
21280 printf "%s\n" "#define DEFAULT_LUKS2_LOCK_DIR_PERMS 0700" >>confdefs.h
21281
21282
21283
21284 fi
21285
21286 test -z "$with_luks2_lock_dir_perms" && with_luks2_lock_dir_perms=0700
21287 DEFAULT_LUKS2_LOCK_DIR_PERMS=$with_luks2_lock_dir_perms
21288
21289
21290
21291 # Check whether --with-default_luks_format was given.
21292 if test ${with_default_luks_format+y}
21293 then :
21294   withval=$with_default_luks_format;
21295 else $as_nop
21296   with_default_luks_format=LUKS2
21297 fi
21298
21299
21300 case $with_default_luks_format in
21301         LUKS1) default_luks=CRYPT_LUKS1 ;;
21302         LUKS2) default_luks=CRYPT_LUKS2 ;;
21303         *) as_fn_error $? "Unknown default LUKS format. Use LUKS1 or LUKS2 only." "$LINENO" 5 ;;
21304 esac
21305
21306 printf "%s\n" "#define DEFAULT_LUKS_FORMAT $default_luks" >>confdefs.h
21307
21308
21309
21310 ac_config_files="$ac_config_files Makefile lib/libcryptsetup.pc po/Makefile.in scripts/cryptsetup.conf tests/Makefile"
21311
21312 cat >confcache <<\_ACEOF
21313 # This file is a shell script that caches the results of configure
21314 # tests run on this system so they can be shared between configure
21315 # scripts and configure runs, see configure's option --config-cache.
21316 # It is not useful on other systems.  If it contains results you don't
21317 # want to keep, you may remove or edit it.
21318 #
21319 # config.status only pays attention to the cache file if you give it
21320 # the --recheck option to rerun configure.
21321 #
21322 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21323 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21324 # following values.
21325
21326 _ACEOF
21327
21328 # The following way of writing the cache mishandles newlines in values,
21329 # but we know of no workaround that is simple, portable, and efficient.
21330 # So, we kill variables containing newlines.
21331 # Ultrix sh set writes to stderr and can't be redirected directly,
21332 # and sets the high bit in the cache file unless we assign to the vars.
21333 (
21334   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21335     eval ac_val=\$$ac_var
21336     case $ac_val in #(
21337     *${as_nl}*)
21338       case $ac_var in #(
21339       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21340 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21341       esac
21342       case $ac_var in #(
21343       _ | IFS | as_nl) ;; #(
21344       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21345       *) { eval $ac_var=; unset $ac_var;} ;;
21346       esac ;;
21347     esac
21348   done
21349
21350   (set) 2>&1 |
21351     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21352     *${as_nl}ac_space=\ *)
21353       # `set' does not quote correctly, so add quotes: double-quote
21354       # substitution turns \\\\ into \\, and sed turns \\ into \.
21355       sed -n \
21356         "s/'/'\\\\''/g;
21357           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21358       ;; #(
21359     *)
21360       # `set' quotes correctly as required by POSIX, so do not add quotes.
21361       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21362       ;;
21363     esac |
21364     sort
21365 ) |
21366   sed '
21367      /^ac_cv_env_/b end
21368      t clear
21369      :clear
21370      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21371      t end
21372      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21373      :end' >>confcache
21374 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21375   if test -w "$cache_file"; then
21376     if test "x$cache_file" != "x/dev/null"; then
21377       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21378 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21379       if test ! -f "$cache_file" || test -h "$cache_file"; then
21380         cat confcache >"$cache_file"
21381       else
21382         case $cache_file in #(
21383         */* | ?:*)
21384           mv -f confcache "$cache_file"$$ &&
21385           mv -f "$cache_file"$$ "$cache_file" ;; #(
21386         *)
21387           mv -f confcache "$cache_file" ;;
21388         esac
21389       fi
21390     fi
21391   else
21392     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21393 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21394   fi
21395 fi
21396 rm -f confcache
21397
21398 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21399 # Let make expand exec_prefix.
21400 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21401
21402 DEFS=-DHAVE_CONFIG_H
21403
21404 ac_libobjs=
21405 ac_ltlibobjs=
21406 U=
21407 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21408   # 1. Remove the extension, and $U if already installed.
21409   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21410   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21411   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21412   #    will be set to the directory where LIBOBJS objects are built.
21413   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21414   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21415 done
21416 LIBOBJS=$ac_libobjs
21417
21418 LTLIBOBJS=$ac_ltlibobjs
21419
21420
21421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21422 printf %s "checking that generated files are newer than configure... " >&6; }
21423    if test -n "$am_sleep_pid"; then
21424      # Hide warnings about reused PIDs.
21425      wait $am_sleep_pid 2>/dev/null
21426    fi
21427    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21428 printf "%s\n" "done" >&6; }
21429  if test -n "$EXEEXT"; then
21430   am__EXEEXT_TRUE=
21431   am__EXEEXT_FALSE='#'
21432 else
21433   am__EXEEXT_TRUE='#'
21434   am__EXEEXT_FALSE=
21435 fi
21436
21437 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21438   as_fn_error $? "conditional \"AMDEP\" was never defined.
21439 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21440 fi
21441 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21442   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21443 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21444 fi
21445 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21446   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21447 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21448 fi
21449 if test -z "${KERNEL_KEYRING_TRUE}" && test -z "${KERNEL_KEYRING_FALSE}"; then
21450   as_fn_error $? "conditional \"KERNEL_KEYRING\" was never defined.
21451 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21452 fi
21453
21454 if test -z "${STATIC_TOOLS_TRUE}" && test -z "${STATIC_TOOLS_FALSE}"; then
21455   as_fn_error $? "conditional \"STATIC_TOOLS\" was never defined.
21456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21457 fi
21458 if test -z "${CRYPTSETUP_TRUE}" && test -z "${CRYPTSETUP_FALSE}"; then
21459   as_fn_error $? "conditional \"CRYPTSETUP\" was never defined.
21460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21461 fi
21462 if test -z "${VERITYSETUP_TRUE}" && test -z "${VERITYSETUP_FALSE}"; then
21463   as_fn_error $? "conditional \"VERITYSETUP\" was never defined.
21464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21465 fi
21466 if test -z "${REENCRYPT_TRUE}" && test -z "${REENCRYPT_FALSE}"; then
21467   as_fn_error $? "conditional \"REENCRYPT\" was never defined.
21468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21469 fi
21470 if test -z "${INTEGRITYSETUP_TRUE}" && test -z "${INTEGRITYSETUP_FALSE}"; then
21471   as_fn_error $? "conditional \"INTEGRITYSETUP\" was never defined.
21472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21473 fi
21474 if test -z "${CRYPTO_BACKEND_GCRYPT_TRUE}" && test -z "${CRYPTO_BACKEND_GCRYPT_FALSE}"; then
21475   as_fn_error $? "conditional \"CRYPTO_BACKEND_GCRYPT\" was never defined.
21476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21477 fi
21478 if test -z "${CRYPTO_BACKEND_OPENSSL_TRUE}" && test -z "${CRYPTO_BACKEND_OPENSSL_FALSE}"; then
21479   as_fn_error $? "conditional \"CRYPTO_BACKEND_OPENSSL\" was never defined.
21480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21481 fi
21482 if test -z "${CRYPTO_BACKEND_NSS_TRUE}" && test -z "${CRYPTO_BACKEND_NSS_FALSE}"; then
21483   as_fn_error $? "conditional \"CRYPTO_BACKEND_NSS\" was never defined.
21484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21485 fi
21486 if test -z "${CRYPTO_BACKEND_KERNEL_TRUE}" && test -z "${CRYPTO_BACKEND_KERNEL_FALSE}"; then
21487   as_fn_error $? "conditional \"CRYPTO_BACKEND_KERNEL\" was never defined.
21488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21489 fi
21490 if test -z "${CRYPTO_BACKEND_NETTLE_TRUE}" && test -z "${CRYPTO_BACKEND_NETTLE_FALSE}"; then
21491   as_fn_error $? "conditional \"CRYPTO_BACKEND_NETTLE\" was never defined.
21492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21493 fi
21494 if test -z "${CRYPTO_INTERNAL_PBKDF2_TRUE}" && test -z "${CRYPTO_INTERNAL_PBKDF2_FALSE}"; then
21495   as_fn_error $? "conditional \"CRYPTO_INTERNAL_PBKDF2\" was never defined.
21496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21497 fi
21498 if test -z "${CRYPTO_INTERNAL_ARGON2_TRUE}" && test -z "${CRYPTO_INTERNAL_ARGON2_FALSE}"; then
21499   as_fn_error $? "conditional \"CRYPTO_INTERNAL_ARGON2\" was never defined.
21500 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21501 fi
21502 if test -z "${CRYPTO_INTERNAL_SSE_ARGON2_TRUE}" && test -z "${CRYPTO_INTERNAL_SSE_ARGON2_FALSE}"; then
21503   as_fn_error $? "conditional \"CRYPTO_INTERNAL_SSE_ARGON2\" was never defined.
21504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21505 fi
21506 if test -z "${HAVE_BLKID_TRUE}" && test -z "${HAVE_BLKID_FALSE}"; then
21507   as_fn_error $? "conditional \"HAVE_BLKID\" was never defined.
21508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21509 fi
21510 if test -z "${HAVE_BLKID_WIPE_TRUE}" && test -z "${HAVE_BLKID_WIPE_FALSE}"; then
21511   as_fn_error $? "conditional \"HAVE_BLKID_WIPE\" was never defined.
21512 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21513 fi
21514 if test -z "${HAVE_BLKID_STEP_BACK_TRUE}" && test -z "${HAVE_BLKID_STEP_BACK_FALSE}"; then
21515   as_fn_error $? "conditional \"HAVE_BLKID_STEP_BACK\" was never defined.
21516 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21517 fi
21518 if test -z "${CRYPTSETUP_TMPFILE_TRUE}" && test -z "${CRYPTSETUP_TMPFILE_FALSE}"; then
21519   as_fn_error $? "conditional \"CRYPTSETUP_TMPFILE\" was never defined.
21520 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21521 fi
21522
21523 : "${CONFIG_STATUS=./config.status}"
21524 ac_write_fail=0
21525 ac_clean_files_save=$ac_clean_files
21526 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21528 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21529 as_write_fail=0
21530 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21531 #! $SHELL
21532 # Generated by $as_me.
21533 # Run this file to recreate the current configuration.
21534 # Compiler output produced by configure, useful for debugging
21535 # configure, is in config.log if it exists.
21536
21537 debug=false
21538 ac_cs_recheck=false
21539 ac_cs_silent=false
21540
21541 SHELL=\${CONFIG_SHELL-$SHELL}
21542 export SHELL
21543 _ASEOF
21544 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21545 ## -------------------- ##
21546 ## M4sh Initialization. ##
21547 ## -------------------- ##
21548
21549 # Be more Bourne compatible
21550 DUALCASE=1; export DUALCASE # for MKS sh
21551 as_nop=:
21552 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21553 then :
21554   emulate sh
21555   NULLCMD=:
21556   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21557   # is contrary to our usage.  Disable this feature.
21558   alias -g '${1+"$@"}'='"$@"'
21559   setopt NO_GLOB_SUBST
21560 else $as_nop
21561   case `(set -o) 2>/dev/null` in #(
21562   *posix*) :
21563     set -o posix ;; #(
21564   *) :
21565      ;;
21566 esac
21567 fi
21568
21569
21570
21571 # Reset variables that may have inherited troublesome values from
21572 # the environment.
21573
21574 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21575 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21576 # side effect of setting IFS to empty, thus disabling word splitting.)
21577 # Quoting is to prevent editors from complaining about space-tab.
21578 as_nl='
21579 '
21580 export as_nl
21581 IFS=" ""        $as_nl"
21582
21583 PS1='$ '
21584 PS2='> '
21585 PS4='+ '
21586
21587 # Ensure predictable behavior from utilities with locale-dependent output.
21588 LC_ALL=C
21589 export LC_ALL
21590 LANGUAGE=C
21591 export LANGUAGE
21592
21593 # We cannot yet rely on "unset" to work, but we need these variables
21594 # to be unset--not just set to an empty or harmless value--now, to
21595 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
21596 # also avoids known problems related to "unset" and subshell syntax
21597 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21598 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21599 do eval test \${$as_var+y} \
21600   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21601 done
21602
21603 # Ensure that fds 0, 1, and 2 are open.
21604 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21605 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21606 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
21607
21608 # The user is always right.
21609 if ${PATH_SEPARATOR+false} :; then
21610   PATH_SEPARATOR=:
21611   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21612     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21613       PATH_SEPARATOR=';'
21614   }
21615 fi
21616
21617
21618 # Find who we are.  Look in the path if we contain no directory separator.
21619 as_myself=
21620 case $0 in #((
21621   *[\\/]* ) as_myself=$0 ;;
21622   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21623 for as_dir in $PATH
21624 do
21625   IFS=$as_save_IFS
21626   case $as_dir in #(((
21627     '') as_dir=./ ;;
21628     */) ;;
21629     *) as_dir=$as_dir/ ;;
21630   esac
21631     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21632   done
21633 IFS=$as_save_IFS
21634
21635      ;;
21636 esac
21637 # We did not find ourselves, most probably we were run as `sh COMMAND'
21638 # in which case we are not to be found in the path.
21639 if test "x$as_myself" = x; then
21640   as_myself=$0
21641 fi
21642 if test ! -f "$as_myself"; then
21643   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21644   exit 1
21645 fi
21646
21647
21648
21649 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21650 # ----------------------------------------
21651 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21652 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21653 # script with STATUS, using 1 if that was 0.
21654 as_fn_error ()
21655 {
21656   as_status=$1; test $as_status -eq 0 && as_status=1
21657   if test "$4"; then
21658     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21659     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21660   fi
21661   printf "%s\n" "$as_me: error: $2" >&2
21662   as_fn_exit $as_status
21663 } # as_fn_error
21664
21665
21666
21667 # as_fn_set_status STATUS
21668 # -----------------------
21669 # Set $? to STATUS, without forking.
21670 as_fn_set_status ()
21671 {
21672   return $1
21673 } # as_fn_set_status
21674
21675 # as_fn_exit STATUS
21676 # -----------------
21677 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21678 as_fn_exit ()
21679 {
21680   set +e
21681   as_fn_set_status $1
21682   exit $1
21683 } # as_fn_exit
21684
21685 # as_fn_unset VAR
21686 # ---------------
21687 # Portably unset VAR.
21688 as_fn_unset ()
21689 {
21690   { eval $1=; unset $1;}
21691 }
21692 as_unset=as_fn_unset
21693
21694 # as_fn_append VAR VALUE
21695 # ----------------------
21696 # Append the text in VALUE to the end of the definition contained in VAR. Take
21697 # advantage of any shell optimizations that allow amortized linear growth over
21698 # repeated appends, instead of the typical quadratic growth present in naive
21699 # implementations.
21700 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21701 then :
21702   eval 'as_fn_append ()
21703   {
21704     eval $1+=\$2
21705   }'
21706 else $as_nop
21707   as_fn_append ()
21708   {
21709     eval $1=\$$1\$2
21710   }
21711 fi # as_fn_append
21712
21713 # as_fn_arith ARG...
21714 # ------------------
21715 # Perform arithmetic evaluation on the ARGs, and store the result in the
21716 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21717 # must be portable across $(()) and expr.
21718 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21719 then :
21720   eval 'as_fn_arith ()
21721   {
21722     as_val=$(( $* ))
21723   }'
21724 else $as_nop
21725   as_fn_arith ()
21726   {
21727     as_val=`expr "$@" || test $? -eq 1`
21728   }
21729 fi # as_fn_arith
21730
21731
21732 if expr a : '\(a\)' >/dev/null 2>&1 &&
21733    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21734   as_expr=expr
21735 else
21736   as_expr=false
21737 fi
21738
21739 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21740   as_basename=basename
21741 else
21742   as_basename=false
21743 fi
21744
21745 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21746   as_dirname=dirname
21747 else
21748   as_dirname=false
21749 fi
21750
21751 as_me=`$as_basename -- "$0" ||
21752 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21753          X"$0" : 'X\(//\)$' \| \
21754          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21755 printf "%s\n" X/"$0" |
21756     sed '/^.*\/\([^/][^/]*\)\/*$/{
21757             s//\1/
21758             q
21759           }
21760           /^X\/\(\/\/\)$/{
21761             s//\1/
21762             q
21763           }
21764           /^X\/\(\/\).*/{
21765             s//\1/
21766             q
21767           }
21768           s/.*/./; q'`
21769
21770 # Avoid depending upon Character Ranges.
21771 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21772 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21773 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21774 as_cr_digits='0123456789'
21775 as_cr_alnum=$as_cr_Letters$as_cr_digits
21776
21777
21778 # Determine whether it's possible to make 'echo' print without a newline.
21779 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21780 # for compatibility with existing Makefiles.
21781 ECHO_C= ECHO_N= ECHO_T=
21782 case `echo -n x` in #(((((
21783 -n*)
21784   case `echo 'xy\c'` in
21785   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21786   xy)  ECHO_C='\c';;
21787   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21788        ECHO_T=' ';;
21789   esac;;
21790 *)
21791   ECHO_N='-n';;
21792 esac
21793
21794 # For backward compatibility with old third-party macros, we provide
21795 # the shell variables $as_echo and $as_echo_n.  New code should use
21796 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21797 as_echo='printf %s\n'
21798 as_echo_n='printf %s'
21799
21800 rm -f conf$$ conf$$.exe conf$$.file
21801 if test -d conf$$.dir; then
21802   rm -f conf$$.dir/conf$$.file
21803 else
21804   rm -f conf$$.dir
21805   mkdir conf$$.dir 2>/dev/null
21806 fi
21807 if (echo >conf$$.file) 2>/dev/null; then
21808   if ln -s conf$$.file conf$$ 2>/dev/null; then
21809     as_ln_s='ln -s'
21810     # ... but there are two gotchas:
21811     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21812     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21813     # In both cases, we have to default to `cp -pR'.
21814     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21815       as_ln_s='cp -pR'
21816   elif ln conf$$.file conf$$ 2>/dev/null; then
21817     as_ln_s=ln
21818   else
21819     as_ln_s='cp -pR'
21820   fi
21821 else
21822   as_ln_s='cp -pR'
21823 fi
21824 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21825 rmdir conf$$.dir 2>/dev/null
21826
21827
21828 # as_fn_mkdir_p
21829 # -------------
21830 # Create "$as_dir" as a directory, including parents if necessary.
21831 as_fn_mkdir_p ()
21832 {
21833
21834   case $as_dir in #(
21835   -*) as_dir=./$as_dir;;
21836   esac
21837   test -d "$as_dir" || eval $as_mkdir_p || {
21838     as_dirs=
21839     while :; do
21840       case $as_dir in #(
21841       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21842       *) as_qdir=$as_dir;;
21843       esac
21844       as_dirs="'$as_qdir' $as_dirs"
21845       as_dir=`$as_dirname -- "$as_dir" ||
21846 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21847          X"$as_dir" : 'X\(//\)[^/]' \| \
21848          X"$as_dir" : 'X\(//\)$' \| \
21849          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21850 printf "%s\n" X"$as_dir" |
21851     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21852             s//\1/
21853             q
21854           }
21855           /^X\(\/\/\)[^/].*/{
21856             s//\1/
21857             q
21858           }
21859           /^X\(\/\/\)$/{
21860             s//\1/
21861             q
21862           }
21863           /^X\(\/\).*/{
21864             s//\1/
21865             q
21866           }
21867           s/.*/./; q'`
21868       test -d "$as_dir" && break
21869     done
21870     test -z "$as_dirs" || eval "mkdir $as_dirs"
21871   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21872
21873
21874 } # as_fn_mkdir_p
21875 if mkdir -p . 2>/dev/null; then
21876   as_mkdir_p='mkdir -p "$as_dir"'
21877 else
21878   test -d ./-p && rmdir ./-p
21879   as_mkdir_p=false
21880 fi
21881
21882
21883 # as_fn_executable_p FILE
21884 # -----------------------
21885 # Test if FILE is an executable regular file.
21886 as_fn_executable_p ()
21887 {
21888   test -f "$1" && test -x "$1"
21889 } # as_fn_executable_p
21890 as_test_x='test -x'
21891 as_executable_p=as_fn_executable_p
21892
21893 # Sed expression to map a string onto a valid CPP name.
21894 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21895
21896 # Sed expression to map a string onto a valid variable name.
21897 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21898
21899
21900 exec 6>&1
21901 ## ----------------------------------- ##
21902 ## Main body of $CONFIG_STATUS script. ##
21903 ## ----------------------------------- ##
21904 _ASEOF
21905 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21906
21907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21908 # Save the log message, to keep $0 and so on meaningful, and to
21909 # report actual input values of CONFIG_FILES etc. instead of their
21910 # values after options handling.
21911 ac_log="
21912 This file was extended by cryptsetup $as_me 2.3.7, which was
21913 generated by GNU Autoconf 2.71.  Invocation command line was
21914
21915   CONFIG_FILES    = $CONFIG_FILES
21916   CONFIG_HEADERS  = $CONFIG_HEADERS
21917   CONFIG_LINKS    = $CONFIG_LINKS
21918   CONFIG_COMMANDS = $CONFIG_COMMANDS
21919   $ $0 $@
21920
21921 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21922 "
21923
21924 _ACEOF
21925
21926 case $ac_config_files in *"
21927 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21928 esac
21929
21930 case $ac_config_headers in *"
21931 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21932 esac
21933
21934
21935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21936 # Files that config.status was made for.
21937 config_files="$ac_config_files"
21938 config_headers="$ac_config_headers"
21939 config_commands="$ac_config_commands"
21940
21941 _ACEOF
21942
21943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21944 ac_cs_usage="\
21945 \`$as_me' instantiates files and other configuration actions
21946 from templates according to the current configuration.  Unless the files
21947 and actions are specified as TAGs, all are instantiated by default.
21948
21949 Usage: $0 [OPTION]... [TAG]...
21950
21951   -h, --help       print this help, then exit
21952   -V, --version    print version number and configuration settings, then exit
21953       --config     print configuration, then exit
21954   -q, --quiet, --silent
21955                    do not print progress messages
21956   -d, --debug      don't remove temporary files
21957       --recheck    update $as_me by reconfiguring in the same conditions
21958       --file=FILE[:TEMPLATE]
21959                    instantiate the configuration file FILE
21960       --header=FILE[:TEMPLATE]
21961                    instantiate the configuration header FILE
21962
21963 Configuration files:
21964 $config_files
21965
21966 Configuration headers:
21967 $config_headers
21968
21969 Configuration commands:
21970 $config_commands
21971
21972 Report bugs to the package provider."
21973
21974 _ACEOF
21975 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21976 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21978 ac_cs_config='$ac_cs_config_escaped'
21979 ac_cs_version="\\
21980 cryptsetup config.status 2.3.7
21981 configured by $0, generated by GNU Autoconf 2.71,
21982   with options \\"\$ac_cs_config\\"
21983
21984 Copyright (C) 2021 Free Software Foundation, Inc.
21985 This config.status script is free software; the Free Software Foundation
21986 gives unlimited permission to copy, distribute and modify it."
21987
21988 ac_pwd='$ac_pwd'
21989 srcdir='$srcdir'
21990 INSTALL='$INSTALL'
21991 MKDIR_P='$MKDIR_P'
21992 AWK='$AWK'
21993 test -n "\$AWK" || AWK=awk
21994 _ACEOF
21995
21996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21997 # The default lists apply if the user does not specify any file.
21998 ac_need_defaults=:
21999 while test $# != 0
22000 do
22001   case $1 in
22002   --*=?*)
22003     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22004     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22005     ac_shift=:
22006     ;;
22007   --*=)
22008     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22009     ac_optarg=
22010     ac_shift=:
22011     ;;
22012   *)
22013     ac_option=$1
22014     ac_optarg=$2
22015     ac_shift=shift
22016     ;;
22017   esac
22018
22019   case $ac_option in
22020   # Handling of the options.
22021   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22022     ac_cs_recheck=: ;;
22023   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22024     printf "%s\n" "$ac_cs_version"; exit ;;
22025   --config | --confi | --conf | --con | --co | --c )
22026     printf "%s\n" "$ac_cs_config"; exit ;;
22027   --debug | --debu | --deb | --de | --d | -d )
22028     debug=: ;;
22029   --file | --fil | --fi | --f )
22030     $ac_shift
22031     case $ac_optarg in
22032     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22033     '') as_fn_error $? "missing file argument" ;;
22034     esac
22035     as_fn_append CONFIG_FILES " '$ac_optarg'"
22036     ac_need_defaults=false;;
22037   --header | --heade | --head | --hea )
22038     $ac_shift
22039     case $ac_optarg in
22040     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22041     esac
22042     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22043     ac_need_defaults=false;;
22044   --he | --h)
22045     # Conflict between --help and --header
22046     as_fn_error $? "ambiguous option: \`$1'
22047 Try \`$0 --help' for more information.";;
22048   --help | --hel | -h )
22049     printf "%s\n" "$ac_cs_usage"; exit ;;
22050   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22051   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22052     ac_cs_silent=: ;;
22053
22054   # This is an error.
22055   -*) as_fn_error $? "unrecognized option: \`$1'
22056 Try \`$0 --help' for more information." ;;
22057
22058   *) as_fn_append ac_config_targets " $1"
22059      ac_need_defaults=false ;;
22060
22061   esac
22062   shift
22063 done
22064
22065 ac_configure_extra_args=
22066
22067 if $ac_cs_silent; then
22068   exec 6>/dev/null
22069   ac_configure_extra_args="$ac_configure_extra_args --silent"
22070 fi
22071
22072 _ACEOF
22073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22074 if \$ac_cs_recheck; then
22075   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22076   shift
22077   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
22078   CONFIG_SHELL='$SHELL'
22079   export CONFIG_SHELL
22080   exec "\$@"
22081 fi
22082
22083 _ACEOF
22084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22085 exec 5>>config.log
22086 {
22087   echo
22088   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22089 ## Running $as_me. ##
22090 _ASBOX
22091   printf "%s\n" "$ac_log"
22092 } >&5
22093
22094 _ACEOF
22095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22096 #
22097 # INIT-COMMANDS
22098 #
22099 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22100
22101
22102 # The HP-UX ksh and POSIX shell print the target directory to stdout
22103 # if CDPATH is set.
22104 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22105
22106 sed_quote_subst='$sed_quote_subst'
22107 double_quote_subst='$double_quote_subst'
22108 delay_variable_subst='$delay_variable_subst'
22109 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22110 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22111 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22112 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22113 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22114 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22115 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22116 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22117 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22118 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22119 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22120 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22121 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22122 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22123 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22124 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22125 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22126 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22127 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22128 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22129 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22130 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22131 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22132 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22133 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22134 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22135 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22136 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22137 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22138 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22139 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22140 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22141 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22142 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22143 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22144 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22145 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22146 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22147 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22148 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22149 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22150 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22151 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22152 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22153 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22154 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22155 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22156 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22157 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22158 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22159 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22160 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22161 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22162 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22163 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22164 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22165 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22166 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22167 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"`'
22168 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22169 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22170 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22171 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22172 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22173 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22174 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22175 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22176 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22177 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22178 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22179 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22180 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22181 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22182 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22183 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22184 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22185 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22186 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22187 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22188 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22189 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22190 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22191 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22192 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22193 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22194 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22195 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22196 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22197 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22198 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22199 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22200 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22201 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22202 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22203 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22204 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22205 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22206 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22207 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22208 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22209 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22210 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22211 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22212 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22213 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22214 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22215 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22216 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22217 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22218 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22219 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22220 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22221 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22222 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22223 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22224 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22225 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22226 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22227 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22228 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22229 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22230 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22231 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22232 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22233 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22234 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22235 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22236 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22237 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22238 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22239 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22240 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22241 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22242 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22243 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22244
22245 LTCC='$LTCC'
22246 LTCFLAGS='$LTCFLAGS'
22247 compiler='$compiler_DEFAULT'
22248
22249 # A function that is used when there is no print builtin or printf.
22250 func_fallback_echo ()
22251 {
22252   eval 'cat <<_LTECHO_EOF
22253 \$1
22254 _LTECHO_EOF'
22255 }
22256
22257 # Quote evaled strings.
22258 for var in SHELL \
22259 ECHO \
22260 PATH_SEPARATOR \
22261 SED \
22262 GREP \
22263 EGREP \
22264 FGREP \
22265 LD \
22266 NM \
22267 LN_S \
22268 lt_SP2NL \
22269 lt_NL2SP \
22270 reload_flag \
22271 OBJDUMP \
22272 deplibs_check_method \
22273 file_magic_cmd \
22274 file_magic_glob \
22275 want_nocaseglob \
22276 DLLTOOL \
22277 sharedlib_from_linklib_cmd \
22278 AR \
22279 AR_FLAGS \
22280 archiver_list_spec \
22281 STRIP \
22282 RANLIB \
22283 CC \
22284 CFLAGS \
22285 compiler \
22286 lt_cv_sys_global_symbol_pipe \
22287 lt_cv_sys_global_symbol_to_cdecl \
22288 lt_cv_sys_global_symbol_to_import \
22289 lt_cv_sys_global_symbol_to_c_name_address \
22290 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22291 lt_cv_nm_interface \
22292 nm_file_list_spec \
22293 lt_cv_truncate_bin \
22294 lt_prog_compiler_no_builtin_flag \
22295 lt_prog_compiler_pic \
22296 lt_prog_compiler_wl \
22297 lt_prog_compiler_static \
22298 lt_cv_prog_compiler_c_o \
22299 need_locks \
22300 MANIFEST_TOOL \
22301 DSYMUTIL \
22302 NMEDIT \
22303 LIPO \
22304 OTOOL \
22305 OTOOL64 \
22306 shrext_cmds \
22307 export_dynamic_flag_spec \
22308 whole_archive_flag_spec \
22309 compiler_needs_object \
22310 with_gnu_ld \
22311 allow_undefined_flag \
22312 no_undefined_flag \
22313 hardcode_libdir_flag_spec \
22314 hardcode_libdir_separator \
22315 exclude_expsyms \
22316 include_expsyms \
22317 file_list_spec \
22318 variables_saved_for_relink \
22319 libname_spec \
22320 library_names_spec \
22321 soname_spec \
22322 install_override_mode \
22323 finish_eval \
22324 old_striplib \
22325 striplib; do
22326     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22327     *[\\\\\\\`\\"\\\$]*)
22328       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22329       ;;
22330     *)
22331       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22332       ;;
22333     esac
22334 done
22335
22336 # Double-quote double-evaled strings.
22337 for var in reload_cmds \
22338 old_postinstall_cmds \
22339 old_postuninstall_cmds \
22340 old_archive_cmds \
22341 extract_expsyms_cmds \
22342 old_archive_from_new_cmds \
22343 old_archive_from_expsyms_cmds \
22344 archive_cmds \
22345 archive_expsym_cmds \
22346 module_cmds \
22347 module_expsym_cmds \
22348 export_symbols_cmds \
22349 prelink_cmds \
22350 postlink_cmds \
22351 postinstall_cmds \
22352 postuninstall_cmds \
22353 finish_cmds \
22354 sys_lib_search_path_spec \
22355 configure_time_dlsearch_path \
22356 configure_time_lt_sys_library_path; do
22357     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22358     *[\\\\\\\`\\"\\\$]*)
22359       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22360       ;;
22361     *)
22362       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22363       ;;
22364     esac
22365 done
22366
22367 ac_aux_dir='$ac_aux_dir'
22368
22369 # See if we are running on zsh, and set the options that allow our
22370 # commands through without removal of \ escapes INIT.
22371 if test -n "\${ZSH_VERSION+set}"; then
22372    setopt NO_GLOB_SUBST
22373 fi
22374
22375
22376     PACKAGE='$PACKAGE'
22377     VERSION='$VERSION'
22378     RM='$RM'
22379     ofile='$ofile'
22380
22381
22382
22383 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
22384     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
22385     # from automake < 1.5.
22386     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22387     # Capture the value of LINGUAS because we need it to compute CATALOGS.
22388     LINGUAS="${LINGUAS-%UNSET%}"
22389
22390
22391 _ACEOF
22392
22393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22394
22395 # Handling of arguments.
22396 for ac_config_target in $ac_config_targets
22397 do
22398   case $ac_config_target in
22399     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
22400     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22401     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22402     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
22403     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22404     "lib/libcryptsetup.pc") CONFIG_FILES="$CONFIG_FILES lib/libcryptsetup.pc" ;;
22405     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22406     "scripts/cryptsetup.conf") CONFIG_FILES="$CONFIG_FILES scripts/cryptsetup.conf" ;;
22407     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22408
22409   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22410   esac
22411 done
22412
22413
22414 # If the user did not use the arguments to specify the items to instantiate,
22415 # then the envvar interface is used.  Set only those that are not.
22416 # We use the long form for the default assignment because of an extremely
22417 # bizarre bug on SunOS 4.1.3.
22418 if $ac_need_defaults; then
22419   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22420   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22421   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22422 fi
22423
22424 # Have a temporary directory for convenience.  Make it in the build tree
22425 # simply because there is no reason against having it here, and in addition,
22426 # creating and moving files from /tmp can sometimes cause problems.
22427 # Hook for its removal unless debugging.
22428 # Note that there is a small window in which the directory will not be cleaned:
22429 # after its creation but before its name has been assigned to `$tmp'.
22430 $debug ||
22431 {
22432   tmp= ac_tmp=
22433   trap 'exit_status=$?
22434   : "${ac_tmp:=$tmp}"
22435   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22436 ' 0
22437   trap 'as_fn_exit 1' 1 2 13 15
22438 }
22439 # Create a (secure) tmp directory for tmp files.
22440
22441 {
22442   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22443   test -d "$tmp"
22444 }  ||
22445 {
22446   tmp=./conf$$-$RANDOM
22447   (umask 077 && mkdir "$tmp")
22448 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22449 ac_tmp=$tmp
22450
22451 # Set up the scripts for CONFIG_FILES section.
22452 # No need to generate them if there are no CONFIG_FILES.
22453 # This happens for instance with `./config.status config.h'.
22454 if test -n "$CONFIG_FILES"; then
22455
22456
22457 ac_cr=`echo X | tr X '\015'`
22458 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22459 # But we know of no other shell where ac_cr would be empty at this
22460 # point, so we can use a bashism as a fallback.
22461 if test "x$ac_cr" = x; then
22462   eval ac_cr=\$\'\\r\'
22463 fi
22464 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22465 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22466   ac_cs_awk_cr='\\r'
22467 else
22468   ac_cs_awk_cr=$ac_cr
22469 fi
22470
22471 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22472 _ACEOF
22473
22474
22475 {
22476   echo "cat >conf$$subs.awk <<_ACEOF" &&
22477   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22478   echo "_ACEOF"
22479 } >conf$$subs.sh ||
22480   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22481 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22482 ac_delim='%!_!# '
22483 for ac_last_try in false false false false false :; do
22484   . ./conf$$subs.sh ||
22485     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22486
22487   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22488   if test $ac_delim_n = $ac_delim_num; then
22489     break
22490   elif $ac_last_try; then
22491     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22492   else
22493     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22494   fi
22495 done
22496 rm -f conf$$subs.sh
22497
22498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22499 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22500 _ACEOF
22501 sed -n '
22502 h
22503 s/^/S["/; s/!.*/"]=/
22504 p
22505 g
22506 s/^[^!]*!//
22507 :repl
22508 t repl
22509 s/'"$ac_delim"'$//
22510 t delim
22511 :nl
22512 h
22513 s/\(.\{148\}\)..*/\1/
22514 t more1
22515 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22516 p
22517 n
22518 b repl
22519 :more1
22520 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22521 p
22522 g
22523 s/.\{148\}//
22524 t nl
22525 :delim
22526 h
22527 s/\(.\{148\}\)..*/\1/
22528 t more2
22529 s/["\\]/\\&/g; s/^/"/; s/$/"/
22530 p
22531 b
22532 :more2
22533 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22534 p
22535 g
22536 s/.\{148\}//
22537 t delim
22538 ' <conf$$subs.awk | sed '
22539 /^[^""]/{
22540   N
22541   s/\n//
22542 }
22543 ' >>$CONFIG_STATUS || ac_write_fail=1
22544 rm -f conf$$subs.awk
22545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22546 _ACAWK
22547 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22548   for (key in S) S_is_set[key] = 1
22549   FS = "\a"
22550
22551 }
22552 {
22553   line = $ 0
22554   nfields = split(line, field, "@")
22555   substed = 0
22556   len = length(field[1])
22557   for (i = 2; i < nfields; i++) {
22558     key = field[i]
22559     keylen = length(key)
22560     if (S_is_set[key]) {
22561       value = S[key]
22562       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22563       len += length(value) + length(field[++i])
22564       substed = 1
22565     } else
22566       len += 1 + keylen
22567   }
22568
22569   print line
22570 }
22571
22572 _ACAWK
22573 _ACEOF
22574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22575 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22576   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22577 else
22578   cat
22579 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22580   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22581 _ACEOF
22582
22583 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22584 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22585 # trailing colons and then remove the whole line if VPATH becomes empty
22586 # (actually we leave an empty line to preserve line numbers).
22587 if test "x$srcdir" = x.; then
22588   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
22589 h
22590 s///
22591 s/^/:/
22592 s/[      ]*$/:/
22593 s/:\$(srcdir):/:/g
22594 s/:\${srcdir}:/:/g
22595 s/:@srcdir@:/:/g
22596 s/^:*//
22597 s/:*$//
22598 x
22599 s/\(=[   ]*\).*/\1/
22600 G
22601 s/\n//
22602 s/^[^=]*=[       ]*$//
22603 }'
22604 fi
22605
22606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22607 fi # test -n "$CONFIG_FILES"
22608
22609 # Set up the scripts for CONFIG_HEADERS section.
22610 # No need to generate them if there are no CONFIG_HEADERS.
22611 # This happens for instance with `./config.status Makefile'.
22612 if test -n "$CONFIG_HEADERS"; then
22613 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22614 BEGIN {
22615 _ACEOF
22616
22617 # Transform confdefs.h into an awk script `defines.awk', embedded as
22618 # here-document in config.status, that substitutes the proper values into
22619 # config.h.in to produce config.h.
22620
22621 # Create a delimiter string that does not exist in confdefs.h, to ease
22622 # handling of long lines.
22623 ac_delim='%!_!# '
22624 for ac_last_try in false false :; do
22625   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22626   if test -z "$ac_tt"; then
22627     break
22628   elif $ac_last_try; then
22629     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22630   else
22631     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22632   fi
22633 done
22634
22635 # For the awk script, D is an array of macro values keyed by name,
22636 # likewise P contains macro parameters if any.  Preserve backslash
22637 # newline sequences.
22638
22639 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22640 sed -n '
22641 s/.\{148\}/&'"$ac_delim"'/g
22642 t rset
22643 :rset
22644 s/^[     ]*#[    ]*define[       ][      ]*/ /
22645 t def
22646 d
22647 :def
22648 s/\\$//
22649 t bsnl
22650 s/["\\]/\\&/g
22651 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22652 D["\1"]=" \3"/p
22653 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
22654 d
22655 :bsnl
22656 s/["\\]/\\&/g
22657 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22658 D["\1"]=" \3\\\\\\n"\\/p
22659 t cont
22660 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22661 t cont
22662 d
22663 :cont
22664 n
22665 s/.\{148\}/&'"$ac_delim"'/g
22666 t clear
22667 :clear
22668 s/\\$//
22669 t bsnlc
22670 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22671 d
22672 :bsnlc
22673 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22674 b cont
22675 ' <confdefs.h | sed '
22676 s/'"$ac_delim"'/"\\\
22677 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22678
22679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22680   for (key in D) D_is_set[key] = 1
22681   FS = "\a"
22682 }
22683 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22684   line = \$ 0
22685   split(line, arg, " ")
22686   if (arg[1] == "#") {
22687     defundef = arg[2]
22688     mac1 = arg[3]
22689   } else {
22690     defundef = substr(arg[1], 2)
22691     mac1 = arg[2]
22692   }
22693   split(mac1, mac2, "(") #)
22694   macro = mac2[1]
22695   prefix = substr(line, 1, index(line, defundef) - 1)
22696   if (D_is_set[macro]) {
22697     # Preserve the white space surrounding the "#".
22698     print prefix "define", macro P[macro] D[macro]
22699     next
22700   } else {
22701     # Replace #undef with comments.  This is necessary, for example,
22702     # in the case of _POSIX_SOURCE, which is predefined and required
22703     # on some systems where configure will not decide to define it.
22704     if (defundef == "undef") {
22705       print "/*", prefix defundef, macro, "*/"
22706       next
22707     }
22708   }
22709 }
22710 { print }
22711 _ACAWK
22712 _ACEOF
22713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22714   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22715 fi # test -n "$CONFIG_HEADERS"
22716
22717
22718 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22719 shift
22720 for ac_tag
22721 do
22722   case $ac_tag in
22723   :[FHLC]) ac_mode=$ac_tag; continue;;
22724   esac
22725   case $ac_mode$ac_tag in
22726   :[FHL]*:*);;
22727   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22728   :[FH]-) ac_tag=-:-;;
22729   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22730   esac
22731   ac_save_IFS=$IFS
22732   IFS=:
22733   set x $ac_tag
22734   IFS=$ac_save_IFS
22735   shift
22736   ac_file=$1
22737   shift
22738
22739   case $ac_mode in
22740   :L) ac_source=$1;;
22741   :[FH])
22742     ac_file_inputs=
22743     for ac_f
22744     do
22745       case $ac_f in
22746       -) ac_f="$ac_tmp/stdin";;
22747       *) # Look for the file first in the build tree, then in the source tree
22748          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22749          # because $ac_f cannot contain `:'.
22750          test -f "$ac_f" ||
22751            case $ac_f in
22752            [\\/$]*) false;;
22753            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22754            esac ||
22755            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22756       esac
22757       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22758       as_fn_append ac_file_inputs " '$ac_f'"
22759     done
22760
22761     # Let's still pretend it is `configure' which instantiates (i.e., don't
22762     # use $as_me), people would be surprised to read:
22763     #    /* config.h.  Generated by config.status.  */
22764     configure_input='Generated from '`
22765           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22766         `' by configure.'
22767     if test x"$ac_file" != x-; then
22768       configure_input="$ac_file.  $configure_input"
22769       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22770 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22771     fi
22772     # Neutralize special characters interpreted by sed in replacement strings.
22773     case $configure_input in #(
22774     *\&* | *\|* | *\\* )
22775        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22776        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22777     *) ac_sed_conf_input=$configure_input;;
22778     esac
22779
22780     case $ac_tag in
22781     *:-:* | *:-) cat >"$ac_tmp/stdin" \
22782       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22783     esac
22784     ;;
22785   esac
22786
22787   ac_dir=`$as_dirname -- "$ac_file" ||
22788 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22789          X"$ac_file" : 'X\(//\)[^/]' \| \
22790          X"$ac_file" : 'X\(//\)$' \| \
22791          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22792 printf "%s\n" X"$ac_file" |
22793     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22794             s//\1/
22795             q
22796           }
22797           /^X\(\/\/\)[^/].*/{
22798             s//\1/
22799             q
22800           }
22801           /^X\(\/\/\)$/{
22802             s//\1/
22803             q
22804           }
22805           /^X\(\/\).*/{
22806             s//\1/
22807             q
22808           }
22809           s/.*/./; q'`
22810   as_dir="$ac_dir"; as_fn_mkdir_p
22811   ac_builddir=.
22812
22813 case "$ac_dir" in
22814 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22815 *)
22816   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22817   # A ".." for each directory in $ac_dir_suffix.
22818   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22819   case $ac_top_builddir_sub in
22820   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22821   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22822   esac ;;
22823 esac
22824 ac_abs_top_builddir=$ac_pwd
22825 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22826 # for backward compatibility:
22827 ac_top_builddir=$ac_top_build_prefix
22828
22829 case $srcdir in
22830   .)  # We are building in place.
22831     ac_srcdir=.
22832     ac_top_srcdir=$ac_top_builddir_sub
22833     ac_abs_top_srcdir=$ac_pwd ;;
22834   [\\/]* | ?:[\\/]* )  # Absolute name.
22835     ac_srcdir=$srcdir$ac_dir_suffix;
22836     ac_top_srcdir=$srcdir
22837     ac_abs_top_srcdir=$srcdir ;;
22838   *) # Relative name.
22839     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22840     ac_top_srcdir=$ac_top_build_prefix$srcdir
22841     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22842 esac
22843 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22844
22845
22846   case $ac_mode in
22847   :F)
22848   #
22849   # CONFIG_FILE
22850   #
22851
22852   case $INSTALL in
22853   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22854   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22855   esac
22856   ac_MKDIR_P=$MKDIR_P
22857   case $MKDIR_P in
22858   [\\/$]* | ?:[\\/]* ) ;;
22859   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22860   esac
22861 _ACEOF
22862
22863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22864 # If the template does not know about datarootdir, expand it.
22865 # FIXME: This hack should be removed a few years after 2.60.
22866 ac_datarootdir_hack=; ac_datarootdir_seen=
22867 ac_sed_dataroot='
22868 /datarootdir/ {
22869   p
22870   q
22871 }
22872 /@datadir@/p
22873 /@docdir@/p
22874 /@infodir@/p
22875 /@localedir@/p
22876 /@mandir@/p'
22877 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22878 *datarootdir*) ac_datarootdir_seen=yes;;
22879 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22880   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22881 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22882 _ACEOF
22883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22884   ac_datarootdir_hack='
22885   s&@datadir@&$datadir&g
22886   s&@docdir@&$docdir&g
22887   s&@infodir@&$infodir&g
22888   s&@localedir@&$localedir&g
22889   s&@mandir@&$mandir&g
22890   s&\\\${datarootdir}&$datarootdir&g' ;;
22891 esac
22892 _ACEOF
22893
22894 # Neutralize VPATH when `$srcdir' = `.'.
22895 # Shell code in configure.ac might set extrasub.
22896 # FIXME: do we really want to maintain this feature?
22897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22898 ac_sed_extra="$ac_vpsub
22899 $extrasub
22900 _ACEOF
22901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22902 :t
22903 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22904 s|@configure_input@|$ac_sed_conf_input|;t t
22905 s&@top_builddir@&$ac_top_builddir_sub&;t t
22906 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22907 s&@srcdir@&$ac_srcdir&;t t
22908 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22909 s&@top_srcdir@&$ac_top_srcdir&;t t
22910 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22911 s&@builddir@&$ac_builddir&;t t
22912 s&@abs_builddir@&$ac_abs_builddir&;t t
22913 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22914 s&@INSTALL@&$ac_INSTALL&;t t
22915 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22916 $ac_datarootdir_hack
22917 "
22918 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22919   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22920
22921 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22922   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22923   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
22924       "$ac_tmp/out"`; test -z "$ac_out"; } &&
22925   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22926 which seems to be undefined.  Please make sure it is defined" >&5
22927 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22928 which seems to be undefined.  Please make sure it is defined" >&2;}
22929
22930   rm -f "$ac_tmp/stdin"
22931   case $ac_file in
22932   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22933   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22934   esac \
22935   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22936  ;;
22937   :H)
22938   #
22939   # CONFIG_HEADER
22940   #
22941   if test x"$ac_file" != x-; then
22942     {
22943       printf "%s\n" "/* $configure_input  */" >&1 \
22944       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22945     } >"$ac_tmp/config.h" \
22946       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22947     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22948       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22949 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22950     else
22951       rm -f "$ac_file"
22952       mv "$ac_tmp/config.h" "$ac_file" \
22953         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22954     fi
22955   else
22956     printf "%s\n" "/* $configure_input  */" >&1 \
22957       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22958       || as_fn_error $? "could not create -" "$LINENO" 5
22959   fi
22960 # Compute "$ac_file"'s index in $config_headers.
22961 _am_arg="$ac_file"
22962 _am_stamp_count=1
22963 for _am_header in $config_headers :; do
22964   case $_am_header in
22965     $_am_arg | $_am_arg:* )
22966       break ;;
22967     * )
22968       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22969   esac
22970 done
22971 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22972 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22973          X"$_am_arg" : 'X\(//\)[^/]' \| \
22974          X"$_am_arg" : 'X\(//\)$' \| \
22975          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22976 printf "%s\n" X"$_am_arg" |
22977     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22978             s//\1/
22979             q
22980           }
22981           /^X\(\/\/\)[^/].*/{
22982             s//\1/
22983             q
22984           }
22985           /^X\(\/\/\)$/{
22986             s//\1/
22987             q
22988           }
22989           /^X\(\/\).*/{
22990             s//\1/
22991             q
22992           }
22993           s/.*/./; q'`/stamp-h$_am_stamp_count
22994  ;;
22995
22996   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22997 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22998  ;;
22999   esac
23000
23001
23002   case $ac_file$ac_mode in
23003     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23004   # Older Autoconf quotes --file arguments for eval, but not when files
23005   # are listed without --file.  Let's play safe and only enable the eval
23006   # if we detect the quoting.
23007   # TODO: see whether this extra hack can be removed once we start
23008   # requiring Autoconf 2.70 or later.
23009   case $CONFIG_FILES in #(
23010   *\'*) :
23011     eval set x "$CONFIG_FILES" ;; #(
23012   *) :
23013     set x $CONFIG_FILES ;; #(
23014   *) :
23015      ;;
23016 esac
23017   shift
23018   # Used to flag and report bootstrapping failures.
23019   am_rc=0
23020   for am_mf
23021   do
23022     # Strip MF so we end up with the name of the file.
23023     am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
23024     # Check whether this is an Automake generated Makefile which includes
23025     # dependency-tracking related rules and includes.
23026     # Grep'ing the whole file directly is not great: AIX grep has a line
23027     # limit of 2048, but all sed's we know have understand at least 4000.
23028     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23029       || continue
23030     am_dirpart=`$as_dirname -- "$am_mf" ||
23031 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23032          X"$am_mf" : 'X\(//\)[^/]' \| \
23033          X"$am_mf" : 'X\(//\)$' \| \
23034          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23035 printf "%s\n" X"$am_mf" |
23036     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23037             s//\1/
23038             q
23039           }
23040           /^X\(\/\/\)[^/].*/{
23041             s//\1/
23042             q
23043           }
23044           /^X\(\/\/\)$/{
23045             s//\1/
23046             q
23047           }
23048           /^X\(\/\).*/{
23049             s//\1/
23050             q
23051           }
23052           s/.*/./; q'`
23053     am_filepart=`$as_basename -- "$am_mf" ||
23054 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23055          X"$am_mf" : 'X\(//\)$' \| \
23056          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23057 printf "%s\n" X/"$am_mf" |
23058     sed '/^.*\/\([^/][^/]*\)\/*$/{
23059             s//\1/
23060             q
23061           }
23062           /^X\/\(\/\/\)$/{
23063             s//\1/
23064             q
23065           }
23066           /^X\/\(\/\).*/{
23067             s//\1/
23068             q
23069           }
23070           s/.*/./; q'`
23071     { echo "$as_me:$LINENO: cd "$am_dirpart" \
23072       && sed -e '/# am--include-marker/d' "$am_filepart" \
23073         | $MAKE -f - am--depfiles" >&5
23074    (cd "$am_dirpart" \
23075       && sed -e '/# am--include-marker/d' "$am_filepart" \
23076         | $MAKE -f - am--depfiles) >&5 2>&5
23077    ac_status=$?
23078    echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079    (exit $ac_status); } || am_rc=$?
23080   done
23081   if test $am_rc -ne 0; then
23082     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23083 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23084 as_fn_error $? "Something went wrong bootstrapping makefile fragments
23085     for automatic dependency tracking.  If GNU make was not used, consider
23086     re-running the configure script with MAKE=\"gmake\" (or whatever is
23087     necessary).  You can also try re-running configure with the
23088     '--disable-dependency-tracking' option to at least be able to build
23089     the package (albeit without support for automatic dependency tracking).
23090 See \`config.log' for more details" "$LINENO" 5; }
23091   fi
23092   { am_dirpart=; unset am_dirpart;}
23093   { am_filepart=; unset am_filepart;}
23094   { am_mf=; unset am_mf;}
23095   { am_rc=; unset am_rc;}
23096   rm -f conftest-deps.mk
23097 }
23098  ;;
23099     "libtool":C)
23100
23101     # See if we are running on zsh, and set the options that allow our
23102     # commands through without removal of \ escapes.
23103     if test -n "${ZSH_VERSION+set}"; then
23104       setopt NO_GLOB_SUBST
23105     fi
23106
23107     cfgfile=${ofile}T
23108     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23109     $RM "$cfgfile"
23110
23111     cat <<_LT_EOF >> "$cfgfile"
23112 #! $SHELL
23113 # Generated automatically by $as_me ($PACKAGE) $VERSION
23114 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23115
23116 # Provide generalized library-building support services.
23117 # Written by Gordon Matzigkeit, 1996
23118
23119 # Copyright (C) 2014 Free Software Foundation, Inc.
23120 # This is free software; see the source for copying conditions.  There is NO
23121 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23122
23123 # GNU Libtool is free software; you can redistribute it and/or modify
23124 # it under the terms of the GNU General Public License as published by
23125 # the Free Software Foundation; either version 2 of of the License, or
23126 # (at your option) any later version.
23127 #
23128 # As a special exception to the GNU General Public License, if you
23129 # distribute this file as part of a program or library that is built
23130 # using GNU Libtool, you may include this file under the  same
23131 # distribution terms that you use for the rest of that program.
23132 #
23133 # GNU Libtool is distributed in the hope that it will be useful, but
23134 # WITHOUT ANY WARRANTY; without even the implied warranty of
23135 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23136 # GNU General Public License for more details.
23137 #
23138 # You should have received a copy of the GNU General Public License
23139 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
23140
23141
23142 # The names of the tagged configurations supported by this script.
23143 available_tags=''
23144
23145 # Configured defaults for sys_lib_dlsearch_path munging.
23146 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23147
23148 # ### BEGIN LIBTOOL CONFIG
23149
23150 # Whether or not to build static libraries.
23151 build_old_libs=$enable_static
23152
23153 # Which release of libtool.m4 was used?
23154 macro_version=$macro_version
23155 macro_revision=$macro_revision
23156
23157 # Whether or not to build shared libraries.
23158 build_libtool_libs=$enable_shared
23159
23160 # What type of objects to build.
23161 pic_mode=$pic_mode
23162
23163 # Whether or not to optimize for fast installation.
23164 fast_install=$enable_fast_install
23165
23166 # Shared archive member basename,for filename based shared library versioning on AIX.
23167 shared_archive_member_spec=$shared_archive_member_spec
23168
23169 # Shell to use when invoking shell scripts.
23170 SHELL=$lt_SHELL
23171
23172 # An echo program that protects backslashes.
23173 ECHO=$lt_ECHO
23174
23175 # The PATH separator for the build system.
23176 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23177
23178 # The host system.
23179 host_alias=$host_alias
23180 host=$host
23181 host_os=$host_os
23182
23183 # The build system.
23184 build_alias=$build_alias
23185 build=$build
23186 build_os=$build_os
23187
23188 # A sed program that does not truncate output.
23189 SED=$lt_SED
23190
23191 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23192 Xsed="\$SED -e 1s/^X//"
23193
23194 # A grep program that handles long lines.
23195 GREP=$lt_GREP
23196
23197 # An ERE matcher.
23198 EGREP=$lt_EGREP
23199
23200 # A literal string matcher.
23201 FGREP=$lt_FGREP
23202
23203 # A BSD- or MS-compatible name lister.
23204 NM=$lt_NM
23205
23206 # Whether we need soft or hard links.
23207 LN_S=$lt_LN_S
23208
23209 # What is the maximum length of a command?
23210 max_cmd_len=$max_cmd_len
23211
23212 # Object file suffix (normally "o").
23213 objext=$ac_objext
23214
23215 # Executable file suffix (normally "").
23216 exeext=$exeext
23217
23218 # whether the shell understands "unset".
23219 lt_unset=$lt_unset
23220
23221 # turn spaces into newlines.
23222 SP2NL=$lt_lt_SP2NL
23223
23224 # turn newlines into spaces.
23225 NL2SP=$lt_lt_NL2SP
23226
23227 # convert \$build file names to \$host format.
23228 to_host_file_cmd=$lt_cv_to_host_file_cmd
23229
23230 # convert \$build files to toolchain format.
23231 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23232
23233 # An object symbol dumper.
23234 OBJDUMP=$lt_OBJDUMP
23235
23236 # Method to check whether dependent libraries are shared objects.
23237 deplibs_check_method=$lt_deplibs_check_method
23238
23239 # Command to use when deplibs_check_method = "file_magic".
23240 file_magic_cmd=$lt_file_magic_cmd
23241
23242 # How to find potential files when deplibs_check_method = "file_magic".
23243 file_magic_glob=$lt_file_magic_glob
23244
23245 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23246 want_nocaseglob=$lt_want_nocaseglob
23247
23248 # DLL creation program.
23249 DLLTOOL=$lt_DLLTOOL
23250
23251 # Command to associate shared and link libraries.
23252 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23253
23254 # The archiver.
23255 AR=$lt_AR
23256
23257 # Flags to create an archive.
23258 AR_FLAGS=$lt_AR_FLAGS
23259
23260 # How to feed a file listing to the archiver.
23261 archiver_list_spec=$lt_archiver_list_spec
23262
23263 # A symbol stripping program.
23264 STRIP=$lt_STRIP
23265
23266 # Commands used to install an old-style archive.
23267 RANLIB=$lt_RANLIB
23268 old_postinstall_cmds=$lt_old_postinstall_cmds
23269 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23270
23271 # Whether to use a lock for old archive extraction.
23272 lock_old_archive_extraction=$lock_old_archive_extraction
23273
23274 # A C compiler.
23275 LTCC=$lt_CC
23276
23277 # LTCC compiler flags.
23278 LTCFLAGS=$lt_CFLAGS
23279
23280 # Take the output of nm and produce a listing of raw symbols and C names.
23281 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23282
23283 # Transform the output of nm in a proper C declaration.
23284 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23285
23286 # Transform the output of nm into a list of symbols to manually relocate.
23287 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23288
23289 # Transform the output of nm in a C name address pair.
23290 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23291
23292 # Transform the output of nm in a C name address pair when lib prefix is needed.
23293 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23294
23295 # The name lister interface.
23296 nm_interface=$lt_lt_cv_nm_interface
23297
23298 # Specify filename containing input files for \$NM.
23299 nm_file_list_spec=$lt_nm_file_list_spec
23300
23301 # The root where to search for dependent libraries,and where our libraries should be installed.
23302 lt_sysroot=$lt_sysroot
23303
23304 # Command to truncate a binary pipe.
23305 lt_truncate_bin=$lt_lt_cv_truncate_bin
23306
23307 # The name of the directory that contains temporary libtool files.
23308 objdir=$objdir
23309
23310 # Used to examine libraries when file_magic_cmd begins with "file".
23311 MAGIC_CMD=$MAGIC_CMD
23312
23313 # Must we lock files when doing compilation?
23314 need_locks=$lt_need_locks
23315
23316 # Manifest tool.
23317 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23318
23319 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23320 DSYMUTIL=$lt_DSYMUTIL
23321
23322 # Tool to change global to local symbols on Mac OS X.
23323 NMEDIT=$lt_NMEDIT
23324
23325 # Tool to manipulate fat objects and archives on Mac OS X.
23326 LIPO=$lt_LIPO
23327
23328 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23329 OTOOL=$lt_OTOOL
23330
23331 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23332 OTOOL64=$lt_OTOOL64
23333
23334 # Old archive suffix (normally "a").
23335 libext=$libext
23336
23337 # Shared library suffix (normally ".so").
23338 shrext_cmds=$lt_shrext_cmds
23339
23340 # The commands to extract the exported symbol list from a shared archive.
23341 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23342
23343 # Variables whose values should be saved in libtool wrapper scripts and
23344 # restored at link time.
23345 variables_saved_for_relink=$lt_variables_saved_for_relink
23346
23347 # Do we need the "lib" prefix for modules?
23348 need_lib_prefix=$need_lib_prefix
23349
23350 # Do we need a version for libraries?
23351 need_version=$need_version
23352
23353 # Library versioning type.
23354 version_type=$version_type
23355
23356 # Shared library runtime path variable.
23357 runpath_var=$runpath_var
23358
23359 # Shared library path variable.
23360 shlibpath_var=$shlibpath_var
23361
23362 # Is shlibpath searched before the hard-coded library search path?
23363 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23364
23365 # Format of library name prefix.
23366 libname_spec=$lt_libname_spec
23367
23368 # List of archive names.  First name is the real one, the rest are links.
23369 # The last name is the one that the linker finds with -lNAME
23370 library_names_spec=$lt_library_names_spec
23371
23372 # The coded name of the library, if different from the real name.
23373 soname_spec=$lt_soname_spec
23374
23375 # Permission mode override for installation of shared libraries.
23376 install_override_mode=$lt_install_override_mode
23377
23378 # Command to use after installation of a shared archive.
23379 postinstall_cmds=$lt_postinstall_cmds
23380
23381 # Command to use after uninstallation of a shared archive.
23382 postuninstall_cmds=$lt_postuninstall_cmds
23383
23384 # Commands used to finish a libtool library installation in a directory.
23385 finish_cmds=$lt_finish_cmds
23386
23387 # As "finish_cmds", except a single script fragment to be evaled but
23388 # not shown.
23389 finish_eval=$lt_finish_eval
23390
23391 # Whether we should hardcode library paths into libraries.
23392 hardcode_into_libs=$hardcode_into_libs
23393
23394 # Compile-time system search path for libraries.
23395 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23396
23397 # Detected run-time system search path for libraries.
23398 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23399
23400 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23401 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23402
23403 # Whether dlopen is supported.
23404 dlopen_support=$enable_dlopen
23405
23406 # Whether dlopen of programs is supported.
23407 dlopen_self=$enable_dlopen_self
23408
23409 # Whether dlopen of statically linked programs is supported.
23410 dlopen_self_static=$enable_dlopen_self_static
23411
23412 # Commands to strip libraries.
23413 old_striplib=$lt_old_striplib
23414 striplib=$lt_striplib
23415
23416
23417 # The linker used to build libraries.
23418 LD=$lt_LD
23419
23420 # How to create reloadable object files.
23421 reload_flag=$lt_reload_flag
23422 reload_cmds=$lt_reload_cmds
23423
23424 # Commands used to build an old-style archive.
23425 old_archive_cmds=$lt_old_archive_cmds
23426
23427 # A language specific compiler.
23428 CC=$lt_compiler
23429
23430 # Is the compiler the GNU compiler?
23431 with_gcc=$GCC
23432
23433 # Compiler flag to turn off builtin functions.
23434 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23435
23436 # Additional compiler flags for building library objects.
23437 pic_flag=$lt_lt_prog_compiler_pic
23438
23439 # How to pass a linker flag through the compiler.
23440 wl=$lt_lt_prog_compiler_wl
23441
23442 # Compiler flag to prevent dynamic linking.
23443 link_static_flag=$lt_lt_prog_compiler_static
23444
23445 # Does compiler simultaneously support -c and -o options?
23446 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23447
23448 # Whether or not to add -lc for building shared libraries.
23449 build_libtool_need_lc=$archive_cmds_need_lc
23450
23451 # Whether or not to disallow shared libs when runtime libs are static.
23452 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23453
23454 # Compiler flag to allow reflexive dlopens.
23455 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23456
23457 # Compiler flag to generate shared objects directly from archives.
23458 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23459
23460 # Whether the compiler copes with passing no objects directly.
23461 compiler_needs_object=$lt_compiler_needs_object
23462
23463 # Create an old-style archive from a shared archive.
23464 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23465
23466 # Create a temporary old-style archive to link instead of a shared archive.
23467 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23468
23469 # Commands used to build a shared archive.
23470 archive_cmds=$lt_archive_cmds
23471 archive_expsym_cmds=$lt_archive_expsym_cmds
23472
23473 # Commands used to build a loadable module if different from building
23474 # a shared archive.
23475 module_cmds=$lt_module_cmds
23476 module_expsym_cmds=$lt_module_expsym_cmds
23477
23478 # Whether we are building with GNU ld or not.
23479 with_gnu_ld=$lt_with_gnu_ld
23480
23481 # Flag that allows shared libraries with undefined symbols to be built.
23482 allow_undefined_flag=$lt_allow_undefined_flag
23483
23484 # Flag that enforces no undefined symbols.
23485 no_undefined_flag=$lt_no_undefined_flag
23486
23487 # Flag to hardcode \$libdir into a binary during linking.
23488 # This must work even if \$libdir does not exist
23489 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23490
23491 # Whether we need a single "-rpath" flag with a separated argument.
23492 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23493
23494 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23495 # DIR into the resulting binary.
23496 hardcode_direct=$hardcode_direct
23497
23498 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23499 # DIR into the resulting binary and the resulting library dependency is
23500 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23501 # library is relocated.
23502 hardcode_direct_absolute=$hardcode_direct_absolute
23503
23504 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23505 # into the resulting binary.
23506 hardcode_minus_L=$hardcode_minus_L
23507
23508 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23509 # into the resulting binary.
23510 hardcode_shlibpath_var=$hardcode_shlibpath_var
23511
23512 # Set to "yes" if building a shared library automatically hardcodes DIR
23513 # into the library and all subsequent libraries and executables linked
23514 # against it.
23515 hardcode_automatic=$hardcode_automatic
23516
23517 # Set to yes if linker adds runtime paths of dependent libraries
23518 # to runtime path list.
23519 inherit_rpath=$inherit_rpath
23520
23521 # Whether libtool must link a program against all its dependency libraries.
23522 link_all_deplibs=$link_all_deplibs
23523
23524 # Set to "yes" if exported symbols are required.
23525 always_export_symbols=$always_export_symbols
23526
23527 # The commands to list exported symbols.
23528 export_symbols_cmds=$lt_export_symbols_cmds
23529
23530 # Symbols that should not be listed in the preloaded symbols.
23531 exclude_expsyms=$lt_exclude_expsyms
23532
23533 # Symbols that must always be exported.
23534 include_expsyms=$lt_include_expsyms
23535
23536 # Commands necessary for linking programs (against libraries) with templates.
23537 prelink_cmds=$lt_prelink_cmds
23538
23539 # Commands necessary for finishing linking programs.
23540 postlink_cmds=$lt_postlink_cmds
23541
23542 # Specify filename containing input files.
23543 file_list_spec=$lt_file_list_spec
23544
23545 # How to hardcode a shared library path into an executable.
23546 hardcode_action=$hardcode_action
23547
23548 # ### END LIBTOOL CONFIG
23549
23550 _LT_EOF
23551
23552     cat <<'_LT_EOF' >> "$cfgfile"
23553
23554 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23555
23556 # func_munge_path_list VARIABLE PATH
23557 # -----------------------------------
23558 # VARIABLE is name of variable containing _space_ separated list of
23559 # directories to be munged by the contents of PATH, which is string
23560 # having a format:
23561 # "DIR[:DIR]:"
23562 #       string "DIR[ DIR]" will be prepended to VARIABLE
23563 # ":DIR[:DIR]"
23564 #       string "DIR[ DIR]" will be appended to VARIABLE
23565 # "DIRP[:DIRP]::[DIRA:]DIRA"
23566 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23567 #       "DIRA[ DIRA]" will be appended to VARIABLE
23568 # "DIR[:DIR]"
23569 #       VARIABLE will be replaced by "DIR[ DIR]"
23570 func_munge_path_list ()
23571 {
23572     case x$2 in
23573     x)
23574         ;;
23575     *:)
23576         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23577         ;;
23578     x:*)
23579         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23580         ;;
23581     *::*)
23582         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23583         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23584         ;;
23585     *)
23586         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23587         ;;
23588     esac
23589 }
23590
23591
23592 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23593 func_cc_basename ()
23594 {
23595     for cc_temp in $*""; do
23596       case $cc_temp in
23597         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23598         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23599         \-*) ;;
23600         *) break;;
23601       esac
23602     done
23603     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23604 }
23605
23606
23607 # ### END FUNCTIONS SHARED WITH CONFIGURE
23608
23609 _LT_EOF
23610
23611   case $host_os in
23612   aix3*)
23613     cat <<\_LT_EOF >> "$cfgfile"
23614 # AIX sometimes has problems with the GCC collect2 program.  For some
23615 # reason, if we set the COLLECT_NAMES environment variable, the problems
23616 # vanish in a puff of smoke.
23617 if test set != "${COLLECT_NAMES+set}"; then
23618   COLLECT_NAMES=
23619   export COLLECT_NAMES
23620 fi
23621 _LT_EOF
23622     ;;
23623   esac
23624
23625
23626
23627 ltmain=$ac_aux_dir/ltmain.sh
23628
23629
23630   # We use sed instead of cat because bash on DJGPP gets confused if
23631   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23632   # text mode, it properly converts lines to CR/LF.  This bash problem
23633   # is reportedly fixed, but why not run on old versions too?
23634   sed '$q' "$ltmain" >> "$cfgfile" \
23635      || (rm -f "$cfgfile"; exit 1)
23636
23637    mv -f "$cfgfile" "$ofile" ||
23638     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23639   chmod +x "$ofile"
23640
23641  ;;
23642     "po-directories":C)
23643     for ac_file in $CONFIG_FILES; do
23644       # Support "outfile[:infile[:infile...]]"
23645       case "$ac_file" in
23646         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23647       esac
23648       # PO directories have a Makefile.in generated from Makefile.in.in.
23649       case "$ac_file" in */Makefile.in)
23650         # Adjust a relative srcdir.
23651         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23652         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
23653         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23654         # In autoconf-2.13 it is called $ac_given_srcdir.
23655         # In autoconf-2.50 it is called $srcdir.
23656         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23657         case "$ac_given_srcdir" in
23658           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23659           /*) top_srcdir="$ac_given_srcdir" ;;
23660           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
23661         esac
23662         # Treat a directory as a PO directory if and only if it has a
23663         # POTFILES.in file. This allows packages to have multiple PO
23664         # directories under different names or in different locations.
23665         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23666           rm -f "$ac_dir/POTFILES"
23667           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23668           gt_tab=`printf '\t'`
23669           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"
23670           POMAKEFILEDEPS="POTFILES.in"
23671           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23672           # on $ac_dir but don't depend on user-specified configuration
23673           # parameters.
23674           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23675             # The LINGUAS file contains the set of available languages.
23676             if test -n "$OBSOLETE_ALL_LINGUAS"; then
23677               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23678             fi
23679             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23680             # Hide the ALL_LINGUAS assignment from automake < 1.5.
23681             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23682             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23683           else
23684             # The set of available languages was given in configure.in.
23685             # Hide the ALL_LINGUAS assignment from automake < 1.5.
23686             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23687           fi
23688           # Compute POFILES
23689           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23690           # Compute UPDATEPOFILES
23691           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23692           # Compute DUMMYPOFILES
23693           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23694           # Compute GMOFILES
23695           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23696           case "$ac_given_srcdir" in
23697             .) srcdirpre= ;;
23698             *) srcdirpre='$(srcdir)/' ;;
23699           esac
23700           POFILES=
23701           UPDATEPOFILES=
23702           DUMMYPOFILES=
23703           GMOFILES=
23704           for lang in $ALL_LINGUAS; do
23705             POFILES="$POFILES $srcdirpre$lang.po"
23706             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23707             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23708             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23709           done
23710           # CATALOGS depends on both $ac_dir and the user's LINGUAS
23711           # environment variable.
23712           INST_LINGUAS=
23713           if test -n "$ALL_LINGUAS"; then
23714             for presentlang in $ALL_LINGUAS; do
23715               useit=no
23716               if test "%UNSET%" != "$LINGUAS"; then
23717                 desiredlanguages="$LINGUAS"
23718               else
23719                 desiredlanguages="$ALL_LINGUAS"
23720               fi
23721               for desiredlang in $desiredlanguages; do
23722                 # Use the presentlang catalog if desiredlang is
23723                 #   a. equal to presentlang, or
23724                 #   b. a variant of presentlang (because in this case,
23725                 #      presentlang can be used as a fallback for messages
23726                 #      which are not translated in the desiredlang catalog).
23727                 case "$desiredlang" in
23728                   "$presentlang"*) useit=yes;;
23729                 esac
23730               done
23731               if test $useit = yes; then
23732                 INST_LINGUAS="$INST_LINGUAS $presentlang"
23733               fi
23734             done
23735           fi
23736           CATALOGS=
23737           if test -n "$INST_LINGUAS"; then
23738             for lang in $INST_LINGUAS; do
23739               CATALOGS="$CATALOGS $lang.gmo"
23740             done
23741           fi
23742           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23743           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"
23744           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23745             if test -f "$f"; then
23746               case "$f" in
23747                 *.orig | *.bak | *~) ;;
23748                 *) cat "$f" >> "$ac_dir/Makefile" ;;
23749               esac
23750             fi
23751           done
23752         fi
23753         ;;
23754       esac
23755     done ;;
23756
23757   esac
23758 done # for ac_tag
23759
23760
23761 as_fn_exit 0
23762 _ACEOF
23763 ac_clean_files=$ac_clean_files_save
23764
23765 test $ac_write_fail = 0 ||
23766   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23767
23768
23769 # configure is writing to config.log, and then calls config.status.
23770 # config.status does its own redirection, appending to config.log.
23771 # Unfortunately, on DOS this fails, as config.log is still kept open
23772 # by configure, so config.status won't be able to write to it; its
23773 # output is simply discarded.  So we exec the FD to /dev/null,
23774 # effectively closing config.log, so it can be properly (re)opened and
23775 # appended to by config.status.  When coming back to configure, we
23776 # need to make the FD available again.
23777 if test "$no_create" != yes; then
23778   ac_cs_success=:
23779   ac_config_status_args=
23780   test "$silent" = yes &&
23781     ac_config_status_args="$ac_config_status_args --quiet"
23782   exec 5>/dev/null
23783   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23784   exec 5>>config.log
23785   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23786   # would make configure fail if this is the last instruction.
23787   $ac_cs_success || as_fn_exit 1
23788 fi
23789 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23790   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23791 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23792 fi
23793
23794