Initial release for Tizen
[platform/upstream/ecryptfs-utils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ecryptfs-utils 104.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     PATH=/empty FPATH=/empty; export PATH FPATH
206     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='ecryptfs-utils'
589 PACKAGE_TARNAME='ecryptfs-utils'
590 PACKAGE_VERSION='104'
591 PACKAGE_STRING='ecryptfs-utils 104'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="src/libecryptfs"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 ENABLE_TESTS_FALSE
637 ENABLE_TESTS_TRUE
638 BUILD_DOCS_GEN_FALSE
639 BUILD_DOCS_GEN_TRUE
640 BUILD_DOCS_FALSE
641 BUILD_DOCS_TRUE
642 BUILD_GUI_FALSE
643 BUILD_GUI_TRUE
644 BUILD_NSS_FALSE
645 BUILD_NSS_TRUE
646 BUILD_PYWRAP_FALSE
647 BUILD_PYWRAP_TRUE
648 BUILD_PAM_FALSE
649 BUILD_PAM_TRUE
650 BUILD_GPG_FALSE
651 BUILD_GPG_TRUE
652 BUILD_TSPI_FALSE
653 BUILD_TSPI_TRUE
654 BUILD_PKCS11_HELPER_FALSE
655 BUILD_PKCS11_HELPER_TRUE
656 BUILD_OPENSSL_FALSE
657 BUILD_OPENSSL_TRUE
658 CRYPTO_LIBS
659 CRYPTO_CFLAGS
660 GPGME_LIBS
661 GPGME_CFLAGS
662 ecryptfskeymoddir
663 rootsbindir
664 pkgconfigdir
665 pamlibdir
666 pamdir
667 LOCALEDIR
668 ALL_LINGUAS
669 INTLTOOL_PERL
670 MSGMERGE
671 INTLTOOL_POLICY_RULE
672 INTLTOOL_SERVICE_RULE
673 INTLTOOL_THEME_RULE
674 INTLTOOL_SCHEMAS_RULE
675 INTLTOOL_CAVES_RULE
676 INTLTOOL_XML_NOMERGE_RULE
677 INTLTOOL_XML_RULE
678 INTLTOOL_KBD_RULE
679 INTLTOOL_XAM_RULE
680 INTLTOOL_UI_RULE
681 INTLTOOL_SOUNDLIST_RULE
682 INTLTOOL_SHEET_RULE
683 INTLTOOL_SERVER_RULE
684 INTLTOOL_PONG_RULE
685 INTLTOOL_OAF_RULE
686 INTLTOOL_PROP_RULE
687 INTLTOOL_KEYS_RULE
688 INTLTOOL_DIRECTORY_RULE
689 INTLTOOL_DESKTOP_RULE
690 intltool__v_merge_options_0
691 intltool__v_merge_options_
692 INTLTOOL_V_MERGE_OPTIONS
693 INTLTOOL__v_MERGE_0
694 INTLTOOL__v_MERGE_
695 INTLTOOL_V_MERGE
696 INTLTOOL_EXTRACT
697 INTLTOOL_MERGE
698 INTLTOOL_UPDATE
699 MKINSTALLDIRS
700 POSUB
701 POFILES
702 PO_IN_DATADIR_FALSE
703 PO_IN_DATADIR_TRUE
704 INTLLIBS
705 INSTOBJEXT
706 GMOFILES
707 DATADIRNAME
708 CATOBJEXT
709 CATALOGS
710 XGETTEXT
711 GMSGFMT
712 MSGFMT_OPTS
713 MSGFMT
714 USE_NLS
715 GETTEXT_PACKAGE
716 GTK_LIBS
717 GTK_CFLAGS
718 PAM_LIBS
719 PAM_CFLAGS
720 TSPI_LIBS
721 TSPI_CFLAGS
722 PKCS11_HELPER_LIBS
723 PKCS11_HELPER_CFLAGS
724 SWIG_PYTHON_CPPFLAGS
725 SWIG_PYTHON_OPT
726 PYTHON_EXTRA_LDFLAGS
727 PYTHON_EXTRA_LIBS
728 PYTHON_SITE_PKG
729 PYTHON_LDFLAGS
730 PYTHON_CPPFLAGS
731 SWIG_LIB
732 SWIG
733 pkgpyexecdir
734 pyexecdir
735 pkgpythondir
736 pythondir
737 PYTHON_PLATFORM
738 PYTHON_EXEC_PREFIX
739 PYTHON_PREFIX
740 PYTHON_VERSION
741 PYTHON
742 NSS_LIBS
743 NSS_CFLAGS
744 OPENSSL_LIBS
745 OPENSSL_CFLAGS
746 KEYUTILS_LIBS
747 KEYUTILS_CFLAGS
748 LATEX
749 LATEX2HTML
750 DVIPS
751 PS2PDF
752 TAR
753 POD2MAN
754 OTOOL64
755 OTOOL
756 LIPO
757 NMEDIT
758 DSYMUTIL
759 MANIFEST_TOOL
760 RANLIB
761 ac_ct_AR
762 AR
763 DLLTOOL
764 OBJDUMP
765 NM
766 ac_ct_DUMPBIN
767 DUMPBIN
768 LD
769 FGREP
770 SED
771 LIBTOOL
772 PKG_CONFIG_LIBDIR
773 PKG_CONFIG_PATH
774 PKG_CONFIG
775 LN_S
776 EGREP
777 GREP
778 CPP
779 am__fastdepCC_FALSE
780 am__fastdepCC_TRUE
781 CCDEPMODE
782 am__nodep
783 AMDEPBACKSLASH
784 AMDEP_FALSE
785 AMDEP_TRUE
786 am__quote
787 am__include
788 DEPDIR
789 OBJEXT
790 EXEEXT
791 ac_ct_CC
792 CPPFLAGS
793 LDFLAGS
794 CFLAGS
795 CC
796 LIBECRYPTFS_LT_AGE
797 LIBECRYPTFS_LT_REVISION
798 LIBECRYPTFS_LT_CURRENT
799 AM_CPPFLAGS
800 AM_BACKSLASH
801 AM_DEFAULT_VERBOSITY
802 AM_DEFAULT_V
803 AM_V
804 am__untar
805 am__tar
806 AMTAR
807 am__leading_dot
808 SET_MAKE
809 AWK
810 mkdir_p
811 MKDIR_P
812 INSTALL_STRIP_PROGRAM
813 STRIP
814 install_sh
815 MAKEINFO
816 AUTOHEADER
817 AUTOMAKE
818 AUTOCONF
819 ACLOCAL
820 VERSION
821 PACKAGE
822 CYGPATH_W
823 am__isrc
824 INSTALL_DATA
825 INSTALL_SCRIPT
826 INSTALL_PROGRAM
827 target_os
828 target_vendor
829 target_cpu
830 target
831 host_os
832 host_vendor
833 host_cpu
834 host
835 build_os
836 build_vendor
837 build_cpu
838 build
839 target_alias
840 host_alias
841 build_alias
842 LIBS
843 ECHO_T
844 ECHO_N
845 ECHO_C
846 DEFS
847 mandir
848 localedir
849 libdir
850 psdir
851 pdfdir
852 dvidir
853 htmldir
854 infodir
855 docdir
856 oldincludedir
857 includedir
858 localstatedir
859 sharedstatedir
860 sysconfdir
861 datadir
862 datarootdir
863 libexecdir
864 sbindir
865 bindir
866 program_transform_name
867 prefix
868 exec_prefix
869 PACKAGE_URL
870 PACKAGE_BUGREPORT
871 PACKAGE_STRING
872 PACKAGE_VERSION
873 PACKAGE_TARNAME
874 PACKAGE_NAME
875 PATH_SEPARATOR
876 SHELL'
877 ac_subst_files=''
878 ac_user_opts='
879 enable_option_checking
880 enable_silent_rules
881 enable_static
882 enable_nss
883 enable_pywrap
884 enable_openssl
885 enable_pkcs11_helper
886 enable_tspi
887 enable_gpg
888 enable_pam
889 enable_gui
890 enable_docs
891 enable_docs_gen
892 enable_tests
893 enable_mudflap
894 with_gpgme_prefix
895 with_pamdir
896 with_ecryptfskeymoddir
897 enable_dependency_tracking
898 enable_shared
899 with_pic
900 enable_fast_install
901 with_gnu_ld
902 with_sysroot
903 enable_libtool_lock
904 enable_largefile
905 enable_nls
906 '
907       ac_precious_vars='build_alias
908 host_alias
909 target_alias
910 CC
911 CFLAGS
912 LDFLAGS
913 LIBS
914 CPPFLAGS
915 CPP
916 PKG_CONFIG
917 PKG_CONFIG_PATH
918 PKG_CONFIG_LIBDIR
919 KEYUTILS_CFLAGS
920 KEYUTILS_LIBS
921 OPENSSL_CFLAGS
922 OPENSSL_LIBS
923 NSS_CFLAGS
924 NSS_LIBS
925 PYTHON
926 PYTHON_VERSION
927 PKCS11_HELPER_CFLAGS
928 PKCS11_HELPER_LIBS
929 TSPI_CFLAGS
930 TSPI_LIBS
931 PAM_CFLAGS
932 PAM_LIBS
933 GTK_CFLAGS
934 GTK_LIBS'
935
936
937 # Initialize some variables set by options.
938 ac_init_help=
939 ac_init_version=false
940 ac_unrecognized_opts=
941 ac_unrecognized_sep=
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
944 cache_file=/dev/null
945 exec_prefix=NONE
946 no_create=
947 no_recursion=
948 prefix=NONE
949 program_prefix=NONE
950 program_suffix=NONE
951 program_transform_name=s,x,x,
952 silent=
953 site=
954 srcdir=
955 verbose=
956 x_includes=NONE
957 x_libraries=NONE
958
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir='${exec_prefix}/bin'
966 sbindir='${exec_prefix}/sbin'
967 libexecdir='${exec_prefix}/libexec'
968 datarootdir='${prefix}/share'
969 datadir='${datarootdir}'
970 sysconfdir='${prefix}/etc'
971 sharedstatedir='${prefix}/com'
972 localstatedir='${prefix}/var'
973 includedir='${prefix}/include'
974 oldincludedir='/usr/include'
975 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976 infodir='${datarootdir}/info'
977 htmldir='${docdir}'
978 dvidir='${docdir}'
979 pdfdir='${docdir}'
980 psdir='${docdir}'
981 libdir='${exec_prefix}/lib'
982 localedir='${datarootdir}/locale'
983 mandir='${datarootdir}/man'
984
985 ac_prev=
986 ac_dashdash=
987 for ac_option
988 do
989   # If the previous option needs an argument, assign it.
990   if test -n "$ac_prev"; then
991     eval $ac_prev=\$ac_option
992     ac_prev=
993     continue
994   fi
995
996   case $ac_option in
997   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998   *=)   ac_optarg= ;;
999   *)    ac_optarg=yes ;;
1000   esac
1001
1002   # Accept the important Cygnus configure options, so we can diagnose typos.
1003
1004   case $ac_dashdash$ac_option in
1005   --)
1006     ac_dashdash=yes ;;
1007
1008   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1009     ac_prev=bindir ;;
1010   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1011     bindir=$ac_optarg ;;
1012
1013   -build | --build | --buil | --bui | --bu)
1014     ac_prev=build_alias ;;
1015   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1016     build_alias=$ac_optarg ;;
1017
1018   -cache-file | --cache-file | --cache-fil | --cache-fi \
1019   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1020     ac_prev=cache_file ;;
1021   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1022   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1023     cache_file=$ac_optarg ;;
1024
1025   --config-cache | -C)
1026     cache_file=config.cache ;;
1027
1028   -datadir | --datadir | --datadi | --datad)
1029     ac_prev=datadir ;;
1030   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1031     datadir=$ac_optarg ;;
1032
1033   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1034   | --dataroo | --dataro | --datar)
1035     ac_prev=datarootdir ;;
1036   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1037   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1038     datarootdir=$ac_optarg ;;
1039
1040   -disable-* | --disable-*)
1041     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1042     # Reject names that are not valid shell variable names.
1043     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044       as_fn_error $? "invalid feature name: $ac_useropt"
1045     ac_useropt_orig=$ac_useropt
1046     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047     case $ac_user_opts in
1048       *"
1049 "enable_$ac_useropt"
1050 "*) ;;
1051       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1052          ac_unrecognized_sep=', ';;
1053     esac
1054     eval enable_$ac_useropt=no ;;
1055
1056   -docdir | --docdir | --docdi | --doc | --do)
1057     ac_prev=docdir ;;
1058   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059     docdir=$ac_optarg ;;
1060
1061   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062     ac_prev=dvidir ;;
1063   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064     dvidir=$ac_optarg ;;
1065
1066   -enable-* | --enable-*)
1067     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1068     # Reject names that are not valid shell variable names.
1069     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070       as_fn_error $? "invalid feature name: $ac_useropt"
1071     ac_useropt_orig=$ac_useropt
1072     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073     case $ac_user_opts in
1074       *"
1075 "enable_$ac_useropt"
1076 "*) ;;
1077       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1078          ac_unrecognized_sep=', ';;
1079     esac
1080     eval enable_$ac_useropt=\$ac_optarg ;;
1081
1082   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1083   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1084   | --exec | --exe | --ex)
1085     ac_prev=exec_prefix ;;
1086   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1087   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1088   | --exec=* | --exe=* | --ex=*)
1089     exec_prefix=$ac_optarg ;;
1090
1091   -gas | --gas | --ga | --g)
1092     # Obsolete; use --with-gas.
1093     with_gas=yes ;;
1094
1095   -help | --help | --hel | --he | -h)
1096     ac_init_help=long ;;
1097   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1098     ac_init_help=recursive ;;
1099   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1100     ac_init_help=short ;;
1101
1102   -host | --host | --hos | --ho)
1103     ac_prev=host_alias ;;
1104   -host=* | --host=* | --hos=* | --ho=*)
1105     host_alias=$ac_optarg ;;
1106
1107   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108     ac_prev=htmldir ;;
1109   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110   | --ht=*)
1111     htmldir=$ac_optarg ;;
1112
1113   -includedir | --includedir | --includedi | --included | --include \
1114   | --includ | --inclu | --incl | --inc)
1115     ac_prev=includedir ;;
1116   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1117   | --includ=* | --inclu=* | --incl=* | --inc=*)
1118     includedir=$ac_optarg ;;
1119
1120   -infodir | --infodir | --infodi | --infod | --info | --inf)
1121     ac_prev=infodir ;;
1122   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1123     infodir=$ac_optarg ;;
1124
1125   -libdir | --libdir | --libdi | --libd)
1126     ac_prev=libdir ;;
1127   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1128     libdir=$ac_optarg ;;
1129
1130   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1131   | --libexe | --libex | --libe)
1132     ac_prev=libexecdir ;;
1133   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1134   | --libexe=* | --libex=* | --libe=*)
1135     libexecdir=$ac_optarg ;;
1136
1137   -localedir | --localedir | --localedi | --localed | --locale)
1138     ac_prev=localedir ;;
1139   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1140     localedir=$ac_optarg ;;
1141
1142   -localstatedir | --localstatedir | --localstatedi | --localstated \
1143   | --localstate | --localstat | --localsta | --localst | --locals)
1144     ac_prev=localstatedir ;;
1145   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1146   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1147     localstatedir=$ac_optarg ;;
1148
1149   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150     ac_prev=mandir ;;
1151   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1152     mandir=$ac_optarg ;;
1153
1154   -nfp | --nfp | --nf)
1155     # Obsolete; use --without-fp.
1156     with_fp=no ;;
1157
1158   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1159   | --no-cr | --no-c | -n)
1160     no_create=yes ;;
1161
1162   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164     no_recursion=yes ;;
1165
1166   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1167   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1168   | --oldin | --oldi | --old | --ol | --o)
1169     ac_prev=oldincludedir ;;
1170   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1171   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1172   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1173     oldincludedir=$ac_optarg ;;
1174
1175   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176     ac_prev=prefix ;;
1177   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1178     prefix=$ac_optarg ;;
1179
1180   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1181   | --program-pre | --program-pr | --program-p)
1182     ac_prev=program_prefix ;;
1183   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1184   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1185     program_prefix=$ac_optarg ;;
1186
1187   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1188   | --program-suf | --program-su | --program-s)
1189     ac_prev=program_suffix ;;
1190   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1191   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1192     program_suffix=$ac_optarg ;;
1193
1194   -program-transform-name | --program-transform-name \
1195   | --program-transform-nam | --program-transform-na \
1196   | --program-transform-n | --program-transform- \
1197   | --program-transform | --program-transfor \
1198   | --program-transfo | --program-transf \
1199   | --program-trans | --program-tran \
1200   | --progr-tra | --program-tr | --program-t)
1201     ac_prev=program_transform_name ;;
1202   -program-transform-name=* | --program-transform-name=* \
1203   | --program-transform-nam=* | --program-transform-na=* \
1204   | --program-transform-n=* | --program-transform-=* \
1205   | --program-transform=* | --program-transfor=* \
1206   | --program-transfo=* | --program-transf=* \
1207   | --program-trans=* | --program-tran=* \
1208   | --progr-tra=* | --program-tr=* | --program-t=*)
1209     program_transform_name=$ac_optarg ;;
1210
1211   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212     ac_prev=pdfdir ;;
1213   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1214     pdfdir=$ac_optarg ;;
1215
1216   -psdir | --psdir | --psdi | --psd | --ps)
1217     ac_prev=psdir ;;
1218   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1219     psdir=$ac_optarg ;;
1220
1221   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222   | -silent | --silent | --silen | --sile | --sil)
1223     silent=yes ;;
1224
1225   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1226     ac_prev=sbindir ;;
1227   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1228   | --sbi=* | --sb=*)
1229     sbindir=$ac_optarg ;;
1230
1231   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1232   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1233   | --sharedst | --shareds | --shared | --share | --shar \
1234   | --sha | --sh)
1235     ac_prev=sharedstatedir ;;
1236   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1237   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1238   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1239   | --sha=* | --sh=*)
1240     sharedstatedir=$ac_optarg ;;
1241
1242   -site | --site | --sit)
1243     ac_prev=site ;;
1244   -site=* | --site=* | --sit=*)
1245     site=$ac_optarg ;;
1246
1247   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1248     ac_prev=srcdir ;;
1249   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1250     srcdir=$ac_optarg ;;
1251
1252   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1253   | --syscon | --sysco | --sysc | --sys | --sy)
1254     ac_prev=sysconfdir ;;
1255   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1256   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1257     sysconfdir=$ac_optarg ;;
1258
1259   -target | --target | --targe | --targ | --tar | --ta | --t)
1260     ac_prev=target_alias ;;
1261   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1262     target_alias=$ac_optarg ;;
1263
1264   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1265     verbose=yes ;;
1266
1267   -version | --version | --versio | --versi | --vers | -V)
1268     ac_init_version=: ;;
1269
1270   -with-* | --with-*)
1271     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1272     # Reject names that are not valid shell variable names.
1273     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274       as_fn_error $? "invalid package name: $ac_useropt"
1275     ac_useropt_orig=$ac_useropt
1276     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277     case $ac_user_opts in
1278       *"
1279 "with_$ac_useropt"
1280 "*) ;;
1281       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1282          ac_unrecognized_sep=', ';;
1283     esac
1284     eval with_$ac_useropt=\$ac_optarg ;;
1285
1286   -without-* | --without-*)
1287     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288     # Reject names that are not valid shell variable names.
1289     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290       as_fn_error $? "invalid package name: $ac_useropt"
1291     ac_useropt_orig=$ac_useropt
1292     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1293     case $ac_user_opts in
1294       *"
1295 "with_$ac_useropt"
1296 "*) ;;
1297       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1298          ac_unrecognized_sep=', ';;
1299     esac
1300     eval with_$ac_useropt=no ;;
1301
1302   --x)
1303     # Obsolete; use --with-x.
1304     with_x=yes ;;
1305
1306   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1307   | --x-incl | --x-inc | --x-in | --x-i)
1308     ac_prev=x_includes ;;
1309   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1310   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1311     x_includes=$ac_optarg ;;
1312
1313   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1314   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1315     ac_prev=x_libraries ;;
1316   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1317   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1318     x_libraries=$ac_optarg ;;
1319
1320   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1321 Try \`$0 --help' for more information"
1322     ;;
1323
1324   *=*)
1325     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1326     # Reject names that are not valid shell variable names.
1327     case $ac_envvar in #(
1328       '' | [0-9]* | *[!_$as_cr_alnum]* )
1329       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1330     esac
1331     eval $ac_envvar=\$ac_optarg
1332     export $ac_envvar ;;
1333
1334   *)
1335     # FIXME: should be removed in autoconf 3.0.
1336     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1337     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1338       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1339     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1340     ;;
1341
1342   esac
1343 done
1344
1345 if test -n "$ac_prev"; then
1346   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1347   as_fn_error $? "missing argument to $ac_option"
1348 fi
1349
1350 if test -n "$ac_unrecognized_opts"; then
1351   case $enable_option_checking in
1352     no) ;;
1353     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1354     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1355   esac
1356 fi
1357
1358 # Check all directory arguments for consistency.
1359 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1360                 datadir sysconfdir sharedstatedir localstatedir includedir \
1361                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1362                 libdir localedir mandir
1363 do
1364   eval ac_val=\$$ac_var
1365   # Remove trailing slashes.
1366   case $ac_val in
1367     */ )
1368       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1369       eval $ac_var=\$ac_val;;
1370   esac
1371   # Be sure to have absolute directory names.
1372   case $ac_val in
1373     [\\/$]* | ?:[\\/]* )  continue;;
1374     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1375   esac
1376   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1377 done
1378
1379 # There might be people who depend on the old broken behavior: `$host'
1380 # used to hold the argument of --host etc.
1381 # FIXME: To remove some day.
1382 build=$build_alias
1383 host=$host_alias
1384 target=$target_alias
1385
1386 # FIXME: To remove some day.
1387 if test "x$host_alias" != x; then
1388   if test "x$build_alias" = x; then
1389     cross_compiling=maybe
1390   elif test "x$build_alias" != "x$host_alias"; then
1391     cross_compiling=yes
1392   fi
1393 fi
1394
1395 ac_tool_prefix=
1396 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1397
1398 test "$silent" = yes && exec 6>/dev/null
1399
1400
1401 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1402 ac_ls_di=`ls -di .` &&
1403 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1404   as_fn_error $? "working directory cannot be determined"
1405 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1406   as_fn_error $? "pwd does not report name of working directory"
1407
1408
1409 # Find the source files, if location was not specified.
1410 if test -z "$srcdir"; then
1411   ac_srcdir_defaulted=yes
1412   # Try the directory containing this script, then the parent directory.
1413   ac_confdir=`$as_dirname -- "$as_myself" ||
1414 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1415          X"$as_myself" : 'X\(//\)[^/]' \| \
1416          X"$as_myself" : 'X\(//\)$' \| \
1417          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1418 $as_echo X"$as_myself" |
1419     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420             s//\1/
1421             q
1422           }
1423           /^X\(\/\/\)[^/].*/{
1424             s//\1/
1425             q
1426           }
1427           /^X\(\/\/\)$/{
1428             s//\1/
1429             q
1430           }
1431           /^X\(\/\).*/{
1432             s//\1/
1433             q
1434           }
1435           s/.*/./; q'`
1436   srcdir=$ac_confdir
1437   if test ! -r "$srcdir/$ac_unique_file"; then
1438     srcdir=..
1439   fi
1440 else
1441   ac_srcdir_defaulted=no
1442 fi
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1445   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1446 fi
1447 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1448 ac_abs_confdir=`(
1449         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1450         pwd)`
1451 # When building in place, set srcdir=.
1452 if test "$ac_abs_confdir" = "$ac_pwd"; then
1453   srcdir=.
1454 fi
1455 # Remove unnecessary trailing slashes from srcdir.
1456 # Double slashes in file names in object file debugging info
1457 # mess up M-x gdb in Emacs.
1458 case $srcdir in
1459 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1460 esac
1461 for ac_var in $ac_precious_vars; do
1462   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1463   eval ac_env_${ac_var}_value=\$${ac_var}
1464   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1465   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1466 done
1467
1468 #
1469 # Report the --help message.
1470 #
1471 if test "$ac_init_help" = "long"; then
1472   # Omit some internal or obsolete options to make the list less imposing.
1473   # This message is too long to be a string in the A/UX 3.1 sh.
1474   cat <<_ACEOF
1475 \`configure' configures ecryptfs-utils 104 to adapt to many kinds of systems.
1476
1477 Usage: $0 [OPTION]... [VAR=VALUE]...
1478
1479 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1480 VAR=VALUE.  See below for descriptions of some of the useful variables.
1481
1482 Defaults for the options are specified in brackets.
1483
1484 Configuration:
1485   -h, --help              display this help and exit
1486       --help=short        display options specific to this package
1487       --help=recursive    display the short help of all the included packages
1488   -V, --version           display version information and exit
1489   -q, --quiet, --silent   do not print \`checking ...' messages
1490       --cache-file=FILE   cache test results in FILE [disabled]
1491   -C, --config-cache      alias for \`--cache-file=config.cache'
1492   -n, --no-create         do not create output files
1493       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1494
1495 Installation directories:
1496   --prefix=PREFIX         install architecture-independent files in PREFIX
1497                           [$ac_default_prefix]
1498   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1499                           [PREFIX]
1500
1501 By default, \`make install' will install all the files in
1502 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1503 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1504 for instance \`--prefix=\$HOME'.
1505
1506 For better control, use the options below.
1507
1508 Fine tuning of the installation directories:
1509   --bindir=DIR            user executables [EPREFIX/bin]
1510   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1511   --libexecdir=DIR        program executables [EPREFIX/libexec]
1512   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1513   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1514   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1515   --libdir=DIR            object code libraries [EPREFIX/lib]
1516   --includedir=DIR        C header files [PREFIX/include]
1517   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1518   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1519   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1520   --infodir=DIR           info documentation [DATAROOTDIR/info]
1521   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1522   --mandir=DIR            man documentation [DATAROOTDIR/man]
1523   --docdir=DIR            documentation root [DATAROOTDIR/doc/ecryptfs-utils]
1524   --htmldir=DIR           html documentation [DOCDIR]
1525   --dvidir=DIR            dvi documentation [DOCDIR]
1526   --pdfdir=DIR            pdf documentation [DOCDIR]
1527   --psdir=DIR             ps documentation [DOCDIR]
1528 _ACEOF
1529
1530   cat <<\_ACEOF
1531
1532 Program names:
1533   --program-prefix=PREFIX            prepend PREFIX to installed program names
1534   --program-suffix=SUFFIX            append SUFFIX to installed program names
1535   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1536
1537 System types:
1538   --build=BUILD     configure for building on BUILD [guessed]
1539   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1540   --target=TARGET   configure for building compilers for TARGET [HOST]
1541 _ACEOF
1542 fi
1543
1544 if test -n "$ac_init_help"; then
1545   case $ac_init_help in
1546      short | recursive ) echo "Configuration of ecryptfs-utils 104:";;
1547    esac
1548   cat <<\_ACEOF
1549
1550 Optional Features:
1551   --disable-option-checking  ignore unrecognized --enable/--with options
1552   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1553   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1554   --enable-silent-rules   less verbose build output (undo: "make V=1")
1555   --disable-silent-rules  verbose build output (undo: "make V=0")
1556   --enable-static[=PKGS]  build static libraries [default=no]
1557   --disable-nss           Build against gcrypt rather than NSS
1558   --disable-pywrap        Disable build of libecryptfs Python wrappers
1559   --disable-openssl       Disable build of OpenSSL key module
1560   --enable-pkcs11-helper  Build pkcs11-helper key module
1561   --enable-tspi           Build TrouSerS key module
1562   --enable-gpg            Build GnuPG key module
1563   --disable-pam           Disable build of PAM module
1564   --enable-gui            Enable building of GUI components
1565   --enable-docs           Enable installing document
1566   --enable-docs-gen       Enable generating documents
1567   --enable-tests          Enable system specific tests
1568   --enable-mudflap        Build with -fmudflap gcc option
1569   --enable-dependency-tracking
1570                           do not reject slow dependency extractors
1571   --disable-dependency-tracking
1572                           speeds up one-time build
1573   --enable-shared[=PKGS]  build shared libraries [default=yes]
1574   --enable-fast-install[=PKGS]
1575                           optimize for fast installation [default=yes]
1576   --disable-libtool-lock  avoid locking (might break parallel builds)
1577   --disable-largefile     omit support for large files
1578   --disable-nls           do not use Native Language Support
1579
1580 Optional Packages:
1581   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1582   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1583   --with-gpgme-prefix=PATH
1584                           Specify the directory where gpgme install, default
1585                           /usr
1586   --with-pamdir=PATH      Specify the directory where PAM modules are stored
1587   --with-ecryptfskeymoddir=PATH
1588                           Specify the directory where key modules are stored
1589   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1590                           both]
1591   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1592   --with-sysroot=DIR Search for dependent libraries within DIR
1593                         (or the compiler's sysroot if not specified).
1594
1595 Some influential environment variables:
1596   CC          C compiler command
1597   CFLAGS      C compiler flags
1598   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1599               nonstandard directory <lib dir>
1600   LIBS        libraries to pass to the linker, e.g. -l<library>
1601   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1602               you have headers in a nonstandard directory <include dir>
1603   CPP         C preprocessor
1604   PKG_CONFIG  path to pkg-config utility
1605   PKG_CONFIG_PATH
1606               directories to add to pkg-config's search path
1607   PKG_CONFIG_LIBDIR
1608               path overriding pkg-config's built-in search path
1609   KEYUTILS_CFLAGS
1610               C compiler flags for keyutils
1611   KEYUTILS_LIBS
1612               linker flags for keyutils
1613   OPENSSL_CFLAGS
1614               C compiler flags for OPENSSL, overriding pkg-config
1615   OPENSSL_LIBS
1616               linker flags for OPENSSL, overriding pkg-config
1617   NSS_CFLAGS  C compiler flags for NSS, overriding pkg-config
1618   NSS_LIBS    linker flags for NSS, overriding pkg-config
1619   PYTHON      the Python interpreter
1620   PYTHON_VERSION
1621               The installed Python version to use, for example '2.3'. This
1622               string will be appended to the Python interpreter canonical
1623               name.
1624   PKCS11_HELPER_CFLAGS
1625               C compiler flags for PKCS11_HELPER, overriding pkg-config
1626   PKCS11_HELPER_LIBS
1627               linker flags for PKCS11_HELPER, overriding pkg-config
1628   TSPI_CFLAGS C compiler flags for tspi
1629   TSPI_LIBS   linker flags for tspi
1630   PAM_CFLAGS  C compiler flags for pam
1631   PAM_LIBS    linker flags for pam
1632
1633 Use these variables to override the choices made by `configure' or to help
1634 it to find libraries and programs with nonstandard names/locations.
1635
1636 Report bugs to the package provider.
1637 _ACEOF
1638 ac_status=$?
1639 fi
1640
1641 if test "$ac_init_help" = "recursive"; then
1642   # If there are subdirs, report their specific --help.
1643   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1644     test -d "$ac_dir" ||
1645       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1646       continue
1647     ac_builddir=.
1648
1649 case "$ac_dir" in
1650 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 *)
1652   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1653   # A ".." for each directory in $ac_dir_suffix.
1654   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1655   case $ac_top_builddir_sub in
1656   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1658   esac ;;
1659 esac
1660 ac_abs_top_builddir=$ac_pwd
1661 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1662 # for backward compatibility:
1663 ac_top_builddir=$ac_top_build_prefix
1664
1665 case $srcdir in
1666   .)  # We are building in place.
1667     ac_srcdir=.
1668     ac_top_srcdir=$ac_top_builddir_sub
1669     ac_abs_top_srcdir=$ac_pwd ;;
1670   [\\/]* | ?:[\\/]* )  # Absolute name.
1671     ac_srcdir=$srcdir$ac_dir_suffix;
1672     ac_top_srcdir=$srcdir
1673     ac_abs_top_srcdir=$srcdir ;;
1674   *) # Relative name.
1675     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1676     ac_top_srcdir=$ac_top_build_prefix$srcdir
1677     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1678 esac
1679 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1680
1681     cd "$ac_dir" || { ac_status=$?; continue; }
1682     # Check for guested configure.
1683     if test -f "$ac_srcdir/configure.gnu"; then
1684       echo &&
1685       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1686     elif test -f "$ac_srcdir/configure"; then
1687       echo &&
1688       $SHELL "$ac_srcdir/configure" --help=recursive
1689     else
1690       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1691     fi || ac_status=$?
1692     cd "$ac_pwd" || { ac_status=$?; break; }
1693   done
1694 fi
1695
1696 test -n "$ac_init_help" && exit $ac_status
1697 if $ac_init_version; then
1698   cat <<\_ACEOF
1699 ecryptfs-utils configure 104
1700 generated by GNU Autoconf 2.69
1701
1702 Copyright (C) 2012 Free Software Foundation, Inc.
1703 This configure script is free software; the Free Software Foundation
1704 gives unlimited permission to copy, distribute and modify it.
1705 _ACEOF
1706   exit
1707 fi
1708
1709 ## ------------------------ ##
1710 ## Autoconf initialization. ##
1711 ## ------------------------ ##
1712
1713 # ac_fn_c_try_compile LINENO
1714 # --------------------------
1715 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1716 ac_fn_c_try_compile ()
1717 {
1718   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719   rm -f conftest.$ac_objext
1720   if { { ac_try="$ac_compile"
1721 case "(($ac_try" in
1722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723   *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727   (eval "$ac_compile") 2>conftest.err
1728   ac_status=$?
1729   if test -s conftest.err; then
1730     grep -v '^ *+' conftest.err >conftest.er1
1731     cat conftest.er1 >&5
1732     mv -f conftest.er1 conftest.err
1733   fi
1734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735   test $ac_status = 0; } && {
1736          test -z "$ac_c_werror_flag" ||
1737          test ! -s conftest.err
1738        } && test -s conftest.$ac_objext; then :
1739   ac_retval=0
1740 else
1741   $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1743
1744         ac_retval=1
1745 fi
1746   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747   as_fn_set_status $ac_retval
1748
1749 } # ac_fn_c_try_compile
1750
1751 # ac_fn_c_try_cpp LINENO
1752 # ----------------------
1753 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1754 ac_fn_c_try_cpp ()
1755 {
1756   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757   if { { ac_try="$ac_cpp conftest.$ac_ext"
1758 case "(($ac_try" in
1759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760   *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1765   ac_status=$?
1766   if test -s conftest.err; then
1767     grep -v '^ *+' conftest.err >conftest.er1
1768     cat conftest.er1 >&5
1769     mv -f conftest.er1 conftest.err
1770   fi
1771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772   test $ac_status = 0; } > conftest.i && {
1773          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1774          test ! -s conftest.err
1775        }; then :
1776   ac_retval=0
1777 else
1778   $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1780
1781     ac_retval=1
1782 fi
1783   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784   as_fn_set_status $ac_retval
1785
1786 } # ac_fn_c_try_cpp
1787
1788 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1789 # -------------------------------------------------------
1790 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1791 # the include files in INCLUDES and setting the cache variable VAR
1792 # accordingly.
1793 ac_fn_c_check_header_mongrel ()
1794 {
1795   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796   if eval \${$3+:} false; then :
1797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval \${$3+:} false; then :
1800   $as_echo_n "(cached) " >&6
1801 fi
1802 eval ac_res=\$$3
1803                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1805 else
1806   # Is the header compilable?
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1808 $as_echo_n "checking $2 usability... " >&6; }
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h.  */
1811 $4
1812 #include <$2>
1813 _ACEOF
1814 if ac_fn_c_try_compile "$LINENO"; then :
1815   ac_header_compiler=yes
1816 else
1817   ac_header_compiler=no
1818 fi
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1821 $as_echo "$ac_header_compiler" >&6; }
1822
1823 # Is the header present?
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1825 $as_echo_n "checking $2 presence... " >&6; }
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h.  */
1828 #include <$2>
1829 _ACEOF
1830 if ac_fn_c_try_cpp "$LINENO"; then :
1831   ac_header_preproc=yes
1832 else
1833   ac_header_preproc=no
1834 fi
1835 rm -f conftest.err conftest.i conftest.$ac_ext
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1837 $as_echo "$ac_header_preproc" >&6; }
1838
1839 # So?  What about this header?
1840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1841   yes:no: )
1842     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1843 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1844     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1846     ;;
1847   no:yes:* )
1848     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1849 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1850     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1851 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1852     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1853 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1854     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1855 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1856     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858     ;;
1859 esac
1860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval \${$3+:} false; then :
1863   $as_echo_n "(cached) " >&6
1864 else
1865   eval "$3=\$ac_header_compiler"
1866 fi
1867 eval ac_res=\$$3
1868                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870 fi
1871   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872
1873 } # ac_fn_c_check_header_mongrel
1874
1875 # ac_fn_c_try_run LINENO
1876 # ----------------------
1877 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1878 # that executables *can* be run.
1879 ac_fn_c_try_run ()
1880 {
1881   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882   if { { ac_try="$ac_link"
1883 case "(($ac_try" in
1884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885   *) ac_try_echo=$ac_try;;
1886 esac
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889   (eval "$ac_link") 2>&5
1890   ac_status=$?
1891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1893   { { case "(($ac_try" in
1894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895   *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899   (eval "$ac_try") 2>&5
1900   ac_status=$?
1901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902   test $ac_status = 0; }; }; then :
1903   ac_retval=0
1904 else
1905   $as_echo "$as_me: program exited with status $ac_status" >&5
1906        $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1908
1909        ac_retval=$ac_status
1910 fi
1911   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913   as_fn_set_status $ac_retval
1914
1915 } # ac_fn_c_try_run
1916
1917 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1918 # -------------------------------------------------------
1919 # Tests whether HEADER exists and can be compiled using the include files in
1920 # INCLUDES, setting the cache variable VAR accordingly.
1921 ac_fn_c_check_header_compile ()
1922 {
1923   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if eval \${$3+:} false; then :
1927   $as_echo_n "(cached) " >&6
1928 else
1929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h.  */
1931 $4
1932 #include <$2>
1933 _ACEOF
1934 if ac_fn_c_try_compile "$LINENO"; then :
1935   eval "$3=yes"
1936 else
1937   eval "$3=no"
1938 fi
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 fi
1941 eval ac_res=\$$3
1942                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1944   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945
1946 } # ac_fn_c_check_header_compile
1947
1948 # ac_fn_c_try_link LINENO
1949 # -----------------------
1950 # Try to link conftest.$ac_ext, and return whether this succeeded.
1951 ac_fn_c_try_link ()
1952 {
1953   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954   rm -f conftest.$ac_objext conftest$ac_exeext
1955   if { { ac_try="$ac_link"
1956 case "(($ac_try" in
1957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958   *) ac_try_echo=$ac_try;;
1959 esac
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962   (eval "$ac_link") 2>conftest.err
1963   ac_status=$?
1964   if test -s conftest.err; then
1965     grep -v '^ *+' conftest.err >conftest.er1
1966     cat conftest.er1 >&5
1967     mv -f conftest.er1 conftest.err
1968   fi
1969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970   test $ac_status = 0; } && {
1971          test -z "$ac_c_werror_flag" ||
1972          test ! -s conftest.err
1973        } && test -s conftest$ac_exeext && {
1974          test "$cross_compiling" = yes ||
1975          test -x conftest$ac_exeext
1976        }; then :
1977   ac_retval=0
1978 else
1979   $as_echo "$as_me: failed program was:" >&5
1980 sed 's/^/| /' conftest.$ac_ext >&5
1981
1982         ac_retval=1
1983 fi
1984   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1985   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1986   # interfere with the next link command; also delete a directory that is
1987   # left behind by Apple's compiler.  We do this before executing the actions.
1988   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1989   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990   as_fn_set_status $ac_retval
1991
1992 } # ac_fn_c_try_link
1993
1994 # ac_fn_c_check_func LINENO FUNC VAR
1995 # ----------------------------------
1996 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1997 ac_fn_c_check_func ()
1998 {
1999   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001 $as_echo_n "checking for $2... " >&6; }
2002 if eval \${$3+:} false; then :
2003   $as_echo_n "(cached) " >&6
2004 else
2005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h.  */
2007 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2009 #define $2 innocuous_$2
2010
2011 /* System header to define __stub macros and hopefully few prototypes,
2012     which can conflict with char $2 (); below.
2013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2014     <limits.h> exists even on freestanding compilers.  */
2015
2016 #ifdef __STDC__
2017 # include <limits.h>
2018 #else
2019 # include <assert.h>
2020 #endif
2021
2022 #undef $2
2023
2024 /* Override any GCC internal prototype to avoid an error.
2025    Use char because int might match the return type of a GCC
2026    builtin and then its argument prototype would still apply.  */
2027 #ifdef __cplusplus
2028 extern "C"
2029 #endif
2030 char $2 ();
2031 /* The GNU C library defines this for functions which it implements
2032     to always fail with ENOSYS.  Some functions are actually named
2033     something starting with __ and the normal name is an alias.  */
2034 #if defined __stub_$2 || defined __stub___$2
2035 choke me
2036 #endif
2037
2038 int
2039 main ()
2040 {
2041 return $2 ();
2042   ;
2043   return 0;
2044 }
2045 _ACEOF
2046 if ac_fn_c_try_link "$LINENO"; then :
2047   eval "$3=yes"
2048 else
2049   eval "$3=no"
2050 fi
2051 rm -f core conftest.err conftest.$ac_objext \
2052     conftest$ac_exeext conftest.$ac_ext
2053 fi
2054 eval ac_res=\$$3
2055                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2057   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058
2059 } # ac_fn_c_check_func
2060 cat >config.log <<_ACEOF
2061 This file contains any messages produced by compilers while
2062 running configure, to aid debugging if configure makes a mistake.
2063
2064 It was created by ecryptfs-utils $as_me 104, which was
2065 generated by GNU Autoconf 2.69.  Invocation command line was
2066
2067   $ $0 $@
2068
2069 _ACEOF
2070 exec 5>>config.log
2071 {
2072 cat <<_ASUNAME
2073 ## --------- ##
2074 ## Platform. ##
2075 ## --------- ##
2076
2077 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2078 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2079 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2080 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2081 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2082
2083 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2084 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2085
2086 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2087 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2088 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2089 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2090 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2091 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2092 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2093
2094 _ASUNAME
2095
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 for as_dir in $PATH
2098 do
2099   IFS=$as_save_IFS
2100   test -z "$as_dir" && as_dir=.
2101     $as_echo "PATH: $as_dir"
2102   done
2103 IFS=$as_save_IFS
2104
2105 } >&5
2106
2107 cat >&5 <<_ACEOF
2108
2109
2110 ## ----------- ##
2111 ## Core tests. ##
2112 ## ----------- ##
2113
2114 _ACEOF
2115
2116
2117 # Keep a trace of the command line.
2118 # Strip out --no-create and --no-recursion so they do not pile up.
2119 # Strip out --silent because we don't want to record it for future runs.
2120 # Also quote any args containing shell meta-characters.
2121 # Make two passes to allow for proper duplicate-argument suppression.
2122 ac_configure_args=
2123 ac_configure_args0=
2124 ac_configure_args1=
2125 ac_must_keep_next=false
2126 for ac_pass in 1 2
2127 do
2128   for ac_arg
2129   do
2130     case $ac_arg in
2131     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2132     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2133     | -silent | --silent | --silen | --sile | --sil)
2134       continue ;;
2135     *\'*)
2136       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2137     esac
2138     case $ac_pass in
2139     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2140     2)
2141       as_fn_append ac_configure_args1 " '$ac_arg'"
2142       if test $ac_must_keep_next = true; then
2143         ac_must_keep_next=false # Got value, back to normal.
2144       else
2145         case $ac_arg in
2146           *=* | --config-cache | -C | -disable-* | --disable-* \
2147           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2148           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2149           | -with-* | --with-* | -without-* | --without-* | --x)
2150             case "$ac_configure_args0 " in
2151               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2152             esac
2153             ;;
2154           -* ) ac_must_keep_next=true ;;
2155         esac
2156       fi
2157       as_fn_append ac_configure_args " '$ac_arg'"
2158       ;;
2159     esac
2160   done
2161 done
2162 { ac_configure_args0=; unset ac_configure_args0;}
2163 { ac_configure_args1=; unset ac_configure_args1;}
2164
2165 # When interrupted or exit'd, cleanup temporary files, and complete
2166 # config.log.  We remove comments because anyway the quotes in there
2167 # would cause problems or look ugly.
2168 # WARNING: Use '\'' to represent an apostrophe within the trap.
2169 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2170 trap 'exit_status=$?
2171   # Save into config.log some information that might help in debugging.
2172   {
2173     echo
2174
2175     $as_echo "## ---------------- ##
2176 ## Cache variables. ##
2177 ## ---------------- ##"
2178     echo
2179     # The following way of writing the cache mishandles newlines in values,
2180 (
2181   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2182     eval ac_val=\$$ac_var
2183     case $ac_val in #(
2184     *${as_nl}*)
2185       case $ac_var in #(
2186       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2187 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2188       esac
2189       case $ac_var in #(
2190       _ | IFS | as_nl) ;; #(
2191       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2192       *) { eval $ac_var=; unset $ac_var;} ;;
2193       esac ;;
2194     esac
2195   done
2196   (set) 2>&1 |
2197     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2198     *${as_nl}ac_space=\ *)
2199       sed -n \
2200         "s/'\''/'\''\\\\'\'''\''/g;
2201           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2202       ;; #(
2203     *)
2204       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2205       ;;
2206     esac |
2207     sort
2208 )
2209     echo
2210
2211     $as_echo "## ----------------- ##
2212 ## Output variables. ##
2213 ## ----------------- ##"
2214     echo
2215     for ac_var in $ac_subst_vars
2216     do
2217       eval ac_val=\$$ac_var
2218       case $ac_val in
2219       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2220       esac
2221       $as_echo "$ac_var='\''$ac_val'\''"
2222     done | sort
2223     echo
2224
2225     if test -n "$ac_subst_files"; then
2226       $as_echo "## ------------------- ##
2227 ## File substitutions. ##
2228 ## ------------------- ##"
2229       echo
2230       for ac_var in $ac_subst_files
2231       do
2232         eval ac_val=\$$ac_var
2233         case $ac_val in
2234         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2235         esac
2236         $as_echo "$ac_var='\''$ac_val'\''"
2237       done | sort
2238       echo
2239     fi
2240
2241     if test -s confdefs.h; then
2242       $as_echo "## ----------- ##
2243 ## confdefs.h. ##
2244 ## ----------- ##"
2245       echo
2246       cat confdefs.h
2247       echo
2248     fi
2249     test "$ac_signal" != 0 &&
2250       $as_echo "$as_me: caught signal $ac_signal"
2251     $as_echo "$as_me: exit $exit_status"
2252   } >&5
2253   rm -f core *.core core.conftest.* &&
2254     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2255     exit $exit_status
2256 ' 0
2257 for ac_signal in 1 2 13 15; do
2258   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2259 done
2260 ac_signal=0
2261
2262 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2263 rm -f -r conftest* confdefs.h
2264
2265 $as_echo "/* confdefs.h */" > confdefs.h
2266
2267 # Predefined preprocessor variables.
2268
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_NAME "$PACKAGE_NAME"
2271 _ACEOF
2272
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2275 _ACEOF
2276
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2279 _ACEOF
2280
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE_STRING "$PACKAGE_STRING"
2283 _ACEOF
2284
2285 cat >>confdefs.h <<_ACEOF
2286 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2287 _ACEOF
2288
2289 cat >>confdefs.h <<_ACEOF
2290 #define PACKAGE_URL "$PACKAGE_URL"
2291 _ACEOF
2292
2293
2294 # Let the site file select an alternate cache file if it wants to.
2295 # Prefer an explicitly selected file to automatically selected ones.
2296 ac_site_file1=NONE
2297 ac_site_file2=NONE
2298 if test -n "$CONFIG_SITE"; then
2299   # We do not want a PATH search for config.site.
2300   case $CONFIG_SITE in #((
2301     -*)  ac_site_file1=./$CONFIG_SITE;;
2302     */*) ac_site_file1=$CONFIG_SITE;;
2303     *)   ac_site_file1=./$CONFIG_SITE;;
2304   esac
2305 elif test "x$prefix" != xNONE; then
2306   ac_site_file1=$prefix/share/config.site
2307   ac_site_file2=$prefix/etc/config.site
2308 else
2309   ac_site_file1=$ac_default_prefix/share/config.site
2310   ac_site_file2=$ac_default_prefix/etc/config.site
2311 fi
2312 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2313 do
2314   test "x$ac_site_file" = xNONE && continue
2315   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2316     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2317 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2318     sed 's/^/| /' "$ac_site_file" >&5
2319     . "$ac_site_file" \
2320       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2322 as_fn_error $? "failed to load site script $ac_site_file
2323 See \`config.log' for more details" "$LINENO" 5; }
2324   fi
2325 done
2326
2327 if test -r "$cache_file"; then
2328   # Some versions of bash will fail to source /dev/null (special files
2329   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2330   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2331     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2332 $as_echo "$as_me: loading cache $cache_file" >&6;}
2333     case $cache_file in
2334       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2335       *)                      . "./$cache_file";;
2336     esac
2337   fi
2338 else
2339   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2340 $as_echo "$as_me: creating cache $cache_file" >&6;}
2341   >$cache_file
2342 fi
2343
2344 # Check that the precious variables saved in the cache have kept the same
2345 # value.
2346 ac_cache_corrupted=false
2347 for ac_var in $ac_precious_vars; do
2348   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2349   eval ac_new_set=\$ac_env_${ac_var}_set
2350   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2351   eval ac_new_val=\$ac_env_${ac_var}_value
2352   case $ac_old_set,$ac_new_set in
2353     set,)
2354       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2355 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2356       ac_cache_corrupted=: ;;
2357     ,set)
2358       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2359 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2360       ac_cache_corrupted=: ;;
2361     ,);;
2362     *)
2363       if test "x$ac_old_val" != "x$ac_new_val"; then
2364         # differences in whitespace do not lead to failure.
2365         ac_old_val_w=`echo x $ac_old_val`
2366         ac_new_val_w=`echo x $ac_new_val`
2367         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2368           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2369 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2370           ac_cache_corrupted=:
2371         else
2372           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2373 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2374           eval $ac_var=\$ac_old_val
2375         fi
2376         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2377 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2378         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2379 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2380       fi;;
2381   esac
2382   # Pass precious variables to config.status.
2383   if test "$ac_new_set" = set; then
2384     case $ac_new_val in
2385     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2386     *) ac_arg=$ac_var=$ac_new_val ;;
2387     esac
2388     case " $ac_configure_args " in
2389       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2390       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2391     esac
2392   fi
2393 done
2394 if $ac_cache_corrupted; then
2395   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2397   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2398 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2399   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2400 fi
2401 ## -------------------- ##
2402 ## Main body of script. ##
2403 ## -------------------- ##
2404
2405 ac_ext=c
2406 ac_cpp='$CPP $CPPFLAGS'
2407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2410
2411
2412 ac_aux_dir=
2413 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2414   if test -f "$ac_dir/install-sh"; then
2415     ac_aux_dir=$ac_dir
2416     ac_install_sh="$ac_aux_dir/install-sh -c"
2417     break
2418   elif test -f "$ac_dir/install.sh"; then
2419     ac_aux_dir=$ac_dir
2420     ac_install_sh="$ac_aux_dir/install.sh -c"
2421     break
2422   elif test -f "$ac_dir/shtool"; then
2423     ac_aux_dir=$ac_dir
2424     ac_install_sh="$ac_aux_dir/shtool install -c"
2425     break
2426   fi
2427 done
2428 if test -z "$ac_aux_dir"; then
2429   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2430 fi
2431
2432 # These three variables are undocumented and unsupported,
2433 # and are intended to be withdrawn in a future Autoconf release.
2434 # They can cause serious problems if a builder's source tree is in a directory
2435 # whose full name contains unusual characters.
2436 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2437 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2438 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2439
2440
2441 # Make sure we can run config.sub.
2442 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2443   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2444
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2446 $as_echo_n "checking build system type... " >&6; }
2447 if ${ac_cv_build+:} false; then :
2448   $as_echo_n "(cached) " >&6
2449 else
2450   ac_build_alias=$build_alias
2451 test "x$ac_build_alias" = x &&
2452   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2453 test "x$ac_build_alias" = x &&
2454   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2455 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2456   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2457
2458 fi
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2460 $as_echo "$ac_cv_build" >&6; }
2461 case $ac_cv_build in
2462 *-*-*) ;;
2463 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2464 esac
2465 build=$ac_cv_build
2466 ac_save_IFS=$IFS; IFS='-'
2467 set x $ac_cv_build
2468 shift
2469 build_cpu=$1
2470 build_vendor=$2
2471 shift; shift
2472 # Remember, the first character of IFS is used to create $*,
2473 # except with old shells:
2474 build_os=$*
2475 IFS=$ac_save_IFS
2476 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2477
2478
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2480 $as_echo_n "checking host system type... " >&6; }
2481 if ${ac_cv_host+:} false; then :
2482   $as_echo_n "(cached) " >&6
2483 else
2484   if test "x$host_alias" = x; then
2485   ac_cv_host=$ac_cv_build
2486 else
2487   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2488     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2489 fi
2490
2491 fi
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2493 $as_echo "$ac_cv_host" >&6; }
2494 case $ac_cv_host in
2495 *-*-*) ;;
2496 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2497 esac
2498 host=$ac_cv_host
2499 ac_save_IFS=$IFS; IFS='-'
2500 set x $ac_cv_host
2501 shift
2502 host_cpu=$1
2503 host_vendor=$2
2504 shift; shift
2505 # Remember, the first character of IFS is used to create $*,
2506 # except with old shells:
2507 host_os=$*
2508 IFS=$ac_save_IFS
2509 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2510
2511
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2513 $as_echo_n "checking target system type... " >&6; }
2514 if ${ac_cv_target+:} false; then :
2515   $as_echo_n "(cached) " >&6
2516 else
2517   if test "x$target_alias" = x; then
2518   ac_cv_target=$ac_cv_host
2519 else
2520   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2521     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2522 fi
2523
2524 fi
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2526 $as_echo "$ac_cv_target" >&6; }
2527 case $ac_cv_target in
2528 *-*-*) ;;
2529 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2530 esac
2531 target=$ac_cv_target
2532 ac_save_IFS=$IFS; IFS='-'
2533 set x $ac_cv_target
2534 shift
2535 target_cpu=$1
2536 target_vendor=$2
2537 shift; shift
2538 # Remember, the first character of IFS is used to create $*,
2539 # except with old shells:
2540 target_os=$*
2541 IFS=$ac_save_IFS
2542 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2543
2544
2545 # The aliases save the names the user supplied, while $host etc.
2546 # will get canonicalized.
2547 test -n "$target_alias" &&
2548   test "$program_prefix$program_suffix$program_transform_name" = \
2549     NONENONEs,x,x, &&
2550   program_prefix=${target_alias}-
2551 am__api_version='1.13'
2552
2553 # Find a good install program.  We prefer a C program (faster),
2554 # so one script is as good as another.  But avoid the broken or
2555 # incompatible versions:
2556 # SysV /etc/install, /usr/sbin/install
2557 # SunOS /usr/etc/install
2558 # IRIX /sbin/install
2559 # AIX /bin/install
2560 # AmigaOS /C/install, which installs bootblocks on floppy discs
2561 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2562 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2563 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2564 # OS/2's system install, which has a completely different semantic
2565 # ./install, which can be erroneously created by make from ./install.sh.
2566 # Reject install programs that cannot install multiple files.
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2568 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2569 if test -z "$INSTALL"; then
2570 if ${ac_cv_path_install+:} false; then :
2571   $as_echo_n "(cached) " >&6
2572 else
2573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2575 do
2576   IFS=$as_save_IFS
2577   test -z "$as_dir" && as_dir=.
2578     # Account for people who put trailing slashes in PATH elements.
2579 case $as_dir/ in #((
2580   ./ | .// | /[cC]/* | \
2581   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2582   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2583   /usr/ucb/* ) ;;
2584   *)
2585     # OSF1 and SCO ODT 3.0 have their own names for install.
2586     # Don't use installbsd from OSF since it installs stuff as root
2587     # by default.
2588     for ac_prog in ginstall scoinst install; do
2589       for ac_exec_ext in '' $ac_executable_extensions; do
2590         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2591           if test $ac_prog = install &&
2592             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2593             # AIX install.  It has an incompatible calling convention.
2594             :
2595           elif test $ac_prog = install &&
2596             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2597             # program-specific install script used by HP pwplus--don't use.
2598             :
2599           else
2600             rm -rf conftest.one conftest.two conftest.dir
2601             echo one > conftest.one
2602             echo two > conftest.two
2603             mkdir conftest.dir
2604             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2605               test -s conftest.one && test -s conftest.two &&
2606               test -s conftest.dir/conftest.one &&
2607               test -s conftest.dir/conftest.two
2608             then
2609               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2610               break 3
2611             fi
2612           fi
2613         fi
2614       done
2615     done
2616     ;;
2617 esac
2618
2619   done
2620 IFS=$as_save_IFS
2621
2622 rm -rf conftest.one conftest.two conftest.dir
2623
2624 fi
2625   if test "${ac_cv_path_install+set}" = set; then
2626     INSTALL=$ac_cv_path_install
2627   else
2628     # As a last resort, use the slow shell script.  Don't cache a
2629     # value for INSTALL within a source directory, because that will
2630     # break other packages using the cache if that directory is
2631     # removed, or if the value is a relative name.
2632     INSTALL=$ac_install_sh
2633   fi
2634 fi
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2636 $as_echo "$INSTALL" >&6; }
2637
2638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2639 # It thinks the first close brace ends the variable substitution.
2640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2641
2642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2643
2644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2645
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2647 $as_echo_n "checking whether build environment is sane... " >&6; }
2648 # Reject unsafe characters in $srcdir or the absolute working directory
2649 # name.  Accept space and tab only in the latter.
2650 am_lf='
2651 '
2652 case `pwd` in
2653   *[\\\"\#\$\&\'\`$am_lf]*)
2654     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2655 esac
2656 case $srcdir in
2657   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2658     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2659 esac
2660
2661 # Do 'set' in a subshell so we don't clobber the current shell's
2662 # arguments.  Must try -L first in case configure is actually a
2663 # symlink; some systems play weird games with the mod time of symlinks
2664 # (eg FreeBSD returns the mod time of the symlink's containing
2665 # directory).
2666 if (
2667    am_has_slept=no
2668    for am_try in 1 2; do
2669      echo "timestamp, slept: $am_has_slept" > conftest.file
2670      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2671      if test "$*" = "X"; then
2672         # -L didn't work.
2673         set X `ls -t "$srcdir/configure" conftest.file`
2674      fi
2675      if test "$*" != "X $srcdir/configure conftest.file" \
2676         && test "$*" != "X conftest.file $srcdir/configure"; then
2677
2678         # If neither matched, then we have a broken ls.  This can happen
2679         # if, for instance, CONFIG_SHELL is bash and it inherits a
2680         # broken ls alias from the environment.  This has actually
2681         # happened.  Such a system could not be considered "sane".
2682         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2683   alias in your environment" "$LINENO" 5
2684      fi
2685      if test "$2" = conftest.file || test $am_try -eq 2; then
2686        break
2687      fi
2688      # Just in case.
2689      sleep 1
2690      am_has_slept=yes
2691    done
2692    test "$2" = conftest.file
2693    )
2694 then
2695    # Ok.
2696    :
2697 else
2698    as_fn_error $? "newly created file is older than distributed files!
2699 Check your system clock" "$LINENO" 5
2700 fi
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2702 $as_echo "yes" >&6; }
2703 # If we didn't sleep, we still need to ensure time stamps of config.status and
2704 # generated files are strictly newer.
2705 am_sleep_pid=
2706 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2707   ( sleep 1 ) &
2708   am_sleep_pid=$!
2709 fi
2710
2711 rm -f conftest.file
2712
2713 test "$program_prefix" != NONE &&
2714   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2715 # Use a double $ so make ignores it.
2716 test "$program_suffix" != NONE &&
2717   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2718 # Double any \ or $.
2719 # By default was `s,x,x', remove it if useless.
2720 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2721 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2722
2723 # expand $ac_aux_dir to an absolute path
2724 am_aux_dir=`cd $ac_aux_dir && pwd`
2725
2726 if test x"${MISSING+set}" != xset; then
2727   case $am_aux_dir in
2728   *\ * | *\     *)
2729     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2730   *)
2731     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2732   esac
2733 fi
2734 # Use eval to expand $SHELL
2735 if eval "$MISSING --is-lightweight"; then
2736   am_missing_run="$MISSING "
2737 else
2738   am_missing_run=
2739   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2740 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2741 fi
2742
2743 if test x"${install_sh}" != xset; then
2744   case $am_aux_dir in
2745   *\ * | *\     *)
2746     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2747   *)
2748     install_sh="\${SHELL} $am_aux_dir/install-sh"
2749   esac
2750 fi
2751
2752 # Installed binaries are usually stripped using 'strip' when the user
2753 # run "make install-strip".  However 'strip' might not be the right
2754 # tool to use in cross-compilation environments, therefore Automake
2755 # will honor the 'STRIP' environment variable to overrule this program.
2756 if test "$cross_compiling" != no; then
2757   if test -n "$ac_tool_prefix"; then
2758   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2759 set dummy ${ac_tool_prefix}strip; ac_word=$2
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761 $as_echo_n "checking for $ac_word... " >&6; }
2762 if ${ac_cv_prog_STRIP+:} false; then :
2763   $as_echo_n "(cached) " >&6
2764 else
2765   if test -n "$STRIP"; then
2766   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2770 do
2771   IFS=$as_save_IFS
2772   test -z "$as_dir" && as_dir=.
2773     for ac_exec_ext in '' $ac_executable_extensions; do
2774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777     break 2
2778   fi
2779 done
2780   done
2781 IFS=$as_save_IFS
2782
2783 fi
2784 fi
2785 STRIP=$ac_cv_prog_STRIP
2786 if test -n "$STRIP"; then
2787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2788 $as_echo "$STRIP" >&6; }
2789 else
2790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2792 fi
2793
2794
2795 fi
2796 if test -z "$ac_cv_prog_STRIP"; then
2797   ac_ct_STRIP=$STRIP
2798   # Extract the first word of "strip", so it can be a program name with args.
2799 set dummy strip; ac_word=$2
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2803   $as_echo_n "(cached) " >&6
2804 else
2805   if test -n "$ac_ct_STRIP"; then
2806   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2810 do
2811   IFS=$as_save_IFS
2812   test -z "$as_dir" && as_dir=.
2813     for ac_exec_ext in '' $ac_executable_extensions; do
2814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2815     ac_cv_prog_ac_ct_STRIP="strip"
2816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817     break 2
2818   fi
2819 done
2820   done
2821 IFS=$as_save_IFS
2822
2823 fi
2824 fi
2825 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2826 if test -n "$ac_ct_STRIP"; then
2827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2828 $as_echo "$ac_ct_STRIP" >&6; }
2829 else
2830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 $as_echo "no" >&6; }
2832 fi
2833
2834   if test "x$ac_ct_STRIP" = x; then
2835     STRIP=":"
2836   else
2837     case $cross_compiling:$ac_tool_warned in
2838 yes:)
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2841 ac_tool_warned=yes ;;
2842 esac
2843     STRIP=$ac_ct_STRIP
2844   fi
2845 else
2846   STRIP="$ac_cv_prog_STRIP"
2847 fi
2848
2849 fi
2850 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2851
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2853 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2854 if test -z "$MKDIR_P"; then
2855   if ${ac_cv_path_mkdir+:} false; then :
2856   $as_echo_n "(cached) " >&6
2857 else
2858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2860 do
2861   IFS=$as_save_IFS
2862   test -z "$as_dir" && as_dir=.
2863     for ac_prog in mkdir gmkdir; do
2864          for ac_exec_ext in '' $ac_executable_extensions; do
2865            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2866            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2867              'mkdir (GNU coreutils) '* | \
2868              'mkdir (coreutils) '* | \
2869              'mkdir (fileutils) '4.1*)
2870                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2871                break 3;;
2872            esac
2873          done
2874        done
2875   done
2876 IFS=$as_save_IFS
2877
2878 fi
2879
2880   test -d ./--version && rmdir ./--version
2881   if test "${ac_cv_path_mkdir+set}" = set; then
2882     MKDIR_P="$ac_cv_path_mkdir -p"
2883   else
2884     # As a last resort, use the slow shell script.  Don't cache a
2885     # value for MKDIR_P within a source directory, because that will
2886     # break other packages using the cache if that directory is
2887     # removed, or if the value is a relative name.
2888     MKDIR_P="$ac_install_sh -d"
2889   fi
2890 fi
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2892 $as_echo "$MKDIR_P" >&6; }
2893
2894 for ac_prog in gawk mawk nawk awk
2895 do
2896   # Extract the first word of "$ac_prog", so it can be a program name with args.
2897 set dummy $ac_prog; ac_word=$2
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 $as_echo_n "checking for $ac_word... " >&6; }
2900 if ${ac_cv_prog_AWK+:} false; then :
2901   $as_echo_n "(cached) " >&6
2902 else
2903   if test -n "$AWK"; then
2904   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2908 do
2909   IFS=$as_save_IFS
2910   test -z "$as_dir" && as_dir=.
2911     for ac_exec_ext in '' $ac_executable_extensions; do
2912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913     ac_cv_prog_AWK="$ac_prog"
2914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915     break 2
2916   fi
2917 done
2918   done
2919 IFS=$as_save_IFS
2920
2921 fi
2922 fi
2923 AWK=$ac_cv_prog_AWK
2924 if test -n "$AWK"; then
2925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2926 $as_echo "$AWK" >&6; }
2927 else
2928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2930 fi
2931
2932
2933   test -n "$AWK" && break
2934 done
2935
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2937 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2938 set x ${MAKE-make}
2939 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2940 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2941   $as_echo_n "(cached) " >&6
2942 else
2943   cat >conftest.make <<\_ACEOF
2944 SHELL = /bin/sh
2945 all:
2946         @echo '@@@%%%=$(MAKE)=@@@%%%'
2947 _ACEOF
2948 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2949 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2950   *@@@%%%=?*=@@@%%%*)
2951     eval ac_cv_prog_make_${ac_make}_set=yes;;
2952   *)
2953     eval ac_cv_prog_make_${ac_make}_set=no;;
2954 esac
2955 rm -f conftest.make
2956 fi
2957 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2959 $as_echo "yes" >&6; }
2960   SET_MAKE=
2961 else
2962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2964   SET_MAKE="MAKE=${MAKE-make}"
2965 fi
2966
2967 rm -rf .tst 2>/dev/null
2968 mkdir .tst 2>/dev/null
2969 if test -d .tst; then
2970   am__leading_dot=.
2971 else
2972   am__leading_dot=_
2973 fi
2974 rmdir .tst 2>/dev/null
2975
2976 # Check whether --enable-silent-rules was given.
2977 if test "${enable_silent_rules+set}" = set; then :
2978   enableval=$enable_silent_rules;
2979 fi
2980
2981 case $enable_silent_rules in # (((
2982   yes) AM_DEFAULT_VERBOSITY=0;;
2983    no) AM_DEFAULT_VERBOSITY=1;;
2984     *) AM_DEFAULT_VERBOSITY=1;;
2985 esac
2986 am_make=${MAKE-make}
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2988 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2989 if ${am_cv_make_support_nested_variables+:} false; then :
2990   $as_echo_n "(cached) " >&6
2991 else
2992   if $as_echo 'TRUE=$(BAR$(V))
2993 BAR0=false
2994 BAR1=true
2995 V=1
2996 am__doit:
2997         @$(TRUE)
2998 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2999   am_cv_make_support_nested_variables=yes
3000 else
3001   am_cv_make_support_nested_variables=no
3002 fi
3003 fi
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3005 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3006 if test $am_cv_make_support_nested_variables = yes; then
3007     AM_V='$(V)'
3008   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3009 else
3010   AM_V=$AM_DEFAULT_VERBOSITY
3011   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3012 fi
3013 AM_BACKSLASH='\'
3014
3015 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3016   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3017   # is not polluted with repeated "-I."
3018   am__isrc=' -I$(srcdir)'
3019   # test to see if srcdir already configured
3020   if test -f $srcdir/config.status; then
3021     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3022   fi
3023 fi
3024
3025 # test whether we have cygpath
3026 if test -z "$CYGPATH_W"; then
3027   if (cygpath --version) >/dev/null 2>/dev/null; then
3028     CYGPATH_W='cygpath -w'
3029   else
3030     CYGPATH_W=echo
3031   fi
3032 fi
3033
3034
3035 # Define the identity of the package.
3036
3037  PACKAGE=${PACKAGE_NAME}
3038  VERSION=${PACKAGE_VERSION}
3039
3040
3041 cat >>confdefs.h <<_ACEOF
3042 #define PACKAGE "$PACKAGE"
3043 _ACEOF
3044
3045
3046 cat >>confdefs.h <<_ACEOF
3047 #define VERSION "$VERSION"
3048 _ACEOF
3049
3050 # Some tools Automake needs.
3051
3052 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3053
3054
3055 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3056
3057
3058 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3059
3060
3061 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3062
3063
3064 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3065
3066 # For better backward compatibility.  To be removed once Automake 1.9.x
3067 # dies out for good.  For more background, see:
3068 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3069 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3070 mkdir_p='$(MKDIR_P)'
3071
3072 # We need awk for the "check" target.  The system "awk" is bad on
3073 # some platforms.
3074 # Always define AMTAR for backward compatibility.  Yes, it's still used
3075 # in the wild :-(  We should find a proper way to deprecate it ...
3076 AMTAR='$${TAR-tar}'
3077
3078
3079 # We'll loop over all known methods to create a tar archive until one works.
3080 _am_tools='gnutar  pax cpio none'
3081
3082 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3083
3084
3085
3086
3087
3088
3089
3090 ac_config_headers="$ac_config_headers config.h"
3091
3092 AM_CPPFLAGS='-include $(top_builddir)/config.h'
3093
3094
3095
3096 # Check whether --enable-static was given.
3097 if test "${enable_static+set}" = set; then :
3098   enableval=$enable_static; p=${PACKAGE-default}
3099     case $enableval in
3100     yes) enable_static=yes ;;
3101     no) enable_static=no ;;
3102     *)
3103      enable_static=no
3104       # Look at the argument we got.  We use all the common list separators.
3105       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3106       for pkg in $enableval; do
3107         IFS="$lt_save_ifs"
3108         if test "X$pkg" = "X$p"; then
3109           enable_static=yes
3110         fi
3111       done
3112       IFS="$lt_save_ifs"
3113       ;;
3114     esac
3115 else
3116   enable_static=no
3117 fi
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128 # libecryptfs versioning instructions
3129 #
3130 # Update the version information only once per public release of
3131 # ecryptfs-utils. More frequent updates are unnecessary, and only guarantee
3132 # that the current interface number gets larger faster.
3133 #
3134 # 1. If the library source code has changed at all since the last update, then
3135 #    increment LIBECRYPTFS_LT_REVISION.
3136 # 2. If any interfaces have been added, removed, or changed since the last
3137 #    update, increment LIBECRYPTFS_LT_CURRENT, and set LIBECRYPTFS_LT_REVISION to 0.
3138 # 3. If any interfaces have been added since the last public release, then
3139 #    increment LIBECRYPTFS_LT_AGE.
3140 # 4. If any interfaces have been removed or changed since the last public
3141 #    release, then set LIBECRYPTFS_LT_AGE to 0.
3142 #
3143 # For more details:
3144 # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
3145 LIBECRYPTFS_LT_CURRENT="1"
3146 LIBECRYPTFS_LT_REVISION="0"
3147 LIBECRYPTFS_LT_AGE="0"
3148
3149
3150
3151
3152 # Check whether --enable-nss was given.
3153 if test "${enable_nss+set}" = set; then :
3154   enableval=$enable_nss;
3155 else
3156   enable_nss="detect"
3157
3158 fi
3159
3160
3161 # Check whether --enable-pywrap was given.
3162 if test "${enable_pywrap+set}" = set; then :
3163   enableval=$enable_pywrap;
3164 else
3165   enable_pywrap="detect"
3166
3167 fi
3168
3169
3170 # Check whether --enable-openssl was given.
3171 if test "${enable_openssl+set}" = set; then :
3172   enableval=$enable_openssl;
3173 else
3174   enable_openssl="detect"
3175
3176 fi
3177
3178
3179 # Check whether --enable-pkcs11-helper was given.
3180 if test "${enable_pkcs11_helper+set}" = set; then :
3181   enableval=$enable_pkcs11_helper;
3182 else
3183   enable_pkcs11_helper="no"
3184
3185 fi
3186
3187
3188 # Check whether --enable-tspi was given.
3189 if test "${enable_tspi+set}" = set; then :
3190   enableval=$enable_tspi;
3191 else
3192   enable_tspi="no"
3193
3194 fi
3195
3196
3197 # Check whether --enable-gpg was given.
3198 if test "${enable_gpg+set}" = set; then :
3199   enableval=$enable_gpg;
3200 else
3201   enable_gpg="no"
3202
3203 fi
3204
3205
3206 # Check whether --enable-pam was given.
3207 if test "${enable_pam+set}" = set; then :
3208   enableval=$enable_pam;
3209 else
3210   enable_pam="yes"
3211
3212 fi
3213
3214
3215 # Check whether --enable-gui was given.
3216 if test "${enable_gui+set}" = set; then :
3217   enableval=$enable_gui;
3218 else
3219   enable_gui="no"
3220
3221 fi
3222
3223
3224 # Check whether --enable-docs was given.
3225 if test "${enable_docs+set}" = set; then :
3226   enableval=$enable_docs;
3227 else
3228   enable_docs="no"
3229
3230 fi
3231
3232
3233 # Check whether --enable-docs-gen was given.
3234 if test "${enable_docs_gen+set}" = set; then :
3235   enableval=$enable_docs_gen;
3236 else
3237   enable_docs_gen="no"
3238
3239 fi
3240
3241 test "${enable_docs_gen}" = "yes" && enable_docs="yes"
3242
3243 # Check whether --enable-tests was given.
3244 if test "${enable_tests+set}" = set; then :
3245   enableval=$enable_tests;
3246 else
3247   enable_tests="no"
3248
3249 fi
3250
3251
3252 # Check whether --enable-mudflap was given.
3253 if test "${enable_mudflap+set}" = set; then :
3254   enableval=$enable_mudflap;
3255                 if "${enableval}" = "yes"; then
3256                         CFLAGS="$CFLAGS -fmudflap"
3257                         LDFLAGS="$LDFLAGS -lmudflap"
3258                 fi
3259
3260
3261 fi
3262
3263
3264
3265 # Check whether --with-gpgme-prefix was given.
3266 if test "${with_gpgme_prefix+set}" = set; then :
3267   withval=$with_gpgme_prefix;
3268 else
3269   with_gpgme_prefix="/usr"
3270
3271 fi
3272
3273
3274
3275 # Check whether --with-pamdir was given.
3276 if test "${with_pamdir+set}" = set; then :
3277   withval=$with_pamdir; pamdir="${withval}"
3278 else
3279
3280                 if test "${prefix}" = "/usr"; then
3281                         pamdir="/lib${libdir##*/lib}/security"
3282                 else
3283                         pamdir="\$(libdir)/security"
3284                 fi
3285
3286
3287 fi
3288
3289
3290
3291 # Check whether --with-ecryptfskeymoddir was given.
3292 if test "${with_ecryptfskeymoddir+set}" = set; then :
3293   withval=$with_ecryptfskeymoddir;
3294                 ecryptfskeymoddir="${withval}"
3295                 full_ecryptfskeymoddir="${ecryptfskeymoddir}"
3296
3297 else
3298
3299                 full_ecryptfskeymoddir=`eval eval eval eval eval echo "${libdir}/ecryptfs" | sed "s#NONE#${prefix}#" | sed "s#NONE#${ac_default_prefix}#"`
3300                 ecryptfskeymoddir="\$(libdir)/ecryptfs"
3301
3302
3303 fi
3304
3305
3306 cat >>confdefs.h <<_ACEOF
3307 #define ECRYPTFS_DEFAULT_KEY_MOD_DIR "$full_ecryptfskeymoddir"
3308 _ACEOF
3309
3310
3311 DEPDIR="${am__leading_dot}deps"
3312
3313 ac_config_commands="$ac_config_commands depfiles"
3314
3315
3316 am_make=${MAKE-make}
3317 cat > confinc << 'END'
3318 am__doit:
3319         @echo this is the am__doit target
3320 .PHONY: am__doit
3321 END
3322 # If we don't find an include directive, just comment out the code.
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3324 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3325 am__include="#"
3326 am__quote=
3327 _am_result=none
3328 # First try GNU make style include.
3329 echo "include confinc" > confmf
3330 # Ignore all kinds of additional output from 'make'.
3331 case `$am_make -s -f confmf 2> /dev/null` in #(
3332 *the\ am__doit\ target*)
3333   am__include=include
3334   am__quote=
3335   _am_result=GNU
3336   ;;
3337 esac
3338 # Now try BSD make style include.
3339 if test "$am__include" = "#"; then
3340    echo '.include "confinc"' > confmf
3341    case `$am_make -s -f confmf 2> /dev/null` in #(
3342    *the\ am__doit\ target*)
3343      am__include=.include
3344      am__quote="\""
3345      _am_result=BSD
3346      ;;
3347    esac
3348 fi
3349
3350
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3352 $as_echo "$_am_result" >&6; }
3353 rm -f confinc confmf
3354
3355 # Check whether --enable-dependency-tracking was given.
3356 if test "${enable_dependency_tracking+set}" = set; then :
3357   enableval=$enable_dependency_tracking;
3358 fi
3359
3360 if test "x$enable_dependency_tracking" != xno; then
3361   am_depcomp="$ac_aux_dir/depcomp"
3362   AMDEPBACKSLASH='\'
3363   am__nodep='_no'
3364 fi
3365  if test "x$enable_dependency_tracking" != xno; then
3366   AMDEP_TRUE=
3367   AMDEP_FALSE='#'
3368 else
3369   AMDEP_TRUE='#'
3370   AMDEP_FALSE=
3371 fi
3372
3373
3374 ac_ext=c
3375 ac_cpp='$CPP $CPPFLAGS'
3376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379 if test -n "$ac_tool_prefix"; then
3380   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3381 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383 $as_echo_n "checking for $ac_word... " >&6; }
3384 if ${ac_cv_prog_CC+:} false; then :
3385   $as_echo_n "(cached) " >&6
3386 else
3387   if test -n "$CC"; then
3388   ac_cv_prog_CC="$CC" # Let the user override the test.
3389 else
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3392 do
3393   IFS=$as_save_IFS
3394   test -z "$as_dir" && as_dir=.
3395     for ac_exec_ext in '' $ac_executable_extensions; do
3396   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399     break 2
3400   fi
3401 done
3402   done
3403 IFS=$as_save_IFS
3404
3405 fi
3406 fi
3407 CC=$ac_cv_prog_CC
3408 if test -n "$CC"; then
3409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3410 $as_echo "$CC" >&6; }
3411 else
3412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3414 fi
3415
3416
3417 fi
3418 if test -z "$ac_cv_prog_CC"; then
3419   ac_ct_CC=$CC
3420   # Extract the first word of "gcc", so it can be a program name with args.
3421 set dummy gcc; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3425   $as_echo_n "(cached) " >&6
3426 else
3427   if test -n "$ac_ct_CC"; then
3428   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433   IFS=$as_save_IFS
3434   test -z "$as_dir" && as_dir=.
3435     for ac_exec_ext in '' $ac_executable_extensions; do
3436   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437     ac_cv_prog_ac_ct_CC="gcc"
3438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439     break 2
3440   fi
3441 done
3442   done
3443 IFS=$as_save_IFS
3444
3445 fi
3446 fi
3447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3448 if test -n "$ac_ct_CC"; then
3449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3450 $as_echo "$ac_ct_CC" >&6; }
3451 else
3452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3454 fi
3455
3456   if test "x$ac_ct_CC" = x; then
3457     CC=""
3458   else
3459     case $cross_compiling:$ac_tool_warned in
3460 yes:)
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3463 ac_tool_warned=yes ;;
3464 esac
3465     CC=$ac_ct_CC
3466   fi
3467 else
3468   CC="$ac_cv_prog_CC"
3469 fi
3470
3471 if test -z "$CC"; then
3472           if test -n "$ac_tool_prefix"; then
3473     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3474 set dummy ${ac_tool_prefix}cc; ac_word=$2
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 $as_echo_n "checking for $ac_word... " >&6; }
3477 if ${ac_cv_prog_CC+:} false; then :
3478   $as_echo_n "(cached) " >&6
3479 else
3480   if test -n "$CC"; then
3481   ac_cv_prog_CC="$CC" # Let the user override the test.
3482 else
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH
3485 do
3486   IFS=$as_save_IFS
3487   test -z "$as_dir" && as_dir=.
3488     for ac_exec_ext in '' $ac_executable_extensions; do
3489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490     ac_cv_prog_CC="${ac_tool_prefix}cc"
3491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492     break 2
3493   fi
3494 done
3495   done
3496 IFS=$as_save_IFS
3497
3498 fi
3499 fi
3500 CC=$ac_cv_prog_CC
3501 if test -n "$CC"; then
3502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3503 $as_echo "$CC" >&6; }
3504 else
3505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3507 fi
3508
3509
3510   fi
3511 fi
3512 if test -z "$CC"; then
3513   # Extract the first word of "cc", so it can be a program name with args.
3514 set dummy cc; ac_word=$2
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516 $as_echo_n "checking for $ac_word... " >&6; }
3517 if ${ac_cv_prog_CC+:} false; then :
3518   $as_echo_n "(cached) " >&6
3519 else
3520   if test -n "$CC"; then
3521   ac_cv_prog_CC="$CC" # Let the user override the test.
3522 else
3523   ac_prog_rejected=no
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525 for as_dir in $PATH
3526 do
3527   IFS=$as_save_IFS
3528   test -z "$as_dir" && as_dir=.
3529     for ac_exec_ext in '' $ac_executable_extensions; do
3530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3531     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3532        ac_prog_rejected=yes
3533        continue
3534      fi
3535     ac_cv_prog_CC="cc"
3536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537     break 2
3538   fi
3539 done
3540   done
3541 IFS=$as_save_IFS
3542
3543 if test $ac_prog_rejected = yes; then
3544   # We found a bogon in the path, so make sure we never use it.
3545   set dummy $ac_cv_prog_CC
3546   shift
3547   if test $# != 0; then
3548     # We chose a different compiler from the bogus one.
3549     # However, it has the same basename, so the bogon will be chosen
3550     # first if we set CC to just the basename; use the full file name.
3551     shift
3552     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3553   fi
3554 fi
3555 fi
3556 fi
3557 CC=$ac_cv_prog_CC
3558 if test -n "$CC"; then
3559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3560 $as_echo "$CC" >&6; }
3561 else
3562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 $as_echo "no" >&6; }
3564 fi
3565
3566
3567 fi
3568 if test -z "$CC"; then
3569   if test -n "$ac_tool_prefix"; then
3570   for ac_prog in cl.exe
3571   do
3572     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3573 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575 $as_echo_n "checking for $ac_word... " >&6; }
3576 if ${ac_cv_prog_CC+:} false; then :
3577   $as_echo_n "(cached) " >&6
3578 else
3579   if test -n "$CC"; then
3580   ac_cv_prog_CC="$CC" # Let the user override the test.
3581 else
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH
3584 do
3585   IFS=$as_save_IFS
3586   test -z "$as_dir" && as_dir=.
3587     for ac_exec_ext in '' $ac_executable_extensions; do
3588   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3589     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3591     break 2
3592   fi
3593 done
3594   done
3595 IFS=$as_save_IFS
3596
3597 fi
3598 fi
3599 CC=$ac_cv_prog_CC
3600 if test -n "$CC"; then
3601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3602 $as_echo "$CC" >&6; }
3603 else
3604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605 $as_echo "no" >&6; }
3606 fi
3607
3608
3609     test -n "$CC" && break
3610   done
3611 fi
3612 if test -z "$CC"; then
3613   ac_ct_CC=$CC
3614   for ac_prog in cl.exe
3615 do
3616   # Extract the first word of "$ac_prog", so it can be a program name with args.
3617 set dummy $ac_prog; ac_word=$2
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619 $as_echo_n "checking for $ac_word... " >&6; }
3620 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3621   $as_echo_n "(cached) " >&6
3622 else
3623   if test -n "$ac_ct_CC"; then
3624   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3625 else
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3628 do
3629   IFS=$as_save_IFS
3630   test -z "$as_dir" && as_dir=.
3631     for ac_exec_ext in '' $ac_executable_extensions; do
3632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633     ac_cv_prog_ac_ct_CC="$ac_prog"
3634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3635     break 2
3636   fi
3637 done
3638   done
3639 IFS=$as_save_IFS
3640
3641 fi
3642 fi
3643 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3644 if test -n "$ac_ct_CC"; then
3645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3646 $as_echo "$ac_ct_CC" >&6; }
3647 else
3648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649 $as_echo "no" >&6; }
3650 fi
3651
3652
3653   test -n "$ac_ct_CC" && break
3654 done
3655
3656   if test "x$ac_ct_CC" = x; then
3657     CC=""
3658   else
3659     case $cross_compiling:$ac_tool_warned in
3660 yes:)
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3663 ac_tool_warned=yes ;;
3664 esac
3665     CC=$ac_ct_CC
3666   fi
3667 fi
3668
3669 fi
3670
3671
3672 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3674 as_fn_error $? "no acceptable C compiler found in \$PATH
3675 See \`config.log' for more details" "$LINENO" 5; }
3676
3677 # Provide some information about the compiler.
3678 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3679 set X $ac_compile
3680 ac_compiler=$2
3681 for ac_option in --version -v -V -qversion; do
3682   { { ac_try="$ac_compiler $ac_option >&5"
3683 case "(($ac_try" in
3684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685   *) ac_try_echo=$ac_try;;
3686 esac
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3690   ac_status=$?
3691   if test -s conftest.err; then
3692     sed '10a\
3693 ... rest of stderr output deleted ...
3694          10q' conftest.err >conftest.er1
3695     cat conftest.er1 >&5
3696   fi
3697   rm -f conftest.er1 conftest.err
3698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699   test $ac_status = 0; }
3700 done
3701
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h.  */
3704
3705 int
3706 main ()
3707 {
3708
3709   ;
3710   return 0;
3711 }
3712 _ACEOF
3713 ac_clean_files_save=$ac_clean_files
3714 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3715 # Try to create an executable without -o first, disregard a.out.
3716 # It will help us diagnose broken compilers, and finding out an intuition
3717 # of exeext.
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3719 $as_echo_n "checking whether the C compiler works... " >&6; }
3720 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3721
3722 # The possible output files:
3723 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3724
3725 ac_rmfiles=
3726 for ac_file in $ac_files
3727 do
3728   case $ac_file in
3729     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3730     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3731   esac
3732 done
3733 rm -f $ac_rmfiles
3734
3735 if { { ac_try="$ac_link_default"
3736 case "(($ac_try" in
3737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738   *) ac_try_echo=$ac_try;;
3739 esac
3740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3741 $as_echo "$ac_try_echo"; } >&5
3742   (eval "$ac_link_default") 2>&5
3743   ac_status=$?
3744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3745   test $ac_status = 0; }; then :
3746   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3747 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3748 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3749 # so that the user can short-circuit this test for compilers unknown to
3750 # Autoconf.
3751 for ac_file in $ac_files ''
3752 do
3753   test -f "$ac_file" || continue
3754   case $ac_file in
3755     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3756         ;;
3757     [ab].out )
3758         # We found the default executable, but exeext='' is most
3759         # certainly right.
3760         break;;
3761     *.* )
3762         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3763         then :; else
3764            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3765         fi
3766         # We set ac_cv_exeext here because the later test for it is not
3767         # safe: cross compilers may not add the suffix if given an `-o'
3768         # argument, so we may need to know it at that point already.
3769         # Even if this section looks crufty: it has the advantage of
3770         # actually working.
3771         break;;
3772     * )
3773         break;;
3774   esac
3775 done
3776 test "$ac_cv_exeext" = no && ac_cv_exeext=
3777
3778 else
3779   ac_file=''
3780 fi
3781 if test -z "$ac_file"; then :
3782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 $as_echo "no" >&6; }
3784 $as_echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3786
3787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error 77 "C compiler cannot create executables
3790 See \`config.log' for more details" "$LINENO" 5; }
3791 else
3792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3793 $as_echo "yes" >&6; }
3794 fi
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3796 $as_echo_n "checking for C compiler default output file name... " >&6; }
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3798 $as_echo "$ac_file" >&6; }
3799 ac_exeext=$ac_cv_exeext
3800
3801 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3802 ac_clean_files=$ac_clean_files_save
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3804 $as_echo_n "checking for suffix of executables... " >&6; }
3805 if { { ac_try="$ac_link"
3806 case "(($ac_try" in
3807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808   *) ac_try_echo=$ac_try;;
3809 esac
3810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811 $as_echo "$ac_try_echo"; } >&5
3812   (eval "$ac_link") 2>&5
3813   ac_status=$?
3814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3815   test $ac_status = 0; }; then :
3816   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3817 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3818 # work properly (i.e., refer to `conftest.exe'), while it won't with
3819 # `rm'.
3820 for ac_file in conftest.exe conftest conftest.*; do
3821   test -f "$ac_file" || continue
3822   case $ac_file in
3823     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3824     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3825           break;;
3826     * ) break;;
3827   esac
3828 done
3829 else
3830   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3832 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3833 See \`config.log' for more details" "$LINENO" 5; }
3834 fi
3835 rm -f conftest conftest$ac_cv_exeext
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3837 $as_echo "$ac_cv_exeext" >&6; }
3838
3839 rm -f conftest.$ac_ext
3840 EXEEXT=$ac_cv_exeext
3841 ac_exeext=$EXEEXT
3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843 /* end confdefs.h.  */
3844 #include <stdio.h>
3845 int
3846 main ()
3847 {
3848 FILE *f = fopen ("conftest.out", "w");
3849  return ferror (f) || fclose (f) != 0;
3850
3851   ;
3852   return 0;
3853 }
3854 _ACEOF
3855 ac_clean_files="$ac_clean_files conftest.out"
3856 # Check that the compiler produces executables we can run.  If not, either
3857 # the compiler is broken, or we cross compile.
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3859 $as_echo_n "checking whether we are cross compiling... " >&6; }
3860 if test "$cross_compiling" != yes; then
3861   { { ac_try="$ac_link"
3862 case "(($ac_try" in
3863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864   *) ac_try_echo=$ac_try;;
3865 esac
3866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867 $as_echo "$ac_try_echo"; } >&5
3868   (eval "$ac_link") 2>&5
3869   ac_status=$?
3870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3871   test $ac_status = 0; }
3872   if { ac_try='./conftest$ac_cv_exeext'
3873   { { case "(($ac_try" in
3874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875   *) ac_try_echo=$ac_try;;
3876 esac
3877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3878 $as_echo "$ac_try_echo"; } >&5
3879   (eval "$ac_try") 2>&5
3880   ac_status=$?
3881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3882   test $ac_status = 0; }; }; then
3883     cross_compiling=no
3884   else
3885     if test "$cross_compiling" = maybe; then
3886         cross_compiling=yes
3887     else
3888         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3890 as_fn_error $? "cannot run C compiled programs.
3891 If you meant to cross compile, use \`--host'.
3892 See \`config.log' for more details" "$LINENO" 5; }
3893     fi
3894   fi
3895 fi
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3897 $as_echo "$cross_compiling" >&6; }
3898
3899 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3900 ac_clean_files=$ac_clean_files_save
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3902 $as_echo_n "checking for suffix of object files... " >&6; }
3903 if ${ac_cv_objext+:} false; then :
3904   $as_echo_n "(cached) " >&6
3905 else
3906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h.  */
3908
3909 int
3910 main ()
3911 {
3912
3913   ;
3914   return 0;
3915 }
3916 _ACEOF
3917 rm -f conftest.o conftest.obj
3918 if { { ac_try="$ac_compile"
3919 case "(($ac_try" in
3920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921   *) ac_try_echo=$ac_try;;
3922 esac
3923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3924 $as_echo "$ac_try_echo"; } >&5
3925   (eval "$ac_compile") 2>&5
3926   ac_status=$?
3927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3928   test $ac_status = 0; }; then :
3929   for ac_file in conftest.o conftest.obj conftest.*; do
3930   test -f "$ac_file" || continue;
3931   case $ac_file in
3932     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3933     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3934        break;;
3935   esac
3936 done
3937 else
3938   $as_echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3940
3941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3943 as_fn_error $? "cannot compute suffix of object files: cannot compile
3944 See \`config.log' for more details" "$LINENO" 5; }
3945 fi
3946 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3947 fi
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3949 $as_echo "$ac_cv_objext" >&6; }
3950 OBJEXT=$ac_cv_objext
3951 ac_objext=$OBJEXT
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3953 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3954 if ${ac_cv_c_compiler_gnu+:} false; then :
3955   $as_echo_n "(cached) " >&6
3956 else
3957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h.  */
3959
3960 int
3961 main ()
3962 {
3963 #ifndef __GNUC__
3964        choke me
3965 #endif
3966
3967   ;
3968   return 0;
3969 }
3970 _ACEOF
3971 if ac_fn_c_try_compile "$LINENO"; then :
3972   ac_compiler_gnu=yes
3973 else
3974   ac_compiler_gnu=no
3975 fi
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3977 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3978
3979 fi
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3981 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3982 if test $ac_compiler_gnu = yes; then
3983   GCC=yes
3984 else
3985   GCC=
3986 fi
3987 ac_test_CFLAGS=${CFLAGS+set}
3988 ac_save_CFLAGS=$CFLAGS
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3990 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3991 if ${ac_cv_prog_cc_g+:} false; then :
3992   $as_echo_n "(cached) " >&6
3993 else
3994   ac_save_c_werror_flag=$ac_c_werror_flag
3995    ac_c_werror_flag=yes
3996    ac_cv_prog_cc_g=no
3997    CFLAGS="-g"
3998    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h.  */
4000
4001 int
4002 main ()
4003 {
4004
4005   ;
4006   return 0;
4007 }
4008 _ACEOF
4009 if ac_fn_c_try_compile "$LINENO"; then :
4010   ac_cv_prog_cc_g=yes
4011 else
4012   CFLAGS=""
4013       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h.  */
4015
4016 int
4017 main ()
4018 {
4019
4020   ;
4021   return 0;
4022 }
4023 _ACEOF
4024 if ac_fn_c_try_compile "$LINENO"; then :
4025
4026 else
4027   ac_c_werror_flag=$ac_save_c_werror_flag
4028          CFLAGS="-g"
4029          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h.  */
4031
4032 int
4033 main ()
4034 {
4035
4036   ;
4037   return 0;
4038 }
4039 _ACEOF
4040 if ac_fn_c_try_compile "$LINENO"; then :
4041   ac_cv_prog_cc_g=yes
4042 fi
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 fi
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 fi
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048    ac_c_werror_flag=$ac_save_c_werror_flag
4049 fi
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4051 $as_echo "$ac_cv_prog_cc_g" >&6; }
4052 if test "$ac_test_CFLAGS" = set; then
4053   CFLAGS=$ac_save_CFLAGS
4054 elif test $ac_cv_prog_cc_g = yes; then
4055   if test "$GCC" = yes; then
4056     CFLAGS="-g -O2"
4057   else
4058     CFLAGS="-g"
4059   fi
4060 else
4061   if test "$GCC" = yes; then
4062     CFLAGS="-O2"
4063   else
4064     CFLAGS=
4065   fi
4066 fi
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4068 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4069 if ${ac_cv_prog_cc_c89+:} false; then :
4070   $as_echo_n "(cached) " >&6
4071 else
4072   ac_cv_prog_cc_c89=no
4073 ac_save_CC=$CC
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h.  */
4076 #include <stdarg.h>
4077 #include <stdio.h>
4078 struct stat;
4079 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4080 struct buf { int x; };
4081 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4082 static char *e (p, i)
4083      char **p;
4084      int i;
4085 {
4086   return p[i];
4087 }
4088 static char *f (char * (*g) (char **, int), char **p, ...)
4089 {
4090   char *s;
4091   va_list v;
4092   va_start (v,p);
4093   s = g (p, va_arg (v,int));
4094   va_end (v);
4095   return s;
4096 }
4097
4098 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4099    function prototypes and stuff, but not '\xHH' hex character constants.
4100    These don't provoke an error unfortunately, instead are silently treated
4101    as 'x'.  The following induces an error, until -std is added to get
4102    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4103    array size at least.  It's necessary to write '\x00'==0 to get something
4104    that's true only with -std.  */
4105 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4106
4107 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4108    inside strings and character constants.  */
4109 #define FOO(x) 'x'
4110 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4111
4112 int test (int i, double x);
4113 struct s1 {int (*f) (int a);};
4114 struct s2 {int (*f) (double a);};
4115 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4116 int argc;
4117 char **argv;
4118 int
4119 main ()
4120 {
4121 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4122   ;
4123   return 0;
4124 }
4125 _ACEOF
4126 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4127         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4128 do
4129   CC="$ac_save_CC $ac_arg"
4130   if ac_fn_c_try_compile "$LINENO"; then :
4131   ac_cv_prog_cc_c89=$ac_arg
4132 fi
4133 rm -f core conftest.err conftest.$ac_objext
4134   test "x$ac_cv_prog_cc_c89" != "xno" && break
4135 done
4136 rm -f conftest.$ac_ext
4137 CC=$ac_save_CC
4138
4139 fi
4140 # AC_CACHE_VAL
4141 case "x$ac_cv_prog_cc_c89" in
4142   x)
4143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4144 $as_echo "none needed" >&6; } ;;
4145   xno)
4146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4147 $as_echo "unsupported" >&6; } ;;
4148   *)
4149     CC="$CC $ac_cv_prog_cc_c89"
4150     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4151 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4152 esac
4153 if test "x$ac_cv_prog_cc_c89" != xno; then :
4154
4155 fi
4156
4157 ac_ext=c
4158 ac_cpp='$CPP $CPPFLAGS'
4159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4162
4163 depcc="$CC"   am_compiler_list=
4164
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4166 $as_echo_n "checking dependency style of $depcc... " >&6; }
4167 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4168   $as_echo_n "(cached) " >&6
4169 else
4170   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4171   # We make a subdir and do the tests there.  Otherwise we can end up
4172   # making bogus files that we don't know about and never remove.  For
4173   # instance it was reported that on HP-UX the gcc test will end up
4174   # making a dummy file named 'D' -- because '-MD' means "put the output
4175   # in D".
4176   rm -rf conftest.dir
4177   mkdir conftest.dir
4178   # Copy depcomp to subdir because otherwise we won't find it if we're
4179   # using a relative directory.
4180   cp "$am_depcomp" conftest.dir
4181   cd conftest.dir
4182   # We will build objects and dependencies in a subdirectory because
4183   # it helps to detect inapplicable dependency modes.  For instance
4184   # both Tru64's cc and ICC support -MD to output dependencies as a
4185   # side effect of compilation, but ICC will put the dependencies in
4186   # the current directory while Tru64 will put them in the object
4187   # directory.
4188   mkdir sub
4189
4190   am_cv_CC_dependencies_compiler_type=none
4191   if test "$am_compiler_list" = ""; then
4192      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4193   fi
4194   am__universal=false
4195   case " $depcc " in #(
4196      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4197      esac
4198
4199   for depmode in $am_compiler_list; do
4200     # Setup a source with many dependencies, because some compilers
4201     # like to wrap large dependency lists on column 80 (with \), and
4202     # we should not choose a depcomp mode which is confused by this.
4203     #
4204     # We need to recreate these files for each test, as the compiler may
4205     # overwrite some of them when testing with obscure command lines.
4206     # This happens at least with the AIX C compiler.
4207     : > sub/conftest.c
4208     for i in 1 2 3 4 5 6; do
4209       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4210       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4211       # Solaris 10 /bin/sh.
4212       echo '/* dummy */' > sub/conftst$i.h
4213     done
4214     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4215
4216     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4217     # mode.  It turns out that the SunPro C++ compiler does not properly
4218     # handle '-M -o', and we need to detect this.  Also, some Intel
4219     # versions had trouble with output in subdirs.
4220     am__obj=sub/conftest.${OBJEXT-o}
4221     am__minus_obj="-o $am__obj"
4222     case $depmode in
4223     gcc)
4224       # This depmode causes a compiler race in universal mode.
4225       test "$am__universal" = false || continue
4226       ;;
4227     nosideeffect)
4228       # After this tag, mechanisms are not by side-effect, so they'll
4229       # only be used when explicitly requested.
4230       if test "x$enable_dependency_tracking" = xyes; then
4231         continue
4232       else
4233         break
4234       fi
4235       ;;
4236     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4237       # This compiler won't grok '-c -o', but also, the minuso test has
4238       # not run yet.  These depmodes are late enough in the game, and
4239       # so weak that their functioning should not be impacted.
4240       am__obj=conftest.${OBJEXT-o}
4241       am__minus_obj=
4242       ;;
4243     none) break ;;
4244     esac
4245     if depmode=$depmode \
4246        source=sub/conftest.c object=$am__obj \
4247        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4248        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4249          >/dev/null 2>conftest.err &&
4250        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4251        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4252        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4253        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4254       # icc doesn't choke on unknown options, it will just issue warnings
4255       # or remarks (even with -Werror).  So we grep stderr for any message
4256       # that says an option was ignored or not supported.
4257       # When given -MP, icc 7.0 and 7.1 complain thusly:
4258       #   icc: Command line warning: ignoring option '-M'; no argument required
4259       # The diagnosis changed in icc 8.0:
4260       #   icc: Command line remark: option '-MP' not supported
4261       if (grep 'ignoring option' conftest.err ||
4262           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4263         am_cv_CC_dependencies_compiler_type=$depmode
4264         break
4265       fi
4266     fi
4267   done
4268
4269   cd ..
4270   rm -rf conftest.dir
4271 else
4272   am_cv_CC_dependencies_compiler_type=none
4273 fi
4274
4275 fi
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4277 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4278 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4279
4280  if
4281   test "x$enable_dependency_tracking" != xno \
4282   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4283   am__fastdepCC_TRUE=
4284   am__fastdepCC_FALSE='#'
4285 else
4286   am__fastdepCC_TRUE='#'
4287   am__fastdepCC_FALSE=
4288 fi
4289
4290
4291
4292 ac_ext=c
4293 ac_cpp='$CPP $CPPFLAGS'
4294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4298 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4299 # On Suns, sometimes $CPP names a directory.
4300 if test -n "$CPP" && test -d "$CPP"; then
4301   CPP=
4302 fi
4303 if test -z "$CPP"; then
4304   if ${ac_cv_prog_CPP+:} false; then :
4305   $as_echo_n "(cached) " >&6
4306 else
4307       # Double quotes because CPP needs to be expanded
4308     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4309     do
4310       ac_preproc_ok=false
4311 for ac_c_preproc_warn_flag in '' yes
4312 do
4313   # Use a header file that comes with gcc, so configuring glibc
4314   # with a fresh cross-compiler works.
4315   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4316   # <limits.h> exists even on freestanding compilers.
4317   # On the NeXT, cc -E runs the code through the compiler's parser,
4318   # not just through cpp. "Syntax error" is here to catch this case.
4319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h.  */
4321 #ifdef __STDC__
4322 # include <limits.h>
4323 #else
4324 # include <assert.h>
4325 #endif
4326                      Syntax error
4327 _ACEOF
4328 if ac_fn_c_try_cpp "$LINENO"; then :
4329
4330 else
4331   # Broken: fails on valid input.
4332 continue
4333 fi
4334 rm -f conftest.err conftest.i conftest.$ac_ext
4335
4336   # OK, works on sane cases.  Now check whether nonexistent headers
4337   # can be detected and how.
4338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339 /* end confdefs.h.  */
4340 #include <ac_nonexistent.h>
4341 _ACEOF
4342 if ac_fn_c_try_cpp "$LINENO"; then :
4343   # Broken: success on invalid input.
4344 continue
4345 else
4346   # Passes both tests.
4347 ac_preproc_ok=:
4348 break
4349 fi
4350 rm -f conftest.err conftest.i conftest.$ac_ext
4351
4352 done
4353 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4354 rm -f conftest.i conftest.err conftest.$ac_ext
4355 if $ac_preproc_ok; then :
4356   break
4357 fi
4358
4359     done
4360     ac_cv_prog_CPP=$CPP
4361
4362 fi
4363   CPP=$ac_cv_prog_CPP
4364 else
4365   ac_cv_prog_CPP=$CPP
4366 fi
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4368 $as_echo "$CPP" >&6; }
4369 ac_preproc_ok=false
4370 for ac_c_preproc_warn_flag in '' yes
4371 do
4372   # Use a header file that comes with gcc, so configuring glibc
4373   # with a fresh cross-compiler works.
4374   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4375   # <limits.h> exists even on freestanding compilers.
4376   # On the NeXT, cc -E runs the code through the compiler's parser,
4377   # not just through cpp. "Syntax error" is here to catch this case.
4378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h.  */
4380 #ifdef __STDC__
4381 # include <limits.h>
4382 #else
4383 # include <assert.h>
4384 #endif
4385                      Syntax error
4386 _ACEOF
4387 if ac_fn_c_try_cpp "$LINENO"; then :
4388
4389 else
4390   # Broken: fails on valid input.
4391 continue
4392 fi
4393 rm -f conftest.err conftest.i conftest.$ac_ext
4394
4395   # OK, works on sane cases.  Now check whether nonexistent headers
4396   # can be detected and how.
4397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h.  */
4399 #include <ac_nonexistent.h>
4400 _ACEOF
4401 if ac_fn_c_try_cpp "$LINENO"; then :
4402   # Broken: success on invalid input.
4403 continue
4404 else
4405   # Passes both tests.
4406 ac_preproc_ok=:
4407 break
4408 fi
4409 rm -f conftest.err conftest.i conftest.$ac_ext
4410
4411 done
4412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4413 rm -f conftest.i conftest.err conftest.$ac_ext
4414 if $ac_preproc_ok; then :
4415
4416 else
4417   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4419 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4420 See \`config.log' for more details" "$LINENO" 5; }
4421 fi
4422
4423 ac_ext=c
4424 ac_cpp='$CPP $CPPFLAGS'
4425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4428
4429
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4431 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4432 if ${ac_cv_path_GREP+:} false; then :
4433   $as_echo_n "(cached) " >&6
4434 else
4435   if test -z "$GREP"; then
4436   ac_path_GREP_found=false
4437   # Loop through the user's path and test for each of PROGNAME-LIST
4438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4440 do
4441   IFS=$as_save_IFS
4442   test -z "$as_dir" && as_dir=.
4443     for ac_prog in grep ggrep; do
4444     for ac_exec_ext in '' $ac_executable_extensions; do
4445       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4446       as_fn_executable_p "$ac_path_GREP" || continue
4447 # Check for GNU ac_path_GREP and select it if it is found.
4448   # Check for GNU $ac_path_GREP
4449 case `"$ac_path_GREP" --version 2>&1` in
4450 *GNU*)
4451   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4452 *)
4453   ac_count=0
4454   $as_echo_n 0123456789 >"conftest.in"
4455   while :
4456   do
4457     cat "conftest.in" "conftest.in" >"conftest.tmp"
4458     mv "conftest.tmp" "conftest.in"
4459     cp "conftest.in" "conftest.nl"
4460     $as_echo 'GREP' >> "conftest.nl"
4461     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4462     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4463     as_fn_arith $ac_count + 1 && ac_count=$as_val
4464     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4465       # Best one so far, save it but keep looking for a better one
4466       ac_cv_path_GREP="$ac_path_GREP"
4467       ac_path_GREP_max=$ac_count
4468     fi
4469     # 10*(2^10) chars as input seems more than enough
4470     test $ac_count -gt 10 && break
4471   done
4472   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4473 esac
4474
4475       $ac_path_GREP_found && break 3
4476     done
4477   done
4478   done
4479 IFS=$as_save_IFS
4480   if test -z "$ac_cv_path_GREP"; then
4481     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4482   fi
4483 else
4484   ac_cv_path_GREP=$GREP
4485 fi
4486
4487 fi
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4489 $as_echo "$ac_cv_path_GREP" >&6; }
4490  GREP="$ac_cv_path_GREP"
4491
4492
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4494 $as_echo_n "checking for egrep... " >&6; }
4495 if ${ac_cv_path_EGREP+:} false; then :
4496   $as_echo_n "(cached) " >&6
4497 else
4498   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4499    then ac_cv_path_EGREP="$GREP -E"
4500    else
4501      if test -z "$EGREP"; then
4502   ac_path_EGREP_found=false
4503   # Loop through the user's path and test for each of PROGNAME-LIST
4504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4506 do
4507   IFS=$as_save_IFS
4508   test -z "$as_dir" && as_dir=.
4509     for ac_prog in egrep; do
4510     for ac_exec_ext in '' $ac_executable_extensions; do
4511       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4512       as_fn_executable_p "$ac_path_EGREP" || continue
4513 # Check for GNU ac_path_EGREP and select it if it is found.
4514   # Check for GNU $ac_path_EGREP
4515 case `"$ac_path_EGREP" --version 2>&1` in
4516 *GNU*)
4517   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4518 *)
4519   ac_count=0
4520   $as_echo_n 0123456789 >"conftest.in"
4521   while :
4522   do
4523     cat "conftest.in" "conftest.in" >"conftest.tmp"
4524     mv "conftest.tmp" "conftest.in"
4525     cp "conftest.in" "conftest.nl"
4526     $as_echo 'EGREP' >> "conftest.nl"
4527     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4528     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4529     as_fn_arith $ac_count + 1 && ac_count=$as_val
4530     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4531       # Best one so far, save it but keep looking for a better one
4532       ac_cv_path_EGREP="$ac_path_EGREP"
4533       ac_path_EGREP_max=$ac_count
4534     fi
4535     # 10*(2^10) chars as input seems more than enough
4536     test $ac_count -gt 10 && break
4537   done
4538   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4539 esac
4540
4541       $ac_path_EGREP_found && break 3
4542     done
4543   done
4544   done
4545 IFS=$as_save_IFS
4546   if test -z "$ac_cv_path_EGREP"; then
4547     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4548   fi
4549 else
4550   ac_cv_path_EGREP=$EGREP
4551 fi
4552
4553    fi
4554 fi
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4556 $as_echo "$ac_cv_path_EGREP" >&6; }
4557  EGREP="$ac_cv_path_EGREP"
4558
4559
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4561 $as_echo_n "checking for ANSI C header files... " >&6; }
4562 if ${ac_cv_header_stdc+:} false; then :
4563   $as_echo_n "(cached) " >&6
4564 else
4565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h.  */
4567 #include <stdlib.h>
4568 #include <stdarg.h>
4569 #include <string.h>
4570 #include <float.h>
4571
4572 int
4573 main ()
4574 {
4575
4576   ;
4577   return 0;
4578 }
4579 _ACEOF
4580 if ac_fn_c_try_compile "$LINENO"; then :
4581   ac_cv_header_stdc=yes
4582 else
4583   ac_cv_header_stdc=no
4584 fi
4585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4586
4587 if test $ac_cv_header_stdc = yes; then
4588   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h.  */
4591 #include <string.h>
4592
4593 _ACEOF
4594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4595   $EGREP "memchr" >/dev/null 2>&1; then :
4596
4597 else
4598   ac_cv_header_stdc=no
4599 fi
4600 rm -f conftest*
4601
4602 fi
4603
4604 if test $ac_cv_header_stdc = yes; then
4605   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h.  */
4608 #include <stdlib.h>
4609
4610 _ACEOF
4611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4612   $EGREP "free" >/dev/null 2>&1; then :
4613
4614 else
4615   ac_cv_header_stdc=no
4616 fi
4617 rm -f conftest*
4618
4619 fi
4620
4621 if test $ac_cv_header_stdc = yes; then
4622   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4623   if test "$cross_compiling" = yes; then :
4624   :
4625 else
4626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h.  */
4628 #include <ctype.h>
4629 #include <stdlib.h>
4630 #if ((' ' & 0x0FF) == 0x020)
4631 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4632 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4633 #else
4634 # define ISLOWER(c) \
4635                    (('a' <= (c) && (c) <= 'i') \
4636                      || ('j' <= (c) && (c) <= 'r') \
4637                      || ('s' <= (c) && (c) <= 'z'))
4638 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4639 #endif
4640
4641 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4642 int
4643 main ()
4644 {
4645   int i;
4646   for (i = 0; i < 256; i++)
4647     if (XOR (islower (i), ISLOWER (i))
4648         || toupper (i) != TOUPPER (i))
4649       return 2;
4650   return 0;
4651 }
4652 _ACEOF
4653 if ac_fn_c_try_run "$LINENO"; then :
4654
4655 else
4656   ac_cv_header_stdc=no
4657 fi
4658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4659   conftest.$ac_objext conftest.beam conftest.$ac_ext
4660 fi
4661
4662 fi
4663 fi
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4665 $as_echo "$ac_cv_header_stdc" >&6; }
4666 if test $ac_cv_header_stdc = yes; then
4667
4668 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4669
4670 fi
4671
4672 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4673 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4674                   inttypes.h stdint.h unistd.h
4675 do :
4676   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4677 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4678 "
4679 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4680   cat >>confdefs.h <<_ACEOF
4681 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4682 _ACEOF
4683
4684 fi
4685
4686 done
4687
4688
4689
4690   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4691 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4692   MINIX=yes
4693 else
4694   MINIX=
4695 fi
4696
4697
4698   if test "$MINIX" = yes; then
4699
4700 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4701
4702
4703 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4704
4705
4706 $as_echo "#define _MINIX 1" >>confdefs.h
4707
4708   fi
4709
4710
4711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4712 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4713 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4714   $as_echo_n "(cached) " >&6
4715 else
4716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h.  */
4718
4719 #         define __EXTENSIONS__ 1
4720           $ac_includes_default
4721 int
4722 main ()
4723 {
4724
4725   ;
4726   return 0;
4727 }
4728 _ACEOF
4729 if ac_fn_c_try_compile "$LINENO"; then :
4730   ac_cv_safe_to_define___extensions__=yes
4731 else
4732   ac_cv_safe_to_define___extensions__=no
4733 fi
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735 fi
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4737 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4738   test $ac_cv_safe_to_define___extensions__ = yes &&
4739     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4740
4741   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4742
4743   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4744
4745   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4746
4747   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4748
4749
4750
4751
4752 ac_ext=c
4753 ac_cpp='$CPP $CPPFLAGS'
4754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4757 if test -n "$ac_tool_prefix"; then
4758   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4759 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761 $as_echo_n "checking for $ac_word... " >&6; }
4762 if ${ac_cv_prog_CC+:} false; then :
4763   $as_echo_n "(cached) " >&6
4764 else
4765   if test -n "$CC"; then
4766   ac_cv_prog_CC="$CC" # Let the user override the test.
4767 else
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 for as_dir in $PATH
4770 do
4771   IFS=$as_save_IFS
4772   test -z "$as_dir" && as_dir=.
4773     for ac_exec_ext in '' $ac_executable_extensions; do
4774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4775     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777     break 2
4778   fi
4779 done
4780   done
4781 IFS=$as_save_IFS
4782
4783 fi
4784 fi
4785 CC=$ac_cv_prog_CC
4786 if test -n "$CC"; then
4787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4788 $as_echo "$CC" >&6; }
4789 else
4790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791 $as_echo "no" >&6; }
4792 fi
4793
4794
4795 fi
4796 if test -z "$ac_cv_prog_CC"; then
4797   ac_ct_CC=$CC
4798   # Extract the first word of "gcc", so it can be a program name with args.
4799 set dummy gcc; ac_word=$2
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4801 $as_echo_n "checking for $ac_word... " >&6; }
4802 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4803   $as_echo_n "(cached) " >&6
4804 else
4805   if test -n "$ac_ct_CC"; then
4806   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4807 else
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 for as_dir in $PATH
4810 do
4811   IFS=$as_save_IFS
4812   test -z "$as_dir" && as_dir=.
4813     for ac_exec_ext in '' $ac_executable_extensions; do
4814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4815     ac_cv_prog_ac_ct_CC="gcc"
4816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817     break 2
4818   fi
4819 done
4820   done
4821 IFS=$as_save_IFS
4822
4823 fi
4824 fi
4825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4826 if test -n "$ac_ct_CC"; then
4827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4828 $as_echo "$ac_ct_CC" >&6; }
4829 else
4830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4832 fi
4833
4834   if test "x$ac_ct_CC" = x; then
4835     CC=""
4836   else
4837     case $cross_compiling:$ac_tool_warned in
4838 yes:)
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4841 ac_tool_warned=yes ;;
4842 esac
4843     CC=$ac_ct_CC
4844   fi
4845 else
4846   CC="$ac_cv_prog_CC"
4847 fi
4848
4849 if test -z "$CC"; then
4850           if test -n "$ac_tool_prefix"; then
4851     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4852 set dummy ${ac_tool_prefix}cc; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if ${ac_cv_prog_CC+:} false; then :
4856   $as_echo_n "(cached) " >&6
4857 else
4858   if test -n "$CC"; then
4859   ac_cv_prog_CC="$CC" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864   IFS=$as_save_IFS
4865   test -z "$as_dir" && as_dir=.
4866     for ac_exec_ext in '' $ac_executable_extensions; do
4867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4868     ac_cv_prog_CC="${ac_tool_prefix}cc"
4869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870     break 2
4871   fi
4872 done
4873   done
4874 IFS=$as_save_IFS
4875
4876 fi
4877 fi
4878 CC=$ac_cv_prog_CC
4879 if test -n "$CC"; then
4880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4881 $as_echo "$CC" >&6; }
4882 else
4883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4885 fi
4886
4887
4888   fi
4889 fi
4890 if test -z "$CC"; then
4891   # Extract the first word of "cc", so it can be a program name with args.
4892 set dummy cc; ac_word=$2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if ${ac_cv_prog_CC+:} false; then :
4896   $as_echo_n "(cached) " >&6
4897 else
4898   if test -n "$CC"; then
4899   ac_cv_prog_CC="$CC" # Let the user override the test.
4900 else
4901   ac_prog_rejected=no
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4904 do
4905   IFS=$as_save_IFS
4906   test -z "$as_dir" && as_dir=.
4907     for ac_exec_ext in '' $ac_executable_extensions; do
4908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4909     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4910        ac_prog_rejected=yes
4911        continue
4912      fi
4913     ac_cv_prog_CC="cc"
4914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915     break 2
4916   fi
4917 done
4918   done
4919 IFS=$as_save_IFS
4920
4921 if test $ac_prog_rejected = yes; then
4922   # We found a bogon in the path, so make sure we never use it.
4923   set dummy $ac_cv_prog_CC
4924   shift
4925   if test $# != 0; then
4926     # We chose a different compiler from the bogus one.
4927     # However, it has the same basename, so the bogon will be chosen
4928     # first if we set CC to just the basename; use the full file name.
4929     shift
4930     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4931   fi
4932 fi
4933 fi
4934 fi
4935 CC=$ac_cv_prog_CC
4936 if test -n "$CC"; then
4937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4938 $as_echo "$CC" >&6; }
4939 else
4940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941 $as_echo "no" >&6; }
4942 fi
4943
4944
4945 fi
4946 if test -z "$CC"; then
4947   if test -n "$ac_tool_prefix"; then
4948   for ac_prog in cl.exe
4949   do
4950     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4951 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if ${ac_cv_prog_CC+:} false; then :
4955   $as_echo_n "(cached) " >&6
4956 else
4957   if test -n "$CC"; then
4958   ac_cv_prog_CC="$CC" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4962 do
4963   IFS=$as_save_IFS
4964   test -z "$as_dir" && as_dir=.
4965     for ac_exec_ext in '' $ac_executable_extensions; do
4966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4967     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969     break 2
4970   fi
4971 done
4972   done
4973 IFS=$as_save_IFS
4974
4975 fi
4976 fi
4977 CC=$ac_cv_prog_CC
4978 if test -n "$CC"; then
4979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4980 $as_echo "$CC" >&6; }
4981 else
4982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4984 fi
4985
4986
4987     test -n "$CC" && break
4988   done
4989 fi
4990 if test -z "$CC"; then
4991   ac_ct_CC=$CC
4992   for ac_prog in cl.exe
4993 do
4994   # Extract the first word of "$ac_prog", so it can be a program name with args.
4995 set dummy $ac_prog; ac_word=$2
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 $as_echo_n "checking for $ac_word... " >&6; }
4998 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4999   $as_echo_n "(cached) " >&6
5000 else
5001   if test -n "$ac_ct_CC"; then
5002   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5003 else
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH
5006 do
5007   IFS=$as_save_IFS
5008   test -z "$as_dir" && as_dir=.
5009     for ac_exec_ext in '' $ac_executable_extensions; do
5010   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5011     ac_cv_prog_ac_ct_CC="$ac_prog"
5012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013     break 2
5014   fi
5015 done
5016   done
5017 IFS=$as_save_IFS
5018
5019 fi
5020 fi
5021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5022 if test -n "$ac_ct_CC"; then
5023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5024 $as_echo "$ac_ct_CC" >&6; }
5025 else
5026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5028 fi
5029
5030
5031   test -n "$ac_ct_CC" && break
5032 done
5033
5034   if test "x$ac_ct_CC" = x; then
5035     CC=""
5036   else
5037     case $cross_compiling:$ac_tool_warned in
5038 yes:)
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5041 ac_tool_warned=yes ;;
5042 esac
5043     CC=$ac_ct_CC
5044   fi
5045 fi
5046
5047 fi
5048
5049
5050 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5052 as_fn_error $? "no acceptable C compiler found in \$PATH
5053 See \`config.log' for more details" "$LINENO" 5; }
5054
5055 # Provide some information about the compiler.
5056 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5057 set X $ac_compile
5058 ac_compiler=$2
5059 for ac_option in --version -v -V -qversion; do
5060   { { ac_try="$ac_compiler $ac_option >&5"
5061 case "(($ac_try" in
5062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063   *) ac_try_echo=$ac_try;;
5064 esac
5065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5066 $as_echo "$ac_try_echo"; } >&5
5067   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5068   ac_status=$?
5069   if test -s conftest.err; then
5070     sed '10a\
5071 ... rest of stderr output deleted ...
5072          10q' conftest.err >conftest.er1
5073     cat conftest.er1 >&5
5074   fi
5075   rm -f conftest.er1 conftest.err
5076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5077   test $ac_status = 0; }
5078 done
5079
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5081 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5082 if ${ac_cv_c_compiler_gnu+:} false; then :
5083   $as_echo_n "(cached) " >&6
5084 else
5085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h.  */
5087
5088 int
5089 main ()
5090 {
5091 #ifndef __GNUC__
5092        choke me
5093 #endif
5094
5095   ;
5096   return 0;
5097 }
5098 _ACEOF
5099 if ac_fn_c_try_compile "$LINENO"; then :
5100   ac_compiler_gnu=yes
5101 else
5102   ac_compiler_gnu=no
5103 fi
5104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5106
5107 fi
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5109 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5110 if test $ac_compiler_gnu = yes; then
5111   GCC=yes
5112 else
5113   GCC=
5114 fi
5115 ac_test_CFLAGS=${CFLAGS+set}
5116 ac_save_CFLAGS=$CFLAGS
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5118 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5119 if ${ac_cv_prog_cc_g+:} false; then :
5120   $as_echo_n "(cached) " >&6
5121 else
5122   ac_save_c_werror_flag=$ac_c_werror_flag
5123    ac_c_werror_flag=yes
5124    ac_cv_prog_cc_g=no
5125    CFLAGS="-g"
5126    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h.  */
5128
5129 int
5130 main ()
5131 {
5132
5133   ;
5134   return 0;
5135 }
5136 _ACEOF
5137 if ac_fn_c_try_compile "$LINENO"; then :
5138   ac_cv_prog_cc_g=yes
5139 else
5140   CFLAGS=""
5141       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h.  */
5143
5144 int
5145 main ()
5146 {
5147
5148   ;
5149   return 0;
5150 }
5151 _ACEOF
5152 if ac_fn_c_try_compile "$LINENO"; then :
5153
5154 else
5155   ac_c_werror_flag=$ac_save_c_werror_flag
5156          CFLAGS="-g"
5157          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h.  */
5159
5160 int
5161 main ()
5162 {
5163
5164   ;
5165   return 0;
5166 }
5167 _ACEOF
5168 if ac_fn_c_try_compile "$LINENO"; then :
5169   ac_cv_prog_cc_g=yes
5170 fi
5171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5172 fi
5173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5174 fi
5175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5176    ac_c_werror_flag=$ac_save_c_werror_flag
5177 fi
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5179 $as_echo "$ac_cv_prog_cc_g" >&6; }
5180 if test "$ac_test_CFLAGS" = set; then
5181   CFLAGS=$ac_save_CFLAGS
5182 elif test $ac_cv_prog_cc_g = yes; then
5183   if test "$GCC" = yes; then
5184     CFLAGS="-g -O2"
5185   else
5186     CFLAGS="-g"
5187   fi
5188 else
5189   if test "$GCC" = yes; then
5190     CFLAGS="-O2"
5191   else
5192     CFLAGS=
5193   fi
5194 fi
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5196 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5197 if ${ac_cv_prog_cc_c89+:} false; then :
5198   $as_echo_n "(cached) " >&6
5199 else
5200   ac_cv_prog_cc_c89=no
5201 ac_save_CC=$CC
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h.  */
5204 #include <stdarg.h>
5205 #include <stdio.h>
5206 struct stat;
5207 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5208 struct buf { int x; };
5209 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5210 static char *e (p, i)
5211      char **p;
5212      int i;
5213 {
5214   return p[i];
5215 }
5216 static char *f (char * (*g) (char **, int), char **p, ...)
5217 {
5218   char *s;
5219   va_list v;
5220   va_start (v,p);
5221   s = g (p, va_arg (v,int));
5222   va_end (v);
5223   return s;
5224 }
5225
5226 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5227    function prototypes and stuff, but not '\xHH' hex character constants.
5228    These don't provoke an error unfortunately, instead are silently treated
5229    as 'x'.  The following induces an error, until -std is added to get
5230    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5231    array size at least.  It's necessary to write '\x00'==0 to get something
5232    that's true only with -std.  */
5233 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5234
5235 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5236    inside strings and character constants.  */
5237 #define FOO(x) 'x'
5238 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5239
5240 int test (int i, double x);
5241 struct s1 {int (*f) (int a);};
5242 struct s2 {int (*f) (double a);};
5243 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5244 int argc;
5245 char **argv;
5246 int
5247 main ()
5248 {
5249 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5250   ;
5251   return 0;
5252 }
5253 _ACEOF
5254 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5255         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5256 do
5257   CC="$ac_save_CC $ac_arg"
5258   if ac_fn_c_try_compile "$LINENO"; then :
5259   ac_cv_prog_cc_c89=$ac_arg
5260 fi
5261 rm -f core conftest.err conftest.$ac_objext
5262   test "x$ac_cv_prog_cc_c89" != "xno" && break
5263 done
5264 rm -f conftest.$ac_ext
5265 CC=$ac_save_CC
5266
5267 fi
5268 # AC_CACHE_VAL
5269 case "x$ac_cv_prog_cc_c89" in
5270   x)
5271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5272 $as_echo "none needed" >&6; } ;;
5273   xno)
5274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5275 $as_echo "unsupported" >&6; } ;;
5276   *)
5277     CC="$CC $ac_cv_prog_cc_c89"
5278     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5279 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5280 esac
5281 if test "x$ac_cv_prog_cc_c89" != xno; then :
5282
5283 fi
5284
5285 ac_ext=c
5286 ac_cpp='$CPP $CPPFLAGS'
5287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5290
5291 depcc="$CC"   am_compiler_list=
5292
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5294 $as_echo_n "checking dependency style of $depcc... " >&6; }
5295 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5296   $as_echo_n "(cached) " >&6
5297 else
5298   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5299   # We make a subdir and do the tests there.  Otherwise we can end up
5300   # making bogus files that we don't know about and never remove.  For
5301   # instance it was reported that on HP-UX the gcc test will end up
5302   # making a dummy file named 'D' -- because '-MD' means "put the output
5303   # in D".
5304   rm -rf conftest.dir
5305   mkdir conftest.dir
5306   # Copy depcomp to subdir because otherwise we won't find it if we're
5307   # using a relative directory.
5308   cp "$am_depcomp" conftest.dir
5309   cd conftest.dir
5310   # We will build objects and dependencies in a subdirectory because
5311   # it helps to detect inapplicable dependency modes.  For instance
5312   # both Tru64's cc and ICC support -MD to output dependencies as a
5313   # side effect of compilation, but ICC will put the dependencies in
5314   # the current directory while Tru64 will put them in the object
5315   # directory.
5316   mkdir sub
5317
5318   am_cv_CC_dependencies_compiler_type=none
5319   if test "$am_compiler_list" = ""; then
5320      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5321   fi
5322   am__universal=false
5323   case " $depcc " in #(
5324      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5325      esac
5326
5327   for depmode in $am_compiler_list; do
5328     # Setup a source with many dependencies, because some compilers
5329     # like to wrap large dependency lists on column 80 (with \), and
5330     # we should not choose a depcomp mode which is confused by this.
5331     #
5332     # We need to recreate these files for each test, as the compiler may
5333     # overwrite some of them when testing with obscure command lines.
5334     # This happens at least with the AIX C compiler.
5335     : > sub/conftest.c
5336     for i in 1 2 3 4 5 6; do
5337       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5338       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5339       # Solaris 10 /bin/sh.
5340       echo '/* dummy */' > sub/conftst$i.h
5341     done
5342     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5343
5344     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5345     # mode.  It turns out that the SunPro C++ compiler does not properly
5346     # handle '-M -o', and we need to detect this.  Also, some Intel
5347     # versions had trouble with output in subdirs.
5348     am__obj=sub/conftest.${OBJEXT-o}
5349     am__minus_obj="-o $am__obj"
5350     case $depmode in
5351     gcc)
5352       # This depmode causes a compiler race in universal mode.
5353       test "$am__universal" = false || continue
5354       ;;
5355     nosideeffect)
5356       # After this tag, mechanisms are not by side-effect, so they'll
5357       # only be used when explicitly requested.
5358       if test "x$enable_dependency_tracking" = xyes; then
5359         continue
5360       else
5361         break
5362       fi
5363       ;;
5364     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5365       # This compiler won't grok '-c -o', but also, the minuso test has
5366       # not run yet.  These depmodes are late enough in the game, and
5367       # so weak that their functioning should not be impacted.
5368       am__obj=conftest.${OBJEXT-o}
5369       am__minus_obj=
5370       ;;
5371     none) break ;;
5372     esac
5373     if depmode=$depmode \
5374        source=sub/conftest.c object=$am__obj \
5375        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5376        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5377          >/dev/null 2>conftest.err &&
5378        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5379        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5380        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5381        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5382       # icc doesn't choke on unknown options, it will just issue warnings
5383       # or remarks (even with -Werror).  So we grep stderr for any message
5384       # that says an option was ignored or not supported.
5385       # When given -MP, icc 7.0 and 7.1 complain thusly:
5386       #   icc: Command line warning: ignoring option '-M'; no argument required
5387       # The diagnosis changed in icc 8.0:
5388       #   icc: Command line remark: option '-MP' not supported
5389       if (grep 'ignoring option' conftest.err ||
5390           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5391         am_cv_CC_dependencies_compiler_type=$depmode
5392         break
5393       fi
5394     fi
5395   done
5396
5397   cd ..
5398   rm -rf conftest.dir
5399 else
5400   am_cv_CC_dependencies_compiler_type=none
5401 fi
5402
5403 fi
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5405 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5406 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5407
5408  if
5409   test "x$enable_dependency_tracking" != xno \
5410   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5411   am__fastdepCC_TRUE=
5412   am__fastdepCC_FALSE='#'
5413 else
5414   am__fastdepCC_TRUE='#'
5415   am__fastdepCC_FALSE=
5416 fi
5417
5418
5419
5420 if test "x$CC" != xcc; then
5421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5422 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5423 else
5424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5425 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5426 fi
5427 set dummy $CC; ac_cc=`$as_echo "$2" |
5428                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5429 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5430   $as_echo_n "(cached) " >&6
5431 else
5432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h.  */
5434
5435 int
5436 main ()
5437 {
5438
5439   ;
5440   return 0;
5441 }
5442 _ACEOF
5443 # Make sure it works both with $CC and with simple cc.
5444 # We do the test twice because some compilers refuse to overwrite an
5445 # existing .o file with -o, though they will create one.
5446 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5447 rm -f conftest2.*
5448 if { { case "(($ac_try" in
5449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450   *) ac_try_echo=$ac_try;;
5451 esac
5452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5453 $as_echo "$ac_try_echo"; } >&5
5454   (eval "$ac_try") 2>&5
5455   ac_status=$?
5456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5457   test $ac_status = 0; } &&
5458    test -f conftest2.$ac_objext && { { case "(($ac_try" in
5459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460   *) ac_try_echo=$ac_try;;
5461 esac
5462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5463 $as_echo "$ac_try_echo"; } >&5
5464   (eval "$ac_try") 2>&5
5465   ac_status=$?
5466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5467   test $ac_status = 0; };
5468 then
5469   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5470   if test "x$CC" != xcc; then
5471     # Test first that cc exists at all.
5472     if { ac_try='cc -c conftest.$ac_ext >&5'
5473   { { case "(($ac_try" in
5474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475   *) ac_try_echo=$ac_try;;
5476 esac
5477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5478 $as_echo "$ac_try_echo"; } >&5
5479   (eval "$ac_try") 2>&5
5480   ac_status=$?
5481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5482   test $ac_status = 0; }; }; then
5483       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5484       rm -f conftest2.*
5485       if { { case "(($ac_try" in
5486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487   *) ac_try_echo=$ac_try;;
5488 esac
5489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5490 $as_echo "$ac_try_echo"; } >&5
5491   (eval "$ac_try") 2>&5
5492   ac_status=$?
5493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5494   test $ac_status = 0; } &&
5495          test -f conftest2.$ac_objext && { { case "(($ac_try" in
5496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497   *) ac_try_echo=$ac_try;;
5498 esac
5499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5500 $as_echo "$ac_try_echo"; } >&5
5501   (eval "$ac_try") 2>&5
5502   ac_status=$?
5503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5504   test $ac_status = 0; };
5505       then
5506         # cc works too.
5507         :
5508       else
5509         # cc exists but doesn't like -o.
5510         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5511       fi
5512     fi
5513   fi
5514 else
5515   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5516 fi
5517 rm -f core conftest*
5518
5519 fi
5520 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5522 $as_echo "yes" >&6; }
5523 else
5524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5526
5527 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5528
5529 fi
5530
5531 # FIXME: we rely on the cache variable name because
5532 # there is no other way.
5533 set dummy $CC
5534 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5535 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5536 if test "$am_t" != yes; then
5537    # Losing compiler, so override with the script.
5538    # FIXME: It is wrong to rewrite CC.
5539    # But if we don't then we get into trouble of one sort or another.
5540    # A longer-term fix would be to have automake use am__CC in this case,
5541    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5542    CC="$am_aux_dir/compile $CC"
5543 fi
5544
5545
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5547 $as_echo_n "checking whether ln -s works... " >&6; }
5548 LN_S=$as_ln_s
5549 if test "$LN_S" = "ln -s"; then
5550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5551 $as_echo "yes" >&6; }
5552 else
5553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5554 $as_echo "no, using $LN_S" >&6; }
5555 fi
5556
5557
5558
5559
5560
5561
5562
5563
5564 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5565         if test -n "$ac_tool_prefix"; then
5566   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5567 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5569 $as_echo_n "checking for $ac_word... " >&6; }
5570 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5571   $as_echo_n "(cached) " >&6
5572 else
5573   case $PKG_CONFIG in
5574   [\\/]* | ?:[\\/]*)
5575   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5576   ;;
5577   *)
5578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 for as_dir in $PATH
5580 do
5581   IFS=$as_save_IFS
5582   test -z "$as_dir" && as_dir=.
5583     for ac_exec_ext in '' $ac_executable_extensions; do
5584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5585     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587     break 2
5588   fi
5589 done
5590   done
5591 IFS=$as_save_IFS
5592
5593   ;;
5594 esac
5595 fi
5596 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5597 if test -n "$PKG_CONFIG"; then
5598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5599 $as_echo "$PKG_CONFIG" >&6; }
5600 else
5601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5603 fi
5604
5605
5606 fi
5607 if test -z "$ac_cv_path_PKG_CONFIG"; then
5608   ac_pt_PKG_CONFIG=$PKG_CONFIG
5609   # Extract the first word of "pkg-config", so it can be a program name with args.
5610 set dummy pkg-config; ac_word=$2
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5614   $as_echo_n "(cached) " >&6
5615 else
5616   case $ac_pt_PKG_CONFIG in
5617   [\\/]* | ?:[\\/]*)
5618   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5619   ;;
5620   *)
5621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH
5623 do
5624   IFS=$as_save_IFS
5625   test -z "$as_dir" && as_dir=.
5626     for ac_exec_ext in '' $ac_executable_extensions; do
5627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5628     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630     break 2
5631   fi
5632 done
5633   done
5634 IFS=$as_save_IFS
5635
5636   ;;
5637 esac
5638 fi
5639 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5640 if test -n "$ac_pt_PKG_CONFIG"; then
5641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5642 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5643 else
5644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645 $as_echo "no" >&6; }
5646 fi
5647
5648   if test "x$ac_pt_PKG_CONFIG" = x; then
5649     PKG_CONFIG=""
5650   else
5651     case $cross_compiling:$ac_tool_warned in
5652 yes:)
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5655 ac_tool_warned=yes ;;
5656 esac
5657     PKG_CONFIG=$ac_pt_PKG_CONFIG
5658   fi
5659 else
5660   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5661 fi
5662
5663 fi
5664 if test -n "$PKG_CONFIG"; then
5665         _pkg_min_version=0.9.0
5666         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5667 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5668         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5669                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5670 $as_echo "yes" >&6; }
5671         else
5672                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673 $as_echo "no" >&6; }
5674                 PKG_CONFIG=""
5675         fi
5676 fi
5677
5678 case `pwd` in
5679   *\ * | *\     *)
5680     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5681 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5682 esac
5683
5684
5685
5686 macro_version='2.4.2'
5687 macro_revision='1.3337'
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701 ltmain="$ac_aux_dir/ltmain.sh"
5702
5703 # Backslashify metacharacters that are still active within
5704 # double-quoted strings.
5705 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5706
5707 # Same as above, but do not quote variable references.
5708 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5709
5710 # Sed substitution to delay expansion of an escaped shell variable in a
5711 # double_quote_subst'ed string.
5712 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5713
5714 # Sed substitution to delay expansion of an escaped single quote.
5715 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5716
5717 # Sed substitution to avoid accidental globbing in evaled expressions
5718 no_glob_subst='s/\*/\\\*/g'
5719
5720 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5721 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5722 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5723
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5725 $as_echo_n "checking how to print strings... " >&6; }
5726 # Test print first, because it will be a builtin if present.
5727 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5728    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5729   ECHO='print -r --'
5730 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5731   ECHO='printf %s\n'
5732 else
5733   # Use this function as a fallback that always works.
5734   func_fallback_echo ()
5735   {
5736     eval 'cat <<_LTECHO_EOF
5737 $1
5738 _LTECHO_EOF'
5739   }
5740   ECHO='func_fallback_echo'
5741 fi
5742
5743 # func_echo_all arg...
5744 # Invoke $ECHO with all args, space-separated.
5745 func_echo_all ()
5746 {
5747     $ECHO ""
5748 }
5749
5750 case "$ECHO" in
5751   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5752 $as_echo "printf" >&6; } ;;
5753   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5754 $as_echo "print -r" >&6; } ;;
5755   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5756 $as_echo "cat" >&6; } ;;
5757 esac
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5773 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5774 if ${ac_cv_path_SED+:} false; then :
5775   $as_echo_n "(cached) " >&6
5776 else
5777             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5778      for ac_i in 1 2 3 4 5 6 7; do
5779        ac_script="$ac_script$as_nl$ac_script"
5780      done
5781      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5782      { ac_script=; unset ac_script;}
5783      if test -z "$SED"; then
5784   ac_path_SED_found=false
5785   # Loop through the user's path and test for each of PROGNAME-LIST
5786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 for as_dir in $PATH
5788 do
5789   IFS=$as_save_IFS
5790   test -z "$as_dir" && as_dir=.
5791     for ac_prog in sed gsed; do
5792     for ac_exec_ext in '' $ac_executable_extensions; do
5793       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5794       as_fn_executable_p "$ac_path_SED" || continue
5795 # Check for GNU ac_path_SED and select it if it is found.
5796   # Check for GNU $ac_path_SED
5797 case `"$ac_path_SED" --version 2>&1` in
5798 *GNU*)
5799   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5800 *)
5801   ac_count=0
5802   $as_echo_n 0123456789 >"conftest.in"
5803   while :
5804   do
5805     cat "conftest.in" "conftest.in" >"conftest.tmp"
5806     mv "conftest.tmp" "conftest.in"
5807     cp "conftest.in" "conftest.nl"
5808     $as_echo '' >> "conftest.nl"
5809     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5810     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5811     as_fn_arith $ac_count + 1 && ac_count=$as_val
5812     if test $ac_count -gt ${ac_path_SED_max-0}; then
5813       # Best one so far, save it but keep looking for a better one
5814       ac_cv_path_SED="$ac_path_SED"
5815       ac_path_SED_max=$ac_count
5816     fi
5817     # 10*(2^10) chars as input seems more than enough
5818     test $ac_count -gt 10 && break
5819   done
5820   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5821 esac
5822
5823       $ac_path_SED_found && break 3
5824     done
5825   done
5826   done
5827 IFS=$as_save_IFS
5828   if test -z "$ac_cv_path_SED"; then
5829     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5830   fi
5831 else
5832   ac_cv_path_SED=$SED
5833 fi
5834
5835 fi
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5837 $as_echo "$ac_cv_path_SED" >&6; }
5838  SED="$ac_cv_path_SED"
5839   rm -f conftest.sed
5840
5841 test -z "$SED" && SED=sed
5842 Xsed="$SED -e 1s/^X//"
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5855 $as_echo_n "checking for fgrep... " >&6; }
5856 if ${ac_cv_path_FGREP+:} false; then :
5857   $as_echo_n "(cached) " >&6
5858 else
5859   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5860    then ac_cv_path_FGREP="$GREP -F"
5861    else
5862      if test -z "$FGREP"; then
5863   ac_path_FGREP_found=false
5864   # Loop through the user's path and test for each of PROGNAME-LIST
5865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5867 do
5868   IFS=$as_save_IFS
5869   test -z "$as_dir" && as_dir=.
5870     for ac_prog in fgrep; do
5871     for ac_exec_ext in '' $ac_executable_extensions; do
5872       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5873       as_fn_executable_p "$ac_path_FGREP" || continue
5874 # Check for GNU ac_path_FGREP and select it if it is found.
5875   # Check for GNU $ac_path_FGREP
5876 case `"$ac_path_FGREP" --version 2>&1` in
5877 *GNU*)
5878   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5879 *)
5880   ac_count=0
5881   $as_echo_n 0123456789 >"conftest.in"
5882   while :
5883   do
5884     cat "conftest.in" "conftest.in" >"conftest.tmp"
5885     mv "conftest.tmp" "conftest.in"
5886     cp "conftest.in" "conftest.nl"
5887     $as_echo 'FGREP' >> "conftest.nl"
5888     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5889     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5890     as_fn_arith $ac_count + 1 && ac_count=$as_val
5891     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5892       # Best one so far, save it but keep looking for a better one
5893       ac_cv_path_FGREP="$ac_path_FGREP"
5894       ac_path_FGREP_max=$ac_count
5895     fi
5896     # 10*(2^10) chars as input seems more than enough
5897     test $ac_count -gt 10 && break
5898   done
5899   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5900 esac
5901
5902       $ac_path_FGREP_found && break 3
5903     done
5904   done
5905   done
5906 IFS=$as_save_IFS
5907   if test -z "$ac_cv_path_FGREP"; then
5908     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5909   fi
5910 else
5911   ac_cv_path_FGREP=$FGREP
5912 fi
5913
5914    fi
5915 fi
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5917 $as_echo "$ac_cv_path_FGREP" >&6; }
5918  FGREP="$ac_cv_path_FGREP"
5919
5920
5921 test -z "$GREP" && GREP=grep
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941 # Check whether --with-gnu-ld was given.
5942 if test "${with_gnu_ld+set}" = set; then :
5943   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5944 else
5945   with_gnu_ld=no
5946 fi
5947
5948 ac_prog=ld
5949 if test "$GCC" = yes; then
5950   # Check if gcc -print-prog-name=ld gives a path.
5951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5952 $as_echo_n "checking for ld used by $CC... " >&6; }
5953   case $host in
5954   *-*-mingw*)
5955     # gcc leaves a trailing carriage return which upsets mingw
5956     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5957   *)
5958     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5959   esac
5960   case $ac_prog in
5961     # Accept absolute paths.
5962     [\\/]* | ?:[\\/]*)
5963       re_direlt='/[^/][^/]*/\.\./'
5964       # Canonicalize the pathname of ld
5965       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5966       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5967         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5968       done
5969       test -z "$LD" && LD="$ac_prog"
5970       ;;
5971   "")
5972     # If it fails, then pretend we aren't using GCC.
5973     ac_prog=ld
5974     ;;
5975   *)
5976     # If it is relative, then search for the first ld in PATH.
5977     with_gnu_ld=unknown
5978     ;;
5979   esac
5980 elif test "$with_gnu_ld" = yes; then
5981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5982 $as_echo_n "checking for GNU ld... " >&6; }
5983 else
5984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5985 $as_echo_n "checking for non-GNU ld... " >&6; }
5986 fi
5987 if ${lt_cv_path_LD+:} false; then :
5988   $as_echo_n "(cached) " >&6
5989 else
5990   if test -z "$LD"; then
5991   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5992   for ac_dir in $PATH; do
5993     IFS="$lt_save_ifs"
5994     test -z "$ac_dir" && ac_dir=.
5995     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5996       lt_cv_path_LD="$ac_dir/$ac_prog"
5997       # Check to see if the program is GNU ld.  I'd rather use --version,
5998       # but apparently some variants of GNU ld only accept -v.
5999       # Break only if it was the GNU/non-GNU ld that we prefer.
6000       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6001       *GNU* | *'with BFD'*)
6002         test "$with_gnu_ld" != no && break
6003         ;;
6004       *)
6005         test "$with_gnu_ld" != yes && break
6006         ;;
6007       esac
6008     fi
6009   done
6010   IFS="$lt_save_ifs"
6011 else
6012   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6013 fi
6014 fi
6015
6016 LD="$lt_cv_path_LD"
6017 if test -n "$LD"; then
6018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6019 $as_echo "$LD" >&6; }
6020 else
6021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022 $as_echo "no" >&6; }
6023 fi
6024 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6026 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6027 if ${lt_cv_prog_gnu_ld+:} false; then :
6028   $as_echo_n "(cached) " >&6
6029 else
6030   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6031 case `$LD -v 2>&1 </dev/null` in
6032 *GNU* | *'with BFD'*)
6033   lt_cv_prog_gnu_ld=yes
6034   ;;
6035 *)
6036   lt_cv_prog_gnu_ld=no
6037   ;;
6038 esac
6039 fi
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6041 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6042 with_gnu_ld=$lt_cv_prog_gnu_ld
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6053 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6054 if ${lt_cv_path_NM+:} false; then :
6055   $as_echo_n "(cached) " >&6
6056 else
6057   if test -n "$NM"; then
6058   # Let the user override the test.
6059   lt_cv_path_NM="$NM"
6060 else
6061   lt_nm_to_check="${ac_tool_prefix}nm"
6062   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6063     lt_nm_to_check="$lt_nm_to_check nm"
6064   fi
6065   for lt_tmp_nm in $lt_nm_to_check; do
6066     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6067     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6068       IFS="$lt_save_ifs"
6069       test -z "$ac_dir" && ac_dir=.
6070       tmp_nm="$ac_dir/$lt_tmp_nm"
6071       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6072         # Check to see if the nm accepts a BSD-compat flag.
6073         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6074         #   nm: unknown option "B" ignored
6075         # Tru64's nm complains that /dev/null is an invalid object file
6076         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6077         */dev/null* | *'Invalid file or object type'*)
6078           lt_cv_path_NM="$tmp_nm -B"
6079           break
6080           ;;
6081         *)
6082           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6083           */dev/null*)
6084             lt_cv_path_NM="$tmp_nm -p"
6085             break
6086             ;;
6087           *)
6088             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6089             continue # so that we can try to find one that supports BSD flags
6090             ;;
6091           esac
6092           ;;
6093         esac
6094       fi
6095     done
6096     IFS="$lt_save_ifs"
6097   done
6098   : ${lt_cv_path_NM=no}
6099 fi
6100 fi
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6102 $as_echo "$lt_cv_path_NM" >&6; }
6103 if test "$lt_cv_path_NM" != "no"; then
6104   NM="$lt_cv_path_NM"
6105 else
6106   # Didn't find any BSD compatible name lister, look for dumpbin.
6107   if test -n "$DUMPBIN"; then :
6108     # Let the user override the test.
6109   else
6110     if test -n "$ac_tool_prefix"; then
6111   for ac_prog in dumpbin "link -dump"
6112   do
6113     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6114 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6116 $as_echo_n "checking for $ac_word... " >&6; }
6117 if ${ac_cv_prog_DUMPBIN+:} false; then :
6118   $as_echo_n "(cached) " >&6
6119 else
6120   if test -n "$DUMPBIN"; then
6121   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6125 do
6126   IFS=$as_save_IFS
6127   test -z "$as_dir" && as_dir=.
6128     for ac_exec_ext in '' $ac_executable_extensions; do
6129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6132     break 2
6133   fi
6134 done
6135   done
6136 IFS=$as_save_IFS
6137
6138 fi
6139 fi
6140 DUMPBIN=$ac_cv_prog_DUMPBIN
6141 if test -n "$DUMPBIN"; then
6142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6143 $as_echo "$DUMPBIN" >&6; }
6144 else
6145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146 $as_echo "no" >&6; }
6147 fi
6148
6149
6150     test -n "$DUMPBIN" && break
6151   done
6152 fi
6153 if test -z "$DUMPBIN"; then
6154   ac_ct_DUMPBIN=$DUMPBIN
6155   for ac_prog in dumpbin "link -dump"
6156 do
6157   # Extract the first word of "$ac_prog", so it can be a program name with args.
6158 set dummy $ac_prog; ac_word=$2
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6160 $as_echo_n "checking for $ac_word... " >&6; }
6161 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6162   $as_echo_n "(cached) " >&6
6163 else
6164   if test -n "$ac_ct_DUMPBIN"; then
6165   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6166 else
6167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 for as_dir in $PATH
6169 do
6170   IFS=$as_save_IFS
6171   test -z "$as_dir" && as_dir=.
6172     for ac_exec_ext in '' $ac_executable_extensions; do
6173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6174     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6176     break 2
6177   fi
6178 done
6179   done
6180 IFS=$as_save_IFS
6181
6182 fi
6183 fi
6184 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6185 if test -n "$ac_ct_DUMPBIN"; then
6186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6187 $as_echo "$ac_ct_DUMPBIN" >&6; }
6188 else
6189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6190 $as_echo "no" >&6; }
6191 fi
6192
6193
6194   test -n "$ac_ct_DUMPBIN" && break
6195 done
6196
6197   if test "x$ac_ct_DUMPBIN" = x; then
6198     DUMPBIN=":"
6199   else
6200     case $cross_compiling:$ac_tool_warned in
6201 yes:)
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6204 ac_tool_warned=yes ;;
6205 esac
6206     DUMPBIN=$ac_ct_DUMPBIN
6207   fi
6208 fi
6209
6210     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6211     *COFF*)
6212       DUMPBIN="$DUMPBIN -symbols"
6213       ;;
6214     *)
6215       DUMPBIN=:
6216       ;;
6217     esac
6218   fi
6219
6220   if test "$DUMPBIN" != ":"; then
6221     NM="$DUMPBIN"
6222   fi
6223 fi
6224 test -z "$NM" && NM=nm
6225
6226
6227
6228
6229
6230
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6232 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6233 if ${lt_cv_nm_interface+:} false; then :
6234   $as_echo_n "(cached) " >&6
6235 else
6236   lt_cv_nm_interface="BSD nm"
6237   echo "int some_variable = 0;" > conftest.$ac_ext
6238   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6239   (eval "$ac_compile" 2>conftest.err)
6240   cat conftest.err >&5
6241   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6242   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6243   cat conftest.err >&5
6244   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6245   cat conftest.out >&5
6246   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6247     lt_cv_nm_interface="MS dumpbin"
6248   fi
6249   rm -f conftest*
6250 fi
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6252 $as_echo "$lt_cv_nm_interface" >&6; }
6253
6254 # find the maximum length of command line arguments
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6256 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6257 if ${lt_cv_sys_max_cmd_len+:} false; then :
6258   $as_echo_n "(cached) " >&6
6259 else
6260     i=0
6261   teststring="ABCD"
6262
6263   case $build_os in
6264   msdosdjgpp*)
6265     # On DJGPP, this test can blow up pretty badly due to problems in libc
6266     # (any single argument exceeding 2000 bytes causes a buffer overrun
6267     # during glob expansion).  Even if it were fixed, the result of this
6268     # check would be larger than it should be.
6269     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6270     ;;
6271
6272   gnu*)
6273     # Under GNU Hurd, this test is not required because there is
6274     # no limit to the length of command line arguments.
6275     # Libtool will interpret -1 as no limit whatsoever
6276     lt_cv_sys_max_cmd_len=-1;
6277     ;;
6278
6279   cygwin* | mingw* | cegcc*)
6280     # On Win9x/ME, this test blows up -- it succeeds, but takes
6281     # about 5 minutes as the teststring grows exponentially.
6282     # Worse, since 9x/ME are not pre-emptively multitasking,
6283     # you end up with a "frozen" computer, even though with patience
6284     # the test eventually succeeds (with a max line length of 256k).
6285     # Instead, let's just punt: use the minimum linelength reported by
6286     # all of the supported platforms: 8192 (on NT/2K/XP).
6287     lt_cv_sys_max_cmd_len=8192;
6288     ;;
6289
6290   mint*)
6291     # On MiNT this can take a long time and run out of memory.
6292     lt_cv_sys_max_cmd_len=8192;
6293     ;;
6294
6295   amigaos*)
6296     # On AmigaOS with pdksh, this test takes hours, literally.
6297     # So we just punt and use a minimum line length of 8192.
6298     lt_cv_sys_max_cmd_len=8192;
6299     ;;
6300
6301   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6302     # This has been around since 386BSD, at least.  Likely further.
6303     if test -x /sbin/sysctl; then
6304       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6305     elif test -x /usr/sbin/sysctl; then
6306       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6307     else
6308       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6309     fi
6310     # And add a safety zone
6311     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6312     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6313     ;;
6314
6315   interix*)
6316     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6317     lt_cv_sys_max_cmd_len=196608
6318     ;;
6319
6320   os2*)
6321     # The test takes a long time on OS/2.
6322     lt_cv_sys_max_cmd_len=8192
6323     ;;
6324
6325   osf*)
6326     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6327     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6328     # nice to cause kernel panics so lets avoid the loop below.
6329     # First set a reasonable default.
6330     lt_cv_sys_max_cmd_len=16384
6331     #
6332     if test -x /sbin/sysconfig; then
6333       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6334         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6335       esac
6336     fi
6337     ;;
6338   sco3.2v5*)
6339     lt_cv_sys_max_cmd_len=102400
6340     ;;
6341   sysv5* | sco5v6* | sysv4.2uw2*)
6342     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6343     if test -n "$kargmax"; then
6344       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6345     else
6346       lt_cv_sys_max_cmd_len=32768
6347     fi
6348     ;;
6349   *)
6350     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6351     if test -n "$lt_cv_sys_max_cmd_len" && \
6352         test undefined != "$lt_cv_sys_max_cmd_len"; then
6353       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6354       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6355     else
6356       # Make teststring a little bigger before we do anything with it.
6357       # a 1K string should be a reasonable start.
6358       for i in 1 2 3 4 5 6 7 8 ; do
6359         teststring=$teststring$teststring
6360       done
6361       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6362       # If test is not a shell built-in, we'll probably end up computing a
6363       # maximum length that is only half of the actual maximum length, but
6364       # we can't tell.
6365       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6366                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6367               test $i != 17 # 1/2 MB should be enough
6368       do
6369         i=`expr $i + 1`
6370         teststring=$teststring$teststring
6371       done
6372       # Only check the string length outside the loop.
6373       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6374       teststring=
6375       # Add a significant safety factor because C++ compilers can tack on
6376       # massive amounts of additional arguments before passing them to the
6377       # linker.  It appears as though 1/2 is a usable value.
6378       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6379     fi
6380     ;;
6381   esac
6382
6383 fi
6384
6385 if test -n $lt_cv_sys_max_cmd_len ; then
6386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6387 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6388 else
6389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6390 $as_echo "none" >&6; }
6391 fi
6392 max_cmd_len=$lt_cv_sys_max_cmd_len
6393
6394
6395
6396
6397
6398
6399 : ${CP="cp -f"}
6400 : ${MV="mv -f"}
6401 : ${RM="rm -f"}
6402
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6404 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6405 # Try some XSI features
6406 xsi_shell=no
6407 ( _lt_dummy="a/b/c"
6408   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6409       = c,a/b,b/c, \
6410     && eval 'test $(( 1 + 1 )) -eq 2 \
6411     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6412   && xsi_shell=yes
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6414 $as_echo "$xsi_shell" >&6; }
6415
6416
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6418 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6419 lt_shell_append=no
6420 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6421     >/dev/null 2>&1 \
6422   && lt_shell_append=yes
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6424 $as_echo "$lt_shell_append" >&6; }
6425
6426
6427 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6428   lt_unset=unset
6429 else
6430   lt_unset=false
6431 fi
6432
6433
6434
6435
6436
6437 # test EBCDIC or ASCII
6438 case `echo X|tr X '\101'` in
6439  A) # ASCII based system
6440     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6441   lt_SP2NL='tr \040 \012'
6442   lt_NL2SP='tr \015\012 \040\040'
6443   ;;
6444  *) # EBCDIC based system
6445   lt_SP2NL='tr \100 \n'
6446   lt_NL2SP='tr \r\n \100\100'
6447   ;;
6448 esac
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6459 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6460 if ${lt_cv_to_host_file_cmd+:} false; then :
6461   $as_echo_n "(cached) " >&6
6462 else
6463   case $host in
6464   *-*-mingw* )
6465     case $build in
6466       *-*-mingw* ) # actually msys
6467         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6468         ;;
6469       *-*-cygwin* )
6470         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6471         ;;
6472       * ) # otherwise, assume *nix
6473         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6474         ;;
6475     esac
6476     ;;
6477   *-*-cygwin* )
6478     case $build in
6479       *-*-mingw* ) # actually msys
6480         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6481         ;;
6482       *-*-cygwin* )
6483         lt_cv_to_host_file_cmd=func_convert_file_noop
6484         ;;
6485       * ) # otherwise, assume *nix
6486         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6487         ;;
6488     esac
6489     ;;
6490   * ) # unhandled hosts (and "normal" native builds)
6491     lt_cv_to_host_file_cmd=func_convert_file_noop
6492     ;;
6493 esac
6494
6495 fi
6496
6497 to_host_file_cmd=$lt_cv_to_host_file_cmd
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6499 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6500
6501
6502
6503
6504
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6506 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6507 if ${lt_cv_to_tool_file_cmd+:} false; then :
6508   $as_echo_n "(cached) " >&6
6509 else
6510   #assume ordinary cross tools, or native build.
6511 lt_cv_to_tool_file_cmd=func_convert_file_noop
6512 case $host in
6513   *-*-mingw* )
6514     case $build in
6515       *-*-mingw* ) # actually msys
6516         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6517         ;;
6518     esac
6519     ;;
6520 esac
6521
6522 fi
6523
6524 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6526 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6527
6528
6529
6530
6531
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6533 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6534 if ${lt_cv_ld_reload_flag+:} false; then :
6535   $as_echo_n "(cached) " >&6
6536 else
6537   lt_cv_ld_reload_flag='-r'
6538 fi
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6540 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6541 reload_flag=$lt_cv_ld_reload_flag
6542 case $reload_flag in
6543 "" | " "*) ;;
6544 *) reload_flag=" $reload_flag" ;;
6545 esac
6546 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6547 case $host_os in
6548   cygwin* | mingw* | pw32* | cegcc*)
6549     if test "$GCC" != yes; then
6550       reload_cmds=false
6551     fi
6552     ;;
6553   darwin*)
6554     if test "$GCC" = yes; then
6555       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6556     else
6557       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6558     fi
6559     ;;
6560 esac
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570 if test -n "$ac_tool_prefix"; then
6571   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6572 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if ${ac_cv_prog_OBJDUMP+:} false; then :
6576   $as_echo_n "(cached) " >&6
6577 else
6578   if test -n "$OBJDUMP"; then
6579   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6583 do
6584   IFS=$as_save_IFS
6585   test -z "$as_dir" && as_dir=.
6586     for ac_exec_ext in '' $ac_executable_extensions; do
6587   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6588     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590     break 2
6591   fi
6592 done
6593   done
6594 IFS=$as_save_IFS
6595
6596 fi
6597 fi
6598 OBJDUMP=$ac_cv_prog_OBJDUMP
6599 if test -n "$OBJDUMP"; then
6600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6601 $as_echo "$OBJDUMP" >&6; }
6602 else
6603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6605 fi
6606
6607
6608 fi
6609 if test -z "$ac_cv_prog_OBJDUMP"; then
6610   ac_ct_OBJDUMP=$OBJDUMP
6611   # Extract the first word of "objdump", so it can be a program name with args.
6612 set dummy objdump; ac_word=$2
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614 $as_echo_n "checking for $ac_word... " >&6; }
6615 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6616   $as_echo_n "(cached) " >&6
6617 else
6618   if test -n "$ac_ct_OBJDUMP"; then
6619   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6620 else
6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 for as_dir in $PATH
6623 do
6624   IFS=$as_save_IFS
6625   test -z "$as_dir" && as_dir=.
6626     for ac_exec_ext in '' $ac_executable_extensions; do
6627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6628     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630     break 2
6631   fi
6632 done
6633   done
6634 IFS=$as_save_IFS
6635
6636 fi
6637 fi
6638 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6639 if test -n "$ac_ct_OBJDUMP"; then
6640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6641 $as_echo "$ac_ct_OBJDUMP" >&6; }
6642 else
6643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644 $as_echo "no" >&6; }
6645 fi
6646
6647   if test "x$ac_ct_OBJDUMP" = x; then
6648     OBJDUMP="false"
6649   else
6650     case $cross_compiling:$ac_tool_warned in
6651 yes:)
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6654 ac_tool_warned=yes ;;
6655 esac
6656     OBJDUMP=$ac_ct_OBJDUMP
6657   fi
6658 else
6659   OBJDUMP="$ac_cv_prog_OBJDUMP"
6660 fi
6661
6662 test -z "$OBJDUMP" && OBJDUMP=objdump
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6673 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6674 if ${lt_cv_deplibs_check_method+:} false; then :
6675   $as_echo_n "(cached) " >&6
6676 else
6677   lt_cv_file_magic_cmd='$MAGIC_CMD'
6678 lt_cv_file_magic_test_file=
6679 lt_cv_deplibs_check_method='unknown'
6680 # Need to set the preceding variable on all platforms that support
6681 # interlibrary dependencies.
6682 # 'none' -- dependencies not supported.
6683 # `unknown' -- same as none, but documents that we really don't know.
6684 # 'pass_all' -- all dependencies passed with no checks.
6685 # 'test_compile' -- check by making test program.
6686 # 'file_magic [[regex]]' -- check by looking for files in library path
6687 # which responds to the $file_magic_cmd with a given extended regex.
6688 # If you have `file' or equivalent on your system and you're not sure
6689 # whether `pass_all' will *always* work, you probably want this one.
6690
6691 case $host_os in
6692 aix[4-9]*)
6693   lt_cv_deplibs_check_method=pass_all
6694   ;;
6695
6696 beos*)
6697   lt_cv_deplibs_check_method=pass_all
6698   ;;
6699
6700 bsdi[45]*)
6701   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6702   lt_cv_file_magic_cmd='/usr/bin/file -L'
6703   lt_cv_file_magic_test_file=/shlib/libc.so
6704   ;;
6705
6706 cygwin*)
6707   # func_win32_libid is a shell function defined in ltmain.sh
6708   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6709   lt_cv_file_magic_cmd='func_win32_libid'
6710   ;;
6711
6712 mingw* | pw32*)
6713   # Base MSYS/MinGW do not provide the 'file' command needed by
6714   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6715   # unless we find 'file', for example because we are cross-compiling.
6716   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6717   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6718     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6719     lt_cv_file_magic_cmd='func_win32_libid'
6720   else
6721     # Keep this pattern in sync with the one in func_win32_libid.
6722     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6723     lt_cv_file_magic_cmd='$OBJDUMP -f'
6724   fi
6725   ;;
6726
6727 cegcc*)
6728   # use the weaker test based on 'objdump'. See mingw*.
6729   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6730   lt_cv_file_magic_cmd='$OBJDUMP -f'
6731   ;;
6732
6733 darwin* | rhapsody*)
6734   lt_cv_deplibs_check_method=pass_all
6735   ;;
6736
6737 freebsd* | dragonfly*)
6738   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6739     case $host_cpu in
6740     i*86 )
6741       # Not sure whether the presence of OpenBSD here was a mistake.
6742       # Let's accept both of them until this is cleared up.
6743       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6744       lt_cv_file_magic_cmd=/usr/bin/file
6745       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6746       ;;
6747     esac
6748   else
6749     lt_cv_deplibs_check_method=pass_all
6750   fi
6751   ;;
6752
6753 haiku*)
6754   lt_cv_deplibs_check_method=pass_all
6755   ;;
6756
6757 hpux10.20* | hpux11*)
6758   lt_cv_file_magic_cmd=/usr/bin/file
6759   case $host_cpu in
6760   ia64*)
6761     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6762     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6763     ;;
6764   hppa*64*)
6765     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]'
6766     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6767     ;;
6768   *)
6769     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6770     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6771     ;;
6772   esac
6773   ;;
6774
6775 interix[3-9]*)
6776   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6777   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6778   ;;
6779
6780 irix5* | irix6* | nonstopux*)
6781   case $LD in
6782   *-32|*"-32 ") libmagic=32-bit;;
6783   *-n32|*"-n32 ") libmagic=N32;;
6784   *-64|*"-64 ") libmagic=64-bit;;
6785   *) libmagic=never-match;;
6786   esac
6787   lt_cv_deplibs_check_method=pass_all
6788   ;;
6789
6790 # This must be glibc/ELF.
6791 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6792   lt_cv_deplibs_check_method=pass_all
6793   ;;
6794
6795 netbsd* | netbsdelf*-gnu)
6796   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6797     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6798   else
6799     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6800   fi
6801   ;;
6802
6803 newos6*)
6804   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6805   lt_cv_file_magic_cmd=/usr/bin/file
6806   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6807   ;;
6808
6809 *nto* | *qnx*)
6810   lt_cv_deplibs_check_method=pass_all
6811   ;;
6812
6813 openbsd*)
6814   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6815     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6816   else
6817     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6818   fi
6819   ;;
6820
6821 osf3* | osf4* | osf5*)
6822   lt_cv_deplibs_check_method=pass_all
6823   ;;
6824
6825 rdos*)
6826   lt_cv_deplibs_check_method=pass_all
6827   ;;
6828
6829 solaris*)
6830   lt_cv_deplibs_check_method=pass_all
6831   ;;
6832
6833 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6834   lt_cv_deplibs_check_method=pass_all
6835   ;;
6836
6837 sysv4 | sysv4.3*)
6838   case $host_vendor in
6839   motorola)
6840     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]'
6841     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6842     ;;
6843   ncr)
6844     lt_cv_deplibs_check_method=pass_all
6845     ;;
6846   sequent)
6847     lt_cv_file_magic_cmd='/bin/file'
6848     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6849     ;;
6850   sni)
6851     lt_cv_file_magic_cmd='/bin/file'
6852     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6853     lt_cv_file_magic_test_file=/lib/libc.so
6854     ;;
6855   siemens)
6856     lt_cv_deplibs_check_method=pass_all
6857     ;;
6858   pc)
6859     lt_cv_deplibs_check_method=pass_all
6860     ;;
6861   esac
6862   ;;
6863
6864 tpf*)
6865   lt_cv_deplibs_check_method=pass_all
6866   ;;
6867 esac
6868
6869 fi
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6871 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6872
6873 file_magic_glob=
6874 want_nocaseglob=no
6875 if test "$build" = "$host"; then
6876   case $host_os in
6877   mingw* | pw32*)
6878     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6879       want_nocaseglob=yes
6880     else
6881       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6882     fi
6883     ;;
6884   esac
6885 fi
6886
6887 file_magic_cmd=$lt_cv_file_magic_cmd
6888 deplibs_check_method=$lt_cv_deplibs_check_method
6889 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912 if test -n "$ac_tool_prefix"; then
6913   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6914 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if ${ac_cv_prog_DLLTOOL+:} false; then :
6918   $as_echo_n "(cached) " >&6
6919 else
6920   if test -n "$DLLTOOL"; then
6921   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926   IFS=$as_save_IFS
6927   test -z "$as_dir" && as_dir=.
6928     for ac_exec_ext in '' $ac_executable_extensions; do
6929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932     break 2
6933   fi
6934 done
6935   done
6936 IFS=$as_save_IFS
6937
6938 fi
6939 fi
6940 DLLTOOL=$ac_cv_prog_DLLTOOL
6941 if test -n "$DLLTOOL"; then
6942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6943 $as_echo "$DLLTOOL" >&6; }
6944 else
6945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6947 fi
6948
6949
6950 fi
6951 if test -z "$ac_cv_prog_DLLTOOL"; then
6952   ac_ct_DLLTOOL=$DLLTOOL
6953   # Extract the first word of "dlltool", so it can be a program name with args.
6954 set dummy dlltool; ac_word=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6958   $as_echo_n "(cached) " >&6
6959 else
6960   if test -n "$ac_ct_DLLTOOL"; then
6961   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6962 else
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 for as_dir in $PATH
6965 do
6966   IFS=$as_save_IFS
6967   test -z "$as_dir" && as_dir=.
6968     for ac_exec_ext in '' $ac_executable_extensions; do
6969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6970     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972     break 2
6973   fi
6974 done
6975   done
6976 IFS=$as_save_IFS
6977
6978 fi
6979 fi
6980 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6981 if test -n "$ac_ct_DLLTOOL"; then
6982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6983 $as_echo "$ac_ct_DLLTOOL" >&6; }
6984 else
6985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6987 fi
6988
6989   if test "x$ac_ct_DLLTOOL" = x; then
6990     DLLTOOL="false"
6991   else
6992     case $cross_compiling:$ac_tool_warned in
6993 yes:)
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996 ac_tool_warned=yes ;;
6997 esac
6998     DLLTOOL=$ac_ct_DLLTOOL
6999   fi
7000 else
7001   DLLTOOL="$ac_cv_prog_DLLTOOL"
7002 fi
7003
7004 test -z "$DLLTOOL" && DLLTOOL=dlltool
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7016 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7017 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7018   $as_echo_n "(cached) " >&6
7019 else
7020   lt_cv_sharedlib_from_linklib_cmd='unknown'
7021
7022 case $host_os in
7023 cygwin* | mingw* | pw32* | cegcc*)
7024   # two different shell functions defined in ltmain.sh
7025   # decide which to use based on capabilities of $DLLTOOL
7026   case `$DLLTOOL --help 2>&1` in
7027   *--identify-strict*)
7028     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7029     ;;
7030   *)
7031     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7032     ;;
7033   esac
7034   ;;
7035 *)
7036   # fallback: assume linklib IS sharedlib
7037   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7038   ;;
7039 esac
7040
7041 fi
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7043 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7044 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7045 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7046
7047
7048
7049
7050
7051
7052
7053 if test -n "$ac_tool_prefix"; then
7054   for ac_prog in ar
7055   do
7056     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7057 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if ${ac_cv_prog_AR+:} false; then :
7061   $as_echo_n "(cached) " >&6
7062 else
7063   if test -n "$AR"; then
7064   ac_cv_prog_AR="$AR" # Let the user override the test.
7065 else
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7068 do
7069   IFS=$as_save_IFS
7070   test -z "$as_dir" && as_dir=.
7071     for ac_exec_ext in '' $ac_executable_extensions; do
7072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7073     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075     break 2
7076   fi
7077 done
7078   done
7079 IFS=$as_save_IFS
7080
7081 fi
7082 fi
7083 AR=$ac_cv_prog_AR
7084 if test -n "$AR"; then
7085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7086 $as_echo "$AR" >&6; }
7087 else
7088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7090 fi
7091
7092
7093     test -n "$AR" && break
7094   done
7095 fi
7096 if test -z "$AR"; then
7097   ac_ct_AR=$AR
7098   for ac_prog in ar
7099 do
7100   # Extract the first word of "$ac_prog", so it can be a program name with args.
7101 set dummy $ac_prog; ac_word=$2
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7103 $as_echo_n "checking for $ac_word... " >&6; }
7104 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7105   $as_echo_n "(cached) " >&6
7106 else
7107   if test -n "$ac_ct_AR"; then
7108   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7109 else
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH
7112 do
7113   IFS=$as_save_IFS
7114   test -z "$as_dir" && as_dir=.
7115     for ac_exec_ext in '' $ac_executable_extensions; do
7116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7117     ac_cv_prog_ac_ct_AR="$ac_prog"
7118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7119     break 2
7120   fi
7121 done
7122   done
7123 IFS=$as_save_IFS
7124
7125 fi
7126 fi
7127 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7128 if test -n "$ac_ct_AR"; then
7129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7130 $as_echo "$ac_ct_AR" >&6; }
7131 else
7132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133 $as_echo "no" >&6; }
7134 fi
7135
7136
7137   test -n "$ac_ct_AR" && break
7138 done
7139
7140   if test "x$ac_ct_AR" = x; then
7141     AR="false"
7142   else
7143     case $cross_compiling:$ac_tool_warned in
7144 yes:)
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7147 ac_tool_warned=yes ;;
7148 esac
7149     AR=$ac_ct_AR
7150   fi
7151 fi
7152
7153 : ${AR=ar}
7154 : ${AR_FLAGS=cru}
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7167 $as_echo_n "checking for archiver @FILE support... " >&6; }
7168 if ${lt_cv_ar_at_file+:} false; then :
7169   $as_echo_n "(cached) " >&6
7170 else
7171   lt_cv_ar_at_file=no
7172    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h.  */
7174
7175 int
7176 main ()
7177 {
7178
7179   ;
7180   return 0;
7181 }
7182 _ACEOF
7183 if ac_fn_c_try_compile "$LINENO"; then :
7184   echo conftest.$ac_objext > conftest.lst
7185       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7186       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7187   (eval $lt_ar_try) 2>&5
7188   ac_status=$?
7189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7190   test $ac_status = 0; }
7191       if test "$ac_status" -eq 0; then
7192         # Ensure the archiver fails upon bogus file names.
7193         rm -f conftest.$ac_objext libconftest.a
7194         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7195   (eval $lt_ar_try) 2>&5
7196   ac_status=$?
7197   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7198   test $ac_status = 0; }
7199         if test "$ac_status" -ne 0; then
7200           lt_cv_ar_at_file=@
7201         fi
7202       fi
7203       rm -f conftest.* libconftest.a
7204
7205 fi
7206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7207
7208 fi
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7210 $as_echo "$lt_cv_ar_at_file" >&6; }
7211
7212 if test "x$lt_cv_ar_at_file" = xno; then
7213   archiver_list_spec=
7214 else
7215   archiver_list_spec=$lt_cv_ar_at_file
7216 fi
7217
7218
7219
7220
7221
7222
7223
7224 if test -n "$ac_tool_prefix"; then
7225   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7226 set dummy ${ac_tool_prefix}strip; ac_word=$2
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228 $as_echo_n "checking for $ac_word... " >&6; }
7229 if ${ac_cv_prog_STRIP+:} false; then :
7230   $as_echo_n "(cached) " >&6
7231 else
7232   if test -n "$STRIP"; then
7233   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7234 else
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 for as_dir in $PATH
7237 do
7238   IFS=$as_save_IFS
7239   test -z "$as_dir" && as_dir=.
7240     for ac_exec_ext in '' $ac_executable_extensions; do
7241   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7242     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244     break 2
7245   fi
7246 done
7247   done
7248 IFS=$as_save_IFS
7249
7250 fi
7251 fi
7252 STRIP=$ac_cv_prog_STRIP
7253 if test -n "$STRIP"; then
7254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7255 $as_echo "$STRIP" >&6; }
7256 else
7257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7259 fi
7260
7261
7262 fi
7263 if test -z "$ac_cv_prog_STRIP"; then
7264   ac_ct_STRIP=$STRIP
7265   # Extract the first word of "strip", so it can be a program name with args.
7266 set dummy strip; ac_word=$2
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268 $as_echo_n "checking for $ac_word... " >&6; }
7269 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7270   $as_echo_n "(cached) " >&6
7271 else
7272   if test -n "$ac_ct_STRIP"; then
7273   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7274 else
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 for as_dir in $PATH
7277 do
7278   IFS=$as_save_IFS
7279   test -z "$as_dir" && as_dir=.
7280     for ac_exec_ext in '' $ac_executable_extensions; do
7281   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7282     ac_cv_prog_ac_ct_STRIP="strip"
7283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284     break 2
7285   fi
7286 done
7287   done
7288 IFS=$as_save_IFS
7289
7290 fi
7291 fi
7292 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7293 if test -n "$ac_ct_STRIP"; then
7294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7295 $as_echo "$ac_ct_STRIP" >&6; }
7296 else
7297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298 $as_echo "no" >&6; }
7299 fi
7300
7301   if test "x$ac_ct_STRIP" = x; then
7302     STRIP=":"
7303   else
7304     case $cross_compiling:$ac_tool_warned in
7305 yes:)
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7308 ac_tool_warned=yes ;;
7309 esac
7310     STRIP=$ac_ct_STRIP
7311   fi
7312 else
7313   STRIP="$ac_cv_prog_STRIP"
7314 fi
7315
7316 test -z "$STRIP" && STRIP=:
7317
7318
7319
7320
7321
7322
7323 if test -n "$ac_tool_prefix"; then
7324   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7325 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if ${ac_cv_prog_RANLIB+:} false; then :
7329   $as_echo_n "(cached) " >&6
7330 else
7331   if test -n "$RANLIB"; then
7332   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7333 else
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7336 do
7337   IFS=$as_save_IFS
7338   test -z "$as_dir" && as_dir=.
7339     for ac_exec_ext in '' $ac_executable_extensions; do
7340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7341     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343     break 2
7344   fi
7345 done
7346   done
7347 IFS=$as_save_IFS
7348
7349 fi
7350 fi
7351 RANLIB=$ac_cv_prog_RANLIB
7352 if test -n "$RANLIB"; then
7353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7354 $as_echo "$RANLIB" >&6; }
7355 else
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7358 fi
7359
7360
7361 fi
7362 if test -z "$ac_cv_prog_RANLIB"; then
7363   ac_ct_RANLIB=$RANLIB
7364   # Extract the first word of "ranlib", so it can be a program name with args.
7365 set dummy ranlib; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7369   $as_echo_n "(cached) " >&6
7370 else
7371   if test -n "$ac_ct_RANLIB"; then
7372   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7376 do
7377   IFS=$as_save_IFS
7378   test -z "$as_dir" && as_dir=.
7379     for ac_exec_ext in '' $ac_executable_extensions; do
7380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381     ac_cv_prog_ac_ct_RANLIB="ranlib"
7382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383     break 2
7384   fi
7385 done
7386   done
7387 IFS=$as_save_IFS
7388
7389 fi
7390 fi
7391 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7392 if test -n "$ac_ct_RANLIB"; then
7393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7394 $as_echo "$ac_ct_RANLIB" >&6; }
7395 else
7396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7398 fi
7399
7400   if test "x$ac_ct_RANLIB" = x; then
7401     RANLIB=":"
7402   else
7403     case $cross_compiling:$ac_tool_warned in
7404 yes:)
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7407 ac_tool_warned=yes ;;
7408 esac
7409     RANLIB=$ac_ct_RANLIB
7410   fi
7411 else
7412   RANLIB="$ac_cv_prog_RANLIB"
7413 fi
7414
7415 test -z "$RANLIB" && RANLIB=:
7416
7417
7418
7419
7420
7421
7422 # Determine commands to create old-style static archives.
7423 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7424 old_postinstall_cmds='chmod 644 $oldlib'
7425 old_postuninstall_cmds=
7426
7427 if test -n "$RANLIB"; then
7428   case $host_os in
7429   openbsd*)
7430     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7431     ;;
7432   *)
7433     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7434     ;;
7435   esac
7436   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7437 fi
7438
7439 case $host_os in
7440   darwin*)
7441     lock_old_archive_extraction=yes ;;
7442   *)
7443     lock_old_archive_extraction=no ;;
7444 esac
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484 # If no C compiler was specified, use CC.
7485 LTCC=${LTCC-"$CC"}
7486
7487 # If no C compiler flags were specified, use CFLAGS.
7488 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7489
7490 # Allow CC to be a program name with arguments.
7491 compiler=$CC
7492
7493
7494 # Check for command to grab the raw symbol name followed by C symbol from nm.
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7496 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7497 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7498   $as_echo_n "(cached) " >&6
7499 else
7500
7501 # These are sane defaults that work on at least a few old systems.
7502 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7503
7504 # Character class describing NM global symbol codes.
7505 symcode='[BCDEGRST]'
7506
7507 # Regexp to match symbols that can be accessed directly from C.
7508 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7509
7510 # Define system-specific variables.
7511 case $host_os in
7512 aix*)
7513   symcode='[BCDT]'
7514   ;;
7515 cygwin* | mingw* | pw32* | cegcc*)
7516   symcode='[ABCDGISTW]'
7517   ;;
7518 hpux*)
7519   if test "$host_cpu" = ia64; then
7520     symcode='[ABCDEGRST]'
7521   fi
7522   ;;
7523 irix* | nonstopux*)
7524   symcode='[BCDEGRST]'
7525   ;;
7526 osf*)
7527   symcode='[BCDEGQRST]'
7528   ;;
7529 solaris*)
7530   symcode='[BDRT]'
7531   ;;
7532 sco3.2v5*)
7533   symcode='[DT]'
7534   ;;
7535 sysv4.2uw2*)
7536   symcode='[DT]'
7537   ;;
7538 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7539   symcode='[ABDT]'
7540   ;;
7541 sysv4)
7542   symcode='[DFNSTU]'
7543   ;;
7544 esac
7545
7546 # If we're using GNU nm, then use its standard symbol codes.
7547 case `$NM -V 2>&1` in
7548 *GNU* | *'with BFD'*)
7549   symcode='[ABCDGIRSTW]' ;;
7550 esac
7551
7552 # Transform an extracted symbol line into a proper C declaration.
7553 # Some systems (esp. on ia64) link data and code symbols differently,
7554 # so use this general approach.
7555 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7556
7557 # Transform an extracted symbol line into symbol name and symbol address
7558 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7559 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7560
7561 # Handle CRLF in mingw tool chain
7562 opt_cr=
7563 case $build_os in
7564 mingw*)
7565   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7566   ;;
7567 esac
7568
7569 # Try without a prefix underscore, then with it.
7570 for ac_symprfx in "" "_"; do
7571
7572   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7573   symxfrm="\\1 $ac_symprfx\\2 \\2"
7574
7575   # Write the raw and C identifiers.
7576   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7577     # Fake it for dumpbin and say T for any non-static function
7578     # and D for any global variable.
7579     # Also find C++ and __fastcall symbols from MSVC++,
7580     # which start with @ or ?.
7581     lt_cv_sys_global_symbol_pipe="$AWK '"\
7582 "     {last_section=section; section=\$ 3};"\
7583 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7584 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7585 "     \$ 0!~/External *\|/{next};"\
7586 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7587 "     {if(hide[section]) next};"\
7588 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7589 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7590 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7591 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7592 "     ' prfx=^$ac_symprfx"
7593   else
7594     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7595   fi
7596   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7597
7598   # Check to see that the pipe works correctly.
7599   pipe_works=no
7600
7601   rm -f conftest*
7602   cat > conftest.$ac_ext <<_LT_EOF
7603 #ifdef __cplusplus
7604 extern "C" {
7605 #endif
7606 char nm_test_var;
7607 void nm_test_func(void);
7608 void nm_test_func(void){}
7609 #ifdef __cplusplus
7610 }
7611 #endif
7612 int main(){nm_test_var='a';nm_test_func();return(0);}
7613 _LT_EOF
7614
7615   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7616   (eval $ac_compile) 2>&5
7617   ac_status=$?
7618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7619   test $ac_status = 0; }; then
7620     # Now try to grab the symbols.
7621     nlist=conftest.nm
7622     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7623   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7624   ac_status=$?
7625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7626   test $ac_status = 0; } && test -s "$nlist"; then
7627       # Try sorting and uniquifying the output.
7628       if sort "$nlist" | uniq > "$nlist"T; then
7629         mv -f "$nlist"T "$nlist"
7630       else
7631         rm -f "$nlist"T
7632       fi
7633
7634       # Make sure that we snagged all the symbols we need.
7635       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7636         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7637           cat <<_LT_EOF > conftest.$ac_ext
7638 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7639 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7640 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7641    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7642 # define LT_DLSYM_CONST
7643 #elif defined(__osf__)
7644 /* This system does not cope well with relocations in const data.  */
7645 # define LT_DLSYM_CONST
7646 #else
7647 # define LT_DLSYM_CONST const
7648 #endif
7649
7650 #ifdef __cplusplus
7651 extern "C" {
7652 #endif
7653
7654 _LT_EOF
7655           # Now generate the symbol file.
7656           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7657
7658           cat <<_LT_EOF >> conftest.$ac_ext
7659
7660 /* The mapping between symbol names and symbols.  */
7661 LT_DLSYM_CONST struct {
7662   const char *name;
7663   void       *address;
7664 }
7665 lt__PROGRAM__LTX_preloaded_symbols[] =
7666 {
7667   { "@PROGRAM@", (void *) 0 },
7668 _LT_EOF
7669           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7670           cat <<\_LT_EOF >> conftest.$ac_ext
7671   {0, (void *) 0}
7672 };
7673
7674 /* This works around a problem in FreeBSD linker */
7675 #ifdef FREEBSD_WORKAROUND
7676 static const void *lt_preloaded_setup() {
7677   return lt__PROGRAM__LTX_preloaded_symbols;
7678 }
7679 #endif
7680
7681 #ifdef __cplusplus
7682 }
7683 #endif
7684 _LT_EOF
7685           # Now try linking the two files.
7686           mv conftest.$ac_objext conftstm.$ac_objext
7687           lt_globsym_save_LIBS=$LIBS
7688           lt_globsym_save_CFLAGS=$CFLAGS
7689           LIBS="conftstm.$ac_objext"
7690           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7691           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7692   (eval $ac_link) 2>&5
7693   ac_status=$?
7694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7695   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7696             pipe_works=yes
7697           fi
7698           LIBS=$lt_globsym_save_LIBS
7699           CFLAGS=$lt_globsym_save_CFLAGS
7700         else
7701           echo "cannot find nm_test_func in $nlist" >&5
7702         fi
7703       else
7704         echo "cannot find nm_test_var in $nlist" >&5
7705       fi
7706     else
7707       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7708     fi
7709   else
7710     echo "$progname: failed program was:" >&5
7711     cat conftest.$ac_ext >&5
7712   fi
7713   rm -rf conftest* conftst*
7714
7715   # Do not use the global_symbol_pipe unless it works.
7716   if test "$pipe_works" = yes; then
7717     break
7718   else
7719     lt_cv_sys_global_symbol_pipe=
7720   fi
7721 done
7722
7723 fi
7724
7725 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7726   lt_cv_sys_global_symbol_to_cdecl=
7727 fi
7728 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7730 $as_echo "failed" >&6; }
7731 else
7732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7733 $as_echo "ok" >&6; }
7734 fi
7735
7736 # Response file support.
7737 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7738   nm_file_list_spec='@'
7739 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7740   nm_file_list_spec='@'
7741 fi
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7770 $as_echo_n "checking for sysroot... " >&6; }
7771
7772 # Check whether --with-sysroot was given.
7773 if test "${with_sysroot+set}" = set; then :
7774   withval=$with_sysroot;
7775 else
7776   with_sysroot=no
7777 fi
7778
7779
7780 lt_sysroot=
7781 case ${with_sysroot} in #(
7782  yes)
7783    if test "$GCC" = yes; then
7784      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7785    fi
7786    ;; #(
7787  /*)
7788    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7789    ;; #(
7790  no|'')
7791    ;; #(
7792  *)
7793    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7794 $as_echo "${with_sysroot}" >&6; }
7795    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7796    ;;
7797 esac
7798
7799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7800 $as_echo "${lt_sysroot:-no}" >&6; }
7801
7802
7803
7804
7805
7806 # Check whether --enable-libtool-lock was given.
7807 if test "${enable_libtool_lock+set}" = set; then :
7808   enableval=$enable_libtool_lock;
7809 fi
7810
7811 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7812
7813 # Some flags need to be propagated to the compiler or linker for good
7814 # libtool support.
7815 case $host in
7816 ia64-*-hpux*)
7817   # Find out which ABI we are using.
7818   echo 'int i;' > conftest.$ac_ext
7819   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7820   (eval $ac_compile) 2>&5
7821   ac_status=$?
7822   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7823   test $ac_status = 0; }; then
7824     case `/usr/bin/file conftest.$ac_objext` in
7825       *ELF-32*)
7826         HPUX_IA64_MODE="32"
7827         ;;
7828       *ELF-64*)
7829         HPUX_IA64_MODE="64"
7830         ;;
7831     esac
7832   fi
7833   rm -rf conftest*
7834   ;;
7835 *-*-irix6*)
7836   # Find out which ABI we are using.
7837   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7838   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7839   (eval $ac_compile) 2>&5
7840   ac_status=$?
7841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7842   test $ac_status = 0; }; then
7843     if test "$lt_cv_prog_gnu_ld" = yes; then
7844       case `/usr/bin/file conftest.$ac_objext` in
7845         *32-bit*)
7846           LD="${LD-ld} -melf32bsmip"
7847           ;;
7848         *N32*)
7849           LD="${LD-ld} -melf32bmipn32"
7850           ;;
7851         *64-bit*)
7852           LD="${LD-ld} -melf64bmip"
7853         ;;
7854       esac
7855     else
7856       case `/usr/bin/file conftest.$ac_objext` in
7857         *32-bit*)
7858           LD="${LD-ld} -32"
7859           ;;
7860         *N32*)
7861           LD="${LD-ld} -n32"
7862           ;;
7863         *64-bit*)
7864           LD="${LD-ld} -64"
7865           ;;
7866       esac
7867     fi
7868   fi
7869   rm -rf conftest*
7870   ;;
7871
7872 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7873 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7874   # Find out which ABI we are using.
7875   echo 'int i;' > conftest.$ac_ext
7876   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7877   (eval $ac_compile) 2>&5
7878   ac_status=$?
7879   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7880   test $ac_status = 0; }; then
7881     case `/usr/bin/file conftest.o` in
7882       *32-bit*)
7883         case $host in
7884           x86_64-*kfreebsd*-gnu)
7885             LD="${LD-ld} -m elf_i386_fbsd"
7886             ;;
7887           x86_64-*linux*)
7888             case `/usr/bin/file conftest.o` in
7889               *x86-64*)
7890                 LD="${LD-ld} -m elf32_x86_64"
7891                 ;;
7892               *)
7893                 LD="${LD-ld} -m elf_i386"
7894                 ;;
7895             esac
7896             ;;
7897           ppc64-*linux*|powerpc64-*linux*)
7898             LD="${LD-ld} -m elf32ppclinux"
7899             ;;
7900           s390x-*linux*)
7901             LD="${LD-ld} -m elf_s390"
7902             ;;
7903           sparc64-*linux*)
7904             LD="${LD-ld} -m elf32_sparc"
7905             ;;
7906         esac
7907         ;;
7908       *64-bit*)
7909         case $host in
7910           x86_64-*kfreebsd*-gnu)
7911             LD="${LD-ld} -m elf_x86_64_fbsd"
7912             ;;
7913           x86_64-*linux*)
7914             LD="${LD-ld} -m elf_x86_64"
7915             ;;
7916           ppc*-*linux*|powerpc*-*linux*)
7917             LD="${LD-ld} -m elf64ppc"
7918             ;;
7919           s390*-*linux*|s390*-*tpf*)
7920             LD="${LD-ld} -m elf64_s390"
7921             ;;
7922           sparc*-*linux*)
7923             LD="${LD-ld} -m elf64_sparc"
7924             ;;
7925         esac
7926         ;;
7927     esac
7928   fi
7929   rm -rf conftest*
7930   ;;
7931
7932 *-*-sco3.2v5*)
7933   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7934   SAVE_CFLAGS="$CFLAGS"
7935   CFLAGS="$CFLAGS -belf"
7936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7937 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7938 if ${lt_cv_cc_needs_belf+:} false; then :
7939   $as_echo_n "(cached) " >&6
7940 else
7941   ac_ext=c
7942 ac_cpp='$CPP $CPPFLAGS'
7943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7946
7947      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948 /* end confdefs.h.  */
7949
7950 int
7951 main ()
7952 {
7953
7954   ;
7955   return 0;
7956 }
7957 _ACEOF
7958 if ac_fn_c_try_link "$LINENO"; then :
7959   lt_cv_cc_needs_belf=yes
7960 else
7961   lt_cv_cc_needs_belf=no
7962 fi
7963 rm -f core conftest.err conftest.$ac_objext \
7964     conftest$ac_exeext conftest.$ac_ext
7965      ac_ext=c
7966 ac_cpp='$CPP $CPPFLAGS'
7967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7970
7971 fi
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7973 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7974   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7975     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7976     CFLAGS="$SAVE_CFLAGS"
7977   fi
7978   ;;
7979 *-*solaris*)
7980   # Find out which ABI we are using.
7981   echo 'int i;' > conftest.$ac_ext
7982   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7983   (eval $ac_compile) 2>&5
7984   ac_status=$?
7985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7986   test $ac_status = 0; }; then
7987     case `/usr/bin/file conftest.o` in
7988     *64-bit*)
7989       case $lt_cv_prog_gnu_ld in
7990       yes*)
7991         case $host in
7992         i?86-*-solaris*)
7993           LD="${LD-ld} -m elf_x86_64"
7994           ;;
7995         sparc*-*-solaris*)
7996           LD="${LD-ld} -m elf64_sparc"
7997           ;;
7998         esac
7999         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8000         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8001           LD="${LD-ld}_sol2"
8002         fi
8003         ;;
8004       *)
8005         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8006           LD="${LD-ld} -64"
8007         fi
8008         ;;
8009       esac
8010       ;;
8011     esac
8012   fi
8013   rm -rf conftest*
8014   ;;
8015 esac
8016
8017 need_locks="$enable_libtool_lock"
8018
8019 if test -n "$ac_tool_prefix"; then
8020   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8021 set dummy ${ac_tool_prefix}mt; ac_word=$2
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023 $as_echo_n "checking for $ac_word... " >&6; }
8024 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8025   $as_echo_n "(cached) " >&6
8026 else
8027   if test -n "$MANIFEST_TOOL"; then
8028   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8029 else
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH
8032 do
8033   IFS=$as_save_IFS
8034   test -z "$as_dir" && as_dir=.
8035     for ac_exec_ext in '' $ac_executable_extensions; do
8036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8037     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8039     break 2
8040   fi
8041 done
8042   done
8043 IFS=$as_save_IFS
8044
8045 fi
8046 fi
8047 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8048 if test -n "$MANIFEST_TOOL"; then
8049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8050 $as_echo "$MANIFEST_TOOL" >&6; }
8051 else
8052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8054 fi
8055
8056
8057 fi
8058 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8059   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8060   # Extract the first word of "mt", so it can be a program name with args.
8061 set dummy mt; ac_word=$2
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8063 $as_echo_n "checking for $ac_word... " >&6; }
8064 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8065   $as_echo_n "(cached) " >&6
8066 else
8067   if test -n "$ac_ct_MANIFEST_TOOL"; then
8068   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8069 else
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 for as_dir in $PATH
8072 do
8073   IFS=$as_save_IFS
8074   test -z "$as_dir" && as_dir=.
8075     for ac_exec_ext in '' $ac_executable_extensions; do
8076   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8077     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8079     break 2
8080   fi
8081 done
8082   done
8083 IFS=$as_save_IFS
8084
8085 fi
8086 fi
8087 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8088 if test -n "$ac_ct_MANIFEST_TOOL"; then
8089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8090 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8091 else
8092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8094 fi
8095
8096   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8097     MANIFEST_TOOL=":"
8098   else
8099     case $cross_compiling:$ac_tool_warned in
8100 yes:)
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8103 ac_tool_warned=yes ;;
8104 esac
8105     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8106   fi
8107 else
8108   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8109 fi
8110
8111 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8113 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8114 if ${lt_cv_path_mainfest_tool+:} false; then :
8115   $as_echo_n "(cached) " >&6
8116 else
8117   lt_cv_path_mainfest_tool=no
8118   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8119   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8120   cat conftest.err >&5
8121   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8122     lt_cv_path_mainfest_tool=yes
8123   fi
8124   rm -f conftest*
8125 fi
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8127 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8128 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8129   MANIFEST_TOOL=:
8130 fi
8131
8132
8133
8134
8135
8136
8137   case $host_os in
8138     rhapsody* | darwin*)
8139     if test -n "$ac_tool_prefix"; then
8140   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8141 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8143 $as_echo_n "checking for $ac_word... " >&6; }
8144 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8145   $as_echo_n "(cached) " >&6
8146 else
8147   if test -n "$DSYMUTIL"; then
8148   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8149 else
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151 for as_dir in $PATH
8152 do
8153   IFS=$as_save_IFS
8154   test -z "$as_dir" && as_dir=.
8155     for ac_exec_ext in '' $ac_executable_extensions; do
8156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8157     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8159     break 2
8160   fi
8161 done
8162   done
8163 IFS=$as_save_IFS
8164
8165 fi
8166 fi
8167 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8168 if test -n "$DSYMUTIL"; then
8169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8170 $as_echo "$DSYMUTIL" >&6; }
8171 else
8172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173 $as_echo "no" >&6; }
8174 fi
8175
8176
8177 fi
8178 if test -z "$ac_cv_prog_DSYMUTIL"; then
8179   ac_ct_DSYMUTIL=$DSYMUTIL
8180   # Extract the first word of "dsymutil", so it can be a program name with args.
8181 set dummy dsymutil; ac_word=$2
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8183 $as_echo_n "checking for $ac_word... " >&6; }
8184 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8185   $as_echo_n "(cached) " >&6
8186 else
8187   if test -n "$ac_ct_DSYMUTIL"; then
8188   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8189 else
8190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191 for as_dir in $PATH
8192 do
8193   IFS=$as_save_IFS
8194   test -z "$as_dir" && as_dir=.
8195     for ac_exec_ext in '' $ac_executable_extensions; do
8196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8197     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8199     break 2
8200   fi
8201 done
8202   done
8203 IFS=$as_save_IFS
8204
8205 fi
8206 fi
8207 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8208 if test -n "$ac_ct_DSYMUTIL"; then
8209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8210 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8211 else
8212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213 $as_echo "no" >&6; }
8214 fi
8215
8216   if test "x$ac_ct_DSYMUTIL" = x; then
8217     DSYMUTIL=":"
8218   else
8219     case $cross_compiling:$ac_tool_warned in
8220 yes:)
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8223 ac_tool_warned=yes ;;
8224 esac
8225     DSYMUTIL=$ac_ct_DSYMUTIL
8226   fi
8227 else
8228   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8229 fi
8230
8231     if test -n "$ac_tool_prefix"; then
8232   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8233 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235 $as_echo_n "checking for $ac_word... " >&6; }
8236 if ${ac_cv_prog_NMEDIT+:} false; then :
8237   $as_echo_n "(cached) " >&6
8238 else
8239   if test -n "$NMEDIT"; then
8240   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8241 else
8242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243 for as_dir in $PATH
8244 do
8245   IFS=$as_save_IFS
8246   test -z "$as_dir" && as_dir=.
8247     for ac_exec_ext in '' $ac_executable_extensions; do
8248   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8249     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8251     break 2
8252   fi
8253 done
8254   done
8255 IFS=$as_save_IFS
8256
8257 fi
8258 fi
8259 NMEDIT=$ac_cv_prog_NMEDIT
8260 if test -n "$NMEDIT"; then
8261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8262 $as_echo "$NMEDIT" >&6; }
8263 else
8264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265 $as_echo "no" >&6; }
8266 fi
8267
8268
8269 fi
8270 if test -z "$ac_cv_prog_NMEDIT"; then
8271   ac_ct_NMEDIT=$NMEDIT
8272   # Extract the first word of "nmedit", so it can be a program name with args.
8273 set dummy nmedit; ac_word=$2
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275 $as_echo_n "checking for $ac_word... " >&6; }
8276 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8277   $as_echo_n "(cached) " >&6
8278 else
8279   if test -n "$ac_ct_NMEDIT"; then
8280   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8281 else
8282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283 for as_dir in $PATH
8284 do
8285   IFS=$as_save_IFS
8286   test -z "$as_dir" && as_dir=.
8287     for ac_exec_ext in '' $ac_executable_extensions; do
8288   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8289     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8291     break 2
8292   fi
8293 done
8294   done
8295 IFS=$as_save_IFS
8296
8297 fi
8298 fi
8299 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8300 if test -n "$ac_ct_NMEDIT"; then
8301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8302 $as_echo "$ac_ct_NMEDIT" >&6; }
8303 else
8304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 $as_echo "no" >&6; }
8306 fi
8307
8308   if test "x$ac_ct_NMEDIT" = x; then
8309     NMEDIT=":"
8310   else
8311     case $cross_compiling:$ac_tool_warned in
8312 yes:)
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8315 ac_tool_warned=yes ;;
8316 esac
8317     NMEDIT=$ac_ct_NMEDIT
8318   fi
8319 else
8320   NMEDIT="$ac_cv_prog_NMEDIT"
8321 fi
8322
8323     if test -n "$ac_tool_prefix"; then
8324   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8325 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8327 $as_echo_n "checking for $ac_word... " >&6; }
8328 if ${ac_cv_prog_LIPO+:} false; then :
8329   $as_echo_n "(cached) " >&6
8330 else
8331   if test -n "$LIPO"; then
8332   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8333 else
8334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8335 for as_dir in $PATH
8336 do
8337   IFS=$as_save_IFS
8338   test -z "$as_dir" && as_dir=.
8339     for ac_exec_ext in '' $ac_executable_extensions; do
8340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8341     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8343     break 2
8344   fi
8345 done
8346   done
8347 IFS=$as_save_IFS
8348
8349 fi
8350 fi
8351 LIPO=$ac_cv_prog_LIPO
8352 if test -n "$LIPO"; then
8353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8354 $as_echo "$LIPO" >&6; }
8355 else
8356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357 $as_echo "no" >&6; }
8358 fi
8359
8360
8361 fi
8362 if test -z "$ac_cv_prog_LIPO"; then
8363   ac_ct_LIPO=$LIPO
8364   # Extract the first word of "lipo", so it can be a program name with args.
8365 set dummy lipo; ac_word=$2
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8367 $as_echo_n "checking for $ac_word... " >&6; }
8368 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8369   $as_echo_n "(cached) " >&6
8370 else
8371   if test -n "$ac_ct_LIPO"; then
8372   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8373 else
8374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375 for as_dir in $PATH
8376 do
8377   IFS=$as_save_IFS
8378   test -z "$as_dir" && as_dir=.
8379     for ac_exec_ext in '' $ac_executable_extensions; do
8380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8381     ac_cv_prog_ac_ct_LIPO="lipo"
8382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8383     break 2
8384   fi
8385 done
8386   done
8387 IFS=$as_save_IFS
8388
8389 fi
8390 fi
8391 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8392 if test -n "$ac_ct_LIPO"; then
8393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8394 $as_echo "$ac_ct_LIPO" >&6; }
8395 else
8396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397 $as_echo "no" >&6; }
8398 fi
8399
8400   if test "x$ac_ct_LIPO" = x; then
8401     LIPO=":"
8402   else
8403     case $cross_compiling:$ac_tool_warned in
8404 yes:)
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8407 ac_tool_warned=yes ;;
8408 esac
8409     LIPO=$ac_ct_LIPO
8410   fi
8411 else
8412   LIPO="$ac_cv_prog_LIPO"
8413 fi
8414
8415     if test -n "$ac_tool_prefix"; then
8416   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8417 set dummy ${ac_tool_prefix}otool; ac_word=$2
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8419 $as_echo_n "checking for $ac_word... " >&6; }
8420 if ${ac_cv_prog_OTOOL+:} false; then :
8421   $as_echo_n "(cached) " >&6
8422 else
8423   if test -n "$OTOOL"; then
8424   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8425 else
8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427 for as_dir in $PATH
8428 do
8429   IFS=$as_save_IFS
8430   test -z "$as_dir" && as_dir=.
8431     for ac_exec_ext in '' $ac_executable_extensions; do
8432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8433     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8435     break 2
8436   fi
8437 done
8438   done
8439 IFS=$as_save_IFS
8440
8441 fi
8442 fi
8443 OTOOL=$ac_cv_prog_OTOOL
8444 if test -n "$OTOOL"; then
8445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8446 $as_echo "$OTOOL" >&6; }
8447 else
8448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449 $as_echo "no" >&6; }
8450 fi
8451
8452
8453 fi
8454 if test -z "$ac_cv_prog_OTOOL"; then
8455   ac_ct_OTOOL=$OTOOL
8456   # Extract the first word of "otool", so it can be a program name with args.
8457 set dummy otool; ac_word=$2
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8459 $as_echo_n "checking for $ac_word... " >&6; }
8460 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8461   $as_echo_n "(cached) " >&6
8462 else
8463   if test -n "$ac_ct_OTOOL"; then
8464   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8465 else
8466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8467 for as_dir in $PATH
8468 do
8469   IFS=$as_save_IFS
8470   test -z "$as_dir" && as_dir=.
8471     for ac_exec_ext in '' $ac_executable_extensions; do
8472   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8473     ac_cv_prog_ac_ct_OTOOL="otool"
8474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8475     break 2
8476   fi
8477 done
8478   done
8479 IFS=$as_save_IFS
8480
8481 fi
8482 fi
8483 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8484 if test -n "$ac_ct_OTOOL"; then
8485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8486 $as_echo "$ac_ct_OTOOL" >&6; }
8487 else
8488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8489 $as_echo "no" >&6; }
8490 fi
8491
8492   if test "x$ac_ct_OTOOL" = x; then
8493     OTOOL=":"
8494   else
8495     case $cross_compiling:$ac_tool_warned in
8496 yes:)
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8499 ac_tool_warned=yes ;;
8500 esac
8501     OTOOL=$ac_ct_OTOOL
8502   fi
8503 else
8504   OTOOL="$ac_cv_prog_OTOOL"
8505 fi
8506
8507     if test -n "$ac_tool_prefix"; then
8508   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8509 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511 $as_echo_n "checking for $ac_word... " >&6; }
8512 if ${ac_cv_prog_OTOOL64+:} false; then :
8513   $as_echo_n "(cached) " >&6
8514 else
8515   if test -n "$OTOOL64"; then
8516   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8517 else
8518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519 for as_dir in $PATH
8520 do
8521   IFS=$as_save_IFS
8522   test -z "$as_dir" && as_dir=.
8523     for ac_exec_ext in '' $ac_executable_extensions; do
8524   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8525     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8527     break 2
8528   fi
8529 done
8530   done
8531 IFS=$as_save_IFS
8532
8533 fi
8534 fi
8535 OTOOL64=$ac_cv_prog_OTOOL64
8536 if test -n "$OTOOL64"; then
8537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8538 $as_echo "$OTOOL64" >&6; }
8539 else
8540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541 $as_echo "no" >&6; }
8542 fi
8543
8544
8545 fi
8546 if test -z "$ac_cv_prog_OTOOL64"; then
8547   ac_ct_OTOOL64=$OTOOL64
8548   # Extract the first word of "otool64", so it can be a program name with args.
8549 set dummy otool64; ac_word=$2
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8551 $as_echo_n "checking for $ac_word... " >&6; }
8552 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8553   $as_echo_n "(cached) " >&6
8554 else
8555   if test -n "$ac_ct_OTOOL64"; then
8556   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8557 else
8558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8559 for as_dir in $PATH
8560 do
8561   IFS=$as_save_IFS
8562   test -z "$as_dir" && as_dir=.
8563     for ac_exec_ext in '' $ac_executable_extensions; do
8564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8565     ac_cv_prog_ac_ct_OTOOL64="otool64"
8566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8567     break 2
8568   fi
8569 done
8570   done
8571 IFS=$as_save_IFS
8572
8573 fi
8574 fi
8575 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8576 if test -n "$ac_ct_OTOOL64"; then
8577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8578 $as_echo "$ac_ct_OTOOL64" >&6; }
8579 else
8580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581 $as_echo "no" >&6; }
8582 fi
8583
8584   if test "x$ac_ct_OTOOL64" = x; then
8585     OTOOL64=":"
8586   else
8587     case $cross_compiling:$ac_tool_warned in
8588 yes:)
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8591 ac_tool_warned=yes ;;
8592 esac
8593     OTOOL64=$ac_ct_OTOOL64
8594   fi
8595 else
8596   OTOOL64="$ac_cv_prog_OTOOL64"
8597 fi
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8626 $as_echo_n "checking for -single_module linker flag... " >&6; }
8627 if ${lt_cv_apple_cc_single_mod+:} false; then :
8628   $as_echo_n "(cached) " >&6
8629 else
8630   lt_cv_apple_cc_single_mod=no
8631       if test -z "${LT_MULTI_MODULE}"; then
8632         # By default we will add the -single_module flag. You can override
8633         # by either setting the environment variable LT_MULTI_MODULE
8634         # non-empty at configure time, or by adding -multi_module to the
8635         # link flags.
8636         rm -rf libconftest.dylib*
8637         echo "int foo(void){return 1;}" > conftest.c
8638         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8639 -dynamiclib -Wl,-single_module conftest.c" >&5
8640         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8641           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8642         _lt_result=$?
8643         # If there is a non-empty error log, and "single_module"
8644         # appears in it, assume the flag caused a linker warning
8645         if test -s conftest.err && $GREP single_module conftest.err; then
8646           cat conftest.err >&5
8647         # Otherwise, if the output was created with a 0 exit code from
8648         # the compiler, it worked.
8649         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8650           lt_cv_apple_cc_single_mod=yes
8651         else
8652           cat conftest.err >&5
8653         fi
8654         rm -rf libconftest.dylib*
8655         rm -f conftest.*
8656       fi
8657 fi
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8659 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8660
8661     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8662 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8663 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8664   $as_echo_n "(cached) " >&6
8665 else
8666   lt_cv_ld_exported_symbols_list=no
8667       save_LDFLAGS=$LDFLAGS
8668       echo "_main" > conftest.sym
8669       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8670       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8671 /* end confdefs.h.  */
8672
8673 int
8674 main ()
8675 {
8676
8677   ;
8678   return 0;
8679 }
8680 _ACEOF
8681 if ac_fn_c_try_link "$LINENO"; then :
8682   lt_cv_ld_exported_symbols_list=yes
8683 else
8684   lt_cv_ld_exported_symbols_list=no
8685 fi
8686 rm -f core conftest.err conftest.$ac_objext \
8687     conftest$ac_exeext conftest.$ac_ext
8688         LDFLAGS="$save_LDFLAGS"
8689
8690 fi
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8692 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8693
8694     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8695 $as_echo_n "checking for -force_load linker flag... " >&6; }
8696 if ${lt_cv_ld_force_load+:} false; then :
8697   $as_echo_n "(cached) " >&6
8698 else
8699   lt_cv_ld_force_load=no
8700       cat > conftest.c << _LT_EOF
8701 int forced_loaded() { return 2;}
8702 _LT_EOF
8703       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8704       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8705       echo "$AR cru libconftest.a conftest.o" >&5
8706       $AR cru libconftest.a conftest.o 2>&5
8707       echo "$RANLIB libconftest.a" >&5
8708       $RANLIB libconftest.a 2>&5
8709       cat > conftest.c << _LT_EOF
8710 int main() { return 0;}
8711 _LT_EOF
8712       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8713       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8714       _lt_result=$?
8715       if test -s conftest.err && $GREP force_load conftest.err; then
8716         cat conftest.err >&5
8717       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8718         lt_cv_ld_force_load=yes
8719       else
8720         cat conftest.err >&5
8721       fi
8722         rm -f conftest.err libconftest.a conftest conftest.c
8723         rm -rf conftest.dSYM
8724
8725 fi
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8727 $as_echo "$lt_cv_ld_force_load" >&6; }
8728     case $host_os in
8729     rhapsody* | darwin1.[012])
8730       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8731     darwin1.*)
8732       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8733     darwin*) # darwin 5.x on
8734       # if running on 10.5 or later, the deployment target defaults
8735       # to the OS version, if on x86, and 10.4, the deployment
8736       # target defaults to 10.4. Don't you love it?
8737       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8738         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8739           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8740         10.[012]*)
8741           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8742         10.*)
8743           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8744       esac
8745     ;;
8746   esac
8747     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8748       _lt_dar_single_mod='$single_module'
8749     fi
8750     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8751       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8752     else
8753       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8754     fi
8755     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8756       _lt_dsymutil='~$DSYMUTIL $lib || :'
8757     else
8758       _lt_dsymutil=
8759     fi
8760     ;;
8761   esac
8762
8763 for ac_header in dlfcn.h
8764 do :
8765   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8766 "
8767 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8768   cat >>confdefs.h <<_ACEOF
8769 #define HAVE_DLFCN_H 1
8770 _ACEOF
8771
8772 fi
8773
8774 done
8775
8776
8777
8778
8779
8780 # Set options
8781
8782
8783
8784         enable_dlopen=no
8785
8786
8787   enable_win32_dll=no
8788
8789
8790             # Check whether --enable-shared was given.
8791 if test "${enable_shared+set}" = set; then :
8792   enableval=$enable_shared; p=${PACKAGE-default}
8793     case $enableval in
8794     yes) enable_shared=yes ;;
8795     no) enable_shared=no ;;
8796     *)
8797       enable_shared=no
8798       # Look at the argument we got.  We use all the common list separators.
8799       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8800       for pkg in $enableval; do
8801         IFS="$lt_save_ifs"
8802         if test "X$pkg" = "X$p"; then
8803           enable_shared=yes
8804         fi
8805       done
8806       IFS="$lt_save_ifs"
8807       ;;
8808     esac
8809 else
8810   enable_shared=yes
8811 fi
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823 # Check whether --with-pic was given.
8824 if test "${with_pic+set}" = set; then :
8825   withval=$with_pic; lt_p=${PACKAGE-default}
8826     case $withval in
8827     yes|no) pic_mode=$withval ;;
8828     *)
8829       pic_mode=default
8830       # Look at the argument we got.  We use all the common list separators.
8831       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8832       for lt_pkg in $withval; do
8833         IFS="$lt_save_ifs"
8834         if test "X$lt_pkg" = "X$lt_p"; then
8835           pic_mode=yes
8836         fi
8837       done
8838       IFS="$lt_save_ifs"
8839       ;;
8840     esac
8841 else
8842   pic_mode=default
8843 fi
8844
8845
8846 test -z "$pic_mode" && pic_mode=default
8847
8848
8849
8850
8851
8852
8853
8854   # Check whether --enable-fast-install was given.
8855 if test "${enable_fast_install+set}" = set; then :
8856   enableval=$enable_fast_install; p=${PACKAGE-default}
8857     case $enableval in
8858     yes) enable_fast_install=yes ;;
8859     no) enable_fast_install=no ;;
8860     *)
8861       enable_fast_install=no
8862       # Look at the argument we got.  We use all the common list separators.
8863       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8864       for pkg in $enableval; do
8865         IFS="$lt_save_ifs"
8866         if test "X$pkg" = "X$p"; then
8867           enable_fast_install=yes
8868         fi
8869       done
8870       IFS="$lt_save_ifs"
8871       ;;
8872     esac
8873 else
8874   enable_fast_install=yes
8875 fi
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887 # This can be used to rebuild libtool when needed
8888 LIBTOOL_DEPS="$ltmain"
8889
8890 # Always use our own libtool.
8891 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922 test -z "$LN_S" && LN_S="ln -s"
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937 if test -n "${ZSH_VERSION+set}" ; then
8938    setopt NO_GLOB_SUBST
8939 fi
8940
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8942 $as_echo_n "checking for objdir... " >&6; }
8943 if ${lt_cv_objdir+:} false; then :
8944   $as_echo_n "(cached) " >&6
8945 else
8946   rm -f .libs 2>/dev/null
8947 mkdir .libs 2>/dev/null
8948 if test -d .libs; then
8949   lt_cv_objdir=.libs
8950 else
8951   # MS-DOS does not allow filenames that begin with a dot.
8952   lt_cv_objdir=_libs
8953 fi
8954 rmdir .libs 2>/dev/null
8955 fi
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8957 $as_echo "$lt_cv_objdir" >&6; }
8958 objdir=$lt_cv_objdir
8959
8960
8961
8962
8963
8964 cat >>confdefs.h <<_ACEOF
8965 #define LT_OBJDIR "$lt_cv_objdir/"
8966 _ACEOF
8967
8968
8969
8970
8971 case $host_os in
8972 aix3*)
8973   # AIX sometimes has problems with the GCC collect2 program.  For some
8974   # reason, if we set the COLLECT_NAMES environment variable, the problems
8975   # vanish in a puff of smoke.
8976   if test "X${COLLECT_NAMES+set}" != Xset; then
8977     COLLECT_NAMES=
8978     export COLLECT_NAMES
8979   fi
8980   ;;
8981 esac
8982
8983 # Global variables:
8984 ofile=libtool
8985 can_build_shared=yes
8986
8987 # All known linkers require a `.a' archive for static linking (except MSVC,
8988 # which needs '.lib').
8989 libext=a
8990
8991 with_gnu_ld="$lt_cv_prog_gnu_ld"
8992
8993 old_CC="$CC"
8994 old_CFLAGS="$CFLAGS"
8995
8996 # Set sane defaults for various variables
8997 test -z "$CC" && CC=cc
8998 test -z "$LTCC" && LTCC=$CC
8999 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9000 test -z "$LD" && LD=ld
9001 test -z "$ac_objext" && ac_objext=o
9002
9003 for cc_temp in $compiler""; do
9004   case $cc_temp in
9005     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9006     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9007     \-*) ;;
9008     *) break;;
9009   esac
9010 done
9011 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9012
9013
9014 # Only perform the check for file, if the check method requires it
9015 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9016 case $deplibs_check_method in
9017 file_magic*)
9018   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9019     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9020 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9021 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9022   $as_echo_n "(cached) " >&6
9023 else
9024   case $MAGIC_CMD in
9025 [\\/*] |  ?:[\\/]*)
9026   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9027   ;;
9028 *)
9029   lt_save_MAGIC_CMD="$MAGIC_CMD"
9030   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9031   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9032   for ac_dir in $ac_dummy; do
9033     IFS="$lt_save_ifs"
9034     test -z "$ac_dir" && ac_dir=.
9035     if test -f $ac_dir/${ac_tool_prefix}file; then
9036       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9037       if test -n "$file_magic_test_file"; then
9038         case $deplibs_check_method in
9039         "file_magic "*)
9040           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9041           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9042           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9043             $EGREP "$file_magic_regex" > /dev/null; then
9044             :
9045           else
9046             cat <<_LT_EOF 1>&2
9047
9048 *** Warning: the command libtool uses to detect shared libraries,
9049 *** $file_magic_cmd, produces output that libtool cannot recognize.
9050 *** The result is that libtool may fail to recognize shared libraries
9051 *** as such.  This will affect the creation of libtool libraries that
9052 *** depend on shared libraries, but programs linked with such libtool
9053 *** libraries will work regardless of this problem.  Nevertheless, you
9054 *** may want to report the problem to your system manager and/or to
9055 *** bug-libtool@gnu.org
9056
9057 _LT_EOF
9058           fi ;;
9059         esac
9060       fi
9061       break
9062     fi
9063   done
9064   IFS="$lt_save_ifs"
9065   MAGIC_CMD="$lt_save_MAGIC_CMD"
9066   ;;
9067 esac
9068 fi
9069
9070 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9071 if test -n "$MAGIC_CMD"; then
9072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9073 $as_echo "$MAGIC_CMD" >&6; }
9074 else
9075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076 $as_echo "no" >&6; }
9077 fi
9078
9079
9080
9081
9082
9083 if test -z "$lt_cv_path_MAGIC_CMD"; then
9084   if test -n "$ac_tool_prefix"; then
9085     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9086 $as_echo_n "checking for file... " >&6; }
9087 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9088   $as_echo_n "(cached) " >&6
9089 else
9090   case $MAGIC_CMD in
9091 [\\/*] |  ?:[\\/]*)
9092   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9093   ;;
9094 *)
9095   lt_save_MAGIC_CMD="$MAGIC_CMD"
9096   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9097   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9098   for ac_dir in $ac_dummy; do
9099     IFS="$lt_save_ifs"
9100     test -z "$ac_dir" && ac_dir=.
9101     if test -f $ac_dir/file; then
9102       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9103       if test -n "$file_magic_test_file"; then
9104         case $deplibs_check_method in
9105         "file_magic "*)
9106           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9107           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9108           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9109             $EGREP "$file_magic_regex" > /dev/null; then
9110             :
9111           else
9112             cat <<_LT_EOF 1>&2
9113
9114 *** Warning: the command libtool uses to detect shared libraries,
9115 *** $file_magic_cmd, produces output that libtool cannot recognize.
9116 *** The result is that libtool may fail to recognize shared libraries
9117 *** as such.  This will affect the creation of libtool libraries that
9118 *** depend on shared libraries, but programs linked with such libtool
9119 *** libraries will work regardless of this problem.  Nevertheless, you
9120 *** may want to report the problem to your system manager and/or to
9121 *** bug-libtool@gnu.org
9122
9123 _LT_EOF
9124           fi ;;
9125         esac
9126       fi
9127       break
9128     fi
9129   done
9130   IFS="$lt_save_ifs"
9131   MAGIC_CMD="$lt_save_MAGIC_CMD"
9132   ;;
9133 esac
9134 fi
9135
9136 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9137 if test -n "$MAGIC_CMD"; then
9138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9139 $as_echo "$MAGIC_CMD" >&6; }
9140 else
9141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142 $as_echo "no" >&6; }
9143 fi
9144
9145
9146   else
9147     MAGIC_CMD=:
9148   fi
9149 fi
9150
9151   fi
9152   ;;
9153 esac
9154
9155 # Use C for the default configuration in the libtool script
9156
9157 lt_save_CC="$CC"
9158 ac_ext=c
9159 ac_cpp='$CPP $CPPFLAGS'
9160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9163
9164
9165 # Source file extension for C test sources.
9166 ac_ext=c
9167
9168 # Object file extension for compiled C test sources.
9169 objext=o
9170 objext=$objext
9171
9172 # Code to be used in simple compile tests
9173 lt_simple_compile_test_code="int some_variable = 0;"
9174
9175 # Code to be used in simple link tests
9176 lt_simple_link_test_code='int main(){return(0);}'
9177
9178
9179
9180
9181
9182
9183
9184 # If no C compiler was specified, use CC.
9185 LTCC=${LTCC-"$CC"}
9186
9187 # If no C compiler flags were specified, use CFLAGS.
9188 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9189
9190 # Allow CC to be a program name with arguments.
9191 compiler=$CC
9192
9193 # Save the default compiler, since it gets overwritten when the other
9194 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9195 compiler_DEFAULT=$CC
9196
9197 # save warnings/boilerplate of simple test code
9198 ac_outfile=conftest.$ac_objext
9199 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9200 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9201 _lt_compiler_boilerplate=`cat conftest.err`
9202 $RM conftest*
9203
9204 ac_outfile=conftest.$ac_objext
9205 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9206 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9207 _lt_linker_boilerplate=`cat conftest.err`
9208 $RM -r conftest*
9209
9210
9211 ## CAVEAT EMPTOR:
9212 ## There is no encapsulation within the following macros, do not change
9213 ## the running order or otherwise move them around unless you know exactly
9214 ## what you are doing...
9215 if test -n "$compiler"; then
9216
9217 lt_prog_compiler_no_builtin_flag=
9218
9219 if test "$GCC" = yes; then
9220   case $cc_basename in
9221   nvcc*)
9222     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9223   *)
9224     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9225   esac
9226
9227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9228 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9229 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9230   $as_echo_n "(cached) " >&6
9231 else
9232   lt_cv_prog_compiler_rtti_exceptions=no
9233    ac_outfile=conftest.$ac_objext
9234    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9235    lt_compiler_flag="-fno-rtti -fno-exceptions"
9236    # Insert the option either (1) after the last *FLAGS variable, or
9237    # (2) before a word containing "conftest.", or (3) at the end.
9238    # Note that $ac_compile itself does not contain backslashes and begins
9239    # with a dollar sign (not a hyphen), so the echo should work correctly.
9240    # The option is referenced via a variable to avoid confusing sed.
9241    lt_compile=`echo "$ac_compile" | $SED \
9242    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9243    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9244    -e 's:$: $lt_compiler_flag:'`
9245    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9246    (eval "$lt_compile" 2>conftest.err)
9247    ac_status=$?
9248    cat conftest.err >&5
9249    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250    if (exit $ac_status) && test -s "$ac_outfile"; then
9251      # The compiler can only warn and ignore the option if not recognized
9252      # So say no if there are warnings other than the usual output.
9253      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9254      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9255      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9256        lt_cv_prog_compiler_rtti_exceptions=yes
9257      fi
9258    fi
9259    $RM conftest*
9260
9261 fi
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9263 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9264
9265 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9266     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9267 else
9268     :
9269 fi
9270
9271 fi
9272
9273
9274
9275
9276
9277
9278   lt_prog_compiler_wl=
9279 lt_prog_compiler_pic=
9280 lt_prog_compiler_static=
9281
9282
9283   if test "$GCC" = yes; then
9284     lt_prog_compiler_wl='-Wl,'
9285     lt_prog_compiler_static='-static'
9286
9287     case $host_os in
9288       aix*)
9289       # All AIX code is PIC.
9290       if test "$host_cpu" = ia64; then
9291         # AIX 5 now supports IA64 processor
9292         lt_prog_compiler_static='-Bstatic'
9293       fi
9294       ;;
9295
9296     amigaos*)
9297       case $host_cpu in
9298       powerpc)
9299             # see comment about AmigaOS4 .so support
9300             lt_prog_compiler_pic='-fPIC'
9301         ;;
9302       m68k)
9303             # FIXME: we need at least 68020 code to build shared libraries, but
9304             # adding the `-m68020' flag to GCC prevents building anything better,
9305             # like `-m68040'.
9306             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9307         ;;
9308       esac
9309       ;;
9310
9311     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9312       # PIC is the default for these OSes.
9313       ;;
9314
9315     mingw* | cygwin* | pw32* | os2* | cegcc*)
9316       # This hack is so that the source file can tell whether it is being
9317       # built for inclusion in a dll (and should export symbols for example).
9318       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9319       # (--disable-auto-import) libraries
9320       lt_prog_compiler_pic='-DDLL_EXPORT'
9321       ;;
9322
9323     darwin* | rhapsody*)
9324       # PIC is the default on this platform
9325       # Common symbols not allowed in MH_DYLIB files
9326       lt_prog_compiler_pic='-fno-common'
9327       ;;
9328
9329     haiku*)
9330       # PIC is the default for Haiku.
9331       # The "-static" flag exists, but is broken.
9332       lt_prog_compiler_static=
9333       ;;
9334
9335     hpux*)
9336       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9337       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9338       # sets the default TLS model and affects inlining.
9339       case $host_cpu in
9340       hppa*64*)
9341         # +Z the default
9342         ;;
9343       *)
9344         lt_prog_compiler_pic='-fPIC'
9345         ;;
9346       esac
9347       ;;
9348
9349     interix[3-9]*)
9350       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9351       # Instead, we relocate shared libraries at runtime.
9352       ;;
9353
9354     msdosdjgpp*)
9355       # Just because we use GCC doesn't mean we suddenly get shared libraries
9356       # on systems that don't support them.
9357       lt_prog_compiler_can_build_shared=no
9358       enable_shared=no
9359       ;;
9360
9361     *nto* | *qnx*)
9362       # QNX uses GNU C++, but need to define -shared option too, otherwise
9363       # it will coredump.
9364       lt_prog_compiler_pic='-fPIC -shared'
9365       ;;
9366
9367     sysv4*MP*)
9368       if test -d /usr/nec; then
9369         lt_prog_compiler_pic=-Kconform_pic
9370       fi
9371       ;;
9372
9373     *)
9374       lt_prog_compiler_pic='-fPIC'
9375       ;;
9376     esac
9377
9378     case $cc_basename in
9379     nvcc*) # Cuda Compiler Driver 2.2
9380       lt_prog_compiler_wl='-Xlinker '
9381       if test -n "$lt_prog_compiler_pic"; then
9382         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9383       fi
9384       ;;
9385     esac
9386   else
9387     # PORTME Check for flag to pass linker flags through the system compiler.
9388     case $host_os in
9389     aix*)
9390       lt_prog_compiler_wl='-Wl,'
9391       if test "$host_cpu" = ia64; then
9392         # AIX 5 now supports IA64 processor
9393         lt_prog_compiler_static='-Bstatic'
9394       else
9395         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9396       fi
9397       ;;
9398
9399     mingw* | cygwin* | pw32* | os2* | cegcc*)
9400       # This hack is so that the source file can tell whether it is being
9401       # built for inclusion in a dll (and should export symbols for example).
9402       lt_prog_compiler_pic='-DDLL_EXPORT'
9403       ;;
9404
9405     hpux9* | hpux10* | hpux11*)
9406       lt_prog_compiler_wl='-Wl,'
9407       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9408       # not for PA HP-UX.
9409       case $host_cpu in
9410       hppa*64*|ia64*)
9411         # +Z the default
9412         ;;
9413       *)
9414         lt_prog_compiler_pic='+Z'
9415         ;;
9416       esac
9417       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9418       lt_prog_compiler_static='${wl}-a ${wl}archive'
9419       ;;
9420
9421     irix5* | irix6* | nonstopux*)
9422       lt_prog_compiler_wl='-Wl,'
9423       # PIC (with -KPIC) is the default.
9424       lt_prog_compiler_static='-non_shared'
9425       ;;
9426
9427     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9428       case $cc_basename in
9429       # old Intel for x86_64 which still supported -KPIC.
9430       ecc*)
9431         lt_prog_compiler_wl='-Wl,'
9432         lt_prog_compiler_pic='-KPIC'
9433         lt_prog_compiler_static='-static'
9434         ;;
9435       # icc used to be incompatible with GCC.
9436       # ICC 10 doesn't accept -KPIC any more.
9437       icc* | ifort*)
9438         lt_prog_compiler_wl='-Wl,'
9439         lt_prog_compiler_pic='-fPIC'
9440         lt_prog_compiler_static='-static'
9441         ;;
9442       # Lahey Fortran 8.1.
9443       lf95*)
9444         lt_prog_compiler_wl='-Wl,'
9445         lt_prog_compiler_pic='--shared'
9446         lt_prog_compiler_static='--static'
9447         ;;
9448       nagfor*)
9449         # NAG Fortran compiler
9450         lt_prog_compiler_wl='-Wl,-Wl,,'
9451         lt_prog_compiler_pic='-PIC'
9452         lt_prog_compiler_static='-Bstatic'
9453         ;;
9454       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9455         # Portland Group compilers (*not* the Pentium gcc compiler,
9456         # which looks to be a dead project)
9457         lt_prog_compiler_wl='-Wl,'
9458         lt_prog_compiler_pic='-fpic'
9459         lt_prog_compiler_static='-Bstatic'
9460         ;;
9461       ccc*)
9462         lt_prog_compiler_wl='-Wl,'
9463         # All Alpha code is PIC.
9464         lt_prog_compiler_static='-non_shared'
9465         ;;
9466       xl* | bgxl* | bgf* | mpixl*)
9467         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9468         lt_prog_compiler_wl='-Wl,'
9469         lt_prog_compiler_pic='-qpic'
9470         lt_prog_compiler_static='-qstaticlink'
9471         ;;
9472       *)
9473         case `$CC -V 2>&1 | sed 5q` in
9474         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9475           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9476           lt_prog_compiler_pic='-KPIC'
9477           lt_prog_compiler_static='-Bstatic'
9478           lt_prog_compiler_wl=''
9479           ;;
9480         *Sun\ F* | *Sun*Fortran*)
9481           lt_prog_compiler_pic='-KPIC'
9482           lt_prog_compiler_static='-Bstatic'
9483           lt_prog_compiler_wl='-Qoption ld '
9484           ;;
9485         *Sun\ C*)
9486           # Sun C 5.9
9487           lt_prog_compiler_pic='-KPIC'
9488           lt_prog_compiler_static='-Bstatic'
9489           lt_prog_compiler_wl='-Wl,'
9490           ;;
9491         *Intel*\ [CF]*Compiler*)
9492           lt_prog_compiler_wl='-Wl,'
9493           lt_prog_compiler_pic='-fPIC'
9494           lt_prog_compiler_static='-static'
9495           ;;
9496         *Portland\ Group*)
9497           lt_prog_compiler_wl='-Wl,'
9498           lt_prog_compiler_pic='-fpic'
9499           lt_prog_compiler_static='-Bstatic'
9500           ;;
9501         esac
9502         ;;
9503       esac
9504       ;;
9505
9506     newsos6)
9507       lt_prog_compiler_pic='-KPIC'
9508       lt_prog_compiler_static='-Bstatic'
9509       ;;
9510
9511     *nto* | *qnx*)
9512       # QNX uses GNU C++, but need to define -shared option too, otherwise
9513       # it will coredump.
9514       lt_prog_compiler_pic='-fPIC -shared'
9515       ;;
9516
9517     osf3* | osf4* | osf5*)
9518       lt_prog_compiler_wl='-Wl,'
9519       # All OSF/1 code is PIC.
9520       lt_prog_compiler_static='-non_shared'
9521       ;;
9522
9523     rdos*)
9524       lt_prog_compiler_static='-non_shared'
9525       ;;
9526
9527     solaris*)
9528       lt_prog_compiler_pic='-KPIC'
9529       lt_prog_compiler_static='-Bstatic'
9530       case $cc_basename in
9531       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9532         lt_prog_compiler_wl='-Qoption ld ';;
9533       *)
9534         lt_prog_compiler_wl='-Wl,';;
9535       esac
9536       ;;
9537
9538     sunos4*)
9539       lt_prog_compiler_wl='-Qoption ld '
9540       lt_prog_compiler_pic='-PIC'
9541       lt_prog_compiler_static='-Bstatic'
9542       ;;
9543
9544     sysv4 | sysv4.2uw2* | sysv4.3*)
9545       lt_prog_compiler_wl='-Wl,'
9546       lt_prog_compiler_pic='-KPIC'
9547       lt_prog_compiler_static='-Bstatic'
9548       ;;
9549
9550     sysv4*MP*)
9551       if test -d /usr/nec ;then
9552         lt_prog_compiler_pic='-Kconform_pic'
9553         lt_prog_compiler_static='-Bstatic'
9554       fi
9555       ;;
9556
9557     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9558       lt_prog_compiler_wl='-Wl,'
9559       lt_prog_compiler_pic='-KPIC'
9560       lt_prog_compiler_static='-Bstatic'
9561       ;;
9562
9563     unicos*)
9564       lt_prog_compiler_wl='-Wl,'
9565       lt_prog_compiler_can_build_shared=no
9566       ;;
9567
9568     uts4*)
9569       lt_prog_compiler_pic='-pic'
9570       lt_prog_compiler_static='-Bstatic'
9571       ;;
9572
9573     *)
9574       lt_prog_compiler_can_build_shared=no
9575       ;;
9576     esac
9577   fi
9578
9579 case $host_os in
9580   # For platforms which do not support PIC, -DPIC is meaningless:
9581   *djgpp*)
9582     lt_prog_compiler_pic=
9583     ;;
9584   *)
9585     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9586     ;;
9587 esac
9588
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9590 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9591 if ${lt_cv_prog_compiler_pic+:} false; then :
9592   $as_echo_n "(cached) " >&6
9593 else
9594   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9595 fi
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9597 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9598 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9599
9600 #
9601 # Check to make sure the PIC flag actually works.
9602 #
9603 if test -n "$lt_prog_compiler_pic"; then
9604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9605 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9606 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9607   $as_echo_n "(cached) " >&6
9608 else
9609   lt_cv_prog_compiler_pic_works=no
9610    ac_outfile=conftest.$ac_objext
9611    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9612    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9613    # Insert the option either (1) after the last *FLAGS variable, or
9614    # (2) before a word containing "conftest.", or (3) at the end.
9615    # Note that $ac_compile itself does not contain backslashes and begins
9616    # with a dollar sign (not a hyphen), so the echo should work correctly.
9617    # The option is referenced via a variable to avoid confusing sed.
9618    lt_compile=`echo "$ac_compile" | $SED \
9619    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9620    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9621    -e 's:$: $lt_compiler_flag:'`
9622    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9623    (eval "$lt_compile" 2>conftest.err)
9624    ac_status=$?
9625    cat conftest.err >&5
9626    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627    if (exit $ac_status) && test -s "$ac_outfile"; then
9628      # The compiler can only warn and ignore the option if not recognized
9629      # So say no if there are warnings other than the usual output.
9630      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9631      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9632      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9633        lt_cv_prog_compiler_pic_works=yes
9634      fi
9635    fi
9636    $RM conftest*
9637
9638 fi
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9640 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9641
9642 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9643     case $lt_prog_compiler_pic in
9644      "" | " "*) ;;
9645      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9646      esac
9647 else
9648     lt_prog_compiler_pic=
9649      lt_prog_compiler_can_build_shared=no
9650 fi
9651
9652 fi
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664 #
9665 # Check to make sure the static flag actually works.
9666 #
9667 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9669 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9670 if ${lt_cv_prog_compiler_static_works+:} false; then :
9671   $as_echo_n "(cached) " >&6
9672 else
9673   lt_cv_prog_compiler_static_works=no
9674    save_LDFLAGS="$LDFLAGS"
9675    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9676    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9677    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9678      # The linker can only warn and ignore the option if not recognized
9679      # So say no if there are warnings
9680      if test -s conftest.err; then
9681        # Append any errors to the config.log.
9682        cat conftest.err 1>&5
9683        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9684        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9685        if diff conftest.exp conftest.er2 >/dev/null; then
9686          lt_cv_prog_compiler_static_works=yes
9687        fi
9688      else
9689        lt_cv_prog_compiler_static_works=yes
9690      fi
9691    fi
9692    $RM -r conftest*
9693    LDFLAGS="$save_LDFLAGS"
9694
9695 fi
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9697 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9698
9699 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9700     :
9701 else
9702     lt_prog_compiler_static=
9703 fi
9704
9705
9706
9707
9708
9709
9710
9711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9712 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9713 if ${lt_cv_prog_compiler_c_o+:} false; then :
9714   $as_echo_n "(cached) " >&6
9715 else
9716   lt_cv_prog_compiler_c_o=no
9717    $RM -r conftest 2>/dev/null
9718    mkdir conftest
9719    cd conftest
9720    mkdir out
9721    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9722
9723    lt_compiler_flag="-o out/conftest2.$ac_objext"
9724    # Insert the option either (1) after the last *FLAGS variable, or
9725    # (2) before a word containing "conftest.", or (3) at the end.
9726    # Note that $ac_compile itself does not contain backslashes and begins
9727    # with a dollar sign (not a hyphen), so the echo should work correctly.
9728    lt_compile=`echo "$ac_compile" | $SED \
9729    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9730    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9731    -e 's:$: $lt_compiler_flag:'`
9732    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9733    (eval "$lt_compile" 2>out/conftest.err)
9734    ac_status=$?
9735    cat out/conftest.err >&5
9736    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9738    then
9739      # The compiler can only warn and ignore the option if not recognized
9740      # So say no if there are warnings
9741      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9742      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9743      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9744        lt_cv_prog_compiler_c_o=yes
9745      fi
9746    fi
9747    chmod u+w . 2>&5
9748    $RM conftest*
9749    # SGI C++ compiler will create directory out/ii_files/ for
9750    # template instantiation
9751    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9752    $RM out/* && rmdir out
9753    cd ..
9754    $RM -r conftest
9755    $RM conftest*
9756
9757 fi
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9759 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9760
9761
9762
9763
9764
9765
9766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9767 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9768 if ${lt_cv_prog_compiler_c_o+:} false; then :
9769   $as_echo_n "(cached) " >&6
9770 else
9771   lt_cv_prog_compiler_c_o=no
9772    $RM -r conftest 2>/dev/null
9773    mkdir conftest
9774    cd conftest
9775    mkdir out
9776    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9777
9778    lt_compiler_flag="-o out/conftest2.$ac_objext"
9779    # Insert the option either (1) after the last *FLAGS variable, or
9780    # (2) before a word containing "conftest.", or (3) at the end.
9781    # Note that $ac_compile itself does not contain backslashes and begins
9782    # with a dollar sign (not a hyphen), so the echo should work correctly.
9783    lt_compile=`echo "$ac_compile" | $SED \
9784    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9785    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9786    -e 's:$: $lt_compiler_flag:'`
9787    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9788    (eval "$lt_compile" 2>out/conftest.err)
9789    ac_status=$?
9790    cat out/conftest.err >&5
9791    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9793    then
9794      # The compiler can only warn and ignore the option if not recognized
9795      # So say no if there are warnings
9796      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9797      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9798      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9799        lt_cv_prog_compiler_c_o=yes
9800      fi
9801    fi
9802    chmod u+w . 2>&5
9803    $RM conftest*
9804    # SGI C++ compiler will create directory out/ii_files/ for
9805    # template instantiation
9806    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9807    $RM out/* && rmdir out
9808    cd ..
9809    $RM -r conftest
9810    $RM conftest*
9811
9812 fi
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9814 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9815
9816
9817
9818
9819 hard_links="nottested"
9820 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9821   # do not overwrite the value of need_locks provided by the user
9822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9823 $as_echo_n "checking if we can lock with hard links... " >&6; }
9824   hard_links=yes
9825   $RM conftest*
9826   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9827   touch conftest.a
9828   ln conftest.a conftest.b 2>&5 || hard_links=no
9829   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9831 $as_echo "$hard_links" >&6; }
9832   if test "$hard_links" = no; then
9833     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9834 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9835     need_locks=warn
9836   fi
9837 else
9838   need_locks=no
9839 fi
9840
9841
9842
9843
9844
9845
9846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9847 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9848
9849   runpath_var=
9850   allow_undefined_flag=
9851   always_export_symbols=no
9852   archive_cmds=
9853   archive_expsym_cmds=
9854   compiler_needs_object=no
9855   enable_shared_with_static_runtimes=no
9856   export_dynamic_flag_spec=
9857   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9858   hardcode_automatic=no
9859   hardcode_direct=no
9860   hardcode_direct_absolute=no
9861   hardcode_libdir_flag_spec=
9862   hardcode_libdir_separator=
9863   hardcode_minus_L=no
9864   hardcode_shlibpath_var=unsupported
9865   inherit_rpath=no
9866   link_all_deplibs=unknown
9867   module_cmds=
9868   module_expsym_cmds=
9869   old_archive_from_new_cmds=
9870   old_archive_from_expsyms_cmds=
9871   thread_safe_flag_spec=
9872   whole_archive_flag_spec=
9873   # include_expsyms should be a list of space-separated symbols to be *always*
9874   # included in the symbol list
9875   include_expsyms=
9876   # exclude_expsyms can be an extended regexp of symbols to exclude
9877   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9878   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9879   # as well as any symbol that contains `d'.
9880   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9881   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9882   # platforms (ab)use it in PIC code, but their linkers get confused if
9883   # the symbol is explicitly referenced.  Since portable code cannot
9884   # rely on this symbol name, it's probably fine to never include it in
9885   # preloaded symbol tables.
9886   # Exclude shared library initialization/finalization symbols.
9887   extract_expsyms_cmds=
9888
9889   case $host_os in
9890   cygwin* | mingw* | pw32* | cegcc*)
9891     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9892     # When not using gcc, we currently assume that we are using
9893     # Microsoft Visual C++.
9894     if test "$GCC" != yes; then
9895       with_gnu_ld=no
9896     fi
9897     ;;
9898   interix*)
9899     # we just hope/assume this is gcc and not c89 (= MSVC++)
9900     with_gnu_ld=yes
9901     ;;
9902   openbsd*)
9903     with_gnu_ld=no
9904     ;;
9905   linux* | k*bsd*-gnu | gnu*)
9906     link_all_deplibs=no
9907     ;;
9908   esac
9909
9910   ld_shlibs=yes
9911
9912   # On some targets, GNU ld is compatible enough with the native linker
9913   # that we're better off using the native interface for both.
9914   lt_use_gnu_ld_interface=no
9915   if test "$with_gnu_ld" = yes; then
9916     case $host_os in
9917       aix*)
9918         # The AIX port of GNU ld has always aspired to compatibility
9919         # with the native linker.  However, as the warning in the GNU ld
9920         # block says, versions before 2.19.5* couldn't really create working
9921         # shared libraries, regardless of the interface used.
9922         case `$LD -v 2>&1` in
9923           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9924           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9925           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9926           *)
9927             lt_use_gnu_ld_interface=yes
9928             ;;
9929         esac
9930         ;;
9931       *)
9932         lt_use_gnu_ld_interface=yes
9933         ;;
9934     esac
9935   fi
9936
9937   if test "$lt_use_gnu_ld_interface" = yes; then
9938     # If archive_cmds runs LD, not CC, wlarc should be empty
9939     wlarc='${wl}'
9940
9941     # Set some defaults for GNU ld with shared library support. These
9942     # are reset later if shared libraries are not supported. Putting them
9943     # here allows them to be overridden if necessary.
9944     runpath_var=LD_RUN_PATH
9945     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9946     export_dynamic_flag_spec='${wl}--export-dynamic'
9947     # ancient GNU ld didn't support --whole-archive et. al.
9948     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9949       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9950     else
9951       whole_archive_flag_spec=
9952     fi
9953     supports_anon_versioning=no
9954     case `$LD -v 2>&1` in
9955       *GNU\ gold*) supports_anon_versioning=yes ;;
9956       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9957       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9958       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9959       *\ 2.11.*) ;; # other 2.11 versions
9960       *) supports_anon_versioning=yes ;;
9961     esac
9962
9963     # See if GNU ld supports shared libraries.
9964     case $host_os in
9965     aix[3-9]*)
9966       # On AIX/PPC, the GNU linker is very broken
9967       if test "$host_cpu" != ia64; then
9968         ld_shlibs=no
9969         cat <<_LT_EOF 1>&2
9970
9971 *** Warning: the GNU linker, at least up to release 2.19, is reported
9972 *** to be unable to reliably create shared libraries on AIX.
9973 *** Therefore, libtool is disabling shared libraries support.  If you
9974 *** really care for shared libraries, you may want to install binutils
9975 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9976 *** You will then need to restart the configuration process.
9977
9978 _LT_EOF
9979       fi
9980       ;;
9981
9982     amigaos*)
9983       case $host_cpu in
9984       powerpc)
9985             # see comment about AmigaOS4 .so support
9986             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9987             archive_expsym_cmds=''
9988         ;;
9989       m68k)
9990             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)'
9991             hardcode_libdir_flag_spec='-L$libdir'
9992             hardcode_minus_L=yes
9993         ;;
9994       esac
9995       ;;
9996
9997     beos*)
9998       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9999         allow_undefined_flag=unsupported
10000         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10001         # support --undefined.  This deserves some investigation.  FIXME
10002         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10003       else
10004         ld_shlibs=no
10005       fi
10006       ;;
10007
10008     cygwin* | mingw* | pw32* | cegcc*)
10009       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10010       # as there is no search path for DLLs.
10011       hardcode_libdir_flag_spec='-L$libdir'
10012       export_dynamic_flag_spec='${wl}--export-all-symbols'
10013       allow_undefined_flag=unsupported
10014       always_export_symbols=no
10015       enable_shared_with_static_runtimes=yes
10016       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'
10017       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10018
10019       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10020         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10021         # If the export-symbols file already is a .def file (1st line
10022         # is EXPORTS), use it as is; otherwise, prepend...
10023         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10024           cp $export_symbols $output_objdir/$soname.def;
10025         else
10026           echo EXPORTS > $output_objdir/$soname.def;
10027           cat $export_symbols >> $output_objdir/$soname.def;
10028         fi~
10029         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10030       else
10031         ld_shlibs=no
10032       fi
10033       ;;
10034
10035     haiku*)
10036       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10037       link_all_deplibs=yes
10038       ;;
10039
10040     interix[3-9]*)
10041       hardcode_direct=no
10042       hardcode_shlibpath_var=no
10043       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10044       export_dynamic_flag_spec='${wl}-E'
10045       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10046       # Instead, shared libraries are loaded at an image base (0x10000000 by
10047       # default) and relocated if they conflict, which is a slow very memory
10048       # consuming and fragmenting process.  To avoid this, we pick a random,
10049       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10050       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10051       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10052       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'
10053       ;;
10054
10055     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10056       tmp_diet=no
10057       if test "$host_os" = linux-dietlibc; then
10058         case $cc_basename in
10059           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10060         esac
10061       fi
10062       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10063          && test "$tmp_diet" = no
10064       then
10065         tmp_addflag=' $pic_flag'
10066         tmp_sharedflag='-shared'
10067         case $cc_basename,$host_cpu in
10068         pgcc*)                          # Portland Group C compiler
10069           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'
10070           tmp_addflag=' $pic_flag'
10071           ;;
10072         pgf77* | pgf90* | pgf95* | pgfortran*)
10073                                         # Portland Group f77 and f90 compilers
10074           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'
10075           tmp_addflag=' $pic_flag -Mnomain' ;;
10076         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10077           tmp_addflag=' -i_dynamic' ;;
10078         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10079           tmp_addflag=' -i_dynamic -nofor_main' ;;
10080         ifc* | ifort*)                  # Intel Fortran compiler
10081           tmp_addflag=' -nofor_main' ;;
10082         lf95*)                          # Lahey Fortran 8.1
10083           whole_archive_flag_spec=
10084           tmp_sharedflag='--shared' ;;
10085         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10086           tmp_sharedflag='-qmkshrobj'
10087           tmp_addflag= ;;
10088         nvcc*)  # Cuda Compiler Driver 2.2
10089           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'
10090           compiler_needs_object=yes
10091           ;;
10092         esac
10093         case `$CC -V 2>&1 | sed 5q` in
10094         *Sun\ C*)                       # Sun C 5.9
10095           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'
10096           compiler_needs_object=yes
10097           tmp_sharedflag='-G' ;;
10098         *Sun\ F*)                       # Sun Fortran 8.3
10099           tmp_sharedflag='-G' ;;
10100         esac
10101         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10102
10103         if test "x$supports_anon_versioning" = xyes; then
10104           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10105             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10106             echo "local: *; };" >> $output_objdir/$libname.ver~
10107             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10108         fi
10109
10110         case $cc_basename in
10111         xlf* | bgf* | bgxlf* | mpixlf*)
10112           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10113           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10114           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10115           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10116           if test "x$supports_anon_versioning" = xyes; then
10117             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10118               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10119               echo "local: *; };" >> $output_objdir/$libname.ver~
10120               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10121           fi
10122           ;;
10123         esac
10124       else
10125         ld_shlibs=no
10126       fi
10127       ;;
10128
10129     netbsd* | netbsdelf*-gnu)
10130       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10131         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10132         wlarc=
10133       else
10134         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10135         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10136       fi
10137       ;;
10138
10139     solaris*)
10140       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10141         ld_shlibs=no
10142         cat <<_LT_EOF 1>&2
10143
10144 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10145 *** create shared libraries on Solaris systems.  Therefore, libtool
10146 *** is disabling shared libraries support.  We urge you to upgrade GNU
10147 *** binutils to release 2.9.1 or newer.  Another option is to modify
10148 *** your PATH or compiler configuration so that the native linker is
10149 *** used, and then restart.
10150
10151 _LT_EOF
10152       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10153         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10154         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10155       else
10156         ld_shlibs=no
10157       fi
10158       ;;
10159
10160     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10161       case `$LD -v 2>&1` in
10162         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10163         ld_shlibs=no
10164         cat <<_LT_EOF 1>&2
10165
10166 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10167 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10168 *** is disabling shared libraries support.  We urge you to upgrade GNU
10169 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10170 *** your PATH or compiler configuration so that the native linker is
10171 *** used, and then restart.
10172
10173 _LT_EOF
10174         ;;
10175         *)
10176           # For security reasons, it is highly recommended that you always
10177           # use absolute paths for naming shared libraries, and exclude the
10178           # DT_RUNPATH tag from executables and libraries.  But doing so
10179           # requires that you compile everything twice, which is a pain.
10180           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10181             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10182             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10183             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10184           else
10185             ld_shlibs=no
10186           fi
10187         ;;
10188       esac
10189       ;;
10190
10191     sunos4*)
10192       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10193       wlarc=
10194       hardcode_direct=yes
10195       hardcode_shlibpath_var=no
10196       ;;
10197
10198     *)
10199       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10200         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10201         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10202       else
10203         ld_shlibs=no
10204       fi
10205       ;;
10206     esac
10207
10208     if test "$ld_shlibs" = no; then
10209       runpath_var=
10210       hardcode_libdir_flag_spec=
10211       export_dynamic_flag_spec=
10212       whole_archive_flag_spec=
10213     fi
10214   else
10215     # PORTME fill in a description of your system's linker (not GNU ld)
10216     case $host_os in
10217     aix3*)
10218       allow_undefined_flag=unsupported
10219       always_export_symbols=yes
10220       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'
10221       # Note: this linker hardcodes the directories in LIBPATH if there
10222       # are no directories specified by -L.
10223       hardcode_minus_L=yes
10224       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10225         # Neither direct hardcoding nor static linking is supported with a
10226         # broken collect2.
10227         hardcode_direct=unsupported
10228       fi
10229       ;;
10230
10231     aix[4-9]*)
10232       if test "$host_cpu" = ia64; then
10233         # On IA64, the linker does run time linking by default, so we don't
10234         # have to do anything special.
10235         aix_use_runtimelinking=no
10236         exp_sym_flag='-Bexport'
10237         no_entry_flag=""
10238       else
10239         # If we're using GNU nm, then we don't want the "-C" option.
10240         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10241         # Also, AIX nm treats weak defined symbols like other global
10242         # defined symbols, whereas GNU nm marks them as "W".
10243         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10244           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10245         else
10246           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10247         fi
10248         aix_use_runtimelinking=no
10249
10250         # Test if we are trying to use run time linking or normal
10251         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10252         # need to do runtime linking.
10253         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10254           for ld_flag in $LDFLAGS; do
10255           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10256             aix_use_runtimelinking=yes
10257             break
10258           fi
10259           done
10260           ;;
10261         esac
10262
10263         exp_sym_flag='-bexport'
10264         no_entry_flag='-bnoentry'
10265       fi
10266
10267       # When large executables or shared objects are built, AIX ld can
10268       # have problems creating the table of contents.  If linking a library
10269       # or program results in "error TOC overflow" add -mminimal-toc to
10270       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10271       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10272
10273       archive_cmds=''
10274       hardcode_direct=yes
10275       hardcode_direct_absolute=yes
10276       hardcode_libdir_separator=':'
10277       link_all_deplibs=yes
10278       file_list_spec='${wl}-f,'
10279
10280       if test "$GCC" = yes; then
10281         case $host_os in aix4.[012]|aix4.[012].*)
10282         # We only want to do this on AIX 4.2 and lower, the check
10283         # below for broken collect2 doesn't work under 4.3+
10284           collect2name=`${CC} -print-prog-name=collect2`
10285           if test -f "$collect2name" &&
10286            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10287           then
10288           # We have reworked collect2
10289           :
10290           else
10291           # We have old collect2
10292           hardcode_direct=unsupported
10293           # It fails to find uninstalled libraries when the uninstalled
10294           # path is not listed in the libpath.  Setting hardcode_minus_L
10295           # to unsupported forces relinking
10296           hardcode_minus_L=yes
10297           hardcode_libdir_flag_spec='-L$libdir'
10298           hardcode_libdir_separator=
10299           fi
10300           ;;
10301         esac
10302         shared_flag='-shared'
10303         if test "$aix_use_runtimelinking" = yes; then
10304           shared_flag="$shared_flag "'${wl}-G'
10305         fi
10306         link_all_deplibs=no
10307       else
10308         # not using gcc
10309         if test "$host_cpu" = ia64; then
10310         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10311         # chokes on -Wl,-G. The following line is correct:
10312           shared_flag='-G'
10313         else
10314           if test "$aix_use_runtimelinking" = yes; then
10315             shared_flag='${wl}-G'
10316           else
10317             shared_flag='${wl}-bM:SRE'
10318           fi
10319         fi
10320       fi
10321
10322       export_dynamic_flag_spec='${wl}-bexpall'
10323       # It seems that -bexpall does not export symbols beginning with
10324       # underscore (_), so it is better to generate a list of symbols to export.
10325       always_export_symbols=yes
10326       if test "$aix_use_runtimelinking" = yes; then
10327         # Warning - without using the other runtime loading flags (-brtl),
10328         # -berok will link without error, but may produce a broken library.
10329         allow_undefined_flag='-berok'
10330         # Determine the default libpath from the value encoded in an
10331         # empty executable.
10332         if test "${lt_cv_aix_libpath+set}" = set; then
10333   aix_libpath=$lt_cv_aix_libpath
10334 else
10335   if ${lt_cv_aix_libpath_+:} false; then :
10336   $as_echo_n "(cached) " >&6
10337 else
10338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339 /* end confdefs.h.  */
10340
10341 int
10342 main ()
10343 {
10344
10345   ;
10346   return 0;
10347 }
10348 _ACEOF
10349 if ac_fn_c_try_link "$LINENO"; then :
10350
10351   lt_aix_libpath_sed='
10352       /Import File Strings/,/^$/ {
10353           /^0/ {
10354               s/^0  *\([^ ]*\) *$/\1/
10355               p
10356           }
10357       }'
10358   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10359   # Check for a 64-bit object if we didn't find anything.
10360   if test -z "$lt_cv_aix_libpath_"; then
10361     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10362   fi
10363 fi
10364 rm -f core conftest.err conftest.$ac_objext \
10365     conftest$ac_exeext conftest.$ac_ext
10366   if test -z "$lt_cv_aix_libpath_"; then
10367     lt_cv_aix_libpath_="/usr/lib:/lib"
10368   fi
10369
10370 fi
10371
10372   aix_libpath=$lt_cv_aix_libpath_
10373 fi
10374
10375         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10376         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10377       else
10378         if test "$host_cpu" = ia64; then
10379           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10380           allow_undefined_flag="-z nodefs"
10381           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"
10382         else
10383          # Determine the default libpath from the value encoded in an
10384          # empty executable.
10385          if test "${lt_cv_aix_libpath+set}" = set; then
10386   aix_libpath=$lt_cv_aix_libpath
10387 else
10388   if ${lt_cv_aix_libpath_+:} false; then :
10389   $as_echo_n "(cached) " >&6
10390 else
10391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392 /* end confdefs.h.  */
10393
10394 int
10395 main ()
10396 {
10397
10398   ;
10399   return 0;
10400 }
10401 _ACEOF
10402 if ac_fn_c_try_link "$LINENO"; then :
10403
10404   lt_aix_libpath_sed='
10405       /Import File Strings/,/^$/ {
10406           /^0/ {
10407               s/^0  *\([^ ]*\) *$/\1/
10408               p
10409           }
10410       }'
10411   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10412   # Check for a 64-bit object if we didn't find anything.
10413   if test -z "$lt_cv_aix_libpath_"; then
10414     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10415   fi
10416 fi
10417 rm -f core conftest.err conftest.$ac_objext \
10418     conftest$ac_exeext conftest.$ac_ext
10419   if test -z "$lt_cv_aix_libpath_"; then
10420     lt_cv_aix_libpath_="/usr/lib:/lib"
10421   fi
10422
10423 fi
10424
10425   aix_libpath=$lt_cv_aix_libpath_
10426 fi
10427
10428          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10429           # Warning - without using the other run time loading flags,
10430           # -berok will link without error, but may produce a broken library.
10431           no_undefined_flag=' ${wl}-bernotok'
10432           allow_undefined_flag=' ${wl}-berok'
10433           if test "$with_gnu_ld" = yes; then
10434             # We only use this code for GNU lds that support --whole-archive.
10435             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10436           else
10437             # Exported symbols can be pulled into shared objects from archives
10438             whole_archive_flag_spec='$convenience'
10439           fi
10440           archive_cmds_need_lc=yes
10441           # This is similar to how AIX traditionally builds its shared libraries.
10442           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10443         fi
10444       fi
10445       ;;
10446
10447     amigaos*)
10448       case $host_cpu in
10449       powerpc)
10450             # see comment about AmigaOS4 .so support
10451             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10452             archive_expsym_cmds=''
10453         ;;
10454       m68k)
10455             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)'
10456             hardcode_libdir_flag_spec='-L$libdir'
10457             hardcode_minus_L=yes
10458         ;;
10459       esac
10460       ;;
10461
10462     bsdi[45]*)
10463       export_dynamic_flag_spec=-rdynamic
10464       ;;
10465
10466     cygwin* | mingw* | pw32* | cegcc*)
10467       # When not using gcc, we currently assume that we are using
10468       # Microsoft Visual C++.
10469       # hardcode_libdir_flag_spec is actually meaningless, as there is
10470       # no search path for DLLs.
10471       case $cc_basename in
10472       cl*)
10473         # Native MSVC
10474         hardcode_libdir_flag_spec=' '
10475         allow_undefined_flag=unsupported
10476         always_export_symbols=yes
10477         file_list_spec='@'
10478         # Tell ltmain to make .lib files, not .a files.
10479         libext=lib
10480         # Tell ltmain to make .dll files, not .so files.
10481         shrext_cmds=".dll"
10482         # FIXME: Setting linknames here is a bad hack.
10483         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10484         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10485             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10486           else
10487             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10488           fi~
10489           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10490           linknames='
10491         # The linker will not automatically build a static lib if we build a DLL.
10492         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10493         enable_shared_with_static_runtimes=yes
10494         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10495         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10496         # Don't use ranlib
10497         old_postinstall_cmds='chmod 644 $oldlib'
10498         postlink_cmds='lt_outputfile="@OUTPUT@"~
10499           lt_tool_outputfile="@TOOL_OUTPUT@"~
10500           case $lt_outputfile in
10501             *.exe|*.EXE) ;;
10502             *)
10503               lt_outputfile="$lt_outputfile.exe"
10504               lt_tool_outputfile="$lt_tool_outputfile.exe"
10505               ;;
10506           esac~
10507           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10508             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10509             $RM "$lt_outputfile.manifest";
10510           fi'
10511         ;;
10512       *)
10513         # Assume MSVC wrapper
10514         hardcode_libdir_flag_spec=' '
10515         allow_undefined_flag=unsupported
10516         # Tell ltmain to make .lib files, not .a files.
10517         libext=lib
10518         # Tell ltmain to make .dll files, not .so files.
10519         shrext_cmds=".dll"
10520         # FIXME: Setting linknames here is a bad hack.
10521         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10522         # The linker will automatically build a .lib file if we build a DLL.
10523         old_archive_from_new_cmds='true'
10524         # FIXME: Should let the user specify the lib program.
10525         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10526         enable_shared_with_static_runtimes=yes
10527         ;;
10528       esac
10529       ;;
10530
10531     darwin* | rhapsody*)
10532
10533
10534   archive_cmds_need_lc=no
10535   hardcode_direct=no
10536   hardcode_automatic=yes
10537   hardcode_shlibpath_var=unsupported
10538   if test "$lt_cv_ld_force_load" = "yes"; then
10539     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\"`'
10540
10541   else
10542     whole_archive_flag_spec=''
10543   fi
10544   link_all_deplibs=yes
10545   allow_undefined_flag="$_lt_dar_allow_undefined"
10546   case $cc_basename in
10547      ifort*) _lt_dar_can_shared=yes ;;
10548      *) _lt_dar_can_shared=$GCC ;;
10549   esac
10550   if test "$_lt_dar_can_shared" = "yes"; then
10551     output_verbose_link_cmd=func_echo_all
10552     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10553     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10554     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}"
10555     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}"
10556
10557   else
10558   ld_shlibs=no
10559   fi
10560
10561       ;;
10562
10563     dgux*)
10564       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10565       hardcode_libdir_flag_spec='-L$libdir'
10566       hardcode_shlibpath_var=no
10567       ;;
10568
10569     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10570     # support.  Future versions do this automatically, but an explicit c++rt0.o
10571     # does not break anything, and helps significantly (at the cost of a little
10572     # extra space).
10573     freebsd2.2*)
10574       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10575       hardcode_libdir_flag_spec='-R$libdir'
10576       hardcode_direct=yes
10577       hardcode_shlibpath_var=no
10578       ;;
10579
10580     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10581     freebsd2.*)
10582       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10583       hardcode_direct=yes
10584       hardcode_minus_L=yes
10585       hardcode_shlibpath_var=no
10586       ;;
10587
10588     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10589     freebsd* | dragonfly*)
10590       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10591       hardcode_libdir_flag_spec='-R$libdir'
10592       hardcode_direct=yes
10593       hardcode_shlibpath_var=no
10594       ;;
10595
10596     hpux9*)
10597       if test "$GCC" = yes; then
10598         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10599       else
10600         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10601       fi
10602       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10603       hardcode_libdir_separator=:
10604       hardcode_direct=yes
10605
10606       # hardcode_minus_L: Not really in the search PATH,
10607       # but as the default location of the library.
10608       hardcode_minus_L=yes
10609       export_dynamic_flag_spec='${wl}-E'
10610       ;;
10611
10612     hpux10*)
10613       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10614         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10615       else
10616         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10617       fi
10618       if test "$with_gnu_ld" = no; then
10619         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10620         hardcode_libdir_separator=:
10621         hardcode_direct=yes
10622         hardcode_direct_absolute=yes
10623         export_dynamic_flag_spec='${wl}-E'
10624         # hardcode_minus_L: Not really in the search PATH,
10625         # but as the default location of the library.
10626         hardcode_minus_L=yes
10627       fi
10628       ;;
10629
10630     hpux11*)
10631       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10632         case $host_cpu in
10633         hppa*64*)
10634           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10635           ;;
10636         ia64*)
10637           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10638           ;;
10639         *)
10640           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10641           ;;
10642         esac
10643       else
10644         case $host_cpu in
10645         hppa*64*)
10646           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10647           ;;
10648         ia64*)
10649           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10650           ;;
10651         *)
10652
10653           # Older versions of the 11.00 compiler do not understand -b yet
10654           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10655           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10656 $as_echo_n "checking if $CC understands -b... " >&6; }
10657 if ${lt_cv_prog_compiler__b+:} false; then :
10658   $as_echo_n "(cached) " >&6
10659 else
10660   lt_cv_prog_compiler__b=no
10661    save_LDFLAGS="$LDFLAGS"
10662    LDFLAGS="$LDFLAGS -b"
10663    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10664    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10665      # The linker can only warn and ignore the option if not recognized
10666      # So say no if there are warnings
10667      if test -s conftest.err; then
10668        # Append any errors to the config.log.
10669        cat conftest.err 1>&5
10670        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10671        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10672        if diff conftest.exp conftest.er2 >/dev/null; then
10673          lt_cv_prog_compiler__b=yes
10674        fi
10675      else
10676        lt_cv_prog_compiler__b=yes
10677      fi
10678    fi
10679    $RM -r conftest*
10680    LDFLAGS="$save_LDFLAGS"
10681
10682 fi
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10684 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10685
10686 if test x"$lt_cv_prog_compiler__b" = xyes; then
10687     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10688 else
10689     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10690 fi
10691
10692           ;;
10693         esac
10694       fi
10695       if test "$with_gnu_ld" = no; then
10696         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10697         hardcode_libdir_separator=:
10698
10699         case $host_cpu in
10700         hppa*64*|ia64*)
10701           hardcode_direct=no
10702           hardcode_shlibpath_var=no
10703           ;;
10704         *)
10705           hardcode_direct=yes
10706           hardcode_direct_absolute=yes
10707           export_dynamic_flag_spec='${wl}-E'
10708
10709           # hardcode_minus_L: Not really in the search PATH,
10710           # but as the default location of the library.
10711           hardcode_minus_L=yes
10712           ;;
10713         esac
10714       fi
10715       ;;
10716
10717     irix5* | irix6* | nonstopux*)
10718       if test "$GCC" = yes; then
10719         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'
10720         # Try to use the -exported_symbol ld option, if it does not
10721         # work, assume that -exports_file does not work either and
10722         # implicitly export all symbols.
10723         # This should be the same for all languages, so no per-tag cache variable.
10724         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10725 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10726 if ${lt_cv_irix_exported_symbol+:} false; then :
10727   $as_echo_n "(cached) " >&6
10728 else
10729   save_LDFLAGS="$LDFLAGS"
10730            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10731            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h.  */
10733 int foo (void) { return 0; }
10734 _ACEOF
10735 if ac_fn_c_try_link "$LINENO"; then :
10736   lt_cv_irix_exported_symbol=yes
10737 else
10738   lt_cv_irix_exported_symbol=no
10739 fi
10740 rm -f core conftest.err conftest.$ac_objext \
10741     conftest$ac_exeext conftest.$ac_ext
10742            LDFLAGS="$save_LDFLAGS"
10743 fi
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10745 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10746         if test "$lt_cv_irix_exported_symbol" = yes; then
10747           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'
10748         fi
10749       else
10750         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'
10751         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'
10752       fi
10753       archive_cmds_need_lc='no'
10754       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10755       hardcode_libdir_separator=:
10756       inherit_rpath=yes
10757       link_all_deplibs=yes
10758       ;;
10759
10760     netbsd* | netbsdelf*-gnu)
10761       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10762         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10763       else
10764         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10765       fi
10766       hardcode_libdir_flag_spec='-R$libdir'
10767       hardcode_direct=yes
10768       hardcode_shlibpath_var=no
10769       ;;
10770
10771     newsos6)
10772       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10773       hardcode_direct=yes
10774       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10775       hardcode_libdir_separator=:
10776       hardcode_shlibpath_var=no
10777       ;;
10778
10779     *nto* | *qnx*)
10780       ;;
10781
10782     openbsd*)
10783       if test -f /usr/libexec/ld.so; then
10784         hardcode_direct=yes
10785         hardcode_shlibpath_var=no
10786         hardcode_direct_absolute=yes
10787         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10788           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10789           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10790           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10791           export_dynamic_flag_spec='${wl}-E'
10792         else
10793           case $host_os in
10794            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10795              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10796              hardcode_libdir_flag_spec='-R$libdir'
10797              ;;
10798            *)
10799              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10800              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10801              ;;
10802           esac
10803         fi
10804       else
10805         ld_shlibs=no
10806       fi
10807       ;;
10808
10809     os2*)
10810       hardcode_libdir_flag_spec='-L$libdir'
10811       hardcode_minus_L=yes
10812       allow_undefined_flag=unsupported
10813       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10814       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10815       ;;
10816
10817     osf3*)
10818       if test "$GCC" = yes; then
10819         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10820         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'
10821       else
10822         allow_undefined_flag=' -expect_unresolved \*'
10823         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'
10824       fi
10825       archive_cmds_need_lc='no'
10826       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10827       hardcode_libdir_separator=:
10828       ;;
10829
10830     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10831       if test "$GCC" = yes; then
10832         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10833         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'
10834         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10835       else
10836         allow_undefined_flag=' -expect_unresolved \*'
10837         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'
10838         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~
10839         $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'
10840
10841         # Both c and cxx compiler support -rpath directly
10842         hardcode_libdir_flag_spec='-rpath $libdir'
10843       fi
10844       archive_cmds_need_lc='no'
10845       hardcode_libdir_separator=:
10846       ;;
10847
10848     solaris*)
10849       no_undefined_flag=' -z defs'
10850       if test "$GCC" = yes; then
10851         wlarc='${wl}'
10852         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10853         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10854           $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'
10855       else
10856         case `$CC -V 2>&1` in
10857         *"Compilers 5.0"*)
10858           wlarc=''
10859           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10860           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10861           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10862           ;;
10863         *)
10864           wlarc='${wl}'
10865           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10866           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10867           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10868           ;;
10869         esac
10870       fi
10871       hardcode_libdir_flag_spec='-R$libdir'
10872       hardcode_shlibpath_var=no
10873       case $host_os in
10874       solaris2.[0-5] | solaris2.[0-5].*) ;;
10875       *)
10876         # The compiler driver will combine and reorder linker options,
10877         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10878         # but is careful enough not to reorder.
10879         # Supported since Solaris 2.6 (maybe 2.5.1?)
10880         if test "$GCC" = yes; then
10881           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10882         else
10883           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10884         fi
10885         ;;
10886       esac
10887       link_all_deplibs=yes
10888       ;;
10889
10890     sunos4*)
10891       if test "x$host_vendor" = xsequent; then
10892         # Use $CC to link under sequent, because it throws in some extra .o
10893         # files that make .init and .fini sections work.
10894         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10895       else
10896         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10897       fi
10898       hardcode_libdir_flag_spec='-L$libdir'
10899       hardcode_direct=yes
10900       hardcode_minus_L=yes
10901       hardcode_shlibpath_var=no
10902       ;;
10903
10904     sysv4)
10905       case $host_vendor in
10906         sni)
10907           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10908           hardcode_direct=yes # is this really true???
10909         ;;
10910         siemens)
10911           ## LD is ld it makes a PLAMLIB
10912           ## CC just makes a GrossModule.
10913           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10914           reload_cmds='$CC -r -o $output$reload_objs'
10915           hardcode_direct=no
10916         ;;
10917         motorola)
10918           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10919           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10920         ;;
10921       esac
10922       runpath_var='LD_RUN_PATH'
10923       hardcode_shlibpath_var=no
10924       ;;
10925
10926     sysv4.3*)
10927       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10928       hardcode_shlibpath_var=no
10929       export_dynamic_flag_spec='-Bexport'
10930       ;;
10931
10932     sysv4*MP*)
10933       if test -d /usr/nec; then
10934         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10935         hardcode_shlibpath_var=no
10936         runpath_var=LD_RUN_PATH
10937         hardcode_runpath_var=yes
10938         ld_shlibs=yes
10939       fi
10940       ;;
10941
10942     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10943       no_undefined_flag='${wl}-z,text'
10944       archive_cmds_need_lc=no
10945       hardcode_shlibpath_var=no
10946       runpath_var='LD_RUN_PATH'
10947
10948       if test "$GCC" = yes; then
10949         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10951       else
10952         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10953         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10954       fi
10955       ;;
10956
10957     sysv5* | sco3.2v5* | sco5v6*)
10958       # Note: We can NOT use -z defs as we might desire, because we do not
10959       # link with -lc, and that would cause any symbols used from libc to
10960       # always be unresolved, which means just about no library would
10961       # ever link correctly.  If we're not using GNU ld we use -z text
10962       # though, which does catch some bad symbols but isn't as heavy-handed
10963       # as -z defs.
10964       no_undefined_flag='${wl}-z,text'
10965       allow_undefined_flag='${wl}-z,nodefs'
10966       archive_cmds_need_lc=no
10967       hardcode_shlibpath_var=no
10968       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10969       hardcode_libdir_separator=':'
10970       link_all_deplibs=yes
10971       export_dynamic_flag_spec='${wl}-Bexport'
10972       runpath_var='LD_RUN_PATH'
10973
10974       if test "$GCC" = yes; then
10975         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10976         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10977       else
10978         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10979         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10980       fi
10981       ;;
10982
10983     uts4*)
10984       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10985       hardcode_libdir_flag_spec='-L$libdir'
10986       hardcode_shlibpath_var=no
10987       ;;
10988
10989     *)
10990       ld_shlibs=no
10991       ;;
10992     esac
10993
10994     if test x$host_vendor = xsni; then
10995       case $host in
10996       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10997         export_dynamic_flag_spec='${wl}-Blargedynsym'
10998         ;;
10999       esac
11000     fi
11001   fi
11002
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11004 $as_echo "$ld_shlibs" >&6; }
11005 test "$ld_shlibs" = no && can_build_shared=no
11006
11007 with_gnu_ld=$with_gnu_ld
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023 #
11024 # Do we need to explicitly link libc?
11025 #
11026 case "x$archive_cmds_need_lc" in
11027 x|xyes)
11028   # Assume -lc should be added
11029   archive_cmds_need_lc=yes
11030
11031   if test "$enable_shared" = yes && test "$GCC" = yes; then
11032     case $archive_cmds in
11033     *'~'*)
11034       # FIXME: we may have to deal with multi-command sequences.
11035       ;;
11036     '$CC '*)
11037       # Test whether the compiler implicitly links with -lc since on some
11038       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11039       # to ld, don't add -lc before -lgcc.
11040       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11041 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11042 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11043   $as_echo_n "(cached) " >&6
11044 else
11045   $RM conftest*
11046         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11047
11048         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11049   (eval $ac_compile) 2>&5
11050   ac_status=$?
11051   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11052   test $ac_status = 0; } 2>conftest.err; then
11053           soname=conftest
11054           lib=conftest
11055           libobjs=conftest.$ac_objext
11056           deplibs=
11057           wl=$lt_prog_compiler_wl
11058           pic_flag=$lt_prog_compiler_pic
11059           compiler_flags=-v
11060           linker_flags=-v
11061           verstring=
11062           output_objdir=.
11063           libname=conftest
11064           lt_save_allow_undefined_flag=$allow_undefined_flag
11065           allow_undefined_flag=
11066           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11067   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11068   ac_status=$?
11069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11070   test $ac_status = 0; }
11071           then
11072             lt_cv_archive_cmds_need_lc=no
11073           else
11074             lt_cv_archive_cmds_need_lc=yes
11075           fi
11076           allow_undefined_flag=$lt_save_allow_undefined_flag
11077         else
11078           cat conftest.err 1>&5
11079         fi
11080         $RM conftest*
11081
11082 fi
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11084 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11085       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11086       ;;
11087     esac
11088   fi
11089   ;;
11090 esac
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11244 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11245
11246 if test "$GCC" = yes; then
11247   case $host_os in
11248     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11249     *) lt_awk_arg="/^libraries:/" ;;
11250   esac
11251   case $host_os in
11252     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11253     *) lt_sed_strip_eq="s,=/,/,g" ;;
11254   esac
11255   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11256   case $lt_search_path_spec in
11257   *\;*)
11258     # if the path contains ";" then we assume it to be the separator
11259     # otherwise default to the standard path separator (i.e. ":") - it is
11260     # assumed that no part of a normal pathname contains ";" but that should
11261     # okay in the real world where ";" in dirpaths is itself problematic.
11262     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11263     ;;
11264   *)
11265     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11266     ;;
11267   esac
11268   # Ok, now we have the path, separated by spaces, we can step through it
11269   # and add multilib dir if necessary.
11270   lt_tmp_lt_search_path_spec=
11271   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11272   for lt_sys_path in $lt_search_path_spec; do
11273     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11274       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11275     else
11276       test -d "$lt_sys_path" && \
11277         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11278     fi
11279   done
11280   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11281 BEGIN {RS=" "; FS="/|\n";} {
11282   lt_foo="";
11283   lt_count=0;
11284   for (lt_i = NF; lt_i > 0; lt_i--) {
11285     if ($lt_i != "" && $lt_i != ".") {
11286       if ($lt_i == "..") {
11287         lt_count++;
11288       } else {
11289         if (lt_count == 0) {
11290           lt_foo="/" $lt_i lt_foo;
11291         } else {
11292           lt_count--;
11293         }
11294       }
11295     }
11296   }
11297   if (lt_foo != "") { lt_freq[lt_foo]++; }
11298   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11299 }'`
11300   # AWK program above erroneously prepends '/' to C:/dos/paths
11301   # for these hosts.
11302   case $host_os in
11303     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11304       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11305   esac
11306   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11307 else
11308   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11309 fi
11310 library_names_spec=
11311 libname_spec='lib$name'
11312 soname_spec=
11313 shrext_cmds=".so"
11314 postinstall_cmds=
11315 postuninstall_cmds=
11316 finish_cmds=
11317 finish_eval=
11318 shlibpath_var=
11319 shlibpath_overrides_runpath=unknown
11320 version_type=none
11321 dynamic_linker="$host_os ld.so"
11322 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11323 need_lib_prefix=unknown
11324 hardcode_into_libs=no
11325
11326 # when you set need_version to no, make sure it does not cause -set_version
11327 # flags to be left without arguments
11328 need_version=unknown
11329
11330 case $host_os in
11331 aix3*)
11332   version_type=linux # correct to gnu/linux during the next big refactor
11333   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11334   shlibpath_var=LIBPATH
11335
11336   # AIX 3 has no versioning support, so we append a major version to the name.
11337   soname_spec='${libname}${release}${shared_ext}$major'
11338   ;;
11339
11340 aix[4-9]*)
11341   version_type=linux # correct to gnu/linux during the next big refactor
11342   need_lib_prefix=no
11343   need_version=no
11344   hardcode_into_libs=yes
11345   if test "$host_cpu" = ia64; then
11346     # AIX 5 supports IA64
11347     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11348     shlibpath_var=LD_LIBRARY_PATH
11349   else
11350     # With GCC up to 2.95.x, collect2 would create an import file
11351     # for dependence libraries.  The import file would start with
11352     # the line `#! .'.  This would cause the generated library to
11353     # depend on `.', always an invalid library.  This was fixed in
11354     # development snapshots of GCC prior to 3.0.
11355     case $host_os in
11356       aix4 | aix4.[01] | aix4.[01].*)
11357       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11358            echo ' yes '
11359            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11360         :
11361       else
11362         can_build_shared=no
11363       fi
11364       ;;
11365     esac
11366     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11367     # soname into executable. Probably we can add versioning support to
11368     # collect2, so additional links can be useful in future.
11369     if test "$aix_use_runtimelinking" = yes; then
11370       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11371       # instead of lib<name>.a to let people know that these are not
11372       # typical AIX shared libraries.
11373       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11374     else
11375       # We preserve .a as extension for shared libraries through AIX4.2
11376       # and later when we are not doing run time linking.
11377       library_names_spec='${libname}${release}.a $libname.a'
11378       soname_spec='${libname}${release}${shared_ext}$major'
11379     fi
11380     shlibpath_var=LIBPATH
11381   fi
11382   ;;
11383
11384 amigaos*)
11385   case $host_cpu in
11386   powerpc)
11387     # Since July 2007 AmigaOS4 officially supports .so libraries.
11388     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11389     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11390     ;;
11391   m68k)
11392     library_names_spec='$libname.ixlibrary $libname.a'
11393     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11394     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11395     ;;
11396   esac
11397   ;;
11398
11399 beos*)
11400   library_names_spec='${libname}${shared_ext}'
11401   dynamic_linker="$host_os ld.so"
11402   shlibpath_var=LIBRARY_PATH
11403   ;;
11404
11405 bsdi[45]*)
11406   version_type=linux # correct to gnu/linux during the next big refactor
11407   need_version=no
11408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11409   soname_spec='${libname}${release}${shared_ext}$major'
11410   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11411   shlibpath_var=LD_LIBRARY_PATH
11412   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11413   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11414   # the default ld.so.conf also contains /usr/contrib/lib and
11415   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11416   # libtool to hard-code these into programs
11417   ;;
11418
11419 cygwin* | mingw* | pw32* | cegcc*)
11420   version_type=windows
11421   shrext_cmds=".dll"
11422   need_version=no
11423   need_lib_prefix=no
11424
11425   case $GCC,$cc_basename in
11426   yes,*)
11427     # gcc
11428     library_names_spec='$libname.dll.a'
11429     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11430     postinstall_cmds='base_file=`basename \${file}`~
11431       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11432       dldir=$destdir/`dirname \$dlpath`~
11433       test -d \$dldir || mkdir -p \$dldir~
11434       $install_prog $dir/$dlname \$dldir/$dlname~
11435       chmod a+x \$dldir/$dlname~
11436       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11437         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11438       fi'
11439     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11440       dlpath=$dir/\$dldll~
11441        $RM \$dlpath'
11442     shlibpath_overrides_runpath=yes
11443
11444     case $host_os in
11445     cygwin*)
11446       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11447       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11448
11449       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11450       ;;
11451     mingw* | cegcc*)
11452       # MinGW DLLs use traditional 'lib' prefix
11453       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11454       ;;
11455     pw32*)
11456       # pw32 DLLs use 'pw' prefix rather than 'lib'
11457       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11458       ;;
11459     esac
11460     dynamic_linker='Win32 ld.exe'
11461     ;;
11462
11463   *,cl*)
11464     # Native MSVC
11465     libname_spec='$name'
11466     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11467     library_names_spec='${libname}.dll.lib'
11468
11469     case $build_os in
11470     mingw*)
11471       sys_lib_search_path_spec=
11472       lt_save_ifs=$IFS
11473       IFS=';'
11474       for lt_path in $LIB
11475       do
11476         IFS=$lt_save_ifs
11477         # Let DOS variable expansion print the short 8.3 style file name.
11478         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11479         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11480       done
11481       IFS=$lt_save_ifs
11482       # Convert to MSYS style.
11483       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11484       ;;
11485     cygwin*)
11486       # Convert to unix form, then to dos form, then back to unix form
11487       # but this time dos style (no spaces!) so that the unix form looks
11488       # like /cygdrive/c/PROGRA~1:/cygdr...
11489       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11490       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11491       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11492       ;;
11493     *)
11494       sys_lib_search_path_spec="$LIB"
11495       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11496         # It is most probably a Windows format PATH.
11497         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11498       else
11499         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11500       fi
11501       # FIXME: find the short name or the path components, as spaces are
11502       # common. (e.g. "Program Files" -> "PROGRA~1")
11503       ;;
11504     esac
11505
11506     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11507     postinstall_cmds='base_file=`basename \${file}`~
11508       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11509       dldir=$destdir/`dirname \$dlpath`~
11510       test -d \$dldir || mkdir -p \$dldir~
11511       $install_prog $dir/$dlname \$dldir/$dlname'
11512     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11513       dlpath=$dir/\$dldll~
11514        $RM \$dlpath'
11515     shlibpath_overrides_runpath=yes
11516     dynamic_linker='Win32 link.exe'
11517     ;;
11518
11519   *)
11520     # Assume MSVC wrapper
11521     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11522     dynamic_linker='Win32 ld.exe'
11523     ;;
11524   esac
11525   # FIXME: first we should search . and the directory the executable is in
11526   shlibpath_var=PATH
11527   ;;
11528
11529 darwin* | rhapsody*)
11530   dynamic_linker="$host_os dyld"
11531   version_type=darwin
11532   need_lib_prefix=no
11533   need_version=no
11534   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11535   soname_spec='${libname}${release}${major}$shared_ext'
11536   shlibpath_overrides_runpath=yes
11537   shlibpath_var=DYLD_LIBRARY_PATH
11538   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11539
11540   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11541   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11542   ;;
11543
11544 dgux*)
11545   version_type=linux # correct to gnu/linux during the next big refactor
11546   need_lib_prefix=no
11547   need_version=no
11548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11549   soname_spec='${libname}${release}${shared_ext}$major'
11550   shlibpath_var=LD_LIBRARY_PATH
11551   ;;
11552
11553 freebsd* | dragonfly*)
11554   # DragonFly does not have aout.  When/if they implement a new
11555   # versioning mechanism, adjust this.
11556   if test -x /usr/bin/objformat; then
11557     objformat=`/usr/bin/objformat`
11558   else
11559     case $host_os in
11560     freebsd[23].*) objformat=aout ;;
11561     *) objformat=elf ;;
11562     esac
11563   fi
11564   version_type=freebsd-$objformat
11565   case $version_type in
11566     freebsd-elf*)
11567       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11568       need_version=no
11569       need_lib_prefix=no
11570       ;;
11571     freebsd-*)
11572       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11573       need_version=yes
11574       ;;
11575   esac
11576   shlibpath_var=LD_LIBRARY_PATH
11577   case $host_os in
11578   freebsd2.*)
11579     shlibpath_overrides_runpath=yes
11580     ;;
11581   freebsd3.[01]* | freebsdelf3.[01]*)
11582     shlibpath_overrides_runpath=yes
11583     hardcode_into_libs=yes
11584     ;;
11585   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11586   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11587     shlibpath_overrides_runpath=no
11588     hardcode_into_libs=yes
11589     ;;
11590   *) # from 4.6 on, and DragonFly
11591     shlibpath_overrides_runpath=yes
11592     hardcode_into_libs=yes
11593     ;;
11594   esac
11595   ;;
11596
11597 haiku*)
11598   version_type=linux # correct to gnu/linux during the next big refactor
11599   need_lib_prefix=no
11600   need_version=no
11601   dynamic_linker="$host_os runtime_loader"
11602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11603   soname_spec='${libname}${release}${shared_ext}$major'
11604   shlibpath_var=LIBRARY_PATH
11605   shlibpath_overrides_runpath=yes
11606   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11607   hardcode_into_libs=yes
11608   ;;
11609
11610 hpux9* | hpux10* | hpux11*)
11611   # Give a soname corresponding to the major version so that dld.sl refuses to
11612   # link against other versions.
11613   version_type=sunos
11614   need_lib_prefix=no
11615   need_version=no
11616   case $host_cpu in
11617   ia64*)
11618     shrext_cmds='.so'
11619     hardcode_into_libs=yes
11620     dynamic_linker="$host_os dld.so"
11621     shlibpath_var=LD_LIBRARY_PATH
11622     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11623     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11624     soname_spec='${libname}${release}${shared_ext}$major'
11625     if test "X$HPUX_IA64_MODE" = X32; then
11626       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11627     else
11628       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11629     fi
11630     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11631     ;;
11632   hppa*64*)
11633     shrext_cmds='.sl'
11634     hardcode_into_libs=yes
11635     dynamic_linker="$host_os dld.sl"
11636     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11637     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11638     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639     soname_spec='${libname}${release}${shared_ext}$major'
11640     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11641     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11642     ;;
11643   *)
11644     shrext_cmds='.sl'
11645     dynamic_linker="$host_os dld.sl"
11646     shlibpath_var=SHLIB_PATH
11647     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11648     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11649     soname_spec='${libname}${release}${shared_ext}$major'
11650     ;;
11651   esac
11652   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11653   postinstall_cmds='chmod 555 $lib'
11654   # or fails outright, so override atomically:
11655   install_override_mode=555
11656   ;;
11657
11658 interix[3-9]*)
11659   version_type=linux # correct to gnu/linux during the next big refactor
11660   need_lib_prefix=no
11661   need_version=no
11662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11663   soname_spec='${libname}${release}${shared_ext}$major'
11664   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11665   shlibpath_var=LD_LIBRARY_PATH
11666   shlibpath_overrides_runpath=no
11667   hardcode_into_libs=yes
11668   ;;
11669
11670 irix5* | irix6* | nonstopux*)
11671   case $host_os in
11672     nonstopux*) version_type=nonstopux ;;
11673     *)
11674         if test "$lt_cv_prog_gnu_ld" = yes; then
11675                 version_type=linux # correct to gnu/linux during the next big refactor
11676         else
11677                 version_type=irix
11678         fi ;;
11679   esac
11680   need_lib_prefix=no
11681   need_version=no
11682   soname_spec='${libname}${release}${shared_ext}$major'
11683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11684   case $host_os in
11685   irix5* | nonstopux*)
11686     libsuff= shlibsuff=
11687     ;;
11688   *)
11689     case $LD in # libtool.m4 will add one of these switches to LD
11690     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11691       libsuff= shlibsuff= libmagic=32-bit;;
11692     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11693       libsuff=32 shlibsuff=N32 libmagic=N32;;
11694     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11695       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11696     *) libsuff= shlibsuff= libmagic=never-match;;
11697     esac
11698     ;;
11699   esac
11700   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11701   shlibpath_overrides_runpath=no
11702   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11703   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11704   hardcode_into_libs=yes
11705   ;;
11706
11707 # No shared lib support for Linux oldld, aout, or coff.
11708 linux*oldld* | linux*aout* | linux*coff*)
11709   dynamic_linker=no
11710   ;;
11711
11712 # This must be glibc/ELF.
11713 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11714   version_type=linux # correct to gnu/linux during the next big refactor
11715   need_lib_prefix=no
11716   need_version=no
11717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11718   soname_spec='${libname}${release}${shared_ext}$major'
11719   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11720   shlibpath_var=LD_LIBRARY_PATH
11721   shlibpath_overrides_runpath=no
11722
11723   # Some binutils ld are patched to set DT_RUNPATH
11724   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11725   $as_echo_n "(cached) " >&6
11726 else
11727   lt_cv_shlibpath_overrides_runpath=no
11728     save_LDFLAGS=$LDFLAGS
11729     save_libdir=$libdir
11730     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11731          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11732     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11733 /* end confdefs.h.  */
11734
11735 int
11736 main ()
11737 {
11738
11739   ;
11740   return 0;
11741 }
11742 _ACEOF
11743 if ac_fn_c_try_link "$LINENO"; then :
11744   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11745   lt_cv_shlibpath_overrides_runpath=yes
11746 fi
11747 fi
11748 rm -f core conftest.err conftest.$ac_objext \
11749     conftest$ac_exeext conftest.$ac_ext
11750     LDFLAGS=$save_LDFLAGS
11751     libdir=$save_libdir
11752
11753 fi
11754
11755   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11756
11757   # This implies no fast_install, which is unacceptable.
11758   # Some rework will be needed to allow for fast_install
11759   # before this can be enabled.
11760   hardcode_into_libs=yes
11761
11762   # Append ld.so.conf contents to the search path
11763   if test -f /etc/ld.so.conf; then
11764     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' ' '`
11765     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11766   fi
11767
11768   # We used to test for /lib/ld.so.1 and disable shared libraries on
11769   # powerpc, because MkLinux only supported shared libraries with the
11770   # GNU dynamic linker.  Since this was broken with cross compilers,
11771   # most powerpc-linux boxes support dynamic linking these days and
11772   # people can always --disable-shared, the test was removed, and we
11773   # assume the GNU/Linux dynamic linker is in use.
11774   dynamic_linker='GNU/Linux ld.so'
11775   ;;
11776
11777 netbsdelf*-gnu)
11778   version_type=linux
11779   need_lib_prefix=no
11780   need_version=no
11781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11782   soname_spec='${libname}${release}${shared_ext}$major'
11783   shlibpath_var=LD_LIBRARY_PATH
11784   shlibpath_overrides_runpath=no
11785   hardcode_into_libs=yes
11786   dynamic_linker='NetBSD ld.elf_so'
11787   ;;
11788
11789 netbsd*)
11790   version_type=sunos
11791   need_lib_prefix=no
11792   need_version=no
11793   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11794     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11795     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11796     dynamic_linker='NetBSD (a.out) ld.so'
11797   else
11798     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11799     soname_spec='${libname}${release}${shared_ext}$major'
11800     dynamic_linker='NetBSD ld.elf_so'
11801   fi
11802   shlibpath_var=LD_LIBRARY_PATH
11803   shlibpath_overrides_runpath=yes
11804   hardcode_into_libs=yes
11805   ;;
11806
11807 newsos6)
11808   version_type=linux # correct to gnu/linux during the next big refactor
11809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810   shlibpath_var=LD_LIBRARY_PATH
11811   shlibpath_overrides_runpath=yes
11812   ;;
11813
11814 *nto* | *qnx*)
11815   version_type=qnx
11816   need_lib_prefix=no
11817   need_version=no
11818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11819   soname_spec='${libname}${release}${shared_ext}$major'
11820   shlibpath_var=LD_LIBRARY_PATH
11821   shlibpath_overrides_runpath=no
11822   hardcode_into_libs=yes
11823   dynamic_linker='ldqnx.so'
11824   ;;
11825
11826 openbsd*)
11827   version_type=sunos
11828   sys_lib_dlsearch_path_spec="/usr/lib"
11829   need_lib_prefix=no
11830   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11831   case $host_os in
11832     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11833     *)                          need_version=no  ;;
11834   esac
11835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11836   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11837   shlibpath_var=LD_LIBRARY_PATH
11838   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11839     case $host_os in
11840       openbsd2.[89] | openbsd2.[89].*)
11841         shlibpath_overrides_runpath=no
11842         ;;
11843       *)
11844         shlibpath_overrides_runpath=yes
11845         ;;
11846       esac
11847   else
11848     shlibpath_overrides_runpath=yes
11849   fi
11850   ;;
11851
11852 os2*)
11853   libname_spec='$name'
11854   shrext_cmds=".dll"
11855   need_lib_prefix=no
11856   library_names_spec='$libname${shared_ext} $libname.a'
11857   dynamic_linker='OS/2 ld.exe'
11858   shlibpath_var=LIBPATH
11859   ;;
11860
11861 osf3* | osf4* | osf5*)
11862   version_type=osf
11863   need_lib_prefix=no
11864   need_version=no
11865   soname_spec='${libname}${release}${shared_ext}$major'
11866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11867   shlibpath_var=LD_LIBRARY_PATH
11868   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11869   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11870   ;;
11871
11872 rdos*)
11873   dynamic_linker=no
11874   ;;
11875
11876 solaris*)
11877   version_type=linux # correct to gnu/linux during the next big refactor
11878   need_lib_prefix=no
11879   need_version=no
11880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11881   soname_spec='${libname}${release}${shared_ext}$major'
11882   shlibpath_var=LD_LIBRARY_PATH
11883   shlibpath_overrides_runpath=yes
11884   hardcode_into_libs=yes
11885   # ldd complains unless libraries are executable
11886   postinstall_cmds='chmod +x $lib'
11887   ;;
11888
11889 sunos4*)
11890   version_type=sunos
11891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11892   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11893   shlibpath_var=LD_LIBRARY_PATH
11894   shlibpath_overrides_runpath=yes
11895   if test "$with_gnu_ld" = yes; then
11896     need_lib_prefix=no
11897   fi
11898   need_version=yes
11899   ;;
11900
11901 sysv4 | sysv4.3*)
11902   version_type=linux # correct to gnu/linux during the next big refactor
11903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11904   soname_spec='${libname}${release}${shared_ext}$major'
11905   shlibpath_var=LD_LIBRARY_PATH
11906   case $host_vendor in
11907     sni)
11908       shlibpath_overrides_runpath=no
11909       need_lib_prefix=no
11910       runpath_var=LD_RUN_PATH
11911       ;;
11912     siemens)
11913       need_lib_prefix=no
11914       ;;
11915     motorola)
11916       need_lib_prefix=no
11917       need_version=no
11918       shlibpath_overrides_runpath=no
11919       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11920       ;;
11921   esac
11922   ;;
11923
11924 sysv4*MP*)
11925   if test -d /usr/nec ;then
11926     version_type=linux # correct to gnu/linux during the next big refactor
11927     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11928     soname_spec='$libname${shared_ext}.$major'
11929     shlibpath_var=LD_LIBRARY_PATH
11930   fi
11931   ;;
11932
11933 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11934   version_type=freebsd-elf
11935   need_lib_prefix=no
11936   need_version=no
11937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11938   soname_spec='${libname}${release}${shared_ext}$major'
11939   shlibpath_var=LD_LIBRARY_PATH
11940   shlibpath_overrides_runpath=yes
11941   hardcode_into_libs=yes
11942   if test "$with_gnu_ld" = yes; then
11943     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11944   else
11945     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11946     case $host_os in
11947       sco3.2v5*)
11948         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11949         ;;
11950     esac
11951   fi
11952   sys_lib_dlsearch_path_spec='/usr/lib'
11953   ;;
11954
11955 tpf*)
11956   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11957   version_type=linux # correct to gnu/linux during the next big refactor
11958   need_lib_prefix=no
11959   need_version=no
11960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11961   shlibpath_var=LD_LIBRARY_PATH
11962   shlibpath_overrides_runpath=no
11963   hardcode_into_libs=yes
11964   ;;
11965
11966 uts4*)
11967   version_type=linux # correct to gnu/linux during the next big refactor
11968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11969   soname_spec='${libname}${release}${shared_ext}$major'
11970   shlibpath_var=LD_LIBRARY_PATH
11971   ;;
11972
11973 *)
11974   dynamic_linker=no
11975   ;;
11976 esac
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11978 $as_echo "$dynamic_linker" >&6; }
11979 test "$dynamic_linker" = no && can_build_shared=no
11980
11981 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11982 if test "$GCC" = yes; then
11983   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11984 fi
11985
11986 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11987   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11988 fi
11989 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11990   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11991 fi
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12085 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12086 hardcode_action=
12087 if test -n "$hardcode_libdir_flag_spec" ||
12088    test -n "$runpath_var" ||
12089    test "X$hardcode_automatic" = "Xyes" ; then
12090
12091   # We can hardcode non-existent directories.
12092   if test "$hardcode_direct" != no &&
12093      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12094      # have to relink, otherwise we might link with an installed library
12095      # when we should be linking with a yet-to-be-installed one
12096      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12097      test "$hardcode_minus_L" != no; then
12098     # Linking always hardcodes the temporary library directory.
12099     hardcode_action=relink
12100   else
12101     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12102     hardcode_action=immediate
12103   fi
12104 else
12105   # We cannot hardcode anything, or else we can only hardcode existing
12106   # directories.
12107   hardcode_action=unsupported
12108 fi
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12110 $as_echo "$hardcode_action" >&6; }
12111
12112 if test "$hardcode_action" = relink ||
12113    test "$inherit_rpath" = yes; then
12114   # Fast installation is not supported
12115   enable_fast_install=no
12116 elif test "$shlibpath_overrides_runpath" = yes ||
12117      test "$enable_shared" = no; then
12118   # Fast installation is not necessary
12119   enable_fast_install=needless
12120 fi
12121
12122
12123
12124
12125
12126
12127   if test "x$enable_dlopen" != xyes; then
12128   enable_dlopen=unknown
12129   enable_dlopen_self=unknown
12130   enable_dlopen_self_static=unknown
12131 else
12132   lt_cv_dlopen=no
12133   lt_cv_dlopen_libs=
12134
12135   case $host_os in
12136   beos*)
12137     lt_cv_dlopen="load_add_on"
12138     lt_cv_dlopen_libs=
12139     lt_cv_dlopen_self=yes
12140     ;;
12141
12142   mingw* | pw32* | cegcc*)
12143     lt_cv_dlopen="LoadLibrary"
12144     lt_cv_dlopen_libs=
12145     ;;
12146
12147   cygwin*)
12148     lt_cv_dlopen="dlopen"
12149     lt_cv_dlopen_libs=
12150     ;;
12151
12152   darwin*)
12153   # if libdl is installed we need to link against it
12154     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12155 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12156 if ${ac_cv_lib_dl_dlopen+:} false; then :
12157   $as_echo_n "(cached) " >&6
12158 else
12159   ac_check_lib_save_LIBS=$LIBS
12160 LIBS="-ldl  $LIBS"
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h.  */
12163
12164 /* Override any GCC internal prototype to avoid an error.
12165    Use char because int might match the return type of a GCC
12166    builtin and then its argument prototype would still apply.  */
12167 #ifdef __cplusplus
12168 extern "C"
12169 #endif
12170 char dlopen ();
12171 int
12172 main ()
12173 {
12174 return dlopen ();
12175   ;
12176   return 0;
12177 }
12178 _ACEOF
12179 if ac_fn_c_try_link "$LINENO"; then :
12180   ac_cv_lib_dl_dlopen=yes
12181 else
12182   ac_cv_lib_dl_dlopen=no
12183 fi
12184 rm -f core conftest.err conftest.$ac_objext \
12185     conftest$ac_exeext conftest.$ac_ext
12186 LIBS=$ac_check_lib_save_LIBS
12187 fi
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12189 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12190 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12191   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12192 else
12193
12194     lt_cv_dlopen="dyld"
12195     lt_cv_dlopen_libs=
12196     lt_cv_dlopen_self=yes
12197
12198 fi
12199
12200     ;;
12201
12202   *)
12203     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12204 if test "x$ac_cv_func_shl_load" = xyes; then :
12205   lt_cv_dlopen="shl_load"
12206 else
12207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12208 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12209 if ${ac_cv_lib_dld_shl_load+:} false; then :
12210   $as_echo_n "(cached) " >&6
12211 else
12212   ac_check_lib_save_LIBS=$LIBS
12213 LIBS="-ldld  $LIBS"
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h.  */
12216
12217 /* Override any GCC internal prototype to avoid an error.
12218    Use char because int might match the return type of a GCC
12219    builtin and then its argument prototype would still apply.  */
12220 #ifdef __cplusplus
12221 extern "C"
12222 #endif
12223 char shl_load ();
12224 int
12225 main ()
12226 {
12227 return shl_load ();
12228   ;
12229   return 0;
12230 }
12231 _ACEOF
12232 if ac_fn_c_try_link "$LINENO"; then :
12233   ac_cv_lib_dld_shl_load=yes
12234 else
12235   ac_cv_lib_dld_shl_load=no
12236 fi
12237 rm -f core conftest.err conftest.$ac_objext \
12238     conftest$ac_exeext conftest.$ac_ext
12239 LIBS=$ac_check_lib_save_LIBS
12240 fi
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12242 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12243 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12244   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12245 else
12246   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12247 if test "x$ac_cv_func_dlopen" = xyes; then :
12248   lt_cv_dlopen="dlopen"
12249 else
12250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12251 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12252 if ${ac_cv_lib_dl_dlopen+:} false; then :
12253   $as_echo_n "(cached) " >&6
12254 else
12255   ac_check_lib_save_LIBS=$LIBS
12256 LIBS="-ldl  $LIBS"
12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h.  */
12259
12260 /* Override any GCC internal prototype to avoid an error.
12261    Use char because int might match the return type of a GCC
12262    builtin and then its argument prototype would still apply.  */
12263 #ifdef __cplusplus
12264 extern "C"
12265 #endif
12266 char dlopen ();
12267 int
12268 main ()
12269 {
12270 return dlopen ();
12271   ;
12272   return 0;
12273 }
12274 _ACEOF
12275 if ac_fn_c_try_link "$LINENO"; then :
12276   ac_cv_lib_dl_dlopen=yes
12277 else
12278   ac_cv_lib_dl_dlopen=no
12279 fi
12280 rm -f core conftest.err conftest.$ac_objext \
12281     conftest$ac_exeext conftest.$ac_ext
12282 LIBS=$ac_check_lib_save_LIBS
12283 fi
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12285 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12286 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12287   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12288 else
12289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12290 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12291 if ${ac_cv_lib_svld_dlopen+:} false; then :
12292   $as_echo_n "(cached) " >&6
12293 else
12294   ac_check_lib_save_LIBS=$LIBS
12295 LIBS="-lsvld  $LIBS"
12296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12297 /* end confdefs.h.  */
12298
12299 /* Override any GCC internal prototype to avoid an error.
12300    Use char because int might match the return type of a GCC
12301    builtin and then its argument prototype would still apply.  */
12302 #ifdef __cplusplus
12303 extern "C"
12304 #endif
12305 char dlopen ();
12306 int
12307 main ()
12308 {
12309 return dlopen ();
12310   ;
12311   return 0;
12312 }
12313 _ACEOF
12314 if ac_fn_c_try_link "$LINENO"; then :
12315   ac_cv_lib_svld_dlopen=yes
12316 else
12317   ac_cv_lib_svld_dlopen=no
12318 fi
12319 rm -f core conftest.err conftest.$ac_objext \
12320     conftest$ac_exeext conftest.$ac_ext
12321 LIBS=$ac_check_lib_save_LIBS
12322 fi
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12324 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12325 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12326   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12327 else
12328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12329 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12330 if ${ac_cv_lib_dld_dld_link+:} false; then :
12331   $as_echo_n "(cached) " >&6
12332 else
12333   ac_check_lib_save_LIBS=$LIBS
12334 LIBS="-ldld  $LIBS"
12335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336 /* end confdefs.h.  */
12337
12338 /* Override any GCC internal prototype to avoid an error.
12339    Use char because int might match the return type of a GCC
12340    builtin and then its argument prototype would still apply.  */
12341 #ifdef __cplusplus
12342 extern "C"
12343 #endif
12344 char dld_link ();
12345 int
12346 main ()
12347 {
12348 return dld_link ();
12349   ;
12350   return 0;
12351 }
12352 _ACEOF
12353 if ac_fn_c_try_link "$LINENO"; then :
12354   ac_cv_lib_dld_dld_link=yes
12355 else
12356   ac_cv_lib_dld_dld_link=no
12357 fi
12358 rm -f core conftest.err conftest.$ac_objext \
12359     conftest$ac_exeext conftest.$ac_ext
12360 LIBS=$ac_check_lib_save_LIBS
12361 fi
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12363 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12364 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12365   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12366 fi
12367
12368
12369 fi
12370
12371
12372 fi
12373
12374
12375 fi
12376
12377
12378 fi
12379
12380
12381 fi
12382
12383     ;;
12384   esac
12385
12386   if test "x$lt_cv_dlopen" != xno; then
12387     enable_dlopen=yes
12388   else
12389     enable_dlopen=no
12390   fi
12391
12392   case $lt_cv_dlopen in
12393   dlopen)
12394     save_CPPFLAGS="$CPPFLAGS"
12395     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12396
12397     save_LDFLAGS="$LDFLAGS"
12398     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12399
12400     save_LIBS="$LIBS"
12401     LIBS="$lt_cv_dlopen_libs $LIBS"
12402
12403     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12404 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12405 if ${lt_cv_dlopen_self+:} false; then :
12406   $as_echo_n "(cached) " >&6
12407 else
12408           if test "$cross_compiling" = yes; then :
12409   lt_cv_dlopen_self=cross
12410 else
12411   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12412   lt_status=$lt_dlunknown
12413   cat > conftest.$ac_ext <<_LT_EOF
12414 #line $LINENO "configure"
12415 #include "confdefs.h"
12416
12417 #if HAVE_DLFCN_H
12418 #include <dlfcn.h>
12419 #endif
12420
12421 #include <stdio.h>
12422
12423 #ifdef RTLD_GLOBAL
12424 #  define LT_DLGLOBAL           RTLD_GLOBAL
12425 #else
12426 #  ifdef DL_GLOBAL
12427 #    define LT_DLGLOBAL         DL_GLOBAL
12428 #  else
12429 #    define LT_DLGLOBAL         0
12430 #  endif
12431 #endif
12432
12433 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12434    find out it does not work in some platform. */
12435 #ifndef LT_DLLAZY_OR_NOW
12436 #  ifdef RTLD_LAZY
12437 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12438 #  else
12439 #    ifdef DL_LAZY
12440 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12441 #    else
12442 #      ifdef RTLD_NOW
12443 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12444 #      else
12445 #        ifdef DL_NOW
12446 #          define LT_DLLAZY_OR_NOW      DL_NOW
12447 #        else
12448 #          define LT_DLLAZY_OR_NOW      0
12449 #        endif
12450 #      endif
12451 #    endif
12452 #  endif
12453 #endif
12454
12455 /* When -fvisbility=hidden is used, assume the code has been annotated
12456    correspondingly for the symbols needed.  */
12457 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12458 int fnord () __attribute__((visibility("default")));
12459 #endif
12460
12461 int fnord () { return 42; }
12462 int main ()
12463 {
12464   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12465   int status = $lt_dlunknown;
12466
12467   if (self)
12468     {
12469       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12470       else
12471         {
12472           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12473           else puts (dlerror ());
12474         }
12475       /* dlclose (self); */
12476     }
12477   else
12478     puts (dlerror ());
12479
12480   return status;
12481 }
12482 _LT_EOF
12483   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12484   (eval $ac_link) 2>&5
12485   ac_status=$?
12486   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12487   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12488     (./conftest; exit; ) >&5 2>/dev/null
12489     lt_status=$?
12490     case x$lt_status in
12491       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12492       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12493       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12494     esac
12495   else :
12496     # compilation failed
12497     lt_cv_dlopen_self=no
12498   fi
12499 fi
12500 rm -fr conftest*
12501
12502
12503 fi
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12505 $as_echo "$lt_cv_dlopen_self" >&6; }
12506
12507     if test "x$lt_cv_dlopen_self" = xyes; then
12508       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12509       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12510 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12511 if ${lt_cv_dlopen_self_static+:} false; then :
12512   $as_echo_n "(cached) " >&6
12513 else
12514           if test "$cross_compiling" = yes; then :
12515   lt_cv_dlopen_self_static=cross
12516 else
12517   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12518   lt_status=$lt_dlunknown
12519   cat > conftest.$ac_ext <<_LT_EOF
12520 #line $LINENO "configure"
12521 #include "confdefs.h"
12522
12523 #if HAVE_DLFCN_H
12524 #include <dlfcn.h>
12525 #endif
12526
12527 #include <stdio.h>
12528
12529 #ifdef RTLD_GLOBAL
12530 #  define LT_DLGLOBAL           RTLD_GLOBAL
12531 #else
12532 #  ifdef DL_GLOBAL
12533 #    define LT_DLGLOBAL         DL_GLOBAL
12534 #  else
12535 #    define LT_DLGLOBAL         0
12536 #  endif
12537 #endif
12538
12539 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12540    find out it does not work in some platform. */
12541 #ifndef LT_DLLAZY_OR_NOW
12542 #  ifdef RTLD_LAZY
12543 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12544 #  else
12545 #    ifdef DL_LAZY
12546 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12547 #    else
12548 #      ifdef RTLD_NOW
12549 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12550 #      else
12551 #        ifdef DL_NOW
12552 #          define LT_DLLAZY_OR_NOW      DL_NOW
12553 #        else
12554 #          define LT_DLLAZY_OR_NOW      0
12555 #        endif
12556 #      endif
12557 #    endif
12558 #  endif
12559 #endif
12560
12561 /* When -fvisbility=hidden is used, assume the code has been annotated
12562    correspondingly for the symbols needed.  */
12563 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12564 int fnord () __attribute__((visibility("default")));
12565 #endif
12566
12567 int fnord () { return 42; }
12568 int main ()
12569 {
12570   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12571   int status = $lt_dlunknown;
12572
12573   if (self)
12574     {
12575       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12576       else
12577         {
12578           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12579           else puts (dlerror ());
12580         }
12581       /* dlclose (self); */
12582     }
12583   else
12584     puts (dlerror ());
12585
12586   return status;
12587 }
12588 _LT_EOF
12589   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12590   (eval $ac_link) 2>&5
12591   ac_status=$?
12592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12593   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12594     (./conftest; exit; ) >&5 2>/dev/null
12595     lt_status=$?
12596     case x$lt_status in
12597       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12598       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12599       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12600     esac
12601   else :
12602     # compilation failed
12603     lt_cv_dlopen_self_static=no
12604   fi
12605 fi
12606 rm -fr conftest*
12607
12608
12609 fi
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12611 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12612     fi
12613
12614     CPPFLAGS="$save_CPPFLAGS"
12615     LDFLAGS="$save_LDFLAGS"
12616     LIBS="$save_LIBS"
12617     ;;
12618   esac
12619
12620   case $lt_cv_dlopen_self in
12621   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12622   *) enable_dlopen_self=unknown ;;
12623   esac
12624
12625   case $lt_cv_dlopen_self_static in
12626   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12627   *) enable_dlopen_self_static=unknown ;;
12628   esac
12629 fi
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647 striplib=
12648 old_striplib=
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12650 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12651 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12652   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12653   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12655 $as_echo "yes" >&6; }
12656 else
12657 # FIXME - insert some real tests, host_os isn't really good enough
12658   case $host_os in
12659   darwin*)
12660     if test -n "$STRIP" ; then
12661       striplib="$STRIP -x"
12662       old_striplib="$STRIP -S"
12663       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12664 $as_echo "yes" >&6; }
12665     else
12666       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12667 $as_echo "no" >&6; }
12668     fi
12669     ;;
12670   *)
12671     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12672 $as_echo "no" >&6; }
12673     ;;
12674   esac
12675 fi
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688   # Report which library types will actually be built
12689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12690 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12692 $as_echo "$can_build_shared" >&6; }
12693
12694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12695 $as_echo_n "checking whether to build shared libraries... " >&6; }
12696   test "$can_build_shared" = "no" && enable_shared=no
12697
12698   # On AIX, shared libraries and static libraries use the same namespace, and
12699   # are all built from PIC.
12700   case $host_os in
12701   aix3*)
12702     test "$enable_shared" = yes && enable_static=no
12703     if test -n "$RANLIB"; then
12704       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12705       postinstall_cmds='$RANLIB $lib'
12706     fi
12707     ;;
12708
12709   aix[4-9]*)
12710     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12711       test "$enable_shared" = yes && enable_static=no
12712     fi
12713     ;;
12714   esac
12715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12716 $as_echo "$enable_shared" >&6; }
12717
12718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12719 $as_echo_n "checking whether to build static libraries... " >&6; }
12720   # Make sure either enable_shared or enable_static is yes.
12721   test "$enable_shared" = yes || enable_static=yes
12722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12723 $as_echo "$enable_static" >&6; }
12724
12725
12726
12727
12728 fi
12729 ac_ext=c
12730 ac_cpp='$CPP $CPPFLAGS'
12731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12734
12735 CC="$lt_save_CC"
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751         ac_config_commands="$ac_config_commands libtool"
12752
12753
12754
12755
12756 # Only expand once:
12757
12758
12759
12760 # Check whether --enable-largefile was given.
12761 if test "${enable_largefile+set}" = set; then :
12762   enableval=$enable_largefile;
12763 fi
12764
12765 if test "$enable_largefile" != no; then
12766
12767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12768 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12769 if ${ac_cv_sys_largefile_CC+:} false; then :
12770   $as_echo_n "(cached) " >&6
12771 else
12772   ac_cv_sys_largefile_CC=no
12773      if test "$GCC" != yes; then
12774        ac_save_CC=$CC
12775        while :; do
12776          # IRIX 6.2 and later do not support large files by default,
12777          # so use the C compiler's -n32 option if that helps.
12778          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h.  */
12780 #include <sys/types.h>
12781  /* Check that off_t can represent 2**63 - 1 correctly.
12782     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12783     since some C++ compilers masquerading as C compilers
12784     incorrectly reject 9223372036854775807.  */
12785 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12786   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12787                        && LARGE_OFF_T % 2147483647 == 1)
12788                       ? 1 : -1];
12789 int
12790 main ()
12791 {
12792
12793   ;
12794   return 0;
12795 }
12796 _ACEOF
12797          if ac_fn_c_try_compile "$LINENO"; then :
12798   break
12799 fi
12800 rm -f core conftest.err conftest.$ac_objext
12801          CC="$CC -n32"
12802          if ac_fn_c_try_compile "$LINENO"; then :
12803   ac_cv_sys_largefile_CC=' -n32'; break
12804 fi
12805 rm -f core conftest.err conftest.$ac_objext
12806          break
12807        done
12808        CC=$ac_save_CC
12809        rm -f conftest.$ac_ext
12810     fi
12811 fi
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12813 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12814   if test "$ac_cv_sys_largefile_CC" != no; then
12815     CC=$CC$ac_cv_sys_largefile_CC
12816   fi
12817
12818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12819 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12820 if ${ac_cv_sys_file_offset_bits+:} false; then :
12821   $as_echo_n "(cached) " >&6
12822 else
12823   while :; do
12824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12825 /* end confdefs.h.  */
12826 #include <sys/types.h>
12827  /* Check that off_t can represent 2**63 - 1 correctly.
12828     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12829     since some C++ compilers masquerading as C compilers
12830     incorrectly reject 9223372036854775807.  */
12831 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12832   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12833                        && LARGE_OFF_T % 2147483647 == 1)
12834                       ? 1 : -1];
12835 int
12836 main ()
12837 {
12838
12839   ;
12840   return 0;
12841 }
12842 _ACEOF
12843 if ac_fn_c_try_compile "$LINENO"; then :
12844   ac_cv_sys_file_offset_bits=no; break
12845 fi
12846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848 /* end confdefs.h.  */
12849 #define _FILE_OFFSET_BITS 64
12850 #include <sys/types.h>
12851  /* Check that off_t can represent 2**63 - 1 correctly.
12852     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12853     since some C++ compilers masquerading as C compilers
12854     incorrectly reject 9223372036854775807.  */
12855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12856   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12857                        && LARGE_OFF_T % 2147483647 == 1)
12858                       ? 1 : -1];
12859 int
12860 main ()
12861 {
12862
12863   ;
12864   return 0;
12865 }
12866 _ACEOF
12867 if ac_fn_c_try_compile "$LINENO"; then :
12868   ac_cv_sys_file_offset_bits=64; break
12869 fi
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871   ac_cv_sys_file_offset_bits=unknown
12872   break
12873 done
12874 fi
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12876 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12877 case $ac_cv_sys_file_offset_bits in #(
12878   no | unknown) ;;
12879   *)
12880 cat >>confdefs.h <<_ACEOF
12881 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12882 _ACEOF
12883 ;;
12884 esac
12885 rm -rf conftest*
12886   if test $ac_cv_sys_file_offset_bits = unknown; then
12887     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12888 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12889 if ${ac_cv_sys_large_files+:} false; then :
12890   $as_echo_n "(cached) " >&6
12891 else
12892   while :; do
12893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12894 /* end confdefs.h.  */
12895 #include <sys/types.h>
12896  /* Check that off_t can represent 2**63 - 1 correctly.
12897     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12898     since some C++ compilers masquerading as C compilers
12899     incorrectly reject 9223372036854775807.  */
12900 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12901   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12902                        && LARGE_OFF_T % 2147483647 == 1)
12903                       ? 1 : -1];
12904 int
12905 main ()
12906 {
12907
12908   ;
12909   return 0;
12910 }
12911 _ACEOF
12912 if ac_fn_c_try_compile "$LINENO"; then :
12913   ac_cv_sys_large_files=no; break
12914 fi
12915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917 /* end confdefs.h.  */
12918 #define _LARGE_FILES 1
12919 #include <sys/types.h>
12920  /* Check that off_t can represent 2**63 - 1 correctly.
12921     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12922     since some C++ compilers masquerading as C compilers
12923     incorrectly reject 9223372036854775807.  */
12924 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12925   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12926                        && LARGE_OFF_T % 2147483647 == 1)
12927                       ? 1 : -1];
12928 int
12929 main ()
12930 {
12931
12932   ;
12933   return 0;
12934 }
12935 _ACEOF
12936 if ac_fn_c_try_compile "$LINENO"; then :
12937   ac_cv_sys_large_files=1; break
12938 fi
12939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12940   ac_cv_sys_large_files=unknown
12941   break
12942 done
12943 fi
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12945 $as_echo "$ac_cv_sys_large_files" >&6; }
12946 case $ac_cv_sys_large_files in #(
12947   no | unknown) ;;
12948   *)
12949 cat >>confdefs.h <<_ACEOF
12950 #define _LARGE_FILES $ac_cv_sys_large_files
12951 _ACEOF
12952 ;;
12953 esac
12954 rm -rf conftest*
12955   fi
12956
12957
12958 fi
12959
12960
12961 for ac_prog in pod2man
12962 do
12963   # Extract the first word of "$ac_prog", so it can be a program name with args.
12964 set dummy $ac_prog; ac_word=$2
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12966 $as_echo_n "checking for $ac_word... " >&6; }
12967 if ${ac_cv_path_POD2MAN+:} false; then :
12968   $as_echo_n "(cached) " >&6
12969 else
12970   case $POD2MAN in
12971   [\\/]* | ?:[\\/]*)
12972   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
12973   ;;
12974   *)
12975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12976 for as_dir in $PATH
12977 do
12978   IFS=$as_save_IFS
12979   test -z "$as_dir" && as_dir=.
12980     for ac_exec_ext in '' $ac_executable_extensions; do
12981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12982     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
12983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12984     break 2
12985   fi
12986 done
12987   done
12988 IFS=$as_save_IFS
12989
12990   ;;
12991 esac
12992 fi
12993 POD2MAN=$ac_cv_path_POD2MAN
12994 if test -n "$POD2MAN"; then
12995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
12996 $as_echo "$POD2MAN" >&6; }
12997 else
12998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12999 $as_echo "no" >&6; }
13000 fi
13001
13002
13003   test -n "$POD2MAN" && break
13004 done
13005
13006 test -z "${POD2MAN}" && as_fn_error $? "I couldn't find pod2man; make sure it's installed and in your path" "$LINENO" 5
13007
13008 for ac_prog in tar
13009 do
13010   # Extract the first word of "$ac_prog", so it can be a program name with args.
13011 set dummy $ac_prog; ac_word=$2
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13013 $as_echo_n "checking for $ac_word... " >&6; }
13014 if ${ac_cv_path_TAR+:} false; then :
13015   $as_echo_n "(cached) " >&6
13016 else
13017   case $TAR in
13018   [\\/]* | ?:[\\/]*)
13019   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
13020   ;;
13021   *)
13022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13023 for as_dir in $PATH
13024 do
13025   IFS=$as_save_IFS
13026   test -z "$as_dir" && as_dir=.
13027     for ac_exec_ext in '' $ac_executable_extensions; do
13028   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13029     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
13030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13031     break 2
13032   fi
13033 done
13034   done
13035 IFS=$as_save_IFS
13036
13037   ;;
13038 esac
13039 fi
13040 TAR=$ac_cv_path_TAR
13041 if test -n "$TAR"; then
13042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
13043 $as_echo "$TAR" >&6; }
13044 else
13045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13046 $as_echo "no" >&6; }
13047 fi
13048
13049
13050   test -n "$TAR" && break
13051 done
13052
13053 for ac_prog in ps2pdf
13054 do
13055   # Extract the first word of "$ac_prog", so it can be a program name with args.
13056 set dummy $ac_prog; ac_word=$2
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13058 $as_echo_n "checking for $ac_word... " >&6; }
13059 if ${ac_cv_path_PS2PDF+:} false; then :
13060   $as_echo_n "(cached) " >&6
13061 else
13062   case $PS2PDF in
13063   [\\/]* | ?:[\\/]*)
13064   ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
13065   ;;
13066   *)
13067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13068 for as_dir in $PATH
13069 do
13070   IFS=$as_save_IFS
13071   test -z "$as_dir" && as_dir=.
13072     for ac_exec_ext in '' $ac_executable_extensions; do
13073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13074     ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
13075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13076     break 2
13077   fi
13078 done
13079   done
13080 IFS=$as_save_IFS
13081
13082   ;;
13083 esac
13084 fi
13085 PS2PDF=$ac_cv_path_PS2PDF
13086 if test -n "$PS2PDF"; then
13087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS2PDF" >&5
13088 $as_echo "$PS2PDF" >&6; }
13089 else
13090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13091 $as_echo "no" >&6; }
13092 fi
13093
13094
13095   test -n "$PS2PDF" && break
13096 done
13097
13098 for ac_prog in dvips
13099 do
13100   # Extract the first word of "$ac_prog", so it can be a program name with args.
13101 set dummy $ac_prog; ac_word=$2
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13103 $as_echo_n "checking for $ac_word... " >&6; }
13104 if ${ac_cv_path_DVIPS+:} false; then :
13105   $as_echo_n "(cached) " >&6
13106 else
13107   case $DVIPS in
13108   [\\/]* | ?:[\\/]*)
13109   ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
13110   ;;
13111   *)
13112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13113 for as_dir in $PATH
13114 do
13115   IFS=$as_save_IFS
13116   test -z "$as_dir" && as_dir=.
13117     for ac_exec_ext in '' $ac_executable_extensions; do
13118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13119     ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
13120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13121     break 2
13122   fi
13123 done
13124   done
13125 IFS=$as_save_IFS
13126
13127   ;;
13128 esac
13129 fi
13130 DVIPS=$ac_cv_path_DVIPS
13131 if test -n "$DVIPS"; then
13132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
13133 $as_echo "$DVIPS" >&6; }
13134 else
13135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136 $as_echo "no" >&6; }
13137 fi
13138
13139
13140   test -n "$DVIPS" && break
13141 done
13142
13143 for ac_prog in latex2html
13144 do
13145   # Extract the first word of "$ac_prog", so it can be a program name with args.
13146 set dummy $ac_prog; ac_word=$2
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13148 $as_echo_n "checking for $ac_word... " >&6; }
13149 if ${ac_cv_path_LATEX2HTML+:} false; then :
13150   $as_echo_n "(cached) " >&6
13151 else
13152   case $LATEX2HTML in
13153   [\\/]* | ?:[\\/]*)
13154   ac_cv_path_LATEX2HTML="$LATEX2HTML" # Let the user override the test with a path.
13155   ;;
13156   *)
13157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13158 for as_dir in $PATH
13159 do
13160   IFS=$as_save_IFS
13161   test -z "$as_dir" && as_dir=.
13162     for ac_exec_ext in '' $ac_executable_extensions; do
13163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13164     ac_cv_path_LATEX2HTML="$as_dir/$ac_word$ac_exec_ext"
13165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13166     break 2
13167   fi
13168 done
13169   done
13170 IFS=$as_save_IFS
13171
13172   ;;
13173 esac
13174 fi
13175 LATEX2HTML=$ac_cv_path_LATEX2HTML
13176 if test -n "$LATEX2HTML"; then
13177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX2HTML" >&5
13178 $as_echo "$LATEX2HTML" >&6; }
13179 else
13180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181 $as_echo "no" >&6; }
13182 fi
13183
13184
13185   test -n "$LATEX2HTML" && break
13186 done
13187
13188 for ac_prog in latex
13189 do
13190   # Extract the first word of "$ac_prog", so it can be a program name with args.
13191 set dummy $ac_prog; ac_word=$2
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13193 $as_echo_n "checking for $ac_word... " >&6; }
13194 if ${ac_cv_path_LATEX+:} false; then :
13195   $as_echo_n "(cached) " >&6
13196 else
13197   case $LATEX in
13198   [\\/]* | ?:[\\/]*)
13199   ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
13200   ;;
13201   *)
13202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13203 for as_dir in $PATH
13204 do
13205   IFS=$as_save_IFS
13206   test -z "$as_dir" && as_dir=.
13207     for ac_exec_ext in '' $ac_executable_extensions; do
13208   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13209     ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
13210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13211     break 2
13212   fi
13213 done
13214   done
13215 IFS=$as_save_IFS
13216
13217   ;;
13218 esac
13219 fi
13220 LATEX=$ac_cv_path_LATEX
13221 if test -n "$LATEX"; then
13222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
13223 $as_echo "$LATEX" >&6; }
13224 else
13225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13227 fi
13228
13229
13230   test -n "$LATEX" && break
13231 done
13232
13233 if test "${enable_docs_gen}" = "yes"; then
13234         test -z "${TAR}" && as_fn_error $? "Couldn't find tar" "$LINENO" 5
13235         test -z "${PS2PDF}" && as_fn_error $? "Couldn't find ps2pdf" "$LINENO" 5
13236         test -z "${DVIPS}" && as_fn_error $? "Couldn't find dvips" "$LINENO" 5
13237         test -z "${LATEX2HTML}" && as_fn_error $? "Couldn't find latex2html" "$LINENO" 5
13238         test -z "${LATEX}" && as_fn_error $? "Couldn't find latex" "$LINENO" 5
13239 fi
13240
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
13242 $as_echo_n "checking for library containing strerror... " >&6; }
13243 if ${ac_cv_search_strerror+:} false; then :
13244   $as_echo_n "(cached) " >&6
13245 else
13246   ac_func_search_save_LIBS=$LIBS
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h.  */
13249
13250 /* Override any GCC internal prototype to avoid an error.
13251    Use char because int might match the return type of a GCC
13252    builtin and then its argument prototype would still apply.  */
13253 #ifdef __cplusplus
13254 extern "C"
13255 #endif
13256 char strerror ();
13257 int
13258 main ()
13259 {
13260 return strerror ();
13261   ;
13262   return 0;
13263 }
13264 _ACEOF
13265 for ac_lib in '' cposix; do
13266   if test -z "$ac_lib"; then
13267     ac_res="none required"
13268   else
13269     ac_res=-l$ac_lib
13270     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13271   fi
13272   if ac_fn_c_try_link "$LINENO"; then :
13273   ac_cv_search_strerror=$ac_res
13274 fi
13275 rm -f core conftest.err conftest.$ac_objext \
13276     conftest$ac_exeext
13277   if ${ac_cv_search_strerror+:} false; then :
13278   break
13279 fi
13280 done
13281 if ${ac_cv_search_strerror+:} false; then :
13282
13283 else
13284   ac_cv_search_strerror=no
13285 fi
13286 rm conftest.$ac_ext
13287 LIBS=$ac_func_search_save_LIBS
13288 fi
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
13290 $as_echo "$ac_cv_search_strerror" >&6; }
13291 ac_res=$ac_cv_search_strerror
13292 if test "$ac_res" != no; then :
13293   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13294
13295 fi
13296
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13298 $as_echo_n "checking for ANSI C header files... " >&6; }
13299 if ${ac_cv_header_stdc+:} false; then :
13300   $as_echo_n "(cached) " >&6
13301 else
13302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13303 /* end confdefs.h.  */
13304 #include <stdlib.h>
13305 #include <stdarg.h>
13306 #include <string.h>
13307 #include <float.h>
13308
13309 int
13310 main ()
13311 {
13312
13313   ;
13314   return 0;
13315 }
13316 _ACEOF
13317 if ac_fn_c_try_compile "$LINENO"; then :
13318   ac_cv_header_stdc=yes
13319 else
13320   ac_cv_header_stdc=no
13321 fi
13322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13323
13324 if test $ac_cv_header_stdc = yes; then
13325   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13327 /* end confdefs.h.  */
13328 #include <string.h>
13329
13330 _ACEOF
13331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13332   $EGREP "memchr" >/dev/null 2>&1; then :
13333
13334 else
13335   ac_cv_header_stdc=no
13336 fi
13337 rm -f conftest*
13338
13339 fi
13340
13341 if test $ac_cv_header_stdc = yes; then
13342   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344 /* end confdefs.h.  */
13345 #include <stdlib.h>
13346
13347 _ACEOF
13348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13349   $EGREP "free" >/dev/null 2>&1; then :
13350
13351 else
13352   ac_cv_header_stdc=no
13353 fi
13354 rm -f conftest*
13355
13356 fi
13357
13358 if test $ac_cv_header_stdc = yes; then
13359   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13360   if test "$cross_compiling" = yes; then :
13361   :
13362 else
13363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364 /* end confdefs.h.  */
13365 #include <ctype.h>
13366 #include <stdlib.h>
13367 #if ((' ' & 0x0FF) == 0x020)
13368 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13369 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13370 #else
13371 # define ISLOWER(c) \
13372                    (('a' <= (c) && (c) <= 'i') \
13373                      || ('j' <= (c) && (c) <= 'r') \
13374                      || ('s' <= (c) && (c) <= 'z'))
13375 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13376 #endif
13377
13378 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13379 int
13380 main ()
13381 {
13382   int i;
13383   for (i = 0; i < 256; i++)
13384     if (XOR (islower (i), ISLOWER (i))
13385         || toupper (i) != TOUPPER (i))
13386       return 2;
13387   return 0;
13388 }
13389 _ACEOF
13390 if ac_fn_c_try_run "$LINENO"; then :
13391
13392 else
13393   ac_cv_header_stdc=no
13394 fi
13395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13396   conftest.$ac_objext conftest.beam conftest.$ac_ext
13397 fi
13398
13399 fi
13400 fi
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13402 $as_echo "$ac_cv_header_stdc" >&6; }
13403 if test $ac_cv_header_stdc = yes; then
13404
13405 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13406
13407 fi
13408
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13410 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13411 if ${ac_cv_lib_dl_dlopen+:} false; then :
13412   $as_echo_n "(cached) " >&6
13413 else
13414   ac_check_lib_save_LIBS=$LIBS
13415 LIBS="-ldl  $LIBS"
13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417 /* end confdefs.h.  */
13418
13419 /* Override any GCC internal prototype to avoid an error.
13420    Use char because int might match the return type of a GCC
13421    builtin and then its argument prototype would still apply.  */
13422 #ifdef __cplusplus
13423 extern "C"
13424 #endif
13425 char dlopen ();
13426 int
13427 main ()
13428 {
13429 return dlopen ();
13430   ;
13431   return 0;
13432 }
13433 _ACEOF
13434 if ac_fn_c_try_link "$LINENO"; then :
13435   ac_cv_lib_dl_dlopen=yes
13436 else
13437   ac_cv_lib_dl_dlopen=no
13438 fi
13439 rm -f core conftest.err conftest.$ac_objext \
13440     conftest$ac_exeext conftest.$ac_ext
13441 LIBS=$ac_check_lib_save_LIBS
13442 fi
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13444 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13445 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13446   cat >>confdefs.h <<_ACEOF
13447 #define HAVE_LIBDL 1
13448 _ACEOF
13449
13450   LIBS="-ldl $LIBS"
13451
13452 fi
13453
13454
13455 # Verify keyutils version 1.0 or higher
13456 if test -z "${KEYUTILS_LIBS}"; then
13457
13458
13459         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for keyctl_search in -lkeyutils" >&5
13460 $as_echo_n "checking for keyctl_search in -lkeyutils... " >&6; }
13461 if ${ac_cv_lib_keyutils_keyctl_search+:} false; then :
13462   $as_echo_n "(cached) " >&6
13463 else
13464   ac_check_lib_save_LIBS=$LIBS
13465 LIBS="-lkeyutils  $LIBS"
13466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467 /* end confdefs.h.  */
13468
13469 /* Override any GCC internal prototype to avoid an error.
13470    Use char because int might match the return type of a GCC
13471    builtin and then its argument prototype would still apply.  */
13472 #ifdef __cplusplus
13473 extern "C"
13474 #endif
13475 char keyctl_search ();
13476 int
13477 main ()
13478 {
13479 return keyctl_search ();
13480   ;
13481   return 0;
13482 }
13483 _ACEOF
13484 if ac_fn_c_try_link "$LINENO"; then :
13485   ac_cv_lib_keyutils_keyctl_search=yes
13486 else
13487   ac_cv_lib_keyutils_keyctl_search=no
13488 fi
13489 rm -f core conftest.err conftest.$ac_objext \
13490     conftest$ac_exeext conftest.$ac_ext
13491 LIBS=$ac_check_lib_save_LIBS
13492 fi
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_keyutils_keyctl_search" >&5
13494 $as_echo "$ac_cv_lib_keyutils_keyctl_search" >&6; }
13495 if test "x$ac_cv_lib_keyutils_keyctl_search" = xyes; then :
13496   KEYUTILS_LIBS="-lkeyutils"
13497 else
13498   as_fn_error $? "eCryptfs userspace tools require Keyutils version 1.0 or higher.
13499 You might find the package at:
13500 http://people.redhat.com/~dhowells/keyutils/
13501 " "$LINENO" 5
13502
13503
13504 fi
13505
13506 fi
13507
13508 if test -z "${OPENSSL_LIBS}"; then
13509
13510 pkg_failed=no
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
13512 $as_echo_n "checking for OPENSSL... " >&6; }
13513
13514 if test -n "$OPENSSL_CFLAGS"; then
13515     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
13516  elif test -n "$PKG_CONFIG"; then
13517     if test -n "$PKG_CONFIG" && \
13518     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.7\""; } >&5
13519   ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.7") 2>&5
13520   ac_status=$?
13521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13522   test $ac_status = 0; }; then
13523   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 0.9.7" 2>/dev/null`
13524                       test "x$?" != "x0" && pkg_failed=yes
13525 else
13526   pkg_failed=yes
13527 fi
13528  else
13529     pkg_failed=untried
13530 fi
13531 if test -n "$OPENSSL_LIBS"; then
13532     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
13533  elif test -n "$PKG_CONFIG"; then
13534     if test -n "$PKG_CONFIG" && \
13535     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.7\""; } >&5
13536   ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.7") 2>&5
13537   ac_status=$?
13538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13539   test $ac_status = 0; }; then
13540   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "libcrypto >= 0.9.7" 2>/dev/null`
13541                       test "x$?" != "x0" && pkg_failed=yes
13542 else
13543   pkg_failed=yes
13544 fi
13545  else
13546     pkg_failed=untried
13547 fi
13548
13549
13550
13551 if test $pkg_failed = yes; then
13552         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13553 $as_echo "no" >&6; }
13554
13555 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13556         _pkg_short_errors_supported=yes
13557 else
13558         _pkg_short_errors_supported=no
13559 fi
13560         if test $_pkg_short_errors_supported = yes; then
13561                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 0.9.7" 2>&1`
13562         else
13563                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 0.9.7" 2>&1`
13564         fi
13565         # Put the nasty error message in config.log where it belongs
13566         echo "$OPENSSL_PKG_ERRORS" >&5
13567
13568
13569 pkg_failed=no
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
13571 $as_echo_n "checking for OPENSSL... " >&6; }
13572
13573 if test -n "$OPENSSL_CFLAGS"; then
13574     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
13575  elif test -n "$PKG_CONFIG"; then
13576     if test -n "$PKG_CONFIG" && \
13577     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
13578   ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
13579   ac_status=$?
13580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13581   test $ac_status = 0; }; then
13582   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.7" 2>/dev/null`
13583                       test "x$?" != "x0" && pkg_failed=yes
13584 else
13585   pkg_failed=yes
13586 fi
13587  else
13588     pkg_failed=untried
13589 fi
13590 if test -n "$OPENSSL_LIBS"; then
13591     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
13592  elif test -n "$PKG_CONFIG"; then
13593     if test -n "$PKG_CONFIG" && \
13594     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
13595   ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
13596   ac_status=$?
13597   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13598   test $ac_status = 0; }; then
13599   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.7" 2>/dev/null`
13600                       test "x$?" != "x0" && pkg_failed=yes
13601 else
13602   pkg_failed=yes
13603 fi
13604  else
13605     pkg_failed=untried
13606 fi
13607
13608
13609
13610 if test $pkg_failed = yes; then
13611         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13612 $as_echo "no" >&6; }
13613
13614 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13615         _pkg_short_errors_supported=yes
13616 else
13617         _pkg_short_errors_supported=no
13618 fi
13619         if test $_pkg_short_errors_supported = yes; then
13620                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 0.9.7" 2>&1`
13621         else
13622                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 0.9.7" 2>&1`
13623         fi
13624         # Put the nasty error message in config.log where it belongs
13625         echo "$OPENSSL_PKG_ERRORS" >&5
13626
13627         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
13628 $as_echo_n "checking for RSA_version in -lcrypto... " >&6; }
13629 if ${ac_cv_lib_crypto_RSA_version+:} false; then :
13630   $as_echo_n "(cached) " >&6
13631 else
13632   ac_check_lib_save_LIBS=$LIBS
13633 LIBS="-lcrypto  $LIBS"
13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h.  */
13636
13637 /* Override any GCC internal prototype to avoid an error.
13638    Use char because int might match the return type of a GCC
13639    builtin and then its argument prototype would still apply.  */
13640 #ifdef __cplusplus
13641 extern "C"
13642 #endif
13643 char RSA_version ();
13644 int
13645 main ()
13646 {
13647 return RSA_version ();
13648   ;
13649   return 0;
13650 }
13651 _ACEOF
13652 if ac_fn_c_try_link "$LINENO"; then :
13653   ac_cv_lib_crypto_RSA_version=yes
13654 else
13655   ac_cv_lib_crypto_RSA_version=no
13656 fi
13657 rm -f core conftest.err conftest.$ac_objext \
13658     conftest$ac_exeext conftest.$ac_ext
13659 LIBS=$ac_check_lib_save_LIBS
13660 fi
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_version" >&5
13662 $as_echo "$ac_cv_lib_crypto_RSA_version" >&6; }
13663 if test "x$ac_cv_lib_crypto_RSA_version" = xyes; then :
13664
13665                                         have_openssl="yes"
13666                                         OPENSSL_LIBS="-lcrypto"
13667
13668 else
13669   have_openssl="no"
13670
13671 fi
13672
13673
13674 elif test $pkg_failed = untried; then
13675         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13676 $as_echo "no" >&6; }
13677         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
13678 $as_echo_n "checking for RSA_version in -lcrypto... " >&6; }
13679 if ${ac_cv_lib_crypto_RSA_version+:} false; then :
13680   $as_echo_n "(cached) " >&6
13681 else
13682   ac_check_lib_save_LIBS=$LIBS
13683 LIBS="-lcrypto  $LIBS"
13684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685 /* end confdefs.h.  */
13686
13687 /* Override any GCC internal prototype to avoid an error.
13688    Use char because int might match the return type of a GCC
13689    builtin and then its argument prototype would still apply.  */
13690 #ifdef __cplusplus
13691 extern "C"
13692 #endif
13693 char RSA_version ();
13694 int
13695 main ()
13696 {
13697 return RSA_version ();
13698   ;
13699   return 0;
13700 }
13701 _ACEOF
13702 if ac_fn_c_try_link "$LINENO"; then :
13703   ac_cv_lib_crypto_RSA_version=yes
13704 else
13705   ac_cv_lib_crypto_RSA_version=no
13706 fi
13707 rm -f core conftest.err conftest.$ac_objext \
13708     conftest$ac_exeext conftest.$ac_ext
13709 LIBS=$ac_check_lib_save_LIBS
13710 fi
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_version" >&5
13712 $as_echo "$ac_cv_lib_crypto_RSA_version" >&6; }
13713 if test "x$ac_cv_lib_crypto_RSA_version" = xyes; then :
13714
13715                                         have_openssl="yes"
13716                                         OPENSSL_LIBS="-lcrypto"
13717
13718 else
13719   have_openssl="no"
13720
13721 fi
13722
13723
13724 else
13725         OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
13726         OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
13727         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13728 $as_echo "yes" >&6; }
13729         have_openssl="yes"
13730 fi
13731
13732 elif test $pkg_failed = untried; then
13733         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13734 $as_echo "no" >&6; }
13735
13736 pkg_failed=no
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
13738 $as_echo_n "checking for OPENSSL... " >&6; }
13739
13740 if test -n "$OPENSSL_CFLAGS"; then
13741     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
13742  elif test -n "$PKG_CONFIG"; then
13743     if test -n "$PKG_CONFIG" && \
13744     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
13745   ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
13746   ac_status=$?
13747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13748   test $ac_status = 0; }; then
13749   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.7" 2>/dev/null`
13750                       test "x$?" != "x0" && pkg_failed=yes
13751 else
13752   pkg_failed=yes
13753 fi
13754  else
13755     pkg_failed=untried
13756 fi
13757 if test -n "$OPENSSL_LIBS"; then
13758     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
13759  elif test -n "$PKG_CONFIG"; then
13760     if test -n "$PKG_CONFIG" && \
13761     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
13762   ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
13763   ac_status=$?
13764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13765   test $ac_status = 0; }; then
13766   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.7" 2>/dev/null`
13767                       test "x$?" != "x0" && pkg_failed=yes
13768 else
13769   pkg_failed=yes
13770 fi
13771  else
13772     pkg_failed=untried
13773 fi
13774
13775
13776
13777 if test $pkg_failed = yes; then
13778         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13779 $as_echo "no" >&6; }
13780
13781 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13782         _pkg_short_errors_supported=yes
13783 else
13784         _pkg_short_errors_supported=no
13785 fi
13786         if test $_pkg_short_errors_supported = yes; then
13787                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 0.9.7" 2>&1`
13788         else
13789                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 0.9.7" 2>&1`
13790         fi
13791         # Put the nasty error message in config.log where it belongs
13792         echo "$OPENSSL_PKG_ERRORS" >&5
13793
13794         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
13795 $as_echo_n "checking for RSA_version in -lcrypto... " >&6; }
13796 if ${ac_cv_lib_crypto_RSA_version+:} false; then :
13797   $as_echo_n "(cached) " >&6
13798 else
13799   ac_check_lib_save_LIBS=$LIBS
13800 LIBS="-lcrypto  $LIBS"
13801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13802 /* end confdefs.h.  */
13803
13804 /* Override any GCC internal prototype to avoid an error.
13805    Use char because int might match the return type of a GCC
13806    builtin and then its argument prototype would still apply.  */
13807 #ifdef __cplusplus
13808 extern "C"
13809 #endif
13810 char RSA_version ();
13811 int
13812 main ()
13813 {
13814 return RSA_version ();
13815   ;
13816   return 0;
13817 }
13818 _ACEOF
13819 if ac_fn_c_try_link "$LINENO"; then :
13820   ac_cv_lib_crypto_RSA_version=yes
13821 else
13822   ac_cv_lib_crypto_RSA_version=no
13823 fi
13824 rm -f core conftest.err conftest.$ac_objext \
13825     conftest$ac_exeext conftest.$ac_ext
13826 LIBS=$ac_check_lib_save_LIBS
13827 fi
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_version" >&5
13829 $as_echo "$ac_cv_lib_crypto_RSA_version" >&6; }
13830 if test "x$ac_cv_lib_crypto_RSA_version" = xyes; then :
13831
13832                                         have_openssl="yes"
13833                                         OPENSSL_LIBS="-lcrypto"
13834
13835 else
13836   have_openssl="no"
13837
13838 fi
13839
13840
13841 elif test $pkg_failed = untried; then
13842         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13843 $as_echo "no" >&6; }
13844         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
13845 $as_echo_n "checking for RSA_version in -lcrypto... " >&6; }
13846 if ${ac_cv_lib_crypto_RSA_version+:} false; then :
13847   $as_echo_n "(cached) " >&6
13848 else
13849   ac_check_lib_save_LIBS=$LIBS
13850 LIBS="-lcrypto  $LIBS"
13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h.  */
13853
13854 /* Override any GCC internal prototype to avoid an error.
13855    Use char because int might match the return type of a GCC
13856    builtin and then its argument prototype would still apply.  */
13857 #ifdef __cplusplus
13858 extern "C"
13859 #endif
13860 char RSA_version ();
13861 int
13862 main ()
13863 {
13864 return RSA_version ();
13865   ;
13866   return 0;
13867 }
13868 _ACEOF
13869 if ac_fn_c_try_link "$LINENO"; then :
13870   ac_cv_lib_crypto_RSA_version=yes
13871 else
13872   ac_cv_lib_crypto_RSA_version=no
13873 fi
13874 rm -f core conftest.err conftest.$ac_objext \
13875     conftest$ac_exeext conftest.$ac_ext
13876 LIBS=$ac_check_lib_save_LIBS
13877 fi
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_version" >&5
13879 $as_echo "$ac_cv_lib_crypto_RSA_version" >&6; }
13880 if test "x$ac_cv_lib_crypto_RSA_version" = xyes; then :
13881
13882                                         have_openssl="yes"
13883                                         OPENSSL_LIBS="-lcrypto"
13884
13885 else
13886   have_openssl="no"
13887
13888 fi
13889
13890
13891 else
13892         OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
13893         OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
13894         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13895 $as_echo "yes" >&6; }
13896         have_openssl="yes"
13897 fi
13898
13899 else
13900         OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
13901         OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
13902         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13903 $as_echo "yes" >&6; }
13904         have_openssl="yes"
13905 fi
13906 else
13907         have_openssl="yes"
13908 fi
13909
13910 #Verify nss
13911
13912 pkg_failed=no
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
13914 $as_echo_n "checking for NSS... " >&6; }
13915
13916 if test -n "$NSS_CFLAGS"; then
13917     pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
13918  elif test -n "$PKG_CONFIG"; then
13919     if test -n "$PKG_CONFIG" && \
13920     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
13921   ($PKG_CONFIG --exists --print-errors "nss") 2>&5
13922   ac_status=$?
13923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13924   test $ac_status = 0; }; then
13925   pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
13926                       test "x$?" != "x0" && pkg_failed=yes
13927 else
13928   pkg_failed=yes
13929 fi
13930  else
13931     pkg_failed=untried
13932 fi
13933 if test -n "$NSS_LIBS"; then
13934     pkg_cv_NSS_LIBS="$NSS_LIBS"
13935  elif test -n "$PKG_CONFIG"; then
13936     if test -n "$PKG_CONFIG" && \
13937     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
13938   ($PKG_CONFIG --exists --print-errors "nss") 2>&5
13939   ac_status=$?
13940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13941   test $ac_status = 0; }; then
13942   pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
13943                       test "x$?" != "x0" && pkg_failed=yes
13944 else
13945   pkg_failed=yes
13946 fi
13947  else
13948     pkg_failed=untried
13949 fi
13950
13951
13952
13953 if test $pkg_failed = yes; then
13954         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13955 $as_echo "no" >&6; }
13956
13957 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13958         _pkg_short_errors_supported=yes
13959 else
13960         _pkg_short_errors_supported=no
13961 fi
13962         if test $_pkg_short_errors_supported = yes; then
13963                 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss" 2>&1`
13964         else
13965                 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss" 2>&1`
13966         fi
13967         # Put the nasty error message in config.log where it belongs
13968         echo "$NSS_PKG_ERRORS" >&5
13969
13970         have_nss="no"
13971 elif test $pkg_failed = untried; then
13972         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13973 $as_echo "no" >&6; }
13974         have_nss="no"
13975 else
13976         NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
13977         NSS_LIBS=$pkg_cv_NSS_LIBS
13978         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13979 $as_echo "yes" >&6; }
13980         have_nss="yes"
13981          NSS_CFLAGS="${NSS_CFLAGS} -DENABLE_NSS"
13982 fi
13983
13984 if test "${enable_nss}" = "detect" ; then
13985         if test "$have_nss" == "yes" ; then
13986                 enable_nss="yes"
13987         else
13988                 enable_nss="no"
13989         fi
13990 fi
13991
13992 OLD_CFLAGS="${CFLAGS}"
13993 CFLAGS="${CFLAGS} ${OPENSSL_CFLAGS}"
13994 ac_fn_c_check_header_mongrel "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default"
13995 if test "x$ac_cv_header_openssl_rsa_h" = xyes; then :
13996
13997 else
13998   have_openssl="no"
13999 fi
14000
14001
14002 CFLAGS="${OLD_CFLAGS}"
14003
14004 if test "${enable_pywrap}" != "no" ; then
14005
14006
14007
14008
14009
14010
14011         if test -n "$PYTHON"; then
14012       # If the user set $PYTHON, use it and don't search something else.
14013       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
14014 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
14015       prog="import sys
14016 # split strings by '.' and convert to numeric.  Append some zeros
14017 # because we need at least 4 digits for the hex conversion.
14018 # map returns an iterator in Python 3.0 and a list in 2.x
14019 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
14020 minverhex = 0
14021 # xrange is not present in Python 3.0 and range returns an iterator
14022 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14023 sys.exit(sys.hexversion < minverhex)"
14024   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
14025    ($PYTHON -c "$prog") >&5 2>&5
14026    ac_status=$?
14027    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028    (exit $ac_status); }; then :
14029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14030 $as_echo "yes" >&6; }
14031 else
14032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14033 $as_echo "no" >&6; }
14034                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
14035 fi
14036       am_display_PYTHON=$PYTHON
14037     else
14038       # Otherwise, try each interpreter until we find one that satisfies
14039       # VERSION.
14040       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
14041 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
14042 if ${am_cv_pathless_PYTHON+:} false; then :
14043   $as_echo_n "(cached) " >&6
14044 else
14045
14046         for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
14047           test "$am_cv_pathless_PYTHON" = none && break
14048           prog="import sys
14049 # split strings by '.' and convert to numeric.  Append some zeros
14050 # because we need at least 4 digits for the hex conversion.
14051 # map returns an iterator in Python 3.0 and a list in 2.x
14052 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
14053 minverhex = 0
14054 # xrange is not present in Python 3.0 and range returns an iterator
14055 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14056 sys.exit(sys.hexversion < minverhex)"
14057   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
14058    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
14059    ac_status=$?
14060    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061    (exit $ac_status); }; then :
14062   break
14063 fi
14064         done
14065 fi
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
14067 $as_echo "$am_cv_pathless_PYTHON" >&6; }
14068       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
14069       if test "$am_cv_pathless_PYTHON" = none; then
14070         PYTHON=:
14071       else
14072         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
14073 set dummy $am_cv_pathless_PYTHON; ac_word=$2
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14075 $as_echo_n "checking for $ac_word... " >&6; }
14076 if ${ac_cv_path_PYTHON+:} false; then :
14077   $as_echo_n "(cached) " >&6
14078 else
14079   case $PYTHON in
14080   [\\/]* | ?:[\\/]*)
14081   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14082   ;;
14083   *)
14084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14085 for as_dir in $PATH
14086 do
14087   IFS=$as_save_IFS
14088   test -z "$as_dir" && as_dir=.
14089     for ac_exec_ext in '' $ac_executable_extensions; do
14090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14091     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14093     break 2
14094   fi
14095 done
14096   done
14097 IFS=$as_save_IFS
14098
14099   ;;
14100 esac
14101 fi
14102 PYTHON=$ac_cv_path_PYTHON
14103 if test -n "$PYTHON"; then
14104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14105 $as_echo "$PYTHON" >&6; }
14106 else
14107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14108 $as_echo "no" >&6; }
14109 fi
14110
14111
14112       fi
14113       am_display_PYTHON=$am_cv_pathless_PYTHON
14114     fi
14115
14116
14117   if test "$PYTHON" = :; then
14118       have_python="no"
14119   else
14120
14121
14122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
14123 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
14124 if ${am_cv_python_version+:} false; then :
14125   $as_echo_n "(cached) " >&6
14126 else
14127   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
14128 fi
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
14130 $as_echo "$am_cv_python_version" >&6; }
14131   PYTHON_VERSION=$am_cv_python_version
14132
14133
14134
14135   PYTHON_PREFIX='${prefix}'
14136
14137   PYTHON_EXEC_PREFIX='${exec_prefix}'
14138
14139
14140
14141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
14142 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
14143 if ${am_cv_python_platform+:} false; then :
14144   $as_echo_n "(cached) " >&6
14145 else
14146   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
14147 fi
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
14149 $as_echo "$am_cv_python_platform" >&6; }
14150   PYTHON_PLATFORM=$am_cv_python_platform
14151
14152
14153   # Just factor out some code duplication.
14154   am_python_setup_sysconfig="\
14155 import sys
14156 # Prefer sysconfig over distutils.sysconfig, for better compatibility
14157 # with python 3.x.  See automake bug#10227.
14158 try:
14159     import sysconfig
14160 except ImportError:
14161     can_use_sysconfig = 0
14162 else:
14163     can_use_sysconfig = 1
14164 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
14165 # <https://github.com/pypa/virtualenv/issues/118>
14166 try:
14167     from platform import python_implementation
14168     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
14169         can_use_sysconfig = 0
14170 except ImportError:
14171     pass"
14172
14173
14174             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
14175 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
14176 if ${am_cv_python_pythondir+:} false; then :
14177   $as_echo_n "(cached) " >&6
14178 else
14179   if test "x$prefix" = xNONE
14180      then
14181        am_py_prefix=$ac_default_prefix
14182      else
14183        am_py_prefix=$prefix
14184      fi
14185      am_cv_python_pythondir=`$PYTHON -c "
14186 $am_python_setup_sysconfig
14187 if can_use_sysconfig:
14188     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
14189 else:
14190     from distutils import sysconfig
14191     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
14192 sys.stdout.write(sitedir)"`
14193      case $am_cv_python_pythondir in
14194      $am_py_prefix*)
14195        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
14196        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
14197        ;;
14198      *)
14199        case $am_py_prefix in
14200          /usr|/System*) ;;
14201          *)
14202           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
14203           ;;
14204        esac
14205        ;;
14206      esac
14207
14208 fi
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
14210 $as_echo "$am_cv_python_pythondir" >&6; }
14211   pythondir=$am_cv_python_pythondir
14212
14213
14214
14215   pkgpythondir=\${pythondir}/$PACKAGE
14216
14217
14218         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
14219 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
14220 if ${am_cv_python_pyexecdir+:} false; then :
14221   $as_echo_n "(cached) " >&6
14222 else
14223   if test "x$exec_prefix" = xNONE
14224      then
14225        am_py_exec_prefix=$am_py_prefix
14226      else
14227        am_py_exec_prefix=$exec_prefix
14228      fi
14229      am_cv_python_pyexecdir=`$PYTHON -c "
14230 $am_python_setup_sysconfig
14231 if can_use_sysconfig:
14232     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
14233 else:
14234     from distutils import sysconfig
14235     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
14236 sys.stdout.write(sitedir)"`
14237      case $am_cv_python_pyexecdir in
14238      $am_py_exec_prefix*)
14239        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
14240        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
14241        ;;
14242      *)
14243        case $am_py_exec_prefix in
14244          /usr|/System*) ;;
14245          *)
14246            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
14247            ;;
14248        esac
14249        ;;
14250      esac
14251
14252 fi
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
14254 $as_echo "$am_cv_python_pyexecdir" >&6; }
14255   pyexecdir=$am_cv_python_pyexecdir
14256
14257
14258
14259   pkgpyexecdir=\${pyexecdir}/$PACKAGE
14260
14261
14262     have_python="yes"
14263   fi
14264
14265
14266
14267         # Extract the first word of "swig", so it can be a program name with args.
14268 set dummy swig; ac_word=$2
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14270 $as_echo_n "checking for $ac_word... " >&6; }
14271 if ${ac_cv_path_SWIG+:} false; then :
14272   $as_echo_n "(cached) " >&6
14273 else
14274   case $SWIG in
14275   [\\/]* | ?:[\\/]*)
14276   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
14277   ;;
14278   *)
14279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14280 for as_dir in $PATH
14281 do
14282   IFS=$as_save_IFS
14283   test -z "$as_dir" && as_dir=.
14284     for ac_exec_ext in '' $ac_executable_extensions; do
14285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14286     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
14287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14288     break 2
14289   fi
14290 done
14291   done
14292 IFS=$as_save_IFS
14293
14294   ;;
14295 esac
14296 fi
14297 SWIG=$ac_cv_path_SWIG
14298 if test -n "$SWIG"; then
14299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
14300 $as_echo "$SWIG" >&6; }
14301 else
14302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14303 $as_echo "no" >&6; }
14304 fi
14305
14306
14307         if test -z "$SWIG" ; then
14308                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
14309 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
14310                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
14311         elif test -n "1.3.31" ; then
14312                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
14313 $as_echo_n "checking for SWIG version... " >&6; }
14314                 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
14315                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
14316 $as_echo "$swig_version" >&6; }
14317                 if test -n "$swig_version" ; then
14318                         # Calculate the required version number components
14319                         required=1.3.31
14320                         required_major=`echo $required | sed 's/[^0-9].*//'`
14321                         if test -z "$required_major" ; then
14322                                 required_major=0
14323                         fi
14324                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
14325                         required_minor=`echo $required | sed 's/[^0-9].*//'`
14326                         if test -z "$required_minor" ; then
14327                                 required_minor=0
14328                         fi
14329                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
14330                         required_patch=`echo $required | sed 's/[^0-9].*//'`
14331                         if test -z "$required_patch" ; then
14332                                 required_patch=0
14333                         fi
14334                         # Calculate the available version number components
14335                         available=$swig_version
14336                         available_major=`echo $available | sed 's/[^0-9].*//'`
14337                         if test -z "$available_major" ; then
14338                                 available_major=0
14339                         fi
14340                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
14341                         available_minor=`echo $available | sed 's/[^0-9].*//'`
14342                         if test -z "$available_minor" ; then
14343                                 available_minor=0
14344                         fi
14345                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
14346                         available_patch=`echo $available | sed 's/[^0-9].*//'`
14347                         if test -z "$available_patch" ; then
14348                                 available_patch=0
14349                         fi
14350                         if test $available_major -ne $required_major \
14351                                 -o $available_minor -ne $required_minor \
14352                                 -o $available_patch -lt $required_patch ; then
14353                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 1.3.31 is required.  You have $swig_version.  You should look at http://www.swig.org" >&5
14354 $as_echo "$as_me: WARNING: SWIG version >= 1.3.31 is required.  You have $swig_version.  You should look at http://www.swig.org" >&2;}
14355                                 SWIG='echo "Error: SWIG version >= 1.3.31 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
14356                         else
14357                                 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
14358 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
14359                                 SWIG_LIB=`$SWIG -swiglib`
14360                                 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
14361 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
14362                         fi
14363                 else
14364                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
14365 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
14366                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
14367                 fi
14368         fi
14369
14370
14371
14372         #
14373         # Allow the use of a (user set) custom python version
14374         #
14375
14376
14377         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
14378 set dummy python$PYTHON_VERSION; ac_word=$2
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14380 $as_echo_n "checking for $ac_word... " >&6; }
14381 if ${ac_cv_path_PYTHON+:} false; then :
14382   $as_echo_n "(cached) " >&6
14383 else
14384   case $PYTHON in
14385   [\\/]* | ?:[\\/]*)
14386   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14387   ;;
14388   *)
14389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14390 for as_dir in $PATH
14391 do
14392   IFS=$as_save_IFS
14393   test -z "$as_dir" && as_dir=.
14394     for ac_exec_ext in '' $ac_executable_extensions; do
14395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14396     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14398     break 2
14399   fi
14400 done
14401   done
14402 IFS=$as_save_IFS
14403
14404   ;;
14405 esac
14406 fi
14407 PYTHON=$ac_cv_path_PYTHON
14408 if test -n "$PYTHON"; then
14409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14410 $as_echo "$PYTHON" >&6; }
14411 else
14412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14413 $as_echo "no" >&6; }
14414 fi
14415
14416
14417         if test -z "$PYTHON"; then
14418            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
14419            PYTHON_VERSION=""
14420         fi
14421
14422         #
14423         # Check for a version of Python >= 2.1.0
14424         #
14425         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
14426 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
14427         ac_supports_python_ver=`$PYTHON -c "import sys, string; \
14428                 ver = string.split(sys.version)[0]; \
14429                 print ver >= '2.1.0'"`
14430         if test "$ac_supports_python_ver" != "True"; then
14431                 if test -z "$PYTHON_NOVERSIONCHECK"; then
14432                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14433 $as_echo "no" >&6; }
14434                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14436 as_fn_error $? "
14437 This version of the AC_PYTHON_DEVEL macro
14438 doesn't work properly with versions of Python before
14439 2.1.0. You may need to re-run configure, setting the
14440 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
14441 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
14442 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
14443 to something else than an empty string.
14444
14445 See \`config.log' for more details" "$LINENO" 5; }
14446                 else
14447                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
14448 $as_echo "skip at user request" >&6; }
14449                 fi
14450         else
14451                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14452 $as_echo "yes" >&6; }
14453         fi
14454
14455         #
14456         # if the macro parameter ``version'' is set, honour it
14457         #
14458         if test -n ""; then
14459                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
14460 $as_echo_n "checking for a version of Python ... " >&6; }
14461                 ac_supports_python_ver=`$PYTHON -c "import sys, string; \
14462                         ver = string.split(sys.version)[0]; \
14463                         print ver "`
14464                 if test "$ac_supports_python_ver" = "True"; then
14465                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14466 $as_echo "yes" >&6; }
14467                 else
14468                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14469 $as_echo "no" >&6; }
14470                         as_fn_error $? "this package requires Python .
14471 If you have it installed, but it isn't the default Python
14472 interpreter in your system path, please pass the PYTHON_VERSION
14473 variable to configure. See \`\`configure --help'' for reference.
14474 " "$LINENO" 5
14475                         PYTHON_VERSION=""
14476                 fi
14477         fi
14478
14479         #
14480         # Check if you have distutils, else fail
14481         #
14482         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
14483 $as_echo_n "checking for the distutils Python package... " >&6; }
14484         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
14485         if test -z "$ac_distutils_result"; then
14486                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14487 $as_echo "yes" >&6; }
14488         else
14489                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14490 $as_echo "no" >&6; }
14491                 as_fn_error $? "cannot import Python module \"distutils\".
14492 Please check your Python installation. The error was:
14493 $ac_distutils_result" "$LINENO" 5
14494                 PYTHON_VERSION=""
14495         fi
14496
14497         #
14498         # Check for Python include path
14499         #
14500         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
14501 $as_echo_n "checking for Python include path... " >&6; }
14502         if test -z "$PYTHON_CPPFLAGS"; then
14503                 python_path=`$PYTHON -c "import distutils.sysconfig; \
14504                         print distutils.sysconfig.get_python_inc();"`
14505                 if test -n "${python_path}"; then
14506                         python_path="-I$python_path"
14507                 fi
14508                 python_plat_path=`$PYTHON -c "import distutils.sysconfig; \
14509                         print distutils.sysconfig.get_python_inc(plat_specific=True);"`
14510                 if test -n "${python_plat_path}"; then
14511                         python_plat_path="-I$python_plat_path"
14512                 fi
14513                 PYTHON_CPPFLAGS="$python_path $python_plat_path"
14514         fi
14515         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
14516 $as_echo "$PYTHON_CPPFLAGS" >&6; }
14517
14518
14519         #
14520         # Check for Python library path
14521         #
14522         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
14523 $as_echo_n "checking for Python library path... " >&6; }
14524         if test -z "$PYTHON_LDFLAGS"; then
14525                 # (makes two attempts to ensure we've got a version number
14526                 # from the interpreter)
14527                 py_version=`$PYTHON -c "from distutils.sysconfig import *; \
14528                         from string import join; \
14529                         print join(get_config_vars('VERSION'))"`
14530                 if test "$py_version" == "None"; then
14531                         if test -n "$PYTHON_VERSION"; then
14532                                 py_version=$PYTHON_VERSION
14533                         else
14534                                 py_version=`$PYTHON -c "import sys; \
14535                                         print sys.version[:3]"`
14536                         fi
14537                 fi
14538
14539                 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
14540                         from string import join; \
14541                         print '-L' + get_python_lib(0,1), \
14542                         '-lpython';"`$py_version
14543         fi
14544         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
14545 $as_echo "$PYTHON_LDFLAGS" >&6; }
14546
14547
14548         #
14549         # Check for site packages
14550         #
14551         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
14552 $as_echo_n "checking for Python site-packages path... " >&6; }
14553         if test -z "$PYTHON_SITE_PKG"; then
14554                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
14555                         print distutils.sysconfig.get_python_lib(0,0);"`
14556         fi
14557         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
14558 $as_echo "$PYTHON_SITE_PKG" >&6; }
14559
14560
14561         #
14562         # libraries which must be linked in when embedding
14563         #
14564         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
14565 $as_echo_n "checking python extra libraries... " >&6; }
14566         if test -z "$PYTHON_EXTRA_LIBS"; then
14567            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
14568                 conf = distutils.sysconfig.get_config_var; \
14569                 print conf('LOCALMODLIBS'), conf('LIBS')"`
14570         fi
14571         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
14572 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
14573
14574
14575         #
14576         # linking flags needed when embedding
14577         #
14578         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
14579 $as_echo_n "checking python extra linking flags... " >&6; }
14580         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
14581                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
14582                         conf = distutils.sysconfig.get_config_var; \
14583                         print conf('LINKFORSHARED')"`
14584         fi
14585         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
14586 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
14587
14588
14589         #
14590         # final check to see if everything compiles alright
14591         #
14592         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
14593 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
14594         ac_ext=c
14595 ac_cpp='$CPP $CPPFLAGS'
14596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14599
14600         # save current global flags
14601         ac_save_LIBS="$LIBS"
14602         ac_save_CPPFLAGS="$CPPFLAGS"
14603         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS"
14604         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
14605         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14606 /* end confdefs.h.  */
14607
14608                 #include <Python.h>
14609
14610 int
14611 main ()
14612 {
14613
14614                 Py_Initialize();
14615
14616   ;
14617   return 0;
14618 }
14619 _ACEOF
14620 if ac_fn_c_try_link "$LINENO"; then :
14621   pythonexists=yes
14622 else
14623   pythonexists=no
14624 fi
14625 rm -f core conftest.err conftest.$ac_objext \
14626     conftest$ac_exeext conftest.$ac_ext
14627
14628         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
14629 $as_echo "$pythonexists" >&6; }
14630
14631         if test ! "$pythonexists" = "yes"; then
14632           PYTHON_VERSION=""
14633         fi
14634         ac_ext=c
14635 ac_cpp='$CPP $CPPFLAGS'
14636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14639
14640         # turn back to default flags
14641         CPPFLAGS="$ac_save_CPPFLAGS"
14642         LIBS="$ac_save_LIBS"
14643
14644         #
14645         # all done!
14646         #
14647
14648
14649
14650
14651         test "x" != "xno" || swig_shadow=" -noproxy"
14652         SWIG_PYTHON_OPT=-python$swig_shadow
14653
14654         SWIG_PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
14655
14656
14657 fi
14658
14659 if test "x${SWIG}" != "x" ; then
14660    have_swig="yes"
14661 else
14662    have_swig="no"
14663 fi
14664
14665 if test "${enable_pywrap}" = "detect" ; then
14666         if test "${have_python}" = "yes" ; then
14667                 if test "${have_swig}" = "yes" ; then
14668                         enable_pywrap="yes"
14669                 fi
14670         fi
14671 fi
14672
14673 if test "${enable_pywrap}" = "yes" ; then
14674         test "${have_python}" != "yes" && as_fn_error $? "Python not found" "$LINENO" 5
14675         test "${have_swig}" != "yes" && as_fn_error $? "SWIG not found" "$LINENO" 5
14676 fi
14677
14678 test "${enable_openssl}" = "detect" && enable_openssl="${have_openssl}"
14679
14680 if test "${enable_openssl}" = "yes" ; then
14681         test "${have_openssl}" != "yes" && as_fn_error $? "OpenSSL not found" "$LINENO" 5
14682 fi
14683
14684 if test "${enable_pkcs11_helper}" = "yes" ; then
14685         test "${have_openssl}" != "yes" && as_fn_error $? "OpenSSL not found" "$LINENO" 5
14686
14687 pkg_failed=no
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11_HELPER" >&5
14689 $as_echo_n "checking for PKCS11_HELPER... " >&6; }
14690
14691 if test -n "$PKCS11_HELPER_CFLAGS"; then
14692     pkg_cv_PKCS11_HELPER_CFLAGS="$PKCS11_HELPER_CFLAGS"
14693  elif test -n "$PKG_CONFIG"; then
14694     if test -n "$PKG_CONFIG" && \
14695     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.04\""; } >&5
14696   ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.04") 2>&5
14697   ac_status=$?
14698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14699   test $ac_status = 0; }; then
14700   pkg_cv_PKCS11_HELPER_CFLAGS=`$PKG_CONFIG --cflags "libpkcs11-helper-1 >= 1.04" 2>/dev/null`
14701                       test "x$?" != "x0" && pkg_failed=yes
14702 else
14703   pkg_failed=yes
14704 fi
14705  else
14706     pkg_failed=untried
14707 fi
14708 if test -n "$PKCS11_HELPER_LIBS"; then
14709     pkg_cv_PKCS11_HELPER_LIBS="$PKCS11_HELPER_LIBS"
14710  elif test -n "$PKG_CONFIG"; then
14711     if test -n "$PKG_CONFIG" && \
14712     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.04\""; } >&5
14713   ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.04") 2>&5
14714   ac_status=$?
14715   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14716   test $ac_status = 0; }; then
14717   pkg_cv_PKCS11_HELPER_LIBS=`$PKG_CONFIG --libs "libpkcs11-helper-1 >= 1.04" 2>/dev/null`
14718                       test "x$?" != "x0" && pkg_failed=yes
14719 else
14720   pkg_failed=yes
14721 fi
14722  else
14723     pkg_failed=untried
14724 fi
14725
14726
14727
14728 if test $pkg_failed = yes; then
14729         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14730 $as_echo "no" >&6; }
14731
14732 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14733         _pkg_short_errors_supported=yes
14734 else
14735         _pkg_short_errors_supported=no
14736 fi
14737         if test $_pkg_short_errors_supported = yes; then
14738                 PKCS11_HELPER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.04" 2>&1`
14739         else
14740                 PKCS11_HELPER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.04" 2>&1`
14741         fi
14742         # Put the nasty error message in config.log where it belongs
14743         echo "$PKCS11_HELPER_PKG_ERRORS" >&5
14744
14745         as_fn_error $? "Cannot locate pkcs11-helper" "$LINENO" 5
14746 elif test $pkg_failed = untried; then
14747         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14748 $as_echo "no" >&6; }
14749         as_fn_error $? "Cannot locate pkcs11-helper" "$LINENO" 5
14750 else
14751         PKCS11_HELPER_CFLAGS=$pkg_cv_PKCS11_HELPER_CFLAGS
14752         PKCS11_HELPER_LIBS=$pkg_cv_PKCS11_HELPER_LIBS
14753         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14754 $as_echo "yes" >&6; }
14755
14756 fi
14757 fi
14758
14759 if test "${enable_tspi}" = "yes" ; then
14760         if test -z "${TSPI_LIBS}"; then
14761
14762
14763                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tspi_Context_Create in -ltspi" >&5
14764 $as_echo_n "checking for Tspi_Context_Create in -ltspi... " >&6; }
14765 if ${ac_cv_lib_tspi_Tspi_Context_Create+:} false; then :
14766   $as_echo_n "(cached) " >&6
14767 else
14768   ac_check_lib_save_LIBS=$LIBS
14769 LIBS="-ltspi  $LIBS"
14770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14771 /* end confdefs.h.  */
14772
14773 /* Override any GCC internal prototype to avoid an error.
14774    Use char because int might match the return type of a GCC
14775    builtin and then its argument prototype would still apply.  */
14776 #ifdef __cplusplus
14777 extern "C"
14778 #endif
14779 char Tspi_Context_Create ();
14780 int
14781 main ()
14782 {
14783 return Tspi_Context_Create ();
14784   ;
14785   return 0;
14786 }
14787 _ACEOF
14788 if ac_fn_c_try_link "$LINENO"; then :
14789   ac_cv_lib_tspi_Tspi_Context_Create=yes
14790 else
14791   ac_cv_lib_tspi_Tspi_Context_Create=no
14792 fi
14793 rm -f core conftest.err conftest.$ac_objext \
14794     conftest$ac_exeext conftest.$ac_ext
14795 LIBS=$ac_check_lib_save_LIBS
14796 fi
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tspi_Tspi_Context_Create" >&5
14798 $as_echo "$ac_cv_lib_tspi_Tspi_Context_Create" >&6; }
14799 if test "x$ac_cv_lib_tspi_Tspi_Context_Create" = xyes; then :
14800   TSPI_LIBS="-ltspi"
14801 else
14802   as_fn_error $? "Cannot find tspi" "$LINENO" 5
14803
14804 fi
14805
14806         fi
14807 fi
14808
14809 if test "${enable_gpg}" = "yes" ; then
14810         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpgme" >&5
14811 $as_echo_n "checking for gpgme... " >&6; }
14812         if ! test -x "${with_gpgme_prefix}/bin/gpgme-config"; then
14813                 as_fn_error $? "Cannot locate gpgme" "$LINENO" 5
14814         else
14815                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14816 $as_echo "found" >&6; }
14817                 GPGME_CFLAGS="`\"${with_gpgme_prefix}/bin/gpgme-config\" --cflags`"
14818                 GPGME_LIBS="`\"${with_gpgme_prefix}/bin/gpgme-config\" --libs`"
14819         fi
14820 fi
14821
14822 if test "${enable_pam}" = "yes" ; then
14823         if test -z "${PAM_LIBS}"; then
14824
14825
14826                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_authenticate in -lpam" >&5
14827 $as_echo_n "checking for pam_authenticate in -lpam... " >&6; }
14828 if ${ac_cv_lib_pam_pam_authenticate+:} false; then :
14829   $as_echo_n "(cached) " >&6
14830 else
14831   ac_check_lib_save_LIBS=$LIBS
14832 LIBS="-lpam  $LIBS"
14833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14834 /* end confdefs.h.  */
14835
14836 /* Override any GCC internal prototype to avoid an error.
14837    Use char because int might match the return type of a GCC
14838    builtin and then its argument prototype would still apply.  */
14839 #ifdef __cplusplus
14840 extern "C"
14841 #endif
14842 char pam_authenticate ();
14843 int
14844 main ()
14845 {
14846 return pam_authenticate ();
14847   ;
14848   return 0;
14849 }
14850 _ACEOF
14851 if ac_fn_c_try_link "$LINENO"; then :
14852   ac_cv_lib_pam_pam_authenticate=yes
14853 else
14854   ac_cv_lib_pam_pam_authenticate=no
14855 fi
14856 rm -f core conftest.err conftest.$ac_objext \
14857     conftest$ac_exeext conftest.$ac_ext
14858 LIBS=$ac_check_lib_save_LIBS
14859 fi
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_authenticate" >&5
14861 $as_echo "$ac_cv_lib_pam_pam_authenticate" >&6; }
14862 if test "x$ac_cv_lib_pam_pam_authenticate" = xyes; then :
14863   PAM_LIBS="-lpam"
14864 else
14865   as_fn_error $? "Cannot find pam" "$LINENO" 5
14866
14867 fi
14868
14869                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_misc_setenv in -lpam_misc" >&5
14870 $as_echo_n "checking for pam_misc_setenv in -lpam_misc... " >&6; }
14871 if ${ac_cv_lib_pam_misc_pam_misc_setenv+:} false; then :
14872   $as_echo_n "(cached) " >&6
14873 else
14874   ac_check_lib_save_LIBS=$LIBS
14875 LIBS="-lpam_misc  $LIBS"
14876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14877 /* end confdefs.h.  */
14878
14879 /* Override any GCC internal prototype to avoid an error.
14880    Use char because int might match the return type of a GCC
14881    builtin and then its argument prototype would still apply.  */
14882 #ifdef __cplusplus
14883 extern "C"
14884 #endif
14885 char pam_misc_setenv ();
14886 int
14887 main ()
14888 {
14889 return pam_misc_setenv ();
14890   ;
14891   return 0;
14892 }
14893 _ACEOF
14894 if ac_fn_c_try_link "$LINENO"; then :
14895   ac_cv_lib_pam_misc_pam_misc_setenv=yes
14896 else
14897   ac_cv_lib_pam_misc_pam_misc_setenv=no
14898 fi
14899 rm -f core conftest.err conftest.$ac_objext \
14900     conftest$ac_exeext conftest.$ac_ext
14901 LIBS=$ac_check_lib_save_LIBS
14902 fi
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_misc_pam_misc_setenv" >&5
14904 $as_echo "$ac_cv_lib_pam_misc_pam_misc_setenv" >&6; }
14905 if test "x$ac_cv_lib_pam_misc_pam_misc_setenv" = xyes; then :
14906   PAM_LIBS="${PAM_LIBS} ${TSPI_LIBS} -lpam_misc"
14907 else
14908   as_fn_error $? "Cannot find pam_misc" "$LINENO" 5
14909
14910 fi
14911
14912         fi
14913 fi
14914
14915 if test "${enable_gui}" = "yes"; then
14916
14917 pkg_failed=no
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
14919 $as_echo_n "checking for GTK... " >&6; }
14920
14921 if test -n "$GTK_CFLAGS"; then
14922     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
14923  elif test -n "$PKG_CONFIG"; then
14924     if test -n "$PKG_CONFIG" && \
14925     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.0\""; } >&5
14926   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0") 2>&5
14927   ac_status=$?
14928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14929   test $ac_status = 0; }; then
14930   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0" 2>/dev/null`
14931                       test "x$?" != "x0" && pkg_failed=yes
14932 else
14933   pkg_failed=yes
14934 fi
14935  else
14936     pkg_failed=untried
14937 fi
14938 if test -n "$GTK_LIBS"; then
14939     pkg_cv_GTK_LIBS="$GTK_LIBS"
14940  elif test -n "$PKG_CONFIG"; then
14941     if test -n "$PKG_CONFIG" && \
14942     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.0\""; } >&5
14943   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0") 2>&5
14944   ac_status=$?
14945   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14946   test $ac_status = 0; }; then
14947   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0" 2>/dev/null`
14948                       test "x$?" != "x0" && pkg_failed=yes
14949 else
14950   pkg_failed=yes
14951 fi
14952  else
14953     pkg_failed=untried
14954 fi
14955
14956
14957
14958 if test $pkg_failed = yes; then
14959         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14960 $as_echo "no" >&6; }
14961
14962 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14963         _pkg_short_errors_supported=yes
14964 else
14965         _pkg_short_errors_supported=no
14966 fi
14967         if test $_pkg_short_errors_supported = yes; then
14968                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.0" 2>&1`
14969         else
14970                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.0" 2>&1`
14971         fi
14972         # Put the nasty error message in config.log where it belongs
14973         echo "$GTK_PKG_ERRORS" >&5
14974
14975           GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
14976   GTK_LIBS    linker flags for GTK, overriding pkg-config
14977
14978 pkg_failed=no
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
14980 $as_echo_n "checking for GTK... " >&6; }
14981
14982 if test -n "$GTK_CFLAGS"; then
14983     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
14984  elif test -n "$PKG_CONFIG"; then
14985     if test -n "$PKG_CONFIG" && \
14986     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+ >= 1.0\""; } >&5
14987   ($PKG_CONFIG --exists --print-errors "gtk+ >= 1.0") 2>&5
14988   ac_status=$?
14989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14990   test $ac_status = 0; }; then
14991   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+ >= 1.0" 2>/dev/null`
14992                       test "x$?" != "x0" && pkg_failed=yes
14993 else
14994   pkg_failed=yes
14995 fi
14996  else
14997     pkg_failed=untried
14998 fi
14999 if test -n "$GTK_LIBS"; then
15000     pkg_cv_GTK_LIBS="$GTK_LIBS"
15001  elif test -n "$PKG_CONFIG"; then
15002     if test -n "$PKG_CONFIG" && \
15003     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+ >= 1.0\""; } >&5
15004   ($PKG_CONFIG --exists --print-errors "gtk+ >= 1.0") 2>&5
15005   ac_status=$?
15006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15007   test $ac_status = 0; }; then
15008   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+ >= 1.0" 2>/dev/null`
15009                       test "x$?" != "x0" && pkg_failed=yes
15010 else
15011   pkg_failed=yes
15012 fi
15013  else
15014     pkg_failed=untried
15015 fi
15016
15017
15018
15019 if test $pkg_failed = yes; then
15020         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15021 $as_echo "no" >&6; }
15022
15023 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15024         _pkg_short_errors_supported=yes
15025 else
15026         _pkg_short_errors_supported=no
15027 fi
15028         if test $_pkg_short_errors_supported = yes; then
15029                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+ >= 1.0" 2>&1`
15030         else
15031                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+ >= 1.0" 2>&1`
15032         fi
15033         # Put the nasty error message in config.log where it belongs
15034         echo "$GTK_PKG_ERRORS" >&5
15035
15036         as_fn_error $? "Cannot locate gtk+" "$LINENO" 5
15037
15038 elif test $pkg_failed = untried; then
15039         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15040 $as_echo "no" >&6; }
15041         as_fn_error $? "Cannot locate gtk+" "$LINENO" 5
15042
15043 else
15044         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
15045         GTK_LIBS=$pkg_cv_GTK_LIBS
15046         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15047 $as_echo "yes" >&6; }
15048
15049 fi
15050
15051 elif test $pkg_failed = untried; then
15052         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15053 $as_echo "no" >&6; }
15054           GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
15055   GTK_LIBS    linker flags for GTK, overriding pkg-config
15056
15057 pkg_failed=no
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
15059 $as_echo_n "checking for GTK... " >&6; }
15060
15061 if test -n "$GTK_CFLAGS"; then
15062     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
15063  elif test -n "$PKG_CONFIG"; then
15064     if test -n "$PKG_CONFIG" && \
15065     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+ >= 1.0\""; } >&5
15066   ($PKG_CONFIG --exists --print-errors "gtk+ >= 1.0") 2>&5
15067   ac_status=$?
15068   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15069   test $ac_status = 0; }; then
15070   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+ >= 1.0" 2>/dev/null`
15071                       test "x$?" != "x0" && pkg_failed=yes
15072 else
15073   pkg_failed=yes
15074 fi
15075  else
15076     pkg_failed=untried
15077 fi
15078 if test -n "$GTK_LIBS"; then
15079     pkg_cv_GTK_LIBS="$GTK_LIBS"
15080  elif test -n "$PKG_CONFIG"; then
15081     if test -n "$PKG_CONFIG" && \
15082     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+ >= 1.0\""; } >&5
15083   ($PKG_CONFIG --exists --print-errors "gtk+ >= 1.0") 2>&5
15084   ac_status=$?
15085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15086   test $ac_status = 0; }; then
15087   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+ >= 1.0" 2>/dev/null`
15088                       test "x$?" != "x0" && pkg_failed=yes
15089 else
15090   pkg_failed=yes
15091 fi
15092  else
15093     pkg_failed=untried
15094 fi
15095
15096
15097
15098 if test $pkg_failed = yes; then
15099         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15100 $as_echo "no" >&6; }
15101
15102 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15103         _pkg_short_errors_supported=yes
15104 else
15105         _pkg_short_errors_supported=no
15106 fi
15107         if test $_pkg_short_errors_supported = yes; then
15108                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+ >= 1.0" 2>&1`
15109         else
15110                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+ >= 1.0" 2>&1`
15111         fi
15112         # Put the nasty error message in config.log where it belongs
15113         echo "$GTK_PKG_ERRORS" >&5
15114
15115         as_fn_error $? "Cannot locate gtk+" "$LINENO" 5
15116
15117 elif test $pkg_failed = untried; then
15118         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15119 $as_echo "no" >&6; }
15120         as_fn_error $? "Cannot locate gtk+" "$LINENO" 5
15121
15122 else
15123         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
15124         GTK_LIBS=$pkg_cv_GTK_LIBS
15125         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15126 $as_echo "yes" >&6; }
15127
15128 fi
15129
15130 else
15131         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
15132         GTK_LIBS=$pkg_cv_GTK_LIBS
15133         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15134 $as_echo "yes" >&6; }
15135
15136 fi
15137 fi
15138
15139 pkgconfigdir="\$(libdir)/pkgconfig"
15140 if test "${prefix}" = "/usr"; then
15141         rootsbindir="/sbin"
15142 else
15143         rootsbindir="\$(sbindir)"
15144 fi
15145
15146 GETTEXT_PACKAGE=ecryptfs-utils
15147
15148
15149 cat >>confdefs.h <<_ACEOF
15150 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
15151 _ACEOF
15152
15153
15154
15155    for ac_header in locale.h
15156 do :
15157   ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
15158 if test "x$ac_cv_header_locale_h" = xyes; then :
15159   cat >>confdefs.h <<_ACEOF
15160 #define HAVE_LOCALE_H 1
15161 _ACEOF
15162
15163 fi
15164
15165 done
15166
15167     if test $ac_cv_header_locale_h = yes; then
15168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15169 $as_echo_n "checking for LC_MESSAGES... " >&6; }
15170 if ${am_cv_val_LC_MESSAGES+:} false; then :
15171   $as_echo_n "(cached) " >&6
15172 else
15173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15174 /* end confdefs.h.  */
15175 #include <locale.h>
15176 int
15177 main ()
15178 {
15179 return LC_MESSAGES
15180   ;
15181   return 0;
15182 }
15183 _ACEOF
15184 if ac_fn_c_try_link "$LINENO"; then :
15185   am_cv_val_LC_MESSAGES=yes
15186 else
15187   am_cv_val_LC_MESSAGES=no
15188 fi
15189 rm -f core conftest.err conftest.$ac_objext \
15190     conftest$ac_exeext conftest.$ac_ext
15191 fi
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15193 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15194     if test $am_cv_val_LC_MESSAGES = yes; then
15195
15196 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
15197
15198     fi
15199   fi
15200      USE_NLS=yes
15201
15202
15203     gt_cv_have_gettext=no
15204
15205     CATOBJEXT=NONE
15206     XGETTEXT=:
15207     INTLLIBS=
15208
15209     ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
15210 if test "x$ac_cv_header_libintl_h" = xyes; then :
15211   gt_cv_func_dgettext_libintl="no"
15212       libintl_extra_libs=""
15213
15214       #
15215       # First check in libc
15216       #
15217       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
15218 $as_echo_n "checking for ngettext in libc... " >&6; }
15219 if ${gt_cv_func_ngettext_libc+:} false; then :
15220   $as_echo_n "(cached) " >&6
15221 else
15222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223 /* end confdefs.h.  */
15224
15225 #include <libintl.h>
15226
15227 int
15228 main ()
15229 {
15230 return !ngettext ("","", 1)
15231   ;
15232   return 0;
15233 }
15234 _ACEOF
15235 if ac_fn_c_try_link "$LINENO"; then :
15236   gt_cv_func_ngettext_libc=yes
15237 else
15238   gt_cv_func_ngettext_libc=no
15239 fi
15240 rm -f core conftest.err conftest.$ac_objext \
15241     conftest$ac_exeext conftest.$ac_ext
15242
15243 fi
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
15245 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
15246
15247       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
15248               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
15249 $as_echo_n "checking for dgettext in libc... " >&6; }
15250 if ${gt_cv_func_dgettext_libc+:} false; then :
15251   $as_echo_n "(cached) " >&6
15252 else
15253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15254 /* end confdefs.h.  */
15255
15256 #include <libintl.h>
15257
15258 int
15259 main ()
15260 {
15261 return !dgettext ("","")
15262   ;
15263   return 0;
15264 }
15265 _ACEOF
15266 if ac_fn_c_try_link "$LINENO"; then :
15267   gt_cv_func_dgettext_libc=yes
15268 else
15269   gt_cv_func_dgettext_libc=no
15270 fi
15271 rm -f core conftest.err conftest.$ac_objext \
15272     conftest$ac_exeext conftest.$ac_ext
15273
15274 fi
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
15276 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
15277       fi
15278
15279       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
15280         for ac_func in bind_textdomain_codeset
15281 do :
15282   ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
15283 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
15284   cat >>confdefs.h <<_ACEOF
15285 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
15286 _ACEOF
15287
15288 fi
15289 done
15290
15291       fi
15292
15293       #
15294       # If we don't have everything we want, check in libintl
15295       #
15296       if test "$gt_cv_func_dgettext_libc" != "yes" \
15297          || test "$gt_cv_func_ngettext_libc" != "yes" \
15298          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
15299
15300         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
15301 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
15302 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
15303   $as_echo_n "(cached) " >&6
15304 else
15305   ac_check_lib_save_LIBS=$LIBS
15306 LIBS="-lintl  $LIBS"
15307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15308 /* end confdefs.h.  */
15309
15310 /* Override any GCC internal prototype to avoid an error.
15311    Use char because int might match the return type of a GCC
15312    builtin and then its argument prototype would still apply.  */
15313 #ifdef __cplusplus
15314 extern "C"
15315 #endif
15316 char bindtextdomain ();
15317 int
15318 main ()
15319 {
15320 return bindtextdomain ();
15321   ;
15322   return 0;
15323 }
15324 _ACEOF
15325 if ac_fn_c_try_link "$LINENO"; then :
15326   ac_cv_lib_intl_bindtextdomain=yes
15327 else
15328   ac_cv_lib_intl_bindtextdomain=no
15329 fi
15330 rm -f core conftest.err conftest.$ac_objext \
15331     conftest$ac_exeext conftest.$ac_ext
15332 LIBS=$ac_check_lib_save_LIBS
15333 fi
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
15335 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
15336 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
15337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
15338 $as_echo_n "checking for ngettext in -lintl... " >&6; }
15339 if ${ac_cv_lib_intl_ngettext+:} false; then :
15340   $as_echo_n "(cached) " >&6
15341 else
15342   ac_check_lib_save_LIBS=$LIBS
15343 LIBS="-lintl  $LIBS"
15344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15345 /* end confdefs.h.  */
15346
15347 /* Override any GCC internal prototype to avoid an error.
15348    Use char because int might match the return type of a GCC
15349    builtin and then its argument prototype would still apply.  */
15350 #ifdef __cplusplus
15351 extern "C"
15352 #endif
15353 char ngettext ();
15354 int
15355 main ()
15356 {
15357 return ngettext ();
15358   ;
15359   return 0;
15360 }
15361 _ACEOF
15362 if ac_fn_c_try_link "$LINENO"; then :
15363   ac_cv_lib_intl_ngettext=yes
15364 else
15365   ac_cv_lib_intl_ngettext=no
15366 fi
15367 rm -f core conftest.err conftest.$ac_objext \
15368     conftest$ac_exeext conftest.$ac_ext
15369 LIBS=$ac_check_lib_save_LIBS
15370 fi
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
15372 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
15373 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
15374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
15375 $as_echo_n "checking for dgettext in -lintl... " >&6; }
15376 if ${ac_cv_lib_intl_dgettext+:} false; then :
15377   $as_echo_n "(cached) " >&6
15378 else
15379   ac_check_lib_save_LIBS=$LIBS
15380 LIBS="-lintl  $LIBS"
15381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15382 /* end confdefs.h.  */
15383
15384 /* Override any GCC internal prototype to avoid an error.
15385    Use char because int might match the return type of a GCC
15386    builtin and then its argument prototype would still apply.  */
15387 #ifdef __cplusplus
15388 extern "C"
15389 #endif
15390 char dgettext ();
15391 int
15392 main ()
15393 {
15394 return dgettext ();
15395   ;
15396   return 0;
15397 }
15398 _ACEOF
15399 if ac_fn_c_try_link "$LINENO"; then :
15400   ac_cv_lib_intl_dgettext=yes
15401 else
15402   ac_cv_lib_intl_dgettext=no
15403 fi
15404 rm -f core conftest.err conftest.$ac_objext \
15405     conftest$ac_exeext conftest.$ac_ext
15406 LIBS=$ac_check_lib_save_LIBS
15407 fi
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
15409 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
15410 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
15411   gt_cv_func_dgettext_libintl=yes
15412 fi
15413
15414 fi
15415
15416 fi
15417
15418
15419         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
15420           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
15421 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
15422           { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
15423 $as_echo "" >&6; }
15424           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
15425 $as_echo_n "checking for ngettext in -lintl... " >&6; }
15426 if ${ac_cv_lib_intl_ngettext+:} false; then :
15427   $as_echo_n "(cached) " >&6
15428 else
15429   ac_check_lib_save_LIBS=$LIBS
15430 LIBS="-lintl -liconv $LIBS"
15431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432 /* end confdefs.h.  */
15433
15434 /* Override any GCC internal prototype to avoid an error.
15435    Use char because int might match the return type of a GCC
15436    builtin and then its argument prototype would still apply.  */
15437 #ifdef __cplusplus
15438 extern "C"
15439 #endif
15440 char ngettext ();
15441 int
15442 main ()
15443 {
15444 return ngettext ();
15445   ;
15446   return 0;
15447 }
15448 _ACEOF
15449 if ac_fn_c_try_link "$LINENO"; then :
15450   ac_cv_lib_intl_ngettext=yes
15451 else
15452   ac_cv_lib_intl_ngettext=no
15453 fi
15454 rm -f core conftest.err conftest.$ac_objext \
15455     conftest$ac_exeext conftest.$ac_ext
15456 LIBS=$ac_check_lib_save_LIBS
15457 fi
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
15459 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
15460 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
15461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
15462 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
15463 if ${ac_cv_lib_intl_dcgettext+:} false; then :
15464   $as_echo_n "(cached) " >&6
15465 else
15466   ac_check_lib_save_LIBS=$LIBS
15467 LIBS="-lintl -liconv $LIBS"
15468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15469 /* end confdefs.h.  */
15470
15471 /* Override any GCC internal prototype to avoid an error.
15472    Use char because int might match the return type of a GCC
15473    builtin and then its argument prototype would still apply.  */
15474 #ifdef __cplusplus
15475 extern "C"
15476 #endif
15477 char dcgettext ();
15478 int
15479 main ()
15480 {
15481 return dcgettext ();
15482   ;
15483   return 0;
15484 }
15485 _ACEOF
15486 if ac_fn_c_try_link "$LINENO"; then :
15487   ac_cv_lib_intl_dcgettext=yes
15488 else
15489   ac_cv_lib_intl_dcgettext=no
15490 fi
15491 rm -f core conftest.err conftest.$ac_objext \
15492     conftest$ac_exeext conftest.$ac_ext
15493 LIBS=$ac_check_lib_save_LIBS
15494 fi
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
15496 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
15497 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
15498   gt_cv_func_dgettext_libintl=yes
15499                         libintl_extra_libs=-liconv
15500 else
15501   :
15502 fi
15503
15504 else
15505   :
15506 fi
15507
15508         fi
15509
15510         #
15511         # If we found libintl, then check in it for bind_textdomain_codeset();
15512         # we'll prefer libc if neither have bind_textdomain_codeset(),
15513         # and both have dgettext and ngettext
15514         #
15515         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
15516           glib_save_LIBS="$LIBS"
15517           LIBS="$LIBS -lintl $libintl_extra_libs"
15518           unset ac_cv_func_bind_textdomain_codeset
15519           for ac_func in bind_textdomain_codeset
15520 do :
15521   ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
15522 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
15523   cat >>confdefs.h <<_ACEOF
15524 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
15525 _ACEOF
15526
15527 fi
15528 done
15529
15530           LIBS="$glib_save_LIBS"
15531
15532           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
15533             gt_cv_func_dgettext_libc=no
15534           else
15535             if test "$gt_cv_func_dgettext_libc" = "yes" \
15536                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
15537               gt_cv_func_dgettext_libintl=no
15538             fi
15539           fi
15540         fi
15541       fi
15542
15543       if test "$gt_cv_func_dgettext_libc" = "yes" \
15544         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
15545         gt_cv_have_gettext=yes
15546       fi
15547
15548       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
15549         INTLLIBS="-lintl $libintl_extra_libs"
15550       fi
15551
15552       if test "$gt_cv_have_gettext" = "yes"; then
15553
15554 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15555
15556         # Extract the first word of "msgfmt", so it can be a program name with args.
15557 set dummy msgfmt; ac_word=$2
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15559 $as_echo_n "checking for $ac_word... " >&6; }
15560 if ${ac_cv_path_MSGFMT+:} false; then :
15561   $as_echo_n "(cached) " >&6
15562 else
15563   case "$MSGFMT" in
15564   /*)
15565   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15566   ;;
15567   *)
15568   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15569   for ac_dir in $PATH; do
15570     test -z "$ac_dir" && ac_dir=.
15571     if test -f $ac_dir/$ac_word; then
15572       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
15573         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15574         break
15575       fi
15576     fi
15577   done
15578   IFS="$ac_save_ifs"
15579   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
15580   ;;
15581 esac
15582 fi
15583 MSGFMT="$ac_cv_path_MSGFMT"
15584 if test "$MSGFMT" != "no"; then
15585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15586 $as_echo "$MSGFMT" >&6; }
15587 else
15588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15589 $as_echo "no" >&6; }
15590 fi
15591         if test "$MSGFMT" != "no"; then
15592           glib_save_LIBS="$LIBS"
15593           LIBS="$LIBS $INTLLIBS"
15594           for ac_func in dcgettext
15595 do :
15596   ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
15597 if test "x$ac_cv_func_dcgettext" = xyes; then :
15598   cat >>confdefs.h <<_ACEOF
15599 #define HAVE_DCGETTEXT 1
15600 _ACEOF
15601
15602 fi
15603 done
15604
15605           MSGFMT_OPTS=
15606           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
15607 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
15608           cat >conftest.foo <<_ACEOF
15609
15610 msgid ""
15611 msgstr ""
15612 "Content-Type: text/plain; charset=UTF-8\n"
15613 "Project-Id-Version: test 1.0\n"
15614 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
15615 "Last-Translator: test <foo@bar.xx>\n"
15616 "Language-Team: C <LL@li.org>\n"
15617 "MIME-Version: 1.0\n"
15618 "Content-Transfer-Encoding: 8bit\n"
15619
15620 _ACEOF
15621 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
15622   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
15623   ac_status=$?
15624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15625   test $ac_status = 0; }; then
15626   MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15627 $as_echo "yes" >&6; }
15628 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15629 $as_echo "no" >&6; }
15630 echo "$as_me: failed input was:" >&5
15631 sed 's/^/| /' conftest.foo >&5
15632 fi
15633
15634           # Extract the first word of "gmsgfmt", so it can be a program name with args.
15635 set dummy gmsgfmt; ac_word=$2
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15637 $as_echo_n "checking for $ac_word... " >&6; }
15638 if ${ac_cv_path_GMSGFMT+:} false; then :
15639   $as_echo_n "(cached) " >&6
15640 else
15641   case $GMSGFMT in
15642   [\\/]* | ?:[\\/]*)
15643   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15644   ;;
15645   *)
15646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15647 for as_dir in $PATH
15648 do
15649   IFS=$as_save_IFS
15650   test -z "$as_dir" && as_dir=.
15651     for ac_exec_ext in '' $ac_executable_extensions; do
15652   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15653     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15655     break 2
15656   fi
15657 done
15658   done
15659 IFS=$as_save_IFS
15660
15661   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15662   ;;
15663 esac
15664 fi
15665 GMSGFMT=$ac_cv_path_GMSGFMT
15666 if test -n "$GMSGFMT"; then
15667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15668 $as_echo "$GMSGFMT" >&6; }
15669 else
15670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15671 $as_echo "no" >&6; }
15672 fi
15673
15674
15675           # Extract the first word of "xgettext", so it can be a program name with args.
15676 set dummy xgettext; ac_word=$2
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15678 $as_echo_n "checking for $ac_word... " >&6; }
15679 if ${ac_cv_path_XGETTEXT+:} false; then :
15680   $as_echo_n "(cached) " >&6
15681 else
15682   case "$XGETTEXT" in
15683   /*)
15684   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15685   ;;
15686   *)
15687   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15688   for ac_dir in $PATH; do
15689     test -z "$ac_dir" && ac_dir=.
15690     if test -f $ac_dir/$ac_word; then
15691       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
15692         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15693         break
15694       fi
15695     fi
15696   done
15697   IFS="$ac_save_ifs"
15698   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15699   ;;
15700 esac
15701 fi
15702 XGETTEXT="$ac_cv_path_XGETTEXT"
15703 if test "$XGETTEXT" != ":"; then
15704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15705 $as_echo "$XGETTEXT" >&6; }
15706 else
15707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15708 $as_echo "no" >&6; }
15709 fi
15710
15711           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15712 /* end confdefs.h.  */
15713
15714 int
15715 main ()
15716 {
15717 extern int _nl_msg_cat_cntr;
15718                          return _nl_msg_cat_cntr
15719   ;
15720   return 0;
15721 }
15722 _ACEOF
15723 if ac_fn_c_try_link "$LINENO"; then :
15724   CATOBJEXT=.gmo
15725              DATADIRNAME=share
15726 else
15727   case $host in
15728             *-*-solaris*)
15729                                                                 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
15730 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
15731   CATOBJEXT=.gmo
15732                DATADIRNAME=share
15733 else
15734   CATOBJEXT=.mo
15735                DATADIRNAME=lib
15736 fi
15737
15738             ;;
15739             *-*-openbsd*)
15740             CATOBJEXT=.mo
15741             DATADIRNAME=share
15742             ;;
15743             *)
15744             CATOBJEXT=.mo
15745             DATADIRNAME=lib
15746             ;;
15747             esac
15748 fi
15749 rm -f core conftest.err conftest.$ac_objext \
15750     conftest$ac_exeext conftest.$ac_ext
15751           LIBS="$glib_save_LIBS"
15752           INSTOBJEXT=.mo
15753         else
15754           gt_cv_have_gettext=no
15755         fi
15756       fi
15757
15758 fi
15759
15760
15761
15762     if test "$gt_cv_have_gettext" = "yes" ; then
15763
15764 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15765
15766     fi
15767
15768         if test "$XGETTEXT" != ":"; then
15769                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
15770         : ;
15771       else
15772         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
15773 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
15774         XGETTEXT=":"
15775       fi
15776     fi
15777
15778     # We need to process the po/ directory.
15779     POSUB=po
15780
15781     ac_config_commands="$ac_config_commands default-1"
15782
15783
15784                 for lang in $ALL_LINGUAS; do
15785       GMOFILES="$GMOFILES $lang.gmo"
15786       POFILES="$POFILES $lang.po"
15787     done
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801    if test "$gt_cv_have_gettext" = "yes"; then
15802      if test "x$ALL_LINGUAS" = "x"; then
15803        LINGUAS=
15804      else
15805        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15806 $as_echo_n "checking for catalogs to be installed... " >&6; }
15807        NEW_LINGUAS=
15808        for presentlang in $ALL_LINGUAS; do
15809          useit=no
15810          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
15811            desiredlanguages="$LINGUAS"
15812          else
15813            desiredlanguages="$ALL_LINGUAS"
15814          fi
15815          for desiredlang in $desiredlanguages; do
15816            # Use the presentlang catalog if desiredlang is
15817            #   a. equal to presentlang, or
15818            #   b. a variant of presentlang (because in this case,
15819            #      presentlang can be used as a fallback for messages
15820            #      which are not translated in the desiredlang catalog).
15821            case "$desiredlang" in
15822              "$presentlang"*) useit=yes;;
15823            esac
15824          done
15825          if test $useit = yes; then
15826            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
15827          fi
15828        done
15829        LINGUAS=$NEW_LINGUAS
15830        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15831 $as_echo "$LINGUAS" >&6; }
15832      fi
15833
15834           if test -n "$LINGUAS"; then
15835        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
15836      fi
15837    fi
15838
15839             MKINSTALLDIRS=
15840    if test -n "$ac_aux_dir"; then
15841      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15842    fi
15843    if test -z "$MKINSTALLDIRS"; then
15844      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15845    fi
15846
15847
15848          test -d po || mkdir po
15849    if test "x$srcdir" != "x."; then
15850      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
15851        posrcprefix="$srcdir/"
15852      else
15853        posrcprefix="../$srcdir/"
15854      fi
15855    else
15856      posrcprefix="../"
15857    fi
15858    rm -f po/POTFILES
15859    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
15860         < $srcdir/po/POTFILES.in > po/POTFILES
15861
15862
15863
15864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15865 $as_echo_n "checking whether NLS is requested... " >&6; }
15866     # Check whether --enable-nls was given.
15867 if test "${enable_nls+set}" = set; then :
15868   enableval=$enable_nls; USE_NLS=$enableval
15869 else
15870   USE_NLS=yes
15871 fi
15872
15873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15874 $as_echo "$USE_NLS" >&6; }
15875
15876
15877
15878
15879 case "$am__api_version" in
15880     1.01234)
15881         as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
15882     ;;
15883     *)
15884     ;;
15885 esac
15886
15887 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.41.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
15888 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
15889 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
15890 if test -n "0.41.0"; then
15891     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.41.0" >&5
15892 $as_echo_n "checking for intltool >= 0.41.0... " >&6; }
15893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
15894 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
15895     test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
15896         as_fn_error $? "Your intltool is too old.  You need intltool 0.41.0 or later." "$LINENO" 5
15897 fi
15898
15899 # Extract the first word of "intltool-update", so it can be a program name with args.
15900 set dummy intltool-update; ac_word=$2
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15902 $as_echo_n "checking for $ac_word... " >&6; }
15903 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
15904   $as_echo_n "(cached) " >&6
15905 else
15906   case $INTLTOOL_UPDATE in
15907   [\\/]* | ?:[\\/]*)
15908   ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
15909   ;;
15910   *)
15911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15912 for as_dir in $PATH
15913 do
15914   IFS=$as_save_IFS
15915   test -z "$as_dir" && as_dir=.
15916     for ac_exec_ext in '' $ac_executable_extensions; do
15917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15918     ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
15919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15920     break 2
15921   fi
15922 done
15923   done
15924 IFS=$as_save_IFS
15925
15926   ;;
15927 esac
15928 fi
15929 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
15930 if test -n "$INTLTOOL_UPDATE"; then
15931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
15932 $as_echo "$INTLTOOL_UPDATE" >&6; }
15933 else
15934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15935 $as_echo "no" >&6; }
15936 fi
15937
15938
15939 # Extract the first word of "intltool-merge", so it can be a program name with args.
15940 set dummy intltool-merge; ac_word=$2
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15942 $as_echo_n "checking for $ac_word... " >&6; }
15943 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
15944   $as_echo_n "(cached) " >&6
15945 else
15946   case $INTLTOOL_MERGE in
15947   [\\/]* | ?:[\\/]*)
15948   ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
15949   ;;
15950   *)
15951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15952 for as_dir in $PATH
15953 do
15954   IFS=$as_save_IFS
15955   test -z "$as_dir" && as_dir=.
15956     for ac_exec_ext in '' $ac_executable_extensions; do
15957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15958     ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
15959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15960     break 2
15961   fi
15962 done
15963   done
15964 IFS=$as_save_IFS
15965
15966   ;;
15967 esac
15968 fi
15969 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
15970 if test -n "$INTLTOOL_MERGE"; then
15971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
15972 $as_echo "$INTLTOOL_MERGE" >&6; }
15973 else
15974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15975 $as_echo "no" >&6; }
15976 fi
15977
15978
15979 # Extract the first word of "intltool-extract", so it can be a program name with args.
15980 set dummy intltool-extract; ac_word=$2
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15982 $as_echo_n "checking for $ac_word... " >&6; }
15983 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
15984   $as_echo_n "(cached) " >&6
15985 else
15986   case $INTLTOOL_EXTRACT in
15987   [\\/]* | ?:[\\/]*)
15988   ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
15989   ;;
15990   *)
15991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15992 for as_dir in $PATH
15993 do
15994   IFS=$as_save_IFS
15995   test -z "$as_dir" && as_dir=.
15996     for ac_exec_ext in '' $ac_executable_extensions; do
15997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15998     ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
15999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16000     break 2
16001   fi
16002 done
16003   done
16004 IFS=$as_save_IFS
16005
16006   ;;
16007 esac
16008 fi
16009 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
16010 if test -n "$INTLTOOL_EXTRACT"; then
16011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
16012 $as_echo "$INTLTOOL_EXTRACT" >&6; }
16013 else
16014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16015 $as_echo "no" >&6; }
16016 fi
16017
16018
16019 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
16020     as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
16021 fi
16022
16023 if test -z "$AM_DEFAULT_VERBOSITY"; then
16024   AM_DEFAULT_VERBOSITY=1
16025 fi
16026
16027
16028 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
16029 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
16030 INTLTOOL__v_MERGE_0='@echo "  ITMRG " $@;'
16031
16032
16033
16034
16035 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
16036 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
16037 intltool__v_merge_options_0='-q'
16038
16039
16040
16041
16042   INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16043 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16044      INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16045      INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16046       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@'
16047      INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16048    INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16049     INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16050 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16051        INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16052       INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16053 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
16054       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
16055 else
16056       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
16057 fi
16058       INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16059       INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16060     INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16061   INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16062     INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16063     INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16064    INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162 # Check the gettext tools to make sure they are GNU
16163 # Extract the first word of "xgettext", so it can be a program name with args.
16164 set dummy xgettext; ac_word=$2
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16166 $as_echo_n "checking for $ac_word... " >&6; }
16167 if ${ac_cv_path_XGETTEXT+:} false; then :
16168   $as_echo_n "(cached) " >&6
16169 else
16170   case $XGETTEXT in
16171   [\\/]* | ?:[\\/]*)
16172   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16173   ;;
16174   *)
16175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16176 for as_dir in $PATH
16177 do
16178   IFS=$as_save_IFS
16179   test -z "$as_dir" && as_dir=.
16180     for ac_exec_ext in '' $ac_executable_extensions; do
16181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16182     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
16183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16184     break 2
16185   fi
16186 done
16187   done
16188 IFS=$as_save_IFS
16189
16190   ;;
16191 esac
16192 fi
16193 XGETTEXT=$ac_cv_path_XGETTEXT
16194 if test -n "$XGETTEXT"; then
16195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16196 $as_echo "$XGETTEXT" >&6; }
16197 else
16198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16199 $as_echo "no" >&6; }
16200 fi
16201
16202
16203 # Extract the first word of "msgmerge", so it can be a program name with args.
16204 set dummy msgmerge; ac_word=$2
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16206 $as_echo_n "checking for $ac_word... " >&6; }
16207 if ${ac_cv_path_MSGMERGE+:} false; then :
16208   $as_echo_n "(cached) " >&6
16209 else
16210   case $MSGMERGE in
16211   [\\/]* | ?:[\\/]*)
16212   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16213   ;;
16214   *)
16215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16216 for as_dir in $PATH
16217 do
16218   IFS=$as_save_IFS
16219   test -z "$as_dir" && as_dir=.
16220     for ac_exec_ext in '' $ac_executable_extensions; do
16221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16222     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
16223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16224     break 2
16225   fi
16226 done
16227   done
16228 IFS=$as_save_IFS
16229
16230   ;;
16231 esac
16232 fi
16233 MSGMERGE=$ac_cv_path_MSGMERGE
16234 if test -n "$MSGMERGE"; then
16235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16236 $as_echo "$MSGMERGE" >&6; }
16237 else
16238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16239 $as_echo "no" >&6; }
16240 fi
16241
16242
16243 # Extract the first word of "msgfmt", so it can be a program name with args.
16244 set dummy msgfmt; ac_word=$2
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16246 $as_echo_n "checking for $ac_word... " >&6; }
16247 if ${ac_cv_path_MSGFMT+:} false; then :
16248   $as_echo_n "(cached) " >&6
16249 else
16250   case $MSGFMT in
16251   [\\/]* | ?:[\\/]*)
16252   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16253   ;;
16254   *)
16255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16256 for as_dir in $PATH
16257 do
16258   IFS=$as_save_IFS
16259   test -z "$as_dir" && as_dir=.
16260     for ac_exec_ext in '' $ac_executable_extensions; do
16261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16262     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
16263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16264     break 2
16265   fi
16266 done
16267   done
16268 IFS=$as_save_IFS
16269
16270   ;;
16271 esac
16272 fi
16273 MSGFMT=$ac_cv_path_MSGFMT
16274 if test -n "$MSGFMT"; then
16275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16276 $as_echo "$MSGFMT" >&6; }
16277 else
16278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16279 $as_echo "no" >&6; }
16280 fi
16281
16282
16283 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16284 set dummy gmsgfmt; ac_word=$2
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16286 $as_echo_n "checking for $ac_word... " >&6; }
16287 if ${ac_cv_path_GMSGFMT+:} false; then :
16288   $as_echo_n "(cached) " >&6
16289 else
16290   case $GMSGFMT in
16291   [\\/]* | ?:[\\/]*)
16292   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16293   ;;
16294   *)
16295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16296 for as_dir in $PATH
16297 do
16298   IFS=$as_save_IFS
16299   test -z "$as_dir" && as_dir=.
16300     for ac_exec_ext in '' $ac_executable_extensions; do
16301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16302     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16304     break 2
16305   fi
16306 done
16307   done
16308 IFS=$as_save_IFS
16309
16310   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16311   ;;
16312 esac
16313 fi
16314 GMSGFMT=$ac_cv_path_GMSGFMT
16315 if test -n "$GMSGFMT"; then
16316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16317 $as_echo "$GMSGFMT" >&6; }
16318 else
16319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16320 $as_echo "no" >&6; }
16321 fi
16322
16323
16324 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
16325     as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
16326 fi
16327 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
16328 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
16329 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
16330 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
16331     as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
16332 fi
16333
16334 # Extract the first word of "perl", so it can be a program name with args.
16335 set dummy perl; ac_word=$2
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16337 $as_echo_n "checking for $ac_word... " >&6; }
16338 if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
16339   $as_echo_n "(cached) " >&6
16340 else
16341   case $INTLTOOL_PERL in
16342   [\\/]* | ?:[\\/]*)
16343   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
16344   ;;
16345   *)
16346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16347 for as_dir in $PATH
16348 do
16349   IFS=$as_save_IFS
16350   test -z "$as_dir" && as_dir=.
16351     for ac_exec_ext in '' $ac_executable_extensions; do
16352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16353     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
16354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16355     break 2
16356   fi
16357 done
16358   done
16359 IFS=$as_save_IFS
16360
16361   ;;
16362 esac
16363 fi
16364 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
16365 if test -n "$INTLTOOL_PERL"; then
16366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
16367 $as_echo "$INTLTOOL_PERL" >&6; }
16368 else
16369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16370 $as_echo "no" >&6; }
16371 fi
16372
16373
16374 if test -z "$INTLTOOL_PERL"; then
16375    as_fn_error $? "perl not found" "$LINENO" 5
16376 fi
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
16378 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
16379 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
16380 if test $? -ne 0; then
16381    as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
16382 else
16383    IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
16384    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
16385 $as_echo "$IT_PERL_VERSION" >&6; }
16386 fi
16387 if test "x" != "xno-xml"; then
16388    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
16389 $as_echo_n "checking for XML::Parser... " >&6; }
16390    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
16391        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16392 $as_echo "ok" >&6; }
16393    else
16394        as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
16395    fi
16396 fi
16397
16398 # Substitute ALL_LINGUAS so we can use it in po/Makefile
16399
16400
16401 # Set DATADIRNAME correctly if it is not set yet
16402 # (copied from glib-gettext.m4)
16403 if test -z "$DATADIRNAME"; then
16404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16405 /* end confdefs.h.  */
16406
16407 int
16408 main ()
16409 {
16410 extern int _nl_msg_cat_cntr;
16411                        return _nl_msg_cat_cntr
16412   ;
16413   return 0;
16414 }
16415 _ACEOF
16416 if ac_fn_c_try_link "$LINENO"; then :
16417   DATADIRNAME=share
16418 else
16419   case $host in
16420     *-*-solaris*)
16421                         ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
16422 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
16423   DATADIRNAME=share
16424 else
16425   DATADIRNAME=lib
16426 fi
16427
16428     ;;
16429     *)
16430     DATADIRNAME=lib
16431     ;;
16432     esac
16433 fi
16434 rm -f core conftest.err conftest.$ac_objext \
16435     conftest$ac_exeext conftest.$ac_ext
16436 fi
16437
16438
16439
16440
16441
16442
16443 LOCALEDIR='${prefix}/${datadir}/locale'
16444
16445
16446
16447 CRYPTO_CFLAGS=${NSS_CFLAGS}
16448 CRYPTO_LIBS=${NSS_LIBS}
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459  if test "${enable_openssl}" = "yes"; then
16460   BUILD_OPENSSL_TRUE=
16461   BUILD_OPENSSL_FALSE='#'
16462 else
16463   BUILD_OPENSSL_TRUE='#'
16464   BUILD_OPENSSL_FALSE=
16465 fi
16466
16467  if test "${enable_pkcs11_helper}" = "yes"; then
16468   BUILD_PKCS11_HELPER_TRUE=
16469   BUILD_PKCS11_HELPER_FALSE='#'
16470 else
16471   BUILD_PKCS11_HELPER_TRUE='#'
16472   BUILD_PKCS11_HELPER_FALSE=
16473 fi
16474
16475  if test "${enable_tspi}" = "yes"; then
16476   BUILD_TSPI_TRUE=
16477   BUILD_TSPI_FALSE='#'
16478 else
16479   BUILD_TSPI_TRUE='#'
16480   BUILD_TSPI_FALSE=
16481 fi
16482
16483  if test "${enable_gpg}" = "yes"; then
16484   BUILD_GPG_TRUE=
16485   BUILD_GPG_FALSE='#'
16486 else
16487   BUILD_GPG_TRUE='#'
16488   BUILD_GPG_FALSE=
16489 fi
16490
16491  if test "${enable_pam}" = "yes"; then
16492   BUILD_PAM_TRUE=
16493   BUILD_PAM_FALSE='#'
16494 else
16495   BUILD_PAM_TRUE='#'
16496   BUILD_PAM_FALSE=
16497 fi
16498
16499  if test "${enable_pywrap}" = "yes"; then
16500   BUILD_PYWRAP_TRUE=
16501   BUILD_PYWRAP_FALSE='#'
16502 else
16503   BUILD_PYWRAP_TRUE='#'
16504   BUILD_PYWRAP_FALSE=
16505 fi
16506
16507  if test "${enable_nss}" = "yes"; then
16508   BUILD_NSS_TRUE=
16509   BUILD_NSS_FALSE='#'
16510 else
16511   BUILD_NSS_TRUE='#'
16512   BUILD_NSS_FALSE=
16513 fi
16514
16515  if test "${enable_gui}" = "yes"; then
16516   BUILD_GUI_TRUE=
16517   BUILD_GUI_FALSE='#'
16518 else
16519   BUILD_GUI_TRUE='#'
16520   BUILD_GUI_FALSE=
16521 fi
16522
16523  if test "${enable_docs}" = "yes"; then
16524   BUILD_DOCS_TRUE=
16525   BUILD_DOCS_FALSE='#'
16526 else
16527   BUILD_DOCS_TRUE='#'
16528   BUILD_DOCS_FALSE=
16529 fi
16530
16531  if test "${enable_docs_gen}" = "yes"; then
16532   BUILD_DOCS_GEN_TRUE=
16533   BUILD_DOCS_GEN_FALSE='#'
16534 else
16535   BUILD_DOCS_GEN_TRUE='#'
16536   BUILD_DOCS_GEN_FALSE=
16537 fi
16538
16539  if test "${enable_tests}" = "yes"; then
16540   ENABLE_TESTS_TRUE=
16541   ENABLE_TESTS_FALSE='#'
16542 else
16543   ENABLE_TESTS_TRUE='#'
16544   ENABLE_TESTS_FALSE=
16545 fi
16546
16547
16548 # workaround for <autoconf-2.60
16549 if test -z "${docdir}"; then
16550         docdir="\$(datarootdir)/doc/\$(PACKAGE_NAME)"
16551
16552 fi
16553 if test -z "${htmldir}"; then
16554         htmldir="\$(docdir)"
16555
16556 fi
16557 # end workaround
16558 # workaround for <automake-1.10
16559 if test -z "${MKDIR_P}"; then
16560         MKDIR_P="\$(mkdir_p)"
16561
16562 fi
16563 # end workaround
16564
16565 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/libecryptfs/Makefile src/utils/Makefile src/key_mod/Makefile src/daemon/Makefile src/desktop/Makefile src/desktop/ecryptfs-mount-private.desktop src/desktop/ecryptfs-setup-private.desktop src/include/Makefile doc/manpage/Makefile src/pam_ecryptfs/Makefile src/libecryptfs/libecryptfs.pc src/libecryptfs-swig/Makefile tests/Makefile tests/lib/Makefile tests/kernel/Makefile tests/userspace/Makefile po/Makefile.in"
16566
16567 cat >confcache <<\_ACEOF
16568 # This file is a shell script that caches the results of configure
16569 # tests run on this system so they can be shared between configure
16570 # scripts and configure runs, see configure's option --config-cache.
16571 # It is not useful on other systems.  If it contains results you don't
16572 # want to keep, you may remove or edit it.
16573 #
16574 # config.status only pays attention to the cache file if you give it
16575 # the --recheck option to rerun configure.
16576 #
16577 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16578 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16579 # following values.
16580
16581 _ACEOF
16582
16583 # The following way of writing the cache mishandles newlines in values,
16584 # but we know of no workaround that is simple, portable, and efficient.
16585 # So, we kill variables containing newlines.
16586 # Ultrix sh set writes to stderr and can't be redirected directly,
16587 # and sets the high bit in the cache file unless we assign to the vars.
16588 (
16589   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16590     eval ac_val=\$$ac_var
16591     case $ac_val in #(
16592     *${as_nl}*)
16593       case $ac_var in #(
16594       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16595 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16596       esac
16597       case $ac_var in #(
16598       _ | IFS | as_nl) ;; #(
16599       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16600       *) { eval $ac_var=; unset $ac_var;} ;;
16601       esac ;;
16602     esac
16603   done
16604
16605   (set) 2>&1 |
16606     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16607     *${as_nl}ac_space=\ *)
16608       # `set' does not quote correctly, so add quotes: double-quote
16609       # substitution turns \\\\ into \\, and sed turns \\ into \.
16610       sed -n \
16611         "s/'/'\\\\''/g;
16612           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16613       ;; #(
16614     *)
16615       # `set' quotes correctly as required by POSIX, so do not add quotes.
16616       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16617       ;;
16618     esac |
16619     sort
16620 ) |
16621   sed '
16622      /^ac_cv_env_/b end
16623      t clear
16624      :clear
16625      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16626      t end
16627      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16628      :end' >>confcache
16629 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16630   if test -w "$cache_file"; then
16631     if test "x$cache_file" != "x/dev/null"; then
16632       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16633 $as_echo "$as_me: updating cache $cache_file" >&6;}
16634       if test ! -f "$cache_file" || test -h "$cache_file"; then
16635         cat confcache >"$cache_file"
16636       else
16637         case $cache_file in #(
16638         */* | ?:*)
16639           mv -f confcache "$cache_file"$$ &&
16640           mv -f "$cache_file"$$ "$cache_file" ;; #(
16641         *)
16642           mv -f confcache "$cache_file" ;;
16643         esac
16644       fi
16645     fi
16646   else
16647     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16648 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16649   fi
16650 fi
16651 rm -f confcache
16652
16653 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16654 # Let make expand exec_prefix.
16655 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16656
16657 DEFS=-DHAVE_CONFIG_H
16658
16659 ac_libobjs=
16660 ac_ltlibobjs=
16661 U=
16662 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16663   # 1. Remove the extension, and $U if already installed.
16664   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16665   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16666   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16667   #    will be set to the directory where LIBOBJS objects are built.
16668   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16669   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16670 done
16671 LIBOBJS=$ac_libobjs
16672
16673 LTLIBOBJS=$ac_ltlibobjs
16674
16675
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16677 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16678    if test -n "$am_sleep_pid"; then
16679      # Hide warnings about reused PIDs.
16680      wait $am_sleep_pid 2>/dev/null
16681    fi
16682    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16683 $as_echo "done" >&6; }
16684  if test -n "$EXEEXT"; then
16685   am__EXEEXT_TRUE=
16686   am__EXEEXT_FALSE='#'
16687 else
16688   am__EXEEXT_TRUE='#'
16689   am__EXEEXT_FALSE=
16690 fi
16691
16692 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16693   as_fn_error $? "conditional \"AMDEP\" was never defined.
16694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16695 fi
16696 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16697   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16699 fi
16700 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16701   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16703 fi
16704
16705   ac_config_commands="$ac_config_commands po/stamp-it"
16706
16707
16708 if test -z "${BUILD_OPENSSL_TRUE}" && test -z "${BUILD_OPENSSL_FALSE}"; then
16709   as_fn_error $? "conditional \"BUILD_OPENSSL\" was never defined.
16710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16711 fi
16712 if test -z "${BUILD_PKCS11_HELPER_TRUE}" && test -z "${BUILD_PKCS11_HELPER_FALSE}"; then
16713   as_fn_error $? "conditional \"BUILD_PKCS11_HELPER\" was never defined.
16714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16715 fi
16716 if test -z "${BUILD_TSPI_TRUE}" && test -z "${BUILD_TSPI_FALSE}"; then
16717   as_fn_error $? "conditional \"BUILD_TSPI\" was never defined.
16718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16719 fi
16720 if test -z "${BUILD_GPG_TRUE}" && test -z "${BUILD_GPG_FALSE}"; then
16721   as_fn_error $? "conditional \"BUILD_GPG\" was never defined.
16722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16723 fi
16724 if test -z "${BUILD_PAM_TRUE}" && test -z "${BUILD_PAM_FALSE}"; then
16725   as_fn_error $? "conditional \"BUILD_PAM\" was never defined.
16726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16727 fi
16728 if test -z "${BUILD_PYWRAP_TRUE}" && test -z "${BUILD_PYWRAP_FALSE}"; then
16729   as_fn_error $? "conditional \"BUILD_PYWRAP\" was never defined.
16730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16731 fi
16732 if test -z "${BUILD_NSS_TRUE}" && test -z "${BUILD_NSS_FALSE}"; then
16733   as_fn_error $? "conditional \"BUILD_NSS\" was never defined.
16734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16735 fi
16736 if test -z "${BUILD_GUI_TRUE}" && test -z "${BUILD_GUI_FALSE}"; then
16737   as_fn_error $? "conditional \"BUILD_GUI\" was never defined.
16738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16739 fi
16740 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
16741   as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
16742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16743 fi
16744 if test -z "${BUILD_DOCS_GEN_TRUE}" && test -z "${BUILD_DOCS_GEN_FALSE}"; then
16745   as_fn_error $? "conditional \"BUILD_DOCS_GEN\" was never defined.
16746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16747 fi
16748 if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
16749   as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
16750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16751 fi
16752
16753 : "${CONFIG_STATUS=./config.status}"
16754 ac_write_fail=0
16755 ac_clean_files_save=$ac_clean_files
16756 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16758 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16759 as_write_fail=0
16760 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16761 #! $SHELL
16762 # Generated by $as_me.
16763 # Run this file to recreate the current configuration.
16764 # Compiler output produced by configure, useful for debugging
16765 # configure, is in config.log if it exists.
16766
16767 debug=false
16768 ac_cs_recheck=false
16769 ac_cs_silent=false
16770
16771 SHELL=\${CONFIG_SHELL-$SHELL}
16772 export SHELL
16773 _ASEOF
16774 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16775 ## -------------------- ##
16776 ## M4sh Initialization. ##
16777 ## -------------------- ##
16778
16779 # Be more Bourne compatible
16780 DUALCASE=1; export DUALCASE # for MKS sh
16781 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16782   emulate sh
16783   NULLCMD=:
16784   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16785   # is contrary to our usage.  Disable this feature.
16786   alias -g '${1+"$@"}'='"$@"'
16787   setopt NO_GLOB_SUBST
16788 else
16789   case `(set -o) 2>/dev/null` in #(
16790   *posix*) :
16791     set -o posix ;; #(
16792   *) :
16793      ;;
16794 esac
16795 fi
16796
16797
16798 as_nl='
16799 '
16800 export as_nl
16801 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16802 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16803 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16804 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16805 # Prefer a ksh shell builtin over an external printf program on Solaris,
16806 # but without wasting forks for bash or zsh.
16807 if test -z "$BASH_VERSION$ZSH_VERSION" \
16808     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16809   as_echo='print -r --'
16810   as_echo_n='print -rn --'
16811 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16812   as_echo='printf %s\n'
16813   as_echo_n='printf %s'
16814 else
16815   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16816     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16817     as_echo_n='/usr/ucb/echo -n'
16818   else
16819     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16820     as_echo_n_body='eval
16821       arg=$1;
16822       case $arg in #(
16823       *"$as_nl"*)
16824         expr "X$arg" : "X\\(.*\\)$as_nl";
16825         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16826       esac;
16827       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16828     '
16829     export as_echo_n_body
16830     as_echo_n='sh -c $as_echo_n_body as_echo'
16831   fi
16832   export as_echo_body
16833   as_echo='sh -c $as_echo_body as_echo'
16834 fi
16835
16836 # The user is always right.
16837 if test "${PATH_SEPARATOR+set}" != set; then
16838   PATH_SEPARATOR=:
16839   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16840     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16841       PATH_SEPARATOR=';'
16842   }
16843 fi
16844
16845
16846 # IFS
16847 # We need space, tab and new line, in precisely that order.  Quoting is
16848 # there to prevent editors from complaining about space-tab.
16849 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16850 # splitting by setting IFS to empty value.)
16851 IFS=" ""        $as_nl"
16852
16853 # Find who we are.  Look in the path if we contain no directory separator.
16854 as_myself=
16855 case $0 in #((
16856   *[\\/]* ) as_myself=$0 ;;
16857   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16858 for as_dir in $PATH
16859 do
16860   IFS=$as_save_IFS
16861   test -z "$as_dir" && as_dir=.
16862     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16863   done
16864 IFS=$as_save_IFS
16865
16866      ;;
16867 esac
16868 # We did not find ourselves, most probably we were run as `sh COMMAND'
16869 # in which case we are not to be found in the path.
16870 if test "x$as_myself" = x; then
16871   as_myself=$0
16872 fi
16873 if test ! -f "$as_myself"; then
16874   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16875   exit 1
16876 fi
16877
16878 # Unset variables that we do not need and which cause bugs (e.g. in
16879 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16880 # suppresses any "Segmentation fault" message there.  '((' could
16881 # trigger a bug in pdksh 5.2.14.
16882 for as_var in BASH_ENV ENV MAIL MAILPATH
16883 do eval test x\${$as_var+set} = xset \
16884   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16885 done
16886 PS1='$ '
16887 PS2='> '
16888 PS4='+ '
16889
16890 # NLS nuisances.
16891 LC_ALL=C
16892 export LC_ALL
16893 LANGUAGE=C
16894 export LANGUAGE
16895
16896 # CDPATH.
16897 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16898
16899
16900 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16901 # ----------------------------------------
16902 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16903 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16904 # script with STATUS, using 1 if that was 0.
16905 as_fn_error ()
16906 {
16907   as_status=$1; test $as_status -eq 0 && as_status=1
16908   if test "$4"; then
16909     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16910     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16911   fi
16912   $as_echo "$as_me: error: $2" >&2
16913   as_fn_exit $as_status
16914 } # as_fn_error
16915
16916
16917 # as_fn_set_status STATUS
16918 # -----------------------
16919 # Set $? to STATUS, without forking.
16920 as_fn_set_status ()
16921 {
16922   return $1
16923 } # as_fn_set_status
16924
16925 # as_fn_exit STATUS
16926 # -----------------
16927 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16928 as_fn_exit ()
16929 {
16930   set +e
16931   as_fn_set_status $1
16932   exit $1
16933 } # as_fn_exit
16934
16935 # as_fn_unset VAR
16936 # ---------------
16937 # Portably unset VAR.
16938 as_fn_unset ()
16939 {
16940   { eval $1=; unset $1;}
16941 }
16942 as_unset=as_fn_unset
16943 # as_fn_append VAR VALUE
16944 # ----------------------
16945 # Append the text in VALUE to the end of the definition contained in VAR. Take
16946 # advantage of any shell optimizations that allow amortized linear growth over
16947 # repeated appends, instead of the typical quadratic growth present in naive
16948 # implementations.
16949 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16950   eval 'as_fn_append ()
16951   {
16952     eval $1+=\$2
16953   }'
16954 else
16955   as_fn_append ()
16956   {
16957     eval $1=\$$1\$2
16958   }
16959 fi # as_fn_append
16960
16961 # as_fn_arith ARG...
16962 # ------------------
16963 # Perform arithmetic evaluation on the ARGs, and store the result in the
16964 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16965 # must be portable across $(()) and expr.
16966 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16967   eval 'as_fn_arith ()
16968   {
16969     as_val=$(( $* ))
16970   }'
16971 else
16972   as_fn_arith ()
16973   {
16974     as_val=`expr "$@" || test $? -eq 1`
16975   }
16976 fi # as_fn_arith
16977
16978
16979 if expr a : '\(a\)' >/dev/null 2>&1 &&
16980    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16981   as_expr=expr
16982 else
16983   as_expr=false
16984 fi
16985
16986 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16987   as_basename=basename
16988 else
16989   as_basename=false
16990 fi
16991
16992 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16993   as_dirname=dirname
16994 else
16995   as_dirname=false
16996 fi
16997
16998 as_me=`$as_basename -- "$0" ||
16999 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17000          X"$0" : 'X\(//\)$' \| \
17001          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17002 $as_echo X/"$0" |
17003     sed '/^.*\/\([^/][^/]*\)\/*$/{
17004             s//\1/
17005             q
17006           }
17007           /^X\/\(\/\/\)$/{
17008             s//\1/
17009             q
17010           }
17011           /^X\/\(\/\).*/{
17012             s//\1/
17013             q
17014           }
17015           s/.*/./; q'`
17016
17017 # Avoid depending upon Character Ranges.
17018 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17019 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17020 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17021 as_cr_digits='0123456789'
17022 as_cr_alnum=$as_cr_Letters$as_cr_digits
17023
17024 ECHO_C= ECHO_N= ECHO_T=
17025 case `echo -n x` in #(((((
17026 -n*)
17027   case `echo 'xy\c'` in
17028   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17029   xy)  ECHO_C='\c';;
17030   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17031        ECHO_T=' ';;
17032   esac;;
17033 *)
17034   ECHO_N='-n';;
17035 esac
17036
17037 rm -f conf$$ conf$$.exe conf$$.file
17038 if test -d conf$$.dir; then
17039   rm -f conf$$.dir/conf$$.file
17040 else
17041   rm -f conf$$.dir
17042   mkdir conf$$.dir 2>/dev/null
17043 fi
17044 if (echo >conf$$.file) 2>/dev/null; then
17045   if ln -s conf$$.file conf$$ 2>/dev/null; then
17046     as_ln_s='ln -s'
17047     # ... but there are two gotchas:
17048     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17049     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17050     # In both cases, we have to default to `cp -pR'.
17051     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17052       as_ln_s='cp -pR'
17053   elif ln conf$$.file conf$$ 2>/dev/null; then
17054     as_ln_s=ln
17055   else
17056     as_ln_s='cp -pR'
17057   fi
17058 else
17059   as_ln_s='cp -pR'
17060 fi
17061 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17062 rmdir conf$$.dir 2>/dev/null
17063
17064
17065 # as_fn_mkdir_p
17066 # -------------
17067 # Create "$as_dir" as a directory, including parents if necessary.
17068 as_fn_mkdir_p ()
17069 {
17070
17071   case $as_dir in #(
17072   -*) as_dir=./$as_dir;;
17073   esac
17074   test -d "$as_dir" || eval $as_mkdir_p || {
17075     as_dirs=
17076     while :; do
17077       case $as_dir in #(
17078       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17079       *) as_qdir=$as_dir;;
17080       esac
17081       as_dirs="'$as_qdir' $as_dirs"
17082       as_dir=`$as_dirname -- "$as_dir" ||
17083 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17084          X"$as_dir" : 'X\(//\)[^/]' \| \
17085          X"$as_dir" : 'X\(//\)$' \| \
17086          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17087 $as_echo X"$as_dir" |
17088     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17089             s//\1/
17090             q
17091           }
17092           /^X\(\/\/\)[^/].*/{
17093             s//\1/
17094             q
17095           }
17096           /^X\(\/\/\)$/{
17097             s//\1/
17098             q
17099           }
17100           /^X\(\/\).*/{
17101             s//\1/
17102             q
17103           }
17104           s/.*/./; q'`
17105       test -d "$as_dir" && break
17106     done
17107     test -z "$as_dirs" || eval "mkdir $as_dirs"
17108   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17109
17110
17111 } # as_fn_mkdir_p
17112 if mkdir -p . 2>/dev/null; then
17113   as_mkdir_p='mkdir -p "$as_dir"'
17114 else
17115   test -d ./-p && rmdir ./-p
17116   as_mkdir_p=false
17117 fi
17118
17119
17120 # as_fn_executable_p FILE
17121 # -----------------------
17122 # Test if FILE is an executable regular file.
17123 as_fn_executable_p ()
17124 {
17125   test -f "$1" && test -x "$1"
17126 } # as_fn_executable_p
17127 as_test_x='test -x'
17128 as_executable_p=as_fn_executable_p
17129
17130 # Sed expression to map a string onto a valid CPP name.
17131 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17132
17133 # Sed expression to map a string onto a valid variable name.
17134 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17135
17136
17137 exec 6>&1
17138 ## ----------------------------------- ##
17139 ## Main body of $CONFIG_STATUS script. ##
17140 ## ----------------------------------- ##
17141 _ASEOF
17142 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17143
17144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17145 # Save the log message, to keep $0 and so on meaningful, and to
17146 # report actual input values of CONFIG_FILES etc. instead of their
17147 # values after options handling.
17148 ac_log="
17149 This file was extended by ecryptfs-utils $as_me 104, which was
17150 generated by GNU Autoconf 2.69.  Invocation command line was
17151
17152   CONFIG_FILES    = $CONFIG_FILES
17153   CONFIG_HEADERS  = $CONFIG_HEADERS
17154   CONFIG_LINKS    = $CONFIG_LINKS
17155   CONFIG_COMMANDS = $CONFIG_COMMANDS
17156   $ $0 $@
17157
17158 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17159 "
17160
17161 _ACEOF
17162
17163 case $ac_config_files in *"
17164 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17165 esac
17166
17167 case $ac_config_headers in *"
17168 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17169 esac
17170
17171
17172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17173 # Files that config.status was made for.
17174 config_files="$ac_config_files"
17175 config_headers="$ac_config_headers"
17176 config_commands="$ac_config_commands"
17177
17178 _ACEOF
17179
17180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17181 ac_cs_usage="\
17182 \`$as_me' instantiates files and other configuration actions
17183 from templates according to the current configuration.  Unless the files
17184 and actions are specified as TAGs, all are instantiated by default.
17185
17186 Usage: $0 [OPTION]... [TAG]...
17187
17188   -h, --help       print this help, then exit
17189   -V, --version    print version number and configuration settings, then exit
17190       --config     print configuration, then exit
17191   -q, --quiet, --silent
17192                    do not print progress messages
17193   -d, --debug      don't remove temporary files
17194       --recheck    update $as_me by reconfiguring in the same conditions
17195       --file=FILE[:TEMPLATE]
17196                    instantiate the configuration file FILE
17197       --header=FILE[:TEMPLATE]
17198                    instantiate the configuration header FILE
17199
17200 Configuration files:
17201 $config_files
17202
17203 Configuration headers:
17204 $config_headers
17205
17206 Configuration commands:
17207 $config_commands
17208
17209 Report bugs to the package provider."
17210
17211 _ACEOF
17212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17213 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17214 ac_cs_version="\\
17215 ecryptfs-utils config.status 104
17216 configured by $0, generated by GNU Autoconf 2.69,
17217   with options \\"\$ac_cs_config\\"
17218
17219 Copyright (C) 2012 Free Software Foundation, Inc.
17220 This config.status script is free software; the Free Software Foundation
17221 gives unlimited permission to copy, distribute and modify it."
17222
17223 ac_pwd='$ac_pwd'
17224 srcdir='$srcdir'
17225 INSTALL='$INSTALL'
17226 MKDIR_P='$MKDIR_P'
17227 AWK='$AWK'
17228 test -n "\$AWK" || AWK=awk
17229 _ACEOF
17230
17231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17232 # The default lists apply if the user does not specify any file.
17233 ac_need_defaults=:
17234 while test $# != 0
17235 do
17236   case $1 in
17237   --*=?*)
17238     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17239     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17240     ac_shift=:
17241     ;;
17242   --*=)
17243     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17244     ac_optarg=
17245     ac_shift=:
17246     ;;
17247   *)
17248     ac_option=$1
17249     ac_optarg=$2
17250     ac_shift=shift
17251     ;;
17252   esac
17253
17254   case $ac_option in
17255   # Handling of the options.
17256   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17257     ac_cs_recheck=: ;;
17258   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17259     $as_echo "$ac_cs_version"; exit ;;
17260   --config | --confi | --conf | --con | --co | --c )
17261     $as_echo "$ac_cs_config"; exit ;;
17262   --debug | --debu | --deb | --de | --d | -d )
17263     debug=: ;;
17264   --file | --fil | --fi | --f )
17265     $ac_shift
17266     case $ac_optarg in
17267     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17268     '') as_fn_error $? "missing file argument" ;;
17269     esac
17270     as_fn_append CONFIG_FILES " '$ac_optarg'"
17271     ac_need_defaults=false;;
17272   --header | --heade | --head | --hea )
17273     $ac_shift
17274     case $ac_optarg in
17275     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17276     esac
17277     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17278     ac_need_defaults=false;;
17279   --he | --h)
17280     # Conflict between --help and --header
17281     as_fn_error $? "ambiguous option: \`$1'
17282 Try \`$0 --help' for more information.";;
17283   --help | --hel | -h )
17284     $as_echo "$ac_cs_usage"; exit ;;
17285   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17286   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17287     ac_cs_silent=: ;;
17288
17289   # This is an error.
17290   -*) as_fn_error $? "unrecognized option: \`$1'
17291 Try \`$0 --help' for more information." ;;
17292
17293   *) as_fn_append ac_config_targets " $1"
17294      ac_need_defaults=false ;;
17295
17296   esac
17297   shift
17298 done
17299
17300 ac_configure_extra_args=
17301
17302 if $ac_cs_silent; then
17303   exec 6>/dev/null
17304   ac_configure_extra_args="$ac_configure_extra_args --silent"
17305 fi
17306
17307 _ACEOF
17308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17309 if \$ac_cs_recheck; then
17310   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17311   shift
17312   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17313   CONFIG_SHELL='$SHELL'
17314   export CONFIG_SHELL
17315   exec "\$@"
17316 fi
17317
17318 _ACEOF
17319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17320 exec 5>>config.log
17321 {
17322   echo
17323   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17324 ## Running $as_me. ##
17325 _ASBOX
17326   $as_echo "$ac_log"
17327 } >&5
17328
17329 _ACEOF
17330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17331 #
17332 # INIT-COMMANDS
17333 #
17334 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17335
17336
17337 # The HP-UX ksh and POSIX shell print the target directory to stdout
17338 # if CDPATH is set.
17339 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17340
17341 sed_quote_subst='$sed_quote_subst'
17342 double_quote_subst='$double_quote_subst'
17343 delay_variable_subst='$delay_variable_subst'
17344 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17345 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17346 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17347 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17348 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17349 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17350 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17351 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17352 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17353 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17354 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17355 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17356 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17357 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17358 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17359 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17360 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17361 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17362 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17363 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17364 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17365 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17366 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17367 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17368 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17369 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17370 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17371 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17372 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17373 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17374 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17375 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17376 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17377 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17378 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17379 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17380 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17381 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17382 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17383 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17384 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17385 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17386 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17387 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17388 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17389 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17390 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17391 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17392 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17393 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17394 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17395 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17396 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17397 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17398 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17399 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17400 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"`'
17401 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17402 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17403 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17404 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17405 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17406 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17407 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17408 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17409 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17410 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17411 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17412 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17413 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17414 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17415 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17416 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17417 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17418 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17419 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17420 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17421 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17422 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17423 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17424 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17425 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17426 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17427 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17428 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17429 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17430 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17431 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17432 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17433 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17434 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17435 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17436 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17437 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17438 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17439 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17440 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17441 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17442 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17443 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17444 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17445 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17446 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17447 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17448 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17449 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17450 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17451 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17452 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17453 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17454 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17455 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17456 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17457 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17458 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17459 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17460 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17461 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17462 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17463 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17464 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17465 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17466 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17467 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17468 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17469 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17470 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17471 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17472 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17473 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17474
17475 LTCC='$LTCC'
17476 LTCFLAGS='$LTCFLAGS'
17477 compiler='$compiler_DEFAULT'
17478
17479 # A function that is used when there is no print builtin or printf.
17480 func_fallback_echo ()
17481 {
17482   eval 'cat <<_LTECHO_EOF
17483 \$1
17484 _LTECHO_EOF'
17485 }
17486
17487 # Quote evaled strings.
17488 for var in SHELL \
17489 ECHO \
17490 PATH_SEPARATOR \
17491 SED \
17492 GREP \
17493 EGREP \
17494 FGREP \
17495 LD \
17496 NM \
17497 LN_S \
17498 lt_SP2NL \
17499 lt_NL2SP \
17500 reload_flag \
17501 OBJDUMP \
17502 deplibs_check_method \
17503 file_magic_cmd \
17504 file_magic_glob \
17505 want_nocaseglob \
17506 DLLTOOL \
17507 sharedlib_from_linklib_cmd \
17508 AR \
17509 AR_FLAGS \
17510 archiver_list_spec \
17511 STRIP \
17512 RANLIB \
17513 CC \
17514 CFLAGS \
17515 compiler \
17516 lt_cv_sys_global_symbol_pipe \
17517 lt_cv_sys_global_symbol_to_cdecl \
17518 lt_cv_sys_global_symbol_to_c_name_address \
17519 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17520 nm_file_list_spec \
17521 lt_prog_compiler_no_builtin_flag \
17522 lt_prog_compiler_pic \
17523 lt_prog_compiler_wl \
17524 lt_prog_compiler_static \
17525 lt_cv_prog_compiler_c_o \
17526 need_locks \
17527 MANIFEST_TOOL \
17528 DSYMUTIL \
17529 NMEDIT \
17530 LIPO \
17531 OTOOL \
17532 OTOOL64 \
17533 shrext_cmds \
17534 export_dynamic_flag_spec \
17535 whole_archive_flag_spec \
17536 compiler_needs_object \
17537 with_gnu_ld \
17538 allow_undefined_flag \
17539 no_undefined_flag \
17540 hardcode_libdir_flag_spec \
17541 hardcode_libdir_separator \
17542 exclude_expsyms \
17543 include_expsyms \
17544 file_list_spec \
17545 variables_saved_for_relink \
17546 libname_spec \
17547 library_names_spec \
17548 soname_spec \
17549 install_override_mode \
17550 finish_eval \
17551 old_striplib \
17552 striplib; do
17553     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17554     *[\\\\\\\`\\"\\\$]*)
17555       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17556       ;;
17557     *)
17558       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17559       ;;
17560     esac
17561 done
17562
17563 # Double-quote double-evaled strings.
17564 for var in reload_cmds \
17565 old_postinstall_cmds \
17566 old_postuninstall_cmds \
17567 old_archive_cmds \
17568 extract_expsyms_cmds \
17569 old_archive_from_new_cmds \
17570 old_archive_from_expsyms_cmds \
17571 archive_cmds \
17572 archive_expsym_cmds \
17573 module_cmds \
17574 module_expsym_cmds \
17575 export_symbols_cmds \
17576 prelink_cmds \
17577 postlink_cmds \
17578 postinstall_cmds \
17579 postuninstall_cmds \
17580 finish_cmds \
17581 sys_lib_search_path_spec \
17582 sys_lib_dlsearch_path_spec; do
17583     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17584     *[\\\\\\\`\\"\\\$]*)
17585       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17586       ;;
17587     *)
17588       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17589       ;;
17590     esac
17591 done
17592
17593 ac_aux_dir='$ac_aux_dir'
17594 xsi_shell='$xsi_shell'
17595 lt_shell_append='$lt_shell_append'
17596
17597 # See if we are running on zsh, and set the options which allow our
17598 # commands through without removal of \ escapes INIT.
17599 if test -n "\${ZSH_VERSION+set}" ; then
17600    setopt NO_GLOB_SUBST
17601 fi
17602
17603
17604     PACKAGE='$PACKAGE'
17605     VERSION='$VERSION'
17606     TIMESTAMP='$TIMESTAMP'
17607     RM='$RM'
17608     ofile='$ofile'
17609
17610
17611
17612
17613
17614 _ACEOF
17615
17616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17617
17618 # Handling of arguments.
17619 for ac_config_target in $ac_config_targets
17620 do
17621   case $ac_config_target in
17622     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17623     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17624     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17625     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17626     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17627     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17628     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17629     "src/libecryptfs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libecryptfs/Makefile" ;;
17630     "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
17631     "src/key_mod/Makefile") CONFIG_FILES="$CONFIG_FILES src/key_mod/Makefile" ;;
17632     "src/daemon/Makefile") CONFIG_FILES="$CONFIG_FILES src/daemon/Makefile" ;;
17633     "src/desktop/Makefile") CONFIG_FILES="$CONFIG_FILES src/desktop/Makefile" ;;
17634     "src/desktop/ecryptfs-mount-private.desktop") CONFIG_FILES="$CONFIG_FILES src/desktop/ecryptfs-mount-private.desktop" ;;
17635     "src/desktop/ecryptfs-setup-private.desktop") CONFIG_FILES="$CONFIG_FILES src/desktop/ecryptfs-setup-private.desktop" ;;
17636     "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
17637     "doc/manpage/Makefile") CONFIG_FILES="$CONFIG_FILES doc/manpage/Makefile" ;;
17638     "src/pam_ecryptfs/Makefile") CONFIG_FILES="$CONFIG_FILES src/pam_ecryptfs/Makefile" ;;
17639     "src/libecryptfs/libecryptfs.pc") CONFIG_FILES="$CONFIG_FILES src/libecryptfs/libecryptfs.pc" ;;
17640     "src/libecryptfs-swig/Makefile") CONFIG_FILES="$CONFIG_FILES src/libecryptfs-swig/Makefile" ;;
17641     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17642     "tests/lib/Makefile") CONFIG_FILES="$CONFIG_FILES tests/lib/Makefile" ;;
17643     "tests/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES tests/kernel/Makefile" ;;
17644     "tests/userspace/Makefile") CONFIG_FILES="$CONFIG_FILES tests/userspace/Makefile" ;;
17645     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17646     "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
17647
17648   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17649   esac
17650 done
17651
17652
17653 # If the user did not use the arguments to specify the items to instantiate,
17654 # then the envvar interface is used.  Set only those that are not.
17655 # We use the long form for the default assignment because of an extremely
17656 # bizarre bug on SunOS 4.1.3.
17657 if $ac_need_defaults; then
17658   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17659   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17660   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17661 fi
17662
17663 # Have a temporary directory for convenience.  Make it in the build tree
17664 # simply because there is no reason against having it here, and in addition,
17665 # creating and moving files from /tmp can sometimes cause problems.
17666 # Hook for its removal unless debugging.
17667 # Note that there is a small window in which the directory will not be cleaned:
17668 # after its creation but before its name has been assigned to `$tmp'.
17669 $debug ||
17670 {
17671   tmp= ac_tmp=
17672   trap 'exit_status=$?
17673   : "${ac_tmp:=$tmp}"
17674   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17675 ' 0
17676   trap 'as_fn_exit 1' 1 2 13 15
17677 }
17678 # Create a (secure) tmp directory for tmp files.
17679
17680 {
17681   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17682   test -d "$tmp"
17683 }  ||
17684 {
17685   tmp=./conf$$-$RANDOM
17686   (umask 077 && mkdir "$tmp")
17687 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17688 ac_tmp=$tmp
17689
17690 # Set up the scripts for CONFIG_FILES section.
17691 # No need to generate them if there are no CONFIG_FILES.
17692 # This happens for instance with `./config.status config.h'.
17693 if test -n "$CONFIG_FILES"; then
17694
17695
17696 ac_cr=`echo X | tr X '\015'`
17697 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17698 # But we know of no other shell where ac_cr would be empty at this
17699 # point, so we can use a bashism as a fallback.
17700 if test "x$ac_cr" = x; then
17701   eval ac_cr=\$\'\\r\'
17702 fi
17703 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17704 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17705   ac_cs_awk_cr='\\r'
17706 else
17707   ac_cs_awk_cr=$ac_cr
17708 fi
17709
17710 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17711 _ACEOF
17712
17713
17714 {
17715   echo "cat >conf$$subs.awk <<_ACEOF" &&
17716   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17717   echo "_ACEOF"
17718 } >conf$$subs.sh ||
17719   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17720 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17721 ac_delim='%!_!# '
17722 for ac_last_try in false false false false false :; do
17723   . ./conf$$subs.sh ||
17724     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17725
17726   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17727   if test $ac_delim_n = $ac_delim_num; then
17728     break
17729   elif $ac_last_try; then
17730     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17731   else
17732     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17733   fi
17734 done
17735 rm -f conf$$subs.sh
17736
17737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17738 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17739 _ACEOF
17740 sed -n '
17741 h
17742 s/^/S["/; s/!.*/"]=/
17743 p
17744 g
17745 s/^[^!]*!//
17746 :repl
17747 t repl
17748 s/'"$ac_delim"'$//
17749 t delim
17750 :nl
17751 h
17752 s/\(.\{148\}\)..*/\1/
17753 t more1
17754 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17755 p
17756 n
17757 b repl
17758 :more1
17759 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17760 p
17761 g
17762 s/.\{148\}//
17763 t nl
17764 :delim
17765 h
17766 s/\(.\{148\}\)..*/\1/
17767 t more2
17768 s/["\\]/\\&/g; s/^/"/; s/$/"/
17769 p
17770 b
17771 :more2
17772 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17773 p
17774 g
17775 s/.\{148\}//
17776 t delim
17777 ' <conf$$subs.awk | sed '
17778 /^[^""]/{
17779   N
17780   s/\n//
17781 }
17782 ' >>$CONFIG_STATUS || ac_write_fail=1
17783 rm -f conf$$subs.awk
17784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17785 _ACAWK
17786 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17787   for (key in S) S_is_set[key] = 1
17788   FS = "\a"
17789
17790 }
17791 {
17792   line = $ 0
17793   nfields = split(line, field, "@")
17794   substed = 0
17795   len = length(field[1])
17796   for (i = 2; i < nfields; i++) {
17797     key = field[i]
17798     keylen = length(key)
17799     if (S_is_set[key]) {
17800       value = S[key]
17801       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17802       len += length(value) + length(field[++i])
17803       substed = 1
17804     } else
17805       len += 1 + keylen
17806   }
17807
17808   print line
17809 }
17810
17811 _ACAWK
17812 _ACEOF
17813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17814 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17815   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17816 else
17817   cat
17818 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17819   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17820 _ACEOF
17821
17822 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17823 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17824 # trailing colons and then remove the whole line if VPATH becomes empty
17825 # (actually we leave an empty line to preserve line numbers).
17826 if test "x$srcdir" = x.; then
17827   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17828 h
17829 s///
17830 s/^/:/
17831 s/[      ]*$/:/
17832 s/:\$(srcdir):/:/g
17833 s/:\${srcdir}:/:/g
17834 s/:@srcdir@:/:/g
17835 s/^:*//
17836 s/:*$//
17837 x
17838 s/\(=[   ]*\).*/\1/
17839 G
17840 s/\n//
17841 s/^[^=]*=[       ]*$//
17842 }'
17843 fi
17844
17845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17846 fi # test -n "$CONFIG_FILES"
17847
17848 # Set up the scripts for CONFIG_HEADERS section.
17849 # No need to generate them if there are no CONFIG_HEADERS.
17850 # This happens for instance with `./config.status Makefile'.
17851 if test -n "$CONFIG_HEADERS"; then
17852 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17853 BEGIN {
17854 _ACEOF
17855
17856 # Transform confdefs.h into an awk script `defines.awk', embedded as
17857 # here-document in config.status, that substitutes the proper values into
17858 # config.h.in to produce config.h.
17859
17860 # Create a delimiter string that does not exist in confdefs.h, to ease
17861 # handling of long lines.
17862 ac_delim='%!_!# '
17863 for ac_last_try in false false :; do
17864   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17865   if test -z "$ac_tt"; then
17866     break
17867   elif $ac_last_try; then
17868     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17869   else
17870     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17871   fi
17872 done
17873
17874 # For the awk script, D is an array of macro values keyed by name,
17875 # likewise P contains macro parameters if any.  Preserve backslash
17876 # newline sequences.
17877
17878 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17879 sed -n '
17880 s/.\{148\}/&'"$ac_delim"'/g
17881 t rset
17882 :rset
17883 s/^[     ]*#[    ]*define[       ][      ]*/ /
17884 t def
17885 d
17886 :def
17887 s/\\$//
17888 t bsnl
17889 s/["\\]/\\&/g
17890 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17891 D["\1"]=" \3"/p
17892 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17893 d
17894 :bsnl
17895 s/["\\]/\\&/g
17896 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17897 D["\1"]=" \3\\\\\\n"\\/p
17898 t cont
17899 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17900 t cont
17901 d
17902 :cont
17903 n
17904 s/.\{148\}/&'"$ac_delim"'/g
17905 t clear
17906 :clear
17907 s/\\$//
17908 t bsnlc
17909 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17910 d
17911 :bsnlc
17912 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17913 b cont
17914 ' <confdefs.h | sed '
17915 s/'"$ac_delim"'/"\\\
17916 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17917
17918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17919   for (key in D) D_is_set[key] = 1
17920   FS = "\a"
17921 }
17922 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17923   line = \$ 0
17924   split(line, arg, " ")
17925   if (arg[1] == "#") {
17926     defundef = arg[2]
17927     mac1 = arg[3]
17928   } else {
17929     defundef = substr(arg[1], 2)
17930     mac1 = arg[2]
17931   }
17932   split(mac1, mac2, "(") #)
17933   macro = mac2[1]
17934   prefix = substr(line, 1, index(line, defundef) - 1)
17935   if (D_is_set[macro]) {
17936     # Preserve the white space surrounding the "#".
17937     print prefix "define", macro P[macro] D[macro]
17938     next
17939   } else {
17940     # Replace #undef with comments.  This is necessary, for example,
17941     # in the case of _POSIX_SOURCE, which is predefined and required
17942     # on some systems where configure will not decide to define it.
17943     if (defundef == "undef") {
17944       print "/*", prefix defundef, macro, "*/"
17945       next
17946     }
17947   }
17948 }
17949 { print }
17950 _ACAWK
17951 _ACEOF
17952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17953   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17954 fi # test -n "$CONFIG_HEADERS"
17955
17956
17957 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17958 shift
17959 for ac_tag
17960 do
17961   case $ac_tag in
17962   :[FHLC]) ac_mode=$ac_tag; continue;;
17963   esac
17964   case $ac_mode$ac_tag in
17965   :[FHL]*:*);;
17966   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17967   :[FH]-) ac_tag=-:-;;
17968   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17969   esac
17970   ac_save_IFS=$IFS
17971   IFS=:
17972   set x $ac_tag
17973   IFS=$ac_save_IFS
17974   shift
17975   ac_file=$1
17976   shift
17977
17978   case $ac_mode in
17979   :L) ac_source=$1;;
17980   :[FH])
17981     ac_file_inputs=
17982     for ac_f
17983     do
17984       case $ac_f in
17985       -) ac_f="$ac_tmp/stdin";;
17986       *) # Look for the file first in the build tree, then in the source tree
17987          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17988          # because $ac_f cannot contain `:'.
17989          test -f "$ac_f" ||
17990            case $ac_f in
17991            [\\/$]*) false;;
17992            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17993            esac ||
17994            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17995       esac
17996       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17997       as_fn_append ac_file_inputs " '$ac_f'"
17998     done
17999
18000     # Let's still pretend it is `configure' which instantiates (i.e., don't
18001     # use $as_me), people would be surprised to read:
18002     #    /* config.h.  Generated by config.status.  */
18003     configure_input='Generated from '`
18004           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18005         `' by configure.'
18006     if test x"$ac_file" != x-; then
18007       configure_input="$ac_file.  $configure_input"
18008       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18009 $as_echo "$as_me: creating $ac_file" >&6;}
18010     fi
18011     # Neutralize special characters interpreted by sed in replacement strings.
18012     case $configure_input in #(
18013     *\&* | *\|* | *\\* )
18014        ac_sed_conf_input=`$as_echo "$configure_input" |
18015        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18016     *) ac_sed_conf_input=$configure_input;;
18017     esac
18018
18019     case $ac_tag in
18020     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18021       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18022     esac
18023     ;;
18024   esac
18025
18026   ac_dir=`$as_dirname -- "$ac_file" ||
18027 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18028          X"$ac_file" : 'X\(//\)[^/]' \| \
18029          X"$ac_file" : 'X\(//\)$' \| \
18030          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18031 $as_echo X"$ac_file" |
18032     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18033             s//\1/
18034             q
18035           }
18036           /^X\(\/\/\)[^/].*/{
18037             s//\1/
18038             q
18039           }
18040           /^X\(\/\/\)$/{
18041             s//\1/
18042             q
18043           }
18044           /^X\(\/\).*/{
18045             s//\1/
18046             q
18047           }
18048           s/.*/./; q'`
18049   as_dir="$ac_dir"; as_fn_mkdir_p
18050   ac_builddir=.
18051
18052 case "$ac_dir" in
18053 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18054 *)
18055   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18056   # A ".." for each directory in $ac_dir_suffix.
18057   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18058   case $ac_top_builddir_sub in
18059   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18060   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18061   esac ;;
18062 esac
18063 ac_abs_top_builddir=$ac_pwd
18064 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18065 # for backward compatibility:
18066 ac_top_builddir=$ac_top_build_prefix
18067
18068 case $srcdir in
18069   .)  # We are building in place.
18070     ac_srcdir=.
18071     ac_top_srcdir=$ac_top_builddir_sub
18072     ac_abs_top_srcdir=$ac_pwd ;;
18073   [\\/]* | ?:[\\/]* )  # Absolute name.
18074     ac_srcdir=$srcdir$ac_dir_suffix;
18075     ac_top_srcdir=$srcdir
18076     ac_abs_top_srcdir=$srcdir ;;
18077   *) # Relative name.
18078     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18079     ac_top_srcdir=$ac_top_build_prefix$srcdir
18080     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18081 esac
18082 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18083
18084
18085   case $ac_mode in
18086   :F)
18087   #
18088   # CONFIG_FILE
18089   #
18090
18091   case $INSTALL in
18092   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18093   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18094   esac
18095   ac_MKDIR_P=$MKDIR_P
18096   case $MKDIR_P in
18097   [\\/$]* | ?:[\\/]* ) ;;
18098   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18099   esac
18100 _ACEOF
18101
18102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18103 # If the template does not know about datarootdir, expand it.
18104 # FIXME: This hack should be removed a few years after 2.60.
18105 ac_datarootdir_hack=; ac_datarootdir_seen=
18106 ac_sed_dataroot='
18107 /datarootdir/ {
18108   p
18109   q
18110 }
18111 /@datadir@/p
18112 /@docdir@/p
18113 /@infodir@/p
18114 /@localedir@/p
18115 /@mandir@/p'
18116 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18117 *datarootdir*) ac_datarootdir_seen=yes;;
18118 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18119   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18120 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18121 _ACEOF
18122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18123   ac_datarootdir_hack='
18124   s&@datadir@&$datadir&g
18125   s&@docdir@&$docdir&g
18126   s&@infodir@&$infodir&g
18127   s&@localedir@&$localedir&g
18128   s&@mandir@&$mandir&g
18129   s&\\\${datarootdir}&$datarootdir&g' ;;
18130 esac
18131 _ACEOF
18132
18133 # Neutralize VPATH when `$srcdir' = `.'.
18134 # Shell code in configure.ac might set extrasub.
18135 # FIXME: do we really want to maintain this feature?
18136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18137 ac_sed_extra="$ac_vpsub
18138 $extrasub
18139 _ACEOF
18140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18141 :t
18142 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18143 s|@configure_input@|$ac_sed_conf_input|;t t
18144 s&@top_builddir@&$ac_top_builddir_sub&;t t
18145 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18146 s&@srcdir@&$ac_srcdir&;t t
18147 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18148 s&@top_srcdir@&$ac_top_srcdir&;t t
18149 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18150 s&@builddir@&$ac_builddir&;t t
18151 s&@abs_builddir@&$ac_abs_builddir&;t t
18152 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18153 s&@INSTALL@&$ac_INSTALL&;t t
18154 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18155 $ac_datarootdir_hack
18156 "
18157 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18158   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18159
18160 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18161   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18162   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18163       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18164   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18165 which seems to be undefined.  Please make sure it is defined" >&5
18166 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18167 which seems to be undefined.  Please make sure it is defined" >&2;}
18168
18169   rm -f "$ac_tmp/stdin"
18170   case $ac_file in
18171   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18172   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18173   esac \
18174   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18175  ;;
18176   :H)
18177   #
18178   # CONFIG_HEADER
18179   #
18180   if test x"$ac_file" != x-; then
18181     {
18182       $as_echo "/* $configure_input  */" \
18183       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18184     } >"$ac_tmp/config.h" \
18185       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18186     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18187       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18188 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18189     else
18190       rm -f "$ac_file"
18191       mv "$ac_tmp/config.h" "$ac_file" \
18192         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18193     fi
18194   else
18195     $as_echo "/* $configure_input  */" \
18196       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18197       || as_fn_error $? "could not create -" "$LINENO" 5
18198   fi
18199 # Compute "$ac_file"'s index in $config_headers.
18200 _am_arg="$ac_file"
18201 _am_stamp_count=1
18202 for _am_header in $config_headers :; do
18203   case $_am_header in
18204     $_am_arg | $_am_arg:* )
18205       break ;;
18206     * )
18207       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18208   esac
18209 done
18210 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18211 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18212          X"$_am_arg" : 'X\(//\)[^/]' \| \
18213          X"$_am_arg" : 'X\(//\)$' \| \
18214          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18215 $as_echo X"$_am_arg" |
18216     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18217             s//\1/
18218             q
18219           }
18220           /^X\(\/\/\)[^/].*/{
18221             s//\1/
18222             q
18223           }
18224           /^X\(\/\/\)$/{
18225             s//\1/
18226             q
18227           }
18228           /^X\(\/\).*/{
18229             s//\1/
18230             q
18231           }
18232           s/.*/./; q'`/stamp-h$_am_stamp_count
18233  ;;
18234
18235   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18236 $as_echo "$as_me: executing $ac_file commands" >&6;}
18237  ;;
18238   esac
18239
18240
18241   case $ac_file$ac_mode in
18242     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18243   # Older Autoconf quotes --file arguments for eval, but not when files
18244   # are listed without --file.  Let's play safe and only enable the eval
18245   # if we detect the quoting.
18246   case $CONFIG_FILES in
18247   *\'*) eval set x "$CONFIG_FILES" ;;
18248   *)   set x $CONFIG_FILES ;;
18249   esac
18250   shift
18251   for mf
18252   do
18253     # Strip MF so we end up with the name of the file.
18254     mf=`echo "$mf" | sed -e 's/:.*$//'`
18255     # Check whether this is an Automake generated Makefile or not.
18256     # We used to match only the files named 'Makefile.in', but
18257     # some people rename them; so instead we look at the file content.
18258     # Grep'ing the first line is not enough: some people post-process
18259     # each Makefile.in and add a new line on top of each file to say so.
18260     # Grep'ing the whole file is not good either: AIX grep has a line
18261     # limit of 2048, but all sed's we know have understand at least 4000.
18262     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18263       dirpart=`$as_dirname -- "$mf" ||
18264 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18265          X"$mf" : 'X\(//\)[^/]' \| \
18266          X"$mf" : 'X\(//\)$' \| \
18267          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18268 $as_echo X"$mf" |
18269     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18270             s//\1/
18271             q
18272           }
18273           /^X\(\/\/\)[^/].*/{
18274             s//\1/
18275             q
18276           }
18277           /^X\(\/\/\)$/{
18278             s//\1/
18279             q
18280           }
18281           /^X\(\/\).*/{
18282             s//\1/
18283             q
18284           }
18285           s/.*/./; q'`
18286     else
18287       continue
18288     fi
18289     # Extract the definition of DEPDIR, am__include, and am__quote
18290     # from the Makefile without running 'make'.
18291     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18292     test -z "$DEPDIR" && continue
18293     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18294     test -z "$am__include" && continue
18295     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18296     # Find all dependency output files, they are included files with
18297     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18298     # simplest approach to changing $(DEPDIR) to its actual value in the
18299     # expansion.
18300     for file in `sed -n "
18301       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18302          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18303       # Make sure the directory exists.
18304       test -f "$dirpart/$file" && continue
18305       fdir=`$as_dirname -- "$file" ||
18306 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18307          X"$file" : 'X\(//\)[^/]' \| \
18308          X"$file" : 'X\(//\)$' \| \
18309          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18310 $as_echo X"$file" |
18311     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18312             s//\1/
18313             q
18314           }
18315           /^X\(\/\/\)[^/].*/{
18316             s//\1/
18317             q
18318           }
18319           /^X\(\/\/\)$/{
18320             s//\1/
18321             q
18322           }
18323           /^X\(\/\).*/{
18324             s//\1/
18325             q
18326           }
18327           s/.*/./; q'`
18328       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18329       # echo "creating $dirpart/$file"
18330       echo '# dummy' > "$dirpart/$file"
18331     done
18332   done
18333 }
18334  ;;
18335     "libtool":C)
18336
18337     # See if we are running on zsh, and set the options which allow our
18338     # commands through without removal of \ escapes.
18339     if test -n "${ZSH_VERSION+set}" ; then
18340       setopt NO_GLOB_SUBST
18341     fi
18342
18343     cfgfile="${ofile}T"
18344     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18345     $RM "$cfgfile"
18346
18347     cat <<_LT_EOF >> "$cfgfile"
18348 #! $SHELL
18349
18350 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18351 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18352 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18353 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18354 #
18355 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18356 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18357 #                 Foundation, Inc.
18358 #   Written by Gordon Matzigkeit, 1996
18359 #
18360 #   This file is part of GNU Libtool.
18361 #
18362 # GNU Libtool is free software; you can redistribute it and/or
18363 # modify it under the terms of the GNU General Public License as
18364 # published by the Free Software Foundation; either version 2 of
18365 # the License, or (at your option) any later version.
18366 #
18367 # As a special exception to the GNU General Public License,
18368 # if you distribute this file as part of a program or library that
18369 # is built using GNU Libtool, you may include this file under the
18370 # same distribution terms that you use for the rest of that program.
18371 #
18372 # GNU Libtool is distributed in the hope that it will be useful,
18373 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18374 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18375 # GNU General Public License for more details.
18376 #
18377 # You should have received a copy of the GNU General Public License
18378 # along with GNU Libtool; see the file COPYING.  If not, a copy
18379 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18380 # obtained by writing to the Free Software Foundation, Inc.,
18381 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18382
18383
18384 # The names of the tagged configurations supported by this script.
18385 available_tags=""
18386
18387 # ### BEGIN LIBTOOL CONFIG
18388
18389 # Whether or not to build static libraries.
18390 build_old_libs=$enable_static
18391
18392 # Which release of libtool.m4 was used?
18393 macro_version=$macro_version
18394 macro_revision=$macro_revision
18395
18396 # Whether or not to build shared libraries.
18397 build_libtool_libs=$enable_shared
18398
18399 # What type of objects to build.
18400 pic_mode=$pic_mode
18401
18402 # Whether or not to optimize for fast installation.
18403 fast_install=$enable_fast_install
18404
18405 # Shell to use when invoking shell scripts.
18406 SHELL=$lt_SHELL
18407
18408 # An echo program that protects backslashes.
18409 ECHO=$lt_ECHO
18410
18411 # The PATH separator for the build system.
18412 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18413
18414 # The host system.
18415 host_alias=$host_alias
18416 host=$host
18417 host_os=$host_os
18418
18419 # The build system.
18420 build_alias=$build_alias
18421 build=$build
18422 build_os=$build_os
18423
18424 # A sed program that does not truncate output.
18425 SED=$lt_SED
18426
18427 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18428 Xsed="\$SED -e 1s/^X//"
18429
18430 # A grep program that handles long lines.
18431 GREP=$lt_GREP
18432
18433 # An ERE matcher.
18434 EGREP=$lt_EGREP
18435
18436 # A literal string matcher.
18437 FGREP=$lt_FGREP
18438
18439 # A BSD- or MS-compatible name lister.
18440 NM=$lt_NM
18441
18442 # Whether we need soft or hard links.
18443 LN_S=$lt_LN_S
18444
18445 # What is the maximum length of a command?
18446 max_cmd_len=$max_cmd_len
18447
18448 # Object file suffix (normally "o").
18449 objext=$ac_objext
18450
18451 # Executable file suffix (normally "").
18452 exeext=$exeext
18453
18454 # whether the shell understands "unset".
18455 lt_unset=$lt_unset
18456
18457 # turn spaces into newlines.
18458 SP2NL=$lt_lt_SP2NL
18459
18460 # turn newlines into spaces.
18461 NL2SP=$lt_lt_NL2SP
18462
18463 # convert \$build file names to \$host format.
18464 to_host_file_cmd=$lt_cv_to_host_file_cmd
18465
18466 # convert \$build files to toolchain format.
18467 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18468
18469 # An object symbol dumper.
18470 OBJDUMP=$lt_OBJDUMP
18471
18472 # Method to check whether dependent libraries are shared objects.
18473 deplibs_check_method=$lt_deplibs_check_method
18474
18475 # Command to use when deplibs_check_method = "file_magic".
18476 file_magic_cmd=$lt_file_magic_cmd
18477
18478 # How to find potential files when deplibs_check_method = "file_magic".
18479 file_magic_glob=$lt_file_magic_glob
18480
18481 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18482 want_nocaseglob=$lt_want_nocaseglob
18483
18484 # DLL creation program.
18485 DLLTOOL=$lt_DLLTOOL
18486
18487 # Command to associate shared and link libraries.
18488 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18489
18490 # The archiver.
18491 AR=$lt_AR
18492
18493 # Flags to create an archive.
18494 AR_FLAGS=$lt_AR_FLAGS
18495
18496 # How to feed a file listing to the archiver.
18497 archiver_list_spec=$lt_archiver_list_spec
18498
18499 # A symbol stripping program.
18500 STRIP=$lt_STRIP
18501
18502 # Commands used to install an old-style archive.
18503 RANLIB=$lt_RANLIB
18504 old_postinstall_cmds=$lt_old_postinstall_cmds
18505 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18506
18507 # Whether to use a lock for old archive extraction.
18508 lock_old_archive_extraction=$lock_old_archive_extraction
18509
18510 # A C compiler.
18511 LTCC=$lt_CC
18512
18513 # LTCC compiler flags.
18514 LTCFLAGS=$lt_CFLAGS
18515
18516 # Take the output of nm and produce a listing of raw symbols and C names.
18517 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18518
18519 # Transform the output of nm in a proper C declaration.
18520 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18521
18522 # Transform the output of nm in a C name address pair.
18523 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18524
18525 # Transform the output of nm in a C name address pair when lib prefix is needed.
18526 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18527
18528 # Specify filename containing input files for \$NM.
18529 nm_file_list_spec=$lt_nm_file_list_spec
18530
18531 # The root where to search for dependent libraries,and in which our libraries should be installed.
18532 lt_sysroot=$lt_sysroot
18533
18534 # The name of the directory that contains temporary libtool files.
18535 objdir=$objdir
18536
18537 # Used to examine libraries when file_magic_cmd begins with "file".
18538 MAGIC_CMD=$MAGIC_CMD
18539
18540 # Must we lock files when doing compilation?
18541 need_locks=$lt_need_locks
18542
18543 # Manifest tool.
18544 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18545
18546 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18547 DSYMUTIL=$lt_DSYMUTIL
18548
18549 # Tool to change global to local symbols on Mac OS X.
18550 NMEDIT=$lt_NMEDIT
18551
18552 # Tool to manipulate fat objects and archives on Mac OS X.
18553 LIPO=$lt_LIPO
18554
18555 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18556 OTOOL=$lt_OTOOL
18557
18558 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18559 OTOOL64=$lt_OTOOL64
18560
18561 # Old archive suffix (normally "a").
18562 libext=$libext
18563
18564 # Shared library suffix (normally ".so").
18565 shrext_cmds=$lt_shrext_cmds
18566
18567 # The commands to extract the exported symbol list from a shared archive.
18568 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18569
18570 # Variables whose values should be saved in libtool wrapper scripts and
18571 # restored at link time.
18572 variables_saved_for_relink=$lt_variables_saved_for_relink
18573
18574 # Do we need the "lib" prefix for modules?
18575 need_lib_prefix=$need_lib_prefix
18576
18577 # Do we need a version for libraries?
18578 need_version=$need_version
18579
18580 # Library versioning type.
18581 version_type=$version_type
18582
18583 # Shared library runtime path variable.
18584 runpath_var=$runpath_var
18585
18586 # Shared library path variable.
18587 shlibpath_var=$shlibpath_var
18588
18589 # Is shlibpath searched before the hard-coded library search path?
18590 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18591
18592 # Format of library name prefix.
18593 libname_spec=$lt_libname_spec
18594
18595 # List of archive names.  First name is the real one, the rest are links.
18596 # The last name is the one that the linker finds with -lNAME
18597 library_names_spec=$lt_library_names_spec
18598
18599 # The coded name of the library, if different from the real name.
18600 soname_spec=$lt_soname_spec
18601
18602 # Permission mode override for installation of shared libraries.
18603 install_override_mode=$lt_install_override_mode
18604
18605 # Command to use after installation of a shared archive.
18606 postinstall_cmds=$lt_postinstall_cmds
18607
18608 # Command to use after uninstallation of a shared archive.
18609 postuninstall_cmds=$lt_postuninstall_cmds
18610
18611 # Commands used to finish a libtool library installation in a directory.
18612 finish_cmds=$lt_finish_cmds
18613
18614 # As "finish_cmds", except a single script fragment to be evaled but
18615 # not shown.
18616 finish_eval=$lt_finish_eval
18617
18618 # Whether we should hardcode library paths into libraries.
18619 hardcode_into_libs=$hardcode_into_libs
18620
18621 # Compile-time system search path for libraries.
18622 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18623
18624 # Run-time system search path for libraries.
18625 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18626
18627 # Whether dlopen is supported.
18628 dlopen_support=$enable_dlopen
18629
18630 # Whether dlopen of programs is supported.
18631 dlopen_self=$enable_dlopen_self
18632
18633 # Whether dlopen of statically linked programs is supported.
18634 dlopen_self_static=$enable_dlopen_self_static
18635
18636 # Commands to strip libraries.
18637 old_striplib=$lt_old_striplib
18638 striplib=$lt_striplib
18639
18640
18641 # The linker used to build libraries.
18642 LD=$lt_LD
18643
18644 # How to create reloadable object files.
18645 reload_flag=$lt_reload_flag
18646 reload_cmds=$lt_reload_cmds
18647
18648 # Commands used to build an old-style archive.
18649 old_archive_cmds=$lt_old_archive_cmds
18650
18651 # A language specific compiler.
18652 CC=$lt_compiler
18653
18654 # Is the compiler the GNU compiler?
18655 with_gcc=$GCC
18656
18657 # Compiler flag to turn off builtin functions.
18658 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18659
18660 # Additional compiler flags for building library objects.
18661 pic_flag=$lt_lt_prog_compiler_pic
18662
18663 # How to pass a linker flag through the compiler.
18664 wl=$lt_lt_prog_compiler_wl
18665
18666 # Compiler flag to prevent dynamic linking.
18667 link_static_flag=$lt_lt_prog_compiler_static
18668
18669 # Does compiler simultaneously support -c and -o options?
18670 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18671
18672 # Whether or not to add -lc for building shared libraries.
18673 build_libtool_need_lc=$archive_cmds_need_lc
18674
18675 # Whether or not to disallow shared libs when runtime libs are static.
18676 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18677
18678 # Compiler flag to allow reflexive dlopens.
18679 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18680
18681 # Compiler flag to generate shared objects directly from archives.
18682 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18683
18684 # Whether the compiler copes with passing no objects directly.
18685 compiler_needs_object=$lt_compiler_needs_object
18686
18687 # Create an old-style archive from a shared archive.
18688 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18689
18690 # Create a temporary old-style archive to link instead of a shared archive.
18691 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18692
18693 # Commands used to build a shared archive.
18694 archive_cmds=$lt_archive_cmds
18695 archive_expsym_cmds=$lt_archive_expsym_cmds
18696
18697 # Commands used to build a loadable module if different from building
18698 # a shared archive.
18699 module_cmds=$lt_module_cmds
18700 module_expsym_cmds=$lt_module_expsym_cmds
18701
18702 # Whether we are building with GNU ld or not.
18703 with_gnu_ld=$lt_with_gnu_ld
18704
18705 # Flag that allows shared libraries with undefined symbols to be built.
18706 allow_undefined_flag=$lt_allow_undefined_flag
18707
18708 # Flag that enforces no undefined symbols.
18709 no_undefined_flag=$lt_no_undefined_flag
18710
18711 # Flag to hardcode \$libdir into a binary during linking.
18712 # This must work even if \$libdir does not exist
18713 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18714
18715 # Whether we need a single "-rpath" flag with a separated argument.
18716 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18717
18718 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18719 # DIR into the resulting binary.
18720 hardcode_direct=$hardcode_direct
18721
18722 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18723 # DIR into the resulting binary and the resulting library dependency is
18724 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18725 # library is relocated.
18726 hardcode_direct_absolute=$hardcode_direct_absolute
18727
18728 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18729 # into the resulting binary.
18730 hardcode_minus_L=$hardcode_minus_L
18731
18732 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18733 # into the resulting binary.
18734 hardcode_shlibpath_var=$hardcode_shlibpath_var
18735
18736 # Set to "yes" if building a shared library automatically hardcodes DIR
18737 # into the library and all subsequent libraries and executables linked
18738 # against it.
18739 hardcode_automatic=$hardcode_automatic
18740
18741 # Set to yes if linker adds runtime paths of dependent libraries
18742 # to runtime path list.
18743 inherit_rpath=$inherit_rpath
18744
18745 # Whether libtool must link a program against all its dependency libraries.
18746 link_all_deplibs=$link_all_deplibs
18747
18748 # Set to "yes" if exported symbols are required.
18749 always_export_symbols=$always_export_symbols
18750
18751 # The commands to list exported symbols.
18752 export_symbols_cmds=$lt_export_symbols_cmds
18753
18754 # Symbols that should not be listed in the preloaded symbols.
18755 exclude_expsyms=$lt_exclude_expsyms
18756
18757 # Symbols that must always be exported.
18758 include_expsyms=$lt_include_expsyms
18759
18760 # Commands necessary for linking programs (against libraries) with templates.
18761 prelink_cmds=$lt_prelink_cmds
18762
18763 # Commands necessary for finishing linking programs.
18764 postlink_cmds=$lt_postlink_cmds
18765
18766 # Specify filename containing input files.
18767 file_list_spec=$lt_file_list_spec
18768
18769 # How to hardcode a shared library path into an executable.
18770 hardcode_action=$hardcode_action
18771
18772 # ### END LIBTOOL CONFIG
18773
18774 _LT_EOF
18775
18776   case $host_os in
18777   aix3*)
18778     cat <<\_LT_EOF >> "$cfgfile"
18779 # AIX sometimes has problems with the GCC collect2 program.  For some
18780 # reason, if we set the COLLECT_NAMES environment variable, the problems
18781 # vanish in a puff of smoke.
18782 if test "X${COLLECT_NAMES+set}" != Xset; then
18783   COLLECT_NAMES=
18784   export COLLECT_NAMES
18785 fi
18786 _LT_EOF
18787     ;;
18788   esac
18789
18790
18791 ltmain="$ac_aux_dir/ltmain.sh"
18792
18793
18794   # We use sed instead of cat because bash on DJGPP gets confused if
18795   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18796   # text mode, it properly converts lines to CR/LF.  This bash problem
18797   # is reportedly fixed, but why not run on old versions too?
18798   sed '$q' "$ltmain" >> "$cfgfile" \
18799      || (rm -f "$cfgfile"; exit 1)
18800
18801   if test x"$xsi_shell" = xyes; then
18802   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18803 func_dirname ()\
18804 {\
18805 \    case ${1} in\
18806 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18807 \      *  ) func_dirname_result="${3}" ;;\
18808 \    esac\
18809 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18810   && mv -f "$cfgfile.tmp" "$cfgfile" \
18811     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18812 test 0 -eq $? || _lt_function_replace_fail=:
18813
18814
18815   sed -e '/^func_basename ()$/,/^} # func_basename /c\
18816 func_basename ()\
18817 {\
18818 \    func_basename_result="${1##*/}"\
18819 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18820   && mv -f "$cfgfile.tmp" "$cfgfile" \
18821     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18822 test 0 -eq $? || _lt_function_replace_fail=:
18823
18824
18825   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18826 func_dirname_and_basename ()\
18827 {\
18828 \    case ${1} in\
18829 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18830 \      *  ) func_dirname_result="${3}" ;;\
18831 \    esac\
18832 \    func_basename_result="${1##*/}"\
18833 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18834   && mv -f "$cfgfile.tmp" "$cfgfile" \
18835     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18836 test 0 -eq $? || _lt_function_replace_fail=:
18837
18838
18839   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18840 func_stripname ()\
18841 {\
18842 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18843 \    # positional parameters, so assign one to ordinary parameter first.\
18844 \    func_stripname_result=${3}\
18845 \    func_stripname_result=${func_stripname_result#"${1}"}\
18846 \    func_stripname_result=${func_stripname_result%"${2}"}\
18847 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18848   && mv -f "$cfgfile.tmp" "$cfgfile" \
18849     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18850 test 0 -eq $? || _lt_function_replace_fail=:
18851
18852
18853   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18854 func_split_long_opt ()\
18855 {\
18856 \    func_split_long_opt_name=${1%%=*}\
18857 \    func_split_long_opt_arg=${1#*=}\
18858 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18859   && mv -f "$cfgfile.tmp" "$cfgfile" \
18860     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18861 test 0 -eq $? || _lt_function_replace_fail=:
18862
18863
18864   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18865 func_split_short_opt ()\
18866 {\
18867 \    func_split_short_opt_arg=${1#??}\
18868 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18869 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18870   && mv -f "$cfgfile.tmp" "$cfgfile" \
18871     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18872 test 0 -eq $? || _lt_function_replace_fail=:
18873
18874
18875   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18876 func_lo2o ()\
18877 {\
18878 \    case ${1} in\
18879 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18880 \      *)    func_lo2o_result=${1} ;;\
18881 \    esac\
18882 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18883   && mv -f "$cfgfile.tmp" "$cfgfile" \
18884     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18885 test 0 -eq $? || _lt_function_replace_fail=:
18886
18887
18888   sed -e '/^func_xform ()$/,/^} # func_xform /c\
18889 func_xform ()\
18890 {\
18891     func_xform_result=${1%.*}.lo\
18892 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18893   && mv -f "$cfgfile.tmp" "$cfgfile" \
18894     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18895 test 0 -eq $? || _lt_function_replace_fail=:
18896
18897
18898   sed -e '/^func_arith ()$/,/^} # func_arith /c\
18899 func_arith ()\
18900 {\
18901     func_arith_result=$(( $* ))\
18902 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18903   && mv -f "$cfgfile.tmp" "$cfgfile" \
18904     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18905 test 0 -eq $? || _lt_function_replace_fail=:
18906
18907
18908   sed -e '/^func_len ()$/,/^} # func_len /c\
18909 func_len ()\
18910 {\
18911     func_len_result=${#1}\
18912 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18913   && mv -f "$cfgfile.tmp" "$cfgfile" \
18914     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18915 test 0 -eq $? || _lt_function_replace_fail=:
18916
18917 fi
18918
18919 if test x"$lt_shell_append" = xyes; then
18920   sed -e '/^func_append ()$/,/^} # func_append /c\
18921 func_append ()\
18922 {\
18923     eval "${1}+=\\${2}"\
18924 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18925   && mv -f "$cfgfile.tmp" "$cfgfile" \
18926     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18927 test 0 -eq $? || _lt_function_replace_fail=:
18928
18929
18930   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18931 func_append_quoted ()\
18932 {\
18933 \    func_quote_for_eval "${2}"\
18934 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18935 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18936   && mv -f "$cfgfile.tmp" "$cfgfile" \
18937     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18938 test 0 -eq $? || _lt_function_replace_fail=:
18939
18940
18941   # Save a `func_append' function call where possible by direct use of '+='
18942   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18943     && mv -f "$cfgfile.tmp" "$cfgfile" \
18944       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18945   test 0 -eq $? || _lt_function_replace_fail=:
18946 else
18947   # Save a `func_append' function call even when '+=' is not available
18948   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18949     && mv -f "$cfgfile.tmp" "$cfgfile" \
18950       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18951   test 0 -eq $? || _lt_function_replace_fail=:
18952 fi
18953
18954 if test x"$_lt_function_replace_fail" = x":"; then
18955   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18956 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18957 fi
18958
18959
18960    mv -f "$cfgfile" "$ofile" ||
18961     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18962   chmod +x "$ofile"
18963
18964  ;;
18965     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
18966         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
18967       esac ;;
18968     "po/stamp-it":C)
18969     if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
18970        as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
18971     fi
18972     rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
18973     >"po/stamp-it.tmp"
18974     sed '/^#/d
18975          s/^[[].*] *//
18976          /^[    ]*$/d
18977         '"s|^|  $ac_top_srcdir/|" \
18978       "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
18979
18980     sed '/^POTFILES =/,/[^\\]$/ {
18981                 /^POTFILES =/!d
18982                 r po/POTFILES
18983           }
18984          ' "po/Makefile.in" >"po/Makefile"
18985     rm -f "po/Makefile.tmp"
18986     mv "po/stamp-it.tmp" "po/stamp-it"
18987    ;;
18988
18989   esac
18990 done # for ac_tag
18991
18992
18993 as_fn_exit 0
18994 _ACEOF
18995 ac_clean_files=$ac_clean_files_save
18996
18997 test $ac_write_fail = 0 ||
18998   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18999
19000
19001 # configure is writing to config.log, and then calls config.status.
19002 # config.status does its own redirection, appending to config.log.
19003 # Unfortunately, on DOS this fails, as config.log is still kept open
19004 # by configure, so config.status won't be able to write to it; its
19005 # output is simply discarded.  So we exec the FD to /dev/null,
19006 # effectively closing config.log, so it can be properly (re)opened and
19007 # appended to by config.status.  When coming back to configure, we
19008 # need to make the FD available again.
19009 if test "$no_create" != yes; then
19010   ac_cs_success=:
19011   ac_config_status_args=
19012   test "$silent" = yes &&
19013     ac_config_status_args="$ac_config_status_args --quiet"
19014   exec 5>/dev/null
19015   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19016   exec 5>>config.log
19017   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19018   # would make configure fail if this is the last instruction.
19019   $ac_cs_success || as_fn_exit 1
19020 fi
19021 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19022   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19023 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19024 fi
19025
19026
19027 if test "${prefix}" != "/usr"; then
19028         echo
19029         echo "Warning: install prefix is $prefix"
19030         echo
19031         echo "Most mount applications expect the mount helper to install to"
19032         echo "/sbin. You can install the mount helper to that location by "
19033         echo "running the configure script again with --prefix=/usr:"
19034         echo
19035         echo "./configure --prefix=/usr"
19036         echo
19037 fi