libtoolized.
[platform/upstream/libaec.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libaes 0.0.2.
4 #
5 # Report bugs to <rosenhauer@dkrz.de>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and rosenhauer@dkrz.de
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libaes'
592 PACKAGE_TARNAME='libaes'
593 PACKAGE_VERSION='0.0.2'
594 PACKAGE_STRING='libaes 0.0.2'
595 PACKAGE_BUGREPORT='rosenhauer@dkrz.de'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/libae.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 am__fastdepCC_FALSE
640 am__fastdepCC_TRUE
641 CCDEPMODE
642 am__nodep
643 AMDEPBACKSLASH
644 AMDEP_FALSE
645 AMDEP_TRUE
646 am__quote
647 am__include
648 DEPDIR
649 am__untar
650 am__tar
651 AMTAR
652 am__leading_dot
653 SET_MAKE
654 mkdir_p
655 MKDIR_P
656 INSTALL_STRIP_PROGRAM
657 install_sh
658 MAKEINFO
659 AUTOHEADER
660 AUTOMAKE
661 AUTOCONF
662 ACLOCAL
663 VERSION
664 PACKAGE
665 CYGPATH_W
666 am__isrc
667 INSTALL_DATA
668 INSTALL_SCRIPT
669 INSTALL_PROGRAM
670 CPP
671 OTOOL64
672 OTOOL
673 LIPO
674 NMEDIT
675 DSYMUTIL
676 MANIFEST_TOOL
677 AWK
678 RANLIB
679 STRIP
680 ac_ct_AR
681 AR
682 DLLTOOL
683 OBJDUMP
684 LN_S
685 NM
686 ac_ct_DUMPBIN
687 DUMPBIN
688 LD
689 FGREP
690 EGREP
691 GREP
692 SED
693 OBJEXT
694 EXEEXT
695 ac_ct_CC
696 CPPFLAGS
697 LDFLAGS
698 CFLAGS
699 CC
700 host_os
701 host_vendor
702 host_cpu
703 host
704 build_os
705 build_vendor
706 build_cpu
707 build
708 LIBTOOL
709 target_alias
710 host_alias
711 build_alias
712 LIBS
713 ECHO_T
714 ECHO_N
715 ECHO_C
716 DEFS
717 mandir
718 localedir
719 libdir
720 psdir
721 pdfdir
722 dvidir
723 htmldir
724 infodir
725 docdir
726 oldincludedir
727 includedir
728 localstatedir
729 sharedstatedir
730 sysconfdir
731 datadir
732 datarootdir
733 libexecdir
734 sbindir
735 bindir
736 program_transform_name
737 prefix
738 exec_prefix
739 PACKAGE_URL
740 PACKAGE_BUGREPORT
741 PACKAGE_STRING
742 PACKAGE_VERSION
743 PACKAGE_TARNAME
744 PACKAGE_NAME
745 PATH_SEPARATOR
746 SHELL'
747 ac_subst_files=''
748 ac_user_opts='
749 enable_option_checking
750 enable_shared
751 enable_static
752 with_pic
753 enable_fast_install
754 with_gnu_ld
755 with_sysroot
756 enable_libtool_lock
757 enable_dependency_tracking
758 '
759       ac_precious_vars='build_alias
760 host_alias
761 target_alias
762 CC
763 CFLAGS
764 LDFLAGS
765 LIBS
766 CPPFLAGS
767 CPP'
768
769
770 # Initialize some variables set by options.
771 ac_init_help=
772 ac_init_version=false
773 ac_unrecognized_opts=
774 ac_unrecognized_sep=
775 # The variables have the same names as the options, with
776 # dashes changed to underlines.
777 cache_file=/dev/null
778 exec_prefix=NONE
779 no_create=
780 no_recursion=
781 prefix=NONE
782 program_prefix=NONE
783 program_suffix=NONE
784 program_transform_name=s,x,x,
785 silent=
786 site=
787 srcdir=
788 verbose=
789 x_includes=NONE
790 x_libraries=NONE
791
792 # Installation directory options.
793 # These are left unexpanded so users can "make install exec_prefix=/foo"
794 # and all the variables that are supposed to be based on exec_prefix
795 # by default will actually change.
796 # Use braces instead of parens because sh, perl, etc. also accept them.
797 # (The list follows the same order as the GNU Coding Standards.)
798 bindir='${exec_prefix}/bin'
799 sbindir='${exec_prefix}/sbin'
800 libexecdir='${exec_prefix}/libexec'
801 datarootdir='${prefix}/share'
802 datadir='${datarootdir}'
803 sysconfdir='${prefix}/etc'
804 sharedstatedir='${prefix}/com'
805 localstatedir='${prefix}/var'
806 includedir='${prefix}/include'
807 oldincludedir='/usr/include'
808 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
809 infodir='${datarootdir}/info'
810 htmldir='${docdir}'
811 dvidir='${docdir}'
812 pdfdir='${docdir}'
813 psdir='${docdir}'
814 libdir='${exec_prefix}/lib'
815 localedir='${datarootdir}/locale'
816 mandir='${datarootdir}/man'
817
818 ac_prev=
819 ac_dashdash=
820 for ac_option
821 do
822   # If the previous option needs an argument, assign it.
823   if test -n "$ac_prev"; then
824     eval $ac_prev=\$ac_option
825     ac_prev=
826     continue
827   fi
828
829   case $ac_option in
830   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
831   *=)   ac_optarg= ;;
832   *)    ac_optarg=yes ;;
833   esac
834
835   # Accept the important Cygnus configure options, so we can diagnose typos.
836
837   case $ac_dashdash$ac_option in
838   --)
839     ac_dashdash=yes ;;
840
841   -bindir | --bindir | --bindi | --bind | --bin | --bi)
842     ac_prev=bindir ;;
843   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
844     bindir=$ac_optarg ;;
845
846   -build | --build | --buil | --bui | --bu)
847     ac_prev=build_alias ;;
848   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
849     build_alias=$ac_optarg ;;
850
851   -cache-file | --cache-file | --cache-fil | --cache-fi \
852   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
853     ac_prev=cache_file ;;
854   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
855   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
856     cache_file=$ac_optarg ;;
857
858   --config-cache | -C)
859     cache_file=config.cache ;;
860
861   -datadir | --datadir | --datadi | --datad)
862     ac_prev=datadir ;;
863   -datadir=* | --datadir=* | --datadi=* | --datad=*)
864     datadir=$ac_optarg ;;
865
866   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
867   | --dataroo | --dataro | --datar)
868     ac_prev=datarootdir ;;
869   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
870   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
871     datarootdir=$ac_optarg ;;
872
873   -disable-* | --disable-*)
874     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
875     # Reject names that are not valid shell variable names.
876     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
877       as_fn_error $? "invalid feature name: $ac_useropt"
878     ac_useropt_orig=$ac_useropt
879     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
880     case $ac_user_opts in
881       *"
882 "enable_$ac_useropt"
883 "*) ;;
884       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
885          ac_unrecognized_sep=', ';;
886     esac
887     eval enable_$ac_useropt=no ;;
888
889   -docdir | --docdir | --docdi | --doc | --do)
890     ac_prev=docdir ;;
891   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
892     docdir=$ac_optarg ;;
893
894   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
895     ac_prev=dvidir ;;
896   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
897     dvidir=$ac_optarg ;;
898
899   -enable-* | --enable-*)
900     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901     # Reject names that are not valid shell variable names.
902     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903       as_fn_error $? "invalid feature name: $ac_useropt"
904     ac_useropt_orig=$ac_useropt
905     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906     case $ac_user_opts in
907       *"
908 "enable_$ac_useropt"
909 "*) ;;
910       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
911          ac_unrecognized_sep=', ';;
912     esac
913     eval enable_$ac_useropt=\$ac_optarg ;;
914
915   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
916   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
917   | --exec | --exe | --ex)
918     ac_prev=exec_prefix ;;
919   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
920   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
921   | --exec=* | --exe=* | --ex=*)
922     exec_prefix=$ac_optarg ;;
923
924   -gas | --gas | --ga | --g)
925     # Obsolete; use --with-gas.
926     with_gas=yes ;;
927
928   -help | --help | --hel | --he | -h)
929     ac_init_help=long ;;
930   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
931     ac_init_help=recursive ;;
932   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
933     ac_init_help=short ;;
934
935   -host | --host | --hos | --ho)
936     ac_prev=host_alias ;;
937   -host=* | --host=* | --hos=* | --ho=*)
938     host_alias=$ac_optarg ;;
939
940   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
941     ac_prev=htmldir ;;
942   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
943   | --ht=*)
944     htmldir=$ac_optarg ;;
945
946   -includedir | --includedir | --includedi | --included | --include \
947   | --includ | --inclu | --incl | --inc)
948     ac_prev=includedir ;;
949   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
950   | --includ=* | --inclu=* | --incl=* | --inc=*)
951     includedir=$ac_optarg ;;
952
953   -infodir | --infodir | --infodi | --infod | --info | --inf)
954     ac_prev=infodir ;;
955   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
956     infodir=$ac_optarg ;;
957
958   -libdir | --libdir | --libdi | --libd)
959     ac_prev=libdir ;;
960   -libdir=* | --libdir=* | --libdi=* | --libd=*)
961     libdir=$ac_optarg ;;
962
963   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
964   | --libexe | --libex | --libe)
965     ac_prev=libexecdir ;;
966   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
967   | --libexe=* | --libex=* | --libe=*)
968     libexecdir=$ac_optarg ;;
969
970   -localedir | --localedir | --localedi | --localed | --locale)
971     ac_prev=localedir ;;
972   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
973     localedir=$ac_optarg ;;
974
975   -localstatedir | --localstatedir | --localstatedi | --localstated \
976   | --localstate | --localstat | --localsta | --localst | --locals)
977     ac_prev=localstatedir ;;
978   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
979   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
980     localstatedir=$ac_optarg ;;
981
982   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
983     ac_prev=mandir ;;
984   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
985     mandir=$ac_optarg ;;
986
987   -nfp | --nfp | --nf)
988     # Obsolete; use --without-fp.
989     with_fp=no ;;
990
991   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
992   | --no-cr | --no-c | -n)
993     no_create=yes ;;
994
995   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
996   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
997     no_recursion=yes ;;
998
999   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1000   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1001   | --oldin | --oldi | --old | --ol | --o)
1002     ac_prev=oldincludedir ;;
1003   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1004   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1005   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1006     oldincludedir=$ac_optarg ;;
1007
1008   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1009     ac_prev=prefix ;;
1010   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1011     prefix=$ac_optarg ;;
1012
1013   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1014   | --program-pre | --program-pr | --program-p)
1015     ac_prev=program_prefix ;;
1016   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1017   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1018     program_prefix=$ac_optarg ;;
1019
1020   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1021   | --program-suf | --program-su | --program-s)
1022     ac_prev=program_suffix ;;
1023   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1024   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1025     program_suffix=$ac_optarg ;;
1026
1027   -program-transform-name | --program-transform-name \
1028   | --program-transform-nam | --program-transform-na \
1029   | --program-transform-n | --program-transform- \
1030   | --program-transform | --program-transfor \
1031   | --program-transfo | --program-transf \
1032   | --program-trans | --program-tran \
1033   | --progr-tra | --program-tr | --program-t)
1034     ac_prev=program_transform_name ;;
1035   -program-transform-name=* | --program-transform-name=* \
1036   | --program-transform-nam=* | --program-transform-na=* \
1037   | --program-transform-n=* | --program-transform-=* \
1038   | --program-transform=* | --program-transfor=* \
1039   | --program-transfo=* | --program-transf=* \
1040   | --program-trans=* | --program-tran=* \
1041   | --progr-tra=* | --program-tr=* | --program-t=*)
1042     program_transform_name=$ac_optarg ;;
1043
1044   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1045     ac_prev=pdfdir ;;
1046   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1047     pdfdir=$ac_optarg ;;
1048
1049   -psdir | --psdir | --psdi | --psd | --ps)
1050     ac_prev=psdir ;;
1051   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1052     psdir=$ac_optarg ;;
1053
1054   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055   | -silent | --silent | --silen | --sile | --sil)
1056     silent=yes ;;
1057
1058   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1059     ac_prev=sbindir ;;
1060   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1061   | --sbi=* | --sb=*)
1062     sbindir=$ac_optarg ;;
1063
1064   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1065   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1066   | --sharedst | --shareds | --shared | --share | --shar \
1067   | --sha | --sh)
1068     ac_prev=sharedstatedir ;;
1069   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1070   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1071   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1072   | --sha=* | --sh=*)
1073     sharedstatedir=$ac_optarg ;;
1074
1075   -site | --site | --sit)
1076     ac_prev=site ;;
1077   -site=* | --site=* | --sit=*)
1078     site=$ac_optarg ;;
1079
1080   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1081     ac_prev=srcdir ;;
1082   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1083     srcdir=$ac_optarg ;;
1084
1085   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1086   | --syscon | --sysco | --sysc | --sys | --sy)
1087     ac_prev=sysconfdir ;;
1088   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1089   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1090     sysconfdir=$ac_optarg ;;
1091
1092   -target | --target | --targe | --targ | --tar | --ta | --t)
1093     ac_prev=target_alias ;;
1094   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1095     target_alias=$ac_optarg ;;
1096
1097   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1098     verbose=yes ;;
1099
1100   -version | --version | --versio | --versi | --vers | -V)
1101     ac_init_version=: ;;
1102
1103   -with-* | --with-*)
1104     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1105     # Reject names that are not valid shell variable names.
1106     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107       as_fn_error $? "invalid package name: $ac_useropt"
1108     ac_useropt_orig=$ac_useropt
1109     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110     case $ac_user_opts in
1111       *"
1112 "with_$ac_useropt"
1113 "*) ;;
1114       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1115          ac_unrecognized_sep=', ';;
1116     esac
1117     eval with_$ac_useropt=\$ac_optarg ;;
1118
1119   -without-* | --without-*)
1120     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121     # Reject names that are not valid shell variable names.
1122     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123       as_fn_error $? "invalid package name: $ac_useropt"
1124     ac_useropt_orig=$ac_useropt
1125     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126     case $ac_user_opts in
1127       *"
1128 "with_$ac_useropt"
1129 "*) ;;
1130       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1131          ac_unrecognized_sep=', ';;
1132     esac
1133     eval with_$ac_useropt=no ;;
1134
1135   --x)
1136     # Obsolete; use --with-x.
1137     with_x=yes ;;
1138
1139   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1140   | --x-incl | --x-inc | --x-in | --x-i)
1141     ac_prev=x_includes ;;
1142   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1143   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1144     x_includes=$ac_optarg ;;
1145
1146   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1147   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1148     ac_prev=x_libraries ;;
1149   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1150   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1151     x_libraries=$ac_optarg ;;
1152
1153   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1154 Try \`$0 --help' for more information"
1155     ;;
1156
1157   *=*)
1158     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1159     # Reject names that are not valid shell variable names.
1160     case $ac_envvar in #(
1161       '' | [0-9]* | *[!_$as_cr_alnum]* )
1162       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1163     esac
1164     eval $ac_envvar=\$ac_optarg
1165     export $ac_envvar ;;
1166
1167   *)
1168     # FIXME: should be removed in autoconf 3.0.
1169     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1170     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1172     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1173     ;;
1174
1175   esac
1176 done
1177
1178 if test -n "$ac_prev"; then
1179   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1180   as_fn_error $? "missing argument to $ac_option"
1181 fi
1182
1183 if test -n "$ac_unrecognized_opts"; then
1184   case $enable_option_checking in
1185     no) ;;
1186     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1187     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1188   esac
1189 fi
1190
1191 # Check all directory arguments for consistency.
1192 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1193                 datadir sysconfdir sharedstatedir localstatedir includedir \
1194                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1195                 libdir localedir mandir
1196 do
1197   eval ac_val=\$$ac_var
1198   # Remove trailing slashes.
1199   case $ac_val in
1200     */ )
1201       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1202       eval $ac_var=\$ac_val;;
1203   esac
1204   # Be sure to have absolute directory names.
1205   case $ac_val in
1206     [\\/$]* | ?:[\\/]* )  continue;;
1207     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1208   esac
1209   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1210 done
1211
1212 # There might be people who depend on the old broken behavior: `$host'
1213 # used to hold the argument of --host etc.
1214 # FIXME: To remove some day.
1215 build=$build_alias
1216 host=$host_alias
1217 target=$target_alias
1218
1219 # FIXME: To remove some day.
1220 if test "x$host_alias" != x; then
1221   if test "x$build_alias" = x; then
1222     cross_compiling=maybe
1223   elif test "x$build_alias" != "x$host_alias"; then
1224     cross_compiling=yes
1225   fi
1226 fi
1227
1228 ac_tool_prefix=
1229 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230
1231 test "$silent" = yes && exec 6>/dev/null
1232
1233
1234 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235 ac_ls_di=`ls -di .` &&
1236 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1237   as_fn_error $? "working directory cannot be determined"
1238 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239   as_fn_error $? "pwd does not report name of working directory"
1240
1241
1242 # Find the source files, if location was not specified.
1243 if test -z "$srcdir"; then
1244   ac_srcdir_defaulted=yes
1245   # Try the directory containing this script, then the parent directory.
1246   ac_confdir=`$as_dirname -- "$as_myself" ||
1247 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1248          X"$as_myself" : 'X\(//\)[^/]' \| \
1249          X"$as_myself" : 'X\(//\)$' \| \
1250          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1251 $as_echo X"$as_myself" |
1252     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253             s//\1/
1254             q
1255           }
1256           /^X\(\/\/\)[^/].*/{
1257             s//\1/
1258             q
1259           }
1260           /^X\(\/\/\)$/{
1261             s//\1/
1262             q
1263           }
1264           /^X\(\/\).*/{
1265             s//\1/
1266             q
1267           }
1268           s/.*/./; q'`
1269   srcdir=$ac_confdir
1270   if test ! -r "$srcdir/$ac_unique_file"; then
1271     srcdir=..
1272   fi
1273 else
1274   ac_srcdir_defaulted=no
1275 fi
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1277   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1278   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1279 fi
1280 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1281 ac_abs_confdir=`(
1282         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1283         pwd)`
1284 # When building in place, set srcdir=.
1285 if test "$ac_abs_confdir" = "$ac_pwd"; then
1286   srcdir=.
1287 fi
1288 # Remove unnecessary trailing slashes from srcdir.
1289 # Double slashes in file names in object file debugging info
1290 # mess up M-x gdb in Emacs.
1291 case $srcdir in
1292 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1293 esac
1294 for ac_var in $ac_precious_vars; do
1295   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1296   eval ac_env_${ac_var}_value=\$${ac_var}
1297   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1298   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1299 done
1300
1301 #
1302 # Report the --help message.
1303 #
1304 if test "$ac_init_help" = "long"; then
1305   # Omit some internal or obsolete options to make the list less imposing.
1306   # This message is too long to be a string in the A/UX 3.1 sh.
1307   cat <<_ACEOF
1308 \`configure' configures libaes 0.0.2 to adapt to many kinds of systems.
1309
1310 Usage: $0 [OPTION]... [VAR=VALUE]...
1311
1312 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1313 VAR=VALUE.  See below for descriptions of some of the useful variables.
1314
1315 Defaults for the options are specified in brackets.
1316
1317 Configuration:
1318   -h, --help              display this help and exit
1319       --help=short        display options specific to this package
1320       --help=recursive    display the short help of all the included packages
1321   -V, --version           display version information and exit
1322   -q, --quiet, --silent   do not print \`checking ...' messages
1323       --cache-file=FILE   cache test results in FILE [disabled]
1324   -C, --config-cache      alias for \`--cache-file=config.cache'
1325   -n, --no-create         do not create output files
1326       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1327
1328 Installation directories:
1329   --prefix=PREFIX         install architecture-independent files in PREFIX
1330                           [$ac_default_prefix]
1331   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1332                           [PREFIX]
1333
1334 By default, \`make install' will install all the files in
1335 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1336 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1337 for instance \`--prefix=\$HOME'.
1338
1339 For better control, use the options below.
1340
1341 Fine tuning of the installation directories:
1342   --bindir=DIR            user executables [EPREFIX/bin]
1343   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1344   --libexecdir=DIR        program executables [EPREFIX/libexec]
1345   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1346   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1347   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1348   --libdir=DIR            object code libraries [EPREFIX/lib]
1349   --includedir=DIR        C header files [PREFIX/include]
1350   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1351   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1352   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1353   --infodir=DIR           info documentation [DATAROOTDIR/info]
1354   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1355   --mandir=DIR            man documentation [DATAROOTDIR/man]
1356   --docdir=DIR            documentation root [DATAROOTDIR/doc/libaes]
1357   --htmldir=DIR           html documentation [DOCDIR]
1358   --dvidir=DIR            dvi documentation [DOCDIR]
1359   --pdfdir=DIR            pdf documentation [DOCDIR]
1360   --psdir=DIR             ps documentation [DOCDIR]
1361 _ACEOF
1362
1363   cat <<\_ACEOF
1364
1365 Program names:
1366   --program-prefix=PREFIX            prepend PREFIX to installed program names
1367   --program-suffix=SUFFIX            append SUFFIX to installed program names
1368   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1369
1370 System types:
1371   --build=BUILD     configure for building on BUILD [guessed]
1372   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1373 _ACEOF
1374 fi
1375
1376 if test -n "$ac_init_help"; then
1377   case $ac_init_help in
1378      short | recursive ) echo "Configuration of libaes 0.0.2:";;
1379    esac
1380   cat <<\_ACEOF
1381
1382 Optional Features:
1383   --disable-option-checking  ignore unrecognized --enable/--with options
1384   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1385   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1386   --enable-shared[=PKGS]  build shared libraries [default=yes]
1387   --enable-static[=PKGS]  build static libraries [default=yes]
1388   --enable-fast-install[=PKGS]
1389                           optimize for fast installation [default=yes]
1390   --disable-libtool-lock  avoid locking (might break parallel builds)
1391   --enable-dependency-tracking
1392                           do not reject slow dependency extractors
1393   --disable-dependency-tracking
1394                           speeds up one-time build
1395
1396 Optional Packages:
1397   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1398   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1399   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1400                           both]
1401   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1402   --with-sysroot=DIR Search for dependent libraries within DIR
1403                         (or the compiler's sysroot if not specified).
1404
1405 Some influential environment variables:
1406   CC          C compiler command
1407   CFLAGS      C compiler flags
1408   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1409               nonstandard directory <lib dir>
1410   LIBS        libraries to pass to the linker, e.g. -l<library>
1411   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1412               you have headers in a nonstandard directory <include dir>
1413   CPP         C preprocessor
1414
1415 Use these variables to override the choices made by `configure' or to help
1416 it to find libraries and programs with nonstandard names/locations.
1417
1418 Report bugs to <rosenhauer@dkrz.de>.
1419 _ACEOF
1420 ac_status=$?
1421 fi
1422
1423 if test "$ac_init_help" = "recursive"; then
1424   # If there are subdirs, report their specific --help.
1425   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1426     test -d "$ac_dir" ||
1427       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1428       continue
1429     ac_builddir=.
1430
1431 case "$ac_dir" in
1432 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 *)
1434   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1435   # A ".." for each directory in $ac_dir_suffix.
1436   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1437   case $ac_top_builddir_sub in
1438   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1440   esac ;;
1441 esac
1442 ac_abs_top_builddir=$ac_pwd
1443 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1444 # for backward compatibility:
1445 ac_top_builddir=$ac_top_build_prefix
1446
1447 case $srcdir in
1448   .)  # We are building in place.
1449     ac_srcdir=.
1450     ac_top_srcdir=$ac_top_builddir_sub
1451     ac_abs_top_srcdir=$ac_pwd ;;
1452   [\\/]* | ?:[\\/]* )  # Absolute name.
1453     ac_srcdir=$srcdir$ac_dir_suffix;
1454     ac_top_srcdir=$srcdir
1455     ac_abs_top_srcdir=$srcdir ;;
1456   *) # Relative name.
1457     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1458     ac_top_srcdir=$ac_top_build_prefix$srcdir
1459     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1460 esac
1461 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1462
1463     cd "$ac_dir" || { ac_status=$?; continue; }
1464     # Check for guested configure.
1465     if test -f "$ac_srcdir/configure.gnu"; then
1466       echo &&
1467       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1468     elif test -f "$ac_srcdir/configure"; then
1469       echo &&
1470       $SHELL "$ac_srcdir/configure" --help=recursive
1471     else
1472       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1473     fi || ac_status=$?
1474     cd "$ac_pwd" || { ac_status=$?; break; }
1475   done
1476 fi
1477
1478 test -n "$ac_init_help" && exit $ac_status
1479 if $ac_init_version; then
1480   cat <<\_ACEOF
1481 libaes configure 0.0.2
1482 generated by GNU Autoconf 2.69
1483
1484 Copyright (C) 2012 Free Software Foundation, Inc.
1485 This configure script is free software; the Free Software Foundation
1486 gives unlimited permission to copy, distribute and modify it.
1487 _ACEOF
1488   exit
1489 fi
1490
1491 ## ------------------------ ##
1492 ## Autoconf initialization. ##
1493 ## ------------------------ ##
1494
1495 # ac_fn_c_try_compile LINENO
1496 # --------------------------
1497 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1498 ac_fn_c_try_compile ()
1499 {
1500   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1501   rm -f conftest.$ac_objext
1502   if { { ac_try="$ac_compile"
1503 case "(($ac_try" in
1504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505   *) ac_try_echo=$ac_try;;
1506 esac
1507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508 $as_echo "$ac_try_echo"; } >&5
1509   (eval "$ac_compile") 2>conftest.err
1510   ac_status=$?
1511   if test -s conftest.err; then
1512     grep -v '^ *+' conftest.err >conftest.er1
1513     cat conftest.er1 >&5
1514     mv -f conftest.er1 conftest.err
1515   fi
1516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517   test $ac_status = 0; } && {
1518          test -z "$ac_c_werror_flag" ||
1519          test ! -s conftest.err
1520        } && test -s conftest.$ac_objext; then :
1521   ac_retval=0
1522 else
1523   $as_echo "$as_me: failed program was:" >&5
1524 sed 's/^/| /' conftest.$ac_ext >&5
1525
1526         ac_retval=1
1527 fi
1528   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1529   as_fn_set_status $ac_retval
1530
1531 } # ac_fn_c_try_compile
1532
1533 # ac_fn_c_try_link LINENO
1534 # -----------------------
1535 # Try to link conftest.$ac_ext, and return whether this succeeded.
1536 ac_fn_c_try_link ()
1537 {
1538   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539   rm -f conftest.$ac_objext conftest$ac_exeext
1540   if { { ac_try="$ac_link"
1541 case "(($ac_try" in
1542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543   *) ac_try_echo=$ac_try;;
1544 esac
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547   (eval "$ac_link") 2>conftest.err
1548   ac_status=$?
1549   if test -s conftest.err; then
1550     grep -v '^ *+' conftest.err >conftest.er1
1551     cat conftest.er1 >&5
1552     mv -f conftest.er1 conftest.err
1553   fi
1554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555   test $ac_status = 0; } && {
1556          test -z "$ac_c_werror_flag" ||
1557          test ! -s conftest.err
1558        } && test -s conftest$ac_exeext && {
1559          test "$cross_compiling" = yes ||
1560          test -x conftest$ac_exeext
1561        }; then :
1562   ac_retval=0
1563 else
1564   $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1566
1567         ac_retval=1
1568 fi
1569   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1570   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1571   # interfere with the next link command; also delete a directory that is
1572   # left behind by Apple's compiler.  We do this before executing the actions.
1573   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1574   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575   as_fn_set_status $ac_retval
1576
1577 } # ac_fn_c_try_link
1578
1579 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1580 # -------------------------------------------------------
1581 # Tests whether HEADER exists and can be compiled using the include files in
1582 # INCLUDES, setting the cache variable VAR accordingly.
1583 ac_fn_c_check_header_compile ()
1584 {
1585   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1587 $as_echo_n "checking for $2... " >&6; }
1588 if eval \${$3+:} false; then :
1589   $as_echo_n "(cached) " >&6
1590 else
1591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1592 /* end confdefs.h.  */
1593 $4
1594 #include <$2>
1595 _ACEOF
1596 if ac_fn_c_try_compile "$LINENO"; then :
1597   eval "$3=yes"
1598 else
1599   eval "$3=no"
1600 fi
1601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1602 fi
1603 eval ac_res=\$$3
1604                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1605 $as_echo "$ac_res" >&6; }
1606   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607
1608 } # ac_fn_c_check_header_compile
1609
1610 # ac_fn_c_try_cpp LINENO
1611 # ----------------------
1612 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_cpp ()
1614 {
1615   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616   if { { ac_try="$ac_cpp conftest.$ac_ext"
1617 case "(($ac_try" in
1618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619   *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1624   ac_status=$?
1625   if test -s conftest.err; then
1626     grep -v '^ *+' conftest.err >conftest.er1
1627     cat conftest.er1 >&5
1628     mv -f conftest.er1 conftest.err
1629   fi
1630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631   test $ac_status = 0; } > conftest.i && {
1632          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1633          test ! -s conftest.err
1634        }; then :
1635   ac_retval=0
1636 else
1637   $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1639
1640     ac_retval=1
1641 fi
1642   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643   as_fn_set_status $ac_retval
1644
1645 } # ac_fn_c_try_cpp
1646
1647 # ac_fn_c_try_run LINENO
1648 # ----------------------
1649 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1650 # that executables *can* be run.
1651 ac_fn_c_try_run ()
1652 {
1653   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654   if { { ac_try="$ac_link"
1655 case "(($ac_try" in
1656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657   *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661   (eval "$ac_link") 2>&5
1662   ac_status=$?
1663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1665   { { case "(($ac_try" in
1666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667   *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671   (eval "$ac_try") 2>&5
1672   ac_status=$?
1673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674   test $ac_status = 0; }; }; then :
1675   ac_retval=0
1676 else
1677   $as_echo "$as_me: program exited with status $ac_status" >&5
1678        $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681        ac_retval=$ac_status
1682 fi
1683   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1684   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685   as_fn_set_status $ac_retval
1686
1687 } # ac_fn_c_try_run
1688
1689 # ac_fn_c_check_func LINENO FUNC VAR
1690 # ----------------------------------
1691 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1692 ac_fn_c_check_func ()
1693 {
1694   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if eval \${$3+:} false; then :
1698   $as_echo_n "(cached) " >&6
1699 else
1700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h.  */
1702 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1704 #define $2 innocuous_$2
1705
1706 /* System header to define __stub macros and hopefully few prototypes,
1707     which can conflict with char $2 (); below.
1708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1709     <limits.h> exists even on freestanding compilers.  */
1710
1711 #ifdef __STDC__
1712 # include <limits.h>
1713 #else
1714 # include <assert.h>
1715 #endif
1716
1717 #undef $2
1718
1719 /* Override any GCC internal prototype to avoid an error.
1720    Use char because int might match the return type of a GCC
1721    builtin and then its argument prototype would still apply.  */
1722 #ifdef __cplusplus
1723 extern "C"
1724 #endif
1725 char $2 ();
1726 /* The GNU C library defines this for functions which it implements
1727     to always fail with ENOSYS.  Some functions are actually named
1728     something starting with __ and the normal name is an alias.  */
1729 #if defined __stub_$2 || defined __stub___$2
1730 choke me
1731 #endif
1732
1733 int
1734 main ()
1735 {
1736 return $2 ();
1737   ;
1738   return 0;
1739 }
1740 _ACEOF
1741 if ac_fn_c_try_link "$LINENO"; then :
1742   eval "$3=yes"
1743 else
1744   eval "$3=no"
1745 fi
1746 rm -f core conftest.err conftest.$ac_objext \
1747     conftest$ac_exeext conftest.$ac_ext
1748 fi
1749 eval ac_res=\$$3
1750                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1752   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753
1754 } # ac_fn_c_check_func
1755
1756 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1757 # -------------------------------------------------------
1758 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1759 # the include files in INCLUDES and setting the cache variable VAR
1760 # accordingly.
1761 ac_fn_c_check_header_mongrel ()
1762 {
1763   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764   if eval \${$3+:} false; then :
1765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 $as_echo_n "checking for $2... " >&6; }
1767 if eval \${$3+:} false; then :
1768   $as_echo_n "(cached) " >&6
1769 fi
1770 eval ac_res=\$$3
1771                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 $as_echo "$ac_res" >&6; }
1773 else
1774   # Is the header compilable?
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1776 $as_echo_n "checking $2 usability... " >&6; }
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h.  */
1779 $4
1780 #include <$2>
1781 _ACEOF
1782 if ac_fn_c_try_compile "$LINENO"; then :
1783   ac_header_compiler=yes
1784 else
1785   ac_header_compiler=no
1786 fi
1787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1789 $as_echo "$ac_header_compiler" >&6; }
1790
1791 # Is the header present?
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1793 $as_echo_n "checking $2 presence... " >&6; }
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h.  */
1796 #include <$2>
1797 _ACEOF
1798 if ac_fn_c_try_cpp "$LINENO"; then :
1799   ac_header_preproc=yes
1800 else
1801   ac_header_preproc=no
1802 fi
1803 rm -f conftest.err conftest.i conftest.$ac_ext
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1805 $as_echo "$ac_header_preproc" >&6; }
1806
1807 # So?  What about this header?
1808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1809   yes:no: )
1810     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1811 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1812     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1813 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1814     ;;
1815   no:yes:* )
1816     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1817 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1818     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1819 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1820     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1821 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1822     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1823 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1824     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1825 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1826 ( $as_echo "## --------------------------------- ##
1827 ## Report this to rosenhauer@dkrz.de ##
1828 ## --------------------------------- ##"
1829      ) | sed "s/^/$as_me: WARNING:     /" >&2
1830     ;;
1831 esac
1832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835   $as_echo_n "(cached) " >&6
1836 else
1837   eval "$3=\$ac_header_compiler"
1838 fi
1839 eval ac_res=\$$3
1840                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 fi
1843   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844
1845 } # ac_fn_c_check_header_mongrel
1846
1847 # ac_fn_c_find_intX_t LINENO BITS VAR
1848 # -----------------------------------
1849 # Finds a signed integer type with width BITS, setting cache variable VAR
1850 # accordingly.
1851 ac_fn_c_find_intX_t ()
1852 {
1853   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1855 $as_echo_n "checking for int$2_t... " >&6; }
1856 if eval \${$3+:} false; then :
1857   $as_echo_n "(cached) " >&6
1858 else
1859   eval "$3=no"
1860      # Order is important - never check a type that is potentially smaller
1861      # than half of the expected target width.
1862      for ac_type in int$2_t 'int' 'long int' \
1863          'long long int' 'short int' 'signed char'; do
1864        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h.  */
1866 $ac_includes_default
1867              enum { N = $2 / 2 - 1 };
1868 int
1869 main ()
1870 {
1871 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1872 test_array [0] = 0;
1873 return test_array [0];
1874
1875   ;
1876   return 0;
1877 }
1878 _ACEOF
1879 if ac_fn_c_try_compile "$LINENO"; then :
1880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h.  */
1882 $ac_includes_default
1883                 enum { N = $2 / 2 - 1 };
1884 int
1885 main ()
1886 {
1887 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1888                  < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1889 test_array [0] = 0;
1890 return test_array [0];
1891
1892   ;
1893   return 0;
1894 }
1895 _ACEOF
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897
1898 else
1899   case $ac_type in #(
1900   int$2_t) :
1901     eval "$3=yes" ;; #(
1902   *) :
1903     eval "$3=\$ac_type" ;;
1904 esac
1905 fi
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 fi
1908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909        if eval test \"x\$"$3"\" = x"no"; then :
1910
1911 else
1912   break
1913 fi
1914      done
1915 fi
1916 eval ac_res=\$$3
1917                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1919   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920
1921 } # ac_fn_c_find_intX_t
1922
1923 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1924 # -------------------------------------------
1925 # Tests whether TYPE exists after having included INCLUDES, setting cache
1926 # variable VAR accordingly.
1927 ac_fn_c_check_type ()
1928 {
1929   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931 $as_echo_n "checking for $2... " >&6; }
1932 if eval \${$3+:} false; then :
1933   $as_echo_n "(cached) " >&6
1934 else
1935   eval "$3=no"
1936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h.  */
1938 $4
1939 int
1940 main ()
1941 {
1942 if (sizeof ($2))
1943          return 0;
1944   ;
1945   return 0;
1946 }
1947 _ACEOF
1948 if ac_fn_c_try_compile "$LINENO"; then :
1949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h.  */
1951 $4
1952 int
1953 main ()
1954 {
1955 if (sizeof (($2)))
1956             return 0;
1957   ;
1958   return 0;
1959 }
1960 _ACEOF
1961 if ac_fn_c_try_compile "$LINENO"; then :
1962
1963 else
1964   eval "$3=yes"
1965 fi
1966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967 fi
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 fi
1970 eval ac_res=\$$3
1971                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974
1975 } # ac_fn_c_check_type
1976
1977 # ac_fn_c_find_uintX_t LINENO BITS VAR
1978 # ------------------------------------
1979 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1980 # accordingly.
1981 ac_fn_c_find_uintX_t ()
1982 {
1983   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1985 $as_echo_n "checking for uint$2_t... " >&6; }
1986 if eval \${$3+:} false; then :
1987   $as_echo_n "(cached) " >&6
1988 else
1989   eval "$3=no"
1990      # Order is important - never check a type that is potentially smaller
1991      # than half of the expected target width.
1992      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1993          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1994        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h.  */
1996 $ac_includes_default
1997 int
1998 main ()
1999 {
2000 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2001 test_array [0] = 0;
2002 return test_array [0];
2003
2004   ;
2005   return 0;
2006 }
2007 _ACEOF
2008 if ac_fn_c_try_compile "$LINENO"; then :
2009   case $ac_type in #(
2010   uint$2_t) :
2011     eval "$3=yes" ;; #(
2012   *) :
2013     eval "$3=\$ac_type" ;;
2014 esac
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017        if eval test \"x\$"$3"\" = x"no"; then :
2018
2019 else
2020   break
2021 fi
2022      done
2023 fi
2024 eval ac_res=\$$3
2025                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026 $as_echo "$ac_res" >&6; }
2027   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028
2029 } # ac_fn_c_find_uintX_t
2030 cat >config.log <<_ACEOF
2031 This file contains any messages produced by compilers while
2032 running configure, to aid debugging if configure makes a mistake.
2033
2034 It was created by libaes $as_me 0.0.2, which was
2035 generated by GNU Autoconf 2.69.  Invocation command line was
2036
2037   $ $0 $@
2038
2039 _ACEOF
2040 exec 5>>config.log
2041 {
2042 cat <<_ASUNAME
2043 ## --------- ##
2044 ## Platform. ##
2045 ## --------- ##
2046
2047 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2048 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2049 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2050 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2051 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2052
2053 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2054 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2055
2056 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2057 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2058 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2059 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2060 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2061 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2062 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2063
2064 _ASUNAME
2065
2066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 for as_dir in $PATH
2068 do
2069   IFS=$as_save_IFS
2070   test -z "$as_dir" && as_dir=.
2071     $as_echo "PATH: $as_dir"
2072   done
2073 IFS=$as_save_IFS
2074
2075 } >&5
2076
2077 cat >&5 <<_ACEOF
2078
2079
2080 ## ----------- ##
2081 ## Core tests. ##
2082 ## ----------- ##
2083
2084 _ACEOF
2085
2086
2087 # Keep a trace of the command line.
2088 # Strip out --no-create and --no-recursion so they do not pile up.
2089 # Strip out --silent because we don't want to record it for future runs.
2090 # Also quote any args containing shell meta-characters.
2091 # Make two passes to allow for proper duplicate-argument suppression.
2092 ac_configure_args=
2093 ac_configure_args0=
2094 ac_configure_args1=
2095 ac_must_keep_next=false
2096 for ac_pass in 1 2
2097 do
2098   for ac_arg
2099   do
2100     case $ac_arg in
2101     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2102     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2103     | -silent | --silent | --silen | --sile | --sil)
2104       continue ;;
2105     *\'*)
2106       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2107     esac
2108     case $ac_pass in
2109     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2110     2)
2111       as_fn_append ac_configure_args1 " '$ac_arg'"
2112       if test $ac_must_keep_next = true; then
2113         ac_must_keep_next=false # Got value, back to normal.
2114       else
2115         case $ac_arg in
2116           *=* | --config-cache | -C | -disable-* | --disable-* \
2117           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2118           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2119           | -with-* | --with-* | -without-* | --without-* | --x)
2120             case "$ac_configure_args0 " in
2121               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2122             esac
2123             ;;
2124           -* ) ac_must_keep_next=true ;;
2125         esac
2126       fi
2127       as_fn_append ac_configure_args " '$ac_arg'"
2128       ;;
2129     esac
2130   done
2131 done
2132 { ac_configure_args0=; unset ac_configure_args0;}
2133 { ac_configure_args1=; unset ac_configure_args1;}
2134
2135 # When interrupted or exit'd, cleanup temporary files, and complete
2136 # config.log.  We remove comments because anyway the quotes in there
2137 # would cause problems or look ugly.
2138 # WARNING: Use '\'' to represent an apostrophe within the trap.
2139 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2140 trap 'exit_status=$?
2141   # Save into config.log some information that might help in debugging.
2142   {
2143     echo
2144
2145     $as_echo "## ---------------- ##
2146 ## Cache variables. ##
2147 ## ---------------- ##"
2148     echo
2149     # The following way of writing the cache mishandles newlines in values,
2150 (
2151   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2152     eval ac_val=\$$ac_var
2153     case $ac_val in #(
2154     *${as_nl}*)
2155       case $ac_var in #(
2156       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2157 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2158       esac
2159       case $ac_var in #(
2160       _ | IFS | as_nl) ;; #(
2161       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2162       *) { eval $ac_var=; unset $ac_var;} ;;
2163       esac ;;
2164     esac
2165   done
2166   (set) 2>&1 |
2167     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2168     *${as_nl}ac_space=\ *)
2169       sed -n \
2170         "s/'\''/'\''\\\\'\'''\''/g;
2171           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2172       ;; #(
2173     *)
2174       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2175       ;;
2176     esac |
2177     sort
2178 )
2179     echo
2180
2181     $as_echo "## ----------------- ##
2182 ## Output variables. ##
2183 ## ----------------- ##"
2184     echo
2185     for ac_var in $ac_subst_vars
2186     do
2187       eval ac_val=\$$ac_var
2188       case $ac_val in
2189       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2190       esac
2191       $as_echo "$ac_var='\''$ac_val'\''"
2192     done | sort
2193     echo
2194
2195     if test -n "$ac_subst_files"; then
2196       $as_echo "## ------------------- ##
2197 ## File substitutions. ##
2198 ## ------------------- ##"
2199       echo
2200       for ac_var in $ac_subst_files
2201       do
2202         eval ac_val=\$$ac_var
2203         case $ac_val in
2204         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2205         esac
2206         $as_echo "$ac_var='\''$ac_val'\''"
2207       done | sort
2208       echo
2209     fi
2210
2211     if test -s confdefs.h; then
2212       $as_echo "## ----------- ##
2213 ## confdefs.h. ##
2214 ## ----------- ##"
2215       echo
2216       cat confdefs.h
2217       echo
2218     fi
2219     test "$ac_signal" != 0 &&
2220       $as_echo "$as_me: caught signal $ac_signal"
2221     $as_echo "$as_me: exit $exit_status"
2222   } >&5
2223   rm -f core *.core core.conftest.* &&
2224     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2225     exit $exit_status
2226 ' 0
2227 for ac_signal in 1 2 13 15; do
2228   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2229 done
2230 ac_signal=0
2231
2232 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2233 rm -f -r conftest* confdefs.h
2234
2235 $as_echo "/* confdefs.h */" > confdefs.h
2236
2237 # Predefined preprocessor variables.
2238
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_NAME "$PACKAGE_NAME"
2241 _ACEOF
2242
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2245 _ACEOF
2246
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2249 _ACEOF
2250
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_STRING "$PACKAGE_STRING"
2253 _ACEOF
2254
2255 cat >>confdefs.h <<_ACEOF
2256 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2257 _ACEOF
2258
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_URL "$PACKAGE_URL"
2261 _ACEOF
2262
2263
2264 # Let the site file select an alternate cache file if it wants to.
2265 # Prefer an explicitly selected file to automatically selected ones.
2266 ac_site_file1=NONE
2267 ac_site_file2=NONE
2268 if test -n "$CONFIG_SITE"; then
2269   # We do not want a PATH search for config.site.
2270   case $CONFIG_SITE in #((
2271     -*)  ac_site_file1=./$CONFIG_SITE;;
2272     */*) ac_site_file1=$CONFIG_SITE;;
2273     *)   ac_site_file1=./$CONFIG_SITE;;
2274   esac
2275 elif test "x$prefix" != xNONE; then
2276   ac_site_file1=$prefix/share/config.site
2277   ac_site_file2=$prefix/etc/config.site
2278 else
2279   ac_site_file1=$ac_default_prefix/share/config.site
2280   ac_site_file2=$ac_default_prefix/etc/config.site
2281 fi
2282 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2283 do
2284   test "x$ac_site_file" = xNONE && continue
2285   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2286     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2287 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2288     sed 's/^/| /' "$ac_site_file" >&5
2289     . "$ac_site_file" \
2290       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2292 as_fn_error $? "failed to load site script $ac_site_file
2293 See \`config.log' for more details" "$LINENO" 5; }
2294   fi
2295 done
2296
2297 if test -r "$cache_file"; then
2298   # Some versions of bash will fail to source /dev/null (special files
2299   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2300   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2301     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2302 $as_echo "$as_me: loading cache $cache_file" >&6;}
2303     case $cache_file in
2304       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2305       *)                      . "./$cache_file";;
2306     esac
2307   fi
2308 else
2309   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2310 $as_echo "$as_me: creating cache $cache_file" >&6;}
2311   >$cache_file
2312 fi
2313
2314 # Check that the precious variables saved in the cache have kept the same
2315 # value.
2316 ac_cache_corrupted=false
2317 for ac_var in $ac_precious_vars; do
2318   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2319   eval ac_new_set=\$ac_env_${ac_var}_set
2320   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2321   eval ac_new_val=\$ac_env_${ac_var}_value
2322   case $ac_old_set,$ac_new_set in
2323     set,)
2324       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2325 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2326       ac_cache_corrupted=: ;;
2327     ,set)
2328       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2329 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2330       ac_cache_corrupted=: ;;
2331     ,);;
2332     *)
2333       if test "x$ac_old_val" != "x$ac_new_val"; then
2334         # differences in whitespace do not lead to failure.
2335         ac_old_val_w=`echo x $ac_old_val`
2336         ac_new_val_w=`echo x $ac_new_val`
2337         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2338           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2339 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2340           ac_cache_corrupted=:
2341         else
2342           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2343 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2344           eval $ac_var=\$ac_old_val
2345         fi
2346         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2347 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2348         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2349 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2350       fi;;
2351   esac
2352   # Pass precious variables to config.status.
2353   if test "$ac_new_set" = set; then
2354     case $ac_new_val in
2355     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2356     *) ac_arg=$ac_var=$ac_new_val ;;
2357     esac
2358     case " $ac_configure_args " in
2359       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2360       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2361     esac
2362   fi
2363 done
2364 if $ac_cache_corrupted; then
2365   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2367   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2368 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2369   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2370 fi
2371 ## -------------------- ##
2372 ## Main body of script. ##
2373 ## -------------------- ##
2374
2375 ac_ext=c
2376 ac_cpp='$CPP $CPPFLAGS'
2377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2380
2381
2382
2383
2384 ac_aux_dir=
2385 for ac_dir in config "$srcdir"/config; do
2386   if test -f "$ac_dir/install-sh"; then
2387     ac_aux_dir=$ac_dir
2388     ac_install_sh="$ac_aux_dir/install-sh -c"
2389     break
2390   elif test -f "$ac_dir/install.sh"; then
2391     ac_aux_dir=$ac_dir
2392     ac_install_sh="$ac_aux_dir/install.sh -c"
2393     break
2394   elif test -f "$ac_dir/shtool"; then
2395     ac_aux_dir=$ac_dir
2396     ac_install_sh="$ac_aux_dir/shtool install -c"
2397     break
2398   fi
2399 done
2400 if test -z "$ac_aux_dir"; then
2401   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2402 fi
2403
2404 # These three variables are undocumented and unsupported,
2405 # and are intended to be withdrawn in a future Autoconf release.
2406 # They can cause serious problems if a builder's source tree is in a directory
2407 # whose full name contains unusual characters.
2408 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2409 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2410 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2411
2412
2413
2414 ac_config_headers="$ac_config_headers config/config.h"
2415
2416
2417 case `pwd` in
2418   *\ * | *\     *)
2419     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2420 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2421 esac
2422
2423
2424
2425 macro_version='2.4.2'
2426 macro_revision='1.3337'
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440 ltmain="$ac_aux_dir/ltmain.sh"
2441
2442 # Make sure we can run config.sub.
2443 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2444   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2445
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2447 $as_echo_n "checking build system type... " >&6; }
2448 if ${ac_cv_build+:} false; then :
2449   $as_echo_n "(cached) " >&6
2450 else
2451   ac_build_alias=$build_alias
2452 test "x$ac_build_alias" = x &&
2453   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2454 test "x$ac_build_alias" = x &&
2455   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2456 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2457   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2458
2459 fi
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2461 $as_echo "$ac_cv_build" >&6; }
2462 case $ac_cv_build in
2463 *-*-*) ;;
2464 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2465 esac
2466 build=$ac_cv_build
2467 ac_save_IFS=$IFS; IFS='-'
2468 set x $ac_cv_build
2469 shift
2470 build_cpu=$1
2471 build_vendor=$2
2472 shift; shift
2473 # Remember, the first character of IFS is used to create $*,
2474 # except with old shells:
2475 build_os=$*
2476 IFS=$ac_save_IFS
2477 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2478
2479
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2481 $as_echo_n "checking host system type... " >&6; }
2482 if ${ac_cv_host+:} false; then :
2483   $as_echo_n "(cached) " >&6
2484 else
2485   if test "x$host_alias" = x; then
2486   ac_cv_host=$ac_cv_build
2487 else
2488   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2489     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2490 fi
2491
2492 fi
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2494 $as_echo "$ac_cv_host" >&6; }
2495 case $ac_cv_host in
2496 *-*-*) ;;
2497 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2498 esac
2499 host=$ac_cv_host
2500 ac_save_IFS=$IFS; IFS='-'
2501 set x $ac_cv_host
2502 shift
2503 host_cpu=$1
2504 host_vendor=$2
2505 shift; shift
2506 # Remember, the first character of IFS is used to create $*,
2507 # except with old shells:
2508 host_os=$*
2509 IFS=$ac_save_IFS
2510 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2511
2512
2513 # Backslashify metacharacters that are still active within
2514 # double-quoted strings.
2515 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2516
2517 # Same as above, but do not quote variable references.
2518 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2519
2520 # Sed substitution to delay expansion of an escaped shell variable in a
2521 # double_quote_subst'ed string.
2522 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2523
2524 # Sed substitution to delay expansion of an escaped single quote.
2525 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2526
2527 # Sed substitution to avoid accidental globbing in evaled expressions
2528 no_glob_subst='s/\*/\\\*/g'
2529
2530 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2531 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2532 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2533
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2535 $as_echo_n "checking how to print strings... " >&6; }
2536 # Test print first, because it will be a builtin if present.
2537 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2538    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2539   ECHO='print -r --'
2540 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2541   ECHO='printf %s\n'
2542 else
2543   # Use this function as a fallback that always works.
2544   func_fallback_echo ()
2545   {
2546     eval 'cat <<_LTECHO_EOF
2547 $1
2548 _LTECHO_EOF'
2549   }
2550   ECHO='func_fallback_echo'
2551 fi
2552
2553 # func_echo_all arg...
2554 # Invoke $ECHO with all args, space-separated.
2555 func_echo_all ()
2556 {
2557     $ECHO ""
2558 }
2559
2560 case "$ECHO" in
2561   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2562 $as_echo "printf" >&6; } ;;
2563   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2564 $as_echo "print -r" >&6; } ;;
2565   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2566 $as_echo "cat" >&6; } ;;
2567 esac
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582 ac_ext=c
2583 ac_cpp='$CPP $CPPFLAGS'
2584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2587 if test -n "$ac_tool_prefix"; then
2588   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2589 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591 $as_echo_n "checking for $ac_word... " >&6; }
2592 if ${ac_cv_prog_CC+:} false; then :
2593   $as_echo_n "(cached) " >&6
2594 else
2595   if test -n "$CC"; then
2596   ac_cv_prog_CC="$CC" # Let the user override the test.
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2600 do
2601   IFS=$as_save_IFS
2602   test -z "$as_dir" && as_dir=.
2603     for ac_exec_ext in '' $ac_executable_extensions; do
2604   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2605     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2607     break 2
2608   fi
2609 done
2610   done
2611 IFS=$as_save_IFS
2612
2613 fi
2614 fi
2615 CC=$ac_cv_prog_CC
2616 if test -n "$CC"; then
2617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2618 $as_echo "$CC" >&6; }
2619 else
2620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621 $as_echo "no" >&6; }
2622 fi
2623
2624
2625 fi
2626 if test -z "$ac_cv_prog_CC"; then
2627   ac_ct_CC=$CC
2628   # Extract the first word of "gcc", so it can be a program name with args.
2629 set dummy gcc; ac_word=$2
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631 $as_echo_n "checking for $ac_word... " >&6; }
2632 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2633   $as_echo_n "(cached) " >&6
2634 else
2635   if test -n "$ac_ct_CC"; then
2636   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2637 else
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2640 do
2641   IFS=$as_save_IFS
2642   test -z "$as_dir" && as_dir=.
2643     for ac_exec_ext in '' $ac_executable_extensions; do
2644   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2645     ac_cv_prog_ac_ct_CC="gcc"
2646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2647     break 2
2648   fi
2649 done
2650   done
2651 IFS=$as_save_IFS
2652
2653 fi
2654 fi
2655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2656 if test -n "$ac_ct_CC"; then
2657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2658 $as_echo "$ac_ct_CC" >&6; }
2659 else
2660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661 $as_echo "no" >&6; }
2662 fi
2663
2664   if test "x$ac_ct_CC" = x; then
2665     CC=""
2666   else
2667     case $cross_compiling:$ac_tool_warned in
2668 yes:)
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2671 ac_tool_warned=yes ;;
2672 esac
2673     CC=$ac_ct_CC
2674   fi
2675 else
2676   CC="$ac_cv_prog_CC"
2677 fi
2678
2679 if test -z "$CC"; then
2680           if test -n "$ac_tool_prefix"; then
2681     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2682 set dummy ${ac_tool_prefix}cc; ac_word=$2
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2684 $as_echo_n "checking for $ac_word... " >&6; }
2685 if ${ac_cv_prog_CC+:} false; then :
2686   $as_echo_n "(cached) " >&6
2687 else
2688   if test -n "$CC"; then
2689   ac_cv_prog_CC="$CC" # Let the user override the test.
2690 else
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694   IFS=$as_save_IFS
2695   test -z "$as_dir" && as_dir=.
2696     for ac_exec_ext in '' $ac_executable_extensions; do
2697   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2698     ac_cv_prog_CC="${ac_tool_prefix}cc"
2699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2700     break 2
2701   fi
2702 done
2703   done
2704 IFS=$as_save_IFS
2705
2706 fi
2707 fi
2708 CC=$ac_cv_prog_CC
2709 if test -n "$CC"; then
2710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2711 $as_echo "$CC" >&6; }
2712 else
2713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714 $as_echo "no" >&6; }
2715 fi
2716
2717
2718   fi
2719 fi
2720 if test -z "$CC"; then
2721   # Extract the first word of "cc", so it can be a program name with args.
2722 set dummy cc; ac_word=$2
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724 $as_echo_n "checking for $ac_word... " >&6; }
2725 if ${ac_cv_prog_CC+:} false; then :
2726   $as_echo_n "(cached) " >&6
2727 else
2728   if test -n "$CC"; then
2729   ac_cv_prog_CC="$CC" # Let the user override the test.
2730 else
2731   ac_prog_rejected=no
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735   IFS=$as_save_IFS
2736   test -z "$as_dir" && as_dir=.
2737     for ac_exec_ext in '' $ac_executable_extensions; do
2738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2739     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2740        ac_prog_rejected=yes
2741        continue
2742      fi
2743     ac_cv_prog_CC="cc"
2744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745     break 2
2746   fi
2747 done
2748   done
2749 IFS=$as_save_IFS
2750
2751 if test $ac_prog_rejected = yes; then
2752   # We found a bogon in the path, so make sure we never use it.
2753   set dummy $ac_cv_prog_CC
2754   shift
2755   if test $# != 0; then
2756     # We chose a different compiler from the bogus one.
2757     # However, it has the same basename, so the bogon will be chosen
2758     # first if we set CC to just the basename; use the full file name.
2759     shift
2760     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2761   fi
2762 fi
2763 fi
2764 fi
2765 CC=$ac_cv_prog_CC
2766 if test -n "$CC"; then
2767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2768 $as_echo "$CC" >&6; }
2769 else
2770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2772 fi
2773
2774
2775 fi
2776 if test -z "$CC"; then
2777   if test -n "$ac_tool_prefix"; then
2778   for ac_prog in cl.exe
2779   do
2780     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2781 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783 $as_echo_n "checking for $ac_word... " >&6; }
2784 if ${ac_cv_prog_CC+:} false; then :
2785   $as_echo_n "(cached) " >&6
2786 else
2787   if test -n "$CC"; then
2788   ac_cv_prog_CC="$CC" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2792 do
2793   IFS=$as_save_IFS
2794   test -z "$as_dir" && as_dir=.
2795     for ac_exec_ext in '' $ac_executable_extensions; do
2796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2799     break 2
2800   fi
2801 done
2802   done
2803 IFS=$as_save_IFS
2804
2805 fi
2806 fi
2807 CC=$ac_cv_prog_CC
2808 if test -n "$CC"; then
2809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2810 $as_echo "$CC" >&6; }
2811 else
2812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 $as_echo "no" >&6; }
2814 fi
2815
2816
2817     test -n "$CC" && break
2818   done
2819 fi
2820 if test -z "$CC"; then
2821   ac_ct_CC=$CC
2822   for ac_prog in cl.exe
2823 do
2824   # Extract the first word of "$ac_prog", so it can be a program name with args.
2825 set dummy $ac_prog; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2829   $as_echo_n "(cached) " >&6
2830 else
2831   if test -n "$ac_ct_CC"; then
2832   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837   IFS=$as_save_IFS
2838   test -z "$as_dir" && as_dir=.
2839     for ac_exec_ext in '' $ac_executable_extensions; do
2840   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841     ac_cv_prog_ac_ct_CC="$ac_prog"
2842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843     break 2
2844   fi
2845 done
2846   done
2847 IFS=$as_save_IFS
2848
2849 fi
2850 fi
2851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2852 if test -n "$ac_ct_CC"; then
2853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2854 $as_echo "$ac_ct_CC" >&6; }
2855 else
2856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2858 fi
2859
2860
2861   test -n "$ac_ct_CC" && break
2862 done
2863
2864   if test "x$ac_ct_CC" = x; then
2865     CC=""
2866   else
2867     case $cross_compiling:$ac_tool_warned in
2868 yes:)
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2871 ac_tool_warned=yes ;;
2872 esac
2873     CC=$ac_ct_CC
2874   fi
2875 fi
2876
2877 fi
2878
2879
2880 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2882 as_fn_error $? "no acceptable C compiler found in \$PATH
2883 See \`config.log' for more details" "$LINENO" 5; }
2884
2885 # Provide some information about the compiler.
2886 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2887 set X $ac_compile
2888 ac_compiler=$2
2889 for ac_option in --version -v -V -qversion; do
2890   { { ac_try="$ac_compiler $ac_option >&5"
2891 case "(($ac_try" in
2892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893   *) ac_try_echo=$ac_try;;
2894 esac
2895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2896 $as_echo "$ac_try_echo"; } >&5
2897   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2898   ac_status=$?
2899   if test -s conftest.err; then
2900     sed '10a\
2901 ... rest of stderr output deleted ...
2902          10q' conftest.err >conftest.er1
2903     cat conftest.er1 >&5
2904   fi
2905   rm -f conftest.er1 conftest.err
2906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2907   test $ac_status = 0; }
2908 done
2909
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2911 /* end confdefs.h.  */
2912
2913 int
2914 main ()
2915 {
2916
2917   ;
2918   return 0;
2919 }
2920 _ACEOF
2921 ac_clean_files_save=$ac_clean_files
2922 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2923 # Try to create an executable without -o first, disregard a.out.
2924 # It will help us diagnose broken compilers, and finding out an intuition
2925 # of exeext.
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2927 $as_echo_n "checking whether the C compiler works... " >&6; }
2928 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2929
2930 # The possible output files:
2931 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2932
2933 ac_rmfiles=
2934 for ac_file in $ac_files
2935 do
2936   case $ac_file in
2937     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2938     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2939   esac
2940 done
2941 rm -f $ac_rmfiles
2942
2943 if { { ac_try="$ac_link_default"
2944 case "(($ac_try" in
2945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946   *) ac_try_echo=$ac_try;;
2947 esac
2948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2949 $as_echo "$ac_try_echo"; } >&5
2950   (eval "$ac_link_default") 2>&5
2951   ac_status=$?
2952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2953   test $ac_status = 0; }; then :
2954   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2955 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2956 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2957 # so that the user can short-circuit this test for compilers unknown to
2958 # Autoconf.
2959 for ac_file in $ac_files ''
2960 do
2961   test -f "$ac_file" || continue
2962   case $ac_file in
2963     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2964         ;;
2965     [ab].out )
2966         # We found the default executable, but exeext='' is most
2967         # certainly right.
2968         break;;
2969     *.* )
2970         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2971         then :; else
2972            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2973         fi
2974         # We set ac_cv_exeext here because the later test for it is not
2975         # safe: cross compilers may not add the suffix if given an `-o'
2976         # argument, so we may need to know it at that point already.
2977         # Even if this section looks crufty: it has the advantage of
2978         # actually working.
2979         break;;
2980     * )
2981         break;;
2982   esac
2983 done
2984 test "$ac_cv_exeext" = no && ac_cv_exeext=
2985
2986 else
2987   ac_file=''
2988 fi
2989 if test -z "$ac_file"; then :
2990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 $as_echo "no" >&6; }
2992 $as_echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2994
2995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2997 as_fn_error 77 "C compiler cannot create executables
2998 See \`config.log' for more details" "$LINENO" 5; }
2999 else
3000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3001 $as_echo "yes" >&6; }
3002 fi
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3004 $as_echo_n "checking for C compiler default output file name... " >&6; }
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3006 $as_echo "$ac_file" >&6; }
3007 ac_exeext=$ac_cv_exeext
3008
3009 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3010 ac_clean_files=$ac_clean_files_save
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3012 $as_echo_n "checking for suffix of executables... " >&6; }
3013 if { { ac_try="$ac_link"
3014 case "(($ac_try" in
3015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016   *) ac_try_echo=$ac_try;;
3017 esac
3018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3019 $as_echo "$ac_try_echo"; } >&5
3020   (eval "$ac_link") 2>&5
3021   ac_status=$?
3022   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3023   test $ac_status = 0; }; then :
3024   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3025 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3026 # work properly (i.e., refer to `conftest.exe'), while it won't with
3027 # `rm'.
3028 for ac_file in conftest.exe conftest conftest.*; do
3029   test -f "$ac_file" || continue
3030   case $ac_file in
3031     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3032     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3033           break;;
3034     * ) break;;
3035   esac
3036 done
3037 else
3038   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3040 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3041 See \`config.log' for more details" "$LINENO" 5; }
3042 fi
3043 rm -f conftest conftest$ac_cv_exeext
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3045 $as_echo "$ac_cv_exeext" >&6; }
3046
3047 rm -f conftest.$ac_ext
3048 EXEEXT=$ac_cv_exeext
3049 ac_exeext=$EXEEXT
3050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3051 /* end confdefs.h.  */
3052 #include <stdio.h>
3053 int
3054 main ()
3055 {
3056 FILE *f = fopen ("conftest.out", "w");
3057  return ferror (f) || fclose (f) != 0;
3058
3059   ;
3060   return 0;
3061 }
3062 _ACEOF
3063 ac_clean_files="$ac_clean_files conftest.out"
3064 # Check that the compiler produces executables we can run.  If not, either
3065 # the compiler is broken, or we cross compile.
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3067 $as_echo_n "checking whether we are cross compiling... " >&6; }
3068 if test "$cross_compiling" != yes; then
3069   { { ac_try="$ac_link"
3070 case "(($ac_try" in
3071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072   *) ac_try_echo=$ac_try;;
3073 esac
3074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075 $as_echo "$ac_try_echo"; } >&5
3076   (eval "$ac_link") 2>&5
3077   ac_status=$?
3078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3079   test $ac_status = 0; }
3080   if { ac_try='./conftest$ac_cv_exeext'
3081   { { case "(($ac_try" in
3082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083   *) ac_try_echo=$ac_try;;
3084 esac
3085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3086 $as_echo "$ac_try_echo"; } >&5
3087   (eval "$ac_try") 2>&5
3088   ac_status=$?
3089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3090   test $ac_status = 0; }; }; then
3091     cross_compiling=no
3092   else
3093     if test "$cross_compiling" = maybe; then
3094         cross_compiling=yes
3095     else
3096         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3098 as_fn_error $? "cannot run C compiled programs.
3099 If you meant to cross compile, use \`--host'.
3100 See \`config.log' for more details" "$LINENO" 5; }
3101     fi
3102   fi
3103 fi
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3105 $as_echo "$cross_compiling" >&6; }
3106
3107 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3108 ac_clean_files=$ac_clean_files_save
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3110 $as_echo_n "checking for suffix of object files... " >&6; }
3111 if ${ac_cv_objext+:} false; then :
3112   $as_echo_n "(cached) " >&6
3113 else
3114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3115 /* end confdefs.h.  */
3116
3117 int
3118 main ()
3119 {
3120
3121   ;
3122   return 0;
3123 }
3124 _ACEOF
3125 rm -f conftest.o conftest.obj
3126 if { { ac_try="$ac_compile"
3127 case "(($ac_try" in
3128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129   *) ac_try_echo=$ac_try;;
3130 esac
3131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132 $as_echo "$ac_try_echo"; } >&5
3133   (eval "$ac_compile") 2>&5
3134   ac_status=$?
3135   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136   test $ac_status = 0; }; then :
3137   for ac_file in conftest.o conftest.obj conftest.*; do
3138   test -f "$ac_file" || continue;
3139   case $ac_file in
3140     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3141     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3142        break;;
3143   esac
3144 done
3145 else
3146   $as_echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3148
3149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3151 as_fn_error $? "cannot compute suffix of object files: cannot compile
3152 See \`config.log' for more details" "$LINENO" 5; }
3153 fi
3154 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3155 fi
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3157 $as_echo "$ac_cv_objext" >&6; }
3158 OBJEXT=$ac_cv_objext
3159 ac_objext=$OBJEXT
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3161 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3162 if ${ac_cv_c_compiler_gnu+:} false; then :
3163   $as_echo_n "(cached) " >&6
3164 else
3165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3166 /* end confdefs.h.  */
3167
3168 int
3169 main ()
3170 {
3171 #ifndef __GNUC__
3172        choke me
3173 #endif
3174
3175   ;
3176   return 0;
3177 }
3178 _ACEOF
3179 if ac_fn_c_try_compile "$LINENO"; then :
3180   ac_compiler_gnu=yes
3181 else
3182   ac_compiler_gnu=no
3183 fi
3184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3186
3187 fi
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3189 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3190 if test $ac_compiler_gnu = yes; then
3191   GCC=yes
3192 else
3193   GCC=
3194 fi
3195 ac_test_CFLAGS=${CFLAGS+set}
3196 ac_save_CFLAGS=$CFLAGS
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3198 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3199 if ${ac_cv_prog_cc_g+:} false; then :
3200   $as_echo_n "(cached) " >&6
3201 else
3202   ac_save_c_werror_flag=$ac_c_werror_flag
3203    ac_c_werror_flag=yes
3204    ac_cv_prog_cc_g=no
3205    CFLAGS="-g"
3206    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207 /* end confdefs.h.  */
3208
3209 int
3210 main ()
3211 {
3212
3213   ;
3214   return 0;
3215 }
3216 _ACEOF
3217 if ac_fn_c_try_compile "$LINENO"; then :
3218   ac_cv_prog_cc_g=yes
3219 else
3220   CFLAGS=""
3221       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222 /* end confdefs.h.  */
3223
3224 int
3225 main ()
3226 {
3227
3228   ;
3229   return 0;
3230 }
3231 _ACEOF
3232 if ac_fn_c_try_compile "$LINENO"; then :
3233
3234 else
3235   ac_c_werror_flag=$ac_save_c_werror_flag
3236          CFLAGS="-g"
3237          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 /* end confdefs.h.  */
3239
3240 int
3241 main ()
3242 {
3243
3244   ;
3245   return 0;
3246 }
3247 _ACEOF
3248 if ac_fn_c_try_compile "$LINENO"; then :
3249   ac_cv_prog_cc_g=yes
3250 fi
3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252 fi
3253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3254 fi
3255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256    ac_c_werror_flag=$ac_save_c_werror_flag
3257 fi
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3259 $as_echo "$ac_cv_prog_cc_g" >&6; }
3260 if test "$ac_test_CFLAGS" = set; then
3261   CFLAGS=$ac_save_CFLAGS
3262 elif test $ac_cv_prog_cc_g = yes; then
3263   if test "$GCC" = yes; then
3264     CFLAGS="-g -O2"
3265   else
3266     CFLAGS="-g"
3267   fi
3268 else
3269   if test "$GCC" = yes; then
3270     CFLAGS="-O2"
3271   else
3272     CFLAGS=
3273   fi
3274 fi
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3276 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3277 if ${ac_cv_prog_cc_c89+:} false; then :
3278   $as_echo_n "(cached) " >&6
3279 else
3280   ac_cv_prog_cc_c89=no
3281 ac_save_CC=$CC
3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 /* end confdefs.h.  */
3284 #include <stdarg.h>
3285 #include <stdio.h>
3286 struct stat;
3287 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3288 struct buf { int x; };
3289 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3290 static char *e (p, i)
3291      char **p;
3292      int i;
3293 {
3294   return p[i];
3295 }
3296 static char *f (char * (*g) (char **, int), char **p, ...)
3297 {
3298   char *s;
3299   va_list v;
3300   va_start (v,p);
3301   s = g (p, va_arg (v,int));
3302   va_end (v);
3303   return s;
3304 }
3305
3306 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3307    function prototypes and stuff, but not '\xHH' hex character constants.
3308    These don't provoke an error unfortunately, instead are silently treated
3309    as 'x'.  The following induces an error, until -std is added to get
3310    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3311    array size at least.  It's necessary to write '\x00'==0 to get something
3312    that's true only with -std.  */
3313 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3314
3315 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3316    inside strings and character constants.  */
3317 #define FOO(x) 'x'
3318 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3319
3320 int test (int i, double x);
3321 struct s1 {int (*f) (int a);};
3322 struct s2 {int (*f) (double a);};
3323 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3324 int argc;
3325 char **argv;
3326 int
3327 main ()
3328 {
3329 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3330   ;
3331   return 0;
3332 }
3333 _ACEOF
3334 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3335         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3336 do
3337   CC="$ac_save_CC $ac_arg"
3338   if ac_fn_c_try_compile "$LINENO"; then :
3339   ac_cv_prog_cc_c89=$ac_arg
3340 fi
3341 rm -f core conftest.err conftest.$ac_objext
3342   test "x$ac_cv_prog_cc_c89" != "xno" && break
3343 done
3344 rm -f conftest.$ac_ext
3345 CC=$ac_save_CC
3346
3347 fi
3348 # AC_CACHE_VAL
3349 case "x$ac_cv_prog_cc_c89" in
3350   x)
3351     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3352 $as_echo "none needed" >&6; } ;;
3353   xno)
3354     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3355 $as_echo "unsupported" >&6; } ;;
3356   *)
3357     CC="$CC $ac_cv_prog_cc_c89"
3358     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3359 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3360 esac
3361 if test "x$ac_cv_prog_cc_c89" != xno; then :
3362
3363 fi
3364
3365 ac_ext=c
3366 ac_cpp='$CPP $CPPFLAGS'
3367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3370
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3372 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3373 if ${ac_cv_path_SED+:} false; then :
3374   $as_echo_n "(cached) " >&6
3375 else
3376             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3377      for ac_i in 1 2 3 4 5 6 7; do
3378        ac_script="$ac_script$as_nl$ac_script"
3379      done
3380      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3381      { ac_script=; unset ac_script;}
3382      if test -z "$SED"; then
3383   ac_path_SED_found=false
3384   # Loop through the user's path and test for each of PROGNAME-LIST
3385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388   IFS=$as_save_IFS
3389   test -z "$as_dir" && as_dir=.
3390     for ac_prog in sed gsed; do
3391     for ac_exec_ext in '' $ac_executable_extensions; do
3392       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3393       as_fn_executable_p "$ac_path_SED" || continue
3394 # Check for GNU ac_path_SED and select it if it is found.
3395   # Check for GNU $ac_path_SED
3396 case `"$ac_path_SED" --version 2>&1` in
3397 *GNU*)
3398   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3399 *)
3400   ac_count=0
3401   $as_echo_n 0123456789 >"conftest.in"
3402   while :
3403   do
3404     cat "conftest.in" "conftest.in" >"conftest.tmp"
3405     mv "conftest.tmp" "conftest.in"
3406     cp "conftest.in" "conftest.nl"
3407     $as_echo '' >> "conftest.nl"
3408     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3409     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3410     as_fn_arith $ac_count + 1 && ac_count=$as_val
3411     if test $ac_count -gt ${ac_path_SED_max-0}; then
3412       # Best one so far, save it but keep looking for a better one
3413       ac_cv_path_SED="$ac_path_SED"
3414       ac_path_SED_max=$ac_count
3415     fi
3416     # 10*(2^10) chars as input seems more than enough
3417     test $ac_count -gt 10 && break
3418   done
3419   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3420 esac
3421
3422       $ac_path_SED_found && break 3
3423     done
3424   done
3425   done
3426 IFS=$as_save_IFS
3427   if test -z "$ac_cv_path_SED"; then
3428     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3429   fi
3430 else
3431   ac_cv_path_SED=$SED
3432 fi
3433
3434 fi
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3436 $as_echo "$ac_cv_path_SED" >&6; }
3437  SED="$ac_cv_path_SED"
3438   rm -f conftest.sed
3439
3440 test -z "$SED" && SED=sed
3441 Xsed="$SED -e 1s/^X//"
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3454 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3455 if ${ac_cv_path_GREP+:} false; then :
3456   $as_echo_n "(cached) " >&6
3457 else
3458   if test -z "$GREP"; then
3459   ac_path_GREP_found=false
3460   # Loop through the user's path and test for each of PROGNAME-LIST
3461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3463 do
3464   IFS=$as_save_IFS
3465   test -z "$as_dir" && as_dir=.
3466     for ac_prog in grep ggrep; do
3467     for ac_exec_ext in '' $ac_executable_extensions; do
3468       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3469       as_fn_executable_p "$ac_path_GREP" || continue
3470 # Check for GNU ac_path_GREP and select it if it is found.
3471   # Check for GNU $ac_path_GREP
3472 case `"$ac_path_GREP" --version 2>&1` in
3473 *GNU*)
3474   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3475 *)
3476   ac_count=0
3477   $as_echo_n 0123456789 >"conftest.in"
3478   while :
3479   do
3480     cat "conftest.in" "conftest.in" >"conftest.tmp"
3481     mv "conftest.tmp" "conftest.in"
3482     cp "conftest.in" "conftest.nl"
3483     $as_echo 'GREP' >> "conftest.nl"
3484     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3485     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3486     as_fn_arith $ac_count + 1 && ac_count=$as_val
3487     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3488       # Best one so far, save it but keep looking for a better one
3489       ac_cv_path_GREP="$ac_path_GREP"
3490       ac_path_GREP_max=$ac_count
3491     fi
3492     # 10*(2^10) chars as input seems more than enough
3493     test $ac_count -gt 10 && break
3494   done
3495   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3496 esac
3497
3498       $ac_path_GREP_found && break 3
3499     done
3500   done
3501   done
3502 IFS=$as_save_IFS
3503   if test -z "$ac_cv_path_GREP"; then
3504     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3505   fi
3506 else
3507   ac_cv_path_GREP=$GREP
3508 fi
3509
3510 fi
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3512 $as_echo "$ac_cv_path_GREP" >&6; }
3513  GREP="$ac_cv_path_GREP"
3514
3515
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3517 $as_echo_n "checking for egrep... " >&6; }
3518 if ${ac_cv_path_EGREP+:} false; then :
3519   $as_echo_n "(cached) " >&6
3520 else
3521   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3522    then ac_cv_path_EGREP="$GREP -E"
3523    else
3524      if test -z "$EGREP"; then
3525   ac_path_EGREP_found=false
3526   # Loop through the user's path and test for each of PROGNAME-LIST
3527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3529 do
3530   IFS=$as_save_IFS
3531   test -z "$as_dir" && as_dir=.
3532     for ac_prog in egrep; do
3533     for ac_exec_ext in '' $ac_executable_extensions; do
3534       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3535       as_fn_executable_p "$ac_path_EGREP" || continue
3536 # Check for GNU ac_path_EGREP and select it if it is found.
3537   # Check for GNU $ac_path_EGREP
3538 case `"$ac_path_EGREP" --version 2>&1` in
3539 *GNU*)
3540   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3541 *)
3542   ac_count=0
3543   $as_echo_n 0123456789 >"conftest.in"
3544   while :
3545   do
3546     cat "conftest.in" "conftest.in" >"conftest.tmp"
3547     mv "conftest.tmp" "conftest.in"
3548     cp "conftest.in" "conftest.nl"
3549     $as_echo 'EGREP' >> "conftest.nl"
3550     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3551     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3552     as_fn_arith $ac_count + 1 && ac_count=$as_val
3553     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3554       # Best one so far, save it but keep looking for a better one
3555       ac_cv_path_EGREP="$ac_path_EGREP"
3556       ac_path_EGREP_max=$ac_count
3557     fi
3558     # 10*(2^10) chars as input seems more than enough
3559     test $ac_count -gt 10 && break
3560   done
3561   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3562 esac
3563
3564       $ac_path_EGREP_found && break 3
3565     done
3566   done
3567   done
3568 IFS=$as_save_IFS
3569   if test -z "$ac_cv_path_EGREP"; then
3570     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3571   fi
3572 else
3573   ac_cv_path_EGREP=$EGREP
3574 fi
3575
3576    fi
3577 fi
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3579 $as_echo "$ac_cv_path_EGREP" >&6; }
3580  EGREP="$ac_cv_path_EGREP"
3581
3582
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3584 $as_echo_n "checking for fgrep... " >&6; }
3585 if ${ac_cv_path_FGREP+:} false; then :
3586   $as_echo_n "(cached) " >&6
3587 else
3588   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3589    then ac_cv_path_FGREP="$GREP -F"
3590    else
3591      if test -z "$FGREP"; then
3592   ac_path_FGREP_found=false
3593   # Loop through the user's path and test for each of PROGNAME-LIST
3594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3596 do
3597   IFS=$as_save_IFS
3598   test -z "$as_dir" && as_dir=.
3599     for ac_prog in fgrep; do
3600     for ac_exec_ext in '' $ac_executable_extensions; do
3601       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3602       as_fn_executable_p "$ac_path_FGREP" || continue
3603 # Check for GNU ac_path_FGREP and select it if it is found.
3604   # Check for GNU $ac_path_FGREP
3605 case `"$ac_path_FGREP" --version 2>&1` in
3606 *GNU*)
3607   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3608 *)
3609   ac_count=0
3610   $as_echo_n 0123456789 >"conftest.in"
3611   while :
3612   do
3613     cat "conftest.in" "conftest.in" >"conftest.tmp"
3614     mv "conftest.tmp" "conftest.in"
3615     cp "conftest.in" "conftest.nl"
3616     $as_echo 'FGREP' >> "conftest.nl"
3617     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3618     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3619     as_fn_arith $ac_count + 1 && ac_count=$as_val
3620     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3621       # Best one so far, save it but keep looking for a better one
3622       ac_cv_path_FGREP="$ac_path_FGREP"
3623       ac_path_FGREP_max=$ac_count
3624     fi
3625     # 10*(2^10) chars as input seems more than enough
3626     test $ac_count -gt 10 && break
3627   done
3628   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3629 esac
3630
3631       $ac_path_FGREP_found && break 3
3632     done
3633   done
3634   done
3635 IFS=$as_save_IFS
3636   if test -z "$ac_cv_path_FGREP"; then
3637     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3638   fi
3639 else
3640   ac_cv_path_FGREP=$FGREP
3641 fi
3642
3643    fi
3644 fi
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3646 $as_echo "$ac_cv_path_FGREP" >&6; }
3647  FGREP="$ac_cv_path_FGREP"
3648
3649
3650 test -z "$GREP" && GREP=grep
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670 # Check whether --with-gnu-ld was given.
3671 if test "${with_gnu_ld+set}" = set; then :
3672   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3673 else
3674   with_gnu_ld=no
3675 fi
3676
3677 ac_prog=ld
3678 if test "$GCC" = yes; then
3679   # Check if gcc -print-prog-name=ld gives a path.
3680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3681 $as_echo_n "checking for ld used by $CC... " >&6; }
3682   case $host in
3683   *-*-mingw*)
3684     # gcc leaves a trailing carriage return which upsets mingw
3685     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3686   *)
3687     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3688   esac
3689   case $ac_prog in
3690     # Accept absolute paths.
3691     [\\/]* | ?:[\\/]*)
3692       re_direlt='/[^/][^/]*/\.\./'
3693       # Canonicalize the pathname of ld
3694       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3695       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3696         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3697       done
3698       test -z "$LD" && LD="$ac_prog"
3699       ;;
3700   "")
3701     # If it fails, then pretend we aren't using GCC.
3702     ac_prog=ld
3703     ;;
3704   *)
3705     # If it is relative, then search for the first ld in PATH.
3706     with_gnu_ld=unknown
3707     ;;
3708   esac
3709 elif test "$with_gnu_ld" = yes; then
3710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3711 $as_echo_n "checking for GNU ld... " >&6; }
3712 else
3713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3714 $as_echo_n "checking for non-GNU ld... " >&6; }
3715 fi
3716 if ${lt_cv_path_LD+:} false; then :
3717   $as_echo_n "(cached) " >&6
3718 else
3719   if test -z "$LD"; then
3720   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3721   for ac_dir in $PATH; do
3722     IFS="$lt_save_ifs"
3723     test -z "$ac_dir" && ac_dir=.
3724     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3725       lt_cv_path_LD="$ac_dir/$ac_prog"
3726       # Check to see if the program is GNU ld.  I'd rather use --version,
3727       # but apparently some variants of GNU ld only accept -v.
3728       # Break only if it was the GNU/non-GNU ld that we prefer.
3729       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3730       *GNU* | *'with BFD'*)
3731         test "$with_gnu_ld" != no && break
3732         ;;
3733       *)
3734         test "$with_gnu_ld" != yes && break
3735         ;;
3736       esac
3737     fi
3738   done
3739   IFS="$lt_save_ifs"
3740 else
3741   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3742 fi
3743 fi
3744
3745 LD="$lt_cv_path_LD"
3746 if test -n "$LD"; then
3747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3748 $as_echo "$LD" >&6; }
3749 else
3750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751 $as_echo "no" >&6; }
3752 fi
3753 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3755 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3756 if ${lt_cv_prog_gnu_ld+:} false; then :
3757   $as_echo_n "(cached) " >&6
3758 else
3759   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3760 case `$LD -v 2>&1 </dev/null` in
3761 *GNU* | *'with BFD'*)
3762   lt_cv_prog_gnu_ld=yes
3763   ;;
3764 *)
3765   lt_cv_prog_gnu_ld=no
3766   ;;
3767 esac
3768 fi
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3770 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3771 with_gnu_ld=$lt_cv_prog_gnu_ld
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3782 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3783 if ${lt_cv_path_NM+:} false; then :
3784   $as_echo_n "(cached) " >&6
3785 else
3786   if test -n "$NM"; then
3787   # Let the user override the test.
3788   lt_cv_path_NM="$NM"
3789 else
3790   lt_nm_to_check="${ac_tool_prefix}nm"
3791   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3792     lt_nm_to_check="$lt_nm_to_check nm"
3793   fi
3794   for lt_tmp_nm in $lt_nm_to_check; do
3795     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3796     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3797       IFS="$lt_save_ifs"
3798       test -z "$ac_dir" && ac_dir=.
3799       tmp_nm="$ac_dir/$lt_tmp_nm"
3800       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3801         # Check to see if the nm accepts a BSD-compat flag.
3802         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3803         #   nm: unknown option "B" ignored
3804         # Tru64's nm complains that /dev/null is an invalid object file
3805         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3806         */dev/null* | *'Invalid file or object type'*)
3807           lt_cv_path_NM="$tmp_nm -B"
3808           break
3809           ;;
3810         *)
3811           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3812           */dev/null*)
3813             lt_cv_path_NM="$tmp_nm -p"
3814             break
3815             ;;
3816           *)
3817             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3818             continue # so that we can try to find one that supports BSD flags
3819             ;;
3820           esac
3821           ;;
3822         esac
3823       fi
3824     done
3825     IFS="$lt_save_ifs"
3826   done
3827   : ${lt_cv_path_NM=no}
3828 fi
3829 fi
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3831 $as_echo "$lt_cv_path_NM" >&6; }
3832 if test "$lt_cv_path_NM" != "no"; then
3833   NM="$lt_cv_path_NM"
3834 else
3835   # Didn't find any BSD compatible name lister, look for dumpbin.
3836   if test -n "$DUMPBIN"; then :
3837     # Let the user override the test.
3838   else
3839     if test -n "$ac_tool_prefix"; then
3840   for ac_prog in dumpbin "link -dump"
3841   do
3842     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3843 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845 $as_echo_n "checking for $ac_word... " >&6; }
3846 if ${ac_cv_prog_DUMPBIN+:} false; then :
3847   $as_echo_n "(cached) " >&6
3848 else
3849   if test -n "$DUMPBIN"; then
3850   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3851 else
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH
3854 do
3855   IFS=$as_save_IFS
3856   test -z "$as_dir" && as_dir=.
3857     for ac_exec_ext in '' $ac_executable_extensions; do
3858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3861     break 2
3862   fi
3863 done
3864   done
3865 IFS=$as_save_IFS
3866
3867 fi
3868 fi
3869 DUMPBIN=$ac_cv_prog_DUMPBIN
3870 if test -n "$DUMPBIN"; then
3871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3872 $as_echo "$DUMPBIN" >&6; }
3873 else
3874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875 $as_echo "no" >&6; }
3876 fi
3877
3878
3879     test -n "$DUMPBIN" && break
3880   done
3881 fi
3882 if test -z "$DUMPBIN"; then
3883   ac_ct_DUMPBIN=$DUMPBIN
3884   for ac_prog in dumpbin "link -dump"
3885 do
3886   # Extract the first word of "$ac_prog", so it can be a program name with args.
3887 set dummy $ac_prog; ac_word=$2
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3889 $as_echo_n "checking for $ac_word... " >&6; }
3890 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3891   $as_echo_n "(cached) " >&6
3892 else
3893   if test -n "$ac_ct_DUMPBIN"; then
3894   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3895 else
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 for as_dir in $PATH
3898 do
3899   IFS=$as_save_IFS
3900   test -z "$as_dir" && as_dir=.
3901     for ac_exec_ext in '' $ac_executable_extensions; do
3902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3903     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3905     break 2
3906   fi
3907 done
3908   done
3909 IFS=$as_save_IFS
3910
3911 fi
3912 fi
3913 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3914 if test -n "$ac_ct_DUMPBIN"; then
3915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3916 $as_echo "$ac_ct_DUMPBIN" >&6; }
3917 else
3918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919 $as_echo "no" >&6; }
3920 fi
3921
3922
3923   test -n "$ac_ct_DUMPBIN" && break
3924 done
3925
3926   if test "x$ac_ct_DUMPBIN" = x; then
3927     DUMPBIN=":"
3928   else
3929     case $cross_compiling:$ac_tool_warned in
3930 yes:)
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3933 ac_tool_warned=yes ;;
3934 esac
3935     DUMPBIN=$ac_ct_DUMPBIN
3936   fi
3937 fi
3938
3939     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3940     *COFF*)
3941       DUMPBIN="$DUMPBIN -symbols"
3942       ;;
3943     *)
3944       DUMPBIN=:
3945       ;;
3946     esac
3947   fi
3948
3949   if test "$DUMPBIN" != ":"; then
3950     NM="$DUMPBIN"
3951   fi
3952 fi
3953 test -z "$NM" && NM=nm
3954
3955
3956
3957
3958
3959
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3961 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3962 if ${lt_cv_nm_interface+:} false; then :
3963   $as_echo_n "(cached) " >&6
3964 else
3965   lt_cv_nm_interface="BSD nm"
3966   echo "int some_variable = 0;" > conftest.$ac_ext
3967   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
3968   (eval "$ac_compile" 2>conftest.err)
3969   cat conftest.err >&5
3970   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3971   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3972   cat conftest.err >&5
3973   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
3974   cat conftest.out >&5
3975   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3976     lt_cv_nm_interface="MS dumpbin"
3977   fi
3978   rm -f conftest*
3979 fi
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3981 $as_echo "$lt_cv_nm_interface" >&6; }
3982
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3984 $as_echo_n "checking whether ln -s works... " >&6; }
3985 LN_S=$as_ln_s
3986 if test "$LN_S" = "ln -s"; then
3987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3988 $as_echo "yes" >&6; }
3989 else
3990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3991 $as_echo "no, using $LN_S" >&6; }
3992 fi
3993
3994 # find the maximum length of command line arguments
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3996 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3997 if ${lt_cv_sys_max_cmd_len+:} false; then :
3998   $as_echo_n "(cached) " >&6
3999 else
4000     i=0
4001   teststring="ABCD"
4002
4003   case $build_os in
4004   msdosdjgpp*)
4005     # On DJGPP, this test can blow up pretty badly due to problems in libc
4006     # (any single argument exceeding 2000 bytes causes a buffer overrun
4007     # during glob expansion).  Even if it were fixed, the result of this
4008     # check would be larger than it should be.
4009     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4010     ;;
4011
4012   gnu*)
4013     # Under GNU Hurd, this test is not required because there is
4014     # no limit to the length of command line arguments.
4015     # Libtool will interpret -1 as no limit whatsoever
4016     lt_cv_sys_max_cmd_len=-1;
4017     ;;
4018
4019   cygwin* | mingw* | cegcc*)
4020     # On Win9x/ME, this test blows up -- it succeeds, but takes
4021     # about 5 minutes as the teststring grows exponentially.
4022     # Worse, since 9x/ME are not pre-emptively multitasking,
4023     # you end up with a "frozen" computer, even though with patience
4024     # the test eventually succeeds (with a max line length of 256k).
4025     # Instead, let's just punt: use the minimum linelength reported by
4026     # all of the supported platforms: 8192 (on NT/2K/XP).
4027     lt_cv_sys_max_cmd_len=8192;
4028     ;;
4029
4030   mint*)
4031     # On MiNT this can take a long time and run out of memory.
4032     lt_cv_sys_max_cmd_len=8192;
4033     ;;
4034
4035   amigaos*)
4036     # On AmigaOS with pdksh, this test takes hours, literally.
4037     # So we just punt and use a minimum line length of 8192.
4038     lt_cv_sys_max_cmd_len=8192;
4039     ;;
4040
4041   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4042     # This has been around since 386BSD, at least.  Likely further.
4043     if test -x /sbin/sysctl; then
4044       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4045     elif test -x /usr/sbin/sysctl; then
4046       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4047     else
4048       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4049     fi
4050     # And add a safety zone
4051     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4052     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4053     ;;
4054
4055   interix*)
4056     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4057     lt_cv_sys_max_cmd_len=196608
4058     ;;
4059
4060   os2*)
4061     # The test takes a long time on OS/2.
4062     lt_cv_sys_max_cmd_len=8192
4063     ;;
4064
4065   osf*)
4066     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4067     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4068     # nice to cause kernel panics so lets avoid the loop below.
4069     # First set a reasonable default.
4070     lt_cv_sys_max_cmd_len=16384
4071     #
4072     if test -x /sbin/sysconfig; then
4073       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4074         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4075       esac
4076     fi
4077     ;;
4078   sco3.2v5*)
4079     lt_cv_sys_max_cmd_len=102400
4080     ;;
4081   sysv5* | sco5v6* | sysv4.2uw2*)
4082     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4083     if test -n "$kargmax"; then
4084       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4085     else
4086       lt_cv_sys_max_cmd_len=32768
4087     fi
4088     ;;
4089   *)
4090     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4091     if test -n "$lt_cv_sys_max_cmd_len"; then
4092       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4093       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4094     else
4095       # Make teststring a little bigger before we do anything with it.
4096       # a 1K string should be a reasonable start.
4097       for i in 1 2 3 4 5 6 7 8 ; do
4098         teststring=$teststring$teststring
4099       done
4100       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4101       # If test is not a shell built-in, we'll probably end up computing a
4102       # maximum length that is only half of the actual maximum length, but
4103       # we can't tell.
4104       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4105                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4106               test $i != 17 # 1/2 MB should be enough
4107       do
4108         i=`expr $i + 1`
4109         teststring=$teststring$teststring
4110       done
4111       # Only check the string length outside the loop.
4112       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4113       teststring=
4114       # Add a significant safety factor because C++ compilers can tack on
4115       # massive amounts of additional arguments before passing them to the
4116       # linker.  It appears as though 1/2 is a usable value.
4117       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4118     fi
4119     ;;
4120   esac
4121
4122 fi
4123
4124 if test -n $lt_cv_sys_max_cmd_len ; then
4125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4126 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4127 else
4128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4129 $as_echo "none" >&6; }
4130 fi
4131 max_cmd_len=$lt_cv_sys_max_cmd_len
4132
4133
4134
4135
4136
4137
4138 : ${CP="cp -f"}
4139 : ${MV="mv -f"}
4140 : ${RM="rm -f"}
4141
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4143 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4144 # Try some XSI features
4145 xsi_shell=no
4146 ( _lt_dummy="a/b/c"
4147   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4148       = c,a/b,b/c, \
4149     && eval 'test $(( 1 + 1 )) -eq 2 \
4150     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4151   && xsi_shell=yes
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4153 $as_echo "$xsi_shell" >&6; }
4154
4155
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4157 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4158 lt_shell_append=no
4159 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4160     >/dev/null 2>&1 \
4161   && lt_shell_append=yes
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4163 $as_echo "$lt_shell_append" >&6; }
4164
4165
4166 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4167   lt_unset=unset
4168 else
4169   lt_unset=false
4170 fi
4171
4172
4173
4174
4175
4176 # test EBCDIC or ASCII
4177 case `echo X|tr X '\101'` in
4178  A) # ASCII based system
4179     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4180   lt_SP2NL='tr \040 \012'
4181   lt_NL2SP='tr \015\012 \040\040'
4182   ;;
4183  *) # EBCDIC based system
4184   lt_SP2NL='tr \100 \n'
4185   lt_NL2SP='tr \r\n \100\100'
4186   ;;
4187 esac
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4198 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4199 if ${lt_cv_to_host_file_cmd+:} false; then :
4200   $as_echo_n "(cached) " >&6
4201 else
4202   case $host in
4203   *-*-mingw* )
4204     case $build in
4205       *-*-mingw* ) # actually msys
4206         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4207         ;;
4208       *-*-cygwin* )
4209         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4210         ;;
4211       * ) # otherwise, assume *nix
4212         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4213         ;;
4214     esac
4215     ;;
4216   *-*-cygwin* )
4217     case $build in
4218       *-*-mingw* ) # actually msys
4219         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4220         ;;
4221       *-*-cygwin* )
4222         lt_cv_to_host_file_cmd=func_convert_file_noop
4223         ;;
4224       * ) # otherwise, assume *nix
4225         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4226         ;;
4227     esac
4228     ;;
4229   * ) # unhandled hosts (and "normal" native builds)
4230     lt_cv_to_host_file_cmd=func_convert_file_noop
4231     ;;
4232 esac
4233
4234 fi
4235
4236 to_host_file_cmd=$lt_cv_to_host_file_cmd
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4238 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4239
4240
4241
4242
4243
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4245 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4246 if ${lt_cv_to_tool_file_cmd+:} false; then :
4247   $as_echo_n "(cached) " >&6
4248 else
4249   #assume ordinary cross tools, or native build.
4250 lt_cv_to_tool_file_cmd=func_convert_file_noop
4251 case $host in
4252   *-*-mingw* )
4253     case $build in
4254       *-*-mingw* ) # actually msys
4255         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4256         ;;
4257     esac
4258     ;;
4259 esac
4260
4261 fi
4262
4263 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4265 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4266
4267
4268
4269
4270
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4272 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4273 if ${lt_cv_ld_reload_flag+:} false; then :
4274   $as_echo_n "(cached) " >&6
4275 else
4276   lt_cv_ld_reload_flag='-r'
4277 fi
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4279 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4280 reload_flag=$lt_cv_ld_reload_flag
4281 case $reload_flag in
4282 "" | " "*) ;;
4283 *) reload_flag=" $reload_flag" ;;
4284 esac
4285 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4286 case $host_os in
4287   cygwin* | mingw* | pw32* | cegcc*)
4288     if test "$GCC" != yes; then
4289       reload_cmds=false
4290     fi
4291     ;;
4292   darwin*)
4293     if test "$GCC" = yes; then
4294       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4295     else
4296       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4297     fi
4298     ;;
4299 esac
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309 if test -n "$ac_tool_prefix"; then
4310   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4311 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4313 $as_echo_n "checking for $ac_word... " >&6; }
4314 if ${ac_cv_prog_OBJDUMP+:} false; then :
4315   $as_echo_n "(cached) " >&6
4316 else
4317   if test -n "$OBJDUMP"; then
4318   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4319 else
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH
4322 do
4323   IFS=$as_save_IFS
4324   test -z "$as_dir" && as_dir=.
4325     for ac_exec_ext in '' $ac_executable_extensions; do
4326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4327     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4329     break 2
4330   fi
4331 done
4332   done
4333 IFS=$as_save_IFS
4334
4335 fi
4336 fi
4337 OBJDUMP=$ac_cv_prog_OBJDUMP
4338 if test -n "$OBJDUMP"; then
4339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4340 $as_echo "$OBJDUMP" >&6; }
4341 else
4342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343 $as_echo "no" >&6; }
4344 fi
4345
4346
4347 fi
4348 if test -z "$ac_cv_prog_OBJDUMP"; then
4349   ac_ct_OBJDUMP=$OBJDUMP
4350   # Extract the first word of "objdump", so it can be a program name with args.
4351 set dummy objdump; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4355   $as_echo_n "(cached) " >&6
4356 else
4357   if test -n "$ac_ct_OBJDUMP"; then
4358   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4362 do
4363   IFS=$as_save_IFS
4364   test -z "$as_dir" && as_dir=.
4365     for ac_exec_ext in '' $ac_executable_extensions; do
4366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4367     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369     break 2
4370   fi
4371 done
4372   done
4373 IFS=$as_save_IFS
4374
4375 fi
4376 fi
4377 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4378 if test -n "$ac_ct_OBJDUMP"; then
4379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4380 $as_echo "$ac_ct_OBJDUMP" >&6; }
4381 else
4382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4384 fi
4385
4386   if test "x$ac_ct_OBJDUMP" = x; then
4387     OBJDUMP="false"
4388   else
4389     case $cross_compiling:$ac_tool_warned in
4390 yes:)
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4393 ac_tool_warned=yes ;;
4394 esac
4395     OBJDUMP=$ac_ct_OBJDUMP
4396   fi
4397 else
4398   OBJDUMP="$ac_cv_prog_OBJDUMP"
4399 fi
4400
4401 test -z "$OBJDUMP" && OBJDUMP=objdump
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4412 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4413 if ${lt_cv_deplibs_check_method+:} false; then :
4414   $as_echo_n "(cached) " >&6
4415 else
4416   lt_cv_file_magic_cmd='$MAGIC_CMD'
4417 lt_cv_file_magic_test_file=
4418 lt_cv_deplibs_check_method='unknown'
4419 # Need to set the preceding variable on all platforms that support
4420 # interlibrary dependencies.
4421 # 'none' -- dependencies not supported.
4422 # `unknown' -- same as none, but documents that we really don't know.
4423 # 'pass_all' -- all dependencies passed with no checks.
4424 # 'test_compile' -- check by making test program.
4425 # 'file_magic [[regex]]' -- check by looking for files in library path
4426 # which responds to the $file_magic_cmd with a given extended regex.
4427 # If you have `file' or equivalent on your system and you're not sure
4428 # whether `pass_all' will *always* work, you probably want this one.
4429
4430 case $host_os in
4431 aix[4-9]*)
4432   lt_cv_deplibs_check_method=pass_all
4433   ;;
4434
4435 beos*)
4436   lt_cv_deplibs_check_method=pass_all
4437   ;;
4438
4439 bsdi[45]*)
4440   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4441   lt_cv_file_magic_cmd='/usr/bin/file -L'
4442   lt_cv_file_magic_test_file=/shlib/libc.so
4443   ;;
4444
4445 cygwin*)
4446   # func_win32_libid is a shell function defined in ltmain.sh
4447   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4448   lt_cv_file_magic_cmd='func_win32_libid'
4449   ;;
4450
4451 mingw* | pw32*)
4452   # Base MSYS/MinGW do not provide the 'file' command needed by
4453   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4454   # unless we find 'file', for example because we are cross-compiling.
4455   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4456   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4457     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4458     lt_cv_file_magic_cmd='func_win32_libid'
4459   else
4460     # Keep this pattern in sync with the one in func_win32_libid.
4461     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4462     lt_cv_file_magic_cmd='$OBJDUMP -f'
4463   fi
4464   ;;
4465
4466 cegcc*)
4467   # use the weaker test based on 'objdump'. See mingw*.
4468   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4469   lt_cv_file_magic_cmd='$OBJDUMP -f'
4470   ;;
4471
4472 darwin* | rhapsody*)
4473   lt_cv_deplibs_check_method=pass_all
4474   ;;
4475
4476 freebsd* | dragonfly*)
4477   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4478     case $host_cpu in
4479     i*86 )
4480       # Not sure whether the presence of OpenBSD here was a mistake.
4481       # Let's accept both of them until this is cleared up.
4482       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4483       lt_cv_file_magic_cmd=/usr/bin/file
4484       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4485       ;;
4486     esac
4487   else
4488     lt_cv_deplibs_check_method=pass_all
4489   fi
4490   ;;
4491
4492 gnu*)
4493   lt_cv_deplibs_check_method=pass_all
4494   ;;
4495
4496 haiku*)
4497   lt_cv_deplibs_check_method=pass_all
4498   ;;
4499
4500 hpux10.20* | hpux11*)
4501   lt_cv_file_magic_cmd=/usr/bin/file
4502   case $host_cpu in
4503   ia64*)
4504     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4505     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4506     ;;
4507   hppa*64*)
4508     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]'
4509     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4510     ;;
4511   *)
4512     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4513     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4514     ;;
4515   esac
4516   ;;
4517
4518 interix[3-9]*)
4519   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4520   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4521   ;;
4522
4523 irix5* | irix6* | nonstopux*)
4524   case $LD in
4525   *-32|*"-32 ") libmagic=32-bit;;
4526   *-n32|*"-n32 ") libmagic=N32;;
4527   *-64|*"-64 ") libmagic=64-bit;;
4528   *) libmagic=never-match;;
4529   esac
4530   lt_cv_deplibs_check_method=pass_all
4531   ;;
4532
4533 # This must be glibc/ELF.
4534 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4535   lt_cv_deplibs_check_method=pass_all
4536   ;;
4537
4538 netbsd*)
4539   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4540     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4541   else
4542     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4543   fi
4544   ;;
4545
4546 newos6*)
4547   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4548   lt_cv_file_magic_cmd=/usr/bin/file
4549   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4550   ;;
4551
4552 *nto* | *qnx*)
4553   lt_cv_deplibs_check_method=pass_all
4554   ;;
4555
4556 openbsd*)
4557   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4558     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4559   else
4560     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4561   fi
4562   ;;
4563
4564 osf3* | osf4* | osf5*)
4565   lt_cv_deplibs_check_method=pass_all
4566   ;;
4567
4568 rdos*)
4569   lt_cv_deplibs_check_method=pass_all
4570   ;;
4571
4572 solaris*)
4573   lt_cv_deplibs_check_method=pass_all
4574   ;;
4575
4576 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4577   lt_cv_deplibs_check_method=pass_all
4578   ;;
4579
4580 sysv4 | sysv4.3*)
4581   case $host_vendor in
4582   motorola)
4583     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]'
4584     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4585     ;;
4586   ncr)
4587     lt_cv_deplibs_check_method=pass_all
4588     ;;
4589   sequent)
4590     lt_cv_file_magic_cmd='/bin/file'
4591     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4592     ;;
4593   sni)
4594     lt_cv_file_magic_cmd='/bin/file'
4595     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4596     lt_cv_file_magic_test_file=/lib/libc.so
4597     ;;
4598   siemens)
4599     lt_cv_deplibs_check_method=pass_all
4600     ;;
4601   pc)
4602     lt_cv_deplibs_check_method=pass_all
4603     ;;
4604   esac
4605   ;;
4606
4607 tpf*)
4608   lt_cv_deplibs_check_method=pass_all
4609   ;;
4610 esac
4611
4612 fi
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4614 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4615
4616 file_magic_glob=
4617 want_nocaseglob=no
4618 if test "$build" = "$host"; then
4619   case $host_os in
4620   mingw* | pw32*)
4621     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4622       want_nocaseglob=yes
4623     else
4624       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4625     fi
4626     ;;
4627   esac
4628 fi
4629
4630 file_magic_cmd=$lt_cv_file_magic_cmd
4631 deplibs_check_method=$lt_cv_deplibs_check_method
4632 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655 if test -n "$ac_tool_prefix"; then
4656   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4657 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if ${ac_cv_prog_DLLTOOL+:} false; then :
4661   $as_echo_n "(cached) " >&6
4662 else
4663   if test -n "$DLLTOOL"; then
4664   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669   IFS=$as_save_IFS
4670   test -z "$as_dir" && as_dir=.
4671     for ac_exec_ext in '' $ac_executable_extensions; do
4672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4673     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675     break 2
4676   fi
4677 done
4678   done
4679 IFS=$as_save_IFS
4680
4681 fi
4682 fi
4683 DLLTOOL=$ac_cv_prog_DLLTOOL
4684 if test -n "$DLLTOOL"; then
4685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4686 $as_echo "$DLLTOOL" >&6; }
4687 else
4688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689 $as_echo "no" >&6; }
4690 fi
4691
4692
4693 fi
4694 if test -z "$ac_cv_prog_DLLTOOL"; then
4695   ac_ct_DLLTOOL=$DLLTOOL
4696   # Extract the first word of "dlltool", so it can be a program name with args.
4697 set dummy dlltool; ac_word=$2
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699 $as_echo_n "checking for $ac_word... " >&6; }
4700 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4701   $as_echo_n "(cached) " >&6
4702 else
4703   if test -n "$ac_ct_DLLTOOL"; then
4704   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4705 else
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709   IFS=$as_save_IFS
4710   test -z "$as_dir" && as_dir=.
4711     for ac_exec_ext in '' $ac_executable_extensions; do
4712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715     break 2
4716   fi
4717 done
4718   done
4719 IFS=$as_save_IFS
4720
4721 fi
4722 fi
4723 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4724 if test -n "$ac_ct_DLLTOOL"; then
4725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4726 $as_echo "$ac_ct_DLLTOOL" >&6; }
4727 else
4728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4730 fi
4731
4732   if test "x$ac_ct_DLLTOOL" = x; then
4733     DLLTOOL="false"
4734   else
4735     case $cross_compiling:$ac_tool_warned in
4736 yes:)
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4739 ac_tool_warned=yes ;;
4740 esac
4741     DLLTOOL=$ac_ct_DLLTOOL
4742   fi
4743 else
4744   DLLTOOL="$ac_cv_prog_DLLTOOL"
4745 fi
4746
4747 test -z "$DLLTOOL" && DLLTOOL=dlltool
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4759 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4760 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4761   $as_echo_n "(cached) " >&6
4762 else
4763   lt_cv_sharedlib_from_linklib_cmd='unknown'
4764
4765 case $host_os in
4766 cygwin* | mingw* | pw32* | cegcc*)
4767   # two different shell functions defined in ltmain.sh
4768   # decide which to use based on capabilities of $DLLTOOL
4769   case `$DLLTOOL --help 2>&1` in
4770   *--identify-strict*)
4771     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4772     ;;
4773   *)
4774     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4775     ;;
4776   esac
4777   ;;
4778 *)
4779   # fallback: assume linklib IS sharedlib
4780   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4781   ;;
4782 esac
4783
4784 fi
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4786 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4787 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4788 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4789
4790
4791
4792
4793
4794
4795
4796
4797 if test -n "$ac_tool_prefix"; then
4798   for ac_prog in ar
4799   do
4800     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4803 $as_echo_n "checking for $ac_word... " >&6; }
4804 if ${ac_cv_prog_AR+:} false; then :
4805   $as_echo_n "(cached) " >&6
4806 else
4807   if test -n "$AR"; then
4808   ac_cv_prog_AR="$AR" # Let the user override the test.
4809 else
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $PATH
4812 do
4813   IFS=$as_save_IFS
4814   test -z "$as_dir" && as_dir=.
4815     for ac_exec_ext in '' $ac_executable_extensions; do
4816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4817     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4819     break 2
4820   fi
4821 done
4822   done
4823 IFS=$as_save_IFS
4824
4825 fi
4826 fi
4827 AR=$ac_cv_prog_AR
4828 if test -n "$AR"; then
4829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4830 $as_echo "$AR" >&6; }
4831 else
4832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833 $as_echo "no" >&6; }
4834 fi
4835
4836
4837     test -n "$AR" && break
4838   done
4839 fi
4840 if test -z "$AR"; then
4841   ac_ct_AR=$AR
4842   for ac_prog in ar
4843 do
4844   # Extract the first word of "$ac_prog", so it can be a program name with args.
4845 set dummy $ac_prog; ac_word=$2
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4847 $as_echo_n "checking for $ac_word... " >&6; }
4848 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4849   $as_echo_n "(cached) " >&6
4850 else
4851   if test -n "$ac_ct_AR"; then
4852   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4853 else
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 for as_dir in $PATH
4856 do
4857   IFS=$as_save_IFS
4858   test -z "$as_dir" && as_dir=.
4859     for ac_exec_ext in '' $ac_executable_extensions; do
4860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4861     ac_cv_prog_ac_ct_AR="$ac_prog"
4862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4863     break 2
4864   fi
4865 done
4866   done
4867 IFS=$as_save_IFS
4868
4869 fi
4870 fi
4871 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4872 if test -n "$ac_ct_AR"; then
4873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4874 $as_echo "$ac_ct_AR" >&6; }
4875 else
4876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4877 $as_echo "no" >&6; }
4878 fi
4879
4880
4881   test -n "$ac_ct_AR" && break
4882 done
4883
4884   if test "x$ac_ct_AR" = x; then
4885     AR="false"
4886   else
4887     case $cross_compiling:$ac_tool_warned in
4888 yes:)
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4891 ac_tool_warned=yes ;;
4892 esac
4893     AR=$ac_ct_AR
4894   fi
4895 fi
4896
4897 : ${AR=ar}
4898 : ${AR_FLAGS=cru}
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
4911 $as_echo_n "checking for archiver @FILE support... " >&6; }
4912 if ${lt_cv_ar_at_file+:} false; then :
4913   $as_echo_n "(cached) " >&6
4914 else
4915   lt_cv_ar_at_file=no
4916    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h.  */
4918
4919 int
4920 main ()
4921 {
4922
4923   ;
4924   return 0;
4925 }
4926 _ACEOF
4927 if ac_fn_c_try_compile "$LINENO"; then :
4928   echo conftest.$ac_objext > conftest.lst
4929       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4930       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4931   (eval $lt_ar_try) 2>&5
4932   ac_status=$?
4933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4934   test $ac_status = 0; }
4935       if test "$ac_status" -eq 0; then
4936         # Ensure the archiver fails upon bogus file names.
4937         rm -f conftest.$ac_objext libconftest.a
4938         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4939   (eval $lt_ar_try) 2>&5
4940   ac_status=$?
4941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4942   test $ac_status = 0; }
4943         if test "$ac_status" -ne 0; then
4944           lt_cv_ar_at_file=@
4945         fi
4946       fi
4947       rm -f conftest.* libconftest.a
4948
4949 fi
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951
4952 fi
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
4954 $as_echo "$lt_cv_ar_at_file" >&6; }
4955
4956 if test "x$lt_cv_ar_at_file" = xno; then
4957   archiver_list_spec=
4958 else
4959   archiver_list_spec=$lt_cv_ar_at_file
4960 fi
4961
4962
4963
4964
4965
4966
4967
4968 if test -n "$ac_tool_prefix"; then
4969   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4970 set dummy ${ac_tool_prefix}strip; ac_word=$2
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 $as_echo_n "checking for $ac_word... " >&6; }
4973 if ${ac_cv_prog_STRIP+:} false; then :
4974   $as_echo_n "(cached) " >&6
4975 else
4976   if test -n "$STRIP"; then
4977   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4981 do
4982   IFS=$as_save_IFS
4983   test -z "$as_dir" && as_dir=.
4984     for ac_exec_ext in '' $ac_executable_extensions; do
4985   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4986     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988     break 2
4989   fi
4990 done
4991   done
4992 IFS=$as_save_IFS
4993
4994 fi
4995 fi
4996 STRIP=$ac_cv_prog_STRIP
4997 if test -n "$STRIP"; then
4998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4999 $as_echo "$STRIP" >&6; }
5000 else
5001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5003 fi
5004
5005
5006 fi
5007 if test -z "$ac_cv_prog_STRIP"; then
5008   ac_ct_STRIP=$STRIP
5009   # Extract the first word of "strip", so it can be a program name with args.
5010 set dummy strip; ac_word=$2
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012 $as_echo_n "checking for $ac_word... " >&6; }
5013 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5014   $as_echo_n "(cached) " >&6
5015 else
5016   if test -n "$ac_ct_STRIP"; then
5017   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5021 do
5022   IFS=$as_save_IFS
5023   test -z "$as_dir" && as_dir=.
5024     for ac_exec_ext in '' $ac_executable_extensions; do
5025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026     ac_cv_prog_ac_ct_STRIP="strip"
5027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028     break 2
5029   fi
5030 done
5031   done
5032 IFS=$as_save_IFS
5033
5034 fi
5035 fi
5036 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5037 if test -n "$ac_ct_STRIP"; then
5038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5039 $as_echo "$ac_ct_STRIP" >&6; }
5040 else
5041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042 $as_echo "no" >&6; }
5043 fi
5044
5045   if test "x$ac_ct_STRIP" = x; then
5046     STRIP=":"
5047   else
5048     case $cross_compiling:$ac_tool_warned in
5049 yes:)
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5052 ac_tool_warned=yes ;;
5053 esac
5054     STRIP=$ac_ct_STRIP
5055   fi
5056 else
5057   STRIP="$ac_cv_prog_STRIP"
5058 fi
5059
5060 test -z "$STRIP" && STRIP=:
5061
5062
5063
5064
5065
5066
5067 if test -n "$ac_tool_prefix"; then
5068   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5069 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5071 $as_echo_n "checking for $ac_word... " >&6; }
5072 if ${ac_cv_prog_RANLIB+:} false; then :
5073   $as_echo_n "(cached) " >&6
5074 else
5075   if test -n "$RANLIB"; then
5076   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5077 else
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5080 do
5081   IFS=$as_save_IFS
5082   test -z "$as_dir" && as_dir=.
5083     for ac_exec_ext in '' $ac_executable_extensions; do
5084   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5085     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5087     break 2
5088   fi
5089 done
5090   done
5091 IFS=$as_save_IFS
5092
5093 fi
5094 fi
5095 RANLIB=$ac_cv_prog_RANLIB
5096 if test -n "$RANLIB"; then
5097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5098 $as_echo "$RANLIB" >&6; }
5099 else
5100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101 $as_echo "no" >&6; }
5102 fi
5103
5104
5105 fi
5106 if test -z "$ac_cv_prog_RANLIB"; then
5107   ac_ct_RANLIB=$RANLIB
5108   # Extract the first word of "ranlib", so it can be a program name with args.
5109 set dummy ranlib; ac_word=$2
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5111 $as_echo_n "checking for $ac_word... " >&6; }
5112 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5113   $as_echo_n "(cached) " >&6
5114 else
5115   if test -n "$ac_ct_RANLIB"; then
5116   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5117 else
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH
5120 do
5121   IFS=$as_save_IFS
5122   test -z "$as_dir" && as_dir=.
5123     for ac_exec_ext in '' $ac_executable_extensions; do
5124   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5125     ac_cv_prog_ac_ct_RANLIB="ranlib"
5126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5127     break 2
5128   fi
5129 done
5130   done
5131 IFS=$as_save_IFS
5132
5133 fi
5134 fi
5135 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5136 if test -n "$ac_ct_RANLIB"; then
5137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5138 $as_echo "$ac_ct_RANLIB" >&6; }
5139 else
5140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5141 $as_echo "no" >&6; }
5142 fi
5143
5144   if test "x$ac_ct_RANLIB" = x; then
5145     RANLIB=":"
5146   else
5147     case $cross_compiling:$ac_tool_warned in
5148 yes:)
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5151 ac_tool_warned=yes ;;
5152 esac
5153     RANLIB=$ac_ct_RANLIB
5154   fi
5155 else
5156   RANLIB="$ac_cv_prog_RANLIB"
5157 fi
5158
5159 test -z "$RANLIB" && RANLIB=:
5160
5161
5162
5163
5164
5165
5166 # Determine commands to create old-style static archives.
5167 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5168 old_postinstall_cmds='chmod 644 $oldlib'
5169 old_postuninstall_cmds=
5170
5171 if test -n "$RANLIB"; then
5172   case $host_os in
5173   openbsd*)
5174     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5175     ;;
5176   *)
5177     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5178     ;;
5179   esac
5180   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5181 fi
5182
5183 case $host_os in
5184   darwin*)
5185     lock_old_archive_extraction=yes ;;
5186   *)
5187     lock_old_archive_extraction=no ;;
5188 esac
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210 for ac_prog in gawk mawk nawk awk
5211 do
5212   # Extract the first word of "$ac_prog", so it can be a program name with args.
5213 set dummy $ac_prog; ac_word=$2
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215 $as_echo_n "checking for $ac_word... " >&6; }
5216 if ${ac_cv_prog_AWK+:} false; then :
5217   $as_echo_n "(cached) " >&6
5218 else
5219   if test -n "$AWK"; then
5220   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5221 else
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5224 do
5225   IFS=$as_save_IFS
5226   test -z "$as_dir" && as_dir=.
5227     for ac_exec_ext in '' $ac_executable_extensions; do
5228   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5229     ac_cv_prog_AWK="$ac_prog"
5230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231     break 2
5232   fi
5233 done
5234   done
5235 IFS=$as_save_IFS
5236
5237 fi
5238 fi
5239 AWK=$ac_cv_prog_AWK
5240 if test -n "$AWK"; then
5241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5242 $as_echo "$AWK" >&6; }
5243 else
5244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 $as_echo "no" >&6; }
5246 fi
5247
5248
5249   test -n "$AWK" && break
5250 done
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270 # If no C compiler was specified, use CC.
5271 LTCC=${LTCC-"$CC"}
5272
5273 # If no C compiler flags were specified, use CFLAGS.
5274 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5275
5276 # Allow CC to be a program name with arguments.
5277 compiler=$CC
5278
5279
5280 # Check for command to grab the raw symbol name followed by C symbol from nm.
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5282 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5283 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5284   $as_echo_n "(cached) " >&6
5285 else
5286
5287 # These are sane defaults that work on at least a few old systems.
5288 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5289
5290 # Character class describing NM global symbol codes.
5291 symcode='[BCDEGRST]'
5292
5293 # Regexp to match symbols that can be accessed directly from C.
5294 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5295
5296 # Define system-specific variables.
5297 case $host_os in
5298 aix*)
5299   symcode='[BCDT]'
5300   ;;
5301 cygwin* | mingw* | pw32* | cegcc*)
5302   symcode='[ABCDGISTW]'
5303   ;;
5304 hpux*)
5305   if test "$host_cpu" = ia64; then
5306     symcode='[ABCDEGRST]'
5307   fi
5308   ;;
5309 irix* | nonstopux*)
5310   symcode='[BCDEGRST]'
5311   ;;
5312 osf*)
5313   symcode='[BCDEGQRST]'
5314   ;;
5315 solaris*)
5316   symcode='[BDRT]'
5317   ;;
5318 sco3.2v5*)
5319   symcode='[DT]'
5320   ;;
5321 sysv4.2uw2*)
5322   symcode='[DT]'
5323   ;;
5324 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5325   symcode='[ABDT]'
5326   ;;
5327 sysv4)
5328   symcode='[DFNSTU]'
5329   ;;
5330 esac
5331
5332 # If we're using GNU nm, then use its standard symbol codes.
5333 case `$NM -V 2>&1` in
5334 *GNU* | *'with BFD'*)
5335   symcode='[ABCDGIRSTW]' ;;
5336 esac
5337
5338 # Transform an extracted symbol line into a proper C declaration.
5339 # Some systems (esp. on ia64) link data and code symbols differently,
5340 # so use this general approach.
5341 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5342
5343 # Transform an extracted symbol line into symbol name and symbol address
5344 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5345 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'"
5346
5347 # Handle CRLF in mingw tool chain
5348 opt_cr=
5349 case $build_os in
5350 mingw*)
5351   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5352   ;;
5353 esac
5354
5355 # Try without a prefix underscore, then with it.
5356 for ac_symprfx in "" "_"; do
5357
5358   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5359   symxfrm="\\1 $ac_symprfx\\2 \\2"
5360
5361   # Write the raw and C identifiers.
5362   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5363     # Fake it for dumpbin and say T for any non-static function
5364     # and D for any global variable.
5365     # Also find C++ and __fastcall symbols from MSVC++,
5366     # which start with @ or ?.
5367     lt_cv_sys_global_symbol_pipe="$AWK '"\
5368 "     {last_section=section; section=\$ 3};"\
5369 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5370 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5371 "     \$ 0!~/External *\|/{next};"\
5372 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5373 "     {if(hide[section]) next};"\
5374 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5375 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5376 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5377 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5378 "     ' prfx=^$ac_symprfx"
5379   else
5380     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5381   fi
5382   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5383
5384   # Check to see that the pipe works correctly.
5385   pipe_works=no
5386
5387   rm -f conftest*
5388   cat > conftest.$ac_ext <<_LT_EOF
5389 #ifdef __cplusplus
5390 extern "C" {
5391 #endif
5392 char nm_test_var;
5393 void nm_test_func(void);
5394 void nm_test_func(void){}
5395 #ifdef __cplusplus
5396 }
5397 #endif
5398 int main(){nm_test_var='a';nm_test_func();return(0);}
5399 _LT_EOF
5400
5401   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5402   (eval $ac_compile) 2>&5
5403   ac_status=$?
5404   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5405   test $ac_status = 0; }; then
5406     # Now try to grab the symbols.
5407     nlist=conftest.nm
5408     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5409   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5410   ac_status=$?
5411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5412   test $ac_status = 0; } && test -s "$nlist"; then
5413       # Try sorting and uniquifying the output.
5414       if sort "$nlist" | uniq > "$nlist"T; then
5415         mv -f "$nlist"T "$nlist"
5416       else
5417         rm -f "$nlist"T
5418       fi
5419
5420       # Make sure that we snagged all the symbols we need.
5421       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5422         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5423           cat <<_LT_EOF > conftest.$ac_ext
5424 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5425 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5426 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5427    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5428 # define LT_DLSYM_CONST
5429 #elif defined(__osf__)
5430 /* This system does not cope well with relocations in const data.  */
5431 # define LT_DLSYM_CONST
5432 #else
5433 # define LT_DLSYM_CONST const
5434 #endif
5435
5436 #ifdef __cplusplus
5437 extern "C" {
5438 #endif
5439
5440 _LT_EOF
5441           # Now generate the symbol file.
5442           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5443
5444           cat <<_LT_EOF >> conftest.$ac_ext
5445
5446 /* The mapping between symbol names and symbols.  */
5447 LT_DLSYM_CONST struct {
5448   const char *name;
5449   void       *address;
5450 }
5451 lt__PROGRAM__LTX_preloaded_symbols[] =
5452 {
5453   { "@PROGRAM@", (void *) 0 },
5454 _LT_EOF
5455           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5456           cat <<\_LT_EOF >> conftest.$ac_ext
5457   {0, (void *) 0}
5458 };
5459
5460 /* This works around a problem in FreeBSD linker */
5461 #ifdef FREEBSD_WORKAROUND
5462 static const void *lt_preloaded_setup() {
5463   return lt__PROGRAM__LTX_preloaded_symbols;
5464 }
5465 #endif
5466
5467 #ifdef __cplusplus
5468 }
5469 #endif
5470 _LT_EOF
5471           # Now try linking the two files.
5472           mv conftest.$ac_objext conftstm.$ac_objext
5473           lt_globsym_save_LIBS=$LIBS
5474           lt_globsym_save_CFLAGS=$CFLAGS
5475           LIBS="conftstm.$ac_objext"
5476           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5477           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5478   (eval $ac_link) 2>&5
5479   ac_status=$?
5480   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5481   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5482             pipe_works=yes
5483           fi
5484           LIBS=$lt_globsym_save_LIBS
5485           CFLAGS=$lt_globsym_save_CFLAGS
5486         else
5487           echo "cannot find nm_test_func in $nlist" >&5
5488         fi
5489       else
5490         echo "cannot find nm_test_var in $nlist" >&5
5491       fi
5492     else
5493       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5494     fi
5495   else
5496     echo "$progname: failed program was:" >&5
5497     cat conftest.$ac_ext >&5
5498   fi
5499   rm -rf conftest* conftst*
5500
5501   # Do not use the global_symbol_pipe unless it works.
5502   if test "$pipe_works" = yes; then
5503     break
5504   else
5505     lt_cv_sys_global_symbol_pipe=
5506   fi
5507 done
5508
5509 fi
5510
5511 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5512   lt_cv_sys_global_symbol_to_cdecl=
5513 fi
5514 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5516 $as_echo "failed" >&6; }
5517 else
5518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5519 $as_echo "ok" >&6; }
5520 fi
5521
5522 # Response file support.
5523 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5524   nm_file_list_spec='@'
5525 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5526   nm_file_list_spec='@'
5527 fi
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5556 $as_echo_n "checking for sysroot... " >&6; }
5557
5558 # Check whether --with-sysroot was given.
5559 if test "${with_sysroot+set}" = set; then :
5560   withval=$with_sysroot;
5561 else
5562   with_sysroot=no
5563 fi
5564
5565
5566 lt_sysroot=
5567 case ${with_sysroot} in #(
5568  yes)
5569    if test "$GCC" = yes; then
5570      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5571    fi
5572    ;; #(
5573  /*)
5574    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5575    ;; #(
5576  no|'')
5577    ;; #(
5578  *)
5579    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5580 $as_echo "${with_sysroot}" >&6; }
5581    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5582    ;;
5583 esac
5584
5585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5586 $as_echo "${lt_sysroot:-no}" >&6; }
5587
5588
5589
5590
5591
5592 # Check whether --enable-libtool-lock was given.
5593 if test "${enable_libtool_lock+set}" = set; then :
5594   enableval=$enable_libtool_lock;
5595 fi
5596
5597 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5598
5599 # Some flags need to be propagated to the compiler or linker for good
5600 # libtool support.
5601 case $host in
5602 ia64-*-hpux*)
5603   # Find out which ABI we are using.
5604   echo 'int i;' > conftest.$ac_ext
5605   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5606   (eval $ac_compile) 2>&5
5607   ac_status=$?
5608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5609   test $ac_status = 0; }; then
5610     case `/usr/bin/file conftest.$ac_objext` in
5611       *ELF-32*)
5612         HPUX_IA64_MODE="32"
5613         ;;
5614       *ELF-64*)
5615         HPUX_IA64_MODE="64"
5616         ;;
5617     esac
5618   fi
5619   rm -rf conftest*
5620   ;;
5621 *-*-irix6*)
5622   # Find out which ABI we are using.
5623   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5624   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5625   (eval $ac_compile) 2>&5
5626   ac_status=$?
5627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5628   test $ac_status = 0; }; then
5629     if test "$lt_cv_prog_gnu_ld" = yes; then
5630       case `/usr/bin/file conftest.$ac_objext` in
5631         *32-bit*)
5632           LD="${LD-ld} -melf32bsmip"
5633           ;;
5634         *N32*)
5635           LD="${LD-ld} -melf32bmipn32"
5636           ;;
5637         *64-bit*)
5638           LD="${LD-ld} -melf64bmip"
5639         ;;
5640       esac
5641     else
5642       case `/usr/bin/file conftest.$ac_objext` in
5643         *32-bit*)
5644           LD="${LD-ld} -32"
5645           ;;
5646         *N32*)
5647           LD="${LD-ld} -n32"
5648           ;;
5649         *64-bit*)
5650           LD="${LD-ld} -64"
5651           ;;
5652       esac
5653     fi
5654   fi
5655   rm -rf conftest*
5656   ;;
5657
5658 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5659 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5660   # Find out which ABI we are using.
5661   echo 'int i;' > conftest.$ac_ext
5662   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5663   (eval $ac_compile) 2>&5
5664   ac_status=$?
5665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5666   test $ac_status = 0; }; then
5667     case `/usr/bin/file conftest.o` in
5668       *32-bit*)
5669         case $host in
5670           x86_64-*kfreebsd*-gnu)
5671             LD="${LD-ld} -m elf_i386_fbsd"
5672             ;;
5673           x86_64-*linux*)
5674             LD="${LD-ld} -m elf_i386"
5675             ;;
5676           ppc64-*linux*|powerpc64-*linux*)
5677             LD="${LD-ld} -m elf32ppclinux"
5678             ;;
5679           s390x-*linux*)
5680             LD="${LD-ld} -m elf_s390"
5681             ;;
5682           sparc64-*linux*)
5683             LD="${LD-ld} -m elf32_sparc"
5684             ;;
5685         esac
5686         ;;
5687       *64-bit*)
5688         case $host in
5689           x86_64-*kfreebsd*-gnu)
5690             LD="${LD-ld} -m elf_x86_64_fbsd"
5691             ;;
5692           x86_64-*linux*)
5693             LD="${LD-ld} -m elf_x86_64"
5694             ;;
5695           ppc*-*linux*|powerpc*-*linux*)
5696             LD="${LD-ld} -m elf64ppc"
5697             ;;
5698           s390*-*linux*|s390*-*tpf*)
5699             LD="${LD-ld} -m elf64_s390"
5700             ;;
5701           sparc*-*linux*)
5702             LD="${LD-ld} -m elf64_sparc"
5703             ;;
5704         esac
5705         ;;
5706     esac
5707   fi
5708   rm -rf conftest*
5709   ;;
5710
5711 *-*-sco3.2v5*)
5712   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5713   SAVE_CFLAGS="$CFLAGS"
5714   CFLAGS="$CFLAGS -belf"
5715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5716 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5717 if ${lt_cv_cc_needs_belf+:} false; then :
5718   $as_echo_n "(cached) " >&6
5719 else
5720   ac_ext=c
5721 ac_cpp='$CPP $CPPFLAGS'
5722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5725
5726      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h.  */
5728
5729 int
5730 main ()
5731 {
5732
5733   ;
5734   return 0;
5735 }
5736 _ACEOF
5737 if ac_fn_c_try_link "$LINENO"; then :
5738   lt_cv_cc_needs_belf=yes
5739 else
5740   lt_cv_cc_needs_belf=no
5741 fi
5742 rm -f core conftest.err conftest.$ac_objext \
5743     conftest$ac_exeext conftest.$ac_ext
5744      ac_ext=c
5745 ac_cpp='$CPP $CPPFLAGS'
5746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5749
5750 fi
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5752 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5753   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5754     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5755     CFLAGS="$SAVE_CFLAGS"
5756   fi
5757   ;;
5758 *-*solaris*)
5759   # Find out which ABI we are using.
5760   echo 'int i;' > conftest.$ac_ext
5761   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5762   (eval $ac_compile) 2>&5
5763   ac_status=$?
5764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5765   test $ac_status = 0; }; then
5766     case `/usr/bin/file conftest.o` in
5767     *64-bit*)
5768       case $lt_cv_prog_gnu_ld in
5769       yes*)
5770         case $host in
5771         i?86-*-solaris*)
5772           LD="${LD-ld} -m elf_x86_64"
5773           ;;
5774         sparc*-*-solaris*)
5775           LD="${LD-ld} -m elf64_sparc"
5776           ;;
5777         esac
5778         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
5779         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5780           LD="${LD-ld}_sol2"
5781         fi
5782         ;;
5783       *)
5784         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5785           LD="${LD-ld} -64"
5786         fi
5787         ;;
5788       esac
5789       ;;
5790     esac
5791   fi
5792   rm -rf conftest*
5793   ;;
5794 esac
5795
5796 need_locks="$enable_libtool_lock"
5797
5798 if test -n "$ac_tool_prefix"; then
5799   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5800 set dummy ${ac_tool_prefix}mt; ac_word=$2
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
5804   $as_echo_n "(cached) " >&6
5805 else
5806   if test -n "$MANIFEST_TOOL"; then
5807   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5808 else
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 for as_dir in $PATH
5811 do
5812   IFS=$as_save_IFS
5813   test -z "$as_dir" && as_dir=.
5814     for ac_exec_ext in '' $ac_executable_extensions; do
5815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5816     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818     break 2
5819   fi
5820 done
5821   done
5822 IFS=$as_save_IFS
5823
5824 fi
5825 fi
5826 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5827 if test -n "$MANIFEST_TOOL"; then
5828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
5829 $as_echo "$MANIFEST_TOOL" >&6; }
5830 else
5831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832 $as_echo "no" >&6; }
5833 fi
5834
5835
5836 fi
5837 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5838   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5839   # Extract the first word of "mt", so it can be a program name with args.
5840 set dummy mt; ac_word=$2
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5842 $as_echo_n "checking for $ac_word... " >&6; }
5843 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
5844   $as_echo_n "(cached) " >&6
5845 else
5846   if test -n "$ac_ct_MANIFEST_TOOL"; then
5847   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5848 else
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 for as_dir in $PATH
5851 do
5852   IFS=$as_save_IFS
5853   test -z "$as_dir" && as_dir=.
5854     for ac_exec_ext in '' $ac_executable_extensions; do
5855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5856     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5858     break 2
5859   fi
5860 done
5861   done
5862 IFS=$as_save_IFS
5863
5864 fi
5865 fi
5866 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5867 if test -n "$ac_ct_MANIFEST_TOOL"; then
5868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
5869 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
5870 else
5871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5872 $as_echo "no" >&6; }
5873 fi
5874
5875   if test "x$ac_ct_MANIFEST_TOOL" = x; then
5876     MANIFEST_TOOL=":"
5877   else
5878     case $cross_compiling:$ac_tool_warned in
5879 yes:)
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5882 ac_tool_warned=yes ;;
5883 esac
5884     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5885   fi
5886 else
5887   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5888 fi
5889
5890 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
5892 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
5893 if ${lt_cv_path_mainfest_tool+:} false; then :
5894   $as_echo_n "(cached) " >&6
5895 else
5896   lt_cv_path_mainfest_tool=no
5897   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5898   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5899   cat conftest.err >&5
5900   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5901     lt_cv_path_mainfest_tool=yes
5902   fi
5903   rm -f conftest*
5904 fi
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
5906 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
5907 if test "x$lt_cv_path_mainfest_tool" != xyes; then
5908   MANIFEST_TOOL=:
5909 fi
5910
5911
5912
5913
5914
5915
5916   case $host_os in
5917     rhapsody* | darwin*)
5918     if test -n "$ac_tool_prefix"; then
5919   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5920 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922 $as_echo_n "checking for $ac_word... " >&6; }
5923 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5924   $as_echo_n "(cached) " >&6
5925 else
5926   if test -n "$DSYMUTIL"; then
5927   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5928 else
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 for as_dir in $PATH
5931 do
5932   IFS=$as_save_IFS
5933   test -z "$as_dir" && as_dir=.
5934     for ac_exec_ext in '' $ac_executable_extensions; do
5935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5936     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938     break 2
5939   fi
5940 done
5941   done
5942 IFS=$as_save_IFS
5943
5944 fi
5945 fi
5946 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5947 if test -n "$DSYMUTIL"; then
5948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5949 $as_echo "$DSYMUTIL" >&6; }
5950 else
5951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952 $as_echo "no" >&6; }
5953 fi
5954
5955
5956 fi
5957 if test -z "$ac_cv_prog_DSYMUTIL"; then
5958   ac_ct_DSYMUTIL=$DSYMUTIL
5959   # Extract the first word of "dsymutil", so it can be a program name with args.
5960 set dummy dsymutil; ac_word=$2
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962 $as_echo_n "checking for $ac_word... " >&6; }
5963 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5964   $as_echo_n "(cached) " >&6
5965 else
5966   if test -n "$ac_ct_DSYMUTIL"; then
5967   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5968 else
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 for as_dir in $PATH
5971 do
5972   IFS=$as_save_IFS
5973   test -z "$as_dir" && as_dir=.
5974     for ac_exec_ext in '' $ac_executable_extensions; do
5975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5976     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978     break 2
5979   fi
5980 done
5981   done
5982 IFS=$as_save_IFS
5983
5984 fi
5985 fi
5986 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5987 if test -n "$ac_ct_DSYMUTIL"; then
5988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5989 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5990 else
5991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992 $as_echo "no" >&6; }
5993 fi
5994
5995   if test "x$ac_ct_DSYMUTIL" = x; then
5996     DSYMUTIL=":"
5997   else
5998     case $cross_compiling:$ac_tool_warned in
5999 yes:)
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6002 ac_tool_warned=yes ;;
6003 esac
6004     DSYMUTIL=$ac_ct_DSYMUTIL
6005   fi
6006 else
6007   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6008 fi
6009
6010     if test -n "$ac_tool_prefix"; then
6011   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6012 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014 $as_echo_n "checking for $ac_word... " >&6; }
6015 if ${ac_cv_prog_NMEDIT+:} false; then :
6016   $as_echo_n "(cached) " >&6
6017 else
6018   if test -n "$NMEDIT"; then
6019   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6020 else
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6023 do
6024   IFS=$as_save_IFS
6025   test -z "$as_dir" && as_dir=.
6026     for ac_exec_ext in '' $ac_executable_extensions; do
6027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6028     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030     break 2
6031   fi
6032 done
6033   done
6034 IFS=$as_save_IFS
6035
6036 fi
6037 fi
6038 NMEDIT=$ac_cv_prog_NMEDIT
6039 if test -n "$NMEDIT"; then
6040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6041 $as_echo "$NMEDIT" >&6; }
6042 else
6043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044 $as_echo "no" >&6; }
6045 fi
6046
6047
6048 fi
6049 if test -z "$ac_cv_prog_NMEDIT"; then
6050   ac_ct_NMEDIT=$NMEDIT
6051   # Extract the first word of "nmedit", so it can be a program name with args.
6052 set dummy nmedit; ac_word=$2
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054 $as_echo_n "checking for $ac_word... " >&6; }
6055 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6056   $as_echo_n "(cached) " >&6
6057 else
6058   if test -n "$ac_ct_NMEDIT"; then
6059   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6060 else
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6063 do
6064   IFS=$as_save_IFS
6065   test -z "$as_dir" && as_dir=.
6066     for ac_exec_ext in '' $ac_executable_extensions; do
6067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6068     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070     break 2
6071   fi
6072 done
6073   done
6074 IFS=$as_save_IFS
6075
6076 fi
6077 fi
6078 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6079 if test -n "$ac_ct_NMEDIT"; then
6080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6081 $as_echo "$ac_ct_NMEDIT" >&6; }
6082 else
6083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6084 $as_echo "no" >&6; }
6085 fi
6086
6087   if test "x$ac_ct_NMEDIT" = x; then
6088     NMEDIT=":"
6089   else
6090     case $cross_compiling:$ac_tool_warned in
6091 yes:)
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6094 ac_tool_warned=yes ;;
6095 esac
6096     NMEDIT=$ac_ct_NMEDIT
6097   fi
6098 else
6099   NMEDIT="$ac_cv_prog_NMEDIT"
6100 fi
6101
6102     if test -n "$ac_tool_prefix"; then
6103   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6104 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106 $as_echo_n "checking for $ac_word... " >&6; }
6107 if ${ac_cv_prog_LIPO+:} false; then :
6108   $as_echo_n "(cached) " >&6
6109 else
6110   if test -n "$LIPO"; then
6111   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6112 else
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6115 do
6116   IFS=$as_save_IFS
6117   test -z "$as_dir" && as_dir=.
6118     for ac_exec_ext in '' $ac_executable_extensions; do
6119   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6120     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122     break 2
6123   fi
6124 done
6125   done
6126 IFS=$as_save_IFS
6127
6128 fi
6129 fi
6130 LIPO=$ac_cv_prog_LIPO
6131 if test -n "$LIPO"; then
6132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6133 $as_echo "$LIPO" >&6; }
6134 else
6135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136 $as_echo "no" >&6; }
6137 fi
6138
6139
6140 fi
6141 if test -z "$ac_cv_prog_LIPO"; then
6142   ac_ct_LIPO=$LIPO
6143   # Extract the first word of "lipo", so it can be a program name with args.
6144 set dummy lipo; ac_word=$2
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146 $as_echo_n "checking for $ac_word... " >&6; }
6147 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6148   $as_echo_n "(cached) " >&6
6149 else
6150   if test -n "$ac_ct_LIPO"; then
6151   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6152 else
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 for as_dir in $PATH
6155 do
6156   IFS=$as_save_IFS
6157   test -z "$as_dir" && as_dir=.
6158     for ac_exec_ext in '' $ac_executable_extensions; do
6159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6160     ac_cv_prog_ac_ct_LIPO="lipo"
6161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162     break 2
6163   fi
6164 done
6165   done
6166 IFS=$as_save_IFS
6167
6168 fi
6169 fi
6170 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6171 if test -n "$ac_ct_LIPO"; then
6172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6173 $as_echo "$ac_ct_LIPO" >&6; }
6174 else
6175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176 $as_echo "no" >&6; }
6177 fi
6178
6179   if test "x$ac_ct_LIPO" = x; then
6180     LIPO=":"
6181   else
6182     case $cross_compiling:$ac_tool_warned in
6183 yes:)
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6186 ac_tool_warned=yes ;;
6187 esac
6188     LIPO=$ac_ct_LIPO
6189   fi
6190 else
6191   LIPO="$ac_cv_prog_LIPO"
6192 fi
6193
6194     if test -n "$ac_tool_prefix"; then
6195   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6196 set dummy ${ac_tool_prefix}otool; ac_word=$2
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 $as_echo_n "checking for $ac_word... " >&6; }
6199 if ${ac_cv_prog_OTOOL+:} false; then :
6200   $as_echo_n "(cached) " >&6
6201 else
6202   if test -n "$OTOOL"; then
6203   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6204 else
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH
6207 do
6208   IFS=$as_save_IFS
6209   test -z "$as_dir" && as_dir=.
6210     for ac_exec_ext in '' $ac_executable_extensions; do
6211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6212     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214     break 2
6215   fi
6216 done
6217   done
6218 IFS=$as_save_IFS
6219
6220 fi
6221 fi
6222 OTOOL=$ac_cv_prog_OTOOL
6223 if test -n "$OTOOL"; then
6224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6225 $as_echo "$OTOOL" >&6; }
6226 else
6227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 $as_echo "no" >&6; }
6229 fi
6230
6231
6232 fi
6233 if test -z "$ac_cv_prog_OTOOL"; then
6234   ac_ct_OTOOL=$OTOOL
6235   # Extract the first word of "otool", so it can be a program name with args.
6236 set dummy otool; ac_word=$2
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238 $as_echo_n "checking for $ac_word... " >&6; }
6239 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6240   $as_echo_n "(cached) " >&6
6241 else
6242   if test -n "$ac_ct_OTOOL"; then
6243   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6244 else
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH
6247 do
6248   IFS=$as_save_IFS
6249   test -z "$as_dir" && as_dir=.
6250     for ac_exec_ext in '' $ac_executable_extensions; do
6251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6252     ac_cv_prog_ac_ct_OTOOL="otool"
6253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254     break 2
6255   fi
6256 done
6257   done
6258 IFS=$as_save_IFS
6259
6260 fi
6261 fi
6262 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6263 if test -n "$ac_ct_OTOOL"; then
6264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6265 $as_echo "$ac_ct_OTOOL" >&6; }
6266 else
6267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268 $as_echo "no" >&6; }
6269 fi
6270
6271   if test "x$ac_ct_OTOOL" = x; then
6272     OTOOL=":"
6273   else
6274     case $cross_compiling:$ac_tool_warned in
6275 yes:)
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6278 ac_tool_warned=yes ;;
6279 esac
6280     OTOOL=$ac_ct_OTOOL
6281   fi
6282 else
6283   OTOOL="$ac_cv_prog_OTOOL"
6284 fi
6285
6286     if test -n "$ac_tool_prefix"; then
6287   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6288 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if ${ac_cv_prog_OTOOL64+:} false; then :
6292   $as_echo_n "(cached) " >&6
6293 else
6294   if test -n "$OTOOL64"; then
6295   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6296 else
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6299 do
6300   IFS=$as_save_IFS
6301   test -z "$as_dir" && as_dir=.
6302     for ac_exec_ext in '' $ac_executable_extensions; do
6303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6304     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306     break 2
6307   fi
6308 done
6309   done
6310 IFS=$as_save_IFS
6311
6312 fi
6313 fi
6314 OTOOL64=$ac_cv_prog_OTOOL64
6315 if test -n "$OTOOL64"; then
6316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6317 $as_echo "$OTOOL64" >&6; }
6318 else
6319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }
6321 fi
6322
6323
6324 fi
6325 if test -z "$ac_cv_prog_OTOOL64"; then
6326   ac_ct_OTOOL64=$OTOOL64
6327   # Extract the first word of "otool64", so it can be a program name with args.
6328 set dummy otool64; ac_word=$2
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330 $as_echo_n "checking for $ac_word... " >&6; }
6331 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6332   $as_echo_n "(cached) " >&6
6333 else
6334   if test -n "$ac_ct_OTOOL64"; then
6335   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6336 else
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH
6339 do
6340   IFS=$as_save_IFS
6341   test -z "$as_dir" && as_dir=.
6342     for ac_exec_ext in '' $ac_executable_extensions; do
6343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6344     ac_cv_prog_ac_ct_OTOOL64="otool64"
6345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346     break 2
6347   fi
6348 done
6349   done
6350 IFS=$as_save_IFS
6351
6352 fi
6353 fi
6354 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6355 if test -n "$ac_ct_OTOOL64"; then
6356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6357 $as_echo "$ac_ct_OTOOL64" >&6; }
6358 else
6359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6361 fi
6362
6363   if test "x$ac_ct_OTOOL64" = x; then
6364     OTOOL64=":"
6365   else
6366     case $cross_compiling:$ac_tool_warned in
6367 yes:)
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370 ac_tool_warned=yes ;;
6371 esac
6372     OTOOL64=$ac_ct_OTOOL64
6373   fi
6374 else
6375   OTOOL64="$ac_cv_prog_OTOOL64"
6376 fi
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6405 $as_echo_n "checking for -single_module linker flag... " >&6; }
6406 if ${lt_cv_apple_cc_single_mod+:} false; then :
6407   $as_echo_n "(cached) " >&6
6408 else
6409   lt_cv_apple_cc_single_mod=no
6410       if test -z "${LT_MULTI_MODULE}"; then
6411         # By default we will add the -single_module flag. You can override
6412         # by either setting the environment variable LT_MULTI_MODULE
6413         # non-empty at configure time, or by adding -multi_module to the
6414         # link flags.
6415         rm -rf libconftest.dylib*
6416         echo "int foo(void){return 1;}" > conftest.c
6417         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6418 -dynamiclib -Wl,-single_module conftest.c" >&5
6419         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6420           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6421         _lt_result=$?
6422         # If there is a non-empty error log, and "single_module"
6423         # appears in it, assume the flag caused a linker warning
6424         if test -s conftest.err && $GREP single_module conftest.err; then
6425           cat conftest.err >&5
6426         # Otherwise, if the output was created with a 0 exit code from
6427         # the compiler, it worked.
6428         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6429           lt_cv_apple_cc_single_mod=yes
6430         else
6431           cat conftest.err >&5
6432         fi
6433         rm -rf libconftest.dylib*
6434         rm -f conftest.*
6435       fi
6436 fi
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6438 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6439
6440     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6441 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6442 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6443   $as_echo_n "(cached) " >&6
6444 else
6445   lt_cv_ld_exported_symbols_list=no
6446       save_LDFLAGS=$LDFLAGS
6447       echo "_main" > conftest.sym
6448       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6449       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h.  */
6451
6452 int
6453 main ()
6454 {
6455
6456   ;
6457   return 0;
6458 }
6459 _ACEOF
6460 if ac_fn_c_try_link "$LINENO"; then :
6461   lt_cv_ld_exported_symbols_list=yes
6462 else
6463   lt_cv_ld_exported_symbols_list=no
6464 fi
6465 rm -f core conftest.err conftest.$ac_objext \
6466     conftest$ac_exeext conftest.$ac_ext
6467         LDFLAGS="$save_LDFLAGS"
6468
6469 fi
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6471 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6472
6473     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6474 $as_echo_n "checking for -force_load linker flag... " >&6; }
6475 if ${lt_cv_ld_force_load+:} false; then :
6476   $as_echo_n "(cached) " >&6
6477 else
6478   lt_cv_ld_force_load=no
6479       cat > conftest.c << _LT_EOF
6480 int forced_loaded() { return 2;}
6481 _LT_EOF
6482       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6483       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6484       echo "$AR cru libconftest.a conftest.o" >&5
6485       $AR cru libconftest.a conftest.o 2>&5
6486       echo "$RANLIB libconftest.a" >&5
6487       $RANLIB libconftest.a 2>&5
6488       cat > conftest.c << _LT_EOF
6489 int main() { return 0;}
6490 _LT_EOF
6491       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6492       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6493       _lt_result=$?
6494       if test -s conftest.err && $GREP force_load conftest.err; then
6495         cat conftest.err >&5
6496       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6497         lt_cv_ld_force_load=yes
6498       else
6499         cat conftest.err >&5
6500       fi
6501         rm -f conftest.err libconftest.a conftest conftest.c
6502         rm -rf conftest.dSYM
6503
6504 fi
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6506 $as_echo "$lt_cv_ld_force_load" >&6; }
6507     case $host_os in
6508     rhapsody* | darwin1.[012])
6509       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6510     darwin1.*)
6511       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6512     darwin*) # darwin 5.x on
6513       # if running on 10.5 or later, the deployment target defaults
6514       # to the OS version, if on x86, and 10.4, the deployment
6515       # target defaults to 10.4. Don't you love it?
6516       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6517         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6518           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6519         10.[012]*)
6520           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6521         10.*)
6522           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6523       esac
6524     ;;
6525   esac
6526     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6527       _lt_dar_single_mod='$single_module'
6528     fi
6529     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6530       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6531     else
6532       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6533     fi
6534     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6535       _lt_dsymutil='~$DSYMUTIL $lib || :'
6536     else
6537       _lt_dsymutil=
6538     fi
6539     ;;
6540   esac
6541
6542 ac_ext=c
6543 ac_cpp='$CPP $CPPFLAGS'
6544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6548 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6549 # On Suns, sometimes $CPP names a directory.
6550 if test -n "$CPP" && test -d "$CPP"; then
6551   CPP=
6552 fi
6553 if test -z "$CPP"; then
6554   if ${ac_cv_prog_CPP+:} false; then :
6555   $as_echo_n "(cached) " >&6
6556 else
6557       # Double quotes because CPP needs to be expanded
6558     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6559     do
6560       ac_preproc_ok=false
6561 for ac_c_preproc_warn_flag in '' yes
6562 do
6563   # Use a header file that comes with gcc, so configuring glibc
6564   # with a fresh cross-compiler works.
6565   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6566   # <limits.h> exists even on freestanding compilers.
6567   # On the NeXT, cc -E runs the code through the compiler's parser,
6568   # not just through cpp. "Syntax error" is here to catch this case.
6569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570 /* end confdefs.h.  */
6571 #ifdef __STDC__
6572 # include <limits.h>
6573 #else
6574 # include <assert.h>
6575 #endif
6576                      Syntax error
6577 _ACEOF
6578 if ac_fn_c_try_cpp "$LINENO"; then :
6579
6580 else
6581   # Broken: fails on valid input.
6582 continue
6583 fi
6584 rm -f conftest.err conftest.i conftest.$ac_ext
6585
6586   # OK, works on sane cases.  Now check whether nonexistent headers
6587   # can be detected and how.
6588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h.  */
6590 #include <ac_nonexistent.h>
6591 _ACEOF
6592 if ac_fn_c_try_cpp "$LINENO"; then :
6593   # Broken: success on invalid input.
6594 continue
6595 else
6596   # Passes both tests.
6597 ac_preproc_ok=:
6598 break
6599 fi
6600 rm -f conftest.err conftest.i conftest.$ac_ext
6601
6602 done
6603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6604 rm -f conftest.i conftest.err conftest.$ac_ext
6605 if $ac_preproc_ok; then :
6606   break
6607 fi
6608
6609     done
6610     ac_cv_prog_CPP=$CPP
6611
6612 fi
6613   CPP=$ac_cv_prog_CPP
6614 else
6615   ac_cv_prog_CPP=$CPP
6616 fi
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6618 $as_echo "$CPP" >&6; }
6619 ac_preproc_ok=false
6620 for ac_c_preproc_warn_flag in '' yes
6621 do
6622   # Use a header file that comes with gcc, so configuring glibc
6623   # with a fresh cross-compiler works.
6624   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6625   # <limits.h> exists even on freestanding compilers.
6626   # On the NeXT, cc -E runs the code through the compiler's parser,
6627   # not just through cpp. "Syntax error" is here to catch this case.
6628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629 /* end confdefs.h.  */
6630 #ifdef __STDC__
6631 # include <limits.h>
6632 #else
6633 # include <assert.h>
6634 #endif
6635                      Syntax error
6636 _ACEOF
6637 if ac_fn_c_try_cpp "$LINENO"; then :
6638
6639 else
6640   # Broken: fails on valid input.
6641 continue
6642 fi
6643 rm -f conftest.err conftest.i conftest.$ac_ext
6644
6645   # OK, works on sane cases.  Now check whether nonexistent headers
6646   # can be detected and how.
6647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648 /* end confdefs.h.  */
6649 #include <ac_nonexistent.h>
6650 _ACEOF
6651 if ac_fn_c_try_cpp "$LINENO"; then :
6652   # Broken: success on invalid input.
6653 continue
6654 else
6655   # Passes both tests.
6656 ac_preproc_ok=:
6657 break
6658 fi
6659 rm -f conftest.err conftest.i conftest.$ac_ext
6660
6661 done
6662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6663 rm -f conftest.i conftest.err conftest.$ac_ext
6664 if $ac_preproc_ok; then :
6665
6666 else
6667   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6669 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6670 See \`config.log' for more details" "$LINENO" 5; }
6671 fi
6672
6673 ac_ext=c
6674 ac_cpp='$CPP $CPPFLAGS'
6675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6678
6679
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6681 $as_echo_n "checking for ANSI C header files... " >&6; }
6682 if ${ac_cv_header_stdc+:} false; then :
6683   $as_echo_n "(cached) " >&6
6684 else
6685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6686 /* end confdefs.h.  */
6687 #include <stdlib.h>
6688 #include <stdarg.h>
6689 #include <string.h>
6690 #include <float.h>
6691
6692 int
6693 main ()
6694 {
6695
6696   ;
6697   return 0;
6698 }
6699 _ACEOF
6700 if ac_fn_c_try_compile "$LINENO"; then :
6701   ac_cv_header_stdc=yes
6702 else
6703   ac_cv_header_stdc=no
6704 fi
6705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6706
6707 if test $ac_cv_header_stdc = yes; then
6708   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h.  */
6711 #include <string.h>
6712
6713 _ACEOF
6714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6715   $EGREP "memchr" >/dev/null 2>&1; then :
6716
6717 else
6718   ac_cv_header_stdc=no
6719 fi
6720 rm -f conftest*
6721
6722 fi
6723
6724 if test $ac_cv_header_stdc = yes; then
6725   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h.  */
6728 #include <stdlib.h>
6729
6730 _ACEOF
6731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6732   $EGREP "free" >/dev/null 2>&1; then :
6733
6734 else
6735   ac_cv_header_stdc=no
6736 fi
6737 rm -f conftest*
6738
6739 fi
6740
6741 if test $ac_cv_header_stdc = yes; then
6742   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6743   if test "$cross_compiling" = yes; then :
6744   :
6745 else
6746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6747 /* end confdefs.h.  */
6748 #include <ctype.h>
6749 #include <stdlib.h>
6750 #if ((' ' & 0x0FF) == 0x020)
6751 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6752 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6753 #else
6754 # define ISLOWER(c) \
6755                    (('a' <= (c) && (c) <= 'i') \
6756                      || ('j' <= (c) && (c) <= 'r') \
6757                      || ('s' <= (c) && (c) <= 'z'))
6758 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6759 #endif
6760
6761 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6762 int
6763 main ()
6764 {
6765   int i;
6766   for (i = 0; i < 256; i++)
6767     if (XOR (islower (i), ISLOWER (i))
6768         || toupper (i) != TOUPPER (i))
6769       return 2;
6770   return 0;
6771 }
6772 _ACEOF
6773 if ac_fn_c_try_run "$LINENO"; then :
6774
6775 else
6776   ac_cv_header_stdc=no
6777 fi
6778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6779   conftest.$ac_objext conftest.beam conftest.$ac_ext
6780 fi
6781
6782 fi
6783 fi
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6785 $as_echo "$ac_cv_header_stdc" >&6; }
6786 if test $ac_cv_header_stdc = yes; then
6787
6788 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6789
6790 fi
6791
6792 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6793 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6794                   inttypes.h stdint.h unistd.h
6795 do :
6796   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6797 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6798 "
6799 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6800   cat >>confdefs.h <<_ACEOF
6801 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6802 _ACEOF
6803
6804 fi
6805
6806 done
6807
6808
6809 for ac_header in dlfcn.h
6810 do :
6811   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6812 "
6813 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6814   cat >>confdefs.h <<_ACEOF
6815 #define HAVE_DLFCN_H 1
6816 _ACEOF
6817
6818 fi
6819
6820 done
6821
6822
6823
6824
6825
6826 # Set options
6827
6828
6829
6830         enable_dlopen=no
6831
6832
6833   enable_win32_dll=no
6834
6835
6836             # Check whether --enable-shared was given.
6837 if test "${enable_shared+set}" = set; then :
6838   enableval=$enable_shared; p=${PACKAGE-default}
6839     case $enableval in
6840     yes) enable_shared=yes ;;
6841     no) enable_shared=no ;;
6842     *)
6843       enable_shared=no
6844       # Look at the argument we got.  We use all the common list separators.
6845       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6846       for pkg in $enableval; do
6847         IFS="$lt_save_ifs"
6848         if test "X$pkg" = "X$p"; then
6849           enable_shared=yes
6850         fi
6851       done
6852       IFS="$lt_save_ifs"
6853       ;;
6854     esac
6855 else
6856   enable_shared=yes
6857 fi
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867   # Check whether --enable-static was given.
6868 if test "${enable_static+set}" = set; then :
6869   enableval=$enable_static; p=${PACKAGE-default}
6870     case $enableval in
6871     yes) enable_static=yes ;;
6872     no) enable_static=no ;;
6873     *)
6874      enable_static=no
6875       # Look at the argument we got.  We use all the common list separators.
6876       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6877       for pkg in $enableval; do
6878         IFS="$lt_save_ifs"
6879         if test "X$pkg" = "X$p"; then
6880           enable_static=yes
6881         fi
6882       done
6883       IFS="$lt_save_ifs"
6884       ;;
6885     esac
6886 else
6887   enable_static=yes
6888 fi
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899 # Check whether --with-pic was given.
6900 if test "${with_pic+set}" = set; then :
6901   withval=$with_pic; lt_p=${PACKAGE-default}
6902     case $withval in
6903     yes|no) pic_mode=$withval ;;
6904     *)
6905       pic_mode=default
6906       # Look at the argument we got.  We use all the common list separators.
6907       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6908       for lt_pkg in $withval; do
6909         IFS="$lt_save_ifs"
6910         if test "X$lt_pkg" = "X$lt_p"; then
6911           pic_mode=yes
6912         fi
6913       done
6914       IFS="$lt_save_ifs"
6915       ;;
6916     esac
6917 else
6918   pic_mode=default
6919 fi
6920
6921
6922 test -z "$pic_mode" && pic_mode=default
6923
6924
6925
6926
6927
6928
6929
6930   # Check whether --enable-fast-install was given.
6931 if test "${enable_fast_install+set}" = set; then :
6932   enableval=$enable_fast_install; p=${PACKAGE-default}
6933     case $enableval in
6934     yes) enable_fast_install=yes ;;
6935     no) enable_fast_install=no ;;
6936     *)
6937       enable_fast_install=no
6938       # Look at the argument we got.  We use all the common list separators.
6939       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6940       for pkg in $enableval; do
6941         IFS="$lt_save_ifs"
6942         if test "X$pkg" = "X$p"; then
6943           enable_fast_install=yes
6944         fi
6945       done
6946       IFS="$lt_save_ifs"
6947       ;;
6948     esac
6949 else
6950   enable_fast_install=yes
6951 fi
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963 # This can be used to rebuild libtool when needed
6964 LIBTOOL_DEPS="$ltmain"
6965
6966 # Always use our own libtool.
6967 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998 test -z "$LN_S" && LN_S="ln -s"
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013 if test -n "${ZSH_VERSION+set}" ; then
7014    setopt NO_GLOB_SUBST
7015 fi
7016
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7018 $as_echo_n "checking for objdir... " >&6; }
7019 if ${lt_cv_objdir+:} false; then :
7020   $as_echo_n "(cached) " >&6
7021 else
7022   rm -f .libs 2>/dev/null
7023 mkdir .libs 2>/dev/null
7024 if test -d .libs; then
7025   lt_cv_objdir=.libs
7026 else
7027   # MS-DOS does not allow filenames that begin with a dot.
7028   lt_cv_objdir=_libs
7029 fi
7030 rmdir .libs 2>/dev/null
7031 fi
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7033 $as_echo "$lt_cv_objdir" >&6; }
7034 objdir=$lt_cv_objdir
7035
7036
7037
7038
7039
7040 cat >>confdefs.h <<_ACEOF
7041 #define LT_OBJDIR "$lt_cv_objdir/"
7042 _ACEOF
7043
7044
7045
7046
7047 case $host_os in
7048 aix3*)
7049   # AIX sometimes has problems with the GCC collect2 program.  For some
7050   # reason, if we set the COLLECT_NAMES environment variable, the problems
7051   # vanish in a puff of smoke.
7052   if test "X${COLLECT_NAMES+set}" != Xset; then
7053     COLLECT_NAMES=
7054     export COLLECT_NAMES
7055   fi
7056   ;;
7057 esac
7058
7059 # Global variables:
7060 ofile=libtool
7061 can_build_shared=yes
7062
7063 # All known linkers require a `.a' archive for static linking (except MSVC,
7064 # which needs '.lib').
7065 libext=a
7066
7067 with_gnu_ld="$lt_cv_prog_gnu_ld"
7068
7069 old_CC="$CC"
7070 old_CFLAGS="$CFLAGS"
7071
7072 # Set sane defaults for various variables
7073 test -z "$CC" && CC=cc
7074 test -z "$LTCC" && LTCC=$CC
7075 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7076 test -z "$LD" && LD=ld
7077 test -z "$ac_objext" && ac_objext=o
7078
7079 for cc_temp in $compiler""; do
7080   case $cc_temp in
7081     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7082     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7083     \-*) ;;
7084     *) break;;
7085   esac
7086 done
7087 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7088
7089
7090 # Only perform the check for file, if the check method requires it
7091 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7092 case $deplibs_check_method in
7093 file_magic*)
7094   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7095     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7096 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7097 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7098   $as_echo_n "(cached) " >&6
7099 else
7100   case $MAGIC_CMD in
7101 [\\/*] |  ?:[\\/]*)
7102   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7103   ;;
7104 *)
7105   lt_save_MAGIC_CMD="$MAGIC_CMD"
7106   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7107   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7108   for ac_dir in $ac_dummy; do
7109     IFS="$lt_save_ifs"
7110     test -z "$ac_dir" && ac_dir=.
7111     if test -f $ac_dir/${ac_tool_prefix}file; then
7112       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7113       if test -n "$file_magic_test_file"; then
7114         case $deplibs_check_method in
7115         "file_magic "*)
7116           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7117           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7118           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7119             $EGREP "$file_magic_regex" > /dev/null; then
7120             :
7121           else
7122             cat <<_LT_EOF 1>&2
7123
7124 *** Warning: the command libtool uses to detect shared libraries,
7125 *** $file_magic_cmd, produces output that libtool cannot recognize.
7126 *** The result is that libtool may fail to recognize shared libraries
7127 *** as such.  This will affect the creation of libtool libraries that
7128 *** depend on shared libraries, but programs linked with such libtool
7129 *** libraries will work regardless of this problem.  Nevertheless, you
7130 *** may want to report the problem to your system manager and/or to
7131 *** bug-libtool@gnu.org
7132
7133 _LT_EOF
7134           fi ;;
7135         esac
7136       fi
7137       break
7138     fi
7139   done
7140   IFS="$lt_save_ifs"
7141   MAGIC_CMD="$lt_save_MAGIC_CMD"
7142   ;;
7143 esac
7144 fi
7145
7146 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7147 if test -n "$MAGIC_CMD"; then
7148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7149 $as_echo "$MAGIC_CMD" >&6; }
7150 else
7151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7153 fi
7154
7155
7156
7157
7158
7159 if test -z "$lt_cv_path_MAGIC_CMD"; then
7160   if test -n "$ac_tool_prefix"; then
7161     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7162 $as_echo_n "checking for file... " >&6; }
7163 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7164   $as_echo_n "(cached) " >&6
7165 else
7166   case $MAGIC_CMD in
7167 [\\/*] |  ?:[\\/]*)
7168   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7169   ;;
7170 *)
7171   lt_save_MAGIC_CMD="$MAGIC_CMD"
7172   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7173   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7174   for ac_dir in $ac_dummy; do
7175     IFS="$lt_save_ifs"
7176     test -z "$ac_dir" && ac_dir=.
7177     if test -f $ac_dir/file; then
7178       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7179       if test -n "$file_magic_test_file"; then
7180         case $deplibs_check_method in
7181         "file_magic "*)
7182           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7183           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7184           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7185             $EGREP "$file_magic_regex" > /dev/null; then
7186             :
7187           else
7188             cat <<_LT_EOF 1>&2
7189
7190 *** Warning: the command libtool uses to detect shared libraries,
7191 *** $file_magic_cmd, produces output that libtool cannot recognize.
7192 *** The result is that libtool may fail to recognize shared libraries
7193 *** as such.  This will affect the creation of libtool libraries that
7194 *** depend on shared libraries, but programs linked with such libtool
7195 *** libraries will work regardless of this problem.  Nevertheless, you
7196 *** may want to report the problem to your system manager and/or to
7197 *** bug-libtool@gnu.org
7198
7199 _LT_EOF
7200           fi ;;
7201         esac
7202       fi
7203       break
7204     fi
7205   done
7206   IFS="$lt_save_ifs"
7207   MAGIC_CMD="$lt_save_MAGIC_CMD"
7208   ;;
7209 esac
7210 fi
7211
7212 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7213 if test -n "$MAGIC_CMD"; then
7214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7215 $as_echo "$MAGIC_CMD" >&6; }
7216 else
7217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218 $as_echo "no" >&6; }
7219 fi
7220
7221
7222   else
7223     MAGIC_CMD=:
7224   fi
7225 fi
7226
7227   fi
7228   ;;
7229 esac
7230
7231 # Use C for the default configuration in the libtool script
7232
7233 lt_save_CC="$CC"
7234 ac_ext=c
7235 ac_cpp='$CPP $CPPFLAGS'
7236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7239
7240
7241 # Source file extension for C test sources.
7242 ac_ext=c
7243
7244 # Object file extension for compiled C test sources.
7245 objext=o
7246 objext=$objext
7247
7248 # Code to be used in simple compile tests
7249 lt_simple_compile_test_code="int some_variable = 0;"
7250
7251 # Code to be used in simple link tests
7252 lt_simple_link_test_code='int main(){return(0);}'
7253
7254
7255
7256
7257
7258
7259
7260 # If no C compiler was specified, use CC.
7261 LTCC=${LTCC-"$CC"}
7262
7263 # If no C compiler flags were specified, use CFLAGS.
7264 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7265
7266 # Allow CC to be a program name with arguments.
7267 compiler=$CC
7268
7269 # Save the default compiler, since it gets overwritten when the other
7270 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7271 compiler_DEFAULT=$CC
7272
7273 # save warnings/boilerplate of simple test code
7274 ac_outfile=conftest.$ac_objext
7275 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7276 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7277 _lt_compiler_boilerplate=`cat conftest.err`
7278 $RM conftest*
7279
7280 ac_outfile=conftest.$ac_objext
7281 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7282 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7283 _lt_linker_boilerplate=`cat conftest.err`
7284 $RM -r conftest*
7285
7286
7287 ## CAVEAT EMPTOR:
7288 ## There is no encapsulation within the following macros, do not change
7289 ## the running order or otherwise move them around unless you know exactly
7290 ## what you are doing...
7291 if test -n "$compiler"; then
7292
7293 lt_prog_compiler_no_builtin_flag=
7294
7295 if test "$GCC" = yes; then
7296   case $cc_basename in
7297   nvcc*)
7298     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7299   *)
7300     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7301   esac
7302
7303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7304 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7305 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7306   $as_echo_n "(cached) " >&6
7307 else
7308   lt_cv_prog_compiler_rtti_exceptions=no
7309    ac_outfile=conftest.$ac_objext
7310    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7311    lt_compiler_flag="-fno-rtti -fno-exceptions"
7312    # Insert the option either (1) after the last *FLAGS variable, or
7313    # (2) before a word containing "conftest.", or (3) at the end.
7314    # Note that $ac_compile itself does not contain backslashes and begins
7315    # with a dollar sign (not a hyphen), so the echo should work correctly.
7316    # The option is referenced via a variable to avoid confusing sed.
7317    lt_compile=`echo "$ac_compile" | $SED \
7318    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7319    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7320    -e 's:$: $lt_compiler_flag:'`
7321    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7322    (eval "$lt_compile" 2>conftest.err)
7323    ac_status=$?
7324    cat conftest.err >&5
7325    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326    if (exit $ac_status) && test -s "$ac_outfile"; then
7327      # The compiler can only warn and ignore the option if not recognized
7328      # So say no if there are warnings other than the usual output.
7329      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7330      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7331      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7332        lt_cv_prog_compiler_rtti_exceptions=yes
7333      fi
7334    fi
7335    $RM conftest*
7336
7337 fi
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7339 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7340
7341 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7342     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7343 else
7344     :
7345 fi
7346
7347 fi
7348
7349
7350
7351
7352
7353
7354   lt_prog_compiler_wl=
7355 lt_prog_compiler_pic=
7356 lt_prog_compiler_static=
7357
7358
7359   if test "$GCC" = yes; then
7360     lt_prog_compiler_wl='-Wl,'
7361     lt_prog_compiler_static='-static'
7362
7363     case $host_os in
7364       aix*)
7365       # All AIX code is PIC.
7366       if test "$host_cpu" = ia64; then
7367         # AIX 5 now supports IA64 processor
7368         lt_prog_compiler_static='-Bstatic'
7369       fi
7370       ;;
7371
7372     amigaos*)
7373       case $host_cpu in
7374       powerpc)
7375             # see comment about AmigaOS4 .so support
7376             lt_prog_compiler_pic='-fPIC'
7377         ;;
7378       m68k)
7379             # FIXME: we need at least 68020 code to build shared libraries, but
7380             # adding the `-m68020' flag to GCC prevents building anything better,
7381             # like `-m68040'.
7382             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7383         ;;
7384       esac
7385       ;;
7386
7387     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7388       # PIC is the default for these OSes.
7389       ;;
7390
7391     mingw* | cygwin* | pw32* | os2* | cegcc*)
7392       # This hack is so that the source file can tell whether it is being
7393       # built for inclusion in a dll (and should export symbols for example).
7394       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7395       # (--disable-auto-import) libraries
7396       lt_prog_compiler_pic='-DDLL_EXPORT'
7397       ;;
7398
7399     darwin* | rhapsody*)
7400       # PIC is the default on this platform
7401       # Common symbols not allowed in MH_DYLIB files
7402       lt_prog_compiler_pic='-fno-common'
7403       ;;
7404
7405     haiku*)
7406       # PIC is the default for Haiku.
7407       # The "-static" flag exists, but is broken.
7408       lt_prog_compiler_static=
7409       ;;
7410
7411     hpux*)
7412       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7413       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7414       # sets the default TLS model and affects inlining.
7415       case $host_cpu in
7416       hppa*64*)
7417         # +Z the default
7418         ;;
7419       *)
7420         lt_prog_compiler_pic='-fPIC'
7421         ;;
7422       esac
7423       ;;
7424
7425     interix[3-9]*)
7426       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7427       # Instead, we relocate shared libraries at runtime.
7428       ;;
7429
7430     msdosdjgpp*)
7431       # Just because we use GCC doesn't mean we suddenly get shared libraries
7432       # on systems that don't support them.
7433       lt_prog_compiler_can_build_shared=no
7434       enable_shared=no
7435       ;;
7436
7437     *nto* | *qnx*)
7438       # QNX uses GNU C++, but need to define -shared option too, otherwise
7439       # it will coredump.
7440       lt_prog_compiler_pic='-fPIC -shared'
7441       ;;
7442
7443     sysv4*MP*)
7444       if test -d /usr/nec; then
7445         lt_prog_compiler_pic=-Kconform_pic
7446       fi
7447       ;;
7448
7449     *)
7450       lt_prog_compiler_pic='-fPIC'
7451       ;;
7452     esac
7453
7454     case $cc_basename in
7455     nvcc*) # Cuda Compiler Driver 2.2
7456       lt_prog_compiler_wl='-Xlinker '
7457       if test -n "$lt_prog_compiler_pic"; then
7458         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7459       fi
7460       ;;
7461     esac
7462   else
7463     # PORTME Check for flag to pass linker flags through the system compiler.
7464     case $host_os in
7465     aix*)
7466       lt_prog_compiler_wl='-Wl,'
7467       if test "$host_cpu" = ia64; then
7468         # AIX 5 now supports IA64 processor
7469         lt_prog_compiler_static='-Bstatic'
7470       else
7471         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7472       fi
7473       ;;
7474
7475     mingw* | cygwin* | pw32* | os2* | cegcc*)
7476       # This hack is so that the source file can tell whether it is being
7477       # built for inclusion in a dll (and should export symbols for example).
7478       lt_prog_compiler_pic='-DDLL_EXPORT'
7479       ;;
7480
7481     hpux9* | hpux10* | hpux11*)
7482       lt_prog_compiler_wl='-Wl,'
7483       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7484       # not for PA HP-UX.
7485       case $host_cpu in
7486       hppa*64*|ia64*)
7487         # +Z the default
7488         ;;
7489       *)
7490         lt_prog_compiler_pic='+Z'
7491         ;;
7492       esac
7493       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7494       lt_prog_compiler_static='${wl}-a ${wl}archive'
7495       ;;
7496
7497     irix5* | irix6* | nonstopux*)
7498       lt_prog_compiler_wl='-Wl,'
7499       # PIC (with -KPIC) is the default.
7500       lt_prog_compiler_static='-non_shared'
7501       ;;
7502
7503     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7504       case $cc_basename in
7505       # old Intel for x86_64 which still supported -KPIC.
7506       ecc*)
7507         lt_prog_compiler_wl='-Wl,'
7508         lt_prog_compiler_pic='-KPIC'
7509         lt_prog_compiler_static='-static'
7510         ;;
7511       # icc used to be incompatible with GCC.
7512       # ICC 10 doesn't accept -KPIC any more.
7513       icc* | ifort*)
7514         lt_prog_compiler_wl='-Wl,'
7515         lt_prog_compiler_pic='-fPIC'
7516         lt_prog_compiler_static='-static'
7517         ;;
7518       # Lahey Fortran 8.1.
7519       lf95*)
7520         lt_prog_compiler_wl='-Wl,'
7521         lt_prog_compiler_pic='--shared'
7522         lt_prog_compiler_static='--static'
7523         ;;
7524       nagfor*)
7525         # NAG Fortran compiler
7526         lt_prog_compiler_wl='-Wl,-Wl,,'
7527         lt_prog_compiler_pic='-PIC'
7528         lt_prog_compiler_static='-Bstatic'
7529         ;;
7530       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7531         # Portland Group compilers (*not* the Pentium gcc compiler,
7532         # which looks to be a dead project)
7533         lt_prog_compiler_wl='-Wl,'
7534         lt_prog_compiler_pic='-fpic'
7535         lt_prog_compiler_static='-Bstatic'
7536         ;;
7537       ccc*)
7538         lt_prog_compiler_wl='-Wl,'
7539         # All Alpha code is PIC.
7540         lt_prog_compiler_static='-non_shared'
7541         ;;
7542       xl* | bgxl* | bgf* | mpixl*)
7543         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7544         lt_prog_compiler_wl='-Wl,'
7545         lt_prog_compiler_pic='-qpic'
7546         lt_prog_compiler_static='-qstaticlink'
7547         ;;
7548       *)
7549         case `$CC -V 2>&1 | sed 5q` in
7550         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7551           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7552           lt_prog_compiler_pic='-KPIC'
7553           lt_prog_compiler_static='-Bstatic'
7554           lt_prog_compiler_wl=''
7555           ;;
7556         *Sun\ F* | *Sun*Fortran*)
7557           lt_prog_compiler_pic='-KPIC'
7558           lt_prog_compiler_static='-Bstatic'
7559           lt_prog_compiler_wl='-Qoption ld '
7560           ;;
7561         *Sun\ C*)
7562           # Sun C 5.9
7563           lt_prog_compiler_pic='-KPIC'
7564           lt_prog_compiler_static='-Bstatic'
7565           lt_prog_compiler_wl='-Wl,'
7566           ;;
7567         *Intel*\ [CF]*Compiler*)
7568           lt_prog_compiler_wl='-Wl,'
7569           lt_prog_compiler_pic='-fPIC'
7570           lt_prog_compiler_static='-static'
7571           ;;
7572         *Portland\ Group*)
7573           lt_prog_compiler_wl='-Wl,'
7574           lt_prog_compiler_pic='-fpic'
7575           lt_prog_compiler_static='-Bstatic'
7576           ;;
7577         esac
7578         ;;
7579       esac
7580       ;;
7581
7582     newsos6)
7583       lt_prog_compiler_pic='-KPIC'
7584       lt_prog_compiler_static='-Bstatic'
7585       ;;
7586
7587     *nto* | *qnx*)
7588       # QNX uses GNU C++, but need to define -shared option too, otherwise
7589       # it will coredump.
7590       lt_prog_compiler_pic='-fPIC -shared'
7591       ;;
7592
7593     osf3* | osf4* | osf5*)
7594       lt_prog_compiler_wl='-Wl,'
7595       # All OSF/1 code is PIC.
7596       lt_prog_compiler_static='-non_shared'
7597       ;;
7598
7599     rdos*)
7600       lt_prog_compiler_static='-non_shared'
7601       ;;
7602
7603     solaris*)
7604       lt_prog_compiler_pic='-KPIC'
7605       lt_prog_compiler_static='-Bstatic'
7606       case $cc_basename in
7607       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7608         lt_prog_compiler_wl='-Qoption ld ';;
7609       *)
7610         lt_prog_compiler_wl='-Wl,';;
7611       esac
7612       ;;
7613
7614     sunos4*)
7615       lt_prog_compiler_wl='-Qoption ld '
7616       lt_prog_compiler_pic='-PIC'
7617       lt_prog_compiler_static='-Bstatic'
7618       ;;
7619
7620     sysv4 | sysv4.2uw2* | sysv4.3*)
7621       lt_prog_compiler_wl='-Wl,'
7622       lt_prog_compiler_pic='-KPIC'
7623       lt_prog_compiler_static='-Bstatic'
7624       ;;
7625
7626     sysv4*MP*)
7627       if test -d /usr/nec ;then
7628         lt_prog_compiler_pic='-Kconform_pic'
7629         lt_prog_compiler_static='-Bstatic'
7630       fi
7631       ;;
7632
7633     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7634       lt_prog_compiler_wl='-Wl,'
7635       lt_prog_compiler_pic='-KPIC'
7636       lt_prog_compiler_static='-Bstatic'
7637       ;;
7638
7639     unicos*)
7640       lt_prog_compiler_wl='-Wl,'
7641       lt_prog_compiler_can_build_shared=no
7642       ;;
7643
7644     uts4*)
7645       lt_prog_compiler_pic='-pic'
7646       lt_prog_compiler_static='-Bstatic'
7647       ;;
7648
7649     *)
7650       lt_prog_compiler_can_build_shared=no
7651       ;;
7652     esac
7653   fi
7654
7655 case $host_os in
7656   # For platforms which do not support PIC, -DPIC is meaningless:
7657   *djgpp*)
7658     lt_prog_compiler_pic=
7659     ;;
7660   *)
7661     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7662     ;;
7663 esac
7664
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7666 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7667 if ${lt_cv_prog_compiler_pic+:} false; then :
7668   $as_echo_n "(cached) " >&6
7669 else
7670   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7671 fi
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7673 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7674 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7675
7676 #
7677 # Check to make sure the PIC flag actually works.
7678 #
7679 if test -n "$lt_prog_compiler_pic"; then
7680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7681 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7682 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7683   $as_echo_n "(cached) " >&6
7684 else
7685   lt_cv_prog_compiler_pic_works=no
7686    ac_outfile=conftest.$ac_objext
7687    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7688    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7689    # Insert the option either (1) after the last *FLAGS variable, or
7690    # (2) before a word containing "conftest.", or (3) at the end.
7691    # Note that $ac_compile itself does not contain backslashes and begins
7692    # with a dollar sign (not a hyphen), so the echo should work correctly.
7693    # The option is referenced via a variable to avoid confusing sed.
7694    lt_compile=`echo "$ac_compile" | $SED \
7695    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7696    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7697    -e 's:$: $lt_compiler_flag:'`
7698    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7699    (eval "$lt_compile" 2>conftest.err)
7700    ac_status=$?
7701    cat conftest.err >&5
7702    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703    if (exit $ac_status) && test -s "$ac_outfile"; then
7704      # The compiler can only warn and ignore the option if not recognized
7705      # So say no if there are warnings other than the usual output.
7706      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7707      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7708      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7709        lt_cv_prog_compiler_pic_works=yes
7710      fi
7711    fi
7712    $RM conftest*
7713
7714 fi
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7716 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7717
7718 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7719     case $lt_prog_compiler_pic in
7720      "" | " "*) ;;
7721      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7722      esac
7723 else
7724     lt_prog_compiler_pic=
7725      lt_prog_compiler_can_build_shared=no
7726 fi
7727
7728 fi
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740 #
7741 # Check to make sure the static flag actually works.
7742 #
7743 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7745 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7746 if ${lt_cv_prog_compiler_static_works+:} false; then :
7747   $as_echo_n "(cached) " >&6
7748 else
7749   lt_cv_prog_compiler_static_works=no
7750    save_LDFLAGS="$LDFLAGS"
7751    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7752    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7753    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7754      # The linker can only warn and ignore the option if not recognized
7755      # So say no if there are warnings
7756      if test -s conftest.err; then
7757        # Append any errors to the config.log.
7758        cat conftest.err 1>&5
7759        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7760        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7761        if diff conftest.exp conftest.er2 >/dev/null; then
7762          lt_cv_prog_compiler_static_works=yes
7763        fi
7764      else
7765        lt_cv_prog_compiler_static_works=yes
7766      fi
7767    fi
7768    $RM -r conftest*
7769    LDFLAGS="$save_LDFLAGS"
7770
7771 fi
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7773 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7774
7775 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7776     :
7777 else
7778     lt_prog_compiler_static=
7779 fi
7780
7781
7782
7783
7784
7785
7786
7787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7788 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7789 if ${lt_cv_prog_compiler_c_o+:} false; then :
7790   $as_echo_n "(cached) " >&6
7791 else
7792   lt_cv_prog_compiler_c_o=no
7793    $RM -r conftest 2>/dev/null
7794    mkdir conftest
7795    cd conftest
7796    mkdir out
7797    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7798
7799    lt_compiler_flag="-o out/conftest2.$ac_objext"
7800    # Insert the option either (1) after the last *FLAGS variable, or
7801    # (2) before a word containing "conftest.", or (3) at the end.
7802    # Note that $ac_compile itself does not contain backslashes and begins
7803    # with a dollar sign (not a hyphen), so the echo should work correctly.
7804    lt_compile=`echo "$ac_compile" | $SED \
7805    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7806    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7807    -e 's:$: $lt_compiler_flag:'`
7808    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7809    (eval "$lt_compile" 2>out/conftest.err)
7810    ac_status=$?
7811    cat out/conftest.err >&5
7812    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7814    then
7815      # The compiler can only warn and ignore the option if not recognized
7816      # So say no if there are warnings
7817      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7818      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7819      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7820        lt_cv_prog_compiler_c_o=yes
7821      fi
7822    fi
7823    chmod u+w . 2>&5
7824    $RM conftest*
7825    # SGI C++ compiler will create directory out/ii_files/ for
7826    # template instantiation
7827    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7828    $RM out/* && rmdir out
7829    cd ..
7830    $RM -r conftest
7831    $RM conftest*
7832
7833 fi
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7835 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7836
7837
7838
7839
7840
7841
7842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7843 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7844 if ${lt_cv_prog_compiler_c_o+:} false; then :
7845   $as_echo_n "(cached) " >&6
7846 else
7847   lt_cv_prog_compiler_c_o=no
7848    $RM -r conftest 2>/dev/null
7849    mkdir conftest
7850    cd conftest
7851    mkdir out
7852    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7853
7854    lt_compiler_flag="-o out/conftest2.$ac_objext"
7855    # Insert the option either (1) after the last *FLAGS variable, or
7856    # (2) before a word containing "conftest.", or (3) at the end.
7857    # Note that $ac_compile itself does not contain backslashes and begins
7858    # with a dollar sign (not a hyphen), so the echo should work correctly.
7859    lt_compile=`echo "$ac_compile" | $SED \
7860    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7861    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7862    -e 's:$: $lt_compiler_flag:'`
7863    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7864    (eval "$lt_compile" 2>out/conftest.err)
7865    ac_status=$?
7866    cat out/conftest.err >&5
7867    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7869    then
7870      # The compiler can only warn and ignore the option if not recognized
7871      # So say no if there are warnings
7872      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7873      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7874      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7875        lt_cv_prog_compiler_c_o=yes
7876      fi
7877    fi
7878    chmod u+w . 2>&5
7879    $RM conftest*
7880    # SGI C++ compiler will create directory out/ii_files/ for
7881    # template instantiation
7882    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7883    $RM out/* && rmdir out
7884    cd ..
7885    $RM -r conftest
7886    $RM conftest*
7887
7888 fi
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7890 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7891
7892
7893
7894
7895 hard_links="nottested"
7896 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7897   # do not overwrite the value of need_locks provided by the user
7898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7899 $as_echo_n "checking if we can lock with hard links... " >&6; }
7900   hard_links=yes
7901   $RM conftest*
7902   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7903   touch conftest.a
7904   ln conftest.a conftest.b 2>&5 || hard_links=no
7905   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7907 $as_echo "$hard_links" >&6; }
7908   if test "$hard_links" = no; then
7909     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7910 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7911     need_locks=warn
7912   fi
7913 else
7914   need_locks=no
7915 fi
7916
7917
7918
7919
7920
7921
7922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7923 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7924
7925   runpath_var=
7926   allow_undefined_flag=
7927   always_export_symbols=no
7928   archive_cmds=
7929   archive_expsym_cmds=
7930   compiler_needs_object=no
7931   enable_shared_with_static_runtimes=no
7932   export_dynamic_flag_spec=
7933   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7934   hardcode_automatic=no
7935   hardcode_direct=no
7936   hardcode_direct_absolute=no
7937   hardcode_libdir_flag_spec=
7938   hardcode_libdir_separator=
7939   hardcode_minus_L=no
7940   hardcode_shlibpath_var=unsupported
7941   inherit_rpath=no
7942   link_all_deplibs=unknown
7943   module_cmds=
7944   module_expsym_cmds=
7945   old_archive_from_new_cmds=
7946   old_archive_from_expsyms_cmds=
7947   thread_safe_flag_spec=
7948   whole_archive_flag_spec=
7949   # include_expsyms should be a list of space-separated symbols to be *always*
7950   # included in the symbol list
7951   include_expsyms=
7952   # exclude_expsyms can be an extended regexp of symbols to exclude
7953   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7954   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7955   # as well as any symbol that contains `d'.
7956   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7957   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7958   # platforms (ab)use it in PIC code, but their linkers get confused if
7959   # the symbol is explicitly referenced.  Since portable code cannot
7960   # rely on this symbol name, it's probably fine to never include it in
7961   # preloaded symbol tables.
7962   # Exclude shared library initialization/finalization symbols.
7963   extract_expsyms_cmds=
7964
7965   case $host_os in
7966   cygwin* | mingw* | pw32* | cegcc*)
7967     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7968     # When not using gcc, we currently assume that we are using
7969     # Microsoft Visual C++.
7970     if test "$GCC" != yes; then
7971       with_gnu_ld=no
7972     fi
7973     ;;
7974   interix*)
7975     # we just hope/assume this is gcc and not c89 (= MSVC++)
7976     with_gnu_ld=yes
7977     ;;
7978   openbsd*)
7979     with_gnu_ld=no
7980     ;;
7981   esac
7982
7983   ld_shlibs=yes
7984
7985   # On some targets, GNU ld is compatible enough with the native linker
7986   # that we're better off using the native interface for both.
7987   lt_use_gnu_ld_interface=no
7988   if test "$with_gnu_ld" = yes; then
7989     case $host_os in
7990       aix*)
7991         # The AIX port of GNU ld has always aspired to compatibility
7992         # with the native linker.  However, as the warning in the GNU ld
7993         # block says, versions before 2.19.5* couldn't really create working
7994         # shared libraries, regardless of the interface used.
7995         case `$LD -v 2>&1` in
7996           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7997           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7998           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7999           *)
8000             lt_use_gnu_ld_interface=yes
8001             ;;
8002         esac
8003         ;;
8004       *)
8005         lt_use_gnu_ld_interface=yes
8006         ;;
8007     esac
8008   fi
8009
8010   if test "$lt_use_gnu_ld_interface" = yes; then
8011     # If archive_cmds runs LD, not CC, wlarc should be empty
8012     wlarc='${wl}'
8013
8014     # Set some defaults for GNU ld with shared library support. These
8015     # are reset later if shared libraries are not supported. Putting them
8016     # here allows them to be overridden if necessary.
8017     runpath_var=LD_RUN_PATH
8018     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8019     export_dynamic_flag_spec='${wl}--export-dynamic'
8020     # ancient GNU ld didn't support --whole-archive et. al.
8021     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8022       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8023     else
8024       whole_archive_flag_spec=
8025     fi
8026     supports_anon_versioning=no
8027     case `$LD -v 2>&1` in
8028       *GNU\ gold*) supports_anon_versioning=yes ;;
8029       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8030       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8031       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8032       *\ 2.11.*) ;; # other 2.11 versions
8033       *) supports_anon_versioning=yes ;;
8034     esac
8035
8036     # See if GNU ld supports shared libraries.
8037     case $host_os in
8038     aix[3-9]*)
8039       # On AIX/PPC, the GNU linker is very broken
8040       if test "$host_cpu" != ia64; then
8041         ld_shlibs=no
8042         cat <<_LT_EOF 1>&2
8043
8044 *** Warning: the GNU linker, at least up to release 2.19, is reported
8045 *** to be unable to reliably create shared libraries on AIX.
8046 *** Therefore, libtool is disabling shared libraries support.  If you
8047 *** really care for shared libraries, you may want to install binutils
8048 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8049 *** You will then need to restart the configuration process.
8050
8051 _LT_EOF
8052       fi
8053       ;;
8054
8055     amigaos*)
8056       case $host_cpu in
8057       powerpc)
8058             # see comment about AmigaOS4 .so support
8059             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8060             archive_expsym_cmds=''
8061         ;;
8062       m68k)
8063             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)'
8064             hardcode_libdir_flag_spec='-L$libdir'
8065             hardcode_minus_L=yes
8066         ;;
8067       esac
8068       ;;
8069
8070     beos*)
8071       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8072         allow_undefined_flag=unsupported
8073         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8074         # support --undefined.  This deserves some investigation.  FIXME
8075         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8076       else
8077         ld_shlibs=no
8078       fi
8079       ;;
8080
8081     cygwin* | mingw* | pw32* | cegcc*)
8082       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8083       # as there is no search path for DLLs.
8084       hardcode_libdir_flag_spec='-L$libdir'
8085       export_dynamic_flag_spec='${wl}--export-all-symbols'
8086       allow_undefined_flag=unsupported
8087       always_export_symbols=no
8088       enable_shared_with_static_runtimes=yes
8089       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'
8090       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8091
8092       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8093         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8094         # If the export-symbols file already is a .def file (1st line
8095         # is EXPORTS), use it as is; otherwise, prepend...
8096         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8097           cp $export_symbols $output_objdir/$soname.def;
8098         else
8099           echo EXPORTS > $output_objdir/$soname.def;
8100           cat $export_symbols >> $output_objdir/$soname.def;
8101         fi~
8102         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8103       else
8104         ld_shlibs=no
8105       fi
8106       ;;
8107
8108     haiku*)
8109       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8110       link_all_deplibs=yes
8111       ;;
8112
8113     interix[3-9]*)
8114       hardcode_direct=no
8115       hardcode_shlibpath_var=no
8116       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8117       export_dynamic_flag_spec='${wl}-E'
8118       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8119       # Instead, shared libraries are loaded at an image base (0x10000000 by
8120       # default) and relocated if they conflict, which is a slow very memory
8121       # consuming and fragmenting process.  To avoid this, we pick a random,
8122       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8123       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8124       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8125       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'
8126       ;;
8127
8128     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8129       tmp_diet=no
8130       if test "$host_os" = linux-dietlibc; then
8131         case $cc_basename in
8132           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8133         esac
8134       fi
8135       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8136          && test "$tmp_diet" = no
8137       then
8138         tmp_addflag=' $pic_flag'
8139         tmp_sharedflag='-shared'
8140         case $cc_basename,$host_cpu in
8141         pgcc*)                          # Portland Group C compiler
8142           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'
8143           tmp_addflag=' $pic_flag'
8144           ;;
8145         pgf77* | pgf90* | pgf95* | pgfortran*)
8146                                         # Portland Group f77 and f90 compilers
8147           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'
8148           tmp_addflag=' $pic_flag -Mnomain' ;;
8149         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8150           tmp_addflag=' -i_dynamic' ;;
8151         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8152           tmp_addflag=' -i_dynamic -nofor_main' ;;
8153         ifc* | ifort*)                  # Intel Fortran compiler
8154           tmp_addflag=' -nofor_main' ;;
8155         lf95*)                          # Lahey Fortran 8.1
8156           whole_archive_flag_spec=
8157           tmp_sharedflag='--shared' ;;
8158         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8159           tmp_sharedflag='-qmkshrobj'
8160           tmp_addflag= ;;
8161         nvcc*)  # Cuda Compiler Driver 2.2
8162           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'
8163           compiler_needs_object=yes
8164           ;;
8165         esac
8166         case `$CC -V 2>&1 | sed 5q` in
8167         *Sun\ C*)                       # Sun C 5.9
8168           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'
8169           compiler_needs_object=yes
8170           tmp_sharedflag='-G' ;;
8171         *Sun\ F*)                       # Sun Fortran 8.3
8172           tmp_sharedflag='-G' ;;
8173         esac
8174         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8175
8176         if test "x$supports_anon_versioning" = xyes; then
8177           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8178             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8179             echo "local: *; };" >> $output_objdir/$libname.ver~
8180             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8181         fi
8182
8183         case $cc_basename in
8184         xlf* | bgf* | bgxlf* | mpixlf*)
8185           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8186           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8187           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8188           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8189           if test "x$supports_anon_versioning" = xyes; then
8190             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8191               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8192               echo "local: *; };" >> $output_objdir/$libname.ver~
8193               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8194           fi
8195           ;;
8196         esac
8197       else
8198         ld_shlibs=no
8199       fi
8200       ;;
8201
8202     netbsd*)
8203       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8204         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8205         wlarc=
8206       else
8207         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8208         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8209       fi
8210       ;;
8211
8212     solaris*)
8213       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8214         ld_shlibs=no
8215         cat <<_LT_EOF 1>&2
8216
8217 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8218 *** create shared libraries on Solaris systems.  Therefore, libtool
8219 *** is disabling shared libraries support.  We urge you to upgrade GNU
8220 *** binutils to release 2.9.1 or newer.  Another option is to modify
8221 *** your PATH or compiler configuration so that the native linker is
8222 *** used, and then restart.
8223
8224 _LT_EOF
8225       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8226         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8227         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8228       else
8229         ld_shlibs=no
8230       fi
8231       ;;
8232
8233     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8234       case `$LD -v 2>&1` in
8235         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8236         ld_shlibs=no
8237         cat <<_LT_EOF 1>&2
8238
8239 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8240 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8241 *** is disabling shared libraries support.  We urge you to upgrade GNU
8242 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8243 *** your PATH or compiler configuration so that the native linker is
8244 *** used, and then restart.
8245
8246 _LT_EOF
8247         ;;
8248         *)
8249           # For security reasons, it is highly recommended that you always
8250           # use absolute paths for naming shared libraries, and exclude the
8251           # DT_RUNPATH tag from executables and libraries.  But doing so
8252           # requires that you compile everything twice, which is a pain.
8253           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8254             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8255             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8256             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8257           else
8258             ld_shlibs=no
8259           fi
8260         ;;
8261       esac
8262       ;;
8263
8264     sunos4*)
8265       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8266       wlarc=
8267       hardcode_direct=yes
8268       hardcode_shlibpath_var=no
8269       ;;
8270
8271     *)
8272       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8273         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8274         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8275       else
8276         ld_shlibs=no
8277       fi
8278       ;;
8279     esac
8280
8281     if test "$ld_shlibs" = no; then
8282       runpath_var=
8283       hardcode_libdir_flag_spec=
8284       export_dynamic_flag_spec=
8285       whole_archive_flag_spec=
8286     fi
8287   else
8288     # PORTME fill in a description of your system's linker (not GNU ld)
8289     case $host_os in
8290     aix3*)
8291       allow_undefined_flag=unsupported
8292       always_export_symbols=yes
8293       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'
8294       # Note: this linker hardcodes the directories in LIBPATH if there
8295       # are no directories specified by -L.
8296       hardcode_minus_L=yes
8297       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8298         # Neither direct hardcoding nor static linking is supported with a
8299         # broken collect2.
8300         hardcode_direct=unsupported
8301       fi
8302       ;;
8303
8304     aix[4-9]*)
8305       if test "$host_cpu" = ia64; then
8306         # On IA64, the linker does run time linking by default, so we don't
8307         # have to do anything special.
8308         aix_use_runtimelinking=no
8309         exp_sym_flag='-Bexport'
8310         no_entry_flag=""
8311       else
8312         # If we're using GNU nm, then we don't want the "-C" option.
8313         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8314         # Also, AIX nm treats weak defined symbols like other global
8315         # defined symbols, whereas GNU nm marks them as "W".
8316         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8317           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'
8318         else
8319           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'
8320         fi
8321         aix_use_runtimelinking=no
8322
8323         # Test if we are trying to use run time linking or normal
8324         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8325         # need to do runtime linking.
8326         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8327           for ld_flag in $LDFLAGS; do
8328           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8329             aix_use_runtimelinking=yes
8330             break
8331           fi
8332           done
8333           ;;
8334         esac
8335
8336         exp_sym_flag='-bexport'
8337         no_entry_flag='-bnoentry'
8338       fi
8339
8340       # When large executables or shared objects are built, AIX ld can
8341       # have problems creating the table of contents.  If linking a library
8342       # or program results in "error TOC overflow" add -mminimal-toc to
8343       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8344       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8345
8346       archive_cmds=''
8347       hardcode_direct=yes
8348       hardcode_direct_absolute=yes
8349       hardcode_libdir_separator=':'
8350       link_all_deplibs=yes
8351       file_list_spec='${wl}-f,'
8352
8353       if test "$GCC" = yes; then
8354         case $host_os in aix4.[012]|aix4.[012].*)
8355         # We only want to do this on AIX 4.2 and lower, the check
8356         # below for broken collect2 doesn't work under 4.3+
8357           collect2name=`${CC} -print-prog-name=collect2`
8358           if test -f "$collect2name" &&
8359            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8360           then
8361           # We have reworked collect2
8362           :
8363           else
8364           # We have old collect2
8365           hardcode_direct=unsupported
8366           # It fails to find uninstalled libraries when the uninstalled
8367           # path is not listed in the libpath.  Setting hardcode_minus_L
8368           # to unsupported forces relinking
8369           hardcode_minus_L=yes
8370           hardcode_libdir_flag_spec='-L$libdir'
8371           hardcode_libdir_separator=
8372           fi
8373           ;;
8374         esac
8375         shared_flag='-shared'
8376         if test "$aix_use_runtimelinking" = yes; then
8377           shared_flag="$shared_flag "'${wl}-G'
8378         fi
8379       else
8380         # not using gcc
8381         if test "$host_cpu" = ia64; then
8382         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8383         # chokes on -Wl,-G. The following line is correct:
8384           shared_flag='-G'
8385         else
8386           if test "$aix_use_runtimelinking" = yes; then
8387             shared_flag='${wl}-G'
8388           else
8389             shared_flag='${wl}-bM:SRE'
8390           fi
8391         fi
8392       fi
8393
8394       export_dynamic_flag_spec='${wl}-bexpall'
8395       # It seems that -bexpall does not export symbols beginning with
8396       # underscore (_), so it is better to generate a list of symbols to export.
8397       always_export_symbols=yes
8398       if test "$aix_use_runtimelinking" = yes; then
8399         # Warning - without using the other runtime loading flags (-brtl),
8400         # -berok will link without error, but may produce a broken library.
8401         allow_undefined_flag='-berok'
8402         # Determine the default libpath from the value encoded in an
8403         # empty executable.
8404         if test "${lt_cv_aix_libpath+set}" = set; then
8405   aix_libpath=$lt_cv_aix_libpath
8406 else
8407   if ${lt_cv_aix_libpath_+:} false; then :
8408   $as_echo_n "(cached) " >&6
8409 else
8410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h.  */
8412
8413 int
8414 main ()
8415 {
8416
8417   ;
8418   return 0;
8419 }
8420 _ACEOF
8421 if ac_fn_c_try_link "$LINENO"; then :
8422
8423   lt_aix_libpath_sed='
8424       /Import File Strings/,/^$/ {
8425           /^0/ {
8426               s/^0  *\([^ ]*\) *$/\1/
8427               p
8428           }
8429       }'
8430   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8431   # Check for a 64-bit object if we didn't find anything.
8432   if test -z "$lt_cv_aix_libpath_"; then
8433     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8434   fi
8435 fi
8436 rm -f core conftest.err conftest.$ac_objext \
8437     conftest$ac_exeext conftest.$ac_ext
8438   if test -z "$lt_cv_aix_libpath_"; then
8439     lt_cv_aix_libpath_="/usr/lib:/lib"
8440   fi
8441
8442 fi
8443
8444   aix_libpath=$lt_cv_aix_libpath_
8445 fi
8446
8447         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8448         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"
8449       else
8450         if test "$host_cpu" = ia64; then
8451           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8452           allow_undefined_flag="-z nodefs"
8453           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"
8454         else
8455          # Determine the default libpath from the value encoded in an
8456          # empty executable.
8457          if test "${lt_cv_aix_libpath+set}" = set; then
8458   aix_libpath=$lt_cv_aix_libpath
8459 else
8460   if ${lt_cv_aix_libpath_+:} false; then :
8461   $as_echo_n "(cached) " >&6
8462 else
8463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464 /* end confdefs.h.  */
8465
8466 int
8467 main ()
8468 {
8469
8470   ;
8471   return 0;
8472 }
8473 _ACEOF
8474 if ac_fn_c_try_link "$LINENO"; then :
8475
8476   lt_aix_libpath_sed='
8477       /Import File Strings/,/^$/ {
8478           /^0/ {
8479               s/^0  *\([^ ]*\) *$/\1/
8480               p
8481           }
8482       }'
8483   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8484   # Check for a 64-bit object if we didn't find anything.
8485   if test -z "$lt_cv_aix_libpath_"; then
8486     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8487   fi
8488 fi
8489 rm -f core conftest.err conftest.$ac_objext \
8490     conftest$ac_exeext conftest.$ac_ext
8491   if test -z "$lt_cv_aix_libpath_"; then
8492     lt_cv_aix_libpath_="/usr/lib:/lib"
8493   fi
8494
8495 fi
8496
8497   aix_libpath=$lt_cv_aix_libpath_
8498 fi
8499
8500          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8501           # Warning - without using the other run time loading flags,
8502           # -berok will link without error, but may produce a broken library.
8503           no_undefined_flag=' ${wl}-bernotok'
8504           allow_undefined_flag=' ${wl}-berok'
8505           if test "$with_gnu_ld" = yes; then
8506             # We only use this code for GNU lds that support --whole-archive.
8507             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8508           else
8509             # Exported symbols can be pulled into shared objects from archives
8510             whole_archive_flag_spec='$convenience'
8511           fi
8512           archive_cmds_need_lc=yes
8513           # This is similar to how AIX traditionally builds its shared libraries.
8514           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'
8515         fi
8516       fi
8517       ;;
8518
8519     amigaos*)
8520       case $host_cpu in
8521       powerpc)
8522             # see comment about AmigaOS4 .so support
8523             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8524             archive_expsym_cmds=''
8525         ;;
8526       m68k)
8527             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)'
8528             hardcode_libdir_flag_spec='-L$libdir'
8529             hardcode_minus_L=yes
8530         ;;
8531       esac
8532       ;;
8533
8534     bsdi[45]*)
8535       export_dynamic_flag_spec=-rdynamic
8536       ;;
8537
8538     cygwin* | mingw* | pw32* | cegcc*)
8539       # When not using gcc, we currently assume that we are using
8540       # Microsoft Visual C++.
8541       # hardcode_libdir_flag_spec is actually meaningless, as there is
8542       # no search path for DLLs.
8543       case $cc_basename in
8544       cl*)
8545         # Native MSVC
8546         hardcode_libdir_flag_spec=' '
8547         allow_undefined_flag=unsupported
8548         always_export_symbols=yes
8549         file_list_spec='@'
8550         # Tell ltmain to make .lib files, not .a files.
8551         libext=lib
8552         # Tell ltmain to make .dll files, not .so files.
8553         shrext_cmds=".dll"
8554         # FIXME: Setting linknames here is a bad hack.
8555         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8556         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8557             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8558           else
8559             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8560           fi~
8561           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8562           linknames='
8563         # The linker will not automatically build a static lib if we build a DLL.
8564         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8565         enable_shared_with_static_runtimes=yes
8566         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8567         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8568         # Don't use ranlib
8569         old_postinstall_cmds='chmod 644 $oldlib'
8570         postlink_cmds='lt_outputfile="@OUTPUT@"~
8571           lt_tool_outputfile="@TOOL_OUTPUT@"~
8572           case $lt_outputfile in
8573             *.exe|*.EXE) ;;
8574             *)
8575               lt_outputfile="$lt_outputfile.exe"
8576               lt_tool_outputfile="$lt_tool_outputfile.exe"
8577               ;;
8578           esac~
8579           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8580             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8581             $RM "$lt_outputfile.manifest";
8582           fi'
8583         ;;
8584       *)
8585         # Assume MSVC wrapper
8586         hardcode_libdir_flag_spec=' '
8587         allow_undefined_flag=unsupported
8588         # Tell ltmain to make .lib files, not .a files.
8589         libext=lib
8590         # Tell ltmain to make .dll files, not .so files.
8591         shrext_cmds=".dll"
8592         # FIXME: Setting linknames here is a bad hack.
8593         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8594         # The linker will automatically build a .lib file if we build a DLL.
8595         old_archive_from_new_cmds='true'
8596         # FIXME: Should let the user specify the lib program.
8597         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8598         enable_shared_with_static_runtimes=yes
8599         ;;
8600       esac
8601       ;;
8602
8603     darwin* | rhapsody*)
8604
8605
8606   archive_cmds_need_lc=no
8607   hardcode_direct=no
8608   hardcode_automatic=yes
8609   hardcode_shlibpath_var=unsupported
8610   if test "$lt_cv_ld_force_load" = "yes"; then
8611     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\"`'
8612
8613   else
8614     whole_archive_flag_spec=''
8615   fi
8616   link_all_deplibs=yes
8617   allow_undefined_flag="$_lt_dar_allow_undefined"
8618   case $cc_basename in
8619      ifort*) _lt_dar_can_shared=yes ;;
8620      *) _lt_dar_can_shared=$GCC ;;
8621   esac
8622   if test "$_lt_dar_can_shared" = "yes"; then
8623     output_verbose_link_cmd=func_echo_all
8624     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8625     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8626     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}"
8627     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}"
8628
8629   else
8630   ld_shlibs=no
8631   fi
8632
8633       ;;
8634
8635     dgux*)
8636       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8637       hardcode_libdir_flag_spec='-L$libdir'
8638       hardcode_shlibpath_var=no
8639       ;;
8640
8641     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8642     # support.  Future versions do this automatically, but an explicit c++rt0.o
8643     # does not break anything, and helps significantly (at the cost of a little
8644     # extra space).
8645     freebsd2.2*)
8646       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8647       hardcode_libdir_flag_spec='-R$libdir'
8648       hardcode_direct=yes
8649       hardcode_shlibpath_var=no
8650       ;;
8651
8652     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8653     freebsd2.*)
8654       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8655       hardcode_direct=yes
8656       hardcode_minus_L=yes
8657       hardcode_shlibpath_var=no
8658       ;;
8659
8660     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8661     freebsd* | dragonfly*)
8662       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8663       hardcode_libdir_flag_spec='-R$libdir'
8664       hardcode_direct=yes
8665       hardcode_shlibpath_var=no
8666       ;;
8667
8668     hpux9*)
8669       if test "$GCC" = yes; then
8670         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'
8671       else
8672         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'
8673       fi
8674       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8675       hardcode_libdir_separator=:
8676       hardcode_direct=yes
8677
8678       # hardcode_minus_L: Not really in the search PATH,
8679       # but as the default location of the library.
8680       hardcode_minus_L=yes
8681       export_dynamic_flag_spec='${wl}-E'
8682       ;;
8683
8684     hpux10*)
8685       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8686         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8687       else
8688         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8689       fi
8690       if test "$with_gnu_ld" = no; then
8691         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8692         hardcode_libdir_separator=:
8693         hardcode_direct=yes
8694         hardcode_direct_absolute=yes
8695         export_dynamic_flag_spec='${wl}-E'
8696         # hardcode_minus_L: Not really in the search PATH,
8697         # but as the default location of the library.
8698         hardcode_minus_L=yes
8699       fi
8700       ;;
8701
8702     hpux11*)
8703       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8704         case $host_cpu in
8705         hppa*64*)
8706           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8707           ;;
8708         ia64*)
8709           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8710           ;;
8711         *)
8712           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8713           ;;
8714         esac
8715       else
8716         case $host_cpu in
8717         hppa*64*)
8718           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8719           ;;
8720         ia64*)
8721           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8722           ;;
8723         *)
8724
8725           # Older versions of the 11.00 compiler do not understand -b yet
8726           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8727           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8728 $as_echo_n "checking if $CC understands -b... " >&6; }
8729 if ${lt_cv_prog_compiler__b+:} false; then :
8730   $as_echo_n "(cached) " >&6
8731 else
8732   lt_cv_prog_compiler__b=no
8733    save_LDFLAGS="$LDFLAGS"
8734    LDFLAGS="$LDFLAGS -b"
8735    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8736    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8737      # The linker can only warn and ignore the option if not recognized
8738      # So say no if there are warnings
8739      if test -s conftest.err; then
8740        # Append any errors to the config.log.
8741        cat conftest.err 1>&5
8742        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8743        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8744        if diff conftest.exp conftest.er2 >/dev/null; then
8745          lt_cv_prog_compiler__b=yes
8746        fi
8747      else
8748        lt_cv_prog_compiler__b=yes
8749      fi
8750    fi
8751    $RM -r conftest*
8752    LDFLAGS="$save_LDFLAGS"
8753
8754 fi
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8756 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8757
8758 if test x"$lt_cv_prog_compiler__b" = xyes; then
8759     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8760 else
8761     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8762 fi
8763
8764           ;;
8765         esac
8766       fi
8767       if test "$with_gnu_ld" = no; then
8768         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8769         hardcode_libdir_separator=:
8770
8771         case $host_cpu in
8772         hppa*64*|ia64*)
8773           hardcode_direct=no
8774           hardcode_shlibpath_var=no
8775           ;;
8776         *)
8777           hardcode_direct=yes
8778           hardcode_direct_absolute=yes
8779           export_dynamic_flag_spec='${wl}-E'
8780
8781           # hardcode_minus_L: Not really in the search PATH,
8782           # but as the default location of the library.
8783           hardcode_minus_L=yes
8784           ;;
8785         esac
8786       fi
8787       ;;
8788
8789     irix5* | irix6* | nonstopux*)
8790       if test "$GCC" = yes; then
8791         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'
8792         # Try to use the -exported_symbol ld option, if it does not
8793         # work, assume that -exports_file does not work either and
8794         # implicitly export all symbols.
8795         # This should be the same for all languages, so no per-tag cache variable.
8796         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
8797 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
8798 if ${lt_cv_irix_exported_symbol+:} false; then :
8799   $as_echo_n "(cached) " >&6
8800 else
8801   save_LDFLAGS="$LDFLAGS"
8802            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8803            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h.  */
8805 int foo (void) { return 0; }
8806 _ACEOF
8807 if ac_fn_c_try_link "$LINENO"; then :
8808   lt_cv_irix_exported_symbol=yes
8809 else
8810   lt_cv_irix_exported_symbol=no
8811 fi
8812 rm -f core conftest.err conftest.$ac_objext \
8813     conftest$ac_exeext conftest.$ac_ext
8814            LDFLAGS="$save_LDFLAGS"
8815 fi
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
8817 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
8818         if test "$lt_cv_irix_exported_symbol" = yes; then
8819           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'
8820         fi
8821       else
8822         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'
8823         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'
8824       fi
8825       archive_cmds_need_lc='no'
8826       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8827       hardcode_libdir_separator=:
8828       inherit_rpath=yes
8829       link_all_deplibs=yes
8830       ;;
8831
8832     netbsd*)
8833       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8834         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8835       else
8836         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8837       fi
8838       hardcode_libdir_flag_spec='-R$libdir'
8839       hardcode_direct=yes
8840       hardcode_shlibpath_var=no
8841       ;;
8842
8843     newsos6)
8844       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8845       hardcode_direct=yes
8846       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8847       hardcode_libdir_separator=:
8848       hardcode_shlibpath_var=no
8849       ;;
8850
8851     *nto* | *qnx*)
8852       ;;
8853
8854     openbsd*)
8855       if test -f /usr/libexec/ld.so; then
8856         hardcode_direct=yes
8857         hardcode_shlibpath_var=no
8858         hardcode_direct_absolute=yes
8859         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8860           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8861           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8862           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8863           export_dynamic_flag_spec='${wl}-E'
8864         else
8865           case $host_os in
8866            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8867              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8868              hardcode_libdir_flag_spec='-R$libdir'
8869              ;;
8870            *)
8871              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8872              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8873              ;;
8874           esac
8875         fi
8876       else
8877         ld_shlibs=no
8878       fi
8879       ;;
8880
8881     os2*)
8882       hardcode_libdir_flag_spec='-L$libdir'
8883       hardcode_minus_L=yes
8884       allow_undefined_flag=unsupported
8885       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'
8886       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8887       ;;
8888
8889     osf3*)
8890       if test "$GCC" = yes; then
8891         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8892         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'
8893       else
8894         allow_undefined_flag=' -expect_unresolved \*'
8895         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'
8896       fi
8897       archive_cmds_need_lc='no'
8898       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8899       hardcode_libdir_separator=:
8900       ;;
8901
8902     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8903       if test "$GCC" = yes; then
8904         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8905         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'
8906         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8907       else
8908         allow_undefined_flag=' -expect_unresolved \*'
8909         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'
8910         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~
8911         $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'
8912
8913         # Both c and cxx compiler support -rpath directly
8914         hardcode_libdir_flag_spec='-rpath $libdir'
8915       fi
8916       archive_cmds_need_lc='no'
8917       hardcode_libdir_separator=:
8918       ;;
8919
8920     solaris*)
8921       no_undefined_flag=' -z defs'
8922       if test "$GCC" = yes; then
8923         wlarc='${wl}'
8924         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8925         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8926           $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'
8927       else
8928         case `$CC -V 2>&1` in
8929         *"Compilers 5.0"*)
8930           wlarc=''
8931           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8932           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8933           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8934           ;;
8935         *)
8936           wlarc='${wl}'
8937           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8938           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8939           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8940           ;;
8941         esac
8942       fi
8943       hardcode_libdir_flag_spec='-R$libdir'
8944       hardcode_shlibpath_var=no
8945       case $host_os in
8946       solaris2.[0-5] | solaris2.[0-5].*) ;;
8947       *)
8948         # The compiler driver will combine and reorder linker options,
8949         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8950         # but is careful enough not to reorder.
8951         # Supported since Solaris 2.6 (maybe 2.5.1?)
8952         if test "$GCC" = yes; then
8953           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8954         else
8955           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8956         fi
8957         ;;
8958       esac
8959       link_all_deplibs=yes
8960       ;;
8961
8962     sunos4*)
8963       if test "x$host_vendor" = xsequent; then
8964         # Use $CC to link under sequent, because it throws in some extra .o
8965         # files that make .init and .fini sections work.
8966         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8967       else
8968         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8969       fi
8970       hardcode_libdir_flag_spec='-L$libdir'
8971       hardcode_direct=yes
8972       hardcode_minus_L=yes
8973       hardcode_shlibpath_var=no
8974       ;;
8975
8976     sysv4)
8977       case $host_vendor in
8978         sni)
8979           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8980           hardcode_direct=yes # is this really true???
8981         ;;
8982         siemens)
8983           ## LD is ld it makes a PLAMLIB
8984           ## CC just makes a GrossModule.
8985           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8986           reload_cmds='$CC -r -o $output$reload_objs'
8987           hardcode_direct=no
8988         ;;
8989         motorola)
8990           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8991           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8992         ;;
8993       esac
8994       runpath_var='LD_RUN_PATH'
8995       hardcode_shlibpath_var=no
8996       ;;
8997
8998     sysv4.3*)
8999       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9000       hardcode_shlibpath_var=no
9001       export_dynamic_flag_spec='-Bexport'
9002       ;;
9003
9004     sysv4*MP*)
9005       if test -d /usr/nec; then
9006         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9007         hardcode_shlibpath_var=no
9008         runpath_var=LD_RUN_PATH
9009         hardcode_runpath_var=yes
9010         ld_shlibs=yes
9011       fi
9012       ;;
9013
9014     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9015       no_undefined_flag='${wl}-z,text'
9016       archive_cmds_need_lc=no
9017       hardcode_shlibpath_var=no
9018       runpath_var='LD_RUN_PATH'
9019
9020       if test "$GCC" = yes; then
9021         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9022         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9023       else
9024         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9025         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9026       fi
9027       ;;
9028
9029     sysv5* | sco3.2v5* | sco5v6*)
9030       # Note: We can NOT use -z defs as we might desire, because we do not
9031       # link with -lc, and that would cause any symbols used from libc to
9032       # always be unresolved, which means just about no library would
9033       # ever link correctly.  If we're not using GNU ld we use -z text
9034       # though, which does catch some bad symbols but isn't as heavy-handed
9035       # as -z defs.
9036       no_undefined_flag='${wl}-z,text'
9037       allow_undefined_flag='${wl}-z,nodefs'
9038       archive_cmds_need_lc=no
9039       hardcode_shlibpath_var=no
9040       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9041       hardcode_libdir_separator=':'
9042       link_all_deplibs=yes
9043       export_dynamic_flag_spec='${wl}-Bexport'
9044       runpath_var='LD_RUN_PATH'
9045
9046       if test "$GCC" = yes; then
9047         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9048         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9049       else
9050         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9051         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9052       fi
9053       ;;
9054
9055     uts4*)
9056       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9057       hardcode_libdir_flag_spec='-L$libdir'
9058       hardcode_shlibpath_var=no
9059       ;;
9060
9061     *)
9062       ld_shlibs=no
9063       ;;
9064     esac
9065
9066     if test x$host_vendor = xsni; then
9067       case $host in
9068       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9069         export_dynamic_flag_spec='${wl}-Blargedynsym'
9070         ;;
9071       esac
9072     fi
9073   fi
9074
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9076 $as_echo "$ld_shlibs" >&6; }
9077 test "$ld_shlibs" = no && can_build_shared=no
9078
9079 with_gnu_ld=$with_gnu_ld
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095 #
9096 # Do we need to explicitly link libc?
9097 #
9098 case "x$archive_cmds_need_lc" in
9099 x|xyes)
9100   # Assume -lc should be added
9101   archive_cmds_need_lc=yes
9102
9103   if test "$enable_shared" = yes && test "$GCC" = yes; then
9104     case $archive_cmds in
9105     *'~'*)
9106       # FIXME: we may have to deal with multi-command sequences.
9107       ;;
9108     '$CC '*)
9109       # Test whether the compiler implicitly links with -lc since on some
9110       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9111       # to ld, don't add -lc before -lgcc.
9112       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9113 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9114 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9115   $as_echo_n "(cached) " >&6
9116 else
9117   $RM conftest*
9118         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9119
9120         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9121   (eval $ac_compile) 2>&5
9122   ac_status=$?
9123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9124   test $ac_status = 0; } 2>conftest.err; then
9125           soname=conftest
9126           lib=conftest
9127           libobjs=conftest.$ac_objext
9128           deplibs=
9129           wl=$lt_prog_compiler_wl
9130           pic_flag=$lt_prog_compiler_pic
9131           compiler_flags=-v
9132           linker_flags=-v
9133           verstring=
9134           output_objdir=.
9135           libname=conftest
9136           lt_save_allow_undefined_flag=$allow_undefined_flag
9137           allow_undefined_flag=
9138           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9139   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9140   ac_status=$?
9141   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9142   test $ac_status = 0; }
9143           then
9144             lt_cv_archive_cmds_need_lc=no
9145           else
9146             lt_cv_archive_cmds_need_lc=yes
9147           fi
9148           allow_undefined_flag=$lt_save_allow_undefined_flag
9149         else
9150           cat conftest.err 1>&5
9151         fi
9152         $RM conftest*
9153
9154 fi
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9156 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9157       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9158       ;;
9159     esac
9160   fi
9161   ;;
9162 esac
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9316 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9317
9318 if test "$GCC" = yes; then
9319   case $host_os in
9320     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9321     *) lt_awk_arg="/^libraries:/" ;;
9322   esac
9323   case $host_os in
9324     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9325     *) lt_sed_strip_eq="s,=/,/,g" ;;
9326   esac
9327   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9328   case $lt_search_path_spec in
9329   *\;*)
9330     # if the path contains ";" then we assume it to be the separator
9331     # otherwise default to the standard path separator (i.e. ":") - it is
9332     # assumed that no part of a normal pathname contains ";" but that should
9333     # okay in the real world where ";" in dirpaths is itself problematic.
9334     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9335     ;;
9336   *)
9337     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9338     ;;
9339   esac
9340   # Ok, now we have the path, separated by spaces, we can step through it
9341   # and add multilib dir if necessary.
9342   lt_tmp_lt_search_path_spec=
9343   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9344   for lt_sys_path in $lt_search_path_spec; do
9345     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9346       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9347     else
9348       test -d "$lt_sys_path" && \
9349         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9350     fi
9351   done
9352   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9353 BEGIN {RS=" "; FS="/|\n";} {
9354   lt_foo="";
9355   lt_count=0;
9356   for (lt_i = NF; lt_i > 0; lt_i--) {
9357     if ($lt_i != "" && $lt_i != ".") {
9358       if ($lt_i == "..") {
9359         lt_count++;
9360       } else {
9361         if (lt_count == 0) {
9362           lt_foo="/" $lt_i lt_foo;
9363         } else {
9364           lt_count--;
9365         }
9366       }
9367     }
9368   }
9369   if (lt_foo != "") { lt_freq[lt_foo]++; }
9370   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9371 }'`
9372   # AWK program above erroneously prepends '/' to C:/dos/paths
9373   # for these hosts.
9374   case $host_os in
9375     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9376       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9377   esac
9378   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9379 else
9380   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9381 fi
9382 library_names_spec=
9383 libname_spec='lib$name'
9384 soname_spec=
9385 shrext_cmds=".so"
9386 postinstall_cmds=
9387 postuninstall_cmds=
9388 finish_cmds=
9389 finish_eval=
9390 shlibpath_var=
9391 shlibpath_overrides_runpath=unknown
9392 version_type=none
9393 dynamic_linker="$host_os ld.so"
9394 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9395 need_lib_prefix=unknown
9396 hardcode_into_libs=no
9397
9398 # when you set need_version to no, make sure it does not cause -set_version
9399 # flags to be left without arguments
9400 need_version=unknown
9401
9402 case $host_os in
9403 aix3*)
9404   version_type=linux # correct to gnu/linux during the next big refactor
9405   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9406   shlibpath_var=LIBPATH
9407
9408   # AIX 3 has no versioning support, so we append a major version to the name.
9409   soname_spec='${libname}${release}${shared_ext}$major'
9410   ;;
9411
9412 aix[4-9]*)
9413   version_type=linux # correct to gnu/linux during the next big refactor
9414   need_lib_prefix=no
9415   need_version=no
9416   hardcode_into_libs=yes
9417   if test "$host_cpu" = ia64; then
9418     # AIX 5 supports IA64
9419     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9420     shlibpath_var=LD_LIBRARY_PATH
9421   else
9422     # With GCC up to 2.95.x, collect2 would create an import file
9423     # for dependence libraries.  The import file would start with
9424     # the line `#! .'.  This would cause the generated library to
9425     # depend on `.', always an invalid library.  This was fixed in
9426     # development snapshots of GCC prior to 3.0.
9427     case $host_os in
9428       aix4 | aix4.[01] | aix4.[01].*)
9429       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9430            echo ' yes '
9431            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9432         :
9433       else
9434         can_build_shared=no
9435       fi
9436       ;;
9437     esac
9438     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9439     # soname into executable. Probably we can add versioning support to
9440     # collect2, so additional links can be useful in future.
9441     if test "$aix_use_runtimelinking" = yes; then
9442       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9443       # instead of lib<name>.a to let people know that these are not
9444       # typical AIX shared libraries.
9445       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9446     else
9447       # We preserve .a as extension for shared libraries through AIX4.2
9448       # and later when we are not doing run time linking.
9449       library_names_spec='${libname}${release}.a $libname.a'
9450       soname_spec='${libname}${release}${shared_ext}$major'
9451     fi
9452     shlibpath_var=LIBPATH
9453   fi
9454   ;;
9455
9456 amigaos*)
9457   case $host_cpu in
9458   powerpc)
9459     # Since July 2007 AmigaOS4 officially supports .so libraries.
9460     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9461     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9462     ;;
9463   m68k)
9464     library_names_spec='$libname.ixlibrary $libname.a'
9465     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9466     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'
9467     ;;
9468   esac
9469   ;;
9470
9471 beos*)
9472   library_names_spec='${libname}${shared_ext}'
9473   dynamic_linker="$host_os ld.so"
9474   shlibpath_var=LIBRARY_PATH
9475   ;;
9476
9477 bsdi[45]*)
9478   version_type=linux # correct to gnu/linux during the next big refactor
9479   need_version=no
9480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9481   soname_spec='${libname}${release}${shared_ext}$major'
9482   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9483   shlibpath_var=LD_LIBRARY_PATH
9484   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9485   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9486   # the default ld.so.conf also contains /usr/contrib/lib and
9487   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9488   # libtool to hard-code these into programs
9489   ;;
9490
9491 cygwin* | mingw* | pw32* | cegcc*)
9492   version_type=windows
9493   shrext_cmds=".dll"
9494   need_version=no
9495   need_lib_prefix=no
9496
9497   case $GCC,$cc_basename in
9498   yes,*)
9499     # gcc
9500     library_names_spec='$libname.dll.a'
9501     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9502     postinstall_cmds='base_file=`basename \${file}`~
9503       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9504       dldir=$destdir/`dirname \$dlpath`~
9505       test -d \$dldir || mkdir -p \$dldir~
9506       $install_prog $dir/$dlname \$dldir/$dlname~
9507       chmod a+x \$dldir/$dlname~
9508       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9509         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9510       fi'
9511     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9512       dlpath=$dir/\$dldll~
9513        $RM \$dlpath'
9514     shlibpath_overrides_runpath=yes
9515
9516     case $host_os in
9517     cygwin*)
9518       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9519       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9520
9521       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9522       ;;
9523     mingw* | cegcc*)
9524       # MinGW DLLs use traditional 'lib' prefix
9525       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9526       ;;
9527     pw32*)
9528       # pw32 DLLs use 'pw' prefix rather than 'lib'
9529       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9530       ;;
9531     esac
9532     dynamic_linker='Win32 ld.exe'
9533     ;;
9534
9535   *,cl*)
9536     # Native MSVC
9537     libname_spec='$name'
9538     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9539     library_names_spec='${libname}.dll.lib'
9540
9541     case $build_os in
9542     mingw*)
9543       sys_lib_search_path_spec=
9544       lt_save_ifs=$IFS
9545       IFS=';'
9546       for lt_path in $LIB
9547       do
9548         IFS=$lt_save_ifs
9549         # Let DOS variable expansion print the short 8.3 style file name.
9550         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9551         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9552       done
9553       IFS=$lt_save_ifs
9554       # Convert to MSYS style.
9555       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9556       ;;
9557     cygwin*)
9558       # Convert to unix form, then to dos form, then back to unix form
9559       # but this time dos style (no spaces!) so that the unix form looks
9560       # like /cygdrive/c/PROGRA~1:/cygdr...
9561       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9562       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9563       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9564       ;;
9565     *)
9566       sys_lib_search_path_spec="$LIB"
9567       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9568         # It is most probably a Windows format PATH.
9569         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9570       else
9571         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9572       fi
9573       # FIXME: find the short name or the path components, as spaces are
9574       # common. (e.g. "Program Files" -> "PROGRA~1")
9575       ;;
9576     esac
9577
9578     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9579     postinstall_cmds='base_file=`basename \${file}`~
9580       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9581       dldir=$destdir/`dirname \$dlpath`~
9582       test -d \$dldir || mkdir -p \$dldir~
9583       $install_prog $dir/$dlname \$dldir/$dlname'
9584     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9585       dlpath=$dir/\$dldll~
9586        $RM \$dlpath'
9587     shlibpath_overrides_runpath=yes
9588     dynamic_linker='Win32 link.exe'
9589     ;;
9590
9591   *)
9592     # Assume MSVC wrapper
9593     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9594     dynamic_linker='Win32 ld.exe'
9595     ;;
9596   esac
9597   # FIXME: first we should search . and the directory the executable is in
9598   shlibpath_var=PATH
9599   ;;
9600
9601 darwin* | rhapsody*)
9602   dynamic_linker="$host_os dyld"
9603   version_type=darwin
9604   need_lib_prefix=no
9605   need_version=no
9606   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9607   soname_spec='${libname}${release}${major}$shared_ext'
9608   shlibpath_overrides_runpath=yes
9609   shlibpath_var=DYLD_LIBRARY_PATH
9610   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9611
9612   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9613   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9614   ;;
9615
9616 dgux*)
9617   version_type=linux # correct to gnu/linux during the next big refactor
9618   need_lib_prefix=no
9619   need_version=no
9620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9621   soname_spec='${libname}${release}${shared_ext}$major'
9622   shlibpath_var=LD_LIBRARY_PATH
9623   ;;
9624
9625 freebsd* | dragonfly*)
9626   # DragonFly does not have aout.  When/if they implement a new
9627   # versioning mechanism, adjust this.
9628   if test -x /usr/bin/objformat; then
9629     objformat=`/usr/bin/objformat`
9630   else
9631     case $host_os in
9632     freebsd[23].*) objformat=aout ;;
9633     *) objformat=elf ;;
9634     esac
9635   fi
9636   version_type=freebsd-$objformat
9637   case $version_type in
9638     freebsd-elf*)
9639       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9640       need_version=no
9641       need_lib_prefix=no
9642       ;;
9643     freebsd-*)
9644       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9645       need_version=yes
9646       ;;
9647   esac
9648   shlibpath_var=LD_LIBRARY_PATH
9649   case $host_os in
9650   freebsd2.*)
9651     shlibpath_overrides_runpath=yes
9652     ;;
9653   freebsd3.[01]* | freebsdelf3.[01]*)
9654     shlibpath_overrides_runpath=yes
9655     hardcode_into_libs=yes
9656     ;;
9657   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9658   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9659     shlibpath_overrides_runpath=no
9660     hardcode_into_libs=yes
9661     ;;
9662   *) # from 4.6 on, and DragonFly
9663     shlibpath_overrides_runpath=yes
9664     hardcode_into_libs=yes
9665     ;;
9666   esac
9667   ;;
9668
9669 gnu*)
9670   version_type=linux # correct to gnu/linux during the next big refactor
9671   need_lib_prefix=no
9672   need_version=no
9673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9674   soname_spec='${libname}${release}${shared_ext}$major'
9675   shlibpath_var=LD_LIBRARY_PATH
9676   shlibpath_overrides_runpath=no
9677   hardcode_into_libs=yes
9678   ;;
9679
9680 haiku*)
9681   version_type=linux # correct to gnu/linux during the next big refactor
9682   need_lib_prefix=no
9683   need_version=no
9684   dynamic_linker="$host_os runtime_loader"
9685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9686   soname_spec='${libname}${release}${shared_ext}$major'
9687   shlibpath_var=LIBRARY_PATH
9688   shlibpath_overrides_runpath=yes
9689   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9690   hardcode_into_libs=yes
9691   ;;
9692
9693 hpux9* | hpux10* | hpux11*)
9694   # Give a soname corresponding to the major version so that dld.sl refuses to
9695   # link against other versions.
9696   version_type=sunos
9697   need_lib_prefix=no
9698   need_version=no
9699   case $host_cpu in
9700   ia64*)
9701     shrext_cmds='.so'
9702     hardcode_into_libs=yes
9703     dynamic_linker="$host_os dld.so"
9704     shlibpath_var=LD_LIBRARY_PATH
9705     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9706     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9707     soname_spec='${libname}${release}${shared_ext}$major'
9708     if test "X$HPUX_IA64_MODE" = X32; then
9709       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9710     else
9711       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9712     fi
9713     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9714     ;;
9715   hppa*64*)
9716     shrext_cmds='.sl'
9717     hardcode_into_libs=yes
9718     dynamic_linker="$host_os dld.sl"
9719     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9720     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9721     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9722     soname_spec='${libname}${release}${shared_ext}$major'
9723     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9724     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9725     ;;
9726   *)
9727     shrext_cmds='.sl'
9728     dynamic_linker="$host_os dld.sl"
9729     shlibpath_var=SHLIB_PATH
9730     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9731     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9732     soname_spec='${libname}${release}${shared_ext}$major'
9733     ;;
9734   esac
9735   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9736   postinstall_cmds='chmod 555 $lib'
9737   # or fails outright, so override atomically:
9738   install_override_mode=555
9739   ;;
9740
9741 interix[3-9]*)
9742   version_type=linux # correct to gnu/linux during the next big refactor
9743   need_lib_prefix=no
9744   need_version=no
9745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9746   soname_spec='${libname}${release}${shared_ext}$major'
9747   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9748   shlibpath_var=LD_LIBRARY_PATH
9749   shlibpath_overrides_runpath=no
9750   hardcode_into_libs=yes
9751   ;;
9752
9753 irix5* | irix6* | nonstopux*)
9754   case $host_os in
9755     nonstopux*) version_type=nonstopux ;;
9756     *)
9757         if test "$lt_cv_prog_gnu_ld" = yes; then
9758                 version_type=linux # correct to gnu/linux during the next big refactor
9759         else
9760                 version_type=irix
9761         fi ;;
9762   esac
9763   need_lib_prefix=no
9764   need_version=no
9765   soname_spec='${libname}${release}${shared_ext}$major'
9766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9767   case $host_os in
9768   irix5* | nonstopux*)
9769     libsuff= shlibsuff=
9770     ;;
9771   *)
9772     case $LD in # libtool.m4 will add one of these switches to LD
9773     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9774       libsuff= shlibsuff= libmagic=32-bit;;
9775     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9776       libsuff=32 shlibsuff=N32 libmagic=N32;;
9777     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9778       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9779     *) libsuff= shlibsuff= libmagic=never-match;;
9780     esac
9781     ;;
9782   esac
9783   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9784   shlibpath_overrides_runpath=no
9785   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9786   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9787   hardcode_into_libs=yes
9788   ;;
9789
9790 # No shared lib support for Linux oldld, aout, or coff.
9791 linux*oldld* | linux*aout* | linux*coff*)
9792   dynamic_linker=no
9793   ;;
9794
9795 # This must be glibc/ELF.
9796 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9797   version_type=linux # correct to gnu/linux during the next big refactor
9798   need_lib_prefix=no
9799   need_version=no
9800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801   soname_spec='${libname}${release}${shared_ext}$major'
9802   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9803   shlibpath_var=LD_LIBRARY_PATH
9804   shlibpath_overrides_runpath=no
9805
9806   # Some binutils ld are patched to set DT_RUNPATH
9807   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9808   $as_echo_n "(cached) " >&6
9809 else
9810   lt_cv_shlibpath_overrides_runpath=no
9811     save_LDFLAGS=$LDFLAGS
9812     save_libdir=$libdir
9813     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9814          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9815     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9816 /* end confdefs.h.  */
9817
9818 int
9819 main ()
9820 {
9821
9822   ;
9823   return 0;
9824 }
9825 _ACEOF
9826 if ac_fn_c_try_link "$LINENO"; then :
9827   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9828   lt_cv_shlibpath_overrides_runpath=yes
9829 fi
9830 fi
9831 rm -f core conftest.err conftest.$ac_objext \
9832     conftest$ac_exeext conftest.$ac_ext
9833     LDFLAGS=$save_LDFLAGS
9834     libdir=$save_libdir
9835
9836 fi
9837
9838   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9839
9840   # This implies no fast_install, which is unacceptable.
9841   # Some rework will be needed to allow for fast_install
9842   # before this can be enabled.
9843   hardcode_into_libs=yes
9844
9845   # Append ld.so.conf contents to the search path
9846   if test -f /etc/ld.so.conf; then
9847     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' ' '`
9848     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9849   fi
9850
9851   # We used to test for /lib/ld.so.1 and disable shared libraries on
9852   # powerpc, because MkLinux only supported shared libraries with the
9853   # GNU dynamic linker.  Since this was broken with cross compilers,
9854   # most powerpc-linux boxes support dynamic linking these days and
9855   # people can always --disable-shared, the test was removed, and we
9856   # assume the GNU/Linux dynamic linker is in use.
9857   dynamic_linker='GNU/Linux ld.so'
9858   ;;
9859
9860 netbsd*)
9861   version_type=sunos
9862   need_lib_prefix=no
9863   need_version=no
9864   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9865     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9866     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9867     dynamic_linker='NetBSD (a.out) ld.so'
9868   else
9869     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9870     soname_spec='${libname}${release}${shared_ext}$major'
9871     dynamic_linker='NetBSD ld.elf_so'
9872   fi
9873   shlibpath_var=LD_LIBRARY_PATH
9874   shlibpath_overrides_runpath=yes
9875   hardcode_into_libs=yes
9876   ;;
9877
9878 newsos6)
9879   version_type=linux # correct to gnu/linux during the next big refactor
9880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9881   shlibpath_var=LD_LIBRARY_PATH
9882   shlibpath_overrides_runpath=yes
9883   ;;
9884
9885 *nto* | *qnx*)
9886   version_type=qnx
9887   need_lib_prefix=no
9888   need_version=no
9889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9890   soname_spec='${libname}${release}${shared_ext}$major'
9891   shlibpath_var=LD_LIBRARY_PATH
9892   shlibpath_overrides_runpath=no
9893   hardcode_into_libs=yes
9894   dynamic_linker='ldqnx.so'
9895   ;;
9896
9897 openbsd*)
9898   version_type=sunos
9899   sys_lib_dlsearch_path_spec="/usr/lib"
9900   need_lib_prefix=no
9901   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9902   case $host_os in
9903     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9904     *)                          need_version=no  ;;
9905   esac
9906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9907   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9908   shlibpath_var=LD_LIBRARY_PATH
9909   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9910     case $host_os in
9911       openbsd2.[89] | openbsd2.[89].*)
9912         shlibpath_overrides_runpath=no
9913         ;;
9914       *)
9915         shlibpath_overrides_runpath=yes
9916         ;;
9917       esac
9918   else
9919     shlibpath_overrides_runpath=yes
9920   fi
9921   ;;
9922
9923 os2*)
9924   libname_spec='$name'
9925   shrext_cmds=".dll"
9926   need_lib_prefix=no
9927   library_names_spec='$libname${shared_ext} $libname.a'
9928   dynamic_linker='OS/2 ld.exe'
9929   shlibpath_var=LIBPATH
9930   ;;
9931
9932 osf3* | osf4* | osf5*)
9933   version_type=osf
9934   need_lib_prefix=no
9935   need_version=no
9936   soname_spec='${libname}${release}${shared_ext}$major'
9937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9938   shlibpath_var=LD_LIBRARY_PATH
9939   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9940   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9941   ;;
9942
9943 rdos*)
9944   dynamic_linker=no
9945   ;;
9946
9947 solaris*)
9948   version_type=linux # correct to gnu/linux during the next big refactor
9949   need_lib_prefix=no
9950   need_version=no
9951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952   soname_spec='${libname}${release}${shared_ext}$major'
9953   shlibpath_var=LD_LIBRARY_PATH
9954   shlibpath_overrides_runpath=yes
9955   hardcode_into_libs=yes
9956   # ldd complains unless libraries are executable
9957   postinstall_cmds='chmod +x $lib'
9958   ;;
9959
9960 sunos4*)
9961   version_type=sunos
9962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9963   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9964   shlibpath_var=LD_LIBRARY_PATH
9965   shlibpath_overrides_runpath=yes
9966   if test "$with_gnu_ld" = yes; then
9967     need_lib_prefix=no
9968   fi
9969   need_version=yes
9970   ;;
9971
9972 sysv4 | sysv4.3*)
9973   version_type=linux # correct to gnu/linux during the next big refactor
9974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9975   soname_spec='${libname}${release}${shared_ext}$major'
9976   shlibpath_var=LD_LIBRARY_PATH
9977   case $host_vendor in
9978     sni)
9979       shlibpath_overrides_runpath=no
9980       need_lib_prefix=no
9981       runpath_var=LD_RUN_PATH
9982       ;;
9983     siemens)
9984       need_lib_prefix=no
9985       ;;
9986     motorola)
9987       need_lib_prefix=no
9988       need_version=no
9989       shlibpath_overrides_runpath=no
9990       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9991       ;;
9992   esac
9993   ;;
9994
9995 sysv4*MP*)
9996   if test -d /usr/nec ;then
9997     version_type=linux # correct to gnu/linux during the next big refactor
9998     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9999     soname_spec='$libname${shared_ext}.$major'
10000     shlibpath_var=LD_LIBRARY_PATH
10001   fi
10002   ;;
10003
10004 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10005   version_type=freebsd-elf
10006   need_lib_prefix=no
10007   need_version=no
10008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10009   soname_spec='${libname}${release}${shared_ext}$major'
10010   shlibpath_var=LD_LIBRARY_PATH
10011   shlibpath_overrides_runpath=yes
10012   hardcode_into_libs=yes
10013   if test "$with_gnu_ld" = yes; then
10014     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10015   else
10016     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10017     case $host_os in
10018       sco3.2v5*)
10019         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10020         ;;
10021     esac
10022   fi
10023   sys_lib_dlsearch_path_spec='/usr/lib'
10024   ;;
10025
10026 tpf*)
10027   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10028   version_type=linux # correct to gnu/linux during the next big refactor
10029   need_lib_prefix=no
10030   need_version=no
10031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10032   shlibpath_var=LD_LIBRARY_PATH
10033   shlibpath_overrides_runpath=no
10034   hardcode_into_libs=yes
10035   ;;
10036
10037 uts4*)
10038   version_type=linux # correct to gnu/linux during the next big refactor
10039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10040   soname_spec='${libname}${release}${shared_ext}$major'
10041   shlibpath_var=LD_LIBRARY_PATH
10042   ;;
10043
10044 *)
10045   dynamic_linker=no
10046   ;;
10047 esac
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10049 $as_echo "$dynamic_linker" >&6; }
10050 test "$dynamic_linker" = no && can_build_shared=no
10051
10052 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10053 if test "$GCC" = yes; then
10054   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10055 fi
10056
10057 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10058   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10059 fi
10060 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10061   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10062 fi
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10156 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10157 hardcode_action=
10158 if test -n "$hardcode_libdir_flag_spec" ||
10159    test -n "$runpath_var" ||
10160    test "X$hardcode_automatic" = "Xyes" ; then
10161
10162   # We can hardcode non-existent directories.
10163   if test "$hardcode_direct" != no &&
10164      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10165      # have to relink, otherwise we might link with an installed library
10166      # when we should be linking with a yet-to-be-installed one
10167      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10168      test "$hardcode_minus_L" != no; then
10169     # Linking always hardcodes the temporary library directory.
10170     hardcode_action=relink
10171   else
10172     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10173     hardcode_action=immediate
10174   fi
10175 else
10176   # We cannot hardcode anything, or else we can only hardcode existing
10177   # directories.
10178   hardcode_action=unsupported
10179 fi
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10181 $as_echo "$hardcode_action" >&6; }
10182
10183 if test "$hardcode_action" = relink ||
10184    test "$inherit_rpath" = yes; then
10185   # Fast installation is not supported
10186   enable_fast_install=no
10187 elif test "$shlibpath_overrides_runpath" = yes ||
10188      test "$enable_shared" = no; then
10189   # Fast installation is not necessary
10190   enable_fast_install=needless
10191 fi
10192
10193
10194
10195
10196
10197
10198   if test "x$enable_dlopen" != xyes; then
10199   enable_dlopen=unknown
10200   enable_dlopen_self=unknown
10201   enable_dlopen_self_static=unknown
10202 else
10203   lt_cv_dlopen=no
10204   lt_cv_dlopen_libs=
10205
10206   case $host_os in
10207   beos*)
10208     lt_cv_dlopen="load_add_on"
10209     lt_cv_dlopen_libs=
10210     lt_cv_dlopen_self=yes
10211     ;;
10212
10213   mingw* | pw32* | cegcc*)
10214     lt_cv_dlopen="LoadLibrary"
10215     lt_cv_dlopen_libs=
10216     ;;
10217
10218   cygwin*)
10219     lt_cv_dlopen="dlopen"
10220     lt_cv_dlopen_libs=
10221     ;;
10222
10223   darwin*)
10224   # if libdl is installed we need to link against it
10225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10226 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10227 if ${ac_cv_lib_dl_dlopen+:} false; then :
10228   $as_echo_n "(cached) " >&6
10229 else
10230   ac_check_lib_save_LIBS=$LIBS
10231 LIBS="-ldl  $LIBS"
10232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10233 /* end confdefs.h.  */
10234
10235 /* Override any GCC internal prototype to avoid an error.
10236    Use char because int might match the return type of a GCC
10237    builtin and then its argument prototype would still apply.  */
10238 #ifdef __cplusplus
10239 extern "C"
10240 #endif
10241 char dlopen ();
10242 int
10243 main ()
10244 {
10245 return dlopen ();
10246   ;
10247   return 0;
10248 }
10249 _ACEOF
10250 if ac_fn_c_try_link "$LINENO"; then :
10251   ac_cv_lib_dl_dlopen=yes
10252 else
10253   ac_cv_lib_dl_dlopen=no
10254 fi
10255 rm -f core conftest.err conftest.$ac_objext \
10256     conftest$ac_exeext conftest.$ac_ext
10257 LIBS=$ac_check_lib_save_LIBS
10258 fi
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10260 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10261 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10262   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10263 else
10264
10265     lt_cv_dlopen="dyld"
10266     lt_cv_dlopen_libs=
10267     lt_cv_dlopen_self=yes
10268
10269 fi
10270
10271     ;;
10272
10273   *)
10274     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10275 if test "x$ac_cv_func_shl_load" = xyes; then :
10276   lt_cv_dlopen="shl_load"
10277 else
10278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10279 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10280 if ${ac_cv_lib_dld_shl_load+:} false; then :
10281   $as_echo_n "(cached) " >&6
10282 else
10283   ac_check_lib_save_LIBS=$LIBS
10284 LIBS="-ldld  $LIBS"
10285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10286 /* end confdefs.h.  */
10287
10288 /* Override any GCC internal prototype to avoid an error.
10289    Use char because int might match the return type of a GCC
10290    builtin and then its argument prototype would still apply.  */
10291 #ifdef __cplusplus
10292 extern "C"
10293 #endif
10294 char shl_load ();
10295 int
10296 main ()
10297 {
10298 return shl_load ();
10299   ;
10300   return 0;
10301 }
10302 _ACEOF
10303 if ac_fn_c_try_link "$LINENO"; then :
10304   ac_cv_lib_dld_shl_load=yes
10305 else
10306   ac_cv_lib_dld_shl_load=no
10307 fi
10308 rm -f core conftest.err conftest.$ac_objext \
10309     conftest$ac_exeext conftest.$ac_ext
10310 LIBS=$ac_check_lib_save_LIBS
10311 fi
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10313 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10314 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10315   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10316 else
10317   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10318 if test "x$ac_cv_func_dlopen" = xyes; then :
10319   lt_cv_dlopen="dlopen"
10320 else
10321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10322 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10323 if ${ac_cv_lib_dl_dlopen+:} false; then :
10324   $as_echo_n "(cached) " >&6
10325 else
10326   ac_check_lib_save_LIBS=$LIBS
10327 LIBS="-ldl  $LIBS"
10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h.  */
10330
10331 /* Override any GCC internal prototype to avoid an error.
10332    Use char because int might match the return type of a GCC
10333    builtin and then its argument prototype would still apply.  */
10334 #ifdef __cplusplus
10335 extern "C"
10336 #endif
10337 char dlopen ();
10338 int
10339 main ()
10340 {
10341 return dlopen ();
10342   ;
10343   return 0;
10344 }
10345 _ACEOF
10346 if ac_fn_c_try_link "$LINENO"; then :
10347   ac_cv_lib_dl_dlopen=yes
10348 else
10349   ac_cv_lib_dl_dlopen=no
10350 fi
10351 rm -f core conftest.err conftest.$ac_objext \
10352     conftest$ac_exeext conftest.$ac_ext
10353 LIBS=$ac_check_lib_save_LIBS
10354 fi
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10356 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10357 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10358   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10359 else
10360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10361 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10362 if ${ac_cv_lib_svld_dlopen+:} false; then :
10363   $as_echo_n "(cached) " >&6
10364 else
10365   ac_check_lib_save_LIBS=$LIBS
10366 LIBS="-lsvld  $LIBS"
10367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10368 /* end confdefs.h.  */
10369
10370 /* Override any GCC internal prototype to avoid an error.
10371    Use char because int might match the return type of a GCC
10372    builtin and then its argument prototype would still apply.  */
10373 #ifdef __cplusplus
10374 extern "C"
10375 #endif
10376 char dlopen ();
10377 int
10378 main ()
10379 {
10380 return dlopen ();
10381   ;
10382   return 0;
10383 }
10384 _ACEOF
10385 if ac_fn_c_try_link "$LINENO"; then :
10386   ac_cv_lib_svld_dlopen=yes
10387 else
10388   ac_cv_lib_svld_dlopen=no
10389 fi
10390 rm -f core conftest.err conftest.$ac_objext \
10391     conftest$ac_exeext conftest.$ac_ext
10392 LIBS=$ac_check_lib_save_LIBS
10393 fi
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10395 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10396 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10397   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10398 else
10399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10400 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10401 if ${ac_cv_lib_dld_dld_link+:} false; then :
10402   $as_echo_n "(cached) " >&6
10403 else
10404   ac_check_lib_save_LIBS=$LIBS
10405 LIBS="-ldld  $LIBS"
10406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10407 /* end confdefs.h.  */
10408
10409 /* Override any GCC internal prototype to avoid an error.
10410    Use char because int might match the return type of a GCC
10411    builtin and then its argument prototype would still apply.  */
10412 #ifdef __cplusplus
10413 extern "C"
10414 #endif
10415 char dld_link ();
10416 int
10417 main ()
10418 {
10419 return dld_link ();
10420   ;
10421   return 0;
10422 }
10423 _ACEOF
10424 if ac_fn_c_try_link "$LINENO"; then :
10425   ac_cv_lib_dld_dld_link=yes
10426 else
10427   ac_cv_lib_dld_dld_link=no
10428 fi
10429 rm -f core conftest.err conftest.$ac_objext \
10430     conftest$ac_exeext conftest.$ac_ext
10431 LIBS=$ac_check_lib_save_LIBS
10432 fi
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10434 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10435 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10436   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10437 fi
10438
10439
10440 fi
10441
10442
10443 fi
10444
10445
10446 fi
10447
10448
10449 fi
10450
10451
10452 fi
10453
10454     ;;
10455   esac
10456
10457   if test "x$lt_cv_dlopen" != xno; then
10458     enable_dlopen=yes
10459   else
10460     enable_dlopen=no
10461   fi
10462
10463   case $lt_cv_dlopen in
10464   dlopen)
10465     save_CPPFLAGS="$CPPFLAGS"
10466     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10467
10468     save_LDFLAGS="$LDFLAGS"
10469     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10470
10471     save_LIBS="$LIBS"
10472     LIBS="$lt_cv_dlopen_libs $LIBS"
10473
10474     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10475 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10476 if ${lt_cv_dlopen_self+:} false; then :
10477   $as_echo_n "(cached) " >&6
10478 else
10479           if test "$cross_compiling" = yes; then :
10480   lt_cv_dlopen_self=cross
10481 else
10482   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10483   lt_status=$lt_dlunknown
10484   cat > conftest.$ac_ext <<_LT_EOF
10485 #line $LINENO "configure"
10486 #include "confdefs.h"
10487
10488 #if HAVE_DLFCN_H
10489 #include <dlfcn.h>
10490 #endif
10491
10492 #include <stdio.h>
10493
10494 #ifdef RTLD_GLOBAL
10495 #  define LT_DLGLOBAL           RTLD_GLOBAL
10496 #else
10497 #  ifdef DL_GLOBAL
10498 #    define LT_DLGLOBAL         DL_GLOBAL
10499 #  else
10500 #    define LT_DLGLOBAL         0
10501 #  endif
10502 #endif
10503
10504 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10505    find out it does not work in some platform. */
10506 #ifndef LT_DLLAZY_OR_NOW
10507 #  ifdef RTLD_LAZY
10508 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10509 #  else
10510 #    ifdef DL_LAZY
10511 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10512 #    else
10513 #      ifdef RTLD_NOW
10514 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10515 #      else
10516 #        ifdef DL_NOW
10517 #          define LT_DLLAZY_OR_NOW      DL_NOW
10518 #        else
10519 #          define LT_DLLAZY_OR_NOW      0
10520 #        endif
10521 #      endif
10522 #    endif
10523 #  endif
10524 #endif
10525
10526 /* When -fvisbility=hidden is used, assume the code has been annotated
10527    correspondingly for the symbols needed.  */
10528 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10529 int fnord () __attribute__((visibility("default")));
10530 #endif
10531
10532 int fnord () { return 42; }
10533 int main ()
10534 {
10535   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10536   int status = $lt_dlunknown;
10537
10538   if (self)
10539     {
10540       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10541       else
10542         {
10543           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10544           else puts (dlerror ());
10545         }
10546       /* dlclose (self); */
10547     }
10548   else
10549     puts (dlerror ());
10550
10551   return status;
10552 }
10553 _LT_EOF
10554   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10555   (eval $ac_link) 2>&5
10556   ac_status=$?
10557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10558   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10559     (./conftest; exit; ) >&5 2>/dev/null
10560     lt_status=$?
10561     case x$lt_status in
10562       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10563       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10564       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10565     esac
10566   else :
10567     # compilation failed
10568     lt_cv_dlopen_self=no
10569   fi
10570 fi
10571 rm -fr conftest*
10572
10573
10574 fi
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10576 $as_echo "$lt_cv_dlopen_self" >&6; }
10577
10578     if test "x$lt_cv_dlopen_self" = xyes; then
10579       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10580       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10581 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10582 if ${lt_cv_dlopen_self_static+:} false; then :
10583   $as_echo_n "(cached) " >&6
10584 else
10585           if test "$cross_compiling" = yes; then :
10586   lt_cv_dlopen_self_static=cross
10587 else
10588   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10589   lt_status=$lt_dlunknown
10590   cat > conftest.$ac_ext <<_LT_EOF
10591 #line $LINENO "configure"
10592 #include "confdefs.h"
10593
10594 #if HAVE_DLFCN_H
10595 #include <dlfcn.h>
10596 #endif
10597
10598 #include <stdio.h>
10599
10600 #ifdef RTLD_GLOBAL
10601 #  define LT_DLGLOBAL           RTLD_GLOBAL
10602 #else
10603 #  ifdef DL_GLOBAL
10604 #    define LT_DLGLOBAL         DL_GLOBAL
10605 #  else
10606 #    define LT_DLGLOBAL         0
10607 #  endif
10608 #endif
10609
10610 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10611    find out it does not work in some platform. */
10612 #ifndef LT_DLLAZY_OR_NOW
10613 #  ifdef RTLD_LAZY
10614 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10615 #  else
10616 #    ifdef DL_LAZY
10617 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10618 #    else
10619 #      ifdef RTLD_NOW
10620 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10621 #      else
10622 #        ifdef DL_NOW
10623 #          define LT_DLLAZY_OR_NOW      DL_NOW
10624 #        else
10625 #          define LT_DLLAZY_OR_NOW      0
10626 #        endif
10627 #      endif
10628 #    endif
10629 #  endif
10630 #endif
10631
10632 /* When -fvisbility=hidden is used, assume the code has been annotated
10633    correspondingly for the symbols needed.  */
10634 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10635 int fnord () __attribute__((visibility("default")));
10636 #endif
10637
10638 int fnord () { return 42; }
10639 int main ()
10640 {
10641   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10642   int status = $lt_dlunknown;
10643
10644   if (self)
10645     {
10646       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10647       else
10648         {
10649           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10650           else puts (dlerror ());
10651         }
10652       /* dlclose (self); */
10653     }
10654   else
10655     puts (dlerror ());
10656
10657   return status;
10658 }
10659 _LT_EOF
10660   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10661   (eval $ac_link) 2>&5
10662   ac_status=$?
10663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10664   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10665     (./conftest; exit; ) >&5 2>/dev/null
10666     lt_status=$?
10667     case x$lt_status in
10668       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10669       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10670       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10671     esac
10672   else :
10673     # compilation failed
10674     lt_cv_dlopen_self_static=no
10675   fi
10676 fi
10677 rm -fr conftest*
10678
10679
10680 fi
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10682 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10683     fi
10684
10685     CPPFLAGS="$save_CPPFLAGS"
10686     LDFLAGS="$save_LDFLAGS"
10687     LIBS="$save_LIBS"
10688     ;;
10689   esac
10690
10691   case $lt_cv_dlopen_self in
10692   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10693   *) enable_dlopen_self=unknown ;;
10694   esac
10695
10696   case $lt_cv_dlopen_self_static in
10697   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10698   *) enable_dlopen_self_static=unknown ;;
10699   esac
10700 fi
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718 striplib=
10719 old_striplib=
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10721 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10722 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10723   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10724   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10726 $as_echo "yes" >&6; }
10727 else
10728 # FIXME - insert some real tests, host_os isn't really good enough
10729   case $host_os in
10730   darwin*)
10731     if test -n "$STRIP" ; then
10732       striplib="$STRIP -x"
10733       old_striplib="$STRIP -S"
10734       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10735 $as_echo "yes" >&6; }
10736     else
10737       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10738 $as_echo "no" >&6; }
10739     fi
10740     ;;
10741   *)
10742     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10743 $as_echo "no" >&6; }
10744     ;;
10745   esac
10746 fi
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759   # Report which library types will actually be built
10760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10761 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10763 $as_echo "$can_build_shared" >&6; }
10764
10765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10766 $as_echo_n "checking whether to build shared libraries... " >&6; }
10767   test "$can_build_shared" = "no" && enable_shared=no
10768
10769   # On AIX, shared libraries and static libraries use the same namespace, and
10770   # are all built from PIC.
10771   case $host_os in
10772   aix3*)
10773     test "$enable_shared" = yes && enable_static=no
10774     if test -n "$RANLIB"; then
10775       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10776       postinstall_cmds='$RANLIB $lib'
10777     fi
10778     ;;
10779
10780   aix[4-9]*)
10781     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10782       test "$enable_shared" = yes && enable_static=no
10783     fi
10784     ;;
10785   esac
10786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10787 $as_echo "$enable_shared" >&6; }
10788
10789   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10790 $as_echo_n "checking whether to build static libraries... " >&6; }
10791   # Make sure either enable_shared or enable_static is yes.
10792   test "$enable_shared" = yes || enable_static=yes
10793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10794 $as_echo "$enable_static" >&6; }
10795
10796
10797
10798
10799 fi
10800 ac_ext=c
10801 ac_cpp='$CPP $CPPFLAGS'
10802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10805
10806 CC="$lt_save_CC"
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822         ac_config_commands="$ac_config_commands libtool"
10823
10824
10825
10826
10827 # Only expand once:
10828
10829
10830
10831 am__api_version='1.12'
10832
10833 # Find a good install program.  We prefer a C program (faster),
10834 # so one script is as good as another.  But avoid the broken or
10835 # incompatible versions:
10836 # SysV /etc/install, /usr/sbin/install
10837 # SunOS /usr/etc/install
10838 # IRIX /sbin/install
10839 # AIX /bin/install
10840 # AmigaOS /C/install, which installs bootblocks on floppy discs
10841 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10842 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10843 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10844 # OS/2's system install, which has a completely different semantic
10845 # ./install, which can be erroneously created by make from ./install.sh.
10846 # Reject install programs that cannot install multiple files.
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
10848 $as_echo_n "checking for a BSD-compatible install... " >&6; }
10849 if test -z "$INSTALL"; then
10850 if ${ac_cv_path_install+:} false; then :
10851   $as_echo_n "(cached) " >&6
10852 else
10853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10854 for as_dir in $PATH
10855 do
10856   IFS=$as_save_IFS
10857   test -z "$as_dir" && as_dir=.
10858     # Account for people who put trailing slashes in PATH elements.
10859 case $as_dir/ in #((
10860   ./ | .// | /[cC]/* | \
10861   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10862   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
10863   /usr/ucb/* ) ;;
10864   *)
10865     # OSF1 and SCO ODT 3.0 have their own names for install.
10866     # Don't use installbsd from OSF since it installs stuff as root
10867     # by default.
10868     for ac_prog in ginstall scoinst install; do
10869       for ac_exec_ext in '' $ac_executable_extensions; do
10870         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10871           if test $ac_prog = install &&
10872             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10873             # AIX install.  It has an incompatible calling convention.
10874             :
10875           elif test $ac_prog = install &&
10876             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10877             # program-specific install script used by HP pwplus--don't use.
10878             :
10879           else
10880             rm -rf conftest.one conftest.two conftest.dir
10881             echo one > conftest.one
10882             echo two > conftest.two
10883             mkdir conftest.dir
10884             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10885               test -s conftest.one && test -s conftest.two &&
10886               test -s conftest.dir/conftest.one &&
10887               test -s conftest.dir/conftest.two
10888             then
10889               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10890               break 3
10891             fi
10892           fi
10893         fi
10894       done
10895     done
10896     ;;
10897 esac
10898
10899   done
10900 IFS=$as_save_IFS
10901
10902 rm -rf conftest.one conftest.two conftest.dir
10903
10904 fi
10905   if test "${ac_cv_path_install+set}" = set; then
10906     INSTALL=$ac_cv_path_install
10907   else
10908     # As a last resort, use the slow shell script.  Don't cache a
10909     # value for INSTALL within a source directory, because that will
10910     # break other packages using the cache if that directory is
10911     # removed, or if the value is a relative name.
10912     INSTALL=$ac_install_sh
10913   fi
10914 fi
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
10916 $as_echo "$INSTALL" >&6; }
10917
10918 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10919 # It thinks the first close brace ends the variable substitution.
10920 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10921
10922 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10923
10924 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10925
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
10927 $as_echo_n "checking whether build environment is sane... " >&6; }
10928 # Reject unsafe characters in $srcdir or the absolute working directory
10929 # name.  Accept space and tab only in the latter.
10930 am_lf='
10931 '
10932 case `pwd` in
10933   *[\\\"\#\$\&\'\`$am_lf]*)
10934     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
10935 esac
10936 case $srcdir in
10937   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
10938     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
10939 esac
10940
10941 # Do 'set' in a subshell so we don't clobber the current shell's
10942 # arguments.  Must try -L first in case configure is actually a
10943 # symlink; some systems play weird games with the mod time of symlinks
10944 # (eg FreeBSD returns the mod time of the symlink's containing
10945 # directory).
10946 if (
10947    am_has_slept=no
10948    for am_try in 1 2; do
10949      echo "timestamp, slept: $am_has_slept" > conftest.file
10950      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10951      if test "$*" = "X"; then
10952         # -L didn't work.
10953         set X `ls -t "$srcdir/configure" conftest.file`
10954      fi
10955      if test "$*" != "X $srcdir/configure conftest.file" \
10956         && test "$*" != "X conftest.file $srcdir/configure"; then
10957
10958         # If neither matched, then we have a broken ls.  This can happen
10959         # if, for instance, CONFIG_SHELL is bash and it inherits a
10960         # broken ls alias from the environment.  This has actually
10961         # happened.  Such a system could not be considered "sane".
10962         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
10963   alias in your environment" "$LINENO" 5
10964      fi
10965      if test "$2" = conftest.file || test $am_try -eq 2; then
10966        break
10967      fi
10968      # Just in case.
10969      sleep 1
10970      am_has_slept=yes
10971    done
10972    test "$2" = conftest.file
10973    )
10974 then
10975    # Ok.
10976    :
10977 else
10978    as_fn_error $? "newly created file is older than distributed files!
10979 Check your system clock" "$LINENO" 5
10980 fi
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10982 $as_echo "yes" >&6; }
10983 # If we didn't sleep, we still need to ensure time stamps of config.status and
10984 # generated files are strictly newer.
10985 am_sleep_pid=
10986 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
10987   ( sleep 1 ) &
10988   am_sleep_pid=$!
10989 fi
10990
10991 rm -f conftest.file
10992
10993 test "$program_prefix" != NONE &&
10994   program_transform_name="s&^&$program_prefix&;$program_transform_name"
10995 # Use a double $ so make ignores it.
10996 test "$program_suffix" != NONE &&
10997   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10998 # Double any \ or $.
10999 # By default was `s,x,x', remove it if useless.
11000 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11001 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11002
11003 # expand $ac_aux_dir to an absolute path
11004 am_aux_dir=`cd $ac_aux_dir && pwd`
11005
11006 if test x"${MISSING+set}" != xset; then
11007   case $am_aux_dir in
11008   *\ * | *\     *)
11009     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
11010   *)
11011     MISSING="\${SHELL} $am_aux_dir/missing" ;;
11012   esac
11013 fi
11014 # Use eval to expand $SHELL
11015 if eval "$MISSING --run true"; then
11016   am_missing_run="$MISSING --run "
11017 else
11018   am_missing_run=
11019   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
11020 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
11021 fi
11022
11023 if test x"${install_sh}" != xset; then
11024   case $am_aux_dir in
11025   *\ * | *\     *)
11026     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11027   *)
11028     install_sh="\${SHELL} $am_aux_dir/install-sh"
11029   esac
11030 fi
11031
11032 # Installed binaries are usually stripped using 'strip' when the user
11033 # run "make install-strip".  However 'strip' might not be the right
11034 # tool to use in cross-compilation environments, therefore Automake
11035 # will honor the 'STRIP' environment variable to overrule this program.
11036 if test "$cross_compiling" != no; then
11037   if test -n "$ac_tool_prefix"; then
11038   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11039 set dummy ${ac_tool_prefix}strip; ac_word=$2
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11041 $as_echo_n "checking for $ac_word... " >&6; }
11042 if ${ac_cv_prog_STRIP+:} false; then :
11043   $as_echo_n "(cached) " >&6
11044 else
11045   if test -n "$STRIP"; then
11046   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11047 else
11048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11049 for as_dir in $PATH
11050 do
11051   IFS=$as_save_IFS
11052   test -z "$as_dir" && as_dir=.
11053     for ac_exec_ext in '' $ac_executable_extensions; do
11054   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11055     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11057     break 2
11058   fi
11059 done
11060   done
11061 IFS=$as_save_IFS
11062
11063 fi
11064 fi
11065 STRIP=$ac_cv_prog_STRIP
11066 if test -n "$STRIP"; then
11067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11068 $as_echo "$STRIP" >&6; }
11069 else
11070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11071 $as_echo "no" >&6; }
11072 fi
11073
11074
11075 fi
11076 if test -z "$ac_cv_prog_STRIP"; then
11077   ac_ct_STRIP=$STRIP
11078   # Extract the first word of "strip", so it can be a program name with args.
11079 set dummy strip; ac_word=$2
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11081 $as_echo_n "checking for $ac_word... " >&6; }
11082 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11083   $as_echo_n "(cached) " >&6
11084 else
11085   if test -n "$ac_ct_STRIP"; then
11086   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11087 else
11088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089 for as_dir in $PATH
11090 do
11091   IFS=$as_save_IFS
11092   test -z "$as_dir" && as_dir=.
11093     for ac_exec_ext in '' $ac_executable_extensions; do
11094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11095     ac_cv_prog_ac_ct_STRIP="strip"
11096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11097     break 2
11098   fi
11099 done
11100   done
11101 IFS=$as_save_IFS
11102
11103 fi
11104 fi
11105 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11106 if test -n "$ac_ct_STRIP"; then
11107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11108 $as_echo "$ac_ct_STRIP" >&6; }
11109 else
11110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11111 $as_echo "no" >&6; }
11112 fi
11113
11114   if test "x$ac_ct_STRIP" = x; then
11115     STRIP=":"
11116   else
11117     case $cross_compiling:$ac_tool_warned in
11118 yes:)
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11121 ac_tool_warned=yes ;;
11122 esac
11123     STRIP=$ac_ct_STRIP
11124   fi
11125 else
11126   STRIP="$ac_cv_prog_STRIP"
11127 fi
11128
11129 fi
11130 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11131
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11133 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11134 if test -z "$MKDIR_P"; then
11135   if ${ac_cv_path_mkdir+:} false; then :
11136   $as_echo_n "(cached) " >&6
11137 else
11138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11140 do
11141   IFS=$as_save_IFS
11142   test -z "$as_dir" && as_dir=.
11143     for ac_prog in mkdir gmkdir; do
11144          for ac_exec_ext in '' $ac_executable_extensions; do
11145            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
11146            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11147              'mkdir (GNU coreutils) '* | \
11148              'mkdir (coreutils) '* | \
11149              'mkdir (fileutils) '4.1*)
11150                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11151                break 3;;
11152            esac
11153          done
11154        done
11155   done
11156 IFS=$as_save_IFS
11157
11158 fi
11159
11160   test -d ./--version && rmdir ./--version
11161   if test "${ac_cv_path_mkdir+set}" = set; then
11162     MKDIR_P="$ac_cv_path_mkdir -p"
11163   else
11164     # As a last resort, use the slow shell script.  Don't cache a
11165     # value for MKDIR_P within a source directory, because that will
11166     # break other packages using the cache if that directory is
11167     # removed, or if the value is a relative name.
11168     MKDIR_P="$ac_install_sh -d"
11169   fi
11170 fi
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11172 $as_echo "$MKDIR_P" >&6; }
11173
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11175 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11176 set x ${MAKE-make}
11177 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11178 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11179   $as_echo_n "(cached) " >&6
11180 else
11181   cat >conftest.make <<\_ACEOF
11182 SHELL = /bin/sh
11183 all:
11184         @echo '@@@%%%=$(MAKE)=@@@%%%'
11185 _ACEOF
11186 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11187 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11188   *@@@%%%=?*=@@@%%%*)
11189     eval ac_cv_prog_make_${ac_make}_set=yes;;
11190   *)
11191     eval ac_cv_prog_make_${ac_make}_set=no;;
11192 esac
11193 rm -f conftest.make
11194 fi
11195 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11197 $as_echo "yes" >&6; }
11198   SET_MAKE=
11199 else
11200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201 $as_echo "no" >&6; }
11202   SET_MAKE="MAKE=${MAKE-make}"
11203 fi
11204
11205 rm -rf .tst 2>/dev/null
11206 mkdir .tst 2>/dev/null
11207 if test -d .tst; then
11208   am__leading_dot=.
11209 else
11210   am__leading_dot=_
11211 fi
11212 rmdir .tst 2>/dev/null
11213
11214 DEPDIR="${am__leading_dot}deps"
11215
11216 ac_config_commands="$ac_config_commands depfiles"
11217
11218
11219 am_make=${MAKE-make}
11220 cat > confinc << 'END'
11221 am__doit:
11222         @echo this is the am__doit target
11223 .PHONY: am__doit
11224 END
11225 # If we don't find an include directive, just comment out the code.
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
11227 $as_echo_n "checking for style of include used by $am_make... " >&6; }
11228 am__include="#"
11229 am__quote=
11230 _am_result=none
11231 # First try GNU make style include.
11232 echo "include confinc" > confmf
11233 # Ignore all kinds of additional output from 'make'.
11234 case `$am_make -s -f confmf 2> /dev/null` in #(
11235 *the\ am__doit\ target*)
11236   am__include=include
11237   am__quote=
11238   _am_result=GNU
11239   ;;
11240 esac
11241 # Now try BSD make style include.
11242 if test "$am__include" = "#"; then
11243    echo '.include "confinc"' > confmf
11244    case `$am_make -s -f confmf 2> /dev/null` in #(
11245    *the\ am__doit\ target*)
11246      am__include=.include
11247      am__quote="\""
11248      _am_result=BSD
11249      ;;
11250    esac
11251 fi
11252
11253
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
11255 $as_echo "$_am_result" >&6; }
11256 rm -f confinc confmf
11257
11258 # Check whether --enable-dependency-tracking was given.
11259 if test "${enable_dependency_tracking+set}" = set; then :
11260   enableval=$enable_dependency_tracking;
11261 fi
11262
11263 if test "x$enable_dependency_tracking" != xno; then
11264   am_depcomp="$ac_aux_dir/depcomp"
11265   AMDEPBACKSLASH='\'
11266   am__nodep='_no'
11267 fi
11268  if test "x$enable_dependency_tracking" != xno; then
11269   AMDEP_TRUE=
11270   AMDEP_FALSE='#'
11271 else
11272   AMDEP_TRUE='#'
11273   AMDEP_FALSE=
11274 fi
11275
11276
11277 if test "`cd $srcdir && pwd`" != "`pwd`"; then
11278   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11279   # is not polluted with repeated "-I."
11280   am__isrc=' -I$(srcdir)'
11281   # test to see if srcdir already configured
11282   if test -f $srcdir/config.status; then
11283     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
11284   fi
11285 fi
11286
11287 # test whether we have cygpath
11288 if test -z "$CYGPATH_W"; then
11289   if (cygpath --version) >/dev/null 2>/dev/null; then
11290     CYGPATH_W='cygpath -w'
11291   else
11292     CYGPATH_W=echo
11293   fi
11294 fi
11295
11296
11297 # Define the identity of the package.
11298  PACKAGE='libaes'
11299  VERSION='0.0.2'
11300
11301
11302 cat >>confdefs.h <<_ACEOF
11303 #define PACKAGE "$PACKAGE"
11304 _ACEOF
11305
11306
11307 cat >>confdefs.h <<_ACEOF
11308 #define VERSION "$VERSION"
11309 _ACEOF
11310
11311 # Some tools Automake needs.
11312
11313 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11314
11315
11316 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11317
11318
11319 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11320
11321
11322 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11323
11324
11325 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11326
11327 # For better backward compatibility.  To be removed once Automake 1.9.x
11328 # dies out for good.  For more background, see:
11329 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
11330 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
11331 mkdir_p='$(MKDIR_P)'
11332
11333 # We need awk for the "check" target.  The system "awk" is bad on
11334 # some platforms.
11335 # Always define AMTAR for backward compatibility.  Yes, it's still used
11336 # in the wild :-(  We should find a proper way to deprecate it ...
11337 AMTAR='$${TAR-tar}'
11338
11339 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
11340
11341
11342
11343
11344 depcc="$CC"   am_compiler_list=
11345
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11347 $as_echo_n "checking dependency style of $depcc... " >&6; }
11348 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11349   $as_echo_n "(cached) " >&6
11350 else
11351   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11352   # We make a subdir and do the tests there.  Otherwise we can end up
11353   # making bogus files that we don't know about and never remove.  For
11354   # instance it was reported that on HP-UX the gcc test will end up
11355   # making a dummy file named 'D' -- because '-MD' means "put the output
11356   # in D".
11357   rm -rf conftest.dir
11358   mkdir conftest.dir
11359   # Copy depcomp to subdir because otherwise we won't find it if we're
11360   # using a relative directory.
11361   cp "$am_depcomp" conftest.dir
11362   cd conftest.dir
11363   # We will build objects and dependencies in a subdirectory because
11364   # it helps to detect inapplicable dependency modes.  For instance
11365   # both Tru64's cc and ICC support -MD to output dependencies as a
11366   # side effect of compilation, but ICC will put the dependencies in
11367   # the current directory while Tru64 will put them in the object
11368   # directory.
11369   mkdir sub
11370
11371   am_cv_CC_dependencies_compiler_type=none
11372   if test "$am_compiler_list" = ""; then
11373      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11374   fi
11375   am__universal=false
11376   case " $depcc " in #(
11377      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11378      esac
11379
11380   for depmode in $am_compiler_list; do
11381     # Setup a source with many dependencies, because some compilers
11382     # like to wrap large dependency lists on column 80 (with \), and
11383     # we should not choose a depcomp mode which is confused by this.
11384     #
11385     # We need to recreate these files for each test, as the compiler may
11386     # overwrite some of them when testing with obscure command lines.
11387     # This happens at least with the AIX C compiler.
11388     : > sub/conftest.c
11389     for i in 1 2 3 4 5 6; do
11390       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11391       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11392       # Solaris 10 /bin/sh.
11393       echo '/* dummy */' > sub/conftst$i.h
11394     done
11395     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11396
11397     # We check with '-c' and '-o' for the sake of the "dashmstdout"
11398     # mode.  It turns out that the SunPro C++ compiler does not properly
11399     # handle '-M -o', and we need to detect this.  Also, some Intel
11400     # versions had trouble with output in subdirs.
11401     am__obj=sub/conftest.${OBJEXT-o}
11402     am__minus_obj="-o $am__obj"
11403     case $depmode in
11404     gcc)
11405       # This depmode causes a compiler race in universal mode.
11406       test "$am__universal" = false || continue
11407       ;;
11408     nosideeffect)
11409       # After this tag, mechanisms are not by side-effect, so they'll
11410       # only be used when explicitly requested.
11411       if test "x$enable_dependency_tracking" = xyes; then
11412         continue
11413       else
11414         break
11415       fi
11416       ;;
11417     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11418       # This compiler won't grok '-c -o', but also, the minuso test has
11419       # not run yet.  These depmodes are late enough in the game, and
11420       # so weak that their functioning should not be impacted.
11421       am__obj=conftest.${OBJEXT-o}
11422       am__minus_obj=
11423       ;;
11424     none) break ;;
11425     esac
11426     if depmode=$depmode \
11427        source=sub/conftest.c object=$am__obj \
11428        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11429        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11430          >/dev/null 2>conftest.err &&
11431        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11432        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11433        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11434        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11435       # icc doesn't choke on unknown options, it will just issue warnings
11436       # or remarks (even with -Werror).  So we grep stderr for any message
11437       # that says an option was ignored or not supported.
11438       # When given -MP, icc 7.0 and 7.1 complain thusly:
11439       #   icc: Command line warning: ignoring option '-M'; no argument required
11440       # The diagnosis changed in icc 8.0:
11441       #   icc: Command line remark: option '-MP' not supported
11442       if (grep 'ignoring option' conftest.err ||
11443           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11444         am_cv_CC_dependencies_compiler_type=$depmode
11445         break
11446       fi
11447     fi
11448   done
11449
11450   cd ..
11451   rm -rf conftest.dir
11452 else
11453   am_cv_CC_dependencies_compiler_type=none
11454 fi
11455
11456 fi
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11458 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11459 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11460
11461  if
11462   test "x$enable_dependency_tracking" != xno \
11463   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11464   am__fastdepCC_TRUE=
11465   am__fastdepCC_FALSE='#'
11466 else
11467   am__fastdepCC_TRUE='#'
11468   am__fastdepCC_FALSE=
11469 fi
11470
11471
11472
11473
11474 # Checks for programs.
11475 ac_ext=c
11476 ac_cpp='$CPP $CPPFLAGS'
11477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11480 if test -n "$ac_tool_prefix"; then
11481   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11482 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11484 $as_echo_n "checking for $ac_word... " >&6; }
11485 if ${ac_cv_prog_CC+:} false; then :
11486   $as_echo_n "(cached) " >&6
11487 else
11488   if test -n "$CC"; then
11489   ac_cv_prog_CC="$CC" # Let the user override the test.
11490 else
11491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11492 for as_dir in $PATH
11493 do
11494   IFS=$as_save_IFS
11495   test -z "$as_dir" && as_dir=.
11496     for ac_exec_ext in '' $ac_executable_extensions; do
11497   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11498     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11500     break 2
11501   fi
11502 done
11503   done
11504 IFS=$as_save_IFS
11505
11506 fi
11507 fi
11508 CC=$ac_cv_prog_CC
11509 if test -n "$CC"; then
11510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11511 $as_echo "$CC" >&6; }
11512 else
11513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11514 $as_echo "no" >&6; }
11515 fi
11516
11517
11518 fi
11519 if test -z "$ac_cv_prog_CC"; then
11520   ac_ct_CC=$CC
11521   # Extract the first word of "gcc", so it can be a program name with args.
11522 set dummy gcc; ac_word=$2
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11524 $as_echo_n "checking for $ac_word... " >&6; }
11525 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11526   $as_echo_n "(cached) " >&6
11527 else
11528   if test -n "$ac_ct_CC"; then
11529   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11530 else
11531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11532 for as_dir in $PATH
11533 do
11534   IFS=$as_save_IFS
11535   test -z "$as_dir" && as_dir=.
11536     for ac_exec_ext in '' $ac_executable_extensions; do
11537   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11538     ac_cv_prog_ac_ct_CC="gcc"
11539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11540     break 2
11541   fi
11542 done
11543   done
11544 IFS=$as_save_IFS
11545
11546 fi
11547 fi
11548 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11549 if test -n "$ac_ct_CC"; then
11550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11551 $as_echo "$ac_ct_CC" >&6; }
11552 else
11553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11554 $as_echo "no" >&6; }
11555 fi
11556
11557   if test "x$ac_ct_CC" = x; then
11558     CC=""
11559   else
11560     case $cross_compiling:$ac_tool_warned in
11561 yes:)
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11564 ac_tool_warned=yes ;;
11565 esac
11566     CC=$ac_ct_CC
11567   fi
11568 else
11569   CC="$ac_cv_prog_CC"
11570 fi
11571
11572 if test -z "$CC"; then
11573           if test -n "$ac_tool_prefix"; then
11574     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11575 set dummy ${ac_tool_prefix}cc; ac_word=$2
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11577 $as_echo_n "checking for $ac_word... " >&6; }
11578 if ${ac_cv_prog_CC+:} false; then :
11579   $as_echo_n "(cached) " >&6
11580 else
11581   if test -n "$CC"; then
11582   ac_cv_prog_CC="$CC" # Let the user override the test.
11583 else
11584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585 for as_dir in $PATH
11586 do
11587   IFS=$as_save_IFS
11588   test -z "$as_dir" && as_dir=.
11589     for ac_exec_ext in '' $ac_executable_extensions; do
11590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11591     ac_cv_prog_CC="${ac_tool_prefix}cc"
11592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11593     break 2
11594   fi
11595 done
11596   done
11597 IFS=$as_save_IFS
11598
11599 fi
11600 fi
11601 CC=$ac_cv_prog_CC
11602 if test -n "$CC"; then
11603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11604 $as_echo "$CC" >&6; }
11605 else
11606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11607 $as_echo "no" >&6; }
11608 fi
11609
11610
11611   fi
11612 fi
11613 if test -z "$CC"; then
11614   # Extract the first word of "cc", so it can be a program name with args.
11615 set dummy cc; ac_word=$2
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11617 $as_echo_n "checking for $ac_word... " >&6; }
11618 if ${ac_cv_prog_CC+:} false; then :
11619   $as_echo_n "(cached) " >&6
11620 else
11621   if test -n "$CC"; then
11622   ac_cv_prog_CC="$CC" # Let the user override the test.
11623 else
11624   ac_prog_rejected=no
11625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11626 for as_dir in $PATH
11627 do
11628   IFS=$as_save_IFS
11629   test -z "$as_dir" && as_dir=.
11630     for ac_exec_ext in '' $ac_executable_extensions; do
11631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11632     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11633        ac_prog_rejected=yes
11634        continue
11635      fi
11636     ac_cv_prog_CC="cc"
11637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11638     break 2
11639   fi
11640 done
11641   done
11642 IFS=$as_save_IFS
11643
11644 if test $ac_prog_rejected = yes; then
11645   # We found a bogon in the path, so make sure we never use it.
11646   set dummy $ac_cv_prog_CC
11647   shift
11648   if test $# != 0; then
11649     # We chose a different compiler from the bogus one.
11650     # However, it has the same basename, so the bogon will be chosen
11651     # first if we set CC to just the basename; use the full file name.
11652     shift
11653     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11654   fi
11655 fi
11656 fi
11657 fi
11658 CC=$ac_cv_prog_CC
11659 if test -n "$CC"; then
11660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11661 $as_echo "$CC" >&6; }
11662 else
11663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11664 $as_echo "no" >&6; }
11665 fi
11666
11667
11668 fi
11669 if test -z "$CC"; then
11670   if test -n "$ac_tool_prefix"; then
11671   for ac_prog in cl.exe
11672   do
11673     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11674 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11676 $as_echo_n "checking for $ac_word... " >&6; }
11677 if ${ac_cv_prog_CC+:} false; then :
11678   $as_echo_n "(cached) " >&6
11679 else
11680   if test -n "$CC"; then
11681   ac_cv_prog_CC="$CC" # Let the user override the test.
11682 else
11683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11684 for as_dir in $PATH
11685 do
11686   IFS=$as_save_IFS
11687   test -z "$as_dir" && as_dir=.
11688     for ac_exec_ext in '' $ac_executable_extensions; do
11689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11690     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11692     break 2
11693   fi
11694 done
11695   done
11696 IFS=$as_save_IFS
11697
11698 fi
11699 fi
11700 CC=$ac_cv_prog_CC
11701 if test -n "$CC"; then
11702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11703 $as_echo "$CC" >&6; }
11704 else
11705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11706 $as_echo "no" >&6; }
11707 fi
11708
11709
11710     test -n "$CC" && break
11711   done
11712 fi
11713 if test -z "$CC"; then
11714   ac_ct_CC=$CC
11715   for ac_prog in cl.exe
11716 do
11717   # Extract the first word of "$ac_prog", so it can be a program name with args.
11718 set dummy $ac_prog; ac_word=$2
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11720 $as_echo_n "checking for $ac_word... " >&6; }
11721 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11722   $as_echo_n "(cached) " >&6
11723 else
11724   if test -n "$ac_ct_CC"; then
11725   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11726 else
11727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11728 for as_dir in $PATH
11729 do
11730   IFS=$as_save_IFS
11731   test -z "$as_dir" && as_dir=.
11732     for ac_exec_ext in '' $ac_executable_extensions; do
11733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11734     ac_cv_prog_ac_ct_CC="$ac_prog"
11735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11736     break 2
11737   fi
11738 done
11739   done
11740 IFS=$as_save_IFS
11741
11742 fi
11743 fi
11744 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11745 if test -n "$ac_ct_CC"; then
11746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11747 $as_echo "$ac_ct_CC" >&6; }
11748 else
11749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750 $as_echo "no" >&6; }
11751 fi
11752
11753
11754   test -n "$ac_ct_CC" && break
11755 done
11756
11757   if test "x$ac_ct_CC" = x; then
11758     CC=""
11759   else
11760     case $cross_compiling:$ac_tool_warned in
11761 yes:)
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11764 ac_tool_warned=yes ;;
11765 esac
11766     CC=$ac_ct_CC
11767   fi
11768 fi
11769
11770 fi
11771
11772
11773 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11775 as_fn_error $? "no acceptable C compiler found in \$PATH
11776 See \`config.log' for more details" "$LINENO" 5; }
11777
11778 # Provide some information about the compiler.
11779 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11780 set X $ac_compile
11781 ac_compiler=$2
11782 for ac_option in --version -v -V -qversion; do
11783   { { ac_try="$ac_compiler $ac_option >&5"
11784 case "(($ac_try" in
11785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786   *) ac_try_echo=$ac_try;;
11787 esac
11788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11789 $as_echo "$ac_try_echo"; } >&5
11790   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11791   ac_status=$?
11792   if test -s conftest.err; then
11793     sed '10a\
11794 ... rest of stderr output deleted ...
11795          10q' conftest.err >conftest.er1
11796     cat conftest.er1 >&5
11797   fi
11798   rm -f conftest.er1 conftest.err
11799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11800   test $ac_status = 0; }
11801 done
11802
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11804 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11805 if ${ac_cv_c_compiler_gnu+:} false; then :
11806   $as_echo_n "(cached) " >&6
11807 else
11808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11809 /* end confdefs.h.  */
11810
11811 int
11812 main ()
11813 {
11814 #ifndef __GNUC__
11815        choke me
11816 #endif
11817
11818   ;
11819   return 0;
11820 }
11821 _ACEOF
11822 if ac_fn_c_try_compile "$LINENO"; then :
11823   ac_compiler_gnu=yes
11824 else
11825   ac_compiler_gnu=no
11826 fi
11827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11828 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11829
11830 fi
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11832 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11833 if test $ac_compiler_gnu = yes; then
11834   GCC=yes
11835 else
11836   GCC=
11837 fi
11838 ac_test_CFLAGS=${CFLAGS+set}
11839 ac_save_CFLAGS=$CFLAGS
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11841 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11842 if ${ac_cv_prog_cc_g+:} false; then :
11843   $as_echo_n "(cached) " >&6
11844 else
11845   ac_save_c_werror_flag=$ac_c_werror_flag
11846    ac_c_werror_flag=yes
11847    ac_cv_prog_cc_g=no
11848    CFLAGS="-g"
11849    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11850 /* end confdefs.h.  */
11851
11852 int
11853 main ()
11854 {
11855
11856   ;
11857   return 0;
11858 }
11859 _ACEOF
11860 if ac_fn_c_try_compile "$LINENO"; then :
11861   ac_cv_prog_cc_g=yes
11862 else
11863   CFLAGS=""
11864       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h.  */
11866
11867 int
11868 main ()
11869 {
11870
11871   ;
11872   return 0;
11873 }
11874 _ACEOF
11875 if ac_fn_c_try_compile "$LINENO"; then :
11876
11877 else
11878   ac_c_werror_flag=$ac_save_c_werror_flag
11879          CFLAGS="-g"
11880          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11881 /* end confdefs.h.  */
11882
11883 int
11884 main ()
11885 {
11886
11887   ;
11888   return 0;
11889 }
11890 _ACEOF
11891 if ac_fn_c_try_compile "$LINENO"; then :
11892   ac_cv_prog_cc_g=yes
11893 fi
11894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11895 fi
11896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11897 fi
11898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11899    ac_c_werror_flag=$ac_save_c_werror_flag
11900 fi
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11902 $as_echo "$ac_cv_prog_cc_g" >&6; }
11903 if test "$ac_test_CFLAGS" = set; then
11904   CFLAGS=$ac_save_CFLAGS
11905 elif test $ac_cv_prog_cc_g = yes; then
11906   if test "$GCC" = yes; then
11907     CFLAGS="-g -O2"
11908   else
11909     CFLAGS="-g"
11910   fi
11911 else
11912   if test "$GCC" = yes; then
11913     CFLAGS="-O2"
11914   else
11915     CFLAGS=
11916   fi
11917 fi
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11919 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11920 if ${ac_cv_prog_cc_c89+:} false; then :
11921   $as_echo_n "(cached) " >&6
11922 else
11923   ac_cv_prog_cc_c89=no
11924 ac_save_CC=$CC
11925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11926 /* end confdefs.h.  */
11927 #include <stdarg.h>
11928 #include <stdio.h>
11929 struct stat;
11930 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11931 struct buf { int x; };
11932 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11933 static char *e (p, i)
11934      char **p;
11935      int i;
11936 {
11937   return p[i];
11938 }
11939 static char *f (char * (*g) (char **, int), char **p, ...)
11940 {
11941   char *s;
11942   va_list v;
11943   va_start (v,p);
11944   s = g (p, va_arg (v,int));
11945   va_end (v);
11946   return s;
11947 }
11948
11949 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11950    function prototypes and stuff, but not '\xHH' hex character constants.
11951    These don't provoke an error unfortunately, instead are silently treated
11952    as 'x'.  The following induces an error, until -std is added to get
11953    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11954    array size at least.  It's necessary to write '\x00'==0 to get something
11955    that's true only with -std.  */
11956 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11957
11958 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11959    inside strings and character constants.  */
11960 #define FOO(x) 'x'
11961 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11962
11963 int test (int i, double x);
11964 struct s1 {int (*f) (int a);};
11965 struct s2 {int (*f) (double a);};
11966 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11967 int argc;
11968 char **argv;
11969 int
11970 main ()
11971 {
11972 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11973   ;
11974   return 0;
11975 }
11976 _ACEOF
11977 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11978         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11979 do
11980   CC="$ac_save_CC $ac_arg"
11981   if ac_fn_c_try_compile "$LINENO"; then :
11982   ac_cv_prog_cc_c89=$ac_arg
11983 fi
11984 rm -f core conftest.err conftest.$ac_objext
11985   test "x$ac_cv_prog_cc_c89" != "xno" && break
11986 done
11987 rm -f conftest.$ac_ext
11988 CC=$ac_save_CC
11989
11990 fi
11991 # AC_CACHE_VAL
11992 case "x$ac_cv_prog_cc_c89" in
11993   x)
11994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11995 $as_echo "none needed" >&6; } ;;
11996   xno)
11997     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11998 $as_echo "unsupported" >&6; } ;;
11999   *)
12000     CC="$CC $ac_cv_prog_cc_c89"
12001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12002 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12003 esac
12004 if test "x$ac_cv_prog_cc_c89" != xno; then :
12005
12006 fi
12007
12008 ac_ext=c
12009 ac_cpp='$CPP $CPPFLAGS'
12010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12013
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12015 $as_echo_n "checking whether ln -s works... " >&6; }
12016 LN_S=$as_ln_s
12017 if test "$LN_S" = "ln -s"; then
12018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12019 $as_echo "yes" >&6; }
12020 else
12021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12022 $as_echo "no, using $LN_S" >&6; }
12023 fi
12024
12025
12026 # Checks for libraries.
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ae_decode in -lae" >&5
12028 $as_echo_n "checking for ae_decode in -lae... " >&6; }
12029 if ${ac_cv_lib_ae_ae_decode+:} false; then :
12030   $as_echo_n "(cached) " >&6
12031 else
12032   ac_check_lib_save_LIBS=$LIBS
12033 LIBS="-lae  $LIBS"
12034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h.  */
12036
12037 /* Override any GCC internal prototype to avoid an error.
12038    Use char because int might match the return type of a GCC
12039    builtin and then its argument prototype would still apply.  */
12040 #ifdef __cplusplus
12041 extern "C"
12042 #endif
12043 char ae_decode ();
12044 int
12045 main ()
12046 {
12047 return ae_decode ();
12048   ;
12049   return 0;
12050 }
12051 _ACEOF
12052 if ac_fn_c_try_link "$LINENO"; then :
12053   ac_cv_lib_ae_ae_decode=yes
12054 else
12055   ac_cv_lib_ae_ae_decode=no
12056 fi
12057 rm -f core conftest.err conftest.$ac_objext \
12058     conftest$ac_exeext conftest.$ac_ext
12059 LIBS=$ac_check_lib_save_LIBS
12060 fi
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ae_ae_decode" >&5
12062 $as_echo "$ac_cv_lib_ae_ae_decode" >&6; }
12063 if test "x$ac_cv_lib_ae_ae_decode" = xyes; then :
12064   cat >>confdefs.h <<_ACEOF
12065 #define HAVE_LIBAE 1
12066 _ACEOF
12067
12068   LIBS="-lae $LIBS"
12069
12070 fi
12071
12072
12073 # Checks for header files.
12074 for ac_header in inttypes.h stddef.h stdlib.h string.h unistd.h
12075 do :
12076   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12077 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12078 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12079   cat >>confdefs.h <<_ACEOF
12080 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12081 _ACEOF
12082
12083 fi
12084
12085 done
12086
12087
12088 # Checks for typedefs, structures, and compiler characteristics.
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12090 $as_echo_n "checking for inline... " >&6; }
12091 if ${ac_cv_c_inline+:} false; then :
12092   $as_echo_n "(cached) " >&6
12093 else
12094   ac_cv_c_inline=no
12095 for ac_kw in inline __inline__ __inline; do
12096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097 /* end confdefs.h.  */
12098 #ifndef __cplusplus
12099 typedef int foo_t;
12100 static $ac_kw foo_t static_foo () {return 0; }
12101 $ac_kw foo_t foo () {return 0; }
12102 #endif
12103
12104 _ACEOF
12105 if ac_fn_c_try_compile "$LINENO"; then :
12106   ac_cv_c_inline=$ac_kw
12107 fi
12108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12109   test "$ac_cv_c_inline" != no && break
12110 done
12111
12112 fi
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12114 $as_echo "$ac_cv_c_inline" >&6; }
12115
12116 case $ac_cv_c_inline in
12117   inline | yes) ;;
12118   *)
12119     case $ac_cv_c_inline in
12120       no) ac_val=;;
12121       *) ac_val=$ac_cv_c_inline;;
12122     esac
12123     cat >>confdefs.h <<_ACEOF
12124 #ifndef __cplusplus
12125 #define inline $ac_val
12126 #endif
12127 _ACEOF
12128     ;;
12129 esac
12130
12131 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
12132 case $ac_cv_c_int64_t in #(
12133   no|yes) ;; #(
12134   *)
12135
12136 cat >>confdefs.h <<_ACEOF
12137 #define int64_t $ac_cv_c_int64_t
12138 _ACEOF
12139 ;;
12140 esac
12141
12142 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12143 if test "x$ac_cv_type_size_t" = xyes; then :
12144
12145 else
12146
12147 cat >>confdefs.h <<_ACEOF
12148 #define size_t unsigned int
12149 _ACEOF
12150
12151 fi
12152
12153 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
12154 case $ac_cv_c_uint32_t in #(
12155   no|yes) ;; #(
12156   *)
12157
12158 $as_echo "#define _UINT32_T 1" >>confdefs.h
12159
12160
12161 cat >>confdefs.h <<_ACEOF
12162 #define uint32_t $ac_cv_c_uint32_t
12163 _ACEOF
12164 ;;
12165   esac
12166
12167 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
12168 case $ac_cv_c_uint64_t in #(
12169   no|yes) ;; #(
12170   *)
12171
12172 $as_echo "#define _UINT64_T 1" >>confdefs.h
12173
12174
12175 cat >>confdefs.h <<_ACEOF
12176 #define uint64_t $ac_cv_c_uint64_t
12177 _ACEOF
12178 ;;
12179   esac
12180
12181 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
12182 case $ac_cv_c_uint8_t in #(
12183   no|yes) ;; #(
12184   *)
12185
12186 $as_echo "#define _UINT8_T 1" >>confdefs.h
12187
12188
12189 cat >>confdefs.h <<_ACEOF
12190 #define uint8_t $ac_cv_c_uint8_t
12191 _ACEOF
12192 ;;
12193   esac
12194
12195
12196 # Checks for library functions.
12197 for ac_header in stdlib.h
12198 do :
12199   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12200 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12201   cat >>confdefs.h <<_ACEOF
12202 #define HAVE_STDLIB_H 1
12203 _ACEOF
12204
12205 fi
12206
12207 done
12208
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12210 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12211 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12212   $as_echo_n "(cached) " >&6
12213 else
12214   if test "$cross_compiling" = yes; then :
12215   ac_cv_func_malloc_0_nonnull=no
12216 else
12217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12218 /* end confdefs.h.  */
12219 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12220 # include <stdlib.h>
12221 #else
12222 char *malloc ();
12223 #endif
12224
12225 int
12226 main ()
12227 {
12228 return ! malloc (0);
12229   ;
12230   return 0;
12231 }
12232 _ACEOF
12233 if ac_fn_c_try_run "$LINENO"; then :
12234   ac_cv_func_malloc_0_nonnull=yes
12235 else
12236   ac_cv_func_malloc_0_nonnull=no
12237 fi
12238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12239   conftest.$ac_objext conftest.beam conftest.$ac_ext
12240 fi
12241
12242 fi
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12244 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12245 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12246
12247 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12248
12249 else
12250   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12251
12252    case " $LIBOBJS " in
12253   *" malloc.$ac_objext "* ) ;;
12254   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12255  ;;
12256 esac
12257
12258
12259 $as_echo "#define malloc rpl_malloc" >>confdefs.h
12260
12261 fi
12262
12263
12264 for ac_func in memset strstr
12265 do :
12266   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12267 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12268 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12269   cat >>confdefs.h <<_ACEOF
12270 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12271 _ACEOF
12272
12273 fi
12274 done
12275
12276
12277 ac_config_files="$ac_config_files Makefile src/Makefile"
12278
12279 cat >confcache <<\_ACEOF
12280 # This file is a shell script that caches the results of configure
12281 # tests run on this system so they can be shared between configure
12282 # scripts and configure runs, see configure's option --config-cache.
12283 # It is not useful on other systems.  If it contains results you don't
12284 # want to keep, you may remove or edit it.
12285 #
12286 # config.status only pays attention to the cache file if you give it
12287 # the --recheck option to rerun configure.
12288 #
12289 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12290 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12291 # following values.
12292
12293 _ACEOF
12294
12295 # The following way of writing the cache mishandles newlines in values,
12296 # but we know of no workaround that is simple, portable, and efficient.
12297 # So, we kill variables containing newlines.
12298 # Ultrix sh set writes to stderr and can't be redirected directly,
12299 # and sets the high bit in the cache file unless we assign to the vars.
12300 (
12301   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12302     eval ac_val=\$$ac_var
12303     case $ac_val in #(
12304     *${as_nl}*)
12305       case $ac_var in #(
12306       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12307 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12308       esac
12309       case $ac_var in #(
12310       _ | IFS | as_nl) ;; #(
12311       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12312       *) { eval $ac_var=; unset $ac_var;} ;;
12313       esac ;;
12314     esac
12315   done
12316
12317   (set) 2>&1 |
12318     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12319     *${as_nl}ac_space=\ *)
12320       # `set' does not quote correctly, so add quotes: double-quote
12321       # substitution turns \\\\ into \\, and sed turns \\ into \.
12322       sed -n \
12323         "s/'/'\\\\''/g;
12324           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12325       ;; #(
12326     *)
12327       # `set' quotes correctly as required by POSIX, so do not add quotes.
12328       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12329       ;;
12330     esac |
12331     sort
12332 ) |
12333   sed '
12334      /^ac_cv_env_/b end
12335      t clear
12336      :clear
12337      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12338      t end
12339      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12340      :end' >>confcache
12341 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12342   if test -w "$cache_file"; then
12343     if test "x$cache_file" != "x/dev/null"; then
12344       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12345 $as_echo "$as_me: updating cache $cache_file" >&6;}
12346       if test ! -f "$cache_file" || test -h "$cache_file"; then
12347         cat confcache >"$cache_file"
12348       else
12349         case $cache_file in #(
12350         */* | ?:*)
12351           mv -f confcache "$cache_file"$$ &&
12352           mv -f "$cache_file"$$ "$cache_file" ;; #(
12353         *)
12354           mv -f confcache "$cache_file" ;;
12355         esac
12356       fi
12357     fi
12358   else
12359     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12360 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12361   fi
12362 fi
12363 rm -f confcache
12364
12365 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12366 # Let make expand exec_prefix.
12367 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12368
12369 DEFS=-DHAVE_CONFIG_H
12370
12371 ac_libobjs=
12372 ac_ltlibobjs=
12373 U=
12374 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12375   # 1. Remove the extension, and $U if already installed.
12376   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12377   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12378   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12379   #    will be set to the directory where LIBOBJS objects are built.
12380   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12381   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12382 done
12383 LIBOBJS=$ac_libobjs
12384
12385 LTLIBOBJS=$ac_ltlibobjs
12386
12387
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12389 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12390    if test -n "$am_sleep_pid"; then
12391      # Hide warnings about reused PIDs.
12392      wait $am_sleep_pid 2>/dev/null
12393    fi
12394    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12395 $as_echo "done" >&6; }
12396 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12397   as_fn_error $? "conditional \"AMDEP\" was never defined.
12398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12399 fi
12400 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12401   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12403 fi
12404  if test -n "$EXEEXT"; then
12405   am__EXEEXT_TRUE=
12406   am__EXEEXT_FALSE='#'
12407 else
12408   am__EXEEXT_TRUE='#'
12409   am__EXEEXT_FALSE=
12410 fi
12411
12412
12413 : "${CONFIG_STATUS=./config.status}"
12414 ac_write_fail=0
12415 ac_clean_files_save=$ac_clean_files
12416 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12418 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12419 as_write_fail=0
12420 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12421 #! $SHELL
12422 # Generated by $as_me.
12423 # Run this file to recreate the current configuration.
12424 # Compiler output produced by configure, useful for debugging
12425 # configure, is in config.log if it exists.
12426
12427 debug=false
12428 ac_cs_recheck=false
12429 ac_cs_silent=false
12430
12431 SHELL=\${CONFIG_SHELL-$SHELL}
12432 export SHELL
12433 _ASEOF
12434 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12435 ## -------------------- ##
12436 ## M4sh Initialization. ##
12437 ## -------------------- ##
12438
12439 # Be more Bourne compatible
12440 DUALCASE=1; export DUALCASE # for MKS sh
12441 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12442   emulate sh
12443   NULLCMD=:
12444   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12445   # is contrary to our usage.  Disable this feature.
12446   alias -g '${1+"$@"}'='"$@"'
12447   setopt NO_GLOB_SUBST
12448 else
12449   case `(set -o) 2>/dev/null` in #(
12450   *posix*) :
12451     set -o posix ;; #(
12452   *) :
12453      ;;
12454 esac
12455 fi
12456
12457
12458 as_nl='
12459 '
12460 export as_nl
12461 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12462 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12463 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12464 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12465 # Prefer a ksh shell builtin over an external printf program on Solaris,
12466 # but without wasting forks for bash or zsh.
12467 if test -z "$BASH_VERSION$ZSH_VERSION" \
12468     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12469   as_echo='print -r --'
12470   as_echo_n='print -rn --'
12471 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12472   as_echo='printf %s\n'
12473   as_echo_n='printf %s'
12474 else
12475   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12476     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12477     as_echo_n='/usr/ucb/echo -n'
12478   else
12479     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12480     as_echo_n_body='eval
12481       arg=$1;
12482       case $arg in #(
12483       *"$as_nl"*)
12484         expr "X$arg" : "X\\(.*\\)$as_nl";
12485         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12486       esac;
12487       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12488     '
12489     export as_echo_n_body
12490     as_echo_n='sh -c $as_echo_n_body as_echo'
12491   fi
12492   export as_echo_body
12493   as_echo='sh -c $as_echo_body as_echo'
12494 fi
12495
12496 # The user is always right.
12497 if test "${PATH_SEPARATOR+set}" != set; then
12498   PATH_SEPARATOR=:
12499   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12500     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12501       PATH_SEPARATOR=';'
12502   }
12503 fi
12504
12505
12506 # IFS
12507 # We need space, tab and new line, in precisely that order.  Quoting is
12508 # there to prevent editors from complaining about space-tab.
12509 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12510 # splitting by setting IFS to empty value.)
12511 IFS=" ""        $as_nl"
12512
12513 # Find who we are.  Look in the path if we contain no directory separator.
12514 as_myself=
12515 case $0 in #((
12516   *[\\/]* ) as_myself=$0 ;;
12517   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12518 for as_dir in $PATH
12519 do
12520   IFS=$as_save_IFS
12521   test -z "$as_dir" && as_dir=.
12522     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12523   done
12524 IFS=$as_save_IFS
12525
12526      ;;
12527 esac
12528 # We did not find ourselves, most probably we were run as `sh COMMAND'
12529 # in which case we are not to be found in the path.
12530 if test "x$as_myself" = x; then
12531   as_myself=$0
12532 fi
12533 if test ! -f "$as_myself"; then
12534   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12535   exit 1
12536 fi
12537
12538 # Unset variables that we do not need and which cause bugs (e.g. in
12539 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12540 # suppresses any "Segmentation fault" message there.  '((' could
12541 # trigger a bug in pdksh 5.2.14.
12542 for as_var in BASH_ENV ENV MAIL MAILPATH
12543 do eval test x\${$as_var+set} = xset \
12544   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12545 done
12546 PS1='$ '
12547 PS2='> '
12548 PS4='+ '
12549
12550 # NLS nuisances.
12551 LC_ALL=C
12552 export LC_ALL
12553 LANGUAGE=C
12554 export LANGUAGE
12555
12556 # CDPATH.
12557 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12558
12559
12560 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12561 # ----------------------------------------
12562 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12563 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12564 # script with STATUS, using 1 if that was 0.
12565 as_fn_error ()
12566 {
12567   as_status=$1; test $as_status -eq 0 && as_status=1
12568   if test "$4"; then
12569     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12570     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12571   fi
12572   $as_echo "$as_me: error: $2" >&2
12573   as_fn_exit $as_status
12574 } # as_fn_error
12575
12576
12577 # as_fn_set_status STATUS
12578 # -----------------------
12579 # Set $? to STATUS, without forking.
12580 as_fn_set_status ()
12581 {
12582   return $1
12583 } # as_fn_set_status
12584
12585 # as_fn_exit STATUS
12586 # -----------------
12587 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12588 as_fn_exit ()
12589 {
12590   set +e
12591   as_fn_set_status $1
12592   exit $1
12593 } # as_fn_exit
12594
12595 # as_fn_unset VAR
12596 # ---------------
12597 # Portably unset VAR.
12598 as_fn_unset ()
12599 {
12600   { eval $1=; unset $1;}
12601 }
12602 as_unset=as_fn_unset
12603 # as_fn_append VAR VALUE
12604 # ----------------------
12605 # Append the text in VALUE to the end of the definition contained in VAR. Take
12606 # advantage of any shell optimizations that allow amortized linear growth over
12607 # repeated appends, instead of the typical quadratic growth present in naive
12608 # implementations.
12609 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12610   eval 'as_fn_append ()
12611   {
12612     eval $1+=\$2
12613   }'
12614 else
12615   as_fn_append ()
12616   {
12617     eval $1=\$$1\$2
12618   }
12619 fi # as_fn_append
12620
12621 # as_fn_arith ARG...
12622 # ------------------
12623 # Perform arithmetic evaluation on the ARGs, and store the result in the
12624 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12625 # must be portable across $(()) and expr.
12626 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12627   eval 'as_fn_arith ()
12628   {
12629     as_val=$(( $* ))
12630   }'
12631 else
12632   as_fn_arith ()
12633   {
12634     as_val=`expr "$@" || test $? -eq 1`
12635   }
12636 fi # as_fn_arith
12637
12638
12639 if expr a : '\(a\)' >/dev/null 2>&1 &&
12640    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12641   as_expr=expr
12642 else
12643   as_expr=false
12644 fi
12645
12646 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12647   as_basename=basename
12648 else
12649   as_basename=false
12650 fi
12651
12652 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12653   as_dirname=dirname
12654 else
12655   as_dirname=false
12656 fi
12657
12658 as_me=`$as_basename -- "$0" ||
12659 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12660          X"$0" : 'X\(//\)$' \| \
12661          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12662 $as_echo X/"$0" |
12663     sed '/^.*\/\([^/][^/]*\)\/*$/{
12664             s//\1/
12665             q
12666           }
12667           /^X\/\(\/\/\)$/{
12668             s//\1/
12669             q
12670           }
12671           /^X\/\(\/\).*/{
12672             s//\1/
12673             q
12674           }
12675           s/.*/./; q'`
12676
12677 # Avoid depending upon Character Ranges.
12678 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12679 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12680 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12681 as_cr_digits='0123456789'
12682 as_cr_alnum=$as_cr_Letters$as_cr_digits
12683
12684 ECHO_C= ECHO_N= ECHO_T=
12685 case `echo -n x` in #(((((
12686 -n*)
12687   case `echo 'xy\c'` in
12688   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12689   xy)  ECHO_C='\c';;
12690   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12691        ECHO_T=' ';;
12692   esac;;
12693 *)
12694   ECHO_N='-n';;
12695 esac
12696
12697 rm -f conf$$ conf$$.exe conf$$.file
12698 if test -d conf$$.dir; then
12699   rm -f conf$$.dir/conf$$.file
12700 else
12701   rm -f conf$$.dir
12702   mkdir conf$$.dir 2>/dev/null
12703 fi
12704 if (echo >conf$$.file) 2>/dev/null; then
12705   if ln -s conf$$.file conf$$ 2>/dev/null; then
12706     as_ln_s='ln -s'
12707     # ... but there are two gotchas:
12708     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12709     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12710     # In both cases, we have to default to `cp -pR'.
12711     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12712       as_ln_s='cp -pR'
12713   elif ln conf$$.file conf$$ 2>/dev/null; then
12714     as_ln_s=ln
12715   else
12716     as_ln_s='cp -pR'
12717   fi
12718 else
12719   as_ln_s='cp -pR'
12720 fi
12721 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12722 rmdir conf$$.dir 2>/dev/null
12723
12724
12725 # as_fn_mkdir_p
12726 # -------------
12727 # Create "$as_dir" as a directory, including parents if necessary.
12728 as_fn_mkdir_p ()
12729 {
12730
12731   case $as_dir in #(
12732   -*) as_dir=./$as_dir;;
12733   esac
12734   test -d "$as_dir" || eval $as_mkdir_p || {
12735     as_dirs=
12736     while :; do
12737       case $as_dir in #(
12738       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12739       *) as_qdir=$as_dir;;
12740       esac
12741       as_dirs="'$as_qdir' $as_dirs"
12742       as_dir=`$as_dirname -- "$as_dir" ||
12743 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12744          X"$as_dir" : 'X\(//\)[^/]' \| \
12745          X"$as_dir" : 'X\(//\)$' \| \
12746          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12747 $as_echo X"$as_dir" |
12748     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12749             s//\1/
12750             q
12751           }
12752           /^X\(\/\/\)[^/].*/{
12753             s//\1/
12754             q
12755           }
12756           /^X\(\/\/\)$/{
12757             s//\1/
12758             q
12759           }
12760           /^X\(\/\).*/{
12761             s//\1/
12762             q
12763           }
12764           s/.*/./; q'`
12765       test -d "$as_dir" && break
12766     done
12767     test -z "$as_dirs" || eval "mkdir $as_dirs"
12768   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12769
12770
12771 } # as_fn_mkdir_p
12772 if mkdir -p . 2>/dev/null; then
12773   as_mkdir_p='mkdir -p "$as_dir"'
12774 else
12775   test -d ./-p && rmdir ./-p
12776   as_mkdir_p=false
12777 fi
12778
12779
12780 # as_fn_executable_p FILE
12781 # -----------------------
12782 # Test if FILE is an executable regular file.
12783 as_fn_executable_p ()
12784 {
12785   test -f "$1" && test -x "$1"
12786 } # as_fn_executable_p
12787 as_test_x='test -x'
12788 as_executable_p=as_fn_executable_p
12789
12790 # Sed expression to map a string onto a valid CPP name.
12791 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12792
12793 # Sed expression to map a string onto a valid variable name.
12794 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12795
12796
12797 exec 6>&1
12798 ## ----------------------------------- ##
12799 ## Main body of $CONFIG_STATUS script. ##
12800 ## ----------------------------------- ##
12801 _ASEOF
12802 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12803
12804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12805 # Save the log message, to keep $0 and so on meaningful, and to
12806 # report actual input values of CONFIG_FILES etc. instead of their
12807 # values after options handling.
12808 ac_log="
12809 This file was extended by libaes $as_me 0.0.2, which was
12810 generated by GNU Autoconf 2.69.  Invocation command line was
12811
12812   CONFIG_FILES    = $CONFIG_FILES
12813   CONFIG_HEADERS  = $CONFIG_HEADERS
12814   CONFIG_LINKS    = $CONFIG_LINKS
12815   CONFIG_COMMANDS = $CONFIG_COMMANDS
12816   $ $0 $@
12817
12818 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12819 "
12820
12821 _ACEOF
12822
12823 case $ac_config_files in *"
12824 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12825 esac
12826
12827 case $ac_config_headers in *"
12828 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12829 esac
12830
12831
12832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12833 # Files that config.status was made for.
12834 config_files="$ac_config_files"
12835 config_headers="$ac_config_headers"
12836 config_commands="$ac_config_commands"
12837
12838 _ACEOF
12839
12840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12841 ac_cs_usage="\
12842 \`$as_me' instantiates files and other configuration actions
12843 from templates according to the current configuration.  Unless the files
12844 and actions are specified as TAGs, all are instantiated by default.
12845
12846 Usage: $0 [OPTION]... [TAG]...
12847
12848   -h, --help       print this help, then exit
12849   -V, --version    print version number and configuration settings, then exit
12850       --config     print configuration, then exit
12851   -q, --quiet, --silent
12852                    do not print progress messages
12853   -d, --debug      don't remove temporary files
12854       --recheck    update $as_me by reconfiguring in the same conditions
12855       --file=FILE[:TEMPLATE]
12856                    instantiate the configuration file FILE
12857       --header=FILE[:TEMPLATE]
12858                    instantiate the configuration header FILE
12859
12860 Configuration files:
12861 $config_files
12862
12863 Configuration headers:
12864 $config_headers
12865
12866 Configuration commands:
12867 $config_commands
12868
12869 Report bugs to <rosenhauer@dkrz.de>."
12870
12871 _ACEOF
12872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12873 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12874 ac_cs_version="\\
12875 libaes config.status 0.0.2
12876 configured by $0, generated by GNU Autoconf 2.69,
12877   with options \\"\$ac_cs_config\\"
12878
12879 Copyright (C) 2012 Free Software Foundation, Inc.
12880 This config.status script is free software; the Free Software Foundation
12881 gives unlimited permission to copy, distribute and modify it."
12882
12883 ac_pwd='$ac_pwd'
12884 srcdir='$srcdir'
12885 INSTALL='$INSTALL'
12886 MKDIR_P='$MKDIR_P'
12887 AWK='$AWK'
12888 test -n "\$AWK" || AWK=awk
12889 _ACEOF
12890
12891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12892 # The default lists apply if the user does not specify any file.
12893 ac_need_defaults=:
12894 while test $# != 0
12895 do
12896   case $1 in
12897   --*=?*)
12898     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12899     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12900     ac_shift=:
12901     ;;
12902   --*=)
12903     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12904     ac_optarg=
12905     ac_shift=:
12906     ;;
12907   *)
12908     ac_option=$1
12909     ac_optarg=$2
12910     ac_shift=shift
12911     ;;
12912   esac
12913
12914   case $ac_option in
12915   # Handling of the options.
12916   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12917     ac_cs_recheck=: ;;
12918   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12919     $as_echo "$ac_cs_version"; exit ;;
12920   --config | --confi | --conf | --con | --co | --c )
12921     $as_echo "$ac_cs_config"; exit ;;
12922   --debug | --debu | --deb | --de | --d | -d )
12923     debug=: ;;
12924   --file | --fil | --fi | --f )
12925     $ac_shift
12926     case $ac_optarg in
12927     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12928     '') as_fn_error $? "missing file argument" ;;
12929     esac
12930     as_fn_append CONFIG_FILES " '$ac_optarg'"
12931     ac_need_defaults=false;;
12932   --header | --heade | --head | --hea )
12933     $ac_shift
12934     case $ac_optarg in
12935     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12936     esac
12937     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12938     ac_need_defaults=false;;
12939   --he | --h)
12940     # Conflict between --help and --header
12941     as_fn_error $? "ambiguous option: \`$1'
12942 Try \`$0 --help' for more information.";;
12943   --help | --hel | -h )
12944     $as_echo "$ac_cs_usage"; exit ;;
12945   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12946   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12947     ac_cs_silent=: ;;
12948
12949   # This is an error.
12950   -*) as_fn_error $? "unrecognized option: \`$1'
12951 Try \`$0 --help' for more information." ;;
12952
12953   *) as_fn_append ac_config_targets " $1"
12954      ac_need_defaults=false ;;
12955
12956   esac
12957   shift
12958 done
12959
12960 ac_configure_extra_args=
12961
12962 if $ac_cs_silent; then
12963   exec 6>/dev/null
12964   ac_configure_extra_args="$ac_configure_extra_args --silent"
12965 fi
12966
12967 _ACEOF
12968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12969 if \$ac_cs_recheck; then
12970   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12971   shift
12972   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12973   CONFIG_SHELL='$SHELL'
12974   export CONFIG_SHELL
12975   exec "\$@"
12976 fi
12977
12978 _ACEOF
12979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12980 exec 5>>config.log
12981 {
12982   echo
12983   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12984 ## Running $as_me. ##
12985 _ASBOX
12986   $as_echo "$ac_log"
12987 } >&5
12988
12989 _ACEOF
12990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12991 #
12992 # INIT-COMMANDS
12993 #
12994
12995
12996 # The HP-UX ksh and POSIX shell print the target directory to stdout
12997 # if CDPATH is set.
12998 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12999
13000 sed_quote_subst='$sed_quote_subst'
13001 double_quote_subst='$double_quote_subst'
13002 delay_variable_subst='$delay_variable_subst'
13003 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13004 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13005 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13006 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13007 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13008 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13009 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13010 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13011 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13012 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13013 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13014 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13015 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13016 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13017 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13018 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13019 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13020 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13021 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13022 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13023 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13024 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13025 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13026 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13027 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13028 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13029 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13030 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13031 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13032 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13033 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13034 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13035 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13036 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13037 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13038 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13039 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13040 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13041 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13042 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13043 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13044 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13045 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13046 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13047 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13048 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13049 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13050 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13051 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13052 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13053 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13054 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13055 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13056 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13057 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13058 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13059 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"`'
13060 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13061 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13062 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13063 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13064 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13065 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13066 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13067 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13068 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13069 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13070 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13071 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13072 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13073 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13074 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13075 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13076 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13077 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13078 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13079 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13080 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13081 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13082 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13083 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13084 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13085 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13086 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13087 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13088 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13089 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13090 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13091 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13092 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13093 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13094 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13095 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13096 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13097 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13098 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13099 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13100 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13101 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13102 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13103 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13104 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13105 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13106 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13107 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13108 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13109 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13110 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13111 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13112 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13113 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13114 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13115 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13116 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13117 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13118 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13119 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13120 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13121 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13122 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13123 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13124 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13125 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13126 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13127 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13128 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13129 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13130 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13131 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13132 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13133
13134 LTCC='$LTCC'
13135 LTCFLAGS='$LTCFLAGS'
13136 compiler='$compiler_DEFAULT'
13137
13138 # A function that is used when there is no print builtin or printf.
13139 func_fallback_echo ()
13140 {
13141   eval 'cat <<_LTECHO_EOF
13142 \$1
13143 _LTECHO_EOF'
13144 }
13145
13146 # Quote evaled strings.
13147 for var in SHELL \
13148 ECHO \
13149 PATH_SEPARATOR \
13150 SED \
13151 GREP \
13152 EGREP \
13153 FGREP \
13154 LD \
13155 NM \
13156 LN_S \
13157 lt_SP2NL \
13158 lt_NL2SP \
13159 reload_flag \
13160 OBJDUMP \
13161 deplibs_check_method \
13162 file_magic_cmd \
13163 file_magic_glob \
13164 want_nocaseglob \
13165 DLLTOOL \
13166 sharedlib_from_linklib_cmd \
13167 AR \
13168 AR_FLAGS \
13169 archiver_list_spec \
13170 STRIP \
13171 RANLIB \
13172 CC \
13173 CFLAGS \
13174 compiler \
13175 lt_cv_sys_global_symbol_pipe \
13176 lt_cv_sys_global_symbol_to_cdecl \
13177 lt_cv_sys_global_symbol_to_c_name_address \
13178 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13179 nm_file_list_spec \
13180 lt_prog_compiler_no_builtin_flag \
13181 lt_prog_compiler_pic \
13182 lt_prog_compiler_wl \
13183 lt_prog_compiler_static \
13184 lt_cv_prog_compiler_c_o \
13185 need_locks \
13186 MANIFEST_TOOL \
13187 DSYMUTIL \
13188 NMEDIT \
13189 LIPO \
13190 OTOOL \
13191 OTOOL64 \
13192 shrext_cmds \
13193 export_dynamic_flag_spec \
13194 whole_archive_flag_spec \
13195 compiler_needs_object \
13196 with_gnu_ld \
13197 allow_undefined_flag \
13198 no_undefined_flag \
13199 hardcode_libdir_flag_spec \
13200 hardcode_libdir_separator \
13201 exclude_expsyms \
13202 include_expsyms \
13203 file_list_spec \
13204 variables_saved_for_relink \
13205 libname_spec \
13206 library_names_spec \
13207 soname_spec \
13208 install_override_mode \
13209 finish_eval \
13210 old_striplib \
13211 striplib; do
13212     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13213     *[\\\\\\\`\\"\\\$]*)
13214       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13215       ;;
13216     *)
13217       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13218       ;;
13219     esac
13220 done
13221
13222 # Double-quote double-evaled strings.
13223 for var in reload_cmds \
13224 old_postinstall_cmds \
13225 old_postuninstall_cmds \
13226 old_archive_cmds \
13227 extract_expsyms_cmds \
13228 old_archive_from_new_cmds \
13229 old_archive_from_expsyms_cmds \
13230 archive_cmds \
13231 archive_expsym_cmds \
13232 module_cmds \
13233 module_expsym_cmds \
13234 export_symbols_cmds \
13235 prelink_cmds \
13236 postlink_cmds \
13237 postinstall_cmds \
13238 postuninstall_cmds \
13239 finish_cmds \
13240 sys_lib_search_path_spec \
13241 sys_lib_dlsearch_path_spec; do
13242     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13243     *[\\\\\\\`\\"\\\$]*)
13244       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13245       ;;
13246     *)
13247       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13248       ;;
13249     esac
13250 done
13251
13252 ac_aux_dir='$ac_aux_dir'
13253 xsi_shell='$xsi_shell'
13254 lt_shell_append='$lt_shell_append'
13255
13256 # See if we are running on zsh, and set the options which allow our
13257 # commands through without removal of \ escapes INIT.
13258 if test -n "\${ZSH_VERSION+set}" ; then
13259    setopt NO_GLOB_SUBST
13260 fi
13261
13262
13263     PACKAGE='$PACKAGE'
13264     VERSION='$VERSION'
13265     TIMESTAMP='$TIMESTAMP'
13266     RM='$RM'
13267     ofile='$ofile'
13268
13269
13270
13271 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13272
13273 _ACEOF
13274
13275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13276
13277 # Handling of arguments.
13278 for ac_config_target in $ac_config_targets
13279 do
13280   case $ac_config_target in
13281     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
13282     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13283     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13284     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13285     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13286
13287   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13288   esac
13289 done
13290
13291
13292 # If the user did not use the arguments to specify the items to instantiate,
13293 # then the envvar interface is used.  Set only those that are not.
13294 # We use the long form for the default assignment because of an extremely
13295 # bizarre bug on SunOS 4.1.3.
13296 if $ac_need_defaults; then
13297   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13298   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13299   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13300 fi
13301
13302 # Have a temporary directory for convenience.  Make it in the build tree
13303 # simply because there is no reason against having it here, and in addition,
13304 # creating and moving files from /tmp can sometimes cause problems.
13305 # Hook for its removal unless debugging.
13306 # Note that there is a small window in which the directory will not be cleaned:
13307 # after its creation but before its name has been assigned to `$tmp'.
13308 $debug ||
13309 {
13310   tmp= ac_tmp=
13311   trap 'exit_status=$?
13312   : "${ac_tmp:=$tmp}"
13313   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13314 ' 0
13315   trap 'as_fn_exit 1' 1 2 13 15
13316 }
13317 # Create a (secure) tmp directory for tmp files.
13318
13319 {
13320   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13321   test -d "$tmp"
13322 }  ||
13323 {
13324   tmp=./conf$$-$RANDOM
13325   (umask 077 && mkdir "$tmp")
13326 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13327 ac_tmp=$tmp
13328
13329 # Set up the scripts for CONFIG_FILES section.
13330 # No need to generate them if there are no CONFIG_FILES.
13331 # This happens for instance with `./config.status config.h'.
13332 if test -n "$CONFIG_FILES"; then
13333
13334
13335 ac_cr=`echo X | tr X '\015'`
13336 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13337 # But we know of no other shell where ac_cr would be empty at this
13338 # point, so we can use a bashism as a fallback.
13339 if test "x$ac_cr" = x; then
13340   eval ac_cr=\$\'\\r\'
13341 fi
13342 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13343 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13344   ac_cs_awk_cr='\\r'
13345 else
13346   ac_cs_awk_cr=$ac_cr
13347 fi
13348
13349 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13350 _ACEOF
13351
13352
13353 {
13354   echo "cat >conf$$subs.awk <<_ACEOF" &&
13355   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13356   echo "_ACEOF"
13357 } >conf$$subs.sh ||
13358   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13359 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13360 ac_delim='%!_!# '
13361 for ac_last_try in false false false false false :; do
13362   . ./conf$$subs.sh ||
13363     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13364
13365   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13366   if test $ac_delim_n = $ac_delim_num; then
13367     break
13368   elif $ac_last_try; then
13369     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13370   else
13371     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13372   fi
13373 done
13374 rm -f conf$$subs.sh
13375
13376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13377 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13378 _ACEOF
13379 sed -n '
13380 h
13381 s/^/S["/; s/!.*/"]=/
13382 p
13383 g
13384 s/^[^!]*!//
13385 :repl
13386 t repl
13387 s/'"$ac_delim"'$//
13388 t delim
13389 :nl
13390 h
13391 s/\(.\{148\}\)..*/\1/
13392 t more1
13393 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13394 p
13395 n
13396 b repl
13397 :more1
13398 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13399 p
13400 g
13401 s/.\{148\}//
13402 t nl
13403 :delim
13404 h
13405 s/\(.\{148\}\)..*/\1/
13406 t more2
13407 s/["\\]/\\&/g; s/^/"/; s/$/"/
13408 p
13409 b
13410 :more2
13411 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13412 p
13413 g
13414 s/.\{148\}//
13415 t delim
13416 ' <conf$$subs.awk | sed '
13417 /^[^""]/{
13418   N
13419   s/\n//
13420 }
13421 ' >>$CONFIG_STATUS || ac_write_fail=1
13422 rm -f conf$$subs.awk
13423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13424 _ACAWK
13425 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13426   for (key in S) S_is_set[key] = 1
13427   FS = "\a"
13428
13429 }
13430 {
13431   line = $ 0
13432   nfields = split(line, field, "@")
13433   substed = 0
13434   len = length(field[1])
13435   for (i = 2; i < nfields; i++) {
13436     key = field[i]
13437     keylen = length(key)
13438     if (S_is_set[key]) {
13439       value = S[key]
13440       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13441       len += length(value) + length(field[++i])
13442       substed = 1
13443     } else
13444       len += 1 + keylen
13445   }
13446
13447   print line
13448 }
13449
13450 _ACAWK
13451 _ACEOF
13452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13453 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13454   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13455 else
13456   cat
13457 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13458   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13459 _ACEOF
13460
13461 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13462 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13463 # trailing colons and then remove the whole line if VPATH becomes empty
13464 # (actually we leave an empty line to preserve line numbers).
13465 if test "x$srcdir" = x.; then
13466   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13467 h
13468 s///
13469 s/^/:/
13470 s/[      ]*$/:/
13471 s/:\$(srcdir):/:/g
13472 s/:\${srcdir}:/:/g
13473 s/:@srcdir@:/:/g
13474 s/^:*//
13475 s/:*$//
13476 x
13477 s/\(=[   ]*\).*/\1/
13478 G
13479 s/\n//
13480 s/^[^=]*=[       ]*$//
13481 }'
13482 fi
13483
13484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13485 fi # test -n "$CONFIG_FILES"
13486
13487 # Set up the scripts for CONFIG_HEADERS section.
13488 # No need to generate them if there are no CONFIG_HEADERS.
13489 # This happens for instance with `./config.status Makefile'.
13490 if test -n "$CONFIG_HEADERS"; then
13491 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13492 BEGIN {
13493 _ACEOF
13494
13495 # Transform confdefs.h into an awk script `defines.awk', embedded as
13496 # here-document in config.status, that substitutes the proper values into
13497 # config.h.in to produce config.h.
13498
13499 # Create a delimiter string that does not exist in confdefs.h, to ease
13500 # handling of long lines.
13501 ac_delim='%!_!# '
13502 for ac_last_try in false false :; do
13503   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13504   if test -z "$ac_tt"; then
13505     break
13506   elif $ac_last_try; then
13507     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13508   else
13509     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13510   fi
13511 done
13512
13513 # For the awk script, D is an array of macro values keyed by name,
13514 # likewise P contains macro parameters if any.  Preserve backslash
13515 # newline sequences.
13516
13517 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13518 sed -n '
13519 s/.\{148\}/&'"$ac_delim"'/g
13520 t rset
13521 :rset
13522 s/^[     ]*#[    ]*define[       ][      ]*/ /
13523 t def
13524 d
13525 :def
13526 s/\\$//
13527 t bsnl
13528 s/["\\]/\\&/g
13529 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13530 D["\1"]=" \3"/p
13531 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13532 d
13533 :bsnl
13534 s/["\\]/\\&/g
13535 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13536 D["\1"]=" \3\\\\\\n"\\/p
13537 t cont
13538 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13539 t cont
13540 d
13541 :cont
13542 n
13543 s/.\{148\}/&'"$ac_delim"'/g
13544 t clear
13545 :clear
13546 s/\\$//
13547 t bsnlc
13548 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13549 d
13550 :bsnlc
13551 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13552 b cont
13553 ' <confdefs.h | sed '
13554 s/'"$ac_delim"'/"\\\
13555 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13556
13557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13558   for (key in D) D_is_set[key] = 1
13559   FS = "\a"
13560 }
13561 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13562   line = \$ 0
13563   split(line, arg, " ")
13564   if (arg[1] == "#") {
13565     defundef = arg[2]
13566     mac1 = arg[3]
13567   } else {
13568     defundef = substr(arg[1], 2)
13569     mac1 = arg[2]
13570   }
13571   split(mac1, mac2, "(") #)
13572   macro = mac2[1]
13573   prefix = substr(line, 1, index(line, defundef) - 1)
13574   if (D_is_set[macro]) {
13575     # Preserve the white space surrounding the "#".
13576     print prefix "define", macro P[macro] D[macro]
13577     next
13578   } else {
13579     # Replace #undef with comments.  This is necessary, for example,
13580     # in the case of _POSIX_SOURCE, which is predefined and required
13581     # on some systems where configure will not decide to define it.
13582     if (defundef == "undef") {
13583       print "/*", prefix defundef, macro, "*/"
13584       next
13585     }
13586   }
13587 }
13588 { print }
13589 _ACAWK
13590 _ACEOF
13591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13592   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13593 fi # test -n "$CONFIG_HEADERS"
13594
13595
13596 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13597 shift
13598 for ac_tag
13599 do
13600   case $ac_tag in
13601   :[FHLC]) ac_mode=$ac_tag; continue;;
13602   esac
13603   case $ac_mode$ac_tag in
13604   :[FHL]*:*);;
13605   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13606   :[FH]-) ac_tag=-:-;;
13607   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13608   esac
13609   ac_save_IFS=$IFS
13610   IFS=:
13611   set x $ac_tag
13612   IFS=$ac_save_IFS
13613   shift
13614   ac_file=$1
13615   shift
13616
13617   case $ac_mode in
13618   :L) ac_source=$1;;
13619   :[FH])
13620     ac_file_inputs=
13621     for ac_f
13622     do
13623       case $ac_f in
13624       -) ac_f="$ac_tmp/stdin";;
13625       *) # Look for the file first in the build tree, then in the source tree
13626          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13627          # because $ac_f cannot contain `:'.
13628          test -f "$ac_f" ||
13629            case $ac_f in
13630            [\\/$]*) false;;
13631            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13632            esac ||
13633            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13634       esac
13635       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13636       as_fn_append ac_file_inputs " '$ac_f'"
13637     done
13638
13639     # Let's still pretend it is `configure' which instantiates (i.e., don't
13640     # use $as_me), people would be surprised to read:
13641     #    /* config.h.  Generated by config.status.  */
13642     configure_input='Generated from '`
13643           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13644         `' by configure.'
13645     if test x"$ac_file" != x-; then
13646       configure_input="$ac_file.  $configure_input"
13647       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13648 $as_echo "$as_me: creating $ac_file" >&6;}
13649     fi
13650     # Neutralize special characters interpreted by sed in replacement strings.
13651     case $configure_input in #(
13652     *\&* | *\|* | *\\* )
13653        ac_sed_conf_input=`$as_echo "$configure_input" |
13654        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13655     *) ac_sed_conf_input=$configure_input;;
13656     esac
13657
13658     case $ac_tag in
13659     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13660       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13661     esac
13662     ;;
13663   esac
13664
13665   ac_dir=`$as_dirname -- "$ac_file" ||
13666 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13667          X"$ac_file" : 'X\(//\)[^/]' \| \
13668          X"$ac_file" : 'X\(//\)$' \| \
13669          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13670 $as_echo X"$ac_file" |
13671     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13672             s//\1/
13673             q
13674           }
13675           /^X\(\/\/\)[^/].*/{
13676             s//\1/
13677             q
13678           }
13679           /^X\(\/\/\)$/{
13680             s//\1/
13681             q
13682           }
13683           /^X\(\/\).*/{
13684             s//\1/
13685             q
13686           }
13687           s/.*/./; q'`
13688   as_dir="$ac_dir"; as_fn_mkdir_p
13689   ac_builddir=.
13690
13691 case "$ac_dir" in
13692 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13693 *)
13694   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13695   # A ".." for each directory in $ac_dir_suffix.
13696   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13697   case $ac_top_builddir_sub in
13698   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13699   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13700   esac ;;
13701 esac
13702 ac_abs_top_builddir=$ac_pwd
13703 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13704 # for backward compatibility:
13705 ac_top_builddir=$ac_top_build_prefix
13706
13707 case $srcdir in
13708   .)  # We are building in place.
13709     ac_srcdir=.
13710     ac_top_srcdir=$ac_top_builddir_sub
13711     ac_abs_top_srcdir=$ac_pwd ;;
13712   [\\/]* | ?:[\\/]* )  # Absolute name.
13713     ac_srcdir=$srcdir$ac_dir_suffix;
13714     ac_top_srcdir=$srcdir
13715     ac_abs_top_srcdir=$srcdir ;;
13716   *) # Relative name.
13717     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13718     ac_top_srcdir=$ac_top_build_prefix$srcdir
13719     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13720 esac
13721 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13722
13723
13724   case $ac_mode in
13725   :F)
13726   #
13727   # CONFIG_FILE
13728   #
13729
13730   case $INSTALL in
13731   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13732   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13733   esac
13734   ac_MKDIR_P=$MKDIR_P
13735   case $MKDIR_P in
13736   [\\/$]* | ?:[\\/]* ) ;;
13737   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13738   esac
13739 _ACEOF
13740
13741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13742 # If the template does not know about datarootdir, expand it.
13743 # FIXME: This hack should be removed a few years after 2.60.
13744 ac_datarootdir_hack=; ac_datarootdir_seen=
13745 ac_sed_dataroot='
13746 /datarootdir/ {
13747   p
13748   q
13749 }
13750 /@datadir@/p
13751 /@docdir@/p
13752 /@infodir@/p
13753 /@localedir@/p
13754 /@mandir@/p'
13755 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13756 *datarootdir*) ac_datarootdir_seen=yes;;
13757 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13758   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13759 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13760 _ACEOF
13761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13762   ac_datarootdir_hack='
13763   s&@datadir@&$datadir&g
13764   s&@docdir@&$docdir&g
13765   s&@infodir@&$infodir&g
13766   s&@localedir@&$localedir&g
13767   s&@mandir@&$mandir&g
13768   s&\\\${datarootdir}&$datarootdir&g' ;;
13769 esac
13770 _ACEOF
13771
13772 # Neutralize VPATH when `$srcdir' = `.'.
13773 # Shell code in configure.ac might set extrasub.
13774 # FIXME: do we really want to maintain this feature?
13775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13776 ac_sed_extra="$ac_vpsub
13777 $extrasub
13778 _ACEOF
13779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13780 :t
13781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13782 s|@configure_input@|$ac_sed_conf_input|;t t
13783 s&@top_builddir@&$ac_top_builddir_sub&;t t
13784 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13785 s&@srcdir@&$ac_srcdir&;t t
13786 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13787 s&@top_srcdir@&$ac_top_srcdir&;t t
13788 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13789 s&@builddir@&$ac_builddir&;t t
13790 s&@abs_builddir@&$ac_abs_builddir&;t t
13791 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13792 s&@INSTALL@&$ac_INSTALL&;t t
13793 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13794 $ac_datarootdir_hack
13795 "
13796 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13797   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13798
13799 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13800   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13801   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13802       "$ac_tmp/out"`; test -z "$ac_out"; } &&
13803   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13804 which seems to be undefined.  Please make sure it is defined" >&5
13805 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13806 which seems to be undefined.  Please make sure it is defined" >&2;}
13807
13808   rm -f "$ac_tmp/stdin"
13809   case $ac_file in
13810   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13811   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13812   esac \
13813   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13814  ;;
13815   :H)
13816   #
13817   # CONFIG_HEADER
13818   #
13819   if test x"$ac_file" != x-; then
13820     {
13821       $as_echo "/* $configure_input  */" \
13822       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13823     } >"$ac_tmp/config.h" \
13824       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13825     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13826       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13827 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13828     else
13829       rm -f "$ac_file"
13830       mv "$ac_tmp/config.h" "$ac_file" \
13831         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13832     fi
13833   else
13834     $as_echo "/* $configure_input  */" \
13835       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13836       || as_fn_error $? "could not create -" "$LINENO" 5
13837   fi
13838 # Compute "$ac_file"'s index in $config_headers.
13839 _am_arg="$ac_file"
13840 _am_stamp_count=1
13841 for _am_header in $config_headers :; do
13842   case $_am_header in
13843     $_am_arg | $_am_arg:* )
13844       break ;;
13845     * )
13846       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13847   esac
13848 done
13849 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13850 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13851          X"$_am_arg" : 'X\(//\)[^/]' \| \
13852          X"$_am_arg" : 'X\(//\)$' \| \
13853          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13854 $as_echo X"$_am_arg" |
13855     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13856             s//\1/
13857             q
13858           }
13859           /^X\(\/\/\)[^/].*/{
13860             s//\1/
13861             q
13862           }
13863           /^X\(\/\/\)$/{
13864             s//\1/
13865             q
13866           }
13867           /^X\(\/\).*/{
13868             s//\1/
13869             q
13870           }
13871           s/.*/./; q'`/stamp-h$_am_stamp_count
13872  ;;
13873
13874   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13875 $as_echo "$as_me: executing $ac_file commands" >&6;}
13876  ;;
13877   esac
13878
13879
13880   case $ac_file$ac_mode in
13881     "libtool":C)
13882
13883     # See if we are running on zsh, and set the options which allow our
13884     # commands through without removal of \ escapes.
13885     if test -n "${ZSH_VERSION+set}" ; then
13886       setopt NO_GLOB_SUBST
13887     fi
13888
13889     cfgfile="${ofile}T"
13890     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13891     $RM "$cfgfile"
13892
13893     cat <<_LT_EOF >> "$cfgfile"
13894 #! $SHELL
13895
13896 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13897 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13898 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13899 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13900 #
13901 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13902 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13903 #                 Foundation, Inc.
13904 #   Written by Gordon Matzigkeit, 1996
13905 #
13906 #   This file is part of GNU Libtool.
13907 #
13908 # GNU Libtool is free software; you can redistribute it and/or
13909 # modify it under the terms of the GNU General Public License as
13910 # published by the Free Software Foundation; either version 2 of
13911 # the License, or (at your option) any later version.
13912 #
13913 # As a special exception to the GNU General Public License,
13914 # if you distribute this file as part of a program or library that
13915 # is built using GNU Libtool, you may include this file under the
13916 # same distribution terms that you use for the rest of that program.
13917 #
13918 # GNU Libtool is distributed in the hope that it will be useful,
13919 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13920 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13921 # GNU General Public License for more details.
13922 #
13923 # You should have received a copy of the GNU General Public License
13924 # along with GNU Libtool; see the file COPYING.  If not, a copy
13925 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13926 # obtained by writing to the Free Software Foundation, Inc.,
13927 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13928
13929
13930 # The names of the tagged configurations supported by this script.
13931 available_tags=""
13932
13933 # ### BEGIN LIBTOOL CONFIG
13934
13935 # Which release of libtool.m4 was used?
13936 macro_version=$macro_version
13937 macro_revision=$macro_revision
13938
13939 # Whether or not to build shared libraries.
13940 build_libtool_libs=$enable_shared
13941
13942 # Whether or not to build static libraries.
13943 build_old_libs=$enable_static
13944
13945 # What type of objects to build.
13946 pic_mode=$pic_mode
13947
13948 # Whether or not to optimize for fast installation.
13949 fast_install=$enable_fast_install
13950
13951 # Shell to use when invoking shell scripts.
13952 SHELL=$lt_SHELL
13953
13954 # An echo program that protects backslashes.
13955 ECHO=$lt_ECHO
13956
13957 # The PATH separator for the build system.
13958 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13959
13960 # The host system.
13961 host_alias=$host_alias
13962 host=$host
13963 host_os=$host_os
13964
13965 # The build system.
13966 build_alias=$build_alias
13967 build=$build
13968 build_os=$build_os
13969
13970 # A sed program that does not truncate output.
13971 SED=$lt_SED
13972
13973 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13974 Xsed="\$SED -e 1s/^X//"
13975
13976 # A grep program that handles long lines.
13977 GREP=$lt_GREP
13978
13979 # An ERE matcher.
13980 EGREP=$lt_EGREP
13981
13982 # A literal string matcher.
13983 FGREP=$lt_FGREP
13984
13985 # A BSD- or MS-compatible name lister.
13986 NM=$lt_NM
13987
13988 # Whether we need soft or hard links.
13989 LN_S=$lt_LN_S
13990
13991 # What is the maximum length of a command?
13992 max_cmd_len=$max_cmd_len
13993
13994 # Object file suffix (normally "o").
13995 objext=$ac_objext
13996
13997 # Executable file suffix (normally "").
13998 exeext=$exeext
13999
14000 # whether the shell understands "unset".
14001 lt_unset=$lt_unset
14002
14003 # turn spaces into newlines.
14004 SP2NL=$lt_lt_SP2NL
14005
14006 # turn newlines into spaces.
14007 NL2SP=$lt_lt_NL2SP
14008
14009 # convert \$build file names to \$host format.
14010 to_host_file_cmd=$lt_cv_to_host_file_cmd
14011
14012 # convert \$build files to toolchain format.
14013 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14014
14015 # An object symbol dumper.
14016 OBJDUMP=$lt_OBJDUMP
14017
14018 # Method to check whether dependent libraries are shared objects.
14019 deplibs_check_method=$lt_deplibs_check_method
14020
14021 # Command to use when deplibs_check_method = "file_magic".
14022 file_magic_cmd=$lt_file_magic_cmd
14023
14024 # How to find potential files when deplibs_check_method = "file_magic".
14025 file_magic_glob=$lt_file_magic_glob
14026
14027 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14028 want_nocaseglob=$lt_want_nocaseglob
14029
14030 # DLL creation program.
14031 DLLTOOL=$lt_DLLTOOL
14032
14033 # Command to associate shared and link libraries.
14034 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14035
14036 # The archiver.
14037 AR=$lt_AR
14038
14039 # Flags to create an archive.
14040 AR_FLAGS=$lt_AR_FLAGS
14041
14042 # How to feed a file listing to the archiver.
14043 archiver_list_spec=$lt_archiver_list_spec
14044
14045 # A symbol stripping program.
14046 STRIP=$lt_STRIP
14047
14048 # Commands used to install an old-style archive.
14049 RANLIB=$lt_RANLIB
14050 old_postinstall_cmds=$lt_old_postinstall_cmds
14051 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14052
14053 # Whether to use a lock for old archive extraction.
14054 lock_old_archive_extraction=$lock_old_archive_extraction
14055
14056 # A C compiler.
14057 LTCC=$lt_CC
14058
14059 # LTCC compiler flags.
14060 LTCFLAGS=$lt_CFLAGS
14061
14062 # Take the output of nm and produce a listing of raw symbols and C names.
14063 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14064
14065 # Transform the output of nm in a proper C declaration.
14066 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14067
14068 # Transform the output of nm in a C name address pair.
14069 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14070
14071 # Transform the output of nm in a C name address pair when lib prefix is needed.
14072 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14073
14074 # Specify filename containing input files for \$NM.
14075 nm_file_list_spec=$lt_nm_file_list_spec
14076
14077 # The root where to search for dependent libraries,and in which our libraries should be installed.
14078 lt_sysroot=$lt_sysroot
14079
14080 # The name of the directory that contains temporary libtool files.
14081 objdir=$objdir
14082
14083 # Used to examine libraries when file_magic_cmd begins with "file".
14084 MAGIC_CMD=$MAGIC_CMD
14085
14086 # Must we lock files when doing compilation?
14087 need_locks=$lt_need_locks
14088
14089 # Manifest tool.
14090 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14091
14092 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14093 DSYMUTIL=$lt_DSYMUTIL
14094
14095 # Tool to change global to local symbols on Mac OS X.
14096 NMEDIT=$lt_NMEDIT
14097
14098 # Tool to manipulate fat objects and archives on Mac OS X.
14099 LIPO=$lt_LIPO
14100
14101 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14102 OTOOL=$lt_OTOOL
14103
14104 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14105 OTOOL64=$lt_OTOOL64
14106
14107 # Old archive suffix (normally "a").
14108 libext=$libext
14109
14110 # Shared library suffix (normally ".so").
14111 shrext_cmds=$lt_shrext_cmds
14112
14113 # The commands to extract the exported symbol list from a shared archive.
14114 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14115
14116 # Variables whose values should be saved in libtool wrapper scripts and
14117 # restored at link time.
14118 variables_saved_for_relink=$lt_variables_saved_for_relink
14119
14120 # Do we need the "lib" prefix for modules?
14121 need_lib_prefix=$need_lib_prefix
14122
14123 # Do we need a version for libraries?
14124 need_version=$need_version
14125
14126 # Library versioning type.
14127 version_type=$version_type
14128
14129 # Shared library runtime path variable.
14130 runpath_var=$runpath_var
14131
14132 # Shared library path variable.
14133 shlibpath_var=$shlibpath_var
14134
14135 # Is shlibpath searched before the hard-coded library search path?
14136 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14137
14138 # Format of library name prefix.
14139 libname_spec=$lt_libname_spec
14140
14141 # List of archive names.  First name is the real one, the rest are links.
14142 # The last name is the one that the linker finds with -lNAME
14143 library_names_spec=$lt_library_names_spec
14144
14145 # The coded name of the library, if different from the real name.
14146 soname_spec=$lt_soname_spec
14147
14148 # Permission mode override for installation of shared libraries.
14149 install_override_mode=$lt_install_override_mode
14150
14151 # Command to use after installation of a shared archive.
14152 postinstall_cmds=$lt_postinstall_cmds
14153
14154 # Command to use after uninstallation of a shared archive.
14155 postuninstall_cmds=$lt_postuninstall_cmds
14156
14157 # Commands used to finish a libtool library installation in a directory.
14158 finish_cmds=$lt_finish_cmds
14159
14160 # As "finish_cmds", except a single script fragment to be evaled but
14161 # not shown.
14162 finish_eval=$lt_finish_eval
14163
14164 # Whether we should hardcode library paths into libraries.
14165 hardcode_into_libs=$hardcode_into_libs
14166
14167 # Compile-time system search path for libraries.
14168 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14169
14170 # Run-time system search path for libraries.
14171 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14172
14173 # Whether dlopen is supported.
14174 dlopen_support=$enable_dlopen
14175
14176 # Whether dlopen of programs is supported.
14177 dlopen_self=$enable_dlopen_self
14178
14179 # Whether dlopen of statically linked programs is supported.
14180 dlopen_self_static=$enable_dlopen_self_static
14181
14182 # Commands to strip libraries.
14183 old_striplib=$lt_old_striplib
14184 striplib=$lt_striplib
14185
14186
14187 # The linker used to build libraries.
14188 LD=$lt_LD
14189
14190 # How to create reloadable object files.
14191 reload_flag=$lt_reload_flag
14192 reload_cmds=$lt_reload_cmds
14193
14194 # Commands used to build an old-style archive.
14195 old_archive_cmds=$lt_old_archive_cmds
14196
14197 # A language specific compiler.
14198 CC=$lt_compiler
14199
14200 # Is the compiler the GNU compiler?
14201 with_gcc=$GCC
14202
14203 # Compiler flag to turn off builtin functions.
14204 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14205
14206 # Additional compiler flags for building library objects.
14207 pic_flag=$lt_lt_prog_compiler_pic
14208
14209 # How to pass a linker flag through the compiler.
14210 wl=$lt_lt_prog_compiler_wl
14211
14212 # Compiler flag to prevent dynamic linking.
14213 link_static_flag=$lt_lt_prog_compiler_static
14214
14215 # Does compiler simultaneously support -c and -o options?
14216 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14217
14218 # Whether or not to add -lc for building shared libraries.
14219 build_libtool_need_lc=$archive_cmds_need_lc
14220
14221 # Whether or not to disallow shared libs when runtime libs are static.
14222 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14223
14224 # Compiler flag to allow reflexive dlopens.
14225 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14226
14227 # Compiler flag to generate shared objects directly from archives.
14228 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14229
14230 # Whether the compiler copes with passing no objects directly.
14231 compiler_needs_object=$lt_compiler_needs_object
14232
14233 # Create an old-style archive from a shared archive.
14234 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14235
14236 # Create a temporary old-style archive to link instead of a shared archive.
14237 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14238
14239 # Commands used to build a shared archive.
14240 archive_cmds=$lt_archive_cmds
14241 archive_expsym_cmds=$lt_archive_expsym_cmds
14242
14243 # Commands used to build a loadable module if different from building
14244 # a shared archive.
14245 module_cmds=$lt_module_cmds
14246 module_expsym_cmds=$lt_module_expsym_cmds
14247
14248 # Whether we are building with GNU ld or not.
14249 with_gnu_ld=$lt_with_gnu_ld
14250
14251 # Flag that allows shared libraries with undefined symbols to be built.
14252 allow_undefined_flag=$lt_allow_undefined_flag
14253
14254 # Flag that enforces no undefined symbols.
14255 no_undefined_flag=$lt_no_undefined_flag
14256
14257 # Flag to hardcode \$libdir into a binary during linking.
14258 # This must work even if \$libdir does not exist
14259 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14260
14261 # Whether we need a single "-rpath" flag with a separated argument.
14262 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14263
14264 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14265 # DIR into the resulting binary.
14266 hardcode_direct=$hardcode_direct
14267
14268 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14269 # DIR into the resulting binary and the resulting library dependency is
14270 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14271 # library is relocated.
14272 hardcode_direct_absolute=$hardcode_direct_absolute
14273
14274 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14275 # into the resulting binary.
14276 hardcode_minus_L=$hardcode_minus_L
14277
14278 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14279 # into the resulting binary.
14280 hardcode_shlibpath_var=$hardcode_shlibpath_var
14281
14282 # Set to "yes" if building a shared library automatically hardcodes DIR
14283 # into the library and all subsequent libraries and executables linked
14284 # against it.
14285 hardcode_automatic=$hardcode_automatic
14286
14287 # Set to yes if linker adds runtime paths of dependent libraries
14288 # to runtime path list.
14289 inherit_rpath=$inherit_rpath
14290
14291 # Whether libtool must link a program against all its dependency libraries.
14292 link_all_deplibs=$link_all_deplibs
14293
14294 # Set to "yes" if exported symbols are required.
14295 always_export_symbols=$always_export_symbols
14296
14297 # The commands to list exported symbols.
14298 export_symbols_cmds=$lt_export_symbols_cmds
14299
14300 # Symbols that should not be listed in the preloaded symbols.
14301 exclude_expsyms=$lt_exclude_expsyms
14302
14303 # Symbols that must always be exported.
14304 include_expsyms=$lt_include_expsyms
14305
14306 # Commands necessary for linking programs (against libraries) with templates.
14307 prelink_cmds=$lt_prelink_cmds
14308
14309 # Commands necessary for finishing linking programs.
14310 postlink_cmds=$lt_postlink_cmds
14311
14312 # Specify filename containing input files.
14313 file_list_spec=$lt_file_list_spec
14314
14315 # How to hardcode a shared library path into an executable.
14316 hardcode_action=$hardcode_action
14317
14318 # ### END LIBTOOL CONFIG
14319
14320 _LT_EOF
14321
14322   case $host_os in
14323   aix3*)
14324     cat <<\_LT_EOF >> "$cfgfile"
14325 # AIX sometimes has problems with the GCC collect2 program.  For some
14326 # reason, if we set the COLLECT_NAMES environment variable, the problems
14327 # vanish in a puff of smoke.
14328 if test "X${COLLECT_NAMES+set}" != Xset; then
14329   COLLECT_NAMES=
14330   export COLLECT_NAMES
14331 fi
14332 _LT_EOF
14333     ;;
14334   esac
14335
14336
14337 ltmain="$ac_aux_dir/ltmain.sh"
14338
14339
14340   # We use sed instead of cat because bash on DJGPP gets confused if
14341   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14342   # text mode, it properly converts lines to CR/LF.  This bash problem
14343   # is reportedly fixed, but why not run on old versions too?
14344   sed '$q' "$ltmain" >> "$cfgfile" \
14345      || (rm -f "$cfgfile"; exit 1)
14346
14347   if test x"$xsi_shell" = xyes; then
14348   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14349 func_dirname ()\
14350 {\
14351 \    case ${1} in\
14352 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14353 \      *  ) func_dirname_result="${3}" ;;\
14354 \    esac\
14355 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14356   && mv -f "$cfgfile.tmp" "$cfgfile" \
14357     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14358 test 0 -eq $? || _lt_function_replace_fail=:
14359
14360
14361   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14362 func_basename ()\
14363 {\
14364 \    func_basename_result="${1##*/}"\
14365 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14366   && mv -f "$cfgfile.tmp" "$cfgfile" \
14367     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14368 test 0 -eq $? || _lt_function_replace_fail=:
14369
14370
14371   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14372 func_dirname_and_basename ()\
14373 {\
14374 \    case ${1} in\
14375 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14376 \      *  ) func_dirname_result="${3}" ;;\
14377 \    esac\
14378 \    func_basename_result="${1##*/}"\
14379 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14380   && mv -f "$cfgfile.tmp" "$cfgfile" \
14381     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14382 test 0 -eq $? || _lt_function_replace_fail=:
14383
14384
14385   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14386 func_stripname ()\
14387 {\
14388 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14389 \    # positional parameters, so assign one to ordinary parameter first.\
14390 \    func_stripname_result=${3}\
14391 \    func_stripname_result=${func_stripname_result#"${1}"}\
14392 \    func_stripname_result=${func_stripname_result%"${2}"}\
14393 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14394   && mv -f "$cfgfile.tmp" "$cfgfile" \
14395     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14396 test 0 -eq $? || _lt_function_replace_fail=:
14397
14398
14399   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14400 func_split_long_opt ()\
14401 {\
14402 \    func_split_long_opt_name=${1%%=*}\
14403 \    func_split_long_opt_arg=${1#*=}\
14404 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14405   && mv -f "$cfgfile.tmp" "$cfgfile" \
14406     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14407 test 0 -eq $? || _lt_function_replace_fail=:
14408
14409
14410   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14411 func_split_short_opt ()\
14412 {\
14413 \    func_split_short_opt_arg=${1#??}\
14414 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14415 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14416   && mv -f "$cfgfile.tmp" "$cfgfile" \
14417     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14418 test 0 -eq $? || _lt_function_replace_fail=:
14419
14420
14421   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14422 func_lo2o ()\
14423 {\
14424 \    case ${1} in\
14425 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14426 \      *)    func_lo2o_result=${1} ;;\
14427 \    esac\
14428 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14429   && mv -f "$cfgfile.tmp" "$cfgfile" \
14430     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14431 test 0 -eq $? || _lt_function_replace_fail=:
14432
14433
14434   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14435 func_xform ()\
14436 {\
14437     func_xform_result=${1%.*}.lo\
14438 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14439   && mv -f "$cfgfile.tmp" "$cfgfile" \
14440     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14441 test 0 -eq $? || _lt_function_replace_fail=:
14442
14443
14444   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14445 func_arith ()\
14446 {\
14447     func_arith_result=$(( $* ))\
14448 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14449   && mv -f "$cfgfile.tmp" "$cfgfile" \
14450     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14451 test 0 -eq $? || _lt_function_replace_fail=:
14452
14453
14454   sed -e '/^func_len ()$/,/^} # func_len /c\
14455 func_len ()\
14456 {\
14457     func_len_result=${#1}\
14458 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14459   && mv -f "$cfgfile.tmp" "$cfgfile" \
14460     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14461 test 0 -eq $? || _lt_function_replace_fail=:
14462
14463 fi
14464
14465 if test x"$lt_shell_append" = xyes; then
14466   sed -e '/^func_append ()$/,/^} # func_append /c\
14467 func_append ()\
14468 {\
14469     eval "${1}+=\\${2}"\
14470 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14471   && mv -f "$cfgfile.tmp" "$cfgfile" \
14472     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14473 test 0 -eq $? || _lt_function_replace_fail=:
14474
14475
14476   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14477 func_append_quoted ()\
14478 {\
14479 \    func_quote_for_eval "${2}"\
14480 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14481 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14482   && mv -f "$cfgfile.tmp" "$cfgfile" \
14483     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14484 test 0 -eq $? || _lt_function_replace_fail=:
14485
14486
14487   # Save a `func_append' function call where possible by direct use of '+='
14488   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14489     && mv -f "$cfgfile.tmp" "$cfgfile" \
14490       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14491   test 0 -eq $? || _lt_function_replace_fail=:
14492 else
14493   # Save a `func_append' function call even when '+=' is not available
14494   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14495     && mv -f "$cfgfile.tmp" "$cfgfile" \
14496       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14497   test 0 -eq $? || _lt_function_replace_fail=:
14498 fi
14499
14500 if test x"$_lt_function_replace_fail" = x":"; then
14501   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14502 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14503 fi
14504
14505
14506    mv -f "$cfgfile" "$ofile" ||
14507     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14508   chmod +x "$ofile"
14509
14510  ;;
14511     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14512   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14513   # are listed without --file.  Let's play safe and only enable the eval
14514   # if we detect the quoting.
14515   case $CONFIG_FILES in
14516   *\'*) eval set x "$CONFIG_FILES" ;;
14517   *)   set x $CONFIG_FILES ;;
14518   esac
14519   shift
14520   for mf
14521   do
14522     # Strip MF so we end up with the name of the file.
14523     mf=`echo "$mf" | sed -e 's/:.*$//'`
14524     # Check whether this is an Automake generated Makefile or not.
14525     # We used to match only the files named 'Makefile.in', but
14526     # some people rename them; so instead we look at the file content.
14527     # Grep'ing the first line is not enough: some people post-process
14528     # each Makefile.in and add a new line on top of each file to say so.
14529     # Grep'ing the whole file is not good either: AIX grep has a line
14530     # limit of 2048, but all sed's we know have understand at least 4000.
14531     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14532       dirpart=`$as_dirname -- "$mf" ||
14533 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14534          X"$mf" : 'X\(//\)[^/]' \| \
14535          X"$mf" : 'X\(//\)$' \| \
14536          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14537 $as_echo X"$mf" |
14538     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14539             s//\1/
14540             q
14541           }
14542           /^X\(\/\/\)[^/].*/{
14543             s//\1/
14544             q
14545           }
14546           /^X\(\/\/\)$/{
14547             s//\1/
14548             q
14549           }
14550           /^X\(\/\).*/{
14551             s//\1/
14552             q
14553           }
14554           s/.*/./; q'`
14555     else
14556       continue
14557     fi
14558     # Extract the definition of DEPDIR, am__include, and am__quote
14559     # from the Makefile without running 'make'.
14560     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14561     test -z "$DEPDIR" && continue
14562     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14563     test -z "am__include" && continue
14564     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14565     # Find all dependency output files, they are included files with
14566     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14567     # simplest approach to changing $(DEPDIR) to its actual value in the
14568     # expansion.
14569     for file in `sed -n "
14570       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14571          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14572       # Make sure the directory exists.
14573       test -f "$dirpart/$file" && continue
14574       fdir=`$as_dirname -- "$file" ||
14575 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14576          X"$file" : 'X\(//\)[^/]' \| \
14577          X"$file" : 'X\(//\)$' \| \
14578          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14579 $as_echo X"$file" |
14580     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14581             s//\1/
14582             q
14583           }
14584           /^X\(\/\/\)[^/].*/{
14585             s//\1/
14586             q
14587           }
14588           /^X\(\/\/\)$/{
14589             s//\1/
14590             q
14591           }
14592           /^X\(\/\).*/{
14593             s//\1/
14594             q
14595           }
14596           s/.*/./; q'`
14597       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14598       # echo "creating $dirpart/$file"
14599       echo '# dummy' > "$dirpart/$file"
14600     done
14601   done
14602 }
14603  ;;
14604
14605   esac
14606 done # for ac_tag
14607
14608
14609 as_fn_exit 0
14610 _ACEOF
14611 ac_clean_files=$ac_clean_files_save
14612
14613 test $ac_write_fail = 0 ||
14614   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14615
14616
14617 # configure is writing to config.log, and then calls config.status.
14618 # config.status does its own redirection, appending to config.log.
14619 # Unfortunately, on DOS this fails, as config.log is still kept open
14620 # by configure, so config.status won't be able to write to it; its
14621 # output is simply discarded.  So we exec the FD to /dev/null,
14622 # effectively closing config.log, so it can be properly (re)opened and
14623 # appended to by config.status.  When coming back to configure, we
14624 # need to make the FD available again.
14625 if test "$no_create" != yes; then
14626   ac_cs_success=:
14627   ac_config_status_args=
14628   test "$silent" = yes &&
14629     ac_config_status_args="$ac_config_status_args --quiet"
14630   exec 5>/dev/null
14631   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14632   exec 5>>config.log
14633   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14634   # would make configure fail if this is the last instruction.
14635   $ac_cs_success || as_fn_exit 1
14636 fi
14637 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14638   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14639 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14640 fi
14641