Imported Upstream version 2.2.51
[platform/upstream/acl.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # 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 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
176   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     PATH=/empty FPATH=/empty; export PATH FPATH
181     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184   if (eval "$as_required") 2>/dev/null; then :
185   as_have_required=yes
186 else
187   as_have_required=no
188 fi
189   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196   IFS=$as_save_IFS
197   test -z "$as_dir" && as_dir=.
198   as_found=:
199   case $as_dir in #(
200          /*)
201            for as_base in sh bash ksh sh5; do
202              # Try only shells that exist, to save several forks.
203              as_shell=$as_dir/$as_base
204              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206   CONFIG_SHELL=$as_shell as_have_required=yes
207                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   break 2
209 fi
210 fi
211            done;;
212        esac
213   as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217   CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222       if test "x$CONFIG_SHELL" != x; then :
223   # We cannot yet assume a decent shell, so we have to provide a
224         # neutralization value for shells without unset; and this also
225         # works around shells that cannot unset nonexistent variables.
226         # Preserve -v and -x to the replacement shell.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         case $- in # ((((
232           *v*x* | *x*v* ) as_opts=-vx ;;
233           *v* ) as_opts=-v ;;
234           *x* ) as_opts=-x ;;
235           * ) as_opts= ;;
236         esac
237         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240     if test x$as_have_required = xno; then :
241   $as_echo "$0: This script requires a shell more modern than all"
242   $as_echo "$0: the shells that I found on your system."
243   if test x${ZSH_VERSION+set} = xset ; then
244     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246   else
247     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251   fi
252   exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270   { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279   return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287   set +e
288   as_fn_set_status $1
289   exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298   case $as_dir in #(
299   -*) as_dir=./$as_dir;;
300   esac
301   test -d "$as_dir" || eval $as_mkdir_p || {
302     as_dirs=
303     while :; do
304       case $as_dir in #(
305       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306       *) as_qdir=$as_dir;;
307       esac
308       as_dirs="'$as_qdir' $as_dirs"
309       as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311          X"$as_dir" : 'X\(//\)[^/]' \| \
312          X"$as_dir" : 'X\(//\)$' \| \
313          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)[^/].*/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)$/{
324             s//\1/
325             q
326           }
327           /^X\(\/\).*/{
328             s//\1/
329             q
330           }
331           s/.*/./; q'`
332       test -d "$as_dir" && break
333     done
334     test -z "$as_dirs" || eval "mkdir $as_dirs"
335   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346   eval 'as_fn_append ()
347   {
348     eval $1+=\$2
349   }'
350 else
351   as_fn_append ()
352   {
353     eval $1=\$$1\$2
354   }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363   eval 'as_fn_arith ()
364   {
365     as_val=$(( $* ))
366   }'
367 else
368   as_fn_arith ()
369   {
370     as_val=`expr "$@" || test $? -eq 1`
371   }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382   as_status=$1; test $as_status -eq 0 && as_status=1
383   if test "$4"; then
384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386   fi
387   $as_echo "$as_me: error: $2" >&2
388   as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
393   as_expr=expr
394 else
395   as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399   as_basename=basename
400 else
401   as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405   as_dirname=dirname
406 else
407   as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412          X"$0" : 'X\(//\)$' \| \
413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415     sed '/^.*\/\([^/][^/]*\)\/*$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\/\)$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\).*/{
424             s//\1/
425             q
426           }
427           s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437   as_lineno_1=$LINENO as_lineno_1a=$LINENO
438   as_lineno_2=$LINENO as_lineno_2a=$LINENO
439   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471   case `echo 'xy\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   xy)  ECHO_C='\c';;
474   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475        ECHO_T=' ';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483   rm -f conf$$.dir/conf$$.file
484 else
485   rm -f conf$$.dir
486   mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489   if ln -s conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s='ln -s'
491     # ... but there are two gotchas:
492     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494     # In both cases, we have to default to `cp -p'.
495     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496       as_ln_s='cp -p'
497   elif ln conf$$.file conf$$ 2>/dev/null; then
498     as_ln_s=ln
499   else
500     as_ln_s='cp -p'
501   fi
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p='mkdir -p "$as_dir"'
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516   as_test_x='test -x'
517 else
518   if ls -dL / >/dev/null 2>&1; then
519     as_ls_L_option=L
520   else
521     as_ls_L_option=
522   fi
523   as_test_x='
524     eval sh -c '\''
525       if test -d "$1"; then
526         test -d "$1/.";
527       else
528         case $1 in #(
529         -*)set "./$1";;
530         esac;
531         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532         ???[sx]*):;;*)false;;esac;fi
533     '\'' sh
534   '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME=
569 PACKAGE_TARNAME=
570 PACKAGE_VERSION=
571 PACKAGE_STRING=
572 PACKAGE_BUGREPORT=
573 PACKAGE_URL=
574
575 ac_unique_file="include/acl.h"
576 ac_default_prefix=/usr
577 # Factoring default headers for most tests.
578 ac_includes_default="\
579 #include <stdio.h>
580 #ifdef HAVE_SYS_TYPES_H
581 # include <sys/types.h>
582 #endif
583 #ifdef HAVE_SYS_STAT_H
584 # include <sys/stat.h>
585 #endif
586 #ifdef STDC_HEADERS
587 # include <stdlib.h>
588 # include <stddef.h>
589 #else
590 # ifdef HAVE_STDLIB_H
591 #  include <stdlib.h>
592 # endif
593 #endif
594 #ifdef HAVE_STRING_H
595 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
596 #  include <memory.h>
597 # endif
598 # include <string.h>
599 #endif
600 #ifdef HAVE_STRINGS_H
601 # include <strings.h>
602 #endif
603 #ifdef HAVE_INTTYPES_H
604 # include <inttypes.h>
605 #endif
606 #ifdef HAVE_STDINT_H
607 # include <stdint.h>
608 #endif
609 #ifdef HAVE_UNISTD_H
610 # include <unistd.h>
611 #endif"
612
613 ac_subst_vars='LTLIBOBJS
614 LIBOBJS
615 have_zipped_manpages
616 libattr
617 libdirsuffix
618 rpmbuild
619 RPMBUILD
620 rpm_version
621 rpm
622 RPM
623 xgettext
624 XGETTEXT
625 msgmerge
626 MSGMERGE
627 msgfmt
628 MSGFMT
629 sort
630 SORT
631 echo
632 ECHO
633 sed
634 awk
635 makedepend
636 MAKEDEPEND
637 zip
638 ZIP
639 tar
640 TAR
641 make
642 MAKE
643 cc
644 pkg_platform
645 pkg_distribution
646 pkg_group
647 pkg_user
648 malloc_lib
649 opt_build
650 debug_build
651 pkg_release
652 pkg_version
653 pkg_name
654 enable_lib64
655 enable_gettext
656 enable_shared
657 CPP
658 OTOOL64
659 OTOOL
660 LIPO
661 NMEDIT
662 DSYMUTIL
663 MANIFEST_TOOL
664 AWK
665 RANLIB
666 STRIP
667 ac_ct_AR
668 AR
669 DLLTOOL
670 OBJDUMP
671 LN_S
672 NM
673 ac_ct_DUMPBIN
674 DUMPBIN
675 LD
676 FGREP
677 EGREP
678 GREP
679 SED
680 OBJEXT
681 EXEEXT
682 ac_ct_CC
683 CPPFLAGS
684 LDFLAGS
685 CFLAGS
686 CC
687 host_os
688 host_vendor
689 host_cpu
690 host
691 build_os
692 build_vendor
693 build_cpu
694 build
695 LIBTOOL
696 target_alias
697 host_alias
698 build_alias
699 LIBS
700 ECHO_T
701 ECHO_N
702 ECHO_C
703 DEFS
704 mandir
705 localedir
706 libdir
707 psdir
708 pdfdir
709 dvidir
710 htmldir
711 infodir
712 docdir
713 oldincludedir
714 includedir
715 localstatedir
716 sharedstatedir
717 sysconfdir
718 datadir
719 datarootdir
720 libexecdir
721 sbindir
722 bindir
723 program_transform_name
724 prefix
725 exec_prefix
726 PACKAGE_URL
727 PACKAGE_BUGREPORT
728 PACKAGE_STRING
729 PACKAGE_VERSION
730 PACKAGE_TARNAME
731 PACKAGE_NAME
732 PATH_SEPARATOR
733 SHELL'
734 ac_subst_files=''
735 ac_user_opts='
736 enable_option_checking
737 enable_shared
738 enable_static
739 with_pic
740 enable_fast_install
741 with_gnu_ld
742 with_sysroot
743 enable_libtool_lock
744 enable_gettext
745 enable_lib64
746 '
747       ac_precious_vars='build_alias
748 host_alias
749 target_alias
750 CC
751 CFLAGS
752 LDFLAGS
753 LIBS
754 CPPFLAGS
755 CPP'
756
757
758 # Initialize some variables set by options.
759 ac_init_help=
760 ac_init_version=false
761 ac_unrecognized_opts=
762 ac_unrecognized_sep=
763 # The variables have the same names as the options, with
764 # dashes changed to underlines.
765 cache_file=/dev/null
766 exec_prefix=NONE
767 no_create=
768 no_recursion=
769 prefix=NONE
770 program_prefix=NONE
771 program_suffix=NONE
772 program_transform_name=s,x,x,
773 silent=
774 site=
775 srcdir=
776 verbose=
777 x_includes=NONE
778 x_libraries=NONE
779
780 # Installation directory options.
781 # These are left unexpanded so users can "make install exec_prefix=/foo"
782 # and all the variables that are supposed to be based on exec_prefix
783 # by default will actually change.
784 # Use braces instead of parens because sh, perl, etc. also accept them.
785 # (The list follows the same order as the GNU Coding Standards.)
786 bindir='${exec_prefix}/bin'
787 sbindir='${exec_prefix}/sbin'
788 libexecdir='${exec_prefix}/libexec'
789 datarootdir='${prefix}/share'
790 datadir='${datarootdir}'
791 sysconfdir='${prefix}/etc'
792 sharedstatedir='${prefix}/com'
793 localstatedir='${prefix}/var'
794 includedir='${prefix}/include'
795 oldincludedir='/usr/include'
796 docdir='${datarootdir}/doc/${PACKAGE}'
797 infodir='${datarootdir}/info'
798 htmldir='${docdir}'
799 dvidir='${docdir}'
800 pdfdir='${docdir}'
801 psdir='${docdir}'
802 libdir='${exec_prefix}/lib'
803 localedir='${datarootdir}/locale'
804 mandir='${datarootdir}/man'
805
806 ac_prev=
807 ac_dashdash=
808 for ac_option
809 do
810   # If the previous option needs an argument, assign it.
811   if test -n "$ac_prev"; then
812     eval $ac_prev=\$ac_option
813     ac_prev=
814     continue
815   fi
816
817   case $ac_option in
818   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
819   *=)   ac_optarg= ;;
820   *)    ac_optarg=yes ;;
821   esac
822
823   # Accept the important Cygnus configure options, so we can diagnose typos.
824
825   case $ac_dashdash$ac_option in
826   --)
827     ac_dashdash=yes ;;
828
829   -bindir | --bindir | --bindi | --bind | --bin | --bi)
830     ac_prev=bindir ;;
831   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
832     bindir=$ac_optarg ;;
833
834   -build | --build | --buil | --bui | --bu)
835     ac_prev=build_alias ;;
836   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
837     build_alias=$ac_optarg ;;
838
839   -cache-file | --cache-file | --cache-fil | --cache-fi \
840   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
841     ac_prev=cache_file ;;
842   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
843   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
844     cache_file=$ac_optarg ;;
845
846   --config-cache | -C)
847     cache_file=config.cache ;;
848
849   -datadir | --datadir | --datadi | --datad)
850     ac_prev=datadir ;;
851   -datadir=* | --datadir=* | --datadi=* | --datad=*)
852     datadir=$ac_optarg ;;
853
854   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
855   | --dataroo | --dataro | --datar)
856     ac_prev=datarootdir ;;
857   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
858   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
859     datarootdir=$ac_optarg ;;
860
861   -disable-* | --disable-*)
862     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
863     # Reject names that are not valid shell variable names.
864     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
865       as_fn_error $? "invalid feature name: $ac_useropt"
866     ac_useropt_orig=$ac_useropt
867     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868     case $ac_user_opts in
869       *"
870 "enable_$ac_useropt"
871 "*) ;;
872       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
873          ac_unrecognized_sep=', ';;
874     esac
875     eval enable_$ac_useropt=no ;;
876
877   -docdir | --docdir | --docdi | --doc | --do)
878     ac_prev=docdir ;;
879   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
880     docdir=$ac_optarg ;;
881
882   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
883     ac_prev=dvidir ;;
884   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
885     dvidir=$ac_optarg ;;
886
887   -enable-* | --enable-*)
888     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
889     # Reject names that are not valid shell variable names.
890     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891       as_fn_error $? "invalid feature name: $ac_useropt"
892     ac_useropt_orig=$ac_useropt
893     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894     case $ac_user_opts in
895       *"
896 "enable_$ac_useropt"
897 "*) ;;
898       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
899          ac_unrecognized_sep=', ';;
900     esac
901     eval enable_$ac_useropt=\$ac_optarg ;;
902
903   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
904   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
905   | --exec | --exe | --ex)
906     ac_prev=exec_prefix ;;
907   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
908   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
909   | --exec=* | --exe=* | --ex=*)
910     exec_prefix=$ac_optarg ;;
911
912   -gas | --gas | --ga | --g)
913     # Obsolete; use --with-gas.
914     with_gas=yes ;;
915
916   -help | --help | --hel | --he | -h)
917     ac_init_help=long ;;
918   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
919     ac_init_help=recursive ;;
920   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
921     ac_init_help=short ;;
922
923   -host | --host | --hos | --ho)
924     ac_prev=host_alias ;;
925   -host=* | --host=* | --hos=* | --ho=*)
926     host_alias=$ac_optarg ;;
927
928   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
929     ac_prev=htmldir ;;
930   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
931   | --ht=*)
932     htmldir=$ac_optarg ;;
933
934   -includedir | --includedir | --includedi | --included | --include \
935   | --includ | --inclu | --incl | --inc)
936     ac_prev=includedir ;;
937   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
938   | --includ=* | --inclu=* | --incl=* | --inc=*)
939     includedir=$ac_optarg ;;
940
941   -infodir | --infodir | --infodi | --infod | --info | --inf)
942     ac_prev=infodir ;;
943   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
944     infodir=$ac_optarg ;;
945
946   -libdir | --libdir | --libdi | --libd)
947     ac_prev=libdir ;;
948   -libdir=* | --libdir=* | --libdi=* | --libd=*)
949     libdir=$ac_optarg ;;
950
951   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
952   | --libexe | --libex | --libe)
953     ac_prev=libexecdir ;;
954   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
955   | --libexe=* | --libex=* | --libe=*)
956     libexecdir=$ac_optarg ;;
957
958   -localedir | --localedir | --localedi | --localed | --locale)
959     ac_prev=localedir ;;
960   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
961     localedir=$ac_optarg ;;
962
963   -localstatedir | --localstatedir | --localstatedi | --localstated \
964   | --localstate | --localstat | --localsta | --localst | --locals)
965     ac_prev=localstatedir ;;
966   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
967   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
968     localstatedir=$ac_optarg ;;
969
970   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
971     ac_prev=mandir ;;
972   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
973     mandir=$ac_optarg ;;
974
975   -nfp | --nfp | --nf)
976     # Obsolete; use --without-fp.
977     with_fp=no ;;
978
979   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
980   | --no-cr | --no-c | -n)
981     no_create=yes ;;
982
983   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
985     no_recursion=yes ;;
986
987   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
988   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
989   | --oldin | --oldi | --old | --ol | --o)
990     ac_prev=oldincludedir ;;
991   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
992   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
993   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
994     oldincludedir=$ac_optarg ;;
995
996   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
997     ac_prev=prefix ;;
998   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
999     prefix=$ac_optarg ;;
1000
1001   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1002   | --program-pre | --program-pr | --program-p)
1003     ac_prev=program_prefix ;;
1004   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1005   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1006     program_prefix=$ac_optarg ;;
1007
1008   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1009   | --program-suf | --program-su | --program-s)
1010     ac_prev=program_suffix ;;
1011   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1012   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1013     program_suffix=$ac_optarg ;;
1014
1015   -program-transform-name | --program-transform-name \
1016   | --program-transform-nam | --program-transform-na \
1017   | --program-transform-n | --program-transform- \
1018   | --program-transform | --program-transfor \
1019   | --program-transfo | --program-transf \
1020   | --program-trans | --program-tran \
1021   | --progr-tra | --program-tr | --program-t)
1022     ac_prev=program_transform_name ;;
1023   -program-transform-name=* | --program-transform-name=* \
1024   | --program-transform-nam=* | --program-transform-na=* \
1025   | --program-transform-n=* | --program-transform-=* \
1026   | --program-transform=* | --program-transfor=* \
1027   | --program-transfo=* | --program-transf=* \
1028   | --program-trans=* | --program-tran=* \
1029   | --progr-tra=* | --program-tr=* | --program-t=*)
1030     program_transform_name=$ac_optarg ;;
1031
1032   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1033     ac_prev=pdfdir ;;
1034   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1035     pdfdir=$ac_optarg ;;
1036
1037   -psdir | --psdir | --psdi | --psd | --ps)
1038     ac_prev=psdir ;;
1039   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1040     psdir=$ac_optarg ;;
1041
1042   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043   | -silent | --silent | --silen | --sile | --sil)
1044     silent=yes ;;
1045
1046   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1047     ac_prev=sbindir ;;
1048   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1049   | --sbi=* | --sb=*)
1050     sbindir=$ac_optarg ;;
1051
1052   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1053   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1054   | --sharedst | --shareds | --shared | --share | --shar \
1055   | --sha | --sh)
1056     ac_prev=sharedstatedir ;;
1057   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1058   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1059   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1060   | --sha=* | --sh=*)
1061     sharedstatedir=$ac_optarg ;;
1062
1063   -site | --site | --sit)
1064     ac_prev=site ;;
1065   -site=* | --site=* | --sit=*)
1066     site=$ac_optarg ;;
1067
1068   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1069     ac_prev=srcdir ;;
1070   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1071     srcdir=$ac_optarg ;;
1072
1073   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1074   | --syscon | --sysco | --sysc | --sys | --sy)
1075     ac_prev=sysconfdir ;;
1076   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1077   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1078     sysconfdir=$ac_optarg ;;
1079
1080   -target | --target | --targe | --targ | --tar | --ta | --t)
1081     ac_prev=target_alias ;;
1082   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1083     target_alias=$ac_optarg ;;
1084
1085   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1086     verbose=yes ;;
1087
1088   -version | --version | --versio | --versi | --vers | -V)
1089     ac_init_version=: ;;
1090
1091   -with-* | --with-*)
1092     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1093     # Reject names that are not valid shell variable names.
1094     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095       as_fn_error $? "invalid package name: $ac_useropt"
1096     ac_useropt_orig=$ac_useropt
1097     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098     case $ac_user_opts in
1099       *"
1100 "with_$ac_useropt"
1101 "*) ;;
1102       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1103          ac_unrecognized_sep=', ';;
1104     esac
1105     eval with_$ac_useropt=\$ac_optarg ;;
1106
1107   -without-* | --without-*)
1108     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1109     # Reject names that are not valid shell variable names.
1110     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111       as_fn_error $? "invalid package name: $ac_useropt"
1112     ac_useropt_orig=$ac_useropt
1113     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114     case $ac_user_opts in
1115       *"
1116 "with_$ac_useropt"
1117 "*) ;;
1118       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1119          ac_unrecognized_sep=', ';;
1120     esac
1121     eval with_$ac_useropt=no ;;
1122
1123   --x)
1124     # Obsolete; use --with-x.
1125     with_x=yes ;;
1126
1127   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1128   | --x-incl | --x-inc | --x-in | --x-i)
1129     ac_prev=x_includes ;;
1130   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1131   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1132     x_includes=$ac_optarg ;;
1133
1134   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1135   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1136     ac_prev=x_libraries ;;
1137   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1138   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1139     x_libraries=$ac_optarg ;;
1140
1141   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1142 Try \`$0 --help' for more information"
1143     ;;
1144
1145   *=*)
1146     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1147     # Reject names that are not valid shell variable names.
1148     case $ac_envvar in #(
1149       '' | [0-9]* | *[!_$as_cr_alnum]* )
1150       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1151     esac
1152     eval $ac_envvar=\$ac_optarg
1153     export $ac_envvar ;;
1154
1155   *)
1156     # FIXME: should be removed in autoconf 3.0.
1157     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1158     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1159       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1160     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1161     ;;
1162
1163   esac
1164 done
1165
1166 if test -n "$ac_prev"; then
1167   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1168   as_fn_error $? "missing argument to $ac_option"
1169 fi
1170
1171 if test -n "$ac_unrecognized_opts"; then
1172   case $enable_option_checking in
1173     no) ;;
1174     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1175     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1176   esac
1177 fi
1178
1179 # Check all directory arguments for consistency.
1180 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181                 datadir sysconfdir sharedstatedir localstatedir includedir \
1182                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183                 libdir localedir mandir
1184 do
1185   eval ac_val=\$$ac_var
1186   # Remove trailing slashes.
1187   case $ac_val in
1188     */ )
1189       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1190       eval $ac_var=\$ac_val;;
1191   esac
1192   # Be sure to have absolute directory names.
1193   case $ac_val in
1194     [\\/$]* | ?:[\\/]* )  continue;;
1195     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1196   esac
1197   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1198 done
1199
1200 # There might be people who depend on the old broken behavior: `$host'
1201 # used to hold the argument of --host etc.
1202 # FIXME: To remove some day.
1203 build=$build_alias
1204 host=$host_alias
1205 target=$target_alias
1206
1207 # FIXME: To remove some day.
1208 if test "x$host_alias" != x; then
1209   if test "x$build_alias" = x; then
1210     cross_compiling=maybe
1211     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1212     If a cross compiler is detected then cross compile mode will be used" >&2
1213   elif test "x$build_alias" != "x$host_alias"; then
1214     cross_compiling=yes
1215   fi
1216 fi
1217
1218 ac_tool_prefix=
1219 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1220
1221 test "$silent" = yes && exec 6>/dev/null
1222
1223
1224 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1225 ac_ls_di=`ls -di .` &&
1226 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1227   as_fn_error $? "working directory cannot be determined"
1228 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1229   as_fn_error $? "pwd does not report name of working directory"
1230
1231
1232 # Find the source files, if location was not specified.
1233 if test -z "$srcdir"; then
1234   ac_srcdir_defaulted=yes
1235   # Try the directory containing this script, then the parent directory.
1236   ac_confdir=`$as_dirname -- "$as_myself" ||
1237 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238          X"$as_myself" : 'X\(//\)[^/]' \| \
1239          X"$as_myself" : 'X\(//\)$' \| \
1240          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1241 $as_echo X"$as_myself" |
1242     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243             s//\1/
1244             q
1245           }
1246           /^X\(\/\/\)[^/].*/{
1247             s//\1/
1248             q
1249           }
1250           /^X\(\/\/\)$/{
1251             s//\1/
1252             q
1253           }
1254           /^X\(\/\).*/{
1255             s//\1/
1256             q
1257           }
1258           s/.*/./; q'`
1259   srcdir=$ac_confdir
1260   if test ! -r "$srcdir/$ac_unique_file"; then
1261     srcdir=..
1262   fi
1263 else
1264   ac_srcdir_defaulted=no
1265 fi
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1268   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1269 fi
1270 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1271 ac_abs_confdir=`(
1272         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1273         pwd)`
1274 # When building in place, set srcdir=.
1275 if test "$ac_abs_confdir" = "$ac_pwd"; then
1276   srcdir=.
1277 fi
1278 # Remove unnecessary trailing slashes from srcdir.
1279 # Double slashes in file names in object file debugging info
1280 # mess up M-x gdb in Emacs.
1281 case $srcdir in
1282 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283 esac
1284 for ac_var in $ac_precious_vars; do
1285   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1286   eval ac_env_${ac_var}_value=\$${ac_var}
1287   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1288   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289 done
1290
1291 #
1292 # Report the --help message.
1293 #
1294 if test "$ac_init_help" = "long"; then
1295   # Omit some internal or obsolete options to make the list less imposing.
1296   # This message is too long to be a string in the A/UX 3.1 sh.
1297   cat <<_ACEOF
1298 \`configure' configures this package to adapt to many kinds of systems.
1299
1300 Usage: $0 [OPTION]... [VAR=VALUE]...
1301
1302 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1303 VAR=VALUE.  See below for descriptions of some of the useful variables.
1304
1305 Defaults for the options are specified in brackets.
1306
1307 Configuration:
1308   -h, --help              display this help and exit
1309       --help=short        display options specific to this package
1310       --help=recursive    display the short help of all the included packages
1311   -V, --version           display version information and exit
1312   -q, --quiet, --silent   do not print \`checking ...' messages
1313       --cache-file=FILE   cache test results in FILE [disabled]
1314   -C, --config-cache      alias for \`--cache-file=config.cache'
1315   -n, --no-create         do not create output files
1316       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1317
1318 Installation directories:
1319   --prefix=PREFIX         install architecture-independent files in PREFIX
1320                           [$ac_default_prefix]
1321   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1322                           [PREFIX]
1323
1324 By default, \`make install' will install all the files in
1325 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1326 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327 for instance \`--prefix=\$HOME'.
1328
1329 For better control, use the options below.
1330
1331 Fine tuning of the installation directories:
1332   --bindir=DIR            user executables [EPREFIX/bin]
1333   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1334   --libexecdir=DIR        program executables [EPREFIX/libexec]
1335   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1336   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1337   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1338   --libdir=DIR            object code libraries [EPREFIX/lib]
1339   --includedir=DIR        C header files [PREFIX/include]
1340   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1341   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1342   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1343   --infodir=DIR           info documentation [DATAROOTDIR/info]
1344   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1345   --mandir=DIR            man documentation [DATAROOTDIR/man]
1346   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1347   --htmldir=DIR           html documentation [DOCDIR]
1348   --dvidir=DIR            dvi documentation [DOCDIR]
1349   --pdfdir=DIR            pdf documentation [DOCDIR]
1350   --psdir=DIR             ps documentation [DOCDIR]
1351 _ACEOF
1352
1353   cat <<\_ACEOF
1354
1355 System types:
1356   --build=BUILD     configure for building on BUILD [guessed]
1357   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1358 _ACEOF
1359 fi
1360
1361 if test -n "$ac_init_help"; then
1362
1363   cat <<\_ACEOF
1364
1365 Optional Features:
1366   --disable-option-checking  ignore unrecognized --enable/--with options
1367   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1368   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1369   --enable-shared[=PKGS]  build shared libraries [default=yes]
1370   --enable-static[=PKGS]  build static libraries [default=yes]
1371   --enable-fast-install[=PKGS]
1372                           optimize for fast installation [default=yes]
1373   --disable-libtool-lock  avoid locking (might break parallel builds)
1374  --enable-shared=yes/no Enable use of shared libraries default=yes
1375  --enable-gettext=yes/no Enable alternate language support default=yes
1376  --enable-lib64=yes/no Enable lib64 support default=no
1377
1378 Optional Packages:
1379   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1380   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1381   --with-pic              try to use only PIC/non-PIC objects [default=use
1382                           both]
1383   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1384   --with-sysroot=DIR Search for dependent libraries within DIR
1385                         (or the compiler's sysroot if not specified).
1386
1387 Some influential environment variables:
1388   CC          C compiler command
1389   CFLAGS      C compiler flags
1390   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1391               nonstandard directory <lib dir>
1392   LIBS        libraries to pass to the linker, e.g. -l<library>
1393   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1394               you have headers in a nonstandard directory <include dir>
1395   CPP         C preprocessor
1396
1397 Use these variables to override the choices made by `configure' or to help
1398 it to find libraries and programs with nonstandard names/locations.
1399
1400 Report bugs to the package provider.
1401 _ACEOF
1402 ac_status=$?
1403 fi
1404
1405 if test "$ac_init_help" = "recursive"; then
1406   # If there are subdirs, report their specific --help.
1407   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1408     test -d "$ac_dir" ||
1409       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1410       continue
1411     ac_builddir=.
1412
1413 case "$ac_dir" in
1414 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1415 *)
1416   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1417   # A ".." for each directory in $ac_dir_suffix.
1418   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1419   case $ac_top_builddir_sub in
1420   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1422   esac ;;
1423 esac
1424 ac_abs_top_builddir=$ac_pwd
1425 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1426 # for backward compatibility:
1427 ac_top_builddir=$ac_top_build_prefix
1428
1429 case $srcdir in
1430   .)  # We are building in place.
1431     ac_srcdir=.
1432     ac_top_srcdir=$ac_top_builddir_sub
1433     ac_abs_top_srcdir=$ac_pwd ;;
1434   [\\/]* | ?:[\\/]* )  # Absolute name.
1435     ac_srcdir=$srcdir$ac_dir_suffix;
1436     ac_top_srcdir=$srcdir
1437     ac_abs_top_srcdir=$srcdir ;;
1438   *) # Relative name.
1439     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1440     ac_top_srcdir=$ac_top_build_prefix$srcdir
1441     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1442 esac
1443 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1444
1445     cd "$ac_dir" || { ac_status=$?; continue; }
1446     # Check for guested configure.
1447     if test -f "$ac_srcdir/configure.gnu"; then
1448       echo &&
1449       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1450     elif test -f "$ac_srcdir/configure"; then
1451       echo &&
1452       $SHELL "$ac_srcdir/configure" --help=recursive
1453     else
1454       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1455     fi || ac_status=$?
1456     cd "$ac_pwd" || { ac_status=$?; break; }
1457   done
1458 fi
1459
1460 test -n "$ac_init_help" && exit $ac_status
1461 if $ac_init_version; then
1462   cat <<\_ACEOF
1463 configure
1464 generated by GNU Autoconf 2.68
1465
1466 Copyright (C) 2010 Free Software Foundation, Inc.
1467 This configure script is free software; the Free Software Foundation
1468 gives unlimited permission to copy, distribute and modify it.
1469 _ACEOF
1470   exit
1471 fi
1472
1473 ## ------------------------ ##
1474 ## Autoconf initialization. ##
1475 ## ------------------------ ##
1476
1477 # ac_fn_c_try_compile LINENO
1478 # --------------------------
1479 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1480 ac_fn_c_try_compile ()
1481 {
1482   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1483   rm -f conftest.$ac_objext
1484   if { { ac_try="$ac_compile"
1485 case "(($ac_try" in
1486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1487   *) ac_try_echo=$ac_try;;
1488 esac
1489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1490 $as_echo "$ac_try_echo"; } >&5
1491   (eval "$ac_compile") 2>conftest.err
1492   ac_status=$?
1493   if test -s conftest.err; then
1494     grep -v '^ *+' conftest.err >conftest.er1
1495     cat conftest.er1 >&5
1496     mv -f conftest.er1 conftest.err
1497   fi
1498   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1499   test $ac_status = 0; } && {
1500          test -z "$ac_c_werror_flag" ||
1501          test ! -s conftest.err
1502        } && test -s conftest.$ac_objext; then :
1503   ac_retval=0
1504 else
1505   $as_echo "$as_me: failed program was:" >&5
1506 sed 's/^/| /' conftest.$ac_ext >&5
1507
1508         ac_retval=1
1509 fi
1510   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1511   as_fn_set_status $ac_retval
1512
1513 } # ac_fn_c_try_compile
1514
1515 # ac_fn_c_try_link LINENO
1516 # -----------------------
1517 # Try to link conftest.$ac_ext, and return whether this succeeded.
1518 ac_fn_c_try_link ()
1519 {
1520   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521   rm -f conftest.$ac_objext conftest$ac_exeext
1522   if { { ac_try="$ac_link"
1523 case "(($ac_try" in
1524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525   *) ac_try_echo=$ac_try;;
1526 esac
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529   (eval "$ac_link") 2>conftest.err
1530   ac_status=$?
1531   if test -s conftest.err; then
1532     grep -v '^ *+' conftest.err >conftest.er1
1533     cat conftest.er1 >&5
1534     mv -f conftest.er1 conftest.err
1535   fi
1536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537   test $ac_status = 0; } && {
1538          test -z "$ac_c_werror_flag" ||
1539          test ! -s conftest.err
1540        } && test -s conftest$ac_exeext && {
1541          test "$cross_compiling" = yes ||
1542          $as_test_x conftest$ac_exeext
1543        }; then :
1544   ac_retval=0
1545 else
1546   $as_echo "$as_me: failed program was:" >&5
1547 sed 's/^/| /' conftest.$ac_ext >&5
1548
1549         ac_retval=1
1550 fi
1551   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1552   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1553   # interfere with the next link command; also delete a directory that is
1554   # left behind by Apple's compiler.  We do this before executing the actions.
1555   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1556   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557   as_fn_set_status $ac_retval
1558
1559 } # ac_fn_c_try_link
1560
1561 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1562 # -------------------------------------------------------
1563 # Tests whether HEADER exists and can be compiled using the include files in
1564 # INCLUDES, setting the cache variable VAR accordingly.
1565 ac_fn_c_check_header_compile ()
1566 {
1567   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1569 $as_echo_n "checking for $2... " >&6; }
1570 if eval \${$3+:} false; then :
1571   $as_echo_n "(cached) " >&6
1572 else
1573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1574 /* end confdefs.h.  */
1575 $4
1576 #include <$2>
1577 _ACEOF
1578 if ac_fn_c_try_compile "$LINENO"; then :
1579   eval "$3=yes"
1580 else
1581   eval "$3=no"
1582 fi
1583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1584 fi
1585 eval ac_res=\$$3
1586                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1587 $as_echo "$ac_res" >&6; }
1588   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589
1590 } # ac_fn_c_check_header_compile
1591
1592 # ac_fn_c_try_cpp LINENO
1593 # ----------------------
1594 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_cpp ()
1596 {
1597   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598   if { { ac_try="$ac_cpp conftest.$ac_ext"
1599 case "(($ac_try" in
1600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601   *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1606   ac_status=$?
1607   if test -s conftest.err; then
1608     grep -v '^ *+' conftest.err >conftest.er1
1609     cat conftest.er1 >&5
1610     mv -f conftest.er1 conftest.err
1611   fi
1612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613   test $ac_status = 0; } > conftest.i && {
1614          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1615          test ! -s conftest.err
1616        }; then :
1617   ac_retval=0
1618 else
1619   $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1621
1622     ac_retval=1
1623 fi
1624   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625   as_fn_set_status $ac_retval
1626
1627 } # ac_fn_c_try_cpp
1628
1629 # ac_fn_c_try_run LINENO
1630 # ----------------------
1631 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1632 # that executables *can* be run.
1633 ac_fn_c_try_run ()
1634 {
1635   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636   if { { ac_try="$ac_link"
1637 case "(($ac_try" in
1638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639   *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643   (eval "$ac_link") 2>&5
1644   ac_status=$?
1645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1647   { { case "(($ac_try" in
1648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649   *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653   (eval "$ac_try") 2>&5
1654   ac_status=$?
1655   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656   test $ac_status = 0; }; }; then :
1657   ac_retval=0
1658 else
1659   $as_echo "$as_me: program exited with status $ac_status" >&5
1660        $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662
1663        ac_retval=$ac_status
1664 fi
1665   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1666   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667   as_fn_set_status $ac_retval
1668
1669 } # ac_fn_c_try_run
1670
1671 # ac_fn_c_check_func LINENO FUNC VAR
1672 # ----------------------------------
1673 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1674 ac_fn_c_check_func ()
1675 {
1676   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1678 $as_echo_n "checking for $2... " >&6; }
1679 if eval \${$3+:} false; then :
1680   $as_echo_n "(cached) " >&6
1681 else
1682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h.  */
1684 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1685    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1686 #define $2 innocuous_$2
1687
1688 /* System header to define __stub macros and hopefully few prototypes,
1689     which can conflict with char $2 (); below.
1690     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1691     <limits.h> exists even on freestanding compilers.  */
1692
1693 #ifdef __STDC__
1694 # include <limits.h>
1695 #else
1696 # include <assert.h>
1697 #endif
1698
1699 #undef $2
1700
1701 /* Override any GCC internal prototype to avoid an error.
1702    Use char because int might match the return type of a GCC
1703    builtin and then its argument prototype would still apply.  */
1704 #ifdef __cplusplus
1705 extern "C"
1706 #endif
1707 char $2 ();
1708 /* The GNU C library defines this for functions which it implements
1709     to always fail with ENOSYS.  Some functions are actually named
1710     something starting with __ and the normal name is an alias.  */
1711 #if defined __stub_$2 || defined __stub___$2
1712 choke me
1713 #endif
1714
1715 int
1716 main ()
1717 {
1718 return $2 ();
1719   ;
1720   return 0;
1721 }
1722 _ACEOF
1723 if ac_fn_c_try_link "$LINENO"; then :
1724   eval "$3=yes"
1725 else
1726   eval "$3=no"
1727 fi
1728 rm -f core conftest.err conftest.$ac_objext \
1729     conftest$ac_exeext conftest.$ac_ext
1730 fi
1731 eval ac_res=\$$3
1732                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 $as_echo "$ac_res" >&6; }
1734   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735
1736 } # ac_fn_c_check_func
1737
1738 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1739 # -------------------------------------------------------
1740 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1741 # the include files in INCLUDES and setting the cache variable VAR
1742 # accordingly.
1743 ac_fn_c_check_header_mongrel ()
1744 {
1745   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746   if eval \${$3+:} false; then :
1747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 $as_echo_n "checking for $2... " >&6; }
1749 if eval \${$3+:} false; then :
1750   $as_echo_n "(cached) " >&6
1751 fi
1752 eval ac_res=\$$3
1753                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 $as_echo "$ac_res" >&6; }
1755 else
1756   # Is the header compilable?
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1758 $as_echo_n "checking $2 usability... " >&6; }
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h.  */
1761 $4
1762 #include <$2>
1763 _ACEOF
1764 if ac_fn_c_try_compile "$LINENO"; then :
1765   ac_header_compiler=yes
1766 else
1767   ac_header_compiler=no
1768 fi
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1771 $as_echo "$ac_header_compiler" >&6; }
1772
1773 # Is the header present?
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1775 $as_echo_n "checking $2 presence... " >&6; }
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h.  */
1778 #include <$2>
1779 _ACEOF
1780 if ac_fn_c_try_cpp "$LINENO"; then :
1781   ac_header_preproc=yes
1782 else
1783   ac_header_preproc=no
1784 fi
1785 rm -f conftest.err conftest.i conftest.$ac_ext
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1787 $as_echo "$ac_header_preproc" >&6; }
1788
1789 # So?  What about this header?
1790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1791   yes:no: )
1792     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1793 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1794     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1795 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1796     ;;
1797   no:yes:* )
1798     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1799 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1800     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1801 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1802     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1803 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1804     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1805 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1806     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1807 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1808     ;;
1809 esac
1810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 $as_echo_n "checking for $2... " >&6; }
1812 if eval \${$3+:} false; then :
1813   $as_echo_n "(cached) " >&6
1814 else
1815   eval "$3=\$ac_header_compiler"
1816 fi
1817 eval ac_res=\$$3
1818                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 $as_echo "$ac_res" >&6; }
1820 fi
1821   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822
1823 } # ac_fn_c_check_header_mongrel
1824 cat >config.log <<_ACEOF
1825 This file contains any messages produced by compilers while
1826 running configure, to aid debugging if configure makes a mistake.
1827
1828 It was created by $as_me, which was
1829 generated by GNU Autoconf 2.68.  Invocation command line was
1830
1831   $ $0 $@
1832
1833 _ACEOF
1834 exec 5>>config.log
1835 {
1836 cat <<_ASUNAME
1837 ## --------- ##
1838 ## Platform. ##
1839 ## --------- ##
1840
1841 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1842 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1843 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1844 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1845 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1846
1847 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1848 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1849
1850 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1851 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1852 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1853 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1854 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1855 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1856 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1857
1858 _ASUNAME
1859
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1862 do
1863   IFS=$as_save_IFS
1864   test -z "$as_dir" && as_dir=.
1865     $as_echo "PATH: $as_dir"
1866   done
1867 IFS=$as_save_IFS
1868
1869 } >&5
1870
1871 cat >&5 <<_ACEOF
1872
1873
1874 ## ----------- ##
1875 ## Core tests. ##
1876 ## ----------- ##
1877
1878 _ACEOF
1879
1880
1881 # Keep a trace of the command line.
1882 # Strip out --no-create and --no-recursion so they do not pile up.
1883 # Strip out --silent because we don't want to record it for future runs.
1884 # Also quote any args containing shell meta-characters.
1885 # Make two passes to allow for proper duplicate-argument suppression.
1886 ac_configure_args=
1887 ac_configure_args0=
1888 ac_configure_args1=
1889 ac_must_keep_next=false
1890 for ac_pass in 1 2
1891 do
1892   for ac_arg
1893   do
1894     case $ac_arg in
1895     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1896     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1897     | -silent | --silent | --silen | --sile | --sil)
1898       continue ;;
1899     *\'*)
1900       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1901     esac
1902     case $ac_pass in
1903     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1904     2)
1905       as_fn_append ac_configure_args1 " '$ac_arg'"
1906       if test $ac_must_keep_next = true; then
1907         ac_must_keep_next=false # Got value, back to normal.
1908       else
1909         case $ac_arg in
1910           *=* | --config-cache | -C | -disable-* | --disable-* \
1911           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1912           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1913           | -with-* | --with-* | -without-* | --without-* | --x)
1914             case "$ac_configure_args0 " in
1915               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1916             esac
1917             ;;
1918           -* ) ac_must_keep_next=true ;;
1919         esac
1920       fi
1921       as_fn_append ac_configure_args " '$ac_arg'"
1922       ;;
1923     esac
1924   done
1925 done
1926 { ac_configure_args0=; unset ac_configure_args0;}
1927 { ac_configure_args1=; unset ac_configure_args1;}
1928
1929 # When interrupted or exit'd, cleanup temporary files, and complete
1930 # config.log.  We remove comments because anyway the quotes in there
1931 # would cause problems or look ugly.
1932 # WARNING: Use '\'' to represent an apostrophe within the trap.
1933 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1934 trap 'exit_status=$?
1935   # Save into config.log some information that might help in debugging.
1936   {
1937     echo
1938
1939     $as_echo "## ---------------- ##
1940 ## Cache variables. ##
1941 ## ---------------- ##"
1942     echo
1943     # The following way of writing the cache mishandles newlines in values,
1944 (
1945   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1946     eval ac_val=\$$ac_var
1947     case $ac_val in #(
1948     *${as_nl}*)
1949       case $ac_var in #(
1950       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1951 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1952       esac
1953       case $ac_var in #(
1954       _ | IFS | as_nl) ;; #(
1955       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1956       *) { eval $ac_var=; unset $ac_var;} ;;
1957       esac ;;
1958     esac
1959   done
1960   (set) 2>&1 |
1961     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1962     *${as_nl}ac_space=\ *)
1963       sed -n \
1964         "s/'\''/'\''\\\\'\'''\''/g;
1965           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1966       ;; #(
1967     *)
1968       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1969       ;;
1970     esac |
1971     sort
1972 )
1973     echo
1974
1975     $as_echo "## ----------------- ##
1976 ## Output variables. ##
1977 ## ----------------- ##"
1978     echo
1979     for ac_var in $ac_subst_vars
1980     do
1981       eval ac_val=\$$ac_var
1982       case $ac_val in
1983       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1984       esac
1985       $as_echo "$ac_var='\''$ac_val'\''"
1986     done | sort
1987     echo
1988
1989     if test -n "$ac_subst_files"; then
1990       $as_echo "## ------------------- ##
1991 ## File substitutions. ##
1992 ## ------------------- ##"
1993       echo
1994       for ac_var in $ac_subst_files
1995       do
1996         eval ac_val=\$$ac_var
1997         case $ac_val in
1998         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1999         esac
2000         $as_echo "$ac_var='\''$ac_val'\''"
2001       done | sort
2002       echo
2003     fi
2004
2005     if test -s confdefs.h; then
2006       $as_echo "## ----------- ##
2007 ## confdefs.h. ##
2008 ## ----------- ##"
2009       echo
2010       cat confdefs.h
2011       echo
2012     fi
2013     test "$ac_signal" != 0 &&
2014       $as_echo "$as_me: caught signal $ac_signal"
2015     $as_echo "$as_me: exit $exit_status"
2016   } >&5
2017   rm -f core *.core core.conftest.* &&
2018     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2019     exit $exit_status
2020 ' 0
2021 for ac_signal in 1 2 13 15; do
2022   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2023 done
2024 ac_signal=0
2025
2026 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2027 rm -f -r conftest* confdefs.h
2028
2029 $as_echo "/* confdefs.h */" > confdefs.h
2030
2031 # Predefined preprocessor variables.
2032
2033 cat >>confdefs.h <<_ACEOF
2034 #define PACKAGE_NAME "$PACKAGE_NAME"
2035 _ACEOF
2036
2037 cat >>confdefs.h <<_ACEOF
2038 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2039 _ACEOF
2040
2041 cat >>confdefs.h <<_ACEOF
2042 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2043 _ACEOF
2044
2045 cat >>confdefs.h <<_ACEOF
2046 #define PACKAGE_STRING "$PACKAGE_STRING"
2047 _ACEOF
2048
2049 cat >>confdefs.h <<_ACEOF
2050 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2051 _ACEOF
2052
2053 cat >>confdefs.h <<_ACEOF
2054 #define PACKAGE_URL "$PACKAGE_URL"
2055 _ACEOF
2056
2057
2058 # Let the site file select an alternate cache file if it wants to.
2059 # Prefer an explicitly selected file to automatically selected ones.
2060 ac_site_file1=NONE
2061 ac_site_file2=NONE
2062 if test -n "$CONFIG_SITE"; then
2063   # We do not want a PATH search for config.site.
2064   case $CONFIG_SITE in #((
2065     -*)  ac_site_file1=./$CONFIG_SITE;;
2066     */*) ac_site_file1=$CONFIG_SITE;;
2067     *)   ac_site_file1=./$CONFIG_SITE;;
2068   esac
2069 elif test "x$prefix" != xNONE; then
2070   ac_site_file1=$prefix/share/config.site
2071   ac_site_file2=$prefix/etc/config.site
2072 else
2073   ac_site_file1=$ac_default_prefix/share/config.site
2074   ac_site_file2=$ac_default_prefix/etc/config.site
2075 fi
2076 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2077 do
2078   test "x$ac_site_file" = xNONE && continue
2079   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2080     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2081 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2082     sed 's/^/| /' "$ac_site_file" >&5
2083     . "$ac_site_file" \
2084       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2086 as_fn_error $? "failed to load site script $ac_site_file
2087 See \`config.log' for more details" "$LINENO" 5; }
2088   fi
2089 done
2090
2091 if test -r "$cache_file"; then
2092   # Some versions of bash will fail to source /dev/null (special files
2093   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2094   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2095     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2096 $as_echo "$as_me: loading cache $cache_file" >&6;}
2097     case $cache_file in
2098       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2099       *)                      . "./$cache_file";;
2100     esac
2101   fi
2102 else
2103   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2104 $as_echo "$as_me: creating cache $cache_file" >&6;}
2105   >$cache_file
2106 fi
2107
2108 # Check that the precious variables saved in the cache have kept the same
2109 # value.
2110 ac_cache_corrupted=false
2111 for ac_var in $ac_precious_vars; do
2112   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2113   eval ac_new_set=\$ac_env_${ac_var}_set
2114   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2115   eval ac_new_val=\$ac_env_${ac_var}_value
2116   case $ac_old_set,$ac_new_set in
2117     set,)
2118       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2119 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2120       ac_cache_corrupted=: ;;
2121     ,set)
2122       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2123 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2124       ac_cache_corrupted=: ;;
2125     ,);;
2126     *)
2127       if test "x$ac_old_val" != "x$ac_new_val"; then
2128         # differences in whitespace do not lead to failure.
2129         ac_old_val_w=`echo x $ac_old_val`
2130         ac_new_val_w=`echo x $ac_new_val`
2131         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2132           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2133 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2134           ac_cache_corrupted=:
2135         else
2136           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2137 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2138           eval $ac_var=\$ac_old_val
2139         fi
2140         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2141 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2142         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2143 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2144       fi;;
2145   esac
2146   # Pass precious variables to config.status.
2147   if test "$ac_new_set" = set; then
2148     case $ac_new_val in
2149     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2150     *) ac_arg=$ac_var=$ac_new_val ;;
2151     esac
2152     case " $ac_configure_args " in
2153       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2154       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2155     esac
2156   fi
2157 done
2158 if $ac_cache_corrupted; then
2159   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2161   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2162 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2163   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2164 fi
2165 ## -------------------- ##
2166 ## Main body of script. ##
2167 ## -------------------- ##
2168
2169 ac_ext=c
2170 ac_cpp='$CPP $CPPFLAGS'
2171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2174
2175
2176 ac_aux_dir=
2177 for ac_dir in . "$srcdir"/.; do
2178   if test -f "$ac_dir/install-sh"; then
2179     ac_aux_dir=$ac_dir
2180     ac_install_sh="$ac_aux_dir/install-sh -c"
2181     break
2182   elif test -f "$ac_dir/install.sh"; then
2183     ac_aux_dir=$ac_dir
2184     ac_install_sh="$ac_aux_dir/install.sh -c"
2185     break
2186   elif test -f "$ac_dir/shtool"; then
2187     ac_aux_dir=$ac_dir
2188     ac_install_sh="$ac_aux_dir/shtool install -c"
2189     break
2190   fi
2191 done
2192 if test -z "$ac_aux_dir"; then
2193   as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2194 fi
2195
2196 # These three variables are undocumented and unsupported,
2197 # and are intended to be withdrawn in a future Autoconf release.
2198 # They can cause serious problems if a builder's source tree is in a directory
2199 # whose full name contains unusual characters.
2200 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2201 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2202 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2203
2204
2205
2206 ac_config_headers="$ac_config_headers include/config.h"
2207
2208
2209
2210 case `pwd` in
2211   *\ * | *\     *)
2212     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2213 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2214 esac
2215
2216
2217
2218 macro_version='2.4'
2219 macro_revision='1.3293'
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233 ltmain="$ac_aux_dir/ltmain.sh"
2234
2235 # Make sure we can run config.sub.
2236 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2237   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2238
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2240 $as_echo_n "checking build system type... " >&6; }
2241 if ${ac_cv_build+:} false; then :
2242   $as_echo_n "(cached) " >&6
2243 else
2244   ac_build_alias=$build_alias
2245 test "x$ac_build_alias" = x &&
2246   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2247 test "x$ac_build_alias" = x &&
2248   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2249 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2250   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2251
2252 fi
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2254 $as_echo "$ac_cv_build" >&6; }
2255 case $ac_cv_build in
2256 *-*-*) ;;
2257 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2258 esac
2259 build=$ac_cv_build
2260 ac_save_IFS=$IFS; IFS='-'
2261 set x $ac_cv_build
2262 shift
2263 build_cpu=$1
2264 build_vendor=$2
2265 shift; shift
2266 # Remember, the first character of IFS is used to create $*,
2267 # except with old shells:
2268 build_os=$*
2269 IFS=$ac_save_IFS
2270 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2271
2272
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2274 $as_echo_n "checking host system type... " >&6; }
2275 if ${ac_cv_host+:} false; then :
2276   $as_echo_n "(cached) " >&6
2277 else
2278   if test "x$host_alias" = x; then
2279   ac_cv_host=$ac_cv_build
2280 else
2281   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2282     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2283 fi
2284
2285 fi
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2287 $as_echo "$ac_cv_host" >&6; }
2288 case $ac_cv_host in
2289 *-*-*) ;;
2290 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2291 esac
2292 host=$ac_cv_host
2293 ac_save_IFS=$IFS; IFS='-'
2294 set x $ac_cv_host
2295 shift
2296 host_cpu=$1
2297 host_vendor=$2
2298 shift; shift
2299 # Remember, the first character of IFS is used to create $*,
2300 # except with old shells:
2301 host_os=$*
2302 IFS=$ac_save_IFS
2303 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2304
2305
2306 # Backslashify metacharacters that are still active within
2307 # double-quoted strings.
2308 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2309
2310 # Same as above, but do not quote variable references.
2311 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2312
2313 # Sed substitution to delay expansion of an escaped shell variable in a
2314 # double_quote_subst'ed string.
2315 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2316
2317 # Sed substitution to delay expansion of an escaped single quote.
2318 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2319
2320 # Sed substitution to avoid accidental globbing in evaled expressions
2321 no_glob_subst='s/\*/\\\*/g'
2322
2323 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2324 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2325 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2326
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2328 $as_echo_n "checking how to print strings... " >&6; }
2329 # Test print first, because it will be a builtin if present.
2330 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2331    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2332   ECHO='print -r --'
2333 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2334   ECHO='printf %s\n'
2335 else
2336   # Use this function as a fallback that always works.
2337   func_fallback_echo ()
2338   {
2339     eval 'cat <<_LTECHO_EOF
2340 $1
2341 _LTECHO_EOF'
2342   }
2343   ECHO='func_fallback_echo'
2344 fi
2345
2346 # func_echo_all arg...
2347 # Invoke $ECHO with all args, space-separated.
2348 func_echo_all ()
2349 {
2350     $ECHO ""
2351 }
2352
2353 case "$ECHO" in
2354   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2355 $as_echo "printf" >&6; } ;;
2356   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2357 $as_echo "print -r" >&6; } ;;
2358   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2359 $as_echo "cat" >&6; } ;;
2360 esac
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
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 if test -n "$ac_tool_prefix"; then
2381   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2382 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2384 $as_echo_n "checking for $ac_word... " >&6; }
2385 if ${ac_cv_prog_CC+:} false; then :
2386   $as_echo_n "(cached) " >&6
2387 else
2388   if test -n "$CC"; then
2389   ac_cv_prog_CC="$CC" # Let the user override the test.
2390 else
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2393 do
2394   IFS=$as_save_IFS
2395   test -z "$as_dir" && as_dir=.
2396     for ac_exec_ext in '' $ac_executable_extensions; do
2397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2400     break 2
2401   fi
2402 done
2403   done
2404 IFS=$as_save_IFS
2405
2406 fi
2407 fi
2408 CC=$ac_cv_prog_CC
2409 if test -n "$CC"; then
2410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2411 $as_echo "$CC" >&6; }
2412 else
2413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2414 $as_echo "no" >&6; }
2415 fi
2416
2417
2418 fi
2419 if test -z "$ac_cv_prog_CC"; then
2420   ac_ct_CC=$CC
2421   # Extract the first word of "gcc", so it can be a program name with args.
2422 set dummy gcc; ac_word=$2
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2424 $as_echo_n "checking for $ac_word... " >&6; }
2425 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2426   $as_echo_n "(cached) " >&6
2427 else
2428   if test -n "$ac_ct_CC"; then
2429   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2430 else
2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432 for as_dir in $PATH
2433 do
2434   IFS=$as_save_IFS
2435   test -z "$as_dir" && as_dir=.
2436     for ac_exec_ext in '' $ac_executable_extensions; do
2437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2438     ac_cv_prog_ac_ct_CC="gcc"
2439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2440     break 2
2441   fi
2442 done
2443   done
2444 IFS=$as_save_IFS
2445
2446 fi
2447 fi
2448 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2449 if test -n "$ac_ct_CC"; then
2450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2451 $as_echo "$ac_ct_CC" >&6; }
2452 else
2453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2454 $as_echo "no" >&6; }
2455 fi
2456
2457   if test "x$ac_ct_CC" = x; then
2458     CC=""
2459   else
2460     case $cross_compiling:$ac_tool_warned in
2461 yes:)
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2464 ac_tool_warned=yes ;;
2465 esac
2466     CC=$ac_ct_CC
2467   fi
2468 else
2469   CC="$ac_cv_prog_CC"
2470 fi
2471
2472 if test -z "$CC"; then
2473           if test -n "$ac_tool_prefix"; then
2474     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2475 set dummy ${ac_tool_prefix}cc; ac_word=$2
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2477 $as_echo_n "checking for $ac_word... " >&6; }
2478 if ${ac_cv_prog_CC+:} false; then :
2479   $as_echo_n "(cached) " >&6
2480 else
2481   if test -n "$CC"; then
2482   ac_cv_prog_CC="$CC" # Let the user override the test.
2483 else
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 for as_dir in $PATH
2486 do
2487   IFS=$as_save_IFS
2488   test -z "$as_dir" && as_dir=.
2489     for ac_exec_ext in '' $ac_executable_extensions; do
2490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2491     ac_cv_prog_CC="${ac_tool_prefix}cc"
2492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2493     break 2
2494   fi
2495 done
2496   done
2497 IFS=$as_save_IFS
2498
2499 fi
2500 fi
2501 CC=$ac_cv_prog_CC
2502 if test -n "$CC"; then
2503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2504 $as_echo "$CC" >&6; }
2505 else
2506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2507 $as_echo "no" >&6; }
2508 fi
2509
2510
2511   fi
2512 fi
2513 if test -z "$CC"; then
2514   # Extract the first word of "cc", so it can be a program name with args.
2515 set dummy cc; ac_word=$2
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2517 $as_echo_n "checking for $ac_word... " >&6; }
2518 if ${ac_cv_prog_CC+:} false; then :
2519   $as_echo_n "(cached) " >&6
2520 else
2521   if test -n "$CC"; then
2522   ac_cv_prog_CC="$CC" # Let the user override the test.
2523 else
2524   ac_prog_rejected=no
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2527 do
2528   IFS=$as_save_IFS
2529   test -z "$as_dir" && as_dir=.
2530     for ac_exec_ext in '' $ac_executable_extensions; do
2531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2533        ac_prog_rejected=yes
2534        continue
2535      fi
2536     ac_cv_prog_CC="cc"
2537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2538     break 2
2539   fi
2540 done
2541   done
2542 IFS=$as_save_IFS
2543
2544 if test $ac_prog_rejected = yes; then
2545   # We found a bogon in the path, so make sure we never use it.
2546   set dummy $ac_cv_prog_CC
2547   shift
2548   if test $# != 0; then
2549     # We chose a different compiler from the bogus one.
2550     # However, it has the same basename, so the bogon will be chosen
2551     # first if we set CC to just the basename; use the full file name.
2552     shift
2553     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2554   fi
2555 fi
2556 fi
2557 fi
2558 CC=$ac_cv_prog_CC
2559 if test -n "$CC"; then
2560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2561 $as_echo "$CC" >&6; }
2562 else
2563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2564 $as_echo "no" >&6; }
2565 fi
2566
2567
2568 fi
2569 if test -z "$CC"; then
2570   if test -n "$ac_tool_prefix"; then
2571   for ac_prog in cl.exe
2572   do
2573     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2574 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if ${ac_cv_prog_CC+:} false; then :
2578   $as_echo_n "(cached) " >&6
2579 else
2580   if test -n "$CC"; then
2581   ac_cv_prog_CC="$CC" # Let the user override the test.
2582 else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2585 do
2586   IFS=$as_save_IFS
2587   test -z "$as_dir" && as_dir=.
2588     for ac_exec_ext in '' $ac_executable_extensions; do
2589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592     break 2
2593   fi
2594 done
2595   done
2596 IFS=$as_save_IFS
2597
2598 fi
2599 fi
2600 CC=$ac_cv_prog_CC
2601 if test -n "$CC"; then
2602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2603 $as_echo "$CC" >&6; }
2604 else
2605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2607 fi
2608
2609
2610     test -n "$CC" && break
2611   done
2612 fi
2613 if test -z "$CC"; then
2614   ac_ct_CC=$CC
2615   for ac_prog in cl.exe
2616 do
2617   # Extract the first word of "$ac_prog", so it can be a program name with args.
2618 set dummy $ac_prog; ac_word=$2
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620 $as_echo_n "checking for $ac_word... " >&6; }
2621 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2622   $as_echo_n "(cached) " >&6
2623 else
2624   if test -n "$ac_ct_CC"; then
2625   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH
2629 do
2630   IFS=$as_save_IFS
2631   test -z "$as_dir" && as_dir=.
2632     for ac_exec_ext in '' $ac_executable_extensions; do
2633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2634     ac_cv_prog_ac_ct_CC="$ac_prog"
2635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636     break 2
2637   fi
2638 done
2639   done
2640 IFS=$as_save_IFS
2641
2642 fi
2643 fi
2644 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2645 if test -n "$ac_ct_CC"; then
2646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2647 $as_echo "$ac_ct_CC" >&6; }
2648 else
2649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2651 fi
2652
2653
2654   test -n "$ac_ct_CC" && break
2655 done
2656
2657   if test "x$ac_ct_CC" = x; then
2658     CC=""
2659   else
2660     case $cross_compiling:$ac_tool_warned in
2661 yes:)
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2664 ac_tool_warned=yes ;;
2665 esac
2666     CC=$ac_ct_CC
2667   fi
2668 fi
2669
2670 fi
2671
2672
2673 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2675 as_fn_error $? "no acceptable C compiler found in \$PATH
2676 See \`config.log' for more details" "$LINENO" 5; }
2677
2678 # Provide some information about the compiler.
2679 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2680 set X $ac_compile
2681 ac_compiler=$2
2682 for ac_option in --version -v -V -qversion; do
2683   { { ac_try="$ac_compiler $ac_option >&5"
2684 case "(($ac_try" in
2685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686   *) ac_try_echo=$ac_try;;
2687 esac
2688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2689 $as_echo "$ac_try_echo"; } >&5
2690   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2691   ac_status=$?
2692   if test -s conftest.err; then
2693     sed '10a\
2694 ... rest of stderr output deleted ...
2695          10q' conftest.err >conftest.er1
2696     cat conftest.er1 >&5
2697   fi
2698   rm -f conftest.er1 conftest.err
2699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2700   test $ac_status = 0; }
2701 done
2702
2703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2704 /* end confdefs.h.  */
2705
2706 int
2707 main ()
2708 {
2709
2710   ;
2711   return 0;
2712 }
2713 _ACEOF
2714 ac_clean_files_save=$ac_clean_files
2715 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2716 # Try to create an executable without -o first, disregard a.out.
2717 # It will help us diagnose broken compilers, and finding out an intuition
2718 # of exeext.
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2720 $as_echo_n "checking whether the C compiler works... " >&6; }
2721 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2722
2723 # The possible output files:
2724 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2725
2726 ac_rmfiles=
2727 for ac_file in $ac_files
2728 do
2729   case $ac_file in
2730     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2731     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2732   esac
2733 done
2734 rm -f $ac_rmfiles
2735
2736 if { { ac_try="$ac_link_default"
2737 case "(($ac_try" in
2738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739   *) ac_try_echo=$ac_try;;
2740 esac
2741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2742 $as_echo "$ac_try_echo"; } >&5
2743   (eval "$ac_link_default") 2>&5
2744   ac_status=$?
2745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2746   test $ac_status = 0; }; then :
2747   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2748 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2749 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2750 # so that the user can short-circuit this test for compilers unknown to
2751 # Autoconf.
2752 for ac_file in $ac_files ''
2753 do
2754   test -f "$ac_file" || continue
2755   case $ac_file in
2756     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2757         ;;
2758     [ab].out )
2759         # We found the default executable, but exeext='' is most
2760         # certainly right.
2761         break;;
2762     *.* )
2763         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2764         then :; else
2765            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2766         fi
2767         # We set ac_cv_exeext here because the later test for it is not
2768         # safe: cross compilers may not add the suffix if given an `-o'
2769         # argument, so we may need to know it at that point already.
2770         # Even if this section looks crufty: it has the advantage of
2771         # actually working.
2772         break;;
2773     * )
2774         break;;
2775   esac
2776 done
2777 test "$ac_cv_exeext" = no && ac_cv_exeext=
2778
2779 else
2780   ac_file=''
2781 fi
2782 if test -z "$ac_file"; then :
2783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2785 $as_echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2787
2788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2790 as_fn_error 77 "C compiler cannot create executables
2791 See \`config.log' for more details" "$LINENO" 5; }
2792 else
2793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2794 $as_echo "yes" >&6; }
2795 fi
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2797 $as_echo_n "checking for C compiler default output file name... " >&6; }
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2799 $as_echo "$ac_file" >&6; }
2800 ac_exeext=$ac_cv_exeext
2801
2802 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2803 ac_clean_files=$ac_clean_files_save
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2805 $as_echo_n "checking for suffix of executables... " >&6; }
2806 if { { ac_try="$ac_link"
2807 case "(($ac_try" in
2808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809   *) ac_try_echo=$ac_try;;
2810 esac
2811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2812 $as_echo "$ac_try_echo"; } >&5
2813   (eval "$ac_link") 2>&5
2814   ac_status=$?
2815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2816   test $ac_status = 0; }; then :
2817   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2818 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2819 # work properly (i.e., refer to `conftest.exe'), while it won't with
2820 # `rm'.
2821 for ac_file in conftest.exe conftest conftest.*; do
2822   test -f "$ac_file" || continue
2823   case $ac_file in
2824     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2825     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2826           break;;
2827     * ) break;;
2828   esac
2829 done
2830 else
2831   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2833 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2834 See \`config.log' for more details" "$LINENO" 5; }
2835 fi
2836 rm -f conftest conftest$ac_cv_exeext
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2838 $as_echo "$ac_cv_exeext" >&6; }
2839
2840 rm -f conftest.$ac_ext
2841 EXEEXT=$ac_cv_exeext
2842 ac_exeext=$EXEEXT
2843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2844 /* end confdefs.h.  */
2845 #include <stdio.h>
2846 int
2847 main ()
2848 {
2849 FILE *f = fopen ("conftest.out", "w");
2850  return ferror (f) || fclose (f) != 0;
2851
2852   ;
2853   return 0;
2854 }
2855 _ACEOF
2856 ac_clean_files="$ac_clean_files conftest.out"
2857 # Check that the compiler produces executables we can run.  If not, either
2858 # the compiler is broken, or we cross compile.
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2860 $as_echo_n "checking whether we are cross compiling... " >&6; }
2861 if test "$cross_compiling" != yes; then
2862   { { ac_try="$ac_link"
2863 case "(($ac_try" in
2864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865   *) ac_try_echo=$ac_try;;
2866 esac
2867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2868 $as_echo "$ac_try_echo"; } >&5
2869   (eval "$ac_link") 2>&5
2870   ac_status=$?
2871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2872   test $ac_status = 0; }
2873   if { ac_try='./conftest$ac_cv_exeext'
2874   { { case "(($ac_try" in
2875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876   *) ac_try_echo=$ac_try;;
2877 esac
2878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2879 $as_echo "$ac_try_echo"; } >&5
2880   (eval "$ac_try") 2>&5
2881   ac_status=$?
2882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2883   test $ac_status = 0; }; }; then
2884     cross_compiling=no
2885   else
2886     if test "$cross_compiling" = maybe; then
2887         cross_compiling=yes
2888     else
2889         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2891 as_fn_error $? "cannot run C compiled programs.
2892 If you meant to cross compile, use \`--host'.
2893 See \`config.log' for more details" "$LINENO" 5; }
2894     fi
2895   fi
2896 fi
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2898 $as_echo "$cross_compiling" >&6; }
2899
2900 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2901 ac_clean_files=$ac_clean_files_save
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2903 $as_echo_n "checking for suffix of object files... " >&6; }
2904 if ${ac_cv_objext+:} false; then :
2905   $as_echo_n "(cached) " >&6
2906 else
2907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2908 /* end confdefs.h.  */
2909
2910 int
2911 main ()
2912 {
2913
2914   ;
2915   return 0;
2916 }
2917 _ACEOF
2918 rm -f conftest.o conftest.obj
2919 if { { ac_try="$ac_compile"
2920 case "(($ac_try" in
2921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922   *) ac_try_echo=$ac_try;;
2923 esac
2924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2925 $as_echo "$ac_try_echo"; } >&5
2926   (eval "$ac_compile") 2>&5
2927   ac_status=$?
2928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2929   test $ac_status = 0; }; then :
2930   for ac_file in conftest.o conftest.obj conftest.*; do
2931   test -f "$ac_file" || continue;
2932   case $ac_file in
2933     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2934     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2935        break;;
2936   esac
2937 done
2938 else
2939   $as_echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2941
2942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2944 as_fn_error $? "cannot compute suffix of object files: cannot compile
2945 See \`config.log' for more details" "$LINENO" 5; }
2946 fi
2947 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2948 fi
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2950 $as_echo "$ac_cv_objext" >&6; }
2951 OBJEXT=$ac_cv_objext
2952 ac_objext=$OBJEXT
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2954 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2955 if ${ac_cv_c_compiler_gnu+:} false; then :
2956   $as_echo_n "(cached) " >&6
2957 else
2958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2959 /* end confdefs.h.  */
2960
2961 int
2962 main ()
2963 {
2964 #ifndef __GNUC__
2965        choke me
2966 #endif
2967
2968   ;
2969   return 0;
2970 }
2971 _ACEOF
2972 if ac_fn_c_try_compile "$LINENO"; then :
2973   ac_compiler_gnu=yes
2974 else
2975   ac_compiler_gnu=no
2976 fi
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2979
2980 fi
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2982 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2983 if test $ac_compiler_gnu = yes; then
2984   GCC=yes
2985 else
2986   GCC=
2987 fi
2988 ac_test_CFLAGS=${CFLAGS+set}
2989 ac_save_CFLAGS=$CFLAGS
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2991 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2992 if ${ac_cv_prog_cc_g+:} false; then :
2993   $as_echo_n "(cached) " >&6
2994 else
2995   ac_save_c_werror_flag=$ac_c_werror_flag
2996    ac_c_werror_flag=yes
2997    ac_cv_prog_cc_g=no
2998    CFLAGS="-g"
2999    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3000 /* end confdefs.h.  */
3001
3002 int
3003 main ()
3004 {
3005
3006   ;
3007   return 0;
3008 }
3009 _ACEOF
3010 if ac_fn_c_try_compile "$LINENO"; then :
3011   ac_cv_prog_cc_g=yes
3012 else
3013   CFLAGS=""
3014       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015 /* end confdefs.h.  */
3016
3017 int
3018 main ()
3019 {
3020
3021   ;
3022   return 0;
3023 }
3024 _ACEOF
3025 if ac_fn_c_try_compile "$LINENO"; then :
3026
3027 else
3028   ac_c_werror_flag=$ac_save_c_werror_flag
3029          CFLAGS="-g"
3030          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031 /* end confdefs.h.  */
3032
3033 int
3034 main ()
3035 {
3036
3037   ;
3038   return 0;
3039 }
3040 _ACEOF
3041 if ac_fn_c_try_compile "$LINENO"; then :
3042   ac_cv_prog_cc_g=yes
3043 fi
3044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3045 fi
3046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3047 fi
3048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049    ac_c_werror_flag=$ac_save_c_werror_flag
3050 fi
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3052 $as_echo "$ac_cv_prog_cc_g" >&6; }
3053 if test "$ac_test_CFLAGS" = set; then
3054   CFLAGS=$ac_save_CFLAGS
3055 elif test $ac_cv_prog_cc_g = yes; then
3056   if test "$GCC" = yes; then
3057     CFLAGS="-g -O2"
3058   else
3059     CFLAGS="-g"
3060   fi
3061 else
3062   if test "$GCC" = yes; then
3063     CFLAGS="-O2"
3064   else
3065     CFLAGS=
3066   fi
3067 fi
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3069 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3070 if ${ac_cv_prog_cc_c89+:} false; then :
3071   $as_echo_n "(cached) " >&6
3072 else
3073   ac_cv_prog_cc_c89=no
3074 ac_save_CC=$CC
3075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3076 /* end confdefs.h.  */
3077 #include <stdarg.h>
3078 #include <stdio.h>
3079 #include <sys/types.h>
3080 #include <sys/stat.h>
3081 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3082 struct buf { int x; };
3083 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3084 static char *e (p, i)
3085      char **p;
3086      int i;
3087 {
3088   return p[i];
3089 }
3090 static char *f (char * (*g) (char **, int), char **p, ...)
3091 {
3092   char *s;
3093   va_list v;
3094   va_start (v,p);
3095   s = g (p, va_arg (v,int));
3096   va_end (v);
3097   return s;
3098 }
3099
3100 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3101    function prototypes and stuff, but not '\xHH' hex character constants.
3102    These don't provoke an error unfortunately, instead are silently treated
3103    as 'x'.  The following induces an error, until -std is added to get
3104    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3105    array size at least.  It's necessary to write '\x00'==0 to get something
3106    that's true only with -std.  */
3107 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3108
3109 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3110    inside strings and character constants.  */
3111 #define FOO(x) 'x'
3112 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3113
3114 int test (int i, double x);
3115 struct s1 {int (*f) (int a);};
3116 struct s2 {int (*f) (double a);};
3117 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3118 int argc;
3119 char **argv;
3120 int
3121 main ()
3122 {
3123 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3124   ;
3125   return 0;
3126 }
3127 _ACEOF
3128 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3129         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3130 do
3131   CC="$ac_save_CC $ac_arg"
3132   if ac_fn_c_try_compile "$LINENO"; then :
3133   ac_cv_prog_cc_c89=$ac_arg
3134 fi
3135 rm -f core conftest.err conftest.$ac_objext
3136   test "x$ac_cv_prog_cc_c89" != "xno" && break
3137 done
3138 rm -f conftest.$ac_ext
3139 CC=$ac_save_CC
3140
3141 fi
3142 # AC_CACHE_VAL
3143 case "x$ac_cv_prog_cc_c89" in
3144   x)
3145     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3146 $as_echo "none needed" >&6; } ;;
3147   xno)
3148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3149 $as_echo "unsupported" >&6; } ;;
3150   *)
3151     CC="$CC $ac_cv_prog_cc_c89"
3152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3153 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3154 esac
3155 if test "x$ac_cv_prog_cc_c89" != xno; then :
3156
3157 fi
3158
3159 ac_ext=c
3160 ac_cpp='$CPP $CPPFLAGS'
3161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3166 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3167 if ${ac_cv_path_SED+:} false; then :
3168   $as_echo_n "(cached) " >&6
3169 else
3170             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3171      for ac_i in 1 2 3 4 5 6 7; do
3172        ac_script="$ac_script$as_nl$ac_script"
3173      done
3174      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3175      { ac_script=; unset ac_script;}
3176      if test -z "$SED"; then
3177   ac_path_SED_found=false
3178   # Loop through the user's path and test for each of PROGNAME-LIST
3179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 for as_dir in $PATH
3181 do
3182   IFS=$as_save_IFS
3183   test -z "$as_dir" && as_dir=.
3184     for ac_prog in sed gsed; do
3185     for ac_exec_ext in '' $ac_executable_extensions; do
3186       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3187       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3188 # Check for GNU ac_path_SED and select it if it is found.
3189   # Check for GNU $ac_path_SED
3190 case `"$ac_path_SED" --version 2>&1` in
3191 *GNU*)
3192   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3193 *)
3194   ac_count=0
3195   $as_echo_n 0123456789 >"conftest.in"
3196   while :
3197   do
3198     cat "conftest.in" "conftest.in" >"conftest.tmp"
3199     mv "conftest.tmp" "conftest.in"
3200     cp "conftest.in" "conftest.nl"
3201     $as_echo '' >> "conftest.nl"
3202     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3203     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3204     as_fn_arith $ac_count + 1 && ac_count=$as_val
3205     if test $ac_count -gt ${ac_path_SED_max-0}; then
3206       # Best one so far, save it but keep looking for a better one
3207       ac_cv_path_SED="$ac_path_SED"
3208       ac_path_SED_max=$ac_count
3209     fi
3210     # 10*(2^10) chars as input seems more than enough
3211     test $ac_count -gt 10 && break
3212   done
3213   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3214 esac
3215
3216       $ac_path_SED_found && break 3
3217     done
3218   done
3219   done
3220 IFS=$as_save_IFS
3221   if test -z "$ac_cv_path_SED"; then
3222     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3223   fi
3224 else
3225   ac_cv_path_SED=$SED
3226 fi
3227
3228 fi
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3230 $as_echo "$ac_cv_path_SED" >&6; }
3231  SED="$ac_cv_path_SED"
3232   rm -f conftest.sed
3233
3234 test -z "$SED" && SED=sed
3235 Xsed="$SED -e 1s/^X//"
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3248 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3249 if ${ac_cv_path_GREP+:} false; then :
3250   $as_echo_n "(cached) " >&6
3251 else
3252   if test -z "$GREP"; then
3253   ac_path_GREP_found=false
3254   # Loop through the user's path and test for each of PROGNAME-LIST
3255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3257 do
3258   IFS=$as_save_IFS
3259   test -z "$as_dir" && as_dir=.
3260     for ac_prog in grep ggrep; do
3261     for ac_exec_ext in '' $ac_executable_extensions; do
3262       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3263       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3264 # Check for GNU ac_path_GREP and select it if it is found.
3265   # Check for GNU $ac_path_GREP
3266 case `"$ac_path_GREP" --version 2>&1` in
3267 *GNU*)
3268   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3269 *)
3270   ac_count=0
3271   $as_echo_n 0123456789 >"conftest.in"
3272   while :
3273   do
3274     cat "conftest.in" "conftest.in" >"conftest.tmp"
3275     mv "conftest.tmp" "conftest.in"
3276     cp "conftest.in" "conftest.nl"
3277     $as_echo 'GREP' >> "conftest.nl"
3278     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3279     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3280     as_fn_arith $ac_count + 1 && ac_count=$as_val
3281     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3282       # Best one so far, save it but keep looking for a better one
3283       ac_cv_path_GREP="$ac_path_GREP"
3284       ac_path_GREP_max=$ac_count
3285     fi
3286     # 10*(2^10) chars as input seems more than enough
3287     test $ac_count -gt 10 && break
3288   done
3289   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3290 esac
3291
3292       $ac_path_GREP_found && break 3
3293     done
3294   done
3295   done
3296 IFS=$as_save_IFS
3297   if test -z "$ac_cv_path_GREP"; then
3298     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3299   fi
3300 else
3301   ac_cv_path_GREP=$GREP
3302 fi
3303
3304 fi
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3306 $as_echo "$ac_cv_path_GREP" >&6; }
3307  GREP="$ac_cv_path_GREP"
3308
3309
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3311 $as_echo_n "checking for egrep... " >&6; }
3312 if ${ac_cv_path_EGREP+:} false; then :
3313   $as_echo_n "(cached) " >&6
3314 else
3315   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3316    then ac_cv_path_EGREP="$GREP -E"
3317    else
3318      if test -z "$EGREP"; then
3319   ac_path_EGREP_found=false
3320   # Loop through the user's path and test for each of PROGNAME-LIST
3321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3323 do
3324   IFS=$as_save_IFS
3325   test -z "$as_dir" && as_dir=.
3326     for ac_prog in egrep; do
3327     for ac_exec_ext in '' $ac_executable_extensions; do
3328       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3329       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3330 # Check for GNU ac_path_EGREP and select it if it is found.
3331   # Check for GNU $ac_path_EGREP
3332 case `"$ac_path_EGREP" --version 2>&1` in
3333 *GNU*)
3334   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3335 *)
3336   ac_count=0
3337   $as_echo_n 0123456789 >"conftest.in"
3338   while :
3339   do
3340     cat "conftest.in" "conftest.in" >"conftest.tmp"
3341     mv "conftest.tmp" "conftest.in"
3342     cp "conftest.in" "conftest.nl"
3343     $as_echo 'EGREP' >> "conftest.nl"
3344     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3345     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3346     as_fn_arith $ac_count + 1 && ac_count=$as_val
3347     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3348       # Best one so far, save it but keep looking for a better one
3349       ac_cv_path_EGREP="$ac_path_EGREP"
3350       ac_path_EGREP_max=$ac_count
3351     fi
3352     # 10*(2^10) chars as input seems more than enough
3353     test $ac_count -gt 10 && break
3354   done
3355   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3356 esac
3357
3358       $ac_path_EGREP_found && break 3
3359     done
3360   done
3361   done
3362 IFS=$as_save_IFS
3363   if test -z "$ac_cv_path_EGREP"; then
3364     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3365   fi
3366 else
3367   ac_cv_path_EGREP=$EGREP
3368 fi
3369
3370    fi
3371 fi
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3373 $as_echo "$ac_cv_path_EGREP" >&6; }
3374  EGREP="$ac_cv_path_EGREP"
3375
3376
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3378 $as_echo_n "checking for fgrep... " >&6; }
3379 if ${ac_cv_path_FGREP+:} false; then :
3380   $as_echo_n "(cached) " >&6
3381 else
3382   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3383    then ac_cv_path_FGREP="$GREP -F"
3384    else
3385      if test -z "$FGREP"; then
3386   ac_path_FGREP_found=false
3387   # Loop through the user's path and test for each of PROGNAME-LIST
3388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3390 do
3391   IFS=$as_save_IFS
3392   test -z "$as_dir" && as_dir=.
3393     for ac_prog in fgrep; do
3394     for ac_exec_ext in '' $ac_executable_extensions; do
3395       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3396       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3397 # Check for GNU ac_path_FGREP and select it if it is found.
3398   # Check for GNU $ac_path_FGREP
3399 case `"$ac_path_FGREP" --version 2>&1` in
3400 *GNU*)
3401   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3402 *)
3403   ac_count=0
3404   $as_echo_n 0123456789 >"conftest.in"
3405   while :
3406   do
3407     cat "conftest.in" "conftest.in" >"conftest.tmp"
3408     mv "conftest.tmp" "conftest.in"
3409     cp "conftest.in" "conftest.nl"
3410     $as_echo 'FGREP' >> "conftest.nl"
3411     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3412     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3413     as_fn_arith $ac_count + 1 && ac_count=$as_val
3414     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3415       # Best one so far, save it but keep looking for a better one
3416       ac_cv_path_FGREP="$ac_path_FGREP"
3417       ac_path_FGREP_max=$ac_count
3418     fi
3419     # 10*(2^10) chars as input seems more than enough
3420     test $ac_count -gt 10 && break
3421   done
3422   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3423 esac
3424
3425       $ac_path_FGREP_found && break 3
3426     done
3427   done
3428   done
3429 IFS=$as_save_IFS
3430   if test -z "$ac_cv_path_FGREP"; then
3431     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3432   fi
3433 else
3434   ac_cv_path_FGREP=$FGREP
3435 fi
3436
3437    fi
3438 fi
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3440 $as_echo "$ac_cv_path_FGREP" >&6; }
3441  FGREP="$ac_cv_path_FGREP"
3442
3443
3444 test -z "$GREP" && GREP=grep
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464 # Check whether --with-gnu-ld was given.
3465 if test "${with_gnu_ld+set}" = set; then :
3466   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3467 else
3468   with_gnu_ld=no
3469 fi
3470
3471 ac_prog=ld
3472 if test "$GCC" = yes; then
3473   # Check if gcc -print-prog-name=ld gives a path.
3474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3475 $as_echo_n "checking for ld used by $CC... " >&6; }
3476   case $host in
3477   *-*-mingw*)
3478     # gcc leaves a trailing carriage return which upsets mingw
3479     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3480   *)
3481     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3482   esac
3483   case $ac_prog in
3484     # Accept absolute paths.
3485     [\\/]* | ?:[\\/]*)
3486       re_direlt='/[^/][^/]*/\.\./'
3487       # Canonicalize the pathname of ld
3488       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3489       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3490         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3491       done
3492       test -z "$LD" && LD="$ac_prog"
3493       ;;
3494   "")
3495     # If it fails, then pretend we aren't using GCC.
3496     ac_prog=ld
3497     ;;
3498   *)
3499     # If it is relative, then search for the first ld in PATH.
3500     with_gnu_ld=unknown
3501     ;;
3502   esac
3503 elif test "$with_gnu_ld" = yes; then
3504   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3505 $as_echo_n "checking for GNU ld... " >&6; }
3506 else
3507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3508 $as_echo_n "checking for non-GNU ld... " >&6; }
3509 fi
3510 if ${lt_cv_path_LD+:} false; then :
3511   $as_echo_n "(cached) " >&6
3512 else
3513   if test -z "$LD"; then
3514   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3515   for ac_dir in $PATH; do
3516     IFS="$lt_save_ifs"
3517     test -z "$ac_dir" && ac_dir=.
3518     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3519       lt_cv_path_LD="$ac_dir/$ac_prog"
3520       # Check to see if the program is GNU ld.  I'd rather use --version,
3521       # but apparently some variants of GNU ld only accept -v.
3522       # Break only if it was the GNU/non-GNU ld that we prefer.
3523       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3524       *GNU* | *'with BFD'*)
3525         test "$with_gnu_ld" != no && break
3526         ;;
3527       *)
3528         test "$with_gnu_ld" != yes && break
3529         ;;
3530       esac
3531     fi
3532   done
3533   IFS="$lt_save_ifs"
3534 else
3535   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3536 fi
3537 fi
3538
3539 LD="$lt_cv_path_LD"
3540 if test -n "$LD"; then
3541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3542 $as_echo "$LD" >&6; }
3543 else
3544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3546 fi
3547 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3549 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3550 if ${lt_cv_prog_gnu_ld+:} false; then :
3551   $as_echo_n "(cached) " >&6
3552 else
3553   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3554 case `$LD -v 2>&1 </dev/null` in
3555 *GNU* | *'with BFD'*)
3556   lt_cv_prog_gnu_ld=yes
3557   ;;
3558 *)
3559   lt_cv_prog_gnu_ld=no
3560   ;;
3561 esac
3562 fi
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3564 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3565 with_gnu_ld=$lt_cv_prog_gnu_ld
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3576 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3577 if ${lt_cv_path_NM+:} false; then :
3578   $as_echo_n "(cached) " >&6
3579 else
3580   if test -n "$NM"; then
3581   # Let the user override the test.
3582   lt_cv_path_NM="$NM"
3583 else
3584   lt_nm_to_check="${ac_tool_prefix}nm"
3585   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3586     lt_nm_to_check="$lt_nm_to_check nm"
3587   fi
3588   for lt_tmp_nm in $lt_nm_to_check; do
3589     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3590     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3591       IFS="$lt_save_ifs"
3592       test -z "$ac_dir" && ac_dir=.
3593       tmp_nm="$ac_dir/$lt_tmp_nm"
3594       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3595         # Check to see if the nm accepts a BSD-compat flag.
3596         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3597         #   nm: unknown option "B" ignored
3598         # Tru64's nm complains that /dev/null is an invalid object file
3599         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3600         */dev/null* | *'Invalid file or object type'*)
3601           lt_cv_path_NM="$tmp_nm -B"
3602           break
3603           ;;
3604         *)
3605           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3606           */dev/null*)
3607             lt_cv_path_NM="$tmp_nm -p"
3608             break
3609             ;;
3610           *)
3611             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3612             continue # so that we can try to find one that supports BSD flags
3613             ;;
3614           esac
3615           ;;
3616         esac
3617       fi
3618     done
3619     IFS="$lt_save_ifs"
3620   done
3621   : ${lt_cv_path_NM=no}
3622 fi
3623 fi
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3625 $as_echo "$lt_cv_path_NM" >&6; }
3626 if test "$lt_cv_path_NM" != "no"; then
3627   NM="$lt_cv_path_NM"
3628 else
3629   # Didn't find any BSD compatible name lister, look for dumpbin.
3630   if test -n "$DUMPBIN"; then :
3631     # Let the user override the test.
3632   else
3633     if test -n "$ac_tool_prefix"; then
3634   for ac_prog in dumpbin "link -dump"
3635   do
3636     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3639 $as_echo_n "checking for $ac_word... " >&6; }
3640 if ${ac_cv_prog_DUMPBIN+:} false; then :
3641   $as_echo_n "(cached) " >&6
3642 else
3643   if test -n "$DUMPBIN"; then
3644   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3645 else
3646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 for as_dir in $PATH
3648 do
3649   IFS=$as_save_IFS
3650   test -z "$as_dir" && as_dir=.
3651     for ac_exec_ext in '' $ac_executable_extensions; do
3652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3653     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3655     break 2
3656   fi
3657 done
3658   done
3659 IFS=$as_save_IFS
3660
3661 fi
3662 fi
3663 DUMPBIN=$ac_cv_prog_DUMPBIN
3664 if test -n "$DUMPBIN"; then
3665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3666 $as_echo "$DUMPBIN" >&6; }
3667 else
3668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 $as_echo "no" >&6; }
3670 fi
3671
3672
3673     test -n "$DUMPBIN" && break
3674   done
3675 fi
3676 if test -z "$DUMPBIN"; then
3677   ac_ct_DUMPBIN=$DUMPBIN
3678   for ac_prog in dumpbin "link -dump"
3679 do
3680   # Extract the first word of "$ac_prog", so it can be a program name with args.
3681 set dummy $ac_prog; ac_word=$2
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683 $as_echo_n "checking for $ac_word... " >&6; }
3684 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3685   $as_echo_n "(cached) " >&6
3686 else
3687   if test -n "$ac_ct_DUMPBIN"; then
3688   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3689 else
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 for as_dir in $PATH
3692 do
3693   IFS=$as_save_IFS
3694   test -z "$as_dir" && as_dir=.
3695     for ac_exec_ext in '' $ac_executable_extensions; do
3696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3697     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3699     break 2
3700   fi
3701 done
3702   done
3703 IFS=$as_save_IFS
3704
3705 fi
3706 fi
3707 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3708 if test -n "$ac_ct_DUMPBIN"; then
3709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3710 $as_echo "$ac_ct_DUMPBIN" >&6; }
3711 else
3712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3713 $as_echo "no" >&6; }
3714 fi
3715
3716
3717   test -n "$ac_ct_DUMPBIN" && break
3718 done
3719
3720   if test "x$ac_ct_DUMPBIN" = x; then
3721     DUMPBIN=":"
3722   else
3723     case $cross_compiling:$ac_tool_warned in
3724 yes:)
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3727 ac_tool_warned=yes ;;
3728 esac
3729     DUMPBIN=$ac_ct_DUMPBIN
3730   fi
3731 fi
3732
3733     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3734     *COFF*)
3735       DUMPBIN="$DUMPBIN -symbols"
3736       ;;
3737     *)
3738       DUMPBIN=:
3739       ;;
3740     esac
3741   fi
3742
3743   if test "$DUMPBIN" != ":"; then
3744     NM="$DUMPBIN"
3745   fi
3746 fi
3747 test -z "$NM" && NM=nm
3748
3749
3750
3751
3752
3753
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3755 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3756 if ${lt_cv_nm_interface+:} false; then :
3757   $as_echo_n "(cached) " >&6
3758 else
3759   lt_cv_nm_interface="BSD nm"
3760   echo "int some_variable = 0;" > conftest.$ac_ext
3761   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
3762   (eval "$ac_compile" 2>conftest.err)
3763   cat conftest.err >&5
3764   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3765   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3766   cat conftest.err >&5
3767   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
3768   cat conftest.out >&5
3769   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3770     lt_cv_nm_interface="MS dumpbin"
3771   fi
3772   rm -f conftest*
3773 fi
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3775 $as_echo "$lt_cv_nm_interface" >&6; }
3776
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3778 $as_echo_n "checking whether ln -s works... " >&6; }
3779 LN_S=$as_ln_s
3780 if test "$LN_S" = "ln -s"; then
3781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3782 $as_echo "yes" >&6; }
3783 else
3784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3785 $as_echo "no, using $LN_S" >&6; }
3786 fi
3787
3788 # find the maximum length of command line arguments
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3790 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3791 if ${lt_cv_sys_max_cmd_len+:} false; then :
3792   $as_echo_n "(cached) " >&6
3793 else
3794     i=0
3795   teststring="ABCD"
3796
3797   case $build_os in
3798   msdosdjgpp*)
3799     # On DJGPP, this test can blow up pretty badly due to problems in libc
3800     # (any single argument exceeding 2000 bytes causes a buffer overrun
3801     # during glob expansion).  Even if it were fixed, the result of this
3802     # check would be larger than it should be.
3803     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3804     ;;
3805
3806   gnu*)
3807     # Under GNU Hurd, this test is not required because there is
3808     # no limit to the length of command line arguments.
3809     # Libtool will interpret -1 as no limit whatsoever
3810     lt_cv_sys_max_cmd_len=-1;
3811     ;;
3812
3813   cygwin* | mingw* | cegcc*)
3814     # On Win9x/ME, this test blows up -- it succeeds, but takes
3815     # about 5 minutes as the teststring grows exponentially.
3816     # Worse, since 9x/ME are not pre-emptively multitasking,
3817     # you end up with a "frozen" computer, even though with patience
3818     # the test eventually succeeds (with a max line length of 256k).
3819     # Instead, let's just punt: use the minimum linelength reported by
3820     # all of the supported platforms: 8192 (on NT/2K/XP).
3821     lt_cv_sys_max_cmd_len=8192;
3822     ;;
3823
3824   mint*)
3825     # On MiNT this can take a long time and run out of memory.
3826     lt_cv_sys_max_cmd_len=8192;
3827     ;;
3828
3829   amigaos*)
3830     # On AmigaOS with pdksh, this test takes hours, literally.
3831     # So we just punt and use a minimum line length of 8192.
3832     lt_cv_sys_max_cmd_len=8192;
3833     ;;
3834
3835   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3836     # This has been around since 386BSD, at least.  Likely further.
3837     if test -x /sbin/sysctl; then
3838       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3839     elif test -x /usr/sbin/sysctl; then
3840       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3841     else
3842       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
3843     fi
3844     # And add a safety zone
3845     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3846     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3847     ;;
3848
3849   interix*)
3850     # We know the value 262144 and hardcode it with a safety zone (like BSD)
3851     lt_cv_sys_max_cmd_len=196608
3852     ;;
3853
3854   osf*)
3855     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3856     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3857     # nice to cause kernel panics so lets avoid the loop below.
3858     # First set a reasonable default.
3859     lt_cv_sys_max_cmd_len=16384
3860     #
3861     if test -x /sbin/sysconfig; then
3862       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3863         *1*) lt_cv_sys_max_cmd_len=-1 ;;
3864       esac
3865     fi
3866     ;;
3867   sco3.2v5*)
3868     lt_cv_sys_max_cmd_len=102400
3869     ;;
3870   sysv5* | sco5v6* | sysv4.2uw2*)
3871     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3872     if test -n "$kargmax"; then
3873       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
3874     else
3875       lt_cv_sys_max_cmd_len=32768
3876     fi
3877     ;;
3878   *)
3879     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3880     if test -n "$lt_cv_sys_max_cmd_len"; then
3881       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3882       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3883     else
3884       # Make teststring a little bigger before we do anything with it.
3885       # a 1K string should be a reasonable start.
3886       for i in 1 2 3 4 5 6 7 8 ; do
3887         teststring=$teststring$teststring
3888       done
3889       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3890       # If test is not a shell built-in, we'll probably end up computing a
3891       # maximum length that is only half of the actual maximum length, but
3892       # we can't tell.
3893       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
3894                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
3895               test $i != 17 # 1/2 MB should be enough
3896       do
3897         i=`expr $i + 1`
3898         teststring=$teststring$teststring
3899       done
3900       # Only check the string length outside the loop.
3901       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3902       teststring=
3903       # Add a significant safety factor because C++ compilers can tack on
3904       # massive amounts of additional arguments before passing them to the
3905       # linker.  It appears as though 1/2 is a usable value.
3906       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3907     fi
3908     ;;
3909   esac
3910
3911 fi
3912
3913 if test -n $lt_cv_sys_max_cmd_len ; then
3914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
3915 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3916 else
3917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
3918 $as_echo "none" >&6; }
3919 fi
3920 max_cmd_len=$lt_cv_sys_max_cmd_len
3921
3922
3923
3924
3925
3926
3927 : ${CP="cp -f"}
3928 : ${MV="mv -f"}
3929 : ${RM="rm -f"}
3930
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
3932 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
3933 # Try some XSI features
3934 xsi_shell=no
3935 ( _lt_dummy="a/b/c"
3936   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
3937       = c,a/b,b/c, \
3938     && eval 'test $(( 1 + 1 )) -eq 2 \
3939     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3940   && xsi_shell=yes
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
3942 $as_echo "$xsi_shell" >&6; }
3943
3944
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
3946 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
3947 lt_shell_append=no
3948 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3949     >/dev/null 2>&1 \
3950   && lt_shell_append=yes
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
3952 $as_echo "$lt_shell_append" >&6; }
3953
3954
3955 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3956   lt_unset=unset
3957 else
3958   lt_unset=false
3959 fi
3960
3961
3962
3963
3964
3965 # test EBCDIC or ASCII
3966 case `echo X|tr X '\101'` in
3967  A) # ASCII based system
3968     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3969   lt_SP2NL='tr \040 \012'
3970   lt_NL2SP='tr \015\012 \040\040'
3971   ;;
3972  *) # EBCDIC based system
3973   lt_SP2NL='tr \100 \n'
3974   lt_NL2SP='tr \r\n \100\100'
3975   ;;
3976 esac
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
3987 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
3988 if ${lt_cv_to_host_file_cmd+:} false; then :
3989   $as_echo_n "(cached) " >&6
3990 else
3991   case $host in
3992   *-*-mingw* )
3993     case $build in
3994       *-*-mingw* ) # actually msys
3995         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
3996         ;;
3997       *-*-cygwin* )
3998         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
3999         ;;
4000       * ) # otherwise, assume *nix
4001         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4002         ;;
4003     esac
4004     ;;
4005   *-*-cygwin* )
4006     case $build in
4007       *-*-mingw* ) # actually msys
4008         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4009         ;;
4010       *-*-cygwin* )
4011         lt_cv_to_host_file_cmd=func_convert_file_noop
4012         ;;
4013       * ) # otherwise, assume *nix
4014         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4015         ;;
4016     esac
4017     ;;
4018   * ) # unhandled hosts (and "normal" native builds)
4019     lt_cv_to_host_file_cmd=func_convert_file_noop
4020     ;;
4021 esac
4022
4023 fi
4024
4025 to_host_file_cmd=$lt_cv_to_host_file_cmd
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4027 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4028
4029
4030
4031
4032
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4034 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4035 if ${lt_cv_to_tool_file_cmd+:} false; then :
4036   $as_echo_n "(cached) " >&6
4037 else
4038   #assume ordinary cross tools, or native build.
4039 lt_cv_to_tool_file_cmd=func_convert_file_noop
4040 case $host in
4041   *-*-mingw* )
4042     case $build in
4043       *-*-mingw* ) # actually msys
4044         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4045         ;;
4046     esac
4047     ;;
4048 esac
4049
4050 fi
4051
4052 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4054 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4055
4056
4057
4058
4059
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4061 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4062 if ${lt_cv_ld_reload_flag+:} false; then :
4063   $as_echo_n "(cached) " >&6
4064 else
4065   lt_cv_ld_reload_flag='-r'
4066 fi
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4068 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4069 reload_flag=$lt_cv_ld_reload_flag
4070 case $reload_flag in
4071 "" | " "*) ;;
4072 *) reload_flag=" $reload_flag" ;;
4073 esac
4074 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4075 case $host_os in
4076   cygwin* | mingw* | pw32* | cegcc*)
4077     if test "$GCC" != yes; then
4078       reload_cmds=false
4079     fi
4080     ;;
4081   darwin*)
4082     if test "$GCC" = yes; then
4083       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4084     else
4085       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4086     fi
4087     ;;
4088 esac
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098 if test -n "$ac_tool_prefix"; then
4099   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4100 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102 $as_echo_n "checking for $ac_word... " >&6; }
4103 if ${ac_cv_prog_OBJDUMP+:} false; then :
4104   $as_echo_n "(cached) " >&6
4105 else
4106   if test -n "$OBJDUMP"; then
4107   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4108 else
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4111 do
4112   IFS=$as_save_IFS
4113   test -z "$as_dir" && as_dir=.
4114     for ac_exec_ext in '' $ac_executable_extensions; do
4115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4116     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4118     break 2
4119   fi
4120 done
4121   done
4122 IFS=$as_save_IFS
4123
4124 fi
4125 fi
4126 OBJDUMP=$ac_cv_prog_OBJDUMP
4127 if test -n "$OBJDUMP"; then
4128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4129 $as_echo "$OBJDUMP" >&6; }
4130 else
4131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 $as_echo "no" >&6; }
4133 fi
4134
4135
4136 fi
4137 if test -z "$ac_cv_prog_OBJDUMP"; then
4138   ac_ct_OBJDUMP=$OBJDUMP
4139   # Extract the first word of "objdump", so it can be a program name with args.
4140 set dummy objdump; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4144   $as_echo_n "(cached) " >&6
4145 else
4146   if test -n "$ac_ct_OBJDUMP"; then
4147   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4148 else
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH
4151 do
4152   IFS=$as_save_IFS
4153   test -z "$as_dir" && as_dir=.
4154     for ac_exec_ext in '' $ac_executable_extensions; do
4155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4156     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158     break 2
4159   fi
4160 done
4161   done
4162 IFS=$as_save_IFS
4163
4164 fi
4165 fi
4166 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4167 if test -n "$ac_ct_OBJDUMP"; then
4168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4169 $as_echo "$ac_ct_OBJDUMP" >&6; }
4170 else
4171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4173 fi
4174
4175   if test "x$ac_ct_OBJDUMP" = x; then
4176     OBJDUMP="false"
4177   else
4178     case $cross_compiling:$ac_tool_warned in
4179 yes:)
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4182 ac_tool_warned=yes ;;
4183 esac
4184     OBJDUMP=$ac_ct_OBJDUMP
4185   fi
4186 else
4187   OBJDUMP="$ac_cv_prog_OBJDUMP"
4188 fi
4189
4190 test -z "$OBJDUMP" && OBJDUMP=objdump
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4201 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4202 if ${lt_cv_deplibs_check_method+:} false; then :
4203   $as_echo_n "(cached) " >&6
4204 else
4205   lt_cv_file_magic_cmd='$MAGIC_CMD'
4206 lt_cv_file_magic_test_file=
4207 lt_cv_deplibs_check_method='unknown'
4208 # Need to set the preceding variable on all platforms that support
4209 # interlibrary dependencies.
4210 # 'none' -- dependencies not supported.
4211 # `unknown' -- same as none, but documents that we really don't know.
4212 # 'pass_all' -- all dependencies passed with no checks.
4213 # 'test_compile' -- check by making test program.
4214 # 'file_magic [[regex]]' -- check by looking for files in library path
4215 # which responds to the $file_magic_cmd with a given extended regex.
4216 # If you have `file' or equivalent on your system and you're not sure
4217 # whether `pass_all' will *always* work, you probably want this one.
4218
4219 case $host_os in
4220 aix[4-9]*)
4221   lt_cv_deplibs_check_method=pass_all
4222   ;;
4223
4224 beos*)
4225   lt_cv_deplibs_check_method=pass_all
4226   ;;
4227
4228 bsdi[45]*)
4229   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4230   lt_cv_file_magic_cmd='/usr/bin/file -L'
4231   lt_cv_file_magic_test_file=/shlib/libc.so
4232   ;;
4233
4234 cygwin*)
4235   # func_win32_libid is a shell function defined in ltmain.sh
4236   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4237   lt_cv_file_magic_cmd='func_win32_libid'
4238   ;;
4239
4240 mingw* | pw32*)
4241   # Base MSYS/MinGW do not provide the 'file' command needed by
4242   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4243   # unless we find 'file', for example because we are cross-compiling.
4244   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4245   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4246     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4247     lt_cv_file_magic_cmd='func_win32_libid'
4248   else
4249     # Keep this pattern in sync with the one in func_win32_libid.
4250     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4251     lt_cv_file_magic_cmd='$OBJDUMP -f'
4252   fi
4253   ;;
4254
4255 cegcc*)
4256   # use the weaker test based on 'objdump'. See mingw*.
4257   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4258   lt_cv_file_magic_cmd='$OBJDUMP -f'
4259   ;;
4260
4261 darwin* | rhapsody*)
4262   lt_cv_deplibs_check_method=pass_all
4263   ;;
4264
4265 freebsd* | dragonfly*)
4266   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4267     case $host_cpu in
4268     i*86 )
4269       # Not sure whether the presence of OpenBSD here was a mistake.
4270       # Let's accept both of them until this is cleared up.
4271       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4272       lt_cv_file_magic_cmd=/usr/bin/file
4273       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4274       ;;
4275     esac
4276   else
4277     lt_cv_deplibs_check_method=pass_all
4278   fi
4279   ;;
4280
4281 gnu*)
4282   lt_cv_deplibs_check_method=pass_all
4283   ;;
4284
4285 haiku*)
4286   lt_cv_deplibs_check_method=pass_all
4287   ;;
4288
4289 hpux10.20* | hpux11*)
4290   lt_cv_file_magic_cmd=/usr/bin/file
4291   case $host_cpu in
4292   ia64*)
4293     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4294     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4295     ;;
4296   hppa*64*)
4297     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]'
4298     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4299     ;;
4300   *)
4301     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4302     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4303     ;;
4304   esac
4305   ;;
4306
4307 interix[3-9]*)
4308   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4309   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4310   ;;
4311
4312 irix5* | irix6* | nonstopux*)
4313   case $LD in
4314   *-32|*"-32 ") libmagic=32-bit;;
4315   *-n32|*"-n32 ") libmagic=N32;;
4316   *-64|*"-64 ") libmagic=64-bit;;
4317   *) libmagic=never-match;;
4318   esac
4319   lt_cv_deplibs_check_method=pass_all
4320   ;;
4321
4322 # This must be Linux ELF.
4323 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4324   lt_cv_deplibs_check_method=pass_all
4325   ;;
4326
4327 netbsd*)
4328   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4329     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4330   else
4331     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4332   fi
4333   ;;
4334
4335 newos6*)
4336   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4337   lt_cv_file_magic_cmd=/usr/bin/file
4338   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4339   ;;
4340
4341 *nto* | *qnx*)
4342   lt_cv_deplibs_check_method=pass_all
4343   ;;
4344
4345 openbsd*)
4346   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4347     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4348   else
4349     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4350   fi
4351   ;;
4352
4353 osf3* | osf4* | osf5*)
4354   lt_cv_deplibs_check_method=pass_all
4355   ;;
4356
4357 rdos*)
4358   lt_cv_deplibs_check_method=pass_all
4359   ;;
4360
4361 solaris*)
4362   lt_cv_deplibs_check_method=pass_all
4363   ;;
4364
4365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4366   lt_cv_deplibs_check_method=pass_all
4367   ;;
4368
4369 sysv4 | sysv4.3*)
4370   case $host_vendor in
4371   motorola)
4372     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]'
4373     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4374     ;;
4375   ncr)
4376     lt_cv_deplibs_check_method=pass_all
4377     ;;
4378   sequent)
4379     lt_cv_file_magic_cmd='/bin/file'
4380     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4381     ;;
4382   sni)
4383     lt_cv_file_magic_cmd='/bin/file'
4384     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4385     lt_cv_file_magic_test_file=/lib/libc.so
4386     ;;
4387   siemens)
4388     lt_cv_deplibs_check_method=pass_all
4389     ;;
4390   pc)
4391     lt_cv_deplibs_check_method=pass_all
4392     ;;
4393   esac
4394   ;;
4395
4396 tpf*)
4397   lt_cv_deplibs_check_method=pass_all
4398   ;;
4399 esac
4400
4401 fi
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4403 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4404
4405 file_magic_glob=
4406 want_nocaseglob=no
4407 if test "$build" = "$host"; then
4408   case $host_os in
4409   mingw* | pw32*)
4410     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4411       want_nocaseglob=yes
4412     else
4413       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4414     fi
4415     ;;
4416   esac
4417 fi
4418
4419 file_magic_cmd=$lt_cv_file_magic_cmd
4420 deplibs_check_method=$lt_cv_deplibs_check_method
4421 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444 if test -n "$ac_tool_prefix"; then
4445   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4446 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4448 $as_echo_n "checking for $ac_word... " >&6; }
4449 if ${ac_cv_prog_DLLTOOL+:} false; then :
4450   $as_echo_n "(cached) " >&6
4451 else
4452   if test -n "$DLLTOOL"; then
4453   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4454 else
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4457 do
4458   IFS=$as_save_IFS
4459   test -z "$as_dir" && as_dir=.
4460     for ac_exec_ext in '' $ac_executable_extensions; do
4461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4462     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4464     break 2
4465   fi
4466 done
4467   done
4468 IFS=$as_save_IFS
4469
4470 fi
4471 fi
4472 DLLTOOL=$ac_cv_prog_DLLTOOL
4473 if test -n "$DLLTOOL"; then
4474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4475 $as_echo "$DLLTOOL" >&6; }
4476 else
4477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4478 $as_echo "no" >&6; }
4479 fi
4480
4481
4482 fi
4483 if test -z "$ac_cv_prog_DLLTOOL"; then
4484   ac_ct_DLLTOOL=$DLLTOOL
4485   # Extract the first word of "dlltool", so it can be a program name with args.
4486 set dummy dlltool; ac_word=$2
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4488 $as_echo_n "checking for $ac_word... " >&6; }
4489 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4490   $as_echo_n "(cached) " >&6
4491 else
4492   if test -n "$ac_ct_DLLTOOL"; then
4493   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4494 else
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH
4497 do
4498   IFS=$as_save_IFS
4499   test -z "$as_dir" && as_dir=.
4500     for ac_exec_ext in '' $ac_executable_extensions; do
4501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4504     break 2
4505   fi
4506 done
4507   done
4508 IFS=$as_save_IFS
4509
4510 fi
4511 fi
4512 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4513 if test -n "$ac_ct_DLLTOOL"; then
4514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4515 $as_echo "$ac_ct_DLLTOOL" >&6; }
4516 else
4517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4518 $as_echo "no" >&6; }
4519 fi
4520
4521   if test "x$ac_ct_DLLTOOL" = x; then
4522     DLLTOOL="false"
4523   else
4524     case $cross_compiling:$ac_tool_warned in
4525 yes:)
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4528 ac_tool_warned=yes ;;
4529 esac
4530     DLLTOOL=$ac_ct_DLLTOOL
4531   fi
4532 else
4533   DLLTOOL="$ac_cv_prog_DLLTOOL"
4534 fi
4535
4536 test -z "$DLLTOOL" && DLLTOOL=dlltool
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4548 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4549 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4550   $as_echo_n "(cached) " >&6
4551 else
4552   lt_cv_sharedlib_from_linklib_cmd='unknown'
4553
4554 case $host_os in
4555 cygwin* | mingw* | pw32* | cegcc*)
4556   # two different shell functions defined in ltmain.sh
4557   # decide which to use based on capabilities of $DLLTOOL
4558   case `$DLLTOOL --help 2>&1` in
4559   *--identify-strict*)
4560     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4561     ;;
4562   *)
4563     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4564     ;;
4565   esac
4566   ;;
4567 *)
4568   # fallback: assume linklib IS sharedlib
4569   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4570   ;;
4571 esac
4572
4573 fi
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4575 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4576 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4577 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4578
4579
4580
4581
4582
4583
4584
4585
4586 if test -n "$ac_tool_prefix"; then
4587   for ac_prog in ar
4588   do
4589     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if ${ac_cv_prog_AR+:} false; then :
4594   $as_echo_n "(cached) " >&6
4595 else
4596   if test -n "$AR"; then
4597   ac_cv_prog_AR="$AR" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4601 do
4602   IFS=$as_save_IFS
4603   test -z "$as_dir" && as_dir=.
4604     for ac_exec_ext in '' $ac_executable_extensions; do
4605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4606     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608     break 2
4609   fi
4610 done
4611   done
4612 IFS=$as_save_IFS
4613
4614 fi
4615 fi
4616 AR=$ac_cv_prog_AR
4617 if test -n "$AR"; then
4618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4619 $as_echo "$AR" >&6; }
4620 else
4621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 $as_echo "no" >&6; }
4623 fi
4624
4625
4626     test -n "$AR" && break
4627   done
4628 fi
4629 if test -z "$AR"; then
4630   ac_ct_AR=$AR
4631   for ac_prog in ar
4632 do
4633   # Extract the first word of "$ac_prog", so it can be a program name with args.
4634 set dummy $ac_prog; ac_word=$2
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636 $as_echo_n "checking for $ac_word... " >&6; }
4637 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4638   $as_echo_n "(cached) " >&6
4639 else
4640   if test -n "$ac_ct_AR"; then
4641   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4642 else
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4645 do
4646   IFS=$as_save_IFS
4647   test -z "$as_dir" && as_dir=.
4648     for ac_exec_ext in '' $ac_executable_extensions; do
4649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4650     ac_cv_prog_ac_ct_AR="$ac_prog"
4651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652     break 2
4653   fi
4654 done
4655   done
4656 IFS=$as_save_IFS
4657
4658 fi
4659 fi
4660 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4661 if test -n "$ac_ct_AR"; then
4662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4663 $as_echo "$ac_ct_AR" >&6; }
4664 else
4665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4667 fi
4668
4669
4670   test -n "$ac_ct_AR" && break
4671 done
4672
4673   if test "x$ac_ct_AR" = x; then
4674     AR="false"
4675   else
4676     case $cross_compiling:$ac_tool_warned in
4677 yes:)
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4680 ac_tool_warned=yes ;;
4681 esac
4682     AR=$ac_ct_AR
4683   fi
4684 fi
4685
4686 : ${AR=ar}
4687 : ${AR_FLAGS=cru}
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
4700 $as_echo_n "checking for archiver @FILE support... " >&6; }
4701 if ${lt_cv_ar_at_file+:} false; then :
4702   $as_echo_n "(cached) " >&6
4703 else
4704   lt_cv_ar_at_file=no
4705    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h.  */
4707
4708 int
4709 main ()
4710 {
4711
4712   ;
4713   return 0;
4714 }
4715 _ACEOF
4716 if ac_fn_c_try_compile "$LINENO"; then :
4717   echo conftest.$ac_objext > conftest.lst
4718       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4719       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4720   (eval $lt_ar_try) 2>&5
4721   ac_status=$?
4722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4723   test $ac_status = 0; }
4724       if test "$ac_status" -eq 0; then
4725         # Ensure the archiver fails upon bogus file names.
4726         rm -f conftest.$ac_objext libconftest.a
4727         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4728   (eval $lt_ar_try) 2>&5
4729   ac_status=$?
4730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4731   test $ac_status = 0; }
4732         if test "$ac_status" -ne 0; then
4733           lt_cv_ar_at_file=@
4734         fi
4735       fi
4736       rm -f conftest.* libconftest.a
4737
4738 fi
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740
4741 fi
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
4743 $as_echo "$lt_cv_ar_at_file" >&6; }
4744
4745 if test "x$lt_cv_ar_at_file" = xno; then
4746   archiver_list_spec=
4747 else
4748   archiver_list_spec=$lt_cv_ar_at_file
4749 fi
4750
4751
4752
4753
4754
4755
4756
4757 if test -n "$ac_tool_prefix"; then
4758   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4759 set dummy ${ac_tool_prefix}strip; ac_word=$2
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761 $as_echo_n "checking for $ac_word... " >&6; }
4762 if ${ac_cv_prog_STRIP+:} false; then :
4763   $as_echo_n "(cached) " >&6
4764 else
4765   if test -n "$STRIP"; then
4766   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4767 else
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 for as_dir in $PATH
4770 do
4771   IFS=$as_save_IFS
4772   test -z "$as_dir" && as_dir=.
4773     for ac_exec_ext in '' $ac_executable_extensions; do
4774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4775     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777     break 2
4778   fi
4779 done
4780   done
4781 IFS=$as_save_IFS
4782
4783 fi
4784 fi
4785 STRIP=$ac_cv_prog_STRIP
4786 if test -n "$STRIP"; then
4787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4788 $as_echo "$STRIP" >&6; }
4789 else
4790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791 $as_echo "no" >&6; }
4792 fi
4793
4794
4795 fi
4796 if test -z "$ac_cv_prog_STRIP"; then
4797   ac_ct_STRIP=$STRIP
4798   # Extract the first word of "strip", so it can be a program name with args.
4799 set dummy strip; ac_word=$2
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4801 $as_echo_n "checking for $ac_word... " >&6; }
4802 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4803   $as_echo_n "(cached) " >&6
4804 else
4805   if test -n "$ac_ct_STRIP"; then
4806   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4807 else
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 for as_dir in $PATH
4810 do
4811   IFS=$as_save_IFS
4812   test -z "$as_dir" && as_dir=.
4813     for ac_exec_ext in '' $ac_executable_extensions; do
4814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4815     ac_cv_prog_ac_ct_STRIP="strip"
4816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817     break 2
4818   fi
4819 done
4820   done
4821 IFS=$as_save_IFS
4822
4823 fi
4824 fi
4825 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4826 if test -n "$ac_ct_STRIP"; then
4827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4828 $as_echo "$ac_ct_STRIP" >&6; }
4829 else
4830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4832 fi
4833
4834   if test "x$ac_ct_STRIP" = x; then
4835     STRIP=":"
4836   else
4837     case $cross_compiling:$ac_tool_warned in
4838 yes:)
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4841 ac_tool_warned=yes ;;
4842 esac
4843     STRIP=$ac_ct_STRIP
4844   fi
4845 else
4846   STRIP="$ac_cv_prog_STRIP"
4847 fi
4848
4849 test -z "$STRIP" && STRIP=:
4850
4851
4852
4853
4854
4855
4856 if test -n "$ac_tool_prefix"; then
4857   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4858 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860 $as_echo_n "checking for $ac_word... " >&6; }
4861 if ${ac_cv_prog_RANLIB+:} false; then :
4862   $as_echo_n "(cached) " >&6
4863 else
4864   if test -n "$RANLIB"; then
4865   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4866 else
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4869 do
4870   IFS=$as_save_IFS
4871   test -z "$as_dir" && as_dir=.
4872     for ac_exec_ext in '' $ac_executable_extensions; do
4873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4874     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876     break 2
4877   fi
4878 done
4879   done
4880 IFS=$as_save_IFS
4881
4882 fi
4883 fi
4884 RANLIB=$ac_cv_prog_RANLIB
4885 if test -n "$RANLIB"; then
4886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4887 $as_echo "$RANLIB" >&6; }
4888 else
4889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890 $as_echo "no" >&6; }
4891 fi
4892
4893
4894 fi
4895 if test -z "$ac_cv_prog_RANLIB"; then
4896   ac_ct_RANLIB=$RANLIB
4897   # Extract the first word of "ranlib", so it can be a program name with args.
4898 set dummy ranlib; ac_word=$2
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900 $as_echo_n "checking for $ac_word... " >&6; }
4901 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4902   $as_echo_n "(cached) " >&6
4903 else
4904   if test -n "$ac_ct_RANLIB"; then
4905   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4906 else
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 for as_dir in $PATH
4909 do
4910   IFS=$as_save_IFS
4911   test -z "$as_dir" && as_dir=.
4912     for ac_exec_ext in '' $ac_executable_extensions; do
4913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4914     ac_cv_prog_ac_ct_RANLIB="ranlib"
4915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916     break 2
4917   fi
4918 done
4919   done
4920 IFS=$as_save_IFS
4921
4922 fi
4923 fi
4924 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4925 if test -n "$ac_ct_RANLIB"; then
4926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4927 $as_echo "$ac_ct_RANLIB" >&6; }
4928 else
4929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930 $as_echo "no" >&6; }
4931 fi
4932
4933   if test "x$ac_ct_RANLIB" = x; then
4934     RANLIB=":"
4935   else
4936     case $cross_compiling:$ac_tool_warned in
4937 yes:)
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4940 ac_tool_warned=yes ;;
4941 esac
4942     RANLIB=$ac_ct_RANLIB
4943   fi
4944 else
4945   RANLIB="$ac_cv_prog_RANLIB"
4946 fi
4947
4948 test -z "$RANLIB" && RANLIB=:
4949
4950
4951
4952
4953
4954
4955 # Determine commands to create old-style static archives.
4956 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4957 old_postinstall_cmds='chmod 644 $oldlib'
4958 old_postuninstall_cmds=
4959
4960 if test -n "$RANLIB"; then
4961   case $host_os in
4962   openbsd*)
4963     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4964     ;;
4965   *)
4966     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4967     ;;
4968   esac
4969   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4970 fi
4971
4972 case $host_os in
4973   darwin*)
4974     lock_old_archive_extraction=yes ;;
4975   *)
4976     lock_old_archive_extraction=no ;;
4977 esac
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999 for ac_prog in gawk mawk nawk awk
5000 do
5001   # Extract the first word of "$ac_prog", so it can be a program name with args.
5002 set dummy $ac_prog; ac_word=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if ${ac_cv_prog_AWK+:} false; then :
5006   $as_echo_n "(cached) " >&6
5007 else
5008   if test -n "$AWK"; then
5009   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5010 else
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5013 do
5014   IFS=$as_save_IFS
5015   test -z "$as_dir" && as_dir=.
5016     for ac_exec_ext in '' $ac_executable_extensions; do
5017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5018     ac_cv_prog_AWK="$ac_prog"
5019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5020     break 2
5021   fi
5022 done
5023   done
5024 IFS=$as_save_IFS
5025
5026 fi
5027 fi
5028 AWK=$ac_cv_prog_AWK
5029 if test -n "$AWK"; then
5030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5031 $as_echo "$AWK" >&6; }
5032 else
5033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5035 fi
5036
5037
5038   test -n "$AWK" && break
5039 done
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059 # If no C compiler was specified, use CC.
5060 LTCC=${LTCC-"$CC"}
5061
5062 # If no C compiler flags were specified, use CFLAGS.
5063 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5064
5065 # Allow CC to be a program name with arguments.
5066 compiler=$CC
5067
5068
5069 # Check for command to grab the raw symbol name followed by C symbol from nm.
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5071 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5072 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5073   $as_echo_n "(cached) " >&6
5074 else
5075
5076 # These are sane defaults that work on at least a few old systems.
5077 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5078
5079 # Character class describing NM global symbol codes.
5080 symcode='[BCDEGRST]'
5081
5082 # Regexp to match symbols that can be accessed directly from C.
5083 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5084
5085 # Define system-specific variables.
5086 case $host_os in
5087 aix*)
5088   symcode='[BCDT]'
5089   ;;
5090 cygwin* | mingw* | pw32* | cegcc*)
5091   symcode='[ABCDGISTW]'
5092   ;;
5093 hpux*)
5094   if test "$host_cpu" = ia64; then
5095     symcode='[ABCDEGRST]'
5096   fi
5097   ;;
5098 irix* | nonstopux*)
5099   symcode='[BCDEGRST]'
5100   ;;
5101 osf*)
5102   symcode='[BCDEGQRST]'
5103   ;;
5104 solaris*)
5105   symcode='[BDRT]'
5106   ;;
5107 sco3.2v5*)
5108   symcode='[DT]'
5109   ;;
5110 sysv4.2uw2*)
5111   symcode='[DT]'
5112   ;;
5113 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5114   symcode='[ABDT]'
5115   ;;
5116 sysv4)
5117   symcode='[DFNSTU]'
5118   ;;
5119 esac
5120
5121 # If we're using GNU nm, then use its standard symbol codes.
5122 case `$NM -V 2>&1` in
5123 *GNU* | *'with BFD'*)
5124   symcode='[ABCDGIRSTW]' ;;
5125 esac
5126
5127 # Transform an extracted symbol line into a proper C declaration.
5128 # Some systems (esp. on ia64) link data and code symbols differently,
5129 # so use this general approach.
5130 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5131
5132 # Transform an extracted symbol line into symbol name and symbol address
5133 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5134 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'"
5135
5136 # Handle CRLF in mingw tool chain
5137 opt_cr=
5138 case $build_os in
5139 mingw*)
5140   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5141   ;;
5142 esac
5143
5144 # Try without a prefix underscore, then with it.
5145 for ac_symprfx in "" "_"; do
5146
5147   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5148   symxfrm="\\1 $ac_symprfx\\2 \\2"
5149
5150   # Write the raw and C identifiers.
5151   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5152     # Fake it for dumpbin and say T for any non-static function
5153     # and D for any global variable.
5154     # Also find C++ and __fastcall symbols from MSVC++,
5155     # which start with @ or ?.
5156     lt_cv_sys_global_symbol_pipe="$AWK '"\
5157 "     {last_section=section; section=\$ 3};"\
5158 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5159 "     \$ 0!~/External *\|/{next};"\
5160 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5161 "     {if(hide[section]) next};"\
5162 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5163 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5164 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5165 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5166 "     ' prfx=^$ac_symprfx"
5167   else
5168     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5169   fi
5170   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5171
5172   # Check to see that the pipe works correctly.
5173   pipe_works=no
5174
5175   rm -f conftest*
5176   cat > conftest.$ac_ext <<_LT_EOF
5177 #ifdef __cplusplus
5178 extern "C" {
5179 #endif
5180 char nm_test_var;
5181 void nm_test_func(void);
5182 void nm_test_func(void){}
5183 #ifdef __cplusplus
5184 }
5185 #endif
5186 int main(){nm_test_var='a';nm_test_func();return(0);}
5187 _LT_EOF
5188
5189   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5190   (eval $ac_compile) 2>&5
5191   ac_status=$?
5192   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5193   test $ac_status = 0; }; then
5194     # Now try to grab the symbols.
5195     nlist=conftest.nm
5196     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5197   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5198   ac_status=$?
5199   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5200   test $ac_status = 0; } && test -s "$nlist"; then
5201       # Try sorting and uniquifying the output.
5202       if sort "$nlist" | uniq > "$nlist"T; then
5203         mv -f "$nlist"T "$nlist"
5204       else
5205         rm -f "$nlist"T
5206       fi
5207
5208       # Make sure that we snagged all the symbols we need.
5209       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5210         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5211           cat <<_LT_EOF > conftest.$ac_ext
5212 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5213 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5214 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5215    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5216 # define LT_DLSYM_CONST
5217 #elif defined(__osf__)
5218 /* This system does not cope well with relocations in const data.  */
5219 # define LT_DLSYM_CONST
5220 #else
5221 # define LT_DLSYM_CONST const
5222 #endif
5223
5224 #ifdef __cplusplus
5225 extern "C" {
5226 #endif
5227
5228 _LT_EOF
5229           # Now generate the symbol file.
5230           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5231
5232           cat <<_LT_EOF >> conftest.$ac_ext
5233
5234 /* The mapping between symbol names and symbols.  */
5235 LT_DLSYM_CONST struct {
5236   const char *name;
5237   void       *address;
5238 }
5239 lt__PROGRAM__LTX_preloaded_symbols[] =
5240 {
5241   { "@PROGRAM@", (void *) 0 },
5242 _LT_EOF
5243           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5244           cat <<\_LT_EOF >> conftest.$ac_ext
5245   {0, (void *) 0}
5246 };
5247
5248 /* This works around a problem in FreeBSD linker */
5249 #ifdef FREEBSD_WORKAROUND
5250 static const void *lt_preloaded_setup() {
5251   return lt__PROGRAM__LTX_preloaded_symbols;
5252 }
5253 #endif
5254
5255 #ifdef __cplusplus
5256 }
5257 #endif
5258 _LT_EOF
5259           # Now try linking the two files.
5260           mv conftest.$ac_objext conftstm.$ac_objext
5261           lt_globsym_save_LIBS=$LIBS
5262           lt_globsym_save_CFLAGS=$CFLAGS
5263           LIBS="conftstm.$ac_objext"
5264           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5265           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5266   (eval $ac_link) 2>&5
5267   ac_status=$?
5268   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5269   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5270             pipe_works=yes
5271           fi
5272           LIBS=$lt_globsym_save_LIBS
5273           CFLAGS=$lt_globsym_save_CFLAGS
5274         else
5275           echo "cannot find nm_test_func in $nlist" >&5
5276         fi
5277       else
5278         echo "cannot find nm_test_var in $nlist" >&5
5279       fi
5280     else
5281       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5282     fi
5283   else
5284     echo "$progname: failed program was:" >&5
5285     cat conftest.$ac_ext >&5
5286   fi
5287   rm -rf conftest* conftst*
5288
5289   # Do not use the global_symbol_pipe unless it works.
5290   if test "$pipe_works" = yes; then
5291     break
5292   else
5293     lt_cv_sys_global_symbol_pipe=
5294   fi
5295 done
5296
5297 fi
5298
5299 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5300   lt_cv_sys_global_symbol_to_cdecl=
5301 fi
5302 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5304 $as_echo "failed" >&6; }
5305 else
5306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5307 $as_echo "ok" >&6; }
5308 fi
5309
5310 # Response file support.
5311 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5312   nm_file_list_spec='@'
5313 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5314   nm_file_list_spec='@'
5315 fi
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5344 $as_echo_n "checking for sysroot... " >&6; }
5345
5346 # Check whether --with-sysroot was given.
5347 if test "${with_sysroot+set}" = set; then :
5348   withval=$with_sysroot;
5349 else
5350   with_sysroot=no
5351 fi
5352
5353
5354 lt_sysroot=
5355 case ${with_sysroot} in #(
5356  yes)
5357    if test "$GCC" = yes; then
5358      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5359    fi
5360    ;; #(
5361  /*)
5362    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5363    ;; #(
5364  no|'')
5365    ;; #(
5366  *)
5367    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5368 $as_echo "${with_sysroot}" >&6; }
5369    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5370    ;;
5371 esac
5372
5373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5374 $as_echo "${lt_sysroot:-no}" >&6; }
5375
5376
5377
5378
5379
5380 # Check whether --enable-libtool-lock was given.
5381 if test "${enable_libtool_lock+set}" = set; then :
5382   enableval=$enable_libtool_lock;
5383 fi
5384
5385 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5386
5387 # Some flags need to be propagated to the compiler or linker for good
5388 # libtool support.
5389 case $host in
5390 ia64-*-hpux*)
5391   # Find out which ABI we are using.
5392   echo 'int i;' > conftest.$ac_ext
5393   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5394   (eval $ac_compile) 2>&5
5395   ac_status=$?
5396   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5397   test $ac_status = 0; }; then
5398     case `/usr/bin/file conftest.$ac_objext` in
5399       *ELF-32*)
5400         HPUX_IA64_MODE="32"
5401         ;;
5402       *ELF-64*)
5403         HPUX_IA64_MODE="64"
5404         ;;
5405     esac
5406   fi
5407   rm -rf conftest*
5408   ;;
5409 *-*-irix6*)
5410   # Find out which ABI we are using.
5411   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5412   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5413   (eval $ac_compile) 2>&5
5414   ac_status=$?
5415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5416   test $ac_status = 0; }; then
5417     if test "$lt_cv_prog_gnu_ld" = yes; then
5418       case `/usr/bin/file conftest.$ac_objext` in
5419         *32-bit*)
5420           LD="${LD-ld} -melf32bsmip"
5421           ;;
5422         *N32*)
5423           LD="${LD-ld} -melf32bmipn32"
5424           ;;
5425         *64-bit*)
5426           LD="${LD-ld} -melf64bmip"
5427         ;;
5428       esac
5429     else
5430       case `/usr/bin/file conftest.$ac_objext` in
5431         *32-bit*)
5432           LD="${LD-ld} -32"
5433           ;;
5434         *N32*)
5435           LD="${LD-ld} -n32"
5436           ;;
5437         *64-bit*)
5438           LD="${LD-ld} -64"
5439           ;;
5440       esac
5441     fi
5442   fi
5443   rm -rf conftest*
5444   ;;
5445
5446 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5447 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5448   # Find out which ABI we are using.
5449   echo 'int i;' > conftest.$ac_ext
5450   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5451   (eval $ac_compile) 2>&5
5452   ac_status=$?
5453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5454   test $ac_status = 0; }; then
5455     case `/usr/bin/file conftest.o` in
5456       *32-bit*)
5457         case $host in
5458           x86_64-*kfreebsd*-gnu)
5459             LD="${LD-ld} -m elf_i386_fbsd"
5460             ;;
5461           x86_64-*linux*)
5462             LD="${LD-ld} -m elf_i386"
5463             ;;
5464           ppc64-*linux*|powerpc64-*linux*)
5465             LD="${LD-ld} -m elf32ppclinux"
5466             ;;
5467           s390x-*linux*)
5468             LD="${LD-ld} -m elf_s390"
5469             ;;
5470           sparc64-*linux*)
5471             LD="${LD-ld} -m elf32_sparc"
5472             ;;
5473         esac
5474         ;;
5475       *64-bit*)
5476         case $host in
5477           x86_64-*kfreebsd*-gnu)
5478             LD="${LD-ld} -m elf_x86_64_fbsd"
5479             ;;
5480           x86_64-*linux*)
5481             LD="${LD-ld} -m elf_x86_64"
5482             ;;
5483           ppc*-*linux*|powerpc*-*linux*)
5484             LD="${LD-ld} -m elf64ppc"
5485             ;;
5486           s390*-*linux*|s390*-*tpf*)
5487             LD="${LD-ld} -m elf64_s390"
5488             ;;
5489           sparc*-*linux*)
5490             LD="${LD-ld} -m elf64_sparc"
5491             ;;
5492         esac
5493         ;;
5494     esac
5495   fi
5496   rm -rf conftest*
5497   ;;
5498
5499 *-*-sco3.2v5*)
5500   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5501   SAVE_CFLAGS="$CFLAGS"
5502   CFLAGS="$CFLAGS -belf"
5503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5504 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5505 if ${lt_cv_cc_needs_belf+:} false; then :
5506   $as_echo_n "(cached) " >&6
5507 else
5508   ac_ext=c
5509 ac_cpp='$CPP $CPPFLAGS'
5510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5513
5514      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h.  */
5516
5517 int
5518 main ()
5519 {
5520
5521   ;
5522   return 0;
5523 }
5524 _ACEOF
5525 if ac_fn_c_try_link "$LINENO"; then :
5526   lt_cv_cc_needs_belf=yes
5527 else
5528   lt_cv_cc_needs_belf=no
5529 fi
5530 rm -f core conftest.err conftest.$ac_objext \
5531     conftest$ac_exeext conftest.$ac_ext
5532      ac_ext=c
5533 ac_cpp='$CPP $CPPFLAGS'
5534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5537
5538 fi
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5540 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5541   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5542     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5543     CFLAGS="$SAVE_CFLAGS"
5544   fi
5545   ;;
5546 sparc*-*solaris*)
5547   # Find out which ABI we are using.
5548   echo 'int i;' > conftest.$ac_ext
5549   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5550   (eval $ac_compile) 2>&5
5551   ac_status=$?
5552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5553   test $ac_status = 0; }; then
5554     case `/usr/bin/file conftest.o` in
5555     *64-bit*)
5556       case $lt_cv_prog_gnu_ld in
5557       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5558       *)
5559         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5560           LD="${LD-ld} -64"
5561         fi
5562         ;;
5563       esac
5564       ;;
5565     esac
5566   fi
5567   rm -rf conftest*
5568   ;;
5569 esac
5570
5571 need_locks="$enable_libtool_lock"
5572
5573 if test -n "$ac_tool_prefix"; then
5574   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5575 set dummy ${ac_tool_prefix}mt; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
5579   $as_echo_n "(cached) " >&6
5580 else
5581   if test -n "$MANIFEST_TOOL"; then
5582   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5583 else
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5586 do
5587   IFS=$as_save_IFS
5588   test -z "$as_dir" && as_dir=.
5589     for ac_exec_ext in '' $ac_executable_extensions; do
5590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593     break 2
5594   fi
5595 done
5596   done
5597 IFS=$as_save_IFS
5598
5599 fi
5600 fi
5601 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5602 if test -n "$MANIFEST_TOOL"; then
5603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
5604 $as_echo "$MANIFEST_TOOL" >&6; }
5605 else
5606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5608 fi
5609
5610
5611 fi
5612 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5613   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5614   # Extract the first word of "mt", so it can be a program name with args.
5615 set dummy mt; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
5619   $as_echo_n "(cached) " >&6
5620 else
5621   if test -n "$ac_ct_MANIFEST_TOOL"; then
5622   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5623 else
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5626 do
5627   IFS=$as_save_IFS
5628   test -z "$as_dir" && as_dir=.
5629     for ac_exec_ext in '' $ac_executable_extensions; do
5630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5631     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633     break 2
5634   fi
5635 done
5636   done
5637 IFS=$as_save_IFS
5638
5639 fi
5640 fi
5641 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5642 if test -n "$ac_ct_MANIFEST_TOOL"; then
5643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
5644 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
5645 else
5646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5648 fi
5649
5650   if test "x$ac_ct_MANIFEST_TOOL" = x; then
5651     MANIFEST_TOOL=":"
5652   else
5653     case $cross_compiling:$ac_tool_warned in
5654 yes:)
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5657 ac_tool_warned=yes ;;
5658 esac
5659     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5660   fi
5661 else
5662   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5663 fi
5664
5665 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
5667 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
5668 if ${lt_cv_path_mainfest_tool+:} false; then :
5669   $as_echo_n "(cached) " >&6
5670 else
5671   lt_cv_path_mainfest_tool=no
5672   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5673   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5674   cat conftest.err >&5
5675   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5676     lt_cv_path_mainfest_tool=yes
5677   fi
5678   rm -f conftest*
5679 fi
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
5681 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
5682 if test "x$lt_cv_path_mainfest_tool" != xyes; then
5683   MANIFEST_TOOL=:
5684 fi
5685
5686
5687
5688
5689
5690
5691   case $host_os in
5692     rhapsody* | darwin*)
5693     if test -n "$ac_tool_prefix"; then
5694   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5695 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697 $as_echo_n "checking for $ac_word... " >&6; }
5698 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5699   $as_echo_n "(cached) " >&6
5700 else
5701   if test -n "$DSYMUTIL"; then
5702   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5703 else
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH
5706 do
5707   IFS=$as_save_IFS
5708   test -z "$as_dir" && as_dir=.
5709     for ac_exec_ext in '' $ac_executable_extensions; do
5710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5711     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713     break 2
5714   fi
5715 done
5716   done
5717 IFS=$as_save_IFS
5718
5719 fi
5720 fi
5721 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5722 if test -n "$DSYMUTIL"; then
5723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5724 $as_echo "$DSYMUTIL" >&6; }
5725 else
5726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727 $as_echo "no" >&6; }
5728 fi
5729
5730
5731 fi
5732 if test -z "$ac_cv_prog_DSYMUTIL"; then
5733   ac_ct_DSYMUTIL=$DSYMUTIL
5734   # Extract the first word of "dsymutil", so it can be a program name with args.
5735 set dummy dsymutil; ac_word=$2
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737 $as_echo_n "checking for $ac_word... " >&6; }
5738 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5739   $as_echo_n "(cached) " >&6
5740 else
5741   if test -n "$ac_ct_DSYMUTIL"; then
5742   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5743 else
5744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 for as_dir in $PATH
5746 do
5747   IFS=$as_save_IFS
5748   test -z "$as_dir" && as_dir=.
5749     for ac_exec_ext in '' $ac_executable_extensions; do
5750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5751     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5753     break 2
5754   fi
5755 done
5756   done
5757 IFS=$as_save_IFS
5758
5759 fi
5760 fi
5761 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5762 if test -n "$ac_ct_DSYMUTIL"; then
5763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5764 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5765 else
5766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767 $as_echo "no" >&6; }
5768 fi
5769
5770   if test "x$ac_ct_DSYMUTIL" = x; then
5771     DSYMUTIL=":"
5772   else
5773     case $cross_compiling:$ac_tool_warned in
5774 yes:)
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5777 ac_tool_warned=yes ;;
5778 esac
5779     DSYMUTIL=$ac_ct_DSYMUTIL
5780   fi
5781 else
5782   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5783 fi
5784
5785     if test -n "$ac_tool_prefix"; then
5786   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5787 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789 $as_echo_n "checking for $ac_word... " >&6; }
5790 if ${ac_cv_prog_NMEDIT+:} false; then :
5791   $as_echo_n "(cached) " >&6
5792 else
5793   if test -n "$NMEDIT"; then
5794   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5795 else
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5798 do
5799   IFS=$as_save_IFS
5800   test -z "$as_dir" && as_dir=.
5801     for ac_exec_ext in '' $ac_executable_extensions; do
5802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5803     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805     break 2
5806   fi
5807 done
5808   done
5809 IFS=$as_save_IFS
5810
5811 fi
5812 fi
5813 NMEDIT=$ac_cv_prog_NMEDIT
5814 if test -n "$NMEDIT"; then
5815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5816 $as_echo "$NMEDIT" >&6; }
5817 else
5818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5820 fi
5821
5822
5823 fi
5824 if test -z "$ac_cv_prog_NMEDIT"; then
5825   ac_ct_NMEDIT=$NMEDIT
5826   # Extract the first word of "nmedit", so it can be a program name with args.
5827 set dummy nmedit; ac_word=$2
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829 $as_echo_n "checking for $ac_word... " >&6; }
5830 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5831   $as_echo_n "(cached) " >&6
5832 else
5833   if test -n "$ac_ct_NMEDIT"; then
5834   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5835 else
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 for as_dir in $PATH
5838 do
5839   IFS=$as_save_IFS
5840   test -z "$as_dir" && as_dir=.
5841     for ac_exec_ext in '' $ac_executable_extensions; do
5842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5843     ac_cv_prog_ac_ct_NMEDIT="nmedit"
5844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845     break 2
5846   fi
5847 done
5848   done
5849 IFS=$as_save_IFS
5850
5851 fi
5852 fi
5853 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5854 if test -n "$ac_ct_NMEDIT"; then
5855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5856 $as_echo "$ac_ct_NMEDIT" >&6; }
5857 else
5858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 $as_echo "no" >&6; }
5860 fi
5861
5862   if test "x$ac_ct_NMEDIT" = x; then
5863     NMEDIT=":"
5864   else
5865     case $cross_compiling:$ac_tool_warned in
5866 yes:)
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5869 ac_tool_warned=yes ;;
5870 esac
5871     NMEDIT=$ac_ct_NMEDIT
5872   fi
5873 else
5874   NMEDIT="$ac_cv_prog_NMEDIT"
5875 fi
5876
5877     if test -n "$ac_tool_prefix"; then
5878   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5879 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881 $as_echo_n "checking for $ac_word... " >&6; }
5882 if ${ac_cv_prog_LIPO+:} false; then :
5883   $as_echo_n "(cached) " >&6
5884 else
5885   if test -n "$LIPO"; then
5886   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5887 else
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 for as_dir in $PATH
5890 do
5891   IFS=$as_save_IFS
5892   test -z "$as_dir" && as_dir=.
5893     for ac_exec_ext in '' $ac_executable_extensions; do
5894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5895     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897     break 2
5898   fi
5899 done
5900   done
5901 IFS=$as_save_IFS
5902
5903 fi
5904 fi
5905 LIPO=$ac_cv_prog_LIPO
5906 if test -n "$LIPO"; then
5907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5908 $as_echo "$LIPO" >&6; }
5909 else
5910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911 $as_echo "no" >&6; }
5912 fi
5913
5914
5915 fi
5916 if test -z "$ac_cv_prog_LIPO"; then
5917   ac_ct_LIPO=$LIPO
5918   # Extract the first word of "lipo", so it can be a program name with args.
5919 set dummy lipo; ac_word=$2
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921 $as_echo_n "checking for $ac_word... " >&6; }
5922 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5923   $as_echo_n "(cached) " >&6
5924 else
5925   if test -n "$ac_ct_LIPO"; then
5926   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5927 else
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931   IFS=$as_save_IFS
5932   test -z "$as_dir" && as_dir=.
5933     for ac_exec_ext in '' $ac_executable_extensions; do
5934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935     ac_cv_prog_ac_ct_LIPO="lipo"
5936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5937     break 2
5938   fi
5939 done
5940   done
5941 IFS=$as_save_IFS
5942
5943 fi
5944 fi
5945 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5946 if test -n "$ac_ct_LIPO"; then
5947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5948 $as_echo "$ac_ct_LIPO" >&6; }
5949 else
5950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951 $as_echo "no" >&6; }
5952 fi
5953
5954   if test "x$ac_ct_LIPO" = x; then
5955     LIPO=":"
5956   else
5957     case $cross_compiling:$ac_tool_warned in
5958 yes:)
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5961 ac_tool_warned=yes ;;
5962 esac
5963     LIPO=$ac_ct_LIPO
5964   fi
5965 else
5966   LIPO="$ac_cv_prog_LIPO"
5967 fi
5968
5969     if test -n "$ac_tool_prefix"; then
5970   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5971 set dummy ${ac_tool_prefix}otool; ac_word=$2
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5973 $as_echo_n "checking for $ac_word... " >&6; }
5974 if ${ac_cv_prog_OTOOL+:} false; then :
5975   $as_echo_n "(cached) " >&6
5976 else
5977   if test -n "$OTOOL"; then
5978   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5979 else
5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 for as_dir in $PATH
5982 do
5983   IFS=$as_save_IFS
5984   test -z "$as_dir" && as_dir=.
5985     for ac_exec_ext in '' $ac_executable_extensions; do
5986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5987     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5989     break 2
5990   fi
5991 done
5992   done
5993 IFS=$as_save_IFS
5994
5995 fi
5996 fi
5997 OTOOL=$ac_cv_prog_OTOOL
5998 if test -n "$OTOOL"; then
5999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6000 $as_echo "$OTOOL" >&6; }
6001 else
6002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003 $as_echo "no" >&6; }
6004 fi
6005
6006
6007 fi
6008 if test -z "$ac_cv_prog_OTOOL"; then
6009   ac_ct_OTOOL=$OTOOL
6010   # Extract the first word of "otool", so it can be a program name with args.
6011 set dummy otool; ac_word=$2
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6013 $as_echo_n "checking for $ac_word... " >&6; }
6014 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6015   $as_echo_n "(cached) " >&6
6016 else
6017   if test -n "$ac_ct_OTOOL"; then
6018   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6019 else
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 for as_dir in $PATH
6022 do
6023   IFS=$as_save_IFS
6024   test -z "$as_dir" && as_dir=.
6025     for ac_exec_ext in '' $ac_executable_extensions; do
6026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6027     ac_cv_prog_ac_ct_OTOOL="otool"
6028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6029     break 2
6030   fi
6031 done
6032   done
6033 IFS=$as_save_IFS
6034
6035 fi
6036 fi
6037 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6038 if test -n "$ac_ct_OTOOL"; then
6039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6040 $as_echo "$ac_ct_OTOOL" >&6; }
6041 else
6042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 $as_echo "no" >&6; }
6044 fi
6045
6046   if test "x$ac_ct_OTOOL" = x; then
6047     OTOOL=":"
6048   else
6049     case $cross_compiling:$ac_tool_warned in
6050 yes:)
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6053 ac_tool_warned=yes ;;
6054 esac
6055     OTOOL=$ac_ct_OTOOL
6056   fi
6057 else
6058   OTOOL="$ac_cv_prog_OTOOL"
6059 fi
6060
6061     if test -n "$ac_tool_prefix"; then
6062   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6063 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065 $as_echo_n "checking for $ac_word... " >&6; }
6066 if ${ac_cv_prog_OTOOL64+:} false; then :
6067   $as_echo_n "(cached) " >&6
6068 else
6069   if test -n "$OTOOL64"; then
6070   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6071 else
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 for as_dir in $PATH
6074 do
6075   IFS=$as_save_IFS
6076   test -z "$as_dir" && as_dir=.
6077     for ac_exec_ext in '' $ac_executable_extensions; do
6078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6079     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081     break 2
6082   fi
6083 done
6084   done
6085 IFS=$as_save_IFS
6086
6087 fi
6088 fi
6089 OTOOL64=$ac_cv_prog_OTOOL64
6090 if test -n "$OTOOL64"; then
6091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6092 $as_echo "$OTOOL64" >&6; }
6093 else
6094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095 $as_echo "no" >&6; }
6096 fi
6097
6098
6099 fi
6100 if test -z "$ac_cv_prog_OTOOL64"; then
6101   ac_ct_OTOOL64=$OTOOL64
6102   # Extract the first word of "otool64", so it can be a program name with args.
6103 set dummy otool64; ac_word=$2
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6105 $as_echo_n "checking for $ac_word... " >&6; }
6106 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6107   $as_echo_n "(cached) " >&6
6108 else
6109   if test -n "$ac_ct_OTOOL64"; then
6110   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6111 else
6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 for as_dir in $PATH
6114 do
6115   IFS=$as_save_IFS
6116   test -z "$as_dir" && as_dir=.
6117     for ac_exec_ext in '' $ac_executable_extensions; do
6118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6119     ac_cv_prog_ac_ct_OTOOL64="otool64"
6120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6121     break 2
6122   fi
6123 done
6124   done
6125 IFS=$as_save_IFS
6126
6127 fi
6128 fi
6129 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6130 if test -n "$ac_ct_OTOOL64"; then
6131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6132 $as_echo "$ac_ct_OTOOL64" >&6; }
6133 else
6134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6135 $as_echo "no" >&6; }
6136 fi
6137
6138   if test "x$ac_ct_OTOOL64" = x; then
6139     OTOOL64=":"
6140   else
6141     case $cross_compiling:$ac_tool_warned in
6142 yes:)
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6145 ac_tool_warned=yes ;;
6146 esac
6147     OTOOL64=$ac_ct_OTOOL64
6148   fi
6149 else
6150   OTOOL64="$ac_cv_prog_OTOOL64"
6151 fi
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6180 $as_echo_n "checking for -single_module linker flag... " >&6; }
6181 if ${lt_cv_apple_cc_single_mod+:} false; then :
6182   $as_echo_n "(cached) " >&6
6183 else
6184   lt_cv_apple_cc_single_mod=no
6185       if test -z "${LT_MULTI_MODULE}"; then
6186         # By default we will add the -single_module flag. You can override
6187         # by either setting the environment variable LT_MULTI_MODULE
6188         # non-empty at configure time, or by adding -multi_module to the
6189         # link flags.
6190         rm -rf libconftest.dylib*
6191         echo "int foo(void){return 1;}" > conftest.c
6192         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6193 -dynamiclib -Wl,-single_module conftest.c" >&5
6194         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6195           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6196         _lt_result=$?
6197         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6198           lt_cv_apple_cc_single_mod=yes
6199         else
6200           cat conftest.err >&5
6201         fi
6202         rm -rf libconftest.dylib*
6203         rm -f conftest.*
6204       fi
6205 fi
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6207 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6208     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6209 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6210 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6211   $as_echo_n "(cached) " >&6
6212 else
6213   lt_cv_ld_exported_symbols_list=no
6214       save_LDFLAGS=$LDFLAGS
6215       echo "_main" > conftest.sym
6216       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6217       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h.  */
6219
6220 int
6221 main ()
6222 {
6223
6224   ;
6225   return 0;
6226 }
6227 _ACEOF
6228 if ac_fn_c_try_link "$LINENO"; then :
6229   lt_cv_ld_exported_symbols_list=yes
6230 else
6231   lt_cv_ld_exported_symbols_list=no
6232 fi
6233 rm -f core conftest.err conftest.$ac_objext \
6234     conftest$ac_exeext conftest.$ac_ext
6235         LDFLAGS="$save_LDFLAGS"
6236
6237 fi
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6239 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6240     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6241 $as_echo_n "checking for -force_load linker flag... " >&6; }
6242 if ${lt_cv_ld_force_load+:} false; then :
6243   $as_echo_n "(cached) " >&6
6244 else
6245   lt_cv_ld_force_load=no
6246       cat > conftest.c << _LT_EOF
6247 int forced_loaded() { return 2;}
6248 _LT_EOF
6249       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6250       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6251       echo "$AR cru libconftest.a conftest.o" >&5
6252       $AR cru libconftest.a conftest.o 2>&5
6253       echo "$RANLIB libconftest.a" >&5
6254       $RANLIB libconftest.a 2>&5
6255       cat > conftest.c << _LT_EOF
6256 int main() { return 0;}
6257 _LT_EOF
6258       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6259       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6260       _lt_result=$?
6261       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6262         lt_cv_ld_force_load=yes
6263       else
6264         cat conftest.err >&5
6265       fi
6266         rm -f conftest.err libconftest.a conftest conftest.c
6267         rm -rf conftest.dSYM
6268
6269 fi
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6271 $as_echo "$lt_cv_ld_force_load" >&6; }
6272     case $host_os in
6273     rhapsody* | darwin1.[012])
6274       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6275     darwin1.*)
6276       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6277     darwin*) # darwin 5.x on
6278       # if running on 10.5 or later, the deployment target defaults
6279       # to the OS version, if on x86, and 10.4, the deployment
6280       # target defaults to 10.4. Don't you love it?
6281       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6282         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6283           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6284         10.[012]*)
6285           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6286         10.*)
6287           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6288       esac
6289     ;;
6290   esac
6291     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6292       _lt_dar_single_mod='$single_module'
6293     fi
6294     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6295       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6296     else
6297       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6298     fi
6299     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6300       _lt_dsymutil='~$DSYMUTIL $lib || :'
6301     else
6302       _lt_dsymutil=
6303     fi
6304     ;;
6305   esac
6306
6307 ac_ext=c
6308 ac_cpp='$CPP $CPPFLAGS'
6309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6313 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6314 # On Suns, sometimes $CPP names a directory.
6315 if test -n "$CPP" && test -d "$CPP"; then
6316   CPP=
6317 fi
6318 if test -z "$CPP"; then
6319   if ${ac_cv_prog_CPP+:} false; then :
6320   $as_echo_n "(cached) " >&6
6321 else
6322       # Double quotes because CPP needs to be expanded
6323     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6324     do
6325       ac_preproc_ok=false
6326 for ac_c_preproc_warn_flag in '' yes
6327 do
6328   # Use a header file that comes with gcc, so configuring glibc
6329   # with a fresh cross-compiler works.
6330   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6331   # <limits.h> exists even on freestanding compilers.
6332   # On the NeXT, cc -E runs the code through the compiler's parser,
6333   # not just through cpp. "Syntax error" is here to catch this case.
6334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335 /* end confdefs.h.  */
6336 #ifdef __STDC__
6337 # include <limits.h>
6338 #else
6339 # include <assert.h>
6340 #endif
6341                      Syntax error
6342 _ACEOF
6343 if ac_fn_c_try_cpp "$LINENO"; then :
6344
6345 else
6346   # Broken: fails on valid input.
6347 continue
6348 fi
6349 rm -f conftest.err conftest.i conftest.$ac_ext
6350
6351   # OK, works on sane cases.  Now check whether nonexistent headers
6352   # can be detected and how.
6353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h.  */
6355 #include <ac_nonexistent.h>
6356 _ACEOF
6357 if ac_fn_c_try_cpp "$LINENO"; then :
6358   # Broken: success on invalid input.
6359 continue
6360 else
6361   # Passes both tests.
6362 ac_preproc_ok=:
6363 break
6364 fi
6365 rm -f conftest.err conftest.i conftest.$ac_ext
6366
6367 done
6368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6369 rm -f conftest.i conftest.err conftest.$ac_ext
6370 if $ac_preproc_ok; then :
6371   break
6372 fi
6373
6374     done
6375     ac_cv_prog_CPP=$CPP
6376
6377 fi
6378   CPP=$ac_cv_prog_CPP
6379 else
6380   ac_cv_prog_CPP=$CPP
6381 fi
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6383 $as_echo "$CPP" >&6; }
6384 ac_preproc_ok=false
6385 for ac_c_preproc_warn_flag in '' yes
6386 do
6387   # Use a header file that comes with gcc, so configuring glibc
6388   # with a fresh cross-compiler works.
6389   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6390   # <limits.h> exists even on freestanding compilers.
6391   # On the NeXT, cc -E runs the code through the compiler's parser,
6392   # not just through cpp. "Syntax error" is here to catch this case.
6393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394 /* end confdefs.h.  */
6395 #ifdef __STDC__
6396 # include <limits.h>
6397 #else
6398 # include <assert.h>
6399 #endif
6400                      Syntax error
6401 _ACEOF
6402 if ac_fn_c_try_cpp "$LINENO"; then :
6403
6404 else
6405   # Broken: fails on valid input.
6406 continue
6407 fi
6408 rm -f conftest.err conftest.i conftest.$ac_ext
6409
6410   # OK, works on sane cases.  Now check whether nonexistent headers
6411   # can be detected and how.
6412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413 /* end confdefs.h.  */
6414 #include <ac_nonexistent.h>
6415 _ACEOF
6416 if ac_fn_c_try_cpp "$LINENO"; then :
6417   # Broken: success on invalid input.
6418 continue
6419 else
6420   # Passes both tests.
6421 ac_preproc_ok=:
6422 break
6423 fi
6424 rm -f conftest.err conftest.i conftest.$ac_ext
6425
6426 done
6427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6428 rm -f conftest.i conftest.err conftest.$ac_ext
6429 if $ac_preproc_ok; then :
6430
6431 else
6432   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6434 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6435 See \`config.log' for more details" "$LINENO" 5; }
6436 fi
6437
6438 ac_ext=c
6439 ac_cpp='$CPP $CPPFLAGS'
6440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6443
6444
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6446 $as_echo_n "checking for ANSI C header files... " >&6; }
6447 if ${ac_cv_header_stdc+:} false; then :
6448   $as_echo_n "(cached) " >&6
6449 else
6450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h.  */
6452 #include <stdlib.h>
6453 #include <stdarg.h>
6454 #include <string.h>
6455 #include <float.h>
6456
6457 int
6458 main ()
6459 {
6460
6461   ;
6462   return 0;
6463 }
6464 _ACEOF
6465 if ac_fn_c_try_compile "$LINENO"; then :
6466   ac_cv_header_stdc=yes
6467 else
6468   ac_cv_header_stdc=no
6469 fi
6470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6471
6472 if test $ac_cv_header_stdc = yes; then
6473   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h.  */
6476 #include <string.h>
6477
6478 _ACEOF
6479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6480   $EGREP "memchr" >/dev/null 2>&1; then :
6481
6482 else
6483   ac_cv_header_stdc=no
6484 fi
6485 rm -f conftest*
6486
6487 fi
6488
6489 if test $ac_cv_header_stdc = yes; then
6490   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492 /* end confdefs.h.  */
6493 #include <stdlib.h>
6494
6495 _ACEOF
6496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6497   $EGREP "free" >/dev/null 2>&1; then :
6498
6499 else
6500   ac_cv_header_stdc=no
6501 fi
6502 rm -f conftest*
6503
6504 fi
6505
6506 if test $ac_cv_header_stdc = yes; then
6507   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6508   if test "$cross_compiling" = yes; then :
6509   :
6510 else
6511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512 /* end confdefs.h.  */
6513 #include <ctype.h>
6514 #include <stdlib.h>
6515 #if ((' ' & 0x0FF) == 0x020)
6516 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6517 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6518 #else
6519 # define ISLOWER(c) \
6520                    (('a' <= (c) && (c) <= 'i') \
6521                      || ('j' <= (c) && (c) <= 'r') \
6522                      || ('s' <= (c) && (c) <= 'z'))
6523 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6524 #endif
6525
6526 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6527 int
6528 main ()
6529 {
6530   int i;
6531   for (i = 0; i < 256; i++)
6532     if (XOR (islower (i), ISLOWER (i))
6533         || toupper (i) != TOUPPER (i))
6534       return 2;
6535   return 0;
6536 }
6537 _ACEOF
6538 if ac_fn_c_try_run "$LINENO"; then :
6539
6540 else
6541   ac_cv_header_stdc=no
6542 fi
6543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6544   conftest.$ac_objext conftest.beam conftest.$ac_ext
6545 fi
6546
6547 fi
6548 fi
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6550 $as_echo "$ac_cv_header_stdc" >&6; }
6551 if test $ac_cv_header_stdc = yes; then
6552
6553 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6554
6555 fi
6556
6557 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6558 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6559                   inttypes.h stdint.h unistd.h
6560 do :
6561   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6562 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6563 "
6564 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6565   cat >>confdefs.h <<_ACEOF
6566 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6567 _ACEOF
6568
6569 fi
6570
6571 done
6572
6573
6574 for ac_header in dlfcn.h
6575 do :
6576   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6577 "
6578 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6579   cat >>confdefs.h <<_ACEOF
6580 #define HAVE_DLFCN_H 1
6581 _ACEOF
6582
6583 fi
6584
6585 done
6586
6587
6588
6589
6590
6591 # Set options
6592
6593
6594
6595         enable_dlopen=no
6596
6597
6598   enable_win32_dll=no
6599
6600
6601             # Check whether --enable-shared was given.
6602 if test "${enable_shared+set}" = set; then :
6603   enableval=$enable_shared; p=${PACKAGE-default}
6604     case $enableval in
6605     yes) enable_shared=yes ;;
6606     no) enable_shared=no ;;
6607     *)
6608       enable_shared=no
6609       # Look at the argument we got.  We use all the common list separators.
6610       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6611       for pkg in $enableval; do
6612         IFS="$lt_save_ifs"
6613         if test "X$pkg" = "X$p"; then
6614           enable_shared=yes
6615         fi
6616       done
6617       IFS="$lt_save_ifs"
6618       ;;
6619     esac
6620 else
6621   enable_shared=yes
6622 fi
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632   # Check whether --enable-static was given.
6633 if test "${enable_static+set}" = set; then :
6634   enableval=$enable_static; p=${PACKAGE-default}
6635     case $enableval in
6636     yes) enable_static=yes ;;
6637     no) enable_static=no ;;
6638     *)
6639      enable_static=no
6640       # Look at the argument we got.  We use all the common list separators.
6641       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6642       for pkg in $enableval; do
6643         IFS="$lt_save_ifs"
6644         if test "X$pkg" = "X$p"; then
6645           enable_static=yes
6646         fi
6647       done
6648       IFS="$lt_save_ifs"
6649       ;;
6650     esac
6651 else
6652   enable_static=yes
6653 fi
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664 # Check whether --with-pic was given.
6665 if test "${with_pic+set}" = set; then :
6666   withval=$with_pic; pic_mode="$withval"
6667 else
6668   pic_mode=default
6669 fi
6670
6671
6672 test -z "$pic_mode" && pic_mode=default
6673
6674
6675
6676
6677
6678
6679
6680   # Check whether --enable-fast-install was given.
6681 if test "${enable_fast_install+set}" = set; then :
6682   enableval=$enable_fast_install; p=${PACKAGE-default}
6683     case $enableval in
6684     yes) enable_fast_install=yes ;;
6685     no) enable_fast_install=no ;;
6686     *)
6687       enable_fast_install=no
6688       # Look at the argument we got.  We use all the common list separators.
6689       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6690       for pkg in $enableval; do
6691         IFS="$lt_save_ifs"
6692         if test "X$pkg" = "X$p"; then
6693           enable_fast_install=yes
6694         fi
6695       done
6696       IFS="$lt_save_ifs"
6697       ;;
6698     esac
6699 else
6700   enable_fast_install=yes
6701 fi
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713 # This can be used to rebuild libtool when needed
6714 LIBTOOL_DEPS="$ltmain"
6715
6716 # Always use our own libtool.
6717 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744 test -z "$LN_S" && LN_S="ln -s"
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759 if test -n "${ZSH_VERSION+set}" ; then
6760    setopt NO_GLOB_SUBST
6761 fi
6762
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6764 $as_echo_n "checking for objdir... " >&6; }
6765 if ${lt_cv_objdir+:} false; then :
6766   $as_echo_n "(cached) " >&6
6767 else
6768   rm -f .libs 2>/dev/null
6769 mkdir .libs 2>/dev/null
6770 if test -d .libs; then
6771   lt_cv_objdir=.libs
6772 else
6773   # MS-DOS does not allow filenames that begin with a dot.
6774   lt_cv_objdir=_libs
6775 fi
6776 rmdir .libs 2>/dev/null
6777 fi
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6779 $as_echo "$lt_cv_objdir" >&6; }
6780 objdir=$lt_cv_objdir
6781
6782
6783
6784
6785
6786 cat >>confdefs.h <<_ACEOF
6787 #define LT_OBJDIR "$lt_cv_objdir/"
6788 _ACEOF
6789
6790
6791
6792
6793 case $host_os in
6794 aix3*)
6795   # AIX sometimes has problems with the GCC collect2 program.  For some
6796   # reason, if we set the COLLECT_NAMES environment variable, the problems
6797   # vanish in a puff of smoke.
6798   if test "X${COLLECT_NAMES+set}" != Xset; then
6799     COLLECT_NAMES=
6800     export COLLECT_NAMES
6801   fi
6802   ;;
6803 esac
6804
6805 # Global variables:
6806 ofile=libtool
6807 can_build_shared=yes
6808
6809 # All known linkers require a `.a' archive for static linking (except MSVC,
6810 # which needs '.lib').
6811 libext=a
6812
6813 with_gnu_ld="$lt_cv_prog_gnu_ld"
6814
6815 old_CC="$CC"
6816 old_CFLAGS="$CFLAGS"
6817
6818 # Set sane defaults for various variables
6819 test -z "$CC" && CC=cc
6820 test -z "$LTCC" && LTCC=$CC
6821 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6822 test -z "$LD" && LD=ld
6823 test -z "$ac_objext" && ac_objext=o
6824
6825 for cc_temp in $compiler""; do
6826   case $cc_temp in
6827     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6828     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6829     \-*) ;;
6830     *) break;;
6831   esac
6832 done
6833 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6834
6835
6836 # Only perform the check for file, if the check method requires it
6837 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6838 case $deplibs_check_method in
6839 file_magic*)
6840   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6842 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6843 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6844   $as_echo_n "(cached) " >&6
6845 else
6846   case $MAGIC_CMD in
6847 [\\/*] |  ?:[\\/]*)
6848   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6849   ;;
6850 *)
6851   lt_save_MAGIC_CMD="$MAGIC_CMD"
6852   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6853   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6854   for ac_dir in $ac_dummy; do
6855     IFS="$lt_save_ifs"
6856     test -z "$ac_dir" && ac_dir=.
6857     if test -f $ac_dir/${ac_tool_prefix}file; then
6858       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6859       if test -n "$file_magic_test_file"; then
6860         case $deplibs_check_method in
6861         "file_magic "*)
6862           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6863           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6864           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6865             $EGREP "$file_magic_regex" > /dev/null; then
6866             :
6867           else
6868             cat <<_LT_EOF 1>&2
6869
6870 *** Warning: the command libtool uses to detect shared libraries,
6871 *** $file_magic_cmd, produces output that libtool cannot recognize.
6872 *** The result is that libtool may fail to recognize shared libraries
6873 *** as such.  This will affect the creation of libtool libraries that
6874 *** depend on shared libraries, but programs linked with such libtool
6875 *** libraries will work regardless of this problem.  Nevertheless, you
6876 *** may want to report the problem to your system manager and/or to
6877 *** bug-libtool@gnu.org
6878
6879 _LT_EOF
6880           fi ;;
6881         esac
6882       fi
6883       break
6884     fi
6885   done
6886   IFS="$lt_save_ifs"
6887   MAGIC_CMD="$lt_save_MAGIC_CMD"
6888   ;;
6889 esac
6890 fi
6891
6892 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6893 if test -n "$MAGIC_CMD"; then
6894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6895 $as_echo "$MAGIC_CMD" >&6; }
6896 else
6897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898 $as_echo "no" >&6; }
6899 fi
6900
6901
6902
6903
6904
6905 if test -z "$lt_cv_path_MAGIC_CMD"; then
6906   if test -n "$ac_tool_prefix"; then
6907     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6908 $as_echo_n "checking for file... " >&6; }
6909 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6910   $as_echo_n "(cached) " >&6
6911 else
6912   case $MAGIC_CMD in
6913 [\\/*] |  ?:[\\/]*)
6914   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6915   ;;
6916 *)
6917   lt_save_MAGIC_CMD="$MAGIC_CMD"
6918   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6919   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6920   for ac_dir in $ac_dummy; do
6921     IFS="$lt_save_ifs"
6922     test -z "$ac_dir" && ac_dir=.
6923     if test -f $ac_dir/file; then
6924       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6925       if test -n "$file_magic_test_file"; then
6926         case $deplibs_check_method in
6927         "file_magic "*)
6928           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6929           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6930           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6931             $EGREP "$file_magic_regex" > /dev/null; then
6932             :
6933           else
6934             cat <<_LT_EOF 1>&2
6935
6936 *** Warning: the command libtool uses to detect shared libraries,
6937 *** $file_magic_cmd, produces output that libtool cannot recognize.
6938 *** The result is that libtool may fail to recognize shared libraries
6939 *** as such.  This will affect the creation of libtool libraries that
6940 *** depend on shared libraries, but programs linked with such libtool
6941 *** libraries will work regardless of this problem.  Nevertheless, you
6942 *** may want to report the problem to your system manager and/or to
6943 *** bug-libtool@gnu.org
6944
6945 _LT_EOF
6946           fi ;;
6947         esac
6948       fi
6949       break
6950     fi
6951   done
6952   IFS="$lt_save_ifs"
6953   MAGIC_CMD="$lt_save_MAGIC_CMD"
6954   ;;
6955 esac
6956 fi
6957
6958 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6959 if test -n "$MAGIC_CMD"; then
6960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6961 $as_echo "$MAGIC_CMD" >&6; }
6962 else
6963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964 $as_echo "no" >&6; }
6965 fi
6966
6967
6968   else
6969     MAGIC_CMD=:
6970   fi
6971 fi
6972
6973   fi
6974   ;;
6975 esac
6976
6977 # Use C for the default configuration in the libtool script
6978
6979 lt_save_CC="$CC"
6980 ac_ext=c
6981 ac_cpp='$CPP $CPPFLAGS'
6982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6985
6986
6987 # Source file extension for C test sources.
6988 ac_ext=c
6989
6990 # Object file extension for compiled C test sources.
6991 objext=o
6992 objext=$objext
6993
6994 # Code to be used in simple compile tests
6995 lt_simple_compile_test_code="int some_variable = 0;"
6996
6997 # Code to be used in simple link tests
6998 lt_simple_link_test_code='int main(){return(0);}'
6999
7000
7001
7002
7003
7004
7005
7006 # If no C compiler was specified, use CC.
7007 LTCC=${LTCC-"$CC"}
7008
7009 # If no C compiler flags were specified, use CFLAGS.
7010 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7011
7012 # Allow CC to be a program name with arguments.
7013 compiler=$CC
7014
7015 # Save the default compiler, since it gets overwritten when the other
7016 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7017 compiler_DEFAULT=$CC
7018
7019 # save warnings/boilerplate of simple test code
7020 ac_outfile=conftest.$ac_objext
7021 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7022 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7023 _lt_compiler_boilerplate=`cat conftest.err`
7024 $RM conftest*
7025
7026 ac_outfile=conftest.$ac_objext
7027 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7028 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7029 _lt_linker_boilerplate=`cat conftest.err`
7030 $RM -r conftest*
7031
7032
7033 ## CAVEAT EMPTOR:
7034 ## There is no encapsulation within the following macros, do not change
7035 ## the running order or otherwise move them around unless you know exactly
7036 ## what you are doing...
7037 if test -n "$compiler"; then
7038
7039 lt_prog_compiler_no_builtin_flag=
7040
7041 if test "$GCC" = yes; then
7042   case $cc_basename in
7043   nvcc*)
7044     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7045   *)
7046     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7047   esac
7048
7049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7050 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7051 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7052   $as_echo_n "(cached) " >&6
7053 else
7054   lt_cv_prog_compiler_rtti_exceptions=no
7055    ac_outfile=conftest.$ac_objext
7056    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7057    lt_compiler_flag="-fno-rtti -fno-exceptions"
7058    # Insert the option either (1) after the last *FLAGS variable, or
7059    # (2) before a word containing "conftest.", or (3) at the end.
7060    # Note that $ac_compile itself does not contain backslashes and begins
7061    # with a dollar sign (not a hyphen), so the echo should work correctly.
7062    # The option is referenced via a variable to avoid confusing sed.
7063    lt_compile=`echo "$ac_compile" | $SED \
7064    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7065    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7066    -e 's:$: $lt_compiler_flag:'`
7067    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7068    (eval "$lt_compile" 2>conftest.err)
7069    ac_status=$?
7070    cat conftest.err >&5
7071    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072    if (exit $ac_status) && test -s "$ac_outfile"; then
7073      # The compiler can only warn and ignore the option if not recognized
7074      # So say no if there are warnings other than the usual output.
7075      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7076      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7077      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7078        lt_cv_prog_compiler_rtti_exceptions=yes
7079      fi
7080    fi
7081    $RM conftest*
7082
7083 fi
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7085 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7086
7087 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7088     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7089 else
7090     :
7091 fi
7092
7093 fi
7094
7095
7096
7097
7098
7099
7100   lt_prog_compiler_wl=
7101 lt_prog_compiler_pic=
7102 lt_prog_compiler_static=
7103
7104
7105   if test "$GCC" = yes; then
7106     lt_prog_compiler_wl='-Wl,'
7107     lt_prog_compiler_static='-static'
7108
7109     case $host_os in
7110       aix*)
7111       # All AIX code is PIC.
7112       if test "$host_cpu" = ia64; then
7113         # AIX 5 now supports IA64 processor
7114         lt_prog_compiler_static='-Bstatic'
7115       fi
7116       ;;
7117
7118     amigaos*)
7119       case $host_cpu in
7120       powerpc)
7121             # see comment about AmigaOS4 .so support
7122             lt_prog_compiler_pic='-fPIC'
7123         ;;
7124       m68k)
7125             # FIXME: we need at least 68020 code to build shared libraries, but
7126             # adding the `-m68020' flag to GCC prevents building anything better,
7127             # like `-m68040'.
7128             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7129         ;;
7130       esac
7131       ;;
7132
7133     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7134       # PIC is the default for these OSes.
7135       ;;
7136
7137     mingw* | cygwin* | pw32* | os2* | cegcc*)
7138       # This hack is so that the source file can tell whether it is being
7139       # built for inclusion in a dll (and should export symbols for example).
7140       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7141       # (--disable-auto-import) libraries
7142       lt_prog_compiler_pic='-DDLL_EXPORT'
7143       ;;
7144
7145     darwin* | rhapsody*)
7146       # PIC is the default on this platform
7147       # Common symbols not allowed in MH_DYLIB files
7148       lt_prog_compiler_pic='-fno-common'
7149       ;;
7150
7151     haiku*)
7152       # PIC is the default for Haiku.
7153       # The "-static" flag exists, but is broken.
7154       lt_prog_compiler_static=
7155       ;;
7156
7157     hpux*)
7158       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7159       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7160       # sets the default TLS model and affects inlining.
7161       case $host_cpu in
7162       hppa*64*)
7163         # +Z the default
7164         ;;
7165       *)
7166         lt_prog_compiler_pic='-fPIC'
7167         ;;
7168       esac
7169       ;;
7170
7171     interix[3-9]*)
7172       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7173       # Instead, we relocate shared libraries at runtime.
7174       ;;
7175
7176     msdosdjgpp*)
7177       # Just because we use GCC doesn't mean we suddenly get shared libraries
7178       # on systems that don't support them.
7179       lt_prog_compiler_can_build_shared=no
7180       enable_shared=no
7181       ;;
7182
7183     *nto* | *qnx*)
7184       # QNX uses GNU C++, but need to define -shared option too, otherwise
7185       # it will coredump.
7186       lt_prog_compiler_pic='-fPIC -shared'
7187       ;;
7188
7189     sysv4*MP*)
7190       if test -d /usr/nec; then
7191         lt_prog_compiler_pic=-Kconform_pic
7192       fi
7193       ;;
7194
7195     *)
7196       lt_prog_compiler_pic='-fPIC'
7197       ;;
7198     esac
7199
7200     case $cc_basename in
7201     nvcc*) # Cuda Compiler Driver 2.2
7202       lt_prog_compiler_wl='-Xlinker '
7203       lt_prog_compiler_pic='-Xcompiler -fPIC'
7204       ;;
7205     esac
7206   else
7207     # PORTME Check for flag to pass linker flags through the system compiler.
7208     case $host_os in
7209     aix*)
7210       lt_prog_compiler_wl='-Wl,'
7211       if test "$host_cpu" = ia64; then
7212         # AIX 5 now supports IA64 processor
7213         lt_prog_compiler_static='-Bstatic'
7214       else
7215         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7216       fi
7217       ;;
7218
7219     mingw* | cygwin* | pw32* | os2* | cegcc*)
7220       # This hack is so that the source file can tell whether it is being
7221       # built for inclusion in a dll (and should export symbols for example).
7222       lt_prog_compiler_pic='-DDLL_EXPORT'
7223       ;;
7224
7225     hpux9* | hpux10* | hpux11*)
7226       lt_prog_compiler_wl='-Wl,'
7227       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7228       # not for PA HP-UX.
7229       case $host_cpu in
7230       hppa*64*|ia64*)
7231         # +Z the default
7232         ;;
7233       *)
7234         lt_prog_compiler_pic='+Z'
7235         ;;
7236       esac
7237       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7238       lt_prog_compiler_static='${wl}-a ${wl}archive'
7239       ;;
7240
7241     irix5* | irix6* | nonstopux*)
7242       lt_prog_compiler_wl='-Wl,'
7243       # PIC (with -KPIC) is the default.
7244       lt_prog_compiler_static='-non_shared'
7245       ;;
7246
7247     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7248       case $cc_basename in
7249       # old Intel for x86_64 which still supported -KPIC.
7250       ecc*)
7251         lt_prog_compiler_wl='-Wl,'
7252         lt_prog_compiler_pic='-KPIC'
7253         lt_prog_compiler_static='-static'
7254         ;;
7255       # icc used to be incompatible with GCC.
7256       # ICC 10 doesn't accept -KPIC any more.
7257       icc* | ifort*)
7258         lt_prog_compiler_wl='-Wl,'
7259         lt_prog_compiler_pic='-fPIC'
7260         lt_prog_compiler_static='-static'
7261         ;;
7262       # Lahey Fortran 8.1.
7263       lf95*)
7264         lt_prog_compiler_wl='-Wl,'
7265         lt_prog_compiler_pic='--shared'
7266         lt_prog_compiler_static='--static'
7267         ;;
7268       nagfor*)
7269         # NAG Fortran compiler
7270         lt_prog_compiler_wl='-Wl,-Wl,,'
7271         lt_prog_compiler_pic='-PIC'
7272         lt_prog_compiler_static='-Bstatic'
7273         ;;
7274       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7275         # Portland Group compilers (*not* the Pentium gcc compiler,
7276         # which looks to be a dead project)
7277         lt_prog_compiler_wl='-Wl,'
7278         lt_prog_compiler_pic='-fpic'
7279         lt_prog_compiler_static='-Bstatic'
7280         ;;
7281       ccc*)
7282         lt_prog_compiler_wl='-Wl,'
7283         # All Alpha code is PIC.
7284         lt_prog_compiler_static='-non_shared'
7285         ;;
7286       xl* | bgxl* | bgf* | mpixl*)
7287         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7288         lt_prog_compiler_wl='-Wl,'
7289         lt_prog_compiler_pic='-qpic'
7290         lt_prog_compiler_static='-qstaticlink'
7291         ;;
7292       *)
7293         case `$CC -V 2>&1 | sed 5q` in
7294         *Sun\ F* | *Sun*Fortran*)
7295           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7296           lt_prog_compiler_pic='-KPIC'
7297           lt_prog_compiler_static='-Bstatic'
7298           lt_prog_compiler_wl=''
7299           ;;
7300         *Sun\ C*)
7301           # Sun C 5.9
7302           lt_prog_compiler_pic='-KPIC'
7303           lt_prog_compiler_static='-Bstatic'
7304           lt_prog_compiler_wl='-Wl,'
7305           ;;
7306         esac
7307         ;;
7308       esac
7309       ;;
7310
7311     newsos6)
7312       lt_prog_compiler_pic='-KPIC'
7313       lt_prog_compiler_static='-Bstatic'
7314       ;;
7315
7316     *nto* | *qnx*)
7317       # QNX uses GNU C++, but need to define -shared option too, otherwise
7318       # it will coredump.
7319       lt_prog_compiler_pic='-fPIC -shared'
7320       ;;
7321
7322     osf3* | osf4* | osf5*)
7323       lt_prog_compiler_wl='-Wl,'
7324       # All OSF/1 code is PIC.
7325       lt_prog_compiler_static='-non_shared'
7326       ;;
7327
7328     rdos*)
7329       lt_prog_compiler_static='-non_shared'
7330       ;;
7331
7332     solaris*)
7333       lt_prog_compiler_pic='-KPIC'
7334       lt_prog_compiler_static='-Bstatic'
7335       case $cc_basename in
7336       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7337         lt_prog_compiler_wl='-Qoption ld ';;
7338       *)
7339         lt_prog_compiler_wl='-Wl,';;
7340       esac
7341       ;;
7342
7343     sunos4*)
7344       lt_prog_compiler_wl='-Qoption ld '
7345       lt_prog_compiler_pic='-PIC'
7346       lt_prog_compiler_static='-Bstatic'
7347       ;;
7348
7349     sysv4 | sysv4.2uw2* | sysv4.3*)
7350       lt_prog_compiler_wl='-Wl,'
7351       lt_prog_compiler_pic='-KPIC'
7352       lt_prog_compiler_static='-Bstatic'
7353       ;;
7354
7355     sysv4*MP*)
7356       if test -d /usr/nec ;then
7357         lt_prog_compiler_pic='-Kconform_pic'
7358         lt_prog_compiler_static='-Bstatic'
7359       fi
7360       ;;
7361
7362     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7363       lt_prog_compiler_wl='-Wl,'
7364       lt_prog_compiler_pic='-KPIC'
7365       lt_prog_compiler_static='-Bstatic'
7366       ;;
7367
7368     unicos*)
7369       lt_prog_compiler_wl='-Wl,'
7370       lt_prog_compiler_can_build_shared=no
7371       ;;
7372
7373     uts4*)
7374       lt_prog_compiler_pic='-pic'
7375       lt_prog_compiler_static='-Bstatic'
7376       ;;
7377
7378     *)
7379       lt_prog_compiler_can_build_shared=no
7380       ;;
7381     esac
7382   fi
7383
7384 case $host_os in
7385   # For platforms which do not support PIC, -DPIC is meaningless:
7386   *djgpp*)
7387     lt_prog_compiler_pic=
7388     ;;
7389   *)
7390     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7391     ;;
7392 esac
7393
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7395 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7396 if ${lt_cv_prog_compiler_pic+:} false; then :
7397   $as_echo_n "(cached) " >&6
7398 else
7399   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7400 fi
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7402 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7403 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7404
7405 #
7406 # Check to make sure the PIC flag actually works.
7407 #
7408 if test -n "$lt_prog_compiler_pic"; then
7409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7410 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7411 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7412   $as_echo_n "(cached) " >&6
7413 else
7414   lt_cv_prog_compiler_pic_works=no
7415    ac_outfile=conftest.$ac_objext
7416    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7417    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7418    # Insert the option either (1) after the last *FLAGS variable, or
7419    # (2) before a word containing "conftest.", or (3) at the end.
7420    # Note that $ac_compile itself does not contain backslashes and begins
7421    # with a dollar sign (not a hyphen), so the echo should work correctly.
7422    # The option is referenced via a variable to avoid confusing sed.
7423    lt_compile=`echo "$ac_compile" | $SED \
7424    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7425    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7426    -e 's:$: $lt_compiler_flag:'`
7427    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7428    (eval "$lt_compile" 2>conftest.err)
7429    ac_status=$?
7430    cat conftest.err >&5
7431    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432    if (exit $ac_status) && test -s "$ac_outfile"; then
7433      # The compiler can only warn and ignore the option if not recognized
7434      # So say no if there are warnings other than the usual output.
7435      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7436      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7437      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7438        lt_cv_prog_compiler_pic_works=yes
7439      fi
7440    fi
7441    $RM conftest*
7442
7443 fi
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7445 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7446
7447 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7448     case $lt_prog_compiler_pic in
7449      "" | " "*) ;;
7450      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7451      esac
7452 else
7453     lt_prog_compiler_pic=
7454      lt_prog_compiler_can_build_shared=no
7455 fi
7456
7457 fi
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469 #
7470 # Check to make sure the static flag actually works.
7471 #
7472 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7474 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7475 if ${lt_cv_prog_compiler_static_works+:} false; then :
7476   $as_echo_n "(cached) " >&6
7477 else
7478   lt_cv_prog_compiler_static_works=no
7479    save_LDFLAGS="$LDFLAGS"
7480    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7481    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7482    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7483      # The linker can only warn and ignore the option if not recognized
7484      # So say no if there are warnings
7485      if test -s conftest.err; then
7486        # Append any errors to the config.log.
7487        cat conftest.err 1>&5
7488        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7489        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7490        if diff conftest.exp conftest.er2 >/dev/null; then
7491          lt_cv_prog_compiler_static_works=yes
7492        fi
7493      else
7494        lt_cv_prog_compiler_static_works=yes
7495      fi
7496    fi
7497    $RM -r conftest*
7498    LDFLAGS="$save_LDFLAGS"
7499
7500 fi
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7502 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7503
7504 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7505     :
7506 else
7507     lt_prog_compiler_static=
7508 fi
7509
7510
7511
7512
7513
7514
7515
7516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7517 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7518 if ${lt_cv_prog_compiler_c_o+:} false; then :
7519   $as_echo_n "(cached) " >&6
7520 else
7521   lt_cv_prog_compiler_c_o=no
7522    $RM -r conftest 2>/dev/null
7523    mkdir conftest
7524    cd conftest
7525    mkdir out
7526    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7527
7528    lt_compiler_flag="-o out/conftest2.$ac_objext"
7529    # Insert the option either (1) after the last *FLAGS variable, or
7530    # (2) before a word containing "conftest.", or (3) at the end.
7531    # Note that $ac_compile itself does not contain backslashes and begins
7532    # with a dollar sign (not a hyphen), so the echo should work correctly.
7533    lt_compile=`echo "$ac_compile" | $SED \
7534    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7535    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7536    -e 's:$: $lt_compiler_flag:'`
7537    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7538    (eval "$lt_compile" 2>out/conftest.err)
7539    ac_status=$?
7540    cat out/conftest.err >&5
7541    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7543    then
7544      # The compiler can only warn and ignore the option if not recognized
7545      # So say no if there are warnings
7546      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7547      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7548      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7549        lt_cv_prog_compiler_c_o=yes
7550      fi
7551    fi
7552    chmod u+w . 2>&5
7553    $RM conftest*
7554    # SGI C++ compiler will create directory out/ii_files/ for
7555    # template instantiation
7556    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7557    $RM out/* && rmdir out
7558    cd ..
7559    $RM -r conftest
7560    $RM conftest*
7561
7562 fi
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7564 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7565
7566
7567
7568
7569
7570
7571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7572 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7573 if ${lt_cv_prog_compiler_c_o+:} false; then :
7574   $as_echo_n "(cached) " >&6
7575 else
7576   lt_cv_prog_compiler_c_o=no
7577    $RM -r conftest 2>/dev/null
7578    mkdir conftest
7579    cd conftest
7580    mkdir out
7581    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7582
7583    lt_compiler_flag="-o out/conftest2.$ac_objext"
7584    # Insert the option either (1) after the last *FLAGS variable, or
7585    # (2) before a word containing "conftest.", or (3) at the end.
7586    # Note that $ac_compile itself does not contain backslashes and begins
7587    # with a dollar sign (not a hyphen), so the echo should work correctly.
7588    lt_compile=`echo "$ac_compile" | $SED \
7589    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7590    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7591    -e 's:$: $lt_compiler_flag:'`
7592    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7593    (eval "$lt_compile" 2>out/conftest.err)
7594    ac_status=$?
7595    cat out/conftest.err >&5
7596    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7598    then
7599      # The compiler can only warn and ignore the option if not recognized
7600      # So say no if there are warnings
7601      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7602      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7603      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7604        lt_cv_prog_compiler_c_o=yes
7605      fi
7606    fi
7607    chmod u+w . 2>&5
7608    $RM conftest*
7609    # SGI C++ compiler will create directory out/ii_files/ for
7610    # template instantiation
7611    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7612    $RM out/* && rmdir out
7613    cd ..
7614    $RM -r conftest
7615    $RM conftest*
7616
7617 fi
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7619 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7620
7621
7622
7623
7624 hard_links="nottested"
7625 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7626   # do not overwrite the value of need_locks provided by the user
7627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7628 $as_echo_n "checking if we can lock with hard links... " >&6; }
7629   hard_links=yes
7630   $RM conftest*
7631   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7632   touch conftest.a
7633   ln conftest.a conftest.b 2>&5 || hard_links=no
7634   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7636 $as_echo "$hard_links" >&6; }
7637   if test "$hard_links" = no; then
7638     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7639 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7640     need_locks=warn
7641   fi
7642 else
7643   need_locks=no
7644 fi
7645
7646
7647
7648
7649
7650
7651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7652 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7653
7654   runpath_var=
7655   allow_undefined_flag=
7656   always_export_symbols=no
7657   archive_cmds=
7658   archive_expsym_cmds=
7659   compiler_needs_object=no
7660   enable_shared_with_static_runtimes=no
7661   export_dynamic_flag_spec=
7662   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7663   hardcode_automatic=no
7664   hardcode_direct=no
7665   hardcode_direct_absolute=no
7666   hardcode_libdir_flag_spec=
7667   hardcode_libdir_flag_spec_ld=
7668   hardcode_libdir_separator=
7669   hardcode_minus_L=no
7670   hardcode_shlibpath_var=unsupported
7671   inherit_rpath=no
7672   link_all_deplibs=unknown
7673   module_cmds=
7674   module_expsym_cmds=
7675   old_archive_from_new_cmds=
7676   old_archive_from_expsyms_cmds=
7677   thread_safe_flag_spec=
7678   whole_archive_flag_spec=
7679   # include_expsyms should be a list of space-separated symbols to be *always*
7680   # included in the symbol list
7681   include_expsyms=
7682   # exclude_expsyms can be an extended regexp of symbols to exclude
7683   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7684   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7685   # as well as any symbol that contains `d'.
7686   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7687   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7688   # platforms (ab)use it in PIC code, but their linkers get confused if
7689   # the symbol is explicitly referenced.  Since portable code cannot
7690   # rely on this symbol name, it's probably fine to never include it in
7691   # preloaded symbol tables.
7692   # Exclude shared library initialization/finalization symbols.
7693   extract_expsyms_cmds=
7694
7695   case $host_os in
7696   cygwin* | mingw* | pw32* | cegcc*)
7697     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7698     # When not using gcc, we currently assume that we are using
7699     # Microsoft Visual C++.
7700     if test "$GCC" != yes; then
7701       with_gnu_ld=no
7702     fi
7703     ;;
7704   interix*)
7705     # we just hope/assume this is gcc and not c89 (= MSVC++)
7706     with_gnu_ld=yes
7707     ;;
7708   openbsd*)
7709     with_gnu_ld=no
7710     ;;
7711   esac
7712
7713   ld_shlibs=yes
7714
7715   # On some targets, GNU ld is compatible enough with the native linker
7716   # that we're better off using the native interface for both.
7717   lt_use_gnu_ld_interface=no
7718   if test "$with_gnu_ld" = yes; then
7719     case $host_os in
7720       aix*)
7721         # The AIX port of GNU ld has always aspired to compatibility
7722         # with the native linker.  However, as the warning in the GNU ld
7723         # block says, versions before 2.19.5* couldn't really create working
7724         # shared libraries, regardless of the interface used.
7725         case `$LD -v 2>&1` in
7726           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7727           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7728           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7729           *)
7730             lt_use_gnu_ld_interface=yes
7731             ;;
7732         esac
7733         ;;
7734       *)
7735         lt_use_gnu_ld_interface=yes
7736         ;;
7737     esac
7738   fi
7739
7740   if test "$lt_use_gnu_ld_interface" = yes; then
7741     # If archive_cmds runs LD, not CC, wlarc should be empty
7742     wlarc='${wl}'
7743
7744     # Set some defaults for GNU ld with shared library support. These
7745     # are reset later if shared libraries are not supported. Putting them
7746     # here allows them to be overridden if necessary.
7747     runpath_var=LD_RUN_PATH
7748     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7749     export_dynamic_flag_spec='${wl}--export-dynamic'
7750     # ancient GNU ld didn't support --whole-archive et. al.
7751     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7752       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7753     else
7754       whole_archive_flag_spec=
7755     fi
7756     supports_anon_versioning=no
7757     case `$LD -v 2>&1` in
7758       *GNU\ gold*) supports_anon_versioning=yes ;;
7759       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7760       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7761       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7762       *\ 2.11.*) ;; # other 2.11 versions
7763       *) supports_anon_versioning=yes ;;
7764     esac
7765
7766     # See if GNU ld supports shared libraries.
7767     case $host_os in
7768     aix[3-9]*)
7769       # On AIX/PPC, the GNU linker is very broken
7770       if test "$host_cpu" != ia64; then
7771         ld_shlibs=no
7772         cat <<_LT_EOF 1>&2
7773
7774 *** Warning: the GNU linker, at least up to release 2.19, is reported
7775 *** to be unable to reliably create shared libraries on AIX.
7776 *** Therefore, libtool is disabling shared libraries support.  If you
7777 *** really care for shared libraries, you may want to install binutils
7778 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7779 *** You will then need to restart the configuration process.
7780
7781 _LT_EOF
7782       fi
7783       ;;
7784
7785     amigaos*)
7786       case $host_cpu in
7787       powerpc)
7788             # see comment about AmigaOS4 .so support
7789             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7790             archive_expsym_cmds=''
7791         ;;
7792       m68k)
7793             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)'
7794             hardcode_libdir_flag_spec='-L$libdir'
7795             hardcode_minus_L=yes
7796         ;;
7797       esac
7798       ;;
7799
7800     beos*)
7801       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7802         allow_undefined_flag=unsupported
7803         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7804         # support --undefined.  This deserves some investigation.  FIXME
7805         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7806       else
7807         ld_shlibs=no
7808       fi
7809       ;;
7810
7811     cygwin* | mingw* | pw32* | cegcc*)
7812       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7813       # as there is no search path for DLLs.
7814       hardcode_libdir_flag_spec='-L$libdir'
7815       export_dynamic_flag_spec='${wl}--export-all-symbols'
7816       allow_undefined_flag=unsupported
7817       always_export_symbols=no
7818       enable_shared_with_static_runtimes=yes
7819       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'
7820       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
7821
7822       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7823         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7824         # If the export-symbols file already is a .def file (1st line
7825         # is EXPORTS), use it as is; otherwise, prepend...
7826         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7827           cp $export_symbols $output_objdir/$soname.def;
7828         else
7829           echo EXPORTS > $output_objdir/$soname.def;
7830           cat $export_symbols >> $output_objdir/$soname.def;
7831         fi~
7832         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7833       else
7834         ld_shlibs=no
7835       fi
7836       ;;
7837
7838     haiku*)
7839       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7840       link_all_deplibs=yes
7841       ;;
7842
7843     interix[3-9]*)
7844       hardcode_direct=no
7845       hardcode_shlibpath_var=no
7846       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7847       export_dynamic_flag_spec='${wl}-E'
7848       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7849       # Instead, shared libraries are loaded at an image base (0x10000000 by
7850       # default) and relocated if they conflict, which is a slow very memory
7851       # consuming and fragmenting process.  To avoid this, we pick a random,
7852       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7853       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7854       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7855       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'
7856       ;;
7857
7858     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7859       tmp_diet=no
7860       if test "$host_os" = linux-dietlibc; then
7861         case $cc_basename in
7862           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7863         esac
7864       fi
7865       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7866          && test "$tmp_diet" = no
7867       then
7868         tmp_addflag=' $pic_flag'
7869         tmp_sharedflag='-shared'
7870         case $cc_basename,$host_cpu in
7871         pgcc*)                          # Portland Group C compiler
7872           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'
7873           tmp_addflag=' $pic_flag'
7874           ;;
7875         pgf77* | pgf90* | pgf95* | pgfortran*)
7876                                         # Portland Group f77 and f90 compilers
7877           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'
7878           tmp_addflag=' $pic_flag -Mnomain' ;;
7879         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7880           tmp_addflag=' -i_dynamic' ;;
7881         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7882           tmp_addflag=' -i_dynamic -nofor_main' ;;
7883         ifc* | ifort*)                  # Intel Fortran compiler
7884           tmp_addflag=' -nofor_main' ;;
7885         lf95*)                          # Lahey Fortran 8.1
7886           whole_archive_flag_spec=
7887           tmp_sharedflag='--shared' ;;
7888         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7889           tmp_sharedflag='-qmkshrobj'
7890           tmp_addflag= ;;
7891         nvcc*)  # Cuda Compiler Driver 2.2
7892           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'
7893           compiler_needs_object=yes
7894           ;;
7895         esac
7896         case `$CC -V 2>&1 | sed 5q` in
7897         *Sun\ C*)                       # Sun C 5.9
7898           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'
7899           compiler_needs_object=yes
7900           tmp_sharedflag='-G' ;;
7901         *Sun\ F*)                       # Sun Fortran 8.3
7902           tmp_sharedflag='-G' ;;
7903         esac
7904         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7905
7906         if test "x$supports_anon_versioning" = xyes; then
7907           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7908             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7909             echo "local: *; };" >> $output_objdir/$libname.ver~
7910             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7911         fi
7912
7913         case $cc_basename in
7914         xlf* | bgf* | bgxlf* | mpixlf*)
7915           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7916           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7917           hardcode_libdir_flag_spec=
7918           hardcode_libdir_flag_spec_ld='-rpath $libdir'
7919           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
7920           if test "x$supports_anon_versioning" = xyes; then
7921             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7922               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7923               echo "local: *; };" >> $output_objdir/$libname.ver~
7924               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7925           fi
7926           ;;
7927         esac
7928       else
7929         ld_shlibs=no
7930       fi
7931       ;;
7932
7933     netbsd*)
7934       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7935         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7936         wlarc=
7937       else
7938         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7939         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7940       fi
7941       ;;
7942
7943     solaris*)
7944       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7945         ld_shlibs=no
7946         cat <<_LT_EOF 1>&2
7947
7948 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7949 *** create shared libraries on Solaris systems.  Therefore, libtool
7950 *** is disabling shared libraries support.  We urge you to upgrade GNU
7951 *** binutils to release 2.9.1 or newer.  Another option is to modify
7952 *** your PATH or compiler configuration so that the native linker is
7953 *** used, and then restart.
7954
7955 _LT_EOF
7956       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7957         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7958         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7959       else
7960         ld_shlibs=no
7961       fi
7962       ;;
7963
7964     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7965       case `$LD -v 2>&1` in
7966         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7967         ld_shlibs=no
7968         cat <<_LT_EOF 1>&2
7969
7970 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7971 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7972 *** is disabling shared libraries support.  We urge you to upgrade GNU
7973 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7974 *** your PATH or compiler configuration so that the native linker is
7975 *** used, and then restart.
7976
7977 _LT_EOF
7978         ;;
7979         *)
7980           # For security reasons, it is highly recommended that you always
7981           # use absolute paths for naming shared libraries, and exclude the
7982           # DT_RUNPATH tag from executables and libraries.  But doing so
7983           # requires that you compile everything twice, which is a pain.
7984           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7985             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7986             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7987             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7988           else
7989             ld_shlibs=no
7990           fi
7991         ;;
7992       esac
7993       ;;
7994
7995     sunos4*)
7996       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7997       wlarc=
7998       hardcode_direct=yes
7999       hardcode_shlibpath_var=no
8000       ;;
8001
8002     *)
8003       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8004         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8005         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8006       else
8007         ld_shlibs=no
8008       fi
8009       ;;
8010     esac
8011
8012     if test "$ld_shlibs" = no; then
8013       runpath_var=
8014       hardcode_libdir_flag_spec=
8015       export_dynamic_flag_spec=
8016       whole_archive_flag_spec=
8017     fi
8018   else
8019     # PORTME fill in a description of your system's linker (not GNU ld)
8020     case $host_os in
8021     aix3*)
8022       allow_undefined_flag=unsupported
8023       always_export_symbols=yes
8024       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'
8025       # Note: this linker hardcodes the directories in LIBPATH if there
8026       # are no directories specified by -L.
8027       hardcode_minus_L=yes
8028       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8029         # Neither direct hardcoding nor static linking is supported with a
8030         # broken collect2.
8031         hardcode_direct=unsupported
8032       fi
8033       ;;
8034
8035     aix[4-9]*)
8036       if test "$host_cpu" = ia64; then
8037         # On IA64, the linker does run time linking by default, so we don't
8038         # have to do anything special.
8039         aix_use_runtimelinking=no
8040         exp_sym_flag='-Bexport'
8041         no_entry_flag=""
8042       else
8043         # If we're using GNU nm, then we don't want the "-C" option.
8044         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8045         # Also, AIX nm treats weak defined symbols like other global
8046         # defined symbols, whereas GNU nm marks them as "W".
8047         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8048           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'
8049         else
8050           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'
8051         fi
8052         aix_use_runtimelinking=no
8053
8054         # Test if we are trying to use run time linking or normal
8055         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8056         # need to do runtime linking.
8057         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8058           for ld_flag in $LDFLAGS; do
8059           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8060             aix_use_runtimelinking=yes
8061             break
8062           fi
8063           done
8064           ;;
8065         esac
8066
8067         exp_sym_flag='-bexport'
8068         no_entry_flag='-bnoentry'
8069       fi
8070
8071       # When large executables or shared objects are built, AIX ld can
8072       # have problems creating the table of contents.  If linking a library
8073       # or program results in "error TOC overflow" add -mminimal-toc to
8074       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8075       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8076
8077       archive_cmds=''
8078       hardcode_direct=yes
8079       hardcode_direct_absolute=yes
8080       hardcode_libdir_separator=':'
8081       link_all_deplibs=yes
8082       file_list_spec='${wl}-f,'
8083
8084       if test "$GCC" = yes; then
8085         case $host_os in aix4.[012]|aix4.[012].*)
8086         # We only want to do this on AIX 4.2 and lower, the check
8087         # below for broken collect2 doesn't work under 4.3+
8088           collect2name=`${CC} -print-prog-name=collect2`
8089           if test -f "$collect2name" &&
8090            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8091           then
8092           # We have reworked collect2
8093           :
8094           else
8095           # We have old collect2
8096           hardcode_direct=unsupported
8097           # It fails to find uninstalled libraries when the uninstalled
8098           # path is not listed in the libpath.  Setting hardcode_minus_L
8099           # to unsupported forces relinking
8100           hardcode_minus_L=yes
8101           hardcode_libdir_flag_spec='-L$libdir'
8102           hardcode_libdir_separator=
8103           fi
8104           ;;
8105         esac
8106         shared_flag='-shared'
8107         if test "$aix_use_runtimelinking" = yes; then
8108           shared_flag="$shared_flag "'${wl}-G'
8109         fi
8110       else
8111         # not using gcc
8112         if test "$host_cpu" = ia64; then
8113         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8114         # chokes on -Wl,-G. The following line is correct:
8115           shared_flag='-G'
8116         else
8117           if test "$aix_use_runtimelinking" = yes; then
8118             shared_flag='${wl}-G'
8119           else
8120             shared_flag='${wl}-bM:SRE'
8121           fi
8122         fi
8123       fi
8124
8125       export_dynamic_flag_spec='${wl}-bexpall'
8126       # It seems that -bexpall does not export symbols beginning with
8127       # underscore (_), so it is better to generate a list of symbols to export.
8128       always_export_symbols=yes
8129       if test "$aix_use_runtimelinking" = yes; then
8130         # Warning - without using the other runtime loading flags (-brtl),
8131         # -berok will link without error, but may produce a broken library.
8132         allow_undefined_flag='-berok'
8133         # Determine the default libpath from the value encoded in an
8134         # empty executable.
8135         if test "${lt_cv_aix_libpath+set}" = set; then
8136   aix_libpath=$lt_cv_aix_libpath
8137 else
8138   if ${lt_cv_aix_libpath_+:} false; then :
8139   $as_echo_n "(cached) " >&6
8140 else
8141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142 /* end confdefs.h.  */
8143
8144 int
8145 main ()
8146 {
8147
8148   ;
8149   return 0;
8150 }
8151 _ACEOF
8152 if ac_fn_c_try_link "$LINENO"; then :
8153
8154   lt_aix_libpath_sed='
8155       /Import File Strings/,/^$/ {
8156           /^0/ {
8157               s/^0  *\([^ ]*\) *$/\1/
8158               p
8159           }
8160       }'
8161   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8162   # Check for a 64-bit object if we didn't find anything.
8163   if test -z "$lt_cv_aix_libpath_"; then
8164     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8165   fi
8166 fi
8167 rm -f core conftest.err conftest.$ac_objext \
8168     conftest$ac_exeext conftest.$ac_ext
8169   if test -z "$lt_cv_aix_libpath_"; then
8170     lt_cv_aix_libpath_="/usr/lib:/lib"
8171   fi
8172
8173 fi
8174
8175   aix_libpath=$lt_cv_aix_libpath_
8176 fi
8177
8178         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8179         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"
8180       else
8181         if test "$host_cpu" = ia64; then
8182           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8183           allow_undefined_flag="-z nodefs"
8184           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"
8185         else
8186          # Determine the default libpath from the value encoded in an
8187          # empty executable.
8188          if test "${lt_cv_aix_libpath+set}" = set; then
8189   aix_libpath=$lt_cv_aix_libpath
8190 else
8191   if ${lt_cv_aix_libpath_+:} false; then :
8192   $as_echo_n "(cached) " >&6
8193 else
8194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h.  */
8196
8197 int
8198 main ()
8199 {
8200
8201   ;
8202   return 0;
8203 }
8204 _ACEOF
8205 if ac_fn_c_try_link "$LINENO"; then :
8206
8207   lt_aix_libpath_sed='
8208       /Import File Strings/,/^$/ {
8209           /^0/ {
8210               s/^0  *\([^ ]*\) *$/\1/
8211               p
8212           }
8213       }'
8214   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8215   # Check for a 64-bit object if we didn't find anything.
8216   if test -z "$lt_cv_aix_libpath_"; then
8217     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8218   fi
8219 fi
8220 rm -f core conftest.err conftest.$ac_objext \
8221     conftest$ac_exeext conftest.$ac_ext
8222   if test -z "$lt_cv_aix_libpath_"; then
8223     lt_cv_aix_libpath_="/usr/lib:/lib"
8224   fi
8225
8226 fi
8227
8228   aix_libpath=$lt_cv_aix_libpath_
8229 fi
8230
8231          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8232           # Warning - without using the other run time loading flags,
8233           # -berok will link without error, but may produce a broken library.
8234           no_undefined_flag=' ${wl}-bernotok'
8235           allow_undefined_flag=' ${wl}-berok'
8236           if test "$with_gnu_ld" = yes; then
8237             # We only use this code for GNU lds that support --whole-archive.
8238             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8239           else
8240             # Exported symbols can be pulled into shared objects from archives
8241             whole_archive_flag_spec='$convenience'
8242           fi
8243           archive_cmds_need_lc=yes
8244           # This is similar to how AIX traditionally builds its shared libraries.
8245           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'
8246         fi
8247       fi
8248       ;;
8249
8250     amigaos*)
8251       case $host_cpu in
8252       powerpc)
8253             # see comment about AmigaOS4 .so support
8254             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8255             archive_expsym_cmds=''
8256         ;;
8257       m68k)
8258             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)'
8259             hardcode_libdir_flag_spec='-L$libdir'
8260             hardcode_minus_L=yes
8261         ;;
8262       esac
8263       ;;
8264
8265     bsdi[45]*)
8266       export_dynamic_flag_spec=-rdynamic
8267       ;;
8268
8269     cygwin* | mingw* | pw32* | cegcc*)
8270       # When not using gcc, we currently assume that we are using
8271       # Microsoft Visual C++.
8272       # hardcode_libdir_flag_spec is actually meaningless, as there is
8273       # no search path for DLLs.
8274       case $cc_basename in
8275       cl*)
8276         # Native MSVC
8277         hardcode_libdir_flag_spec=' '
8278         allow_undefined_flag=unsupported
8279         always_export_symbols=yes
8280         file_list_spec='@'
8281         # Tell ltmain to make .lib files, not .a files.
8282         libext=lib
8283         # Tell ltmain to make .dll files, not .so files.
8284         shrext_cmds=".dll"
8285         # FIXME: Setting linknames here is a bad hack.
8286         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8287         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8288             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8289           else
8290             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8291           fi~
8292           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8293           linknames='
8294         # The linker will not automatically build a static lib if we build a DLL.
8295         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8296         enable_shared_with_static_runtimes=yes
8297         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8298         # Don't use ranlib
8299         old_postinstall_cmds='chmod 644 $oldlib'
8300         postlink_cmds='lt_outputfile="@OUTPUT@"~
8301           lt_tool_outputfile="@TOOL_OUTPUT@"~
8302           case $lt_outputfile in
8303             *.exe|*.EXE) ;;
8304             *)
8305               lt_outputfile="$lt_outputfile.exe"
8306               lt_tool_outputfile="$lt_tool_outputfile.exe"
8307               ;;
8308           esac~
8309           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8310             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8311             $RM "$lt_outputfile.manifest";
8312           fi'
8313         ;;
8314       *)
8315         # Assume MSVC wrapper
8316         hardcode_libdir_flag_spec=' '
8317         allow_undefined_flag=unsupported
8318         # Tell ltmain to make .lib files, not .a files.
8319         libext=lib
8320         # Tell ltmain to make .dll files, not .so files.
8321         shrext_cmds=".dll"
8322         # FIXME: Setting linknames here is a bad hack.
8323         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8324         # The linker will automatically build a .lib file if we build a DLL.
8325         old_archive_from_new_cmds='true'
8326         # FIXME: Should let the user specify the lib program.
8327         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8328         enable_shared_with_static_runtimes=yes
8329         ;;
8330       esac
8331       ;;
8332
8333     darwin* | rhapsody*)
8334
8335
8336   archive_cmds_need_lc=no
8337   hardcode_direct=no
8338   hardcode_automatic=yes
8339   hardcode_shlibpath_var=unsupported
8340   if test "$lt_cv_ld_force_load" = "yes"; then
8341     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\"`'
8342   else
8343     whole_archive_flag_spec=''
8344   fi
8345   link_all_deplibs=yes
8346   allow_undefined_flag="$_lt_dar_allow_undefined"
8347   case $cc_basename in
8348      ifort*) _lt_dar_can_shared=yes ;;
8349      *) _lt_dar_can_shared=$GCC ;;
8350   esac
8351   if test "$_lt_dar_can_shared" = "yes"; then
8352     output_verbose_link_cmd=func_echo_all
8353     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8354     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8355     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}"
8356     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}"
8357
8358   else
8359   ld_shlibs=no
8360   fi
8361
8362       ;;
8363
8364     dgux*)
8365       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8366       hardcode_libdir_flag_spec='-L$libdir'
8367       hardcode_shlibpath_var=no
8368       ;;
8369
8370     freebsd1*)
8371       ld_shlibs=no
8372       ;;
8373
8374     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8375     # support.  Future versions do this automatically, but an explicit c++rt0.o
8376     # does not break anything, and helps significantly (at the cost of a little
8377     # extra space).
8378     freebsd2.2*)
8379       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8380       hardcode_libdir_flag_spec='-R$libdir'
8381       hardcode_direct=yes
8382       hardcode_shlibpath_var=no
8383       ;;
8384
8385     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8386     freebsd2*)
8387       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8388       hardcode_direct=yes
8389       hardcode_minus_L=yes
8390       hardcode_shlibpath_var=no
8391       ;;
8392
8393     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8394     freebsd* | dragonfly*)
8395       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8396       hardcode_libdir_flag_spec='-R$libdir'
8397       hardcode_direct=yes
8398       hardcode_shlibpath_var=no
8399       ;;
8400
8401     hpux9*)
8402       if test "$GCC" = yes; then
8403         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'
8404       else
8405         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'
8406       fi
8407       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8408       hardcode_libdir_separator=:
8409       hardcode_direct=yes
8410
8411       # hardcode_minus_L: Not really in the search PATH,
8412       # but as the default location of the library.
8413       hardcode_minus_L=yes
8414       export_dynamic_flag_spec='${wl}-E'
8415       ;;
8416
8417     hpux10*)
8418       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8419         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8420       else
8421         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8422       fi
8423       if test "$with_gnu_ld" = no; then
8424         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8425         hardcode_libdir_flag_spec_ld='+b $libdir'
8426         hardcode_libdir_separator=:
8427         hardcode_direct=yes
8428         hardcode_direct_absolute=yes
8429         export_dynamic_flag_spec='${wl}-E'
8430         # hardcode_minus_L: Not really in the search PATH,
8431         # but as the default location of the library.
8432         hardcode_minus_L=yes
8433       fi
8434       ;;
8435
8436     hpux11*)
8437       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8438         case $host_cpu in
8439         hppa*64*)
8440           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8441           ;;
8442         ia64*)
8443           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8444           ;;
8445         *)
8446           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8447           ;;
8448         esac
8449       else
8450         case $host_cpu in
8451         hppa*64*)
8452           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8453           ;;
8454         ia64*)
8455           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8456           ;;
8457         *)
8458
8459           # Older versions of the 11.00 compiler do not understand -b yet
8460           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8461           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8462 $as_echo_n "checking if $CC understands -b... " >&6; }
8463 if ${lt_cv_prog_compiler__b+:} false; then :
8464   $as_echo_n "(cached) " >&6
8465 else
8466   lt_cv_prog_compiler__b=no
8467    save_LDFLAGS="$LDFLAGS"
8468    LDFLAGS="$LDFLAGS -b"
8469    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8470    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8471      # The linker can only warn and ignore the option if not recognized
8472      # So say no if there are warnings
8473      if test -s conftest.err; then
8474        # Append any errors to the config.log.
8475        cat conftest.err 1>&5
8476        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8477        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8478        if diff conftest.exp conftest.er2 >/dev/null; then
8479          lt_cv_prog_compiler__b=yes
8480        fi
8481      else
8482        lt_cv_prog_compiler__b=yes
8483      fi
8484    fi
8485    $RM -r conftest*
8486    LDFLAGS="$save_LDFLAGS"
8487
8488 fi
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8490 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8491
8492 if test x"$lt_cv_prog_compiler__b" = xyes; then
8493     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8494 else
8495     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8496 fi
8497
8498           ;;
8499         esac
8500       fi
8501       if test "$with_gnu_ld" = no; then
8502         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8503         hardcode_libdir_separator=:
8504
8505         case $host_cpu in
8506         hppa*64*|ia64*)
8507           hardcode_direct=no
8508           hardcode_shlibpath_var=no
8509           ;;
8510         *)
8511           hardcode_direct=yes
8512           hardcode_direct_absolute=yes
8513           export_dynamic_flag_spec='${wl}-E'
8514
8515           # hardcode_minus_L: Not really in the search PATH,
8516           # but as the default location of the library.
8517           hardcode_minus_L=yes
8518           ;;
8519         esac
8520       fi
8521       ;;
8522
8523     irix5* | irix6* | nonstopux*)
8524       if test "$GCC" = yes; then
8525         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'
8526         # Try to use the -exported_symbol ld option, if it does not
8527         # work, assume that -exports_file does not work either and
8528         # implicitly export all symbols.
8529         # This should be the same for all languages, so no per-tag cache variable.
8530         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
8531 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
8532 if ${lt_cv_irix_exported_symbol+:} false; then :
8533   $as_echo_n "(cached) " >&6
8534 else
8535   save_LDFLAGS="$LDFLAGS"
8536            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8537            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h.  */
8539 int foo (void) { return 0; }
8540 _ACEOF
8541 if ac_fn_c_try_link "$LINENO"; then :
8542   lt_cv_irix_exported_symbol=yes
8543 else
8544   lt_cv_irix_exported_symbol=no
8545 fi
8546 rm -f core conftest.err conftest.$ac_objext \
8547     conftest$ac_exeext conftest.$ac_ext
8548            LDFLAGS="$save_LDFLAGS"
8549 fi
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
8551 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
8552         if test "$lt_cv_irix_exported_symbol" = yes; then
8553           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'
8554         fi
8555       else
8556         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'
8557         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'
8558       fi
8559       archive_cmds_need_lc='no'
8560       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8561       hardcode_libdir_separator=:
8562       inherit_rpath=yes
8563       link_all_deplibs=yes
8564       ;;
8565
8566     netbsd*)
8567       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8568         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8569       else
8570         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8571       fi
8572       hardcode_libdir_flag_spec='-R$libdir'
8573       hardcode_direct=yes
8574       hardcode_shlibpath_var=no
8575       ;;
8576
8577     newsos6)
8578       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8579       hardcode_direct=yes
8580       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8581       hardcode_libdir_separator=:
8582       hardcode_shlibpath_var=no
8583       ;;
8584
8585     *nto* | *qnx*)
8586       ;;
8587
8588     openbsd*)
8589       if test -f /usr/libexec/ld.so; then
8590         hardcode_direct=yes
8591         hardcode_shlibpath_var=no
8592         hardcode_direct_absolute=yes
8593         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8594           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8595           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8596           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8597           export_dynamic_flag_spec='${wl}-E'
8598         else
8599           case $host_os in
8600            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8601              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8602              hardcode_libdir_flag_spec='-R$libdir'
8603              ;;
8604            *)
8605              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8606              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8607              ;;
8608           esac
8609         fi
8610       else
8611         ld_shlibs=no
8612       fi
8613       ;;
8614
8615     os2*)
8616       hardcode_libdir_flag_spec='-L$libdir'
8617       hardcode_minus_L=yes
8618       allow_undefined_flag=unsupported
8619       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'
8620       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8621       ;;
8622
8623     osf3*)
8624       if test "$GCC" = yes; then
8625         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8626         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'
8627       else
8628         allow_undefined_flag=' -expect_unresolved \*'
8629         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'
8630       fi
8631       archive_cmds_need_lc='no'
8632       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8633       hardcode_libdir_separator=:
8634       ;;
8635
8636     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8637       if test "$GCC" = yes; then
8638         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8639         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'
8640         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8641       else
8642         allow_undefined_flag=' -expect_unresolved \*'
8643         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'
8644         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~
8645         $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'
8646
8647         # Both c and cxx compiler support -rpath directly
8648         hardcode_libdir_flag_spec='-rpath $libdir'
8649       fi
8650       archive_cmds_need_lc='no'
8651       hardcode_libdir_separator=:
8652       ;;
8653
8654     solaris*)
8655       no_undefined_flag=' -z defs'
8656       if test "$GCC" = yes; then
8657         wlarc='${wl}'
8658         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8659         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8660           $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'
8661       else
8662         case `$CC -V 2>&1` in
8663         *"Compilers 5.0"*)
8664           wlarc=''
8665           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8666           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8667           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8668           ;;
8669         *)
8670           wlarc='${wl}'
8671           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8672           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8673           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8674           ;;
8675         esac
8676       fi
8677       hardcode_libdir_flag_spec='-R$libdir'
8678       hardcode_shlibpath_var=no
8679       case $host_os in
8680       solaris2.[0-5] | solaris2.[0-5].*) ;;
8681       *)
8682         # The compiler driver will combine and reorder linker options,
8683         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8684         # but is careful enough not to reorder.
8685         # Supported since Solaris 2.6 (maybe 2.5.1?)
8686         if test "$GCC" = yes; then
8687           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8688         else
8689           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8690         fi
8691         ;;
8692       esac
8693       link_all_deplibs=yes
8694       ;;
8695
8696     sunos4*)
8697       if test "x$host_vendor" = xsequent; then
8698         # Use $CC to link under sequent, because it throws in some extra .o
8699         # files that make .init and .fini sections work.
8700         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8701       else
8702         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8703       fi
8704       hardcode_libdir_flag_spec='-L$libdir'
8705       hardcode_direct=yes
8706       hardcode_minus_L=yes
8707       hardcode_shlibpath_var=no
8708       ;;
8709
8710     sysv4)
8711       case $host_vendor in
8712         sni)
8713           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8714           hardcode_direct=yes # is this really true???
8715         ;;
8716         siemens)
8717           ## LD is ld it makes a PLAMLIB
8718           ## CC just makes a GrossModule.
8719           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8720           reload_cmds='$CC -r -o $output$reload_objs'
8721           hardcode_direct=no
8722         ;;
8723         motorola)
8724           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8725           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8726         ;;
8727       esac
8728       runpath_var='LD_RUN_PATH'
8729       hardcode_shlibpath_var=no
8730       ;;
8731
8732     sysv4.3*)
8733       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8734       hardcode_shlibpath_var=no
8735       export_dynamic_flag_spec='-Bexport'
8736       ;;
8737
8738     sysv4*MP*)
8739       if test -d /usr/nec; then
8740         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8741         hardcode_shlibpath_var=no
8742         runpath_var=LD_RUN_PATH
8743         hardcode_runpath_var=yes
8744         ld_shlibs=yes
8745       fi
8746       ;;
8747
8748     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8749       no_undefined_flag='${wl}-z,text'
8750       archive_cmds_need_lc=no
8751       hardcode_shlibpath_var=no
8752       runpath_var='LD_RUN_PATH'
8753
8754       if test "$GCC" = yes; then
8755         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8756         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8757       else
8758         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8759         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8760       fi
8761       ;;
8762
8763     sysv5* | sco3.2v5* | sco5v6*)
8764       # Note: We can NOT use -z defs as we might desire, because we do not
8765       # link with -lc, and that would cause any symbols used from libc to
8766       # always be unresolved, which means just about no library would
8767       # ever link correctly.  If we're not using GNU ld we use -z text
8768       # though, which does catch some bad symbols but isn't as heavy-handed
8769       # as -z defs.
8770       no_undefined_flag='${wl}-z,text'
8771       allow_undefined_flag='${wl}-z,nodefs'
8772       archive_cmds_need_lc=no
8773       hardcode_shlibpath_var=no
8774       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8775       hardcode_libdir_separator=':'
8776       link_all_deplibs=yes
8777       export_dynamic_flag_spec='${wl}-Bexport'
8778       runpath_var='LD_RUN_PATH'
8779
8780       if test "$GCC" = yes; then
8781         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8782         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8783       else
8784         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8785         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8786       fi
8787       ;;
8788
8789     uts4*)
8790       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8791       hardcode_libdir_flag_spec='-L$libdir'
8792       hardcode_shlibpath_var=no
8793       ;;
8794
8795     *)
8796       ld_shlibs=no
8797       ;;
8798     esac
8799
8800     if test x$host_vendor = xsni; then
8801       case $host in
8802       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8803         export_dynamic_flag_spec='${wl}-Blargedynsym'
8804         ;;
8805       esac
8806     fi
8807   fi
8808
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8810 $as_echo "$ld_shlibs" >&6; }
8811 test "$ld_shlibs" = no && can_build_shared=no
8812
8813 with_gnu_ld=$with_gnu_ld
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829 #
8830 # Do we need to explicitly link libc?
8831 #
8832 case "x$archive_cmds_need_lc" in
8833 x|xyes)
8834   # Assume -lc should be added
8835   archive_cmds_need_lc=yes
8836
8837   if test "$enable_shared" = yes && test "$GCC" = yes; then
8838     case $archive_cmds in
8839     *'~'*)
8840       # FIXME: we may have to deal with multi-command sequences.
8841       ;;
8842     '$CC '*)
8843       # Test whether the compiler implicitly links with -lc since on some
8844       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8845       # to ld, don't add -lc before -lgcc.
8846       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8847 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8848 if ${lt_cv_archive_cmds_need_lc+:} false; then :
8849   $as_echo_n "(cached) " >&6
8850 else
8851   $RM conftest*
8852         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8853
8854         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8855   (eval $ac_compile) 2>&5
8856   ac_status=$?
8857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8858   test $ac_status = 0; } 2>conftest.err; then
8859           soname=conftest
8860           lib=conftest
8861           libobjs=conftest.$ac_objext
8862           deplibs=
8863           wl=$lt_prog_compiler_wl
8864           pic_flag=$lt_prog_compiler_pic
8865           compiler_flags=-v
8866           linker_flags=-v
8867           verstring=
8868           output_objdir=.
8869           libname=conftest
8870           lt_save_allow_undefined_flag=$allow_undefined_flag
8871           allow_undefined_flag=
8872           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8873   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8874   ac_status=$?
8875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8876   test $ac_status = 0; }
8877           then
8878             lt_cv_archive_cmds_need_lc=no
8879           else
8880             lt_cv_archive_cmds_need_lc=yes
8881           fi
8882           allow_undefined_flag=$lt_save_allow_undefined_flag
8883         else
8884           cat conftest.err 1>&5
8885         fi
8886         $RM conftest*
8887
8888 fi
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
8890 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
8891       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
8892       ;;
8893     esac
8894   fi
8895   ;;
8896 esac
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9055 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9056
9057 if test "$GCC" = yes; then
9058   case $host_os in
9059     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9060     *) lt_awk_arg="/^libraries:/" ;;
9061   esac
9062   case $host_os in
9063     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9064     *) lt_sed_strip_eq="s,=/,/,g" ;;
9065   esac
9066   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9067   case $lt_search_path_spec in
9068   *\;*)
9069     # if the path contains ";" then we assume it to be the separator
9070     # otherwise default to the standard path separator (i.e. ":") - it is
9071     # assumed that no part of a normal pathname contains ";" but that should
9072     # okay in the real world where ";" in dirpaths is itself problematic.
9073     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9074     ;;
9075   *)
9076     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9077     ;;
9078   esac
9079   # Ok, now we have the path, separated by spaces, we can step through it
9080   # and add multilib dir if necessary.
9081   lt_tmp_lt_search_path_spec=
9082   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9083   for lt_sys_path in $lt_search_path_spec; do
9084     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9085       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9086     else
9087       test -d "$lt_sys_path" && \
9088         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9089     fi
9090   done
9091   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9092 BEGIN {RS=" "; FS="/|\n";} {
9093   lt_foo="";
9094   lt_count=0;
9095   for (lt_i = NF; lt_i > 0; lt_i--) {
9096     if ($lt_i != "" && $lt_i != ".") {
9097       if ($lt_i == "..") {
9098         lt_count++;
9099       } else {
9100         if (lt_count == 0) {
9101           lt_foo="/" $lt_i lt_foo;
9102         } else {
9103           lt_count--;
9104         }
9105       }
9106     }
9107   }
9108   if (lt_foo != "") { lt_freq[lt_foo]++; }
9109   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9110 }'`
9111   # AWK program above erroneously prepends '/' to C:/dos/paths
9112   # for these hosts.
9113   case $host_os in
9114     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9115       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9116   esac
9117   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9118 else
9119   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9120 fi
9121 library_names_spec=
9122 libname_spec='lib$name'
9123 soname_spec=
9124 shrext_cmds=".so"
9125 postinstall_cmds=
9126 postuninstall_cmds=
9127 finish_cmds=
9128 finish_eval=
9129 shlibpath_var=
9130 shlibpath_overrides_runpath=unknown
9131 version_type=none
9132 dynamic_linker="$host_os ld.so"
9133 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9134 need_lib_prefix=unknown
9135 hardcode_into_libs=no
9136
9137 # when you set need_version to no, make sure it does not cause -set_version
9138 # flags to be left without arguments
9139 need_version=unknown
9140
9141 case $host_os in
9142 aix3*)
9143   version_type=linux
9144   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9145   shlibpath_var=LIBPATH
9146
9147   # AIX 3 has no versioning support, so we append a major version to the name.
9148   soname_spec='${libname}${release}${shared_ext}$major'
9149   ;;
9150
9151 aix[4-9]*)
9152   version_type=linux
9153   need_lib_prefix=no
9154   need_version=no
9155   hardcode_into_libs=yes
9156   if test "$host_cpu" = ia64; then
9157     # AIX 5 supports IA64
9158     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9159     shlibpath_var=LD_LIBRARY_PATH
9160   else
9161     # With GCC up to 2.95.x, collect2 would create an import file
9162     # for dependence libraries.  The import file would start with
9163     # the line `#! .'.  This would cause the generated library to
9164     # depend on `.', always an invalid library.  This was fixed in
9165     # development snapshots of GCC prior to 3.0.
9166     case $host_os in
9167       aix4 | aix4.[01] | aix4.[01].*)
9168       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9169            echo ' yes '
9170            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9171         :
9172       else
9173         can_build_shared=no
9174       fi
9175       ;;
9176     esac
9177     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9178     # soname into executable. Probably we can add versioning support to
9179     # collect2, so additional links can be useful in future.
9180     if test "$aix_use_runtimelinking" = yes; then
9181       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9182       # instead of lib<name>.a to let people know that these are not
9183       # typical AIX shared libraries.
9184       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9185     else
9186       # We preserve .a as extension for shared libraries through AIX4.2
9187       # and later when we are not doing run time linking.
9188       library_names_spec='${libname}${release}.a $libname.a'
9189       soname_spec='${libname}${release}${shared_ext}$major'
9190     fi
9191     shlibpath_var=LIBPATH
9192   fi
9193   ;;
9194
9195 amigaos*)
9196   case $host_cpu in
9197   powerpc)
9198     # Since July 2007 AmigaOS4 officially supports .so libraries.
9199     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9200     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9201     ;;
9202   m68k)
9203     library_names_spec='$libname.ixlibrary $libname.a'
9204     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9205     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'
9206     ;;
9207   esac
9208   ;;
9209
9210 beos*)
9211   library_names_spec='${libname}${shared_ext}'
9212   dynamic_linker="$host_os ld.so"
9213   shlibpath_var=LIBRARY_PATH
9214   ;;
9215
9216 bsdi[45]*)
9217   version_type=linux
9218   need_version=no
9219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9220   soname_spec='${libname}${release}${shared_ext}$major'
9221   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9222   shlibpath_var=LD_LIBRARY_PATH
9223   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9224   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9225   # the default ld.so.conf also contains /usr/contrib/lib and
9226   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9227   # libtool to hard-code these into programs
9228   ;;
9229
9230 cygwin* | mingw* | pw32* | cegcc*)
9231   version_type=windows
9232   shrext_cmds=".dll"
9233   need_version=no
9234   need_lib_prefix=no
9235
9236   case $GCC,$cc_basename in
9237   yes,*)
9238     # gcc
9239     library_names_spec='$libname.dll.a'
9240     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9241     postinstall_cmds='base_file=`basename \${file}`~
9242       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9243       dldir=$destdir/`dirname \$dlpath`~
9244       test -d \$dldir || mkdir -p \$dldir~
9245       $install_prog $dir/$dlname \$dldir/$dlname~
9246       chmod a+x \$dldir/$dlname~
9247       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9248         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9249       fi'
9250     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9251       dlpath=$dir/\$dldll~
9252        $RM \$dlpath'
9253     shlibpath_overrides_runpath=yes
9254
9255     case $host_os in
9256     cygwin*)
9257       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9258       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9259
9260       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9261       ;;
9262     mingw* | cegcc*)
9263       # MinGW DLLs use traditional 'lib' prefix
9264       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9265       ;;
9266     pw32*)
9267       # pw32 DLLs use 'pw' prefix rather than 'lib'
9268       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9269       ;;
9270     esac
9271     dynamic_linker='Win32 ld.exe'
9272     ;;
9273
9274   *,cl*)
9275     # Native MSVC
9276     libname_spec='$name'
9277     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9278     library_names_spec='${libname}.dll.lib'
9279
9280     case $build_os in
9281     mingw*)
9282       sys_lib_search_path_spec=
9283       lt_save_ifs=$IFS
9284       IFS=';'
9285       for lt_path in $LIB
9286       do
9287         IFS=$lt_save_ifs
9288         # Let DOS variable expansion print the short 8.3 style file name.
9289         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9290         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9291       done
9292       IFS=$lt_save_ifs
9293       # Convert to MSYS style.
9294       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9295       ;;
9296     cygwin*)
9297       # Convert to unix form, then to dos form, then back to unix form
9298       # but this time dos style (no spaces!) so that the unix form looks
9299       # like /cygdrive/c/PROGRA~1:/cygdr...
9300       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9301       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9302       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9303       ;;
9304     *)
9305       sys_lib_search_path_spec="$LIB"
9306       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9307         # It is most probably a Windows format PATH.
9308         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9309       else
9310         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9311       fi
9312       # FIXME: find the short name or the path components, as spaces are
9313       # common. (e.g. "Program Files" -> "PROGRA~1")
9314       ;;
9315     esac
9316
9317     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9318     postinstall_cmds='base_file=`basename \${file}`~
9319       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9320       dldir=$destdir/`dirname \$dlpath`~
9321       test -d \$dldir || mkdir -p \$dldir~
9322       $install_prog $dir/$dlname \$dldir/$dlname'
9323     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9324       dlpath=$dir/\$dldll~
9325        $RM \$dlpath'
9326     shlibpath_overrides_runpath=yes
9327     dynamic_linker='Win32 link.exe'
9328     ;;
9329
9330   *)
9331     # Assume MSVC wrapper
9332     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9333     dynamic_linker='Win32 ld.exe'
9334     ;;
9335   esac
9336   # FIXME: first we should search . and the directory the executable is in
9337   shlibpath_var=PATH
9338   ;;
9339
9340 darwin* | rhapsody*)
9341   dynamic_linker="$host_os dyld"
9342   version_type=darwin
9343   need_lib_prefix=no
9344   need_version=no
9345   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9346   soname_spec='${libname}${release}${major}$shared_ext'
9347   shlibpath_overrides_runpath=yes
9348   shlibpath_var=DYLD_LIBRARY_PATH
9349   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9350
9351   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9352   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9353   ;;
9354
9355 dgux*)
9356   version_type=linux
9357   need_lib_prefix=no
9358   need_version=no
9359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9360   soname_spec='${libname}${release}${shared_ext}$major'
9361   shlibpath_var=LD_LIBRARY_PATH
9362   ;;
9363
9364 freebsd1*)
9365   dynamic_linker=no
9366   ;;
9367
9368 freebsd* | dragonfly*)
9369   # DragonFly does not have aout.  When/if they implement a new
9370   # versioning mechanism, adjust this.
9371   if test -x /usr/bin/objformat; then
9372     objformat=`/usr/bin/objformat`
9373   else
9374     case $host_os in
9375     freebsd[123]*) objformat=aout ;;
9376     *) objformat=elf ;;
9377     esac
9378   fi
9379   version_type=freebsd-$objformat
9380   case $version_type in
9381     freebsd-elf*)
9382       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9383       need_version=no
9384       need_lib_prefix=no
9385       ;;
9386     freebsd-*)
9387       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9388       need_version=yes
9389       ;;
9390   esac
9391   shlibpath_var=LD_LIBRARY_PATH
9392   case $host_os in
9393   freebsd2*)
9394     shlibpath_overrides_runpath=yes
9395     ;;
9396   freebsd3.[01]* | freebsdelf3.[01]*)
9397     shlibpath_overrides_runpath=yes
9398     hardcode_into_libs=yes
9399     ;;
9400   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9401   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9402     shlibpath_overrides_runpath=no
9403     hardcode_into_libs=yes
9404     ;;
9405   *) # from 4.6 on, and DragonFly
9406     shlibpath_overrides_runpath=yes
9407     hardcode_into_libs=yes
9408     ;;
9409   esac
9410   ;;
9411
9412 gnu*)
9413   version_type=linux
9414   need_lib_prefix=no
9415   need_version=no
9416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9417   soname_spec='${libname}${release}${shared_ext}$major'
9418   shlibpath_var=LD_LIBRARY_PATH
9419   hardcode_into_libs=yes
9420   ;;
9421
9422 haiku*)
9423   version_type=linux
9424   need_lib_prefix=no
9425   need_version=no
9426   dynamic_linker="$host_os runtime_loader"
9427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9428   soname_spec='${libname}${release}${shared_ext}$major'
9429   shlibpath_var=LIBRARY_PATH
9430   shlibpath_overrides_runpath=yes
9431   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9432   hardcode_into_libs=yes
9433   ;;
9434
9435 hpux9* | hpux10* | hpux11*)
9436   # Give a soname corresponding to the major version so that dld.sl refuses to
9437   # link against other versions.
9438   version_type=sunos
9439   need_lib_prefix=no
9440   need_version=no
9441   case $host_cpu in
9442   ia64*)
9443     shrext_cmds='.so'
9444     hardcode_into_libs=yes
9445     dynamic_linker="$host_os dld.so"
9446     shlibpath_var=LD_LIBRARY_PATH
9447     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9448     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449     soname_spec='${libname}${release}${shared_ext}$major'
9450     if test "X$HPUX_IA64_MODE" = X32; then
9451       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9452     else
9453       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9454     fi
9455     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9456     ;;
9457   hppa*64*)
9458     shrext_cmds='.sl'
9459     hardcode_into_libs=yes
9460     dynamic_linker="$host_os dld.sl"
9461     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9462     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9463     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464     soname_spec='${libname}${release}${shared_ext}$major'
9465     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9466     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9467     ;;
9468   *)
9469     shrext_cmds='.sl'
9470     dynamic_linker="$host_os dld.sl"
9471     shlibpath_var=SHLIB_PATH
9472     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9473     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474     soname_spec='${libname}${release}${shared_ext}$major'
9475     ;;
9476   esac
9477   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9478   postinstall_cmds='chmod 555 $lib'
9479   # or fails outright, so override atomically:
9480   install_override_mode=555
9481   ;;
9482
9483 interix[3-9]*)
9484   version_type=linux
9485   need_lib_prefix=no
9486   need_version=no
9487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9488   soname_spec='${libname}${release}${shared_ext}$major'
9489   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9490   shlibpath_var=LD_LIBRARY_PATH
9491   shlibpath_overrides_runpath=no
9492   hardcode_into_libs=yes
9493   ;;
9494
9495 irix5* | irix6* | nonstopux*)
9496   case $host_os in
9497     nonstopux*) version_type=nonstopux ;;
9498     *)
9499         if test "$lt_cv_prog_gnu_ld" = yes; then
9500                 version_type=linux
9501         else
9502                 version_type=irix
9503         fi ;;
9504   esac
9505   need_lib_prefix=no
9506   need_version=no
9507   soname_spec='${libname}${release}${shared_ext}$major'
9508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9509   case $host_os in
9510   irix5* | nonstopux*)
9511     libsuff= shlibsuff=
9512     ;;
9513   *)
9514     case $LD in # libtool.m4 will add one of these switches to LD
9515     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9516       libsuff= shlibsuff= libmagic=32-bit;;
9517     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9518       libsuff=32 shlibsuff=N32 libmagic=N32;;
9519     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9520       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9521     *) libsuff= shlibsuff= libmagic=never-match;;
9522     esac
9523     ;;
9524   esac
9525   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9526   shlibpath_overrides_runpath=no
9527   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9528   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9529   hardcode_into_libs=yes
9530   ;;
9531
9532 # No shared lib support for Linux oldld, aout, or coff.
9533 linux*oldld* | linux*aout* | linux*coff*)
9534   dynamic_linker=no
9535   ;;
9536
9537 # This must be Linux ELF.
9538 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9539   version_type=linux
9540   need_lib_prefix=no
9541   need_version=no
9542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543   soname_spec='${libname}${release}${shared_ext}$major'
9544   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9545   shlibpath_var=LD_LIBRARY_PATH
9546   shlibpath_overrides_runpath=no
9547
9548   # Some binutils ld are patched to set DT_RUNPATH
9549   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9550   $as_echo_n "(cached) " >&6
9551 else
9552   lt_cv_shlibpath_overrides_runpath=no
9553     save_LDFLAGS=$LDFLAGS
9554     save_libdir=$libdir
9555     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9556          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9557     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558 /* end confdefs.h.  */
9559
9560 int
9561 main ()
9562 {
9563
9564   ;
9565   return 0;
9566 }
9567 _ACEOF
9568 if ac_fn_c_try_link "$LINENO"; then :
9569   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9570   lt_cv_shlibpath_overrides_runpath=yes
9571 fi
9572 fi
9573 rm -f core conftest.err conftest.$ac_objext \
9574     conftest$ac_exeext conftest.$ac_ext
9575     LDFLAGS=$save_LDFLAGS
9576     libdir=$save_libdir
9577
9578 fi
9579
9580   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9581
9582   # This implies no fast_install, which is unacceptable.
9583   # Some rework will be needed to allow for fast_install
9584   # before this can be enabled.
9585   hardcode_into_libs=yes
9586
9587   # Append ld.so.conf contents to the search path
9588   if test -f /etc/ld.so.conf; then
9589     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' ' '`
9590     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9591   fi
9592
9593   # We used to test for /lib/ld.so.1 and disable shared libraries on
9594   # powerpc, because MkLinux only supported shared libraries with the
9595   # GNU dynamic linker.  Since this was broken with cross compilers,
9596   # most powerpc-linux boxes support dynamic linking these days and
9597   # people can always --disable-shared, the test was removed, and we
9598   # assume the GNU/Linux dynamic linker is in use.
9599   dynamic_linker='GNU/Linux ld.so'
9600   ;;
9601
9602 netbsd*)
9603   version_type=sunos
9604   need_lib_prefix=no
9605   need_version=no
9606   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9607     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9608     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9609     dynamic_linker='NetBSD (a.out) ld.so'
9610   else
9611     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9612     soname_spec='${libname}${release}${shared_ext}$major'
9613     dynamic_linker='NetBSD ld.elf_so'
9614   fi
9615   shlibpath_var=LD_LIBRARY_PATH
9616   shlibpath_overrides_runpath=yes
9617   hardcode_into_libs=yes
9618   ;;
9619
9620 newsos6)
9621   version_type=linux
9622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9623   shlibpath_var=LD_LIBRARY_PATH
9624   shlibpath_overrides_runpath=yes
9625   ;;
9626
9627 *nto* | *qnx*)
9628   version_type=qnx
9629   need_lib_prefix=no
9630   need_version=no
9631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9632   soname_spec='${libname}${release}${shared_ext}$major'
9633   shlibpath_var=LD_LIBRARY_PATH
9634   shlibpath_overrides_runpath=no
9635   hardcode_into_libs=yes
9636   dynamic_linker='ldqnx.so'
9637   ;;
9638
9639 openbsd*)
9640   version_type=sunos
9641   sys_lib_dlsearch_path_spec="/usr/lib"
9642   need_lib_prefix=no
9643   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9644   case $host_os in
9645     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9646     *)                          need_version=no  ;;
9647   esac
9648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9649   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9650   shlibpath_var=LD_LIBRARY_PATH
9651   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9652     case $host_os in
9653       openbsd2.[89] | openbsd2.[89].*)
9654         shlibpath_overrides_runpath=no
9655         ;;
9656       *)
9657         shlibpath_overrides_runpath=yes
9658         ;;
9659       esac
9660   else
9661     shlibpath_overrides_runpath=yes
9662   fi
9663   ;;
9664
9665 os2*)
9666   libname_spec='$name'
9667   shrext_cmds=".dll"
9668   need_lib_prefix=no
9669   library_names_spec='$libname${shared_ext} $libname.a'
9670   dynamic_linker='OS/2 ld.exe'
9671   shlibpath_var=LIBPATH
9672   ;;
9673
9674 osf3* | osf4* | osf5*)
9675   version_type=osf
9676   need_lib_prefix=no
9677   need_version=no
9678   soname_spec='${libname}${release}${shared_ext}$major'
9679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9680   shlibpath_var=LD_LIBRARY_PATH
9681   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9682   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9683   ;;
9684
9685 rdos*)
9686   dynamic_linker=no
9687   ;;
9688
9689 solaris*)
9690   version_type=linux
9691   need_lib_prefix=no
9692   need_version=no
9693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9694   soname_spec='${libname}${release}${shared_ext}$major'
9695   shlibpath_var=LD_LIBRARY_PATH
9696   shlibpath_overrides_runpath=yes
9697   hardcode_into_libs=yes
9698   # ldd complains unless libraries are executable
9699   postinstall_cmds='chmod +x $lib'
9700   ;;
9701
9702 sunos4*)
9703   version_type=sunos
9704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9705   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9706   shlibpath_var=LD_LIBRARY_PATH
9707   shlibpath_overrides_runpath=yes
9708   if test "$with_gnu_ld" = yes; then
9709     need_lib_prefix=no
9710   fi
9711   need_version=yes
9712   ;;
9713
9714 sysv4 | sysv4.3*)
9715   version_type=linux
9716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9717   soname_spec='${libname}${release}${shared_ext}$major'
9718   shlibpath_var=LD_LIBRARY_PATH
9719   case $host_vendor in
9720     sni)
9721       shlibpath_overrides_runpath=no
9722       need_lib_prefix=no
9723       runpath_var=LD_RUN_PATH
9724       ;;
9725     siemens)
9726       need_lib_prefix=no
9727       ;;
9728     motorola)
9729       need_lib_prefix=no
9730       need_version=no
9731       shlibpath_overrides_runpath=no
9732       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9733       ;;
9734   esac
9735   ;;
9736
9737 sysv4*MP*)
9738   if test -d /usr/nec ;then
9739     version_type=linux
9740     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9741     soname_spec='$libname${shared_ext}.$major'
9742     shlibpath_var=LD_LIBRARY_PATH
9743   fi
9744   ;;
9745
9746 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9747   version_type=freebsd-elf
9748   need_lib_prefix=no
9749   need_version=no
9750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9751   soname_spec='${libname}${release}${shared_ext}$major'
9752   shlibpath_var=LD_LIBRARY_PATH
9753   shlibpath_overrides_runpath=yes
9754   hardcode_into_libs=yes
9755   if test "$with_gnu_ld" = yes; then
9756     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9757   else
9758     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9759     case $host_os in
9760       sco3.2v5*)
9761         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9762         ;;
9763     esac
9764   fi
9765   sys_lib_dlsearch_path_spec='/usr/lib'
9766   ;;
9767
9768 tpf*)
9769   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9770   version_type=linux
9771   need_lib_prefix=no
9772   need_version=no
9773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9774   shlibpath_var=LD_LIBRARY_PATH
9775   shlibpath_overrides_runpath=no
9776   hardcode_into_libs=yes
9777   ;;
9778
9779 uts4*)
9780   version_type=linux
9781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9782   soname_spec='${libname}${release}${shared_ext}$major'
9783   shlibpath_var=LD_LIBRARY_PATH
9784   ;;
9785
9786 *)
9787   dynamic_linker=no
9788   ;;
9789 esac
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9791 $as_echo "$dynamic_linker" >&6; }
9792 test "$dynamic_linker" = no && can_build_shared=no
9793
9794 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9795 if test "$GCC" = yes; then
9796   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9797 fi
9798
9799 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9800   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9801 fi
9802 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9803   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9804 fi
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9898 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9899 hardcode_action=
9900 if test -n "$hardcode_libdir_flag_spec" ||
9901    test -n "$runpath_var" ||
9902    test "X$hardcode_automatic" = "Xyes" ; then
9903
9904   # We can hardcode non-existent directories.
9905   if test "$hardcode_direct" != no &&
9906      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9907      # have to relink, otherwise we might link with an installed library
9908      # when we should be linking with a yet-to-be-installed one
9909      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9910      test "$hardcode_minus_L" != no; then
9911     # Linking always hardcodes the temporary library directory.
9912     hardcode_action=relink
9913   else
9914     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9915     hardcode_action=immediate
9916   fi
9917 else
9918   # We cannot hardcode anything, or else we can only hardcode existing
9919   # directories.
9920   hardcode_action=unsupported
9921 fi
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9923 $as_echo "$hardcode_action" >&6; }
9924
9925 if test "$hardcode_action" = relink ||
9926    test "$inherit_rpath" = yes; then
9927   # Fast installation is not supported
9928   enable_fast_install=no
9929 elif test "$shlibpath_overrides_runpath" = yes ||
9930      test "$enable_shared" = no; then
9931   # Fast installation is not necessary
9932   enable_fast_install=needless
9933 fi
9934
9935
9936
9937
9938
9939
9940   if test "x$enable_dlopen" != xyes; then
9941   enable_dlopen=unknown
9942   enable_dlopen_self=unknown
9943   enable_dlopen_self_static=unknown
9944 else
9945   lt_cv_dlopen=no
9946   lt_cv_dlopen_libs=
9947
9948   case $host_os in
9949   beos*)
9950     lt_cv_dlopen="load_add_on"
9951     lt_cv_dlopen_libs=
9952     lt_cv_dlopen_self=yes
9953     ;;
9954
9955   mingw* | pw32* | cegcc*)
9956     lt_cv_dlopen="LoadLibrary"
9957     lt_cv_dlopen_libs=
9958     ;;
9959
9960   cygwin*)
9961     lt_cv_dlopen="dlopen"
9962     lt_cv_dlopen_libs=
9963     ;;
9964
9965   darwin*)
9966   # if libdl is installed we need to link against it
9967     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9968 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9969 if ${ac_cv_lib_dl_dlopen+:} false; then :
9970   $as_echo_n "(cached) " >&6
9971 else
9972   ac_check_lib_save_LIBS=$LIBS
9973 LIBS="-ldl  $LIBS"
9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h.  */
9976
9977 /* Override any GCC internal prototype to avoid an error.
9978    Use char because int might match the return type of a GCC
9979    builtin and then its argument prototype would still apply.  */
9980 #ifdef __cplusplus
9981 extern "C"
9982 #endif
9983 char dlopen ();
9984 int
9985 main ()
9986 {
9987 return dlopen ();
9988   ;
9989   return 0;
9990 }
9991 _ACEOF
9992 if ac_fn_c_try_link "$LINENO"; then :
9993   ac_cv_lib_dl_dlopen=yes
9994 else
9995   ac_cv_lib_dl_dlopen=no
9996 fi
9997 rm -f core conftest.err conftest.$ac_objext \
9998     conftest$ac_exeext conftest.$ac_ext
9999 LIBS=$ac_check_lib_save_LIBS
10000 fi
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10002 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10003 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10004   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10005 else
10006
10007     lt_cv_dlopen="dyld"
10008     lt_cv_dlopen_libs=
10009     lt_cv_dlopen_self=yes
10010
10011 fi
10012
10013     ;;
10014
10015   *)
10016     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10017 if test "x$ac_cv_func_shl_load" = xyes; then :
10018   lt_cv_dlopen="shl_load"
10019 else
10020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10021 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10022 if ${ac_cv_lib_dld_shl_load+:} false; then :
10023   $as_echo_n "(cached) " >&6
10024 else
10025   ac_check_lib_save_LIBS=$LIBS
10026 LIBS="-ldld  $LIBS"
10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h.  */
10029
10030 /* Override any GCC internal prototype to avoid an error.
10031    Use char because int might match the return type of a GCC
10032    builtin and then its argument prototype would still apply.  */
10033 #ifdef __cplusplus
10034 extern "C"
10035 #endif
10036 char shl_load ();
10037 int
10038 main ()
10039 {
10040 return shl_load ();
10041   ;
10042   return 0;
10043 }
10044 _ACEOF
10045 if ac_fn_c_try_link "$LINENO"; then :
10046   ac_cv_lib_dld_shl_load=yes
10047 else
10048   ac_cv_lib_dld_shl_load=no
10049 fi
10050 rm -f core conftest.err conftest.$ac_objext \
10051     conftest$ac_exeext conftest.$ac_ext
10052 LIBS=$ac_check_lib_save_LIBS
10053 fi
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10055 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10056 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10057   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10058 else
10059   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10060 if test "x$ac_cv_func_dlopen" = xyes; then :
10061   lt_cv_dlopen="dlopen"
10062 else
10063   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10064 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10065 if ${ac_cv_lib_dl_dlopen+:} false; then :
10066   $as_echo_n "(cached) " >&6
10067 else
10068   ac_check_lib_save_LIBS=$LIBS
10069 LIBS="-ldl  $LIBS"
10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071 /* end confdefs.h.  */
10072
10073 /* Override any GCC internal prototype to avoid an error.
10074    Use char because int might match the return type of a GCC
10075    builtin and then its argument prototype would still apply.  */
10076 #ifdef __cplusplus
10077 extern "C"
10078 #endif
10079 char dlopen ();
10080 int
10081 main ()
10082 {
10083 return dlopen ();
10084   ;
10085   return 0;
10086 }
10087 _ACEOF
10088 if ac_fn_c_try_link "$LINENO"; then :
10089   ac_cv_lib_dl_dlopen=yes
10090 else
10091   ac_cv_lib_dl_dlopen=no
10092 fi
10093 rm -f core conftest.err conftest.$ac_objext \
10094     conftest$ac_exeext conftest.$ac_ext
10095 LIBS=$ac_check_lib_save_LIBS
10096 fi
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10098 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10099 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10100   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10101 else
10102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10103 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10104 if ${ac_cv_lib_svld_dlopen+:} false; then :
10105   $as_echo_n "(cached) " >&6
10106 else
10107   ac_check_lib_save_LIBS=$LIBS
10108 LIBS="-lsvld  $LIBS"
10109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10110 /* end confdefs.h.  */
10111
10112 /* Override any GCC internal prototype to avoid an error.
10113    Use char because int might match the return type of a GCC
10114    builtin and then its argument prototype would still apply.  */
10115 #ifdef __cplusplus
10116 extern "C"
10117 #endif
10118 char dlopen ();
10119 int
10120 main ()
10121 {
10122 return dlopen ();
10123   ;
10124   return 0;
10125 }
10126 _ACEOF
10127 if ac_fn_c_try_link "$LINENO"; then :
10128   ac_cv_lib_svld_dlopen=yes
10129 else
10130   ac_cv_lib_svld_dlopen=no
10131 fi
10132 rm -f core conftest.err conftest.$ac_objext \
10133     conftest$ac_exeext conftest.$ac_ext
10134 LIBS=$ac_check_lib_save_LIBS
10135 fi
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10137 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10138 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10139   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10140 else
10141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10142 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10143 if ${ac_cv_lib_dld_dld_link+:} false; then :
10144   $as_echo_n "(cached) " >&6
10145 else
10146   ac_check_lib_save_LIBS=$LIBS
10147 LIBS="-ldld  $LIBS"
10148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149 /* end confdefs.h.  */
10150
10151 /* Override any GCC internal prototype to avoid an error.
10152    Use char because int might match the return type of a GCC
10153    builtin and then its argument prototype would still apply.  */
10154 #ifdef __cplusplus
10155 extern "C"
10156 #endif
10157 char dld_link ();
10158 int
10159 main ()
10160 {
10161 return dld_link ();
10162   ;
10163   return 0;
10164 }
10165 _ACEOF
10166 if ac_fn_c_try_link "$LINENO"; then :
10167   ac_cv_lib_dld_dld_link=yes
10168 else
10169   ac_cv_lib_dld_dld_link=no
10170 fi
10171 rm -f core conftest.err conftest.$ac_objext \
10172     conftest$ac_exeext conftest.$ac_ext
10173 LIBS=$ac_check_lib_save_LIBS
10174 fi
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10176 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10177 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10178   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10179 fi
10180
10181
10182 fi
10183
10184
10185 fi
10186
10187
10188 fi
10189
10190
10191 fi
10192
10193
10194 fi
10195
10196     ;;
10197   esac
10198
10199   if test "x$lt_cv_dlopen" != xno; then
10200     enable_dlopen=yes
10201   else
10202     enable_dlopen=no
10203   fi
10204
10205   case $lt_cv_dlopen in
10206   dlopen)
10207     save_CPPFLAGS="$CPPFLAGS"
10208     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10209
10210     save_LDFLAGS="$LDFLAGS"
10211     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10212
10213     save_LIBS="$LIBS"
10214     LIBS="$lt_cv_dlopen_libs $LIBS"
10215
10216     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10217 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10218 if ${lt_cv_dlopen_self+:} false; then :
10219   $as_echo_n "(cached) " >&6
10220 else
10221           if test "$cross_compiling" = yes; then :
10222   lt_cv_dlopen_self=cross
10223 else
10224   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10225   lt_status=$lt_dlunknown
10226   cat > conftest.$ac_ext <<_LT_EOF
10227 #line $LINENO "configure"
10228 #include "confdefs.h"
10229
10230 #if HAVE_DLFCN_H
10231 #include <dlfcn.h>
10232 #endif
10233
10234 #include <stdio.h>
10235
10236 #ifdef RTLD_GLOBAL
10237 #  define LT_DLGLOBAL           RTLD_GLOBAL
10238 #else
10239 #  ifdef DL_GLOBAL
10240 #    define LT_DLGLOBAL         DL_GLOBAL
10241 #  else
10242 #    define LT_DLGLOBAL         0
10243 #  endif
10244 #endif
10245
10246 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10247    find out it does not work in some platform. */
10248 #ifndef LT_DLLAZY_OR_NOW
10249 #  ifdef RTLD_LAZY
10250 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10251 #  else
10252 #    ifdef DL_LAZY
10253 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10254 #    else
10255 #      ifdef RTLD_NOW
10256 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10257 #      else
10258 #        ifdef DL_NOW
10259 #          define LT_DLLAZY_OR_NOW      DL_NOW
10260 #        else
10261 #          define LT_DLLAZY_OR_NOW      0
10262 #        endif
10263 #      endif
10264 #    endif
10265 #  endif
10266 #endif
10267
10268 /* When -fvisbility=hidden is used, assume the code has been annotated
10269    correspondingly for the symbols needed.  */
10270 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10271 int fnord () __attribute__((visibility("default")));
10272 #endif
10273
10274 int fnord () { return 42; }
10275 int main ()
10276 {
10277   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10278   int status = $lt_dlunknown;
10279
10280   if (self)
10281     {
10282       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10283       else
10284         {
10285           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10286           else puts (dlerror ());
10287         }
10288       /* dlclose (self); */
10289     }
10290   else
10291     puts (dlerror ());
10292
10293   return status;
10294 }
10295 _LT_EOF
10296   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10297   (eval $ac_link) 2>&5
10298   ac_status=$?
10299   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10300   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10301     (./conftest; exit; ) >&5 2>/dev/null
10302     lt_status=$?
10303     case x$lt_status in
10304       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10305       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10306       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10307     esac
10308   else :
10309     # compilation failed
10310     lt_cv_dlopen_self=no
10311   fi
10312 fi
10313 rm -fr conftest*
10314
10315
10316 fi
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10318 $as_echo "$lt_cv_dlopen_self" >&6; }
10319
10320     if test "x$lt_cv_dlopen_self" = xyes; then
10321       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10322       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10323 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10324 if ${lt_cv_dlopen_self_static+:} false; then :
10325   $as_echo_n "(cached) " >&6
10326 else
10327           if test "$cross_compiling" = yes; then :
10328   lt_cv_dlopen_self_static=cross
10329 else
10330   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10331   lt_status=$lt_dlunknown
10332   cat > conftest.$ac_ext <<_LT_EOF
10333 #line $LINENO "configure"
10334 #include "confdefs.h"
10335
10336 #if HAVE_DLFCN_H
10337 #include <dlfcn.h>
10338 #endif
10339
10340 #include <stdio.h>
10341
10342 #ifdef RTLD_GLOBAL
10343 #  define LT_DLGLOBAL           RTLD_GLOBAL
10344 #else
10345 #  ifdef DL_GLOBAL
10346 #    define LT_DLGLOBAL         DL_GLOBAL
10347 #  else
10348 #    define LT_DLGLOBAL         0
10349 #  endif
10350 #endif
10351
10352 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10353    find out it does not work in some platform. */
10354 #ifndef LT_DLLAZY_OR_NOW
10355 #  ifdef RTLD_LAZY
10356 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10357 #  else
10358 #    ifdef DL_LAZY
10359 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10360 #    else
10361 #      ifdef RTLD_NOW
10362 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10363 #      else
10364 #        ifdef DL_NOW
10365 #          define LT_DLLAZY_OR_NOW      DL_NOW
10366 #        else
10367 #          define LT_DLLAZY_OR_NOW      0
10368 #        endif
10369 #      endif
10370 #    endif
10371 #  endif
10372 #endif
10373
10374 /* When -fvisbility=hidden is used, assume the code has been annotated
10375    correspondingly for the symbols needed.  */
10376 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10377 int fnord () __attribute__((visibility("default")));
10378 #endif
10379
10380 int fnord () { return 42; }
10381 int main ()
10382 {
10383   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10384   int status = $lt_dlunknown;
10385
10386   if (self)
10387     {
10388       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10389       else
10390         {
10391           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10392           else puts (dlerror ());
10393         }
10394       /* dlclose (self); */
10395     }
10396   else
10397     puts (dlerror ());
10398
10399   return status;
10400 }
10401 _LT_EOF
10402   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10403   (eval $ac_link) 2>&5
10404   ac_status=$?
10405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10406   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10407     (./conftest; exit; ) >&5 2>/dev/null
10408     lt_status=$?
10409     case x$lt_status in
10410       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10411       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10412       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10413     esac
10414   else :
10415     # compilation failed
10416     lt_cv_dlopen_self_static=no
10417   fi
10418 fi
10419 rm -fr conftest*
10420
10421
10422 fi
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10424 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10425     fi
10426
10427     CPPFLAGS="$save_CPPFLAGS"
10428     LDFLAGS="$save_LDFLAGS"
10429     LIBS="$save_LIBS"
10430     ;;
10431   esac
10432
10433   case $lt_cv_dlopen_self in
10434   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10435   *) enable_dlopen_self=unknown ;;
10436   esac
10437
10438   case $lt_cv_dlopen_self_static in
10439   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10440   *) enable_dlopen_self_static=unknown ;;
10441   esac
10442 fi
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460 striplib=
10461 old_striplib=
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10463 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10464 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10465   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10466   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10468 $as_echo "yes" >&6; }
10469 else
10470 # FIXME - insert some real tests, host_os isn't really good enough
10471   case $host_os in
10472   darwin*)
10473     if test -n "$STRIP" ; then
10474       striplib="$STRIP -x"
10475       old_striplib="$STRIP -S"
10476       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10477 $as_echo "yes" >&6; }
10478     else
10479       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10480 $as_echo "no" >&6; }
10481     fi
10482     ;;
10483   *)
10484     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10485 $as_echo "no" >&6; }
10486     ;;
10487   esac
10488 fi
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501   # Report which library types will actually be built
10502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10503 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10505 $as_echo "$can_build_shared" >&6; }
10506
10507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10508 $as_echo_n "checking whether to build shared libraries... " >&6; }
10509   test "$can_build_shared" = "no" && enable_shared=no
10510
10511   # On AIX, shared libraries and static libraries use the same namespace, and
10512   # are all built from PIC.
10513   case $host_os in
10514   aix3*)
10515     test "$enable_shared" = yes && enable_static=no
10516     if test -n "$RANLIB"; then
10517       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10518       postinstall_cmds='$RANLIB $lib'
10519     fi
10520     ;;
10521
10522   aix[4-9]*)
10523     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10524       test "$enable_shared" = yes && enable_static=no
10525     fi
10526     ;;
10527   esac
10528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10529 $as_echo "$enable_shared" >&6; }
10530
10531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10532 $as_echo_n "checking whether to build static libraries... " >&6; }
10533   # Make sure either enable_shared or enable_static is yes.
10534   test "$enable_shared" = yes || enable_static=yes
10535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10536 $as_echo "$enable_static" >&6; }
10537
10538
10539
10540
10541 fi
10542 ac_ext=c
10543 ac_cpp='$CPP $CPPFLAGS'
10544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10547
10548 CC="$lt_save_CC"
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562         ac_config_commands="$ac_config_commands libtool"
10563
10564
10565
10566
10567 # Only expand once:
10568
10569
10570
10571 # Check whether --enable-shared was given.
10572 if test "${enable_shared+set}" = set; then :
10573   enableval=$enable_shared;
10574 else
10575   enable_shared=yes
10576 fi
10577
10578
10579
10580 # Check whether --enable-gettext was given.
10581 if test "${enable_gettext+set}" = set; then :
10582   enableval=$enable_gettext;
10583 else
10584   enable_gettext=yes
10585 fi
10586
10587
10588
10589 # Check whether --enable-lib64 was given.
10590 if test "${enable_lib64+set}" = set; then :
10591   enableval=$enable_lib64;
10592 else
10593   enable_lib64=no
10594 fi
10595
10596
10597
10598  pkg_name="acl"
10599
10600
10601     ac_ext=c
10602 ac_cpp='$CPP $CPPFLAGS'
10603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10606 if test -n "$ac_tool_prefix"; then
10607   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10608 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10610 $as_echo_n "checking for $ac_word... " >&6; }
10611 if ${ac_cv_prog_CC+:} false; then :
10612   $as_echo_n "(cached) " >&6
10613 else
10614   if test -n "$CC"; then
10615   ac_cv_prog_CC="$CC" # Let the user override the test.
10616 else
10617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10618 for as_dir in $PATH
10619 do
10620   IFS=$as_save_IFS
10621   test -z "$as_dir" && as_dir=.
10622     for ac_exec_ext in '' $ac_executable_extensions; do
10623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10624     ac_cv_prog_CC="${ac_tool_prefix}gcc"
10625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10626     break 2
10627   fi
10628 done
10629   done
10630 IFS=$as_save_IFS
10631
10632 fi
10633 fi
10634 CC=$ac_cv_prog_CC
10635 if test -n "$CC"; then
10636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10637 $as_echo "$CC" >&6; }
10638 else
10639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10640 $as_echo "no" >&6; }
10641 fi
10642
10643
10644 fi
10645 if test -z "$ac_cv_prog_CC"; then
10646   ac_ct_CC=$CC
10647   # Extract the first word of "gcc", so it can be a program name with args.
10648 set dummy gcc; ac_word=$2
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10650 $as_echo_n "checking for $ac_word... " >&6; }
10651 if ${ac_cv_prog_ac_ct_CC+:} false; then :
10652   $as_echo_n "(cached) " >&6
10653 else
10654   if test -n "$ac_ct_CC"; then
10655   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10656 else
10657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10658 for as_dir in $PATH
10659 do
10660   IFS=$as_save_IFS
10661   test -z "$as_dir" && as_dir=.
10662     for ac_exec_ext in '' $ac_executable_extensions; do
10663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10664     ac_cv_prog_ac_ct_CC="gcc"
10665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10666     break 2
10667   fi
10668 done
10669   done
10670 IFS=$as_save_IFS
10671
10672 fi
10673 fi
10674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10675 if test -n "$ac_ct_CC"; then
10676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10677 $as_echo "$ac_ct_CC" >&6; }
10678 else
10679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10680 $as_echo "no" >&6; }
10681 fi
10682
10683   if test "x$ac_ct_CC" = x; then
10684     CC=""
10685   else
10686     case $cross_compiling:$ac_tool_warned in
10687 yes:)
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10690 ac_tool_warned=yes ;;
10691 esac
10692     CC=$ac_ct_CC
10693   fi
10694 else
10695   CC="$ac_cv_prog_CC"
10696 fi
10697
10698 if test -z "$CC"; then
10699           if test -n "$ac_tool_prefix"; then
10700     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10701 set dummy ${ac_tool_prefix}cc; ac_word=$2
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10703 $as_echo_n "checking for $ac_word... " >&6; }
10704 if ${ac_cv_prog_CC+:} false; then :
10705   $as_echo_n "(cached) " >&6
10706 else
10707   if test -n "$CC"; then
10708   ac_cv_prog_CC="$CC" # Let the user override the test.
10709 else
10710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10711 for as_dir in $PATH
10712 do
10713   IFS=$as_save_IFS
10714   test -z "$as_dir" && as_dir=.
10715     for ac_exec_ext in '' $ac_executable_extensions; do
10716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10717     ac_cv_prog_CC="${ac_tool_prefix}cc"
10718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10719     break 2
10720   fi
10721 done
10722   done
10723 IFS=$as_save_IFS
10724
10725 fi
10726 fi
10727 CC=$ac_cv_prog_CC
10728 if test -n "$CC"; then
10729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10730 $as_echo "$CC" >&6; }
10731 else
10732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10733 $as_echo "no" >&6; }
10734 fi
10735
10736
10737   fi
10738 fi
10739 if test -z "$CC"; then
10740   # Extract the first word of "cc", so it can be a program name with args.
10741 set dummy cc; ac_word=$2
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10743 $as_echo_n "checking for $ac_word... " >&6; }
10744 if ${ac_cv_prog_CC+:} false; then :
10745   $as_echo_n "(cached) " >&6
10746 else
10747   if test -n "$CC"; then
10748   ac_cv_prog_CC="$CC" # Let the user override the test.
10749 else
10750   ac_prog_rejected=no
10751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10752 for as_dir in $PATH
10753 do
10754   IFS=$as_save_IFS
10755   test -z "$as_dir" && as_dir=.
10756     for ac_exec_ext in '' $ac_executable_extensions; do
10757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10758     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10759        ac_prog_rejected=yes
10760        continue
10761      fi
10762     ac_cv_prog_CC="cc"
10763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10764     break 2
10765   fi
10766 done
10767   done
10768 IFS=$as_save_IFS
10769
10770 if test $ac_prog_rejected = yes; then
10771   # We found a bogon in the path, so make sure we never use it.
10772   set dummy $ac_cv_prog_CC
10773   shift
10774   if test $# != 0; then
10775     # We chose a different compiler from the bogus one.
10776     # However, it has the same basename, so the bogon will be chosen
10777     # first if we set CC to just the basename; use the full file name.
10778     shift
10779     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10780   fi
10781 fi
10782 fi
10783 fi
10784 CC=$ac_cv_prog_CC
10785 if test -n "$CC"; then
10786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10787 $as_echo "$CC" >&6; }
10788 else
10789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10790 $as_echo "no" >&6; }
10791 fi
10792
10793
10794 fi
10795 if test -z "$CC"; then
10796   if test -n "$ac_tool_prefix"; then
10797   for ac_prog in cl.exe
10798   do
10799     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10802 $as_echo_n "checking for $ac_word... " >&6; }
10803 if ${ac_cv_prog_CC+:} false; then :
10804   $as_echo_n "(cached) " >&6
10805 else
10806   if test -n "$CC"; then
10807   ac_cv_prog_CC="$CC" # Let the user override the test.
10808 else
10809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10810 for as_dir in $PATH
10811 do
10812   IFS=$as_save_IFS
10813   test -z "$as_dir" && as_dir=.
10814     for ac_exec_ext in '' $ac_executable_extensions; do
10815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10816     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10818     break 2
10819   fi
10820 done
10821   done
10822 IFS=$as_save_IFS
10823
10824 fi
10825 fi
10826 CC=$ac_cv_prog_CC
10827 if test -n "$CC"; then
10828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10829 $as_echo "$CC" >&6; }
10830 else
10831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10832 $as_echo "no" >&6; }
10833 fi
10834
10835
10836     test -n "$CC" && break
10837   done
10838 fi
10839 if test -z "$CC"; then
10840   ac_ct_CC=$CC
10841   for ac_prog in cl.exe
10842 do
10843   # Extract the first word of "$ac_prog", so it can be a program name with args.
10844 set dummy $ac_prog; ac_word=$2
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10846 $as_echo_n "checking for $ac_word... " >&6; }
10847 if ${ac_cv_prog_ac_ct_CC+:} false; then :
10848   $as_echo_n "(cached) " >&6
10849 else
10850   if test -n "$ac_ct_CC"; then
10851   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
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     for ac_exec_ext in '' $ac_executable_extensions; do
10859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10860     ac_cv_prog_ac_ct_CC="$ac_prog"
10861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10862     break 2
10863   fi
10864 done
10865   done
10866 IFS=$as_save_IFS
10867
10868 fi
10869 fi
10870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10871 if test -n "$ac_ct_CC"; then
10872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10873 $as_echo "$ac_ct_CC" >&6; }
10874 else
10875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10876 $as_echo "no" >&6; }
10877 fi
10878
10879
10880   test -n "$ac_ct_CC" && break
10881 done
10882
10883   if test "x$ac_ct_CC" = x; then
10884     CC=""
10885   else
10886     case $cross_compiling:$ac_tool_warned in
10887 yes:)
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10890 ac_tool_warned=yes ;;
10891 esac
10892     CC=$ac_ct_CC
10893   fi
10894 fi
10895
10896 fi
10897
10898
10899 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10901 as_fn_error $? "no acceptable C compiler found in \$PATH
10902 See \`config.log' for more details" "$LINENO" 5; }
10903
10904 # Provide some information about the compiler.
10905 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10906 set X $ac_compile
10907 ac_compiler=$2
10908 for ac_option in --version -v -V -qversion; do
10909   { { ac_try="$ac_compiler $ac_option >&5"
10910 case "(($ac_try" in
10911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912   *) ac_try_echo=$ac_try;;
10913 esac
10914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10915 $as_echo "$ac_try_echo"; } >&5
10916   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10917   ac_status=$?
10918   if test -s conftest.err; then
10919     sed '10a\
10920 ... rest of stderr output deleted ...
10921          10q' conftest.err >conftest.er1
10922     cat conftest.er1 >&5
10923   fi
10924   rm -f conftest.er1 conftest.err
10925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10926   test $ac_status = 0; }
10927 done
10928
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10930 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10931 if ${ac_cv_c_compiler_gnu+:} false; then :
10932   $as_echo_n "(cached) " >&6
10933 else
10934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10935 /* end confdefs.h.  */
10936
10937 int
10938 main ()
10939 {
10940 #ifndef __GNUC__
10941        choke me
10942 #endif
10943
10944   ;
10945   return 0;
10946 }
10947 _ACEOF
10948 if ac_fn_c_try_compile "$LINENO"; then :
10949   ac_compiler_gnu=yes
10950 else
10951   ac_compiler_gnu=no
10952 fi
10953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10954 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10955
10956 fi
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
10958 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
10959 if test $ac_compiler_gnu = yes; then
10960   GCC=yes
10961 else
10962   GCC=
10963 fi
10964 ac_test_CFLAGS=${CFLAGS+set}
10965 ac_save_CFLAGS=$CFLAGS
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
10967 $as_echo_n "checking whether $CC accepts -g... " >&6; }
10968 if ${ac_cv_prog_cc_g+:} false; then :
10969   $as_echo_n "(cached) " >&6
10970 else
10971   ac_save_c_werror_flag=$ac_c_werror_flag
10972    ac_c_werror_flag=yes
10973    ac_cv_prog_cc_g=no
10974    CFLAGS="-g"
10975    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976 /* end confdefs.h.  */
10977
10978 int
10979 main ()
10980 {
10981
10982   ;
10983   return 0;
10984 }
10985 _ACEOF
10986 if ac_fn_c_try_compile "$LINENO"; then :
10987   ac_cv_prog_cc_g=yes
10988 else
10989   CFLAGS=""
10990       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10991 /* end confdefs.h.  */
10992
10993 int
10994 main ()
10995 {
10996
10997   ;
10998   return 0;
10999 }
11000 _ACEOF
11001 if ac_fn_c_try_compile "$LINENO"; then :
11002
11003 else
11004   ac_c_werror_flag=$ac_save_c_werror_flag
11005          CFLAGS="-g"
11006          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h.  */
11008
11009 int
11010 main ()
11011 {
11012
11013   ;
11014   return 0;
11015 }
11016 _ACEOF
11017 if ac_fn_c_try_compile "$LINENO"; then :
11018   ac_cv_prog_cc_g=yes
11019 fi
11020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11021 fi
11022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11023 fi
11024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11025    ac_c_werror_flag=$ac_save_c_werror_flag
11026 fi
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11028 $as_echo "$ac_cv_prog_cc_g" >&6; }
11029 if test "$ac_test_CFLAGS" = set; then
11030   CFLAGS=$ac_save_CFLAGS
11031 elif test $ac_cv_prog_cc_g = yes; then
11032   if test "$GCC" = yes; then
11033     CFLAGS="-g -O2"
11034   else
11035     CFLAGS="-g"
11036   fi
11037 else
11038   if test "$GCC" = yes; then
11039     CFLAGS="-O2"
11040   else
11041     CFLAGS=
11042   fi
11043 fi
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11045 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11046 if ${ac_cv_prog_cc_c89+:} false; then :
11047   $as_echo_n "(cached) " >&6
11048 else
11049   ac_cv_prog_cc_c89=no
11050 ac_save_CC=$CC
11051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h.  */
11053 #include <stdarg.h>
11054 #include <stdio.h>
11055 #include <sys/types.h>
11056 #include <sys/stat.h>
11057 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11058 struct buf { int x; };
11059 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11060 static char *e (p, i)
11061      char **p;
11062      int i;
11063 {
11064   return p[i];
11065 }
11066 static char *f (char * (*g) (char **, int), char **p, ...)
11067 {
11068   char *s;
11069   va_list v;
11070   va_start (v,p);
11071   s = g (p, va_arg (v,int));
11072   va_end (v);
11073   return s;
11074 }
11075
11076 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11077    function prototypes and stuff, but not '\xHH' hex character constants.
11078    These don't provoke an error unfortunately, instead are silently treated
11079    as 'x'.  The following induces an error, until -std is added to get
11080    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11081    array size at least.  It's necessary to write '\x00'==0 to get something
11082    that's true only with -std.  */
11083 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11084
11085 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11086    inside strings and character constants.  */
11087 #define FOO(x) 'x'
11088 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11089
11090 int test (int i, double x);
11091 struct s1 {int (*f) (int a);};
11092 struct s2 {int (*f) (double a);};
11093 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11094 int argc;
11095 char **argv;
11096 int
11097 main ()
11098 {
11099 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11100   ;
11101   return 0;
11102 }
11103 _ACEOF
11104 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11105         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11106 do
11107   CC="$ac_save_CC $ac_arg"
11108   if ac_fn_c_try_compile "$LINENO"; then :
11109   ac_cv_prog_cc_c89=$ac_arg
11110 fi
11111 rm -f core conftest.err conftest.$ac_objext
11112   test "x$ac_cv_prog_cc_c89" != "xno" && break
11113 done
11114 rm -f conftest.$ac_ext
11115 CC=$ac_save_CC
11116
11117 fi
11118 # AC_CACHE_VAL
11119 case "x$ac_cv_prog_cc_c89" in
11120   x)
11121     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11122 $as_echo "none needed" >&6; } ;;
11123   xno)
11124     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11125 $as_echo "unsupported" >&6; } ;;
11126   *)
11127     CC="$CC $ac_cv_prog_cc_c89"
11128     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11129 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11130 esac
11131 if test "x$ac_cv_prog_cc_c89" != xno; then :
11132
11133 fi
11134
11135 ac_ext=c
11136 ac_cpp='$CPP $CPPFLAGS'
11137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11140
11141
11142     . ./VERSION
11143     pkg_version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION}
11144
11145     pkg_release=$PKG_BUILD
11146     test -z "$BUILD_VERSION" || pkg_release="$BUILD_VERSION"
11147
11148
11149     DEBUG=${DEBUG:-'-DDEBUG'}               debug_build="$DEBUG"
11150
11151
11152     OPTIMIZER=${OPTIMIZER:-'-g -O2'}
11153     opt_build="$OPTIMIZER"
11154
11155
11156     MALLOCLIB=${MALLOCLIB:-''}              malloc_lib="$MALLOCLIB"
11157
11158
11159     pkg_user=`id -u -n`
11160     test -z "$INSTALL_USER" || pkg_user="$INSTALL_USER"
11161
11162
11163     pkg_group=`id -g -n`
11164     test -z "$INSTALL_GROUP" || pkg_group="$INSTALL_GROUP"
11165
11166
11167     pkg_distribution=`uname -s`
11168     test -z "$DISTRIBUTION" || pkg_distribution="$DISTRIBUTION"
11169
11170
11171     pkg_platform=`uname -s | tr 'A-Z' 'a-z' | sed -e 's/irix64/irix/'`
11172     test -z "$PLATFORM" || pkg_platform="$PLATFORM"
11173
11174
11175  ac_ext=c
11176 ac_cpp='$CPP $CPPFLAGS'
11177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11180 if test -n "$ac_tool_prefix"; then
11181   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11182 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11184 $as_echo_n "checking for $ac_word... " >&6; }
11185 if ${ac_cv_prog_CC+:} false; then :
11186   $as_echo_n "(cached) " >&6
11187 else
11188   if test -n "$CC"; then
11189   ac_cv_prog_CC="$CC" # Let the user override the test.
11190 else
11191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11192 for as_dir in $PATH
11193 do
11194   IFS=$as_save_IFS
11195   test -z "$as_dir" && as_dir=.
11196     for ac_exec_ext in '' $ac_executable_extensions; do
11197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11198     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11200     break 2
11201   fi
11202 done
11203   done
11204 IFS=$as_save_IFS
11205
11206 fi
11207 fi
11208 CC=$ac_cv_prog_CC
11209 if test -n "$CC"; then
11210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11211 $as_echo "$CC" >&6; }
11212 else
11213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11214 $as_echo "no" >&6; }
11215 fi
11216
11217
11218 fi
11219 if test -z "$ac_cv_prog_CC"; then
11220   ac_ct_CC=$CC
11221   # Extract the first word of "gcc", so it can be a program name with args.
11222 set dummy gcc; ac_word=$2
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224 $as_echo_n "checking for $ac_word... " >&6; }
11225 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11226   $as_echo_n "(cached) " >&6
11227 else
11228   if test -n "$ac_ct_CC"; then
11229   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11230 else
11231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232 for as_dir in $PATH
11233 do
11234   IFS=$as_save_IFS
11235   test -z "$as_dir" && as_dir=.
11236     for ac_exec_ext in '' $ac_executable_extensions; do
11237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11238     ac_cv_prog_ac_ct_CC="gcc"
11239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11240     break 2
11241   fi
11242 done
11243   done
11244 IFS=$as_save_IFS
11245
11246 fi
11247 fi
11248 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11249 if test -n "$ac_ct_CC"; then
11250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11251 $as_echo "$ac_ct_CC" >&6; }
11252 else
11253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254 $as_echo "no" >&6; }
11255 fi
11256
11257   if test "x$ac_ct_CC" = x; then
11258     CC=""
11259   else
11260     case $cross_compiling:$ac_tool_warned in
11261 yes:)
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11264 ac_tool_warned=yes ;;
11265 esac
11266     CC=$ac_ct_CC
11267   fi
11268 else
11269   CC="$ac_cv_prog_CC"
11270 fi
11271
11272 if test -z "$CC"; then
11273           if test -n "$ac_tool_prefix"; then
11274     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11275 set dummy ${ac_tool_prefix}cc; ac_word=$2
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11277 $as_echo_n "checking for $ac_word... " >&6; }
11278 if ${ac_cv_prog_CC+:} false; then :
11279   $as_echo_n "(cached) " >&6
11280 else
11281   if test -n "$CC"; then
11282   ac_cv_prog_CC="$CC" # Let the user override the test.
11283 else
11284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11285 for as_dir in $PATH
11286 do
11287   IFS=$as_save_IFS
11288   test -z "$as_dir" && as_dir=.
11289     for ac_exec_ext in '' $ac_executable_extensions; do
11290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11291     ac_cv_prog_CC="${ac_tool_prefix}cc"
11292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11293     break 2
11294   fi
11295 done
11296   done
11297 IFS=$as_save_IFS
11298
11299 fi
11300 fi
11301 CC=$ac_cv_prog_CC
11302 if test -n "$CC"; then
11303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11304 $as_echo "$CC" >&6; }
11305 else
11306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307 $as_echo "no" >&6; }
11308 fi
11309
11310
11311   fi
11312 fi
11313 if test -z "$CC"; then
11314   # Extract the first word of "cc", so it can be a program name with args.
11315 set dummy cc; ac_word=$2
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11317 $as_echo_n "checking for $ac_word... " >&6; }
11318 if ${ac_cv_prog_CC+:} false; then :
11319   $as_echo_n "(cached) " >&6
11320 else
11321   if test -n "$CC"; then
11322   ac_cv_prog_CC="$CC" # Let the user override the test.
11323 else
11324   ac_prog_rejected=no
11325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11326 for as_dir in $PATH
11327 do
11328   IFS=$as_save_IFS
11329   test -z "$as_dir" && as_dir=.
11330     for ac_exec_ext in '' $ac_executable_extensions; do
11331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11332     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11333        ac_prog_rejected=yes
11334        continue
11335      fi
11336     ac_cv_prog_CC="cc"
11337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11338     break 2
11339   fi
11340 done
11341   done
11342 IFS=$as_save_IFS
11343
11344 if test $ac_prog_rejected = yes; then
11345   # We found a bogon in the path, so make sure we never use it.
11346   set dummy $ac_cv_prog_CC
11347   shift
11348   if test $# != 0; then
11349     # We chose a different compiler from the bogus one.
11350     # However, it has the same basename, so the bogon will be chosen
11351     # first if we set CC to just the basename; use the full file name.
11352     shift
11353     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11354   fi
11355 fi
11356 fi
11357 fi
11358 CC=$ac_cv_prog_CC
11359 if test -n "$CC"; then
11360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11361 $as_echo "$CC" >&6; }
11362 else
11363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11364 $as_echo "no" >&6; }
11365 fi
11366
11367
11368 fi
11369 if test -z "$CC"; then
11370   if test -n "$ac_tool_prefix"; then
11371   for ac_prog in cl.exe
11372   do
11373     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11374 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11376 $as_echo_n "checking for $ac_word... " >&6; }
11377 if ${ac_cv_prog_CC+:} false; then :
11378   $as_echo_n "(cached) " >&6
11379 else
11380   if test -n "$CC"; then
11381   ac_cv_prog_CC="$CC" # Let the user override the test.
11382 else
11383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384 for as_dir in $PATH
11385 do
11386   IFS=$as_save_IFS
11387   test -z "$as_dir" && as_dir=.
11388     for ac_exec_ext in '' $ac_executable_extensions; do
11389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11390     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11392     break 2
11393   fi
11394 done
11395   done
11396 IFS=$as_save_IFS
11397
11398 fi
11399 fi
11400 CC=$ac_cv_prog_CC
11401 if test -n "$CC"; then
11402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11403 $as_echo "$CC" >&6; }
11404 else
11405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406 $as_echo "no" >&6; }
11407 fi
11408
11409
11410     test -n "$CC" && break
11411   done
11412 fi
11413 if test -z "$CC"; then
11414   ac_ct_CC=$CC
11415   for ac_prog in cl.exe
11416 do
11417   # Extract the first word of "$ac_prog", so it can be a program name with args.
11418 set dummy $ac_prog; ac_word=$2
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11420 $as_echo_n "checking for $ac_word... " >&6; }
11421 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11422   $as_echo_n "(cached) " >&6
11423 else
11424   if test -n "$ac_ct_CC"; then
11425   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11426 else
11427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11428 for as_dir in $PATH
11429 do
11430   IFS=$as_save_IFS
11431   test -z "$as_dir" && as_dir=.
11432     for ac_exec_ext in '' $ac_executable_extensions; do
11433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11434     ac_cv_prog_ac_ct_CC="$ac_prog"
11435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11436     break 2
11437   fi
11438 done
11439   done
11440 IFS=$as_save_IFS
11441
11442 fi
11443 fi
11444 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11445 if test -n "$ac_ct_CC"; then
11446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11447 $as_echo "$ac_ct_CC" >&6; }
11448 else
11449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11450 $as_echo "no" >&6; }
11451 fi
11452
11453
11454   test -n "$ac_ct_CC" && break
11455 done
11456
11457   if test "x$ac_ct_CC" = x; then
11458     CC=""
11459   else
11460     case $cross_compiling:$ac_tool_warned in
11461 yes:)
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11464 ac_tool_warned=yes ;;
11465 esac
11466     CC=$ac_ct_CC
11467   fi
11468 fi
11469
11470 fi
11471
11472
11473 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11475 as_fn_error $? "no acceptable C compiler found in \$PATH
11476 See \`config.log' for more details" "$LINENO" 5; }
11477
11478 # Provide some information about the compiler.
11479 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11480 set X $ac_compile
11481 ac_compiler=$2
11482 for ac_option in --version -v -V -qversion; do
11483   { { ac_try="$ac_compiler $ac_option >&5"
11484 case "(($ac_try" in
11485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486   *) ac_try_echo=$ac_try;;
11487 esac
11488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11489 $as_echo "$ac_try_echo"; } >&5
11490   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11491   ac_status=$?
11492   if test -s conftest.err; then
11493     sed '10a\
11494 ... rest of stderr output deleted ...
11495          10q' conftest.err >conftest.er1
11496     cat conftest.er1 >&5
11497   fi
11498   rm -f conftest.er1 conftest.err
11499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11500   test $ac_status = 0; }
11501 done
11502
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11504 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11505 if ${ac_cv_c_compiler_gnu+:} false; then :
11506   $as_echo_n "(cached) " >&6
11507 else
11508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h.  */
11510
11511 int
11512 main ()
11513 {
11514 #ifndef __GNUC__
11515        choke me
11516 #endif
11517
11518   ;
11519   return 0;
11520 }
11521 _ACEOF
11522 if ac_fn_c_try_compile "$LINENO"; then :
11523   ac_compiler_gnu=yes
11524 else
11525   ac_compiler_gnu=no
11526 fi
11527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11528 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11529
11530 fi
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11532 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11533 if test $ac_compiler_gnu = yes; then
11534   GCC=yes
11535 else
11536   GCC=
11537 fi
11538 ac_test_CFLAGS=${CFLAGS+set}
11539 ac_save_CFLAGS=$CFLAGS
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11541 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11542 if ${ac_cv_prog_cc_g+:} false; then :
11543   $as_echo_n "(cached) " >&6
11544 else
11545   ac_save_c_werror_flag=$ac_c_werror_flag
11546    ac_c_werror_flag=yes
11547    ac_cv_prog_cc_g=no
11548    CFLAGS="-g"
11549    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11550 /* end confdefs.h.  */
11551
11552 int
11553 main ()
11554 {
11555
11556   ;
11557   return 0;
11558 }
11559 _ACEOF
11560 if ac_fn_c_try_compile "$LINENO"; then :
11561   ac_cv_prog_cc_g=yes
11562 else
11563   CFLAGS=""
11564       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11565 /* end confdefs.h.  */
11566
11567 int
11568 main ()
11569 {
11570
11571   ;
11572   return 0;
11573 }
11574 _ACEOF
11575 if ac_fn_c_try_compile "$LINENO"; then :
11576
11577 else
11578   ac_c_werror_flag=$ac_save_c_werror_flag
11579          CFLAGS="-g"
11580          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581 /* end confdefs.h.  */
11582
11583 int
11584 main ()
11585 {
11586
11587   ;
11588   return 0;
11589 }
11590 _ACEOF
11591 if ac_fn_c_try_compile "$LINENO"; then :
11592   ac_cv_prog_cc_g=yes
11593 fi
11594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11595 fi
11596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11597 fi
11598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11599    ac_c_werror_flag=$ac_save_c_werror_flag
11600 fi
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11602 $as_echo "$ac_cv_prog_cc_g" >&6; }
11603 if test "$ac_test_CFLAGS" = set; then
11604   CFLAGS=$ac_save_CFLAGS
11605 elif test $ac_cv_prog_cc_g = yes; then
11606   if test "$GCC" = yes; then
11607     CFLAGS="-g -O2"
11608   else
11609     CFLAGS="-g"
11610   fi
11611 else
11612   if test "$GCC" = yes; then
11613     CFLAGS="-O2"
11614   else
11615     CFLAGS=
11616   fi
11617 fi
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11619 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11620 if ${ac_cv_prog_cc_c89+:} false; then :
11621   $as_echo_n "(cached) " >&6
11622 else
11623   ac_cv_prog_cc_c89=no
11624 ac_save_CC=$CC
11625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626 /* end confdefs.h.  */
11627 #include <stdarg.h>
11628 #include <stdio.h>
11629 #include <sys/types.h>
11630 #include <sys/stat.h>
11631 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11632 struct buf { int x; };
11633 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11634 static char *e (p, i)
11635      char **p;
11636      int i;
11637 {
11638   return p[i];
11639 }
11640 static char *f (char * (*g) (char **, int), char **p, ...)
11641 {
11642   char *s;
11643   va_list v;
11644   va_start (v,p);
11645   s = g (p, va_arg (v,int));
11646   va_end (v);
11647   return s;
11648 }
11649
11650 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11651    function prototypes and stuff, but not '\xHH' hex character constants.
11652    These don't provoke an error unfortunately, instead are silently treated
11653    as 'x'.  The following induces an error, until -std is added to get
11654    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11655    array size at least.  It's necessary to write '\x00'==0 to get something
11656    that's true only with -std.  */
11657 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11658
11659 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11660    inside strings and character constants.  */
11661 #define FOO(x) 'x'
11662 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11663
11664 int test (int i, double x);
11665 struct s1 {int (*f) (int a);};
11666 struct s2 {int (*f) (double a);};
11667 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11668 int argc;
11669 char **argv;
11670 int
11671 main ()
11672 {
11673 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11674   ;
11675   return 0;
11676 }
11677 _ACEOF
11678 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11679         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11680 do
11681   CC="$ac_save_CC $ac_arg"
11682   if ac_fn_c_try_compile "$LINENO"; then :
11683   ac_cv_prog_cc_c89=$ac_arg
11684 fi
11685 rm -f core conftest.err conftest.$ac_objext
11686   test "x$ac_cv_prog_cc_c89" != "xno" && break
11687 done
11688 rm -f conftest.$ac_ext
11689 CC=$ac_save_CC
11690
11691 fi
11692 # AC_CACHE_VAL
11693 case "x$ac_cv_prog_cc_c89" in
11694   x)
11695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11696 $as_echo "none needed" >&6; } ;;
11697   xno)
11698     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11699 $as_echo "unsupported" >&6; } ;;
11700   *)
11701     CC="$CC $ac_cv_prog_cc_c89"
11702     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11703 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11704 esac
11705 if test "x$ac_cv_prog_cc_c89" != xno; then :
11706
11707 fi
11708
11709 ac_ext=c
11710 ac_cpp='$CPP $CPPFLAGS'
11711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11714
11715     cc="$CC"
11716
11717      if test -z ""$cc""; then
11718         echo
11719         echo FATAL ERROR: cc does not seem to be installed.
11720         echo acl cannot be built without a working C compiler installation.
11721         exit 1
11722     fi
11723
11724
11725     search_path="$PATH$PATH_SEPARATOR/usr/freeware/bin$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR/usr/local/bin"
11726
11727     for ac_prog in gmake make
11728 do
11729   # Extract the first word of "$ac_prog", so it can be a program name with args.
11730 set dummy $ac_prog; ac_word=$2
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11732 $as_echo_n "checking for $ac_word... " >&6; }
11733 if ${ac_cv_path_MAKE+:} false; then :
11734   $as_echo_n "(cached) " >&6
11735 else
11736   case $MAKE in
11737   [\\/]* | ?:[\\/]*)
11738   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
11739   ;;
11740   *)
11741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742 for as_dir in $search_path
11743 do
11744   IFS=$as_save_IFS
11745   test -z "$as_dir" && as_dir=.
11746     for ac_exec_ext in '' $ac_executable_extensions; do
11747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11748     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
11749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11750     break 2
11751   fi
11752 done
11753   done
11754 IFS=$as_save_IFS
11755
11756   ;;
11757 esac
11758 fi
11759 MAKE=$ac_cv_path_MAKE
11760 if test -n "$MAKE"; then
11761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
11762 $as_echo "$MAKE" >&6; }
11763 else
11764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765 $as_echo "no" >&6; }
11766 fi
11767
11768
11769   test -n "$MAKE" && break
11770 done
11771
11772     make=$MAKE
11773
11774      if test -z ""$make""; then
11775         echo
11776         echo FATAL ERROR: make does not seem to be installed.
11777         echo acl cannot be built without a working GNU make installation.
11778         exit 1
11779     fi
11780
11781
11782     # Extract the first word of "tar", so it can be a program name with args.
11783 set dummy tar; ac_word=$2
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11785 $as_echo_n "checking for $ac_word... " >&6; }
11786 if ${ac_cv_path_TAR+:} false; then :
11787   $as_echo_n "(cached) " >&6
11788 else
11789   case $TAR in
11790   [\\/]* | ?:[\\/]*)
11791   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11792   ;;
11793   *)
11794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11795 for as_dir in $search_path
11796 do
11797   IFS=$as_save_IFS
11798   test -z "$as_dir" && as_dir=.
11799     for ac_exec_ext in '' $ac_executable_extensions; do
11800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11801     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11803     break 2
11804   fi
11805 done
11806   done
11807 IFS=$as_save_IFS
11808
11809   ;;
11810 esac
11811 fi
11812 TAR=$ac_cv_path_TAR
11813 if test -n "$TAR"; then
11814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11815 $as_echo "$TAR" >&6; }
11816 else
11817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11818 $as_echo "no" >&6; }
11819 fi
11820
11821
11822     tar=$TAR
11823
11824
11825     # Extract the first word of "gzip", so it can be a program name with args.
11826 set dummy gzip; ac_word=$2
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11828 $as_echo_n "checking for $ac_word... " >&6; }
11829 if ${ac_cv_path_ZIP+:} false; then :
11830   $as_echo_n "(cached) " >&6
11831 else
11832   case $ZIP in
11833   [\\/]* | ?:[\\/]*)
11834   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
11835   ;;
11836   *)
11837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11838 for as_dir in $search_path
11839 do
11840   IFS=$as_save_IFS
11841   test -z "$as_dir" && as_dir=.
11842     for ac_exec_ext in '' $ac_executable_extensions; do
11843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11844     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
11845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11846     break 2
11847   fi
11848 done
11849   done
11850 IFS=$as_save_IFS
11851
11852   ;;
11853 esac
11854 fi
11855 ZIP=$ac_cv_path_ZIP
11856 if test -n "$ZIP"; then
11857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
11858 $as_echo "$ZIP" >&6; }
11859 else
11860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861 $as_echo "no" >&6; }
11862 fi
11863
11864
11865     zip=$ZIP
11866
11867
11868     # Extract the first word of "makedepend", so it can be a program name with args.
11869 set dummy makedepend; ac_word=$2
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11871 $as_echo_n "checking for $ac_word... " >&6; }
11872 if ${ac_cv_path_MAKEDEPEND+:} false; then :
11873   $as_echo_n "(cached) " >&6
11874 else
11875   case $MAKEDEPEND in
11876   [\\/]* | ?:[\\/]*)
11877   ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
11878   ;;
11879   *)
11880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11881 for as_dir in $PATH
11882 do
11883   IFS=$as_save_IFS
11884   test -z "$as_dir" && as_dir=.
11885     for ac_exec_ext in '' $ac_executable_extensions; do
11886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11887     ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
11888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11889     break 2
11890   fi
11891 done
11892   done
11893 IFS=$as_save_IFS
11894
11895   test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND="/bin/true"
11896   ;;
11897 esac
11898 fi
11899 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
11900 if test -n "$MAKEDEPEND"; then
11901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
11902 $as_echo "$MAKEDEPEND" >&6; }
11903 else
11904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11906 fi
11907
11908
11909     makedepend=$MAKEDEPEND
11910
11911
11912     # Extract the first word of "awk", so it can be a program name with args.
11913 set dummy awk; ac_word=$2
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11915 $as_echo_n "checking for $ac_word... " >&6; }
11916 if ${ac_cv_path_AWK+:} false; then :
11917   $as_echo_n "(cached) " >&6
11918 else
11919   case $AWK in
11920   [\\/]* | ?:[\\/]*)
11921   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11922   ;;
11923   *)
11924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925 for as_dir in $search_path
11926 do
11927   IFS=$as_save_IFS
11928   test -z "$as_dir" && as_dir=.
11929     for ac_exec_ext in '' $ac_executable_extensions; do
11930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11931     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11933     break 2
11934   fi
11935 done
11936   done
11937 IFS=$as_save_IFS
11938
11939   ;;
11940 esac
11941 fi
11942 AWK=$ac_cv_path_AWK
11943 if test -n "$AWK"; then
11944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11945 $as_echo "$AWK" >&6; }
11946 else
11947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11948 $as_echo "no" >&6; }
11949 fi
11950
11951
11952     awk=$AWK
11953
11954
11955     # Extract the first word of "sed", so it can be a program name with args.
11956 set dummy sed; ac_word=$2
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11958 $as_echo_n "checking for $ac_word... " >&6; }
11959 if ${ac_cv_path_SED+:} false; then :
11960   $as_echo_n "(cached) " >&6
11961 else
11962   case $SED in
11963   [\\/]* | ?:[\\/]*)
11964   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11965   ;;
11966   *)
11967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11968 for as_dir in $search_path
11969 do
11970   IFS=$as_save_IFS
11971   test -z "$as_dir" && as_dir=.
11972     for ac_exec_ext in '' $ac_executable_extensions; do
11973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11974     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11976     break 2
11977   fi
11978 done
11979   done
11980 IFS=$as_save_IFS
11981
11982   ;;
11983 esac
11984 fi
11985 SED=$ac_cv_path_SED
11986 if test -n "$SED"; then
11987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11988 $as_echo "$SED" >&6; }
11989 else
11990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991 $as_echo "no" >&6; }
11992 fi
11993
11994
11995     sed=$SED
11996
11997
11998     # Extract the first word of "echo", so it can be a program name with args.
11999 set dummy echo; ac_word=$2
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12001 $as_echo_n "checking for $ac_word... " >&6; }
12002 if ${ac_cv_path_ECHO+:} false; then :
12003   $as_echo_n "(cached) " >&6
12004 else
12005   case $ECHO in
12006   [\\/]* | ?:[\\/]*)
12007   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
12008   ;;
12009   *)
12010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12011 for as_dir in $search_path
12012 do
12013   IFS=$as_save_IFS
12014   test -z "$as_dir" && as_dir=.
12015     for ac_exec_ext in '' $ac_executable_extensions; do
12016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12017     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
12018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12019     break 2
12020   fi
12021 done
12022   done
12023 IFS=$as_save_IFS
12024
12025   ;;
12026 esac
12027 fi
12028 ECHO=$ac_cv_path_ECHO
12029 if test -n "$ECHO"; then
12030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
12031 $as_echo "$ECHO" >&6; }
12032 else
12033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12034 $as_echo "no" >&6; }
12035 fi
12036
12037
12038     echo=$ECHO
12039
12040
12041     # Extract the first word of "sort", so it can be a program name with args.
12042 set dummy sort; ac_word=$2
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12044 $as_echo_n "checking for $ac_word... " >&6; }
12045 if ${ac_cv_path_SORT+:} false; then :
12046   $as_echo_n "(cached) " >&6
12047 else
12048   case $SORT in
12049   [\\/]* | ?:[\\/]*)
12050   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
12051   ;;
12052   *)
12053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12054 for as_dir in $search_path
12055 do
12056   IFS=$as_save_IFS
12057   test -z "$as_dir" && as_dir=.
12058     for ac_exec_ext in '' $ac_executable_extensions; do
12059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12060     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
12061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12062     break 2
12063   fi
12064 done
12065   done
12066 IFS=$as_save_IFS
12067
12068   ;;
12069 esac
12070 fi
12071 SORT=$ac_cv_path_SORT
12072 if test -n "$SORT"; then
12073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
12074 $as_echo "$SORT" >&6; }
12075 else
12076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12077 $as_echo "no" >&6; }
12078 fi
12079
12080
12081     sort=$SORT
12082
12083
12084         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12085 $as_echo_n "checking whether ln -s works... " >&6; }
12086 LN_S=$as_ln_s
12087 if test "$LN_S" = "ln -s"; then
12088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12089 $as_echo "yes" >&6; }
12090 else
12091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12092 $as_echo "no, using $LN_S" >&6; }
12093 fi
12094
12095
12096     if test "$enable_gettext" = yes; then
12097         # Extract the first word of "msgfmt", so it can be a program name with args.
12098 set dummy msgfmt; ac_word=$2
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12100 $as_echo_n "checking for $ac_word... " >&6; }
12101 if ${ac_cv_path_MSGFMT+:} false; then :
12102   $as_echo_n "(cached) " >&6
12103 else
12104   case $MSGFMT in
12105   [\\/]* | ?:[\\/]*)
12106   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12107   ;;
12108   *)
12109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110 for as_dir in $search_path
12111 do
12112   IFS=$as_save_IFS
12113   test -z "$as_dir" && as_dir=.
12114     for ac_exec_ext in '' $ac_executable_extensions; do
12115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12116     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
12117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12118     break 2
12119   fi
12120 done
12121   done
12122 IFS=$as_save_IFS
12123
12124   ;;
12125 esac
12126 fi
12127 MSGFMT=$ac_cv_path_MSGFMT
12128 if test -n "$MSGFMT"; then
12129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12130 $as_echo "$MSGFMT" >&6; }
12131 else
12132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133 $as_echo "no" >&6; }
12134 fi
12135
12136
12137         msgfmt=$MSGFMT
12138
12139          if test -z ""$msgfmt""; then
12140         echo
12141         echo FATAL ERROR: msgfmt does not seem to be installed.
12142         echo acl cannot be built without a working gettext installation.
12143         exit 1
12144     fi
12145
12146
12147         # Extract the first word of "msgmerge", so it can be a program name with args.
12148 set dummy msgmerge; ac_word=$2
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12150 $as_echo_n "checking for $ac_word... " >&6; }
12151 if ${ac_cv_path_MSGMERGE+:} false; then :
12152   $as_echo_n "(cached) " >&6
12153 else
12154   case $MSGMERGE in
12155   [\\/]* | ?:[\\/]*)
12156   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12157   ;;
12158   *)
12159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12160 for as_dir in $search_path
12161 do
12162   IFS=$as_save_IFS
12163   test -z "$as_dir" && as_dir=.
12164     for ac_exec_ext in '' $ac_executable_extensions; do
12165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12166     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
12167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12168     break 2
12169   fi
12170 done
12171   done
12172 IFS=$as_save_IFS
12173
12174   ;;
12175 esac
12176 fi
12177 MSGMERGE=$ac_cv_path_MSGMERGE
12178 if test -n "$MSGMERGE"; then
12179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12180 $as_echo "$MSGMERGE" >&6; }
12181 else
12182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183 $as_echo "no" >&6; }
12184 fi
12185
12186
12187         msgmerge=$MSGMERGE
12188
12189          if test -z ""$msgmerge""; then
12190         echo
12191         echo FATAL ERROR: msgmerge does not seem to be installed.
12192         echo acl cannot be built without a working gettext installation.
12193         exit 1
12194     fi
12195
12196
12197         # Extract the first word of "xgettext", so it can be a program name with args.
12198 set dummy xgettext; ac_word=$2
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12200 $as_echo_n "checking for $ac_word... " >&6; }
12201 if ${ac_cv_path_XGETTEXT+:} false; then :
12202   $as_echo_n "(cached) " >&6
12203 else
12204   case $XGETTEXT in
12205   [\\/]* | ?:[\\/]*)
12206   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12207   ;;
12208   *)
12209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12210 for as_dir in $search_path
12211 do
12212   IFS=$as_save_IFS
12213   test -z "$as_dir" && as_dir=.
12214     for ac_exec_ext in '' $ac_executable_extensions; do
12215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12216     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
12217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12218     break 2
12219   fi
12220 done
12221   done
12222 IFS=$as_save_IFS
12223
12224   ;;
12225 esac
12226 fi
12227 XGETTEXT=$ac_cv_path_XGETTEXT
12228 if test -n "$XGETTEXT"; then
12229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12230 $as_echo "$XGETTEXT" >&6; }
12231 else
12232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233 $as_echo "no" >&6; }
12234 fi
12235
12236
12237         xgettext=$XGETTEXT
12238
12239          if test -z ""$xgettext""; then
12240         echo
12241         echo FATAL ERROR: xgettext does not seem to be installed.
12242         echo acl cannot be built without a working gettext installation.
12243         exit 1
12244     fi
12245
12246
12247
12248 $as_echo "#define ENABLE_GETTEXT 1" >>confdefs.h
12249
12250     fi
12251
12252     # Extract the first word of "rpm", so it can be a program name with args.
12253 set dummy rpm; ac_word=$2
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12255 $as_echo_n "checking for $ac_word... " >&6; }
12256 if ${ac_cv_path_RPM+:} false; then :
12257   $as_echo_n "(cached) " >&6
12258 else
12259   case $RPM in
12260   [\\/]* | ?:[\\/]*)
12261   ac_cv_path_RPM="$RPM" # Let the user override the test with a path.
12262   ;;
12263   *)
12264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12265 for as_dir in $search_path
12266 do
12267   IFS=$as_save_IFS
12268   test -z "$as_dir" && as_dir=.
12269     for ac_exec_ext in '' $ac_executable_extensions; do
12270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12271     ac_cv_path_RPM="$as_dir/$ac_word$ac_exec_ext"
12272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12273     break 2
12274   fi
12275 done
12276   done
12277 IFS=$as_save_IFS
12278
12279   ;;
12280 esac
12281 fi
12282 RPM=$ac_cv_path_RPM
12283 if test -n "$RPM"; then
12284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
12285 $as_echo "$RPM" >&6; }
12286 else
12287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288 $as_echo "no" >&6; }
12289 fi
12290
12291
12292     rpm=$RPM
12293
12294
12295         rpm_version=0
12296     test -n "$RPM" && test -x "$RPM" && rpm_version=`$RPM --version \
12297                         | awk '{print $NF}' | awk -F. '{V=1; print $V}'`
12298
12299                 if test $rpm_version -ge 4; then
12300         # Extract the first word of "rpmbuild", so it can be a program name with args.
12301 set dummy rpmbuild; ac_word=$2
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12303 $as_echo_n "checking for $ac_word... " >&6; }
12304 if ${ac_cv_path_RPMBUILD+:} false; then :
12305   $as_echo_n "(cached) " >&6
12306 else
12307   case $RPMBUILD in
12308   [\\/]* | ?:[\\/]*)
12309   ac_cv_path_RPMBUILD="$RPMBUILD" # Let the user override the test with a path.
12310   ;;
12311   *)
12312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12313 for as_dir in $PATH
12314 do
12315   IFS=$as_save_IFS
12316   test -z "$as_dir" && as_dir=.
12317     for ac_exec_ext in '' $ac_executable_extensions; do
12318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12319     ac_cv_path_RPMBUILD="$as_dir/$ac_word$ac_exec_ext"
12320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12321     break 2
12322   fi
12323 done
12324   done
12325 IFS=$as_save_IFS
12326
12327   ;;
12328 esac
12329 fi
12330 RPMBUILD=$ac_cv_path_RPMBUILD
12331 if test -n "$RPMBUILD"; then
12332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
12333 $as_echo "$RPMBUILD" >&6; }
12334 else
12335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12336 $as_echo "no" >&6; }
12337 fi
12338
12339
12340         rpmbuild=$RPMBUILD
12341     else
12342         rpmbuild=$RPM
12343     fi
12344
12345
12346  for ac_header in attr/xattr.h
12347 do :
12348   ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
12349 if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
12350   cat >>confdefs.h <<_ACEOF
12351 #define HAVE_ATTR_XATTR_H 1
12352 _ACEOF
12353
12354 fi
12355
12356 done
12357
12358     if test "$ac_cv_header_attr_xattr_h" != "yes"; then
12359         echo
12360         echo 'FATAL ERROR: attr/xattr.h does not exist.'
12361         echo 'Install the extended attributes (attr) development package.'
12362         echo 'Alternatively, run "make install-dev" from the attr source.'
12363         exit 1
12364     fi
12365
12366  for ac_header in attr/error_context.h
12367 do :
12368   ac_fn_c_check_header_mongrel "$LINENO" "attr/error_context.h" "ac_cv_header_attr_error_context_h" "$ac_includes_default"
12369 if test "x$ac_cv_header_attr_error_context_h" = xyes; then :
12370   cat >>confdefs.h <<_ACEOF
12371 #define HAVE_ATTR_ERROR_CONTEXT_H 1
12372 _ACEOF
12373
12374 fi
12375
12376 done
12377
12378     if test "$ac_cv_header_attr_error_context_h" != "yes"; then
12379         echo
12380         echo 'FATAL ERROR: attr/error_context.h does not exist.'
12381         echo 'Install the extended attributes (attr) development package.'
12382         echo 'Alternatively, run "make install-dev" from the attr source.'
12383         exit 1
12384     fi
12385
12386
12387                   enable_lib64="$enable_lib64"
12388   libdirsuffix=""
12389   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12390   if test "$enable_lib64" = "yes" -a -n "$searchpath"; then
12391     save_IFS="${IFS=    }"; IFS=":"
12392     for searchdir in $searchpath; do
12393       if test -d "$searchdir"; then
12394         case "$searchdir" in
12395           */lib64/ | */lib64 ) libdirsuffix=64 ;;
12396           *) searchdir=`cd "$searchdir" && pwd`
12397              case "$searchdir" in
12398                */lib64 ) libdirsuffix=64 ;;
12399              esac ;;
12400         esac
12401       fi
12402     done
12403     IFS="$save_IFS"
12404   fi
12405
12406
12407  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lattr" >&5
12408 $as_echo_n "checking for getxattr in -lattr... " >&6; }
12409 if ${ac_cv_lib_attr_getxattr+:} false; then :
12410   $as_echo_n "(cached) " >&6
12411 else
12412   ac_check_lib_save_LIBS=$LIBS
12413 LIBS="-lattr  $LIBS"
12414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12415 /* end confdefs.h.  */
12416
12417 /* Override any GCC internal prototype to avoid an error.
12418    Use char because int might match the return type of a GCC
12419    builtin and then its argument prototype would still apply.  */
12420 #ifdef __cplusplus
12421 extern "C"
12422 #endif
12423 char getxattr ();
12424 int
12425 main ()
12426 {
12427 return getxattr ();
12428   ;
12429   return 0;
12430 }
12431 _ACEOF
12432 if ac_fn_c_try_link "$LINENO"; then :
12433   ac_cv_lib_attr_getxattr=yes
12434 else
12435   ac_cv_lib_attr_getxattr=no
12436 fi
12437 rm -f core conftest.err conftest.$ac_objext \
12438     conftest$ac_exeext conftest.$ac_ext
12439 LIBS=$ac_check_lib_save_LIBS
12440 fi
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_getxattr" >&5
12442 $as_echo "$ac_cv_lib_attr_getxattr" >&6; }
12443 if test "x$ac_cv_lib_attr_getxattr" = xyes; then :
12444   cat >>confdefs.h <<_ACEOF
12445 #define HAVE_LIBATTR 1
12446 _ACEOF
12447
12448   LIBS="-lattr $LIBS"
12449
12450 else
12451
12452         echo
12453         echo 'FATAL ERROR: could not find a valid Extended Attributes library.'
12454         echo 'Install the extended attributes (attr) development package.'
12455         echo 'Alternatively, run "make install-lib" from the attr source.'
12456         exit 1
12457
12458 fi
12459
12460     libattr="-lattr"
12461     test -f `pwd`/../attr/libattr/libattr.la && \
12462         libattr="`pwd`/../attr/libattr/libattr.la"
12463
12464
12465  have_zipped_manpages=false
12466     for d in ${prefix}/share/man ${prefix}/man ; do
12467         if test -f $d/man1/man.1.gz
12468         then
12469             have_zipped_manpages=true
12470             break
12471         fi
12472     done
12473
12474
12475
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((visibility())) is supported" >&5
12477 $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
12478 if ${libc_cv_visibility_attribute+:} false; then :
12479   $as_echo_n "(cached) " >&6
12480 else
12481   cat > conftest.c <<EOF
12482                    int foo __attribute__ ((visibility ("hidden"))) = 1;
12483                    int bar __attribute__ ((visibility ("protected"))) = 1;
12484 EOF
12485                   libc_cv_visibility_attribute=no
12486                   if ${CC-cc} -Werror -S conftest.c -o conftest.s \
12487                         >/dev/null 2>&1; then
12488                     if grep '\.hidden.*foo' conftest.s >/dev/null; then
12489                       if grep '\.protected.*bar' conftest.s >/dev/null; then
12490                         libc_cv_visibility_attribute=yes
12491                       fi
12492                     fi
12493                   fi
12494                   rm -f conftest.cs
12495
12496 fi
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_visibility_attribute" >&5
12498 $as_echo "$libc_cv_visibility_attribute" >&6; }
12499    if test $libc_cv_visibility_attribute = yes; then
12500
12501 $as_echo "#define HAVE_VISIBILITY_ATTRIBUTE /**/" >>confdefs.h
12502
12503    fi
12504
12505
12506 ac_config_files="$ac_config_files include/builddefs"
12507
12508 cat >confcache <<\_ACEOF
12509 # This file is a shell script that caches the results of configure
12510 # tests run on this system so they can be shared between configure
12511 # scripts and configure runs, see configure's option --config-cache.
12512 # It is not useful on other systems.  If it contains results you don't
12513 # want to keep, you may remove or edit it.
12514 #
12515 # config.status only pays attention to the cache file if you give it
12516 # the --recheck option to rerun configure.
12517 #
12518 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12519 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12520 # following values.
12521
12522 _ACEOF
12523
12524 # The following way of writing the cache mishandles newlines in values,
12525 # but we know of no workaround that is simple, portable, and efficient.
12526 # So, we kill variables containing newlines.
12527 # Ultrix sh set writes to stderr and can't be redirected directly,
12528 # and sets the high bit in the cache file unless we assign to the vars.
12529 (
12530   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12531     eval ac_val=\$$ac_var
12532     case $ac_val in #(
12533     *${as_nl}*)
12534       case $ac_var in #(
12535       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12536 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12537       esac
12538       case $ac_var in #(
12539       _ | IFS | as_nl) ;; #(
12540       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12541       *) { eval $ac_var=; unset $ac_var;} ;;
12542       esac ;;
12543     esac
12544   done
12545
12546   (set) 2>&1 |
12547     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12548     *${as_nl}ac_space=\ *)
12549       # `set' does not quote correctly, so add quotes: double-quote
12550       # substitution turns \\\\ into \\, and sed turns \\ into \.
12551       sed -n \
12552         "s/'/'\\\\''/g;
12553           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12554       ;; #(
12555     *)
12556       # `set' quotes correctly as required by POSIX, so do not add quotes.
12557       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12558       ;;
12559     esac |
12560     sort
12561 ) |
12562   sed '
12563      /^ac_cv_env_/b end
12564      t clear
12565      :clear
12566      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12567      t end
12568      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12569      :end' >>confcache
12570 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12571   if test -w "$cache_file"; then
12572     if test "x$cache_file" != "x/dev/null"; then
12573       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12574 $as_echo "$as_me: updating cache $cache_file" >&6;}
12575       if test ! -f "$cache_file" || test -h "$cache_file"; then
12576         cat confcache >"$cache_file"
12577       else
12578         case $cache_file in #(
12579         */* | ?:*)
12580           mv -f confcache "$cache_file"$$ &&
12581           mv -f "$cache_file"$$ "$cache_file" ;; #(
12582         *)
12583           mv -f confcache "$cache_file" ;;
12584         esac
12585       fi
12586     fi
12587   else
12588     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12589 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12590   fi
12591 fi
12592 rm -f confcache
12593
12594 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12595 # Let make expand exec_prefix.
12596 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12597
12598 DEFS=-DHAVE_CONFIG_H
12599
12600 ac_libobjs=
12601 ac_ltlibobjs=
12602 U=
12603 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12604   # 1. Remove the extension, and $U if already installed.
12605   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12606   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12607   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12608   #    will be set to the directory where LIBOBJS objects are built.
12609   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12610   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12611 done
12612 LIBOBJS=$ac_libobjs
12613
12614 LTLIBOBJS=$ac_ltlibobjs
12615
12616
12617
12618 : "${CONFIG_STATUS=./config.status}"
12619 ac_write_fail=0
12620 ac_clean_files_save=$ac_clean_files
12621 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12623 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12624 as_write_fail=0
12625 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12626 #! $SHELL
12627 # Generated by $as_me.
12628 # Run this file to recreate the current configuration.
12629 # Compiler output produced by configure, useful for debugging
12630 # configure, is in config.log if it exists.
12631
12632 debug=false
12633 ac_cs_recheck=false
12634 ac_cs_silent=false
12635
12636 SHELL=\${CONFIG_SHELL-$SHELL}
12637 export SHELL
12638 _ASEOF
12639 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12640 ## -------------------- ##
12641 ## M4sh Initialization. ##
12642 ## -------------------- ##
12643
12644 # Be more Bourne compatible
12645 DUALCASE=1; export DUALCASE # for MKS sh
12646 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12647   emulate sh
12648   NULLCMD=:
12649   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12650   # is contrary to our usage.  Disable this feature.
12651   alias -g '${1+"$@"}'='"$@"'
12652   setopt NO_GLOB_SUBST
12653 else
12654   case `(set -o) 2>/dev/null` in #(
12655   *posix*) :
12656     set -o posix ;; #(
12657   *) :
12658      ;;
12659 esac
12660 fi
12661
12662
12663 as_nl='
12664 '
12665 export as_nl
12666 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12667 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12668 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12669 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12670 # Prefer a ksh shell builtin over an external printf program on Solaris,
12671 # but without wasting forks for bash or zsh.
12672 if test -z "$BASH_VERSION$ZSH_VERSION" \
12673     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12674   as_echo='print -r --'
12675   as_echo_n='print -rn --'
12676 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12677   as_echo='printf %s\n'
12678   as_echo_n='printf %s'
12679 else
12680   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12681     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12682     as_echo_n='/usr/ucb/echo -n'
12683   else
12684     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12685     as_echo_n_body='eval
12686       arg=$1;
12687       case $arg in #(
12688       *"$as_nl"*)
12689         expr "X$arg" : "X\\(.*\\)$as_nl";
12690         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12691       esac;
12692       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12693     '
12694     export as_echo_n_body
12695     as_echo_n='sh -c $as_echo_n_body as_echo'
12696   fi
12697   export as_echo_body
12698   as_echo='sh -c $as_echo_body as_echo'
12699 fi
12700
12701 # The user is always right.
12702 if test "${PATH_SEPARATOR+set}" != set; then
12703   PATH_SEPARATOR=:
12704   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12705     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12706       PATH_SEPARATOR=';'
12707   }
12708 fi
12709
12710
12711 # IFS
12712 # We need space, tab and new line, in precisely that order.  Quoting is
12713 # there to prevent editors from complaining about space-tab.
12714 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12715 # splitting by setting IFS to empty value.)
12716 IFS=" ""        $as_nl"
12717
12718 # Find who we are.  Look in the path if we contain no directory separator.
12719 as_myself=
12720 case $0 in #((
12721   *[\\/]* ) as_myself=$0 ;;
12722   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12723 for as_dir in $PATH
12724 do
12725   IFS=$as_save_IFS
12726   test -z "$as_dir" && as_dir=.
12727     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12728   done
12729 IFS=$as_save_IFS
12730
12731      ;;
12732 esac
12733 # We did not find ourselves, most probably we were run as `sh COMMAND'
12734 # in which case we are not to be found in the path.
12735 if test "x$as_myself" = x; then
12736   as_myself=$0
12737 fi
12738 if test ! -f "$as_myself"; then
12739   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12740   exit 1
12741 fi
12742
12743 # Unset variables that we do not need and which cause bugs (e.g. in
12744 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12745 # suppresses any "Segmentation fault" message there.  '((' could
12746 # trigger a bug in pdksh 5.2.14.
12747 for as_var in BASH_ENV ENV MAIL MAILPATH
12748 do eval test x\${$as_var+set} = xset \
12749   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12750 done
12751 PS1='$ '
12752 PS2='> '
12753 PS4='+ '
12754
12755 # NLS nuisances.
12756 LC_ALL=C
12757 export LC_ALL
12758 LANGUAGE=C
12759 export LANGUAGE
12760
12761 # CDPATH.
12762 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12763
12764
12765 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12766 # ----------------------------------------
12767 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12768 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12769 # script with STATUS, using 1 if that was 0.
12770 as_fn_error ()
12771 {
12772   as_status=$1; test $as_status -eq 0 && as_status=1
12773   if test "$4"; then
12774     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12775     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12776   fi
12777   $as_echo "$as_me: error: $2" >&2
12778   as_fn_exit $as_status
12779 } # as_fn_error
12780
12781
12782 # as_fn_set_status STATUS
12783 # -----------------------
12784 # Set $? to STATUS, without forking.
12785 as_fn_set_status ()
12786 {
12787   return $1
12788 } # as_fn_set_status
12789
12790 # as_fn_exit STATUS
12791 # -----------------
12792 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12793 as_fn_exit ()
12794 {
12795   set +e
12796   as_fn_set_status $1
12797   exit $1
12798 } # as_fn_exit
12799
12800 # as_fn_unset VAR
12801 # ---------------
12802 # Portably unset VAR.
12803 as_fn_unset ()
12804 {
12805   { eval $1=; unset $1;}
12806 }
12807 as_unset=as_fn_unset
12808 # as_fn_append VAR VALUE
12809 # ----------------------
12810 # Append the text in VALUE to the end of the definition contained in VAR. Take
12811 # advantage of any shell optimizations that allow amortized linear growth over
12812 # repeated appends, instead of the typical quadratic growth present in naive
12813 # implementations.
12814 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12815   eval 'as_fn_append ()
12816   {
12817     eval $1+=\$2
12818   }'
12819 else
12820   as_fn_append ()
12821   {
12822     eval $1=\$$1\$2
12823   }
12824 fi # as_fn_append
12825
12826 # as_fn_arith ARG...
12827 # ------------------
12828 # Perform arithmetic evaluation on the ARGs, and store the result in the
12829 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12830 # must be portable across $(()) and expr.
12831 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12832   eval 'as_fn_arith ()
12833   {
12834     as_val=$(( $* ))
12835   }'
12836 else
12837   as_fn_arith ()
12838   {
12839     as_val=`expr "$@" || test $? -eq 1`
12840   }
12841 fi # as_fn_arith
12842
12843
12844 if expr a : '\(a\)' >/dev/null 2>&1 &&
12845    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12846   as_expr=expr
12847 else
12848   as_expr=false
12849 fi
12850
12851 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12852   as_basename=basename
12853 else
12854   as_basename=false
12855 fi
12856
12857 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12858   as_dirname=dirname
12859 else
12860   as_dirname=false
12861 fi
12862
12863 as_me=`$as_basename -- "$0" ||
12864 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12865          X"$0" : 'X\(//\)$' \| \
12866          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12867 $as_echo X/"$0" |
12868     sed '/^.*\/\([^/][^/]*\)\/*$/{
12869             s//\1/
12870             q
12871           }
12872           /^X\/\(\/\/\)$/{
12873             s//\1/
12874             q
12875           }
12876           /^X\/\(\/\).*/{
12877             s//\1/
12878             q
12879           }
12880           s/.*/./; q'`
12881
12882 # Avoid depending upon Character Ranges.
12883 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12884 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12885 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12886 as_cr_digits='0123456789'
12887 as_cr_alnum=$as_cr_Letters$as_cr_digits
12888
12889 ECHO_C= ECHO_N= ECHO_T=
12890 case `echo -n x` in #(((((
12891 -n*)
12892   case `echo 'xy\c'` in
12893   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12894   xy)  ECHO_C='\c';;
12895   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12896        ECHO_T=' ';;
12897   esac;;
12898 *)
12899   ECHO_N='-n';;
12900 esac
12901
12902 rm -f conf$$ conf$$.exe conf$$.file
12903 if test -d conf$$.dir; then
12904   rm -f conf$$.dir/conf$$.file
12905 else
12906   rm -f conf$$.dir
12907   mkdir conf$$.dir 2>/dev/null
12908 fi
12909 if (echo >conf$$.file) 2>/dev/null; then
12910   if ln -s conf$$.file conf$$ 2>/dev/null; then
12911     as_ln_s='ln -s'
12912     # ... but there are two gotchas:
12913     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12914     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12915     # In both cases, we have to default to `cp -p'.
12916     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12917       as_ln_s='cp -p'
12918   elif ln conf$$.file conf$$ 2>/dev/null; then
12919     as_ln_s=ln
12920   else
12921     as_ln_s='cp -p'
12922   fi
12923 else
12924   as_ln_s='cp -p'
12925 fi
12926 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12927 rmdir conf$$.dir 2>/dev/null
12928
12929
12930 # as_fn_mkdir_p
12931 # -------------
12932 # Create "$as_dir" as a directory, including parents if necessary.
12933 as_fn_mkdir_p ()
12934 {
12935
12936   case $as_dir in #(
12937   -*) as_dir=./$as_dir;;
12938   esac
12939   test -d "$as_dir" || eval $as_mkdir_p || {
12940     as_dirs=
12941     while :; do
12942       case $as_dir in #(
12943       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12944       *) as_qdir=$as_dir;;
12945       esac
12946       as_dirs="'$as_qdir' $as_dirs"
12947       as_dir=`$as_dirname -- "$as_dir" ||
12948 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12949          X"$as_dir" : 'X\(//\)[^/]' \| \
12950          X"$as_dir" : 'X\(//\)$' \| \
12951          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12952 $as_echo X"$as_dir" |
12953     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12954             s//\1/
12955             q
12956           }
12957           /^X\(\/\/\)[^/].*/{
12958             s//\1/
12959             q
12960           }
12961           /^X\(\/\/\)$/{
12962             s//\1/
12963             q
12964           }
12965           /^X\(\/\).*/{
12966             s//\1/
12967             q
12968           }
12969           s/.*/./; q'`
12970       test -d "$as_dir" && break
12971     done
12972     test -z "$as_dirs" || eval "mkdir $as_dirs"
12973   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12974
12975
12976 } # as_fn_mkdir_p
12977 if mkdir -p . 2>/dev/null; then
12978   as_mkdir_p='mkdir -p "$as_dir"'
12979 else
12980   test -d ./-p && rmdir ./-p
12981   as_mkdir_p=false
12982 fi
12983
12984 if test -x / >/dev/null 2>&1; then
12985   as_test_x='test -x'
12986 else
12987   if ls -dL / >/dev/null 2>&1; then
12988     as_ls_L_option=L
12989   else
12990     as_ls_L_option=
12991   fi
12992   as_test_x='
12993     eval sh -c '\''
12994       if test -d "$1"; then
12995         test -d "$1/.";
12996       else
12997         case $1 in #(
12998         -*)set "./$1";;
12999         esac;
13000         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13001         ???[sx]*):;;*)false;;esac;fi
13002     '\'' sh
13003   '
13004 fi
13005 as_executable_p=$as_test_x
13006
13007 # Sed expression to map a string onto a valid CPP name.
13008 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13009
13010 # Sed expression to map a string onto a valid variable name.
13011 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13012
13013
13014 exec 6>&1
13015 ## ----------------------------------- ##
13016 ## Main body of $CONFIG_STATUS script. ##
13017 ## ----------------------------------- ##
13018 _ASEOF
13019 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13020
13021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13022 # Save the log message, to keep $0 and so on meaningful, and to
13023 # report actual input values of CONFIG_FILES etc. instead of their
13024 # values after options handling.
13025 ac_log="
13026 This file was extended by $as_me, which was
13027 generated by GNU Autoconf 2.68.  Invocation command line was
13028
13029   CONFIG_FILES    = $CONFIG_FILES
13030   CONFIG_HEADERS  = $CONFIG_HEADERS
13031   CONFIG_LINKS    = $CONFIG_LINKS
13032   CONFIG_COMMANDS = $CONFIG_COMMANDS
13033   $ $0 $@
13034
13035 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13036 "
13037
13038 _ACEOF
13039
13040 case $ac_config_files in *"
13041 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13042 esac
13043
13044 case $ac_config_headers in *"
13045 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13046 esac
13047
13048
13049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13050 # Files that config.status was made for.
13051 config_files="$ac_config_files"
13052 config_headers="$ac_config_headers"
13053 config_commands="$ac_config_commands"
13054
13055 _ACEOF
13056
13057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13058 ac_cs_usage="\
13059 \`$as_me' instantiates files and other configuration actions
13060 from templates according to the current configuration.  Unless the files
13061 and actions are specified as TAGs, all are instantiated by default.
13062
13063 Usage: $0 [OPTION]... [TAG]...
13064
13065   -h, --help       print this help, then exit
13066   -V, --version    print version number and configuration settings, then exit
13067       --config     print configuration, then exit
13068   -q, --quiet, --silent
13069                    do not print progress messages
13070   -d, --debug      don't remove temporary files
13071       --recheck    update $as_me by reconfiguring in the same conditions
13072       --file=FILE[:TEMPLATE]
13073                    instantiate the configuration file FILE
13074       --header=FILE[:TEMPLATE]
13075                    instantiate the configuration header FILE
13076
13077 Configuration files:
13078 $config_files
13079
13080 Configuration headers:
13081 $config_headers
13082
13083 Configuration commands:
13084 $config_commands
13085
13086 Report bugs to the package provider."
13087
13088 _ACEOF
13089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13090 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13091 ac_cs_version="\\
13092 config.status
13093 configured by $0, generated by GNU Autoconf 2.68,
13094   with options \\"\$ac_cs_config\\"
13095
13096 Copyright (C) 2010 Free Software Foundation, Inc.
13097 This config.status script is free software; the Free Software Foundation
13098 gives unlimited permission to copy, distribute and modify it."
13099
13100 ac_pwd='$ac_pwd'
13101 srcdir='$srcdir'
13102 AWK='$AWK'
13103 test -n "\$AWK" || AWK=awk
13104 _ACEOF
13105
13106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13107 # The default lists apply if the user does not specify any file.
13108 ac_need_defaults=:
13109 while test $# != 0
13110 do
13111   case $1 in
13112   --*=?*)
13113     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13114     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13115     ac_shift=:
13116     ;;
13117   --*=)
13118     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13119     ac_optarg=
13120     ac_shift=:
13121     ;;
13122   *)
13123     ac_option=$1
13124     ac_optarg=$2
13125     ac_shift=shift
13126     ;;
13127   esac
13128
13129   case $ac_option in
13130   # Handling of the options.
13131   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13132     ac_cs_recheck=: ;;
13133   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13134     $as_echo "$ac_cs_version"; exit ;;
13135   --config | --confi | --conf | --con | --co | --c )
13136     $as_echo "$ac_cs_config"; exit ;;
13137   --debug | --debu | --deb | --de | --d | -d )
13138     debug=: ;;
13139   --file | --fil | --fi | --f )
13140     $ac_shift
13141     case $ac_optarg in
13142     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13143     '') as_fn_error $? "missing file argument" ;;
13144     esac
13145     as_fn_append CONFIG_FILES " '$ac_optarg'"
13146     ac_need_defaults=false;;
13147   --header | --heade | --head | --hea )
13148     $ac_shift
13149     case $ac_optarg in
13150     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13151     esac
13152     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13153     ac_need_defaults=false;;
13154   --he | --h)
13155     # Conflict between --help and --header
13156     as_fn_error $? "ambiguous option: \`$1'
13157 Try \`$0 --help' for more information.";;
13158   --help | --hel | -h )
13159     $as_echo "$ac_cs_usage"; exit ;;
13160   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13161   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13162     ac_cs_silent=: ;;
13163
13164   # This is an error.
13165   -*) as_fn_error $? "unrecognized option: \`$1'
13166 Try \`$0 --help' for more information." ;;
13167
13168   *) as_fn_append ac_config_targets " $1"
13169      ac_need_defaults=false ;;
13170
13171   esac
13172   shift
13173 done
13174
13175 ac_configure_extra_args=
13176
13177 if $ac_cs_silent; then
13178   exec 6>/dev/null
13179   ac_configure_extra_args="$ac_configure_extra_args --silent"
13180 fi
13181
13182 _ACEOF
13183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13184 if \$ac_cs_recheck; then
13185   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13186   shift
13187   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13188   CONFIG_SHELL='$SHELL'
13189   export CONFIG_SHELL
13190   exec "\$@"
13191 fi
13192
13193 _ACEOF
13194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13195 exec 5>>config.log
13196 {
13197   echo
13198   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13199 ## Running $as_me. ##
13200 _ASBOX
13201   $as_echo "$ac_log"
13202 } >&5
13203
13204 _ACEOF
13205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13206 #
13207 # INIT-COMMANDS
13208 #
13209
13210
13211 # The HP-UX ksh and POSIX shell print the target directory to stdout
13212 # if CDPATH is set.
13213 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13214
13215 sed_quote_subst='$sed_quote_subst'
13216 double_quote_subst='$double_quote_subst'
13217 delay_variable_subst='$delay_variable_subst'
13218 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13219 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13220 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13221 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13222 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13223 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13224 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13225 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13226 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13227 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13228 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13229 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13230 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13231 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13232 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13233 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13234 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13235 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13236 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13237 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13238 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13239 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13240 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13241 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13242 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13243 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13244 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13245 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13246 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13247 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13248 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13249 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13250 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13251 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13252 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13253 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13254 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13255 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13256 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13257 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13258 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13259 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13260 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13261 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13262 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13263 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13264 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13265 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13266 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13267 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13268 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13269 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13270 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13271 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13272 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13273 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"`'
13274 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13275 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13276 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13277 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13278 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13279 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13280 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13281 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13282 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13283 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13284 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13285 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13286 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13287 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13288 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13289 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13290 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13291 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13292 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13293 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13294 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13295 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13296 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13297 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13298 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13299 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13300 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13301 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13302 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13303 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13304 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13305 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13306 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13307 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13308 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13309 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13310 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13311 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13312 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13313 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13314 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13315 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13316 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13317 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13318 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13319 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13320 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13321 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13322 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13323 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13324 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13325 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13326 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13327 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13328 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13329 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13330 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13331 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13332 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13333 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13334 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13335 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13336 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13337 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13338 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13339 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13340 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13341 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13342 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13343 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13344 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13345 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13346 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13347 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13348
13349 LTCC='$LTCC'
13350 LTCFLAGS='$LTCFLAGS'
13351 compiler='$compiler_DEFAULT'
13352
13353 # A function that is used when there is no print builtin or printf.
13354 func_fallback_echo ()
13355 {
13356   eval 'cat <<_LTECHO_EOF
13357 \$1
13358 _LTECHO_EOF'
13359 }
13360
13361 # Quote evaled strings.
13362 for var in SHELL \
13363 ECHO \
13364 SED \
13365 GREP \
13366 EGREP \
13367 FGREP \
13368 LD \
13369 NM \
13370 LN_S \
13371 lt_SP2NL \
13372 lt_NL2SP \
13373 reload_flag \
13374 OBJDUMP \
13375 deplibs_check_method \
13376 file_magic_cmd \
13377 file_magic_glob \
13378 want_nocaseglob \
13379 DLLTOOL \
13380 sharedlib_from_linklib_cmd \
13381 AR \
13382 AR_FLAGS \
13383 archiver_list_spec \
13384 STRIP \
13385 RANLIB \
13386 CC \
13387 CFLAGS \
13388 compiler \
13389 lt_cv_sys_global_symbol_pipe \
13390 lt_cv_sys_global_symbol_to_cdecl \
13391 lt_cv_sys_global_symbol_to_c_name_address \
13392 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13393 nm_file_list_spec \
13394 lt_prog_compiler_no_builtin_flag \
13395 lt_prog_compiler_pic \
13396 lt_prog_compiler_wl \
13397 lt_prog_compiler_static \
13398 lt_cv_prog_compiler_c_o \
13399 need_locks \
13400 MANIFEST_TOOL \
13401 DSYMUTIL \
13402 NMEDIT \
13403 LIPO \
13404 OTOOL \
13405 OTOOL64 \
13406 shrext_cmds \
13407 export_dynamic_flag_spec \
13408 whole_archive_flag_spec \
13409 compiler_needs_object \
13410 with_gnu_ld \
13411 allow_undefined_flag \
13412 no_undefined_flag \
13413 hardcode_libdir_flag_spec \
13414 hardcode_libdir_flag_spec_ld \
13415 hardcode_libdir_separator \
13416 exclude_expsyms \
13417 include_expsyms \
13418 file_list_spec \
13419 variables_saved_for_relink \
13420 libname_spec \
13421 library_names_spec \
13422 soname_spec \
13423 install_override_mode \
13424 finish_eval \
13425 old_striplib \
13426 striplib; do
13427     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13428     *[\\\\\\\`\\"\\\$]*)
13429       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13430       ;;
13431     *)
13432       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13433       ;;
13434     esac
13435 done
13436
13437 # Double-quote double-evaled strings.
13438 for var in reload_cmds \
13439 old_postinstall_cmds \
13440 old_postuninstall_cmds \
13441 old_archive_cmds \
13442 extract_expsyms_cmds \
13443 old_archive_from_new_cmds \
13444 old_archive_from_expsyms_cmds \
13445 archive_cmds \
13446 archive_expsym_cmds \
13447 module_cmds \
13448 module_expsym_cmds \
13449 export_symbols_cmds \
13450 prelink_cmds \
13451 postlink_cmds \
13452 postinstall_cmds \
13453 postuninstall_cmds \
13454 finish_cmds \
13455 sys_lib_search_path_spec \
13456 sys_lib_dlsearch_path_spec; do
13457     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13458     *[\\\\\\\`\\"\\\$]*)
13459       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13460       ;;
13461     *)
13462       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13463       ;;
13464     esac
13465 done
13466
13467 ac_aux_dir='$ac_aux_dir'
13468 xsi_shell='$xsi_shell'
13469 lt_shell_append='$lt_shell_append'
13470
13471 # See if we are running on zsh, and set the options which allow our
13472 # commands through without removal of \ escapes INIT.
13473 if test -n "\${ZSH_VERSION+set}" ; then
13474    setopt NO_GLOB_SUBST
13475 fi
13476
13477
13478     PACKAGE='$PACKAGE'
13479     VERSION='$VERSION'
13480     TIMESTAMP='$TIMESTAMP'
13481     RM='$RM'
13482     ofile='$ofile'
13483
13484
13485
13486
13487 _ACEOF
13488
13489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13490
13491 # Handling of arguments.
13492 for ac_config_target in $ac_config_targets
13493 do
13494   case $ac_config_target in
13495     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
13496     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13497     "include/builddefs") CONFIG_FILES="$CONFIG_FILES include/builddefs" ;;
13498
13499   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13500   esac
13501 done
13502
13503
13504 # If the user did not use the arguments to specify the items to instantiate,
13505 # then the envvar interface is used.  Set only those that are not.
13506 # We use the long form for the default assignment because of an extremely
13507 # bizarre bug on SunOS 4.1.3.
13508 if $ac_need_defaults; then
13509   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13510   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13511   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13512 fi
13513
13514 # Have a temporary directory for convenience.  Make it in the build tree
13515 # simply because there is no reason against having it here, and in addition,
13516 # creating and moving files from /tmp can sometimes cause problems.
13517 # Hook for its removal unless debugging.
13518 # Note that there is a small window in which the directory will not be cleaned:
13519 # after its creation but before its name has been assigned to `$tmp'.
13520 $debug ||
13521 {
13522   tmp= ac_tmp=
13523   trap 'exit_status=$?
13524   : "${ac_tmp:=$tmp}"
13525   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13526 ' 0
13527   trap 'as_fn_exit 1' 1 2 13 15
13528 }
13529 # Create a (secure) tmp directory for tmp files.
13530
13531 {
13532   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13533   test -d "$tmp"
13534 }  ||
13535 {
13536   tmp=./conf$$-$RANDOM
13537   (umask 077 && mkdir "$tmp")
13538 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13539 ac_tmp=$tmp
13540
13541 # Set up the scripts for CONFIG_FILES section.
13542 # No need to generate them if there are no CONFIG_FILES.
13543 # This happens for instance with `./config.status config.h'.
13544 if test -n "$CONFIG_FILES"; then
13545
13546
13547 ac_cr=`echo X | tr X '\015'`
13548 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13549 # But we know of no other shell where ac_cr would be empty at this
13550 # point, so we can use a bashism as a fallback.
13551 if test "x$ac_cr" = x; then
13552   eval ac_cr=\$\'\\r\'
13553 fi
13554 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13555 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13556   ac_cs_awk_cr='\\r'
13557 else
13558   ac_cs_awk_cr=$ac_cr
13559 fi
13560
13561 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13562 _ACEOF
13563
13564
13565 {
13566   echo "cat >conf$$subs.awk <<_ACEOF" &&
13567   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13568   echo "_ACEOF"
13569 } >conf$$subs.sh ||
13570   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13571 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13572 ac_delim='%!_!# '
13573 for ac_last_try in false false false false false :; do
13574   . ./conf$$subs.sh ||
13575     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13576
13577   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13578   if test $ac_delim_n = $ac_delim_num; then
13579     break
13580   elif $ac_last_try; then
13581     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13582   else
13583     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13584   fi
13585 done
13586 rm -f conf$$subs.sh
13587
13588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13589 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13590 _ACEOF
13591 sed -n '
13592 h
13593 s/^/S["/; s/!.*/"]=/
13594 p
13595 g
13596 s/^[^!]*!//
13597 :repl
13598 t repl
13599 s/'"$ac_delim"'$//
13600 t delim
13601 :nl
13602 h
13603 s/\(.\{148\}\)..*/\1/
13604 t more1
13605 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13606 p
13607 n
13608 b repl
13609 :more1
13610 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13611 p
13612 g
13613 s/.\{148\}//
13614 t nl
13615 :delim
13616 h
13617 s/\(.\{148\}\)..*/\1/
13618 t more2
13619 s/["\\]/\\&/g; s/^/"/; s/$/"/
13620 p
13621 b
13622 :more2
13623 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13624 p
13625 g
13626 s/.\{148\}//
13627 t delim
13628 ' <conf$$subs.awk | sed '
13629 /^[^""]/{
13630   N
13631   s/\n//
13632 }
13633 ' >>$CONFIG_STATUS || ac_write_fail=1
13634 rm -f conf$$subs.awk
13635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13636 _ACAWK
13637 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13638   for (key in S) S_is_set[key] = 1
13639   FS = "\a"
13640
13641 }
13642 {
13643   line = $ 0
13644   nfields = split(line, field, "@")
13645   substed = 0
13646   len = length(field[1])
13647   for (i = 2; i < nfields; i++) {
13648     key = field[i]
13649     keylen = length(key)
13650     if (S_is_set[key]) {
13651       value = S[key]
13652       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13653       len += length(value) + length(field[++i])
13654       substed = 1
13655     } else
13656       len += 1 + keylen
13657   }
13658
13659   print line
13660 }
13661
13662 _ACAWK
13663 _ACEOF
13664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13665 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13666   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13667 else
13668   cat
13669 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13670   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13671 _ACEOF
13672
13673 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13674 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13675 # trailing colons and then remove the whole line if VPATH becomes empty
13676 # (actually we leave an empty line to preserve line numbers).
13677 if test "x$srcdir" = x.; then
13678   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13679 h
13680 s///
13681 s/^/:/
13682 s/[      ]*$/:/
13683 s/:\$(srcdir):/:/g
13684 s/:\${srcdir}:/:/g
13685 s/:@srcdir@:/:/g
13686 s/^:*//
13687 s/:*$//
13688 x
13689 s/\(=[   ]*\).*/\1/
13690 G
13691 s/\n//
13692 s/^[^=]*=[       ]*$//
13693 }'
13694 fi
13695
13696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13697 fi # test -n "$CONFIG_FILES"
13698
13699 # Set up the scripts for CONFIG_HEADERS section.
13700 # No need to generate them if there are no CONFIG_HEADERS.
13701 # This happens for instance with `./config.status Makefile'.
13702 if test -n "$CONFIG_HEADERS"; then
13703 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13704 BEGIN {
13705 _ACEOF
13706
13707 # Transform confdefs.h into an awk script `defines.awk', embedded as
13708 # here-document in config.status, that substitutes the proper values into
13709 # config.h.in to produce config.h.
13710
13711 # Create a delimiter string that does not exist in confdefs.h, to ease
13712 # handling of long lines.
13713 ac_delim='%!_!# '
13714 for ac_last_try in false false :; do
13715   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13716   if test -z "$ac_tt"; then
13717     break
13718   elif $ac_last_try; then
13719     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13720   else
13721     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13722   fi
13723 done
13724
13725 # For the awk script, D is an array of macro values keyed by name,
13726 # likewise P contains macro parameters if any.  Preserve backslash
13727 # newline sequences.
13728
13729 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13730 sed -n '
13731 s/.\{148\}/&'"$ac_delim"'/g
13732 t rset
13733 :rset
13734 s/^[     ]*#[    ]*define[       ][      ]*/ /
13735 t def
13736 d
13737 :def
13738 s/\\$//
13739 t bsnl
13740 s/["\\]/\\&/g
13741 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13742 D["\1"]=" \3"/p
13743 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13744 d
13745 :bsnl
13746 s/["\\]/\\&/g
13747 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13748 D["\1"]=" \3\\\\\\n"\\/p
13749 t cont
13750 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13751 t cont
13752 d
13753 :cont
13754 n
13755 s/.\{148\}/&'"$ac_delim"'/g
13756 t clear
13757 :clear
13758 s/\\$//
13759 t bsnlc
13760 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13761 d
13762 :bsnlc
13763 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13764 b cont
13765 ' <confdefs.h | sed '
13766 s/'"$ac_delim"'/"\\\
13767 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13768
13769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13770   for (key in D) D_is_set[key] = 1
13771   FS = "\a"
13772 }
13773 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13774   line = \$ 0
13775   split(line, arg, " ")
13776   if (arg[1] == "#") {
13777     defundef = arg[2]
13778     mac1 = arg[3]
13779   } else {
13780     defundef = substr(arg[1], 2)
13781     mac1 = arg[2]
13782   }
13783   split(mac1, mac2, "(") #)
13784   macro = mac2[1]
13785   prefix = substr(line, 1, index(line, defundef) - 1)
13786   if (D_is_set[macro]) {
13787     # Preserve the white space surrounding the "#".
13788     print prefix "define", macro P[macro] D[macro]
13789     next
13790   } else {
13791     # Replace #undef with comments.  This is necessary, for example,
13792     # in the case of _POSIX_SOURCE, which is predefined and required
13793     # on some systems where configure will not decide to define it.
13794     if (defundef == "undef") {
13795       print "/*", prefix defundef, macro, "*/"
13796       next
13797     }
13798   }
13799 }
13800 { print }
13801 _ACAWK
13802 _ACEOF
13803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13804   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13805 fi # test -n "$CONFIG_HEADERS"
13806
13807
13808 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13809 shift
13810 for ac_tag
13811 do
13812   case $ac_tag in
13813   :[FHLC]) ac_mode=$ac_tag; continue;;
13814   esac
13815   case $ac_mode$ac_tag in
13816   :[FHL]*:*);;
13817   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13818   :[FH]-) ac_tag=-:-;;
13819   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13820   esac
13821   ac_save_IFS=$IFS
13822   IFS=:
13823   set x $ac_tag
13824   IFS=$ac_save_IFS
13825   shift
13826   ac_file=$1
13827   shift
13828
13829   case $ac_mode in
13830   :L) ac_source=$1;;
13831   :[FH])
13832     ac_file_inputs=
13833     for ac_f
13834     do
13835       case $ac_f in
13836       -) ac_f="$ac_tmp/stdin";;
13837       *) # Look for the file first in the build tree, then in the source tree
13838          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13839          # because $ac_f cannot contain `:'.
13840          test -f "$ac_f" ||
13841            case $ac_f in
13842            [\\/$]*) false;;
13843            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13844            esac ||
13845            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13846       esac
13847       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13848       as_fn_append ac_file_inputs " '$ac_f'"
13849     done
13850
13851     # Let's still pretend it is `configure' which instantiates (i.e., don't
13852     # use $as_me), people would be surprised to read:
13853     #    /* config.h.  Generated by config.status.  */
13854     configure_input='Generated from '`
13855           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13856         `' by configure.'
13857     if test x"$ac_file" != x-; then
13858       configure_input="$ac_file.  $configure_input"
13859       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13860 $as_echo "$as_me: creating $ac_file" >&6;}
13861     fi
13862     # Neutralize special characters interpreted by sed in replacement strings.
13863     case $configure_input in #(
13864     *\&* | *\|* | *\\* )
13865        ac_sed_conf_input=`$as_echo "$configure_input" |
13866        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13867     *) ac_sed_conf_input=$configure_input;;
13868     esac
13869
13870     case $ac_tag in
13871     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13872       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13873     esac
13874     ;;
13875   esac
13876
13877   ac_dir=`$as_dirname -- "$ac_file" ||
13878 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13879          X"$ac_file" : 'X\(//\)[^/]' \| \
13880          X"$ac_file" : 'X\(//\)$' \| \
13881          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13882 $as_echo X"$ac_file" |
13883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13884             s//\1/
13885             q
13886           }
13887           /^X\(\/\/\)[^/].*/{
13888             s//\1/
13889             q
13890           }
13891           /^X\(\/\/\)$/{
13892             s//\1/
13893             q
13894           }
13895           /^X\(\/\).*/{
13896             s//\1/
13897             q
13898           }
13899           s/.*/./; q'`
13900   as_dir="$ac_dir"; as_fn_mkdir_p
13901   ac_builddir=.
13902
13903 case "$ac_dir" in
13904 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13905 *)
13906   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13907   # A ".." for each directory in $ac_dir_suffix.
13908   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13909   case $ac_top_builddir_sub in
13910   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13911   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13912   esac ;;
13913 esac
13914 ac_abs_top_builddir=$ac_pwd
13915 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13916 # for backward compatibility:
13917 ac_top_builddir=$ac_top_build_prefix
13918
13919 case $srcdir in
13920   .)  # We are building in place.
13921     ac_srcdir=.
13922     ac_top_srcdir=$ac_top_builddir_sub
13923     ac_abs_top_srcdir=$ac_pwd ;;
13924   [\\/]* | ?:[\\/]* )  # Absolute name.
13925     ac_srcdir=$srcdir$ac_dir_suffix;
13926     ac_top_srcdir=$srcdir
13927     ac_abs_top_srcdir=$srcdir ;;
13928   *) # Relative name.
13929     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13930     ac_top_srcdir=$ac_top_build_prefix$srcdir
13931     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13932 esac
13933 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13934
13935
13936   case $ac_mode in
13937   :F)
13938   #
13939   # CONFIG_FILE
13940   #
13941
13942 _ACEOF
13943
13944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13945 # If the template does not know about datarootdir, expand it.
13946 # FIXME: This hack should be removed a few years after 2.60.
13947 ac_datarootdir_hack=; ac_datarootdir_seen=
13948 ac_sed_dataroot='
13949 /datarootdir/ {
13950   p
13951   q
13952 }
13953 /@datadir@/p
13954 /@docdir@/p
13955 /@infodir@/p
13956 /@localedir@/p
13957 /@mandir@/p'
13958 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13959 *datarootdir*) ac_datarootdir_seen=yes;;
13960 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13961   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13962 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13963 _ACEOF
13964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13965   ac_datarootdir_hack='
13966   s&@datadir@&$datadir&g
13967   s&@docdir@&$docdir&g
13968   s&@infodir@&$infodir&g
13969   s&@localedir@&$localedir&g
13970   s&@mandir@&$mandir&g
13971   s&\\\${datarootdir}&$datarootdir&g' ;;
13972 esac
13973 _ACEOF
13974
13975 # Neutralize VPATH when `$srcdir' = `.'.
13976 # Shell code in configure.ac might set extrasub.
13977 # FIXME: do we really want to maintain this feature?
13978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13979 ac_sed_extra="$ac_vpsub
13980 $extrasub
13981 _ACEOF
13982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13983 :t
13984 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13985 s|@configure_input@|$ac_sed_conf_input|;t t
13986 s&@top_builddir@&$ac_top_builddir_sub&;t t
13987 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13988 s&@srcdir@&$ac_srcdir&;t t
13989 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13990 s&@top_srcdir@&$ac_top_srcdir&;t t
13991 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13992 s&@builddir@&$ac_builddir&;t t
13993 s&@abs_builddir@&$ac_abs_builddir&;t t
13994 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13995 $ac_datarootdir_hack
13996 "
13997 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13998   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13999
14000 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14001   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14002   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14003       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14004   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14005 which seems to be undefined.  Please make sure it is defined" >&5
14006 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14007 which seems to be undefined.  Please make sure it is defined" >&2;}
14008
14009   rm -f "$ac_tmp/stdin"
14010   case $ac_file in
14011   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14012   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14013   esac \
14014   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14015  ;;
14016   :H)
14017   #
14018   # CONFIG_HEADER
14019   #
14020   if test x"$ac_file" != x-; then
14021     {
14022       $as_echo "/* $configure_input  */" \
14023       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14024     } >"$ac_tmp/config.h" \
14025       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14026     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14027       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14028 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14029     else
14030       rm -f "$ac_file"
14031       mv "$ac_tmp/config.h" "$ac_file" \
14032         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14033     fi
14034   else
14035     $as_echo "/* $configure_input  */" \
14036       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14037       || as_fn_error $? "could not create -" "$LINENO" 5
14038   fi
14039  ;;
14040
14041   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14042 $as_echo "$as_me: executing $ac_file commands" >&6;}
14043  ;;
14044   esac
14045
14046
14047   case $ac_file$ac_mode in
14048     "libtool":C)
14049
14050     # See if we are running on zsh, and set the options which allow our
14051     # commands through without removal of \ escapes.
14052     if test -n "${ZSH_VERSION+set}" ; then
14053       setopt NO_GLOB_SUBST
14054     fi
14055
14056     cfgfile="${ofile}T"
14057     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14058     $RM "$cfgfile"
14059
14060     cat <<_LT_EOF >> "$cfgfile"
14061 #! $SHELL
14062
14063 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14064 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14065 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14066 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14067 #
14068 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14069 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14070 #                 Inc.
14071 #   Written by Gordon Matzigkeit, 1996
14072 #
14073 #   This file is part of GNU Libtool.
14074 #
14075 # GNU Libtool is free software; you can redistribute it and/or
14076 # modify it under the terms of the GNU General Public License as
14077 # published by the Free Software Foundation; either version 2 of
14078 # the License, or (at your option) any later version.
14079 #
14080 # As a special exception to the GNU General Public License,
14081 # if you distribute this file as part of a program or library that
14082 # is built using GNU Libtool, you may include this file under the
14083 # same distribution terms that you use for the rest of that program.
14084 #
14085 # GNU Libtool is distributed in the hope that it will be useful,
14086 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14087 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14088 # GNU General Public License for more details.
14089 #
14090 # You should have received a copy of the GNU General Public License
14091 # along with GNU Libtool; see the file COPYING.  If not, a copy
14092 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14093 # obtained by writing to the Free Software Foundation, Inc.,
14094 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14095
14096
14097 # The names of the tagged configurations supported by this script.
14098 available_tags=""
14099
14100 # ### BEGIN LIBTOOL CONFIG
14101
14102 # Which release of libtool.m4 was used?
14103 macro_version=$macro_version
14104 macro_revision=$macro_revision
14105
14106 # Whether or not to build shared libraries.
14107 build_libtool_libs=$enable_shared
14108
14109 # Whether or not to build static libraries.
14110 build_old_libs=$enable_static
14111
14112 # What type of objects to build.
14113 pic_mode=$pic_mode
14114
14115 # Whether or not to optimize for fast installation.
14116 fast_install=$enable_fast_install
14117
14118 # Shell to use when invoking shell scripts.
14119 SHELL=$lt_SHELL
14120
14121 # An echo program that protects backslashes.
14122 ECHO=$lt_ECHO
14123
14124 # The host system.
14125 host_alias=$host_alias
14126 host=$host
14127 host_os=$host_os
14128
14129 # The build system.
14130 build_alias=$build_alias
14131 build=$build
14132 build_os=$build_os
14133
14134 # A sed program that does not truncate output.
14135 SED=$lt_SED
14136
14137 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14138 Xsed="\$SED -e 1s/^X//"
14139
14140 # A grep program that handles long lines.
14141 GREP=$lt_GREP
14142
14143 # An ERE matcher.
14144 EGREP=$lt_EGREP
14145
14146 # A literal string matcher.
14147 FGREP=$lt_FGREP
14148
14149 # A BSD- or MS-compatible name lister.
14150 NM=$lt_NM
14151
14152 # Whether we need soft or hard links.
14153 LN_S=$lt_LN_S
14154
14155 # What is the maximum length of a command?
14156 max_cmd_len=$max_cmd_len
14157
14158 # Object file suffix (normally "o").
14159 objext=$ac_objext
14160
14161 # Executable file suffix (normally "").
14162 exeext=$exeext
14163
14164 # whether the shell understands "unset".
14165 lt_unset=$lt_unset
14166
14167 # turn spaces into newlines.
14168 SP2NL=$lt_lt_SP2NL
14169
14170 # turn newlines into spaces.
14171 NL2SP=$lt_lt_NL2SP
14172
14173 # convert \$build file names to \$host format.
14174 to_host_file_cmd=$lt_cv_to_host_file_cmd
14175
14176 # convert \$build files to toolchain format.
14177 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14178
14179 # An object symbol dumper.
14180 OBJDUMP=$lt_OBJDUMP
14181
14182 # Method to check whether dependent libraries are shared objects.
14183 deplibs_check_method=$lt_deplibs_check_method
14184
14185 # Command to use when deplibs_check_method = "file_magic".
14186 file_magic_cmd=$lt_file_magic_cmd
14187
14188 # How to find potential files when deplibs_check_method = "file_magic".
14189 file_magic_glob=$lt_file_magic_glob
14190
14191 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14192 want_nocaseglob=$lt_want_nocaseglob
14193
14194 # DLL creation program.
14195 DLLTOOL=$lt_DLLTOOL
14196
14197 # Command to associate shared and link libraries.
14198 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14199
14200 # The archiver.
14201 AR=$lt_AR
14202
14203 # Flags to create an archive.
14204 AR_FLAGS=$lt_AR_FLAGS
14205
14206 # How to feed a file listing to the archiver.
14207 archiver_list_spec=$lt_archiver_list_spec
14208
14209 # A symbol stripping program.
14210 STRIP=$lt_STRIP
14211
14212 # Commands used to install an old-style archive.
14213 RANLIB=$lt_RANLIB
14214 old_postinstall_cmds=$lt_old_postinstall_cmds
14215 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14216
14217 # Whether to use a lock for old archive extraction.
14218 lock_old_archive_extraction=$lock_old_archive_extraction
14219
14220 # A C compiler.
14221 LTCC=$lt_CC
14222
14223 # LTCC compiler flags.
14224 LTCFLAGS=$lt_CFLAGS
14225
14226 # Take the output of nm and produce a listing of raw symbols and C names.
14227 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14228
14229 # Transform the output of nm in a proper C declaration.
14230 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14231
14232 # Transform the output of nm in a C name address pair.
14233 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14234
14235 # Transform the output of nm in a C name address pair when lib prefix is needed.
14236 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14237
14238 # Specify filename containing input files for \$NM.
14239 nm_file_list_spec=$lt_nm_file_list_spec
14240
14241 # The root where to search for dependent libraries,and in which our libraries should be installed.
14242 lt_sysroot=$lt_sysroot
14243
14244 # The name of the directory that contains temporary libtool files.
14245 objdir=$objdir
14246
14247 # Used to examine libraries when file_magic_cmd begins with "file".
14248 MAGIC_CMD=$MAGIC_CMD
14249
14250 # Must we lock files when doing compilation?
14251 need_locks=$lt_need_locks
14252
14253 # Manifest tool.
14254 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14255
14256 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14257 DSYMUTIL=$lt_DSYMUTIL
14258
14259 # Tool to change global to local symbols on Mac OS X.
14260 NMEDIT=$lt_NMEDIT
14261
14262 # Tool to manipulate fat objects and archives on Mac OS X.
14263 LIPO=$lt_LIPO
14264
14265 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14266 OTOOL=$lt_OTOOL
14267
14268 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14269 OTOOL64=$lt_OTOOL64
14270
14271 # Old archive suffix (normally "a").
14272 libext=$libext
14273
14274 # Shared library suffix (normally ".so").
14275 shrext_cmds=$lt_shrext_cmds
14276
14277 # The commands to extract the exported symbol list from a shared archive.
14278 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14279
14280 # Variables whose values should be saved in libtool wrapper scripts and
14281 # restored at link time.
14282 variables_saved_for_relink=$lt_variables_saved_for_relink
14283
14284 # Do we need the "lib" prefix for modules?
14285 need_lib_prefix=$need_lib_prefix
14286
14287 # Do we need a version for libraries?
14288 need_version=$need_version
14289
14290 # Library versioning type.
14291 version_type=$version_type
14292
14293 # Shared library runtime path variable.
14294 runpath_var=$runpath_var
14295
14296 # Shared library path variable.
14297 shlibpath_var=$shlibpath_var
14298
14299 # Is shlibpath searched before the hard-coded library search path?
14300 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14301
14302 # Format of library name prefix.
14303 libname_spec=$lt_libname_spec
14304
14305 # List of archive names.  First name is the real one, the rest are links.
14306 # The last name is the one that the linker finds with -lNAME
14307 library_names_spec=$lt_library_names_spec
14308
14309 # The coded name of the library, if different from the real name.
14310 soname_spec=$lt_soname_spec
14311
14312 # Permission mode override for installation of shared libraries.
14313 install_override_mode=$lt_install_override_mode
14314
14315 # Command to use after installation of a shared archive.
14316 postinstall_cmds=$lt_postinstall_cmds
14317
14318 # Command to use after uninstallation of a shared archive.
14319 postuninstall_cmds=$lt_postuninstall_cmds
14320
14321 # Commands used to finish a libtool library installation in a directory.
14322 finish_cmds=$lt_finish_cmds
14323
14324 # As "finish_cmds", except a single script fragment to be evaled but
14325 # not shown.
14326 finish_eval=$lt_finish_eval
14327
14328 # Whether we should hardcode library paths into libraries.
14329 hardcode_into_libs=$hardcode_into_libs
14330
14331 # Compile-time system search path for libraries.
14332 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14333
14334 # Run-time system search path for libraries.
14335 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14336
14337 # Whether dlopen is supported.
14338 dlopen_support=$enable_dlopen
14339
14340 # Whether dlopen of programs is supported.
14341 dlopen_self=$enable_dlopen_self
14342
14343 # Whether dlopen of statically linked programs is supported.
14344 dlopen_self_static=$enable_dlopen_self_static
14345
14346 # Commands to strip libraries.
14347 old_striplib=$lt_old_striplib
14348 striplib=$lt_striplib
14349
14350
14351 # The linker used to build libraries.
14352 LD=$lt_LD
14353
14354 # How to create reloadable object files.
14355 reload_flag=$lt_reload_flag
14356 reload_cmds=$lt_reload_cmds
14357
14358 # Commands used to build an old-style archive.
14359 old_archive_cmds=$lt_old_archive_cmds
14360
14361 # A language specific compiler.
14362 CC=$lt_compiler
14363
14364 # Is the compiler the GNU compiler?
14365 with_gcc=$GCC
14366
14367 # Compiler flag to turn off builtin functions.
14368 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14369
14370 # Additional compiler flags for building library objects.
14371 pic_flag=$lt_lt_prog_compiler_pic
14372
14373 # How to pass a linker flag through the compiler.
14374 wl=$lt_lt_prog_compiler_wl
14375
14376 # Compiler flag to prevent dynamic linking.
14377 link_static_flag=$lt_lt_prog_compiler_static
14378
14379 # Does compiler simultaneously support -c and -o options?
14380 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14381
14382 # Whether or not to add -lc for building shared libraries.
14383 build_libtool_need_lc=$archive_cmds_need_lc
14384
14385 # Whether or not to disallow shared libs when runtime libs are static.
14386 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14387
14388 # Compiler flag to allow reflexive dlopens.
14389 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14390
14391 # Compiler flag to generate shared objects directly from archives.
14392 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14393
14394 # Whether the compiler copes with passing no objects directly.
14395 compiler_needs_object=$lt_compiler_needs_object
14396
14397 # Create an old-style archive from a shared archive.
14398 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14399
14400 # Create a temporary old-style archive to link instead of a shared archive.
14401 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14402
14403 # Commands used to build a shared archive.
14404 archive_cmds=$lt_archive_cmds
14405 archive_expsym_cmds=$lt_archive_expsym_cmds
14406
14407 # Commands used to build a loadable module if different from building
14408 # a shared archive.
14409 module_cmds=$lt_module_cmds
14410 module_expsym_cmds=$lt_module_expsym_cmds
14411
14412 # Whether we are building with GNU ld or not.
14413 with_gnu_ld=$lt_with_gnu_ld
14414
14415 # Flag that allows shared libraries with undefined symbols to be built.
14416 allow_undefined_flag=$lt_allow_undefined_flag
14417
14418 # Flag that enforces no undefined symbols.
14419 no_undefined_flag=$lt_no_undefined_flag
14420
14421 # Flag to hardcode \$libdir into a binary during linking.
14422 # This must work even if \$libdir does not exist
14423 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14424
14425 # If ld is used when linking, flag to hardcode \$libdir into a binary
14426 # during linking.  This must work even if \$libdir does not exist.
14427 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14428
14429 # Whether we need a single "-rpath" flag with a separated argument.
14430 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14431
14432 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14433 # DIR into the resulting binary.
14434 hardcode_direct=$hardcode_direct
14435
14436 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14437 # DIR into the resulting binary and the resulting library dependency is
14438 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14439 # library is relocated.
14440 hardcode_direct_absolute=$hardcode_direct_absolute
14441
14442 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14443 # into the resulting binary.
14444 hardcode_minus_L=$hardcode_minus_L
14445
14446 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14447 # into the resulting binary.
14448 hardcode_shlibpath_var=$hardcode_shlibpath_var
14449
14450 # Set to "yes" if building a shared library automatically hardcodes DIR
14451 # into the library and all subsequent libraries and executables linked
14452 # against it.
14453 hardcode_automatic=$hardcode_automatic
14454
14455 # Set to yes if linker adds runtime paths of dependent libraries
14456 # to runtime path list.
14457 inherit_rpath=$inherit_rpath
14458
14459 # Whether libtool must link a program against all its dependency libraries.
14460 link_all_deplibs=$link_all_deplibs
14461
14462 # Set to "yes" if exported symbols are required.
14463 always_export_symbols=$always_export_symbols
14464
14465 # The commands to list exported symbols.
14466 export_symbols_cmds=$lt_export_symbols_cmds
14467
14468 # Symbols that should not be listed in the preloaded symbols.
14469 exclude_expsyms=$lt_exclude_expsyms
14470
14471 # Symbols that must always be exported.
14472 include_expsyms=$lt_include_expsyms
14473
14474 # Commands necessary for linking programs (against libraries) with templates.
14475 prelink_cmds=$lt_prelink_cmds
14476
14477 # Commands necessary for finishing linking programs.
14478 postlink_cmds=$lt_postlink_cmds
14479
14480 # Specify filename containing input files.
14481 file_list_spec=$lt_file_list_spec
14482
14483 # How to hardcode a shared library path into an executable.
14484 hardcode_action=$hardcode_action
14485
14486 # ### END LIBTOOL CONFIG
14487
14488 _LT_EOF
14489
14490   case $host_os in
14491   aix3*)
14492     cat <<\_LT_EOF >> "$cfgfile"
14493 # AIX sometimes has problems with the GCC collect2 program.  For some
14494 # reason, if we set the COLLECT_NAMES environment variable, the problems
14495 # vanish in a puff of smoke.
14496 if test "X${COLLECT_NAMES+set}" != Xset; then
14497   COLLECT_NAMES=
14498   export COLLECT_NAMES
14499 fi
14500 _LT_EOF
14501     ;;
14502   esac
14503
14504
14505 ltmain="$ac_aux_dir/ltmain.sh"
14506
14507
14508   # We use sed instead of cat because bash on DJGPP gets confused if
14509   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14510   # text mode, it properly converts lines to CR/LF.  This bash problem
14511   # is reportedly fixed, but why not run on old versions too?
14512   sed '$q' "$ltmain" >> "$cfgfile" \
14513      || (rm -f "$cfgfile"; exit 1)
14514
14515   if test x"$xsi_shell" = xyes; then
14516   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14517 func_dirname ()\
14518 {\
14519 \    case ${1} in\
14520 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14521 \      *  ) func_dirname_result="${3}" ;;\
14522 \    esac\
14523 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14524   && mv -f "$cfgfile.tmp" "$cfgfile" \
14525     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14526 test 0 -eq $? || _lt_function_replace_fail=:
14527
14528
14529   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14530 func_basename ()\
14531 {\
14532 \    func_basename_result="${1##*/}"\
14533 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14534   && mv -f "$cfgfile.tmp" "$cfgfile" \
14535     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14536 test 0 -eq $? || _lt_function_replace_fail=:
14537
14538
14539   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14540 func_dirname_and_basename ()\
14541 {\
14542 \    case ${1} in\
14543 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14544 \      *  ) func_dirname_result="${3}" ;;\
14545 \    esac\
14546 \    func_basename_result="${1##*/}"\
14547 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14548   && mv -f "$cfgfile.tmp" "$cfgfile" \
14549     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14550 test 0 -eq $? || _lt_function_replace_fail=:
14551
14552
14553   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14554 func_stripname ()\
14555 {\
14556 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14557 \    # positional parameters, so assign one to ordinary parameter first.\
14558 \    func_stripname_result=${3}\
14559 \    func_stripname_result=${func_stripname_result#"${1}"}\
14560 \    func_stripname_result=${func_stripname_result%"${2}"}\
14561 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14562   && mv -f "$cfgfile.tmp" "$cfgfile" \
14563     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14564 test 0 -eq $? || _lt_function_replace_fail=:
14565
14566
14567   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14568 func_split_long_opt ()\
14569 {\
14570 \    func_split_long_opt_name=${1%%=*}\
14571 \    func_split_long_opt_arg=${1#*=}\
14572 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14573   && mv -f "$cfgfile.tmp" "$cfgfile" \
14574     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14575 test 0 -eq $? || _lt_function_replace_fail=:
14576
14577
14578   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14579 func_split_short_opt ()\
14580 {\
14581 \    func_split_short_opt_arg=${1#??}\
14582 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14583 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14584   && mv -f "$cfgfile.tmp" "$cfgfile" \
14585     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14586 test 0 -eq $? || _lt_function_replace_fail=:
14587
14588
14589   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14590 func_lo2o ()\
14591 {\
14592 \    case ${1} in\
14593 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14594 \      *)    func_lo2o_result=${1} ;;\
14595 \    esac\
14596 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14597   && mv -f "$cfgfile.tmp" "$cfgfile" \
14598     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14599 test 0 -eq $? || _lt_function_replace_fail=:
14600
14601
14602   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14603 func_xform ()\
14604 {\
14605     func_xform_result=${1%.*}.lo\
14606 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14607   && mv -f "$cfgfile.tmp" "$cfgfile" \
14608     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14609 test 0 -eq $? || _lt_function_replace_fail=:
14610
14611
14612   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14613 func_arith ()\
14614 {\
14615     func_arith_result=$(( $* ))\
14616 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14617   && mv -f "$cfgfile.tmp" "$cfgfile" \
14618     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14619 test 0 -eq $? || _lt_function_replace_fail=:
14620
14621
14622   sed -e '/^func_len ()$/,/^} # func_len /c\
14623 func_len ()\
14624 {\
14625     func_len_result=${#1}\
14626 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14627   && mv -f "$cfgfile.tmp" "$cfgfile" \
14628     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14629 test 0 -eq $? || _lt_function_replace_fail=:
14630
14631 fi
14632
14633 if test x"$lt_shell_append" = xyes; then
14634   sed -e '/^func_append ()$/,/^} # func_append /c\
14635 func_append ()\
14636 {\
14637     eval "${1}+=\\${2}"\
14638 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14639   && mv -f "$cfgfile.tmp" "$cfgfile" \
14640     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14641 test 0 -eq $? || _lt_function_replace_fail=:
14642
14643
14644   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14645 func_append_quoted ()\
14646 {\
14647 \    func_quote_for_eval "${2}"\
14648 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14649 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14650   && mv -f "$cfgfile.tmp" "$cfgfile" \
14651     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14652 test 0 -eq $? || _lt_function_replace_fail=:
14653
14654
14655   # Save a `func_append' function call where possible by direct use of '+='
14656   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14657     && mv -f "$cfgfile.tmp" "$cfgfile" \
14658       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14659   test 0 -eq $? || _lt_function_replace_fail=:
14660 else
14661   # Save a `func_append' function call even when '+=' is not available
14662   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14663     && mv -f "$cfgfile.tmp" "$cfgfile" \
14664       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14665   test 0 -eq $? || _lt_function_replace_fail=:
14666 fi
14667
14668 if test x"$_lt_function_replace_fail" = x":"; then
14669   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14670 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14671 fi
14672
14673
14674    mv -f "$cfgfile" "$ofile" ||
14675     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14676   chmod +x "$ofile"
14677
14678  ;;
14679
14680   esac
14681 done # for ac_tag
14682
14683
14684 as_fn_exit 0
14685 _ACEOF
14686 ac_clean_files=$ac_clean_files_save
14687
14688 test $ac_write_fail = 0 ||
14689   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14690
14691
14692 # configure is writing to config.log, and then calls config.status.
14693 # config.status does its own redirection, appending to config.log.
14694 # Unfortunately, on DOS this fails, as config.log is still kept open
14695 # by configure, so config.status won't be able to write to it; its
14696 # output is simply discarded.  So we exec the FD to /dev/null,
14697 # effectively closing config.log, so it can be properly (re)opened and
14698 # appended to by config.status.  When coming back to configure, we
14699 # need to make the FD available again.
14700 if test "$no_create" != yes; then
14701   ac_cs_success=:
14702   ac_config_status_args=
14703   test "$silent" = yes &&
14704     ac_config_status_args="$ac_config_status_args --quiet"
14705   exec 5>/dev/null
14706   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14707   exec 5>>config.log
14708   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14709   # would make configure fail if this is the last instruction.
14710   $ac_cs_success || as_fn_exit 1
14711 fi
14712 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14713   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14714 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14715 fi
14716