tizen 2.4 release
[external/libusb.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libusb 1.0.9.
4 #
5 # Report bugs to <libusb-devel@lists.sourceforge.net>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: libusb-devel@lists.sourceforge.net about your system,
251 $0: including any error possibly output before this
252 $0: message. Then install a modern shell, or manually run
253 $0: the script under such a shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='libusb'
572 PACKAGE_TARNAME='libusb'
573 PACKAGE_VERSION='1.0.9'
574 PACKAGE_STRING='libusb 1.0.9'
575 PACKAGE_BUGREPORT='libusb-devel@lists.sourceforge.net'
576 PACKAGE_URL='http://www.libusb.org/'
577
578 ac_unique_file="libusb/core.c"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 LTLDFLAGS
620 AM_CFLAGS
621 VISIBILITY_CFLAGS
622 HAVE_SIGACTION_FALSE
623 HAVE_SIGACTION_TRUE
624 BUILD_EXAMPLES_FALSE
625 BUILD_EXAMPLES_TRUE
626 THREADS_POSIX_FALSE
627 THREADS_POSIX_TRUE
628 OS_WINDOWS_FALSE
629 OS_WINDOWS_TRUE
630 OS_OPENBSD_FALSE
631 OS_OPENBSD_TRUE
632 OS_DARWIN_FALSE
633 OS_DARWIN_TRUE
634 OS_LINUX_FALSE
635 OS_LINUX_TRUE
636 PC_LIBS_PRIVATE
637 THREAD_CFLAGS
638 OS_WINDOWS
639 OS_OPENBSD
640 OS_DARWIN
641 OS_LINUX
642 RC
643 CPP
644 OTOOL64
645 OTOOL
646 LIPO
647 NMEDIT
648 DSYMUTIL
649 RANLIB
650 AR
651 OBJDUMP
652 LN_S
653 NM
654 ac_ct_DUMPBIN
655 DUMPBIN
656 LD
657 FGREP
658 EGREP
659 GREP
660 SED
661 host_os
662 host_vendor
663 host_cpu
664 host
665 build_os
666 build_vendor
667 build_cpu
668 build
669 LIBTOOL
670 am__fastdepCC_FALSE
671 am__fastdepCC_TRUE
672 CCDEPMODE
673 AMDEPBACKSLASH
674 AMDEP_FALSE
675 AMDEP_TRUE
676 am__quote
677 am__include
678 DEPDIR
679 OBJEXT
680 EXEEXT
681 ac_ct_CC
682 CPPFLAGS
683 LDFLAGS
684 CFLAGS
685 CC
686 AM_BACKSLASH
687 AM_DEFAULT_VERBOSITY
688 MAINT
689 MAINTAINER_MODE_FALSE
690 MAINTAINER_MODE_TRUE
691 am__untar
692 am__tar
693 AMTAR
694 am__leading_dot
695 SET_MAKE
696 AWK
697 mkdir_p
698 MKDIR_P
699 INSTALL_STRIP_PROGRAM
700 STRIP
701 install_sh
702 MAKEINFO
703 AUTOHEADER
704 AUTOMAKE
705 AUTOCONF
706 ACLOCAL
707 VERSION
708 PACKAGE
709 CYGPATH_W
710 am__isrc
711 INSTALL_DATA
712 INSTALL_SCRIPT
713 INSTALL_PROGRAM
714 target_alias
715 host_alias
716 build_alias
717 LIBS
718 ECHO_T
719 ECHO_N
720 ECHO_C
721 DEFS
722 mandir
723 localedir
724 libdir
725 psdir
726 pdfdir
727 dvidir
728 htmldir
729 infodir
730 docdir
731 oldincludedir
732 includedir
733 localstatedir
734 sharedstatedir
735 sysconfdir
736 datadir
737 datarootdir
738 libexecdir
739 sbindir
740 bindir
741 program_transform_name
742 prefix
743 exec_prefix
744 PACKAGE_URL
745 PACKAGE_BUGREPORT
746 PACKAGE_STRING
747 PACKAGE_VERSION
748 PACKAGE_TARNAME
749 PACKAGE_NAME
750 PATH_SEPARATOR
751 SHELL'
752 ac_subst_files=''
753 ac_user_opts='
754 enable_option_checking
755 enable_maintainer_mode
756 enable_silent_rules
757 enable_dependency_tracking
758 enable_shared
759 enable_static
760 with_pic
761 enable_fast_install
762 with_gnu_ld
763 enable_libtool_lock
764 enable_timerfd
765 enable_log
766 enable_debug_log
767 enable_examples_build
768 '
769       ac_precious_vars='build_alias
770 host_alias
771 target_alias
772 CC
773 CFLAGS
774 LDFLAGS
775 LIBS
776 CPPFLAGS
777 CPP'
778
779
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 ac_unrecognized_opts=
784 ac_unrecognized_sep=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
787 cache_file=/dev/null
788 exec_prefix=NONE
789 no_create=
790 no_recursion=
791 prefix=NONE
792 program_prefix=NONE
793 program_suffix=NONE
794 program_transform_name=s,x,x,
795 silent=
796 site=
797 srcdir=
798 verbose=
799 x_includes=NONE
800 x_libraries=NONE
801
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir='${exec_prefix}/bin'
809 sbindir='${exec_prefix}/sbin'
810 libexecdir='${exec_prefix}/libexec'
811 datarootdir='${prefix}/share'
812 datadir='${datarootdir}'
813 sysconfdir='${prefix}/etc'
814 sharedstatedir='${prefix}/com'
815 localstatedir='${prefix}/var'
816 includedir='${prefix}/include'
817 oldincludedir='/usr/include'
818 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819 infodir='${datarootdir}/info'
820 htmldir='${docdir}'
821 dvidir='${docdir}'
822 pdfdir='${docdir}'
823 psdir='${docdir}'
824 libdir='${exec_prefix}/lib'
825 localedir='${datarootdir}/locale'
826 mandir='${datarootdir}/man'
827
828 ac_prev=
829 ac_dashdash=
830 for ac_option
831 do
832   # If the previous option needs an argument, assign it.
833   if test -n "$ac_prev"; then
834     eval $ac_prev=\$ac_option
835     ac_prev=
836     continue
837   fi
838
839   case $ac_option in
840   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841   *=)   ac_optarg= ;;
842   *)    ac_optarg=yes ;;
843   esac
844
845   # Accept the important Cygnus configure options, so we can diagnose typos.
846
847   case $ac_dashdash$ac_option in
848   --)
849     ac_dashdash=yes ;;
850
851   -bindir | --bindir | --bindi | --bind | --bin | --bi)
852     ac_prev=bindir ;;
853   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854     bindir=$ac_optarg ;;
855
856   -build | --build | --buil | --bui | --bu)
857     ac_prev=build_alias ;;
858   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859     build_alias=$ac_optarg ;;
860
861   -cache-file | --cache-file | --cache-fil | --cache-fi \
862   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863     ac_prev=cache_file ;;
864   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866     cache_file=$ac_optarg ;;
867
868   --config-cache | -C)
869     cache_file=config.cache ;;
870
871   -datadir | --datadir | --datadi | --datad)
872     ac_prev=datadir ;;
873   -datadir=* | --datadir=* | --datadi=* | --datad=*)
874     datadir=$ac_optarg ;;
875
876   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877   | --dataroo | --dataro | --datar)
878     ac_prev=datarootdir ;;
879   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881     datarootdir=$ac_optarg ;;
882
883   -disable-* | --disable-*)
884     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885     # Reject names that are not valid shell variable names.
886     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887       as_fn_error $? "invalid feature name: $ac_useropt"
888     ac_useropt_orig=$ac_useropt
889     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890     case $ac_user_opts in
891       *"
892 "enable_$ac_useropt"
893 "*) ;;
894       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895          ac_unrecognized_sep=', ';;
896     esac
897     eval enable_$ac_useropt=no ;;
898
899   -docdir | --docdir | --docdi | --doc | --do)
900     ac_prev=docdir ;;
901   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902     docdir=$ac_optarg ;;
903
904   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905     ac_prev=dvidir ;;
906   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907     dvidir=$ac_optarg ;;
908
909   -enable-* | --enable-*)
910     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911     # Reject names that are not valid shell variable names.
912     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913       as_fn_error $? "invalid feature name: $ac_useropt"
914     ac_useropt_orig=$ac_useropt
915     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916     case $ac_user_opts in
917       *"
918 "enable_$ac_useropt"
919 "*) ;;
920       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921          ac_unrecognized_sep=', ';;
922     esac
923     eval enable_$ac_useropt=\$ac_optarg ;;
924
925   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927   | --exec | --exe | --ex)
928     ac_prev=exec_prefix ;;
929   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931   | --exec=* | --exe=* | --ex=*)
932     exec_prefix=$ac_optarg ;;
933
934   -gas | --gas | --ga | --g)
935     # Obsolete; use --with-gas.
936     with_gas=yes ;;
937
938   -help | --help | --hel | --he | -h)
939     ac_init_help=long ;;
940   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941     ac_init_help=recursive ;;
942   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943     ac_init_help=short ;;
944
945   -host | --host | --hos | --ho)
946     ac_prev=host_alias ;;
947   -host=* | --host=* | --hos=* | --ho=*)
948     host_alias=$ac_optarg ;;
949
950   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951     ac_prev=htmldir ;;
952   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953   | --ht=*)
954     htmldir=$ac_optarg ;;
955
956   -includedir | --includedir | --includedi | --included | --include \
957   | --includ | --inclu | --incl | --inc)
958     ac_prev=includedir ;;
959   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960   | --includ=* | --inclu=* | --incl=* | --inc=*)
961     includedir=$ac_optarg ;;
962
963   -infodir | --infodir | --infodi | --infod | --info | --inf)
964     ac_prev=infodir ;;
965   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966     infodir=$ac_optarg ;;
967
968   -libdir | --libdir | --libdi | --libd)
969     ac_prev=libdir ;;
970   -libdir=* | --libdir=* | --libdi=* | --libd=*)
971     libdir=$ac_optarg ;;
972
973   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974   | --libexe | --libex | --libe)
975     ac_prev=libexecdir ;;
976   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977   | --libexe=* | --libex=* | --libe=*)
978     libexecdir=$ac_optarg ;;
979
980   -localedir | --localedir | --localedi | --localed | --locale)
981     ac_prev=localedir ;;
982   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983     localedir=$ac_optarg ;;
984
985   -localstatedir | --localstatedir | --localstatedi | --localstated \
986   | --localstate | --localstat | --localsta | --localst | --locals)
987     ac_prev=localstatedir ;;
988   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990     localstatedir=$ac_optarg ;;
991
992   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993     ac_prev=mandir ;;
994   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995     mandir=$ac_optarg ;;
996
997   -nfp | --nfp | --nf)
998     # Obsolete; use --without-fp.
999     with_fp=no ;;
1000
1001   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002   | --no-cr | --no-c | -n)
1003     no_create=yes ;;
1004
1005   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007     no_recursion=yes ;;
1008
1009   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011   | --oldin | --oldi | --old | --ol | --o)
1012     ac_prev=oldincludedir ;;
1013   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016     oldincludedir=$ac_optarg ;;
1017
1018   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019     ac_prev=prefix ;;
1020   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021     prefix=$ac_optarg ;;
1022
1023   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024   | --program-pre | --program-pr | --program-p)
1025     ac_prev=program_prefix ;;
1026   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028     program_prefix=$ac_optarg ;;
1029
1030   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031   | --program-suf | --program-su | --program-s)
1032     ac_prev=program_suffix ;;
1033   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035     program_suffix=$ac_optarg ;;
1036
1037   -program-transform-name | --program-transform-name \
1038   | --program-transform-nam | --program-transform-na \
1039   | --program-transform-n | --program-transform- \
1040   | --program-transform | --program-transfor \
1041   | --program-transfo | --program-transf \
1042   | --program-trans | --program-tran \
1043   | --progr-tra | --program-tr | --program-t)
1044     ac_prev=program_transform_name ;;
1045   -program-transform-name=* | --program-transform-name=* \
1046   | --program-transform-nam=* | --program-transform-na=* \
1047   | --program-transform-n=* | --program-transform-=* \
1048   | --program-transform=* | --program-transfor=* \
1049   | --program-transfo=* | --program-transf=* \
1050   | --program-trans=* | --program-tran=* \
1051   | --progr-tra=* | --program-tr=* | --program-t=*)
1052     program_transform_name=$ac_optarg ;;
1053
1054   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055     ac_prev=pdfdir ;;
1056   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057     pdfdir=$ac_optarg ;;
1058
1059   -psdir | --psdir | --psdi | --psd | --ps)
1060     ac_prev=psdir ;;
1061   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062     psdir=$ac_optarg ;;
1063
1064   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065   | -silent | --silent | --silen | --sile | --sil)
1066     silent=yes ;;
1067
1068   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069     ac_prev=sbindir ;;
1070   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071   | --sbi=* | --sb=*)
1072     sbindir=$ac_optarg ;;
1073
1074   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076   | --sharedst | --shareds | --shared | --share | --shar \
1077   | --sha | --sh)
1078     ac_prev=sharedstatedir ;;
1079   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082   | --sha=* | --sh=*)
1083     sharedstatedir=$ac_optarg ;;
1084
1085   -site | --site | --sit)
1086     ac_prev=site ;;
1087   -site=* | --site=* | --sit=*)
1088     site=$ac_optarg ;;
1089
1090   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091     ac_prev=srcdir ;;
1092   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093     srcdir=$ac_optarg ;;
1094
1095   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096   | --syscon | --sysco | --sysc | --sys | --sy)
1097     ac_prev=sysconfdir ;;
1098   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100     sysconfdir=$ac_optarg ;;
1101
1102   -target | --target | --targe | --targ | --tar | --ta | --t)
1103     ac_prev=target_alias ;;
1104   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105     target_alias=$ac_optarg ;;
1106
1107   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108     verbose=yes ;;
1109
1110   -version | --version | --versio | --versi | --vers | -V)
1111     ac_init_version=: ;;
1112
1113   -with-* | --with-*)
1114     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115     # Reject names that are not valid shell variable names.
1116     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117       as_fn_error $? "invalid package name: $ac_useropt"
1118     ac_useropt_orig=$ac_useropt
1119     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120     case $ac_user_opts in
1121       *"
1122 "with_$ac_useropt"
1123 "*) ;;
1124       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125          ac_unrecognized_sep=', ';;
1126     esac
1127     eval with_$ac_useropt=\$ac_optarg ;;
1128
1129   -without-* | --without-*)
1130     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131     # Reject names that are not valid shell variable names.
1132     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133       as_fn_error $? "invalid package name: $ac_useropt"
1134     ac_useropt_orig=$ac_useropt
1135     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136     case $ac_user_opts in
1137       *"
1138 "with_$ac_useropt"
1139 "*) ;;
1140       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141          ac_unrecognized_sep=', ';;
1142     esac
1143     eval with_$ac_useropt=no ;;
1144
1145   --x)
1146     # Obsolete; use --with-x.
1147     with_x=yes ;;
1148
1149   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150   | --x-incl | --x-inc | --x-in | --x-i)
1151     ac_prev=x_includes ;;
1152   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154     x_includes=$ac_optarg ;;
1155
1156   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158     ac_prev=x_libraries ;;
1159   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161     x_libraries=$ac_optarg ;;
1162
1163   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1164 Try \`$0 --help' for more information"
1165     ;;
1166
1167   *=*)
1168     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169     # Reject names that are not valid shell variable names.
1170     case $ac_envvar in #(
1171       '' | [0-9]* | *[!_$as_cr_alnum]* )
1172       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1173     esac
1174     eval $ac_envvar=\$ac_optarg
1175     export $ac_envvar ;;
1176
1177   *)
1178     # FIXME: should be removed in autoconf 3.0.
1179     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1183     ;;
1184
1185   esac
1186 done
1187
1188 if test -n "$ac_prev"; then
1189   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1190   as_fn_error $? "missing argument to $ac_option"
1191 fi
1192
1193 if test -n "$ac_unrecognized_opts"; then
1194   case $enable_option_checking in
1195     no) ;;
1196     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1197     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198   esac
1199 fi
1200
1201 # Check all directory arguments for consistency.
1202 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203                 datadir sysconfdir sharedstatedir localstatedir includedir \
1204                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205                 libdir localedir mandir
1206 do
1207   eval ac_val=\$$ac_var
1208   # Remove trailing slashes.
1209   case $ac_val in
1210     */ )
1211       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212       eval $ac_var=\$ac_val;;
1213   esac
1214   # Be sure to have absolute directory names.
1215   case $ac_val in
1216     [\\/$]* | ?:[\\/]* )  continue;;
1217     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218   esac
1219   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1220 done
1221
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1225 build=$build_alias
1226 host=$host_alias
1227 target=$target_alias
1228
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231   if test "x$build_alias" = x; then
1232     cross_compiling=maybe
1233     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1234     If a cross compiler is detected then cross compile mode will be used" >&2
1235   elif test "x$build_alias" != "x$host_alias"; then
1236     cross_compiling=yes
1237   fi
1238 fi
1239
1240 ac_tool_prefix=
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243 test "$silent" = yes && exec 6>/dev/null
1244
1245
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249   as_fn_error $? "working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251   as_fn_error $? "pwd does not report name of working directory"
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256   ac_srcdir_defaulted=yes
1257   # Try the directory containing this script, then the parent directory.
1258   ac_confdir=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260          X"$as_myself" : 'X\(//\)[^/]' \| \
1261          X"$as_myself" : 'X\(//\)$' \| \
1262          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 $as_echo X"$as_myself" |
1264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)[^/].*/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\/\)$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\).*/{
1277             s//\1/
1278             q
1279           }
1280           s/.*/./; q'`
1281   srcdir=$ac_confdir
1282   if test ! -r "$srcdir/$ac_unique_file"; then
1283     srcdir=..
1284   fi
1285 else
1286   ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291 fi
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295         pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298   srcdir=.
1299 fi
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308   eval ac_env_${ac_var}_value=\$${ac_var}
1309   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1312
1313 #
1314 # Report the --help message.
1315 #
1316 if test "$ac_init_help" = "long"; then
1317   # Omit some internal or obsolete options to make the list less imposing.
1318   # This message is too long to be a string in the A/UX 3.1 sh.
1319   cat <<_ACEOF
1320 \`configure' configures libusb 1.0.9 to adapt to many kinds of systems.
1321
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE.  See below for descriptions of some of the useful variables.
1326
1327 Defaults for the options are specified in brackets.
1328
1329 Configuration:
1330   -h, --help              display this help and exit
1331       --help=short        display options specific to this package
1332       --help=recursive    display the short help of all the included packages
1333   -V, --version           display version information and exit
1334   -q, --quiet, --silent   do not print \`checking ...' messages
1335       --cache-file=FILE   cache test results in FILE [disabled]
1336   -C, --config-cache      alias for \`--cache-file=config.cache'
1337   -n, --no-create         do not create output files
1338       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1339
1340 Installation directories:
1341   --prefix=PREFIX         install architecture-independent files in PREFIX
1342                           [$ac_default_prefix]
1343   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1344                           [PREFIX]
1345
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1350
1351 For better control, use the options below.
1352
1353 Fine tuning of the installation directories:
1354   --bindir=DIR            user executables [EPREFIX/bin]
1355   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1356   --libexecdir=DIR        program executables [EPREFIX/libexec]
1357   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1358   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1359   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1360   --libdir=DIR            object code libraries [EPREFIX/lib]
1361   --includedir=DIR        C header files [PREFIX/include]
1362   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1363   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1364   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1365   --infodir=DIR           info documentation [DATAROOTDIR/info]
1366   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1367   --mandir=DIR            man documentation [DATAROOTDIR/man]
1368   --docdir=DIR            documentation root [DATAROOTDIR/doc/libusb]
1369   --htmldir=DIR           html documentation [DOCDIR]
1370   --dvidir=DIR            dvi documentation [DOCDIR]
1371   --pdfdir=DIR            pdf documentation [DOCDIR]
1372   --psdir=DIR             ps documentation [DOCDIR]
1373 _ACEOF
1374
1375   cat <<\_ACEOF
1376
1377 Program names:
1378   --program-prefix=PREFIX            prepend PREFIX to installed program names
1379   --program-suffix=SUFFIX            append SUFFIX to installed program names
1380   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1381
1382 System types:
1383   --build=BUILD     configure for building on BUILD [guessed]
1384   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1385 _ACEOF
1386 fi
1387
1388 if test -n "$ac_init_help"; then
1389   case $ac_init_help in
1390      short | recursive ) echo "Configuration of libusb 1.0.9:";;
1391    esac
1392   cat <<\_ACEOF
1393
1394 Optional Features:
1395   --disable-option-checking  ignore unrecognized --enable/--with options
1396   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1397   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1398   --enable-maintainer-mode  enable make rules and dependencies not useful
1399                           (and sometimes confusing) to the casual installer
1400   --enable-silent-rules          less verbose build output (undo: `make V=1')
1401   --disable-silent-rules         verbose build output (undo: `make V=0')
1402   --disable-dependency-tracking  speeds up one-time build
1403   --enable-dependency-tracking   do not reject slow dependency extractors
1404   --enable-shared[=PKGS]  build shared libraries [default=yes]
1405   --enable-static[=PKGS]  build static libraries [default=yes]
1406   --enable-fast-install[=PKGS]
1407                           optimize for fast installation [default=yes]
1408   --disable-libtool-lock  avoid locking (might break parallel builds)
1409   --enable-timerfd        use timerfd for timing (default auto)
1410   --disable-log           disable all logging
1411   --enable-debug-log      enable debug logging (default n)
1412   --enable-examples-build build example applications (default n)
1413
1414 Optional Packages:
1415   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1416   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1417   --with-pic              try to use only PIC/non-PIC objects [default=use
1418                           both]
1419   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1420
1421 Some influential environment variables:
1422   CC          C compiler command
1423   CFLAGS      C compiler flags
1424   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1425               nonstandard directory <lib dir>
1426   LIBS        libraries to pass to the linker, e.g. -l<library>
1427   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1428               you have headers in a nonstandard directory <include dir>
1429   CPP         C preprocessor
1430
1431 Use these variables to override the choices made by `configure' or to help
1432 it to find libraries and programs with nonstandard names/locations.
1433
1434 Report bugs to <libusb-devel@lists.sourceforge.net>.
1435 libusb home page: <http://www.libusb.org/>.
1436 _ACEOF
1437 ac_status=$?
1438 fi
1439
1440 if test "$ac_init_help" = "recursive"; then
1441   # If there are subdirs, report their specific --help.
1442   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443     test -d "$ac_dir" ||
1444       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1445       continue
1446     ac_builddir=.
1447
1448 case "$ac_dir" in
1449 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 *)
1451   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1452   # A ".." for each directory in $ac_dir_suffix.
1453   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454   case $ac_top_builddir_sub in
1455   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457   esac ;;
1458 esac
1459 ac_abs_top_builddir=$ac_pwd
1460 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461 # for backward compatibility:
1462 ac_top_builddir=$ac_top_build_prefix
1463
1464 case $srcdir in
1465   .)  # We are building in place.
1466     ac_srcdir=.
1467     ac_top_srcdir=$ac_top_builddir_sub
1468     ac_abs_top_srcdir=$ac_pwd ;;
1469   [\\/]* | ?:[\\/]* )  # Absolute name.
1470     ac_srcdir=$srcdir$ac_dir_suffix;
1471     ac_top_srcdir=$srcdir
1472     ac_abs_top_srcdir=$srcdir ;;
1473   *) # Relative name.
1474     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475     ac_top_srcdir=$ac_top_build_prefix$srcdir
1476     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1477 esac
1478 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479
1480     cd "$ac_dir" || { ac_status=$?; continue; }
1481     # Check for guested configure.
1482     if test -f "$ac_srcdir/configure.gnu"; then
1483       echo &&
1484       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485     elif test -f "$ac_srcdir/configure"; then
1486       echo &&
1487       $SHELL "$ac_srcdir/configure" --help=recursive
1488     else
1489       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1490     fi || ac_status=$?
1491     cd "$ac_pwd" || { ac_status=$?; break; }
1492   done
1493 fi
1494
1495 test -n "$ac_init_help" && exit $ac_status
1496 if $ac_init_version; then
1497   cat <<\_ACEOF
1498 libusb configure 1.0.9
1499 generated by GNU Autoconf 2.68
1500
1501 Copyright (C) 2010 Free Software Foundation, Inc.
1502 This configure script is free software; the Free Software Foundation
1503 gives unlimited permission to copy, distribute and modify it.
1504 _ACEOF
1505   exit
1506 fi
1507
1508 ## ------------------------ ##
1509 ## Autoconf initialization. ##
1510 ## ------------------------ ##
1511
1512 # ac_fn_c_try_compile LINENO
1513 # --------------------------
1514 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1515 ac_fn_c_try_compile ()
1516 {
1517   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518   rm -f conftest.$ac_objext
1519   if { { ac_try="$ac_compile"
1520 case "(($ac_try" in
1521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522   *) ac_try_echo=$ac_try;;
1523 esac
1524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525 $as_echo "$ac_try_echo"; } >&5
1526   (eval "$ac_compile") 2>conftest.err
1527   ac_status=$?
1528   if test -s conftest.err; then
1529     grep -v '^ *+' conftest.err >conftest.er1
1530     cat conftest.er1 >&5
1531     mv -f conftest.er1 conftest.err
1532   fi
1533   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534   test $ac_status = 0; } && {
1535          test -z "$ac_c_werror_flag" ||
1536          test ! -s conftest.err
1537        } && test -s conftest.$ac_objext; then :
1538   ac_retval=0
1539 else
1540   $as_echo "$as_me: failed program was:" >&5
1541 sed 's/^/| /' conftest.$ac_ext >&5
1542
1543         ac_retval=1
1544 fi
1545   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1546   as_fn_set_status $ac_retval
1547
1548 } # ac_fn_c_try_compile
1549
1550 # ac_fn_c_try_link LINENO
1551 # -----------------------
1552 # Try to link conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_c_try_link ()
1554 {
1555   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556   rm -f conftest.$ac_objext conftest$ac_exeext
1557   if { { ac_try="$ac_link"
1558 case "(($ac_try" in
1559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560   *) ac_try_echo=$ac_try;;
1561 esac
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564   (eval "$ac_link") 2>conftest.err
1565   ac_status=$?
1566   if test -s conftest.err; then
1567     grep -v '^ *+' conftest.err >conftest.er1
1568     cat conftest.er1 >&5
1569     mv -f conftest.er1 conftest.err
1570   fi
1571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572   test $ac_status = 0; } && {
1573          test -z "$ac_c_werror_flag" ||
1574          test ! -s conftest.err
1575        } && test -s conftest$ac_exeext && {
1576          test "$cross_compiling" = yes ||
1577          $as_test_x conftest$ac_exeext
1578        }; then :
1579   ac_retval=0
1580 else
1581   $as_echo "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1583
1584         ac_retval=1
1585 fi
1586   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1587   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1588   # interfere with the next link command; also delete a directory that is
1589   # left behind by Apple's compiler.  We do this before executing the actions.
1590   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1591   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592   as_fn_set_status $ac_retval
1593
1594 } # ac_fn_c_try_link
1595
1596 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1597 # -------------------------------------------------------
1598 # Tests whether HEADER exists and can be compiled using the include files in
1599 # INCLUDES, setting the cache variable VAR accordingly.
1600 ac_fn_c_check_header_compile ()
1601 {
1602   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604 $as_echo_n "checking for $2... " >&6; }
1605 if eval \${$3+:} false; then :
1606   $as_echo_n "(cached) " >&6
1607 else
1608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609 /* end confdefs.h.  */
1610 $4
1611 #include <$2>
1612 _ACEOF
1613 if ac_fn_c_try_compile "$LINENO"; then :
1614   eval "$3=yes"
1615 else
1616   eval "$3=no"
1617 fi
1618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1619 fi
1620 eval ac_res=\$$3
1621                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622 $as_echo "$ac_res" >&6; }
1623   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624
1625 } # ac_fn_c_check_header_compile
1626
1627 # ac_fn_c_try_cpp LINENO
1628 # ----------------------
1629 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_c_try_cpp ()
1631 {
1632   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633   if { { ac_try="$ac_cpp conftest.$ac_ext"
1634 case "(($ac_try" in
1635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636   *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641   ac_status=$?
1642   if test -s conftest.err; then
1643     grep -v '^ *+' conftest.err >conftest.er1
1644     cat conftest.er1 >&5
1645     mv -f conftest.er1 conftest.err
1646   fi
1647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648   test $ac_status = 0; } > conftest.i && {
1649          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1650          test ! -s conftest.err
1651        }; then :
1652   ac_retval=0
1653 else
1654   $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657     ac_retval=1
1658 fi
1659   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660   as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_cpp
1663
1664 # ac_fn_c_try_run LINENO
1665 # ----------------------
1666 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1667 # that executables *can* be run.
1668 ac_fn_c_try_run ()
1669 {
1670   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671   if { { ac_try="$ac_link"
1672 case "(($ac_try" in
1673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674   *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678   (eval "$ac_link") 2>&5
1679   ac_status=$?
1680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1682   { { case "(($ac_try" in
1683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684   *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688   (eval "$ac_try") 2>&5
1689   ac_status=$?
1690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691   test $ac_status = 0; }; }; then :
1692   ac_retval=0
1693 else
1694   $as_echo "$as_me: program exited with status $ac_status" >&5
1695        $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1697
1698        ac_retval=$ac_status
1699 fi
1700   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702   as_fn_set_status $ac_retval
1703
1704 } # ac_fn_c_try_run
1705
1706 # ac_fn_c_check_func LINENO FUNC VAR
1707 # ----------------------------------
1708 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1709 ac_fn_c_check_func ()
1710 {
1711   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if eval \${$3+:} false; then :
1715   $as_echo_n "(cached) " >&6
1716 else
1717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h.  */
1719 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1720    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1721 #define $2 innocuous_$2
1722
1723 /* System header to define __stub macros and hopefully few prototypes,
1724     which can conflict with char $2 (); below.
1725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1726     <limits.h> exists even on freestanding compilers.  */
1727
1728 #ifdef __STDC__
1729 # include <limits.h>
1730 #else
1731 # include <assert.h>
1732 #endif
1733
1734 #undef $2
1735
1736 /* Override any GCC internal prototype to avoid an error.
1737    Use char because int might match the return type of a GCC
1738    builtin and then its argument prototype would still apply.  */
1739 #ifdef __cplusplus
1740 extern "C"
1741 #endif
1742 char $2 ();
1743 /* The GNU C library defines this for functions which it implements
1744     to always fail with ENOSYS.  Some functions are actually named
1745     something starting with __ and the normal name is an alias.  */
1746 #if defined __stub_$2 || defined __stub___$2
1747 choke me
1748 #endif
1749
1750 int
1751 main ()
1752 {
1753 return $2 ();
1754   ;
1755   return 0;
1756 }
1757 _ACEOF
1758 if ac_fn_c_try_link "$LINENO"; then :
1759   eval "$3=yes"
1760 else
1761   eval "$3=no"
1762 fi
1763 rm -f core conftest.err conftest.$ac_objext \
1764     conftest$ac_exeext conftest.$ac_ext
1765 fi
1766 eval ac_res=\$$3
1767                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1769   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770
1771 } # ac_fn_c_check_func
1772
1773 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1774 # -------------------------------------------------------
1775 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1776 # the include files in INCLUDES and setting the cache variable VAR
1777 # accordingly.
1778 ac_fn_c_check_header_mongrel ()
1779 {
1780   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781   if eval \${$3+:} false; then :
1782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if eval \${$3+:} false; then :
1785   $as_echo_n "(cached) " >&6
1786 fi
1787 eval ac_res=\$$3
1788                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 else
1791   # Is the header compilable?
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1793 $as_echo_n "checking $2 usability... " >&6; }
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h.  */
1796 $4
1797 #include <$2>
1798 _ACEOF
1799 if ac_fn_c_try_compile "$LINENO"; then :
1800   ac_header_compiler=yes
1801 else
1802   ac_header_compiler=no
1803 fi
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1806 $as_echo "$ac_header_compiler" >&6; }
1807
1808 # Is the header present?
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1810 $as_echo_n "checking $2 presence... " >&6; }
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h.  */
1813 #include <$2>
1814 _ACEOF
1815 if ac_fn_c_try_cpp "$LINENO"; then :
1816   ac_header_preproc=yes
1817 else
1818   ac_header_preproc=no
1819 fi
1820 rm -f conftest.err conftest.i conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1822 $as_echo "$ac_header_preproc" >&6; }
1823
1824 # So?  What about this header?
1825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1826   yes:no: )
1827     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1828 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1829     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1830 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1831     ;;
1832   no:yes:* )
1833     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1834 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1835     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1836 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1837     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1838 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1839     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1840 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1841     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843 ( $as_echo "## ------------------------------------------------- ##
1844 ## Report this to libusb-devel@lists.sourceforge.net ##
1845 ## ------------------------------------------------- ##"
1846      ) | sed "s/^/$as_me: WARNING:     /" >&2
1847     ;;
1848 esac
1849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852   $as_echo_n "(cached) " >&6
1853 else
1854   eval "$3=\$ac_header_compiler"
1855 fi
1856 eval ac_res=\$$3
1857                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 fi
1860   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861
1862 } # ac_fn_c_check_header_mongrel
1863
1864 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1865 # -------------------------------------------
1866 # Tests whether TYPE exists after having included INCLUDES, setting cache
1867 # variable VAR accordingly.
1868 ac_fn_c_check_type ()
1869 {
1870   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874   $as_echo_n "(cached) " >&6
1875 else
1876   eval "$3=no"
1877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h.  */
1879 $4
1880 int
1881 main ()
1882 {
1883 if (sizeof ($2))
1884          return 0;
1885   ;
1886   return 0;
1887 }
1888 _ACEOF
1889 if ac_fn_c_try_compile "$LINENO"; then :
1890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h.  */
1892 $4
1893 int
1894 main ()
1895 {
1896 if (sizeof (($2)))
1897             return 0;
1898   ;
1899   return 0;
1900 }
1901 _ACEOF
1902 if ac_fn_c_try_compile "$LINENO"; then :
1903
1904 else
1905   eval "$3=yes"
1906 fi
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 fi
1911 eval ac_res=\$$3
1912                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1914   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915
1916 } # ac_fn_c_check_type
1917
1918 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1919 # ---------------------------------------------
1920 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1921 # accordingly.
1922 ac_fn_c_check_decl ()
1923 {
1924   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925   as_decl_name=`echo $2|sed 's/ *(.*//'`
1926   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1928 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1929 if eval \${$3+:} false; then :
1930   $as_echo_n "(cached) " >&6
1931 else
1932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h.  */
1934 $4
1935 int
1936 main ()
1937 {
1938 #ifndef $as_decl_name
1939 #ifdef __cplusplus
1940   (void) $as_decl_use;
1941 #else
1942   (void) $as_decl_name;
1943 #endif
1944 #endif
1945
1946   ;
1947   return 0;
1948 }
1949 _ACEOF
1950 if ac_fn_c_try_compile "$LINENO"; then :
1951   eval "$3=yes"
1952 else
1953   eval "$3=no"
1954 fi
1955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956 fi
1957 eval ac_res=\$$3
1958                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1960   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961
1962 } # ac_fn_c_check_decl
1963 cat >config.log <<_ACEOF
1964 This file contains any messages produced by compilers while
1965 running configure, to aid debugging if configure makes a mistake.
1966
1967 It was created by libusb $as_me 1.0.9, which was
1968 generated by GNU Autoconf 2.68.  Invocation command line was
1969
1970   $ $0 $@
1971
1972 _ACEOF
1973 exec 5>>config.log
1974 {
1975 cat <<_ASUNAME
1976 ## --------- ##
1977 ## Platform. ##
1978 ## --------- ##
1979
1980 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1981 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1982 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1983 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1984 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1985
1986 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1987 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1988
1989 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1990 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1991 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1992 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1993 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1994 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1995 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1996
1997 _ASUNAME
1998
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 for as_dir in $PATH
2001 do
2002   IFS=$as_save_IFS
2003   test -z "$as_dir" && as_dir=.
2004     $as_echo "PATH: $as_dir"
2005   done
2006 IFS=$as_save_IFS
2007
2008 } >&5
2009
2010 cat >&5 <<_ACEOF
2011
2012
2013 ## ----------- ##
2014 ## Core tests. ##
2015 ## ----------- ##
2016
2017 _ACEOF
2018
2019
2020 # Keep a trace of the command line.
2021 # Strip out --no-create and --no-recursion so they do not pile up.
2022 # Strip out --silent because we don't want to record it for future runs.
2023 # Also quote any args containing shell meta-characters.
2024 # Make two passes to allow for proper duplicate-argument suppression.
2025 ac_configure_args=
2026 ac_configure_args0=
2027 ac_configure_args1=
2028 ac_must_keep_next=false
2029 for ac_pass in 1 2
2030 do
2031   for ac_arg
2032   do
2033     case $ac_arg in
2034     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2035     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2036     | -silent | --silent | --silen | --sile | --sil)
2037       continue ;;
2038     *\'*)
2039       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2040     esac
2041     case $ac_pass in
2042     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2043     2)
2044       as_fn_append ac_configure_args1 " '$ac_arg'"
2045       if test $ac_must_keep_next = true; then
2046         ac_must_keep_next=false # Got value, back to normal.
2047       else
2048         case $ac_arg in
2049           *=* | --config-cache | -C | -disable-* | --disable-* \
2050           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2051           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2052           | -with-* | --with-* | -without-* | --without-* | --x)
2053             case "$ac_configure_args0 " in
2054               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2055             esac
2056             ;;
2057           -* ) ac_must_keep_next=true ;;
2058         esac
2059       fi
2060       as_fn_append ac_configure_args " '$ac_arg'"
2061       ;;
2062     esac
2063   done
2064 done
2065 { ac_configure_args0=; unset ac_configure_args0;}
2066 { ac_configure_args1=; unset ac_configure_args1;}
2067
2068 # When interrupted or exit'd, cleanup temporary files, and complete
2069 # config.log.  We remove comments because anyway the quotes in there
2070 # would cause problems or look ugly.
2071 # WARNING: Use '\'' to represent an apostrophe within the trap.
2072 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2073 trap 'exit_status=$?
2074   # Save into config.log some information that might help in debugging.
2075   {
2076     echo
2077
2078     $as_echo "## ---------------- ##
2079 ## Cache variables. ##
2080 ## ---------------- ##"
2081     echo
2082     # The following way of writing the cache mishandles newlines in values,
2083 (
2084   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2085     eval ac_val=\$$ac_var
2086     case $ac_val in #(
2087     *${as_nl}*)
2088       case $ac_var in #(
2089       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2090 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2091       esac
2092       case $ac_var in #(
2093       _ | IFS | as_nl) ;; #(
2094       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2095       *) { eval $ac_var=; unset $ac_var;} ;;
2096       esac ;;
2097     esac
2098   done
2099   (set) 2>&1 |
2100     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2101     *${as_nl}ac_space=\ *)
2102       sed -n \
2103         "s/'\''/'\''\\\\'\'''\''/g;
2104           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2105       ;; #(
2106     *)
2107       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2108       ;;
2109     esac |
2110     sort
2111 )
2112     echo
2113
2114     $as_echo "## ----------------- ##
2115 ## Output variables. ##
2116 ## ----------------- ##"
2117     echo
2118     for ac_var in $ac_subst_vars
2119     do
2120       eval ac_val=\$$ac_var
2121       case $ac_val in
2122       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2123       esac
2124       $as_echo "$ac_var='\''$ac_val'\''"
2125     done | sort
2126     echo
2127
2128     if test -n "$ac_subst_files"; then
2129       $as_echo "## ------------------- ##
2130 ## File substitutions. ##
2131 ## ------------------- ##"
2132       echo
2133       for ac_var in $ac_subst_files
2134       do
2135         eval ac_val=\$$ac_var
2136         case $ac_val in
2137         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2138         esac
2139         $as_echo "$ac_var='\''$ac_val'\''"
2140       done | sort
2141       echo
2142     fi
2143
2144     if test -s confdefs.h; then
2145       $as_echo "## ----------- ##
2146 ## confdefs.h. ##
2147 ## ----------- ##"
2148       echo
2149       cat confdefs.h
2150       echo
2151     fi
2152     test "$ac_signal" != 0 &&
2153       $as_echo "$as_me: caught signal $ac_signal"
2154     $as_echo "$as_me: exit $exit_status"
2155   } >&5
2156   rm -f core *.core core.conftest.* &&
2157     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2158     exit $exit_status
2159 ' 0
2160 for ac_signal in 1 2 13 15; do
2161   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2162 done
2163 ac_signal=0
2164
2165 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2166 rm -f -r conftest* confdefs.h
2167
2168 $as_echo "/* confdefs.h */" > confdefs.h
2169
2170 # Predefined preprocessor variables.
2171
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_NAME "$PACKAGE_NAME"
2174 _ACEOF
2175
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2178 _ACEOF
2179
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2182 _ACEOF
2183
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_STRING "$PACKAGE_STRING"
2186 _ACEOF
2187
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2190 _ACEOF
2191
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_URL "$PACKAGE_URL"
2194 _ACEOF
2195
2196
2197 # Let the site file select an alternate cache file if it wants to.
2198 # Prefer an explicitly selected file to automatically selected ones.
2199 ac_site_file1=NONE
2200 ac_site_file2=NONE
2201 if test -n "$CONFIG_SITE"; then
2202   # We do not want a PATH search for config.site.
2203   case $CONFIG_SITE in #((
2204     -*)  ac_site_file1=./$CONFIG_SITE;;
2205     */*) ac_site_file1=$CONFIG_SITE;;
2206     *)   ac_site_file1=./$CONFIG_SITE;;
2207   esac
2208 elif test "x$prefix" != xNONE; then
2209   ac_site_file1=$prefix/share/config.site
2210   ac_site_file2=$prefix/etc/config.site
2211 else
2212   ac_site_file1=$ac_default_prefix/share/config.site
2213   ac_site_file2=$ac_default_prefix/etc/config.site
2214 fi
2215 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2216 do
2217   test "x$ac_site_file" = xNONE && continue
2218   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2219     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2220 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2221     sed 's/^/| /' "$ac_site_file" >&5
2222     . "$ac_site_file" \
2223       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2225 as_fn_error $? "failed to load site script $ac_site_file
2226 See \`config.log' for more details" "$LINENO" 5; }
2227   fi
2228 done
2229
2230 if test -r "$cache_file"; then
2231   # Some versions of bash will fail to source /dev/null (special files
2232   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2233   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2234     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2235 $as_echo "$as_me: loading cache $cache_file" >&6;}
2236     case $cache_file in
2237       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2238       *)                      . "./$cache_file";;
2239     esac
2240   fi
2241 else
2242   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2243 $as_echo "$as_me: creating cache $cache_file" >&6;}
2244   >$cache_file
2245 fi
2246
2247 # Check that the precious variables saved in the cache have kept the same
2248 # value.
2249 ac_cache_corrupted=false
2250 for ac_var in $ac_precious_vars; do
2251   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2252   eval ac_new_set=\$ac_env_${ac_var}_set
2253   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2254   eval ac_new_val=\$ac_env_${ac_var}_value
2255   case $ac_old_set,$ac_new_set in
2256     set,)
2257       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2258 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2259       ac_cache_corrupted=: ;;
2260     ,set)
2261       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2262 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2263       ac_cache_corrupted=: ;;
2264     ,);;
2265     *)
2266       if test "x$ac_old_val" != "x$ac_new_val"; then
2267         # differences in whitespace do not lead to failure.
2268         ac_old_val_w=`echo x $ac_old_val`
2269         ac_new_val_w=`echo x $ac_new_val`
2270         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2271           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2272 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2273           ac_cache_corrupted=:
2274         else
2275           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2276 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2277           eval $ac_var=\$ac_old_val
2278         fi
2279         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2280 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2281         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2282 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2283       fi;;
2284   esac
2285   # Pass precious variables to config.status.
2286   if test "$ac_new_set" = set; then
2287     case $ac_new_val in
2288     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2289     *) ac_arg=$ac_var=$ac_new_val ;;
2290     esac
2291     case " $ac_configure_args " in
2292       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2293       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2294     esac
2295   fi
2296 done
2297 if $ac_cache_corrupted; then
2298   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2300   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2301 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2302   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2303 fi
2304 ## -------------------- ##
2305 ## Main body of script. ##
2306 ## -------------------- ##
2307
2308 ac_ext=c
2309 ac_cpp='$CPP $CPPFLAGS'
2310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2313
2314
2315
2316 # Library versioning
2317 # These numbers should be tweaked on every release. Read carefully:
2318 # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
2319 # http://sourceware.org/autobook/autobook/autobook_91.html
2320 lt_current="1"
2321 lt_revision="0"
2322 lt_age="1"
2323 LTLDFLAGS="-version-info ${lt_current}:${lt_revision}:${lt_age}"
2324
2325 am__api_version='1.11'
2326
2327 ac_aux_dir=
2328 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2329   if test -f "$ac_dir/install-sh"; then
2330     ac_aux_dir=$ac_dir
2331     ac_install_sh="$ac_aux_dir/install-sh -c"
2332     break
2333   elif test -f "$ac_dir/install.sh"; then
2334     ac_aux_dir=$ac_dir
2335     ac_install_sh="$ac_aux_dir/install.sh -c"
2336     break
2337   elif test -f "$ac_dir/shtool"; then
2338     ac_aux_dir=$ac_dir
2339     ac_install_sh="$ac_aux_dir/shtool install -c"
2340     break
2341   fi
2342 done
2343 if test -z "$ac_aux_dir"; then
2344   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2345 fi
2346
2347 # These three variables are undocumented and unsupported,
2348 # and are intended to be withdrawn in a future Autoconf release.
2349 # They can cause serious problems if a builder's source tree is in a directory
2350 # whose full name contains unusual characters.
2351 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2352 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2353 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2354
2355
2356 # Find a good install program.  We prefer a C program (faster),
2357 # so one script is as good as another.  But avoid the broken or
2358 # incompatible versions:
2359 # SysV /etc/install, /usr/sbin/install
2360 # SunOS /usr/etc/install
2361 # IRIX /sbin/install
2362 # AIX /bin/install
2363 # AmigaOS /C/install, which installs bootblocks on floppy discs
2364 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2365 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2366 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2367 # OS/2's system install, which has a completely different semantic
2368 # ./install, which can be erroneously created by make from ./install.sh.
2369 # Reject install programs that cannot install multiple files.
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2371 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2372 if test -z "$INSTALL"; then
2373 if ${ac_cv_path_install+:} false; then :
2374   $as_echo_n "(cached) " >&6
2375 else
2376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 for as_dir in $PATH
2378 do
2379   IFS=$as_save_IFS
2380   test -z "$as_dir" && as_dir=.
2381     # Account for people who put trailing slashes in PATH elements.
2382 case $as_dir/ in #((
2383   ./ | .// | /[cC]/* | \
2384   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2385   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2386   /usr/ucb/* ) ;;
2387   *)
2388     # OSF1 and SCO ODT 3.0 have their own names for install.
2389     # Don't use installbsd from OSF since it installs stuff as root
2390     # by default.
2391     for ac_prog in ginstall scoinst install; do
2392       for ac_exec_ext in '' $ac_executable_extensions; do
2393         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2394           if test $ac_prog = install &&
2395             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2396             # AIX install.  It has an incompatible calling convention.
2397             :
2398           elif test $ac_prog = install &&
2399             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2400             # program-specific install script used by HP pwplus--don't use.
2401             :
2402           else
2403             rm -rf conftest.one conftest.two conftest.dir
2404             echo one > conftest.one
2405             echo two > conftest.two
2406             mkdir conftest.dir
2407             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2408               test -s conftest.one && test -s conftest.two &&
2409               test -s conftest.dir/conftest.one &&
2410               test -s conftest.dir/conftest.two
2411             then
2412               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2413               break 3
2414             fi
2415           fi
2416         fi
2417       done
2418     done
2419     ;;
2420 esac
2421
2422   done
2423 IFS=$as_save_IFS
2424
2425 rm -rf conftest.one conftest.two conftest.dir
2426
2427 fi
2428   if test "${ac_cv_path_install+set}" = set; then
2429     INSTALL=$ac_cv_path_install
2430   else
2431     # As a last resort, use the slow shell script.  Don't cache a
2432     # value for INSTALL within a source directory, because that will
2433     # break other packages using the cache if that directory is
2434     # removed, or if the value is a relative name.
2435     INSTALL=$ac_install_sh
2436   fi
2437 fi
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2439 $as_echo "$INSTALL" >&6; }
2440
2441 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2442 # It thinks the first close brace ends the variable substitution.
2443 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2444
2445 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2446
2447 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2448
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2450 $as_echo_n "checking whether build environment is sane... " >&6; }
2451 # Just in case
2452 sleep 1
2453 echo timestamp > conftest.file
2454 # Reject unsafe characters in $srcdir or the absolute working directory
2455 # name.  Accept space and tab only in the latter.
2456 am_lf='
2457 '
2458 case `pwd` in
2459   *[\\\"\#\$\&\'\`$am_lf]*)
2460     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2461 esac
2462 case $srcdir in
2463   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2464     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2465 esac
2466
2467 # Do `set' in a subshell so we don't clobber the current shell's
2468 # arguments.  Must try -L first in case configure is actually a
2469 # symlink; some systems play weird games with the mod time of symlinks
2470 # (eg FreeBSD returns the mod time of the symlink's containing
2471 # directory).
2472 if (
2473    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2474    if test "$*" = "X"; then
2475       # -L didn't work.
2476       set X `ls -t "$srcdir/configure" conftest.file`
2477    fi
2478    rm -f conftest.file
2479    if test "$*" != "X $srcdir/configure conftest.file" \
2480       && test "$*" != "X conftest.file $srcdir/configure"; then
2481
2482       # If neither matched, then we have a broken ls.  This can happen
2483       # if, for instance, CONFIG_SHELL is bash and it inherits a
2484       # broken ls alias from the environment.  This has actually
2485       # happened.  Such a system could not be considered "sane".
2486       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2487 alias in your environment" "$LINENO" 5
2488    fi
2489
2490    test "$2" = conftest.file
2491    )
2492 then
2493    # Ok.
2494    :
2495 else
2496    as_fn_error $? "newly created file is older than distributed files!
2497 Check your system clock" "$LINENO" 5
2498 fi
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2500 $as_echo "yes" >&6; }
2501 test "$program_prefix" != NONE &&
2502   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2503 # Use a double $ so make ignores it.
2504 test "$program_suffix" != NONE &&
2505   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2506 # Double any \ or $.
2507 # By default was `s,x,x', remove it if useless.
2508 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2509 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2510
2511 # expand $ac_aux_dir to an absolute path
2512 am_aux_dir=`cd $ac_aux_dir && pwd`
2513
2514 if test x"${MISSING+set}" != xset; then
2515   case $am_aux_dir in
2516   *\ * | *\     *)
2517     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2518   *)
2519     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2520   esac
2521 fi
2522 # Use eval to expand $SHELL
2523 if eval "$MISSING --run true"; then
2524   am_missing_run="$MISSING --run "
2525 else
2526   am_missing_run=
2527   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2528 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2529 fi
2530
2531 if test x"${install_sh}" != xset; then
2532   case $am_aux_dir in
2533   *\ * | *\     *)
2534     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2535   *)
2536     install_sh="\${SHELL} $am_aux_dir/install-sh"
2537   esac
2538 fi
2539
2540 # Installed binaries are usually stripped using `strip' when the user
2541 # run `make install-strip'.  However `strip' might not be the right
2542 # tool to use in cross-compilation environments, therefore Automake
2543 # will honor the `STRIP' environment variable to overrule this program.
2544 if test "$cross_compiling" != no; then
2545   if test -n "$ac_tool_prefix"; then
2546   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2547 set dummy ${ac_tool_prefix}strip; ac_word=$2
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2549 $as_echo_n "checking for $ac_word... " >&6; }
2550 if ${ac_cv_prog_STRIP+:} false; then :
2551   $as_echo_n "(cached) " >&6
2552 else
2553   if test -n "$STRIP"; then
2554   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2555 else
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 for as_dir in $PATH
2558 do
2559   IFS=$as_save_IFS
2560   test -z "$as_dir" && as_dir=.
2561     for ac_exec_ext in '' $ac_executable_extensions; do
2562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2563     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2565     break 2
2566   fi
2567 done
2568   done
2569 IFS=$as_save_IFS
2570
2571 fi
2572 fi
2573 STRIP=$ac_cv_prog_STRIP
2574 if test -n "$STRIP"; then
2575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2576 $as_echo "$STRIP" >&6; }
2577 else
2578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2579 $as_echo "no" >&6; }
2580 fi
2581
2582
2583 fi
2584 if test -z "$ac_cv_prog_STRIP"; then
2585   ac_ct_STRIP=$STRIP
2586   # Extract the first word of "strip", so it can be a program name with args.
2587 set dummy strip; ac_word=$2
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2589 $as_echo_n "checking for $ac_word... " >&6; }
2590 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2591   $as_echo_n "(cached) " >&6
2592 else
2593   if test -n "$ac_ct_STRIP"; then
2594   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2595 else
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH
2598 do
2599   IFS=$as_save_IFS
2600   test -z "$as_dir" && as_dir=.
2601     for ac_exec_ext in '' $ac_executable_extensions; do
2602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2603     ac_cv_prog_ac_ct_STRIP="strip"
2604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2605     break 2
2606   fi
2607 done
2608   done
2609 IFS=$as_save_IFS
2610
2611 fi
2612 fi
2613 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2614 if test -n "$ac_ct_STRIP"; then
2615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2616 $as_echo "$ac_ct_STRIP" >&6; }
2617 else
2618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2619 $as_echo "no" >&6; }
2620 fi
2621
2622   if test "x$ac_ct_STRIP" = x; then
2623     STRIP=":"
2624   else
2625     case $cross_compiling:$ac_tool_warned in
2626 yes:)
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2629 ac_tool_warned=yes ;;
2630 esac
2631     STRIP=$ac_ct_STRIP
2632   fi
2633 else
2634   STRIP="$ac_cv_prog_STRIP"
2635 fi
2636
2637 fi
2638 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2639
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2641 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2642 if test -z "$MKDIR_P"; then
2643   if ${ac_cv_path_mkdir+:} false; then :
2644   $as_echo_n "(cached) " >&6
2645 else
2646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2648 do
2649   IFS=$as_save_IFS
2650   test -z "$as_dir" && as_dir=.
2651     for ac_prog in mkdir gmkdir; do
2652          for ac_exec_ext in '' $ac_executable_extensions; do
2653            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2654            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2655              'mkdir (GNU coreutils) '* | \
2656              'mkdir (coreutils) '* | \
2657              'mkdir (fileutils) '4.1*)
2658                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2659                break 3;;
2660            esac
2661          done
2662        done
2663   done
2664 IFS=$as_save_IFS
2665
2666 fi
2667
2668   test -d ./--version && rmdir ./--version
2669   if test "${ac_cv_path_mkdir+set}" = set; then
2670     MKDIR_P="$ac_cv_path_mkdir -p"
2671   else
2672     # As a last resort, use the slow shell script.  Don't cache a
2673     # value for MKDIR_P within a source directory, because that will
2674     # break other packages using the cache if that directory is
2675     # removed, or if the value is a relative name.
2676     MKDIR_P="$ac_install_sh -d"
2677   fi
2678 fi
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2680 $as_echo "$MKDIR_P" >&6; }
2681
2682 mkdir_p="$MKDIR_P"
2683 case $mkdir_p in
2684   [\\/$]* | ?:[\\/]*) ;;
2685   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2686 esac
2687
2688 for ac_prog in gawk mawk nawk awk
2689 do
2690   # Extract the first word of "$ac_prog", so it can be a program name with args.
2691 set dummy $ac_prog; ac_word=$2
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if ${ac_cv_prog_AWK+:} false; then :
2695   $as_echo_n "(cached) " >&6
2696 else
2697   if test -n "$AWK"; then
2698   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2702 do
2703   IFS=$as_save_IFS
2704   test -z "$as_dir" && as_dir=.
2705     for ac_exec_ext in '' $ac_executable_extensions; do
2706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707     ac_cv_prog_AWK="$ac_prog"
2708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2709     break 2
2710   fi
2711 done
2712   done
2713 IFS=$as_save_IFS
2714
2715 fi
2716 fi
2717 AWK=$ac_cv_prog_AWK
2718 if test -n "$AWK"; then
2719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2720 $as_echo "$AWK" >&6; }
2721 else
2722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723 $as_echo "no" >&6; }
2724 fi
2725
2726
2727   test -n "$AWK" && break
2728 done
2729
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2731 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2732 set x ${MAKE-make}
2733 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2734 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2735   $as_echo_n "(cached) " >&6
2736 else
2737   cat >conftest.make <<\_ACEOF
2738 SHELL = /bin/sh
2739 all:
2740         @echo '@@@%%%=$(MAKE)=@@@%%%'
2741 _ACEOF
2742 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2743 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2744   *@@@%%%=?*=@@@%%%*)
2745     eval ac_cv_prog_make_${ac_make}_set=yes;;
2746   *)
2747     eval ac_cv_prog_make_${ac_make}_set=no;;
2748 esac
2749 rm -f conftest.make
2750 fi
2751 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2753 $as_echo "yes" >&6; }
2754   SET_MAKE=
2755 else
2756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2758   SET_MAKE="MAKE=${MAKE-make}"
2759 fi
2760
2761 rm -rf .tst 2>/dev/null
2762 mkdir .tst 2>/dev/null
2763 if test -d .tst; then
2764   am__leading_dot=.
2765 else
2766   am__leading_dot=_
2767 fi
2768 rmdir .tst 2>/dev/null
2769
2770 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2771   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2772   # is not polluted with repeated "-I."
2773   am__isrc=' -I$(srcdir)'
2774   # test to see if srcdir already configured
2775   if test -f $srcdir/config.status; then
2776     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2777   fi
2778 fi
2779
2780 # test whether we have cygpath
2781 if test -z "$CYGPATH_W"; then
2782   if (cygpath --version) >/dev/null 2>/dev/null; then
2783     CYGPATH_W='cygpath -w'
2784   else
2785     CYGPATH_W=echo
2786   fi
2787 fi
2788
2789
2790 # Define the identity of the package.
2791  PACKAGE='libusb'
2792  VERSION='1.0.9'
2793
2794
2795 cat >>confdefs.h <<_ACEOF
2796 #define PACKAGE "$PACKAGE"
2797 _ACEOF
2798
2799
2800 cat >>confdefs.h <<_ACEOF
2801 #define VERSION "$VERSION"
2802 _ACEOF
2803
2804 # Some tools Automake needs.
2805
2806 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2807
2808
2809 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2810
2811
2812 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2813
2814
2815 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2816
2817
2818 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2819
2820 # We need awk for the "check" target.  The system "awk" is bad on
2821 # some platforms.
2822 # Always define AMTAR for backward compatibility.
2823
2824 AMTAR=${AMTAR-"${am_missing_run}tar"}
2825
2826 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2827
2828
2829
2830
2831
2832
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2834 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2835     # Check whether --enable-maintainer-mode was given.
2836 if test "${enable_maintainer_mode+set}" = set; then :
2837   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2838 else
2839   USE_MAINTAINER_MODE=no
2840 fi
2841
2842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2843 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2844    if test $USE_MAINTAINER_MODE = yes; then
2845   MAINTAINER_MODE_TRUE=
2846   MAINTAINER_MODE_FALSE='#'
2847 else
2848   MAINTAINER_MODE_TRUE='#'
2849   MAINTAINER_MODE_FALSE=
2850 fi
2851
2852   MAINT=$MAINTAINER_MODE_TRUE
2853
2854
2855
2856
2857
2858 ac_config_headers="$ac_config_headers config.h"
2859
2860 # Check whether --enable-silent-rules was given.
2861 if test "${enable_silent_rules+set}" = set; then :
2862   enableval=$enable_silent_rules;
2863 fi
2864
2865 case $enable_silent_rules in
2866 yes) AM_DEFAULT_VERBOSITY=0;;
2867 no)  AM_DEFAULT_VERBOSITY=1;;
2868 *)   AM_DEFAULT_VERBOSITY=0;;
2869 esac
2870 AM_BACKSLASH='\'
2871
2872
2873
2874 ac_ext=c
2875 ac_cpp='$CPP $CPPFLAGS'
2876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2879 if test -n "$ac_tool_prefix"; then
2880   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2881 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if ${ac_cv_prog_CC+:} false; then :
2885   $as_echo_n "(cached) " >&6
2886 else
2887   if test -n "$CC"; then
2888   ac_cv_prog_CC="$CC" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893   IFS=$as_save_IFS
2894   test -z "$as_dir" && as_dir=.
2895     for ac_exec_ext in '' $ac_executable_extensions; do
2896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899     break 2
2900   fi
2901 done
2902   done
2903 IFS=$as_save_IFS
2904
2905 fi
2906 fi
2907 CC=$ac_cv_prog_CC
2908 if test -n "$CC"; then
2909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2910 $as_echo "$CC" >&6; }
2911 else
2912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2914 fi
2915
2916
2917 fi
2918 if test -z "$ac_cv_prog_CC"; then
2919   ac_ct_CC=$CC
2920   # Extract the first word of "gcc", so it can be a program name with args.
2921 set dummy gcc; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2925   $as_echo_n "(cached) " >&6
2926 else
2927   if test -n "$ac_ct_CC"; then
2928   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933   IFS=$as_save_IFS
2934   test -z "$as_dir" && as_dir=.
2935     for ac_exec_ext in '' $ac_executable_extensions; do
2936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937     ac_cv_prog_ac_ct_CC="gcc"
2938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939     break 2
2940   fi
2941 done
2942   done
2943 IFS=$as_save_IFS
2944
2945 fi
2946 fi
2947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2948 if test -n "$ac_ct_CC"; then
2949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2950 $as_echo "$ac_ct_CC" >&6; }
2951 else
2952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2954 fi
2955
2956   if test "x$ac_ct_CC" = x; then
2957     CC=""
2958   else
2959     case $cross_compiling:$ac_tool_warned in
2960 yes:)
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2963 ac_tool_warned=yes ;;
2964 esac
2965     CC=$ac_ct_CC
2966   fi
2967 else
2968   CC="$ac_cv_prog_CC"
2969 fi
2970
2971 if test -z "$CC"; then
2972           if test -n "$ac_tool_prefix"; then
2973     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2974 set dummy ${ac_tool_prefix}cc; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if ${ac_cv_prog_CC+:} false; then :
2978   $as_echo_n "(cached) " >&6
2979 else
2980   if test -n "$CC"; then
2981   ac_cv_prog_CC="$CC" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986   IFS=$as_save_IFS
2987   test -z "$as_dir" && as_dir=.
2988     for ac_exec_ext in '' $ac_executable_extensions; do
2989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990     ac_cv_prog_CC="${ac_tool_prefix}cc"
2991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992     break 2
2993   fi
2994 done
2995   done
2996 IFS=$as_save_IFS
2997
2998 fi
2999 fi
3000 CC=$ac_cv_prog_CC
3001 if test -n "$CC"; then
3002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3003 $as_echo "$CC" >&6; }
3004 else
3005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3007 fi
3008
3009
3010   fi
3011 fi
3012 if test -z "$CC"; then
3013   # Extract the first word of "cc", so it can be a program name with args.
3014 set dummy cc; ac_word=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if ${ac_cv_prog_CC+:} false; then :
3018   $as_echo_n "(cached) " >&6
3019 else
3020   if test -n "$CC"; then
3021   ac_cv_prog_CC="$CC" # Let the user override the test.
3022 else
3023   ac_prog_rejected=no
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3026 do
3027   IFS=$as_save_IFS
3028   test -z "$as_dir" && as_dir=.
3029     for ac_exec_ext in '' $ac_executable_extensions; do
3030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3031     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3032        ac_prog_rejected=yes
3033        continue
3034      fi
3035     ac_cv_prog_CC="cc"
3036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037     break 2
3038   fi
3039 done
3040   done
3041 IFS=$as_save_IFS
3042
3043 if test $ac_prog_rejected = yes; then
3044   # We found a bogon in the path, so make sure we never use it.
3045   set dummy $ac_cv_prog_CC
3046   shift
3047   if test $# != 0; then
3048     # We chose a different compiler from the bogus one.
3049     # However, it has the same basename, so the bogon will be chosen
3050     # first if we set CC to just the basename; use the full file name.
3051     shift
3052     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3053   fi
3054 fi
3055 fi
3056 fi
3057 CC=$ac_cv_prog_CC
3058 if test -n "$CC"; then
3059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3060 $as_echo "$CC" >&6; }
3061 else
3062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3064 fi
3065
3066
3067 fi
3068 if test -z "$CC"; then
3069   if test -n "$ac_tool_prefix"; then
3070   for ac_prog in cl.exe
3071   do
3072     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3073 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if ${ac_cv_prog_CC+:} false; then :
3077   $as_echo_n "(cached) " >&6
3078 else
3079   if test -n "$CC"; then
3080   ac_cv_prog_CC="$CC" # Let the user override the test.
3081 else
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3084 do
3085   IFS=$as_save_IFS
3086   test -z "$as_dir" && as_dir=.
3087     for ac_exec_ext in '' $ac_executable_extensions; do
3088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091     break 2
3092   fi
3093 done
3094   done
3095 IFS=$as_save_IFS
3096
3097 fi
3098 fi
3099 CC=$ac_cv_prog_CC
3100 if test -n "$CC"; then
3101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3102 $as_echo "$CC" >&6; }
3103 else
3104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3106 fi
3107
3108
3109     test -n "$CC" && break
3110   done
3111 fi
3112 if test -z "$CC"; then
3113   ac_ct_CC=$CC
3114   for ac_prog in cl.exe
3115 do
3116   # Extract the first word of "$ac_prog", so it can be a program name with args.
3117 set dummy $ac_prog; ac_word=$2
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119 $as_echo_n "checking for $ac_word... " >&6; }
3120 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3121   $as_echo_n "(cached) " >&6
3122 else
3123   if test -n "$ac_ct_CC"; then
3124   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3125 else
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3128 do
3129   IFS=$as_save_IFS
3130   test -z "$as_dir" && as_dir=.
3131     for ac_exec_ext in '' $ac_executable_extensions; do
3132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3133     ac_cv_prog_ac_ct_CC="$ac_prog"
3134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135     break 2
3136   fi
3137 done
3138   done
3139 IFS=$as_save_IFS
3140
3141 fi
3142 fi
3143 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3144 if test -n "$ac_ct_CC"; then
3145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3146 $as_echo "$ac_ct_CC" >&6; }
3147 else
3148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3150 fi
3151
3152
3153   test -n "$ac_ct_CC" && break
3154 done
3155
3156   if test "x$ac_ct_CC" = x; then
3157     CC=""
3158   else
3159     case $cross_compiling:$ac_tool_warned in
3160 yes:)
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3163 ac_tool_warned=yes ;;
3164 esac
3165     CC=$ac_ct_CC
3166   fi
3167 fi
3168
3169 fi
3170
3171
3172 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174 as_fn_error $? "no acceptable C compiler found in \$PATH
3175 See \`config.log' for more details" "$LINENO" 5; }
3176
3177 # Provide some information about the compiler.
3178 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3179 set X $ac_compile
3180 ac_compiler=$2
3181 for ac_option in --version -v -V -qversion; do
3182   { { ac_try="$ac_compiler $ac_option >&5"
3183 case "(($ac_try" in
3184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185   *) ac_try_echo=$ac_try;;
3186 esac
3187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3188 $as_echo "$ac_try_echo"; } >&5
3189   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3190   ac_status=$?
3191   if test -s conftest.err; then
3192     sed '10a\
3193 ... rest of stderr output deleted ...
3194          10q' conftest.err >conftest.er1
3195     cat conftest.er1 >&5
3196   fi
3197   rm -f conftest.er1 conftest.err
3198   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199   test $ac_status = 0; }
3200 done
3201
3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203 /* end confdefs.h.  */
3204
3205 int
3206 main ()
3207 {
3208
3209   ;
3210   return 0;
3211 }
3212 _ACEOF
3213 ac_clean_files_save=$ac_clean_files
3214 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3215 # Try to create an executable without -o first, disregard a.out.
3216 # It will help us diagnose broken compilers, and finding out an intuition
3217 # of exeext.
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3219 $as_echo_n "checking whether the C compiler works... " >&6; }
3220 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3221
3222 # The possible output files:
3223 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3224
3225 ac_rmfiles=
3226 for ac_file in $ac_files
3227 do
3228   case $ac_file in
3229     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3230     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3231   esac
3232 done
3233 rm -f $ac_rmfiles
3234
3235 if { { ac_try="$ac_link_default"
3236 case "(($ac_try" in
3237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238   *) ac_try_echo=$ac_try;;
3239 esac
3240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241 $as_echo "$ac_try_echo"; } >&5
3242   (eval "$ac_link_default") 2>&5
3243   ac_status=$?
3244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245   test $ac_status = 0; }; then :
3246   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3247 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3248 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3249 # so that the user can short-circuit this test for compilers unknown to
3250 # Autoconf.
3251 for ac_file in $ac_files ''
3252 do
3253   test -f "$ac_file" || continue
3254   case $ac_file in
3255     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3256         ;;
3257     [ab].out )
3258         # We found the default executable, but exeext='' is most
3259         # certainly right.
3260         break;;
3261     *.* )
3262         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3263         then :; else
3264            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3265         fi
3266         # We set ac_cv_exeext here because the later test for it is not
3267         # safe: cross compilers may not add the suffix if given an `-o'
3268         # argument, so we may need to know it at that point already.
3269         # Even if this section looks crufty: it has the advantage of
3270         # actually working.
3271         break;;
3272     * )
3273         break;;
3274   esac
3275 done
3276 test "$ac_cv_exeext" = no && ac_cv_exeext=
3277
3278 else
3279   ac_file=''
3280 fi
3281 if test -z "$ac_file"; then :
3282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 $as_echo "no" >&6; }
3284 $as_echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3286
3287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289 as_fn_error 77 "C compiler cannot create executables
3290 See \`config.log' for more details" "$LINENO" 5; }
3291 else
3292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3293 $as_echo "yes" >&6; }
3294 fi
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3296 $as_echo_n "checking for C compiler default output file name... " >&6; }
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3298 $as_echo "$ac_file" >&6; }
3299 ac_exeext=$ac_cv_exeext
3300
3301 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3302 ac_clean_files=$ac_clean_files_save
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3304 $as_echo_n "checking for suffix of executables... " >&6; }
3305 if { { ac_try="$ac_link"
3306 case "(($ac_try" in
3307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308   *) ac_try_echo=$ac_try;;
3309 esac
3310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3311 $as_echo "$ac_try_echo"; } >&5
3312   (eval "$ac_link") 2>&5
3313   ac_status=$?
3314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3315   test $ac_status = 0; }; then :
3316   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3317 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3318 # work properly (i.e., refer to `conftest.exe'), while it won't with
3319 # `rm'.
3320 for ac_file in conftest.exe conftest conftest.*; do
3321   test -f "$ac_file" || continue
3322   case $ac_file in
3323     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3324     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3325           break;;
3326     * ) break;;
3327   esac
3328 done
3329 else
3330   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3332 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3333 See \`config.log' for more details" "$LINENO" 5; }
3334 fi
3335 rm -f conftest conftest$ac_cv_exeext
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3337 $as_echo "$ac_cv_exeext" >&6; }
3338
3339 rm -f conftest.$ac_ext
3340 EXEEXT=$ac_cv_exeext
3341 ac_exeext=$EXEEXT
3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h.  */
3344 #include <stdio.h>
3345 int
3346 main ()
3347 {
3348 FILE *f = fopen ("conftest.out", "w");
3349  return ferror (f) || fclose (f) != 0;
3350
3351   ;
3352   return 0;
3353 }
3354 _ACEOF
3355 ac_clean_files="$ac_clean_files conftest.out"
3356 # Check that the compiler produces executables we can run.  If not, either
3357 # the compiler is broken, or we cross compile.
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3359 $as_echo_n "checking whether we are cross compiling... " >&6; }
3360 if test "$cross_compiling" != yes; then
3361   { { ac_try="$ac_link"
3362 case "(($ac_try" in
3363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364   *) ac_try_echo=$ac_try;;
3365 esac
3366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367 $as_echo "$ac_try_echo"; } >&5
3368   (eval "$ac_link") 2>&5
3369   ac_status=$?
3370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371   test $ac_status = 0; }
3372   if { ac_try='./conftest$ac_cv_exeext'
3373   { { case "(($ac_try" in
3374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375   *) ac_try_echo=$ac_try;;
3376 esac
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379   (eval "$ac_try") 2>&5
3380   ac_status=$?
3381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382   test $ac_status = 0; }; }; then
3383     cross_compiling=no
3384   else
3385     if test "$cross_compiling" = maybe; then
3386         cross_compiling=yes
3387     else
3388         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3390 as_fn_error $? "cannot run C compiled programs.
3391 If you meant to cross compile, use \`--host'.
3392 See \`config.log' for more details" "$LINENO" 5; }
3393     fi
3394   fi
3395 fi
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3397 $as_echo "$cross_compiling" >&6; }
3398
3399 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3400 ac_clean_files=$ac_clean_files_save
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3402 $as_echo_n "checking for suffix of object files... " >&6; }
3403 if ${ac_cv_objext+:} false; then :
3404   $as_echo_n "(cached) " >&6
3405 else
3406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407 /* end confdefs.h.  */
3408
3409 int
3410 main ()
3411 {
3412
3413   ;
3414   return 0;
3415 }
3416 _ACEOF
3417 rm -f conftest.o conftest.obj
3418 if { { ac_try="$ac_compile"
3419 case "(($ac_try" in
3420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421   *) ac_try_echo=$ac_try;;
3422 esac
3423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424 $as_echo "$ac_try_echo"; } >&5
3425   (eval "$ac_compile") 2>&5
3426   ac_status=$?
3427   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428   test $ac_status = 0; }; then :
3429   for ac_file in conftest.o conftest.obj conftest.*; do
3430   test -f "$ac_file" || continue;
3431   case $ac_file in
3432     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3433     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3434        break;;
3435   esac
3436 done
3437 else
3438   $as_echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3440
3441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3443 as_fn_error $? "cannot compute suffix of object files: cannot compile
3444 See \`config.log' for more details" "$LINENO" 5; }
3445 fi
3446 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3447 fi
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3449 $as_echo "$ac_cv_objext" >&6; }
3450 OBJEXT=$ac_cv_objext
3451 ac_objext=$OBJEXT
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3453 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3454 if ${ac_cv_c_compiler_gnu+:} false; then :
3455   $as_echo_n "(cached) " >&6
3456 else
3457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h.  */
3459
3460 int
3461 main ()
3462 {
3463 #ifndef __GNUC__
3464        choke me
3465 #endif
3466
3467   ;
3468   return 0;
3469 }
3470 _ACEOF
3471 if ac_fn_c_try_compile "$LINENO"; then :
3472   ac_compiler_gnu=yes
3473 else
3474   ac_compiler_gnu=no
3475 fi
3476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3478
3479 fi
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3481 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3482 if test $ac_compiler_gnu = yes; then
3483   GCC=yes
3484 else
3485   GCC=
3486 fi
3487 ac_test_CFLAGS=${CFLAGS+set}
3488 ac_save_CFLAGS=$CFLAGS
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3490 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3491 if ${ac_cv_prog_cc_g+:} false; then :
3492   $as_echo_n "(cached) " >&6
3493 else
3494   ac_save_c_werror_flag=$ac_c_werror_flag
3495    ac_c_werror_flag=yes
3496    ac_cv_prog_cc_g=no
3497    CFLAGS="-g"
3498    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h.  */
3500
3501 int
3502 main ()
3503 {
3504
3505   ;
3506   return 0;
3507 }
3508 _ACEOF
3509 if ac_fn_c_try_compile "$LINENO"; then :
3510   ac_cv_prog_cc_g=yes
3511 else
3512   CFLAGS=""
3513       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514 /* end confdefs.h.  */
3515
3516 int
3517 main ()
3518 {
3519
3520   ;
3521   return 0;
3522 }
3523 _ACEOF
3524 if ac_fn_c_try_compile "$LINENO"; then :
3525
3526 else
3527   ac_c_werror_flag=$ac_save_c_werror_flag
3528          CFLAGS="-g"
3529          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h.  */
3531
3532 int
3533 main ()
3534 {
3535
3536   ;
3537   return 0;
3538 }
3539 _ACEOF
3540 if ac_fn_c_try_compile "$LINENO"; then :
3541   ac_cv_prog_cc_g=yes
3542 fi
3543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544 fi
3545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546 fi
3547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548    ac_c_werror_flag=$ac_save_c_werror_flag
3549 fi
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3551 $as_echo "$ac_cv_prog_cc_g" >&6; }
3552 if test "$ac_test_CFLAGS" = set; then
3553   CFLAGS=$ac_save_CFLAGS
3554 elif test $ac_cv_prog_cc_g = yes; then
3555   if test "$GCC" = yes; then
3556     CFLAGS="-g -O2"
3557   else
3558     CFLAGS="-g"
3559   fi
3560 else
3561   if test "$GCC" = yes; then
3562     CFLAGS="-O2"
3563   else
3564     CFLAGS=
3565   fi
3566 fi
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3568 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3569 if ${ac_cv_prog_cc_c89+:} false; then :
3570   $as_echo_n "(cached) " >&6
3571 else
3572   ac_cv_prog_cc_c89=no
3573 ac_save_CC=$CC
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h.  */
3576 #include <stdarg.h>
3577 #include <stdio.h>
3578 #include <sys/types.h>
3579 #include <sys/stat.h>
3580 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3581 struct buf { int x; };
3582 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3583 static char *e (p, i)
3584      char **p;
3585      int i;
3586 {
3587   return p[i];
3588 }
3589 static char *f (char * (*g) (char **, int), char **p, ...)
3590 {
3591   char *s;
3592   va_list v;
3593   va_start (v,p);
3594   s = g (p, va_arg (v,int));
3595   va_end (v);
3596   return s;
3597 }
3598
3599 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3600    function prototypes and stuff, but not '\xHH' hex character constants.
3601    These don't provoke an error unfortunately, instead are silently treated
3602    as 'x'.  The following induces an error, until -std is added to get
3603    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3604    array size at least.  It's necessary to write '\x00'==0 to get something
3605    that's true only with -std.  */
3606 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3607
3608 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3609    inside strings and character constants.  */
3610 #define FOO(x) 'x'
3611 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3612
3613 int test (int i, double x);
3614 struct s1 {int (*f) (int a);};
3615 struct s2 {int (*f) (double a);};
3616 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3617 int argc;
3618 char **argv;
3619 int
3620 main ()
3621 {
3622 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3623   ;
3624   return 0;
3625 }
3626 _ACEOF
3627 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3628         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3629 do
3630   CC="$ac_save_CC $ac_arg"
3631   if ac_fn_c_try_compile "$LINENO"; then :
3632   ac_cv_prog_cc_c89=$ac_arg
3633 fi
3634 rm -f core conftest.err conftest.$ac_objext
3635   test "x$ac_cv_prog_cc_c89" != "xno" && break
3636 done
3637 rm -f conftest.$ac_ext
3638 CC=$ac_save_CC
3639
3640 fi
3641 # AC_CACHE_VAL
3642 case "x$ac_cv_prog_cc_c89" in
3643   x)
3644     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3645 $as_echo "none needed" >&6; } ;;
3646   xno)
3647     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3648 $as_echo "unsupported" >&6; } ;;
3649   *)
3650     CC="$CC $ac_cv_prog_cc_c89"
3651     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3652 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3653 esac
3654 if test "x$ac_cv_prog_cc_c89" != xno; then :
3655
3656 fi
3657
3658 ac_ext=c
3659 ac_cpp='$CPP $CPPFLAGS'
3660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663 DEPDIR="${am__leading_dot}deps"
3664
3665 ac_config_commands="$ac_config_commands depfiles"
3666
3667
3668 am_make=${MAKE-make}
3669 cat > confinc << 'END'
3670 am__doit:
3671         @echo this is the am__doit target
3672 .PHONY: am__doit
3673 END
3674 # If we don't find an include directive, just comment out the code.
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3676 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3677 am__include="#"
3678 am__quote=
3679 _am_result=none
3680 # First try GNU make style include.
3681 echo "include confinc" > confmf
3682 # Ignore all kinds of additional output from `make'.
3683 case `$am_make -s -f confmf 2> /dev/null` in #(
3684 *the\ am__doit\ target*)
3685   am__include=include
3686   am__quote=
3687   _am_result=GNU
3688   ;;
3689 esac
3690 # Now try BSD make style include.
3691 if test "$am__include" = "#"; then
3692    echo '.include "confinc"' > confmf
3693    case `$am_make -s -f confmf 2> /dev/null` in #(
3694    *the\ am__doit\ target*)
3695      am__include=.include
3696      am__quote="\""
3697      _am_result=BSD
3698      ;;
3699    esac
3700 fi
3701
3702
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3704 $as_echo "$_am_result" >&6; }
3705 rm -f confinc confmf
3706
3707 # Check whether --enable-dependency-tracking was given.
3708 if test "${enable_dependency_tracking+set}" = set; then :
3709   enableval=$enable_dependency_tracking;
3710 fi
3711
3712 if test "x$enable_dependency_tracking" != xno; then
3713   am_depcomp="$ac_aux_dir/depcomp"
3714   AMDEPBACKSLASH='\'
3715 fi
3716  if test "x$enable_dependency_tracking" != xno; then
3717   AMDEP_TRUE=
3718   AMDEP_FALSE='#'
3719 else
3720   AMDEP_TRUE='#'
3721   AMDEP_FALSE=
3722 fi
3723
3724
3725
3726 depcc="$CC"   am_compiler_list=
3727
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3729 $as_echo_n "checking dependency style of $depcc... " >&6; }
3730 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3731   $as_echo_n "(cached) " >&6
3732 else
3733   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3734   # We make a subdir and do the tests there.  Otherwise we can end up
3735   # making bogus files that we don't know about and never remove.  For
3736   # instance it was reported that on HP-UX the gcc test will end up
3737   # making a dummy file named `D' -- because `-MD' means `put the output
3738   # in D'.
3739   mkdir conftest.dir
3740   # Copy depcomp to subdir because otherwise we won't find it if we're
3741   # using a relative directory.
3742   cp "$am_depcomp" conftest.dir
3743   cd conftest.dir
3744   # We will build objects and dependencies in a subdirectory because
3745   # it helps to detect inapplicable dependency modes.  For instance
3746   # both Tru64's cc and ICC support -MD to output dependencies as a
3747   # side effect of compilation, but ICC will put the dependencies in
3748   # the current directory while Tru64 will put them in the object
3749   # directory.
3750   mkdir sub
3751
3752   am_cv_CC_dependencies_compiler_type=none
3753   if test "$am_compiler_list" = ""; then
3754      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3755   fi
3756   am__universal=false
3757   case " $depcc " in #(
3758      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3759      esac
3760
3761   for depmode in $am_compiler_list; do
3762     # Setup a source with many dependencies, because some compilers
3763     # like to wrap large dependency lists on column 80 (with \), and
3764     # we should not choose a depcomp mode which is confused by this.
3765     #
3766     # We need to recreate these files for each test, as the compiler may
3767     # overwrite some of them when testing with obscure command lines.
3768     # This happens at least with the AIX C compiler.
3769     : > sub/conftest.c
3770     for i in 1 2 3 4 5 6; do
3771       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3772       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3773       # Solaris 8's {/usr,}/bin/sh.
3774       touch sub/conftst$i.h
3775     done
3776     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3777
3778     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3779     # mode.  It turns out that the SunPro C++ compiler does not properly
3780     # handle `-M -o', and we need to detect this.  Also, some Intel
3781     # versions had trouble with output in subdirs
3782     am__obj=sub/conftest.${OBJEXT-o}
3783     am__minus_obj="-o $am__obj"
3784     case $depmode in
3785     gcc)
3786       # This depmode causes a compiler race in universal mode.
3787       test "$am__universal" = false || continue
3788       ;;
3789     nosideeffect)
3790       # after this tag, mechanisms are not by side-effect, so they'll
3791       # only be used when explicitly requested
3792       if test "x$enable_dependency_tracking" = xyes; then
3793         continue
3794       else
3795         break
3796       fi
3797       ;;
3798     msvisualcpp | msvcmsys)
3799       # This compiler won't grok `-c -o', but also, the minuso test has
3800       # not run yet.  These depmodes are late enough in the game, and
3801       # so weak that their functioning should not be impacted.
3802       am__obj=conftest.${OBJEXT-o}
3803       am__minus_obj=
3804       ;;
3805     none) break ;;
3806     esac
3807     if depmode=$depmode \
3808        source=sub/conftest.c object=$am__obj \
3809        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3810        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3811          >/dev/null 2>conftest.err &&
3812        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3813        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3814        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3815        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3816       # icc doesn't choke on unknown options, it will just issue warnings
3817       # or remarks (even with -Werror).  So we grep stderr for any message
3818       # that says an option was ignored or not supported.
3819       # When given -MP, icc 7.0 and 7.1 complain thusly:
3820       #   icc: Command line warning: ignoring option '-M'; no argument required
3821       # The diagnosis changed in icc 8.0:
3822       #   icc: Command line remark: option '-MP' not supported
3823       if (grep 'ignoring option' conftest.err ||
3824           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3825         am_cv_CC_dependencies_compiler_type=$depmode
3826         break
3827       fi
3828     fi
3829   done
3830
3831   cd ..
3832   rm -rf conftest.dir
3833 else
3834   am_cv_CC_dependencies_compiler_type=none
3835 fi
3836
3837 fi
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3839 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3840 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3841
3842  if
3843   test "x$enable_dependency_tracking" != xno \
3844   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3845   am__fastdepCC_TRUE=
3846   am__fastdepCC_FALSE='#'
3847 else
3848   am__fastdepCC_TRUE='#'
3849   am__fastdepCC_FALSE=
3850 fi
3851
3852
3853 case `pwd` in
3854   *\ * | *\     *)
3855     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3856 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3857 esac
3858
3859
3860
3861 macro_version='2.2.10'
3862 macro_revision='1.3175'
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876 ltmain="$ac_aux_dir/ltmain.sh"
3877
3878 # Make sure we can run config.sub.
3879 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3880   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3881
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3883 $as_echo_n "checking build system type... " >&6; }
3884 if ${ac_cv_build+:} false; then :
3885   $as_echo_n "(cached) " >&6
3886 else
3887   ac_build_alias=$build_alias
3888 test "x$ac_build_alias" = x &&
3889   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3890 test "x$ac_build_alias" = x &&
3891   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3892 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3893   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3894
3895 fi
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3897 $as_echo "$ac_cv_build" >&6; }
3898 case $ac_cv_build in
3899 *-*-*) ;;
3900 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3901 esac
3902 build=$ac_cv_build
3903 ac_save_IFS=$IFS; IFS='-'
3904 set x $ac_cv_build
3905 shift
3906 build_cpu=$1
3907 build_vendor=$2
3908 shift; shift
3909 # Remember, the first character of IFS is used to create $*,
3910 # except with old shells:
3911 build_os=$*
3912 IFS=$ac_save_IFS
3913 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3914
3915
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3917 $as_echo_n "checking host system type... " >&6; }
3918 if ${ac_cv_host+:} false; then :
3919   $as_echo_n "(cached) " >&6
3920 else
3921   if test "x$host_alias" = x; then
3922   ac_cv_host=$ac_cv_build
3923 else
3924   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3925     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3926 fi
3927
3928 fi
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3930 $as_echo "$ac_cv_host" >&6; }
3931 case $ac_cv_host in
3932 *-*-*) ;;
3933 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3934 esac
3935 host=$ac_cv_host
3936 ac_save_IFS=$IFS; IFS='-'
3937 set x $ac_cv_host
3938 shift
3939 host_cpu=$1
3940 host_vendor=$2
3941 shift; shift
3942 # Remember, the first character of IFS is used to create $*,
3943 # except with old shells:
3944 host_os=$*
3945 IFS=$ac_save_IFS
3946 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3947
3948
3949 # Backslashify metacharacters that are still active within
3950 # double-quoted strings.
3951 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3952
3953 # Same as above, but do not quote variable references.
3954 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3955
3956 # Sed substitution to delay expansion of an escaped shell variable in a
3957 # double_quote_subst'ed string.
3958 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3959
3960 # Sed substitution to delay expansion of an escaped single quote.
3961 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3962
3963 # Sed substitution to avoid accidental globbing in evaled expressions
3964 no_glob_subst='s/\*/\\\*/g'
3965
3966 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3967 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3968 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3969
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3971 $as_echo_n "checking how to print strings... " >&6; }
3972 # Test print first, because it will be a builtin if present.
3973 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3974    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3975   ECHO='print -r --'
3976 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3977   ECHO='printf %s\n'
3978 else
3979   # Use this function as a fallback that always works.
3980   func_fallback_echo ()
3981   {
3982     eval 'cat <<_LTECHO_EOF
3983 $1
3984 _LTECHO_EOF'
3985   }
3986   ECHO='func_fallback_echo'
3987 fi
3988
3989 # func_echo_all arg...
3990 # Invoke $ECHO with all args, space-separated.
3991 func_echo_all ()
3992 {
3993     $ECHO ""
3994 }
3995
3996 case "$ECHO" in
3997   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3998 $as_echo "printf" >&6; } ;;
3999   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4000 $as_echo "print -r" >&6; } ;;
4001   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4002 $as_echo "cat" >&6; } ;;
4003 esac
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4019 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4020 if ${ac_cv_path_SED+:} false; then :
4021   $as_echo_n "(cached) " >&6
4022 else
4023             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4024      for ac_i in 1 2 3 4 5 6 7; do
4025        ac_script="$ac_script$as_nl$ac_script"
4026      done
4027      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4028      { ac_script=; unset ac_script;}
4029      if test -z "$SED"; then
4030   ac_path_SED_found=false
4031   # Loop through the user's path and test for each of PROGNAME-LIST
4032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH
4034 do
4035   IFS=$as_save_IFS
4036   test -z "$as_dir" && as_dir=.
4037     for ac_prog in sed gsed; do
4038     for ac_exec_ext in '' $ac_executable_extensions; do
4039       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4040       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4041 # Check for GNU ac_path_SED and select it if it is found.
4042   # Check for GNU $ac_path_SED
4043 case `"$ac_path_SED" --version 2>&1` in
4044 *GNU*)
4045   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4046 *)
4047   ac_count=0
4048   $as_echo_n 0123456789 >"conftest.in"
4049   while :
4050   do
4051     cat "conftest.in" "conftest.in" >"conftest.tmp"
4052     mv "conftest.tmp" "conftest.in"
4053     cp "conftest.in" "conftest.nl"
4054     $as_echo '' >> "conftest.nl"
4055     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4056     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4057     as_fn_arith $ac_count + 1 && ac_count=$as_val
4058     if test $ac_count -gt ${ac_path_SED_max-0}; then
4059       # Best one so far, save it but keep looking for a better one
4060       ac_cv_path_SED="$ac_path_SED"
4061       ac_path_SED_max=$ac_count
4062     fi
4063     # 10*(2^10) chars as input seems more than enough
4064     test $ac_count -gt 10 && break
4065   done
4066   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4067 esac
4068
4069       $ac_path_SED_found && break 3
4070     done
4071   done
4072   done
4073 IFS=$as_save_IFS
4074   if test -z "$ac_cv_path_SED"; then
4075     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4076   fi
4077 else
4078   ac_cv_path_SED=$SED
4079 fi
4080
4081 fi
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4083 $as_echo "$ac_cv_path_SED" >&6; }
4084  SED="$ac_cv_path_SED"
4085   rm -f conftest.sed
4086
4087 test -z "$SED" && SED=sed
4088 Xsed="$SED -e 1s/^X//"
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4101 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4102 if ${ac_cv_path_GREP+:} false; then :
4103   $as_echo_n "(cached) " >&6
4104 else
4105   if test -z "$GREP"; then
4106   ac_path_GREP_found=false
4107   # Loop through the user's path and test for each of PROGNAME-LIST
4108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4110 do
4111   IFS=$as_save_IFS
4112   test -z "$as_dir" && as_dir=.
4113     for ac_prog in grep ggrep; do
4114     for ac_exec_ext in '' $ac_executable_extensions; do
4115       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4116       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4117 # Check for GNU ac_path_GREP and select it if it is found.
4118   # Check for GNU $ac_path_GREP
4119 case `"$ac_path_GREP" --version 2>&1` in
4120 *GNU*)
4121   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4122 *)
4123   ac_count=0
4124   $as_echo_n 0123456789 >"conftest.in"
4125   while :
4126   do
4127     cat "conftest.in" "conftest.in" >"conftest.tmp"
4128     mv "conftest.tmp" "conftest.in"
4129     cp "conftest.in" "conftest.nl"
4130     $as_echo 'GREP' >> "conftest.nl"
4131     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4132     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4133     as_fn_arith $ac_count + 1 && ac_count=$as_val
4134     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4135       # Best one so far, save it but keep looking for a better one
4136       ac_cv_path_GREP="$ac_path_GREP"
4137       ac_path_GREP_max=$ac_count
4138     fi
4139     # 10*(2^10) chars as input seems more than enough
4140     test $ac_count -gt 10 && break
4141   done
4142   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4143 esac
4144
4145       $ac_path_GREP_found && break 3
4146     done
4147   done
4148   done
4149 IFS=$as_save_IFS
4150   if test -z "$ac_cv_path_GREP"; then
4151     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4152   fi
4153 else
4154   ac_cv_path_GREP=$GREP
4155 fi
4156
4157 fi
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4159 $as_echo "$ac_cv_path_GREP" >&6; }
4160  GREP="$ac_cv_path_GREP"
4161
4162
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4164 $as_echo_n "checking for egrep... " >&6; }
4165 if ${ac_cv_path_EGREP+:} false; then :
4166   $as_echo_n "(cached) " >&6
4167 else
4168   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4169    then ac_cv_path_EGREP="$GREP -E"
4170    else
4171      if test -z "$EGREP"; then
4172   ac_path_EGREP_found=false
4173   # Loop through the user's path and test for each of PROGNAME-LIST
4174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4176 do
4177   IFS=$as_save_IFS
4178   test -z "$as_dir" && as_dir=.
4179     for ac_prog in egrep; do
4180     for ac_exec_ext in '' $ac_executable_extensions; do
4181       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4182       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4183 # Check for GNU ac_path_EGREP and select it if it is found.
4184   # Check for GNU $ac_path_EGREP
4185 case `"$ac_path_EGREP" --version 2>&1` in
4186 *GNU*)
4187   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4188 *)
4189   ac_count=0
4190   $as_echo_n 0123456789 >"conftest.in"
4191   while :
4192   do
4193     cat "conftest.in" "conftest.in" >"conftest.tmp"
4194     mv "conftest.tmp" "conftest.in"
4195     cp "conftest.in" "conftest.nl"
4196     $as_echo 'EGREP' >> "conftest.nl"
4197     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4198     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4199     as_fn_arith $ac_count + 1 && ac_count=$as_val
4200     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4201       # Best one so far, save it but keep looking for a better one
4202       ac_cv_path_EGREP="$ac_path_EGREP"
4203       ac_path_EGREP_max=$ac_count
4204     fi
4205     # 10*(2^10) chars as input seems more than enough
4206     test $ac_count -gt 10 && break
4207   done
4208   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4209 esac
4210
4211       $ac_path_EGREP_found && break 3
4212     done
4213   done
4214   done
4215 IFS=$as_save_IFS
4216   if test -z "$ac_cv_path_EGREP"; then
4217     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4218   fi
4219 else
4220   ac_cv_path_EGREP=$EGREP
4221 fi
4222
4223    fi
4224 fi
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4226 $as_echo "$ac_cv_path_EGREP" >&6; }
4227  EGREP="$ac_cv_path_EGREP"
4228
4229
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4231 $as_echo_n "checking for fgrep... " >&6; }
4232 if ${ac_cv_path_FGREP+:} false; then :
4233   $as_echo_n "(cached) " >&6
4234 else
4235   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4236    then ac_cv_path_FGREP="$GREP -F"
4237    else
4238      if test -z "$FGREP"; then
4239   ac_path_FGREP_found=false
4240   # Loop through the user's path and test for each of PROGNAME-LIST
4241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4243 do
4244   IFS=$as_save_IFS
4245   test -z "$as_dir" && as_dir=.
4246     for ac_prog in fgrep; do
4247     for ac_exec_ext in '' $ac_executable_extensions; do
4248       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4249       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4250 # Check for GNU ac_path_FGREP and select it if it is found.
4251   # Check for GNU $ac_path_FGREP
4252 case `"$ac_path_FGREP" --version 2>&1` in
4253 *GNU*)
4254   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4255 *)
4256   ac_count=0
4257   $as_echo_n 0123456789 >"conftest.in"
4258   while :
4259   do
4260     cat "conftest.in" "conftest.in" >"conftest.tmp"
4261     mv "conftest.tmp" "conftest.in"
4262     cp "conftest.in" "conftest.nl"
4263     $as_echo 'FGREP' >> "conftest.nl"
4264     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4265     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4266     as_fn_arith $ac_count + 1 && ac_count=$as_val
4267     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4268       # Best one so far, save it but keep looking for a better one
4269       ac_cv_path_FGREP="$ac_path_FGREP"
4270       ac_path_FGREP_max=$ac_count
4271     fi
4272     # 10*(2^10) chars as input seems more than enough
4273     test $ac_count -gt 10 && break
4274   done
4275   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4276 esac
4277
4278       $ac_path_FGREP_found && break 3
4279     done
4280   done
4281   done
4282 IFS=$as_save_IFS
4283   if test -z "$ac_cv_path_FGREP"; then
4284     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4285   fi
4286 else
4287   ac_cv_path_FGREP=$FGREP
4288 fi
4289
4290    fi
4291 fi
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4293 $as_echo "$ac_cv_path_FGREP" >&6; }
4294  FGREP="$ac_cv_path_FGREP"
4295
4296
4297 test -z "$GREP" && GREP=grep
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317 # Check whether --with-gnu-ld was given.
4318 if test "${with_gnu_ld+set}" = set; then :
4319   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4320 else
4321   with_gnu_ld=no
4322 fi
4323
4324 ac_prog=ld
4325 if test "$GCC" = yes; then
4326   # Check if gcc -print-prog-name=ld gives a path.
4327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4328 $as_echo_n "checking for ld used by $CC... " >&6; }
4329   case $host in
4330   *-*-mingw*)
4331     # gcc leaves a trailing carriage return which upsets mingw
4332     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4333   *)
4334     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4335   esac
4336   case $ac_prog in
4337     # Accept absolute paths.
4338     [\\/]* | ?:[\\/]*)
4339       re_direlt='/[^/][^/]*/\.\./'
4340       # Canonicalize the pathname of ld
4341       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4342       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4343         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4344       done
4345       test -z "$LD" && LD="$ac_prog"
4346       ;;
4347   "")
4348     # If it fails, then pretend we aren't using GCC.
4349     ac_prog=ld
4350     ;;
4351   *)
4352     # If it is relative, then search for the first ld in PATH.
4353     with_gnu_ld=unknown
4354     ;;
4355   esac
4356 elif test "$with_gnu_ld" = yes; then
4357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4358 $as_echo_n "checking for GNU ld... " >&6; }
4359 else
4360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4361 $as_echo_n "checking for non-GNU ld... " >&6; }
4362 fi
4363 if ${lt_cv_path_LD+:} false; then :
4364   $as_echo_n "(cached) " >&6
4365 else
4366   if test -z "$LD"; then
4367   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4368   for ac_dir in $PATH; do
4369     IFS="$lt_save_ifs"
4370     test -z "$ac_dir" && ac_dir=.
4371     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4372       lt_cv_path_LD="$ac_dir/$ac_prog"
4373       # Check to see if the program is GNU ld.  I'd rather use --version,
4374       # but apparently some variants of GNU ld only accept -v.
4375       # Break only if it was the GNU/non-GNU ld that we prefer.
4376       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4377       *GNU* | *'with BFD'*)
4378         test "$with_gnu_ld" != no && break
4379         ;;
4380       *)
4381         test "$with_gnu_ld" != yes && break
4382         ;;
4383       esac
4384     fi
4385   done
4386   IFS="$lt_save_ifs"
4387 else
4388   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4389 fi
4390 fi
4391
4392 LD="$lt_cv_path_LD"
4393 if test -n "$LD"; then
4394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4395 $as_echo "$LD" >&6; }
4396 else
4397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398 $as_echo "no" >&6; }
4399 fi
4400 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4402 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4403 if ${lt_cv_prog_gnu_ld+:} false; then :
4404   $as_echo_n "(cached) " >&6
4405 else
4406   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4407 case `$LD -v 2>&1 </dev/null` in
4408 *GNU* | *'with BFD'*)
4409   lt_cv_prog_gnu_ld=yes
4410   ;;
4411 *)
4412   lt_cv_prog_gnu_ld=no
4413   ;;
4414 esac
4415 fi
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4417 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4418 with_gnu_ld=$lt_cv_prog_gnu_ld
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4429 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4430 if ${lt_cv_path_NM+:} false; then :
4431   $as_echo_n "(cached) " >&6
4432 else
4433   if test -n "$NM"; then
4434   # Let the user override the test.
4435   lt_cv_path_NM="$NM"
4436 else
4437   lt_nm_to_check="${ac_tool_prefix}nm"
4438   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4439     lt_nm_to_check="$lt_nm_to_check nm"
4440   fi
4441   for lt_tmp_nm in $lt_nm_to_check; do
4442     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4443     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4444       IFS="$lt_save_ifs"
4445       test -z "$ac_dir" && ac_dir=.
4446       tmp_nm="$ac_dir/$lt_tmp_nm"
4447       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4448         # Check to see if the nm accepts a BSD-compat flag.
4449         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4450         #   nm: unknown option "B" ignored
4451         # Tru64's nm complains that /dev/null is an invalid object file
4452         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4453         */dev/null* | *'Invalid file or object type'*)
4454           lt_cv_path_NM="$tmp_nm -B"
4455           break
4456           ;;
4457         *)
4458           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4459           */dev/null*)
4460             lt_cv_path_NM="$tmp_nm -p"
4461             break
4462             ;;
4463           *)
4464             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4465             continue # so that we can try to find one that supports BSD flags
4466             ;;
4467           esac
4468           ;;
4469         esac
4470       fi
4471     done
4472     IFS="$lt_save_ifs"
4473   done
4474   : ${lt_cv_path_NM=no}
4475 fi
4476 fi
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4478 $as_echo "$lt_cv_path_NM" >&6; }
4479 if test "$lt_cv_path_NM" != "no"; then
4480   NM="$lt_cv_path_NM"
4481 else
4482   # Didn't find any BSD compatible name lister, look for dumpbin.
4483   if test -n "$DUMPBIN"; then :
4484     # Let the user override the test.
4485   else
4486     if test -n "$ac_tool_prefix"; then
4487   for ac_prog in dumpbin "link -dump"
4488   do
4489     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4490 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4492 $as_echo_n "checking for $ac_word... " >&6; }
4493 if ${ac_cv_prog_DUMPBIN+:} false; then :
4494   $as_echo_n "(cached) " >&6
4495 else
4496   if test -n "$DUMPBIN"; then
4497   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4498 else
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 for as_dir in $PATH
4501 do
4502   IFS=$as_save_IFS
4503   test -z "$as_dir" && as_dir=.
4504     for ac_exec_ext in '' $ac_executable_extensions; do
4505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4506     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4508     break 2
4509   fi
4510 done
4511   done
4512 IFS=$as_save_IFS
4513
4514 fi
4515 fi
4516 DUMPBIN=$ac_cv_prog_DUMPBIN
4517 if test -n "$DUMPBIN"; then
4518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4519 $as_echo "$DUMPBIN" >&6; }
4520 else
4521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4522 $as_echo "no" >&6; }
4523 fi
4524
4525
4526     test -n "$DUMPBIN" && break
4527   done
4528 fi
4529 if test -z "$DUMPBIN"; then
4530   ac_ct_DUMPBIN=$DUMPBIN
4531   for ac_prog in dumpbin "link -dump"
4532 do
4533   # Extract the first word of "$ac_prog", so it can be a program name with args.
4534 set dummy $ac_prog; ac_word=$2
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4536 $as_echo_n "checking for $ac_word... " >&6; }
4537 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4538   $as_echo_n "(cached) " >&6
4539 else
4540   if test -n "$ac_ct_DUMPBIN"; then
4541   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4542 else
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 for as_dir in $PATH
4545 do
4546   IFS=$as_save_IFS
4547   test -z "$as_dir" && as_dir=.
4548     for ac_exec_ext in '' $ac_executable_extensions; do
4549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4550     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4552     break 2
4553   fi
4554 done
4555   done
4556 IFS=$as_save_IFS
4557
4558 fi
4559 fi
4560 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4561 if test -n "$ac_ct_DUMPBIN"; then
4562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4563 $as_echo "$ac_ct_DUMPBIN" >&6; }
4564 else
4565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4567 fi
4568
4569
4570   test -n "$ac_ct_DUMPBIN" && break
4571 done
4572
4573   if test "x$ac_ct_DUMPBIN" = x; then
4574     DUMPBIN=":"
4575   else
4576     case $cross_compiling:$ac_tool_warned in
4577 yes:)
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4580 ac_tool_warned=yes ;;
4581 esac
4582     DUMPBIN=$ac_ct_DUMPBIN
4583   fi
4584 fi
4585
4586     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4587     *COFF*)
4588       DUMPBIN="$DUMPBIN -symbols"
4589       ;;
4590     *)
4591       DUMPBIN=:
4592       ;;
4593     esac
4594   fi
4595
4596   if test "$DUMPBIN" != ":"; then
4597     NM="$DUMPBIN"
4598   fi
4599 fi
4600 test -z "$NM" && NM=nm
4601
4602
4603
4604
4605
4606
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4608 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4609 if ${lt_cv_nm_interface+:} false; then :
4610   $as_echo_n "(cached) " >&6
4611 else
4612   lt_cv_nm_interface="BSD nm"
4613   echo "int some_variable = 0;" > conftest.$ac_ext
4614   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4615   (eval "$ac_compile" 2>conftest.err)
4616   cat conftest.err >&5
4617   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4618   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4619   cat conftest.err >&5
4620   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4621   cat conftest.out >&5
4622   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4623     lt_cv_nm_interface="MS dumpbin"
4624   fi
4625   rm -f conftest*
4626 fi
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4628 $as_echo "$lt_cv_nm_interface" >&6; }
4629
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4631 $as_echo_n "checking whether ln -s works... " >&6; }
4632 LN_S=$as_ln_s
4633 if test "$LN_S" = "ln -s"; then
4634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4635 $as_echo "yes" >&6; }
4636 else
4637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4638 $as_echo "no, using $LN_S" >&6; }
4639 fi
4640
4641 # find the maximum length of command line arguments
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4643 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4644 if ${lt_cv_sys_max_cmd_len+:} false; then :
4645   $as_echo_n "(cached) " >&6
4646 else
4647     i=0
4648   teststring="ABCD"
4649
4650   case $build_os in
4651   msdosdjgpp*)
4652     # On DJGPP, this test can blow up pretty badly due to problems in libc
4653     # (any single argument exceeding 2000 bytes causes a buffer overrun
4654     # during glob expansion).  Even if it were fixed, the result of this
4655     # check would be larger than it should be.
4656     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4657     ;;
4658
4659   gnu*)
4660     # Under GNU Hurd, this test is not required because there is
4661     # no limit to the length of command line arguments.
4662     # Libtool will interpret -1 as no limit whatsoever
4663     lt_cv_sys_max_cmd_len=-1;
4664     ;;
4665
4666   cygwin* | mingw* | cegcc*)
4667     # On Win9x/ME, this test blows up -- it succeeds, but takes
4668     # about 5 minutes as the teststring grows exponentially.
4669     # Worse, since 9x/ME are not pre-emptively multitasking,
4670     # you end up with a "frozen" computer, even though with patience
4671     # the test eventually succeeds (with a max line length of 256k).
4672     # Instead, let's just punt: use the minimum linelength reported by
4673     # all of the supported platforms: 8192 (on NT/2K/XP).
4674     lt_cv_sys_max_cmd_len=8192;
4675     ;;
4676
4677   mint*)
4678     # On MiNT this can take a long time and run out of memory.
4679     lt_cv_sys_max_cmd_len=8192;
4680     ;;
4681
4682   amigaos*)
4683     # On AmigaOS with pdksh, this test takes hours, literally.
4684     # So we just punt and use a minimum line length of 8192.
4685     lt_cv_sys_max_cmd_len=8192;
4686     ;;
4687
4688   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4689     # This has been around since 386BSD, at least.  Likely further.
4690     if test -x /sbin/sysctl; then
4691       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4692     elif test -x /usr/sbin/sysctl; then
4693       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4694     else
4695       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4696     fi
4697     # And add a safety zone
4698     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4699     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4700     ;;
4701
4702   interix*)
4703     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4704     lt_cv_sys_max_cmd_len=196608
4705     ;;
4706
4707   osf*)
4708     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4709     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4710     # nice to cause kernel panics so lets avoid the loop below.
4711     # First set a reasonable default.
4712     lt_cv_sys_max_cmd_len=16384
4713     #
4714     if test -x /sbin/sysconfig; then
4715       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4716         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4717       esac
4718     fi
4719     ;;
4720   sco3.2v5*)
4721     lt_cv_sys_max_cmd_len=102400
4722     ;;
4723   sysv5* | sco5v6* | sysv4.2uw2*)
4724     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4725     if test -n "$kargmax"; then
4726       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4727     else
4728       lt_cv_sys_max_cmd_len=32768
4729     fi
4730     ;;
4731   *)
4732     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4733     if test -n "$lt_cv_sys_max_cmd_len"; then
4734       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4735       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4736     else
4737       # Make teststring a little bigger before we do anything with it.
4738       # a 1K string should be a reasonable start.
4739       for i in 1 2 3 4 5 6 7 8 ; do
4740         teststring=$teststring$teststring
4741       done
4742       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4743       # If test is not a shell built-in, we'll probably end up computing a
4744       # maximum length that is only half of the actual maximum length, but
4745       # we can't tell.
4746       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4747                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4748               test $i != 17 # 1/2 MB should be enough
4749       do
4750         i=`expr $i + 1`
4751         teststring=$teststring$teststring
4752       done
4753       # Only check the string length outside the loop.
4754       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4755       teststring=
4756       # Add a significant safety factor because C++ compilers can tack on
4757       # massive amounts of additional arguments before passing them to the
4758       # linker.  It appears as though 1/2 is a usable value.
4759       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4760     fi
4761     ;;
4762   esac
4763
4764 fi
4765
4766 if test -n $lt_cv_sys_max_cmd_len ; then
4767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4768 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4769 else
4770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4771 $as_echo "none" >&6; }
4772 fi
4773 max_cmd_len=$lt_cv_sys_max_cmd_len
4774
4775
4776
4777
4778
4779
4780 : ${CP="cp -f"}
4781 : ${MV="mv -f"}
4782 : ${RM="rm -f"}
4783
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4785 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4786 # Try some XSI features
4787 xsi_shell=no
4788 ( _lt_dummy="a/b/c"
4789   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4790       = c,a/b,, \
4791     && eval 'test $(( 1 + 1 )) -eq 2 \
4792     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4793   && xsi_shell=yes
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4795 $as_echo "$xsi_shell" >&6; }
4796
4797
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4799 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4800 lt_shell_append=no
4801 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4802     >/dev/null 2>&1 \
4803   && lt_shell_append=yes
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4805 $as_echo "$lt_shell_append" >&6; }
4806
4807
4808 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4809   lt_unset=unset
4810 else
4811   lt_unset=false
4812 fi
4813
4814
4815
4816
4817
4818 # test EBCDIC or ASCII
4819 case `echo X|tr X '\101'` in
4820  A) # ASCII based system
4821     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4822   lt_SP2NL='tr \040 \012'
4823   lt_NL2SP='tr \015\012 \040\040'
4824   ;;
4825  *) # EBCDIC based system
4826   lt_SP2NL='tr \100 \n'
4827   lt_NL2SP='tr \r\n \100\100'
4828   ;;
4829 esac
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4840 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4841 if ${lt_cv_ld_reload_flag+:} false; then :
4842   $as_echo_n "(cached) " >&6
4843 else
4844   lt_cv_ld_reload_flag='-r'
4845 fi
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4847 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4848 reload_flag=$lt_cv_ld_reload_flag
4849 case $reload_flag in
4850 "" | " "*) ;;
4851 *) reload_flag=" $reload_flag" ;;
4852 esac
4853 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4854 case $host_os in
4855   darwin*)
4856     if test "$GCC" = yes; then
4857       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4858     else
4859       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4860     fi
4861     ;;
4862 esac
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872 if test -n "$ac_tool_prefix"; then
4873   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4874 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4876 $as_echo_n "checking for $ac_word... " >&6; }
4877 if ${ac_cv_prog_OBJDUMP+:} false; then :
4878   $as_echo_n "(cached) " >&6
4879 else
4880   if test -n "$OBJDUMP"; then
4881   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4882 else
4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 for as_dir in $PATH
4885 do
4886   IFS=$as_save_IFS
4887   test -z "$as_dir" && as_dir=.
4888     for ac_exec_ext in '' $ac_executable_extensions; do
4889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4890     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4892     break 2
4893   fi
4894 done
4895   done
4896 IFS=$as_save_IFS
4897
4898 fi
4899 fi
4900 OBJDUMP=$ac_cv_prog_OBJDUMP
4901 if test -n "$OBJDUMP"; then
4902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4903 $as_echo "$OBJDUMP" >&6; }
4904 else
4905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906 $as_echo "no" >&6; }
4907 fi
4908
4909
4910 fi
4911 if test -z "$ac_cv_prog_OBJDUMP"; then
4912   ac_ct_OBJDUMP=$OBJDUMP
4913   # Extract the first word of "objdump", so it can be a program name with args.
4914 set dummy objdump; ac_word=$2
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4916 $as_echo_n "checking for $ac_word... " >&6; }
4917 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4918   $as_echo_n "(cached) " >&6
4919 else
4920   if test -n "$ac_ct_OBJDUMP"; then
4921   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4922 else
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH
4925 do
4926   IFS=$as_save_IFS
4927   test -z "$as_dir" && as_dir=.
4928     for ac_exec_ext in '' $ac_executable_extensions; do
4929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4930     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4932     break 2
4933   fi
4934 done
4935   done
4936 IFS=$as_save_IFS
4937
4938 fi
4939 fi
4940 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4941 if test -n "$ac_ct_OBJDUMP"; then
4942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4943 $as_echo "$ac_ct_OBJDUMP" >&6; }
4944 else
4945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946 $as_echo "no" >&6; }
4947 fi
4948
4949   if test "x$ac_ct_OBJDUMP" = x; then
4950     OBJDUMP="false"
4951   else
4952     case $cross_compiling:$ac_tool_warned in
4953 yes:)
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4956 ac_tool_warned=yes ;;
4957 esac
4958     OBJDUMP=$ac_ct_OBJDUMP
4959   fi
4960 else
4961   OBJDUMP="$ac_cv_prog_OBJDUMP"
4962 fi
4963
4964 test -z "$OBJDUMP" && OBJDUMP=objdump
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4975 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4976 if ${lt_cv_deplibs_check_method+:} false; then :
4977   $as_echo_n "(cached) " >&6
4978 else
4979   lt_cv_file_magic_cmd='$MAGIC_CMD'
4980 lt_cv_file_magic_test_file=
4981 lt_cv_deplibs_check_method='unknown'
4982 # Need to set the preceding variable on all platforms that support
4983 # interlibrary dependencies.
4984 # 'none' -- dependencies not supported.
4985 # `unknown' -- same as none, but documents that we really don't know.
4986 # 'pass_all' -- all dependencies passed with no checks.
4987 # 'test_compile' -- check by making test program.
4988 # 'file_magic [[regex]]' -- check by looking for files in library path
4989 # which responds to the $file_magic_cmd with a given extended regex.
4990 # If you have `file' or equivalent on your system and you're not sure
4991 # whether `pass_all' will *always* work, you probably want this one.
4992
4993 case $host_os in
4994 aix[4-9]*)
4995   lt_cv_deplibs_check_method=pass_all
4996   ;;
4997
4998 beos*)
4999   lt_cv_deplibs_check_method=pass_all
5000   ;;
5001
5002 bsdi[45]*)
5003   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5004   lt_cv_file_magic_cmd='/usr/bin/file -L'
5005   lt_cv_file_magic_test_file=/shlib/libc.so
5006   ;;
5007
5008 cygwin*)
5009   # func_win32_libid is a shell function defined in ltmain.sh
5010   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5011   lt_cv_file_magic_cmd='func_win32_libid'
5012   ;;
5013
5014 mingw* | pw32*)
5015   # Base MSYS/MinGW do not provide the 'file' command needed by
5016   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5017   # unless we find 'file', for example because we are cross-compiling.
5018   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5019   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5020     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5021     lt_cv_file_magic_cmd='func_win32_libid'
5022   else
5023     # Keep this pattern in sync with the one in func_win32_libid.
5024     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5025     lt_cv_file_magic_cmd='$OBJDUMP -f'
5026   fi
5027   ;;
5028
5029 cegcc*)
5030   # use the weaker test based on 'objdump'. See mingw*.
5031   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5032   lt_cv_file_magic_cmd='$OBJDUMP -f'
5033   ;;
5034
5035 darwin* | rhapsody*)
5036   lt_cv_deplibs_check_method=pass_all
5037   ;;
5038
5039 freebsd* | dragonfly*)
5040   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5041     case $host_cpu in
5042     i*86 )
5043       # Not sure whether the presence of OpenBSD here was a mistake.
5044       # Let's accept both of them until this is cleared up.
5045       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5046       lt_cv_file_magic_cmd=/usr/bin/file
5047       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5048       ;;
5049     esac
5050   else
5051     lt_cv_deplibs_check_method=pass_all
5052   fi
5053   ;;
5054
5055 gnu*)
5056   lt_cv_deplibs_check_method=pass_all
5057   ;;
5058
5059 haiku*)
5060   lt_cv_deplibs_check_method=pass_all
5061   ;;
5062
5063 hpux10.20* | hpux11*)
5064   lt_cv_file_magic_cmd=/usr/bin/file
5065   case $host_cpu in
5066   ia64*)
5067     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5068     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5069     ;;
5070   hppa*64*)
5071     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]'
5072     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5073     ;;
5074   *)
5075     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5076     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5077     ;;
5078   esac
5079   ;;
5080
5081 interix[3-9]*)
5082   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5083   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5084   ;;
5085
5086 irix5* | irix6* | nonstopux*)
5087   case $LD in
5088   *-32|*"-32 ") libmagic=32-bit;;
5089   *-n32|*"-n32 ") libmagic=N32;;
5090   *-64|*"-64 ") libmagic=64-bit;;
5091   *) libmagic=never-match;;
5092   esac
5093   lt_cv_deplibs_check_method=pass_all
5094   ;;
5095
5096 # This must be Linux ELF.
5097 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5098   lt_cv_deplibs_check_method=pass_all
5099   ;;
5100
5101 netbsd*)
5102   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5103     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5104   else
5105     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5106   fi
5107   ;;
5108
5109 newos6*)
5110   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5111   lt_cv_file_magic_cmd=/usr/bin/file
5112   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5113   ;;
5114
5115 *nto* | *qnx*)
5116   lt_cv_deplibs_check_method=pass_all
5117   ;;
5118
5119 openbsd*)
5120   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5121     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5122   else
5123     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5124   fi
5125   ;;
5126
5127 osf3* | osf4* | osf5*)
5128   lt_cv_deplibs_check_method=pass_all
5129   ;;
5130
5131 rdos*)
5132   lt_cv_deplibs_check_method=pass_all
5133   ;;
5134
5135 solaris*)
5136   lt_cv_deplibs_check_method=pass_all
5137   ;;
5138
5139 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5140   lt_cv_deplibs_check_method=pass_all
5141   ;;
5142
5143 sysv4 | sysv4.3*)
5144   case $host_vendor in
5145   motorola)
5146     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]'
5147     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5148     ;;
5149   ncr)
5150     lt_cv_deplibs_check_method=pass_all
5151     ;;
5152   sequent)
5153     lt_cv_file_magic_cmd='/bin/file'
5154     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5155     ;;
5156   sni)
5157     lt_cv_file_magic_cmd='/bin/file'
5158     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5159     lt_cv_file_magic_test_file=/lib/libc.so
5160     ;;
5161   siemens)
5162     lt_cv_deplibs_check_method=pass_all
5163     ;;
5164   pc)
5165     lt_cv_deplibs_check_method=pass_all
5166     ;;
5167   esac
5168   ;;
5169
5170 tpf*)
5171   lt_cv_deplibs_check_method=pass_all
5172   ;;
5173 esac
5174
5175 fi
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5177 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5178 file_magic_cmd=$lt_cv_file_magic_cmd
5179 deplibs_check_method=$lt_cv_deplibs_check_method
5180 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193 if test -n "$ac_tool_prefix"; then
5194   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5195 set dummy ${ac_tool_prefix}ar; ac_word=$2
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5197 $as_echo_n "checking for $ac_word... " >&6; }
5198 if ${ac_cv_prog_AR+:} false; then :
5199   $as_echo_n "(cached) " >&6
5200 else
5201   if test -n "$AR"; then
5202   ac_cv_prog_AR="$AR" # Let the user override the test.
5203 else
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH
5206 do
5207   IFS=$as_save_IFS
5208   test -z "$as_dir" && as_dir=.
5209     for ac_exec_ext in '' $ac_executable_extensions; do
5210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5211     ac_cv_prog_AR="${ac_tool_prefix}ar"
5212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213     break 2
5214   fi
5215 done
5216   done
5217 IFS=$as_save_IFS
5218
5219 fi
5220 fi
5221 AR=$ac_cv_prog_AR
5222 if test -n "$AR"; then
5223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5224 $as_echo "$AR" >&6; }
5225 else
5226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5228 fi
5229
5230
5231 fi
5232 if test -z "$ac_cv_prog_AR"; then
5233   ac_ct_AR=$AR
5234   # Extract the first word of "ar", so it can be a program name with args.
5235 set dummy ar; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5239   $as_echo_n "(cached) " >&6
5240 else
5241   if test -n "$ac_ct_AR"; then
5242   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5243 else
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5246 do
5247   IFS=$as_save_IFS
5248   test -z "$as_dir" && as_dir=.
5249     for ac_exec_ext in '' $ac_executable_extensions; do
5250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5251     ac_cv_prog_ac_ct_AR="ar"
5252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253     break 2
5254   fi
5255 done
5256   done
5257 IFS=$as_save_IFS
5258
5259 fi
5260 fi
5261 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5262 if test -n "$ac_ct_AR"; then
5263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5264 $as_echo "$ac_ct_AR" >&6; }
5265 else
5266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5268 fi
5269
5270   if test "x$ac_ct_AR" = x; then
5271     AR="false"
5272   else
5273     case $cross_compiling:$ac_tool_warned in
5274 yes:)
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5277 ac_tool_warned=yes ;;
5278 esac
5279     AR=$ac_ct_AR
5280   fi
5281 else
5282   AR="$ac_cv_prog_AR"
5283 fi
5284
5285 test -z "$AR" && AR=ar
5286 test -z "$AR_FLAGS" && AR_FLAGS=cru
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298 if test -n "$ac_tool_prefix"; then
5299   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5300 set dummy ${ac_tool_prefix}strip; ac_word=$2
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302 $as_echo_n "checking for $ac_word... " >&6; }
5303 if ${ac_cv_prog_STRIP+:} false; then :
5304   $as_echo_n "(cached) " >&6
5305 else
5306   if test -n "$STRIP"; then
5307   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5308 else
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH
5311 do
5312   IFS=$as_save_IFS
5313   test -z "$as_dir" && as_dir=.
5314     for ac_exec_ext in '' $ac_executable_extensions; do
5315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5316     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5318     break 2
5319   fi
5320 done
5321   done
5322 IFS=$as_save_IFS
5323
5324 fi
5325 fi
5326 STRIP=$ac_cv_prog_STRIP
5327 if test -n "$STRIP"; then
5328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5329 $as_echo "$STRIP" >&6; }
5330 else
5331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5333 fi
5334
5335
5336 fi
5337 if test -z "$ac_cv_prog_STRIP"; then
5338   ac_ct_STRIP=$STRIP
5339   # Extract the first word of "strip", so it can be a program name with args.
5340 set dummy strip; ac_word=$2
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5342 $as_echo_n "checking for $ac_word... " >&6; }
5343 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5344   $as_echo_n "(cached) " >&6
5345 else
5346   if test -n "$ac_ct_STRIP"; then
5347   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5348 else
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5351 do
5352   IFS=$as_save_IFS
5353   test -z "$as_dir" && as_dir=.
5354     for ac_exec_ext in '' $ac_executable_extensions; do
5355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5356     ac_cv_prog_ac_ct_STRIP="strip"
5357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5358     break 2
5359   fi
5360 done
5361   done
5362 IFS=$as_save_IFS
5363
5364 fi
5365 fi
5366 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5367 if test -n "$ac_ct_STRIP"; then
5368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5369 $as_echo "$ac_ct_STRIP" >&6; }
5370 else
5371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372 $as_echo "no" >&6; }
5373 fi
5374
5375   if test "x$ac_ct_STRIP" = x; then
5376     STRIP=":"
5377   else
5378     case $cross_compiling:$ac_tool_warned in
5379 yes:)
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5382 ac_tool_warned=yes ;;
5383 esac
5384     STRIP=$ac_ct_STRIP
5385   fi
5386 else
5387   STRIP="$ac_cv_prog_STRIP"
5388 fi
5389
5390 test -z "$STRIP" && STRIP=:
5391
5392
5393
5394
5395
5396
5397 if test -n "$ac_tool_prefix"; then
5398   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5399 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401 $as_echo_n "checking for $ac_word... " >&6; }
5402 if ${ac_cv_prog_RANLIB+:} false; then :
5403   $as_echo_n "(cached) " >&6
5404 else
5405   if test -n "$RANLIB"; then
5406   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5407 else
5408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409 for as_dir in $PATH
5410 do
5411   IFS=$as_save_IFS
5412   test -z "$as_dir" && as_dir=.
5413     for ac_exec_ext in '' $ac_executable_extensions; do
5414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5415     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5417     break 2
5418   fi
5419 done
5420   done
5421 IFS=$as_save_IFS
5422
5423 fi
5424 fi
5425 RANLIB=$ac_cv_prog_RANLIB
5426 if test -n "$RANLIB"; then
5427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5428 $as_echo "$RANLIB" >&6; }
5429 else
5430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431 $as_echo "no" >&6; }
5432 fi
5433
5434
5435 fi
5436 if test -z "$ac_cv_prog_RANLIB"; then
5437   ac_ct_RANLIB=$RANLIB
5438   # Extract the first word of "ranlib", so it can be a program name with args.
5439 set dummy ranlib; ac_word=$2
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441 $as_echo_n "checking for $ac_word... " >&6; }
5442 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5443   $as_echo_n "(cached) " >&6
5444 else
5445   if test -n "$ac_ct_RANLIB"; then
5446   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5447 else
5448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449 for as_dir in $PATH
5450 do
5451   IFS=$as_save_IFS
5452   test -z "$as_dir" && as_dir=.
5453     for ac_exec_ext in '' $ac_executable_extensions; do
5454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5455     ac_cv_prog_ac_ct_RANLIB="ranlib"
5456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5457     break 2
5458   fi
5459 done
5460   done
5461 IFS=$as_save_IFS
5462
5463 fi
5464 fi
5465 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5466 if test -n "$ac_ct_RANLIB"; then
5467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5468 $as_echo "$ac_ct_RANLIB" >&6; }
5469 else
5470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471 $as_echo "no" >&6; }
5472 fi
5473
5474   if test "x$ac_ct_RANLIB" = x; then
5475     RANLIB=":"
5476   else
5477     case $cross_compiling:$ac_tool_warned in
5478 yes:)
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5481 ac_tool_warned=yes ;;
5482 esac
5483     RANLIB=$ac_ct_RANLIB
5484   fi
5485 else
5486   RANLIB="$ac_cv_prog_RANLIB"
5487 fi
5488
5489 test -z "$RANLIB" && RANLIB=:
5490
5491
5492
5493
5494
5495
5496 # Determine commands to create old-style static archives.
5497 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5498 old_postinstall_cmds='chmod 644 $oldlib'
5499 old_postuninstall_cmds=
5500
5501 if test -n "$RANLIB"; then
5502   case $host_os in
5503   openbsd*)
5504     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5505     ;;
5506   *)
5507     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5508     ;;
5509   esac
5510   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5511 fi
5512
5513 case $host_os in
5514   darwin*)
5515     lock_old_archive_extraction=yes ;;
5516   *)
5517     lock_old_archive_extraction=no ;;
5518 esac
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558 # If no C compiler was specified, use CC.
5559 LTCC=${LTCC-"$CC"}
5560
5561 # If no C compiler flags were specified, use CFLAGS.
5562 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5563
5564 # Allow CC to be a program name with arguments.
5565 compiler=$CC
5566
5567
5568 # Check for command to grab the raw symbol name followed by C symbol from nm.
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5570 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5571 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5572   $as_echo_n "(cached) " >&6
5573 else
5574
5575 # These are sane defaults that work on at least a few old systems.
5576 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5577
5578 # Character class describing NM global symbol codes.
5579 symcode='[BCDEGRST]'
5580
5581 # Regexp to match symbols that can be accessed directly from C.
5582 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5583
5584 # Define system-specific variables.
5585 case $host_os in
5586 aix*)
5587   symcode='[BCDT]'
5588   ;;
5589 cygwin* | mingw* | pw32* | cegcc*)
5590   symcode='[ABCDGISTW]'
5591   ;;
5592 hpux*)
5593   if test "$host_cpu" = ia64; then
5594     symcode='[ABCDEGRST]'
5595   fi
5596   ;;
5597 irix* | nonstopux*)
5598   symcode='[BCDEGRST]'
5599   ;;
5600 osf*)
5601   symcode='[BCDEGQRST]'
5602   ;;
5603 solaris*)
5604   symcode='[BDRT]'
5605   ;;
5606 sco3.2v5*)
5607   symcode='[DT]'
5608   ;;
5609 sysv4.2uw2*)
5610   symcode='[DT]'
5611   ;;
5612 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5613   symcode='[ABDT]'
5614   ;;
5615 sysv4)
5616   symcode='[DFNSTU]'
5617   ;;
5618 esac
5619
5620 # If we're using GNU nm, then use its standard symbol codes.
5621 case `$NM -V 2>&1` in
5622 *GNU* | *'with BFD'*)
5623   symcode='[ABCDGIRSTW]' ;;
5624 esac
5625
5626 # Transform an extracted symbol line into a proper C declaration.
5627 # Some systems (esp. on ia64) link data and code symbols differently,
5628 # so use this general approach.
5629 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5630
5631 # Transform an extracted symbol line into symbol name and symbol address
5632 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5633 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'"
5634
5635 # Handle CRLF in mingw tool chain
5636 opt_cr=
5637 case $build_os in
5638 mingw*)
5639   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5640   ;;
5641 esac
5642
5643 # Try without a prefix underscore, then with it.
5644 for ac_symprfx in "" "_"; do
5645
5646   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5647   symxfrm="\\1 $ac_symprfx\\2 \\2"
5648
5649   # Write the raw and C identifiers.
5650   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5651     # Fake it for dumpbin and say T for any non-static function
5652     # and D for any global variable.
5653     # Also find C++ and __fastcall symbols from MSVC++,
5654     # which start with @ or ?.
5655     lt_cv_sys_global_symbol_pipe="$AWK '"\
5656 "     {last_section=section; section=\$ 3};"\
5657 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5658 "     \$ 0!~/External *\|/{next};"\
5659 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5660 "     {if(hide[section]) next};"\
5661 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5662 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5663 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5664 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5665 "     ' prfx=^$ac_symprfx"
5666   else
5667     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5668   fi
5669
5670   # Check to see that the pipe works correctly.
5671   pipe_works=no
5672
5673   rm -f conftest*
5674   cat > conftest.$ac_ext <<_LT_EOF
5675 #ifdef __cplusplus
5676 extern "C" {
5677 #endif
5678 char nm_test_var;
5679 void nm_test_func(void);
5680 void nm_test_func(void){}
5681 #ifdef __cplusplus
5682 }
5683 #endif
5684 int main(){nm_test_var='a';nm_test_func();return(0);}
5685 _LT_EOF
5686
5687   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5688   (eval $ac_compile) 2>&5
5689   ac_status=$?
5690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5691   test $ac_status = 0; }; then
5692     # Now try to grab the symbols.
5693     nlist=conftest.nm
5694     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5695   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5696   ac_status=$?
5697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5698   test $ac_status = 0; } && test -s "$nlist"; then
5699       # Try sorting and uniquifying the output.
5700       if sort "$nlist" | uniq > "$nlist"T; then
5701         mv -f "$nlist"T "$nlist"
5702       else
5703         rm -f "$nlist"T
5704       fi
5705
5706       # Make sure that we snagged all the symbols we need.
5707       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5708         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5709           cat <<_LT_EOF > conftest.$ac_ext
5710 #ifdef __cplusplus
5711 extern "C" {
5712 #endif
5713
5714 _LT_EOF
5715           # Now generate the symbol file.
5716           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5717
5718           cat <<_LT_EOF >> conftest.$ac_ext
5719
5720 /* The mapping between symbol names and symbols.  */
5721 const struct {
5722   const char *name;
5723   void       *address;
5724 }
5725 lt__PROGRAM__LTX_preloaded_symbols[] =
5726 {
5727   { "@PROGRAM@", (void *) 0 },
5728 _LT_EOF
5729           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5730           cat <<\_LT_EOF >> conftest.$ac_ext
5731   {0, (void *) 0}
5732 };
5733
5734 /* This works around a problem in FreeBSD linker */
5735 #ifdef FREEBSD_WORKAROUND
5736 static const void *lt_preloaded_setup() {
5737   return lt__PROGRAM__LTX_preloaded_symbols;
5738 }
5739 #endif
5740
5741 #ifdef __cplusplus
5742 }
5743 #endif
5744 _LT_EOF
5745           # Now try linking the two files.
5746           mv conftest.$ac_objext conftstm.$ac_objext
5747           lt_save_LIBS="$LIBS"
5748           lt_save_CFLAGS="$CFLAGS"
5749           LIBS="conftstm.$ac_objext"
5750           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5751           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5752   (eval $ac_link) 2>&5
5753   ac_status=$?
5754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5755   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5756             pipe_works=yes
5757           fi
5758           LIBS="$lt_save_LIBS"
5759           CFLAGS="$lt_save_CFLAGS"
5760         else
5761           echo "cannot find nm_test_func in $nlist" >&5
5762         fi
5763       else
5764         echo "cannot find nm_test_var in $nlist" >&5
5765       fi
5766     else
5767       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5768     fi
5769   else
5770     echo "$progname: failed program was:" >&5
5771     cat conftest.$ac_ext >&5
5772   fi
5773   rm -rf conftest* conftst*
5774
5775   # Do not use the global_symbol_pipe unless it works.
5776   if test "$pipe_works" = yes; then
5777     break
5778   else
5779     lt_cv_sys_global_symbol_pipe=
5780   fi
5781 done
5782
5783 fi
5784
5785 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5786   lt_cv_sys_global_symbol_to_cdecl=
5787 fi
5788 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5790 $as_echo "failed" >&6; }
5791 else
5792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5793 $as_echo "ok" >&6; }
5794 fi
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818 # Check whether --enable-libtool-lock was given.
5819 if test "${enable_libtool_lock+set}" = set; then :
5820   enableval=$enable_libtool_lock;
5821 fi
5822
5823 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5824
5825 # Some flags need to be propagated to the compiler or linker for good
5826 # libtool support.
5827 case $host in
5828 ia64-*-hpux*)
5829   # Find out which ABI we are using.
5830   echo 'int i;' > conftest.$ac_ext
5831   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5832   (eval $ac_compile) 2>&5
5833   ac_status=$?
5834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5835   test $ac_status = 0; }; then
5836     case `/usr/bin/file conftest.$ac_objext` in
5837       *ELF-32*)
5838         HPUX_IA64_MODE="32"
5839         ;;
5840       *ELF-64*)
5841         HPUX_IA64_MODE="64"
5842         ;;
5843     esac
5844   fi
5845   rm -rf conftest*
5846   ;;
5847 *-*-irix6*)
5848   # Find out which ABI we are using.
5849   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5850   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5851   (eval $ac_compile) 2>&5
5852   ac_status=$?
5853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5854   test $ac_status = 0; }; then
5855     if test "$lt_cv_prog_gnu_ld" = yes; then
5856       case `/usr/bin/file conftest.$ac_objext` in
5857         *32-bit*)
5858           LD="${LD-ld} -melf32bsmip"
5859           ;;
5860         *N32*)
5861           LD="${LD-ld} -melf32bmipn32"
5862           ;;
5863         *64-bit*)
5864           LD="${LD-ld} -melf64bmip"
5865         ;;
5866       esac
5867     else
5868       case `/usr/bin/file conftest.$ac_objext` in
5869         *32-bit*)
5870           LD="${LD-ld} -32"
5871           ;;
5872         *N32*)
5873           LD="${LD-ld} -n32"
5874           ;;
5875         *64-bit*)
5876           LD="${LD-ld} -64"
5877           ;;
5878       esac
5879     fi
5880   fi
5881   rm -rf conftest*
5882   ;;
5883
5884 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5885 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5886   # Find out which ABI we are using.
5887   echo 'int i;' > conftest.$ac_ext
5888   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5889   (eval $ac_compile) 2>&5
5890   ac_status=$?
5891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5892   test $ac_status = 0; }; then
5893     case `/usr/bin/file conftest.o` in
5894       *32-bit*)
5895         case $host in
5896           x86_64-*kfreebsd*-gnu)
5897             LD="${LD-ld} -m elf_i386_fbsd"
5898             ;;
5899           x86_64-*linux*)
5900             LD="${LD-ld} -m elf_i386"
5901             ;;
5902           ppc64-*linux*|powerpc64-*linux*)
5903             LD="${LD-ld} -m elf32ppclinux"
5904             ;;
5905           s390x-*linux*)
5906             LD="${LD-ld} -m elf_s390"
5907             ;;
5908           sparc64-*linux*)
5909             LD="${LD-ld} -m elf32_sparc"
5910             ;;
5911         esac
5912         ;;
5913       *64-bit*)
5914         case $host in
5915           x86_64-*kfreebsd*-gnu)
5916             LD="${LD-ld} -m elf_x86_64_fbsd"
5917             ;;
5918           x86_64-*linux*)
5919             LD="${LD-ld} -m elf_x86_64"
5920             ;;
5921           ppc*-*linux*|powerpc*-*linux*)
5922             LD="${LD-ld} -m elf64ppc"
5923             ;;
5924           s390*-*linux*|s390*-*tpf*)
5925             LD="${LD-ld} -m elf64_s390"
5926             ;;
5927           sparc*-*linux*)
5928             LD="${LD-ld} -m elf64_sparc"
5929             ;;
5930         esac
5931         ;;
5932     esac
5933   fi
5934   rm -rf conftest*
5935   ;;
5936
5937 *-*-sco3.2v5*)
5938   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5939   SAVE_CFLAGS="$CFLAGS"
5940   CFLAGS="$CFLAGS -belf"
5941   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5942 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5943 if ${lt_cv_cc_needs_belf+:} false; then :
5944   $as_echo_n "(cached) " >&6
5945 else
5946   ac_ext=c
5947 ac_cpp='$CPP $CPPFLAGS'
5948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5951
5952      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h.  */
5954
5955 int
5956 main ()
5957 {
5958
5959   ;
5960   return 0;
5961 }
5962 _ACEOF
5963 if ac_fn_c_try_link "$LINENO"; then :
5964   lt_cv_cc_needs_belf=yes
5965 else
5966   lt_cv_cc_needs_belf=no
5967 fi
5968 rm -f core conftest.err conftest.$ac_objext \
5969     conftest$ac_exeext conftest.$ac_ext
5970      ac_ext=c
5971 ac_cpp='$CPP $CPPFLAGS'
5972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5975
5976 fi
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5978 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5979   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5980     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5981     CFLAGS="$SAVE_CFLAGS"
5982   fi
5983   ;;
5984 sparc*-*solaris*)
5985   # Find out which ABI we are using.
5986   echo 'int i;' > conftest.$ac_ext
5987   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5988   (eval $ac_compile) 2>&5
5989   ac_status=$?
5990   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5991   test $ac_status = 0; }; then
5992     case `/usr/bin/file conftest.o` in
5993     *64-bit*)
5994       case $lt_cv_prog_gnu_ld in
5995       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5996       *)
5997         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5998           LD="${LD-ld} -64"
5999         fi
6000         ;;
6001       esac
6002       ;;
6003     esac
6004   fi
6005   rm -rf conftest*
6006   ;;
6007 esac
6008
6009 need_locks="$enable_libtool_lock"
6010
6011
6012   case $host_os in
6013     rhapsody* | darwin*)
6014     if test -n "$ac_tool_prefix"; then
6015   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6016 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6018 $as_echo_n "checking for $ac_word... " >&6; }
6019 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6020   $as_echo_n "(cached) " >&6
6021 else
6022   if test -n "$DSYMUTIL"; then
6023   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6024 else
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6027 do
6028   IFS=$as_save_IFS
6029   test -z "$as_dir" && as_dir=.
6030     for ac_exec_ext in '' $ac_executable_extensions; do
6031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6032     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6034     break 2
6035   fi
6036 done
6037   done
6038 IFS=$as_save_IFS
6039
6040 fi
6041 fi
6042 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6043 if test -n "$DSYMUTIL"; then
6044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6045 $as_echo "$DSYMUTIL" >&6; }
6046 else
6047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048 $as_echo "no" >&6; }
6049 fi
6050
6051
6052 fi
6053 if test -z "$ac_cv_prog_DSYMUTIL"; then
6054   ac_ct_DSYMUTIL=$DSYMUTIL
6055   # Extract the first word of "dsymutil", so it can be a program name with args.
6056 set dummy dsymutil; ac_word=$2
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6058 $as_echo_n "checking for $ac_word... " >&6; }
6059 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6060   $as_echo_n "(cached) " >&6
6061 else
6062   if test -n "$ac_ct_DSYMUTIL"; then
6063   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6064 else
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 for as_dir in $PATH
6067 do
6068   IFS=$as_save_IFS
6069   test -z "$as_dir" && as_dir=.
6070     for ac_exec_ext in '' $ac_executable_extensions; do
6071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074     break 2
6075   fi
6076 done
6077   done
6078 IFS=$as_save_IFS
6079
6080 fi
6081 fi
6082 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6083 if test -n "$ac_ct_DSYMUTIL"; then
6084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6085 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6086 else
6087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088 $as_echo "no" >&6; }
6089 fi
6090
6091   if test "x$ac_ct_DSYMUTIL" = x; then
6092     DSYMUTIL=":"
6093   else
6094     case $cross_compiling:$ac_tool_warned in
6095 yes:)
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6098 ac_tool_warned=yes ;;
6099 esac
6100     DSYMUTIL=$ac_ct_DSYMUTIL
6101   fi
6102 else
6103   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6104 fi
6105
6106     if test -n "$ac_tool_prefix"; then
6107   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6108 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110 $as_echo_n "checking for $ac_word... " >&6; }
6111 if ${ac_cv_prog_NMEDIT+:} false; then :
6112   $as_echo_n "(cached) " >&6
6113 else
6114   if test -n "$NMEDIT"; then
6115   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6116 else
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 for as_dir in $PATH
6119 do
6120   IFS=$as_save_IFS
6121   test -z "$as_dir" && as_dir=.
6122     for ac_exec_ext in '' $ac_executable_extensions; do
6123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6124     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6126     break 2
6127   fi
6128 done
6129   done
6130 IFS=$as_save_IFS
6131
6132 fi
6133 fi
6134 NMEDIT=$ac_cv_prog_NMEDIT
6135 if test -n "$NMEDIT"; then
6136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6137 $as_echo "$NMEDIT" >&6; }
6138 else
6139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140 $as_echo "no" >&6; }
6141 fi
6142
6143
6144 fi
6145 if test -z "$ac_cv_prog_NMEDIT"; then
6146   ac_ct_NMEDIT=$NMEDIT
6147   # Extract the first word of "nmedit", so it can be a program name with args.
6148 set dummy nmedit; ac_word=$2
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6150 $as_echo_n "checking for $ac_word... " >&6; }
6151 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6152   $as_echo_n "(cached) " >&6
6153 else
6154   if test -n "$ac_ct_NMEDIT"; then
6155   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6156 else
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6159 do
6160   IFS=$as_save_IFS
6161   test -z "$as_dir" && as_dir=.
6162     for ac_exec_ext in '' $ac_executable_extensions; do
6163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6164     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6166     break 2
6167   fi
6168 done
6169   done
6170 IFS=$as_save_IFS
6171
6172 fi
6173 fi
6174 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6175 if test -n "$ac_ct_NMEDIT"; then
6176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6177 $as_echo "$ac_ct_NMEDIT" >&6; }
6178 else
6179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180 $as_echo "no" >&6; }
6181 fi
6182
6183   if test "x$ac_ct_NMEDIT" = x; then
6184     NMEDIT=":"
6185   else
6186     case $cross_compiling:$ac_tool_warned in
6187 yes:)
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6190 ac_tool_warned=yes ;;
6191 esac
6192     NMEDIT=$ac_ct_NMEDIT
6193   fi
6194 else
6195   NMEDIT="$ac_cv_prog_NMEDIT"
6196 fi
6197
6198     if test -n "$ac_tool_prefix"; then
6199   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6200 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202 $as_echo_n "checking for $ac_word... " >&6; }
6203 if ${ac_cv_prog_LIPO+:} false; then :
6204   $as_echo_n "(cached) " >&6
6205 else
6206   if test -n "$LIPO"; then
6207   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6208 else
6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 for as_dir in $PATH
6211 do
6212   IFS=$as_save_IFS
6213   test -z "$as_dir" && as_dir=.
6214     for ac_exec_ext in '' $ac_executable_extensions; do
6215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6216     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218     break 2
6219   fi
6220 done
6221   done
6222 IFS=$as_save_IFS
6223
6224 fi
6225 fi
6226 LIPO=$ac_cv_prog_LIPO
6227 if test -n "$LIPO"; then
6228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6229 $as_echo "$LIPO" >&6; }
6230 else
6231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232 $as_echo "no" >&6; }
6233 fi
6234
6235
6236 fi
6237 if test -z "$ac_cv_prog_LIPO"; then
6238   ac_ct_LIPO=$LIPO
6239   # Extract the first word of "lipo", so it can be a program name with args.
6240 set dummy lipo; ac_word=$2
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6242 $as_echo_n "checking for $ac_word... " >&6; }
6243 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6244   $as_echo_n "(cached) " >&6
6245 else
6246   if test -n "$ac_ct_LIPO"; then
6247   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6248 else
6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 for as_dir in $PATH
6251 do
6252   IFS=$as_save_IFS
6253   test -z "$as_dir" && as_dir=.
6254     for ac_exec_ext in '' $ac_executable_extensions; do
6255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6256     ac_cv_prog_ac_ct_LIPO="lipo"
6257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6258     break 2
6259   fi
6260 done
6261   done
6262 IFS=$as_save_IFS
6263
6264 fi
6265 fi
6266 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6267 if test -n "$ac_ct_LIPO"; then
6268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6269 $as_echo "$ac_ct_LIPO" >&6; }
6270 else
6271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272 $as_echo "no" >&6; }
6273 fi
6274
6275   if test "x$ac_ct_LIPO" = x; then
6276     LIPO=":"
6277   else
6278     case $cross_compiling:$ac_tool_warned in
6279 yes:)
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6282 ac_tool_warned=yes ;;
6283 esac
6284     LIPO=$ac_ct_LIPO
6285   fi
6286 else
6287   LIPO="$ac_cv_prog_LIPO"
6288 fi
6289
6290     if test -n "$ac_tool_prefix"; then
6291   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6292 set dummy ${ac_tool_prefix}otool; ac_word=$2
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if ${ac_cv_prog_OTOOL+:} false; then :
6296   $as_echo_n "(cached) " >&6
6297 else
6298   if test -n "$OTOOL"; then
6299   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6300 else
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304   IFS=$as_save_IFS
6305   test -z "$as_dir" && as_dir=.
6306     for ac_exec_ext in '' $ac_executable_extensions; do
6307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6308     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6310     break 2
6311   fi
6312 done
6313   done
6314 IFS=$as_save_IFS
6315
6316 fi
6317 fi
6318 OTOOL=$ac_cv_prog_OTOOL
6319 if test -n "$OTOOL"; then
6320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6321 $as_echo "$OTOOL" >&6; }
6322 else
6323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324 $as_echo "no" >&6; }
6325 fi
6326
6327
6328 fi
6329 if test -z "$ac_cv_prog_OTOOL"; then
6330   ac_ct_OTOOL=$OTOOL
6331   # Extract the first word of "otool", so it can be a program name with args.
6332 set dummy otool; ac_word=$2
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6334 $as_echo_n "checking for $ac_word... " >&6; }
6335 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6336   $as_echo_n "(cached) " >&6
6337 else
6338   if test -n "$ac_ct_OTOOL"; then
6339   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6340 else
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 for as_dir in $PATH
6343 do
6344   IFS=$as_save_IFS
6345   test -z "$as_dir" && as_dir=.
6346     for ac_exec_ext in '' $ac_executable_extensions; do
6347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6348     ac_cv_prog_ac_ct_OTOOL="otool"
6349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6350     break 2
6351   fi
6352 done
6353   done
6354 IFS=$as_save_IFS
6355
6356 fi
6357 fi
6358 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6359 if test -n "$ac_ct_OTOOL"; then
6360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6361 $as_echo "$ac_ct_OTOOL" >&6; }
6362 else
6363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364 $as_echo "no" >&6; }
6365 fi
6366
6367   if test "x$ac_ct_OTOOL" = x; then
6368     OTOOL=":"
6369   else
6370     case $cross_compiling:$ac_tool_warned in
6371 yes:)
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6374 ac_tool_warned=yes ;;
6375 esac
6376     OTOOL=$ac_ct_OTOOL
6377   fi
6378 else
6379   OTOOL="$ac_cv_prog_OTOOL"
6380 fi
6381
6382     if test -n "$ac_tool_prefix"; then
6383   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6384 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6386 $as_echo_n "checking for $ac_word... " >&6; }
6387 if ${ac_cv_prog_OTOOL64+:} false; then :
6388   $as_echo_n "(cached) " >&6
6389 else
6390   if test -n "$OTOOL64"; then
6391   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6392 else
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 for as_dir in $PATH
6395 do
6396   IFS=$as_save_IFS
6397   test -z "$as_dir" && as_dir=.
6398     for ac_exec_ext in '' $ac_executable_extensions; do
6399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6400     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6402     break 2
6403   fi
6404 done
6405   done
6406 IFS=$as_save_IFS
6407
6408 fi
6409 fi
6410 OTOOL64=$ac_cv_prog_OTOOL64
6411 if test -n "$OTOOL64"; then
6412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6413 $as_echo "$OTOOL64" >&6; }
6414 else
6415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6417 fi
6418
6419
6420 fi
6421 if test -z "$ac_cv_prog_OTOOL64"; then
6422   ac_ct_OTOOL64=$OTOOL64
6423   # Extract the first word of "otool64", so it can be a program name with args.
6424 set dummy otool64; ac_word=$2
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6426 $as_echo_n "checking for $ac_word... " >&6; }
6427 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6428   $as_echo_n "(cached) " >&6
6429 else
6430   if test -n "$ac_ct_OTOOL64"; then
6431   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6432 else
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 for as_dir in $PATH
6435 do
6436   IFS=$as_save_IFS
6437   test -z "$as_dir" && as_dir=.
6438     for ac_exec_ext in '' $ac_executable_extensions; do
6439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6440     ac_cv_prog_ac_ct_OTOOL64="otool64"
6441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6442     break 2
6443   fi
6444 done
6445   done
6446 IFS=$as_save_IFS
6447
6448 fi
6449 fi
6450 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6451 if test -n "$ac_ct_OTOOL64"; then
6452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6453 $as_echo "$ac_ct_OTOOL64" >&6; }
6454 else
6455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456 $as_echo "no" >&6; }
6457 fi
6458
6459   if test "x$ac_ct_OTOOL64" = x; then
6460     OTOOL64=":"
6461   else
6462     case $cross_compiling:$ac_tool_warned in
6463 yes:)
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6466 ac_tool_warned=yes ;;
6467 esac
6468     OTOOL64=$ac_ct_OTOOL64
6469   fi
6470 else
6471   OTOOL64="$ac_cv_prog_OTOOL64"
6472 fi
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6501 $as_echo_n "checking for -single_module linker flag... " >&6; }
6502 if ${lt_cv_apple_cc_single_mod+:} false; then :
6503   $as_echo_n "(cached) " >&6
6504 else
6505   lt_cv_apple_cc_single_mod=no
6506       if test -z "${LT_MULTI_MODULE}"; then
6507         # By default we will add the -single_module flag. You can override
6508         # by either setting the environment variable LT_MULTI_MODULE
6509         # non-empty at configure time, or by adding -multi_module to the
6510         # link flags.
6511         rm -rf libconftest.dylib*
6512         echo "int foo(void){return 1;}" > conftest.c
6513         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6514 -dynamiclib -Wl,-single_module conftest.c" >&5
6515         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6516           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6517         _lt_result=$?
6518         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6519           lt_cv_apple_cc_single_mod=yes
6520         else
6521           cat conftest.err >&5
6522         fi
6523         rm -rf libconftest.dylib*
6524         rm -f conftest.*
6525       fi
6526 fi
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6528 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6529     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6530 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6531 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6532   $as_echo_n "(cached) " >&6
6533 else
6534   lt_cv_ld_exported_symbols_list=no
6535       save_LDFLAGS=$LDFLAGS
6536       echo "_main" > conftest.sym
6537       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6538       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539 /* end confdefs.h.  */
6540
6541 int
6542 main ()
6543 {
6544
6545   ;
6546   return 0;
6547 }
6548 _ACEOF
6549 if ac_fn_c_try_link "$LINENO"; then :
6550   lt_cv_ld_exported_symbols_list=yes
6551 else
6552   lt_cv_ld_exported_symbols_list=no
6553 fi
6554 rm -f core conftest.err conftest.$ac_objext \
6555     conftest$ac_exeext conftest.$ac_ext
6556         LDFLAGS="$save_LDFLAGS"
6557
6558 fi
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6560 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6561     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6562 $as_echo_n "checking for -force_load linker flag... " >&6; }
6563 if ${lt_cv_ld_force_load+:} false; then :
6564   $as_echo_n "(cached) " >&6
6565 else
6566   lt_cv_ld_force_load=no
6567       cat > conftest.c << _LT_EOF
6568 int forced_loaded() { return 2;}
6569 _LT_EOF
6570       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6571       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6572       echo "$AR cru libconftest.a conftest.o" >&5
6573       $AR cru libconftest.a conftest.o 2>&5
6574       echo "$RANLIB libconftest.a" >&5
6575       $RANLIB libconftest.a 2>&5
6576       cat > conftest.c << _LT_EOF
6577 int main() { return 0;}
6578 _LT_EOF
6579       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6580       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6581       _lt_result=$?
6582       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6583         lt_cv_ld_force_load=yes
6584       else
6585         cat conftest.err >&5
6586       fi
6587         rm -f conftest.err libconftest.a conftest conftest.c
6588         rm -rf conftest.dSYM
6589
6590 fi
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6592 $as_echo "$lt_cv_ld_force_load" >&6; }
6593     case $host_os in
6594     rhapsody* | darwin1.[012])
6595       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6596     darwin1.*)
6597       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6598     darwin*) # darwin 5.x on
6599       # if running on 10.5 or later, the deployment target defaults
6600       # to the OS version, if on x86, and 10.4, the deployment
6601       # target defaults to 10.4. Don't you love it?
6602       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6603         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6604           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6605         10.[012]*)
6606           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6607         10.*)
6608           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6609       esac
6610     ;;
6611   esac
6612     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6613       _lt_dar_single_mod='$single_module'
6614     fi
6615     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6616       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6617     else
6618       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6619     fi
6620     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6621       _lt_dsymutil='~$DSYMUTIL $lib || :'
6622     else
6623       _lt_dsymutil=
6624     fi
6625     ;;
6626   esac
6627
6628 ac_ext=c
6629 ac_cpp='$CPP $CPPFLAGS'
6630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6634 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6635 # On Suns, sometimes $CPP names a directory.
6636 if test -n "$CPP" && test -d "$CPP"; then
6637   CPP=
6638 fi
6639 if test -z "$CPP"; then
6640   if ${ac_cv_prog_CPP+:} false; then :
6641   $as_echo_n "(cached) " >&6
6642 else
6643       # Double quotes because CPP needs to be expanded
6644     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6645     do
6646       ac_preproc_ok=false
6647 for ac_c_preproc_warn_flag in '' yes
6648 do
6649   # Use a header file that comes with gcc, so configuring glibc
6650   # with a fresh cross-compiler works.
6651   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6652   # <limits.h> exists even on freestanding compilers.
6653   # On the NeXT, cc -E runs the code through the compiler's parser,
6654   # not just through cpp. "Syntax error" is here to catch this case.
6655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h.  */
6657 #ifdef __STDC__
6658 # include <limits.h>
6659 #else
6660 # include <assert.h>
6661 #endif
6662                      Syntax error
6663 _ACEOF
6664 if ac_fn_c_try_cpp "$LINENO"; then :
6665
6666 else
6667   # Broken: fails on valid input.
6668 continue
6669 fi
6670 rm -f conftest.err conftest.i conftest.$ac_ext
6671
6672   # OK, works on sane cases.  Now check whether nonexistent headers
6673   # can be detected and how.
6674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6675 /* end confdefs.h.  */
6676 #include <ac_nonexistent.h>
6677 _ACEOF
6678 if ac_fn_c_try_cpp "$LINENO"; then :
6679   # Broken: success on invalid input.
6680 continue
6681 else
6682   # Passes both tests.
6683 ac_preproc_ok=:
6684 break
6685 fi
6686 rm -f conftest.err conftest.i conftest.$ac_ext
6687
6688 done
6689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6690 rm -f conftest.i conftest.err conftest.$ac_ext
6691 if $ac_preproc_ok; then :
6692   break
6693 fi
6694
6695     done
6696     ac_cv_prog_CPP=$CPP
6697
6698 fi
6699   CPP=$ac_cv_prog_CPP
6700 else
6701   ac_cv_prog_CPP=$CPP
6702 fi
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6704 $as_echo "$CPP" >&6; }
6705 ac_preproc_ok=false
6706 for ac_c_preproc_warn_flag in '' yes
6707 do
6708   # Use a header file that comes with gcc, so configuring glibc
6709   # with a fresh cross-compiler works.
6710   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6711   # <limits.h> exists even on freestanding compilers.
6712   # On the NeXT, cc -E runs the code through the compiler's parser,
6713   # not just through cpp. "Syntax error" is here to catch this case.
6714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h.  */
6716 #ifdef __STDC__
6717 # include <limits.h>
6718 #else
6719 # include <assert.h>
6720 #endif
6721                      Syntax error
6722 _ACEOF
6723 if ac_fn_c_try_cpp "$LINENO"; then :
6724
6725 else
6726   # Broken: fails on valid input.
6727 continue
6728 fi
6729 rm -f conftest.err conftest.i conftest.$ac_ext
6730
6731   # OK, works on sane cases.  Now check whether nonexistent headers
6732   # can be detected and how.
6733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h.  */
6735 #include <ac_nonexistent.h>
6736 _ACEOF
6737 if ac_fn_c_try_cpp "$LINENO"; then :
6738   # Broken: success on invalid input.
6739 continue
6740 else
6741   # Passes both tests.
6742 ac_preproc_ok=:
6743 break
6744 fi
6745 rm -f conftest.err conftest.i conftest.$ac_ext
6746
6747 done
6748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6749 rm -f conftest.i conftest.err conftest.$ac_ext
6750 if $ac_preproc_ok; then :
6751
6752 else
6753   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6755 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6756 See \`config.log' for more details" "$LINENO" 5; }
6757 fi
6758
6759 ac_ext=c
6760 ac_cpp='$CPP $CPPFLAGS'
6761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6764
6765
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6767 $as_echo_n "checking for ANSI C header files... " >&6; }
6768 if ${ac_cv_header_stdc+:} false; then :
6769   $as_echo_n "(cached) " >&6
6770 else
6771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772 /* end confdefs.h.  */
6773 #include <stdlib.h>
6774 #include <stdarg.h>
6775 #include <string.h>
6776 #include <float.h>
6777
6778 int
6779 main ()
6780 {
6781
6782   ;
6783   return 0;
6784 }
6785 _ACEOF
6786 if ac_fn_c_try_compile "$LINENO"; then :
6787   ac_cv_header_stdc=yes
6788 else
6789   ac_cv_header_stdc=no
6790 fi
6791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6792
6793 if test $ac_cv_header_stdc = yes; then
6794   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h.  */
6797 #include <string.h>
6798
6799 _ACEOF
6800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6801   $EGREP "memchr" >/dev/null 2>&1; then :
6802
6803 else
6804   ac_cv_header_stdc=no
6805 fi
6806 rm -f conftest*
6807
6808 fi
6809
6810 if test $ac_cv_header_stdc = yes; then
6811   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h.  */
6814 #include <stdlib.h>
6815
6816 _ACEOF
6817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6818   $EGREP "free" >/dev/null 2>&1; then :
6819
6820 else
6821   ac_cv_header_stdc=no
6822 fi
6823 rm -f conftest*
6824
6825 fi
6826
6827 if test $ac_cv_header_stdc = yes; then
6828   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6829   if test "$cross_compiling" = yes; then :
6830   :
6831 else
6832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h.  */
6834 #include <ctype.h>
6835 #include <stdlib.h>
6836 #if ((' ' & 0x0FF) == 0x020)
6837 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6838 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6839 #else
6840 # define ISLOWER(c) \
6841                    (('a' <= (c) && (c) <= 'i') \
6842                      || ('j' <= (c) && (c) <= 'r') \
6843                      || ('s' <= (c) && (c) <= 'z'))
6844 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6845 #endif
6846
6847 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6848 int
6849 main ()
6850 {
6851   int i;
6852   for (i = 0; i < 256; i++)
6853     if (XOR (islower (i), ISLOWER (i))
6854         || toupper (i) != TOUPPER (i))
6855       return 2;
6856   return 0;
6857 }
6858 _ACEOF
6859 if ac_fn_c_try_run "$LINENO"; then :
6860
6861 else
6862   ac_cv_header_stdc=no
6863 fi
6864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6865   conftest.$ac_objext conftest.beam conftest.$ac_ext
6866 fi
6867
6868 fi
6869 fi
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6871 $as_echo "$ac_cv_header_stdc" >&6; }
6872 if test $ac_cv_header_stdc = yes; then
6873
6874 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6875
6876 fi
6877
6878 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6879 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6880                   inttypes.h stdint.h unistd.h
6881 do :
6882   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6883 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6884 "
6885 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6886   cat >>confdefs.h <<_ACEOF
6887 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6888 _ACEOF
6889
6890 fi
6891
6892 done
6893
6894
6895 for ac_header in dlfcn.h
6896 do :
6897   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6898 "
6899 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6900   cat >>confdefs.h <<_ACEOF
6901 #define HAVE_DLFCN_H 1
6902 _ACEOF
6903
6904 fi
6905
6906 done
6907
6908
6909
6910
6911
6912 # Set options
6913
6914
6915
6916         enable_dlopen=no
6917
6918
6919   enable_win32_dll=no
6920
6921
6922             # Check whether --enable-shared was given.
6923 if test "${enable_shared+set}" = set; then :
6924   enableval=$enable_shared; p=${PACKAGE-default}
6925     case $enableval in
6926     yes) enable_shared=yes ;;
6927     no) enable_shared=no ;;
6928     *)
6929       enable_shared=no
6930       # Look at the argument we got.  We use all the common list separators.
6931       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6932       for pkg in $enableval; do
6933         IFS="$lt_save_ifs"
6934         if test "X$pkg" = "X$p"; then
6935           enable_shared=yes
6936         fi
6937       done
6938       IFS="$lt_save_ifs"
6939       ;;
6940     esac
6941 else
6942   enable_shared=yes
6943 fi
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953   # Check whether --enable-static was given.
6954 if test "${enable_static+set}" = set; then :
6955   enableval=$enable_static; p=${PACKAGE-default}
6956     case $enableval in
6957     yes) enable_static=yes ;;
6958     no) enable_static=no ;;
6959     *)
6960      enable_static=no
6961       # Look at the argument we got.  We use all the common list separators.
6962       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6963       for pkg in $enableval; do
6964         IFS="$lt_save_ifs"
6965         if test "X$pkg" = "X$p"; then
6966           enable_static=yes
6967         fi
6968       done
6969       IFS="$lt_save_ifs"
6970       ;;
6971     esac
6972 else
6973   enable_static=yes
6974 fi
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985 # Check whether --with-pic was given.
6986 if test "${with_pic+set}" = set; then :
6987   withval=$with_pic; pic_mode="$withval"
6988 else
6989   pic_mode=default
6990 fi
6991
6992
6993 test -z "$pic_mode" && pic_mode=default
6994
6995
6996
6997
6998
6999
7000
7001   # Check whether --enable-fast-install was given.
7002 if test "${enable_fast_install+set}" = set; then :
7003   enableval=$enable_fast_install; p=${PACKAGE-default}
7004     case $enableval in
7005     yes) enable_fast_install=yes ;;
7006     no) enable_fast_install=no ;;
7007     *)
7008       enable_fast_install=no
7009       # Look at the argument we got.  We use all the common list separators.
7010       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7011       for pkg in $enableval; do
7012         IFS="$lt_save_ifs"
7013         if test "X$pkg" = "X$p"; then
7014           enable_fast_install=yes
7015         fi
7016       done
7017       IFS="$lt_save_ifs"
7018       ;;
7019     esac
7020 else
7021   enable_fast_install=yes
7022 fi
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034 # This can be used to rebuild libtool when needed
7035 LIBTOOL_DEPS="$ltmain"
7036
7037 # Always use our own libtool.
7038 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065 test -z "$LN_S" && LN_S="ln -s"
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080 if test -n "${ZSH_VERSION+set}" ; then
7081    setopt NO_GLOB_SUBST
7082 fi
7083
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7085 $as_echo_n "checking for objdir... " >&6; }
7086 if ${lt_cv_objdir+:} false; then :
7087   $as_echo_n "(cached) " >&6
7088 else
7089   rm -f .libs 2>/dev/null
7090 mkdir .libs 2>/dev/null
7091 if test -d .libs; then
7092   lt_cv_objdir=.libs
7093 else
7094   # MS-DOS does not allow filenames that begin with a dot.
7095   lt_cv_objdir=_libs
7096 fi
7097 rmdir .libs 2>/dev/null
7098 fi
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7100 $as_echo "$lt_cv_objdir" >&6; }
7101 objdir=$lt_cv_objdir
7102
7103
7104
7105
7106
7107 cat >>confdefs.h <<_ACEOF
7108 #define LT_OBJDIR "$lt_cv_objdir/"
7109 _ACEOF
7110
7111
7112
7113
7114 case $host_os in
7115 aix3*)
7116   # AIX sometimes has problems with the GCC collect2 program.  For some
7117   # reason, if we set the COLLECT_NAMES environment variable, the problems
7118   # vanish in a puff of smoke.
7119   if test "X${COLLECT_NAMES+set}" != Xset; then
7120     COLLECT_NAMES=
7121     export COLLECT_NAMES
7122   fi
7123   ;;
7124 esac
7125
7126 # Global variables:
7127 ofile=libtool
7128 can_build_shared=yes
7129
7130 # All known linkers require a `.a' archive for static linking (except MSVC,
7131 # which needs '.lib').
7132 libext=a
7133
7134 with_gnu_ld="$lt_cv_prog_gnu_ld"
7135
7136 old_CC="$CC"
7137 old_CFLAGS="$CFLAGS"
7138
7139 # Set sane defaults for various variables
7140 test -z "$CC" && CC=cc
7141 test -z "$LTCC" && LTCC=$CC
7142 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7143 test -z "$LD" && LD=ld
7144 test -z "$ac_objext" && ac_objext=o
7145
7146 for cc_temp in $compiler""; do
7147   case $cc_temp in
7148     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7149     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7150     \-*) ;;
7151     *) break;;
7152   esac
7153 done
7154 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7155
7156
7157 # Only perform the check for file, if the check method requires it
7158 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7159 case $deplibs_check_method in
7160 file_magic*)
7161   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7162     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7163 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7164 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7165   $as_echo_n "(cached) " >&6
7166 else
7167   case $MAGIC_CMD in
7168 [\\/*] |  ?:[\\/]*)
7169   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7170   ;;
7171 *)
7172   lt_save_MAGIC_CMD="$MAGIC_CMD"
7173   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7174   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7175   for ac_dir in $ac_dummy; do
7176     IFS="$lt_save_ifs"
7177     test -z "$ac_dir" && ac_dir=.
7178     if test -f $ac_dir/${ac_tool_prefix}file; then
7179       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7180       if test -n "$file_magic_test_file"; then
7181         case $deplibs_check_method in
7182         "file_magic "*)
7183           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7184           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7185           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7186             $EGREP "$file_magic_regex" > /dev/null; then
7187             :
7188           else
7189             cat <<_LT_EOF 1>&2
7190
7191 *** Warning: the command libtool uses to detect shared libraries,
7192 *** $file_magic_cmd, produces output that libtool cannot recognize.
7193 *** The result is that libtool may fail to recognize shared libraries
7194 *** as such.  This will affect the creation of libtool libraries that
7195 *** depend on shared libraries, but programs linked with such libtool
7196 *** libraries will work regardless of this problem.  Nevertheless, you
7197 *** may want to report the problem to your system manager and/or to
7198 *** bug-libtool@gnu.org
7199
7200 _LT_EOF
7201           fi ;;
7202         esac
7203       fi
7204       break
7205     fi
7206   done
7207   IFS="$lt_save_ifs"
7208   MAGIC_CMD="$lt_save_MAGIC_CMD"
7209   ;;
7210 esac
7211 fi
7212
7213 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7214 if test -n "$MAGIC_CMD"; then
7215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7216 $as_echo "$MAGIC_CMD" >&6; }
7217 else
7218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7220 fi
7221
7222
7223
7224
7225
7226 if test -z "$lt_cv_path_MAGIC_CMD"; then
7227   if test -n "$ac_tool_prefix"; then
7228     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7229 $as_echo_n "checking for file... " >&6; }
7230 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7231   $as_echo_n "(cached) " >&6
7232 else
7233   case $MAGIC_CMD in
7234 [\\/*] |  ?:[\\/]*)
7235   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7236   ;;
7237 *)
7238   lt_save_MAGIC_CMD="$MAGIC_CMD"
7239   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7240   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7241   for ac_dir in $ac_dummy; do
7242     IFS="$lt_save_ifs"
7243     test -z "$ac_dir" && ac_dir=.
7244     if test -f $ac_dir/file; then
7245       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7246       if test -n "$file_magic_test_file"; then
7247         case $deplibs_check_method in
7248         "file_magic "*)
7249           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7250           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7251           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7252             $EGREP "$file_magic_regex" > /dev/null; then
7253             :
7254           else
7255             cat <<_LT_EOF 1>&2
7256
7257 *** Warning: the command libtool uses to detect shared libraries,
7258 *** $file_magic_cmd, produces output that libtool cannot recognize.
7259 *** The result is that libtool may fail to recognize shared libraries
7260 *** as such.  This will affect the creation of libtool libraries that
7261 *** depend on shared libraries, but programs linked with such libtool
7262 *** libraries will work regardless of this problem.  Nevertheless, you
7263 *** may want to report the problem to your system manager and/or to
7264 *** bug-libtool@gnu.org
7265
7266 _LT_EOF
7267           fi ;;
7268         esac
7269       fi
7270       break
7271     fi
7272   done
7273   IFS="$lt_save_ifs"
7274   MAGIC_CMD="$lt_save_MAGIC_CMD"
7275   ;;
7276 esac
7277 fi
7278
7279 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7280 if test -n "$MAGIC_CMD"; then
7281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7282 $as_echo "$MAGIC_CMD" >&6; }
7283 else
7284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285 $as_echo "no" >&6; }
7286 fi
7287
7288
7289   else
7290     MAGIC_CMD=:
7291   fi
7292 fi
7293
7294   fi
7295   ;;
7296 esac
7297
7298 # Use C for the default configuration in the libtool script
7299
7300 lt_save_CC="$CC"
7301 ac_ext=c
7302 ac_cpp='$CPP $CPPFLAGS'
7303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7306
7307
7308 # Source file extension for C test sources.
7309 ac_ext=c
7310
7311 # Object file extension for compiled C test sources.
7312 objext=o
7313 objext=$objext
7314
7315 # Code to be used in simple compile tests
7316 lt_simple_compile_test_code="int some_variable = 0;"
7317
7318 # Code to be used in simple link tests
7319 lt_simple_link_test_code='int main(){return(0);}'
7320
7321
7322
7323
7324
7325
7326
7327 # If no C compiler was specified, use CC.
7328 LTCC=${LTCC-"$CC"}
7329
7330 # If no C compiler flags were specified, use CFLAGS.
7331 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7332
7333 # Allow CC to be a program name with arguments.
7334 compiler=$CC
7335
7336 # Save the default compiler, since it gets overwritten when the other
7337 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7338 compiler_DEFAULT=$CC
7339
7340 # save warnings/boilerplate of simple test code
7341 ac_outfile=conftest.$ac_objext
7342 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7343 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7344 _lt_compiler_boilerplate=`cat conftest.err`
7345 $RM conftest*
7346
7347 ac_outfile=conftest.$ac_objext
7348 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7349 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7350 _lt_linker_boilerplate=`cat conftest.err`
7351 $RM -r conftest*
7352
7353
7354 if test -n "$compiler"; then
7355
7356 lt_prog_compiler_no_builtin_flag=
7357
7358 if test "$GCC" = yes; then
7359   case $cc_basename in
7360   nvcc*)
7361     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7362   *)
7363     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7364   esac
7365
7366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7367 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7368 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7369   $as_echo_n "(cached) " >&6
7370 else
7371   lt_cv_prog_compiler_rtti_exceptions=no
7372    ac_outfile=conftest.$ac_objext
7373    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7374    lt_compiler_flag="-fno-rtti -fno-exceptions"
7375    # Insert the option either (1) after the last *FLAGS variable, or
7376    # (2) before a word containing "conftest.", or (3) at the end.
7377    # Note that $ac_compile itself does not contain backslashes and begins
7378    # with a dollar sign (not a hyphen), so the echo should work correctly.
7379    # The option is referenced via a variable to avoid confusing sed.
7380    lt_compile=`echo "$ac_compile" | $SED \
7381    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7382    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7383    -e 's:$: $lt_compiler_flag:'`
7384    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7385    (eval "$lt_compile" 2>conftest.err)
7386    ac_status=$?
7387    cat conftest.err >&5
7388    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389    if (exit $ac_status) && test -s "$ac_outfile"; then
7390      # The compiler can only warn and ignore the option if not recognized
7391      # So say no if there are warnings other than the usual output.
7392      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7393      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7394      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7395        lt_cv_prog_compiler_rtti_exceptions=yes
7396      fi
7397    fi
7398    $RM conftest*
7399
7400 fi
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7402 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7403
7404 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7405     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7406 else
7407     :
7408 fi
7409
7410 fi
7411
7412
7413
7414
7415
7416
7417   lt_prog_compiler_wl=
7418 lt_prog_compiler_pic=
7419 lt_prog_compiler_static=
7420
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7422 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7423
7424   if test "$GCC" = yes; then
7425     lt_prog_compiler_wl='-Wl,'
7426     lt_prog_compiler_static='-static'
7427
7428     case $host_os in
7429       aix*)
7430       # All AIX code is PIC.
7431       if test "$host_cpu" = ia64; then
7432         # AIX 5 now supports IA64 processor
7433         lt_prog_compiler_static='-Bstatic'
7434       fi
7435       ;;
7436
7437     amigaos*)
7438       case $host_cpu in
7439       powerpc)
7440             # see comment about AmigaOS4 .so support
7441             lt_prog_compiler_pic='-fPIC'
7442         ;;
7443       m68k)
7444             # FIXME: we need at least 68020 code to build shared libraries, but
7445             # adding the `-m68020' flag to GCC prevents building anything better,
7446             # like `-m68040'.
7447             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7448         ;;
7449       esac
7450       ;;
7451
7452     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7453       # PIC is the default for these OSes.
7454       ;;
7455
7456     mingw* | cygwin* | pw32* | os2* | cegcc*)
7457       # This hack is so that the source file can tell whether it is being
7458       # built for inclusion in a dll (and should export symbols for example).
7459       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7460       # (--disable-auto-import) libraries
7461       lt_prog_compiler_pic='-DDLL_EXPORT'
7462       ;;
7463
7464     darwin* | rhapsody*)
7465       # PIC is the default on this platform
7466       # Common symbols not allowed in MH_DYLIB files
7467       lt_prog_compiler_pic='-fno-common'
7468       ;;
7469
7470     haiku*)
7471       # PIC is the default for Haiku.
7472       # The "-static" flag exists, but is broken.
7473       lt_prog_compiler_static=
7474       ;;
7475
7476     hpux*)
7477       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7478       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7479       # sets the default TLS model and affects inlining.
7480       case $host_cpu in
7481       hppa*64*)
7482         # +Z the default
7483         ;;
7484       *)
7485         lt_prog_compiler_pic='-fPIC'
7486         ;;
7487       esac
7488       ;;
7489
7490     interix[3-9]*)
7491       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7492       # Instead, we relocate shared libraries at runtime.
7493       ;;
7494
7495     msdosdjgpp*)
7496       # Just because we use GCC doesn't mean we suddenly get shared libraries
7497       # on systems that don't support them.
7498       lt_prog_compiler_can_build_shared=no
7499       enable_shared=no
7500       ;;
7501
7502     *nto* | *qnx*)
7503       # QNX uses GNU C++, but need to define -shared option too, otherwise
7504       # it will coredump.
7505       lt_prog_compiler_pic='-fPIC -shared'
7506       ;;
7507
7508     sysv4*MP*)
7509       if test -d /usr/nec; then
7510         lt_prog_compiler_pic=-Kconform_pic
7511       fi
7512       ;;
7513
7514     *)
7515       lt_prog_compiler_pic='-fPIC'
7516       ;;
7517     esac
7518
7519     case $cc_basename in
7520     nvcc*) # Cuda Compiler Driver 2.2
7521       lt_prog_compiler_wl='-Xlinker '
7522       lt_prog_compiler_pic='-Xcompiler -fPIC'
7523       ;;
7524     esac
7525   else
7526     # PORTME Check for flag to pass linker flags through the system compiler.
7527     case $host_os in
7528     aix*)
7529       lt_prog_compiler_wl='-Wl,'
7530       if test "$host_cpu" = ia64; then
7531         # AIX 5 now supports IA64 processor
7532         lt_prog_compiler_static='-Bstatic'
7533       else
7534         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7535       fi
7536       ;;
7537
7538     mingw* | cygwin* | pw32* | os2* | cegcc*)
7539       # This hack is so that the source file can tell whether it is being
7540       # built for inclusion in a dll (and should export symbols for example).
7541       lt_prog_compiler_pic='-DDLL_EXPORT'
7542       ;;
7543
7544     hpux9* | hpux10* | hpux11*)
7545       lt_prog_compiler_wl='-Wl,'
7546       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7547       # not for PA HP-UX.
7548       case $host_cpu in
7549       hppa*64*|ia64*)
7550         # +Z the default
7551         ;;
7552       *)
7553         lt_prog_compiler_pic='+Z'
7554         ;;
7555       esac
7556       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7557       lt_prog_compiler_static='${wl}-a ${wl}archive'
7558       ;;
7559
7560     irix5* | irix6* | nonstopux*)
7561       lt_prog_compiler_wl='-Wl,'
7562       # PIC (with -KPIC) is the default.
7563       lt_prog_compiler_static='-non_shared'
7564       ;;
7565
7566     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7567       case $cc_basename in
7568       # old Intel for x86_64 which still supported -KPIC.
7569       ecc*)
7570         lt_prog_compiler_wl='-Wl,'
7571         lt_prog_compiler_pic='-KPIC'
7572         lt_prog_compiler_static='-static'
7573         ;;
7574       # icc used to be incompatible with GCC.
7575       # ICC 10 doesn't accept -KPIC any more.
7576       icc* | ifort*)
7577         lt_prog_compiler_wl='-Wl,'
7578         lt_prog_compiler_pic='-fPIC'
7579         lt_prog_compiler_static='-static'
7580         ;;
7581       # Lahey Fortran 8.1.
7582       lf95*)
7583         lt_prog_compiler_wl='-Wl,'
7584         lt_prog_compiler_pic='--shared'
7585         lt_prog_compiler_static='--static'
7586         ;;
7587       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7588         # Portland Group compilers (*not* the Pentium gcc compiler,
7589         # which looks to be a dead project)
7590         lt_prog_compiler_wl='-Wl,'
7591         lt_prog_compiler_pic='-fpic'
7592         lt_prog_compiler_static='-Bstatic'
7593         ;;
7594       ccc*)
7595         lt_prog_compiler_wl='-Wl,'
7596         # All Alpha code is PIC.
7597         lt_prog_compiler_static='-non_shared'
7598         ;;
7599       xl* | bgxl* | bgf* | mpixl*)
7600         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7601         lt_prog_compiler_wl='-Wl,'
7602         lt_prog_compiler_pic='-qpic'
7603         lt_prog_compiler_static='-qstaticlink'
7604         ;;
7605       *)
7606         case `$CC -V 2>&1 | sed 5q` in
7607         *Sun\ F* | *Sun*Fortran*)
7608           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7609           lt_prog_compiler_pic='-KPIC'
7610           lt_prog_compiler_static='-Bstatic'
7611           lt_prog_compiler_wl=''
7612           ;;
7613         *Sun\ C*)
7614           # Sun C 5.9
7615           lt_prog_compiler_pic='-KPIC'
7616           lt_prog_compiler_static='-Bstatic'
7617           lt_prog_compiler_wl='-Wl,'
7618           ;;
7619         esac
7620         ;;
7621       esac
7622       ;;
7623
7624     newsos6)
7625       lt_prog_compiler_pic='-KPIC'
7626       lt_prog_compiler_static='-Bstatic'
7627       ;;
7628
7629     *nto* | *qnx*)
7630       # QNX uses GNU C++, but need to define -shared option too, otherwise
7631       # it will coredump.
7632       lt_prog_compiler_pic='-fPIC -shared'
7633       ;;
7634
7635     osf3* | osf4* | osf5*)
7636       lt_prog_compiler_wl='-Wl,'
7637       # All OSF/1 code is PIC.
7638       lt_prog_compiler_static='-non_shared'
7639       ;;
7640
7641     rdos*)
7642       lt_prog_compiler_static='-non_shared'
7643       ;;
7644
7645     solaris*)
7646       lt_prog_compiler_pic='-KPIC'
7647       lt_prog_compiler_static='-Bstatic'
7648       case $cc_basename in
7649       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7650         lt_prog_compiler_wl='-Qoption ld ';;
7651       *)
7652         lt_prog_compiler_wl='-Wl,';;
7653       esac
7654       ;;
7655
7656     sunos4*)
7657       lt_prog_compiler_wl='-Qoption ld '
7658       lt_prog_compiler_pic='-PIC'
7659       lt_prog_compiler_static='-Bstatic'
7660       ;;
7661
7662     sysv4 | sysv4.2uw2* | sysv4.3*)
7663       lt_prog_compiler_wl='-Wl,'
7664       lt_prog_compiler_pic='-KPIC'
7665       lt_prog_compiler_static='-Bstatic'
7666       ;;
7667
7668     sysv4*MP*)
7669       if test -d /usr/nec ;then
7670         lt_prog_compiler_pic='-Kconform_pic'
7671         lt_prog_compiler_static='-Bstatic'
7672       fi
7673       ;;
7674
7675     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7676       lt_prog_compiler_wl='-Wl,'
7677       lt_prog_compiler_pic='-KPIC'
7678       lt_prog_compiler_static='-Bstatic'
7679       ;;
7680
7681     unicos*)
7682       lt_prog_compiler_wl='-Wl,'
7683       lt_prog_compiler_can_build_shared=no
7684       ;;
7685
7686     uts4*)
7687       lt_prog_compiler_pic='-pic'
7688       lt_prog_compiler_static='-Bstatic'
7689       ;;
7690
7691     *)
7692       lt_prog_compiler_can_build_shared=no
7693       ;;
7694     esac
7695   fi
7696
7697 case $host_os in
7698   # For platforms which do not support PIC, -DPIC is meaningless:
7699   *djgpp*)
7700     lt_prog_compiler_pic=
7701     ;;
7702   *)
7703     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7704     ;;
7705 esac
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7707 $as_echo "$lt_prog_compiler_pic" >&6; }
7708
7709
7710
7711
7712
7713
7714 #
7715 # Check to make sure the PIC flag actually works.
7716 #
7717 if test -n "$lt_prog_compiler_pic"; then
7718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7719 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7720 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7721   $as_echo_n "(cached) " >&6
7722 else
7723   lt_cv_prog_compiler_pic_works=no
7724    ac_outfile=conftest.$ac_objext
7725    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7726    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7727    # Insert the option either (1) after the last *FLAGS variable, or
7728    # (2) before a word containing "conftest.", or (3) at the end.
7729    # Note that $ac_compile itself does not contain backslashes and begins
7730    # with a dollar sign (not a hyphen), so the echo should work correctly.
7731    # The option is referenced via a variable to avoid confusing sed.
7732    lt_compile=`echo "$ac_compile" | $SED \
7733    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7734    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7735    -e 's:$: $lt_compiler_flag:'`
7736    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7737    (eval "$lt_compile" 2>conftest.err)
7738    ac_status=$?
7739    cat conftest.err >&5
7740    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741    if (exit $ac_status) && test -s "$ac_outfile"; then
7742      # The compiler can only warn and ignore the option if not recognized
7743      # So say no if there are warnings other than the usual output.
7744      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7745      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7746      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7747        lt_cv_prog_compiler_pic_works=yes
7748      fi
7749    fi
7750    $RM conftest*
7751
7752 fi
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7754 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7755
7756 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7757     case $lt_prog_compiler_pic in
7758      "" | " "*) ;;
7759      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7760      esac
7761 else
7762     lt_prog_compiler_pic=
7763      lt_prog_compiler_can_build_shared=no
7764 fi
7765
7766 fi
7767
7768
7769
7770
7771
7772
7773 #
7774 # Check to make sure the static flag actually works.
7775 #
7776 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7778 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7779 if ${lt_cv_prog_compiler_static_works+:} false; then :
7780   $as_echo_n "(cached) " >&6
7781 else
7782   lt_cv_prog_compiler_static_works=no
7783    save_LDFLAGS="$LDFLAGS"
7784    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7785    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7786    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7787      # The linker can only warn and ignore the option if not recognized
7788      # So say no if there are warnings
7789      if test -s conftest.err; then
7790        # Append any errors to the config.log.
7791        cat conftest.err 1>&5
7792        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7793        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7794        if diff conftest.exp conftest.er2 >/dev/null; then
7795          lt_cv_prog_compiler_static_works=yes
7796        fi
7797      else
7798        lt_cv_prog_compiler_static_works=yes
7799      fi
7800    fi
7801    $RM -r conftest*
7802    LDFLAGS="$save_LDFLAGS"
7803
7804 fi
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7806 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7807
7808 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7809     :
7810 else
7811     lt_prog_compiler_static=
7812 fi
7813
7814
7815
7816
7817
7818
7819
7820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7821 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7822 if ${lt_cv_prog_compiler_c_o+:} false; then :
7823   $as_echo_n "(cached) " >&6
7824 else
7825   lt_cv_prog_compiler_c_o=no
7826    $RM -r conftest 2>/dev/null
7827    mkdir conftest
7828    cd conftest
7829    mkdir out
7830    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7831
7832    lt_compiler_flag="-o out/conftest2.$ac_objext"
7833    # Insert the option either (1) after the last *FLAGS variable, or
7834    # (2) before a word containing "conftest.", or (3) at the end.
7835    # Note that $ac_compile itself does not contain backslashes and begins
7836    # with a dollar sign (not a hyphen), so the echo should work correctly.
7837    lt_compile=`echo "$ac_compile" | $SED \
7838    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7839    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7840    -e 's:$: $lt_compiler_flag:'`
7841    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7842    (eval "$lt_compile" 2>out/conftest.err)
7843    ac_status=$?
7844    cat out/conftest.err >&5
7845    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7847    then
7848      # The compiler can only warn and ignore the option if not recognized
7849      # So say no if there are warnings
7850      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7851      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7852      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7853        lt_cv_prog_compiler_c_o=yes
7854      fi
7855    fi
7856    chmod u+w . 2>&5
7857    $RM conftest*
7858    # SGI C++ compiler will create directory out/ii_files/ for
7859    # template instantiation
7860    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7861    $RM out/* && rmdir out
7862    cd ..
7863    $RM -r conftest
7864    $RM conftest*
7865
7866 fi
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7868 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7869
7870
7871
7872
7873
7874
7875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7876 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7877 if ${lt_cv_prog_compiler_c_o+:} false; then :
7878   $as_echo_n "(cached) " >&6
7879 else
7880   lt_cv_prog_compiler_c_o=no
7881    $RM -r conftest 2>/dev/null
7882    mkdir conftest
7883    cd conftest
7884    mkdir out
7885    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7886
7887    lt_compiler_flag="-o out/conftest2.$ac_objext"
7888    # Insert the option either (1) after the last *FLAGS variable, or
7889    # (2) before a word containing "conftest.", or (3) at the end.
7890    # Note that $ac_compile itself does not contain backslashes and begins
7891    # with a dollar sign (not a hyphen), so the echo should work correctly.
7892    lt_compile=`echo "$ac_compile" | $SED \
7893    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7894    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7895    -e 's:$: $lt_compiler_flag:'`
7896    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7897    (eval "$lt_compile" 2>out/conftest.err)
7898    ac_status=$?
7899    cat out/conftest.err >&5
7900    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7902    then
7903      # The compiler can only warn and ignore the option if not recognized
7904      # So say no if there are warnings
7905      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7906      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7907      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7908        lt_cv_prog_compiler_c_o=yes
7909      fi
7910    fi
7911    chmod u+w . 2>&5
7912    $RM conftest*
7913    # SGI C++ compiler will create directory out/ii_files/ for
7914    # template instantiation
7915    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7916    $RM out/* && rmdir out
7917    cd ..
7918    $RM -r conftest
7919    $RM conftest*
7920
7921 fi
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7923 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7924
7925
7926
7927
7928 hard_links="nottested"
7929 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7930   # do not overwrite the value of need_locks provided by the user
7931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7932 $as_echo_n "checking if we can lock with hard links... " >&6; }
7933   hard_links=yes
7934   $RM conftest*
7935   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7936   touch conftest.a
7937   ln conftest.a conftest.b 2>&5 || hard_links=no
7938   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7940 $as_echo "$hard_links" >&6; }
7941   if test "$hard_links" = no; then
7942     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7943 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7944     need_locks=warn
7945   fi
7946 else
7947   need_locks=no
7948 fi
7949
7950
7951
7952
7953
7954
7955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7956 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7957
7958   runpath_var=
7959   allow_undefined_flag=
7960   always_export_symbols=no
7961   archive_cmds=
7962   archive_expsym_cmds=
7963   compiler_needs_object=no
7964   enable_shared_with_static_runtimes=no
7965   export_dynamic_flag_spec=
7966   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7967   hardcode_automatic=no
7968   hardcode_direct=no
7969   hardcode_direct_absolute=no
7970   hardcode_libdir_flag_spec=
7971   hardcode_libdir_flag_spec_ld=
7972   hardcode_libdir_separator=
7973   hardcode_minus_L=no
7974   hardcode_shlibpath_var=unsupported
7975   inherit_rpath=no
7976   link_all_deplibs=unknown
7977   module_cmds=
7978   module_expsym_cmds=
7979   old_archive_from_new_cmds=
7980   old_archive_from_expsyms_cmds=
7981   thread_safe_flag_spec=
7982   whole_archive_flag_spec=
7983   # include_expsyms should be a list of space-separated symbols to be *always*
7984   # included in the symbol list
7985   include_expsyms=
7986   # exclude_expsyms can be an extended regexp of symbols to exclude
7987   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7988   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7989   # as well as any symbol that contains `d'.
7990   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7991   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7992   # platforms (ab)use it in PIC code, but their linkers get confused if
7993   # the symbol is explicitly referenced.  Since portable code cannot
7994   # rely on this symbol name, it's probably fine to never include it in
7995   # preloaded symbol tables.
7996   # Exclude shared library initialization/finalization symbols.
7997   extract_expsyms_cmds=
7998
7999   case $host_os in
8000   cygwin* | mingw* | pw32* | cegcc*)
8001     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8002     # When not using gcc, we currently assume that we are using
8003     # Microsoft Visual C++.
8004     if test "$GCC" != yes; then
8005       with_gnu_ld=no
8006     fi
8007     ;;
8008   interix*)
8009     # we just hope/assume this is gcc and not c89 (= MSVC++)
8010     with_gnu_ld=yes
8011     ;;
8012   openbsd*)
8013     with_gnu_ld=no
8014     ;;
8015   esac
8016
8017   ld_shlibs=yes
8018
8019   # On some targets, GNU ld is compatible enough with the native linker
8020   # that we're better off using the native interface for both.
8021   lt_use_gnu_ld_interface=no
8022   if test "$with_gnu_ld" = yes; then
8023     case $host_os in
8024       aix*)
8025         # The AIX port of GNU ld has always aspired to compatibility
8026         # with the native linker.  However, as the warning in the GNU ld
8027         # block says, versions before 2.19.5* couldn't really create working
8028         # shared libraries, regardless of the interface used.
8029         case `$LD -v 2>&1` in
8030           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8031           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8032           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8033           *)
8034             lt_use_gnu_ld_interface=yes
8035             ;;
8036         esac
8037         ;;
8038       *)
8039         lt_use_gnu_ld_interface=yes
8040         ;;
8041     esac
8042   fi
8043
8044   if test "$lt_use_gnu_ld_interface" = yes; then
8045     # If archive_cmds runs LD, not CC, wlarc should be empty
8046     wlarc='${wl}'
8047
8048     # Set some defaults for GNU ld with shared library support. These
8049     # are reset later if shared libraries are not supported. Putting them
8050     # here allows them to be overridden if necessary.
8051     runpath_var=LD_RUN_PATH
8052     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8053     export_dynamic_flag_spec='${wl}--export-dynamic'
8054     # ancient GNU ld didn't support --whole-archive et. al.
8055     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8056       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8057     else
8058       whole_archive_flag_spec=
8059     fi
8060     supports_anon_versioning=no
8061     case `$LD -v 2>&1` in
8062       *GNU\ gold*) supports_anon_versioning=yes ;;
8063       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8064       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8065       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8066       *\ 2.11.*) ;; # other 2.11 versions
8067       *) supports_anon_versioning=yes ;;
8068     esac
8069
8070     # See if GNU ld supports shared libraries.
8071     case $host_os in
8072     aix[3-9]*)
8073       # On AIX/PPC, the GNU linker is very broken
8074       if test "$host_cpu" != ia64; then
8075         ld_shlibs=no
8076         cat <<_LT_EOF 1>&2
8077
8078 *** Warning: the GNU linker, at least up to release 2.19, is reported
8079 *** to be unable to reliably create shared libraries on AIX.
8080 *** Therefore, libtool is disabling shared libraries support.  If you
8081 *** really care for shared libraries, you may want to install binutils
8082 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8083 *** You will then need to restart the configuration process.
8084
8085 _LT_EOF
8086       fi
8087       ;;
8088
8089     amigaos*)
8090       case $host_cpu in
8091       powerpc)
8092             # see comment about AmigaOS4 .so support
8093             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8094             archive_expsym_cmds=''
8095         ;;
8096       m68k)
8097             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)'
8098             hardcode_libdir_flag_spec='-L$libdir'
8099             hardcode_minus_L=yes
8100         ;;
8101       esac
8102       ;;
8103
8104     beos*)
8105       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8106         allow_undefined_flag=unsupported
8107         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8108         # support --undefined.  This deserves some investigation.  FIXME
8109         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8110       else
8111         ld_shlibs=no
8112       fi
8113       ;;
8114
8115     cygwin* | mingw* | pw32* | cegcc*)
8116       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8117       # as there is no search path for DLLs.
8118       hardcode_libdir_flag_spec='-L$libdir'
8119       export_dynamic_flag_spec='${wl}--export-all-symbols'
8120       allow_undefined_flag=unsupported
8121       always_export_symbols=no
8122       enable_shared_with_static_runtimes=yes
8123       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8124
8125       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8126         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8127         # If the export-symbols file already is a .def file (1st line
8128         # is EXPORTS), use it as is; otherwise, prepend...
8129         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8130           cp $export_symbols $output_objdir/$soname.def;
8131         else
8132           echo EXPORTS > $output_objdir/$soname.def;
8133           cat $export_symbols >> $output_objdir/$soname.def;
8134         fi~
8135         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8136       else
8137         ld_shlibs=no
8138       fi
8139       ;;
8140
8141     haiku*)
8142       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8143       link_all_deplibs=yes
8144       ;;
8145
8146     interix[3-9]*)
8147       hardcode_direct=no
8148       hardcode_shlibpath_var=no
8149       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8150       export_dynamic_flag_spec='${wl}-E'
8151       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8152       # Instead, shared libraries are loaded at an image base (0x10000000 by
8153       # default) and relocated if they conflict, which is a slow very memory
8154       # consuming and fragmenting process.  To avoid this, we pick a random,
8155       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8156       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8157       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8158       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'
8159       ;;
8160
8161     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8162       tmp_diet=no
8163       if test "$host_os" = linux-dietlibc; then
8164         case $cc_basename in
8165           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8166         esac
8167       fi
8168       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8169          && test "$tmp_diet" = no
8170       then
8171         tmp_addflag=
8172         tmp_sharedflag='-shared'
8173         case $cc_basename,$host_cpu in
8174         pgcc*)                          # Portland Group C compiler
8175           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'
8176           tmp_addflag=' $pic_flag'
8177           ;;
8178         pgf77* | pgf90* | pgf95* | pgfortran*)
8179                                         # Portland Group f77 and f90 compilers
8180           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'
8181           tmp_addflag=' $pic_flag -Mnomain' ;;
8182         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8183           tmp_addflag=' -i_dynamic' ;;
8184         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8185           tmp_addflag=' -i_dynamic -nofor_main' ;;
8186         ifc* | ifort*)                  # Intel Fortran compiler
8187           tmp_addflag=' -nofor_main' ;;
8188         lf95*)                          # Lahey Fortran 8.1
8189           whole_archive_flag_spec=
8190           tmp_sharedflag='--shared' ;;
8191         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8192           tmp_sharedflag='-qmkshrobj'
8193           tmp_addflag= ;;
8194         nvcc*)  # Cuda Compiler Driver 2.2
8195           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'
8196           compiler_needs_object=yes
8197           ;;
8198         esac
8199         case `$CC -V 2>&1 | sed 5q` in
8200         *Sun\ C*)                       # Sun C 5.9
8201           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'
8202           compiler_needs_object=yes
8203           tmp_sharedflag='-G' ;;
8204         *Sun\ F*)                       # Sun Fortran 8.3
8205           tmp_sharedflag='-G' ;;
8206         esac
8207         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8208
8209         if test "x$supports_anon_versioning" = xyes; then
8210           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8211             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8212             echo "local: *; };" >> $output_objdir/$libname.ver~
8213             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8214         fi
8215
8216         case $cc_basename in
8217         xlf* | bgf* | bgxlf* | mpixlf*)
8218           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8219           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8220           hardcode_libdir_flag_spec=
8221           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8222           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8223           if test "x$supports_anon_versioning" = xyes; then
8224             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8225               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8226               echo "local: *; };" >> $output_objdir/$libname.ver~
8227               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8228           fi
8229           ;;
8230         esac
8231       else
8232         ld_shlibs=no
8233       fi
8234       ;;
8235
8236     netbsd*)
8237       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8238         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8239         wlarc=
8240       else
8241         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8242         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8243       fi
8244       ;;
8245
8246     solaris*)
8247       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8248         ld_shlibs=no
8249         cat <<_LT_EOF 1>&2
8250
8251 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8252 *** create shared libraries on Solaris systems.  Therefore, libtool
8253 *** is disabling shared libraries support.  We urge you to upgrade GNU
8254 *** binutils to release 2.9.1 or newer.  Another option is to modify
8255 *** your PATH or compiler configuration so that the native linker is
8256 *** used, and then restart.
8257
8258 _LT_EOF
8259       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8260         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8261         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8262       else
8263         ld_shlibs=no
8264       fi
8265       ;;
8266
8267     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8268       case `$LD -v 2>&1` in
8269         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8270         ld_shlibs=no
8271         cat <<_LT_EOF 1>&2
8272
8273 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8274 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8275 *** is disabling shared libraries support.  We urge you to upgrade GNU
8276 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8277 *** your PATH or compiler configuration so that the native linker is
8278 *** used, and then restart.
8279
8280 _LT_EOF
8281         ;;
8282         *)
8283           # For security reasons, it is highly recommended that you always
8284           # use absolute paths for naming shared libraries, and exclude the
8285           # DT_RUNPATH tag from executables and libraries.  But doing so
8286           # requires that you compile everything twice, which is a pain.
8287           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8288             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8289             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8290             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8291           else
8292             ld_shlibs=no
8293           fi
8294         ;;
8295       esac
8296       ;;
8297
8298     sunos4*)
8299       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8300       wlarc=
8301       hardcode_direct=yes
8302       hardcode_shlibpath_var=no
8303       ;;
8304
8305     *)
8306       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8307         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8308         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8309       else
8310         ld_shlibs=no
8311       fi
8312       ;;
8313     esac
8314
8315     if test "$ld_shlibs" = no; then
8316       runpath_var=
8317       hardcode_libdir_flag_spec=
8318       export_dynamic_flag_spec=
8319       whole_archive_flag_spec=
8320     fi
8321   else
8322     # PORTME fill in a description of your system's linker (not GNU ld)
8323     case $host_os in
8324     aix3*)
8325       allow_undefined_flag=unsupported
8326       always_export_symbols=yes
8327       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'
8328       # Note: this linker hardcodes the directories in LIBPATH if there
8329       # are no directories specified by -L.
8330       hardcode_minus_L=yes
8331       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8332         # Neither direct hardcoding nor static linking is supported with a
8333         # broken collect2.
8334         hardcode_direct=unsupported
8335       fi
8336       ;;
8337
8338     aix[4-9]*)
8339       if test "$host_cpu" = ia64; then
8340         # On IA64, the linker does run time linking by default, so we don't
8341         # have to do anything special.
8342         aix_use_runtimelinking=no
8343         exp_sym_flag='-Bexport'
8344         no_entry_flag=""
8345       else
8346         # If we're using GNU nm, then we don't want the "-C" option.
8347         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8348         # Also, AIX nm treats weak defined symbols like other global
8349         # defined symbols, whereas GNU nm marks them as "W".
8350         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8351           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'
8352         else
8353           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'
8354         fi
8355         aix_use_runtimelinking=no
8356
8357         # Test if we are trying to use run time linking or normal
8358         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8359         # need to do runtime linking.
8360         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8361           for ld_flag in $LDFLAGS; do
8362           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8363             aix_use_runtimelinking=yes
8364             break
8365           fi
8366           done
8367           ;;
8368         esac
8369
8370         exp_sym_flag='-bexport'
8371         no_entry_flag='-bnoentry'
8372       fi
8373
8374       # When large executables or shared objects are built, AIX ld can
8375       # have problems creating the table of contents.  If linking a library
8376       # or program results in "error TOC overflow" add -mminimal-toc to
8377       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8378       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8379
8380       archive_cmds=''
8381       hardcode_direct=yes
8382       hardcode_direct_absolute=yes
8383       hardcode_libdir_separator=':'
8384       link_all_deplibs=yes
8385       file_list_spec='${wl}-f,'
8386
8387       if test "$GCC" = yes; then
8388         case $host_os in aix4.[012]|aix4.[012].*)
8389         # We only want to do this on AIX 4.2 and lower, the check
8390         # below for broken collect2 doesn't work under 4.3+
8391           collect2name=`${CC} -print-prog-name=collect2`
8392           if test -f "$collect2name" &&
8393            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8394           then
8395           # We have reworked collect2
8396           :
8397           else
8398           # We have old collect2
8399           hardcode_direct=unsupported
8400           # It fails to find uninstalled libraries when the uninstalled
8401           # path is not listed in the libpath.  Setting hardcode_minus_L
8402           # to unsupported forces relinking
8403           hardcode_minus_L=yes
8404           hardcode_libdir_flag_spec='-L$libdir'
8405           hardcode_libdir_separator=
8406           fi
8407           ;;
8408         esac
8409         shared_flag='-shared'
8410         if test "$aix_use_runtimelinking" = yes; then
8411           shared_flag="$shared_flag "'${wl}-G'
8412         fi
8413       else
8414         # not using gcc
8415         if test "$host_cpu" = ia64; then
8416         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8417         # chokes on -Wl,-G. The following line is correct:
8418           shared_flag='-G'
8419         else
8420           if test "$aix_use_runtimelinking" = yes; then
8421             shared_flag='${wl}-G'
8422           else
8423             shared_flag='${wl}-bM:SRE'
8424           fi
8425         fi
8426       fi
8427
8428       export_dynamic_flag_spec='${wl}-bexpall'
8429       # It seems that -bexpall does not export symbols beginning with
8430       # underscore (_), so it is better to generate a list of symbols to export.
8431       always_export_symbols=yes
8432       if test "$aix_use_runtimelinking" = yes; then
8433         # Warning - without using the other runtime loading flags (-brtl),
8434         # -berok will link without error, but may produce a broken library.
8435         allow_undefined_flag='-berok'
8436         # Determine the default libpath from the value encoded in an
8437         # empty executable.
8438         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h.  */
8440
8441 int
8442 main ()
8443 {
8444
8445   ;
8446   return 0;
8447 }
8448 _ACEOF
8449 if ac_fn_c_try_link "$LINENO"; then :
8450
8451 lt_aix_libpath_sed='
8452     /Import File Strings/,/^$/ {
8453         /^0/ {
8454             s/^0  *\(.*\)$/\1/
8455             p
8456         }
8457     }'
8458 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8459 # Check for a 64-bit object if we didn't find anything.
8460 if test -z "$aix_libpath"; then
8461   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8462 fi
8463 fi
8464 rm -f core conftest.err conftest.$ac_objext \
8465     conftest$ac_exeext conftest.$ac_ext
8466 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8467
8468         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8469         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"
8470       else
8471         if test "$host_cpu" = ia64; then
8472           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8473           allow_undefined_flag="-z nodefs"
8474           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"
8475         else
8476          # Determine the default libpath from the value encoded in an
8477          # empty executable.
8478          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h.  */
8480
8481 int
8482 main ()
8483 {
8484
8485   ;
8486   return 0;
8487 }
8488 _ACEOF
8489 if ac_fn_c_try_link "$LINENO"; then :
8490
8491 lt_aix_libpath_sed='
8492     /Import File Strings/,/^$/ {
8493         /^0/ {
8494             s/^0  *\(.*\)$/\1/
8495             p
8496         }
8497     }'
8498 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8499 # Check for a 64-bit object if we didn't find anything.
8500 if test -z "$aix_libpath"; then
8501   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8502 fi
8503 fi
8504 rm -f core conftest.err conftest.$ac_objext \
8505     conftest$ac_exeext conftest.$ac_ext
8506 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8507
8508          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8509           # Warning - without using the other run time loading flags,
8510           # -berok will link without error, but may produce a broken library.
8511           no_undefined_flag=' ${wl}-bernotok'
8512           allow_undefined_flag=' ${wl}-berok'
8513           if test "$with_gnu_ld" = yes; then
8514             # We only use this code for GNU lds that support --whole-archive.
8515             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8516           else
8517             # Exported symbols can be pulled into shared objects from archives
8518             whole_archive_flag_spec='$convenience'
8519           fi
8520           archive_cmds_need_lc=yes
8521           # This is similar to how AIX traditionally builds its shared libraries.
8522           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'
8523         fi
8524       fi
8525       ;;
8526
8527     amigaos*)
8528       case $host_cpu in
8529       powerpc)
8530             # see comment about AmigaOS4 .so support
8531             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8532             archive_expsym_cmds=''
8533         ;;
8534       m68k)
8535             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)'
8536             hardcode_libdir_flag_spec='-L$libdir'
8537             hardcode_minus_L=yes
8538         ;;
8539       esac
8540       ;;
8541
8542     bsdi[45]*)
8543       export_dynamic_flag_spec=-rdynamic
8544       ;;
8545
8546     cygwin* | mingw* | pw32* | cegcc*)
8547       # When not using gcc, we currently assume that we are using
8548       # Microsoft Visual C++.
8549       # hardcode_libdir_flag_spec is actually meaningless, as there is
8550       # no search path for DLLs.
8551       hardcode_libdir_flag_spec=' '
8552       allow_undefined_flag=unsupported
8553       # Tell ltmain to make .lib files, not .a files.
8554       libext=lib
8555       # Tell ltmain to make .dll files, not .so files.
8556       shrext_cmds=".dll"
8557       # FIXME: Setting linknames here is a bad hack.
8558       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8559       # The linker will automatically build a .lib file if we build a DLL.
8560       old_archive_from_new_cmds='true'
8561       # FIXME: Should let the user specify the lib program.
8562       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8563       fix_srcfile_path='`cygpath -w "$srcfile"`'
8564       enable_shared_with_static_runtimes=yes
8565       ;;
8566
8567     darwin* | rhapsody*)
8568
8569
8570   archive_cmds_need_lc=no
8571   hardcode_direct=no
8572   hardcode_automatic=yes
8573   hardcode_shlibpath_var=unsupported
8574   if test "$lt_cv_ld_force_load" = "yes"; then
8575     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\"`'
8576   else
8577     whole_archive_flag_spec=''
8578   fi
8579   link_all_deplibs=yes
8580   allow_undefined_flag="$_lt_dar_allow_undefined"
8581   case $cc_basename in
8582      ifort*) _lt_dar_can_shared=yes ;;
8583      *) _lt_dar_can_shared=$GCC ;;
8584   esac
8585   if test "$_lt_dar_can_shared" = "yes"; then
8586     output_verbose_link_cmd=func_echo_all
8587     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8588     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8589     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}"
8590     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}"
8591
8592   else
8593   ld_shlibs=no
8594   fi
8595
8596       ;;
8597
8598     dgux*)
8599       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8600       hardcode_libdir_flag_spec='-L$libdir'
8601       hardcode_shlibpath_var=no
8602       ;;
8603
8604     freebsd1*)
8605       ld_shlibs=no
8606       ;;
8607
8608     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8609     # support.  Future versions do this automatically, but an explicit c++rt0.o
8610     # does not break anything, and helps significantly (at the cost of a little
8611     # extra space).
8612     freebsd2.2*)
8613       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8614       hardcode_libdir_flag_spec='-R$libdir'
8615       hardcode_direct=yes
8616       hardcode_shlibpath_var=no
8617       ;;
8618
8619     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8620     freebsd2*)
8621       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8622       hardcode_direct=yes
8623       hardcode_minus_L=yes
8624       hardcode_shlibpath_var=no
8625       ;;
8626
8627     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8628     freebsd* | dragonfly*)
8629       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8630       hardcode_libdir_flag_spec='-R$libdir'
8631       hardcode_direct=yes
8632       hardcode_shlibpath_var=no
8633       ;;
8634
8635     hpux9*)
8636       if test "$GCC" = yes; then
8637         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8638       else
8639         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'
8640       fi
8641       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8642       hardcode_libdir_separator=:
8643       hardcode_direct=yes
8644
8645       # hardcode_minus_L: Not really in the search PATH,
8646       # but as the default location of the library.
8647       hardcode_minus_L=yes
8648       export_dynamic_flag_spec='${wl}-E'
8649       ;;
8650
8651     hpux10*)
8652       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8653         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8654       else
8655         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8656       fi
8657       if test "$with_gnu_ld" = no; then
8658         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8659         hardcode_libdir_flag_spec_ld='+b $libdir'
8660         hardcode_libdir_separator=:
8661         hardcode_direct=yes
8662         hardcode_direct_absolute=yes
8663         export_dynamic_flag_spec='${wl}-E'
8664         # hardcode_minus_L: Not really in the search PATH,
8665         # but as the default location of the library.
8666         hardcode_minus_L=yes
8667       fi
8668       ;;
8669
8670     hpux11*)
8671       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8672         case $host_cpu in
8673         hppa*64*)
8674           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8675           ;;
8676         ia64*)
8677           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8678           ;;
8679         *)
8680           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8681           ;;
8682         esac
8683       else
8684         case $host_cpu in
8685         hppa*64*)
8686           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8687           ;;
8688         ia64*)
8689           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8690           ;;
8691         *)
8692
8693           # Older versions of the 11.00 compiler do not understand -b yet
8694           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8695           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8696 $as_echo_n "checking if $CC understands -b... " >&6; }
8697 if ${lt_cv_prog_compiler__b+:} false; then :
8698   $as_echo_n "(cached) " >&6
8699 else
8700   lt_cv_prog_compiler__b=no
8701    save_LDFLAGS="$LDFLAGS"
8702    LDFLAGS="$LDFLAGS -b"
8703    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8704    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8705      # The linker can only warn and ignore the option if not recognized
8706      # So say no if there are warnings
8707      if test -s conftest.err; then
8708        # Append any errors to the config.log.
8709        cat conftest.err 1>&5
8710        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8711        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8712        if diff conftest.exp conftest.er2 >/dev/null; then
8713          lt_cv_prog_compiler__b=yes
8714        fi
8715      else
8716        lt_cv_prog_compiler__b=yes
8717      fi
8718    fi
8719    $RM -r conftest*
8720    LDFLAGS="$save_LDFLAGS"
8721
8722 fi
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8724 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8725
8726 if test x"$lt_cv_prog_compiler__b" = xyes; then
8727     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8728 else
8729     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8730 fi
8731
8732           ;;
8733         esac
8734       fi
8735       if test "$with_gnu_ld" = no; then
8736         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8737         hardcode_libdir_separator=:
8738
8739         case $host_cpu in
8740         hppa*64*|ia64*)
8741           hardcode_direct=no
8742           hardcode_shlibpath_var=no
8743           ;;
8744         *)
8745           hardcode_direct=yes
8746           hardcode_direct_absolute=yes
8747           export_dynamic_flag_spec='${wl}-E'
8748
8749           # hardcode_minus_L: Not really in the search PATH,
8750           # but as the default location of the library.
8751           hardcode_minus_L=yes
8752           ;;
8753         esac
8754       fi
8755       ;;
8756
8757     irix5* | irix6* | nonstopux*)
8758       if test "$GCC" = yes; then
8759         archive_cmds='$CC -shared $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'
8760         # Try to use the -exported_symbol ld option, if it does not
8761         # work, assume that -exports_file does not work either and
8762         # implicitly export all symbols.
8763         save_LDFLAGS="$LDFLAGS"
8764         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8765         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8766 /* end confdefs.h.  */
8767 int foo(void) {}
8768 _ACEOF
8769 if ac_fn_c_try_link "$LINENO"; then :
8770   archive_expsym_cmds='$CC -shared $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'
8771
8772 fi
8773 rm -f core conftest.err conftest.$ac_objext \
8774     conftest$ac_exeext conftest.$ac_ext
8775         LDFLAGS="$save_LDFLAGS"
8776       else
8777         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'
8778         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'
8779       fi
8780       archive_cmds_need_lc='no'
8781       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8782       hardcode_libdir_separator=:
8783       inherit_rpath=yes
8784       link_all_deplibs=yes
8785       ;;
8786
8787     netbsd*)
8788       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8789         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8790       else
8791         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8792       fi
8793       hardcode_libdir_flag_spec='-R$libdir'
8794       hardcode_direct=yes
8795       hardcode_shlibpath_var=no
8796       ;;
8797
8798     newsos6)
8799       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8800       hardcode_direct=yes
8801       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8802       hardcode_libdir_separator=:
8803       hardcode_shlibpath_var=no
8804       ;;
8805
8806     *nto* | *qnx*)
8807       ;;
8808
8809     openbsd*)
8810       if test -f /usr/libexec/ld.so; then
8811         hardcode_direct=yes
8812         hardcode_shlibpath_var=no
8813         hardcode_direct_absolute=yes
8814         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8815           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8816           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8817           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8818           export_dynamic_flag_spec='${wl}-E'
8819         else
8820           case $host_os in
8821            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8822              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8823              hardcode_libdir_flag_spec='-R$libdir'
8824              ;;
8825            *)
8826              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8827              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8828              ;;
8829           esac
8830         fi
8831       else
8832         ld_shlibs=no
8833       fi
8834       ;;
8835
8836     os2*)
8837       hardcode_libdir_flag_spec='-L$libdir'
8838       hardcode_minus_L=yes
8839       allow_undefined_flag=unsupported
8840       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'
8841       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8842       ;;
8843
8844     osf3*)
8845       if test "$GCC" = yes; then
8846         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8847         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'
8848       else
8849         allow_undefined_flag=' -expect_unresolved \*'
8850         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'
8851       fi
8852       archive_cmds_need_lc='no'
8853       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8854       hardcode_libdir_separator=:
8855       ;;
8856
8857     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8858       if test "$GCC" = yes; then
8859         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8860         archive_cmds='$CC -shared${allow_undefined_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'
8861         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8862       else
8863         allow_undefined_flag=' -expect_unresolved \*'
8864         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'
8865         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~
8866         $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'
8867
8868         # Both c and cxx compiler support -rpath directly
8869         hardcode_libdir_flag_spec='-rpath $libdir'
8870       fi
8871       archive_cmds_need_lc='no'
8872       hardcode_libdir_separator=:
8873       ;;
8874
8875     solaris*)
8876       no_undefined_flag=' -z defs'
8877       if test "$GCC" = yes; then
8878         wlarc='${wl}'
8879         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8880         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8881           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8882       else
8883         case `$CC -V 2>&1` in
8884         *"Compilers 5.0"*)
8885           wlarc=''
8886           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8887           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8888           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8889           ;;
8890         *)
8891           wlarc='${wl}'
8892           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8893           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8894           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8895           ;;
8896         esac
8897       fi
8898       hardcode_libdir_flag_spec='-R$libdir'
8899       hardcode_shlibpath_var=no
8900       case $host_os in
8901       solaris2.[0-5] | solaris2.[0-5].*) ;;
8902       *)
8903         # The compiler driver will combine and reorder linker options,
8904         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8905         # but is careful enough not to reorder.
8906         # Supported since Solaris 2.6 (maybe 2.5.1?)
8907         if test "$GCC" = yes; then
8908           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8909         else
8910           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8911         fi
8912         ;;
8913       esac
8914       link_all_deplibs=yes
8915       ;;
8916
8917     sunos4*)
8918       if test "x$host_vendor" = xsequent; then
8919         # Use $CC to link under sequent, because it throws in some extra .o
8920         # files that make .init and .fini sections work.
8921         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8922       else
8923         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8924       fi
8925       hardcode_libdir_flag_spec='-L$libdir'
8926       hardcode_direct=yes
8927       hardcode_minus_L=yes
8928       hardcode_shlibpath_var=no
8929       ;;
8930
8931     sysv4)
8932       case $host_vendor in
8933         sni)
8934           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8935           hardcode_direct=yes # is this really true???
8936         ;;
8937         siemens)
8938           ## LD is ld it makes a PLAMLIB
8939           ## CC just makes a GrossModule.
8940           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8941           reload_cmds='$CC -r -o $output$reload_objs'
8942           hardcode_direct=no
8943         ;;
8944         motorola)
8945           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8946           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8947         ;;
8948       esac
8949       runpath_var='LD_RUN_PATH'
8950       hardcode_shlibpath_var=no
8951       ;;
8952
8953     sysv4.3*)
8954       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8955       hardcode_shlibpath_var=no
8956       export_dynamic_flag_spec='-Bexport'
8957       ;;
8958
8959     sysv4*MP*)
8960       if test -d /usr/nec; then
8961         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8962         hardcode_shlibpath_var=no
8963         runpath_var=LD_RUN_PATH
8964         hardcode_runpath_var=yes
8965         ld_shlibs=yes
8966       fi
8967       ;;
8968
8969     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8970       no_undefined_flag='${wl}-z,text'
8971       archive_cmds_need_lc=no
8972       hardcode_shlibpath_var=no
8973       runpath_var='LD_RUN_PATH'
8974
8975       if test "$GCC" = yes; then
8976         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8977         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8978       else
8979         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8980         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8981       fi
8982       ;;
8983
8984     sysv5* | sco3.2v5* | sco5v6*)
8985       # Note: We can NOT use -z defs as we might desire, because we do not
8986       # link with -lc, and that would cause any symbols used from libc to
8987       # always be unresolved, which means just about no library would
8988       # ever link correctly.  If we're not using GNU ld we use -z text
8989       # though, which does catch some bad symbols but isn't as heavy-handed
8990       # as -z defs.
8991       no_undefined_flag='${wl}-z,text'
8992       allow_undefined_flag='${wl}-z,nodefs'
8993       archive_cmds_need_lc=no
8994       hardcode_shlibpath_var=no
8995       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8996       hardcode_libdir_separator=':'
8997       link_all_deplibs=yes
8998       export_dynamic_flag_spec='${wl}-Bexport'
8999       runpath_var='LD_RUN_PATH'
9000
9001       if test "$GCC" = yes; then
9002         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9003         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9004       else
9005         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9006         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9007       fi
9008       ;;
9009
9010     uts4*)
9011       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9012       hardcode_libdir_flag_spec='-L$libdir'
9013       hardcode_shlibpath_var=no
9014       ;;
9015
9016     *)
9017       ld_shlibs=no
9018       ;;
9019     esac
9020
9021     if test x$host_vendor = xsni; then
9022       case $host in
9023       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9024         export_dynamic_flag_spec='${wl}-Blargedynsym'
9025         ;;
9026       esac
9027     fi
9028   fi
9029
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9031 $as_echo "$ld_shlibs" >&6; }
9032 test "$ld_shlibs" = no && can_build_shared=no
9033
9034 with_gnu_ld=$with_gnu_ld
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050 #
9051 # Do we need to explicitly link libc?
9052 #
9053 case "x$archive_cmds_need_lc" in
9054 x|xyes)
9055   # Assume -lc should be added
9056   archive_cmds_need_lc=yes
9057
9058   if test "$enable_shared" = yes && test "$GCC" = yes; then
9059     case $archive_cmds in
9060     *'~'*)
9061       # FIXME: we may have to deal with multi-command sequences.
9062       ;;
9063     '$CC '*)
9064       # Test whether the compiler implicitly links with -lc since on some
9065       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9066       # to ld, don't add -lc before -lgcc.
9067       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9068 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9069 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9070   $as_echo_n "(cached) " >&6
9071 else
9072   $RM conftest*
9073         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9074
9075         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9076   (eval $ac_compile) 2>&5
9077   ac_status=$?
9078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9079   test $ac_status = 0; } 2>conftest.err; then
9080           soname=conftest
9081           lib=conftest
9082           libobjs=conftest.$ac_objext
9083           deplibs=
9084           wl=$lt_prog_compiler_wl
9085           pic_flag=$lt_prog_compiler_pic
9086           compiler_flags=-v
9087           linker_flags=-v
9088           verstring=
9089           output_objdir=.
9090           libname=conftest
9091           lt_save_allow_undefined_flag=$allow_undefined_flag
9092           allow_undefined_flag=
9093           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9094   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9095   ac_status=$?
9096   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9097   test $ac_status = 0; }
9098           then
9099             lt_cv_archive_cmds_need_lc=no
9100           else
9101             lt_cv_archive_cmds_need_lc=yes
9102           fi
9103           allow_undefined_flag=$lt_save_allow_undefined_flag
9104         else
9105           cat conftest.err 1>&5
9106         fi
9107         $RM conftest*
9108
9109 fi
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9111 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9112       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9113       ;;
9114     esac
9115   fi
9116   ;;
9117 esac
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9276 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9277
9278 if test "$GCC" = yes; then
9279   case $host_os in
9280     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9281     *) lt_awk_arg="/^libraries:/" ;;
9282   esac
9283   case $host_os in
9284     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9285     *) lt_sed_strip_eq="s,=/,/,g" ;;
9286   esac
9287   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9288   case $lt_search_path_spec in
9289   *\;*)
9290     # if the path contains ";" then we assume it to be the separator
9291     # otherwise default to the standard path separator (i.e. ":") - it is
9292     # assumed that no part of a normal pathname contains ";" but that should
9293     # okay in the real world where ";" in dirpaths is itself problematic.
9294     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9295     ;;
9296   *)
9297     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9298     ;;
9299   esac
9300   # Ok, now we have the path, separated by spaces, we can step through it
9301   # and add multilib dir if necessary.
9302   lt_tmp_lt_search_path_spec=
9303   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9304   for lt_sys_path in $lt_search_path_spec; do
9305     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9306       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9307     else
9308       test -d "$lt_sys_path" && \
9309         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9310     fi
9311   done
9312   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9313 BEGIN {RS=" "; FS="/|\n";} {
9314   lt_foo="";
9315   lt_count=0;
9316   for (lt_i = NF; lt_i > 0; lt_i--) {
9317     if ($lt_i != "" && $lt_i != ".") {
9318       if ($lt_i == "..") {
9319         lt_count++;
9320       } else {
9321         if (lt_count == 0) {
9322           lt_foo="/" $lt_i lt_foo;
9323         } else {
9324           lt_count--;
9325         }
9326       }
9327     }
9328   }
9329   if (lt_foo != "") { lt_freq[lt_foo]++; }
9330   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9331 }'`
9332   # AWK program above erroneously prepends '/' to C:/dos/paths
9333   # for these hosts.
9334   case $host_os in
9335     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9336       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9337   esac
9338   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9339 else
9340   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9341 fi
9342 library_names_spec=
9343 libname_spec='lib$name'
9344 soname_spec=
9345 shrext_cmds=".so"
9346 postinstall_cmds=
9347 postuninstall_cmds=
9348 finish_cmds=
9349 finish_eval=
9350 shlibpath_var=
9351 shlibpath_overrides_runpath=unknown
9352 version_type=none
9353 dynamic_linker="$host_os ld.so"
9354 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9355 need_lib_prefix=unknown
9356 hardcode_into_libs=no
9357
9358 # when you set need_version to no, make sure it does not cause -set_version
9359 # flags to be left without arguments
9360 need_version=unknown
9361
9362 case $host_os in
9363 aix3*)
9364   version_type=linux
9365   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9366   shlibpath_var=LIBPATH
9367
9368   # AIX 3 has no versioning support, so we append a major version to the name.
9369   soname_spec='${libname}${release}${shared_ext}$major'
9370   ;;
9371
9372 aix[4-9]*)
9373   version_type=linux
9374   need_lib_prefix=no
9375   need_version=no
9376   hardcode_into_libs=yes
9377   if test "$host_cpu" = ia64; then
9378     # AIX 5 supports IA64
9379     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9380     shlibpath_var=LD_LIBRARY_PATH
9381   else
9382     # With GCC up to 2.95.x, collect2 would create an import file
9383     # for dependence libraries.  The import file would start with
9384     # the line `#! .'.  This would cause the generated library to
9385     # depend on `.', always an invalid library.  This was fixed in
9386     # development snapshots of GCC prior to 3.0.
9387     case $host_os in
9388       aix4 | aix4.[01] | aix4.[01].*)
9389       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9390            echo ' yes '
9391            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9392         :
9393       else
9394         can_build_shared=no
9395       fi
9396       ;;
9397     esac
9398     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9399     # soname into executable. Probably we can add versioning support to
9400     # collect2, so additional links can be useful in future.
9401     if test "$aix_use_runtimelinking" = yes; then
9402       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9403       # instead of lib<name>.a to let people know that these are not
9404       # typical AIX shared libraries.
9405       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9406     else
9407       # We preserve .a as extension for shared libraries through AIX4.2
9408       # and later when we are not doing run time linking.
9409       library_names_spec='${libname}${release}.a $libname.a'
9410       soname_spec='${libname}${release}${shared_ext}$major'
9411     fi
9412     shlibpath_var=LIBPATH
9413   fi
9414   ;;
9415
9416 amigaos*)
9417   case $host_cpu in
9418   powerpc)
9419     # Since July 2007 AmigaOS4 officially supports .so libraries.
9420     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9421     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9422     ;;
9423   m68k)
9424     library_names_spec='$libname.ixlibrary $libname.a'
9425     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9426     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'
9427     ;;
9428   esac
9429   ;;
9430
9431 beos*)
9432   library_names_spec='${libname}${shared_ext}'
9433   dynamic_linker="$host_os ld.so"
9434   shlibpath_var=LIBRARY_PATH
9435   ;;
9436
9437 bsdi[45]*)
9438   version_type=linux
9439   need_version=no
9440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9441   soname_spec='${libname}${release}${shared_ext}$major'
9442   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9443   shlibpath_var=LD_LIBRARY_PATH
9444   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9445   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9446   # the default ld.so.conf also contains /usr/contrib/lib and
9447   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9448   # libtool to hard-code these into programs
9449   ;;
9450
9451 cygwin* | mingw* | pw32* | cegcc*)
9452   version_type=windows
9453   shrext_cmds=".dll"
9454   need_version=no
9455   need_lib_prefix=no
9456
9457   case $GCC,$host_os in
9458   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9459     library_names_spec='$libname.dll.a'
9460     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9461     postinstall_cmds='base_file=`basename \${file}`~
9462       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9463       dldir=$destdir/`dirname \$dlpath`~
9464       test -d \$dldir || mkdir -p \$dldir~
9465       $install_prog $dir/$dlname \$dldir/$dlname~
9466       chmod a+x \$dldir/$dlname~
9467       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9468         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9469       fi'
9470     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9471       dlpath=$dir/\$dldll~
9472        $RM \$dlpath'
9473     shlibpath_overrides_runpath=yes
9474
9475     case $host_os in
9476     cygwin*)
9477       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9478       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9479
9480       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9481       ;;
9482     mingw* | cegcc*)
9483       # MinGW DLLs use traditional 'lib' prefix
9484       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9485       ;;
9486     pw32*)
9487       # pw32 DLLs use 'pw' prefix rather than 'lib'
9488       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9489       ;;
9490     esac
9491     ;;
9492
9493   *)
9494     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9495     ;;
9496   esac
9497   dynamic_linker='Win32 ld.exe'
9498   # FIXME: first we should search . and the directory the executable is in
9499   shlibpath_var=PATH
9500   ;;
9501
9502 darwin* | rhapsody*)
9503   dynamic_linker="$host_os dyld"
9504   version_type=darwin
9505   need_lib_prefix=no
9506   need_version=no
9507   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9508   soname_spec='${libname}${release}${major}$shared_ext'
9509   shlibpath_overrides_runpath=yes
9510   shlibpath_var=DYLD_LIBRARY_PATH
9511   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9512
9513   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9514   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9515   ;;
9516
9517 dgux*)
9518   version_type=linux
9519   need_lib_prefix=no
9520   need_version=no
9521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9522   soname_spec='${libname}${release}${shared_ext}$major'
9523   shlibpath_var=LD_LIBRARY_PATH
9524   ;;
9525
9526 freebsd1*)
9527   dynamic_linker=no
9528   ;;
9529
9530 freebsd* | dragonfly*)
9531   # DragonFly does not have aout.  When/if they implement a new
9532   # versioning mechanism, adjust this.
9533   if test -x /usr/bin/objformat; then
9534     objformat=`/usr/bin/objformat`
9535   else
9536     case $host_os in
9537     freebsd[123]*) objformat=aout ;;
9538     *) objformat=elf ;;
9539     esac
9540   fi
9541   # Handle Gentoo/FreeBSD as it was Linux
9542   case $host_vendor in
9543     gentoo)
9544       version_type=linux ;;
9545     *)
9546       version_type=freebsd-$objformat ;;
9547   esac
9548
9549   case $version_type in
9550     freebsd-elf*)
9551       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9552       need_version=no
9553       need_lib_prefix=no
9554       ;;
9555     freebsd-*)
9556       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9557       need_version=yes
9558       ;;
9559     linux)
9560       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9561       soname_spec='${libname}${release}${shared_ext}$major'
9562       need_lib_prefix=no
9563       need_version=no
9564       ;;
9565   esac
9566   shlibpath_var=LD_LIBRARY_PATH
9567   case $host_os in
9568   freebsd2*)
9569     shlibpath_overrides_runpath=yes
9570     ;;
9571   freebsd3.[01]* | freebsdelf3.[01]*)
9572     shlibpath_overrides_runpath=yes
9573     hardcode_into_libs=yes
9574     ;;
9575   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9576   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9577     shlibpath_overrides_runpath=no
9578     hardcode_into_libs=yes
9579     ;;
9580   *) # from 4.6 on, and DragonFly
9581     shlibpath_overrides_runpath=yes
9582     hardcode_into_libs=yes
9583     ;;
9584   esac
9585   ;;
9586
9587 gnu*)
9588   version_type=linux
9589   need_lib_prefix=no
9590   need_version=no
9591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9592   soname_spec='${libname}${release}${shared_ext}$major'
9593   shlibpath_var=LD_LIBRARY_PATH
9594   hardcode_into_libs=yes
9595   ;;
9596
9597 haiku*)
9598   version_type=linux
9599   need_lib_prefix=no
9600   need_version=no
9601   dynamic_linker="$host_os runtime_loader"
9602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9603   soname_spec='${libname}${release}${shared_ext}$major'
9604   shlibpath_var=LIBRARY_PATH
9605   shlibpath_overrides_runpath=yes
9606   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9607   hardcode_into_libs=yes
9608   ;;
9609
9610 hpux9* | hpux10* | hpux11*)
9611   # Give a soname corresponding to the major version so that dld.sl refuses to
9612   # link against other versions.
9613   version_type=sunos
9614   need_lib_prefix=no
9615   need_version=no
9616   case $host_cpu in
9617   ia64*)
9618     shrext_cmds='.so'
9619     hardcode_into_libs=yes
9620     dynamic_linker="$host_os dld.so"
9621     shlibpath_var=LD_LIBRARY_PATH
9622     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9623     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9624     soname_spec='${libname}${release}${shared_ext}$major'
9625     if test "X$HPUX_IA64_MODE" = X32; then
9626       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9627     else
9628       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9629     fi
9630     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9631     ;;
9632   hppa*64*)
9633     shrext_cmds='.sl'
9634     hardcode_into_libs=yes
9635     dynamic_linker="$host_os dld.sl"
9636     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9637     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9638     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9639     soname_spec='${libname}${release}${shared_ext}$major'
9640     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9641     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9642     ;;
9643   *)
9644     shrext_cmds='.sl'
9645     dynamic_linker="$host_os dld.sl"
9646     shlibpath_var=SHLIB_PATH
9647     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9648     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9649     soname_spec='${libname}${release}${shared_ext}$major'
9650     ;;
9651   esac
9652   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9653   postinstall_cmds='chmod 555 $lib'
9654   # or fails outright, so override atomically:
9655   install_override_mode=555
9656   ;;
9657
9658 interix[3-9]*)
9659   version_type=linux
9660   need_lib_prefix=no
9661   need_version=no
9662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9663   soname_spec='${libname}${release}${shared_ext}$major'
9664   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9665   shlibpath_var=LD_LIBRARY_PATH
9666   shlibpath_overrides_runpath=no
9667   hardcode_into_libs=yes
9668   ;;
9669
9670 irix5* | irix6* | nonstopux*)
9671   case $host_os in
9672     nonstopux*) version_type=nonstopux ;;
9673     *)
9674         if test "$lt_cv_prog_gnu_ld" = yes; then
9675                 version_type=linux
9676         else
9677                 version_type=irix
9678         fi ;;
9679   esac
9680   need_lib_prefix=no
9681   need_version=no
9682   soname_spec='${libname}${release}${shared_ext}$major'
9683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9684   case $host_os in
9685   irix5* | nonstopux*)
9686     libsuff= shlibsuff=
9687     ;;
9688   *)
9689     case $LD in # libtool.m4 will add one of these switches to LD
9690     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9691       libsuff= shlibsuff= libmagic=32-bit;;
9692     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9693       libsuff=32 shlibsuff=N32 libmagic=N32;;
9694     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9695       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9696     *) libsuff= shlibsuff= libmagic=never-match;;
9697     esac
9698     ;;
9699   esac
9700   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9701   shlibpath_overrides_runpath=no
9702   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9703   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9704   hardcode_into_libs=yes
9705   ;;
9706
9707 # No shared lib support for Linux oldld, aout, or coff.
9708 linux*oldld* | linux*aout* | linux*coff*)
9709   dynamic_linker=no
9710   ;;
9711
9712 # This must be Linux ELF.
9713 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9714   version_type=linux
9715   need_lib_prefix=no
9716   need_version=no
9717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9718   soname_spec='${libname}${release}${shared_ext}$major'
9719   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9720   shlibpath_var=LD_LIBRARY_PATH
9721   shlibpath_overrides_runpath=no
9722
9723   # Some binutils ld are patched to set DT_RUNPATH
9724   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9725   $as_echo_n "(cached) " >&6
9726 else
9727   lt_cv_shlibpath_overrides_runpath=no
9728     save_LDFLAGS=$LDFLAGS
9729     save_libdir=$libdir
9730     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9731          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9732     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h.  */
9734
9735 int
9736 main ()
9737 {
9738
9739   ;
9740   return 0;
9741 }
9742 _ACEOF
9743 if ac_fn_c_try_link "$LINENO"; then :
9744   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9745   lt_cv_shlibpath_overrides_runpath=yes
9746 fi
9747 fi
9748 rm -f core conftest.err conftest.$ac_objext \
9749     conftest$ac_exeext conftest.$ac_ext
9750     LDFLAGS=$save_LDFLAGS
9751     libdir=$save_libdir
9752
9753 fi
9754
9755   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9756
9757   # This implies no fast_install, which is unacceptable.
9758   # Some rework will be needed to allow for fast_install
9759   # before this can be enabled.
9760   hardcode_into_libs=yes
9761
9762   # Append ld.so.conf contents to the search path
9763   if test -f /etc/ld.so.conf; then
9764     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' ' '`
9765     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9766   fi
9767
9768   # We used to test for /lib/ld.so.1 and disable shared libraries on
9769   # powerpc, because MkLinux only supported shared libraries with the
9770   # GNU dynamic linker.  Since this was broken with cross compilers,
9771   # most powerpc-linux boxes support dynamic linking these days and
9772   # people can always --disable-shared, the test was removed, and we
9773   # assume the GNU/Linux dynamic linker is in use.
9774   dynamic_linker='GNU/Linux ld.so'
9775   ;;
9776
9777 netbsd*)
9778   version_type=sunos
9779   need_lib_prefix=no
9780   need_version=no
9781   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9782     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9783     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9784     dynamic_linker='NetBSD (a.out) ld.so'
9785   else
9786     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9787     soname_spec='${libname}${release}${shared_ext}$major'
9788     dynamic_linker='NetBSD ld.elf_so'
9789   fi
9790   shlibpath_var=LD_LIBRARY_PATH
9791   shlibpath_overrides_runpath=yes
9792   hardcode_into_libs=yes
9793   ;;
9794
9795 newsos6)
9796   version_type=linux
9797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9798   shlibpath_var=LD_LIBRARY_PATH
9799   shlibpath_overrides_runpath=yes
9800   ;;
9801
9802 *nto* | *qnx*)
9803   version_type=qnx
9804   need_lib_prefix=no
9805   need_version=no
9806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9807   soname_spec='${libname}${release}${shared_ext}$major'
9808   shlibpath_var=LD_LIBRARY_PATH
9809   shlibpath_overrides_runpath=no
9810   hardcode_into_libs=yes
9811   dynamic_linker='ldqnx.so'
9812   ;;
9813
9814 openbsd*)
9815   version_type=sunos
9816   sys_lib_dlsearch_path_spec="/usr/lib"
9817   need_lib_prefix=no
9818   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9819   case $host_os in
9820     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9821     *)                          need_version=no  ;;
9822   esac
9823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9824   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9825   shlibpath_var=LD_LIBRARY_PATH
9826   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9827     case $host_os in
9828       openbsd2.[89] | openbsd2.[89].*)
9829         shlibpath_overrides_runpath=no
9830         ;;
9831       *)
9832         shlibpath_overrides_runpath=yes
9833         ;;
9834       esac
9835   else
9836     shlibpath_overrides_runpath=yes
9837   fi
9838   ;;
9839
9840 os2*)
9841   libname_spec='$name'
9842   shrext_cmds=".dll"
9843   need_lib_prefix=no
9844   library_names_spec='$libname${shared_ext} $libname.a'
9845   dynamic_linker='OS/2 ld.exe'
9846   shlibpath_var=LIBPATH
9847   ;;
9848
9849 osf3* | osf4* | osf5*)
9850   version_type=osf
9851   need_lib_prefix=no
9852   need_version=no
9853   soname_spec='${libname}${release}${shared_ext}$major'
9854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9855   shlibpath_var=LD_LIBRARY_PATH
9856   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9857   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9858   ;;
9859
9860 rdos*)
9861   dynamic_linker=no
9862   ;;
9863
9864 solaris*)
9865   version_type=linux
9866   need_lib_prefix=no
9867   need_version=no
9868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9869   soname_spec='${libname}${release}${shared_ext}$major'
9870   shlibpath_var=LD_LIBRARY_PATH
9871   shlibpath_overrides_runpath=yes
9872   hardcode_into_libs=yes
9873   # ldd complains unless libraries are executable
9874   postinstall_cmds='chmod +x $lib'
9875   ;;
9876
9877 sunos4*)
9878   version_type=sunos
9879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9880   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9881   shlibpath_var=LD_LIBRARY_PATH
9882   shlibpath_overrides_runpath=yes
9883   if test "$with_gnu_ld" = yes; then
9884     need_lib_prefix=no
9885   fi
9886   need_version=yes
9887   ;;
9888
9889 sysv4 | sysv4.3*)
9890   version_type=linux
9891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9892   soname_spec='${libname}${release}${shared_ext}$major'
9893   shlibpath_var=LD_LIBRARY_PATH
9894   case $host_vendor in
9895     sni)
9896       shlibpath_overrides_runpath=no
9897       need_lib_prefix=no
9898       runpath_var=LD_RUN_PATH
9899       ;;
9900     siemens)
9901       need_lib_prefix=no
9902       ;;
9903     motorola)
9904       need_lib_prefix=no
9905       need_version=no
9906       shlibpath_overrides_runpath=no
9907       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9908       ;;
9909   esac
9910   ;;
9911
9912 sysv4*MP*)
9913   if test -d /usr/nec ;then
9914     version_type=linux
9915     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9916     soname_spec='$libname${shared_ext}.$major'
9917     shlibpath_var=LD_LIBRARY_PATH
9918   fi
9919   ;;
9920
9921 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9922   version_type=freebsd-elf
9923   need_lib_prefix=no
9924   need_version=no
9925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9926   soname_spec='${libname}${release}${shared_ext}$major'
9927   shlibpath_var=LD_LIBRARY_PATH
9928   shlibpath_overrides_runpath=yes
9929   hardcode_into_libs=yes
9930   if test "$with_gnu_ld" = yes; then
9931     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9932   else
9933     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9934     case $host_os in
9935       sco3.2v5*)
9936         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9937         ;;
9938     esac
9939   fi
9940   sys_lib_dlsearch_path_spec='/usr/lib'
9941   ;;
9942
9943 tpf*)
9944   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9945   version_type=linux
9946   need_lib_prefix=no
9947   need_version=no
9948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9949   shlibpath_var=LD_LIBRARY_PATH
9950   shlibpath_overrides_runpath=no
9951   hardcode_into_libs=yes
9952   ;;
9953
9954 uts4*)
9955   version_type=linux
9956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9957   soname_spec='${libname}${release}${shared_ext}$major'
9958   shlibpath_var=LD_LIBRARY_PATH
9959   ;;
9960
9961 *)
9962   dynamic_linker=no
9963   ;;
9964 esac
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9966 $as_echo "$dynamic_linker" >&6; }
9967 test "$dynamic_linker" = no && can_build_shared=no
9968
9969 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9970 if test "$GCC" = yes; then
9971   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9972 fi
9973
9974 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9975   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9976 fi
9977 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9978   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9979 fi
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10073 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10074 hardcode_action=
10075 if test -n "$hardcode_libdir_flag_spec" ||
10076    test -n "$runpath_var" ||
10077    test "X$hardcode_automatic" = "Xyes" ; then
10078
10079   # We can hardcode non-existent directories.
10080   if test "$hardcode_direct" != no &&
10081      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10082      # have to relink, otherwise we might link with an installed library
10083      # when we should be linking with a yet-to-be-installed one
10084      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10085      test "$hardcode_minus_L" != no; then
10086     # Linking always hardcodes the temporary library directory.
10087     hardcode_action=relink
10088   else
10089     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10090     hardcode_action=immediate
10091   fi
10092 else
10093   # We cannot hardcode anything, or else we can only hardcode existing
10094   # directories.
10095   hardcode_action=unsupported
10096 fi
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10098 $as_echo "$hardcode_action" >&6; }
10099
10100 if test "$hardcode_action" = relink ||
10101    test "$inherit_rpath" = yes; then
10102   # Fast installation is not supported
10103   enable_fast_install=no
10104 elif test "$shlibpath_overrides_runpath" = yes ||
10105      test "$enable_shared" = no; then
10106   # Fast installation is not necessary
10107   enable_fast_install=needless
10108 fi
10109
10110
10111
10112
10113
10114
10115   if test "x$enable_dlopen" != xyes; then
10116   enable_dlopen=unknown
10117   enable_dlopen_self=unknown
10118   enable_dlopen_self_static=unknown
10119 else
10120   lt_cv_dlopen=no
10121   lt_cv_dlopen_libs=
10122
10123   case $host_os in
10124   beos*)
10125     lt_cv_dlopen="load_add_on"
10126     lt_cv_dlopen_libs=
10127     lt_cv_dlopen_self=yes
10128     ;;
10129
10130   mingw* | pw32* | cegcc*)
10131     lt_cv_dlopen="LoadLibrary"
10132     lt_cv_dlopen_libs=
10133     ;;
10134
10135   cygwin*)
10136     lt_cv_dlopen="dlopen"
10137     lt_cv_dlopen_libs=
10138     ;;
10139
10140   darwin*)
10141   # if libdl is installed we need to link against it
10142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10143 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10144 if ${ac_cv_lib_dl_dlopen+:} false; then :
10145   $as_echo_n "(cached) " >&6
10146 else
10147   ac_check_lib_save_LIBS=$LIBS
10148 LIBS="-ldl  $LIBS"
10149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150 /* end confdefs.h.  */
10151
10152 /* Override any GCC internal prototype to avoid an error.
10153    Use char because int might match the return type of a GCC
10154    builtin and then its argument prototype would still apply.  */
10155 #ifdef __cplusplus
10156 extern "C"
10157 #endif
10158 char dlopen ();
10159 int
10160 main ()
10161 {
10162 return dlopen ();
10163   ;
10164   return 0;
10165 }
10166 _ACEOF
10167 if ac_fn_c_try_link "$LINENO"; then :
10168   ac_cv_lib_dl_dlopen=yes
10169 else
10170   ac_cv_lib_dl_dlopen=no
10171 fi
10172 rm -f core conftest.err conftest.$ac_objext \
10173     conftest$ac_exeext conftest.$ac_ext
10174 LIBS=$ac_check_lib_save_LIBS
10175 fi
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10177 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10178 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10179   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10180 else
10181
10182     lt_cv_dlopen="dyld"
10183     lt_cv_dlopen_libs=
10184     lt_cv_dlopen_self=yes
10185
10186 fi
10187
10188     ;;
10189
10190   *)
10191     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10192 if test "x$ac_cv_func_shl_load" = xyes; then :
10193   lt_cv_dlopen="shl_load"
10194 else
10195   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10196 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10197 if ${ac_cv_lib_dld_shl_load+:} false; then :
10198   $as_echo_n "(cached) " >&6
10199 else
10200   ac_check_lib_save_LIBS=$LIBS
10201 LIBS="-ldld  $LIBS"
10202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h.  */
10204
10205 /* Override any GCC internal prototype to avoid an error.
10206    Use char because int might match the return type of a GCC
10207    builtin and then its argument prototype would still apply.  */
10208 #ifdef __cplusplus
10209 extern "C"
10210 #endif
10211 char shl_load ();
10212 int
10213 main ()
10214 {
10215 return shl_load ();
10216   ;
10217   return 0;
10218 }
10219 _ACEOF
10220 if ac_fn_c_try_link "$LINENO"; then :
10221   ac_cv_lib_dld_shl_load=yes
10222 else
10223   ac_cv_lib_dld_shl_load=no
10224 fi
10225 rm -f core conftest.err conftest.$ac_objext \
10226     conftest$ac_exeext conftest.$ac_ext
10227 LIBS=$ac_check_lib_save_LIBS
10228 fi
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10230 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10231 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10232   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10233 else
10234   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10235 if test "x$ac_cv_func_dlopen" = xyes; then :
10236   lt_cv_dlopen="dlopen"
10237 else
10238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10239 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10240 if ${ac_cv_lib_dl_dlopen+:} false; then :
10241   $as_echo_n "(cached) " >&6
10242 else
10243   ac_check_lib_save_LIBS=$LIBS
10244 LIBS="-ldl  $LIBS"
10245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10246 /* end confdefs.h.  */
10247
10248 /* Override any GCC internal prototype to avoid an error.
10249    Use char because int might match the return type of a GCC
10250    builtin and then its argument prototype would still apply.  */
10251 #ifdef __cplusplus
10252 extern "C"
10253 #endif
10254 char dlopen ();
10255 int
10256 main ()
10257 {
10258 return dlopen ();
10259   ;
10260   return 0;
10261 }
10262 _ACEOF
10263 if ac_fn_c_try_link "$LINENO"; then :
10264   ac_cv_lib_dl_dlopen=yes
10265 else
10266   ac_cv_lib_dl_dlopen=no
10267 fi
10268 rm -f core conftest.err conftest.$ac_objext \
10269     conftest$ac_exeext conftest.$ac_ext
10270 LIBS=$ac_check_lib_save_LIBS
10271 fi
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10273 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10274 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10275   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10276 else
10277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10278 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10279 if ${ac_cv_lib_svld_dlopen+:} false; then :
10280   $as_echo_n "(cached) " >&6
10281 else
10282   ac_check_lib_save_LIBS=$LIBS
10283 LIBS="-lsvld  $LIBS"
10284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285 /* end confdefs.h.  */
10286
10287 /* Override any GCC internal prototype to avoid an error.
10288    Use char because int might match the return type of a GCC
10289    builtin and then its argument prototype would still apply.  */
10290 #ifdef __cplusplus
10291 extern "C"
10292 #endif
10293 char dlopen ();
10294 int
10295 main ()
10296 {
10297 return dlopen ();
10298   ;
10299   return 0;
10300 }
10301 _ACEOF
10302 if ac_fn_c_try_link "$LINENO"; then :
10303   ac_cv_lib_svld_dlopen=yes
10304 else
10305   ac_cv_lib_svld_dlopen=no
10306 fi
10307 rm -f core conftest.err conftest.$ac_objext \
10308     conftest$ac_exeext conftest.$ac_ext
10309 LIBS=$ac_check_lib_save_LIBS
10310 fi
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10312 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10313 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10314   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10315 else
10316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10317 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10318 if ${ac_cv_lib_dld_dld_link+:} false; then :
10319   $as_echo_n "(cached) " >&6
10320 else
10321   ac_check_lib_save_LIBS=$LIBS
10322 LIBS="-ldld  $LIBS"
10323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324 /* end confdefs.h.  */
10325
10326 /* Override any GCC internal prototype to avoid an error.
10327    Use char because int might match the return type of a GCC
10328    builtin and then its argument prototype would still apply.  */
10329 #ifdef __cplusplus
10330 extern "C"
10331 #endif
10332 char dld_link ();
10333 int
10334 main ()
10335 {
10336 return dld_link ();
10337   ;
10338   return 0;
10339 }
10340 _ACEOF
10341 if ac_fn_c_try_link "$LINENO"; then :
10342   ac_cv_lib_dld_dld_link=yes
10343 else
10344   ac_cv_lib_dld_dld_link=no
10345 fi
10346 rm -f core conftest.err conftest.$ac_objext \
10347     conftest$ac_exeext conftest.$ac_ext
10348 LIBS=$ac_check_lib_save_LIBS
10349 fi
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10351 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10352 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10353   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10354 fi
10355
10356
10357 fi
10358
10359
10360 fi
10361
10362
10363 fi
10364
10365
10366 fi
10367
10368
10369 fi
10370
10371     ;;
10372   esac
10373
10374   if test "x$lt_cv_dlopen" != xno; then
10375     enable_dlopen=yes
10376   else
10377     enable_dlopen=no
10378   fi
10379
10380   case $lt_cv_dlopen in
10381   dlopen)
10382     save_CPPFLAGS="$CPPFLAGS"
10383     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10384
10385     save_LDFLAGS="$LDFLAGS"
10386     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10387
10388     save_LIBS="$LIBS"
10389     LIBS="$lt_cv_dlopen_libs $LIBS"
10390
10391     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10392 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10393 if ${lt_cv_dlopen_self+:} false; then :
10394   $as_echo_n "(cached) " >&6
10395 else
10396           if test "$cross_compiling" = yes; then :
10397   lt_cv_dlopen_self=cross
10398 else
10399   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10400   lt_status=$lt_dlunknown
10401   cat > conftest.$ac_ext <<_LT_EOF
10402 #line $LINENO "configure"
10403 #include "confdefs.h"
10404
10405 #if HAVE_DLFCN_H
10406 #include <dlfcn.h>
10407 #endif
10408
10409 #include <stdio.h>
10410
10411 #ifdef RTLD_GLOBAL
10412 #  define LT_DLGLOBAL           RTLD_GLOBAL
10413 #else
10414 #  ifdef DL_GLOBAL
10415 #    define LT_DLGLOBAL         DL_GLOBAL
10416 #  else
10417 #    define LT_DLGLOBAL         0
10418 #  endif
10419 #endif
10420
10421 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10422    find out it does not work in some platform. */
10423 #ifndef LT_DLLAZY_OR_NOW
10424 #  ifdef RTLD_LAZY
10425 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10426 #  else
10427 #    ifdef DL_LAZY
10428 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10429 #    else
10430 #      ifdef RTLD_NOW
10431 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10432 #      else
10433 #        ifdef DL_NOW
10434 #          define LT_DLLAZY_OR_NOW      DL_NOW
10435 #        else
10436 #          define LT_DLLAZY_OR_NOW      0
10437 #        endif
10438 #      endif
10439 #    endif
10440 #  endif
10441 #endif
10442
10443 /* When -fvisbility=hidden is used, assume the code has been annotated
10444    correspondingly for the symbols needed.  */
10445 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10446 void fnord () __attribute__((visibility("default")));
10447 #endif
10448
10449 void fnord () { int i=42; }
10450 int main ()
10451 {
10452   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10453   int status = $lt_dlunknown;
10454
10455   if (self)
10456     {
10457       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10458       else
10459         {
10460           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10461           else puts (dlerror ());
10462         }
10463       /* dlclose (self); */
10464     }
10465   else
10466     puts (dlerror ());
10467
10468   return status;
10469 }
10470 _LT_EOF
10471   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10472   (eval $ac_link) 2>&5
10473   ac_status=$?
10474   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10475   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10476     (./conftest; exit; ) >&5 2>/dev/null
10477     lt_status=$?
10478     case x$lt_status in
10479       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10480       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10481       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10482     esac
10483   else :
10484     # compilation failed
10485     lt_cv_dlopen_self=no
10486   fi
10487 fi
10488 rm -fr conftest*
10489
10490
10491 fi
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10493 $as_echo "$lt_cv_dlopen_self" >&6; }
10494
10495     if test "x$lt_cv_dlopen_self" = xyes; then
10496       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10497       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10498 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10499 if ${lt_cv_dlopen_self_static+:} false; then :
10500   $as_echo_n "(cached) " >&6
10501 else
10502           if test "$cross_compiling" = yes; then :
10503   lt_cv_dlopen_self_static=cross
10504 else
10505   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10506   lt_status=$lt_dlunknown
10507   cat > conftest.$ac_ext <<_LT_EOF
10508 #line $LINENO "configure"
10509 #include "confdefs.h"
10510
10511 #if HAVE_DLFCN_H
10512 #include <dlfcn.h>
10513 #endif
10514
10515 #include <stdio.h>
10516
10517 #ifdef RTLD_GLOBAL
10518 #  define LT_DLGLOBAL           RTLD_GLOBAL
10519 #else
10520 #  ifdef DL_GLOBAL
10521 #    define LT_DLGLOBAL         DL_GLOBAL
10522 #  else
10523 #    define LT_DLGLOBAL         0
10524 #  endif
10525 #endif
10526
10527 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10528    find out it does not work in some platform. */
10529 #ifndef LT_DLLAZY_OR_NOW
10530 #  ifdef RTLD_LAZY
10531 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10532 #  else
10533 #    ifdef DL_LAZY
10534 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10535 #    else
10536 #      ifdef RTLD_NOW
10537 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10538 #      else
10539 #        ifdef DL_NOW
10540 #          define LT_DLLAZY_OR_NOW      DL_NOW
10541 #        else
10542 #          define LT_DLLAZY_OR_NOW      0
10543 #        endif
10544 #      endif
10545 #    endif
10546 #  endif
10547 #endif
10548
10549 /* When -fvisbility=hidden is used, assume the code has been annotated
10550    correspondingly for the symbols needed.  */
10551 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10552 void fnord () __attribute__((visibility("default")));
10553 #endif
10554
10555 void fnord () { int i=42; }
10556 int main ()
10557 {
10558   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10559   int status = $lt_dlunknown;
10560
10561   if (self)
10562     {
10563       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10564       else
10565         {
10566           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10567           else puts (dlerror ());
10568         }
10569       /* dlclose (self); */
10570     }
10571   else
10572     puts (dlerror ());
10573
10574   return status;
10575 }
10576 _LT_EOF
10577   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10578   (eval $ac_link) 2>&5
10579   ac_status=$?
10580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10581   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10582     (./conftest; exit; ) >&5 2>/dev/null
10583     lt_status=$?
10584     case x$lt_status in
10585       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10586       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10587       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10588     esac
10589   else :
10590     # compilation failed
10591     lt_cv_dlopen_self_static=no
10592   fi
10593 fi
10594 rm -fr conftest*
10595
10596
10597 fi
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10599 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10600     fi
10601
10602     CPPFLAGS="$save_CPPFLAGS"
10603     LDFLAGS="$save_LDFLAGS"
10604     LIBS="$save_LIBS"
10605     ;;
10606   esac
10607
10608   case $lt_cv_dlopen_self in
10609   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10610   *) enable_dlopen_self=unknown ;;
10611   esac
10612
10613   case $lt_cv_dlopen_self_static in
10614   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10615   *) enable_dlopen_self_static=unknown ;;
10616   esac
10617 fi
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635 striplib=
10636 old_striplib=
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10638 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10639 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10640   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10641   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10643 $as_echo "yes" >&6; }
10644 else
10645 # FIXME - insert some real tests, host_os isn't really good enough
10646   case $host_os in
10647   darwin*)
10648     if test -n "$STRIP" ; then
10649       striplib="$STRIP -x"
10650       old_striplib="$STRIP -S"
10651       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10652 $as_echo "yes" >&6; }
10653     else
10654       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10655 $as_echo "no" >&6; }
10656     fi
10657     ;;
10658   *)
10659     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10660 $as_echo "no" >&6; }
10661     ;;
10662   esac
10663 fi
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676   # Report which library types will actually be built
10677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10678 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10680 $as_echo "$can_build_shared" >&6; }
10681
10682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10683 $as_echo_n "checking whether to build shared libraries... " >&6; }
10684   test "$can_build_shared" = "no" && enable_shared=no
10685
10686   # On AIX, shared libraries and static libraries use the same namespace, and
10687   # are all built from PIC.
10688   case $host_os in
10689   aix3*)
10690     test "$enable_shared" = yes && enable_static=no
10691     if test -n "$RANLIB"; then
10692       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10693       postinstall_cmds='$RANLIB $lib'
10694     fi
10695     ;;
10696
10697   aix[4-9]*)
10698     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10699       test "$enable_shared" = yes && enable_static=no
10700     fi
10701     ;;
10702   esac
10703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10704 $as_echo "$enable_shared" >&6; }
10705
10706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10707 $as_echo_n "checking whether to build static libraries... " >&6; }
10708   # Make sure either enable_shared or enable_static is yes.
10709   test "$enable_shared" = yes || enable_static=yes
10710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10711 $as_echo "$enable_static" >&6; }
10712
10713
10714
10715
10716 fi
10717 ac_ext=c
10718 ac_cpp='$CPP $CPPFLAGS'
10719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10722
10723 CC="$lt_save_CC"
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737         ac_config_commands="$ac_config_commands libtool"
10738
10739
10740
10741
10742 # Only expand once:
10743
10744
10745 if test -n "$ac_tool_prefix"; then
10746   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10747 set dummy ${ac_tool_prefix}windres; ac_word=$2
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10749 $as_echo_n "checking for $ac_word... " >&6; }
10750 if ${ac_cv_prog_RC+:} false; then :
10751   $as_echo_n "(cached) " >&6
10752 else
10753   if test -n "$RC"; then
10754   ac_cv_prog_RC="$RC" # Let the user override the test.
10755 else
10756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757 for as_dir in $PATH
10758 do
10759   IFS=$as_save_IFS
10760   test -z "$as_dir" && as_dir=.
10761     for ac_exec_ext in '' $ac_executable_extensions; do
10762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10763     ac_cv_prog_RC="${ac_tool_prefix}windres"
10764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10765     break 2
10766   fi
10767 done
10768   done
10769 IFS=$as_save_IFS
10770
10771 fi
10772 fi
10773 RC=$ac_cv_prog_RC
10774 if test -n "$RC"; then
10775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
10776 $as_echo "$RC" >&6; }
10777 else
10778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10779 $as_echo "no" >&6; }
10780 fi
10781
10782
10783 fi
10784 if test -z "$ac_cv_prog_RC"; then
10785   ac_ct_RC=$RC
10786   # Extract the first word of "windres", so it can be a program name with args.
10787 set dummy windres; ac_word=$2
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10789 $as_echo_n "checking for $ac_word... " >&6; }
10790 if ${ac_cv_prog_ac_ct_RC+:} false; then :
10791   $as_echo_n "(cached) " >&6
10792 else
10793   if test -n "$ac_ct_RC"; then
10794   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
10795 else
10796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10797 for as_dir in $PATH
10798 do
10799   IFS=$as_save_IFS
10800   test -z "$as_dir" && as_dir=.
10801     for ac_exec_ext in '' $ac_executable_extensions; do
10802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10803     ac_cv_prog_ac_ct_RC="windres"
10804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10805     break 2
10806   fi
10807 done
10808   done
10809 IFS=$as_save_IFS
10810
10811 fi
10812 fi
10813 ac_ct_RC=$ac_cv_prog_ac_ct_RC
10814 if test -n "$ac_ct_RC"; then
10815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
10816 $as_echo "$ac_ct_RC" >&6; }
10817 else
10818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819 $as_echo "no" >&6; }
10820 fi
10821
10822   if test "x$ac_ct_RC" = x; then
10823     RC=""
10824   else
10825     case $cross_compiling:$ac_tool_warned in
10826 yes:)
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10829 ac_tool_warned=yes ;;
10830 esac
10831     RC=$ac_ct_RC
10832   fi
10833 else
10834   RC="$ac_cv_prog_RC"
10835 fi
10836
10837
10838
10839
10840 # Source file extension for RC test sources.
10841 ac_ext=rc
10842
10843 # Object file extension for compiled RC test sources.
10844 objext=o
10845 objext_RC=$objext
10846
10847 # Code to be used in simple compile tests
10848 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
10849
10850 # Code to be used in simple link tests
10851 lt_simple_link_test_code="$lt_simple_compile_test_code"
10852
10853 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10854
10855
10856
10857
10858
10859
10860 # If no C compiler was specified, use CC.
10861 LTCC=${LTCC-"$CC"}
10862
10863 # If no C compiler flags were specified, use CFLAGS.
10864 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10865
10866 # Allow CC to be a program name with arguments.
10867 compiler=$CC
10868
10869
10870 # save warnings/boilerplate of simple test code
10871 ac_outfile=conftest.$ac_objext
10872 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10873 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10874 _lt_compiler_boilerplate=`cat conftest.err`
10875 $RM conftest*
10876
10877 ac_outfile=conftest.$ac_objext
10878 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10879 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10880 _lt_linker_boilerplate=`cat conftest.err`
10881 $RM -r conftest*
10882
10883
10884 # Allow CC to be a program name with arguments.
10885 lt_save_CC="$CC"
10886 lt_save_GCC=$GCC
10887 GCC=
10888 CC=${RC-"windres"}
10889 compiler=$CC
10890 compiler_RC=$CC
10891 for cc_temp in $compiler""; do
10892   case $cc_temp in
10893     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10894     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10895     \-*) ;;
10896     *) break;;
10897   esac
10898 done
10899 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10900
10901 lt_cv_prog_compiler_c_o_RC=yes
10902
10903 if test -n "$compiler"; then
10904   :
10905
10906
10907
10908 fi
10909
10910 GCC=$lt_save_GCC
10911 ac_ext=c
10912 ac_cpp='$CPP $CPPFLAGS'
10913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10916
10917 CC="$lt_save_CC"
10918
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10920 $as_echo_n "checking for inline... " >&6; }
10921 if ${ac_cv_c_inline+:} false; then :
10922   $as_echo_n "(cached) " >&6
10923 else
10924   ac_cv_c_inline=no
10925 for ac_kw in inline __inline__ __inline; do
10926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927 /* end confdefs.h.  */
10928 #ifndef __cplusplus
10929 typedef int foo_t;
10930 static $ac_kw foo_t static_foo () {return 0; }
10931 $ac_kw foo_t foo () {return 0; }
10932 #endif
10933
10934 _ACEOF
10935 if ac_fn_c_try_compile "$LINENO"; then :
10936   ac_cv_c_inline=$ac_kw
10937 fi
10938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10939   test "$ac_cv_c_inline" != no && break
10940 done
10941
10942 fi
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10944 $as_echo "$ac_cv_c_inline" >&6; }
10945
10946 case $ac_cv_c_inline in
10947   inline | yes) ;;
10948   *)
10949     case $ac_cv_c_inline in
10950       no) ac_val=;;
10951       *) ac_val=$ac_cv_c_inline;;
10952     esac
10953     cat >>confdefs.h <<_ACEOF
10954 #ifndef __cplusplus
10955 #define inline $ac_val
10956 #endif
10957 _ACEOF
10958     ;;
10959 esac
10960
10961 if test "x$CC" != xcc; then
10962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
10963 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
10964 else
10965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
10966 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
10967 fi
10968 set dummy $CC; ac_cc=`$as_echo "$2" |
10969                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10970 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
10971   $as_echo_n "(cached) " >&6
10972 else
10973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10974 /* end confdefs.h.  */
10975
10976 int
10977 main ()
10978 {
10979
10980   ;
10981   return 0;
10982 }
10983 _ACEOF
10984 # Make sure it works both with $CC and with simple cc.
10985 # We do the test twice because some compilers refuse to overwrite an
10986 # existing .o file with -o, though they will create one.
10987 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10988 rm -f conftest2.*
10989 if { { case "(($ac_try" in
10990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991   *) ac_try_echo=$ac_try;;
10992 esac
10993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10994 $as_echo "$ac_try_echo"; } >&5
10995   (eval "$ac_try") 2>&5
10996   ac_status=$?
10997   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10998   test $ac_status = 0; } &&
10999    test -f conftest2.$ac_objext && { { case "(($ac_try" in
11000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001   *) ac_try_echo=$ac_try;;
11002 esac
11003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11004 $as_echo "$ac_try_echo"; } >&5
11005   (eval "$ac_try") 2>&5
11006   ac_status=$?
11007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11008   test $ac_status = 0; };
11009 then
11010   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11011   if test "x$CC" != xcc; then
11012     # Test first that cc exists at all.
11013     if { ac_try='cc -c conftest.$ac_ext >&5'
11014   { { case "(($ac_try" in
11015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016   *) ac_try_echo=$ac_try;;
11017 esac
11018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11019 $as_echo "$ac_try_echo"; } >&5
11020   (eval "$ac_try") 2>&5
11021   ac_status=$?
11022   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11023   test $ac_status = 0; }; }; then
11024       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11025       rm -f conftest2.*
11026       if { { case "(($ac_try" in
11027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028   *) ac_try_echo=$ac_try;;
11029 esac
11030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11031 $as_echo "$ac_try_echo"; } >&5
11032   (eval "$ac_try") 2>&5
11033   ac_status=$?
11034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11035   test $ac_status = 0; } &&
11036          test -f conftest2.$ac_objext && { { case "(($ac_try" in
11037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038   *) ac_try_echo=$ac_try;;
11039 esac
11040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11041 $as_echo "$ac_try_echo"; } >&5
11042   (eval "$ac_try") 2>&5
11043   ac_status=$?
11044   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11045   test $ac_status = 0; };
11046       then
11047         # cc works too.
11048         :
11049       else
11050         # cc exists but doesn't like -o.
11051         eval ac_cv_prog_cc_${ac_cc}_c_o=no
11052       fi
11053     fi
11054   fi
11055 else
11056   eval ac_cv_prog_cc_${ac_cc}_c_o=no
11057 fi
11058 rm -f core conftest*
11059
11060 fi
11061 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11063 $as_echo "yes" >&6; }
11064 else
11065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11066 $as_echo "no" >&6; }
11067
11068 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11069
11070 fi
11071
11072 # FIXME: we rely on the cache variable name because
11073 # there is no other way.
11074 set dummy $CC
11075 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11076 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11077 if test "$am_t" != yes; then
11078    # Losing compiler, so override with the script.
11079    # FIXME: It is wrong to rewrite CC.
11080    # But if we don't then we get into trouble of one sort or another.
11081    # A longer-term fix would be to have automake use am__CC in this case,
11082    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11083    CC="$am_aux_dir/compile $CC"
11084 fi
11085
11086
11087
11088 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
11089
11090
11091 LTLDFLAGS="${LTLDFLAGS} -no-undefined"
11092
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking operating system" >&5
11094 $as_echo_n "checking operating system... " >&6; }
11095 case $host in
11096 *-linux*)
11097         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
11098 $as_echo "Linux" >&6; }
11099         backend="linux"
11100         ;;
11101 *-darwin*)
11102         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin/Mac OS X" >&5
11103 $as_echo "Darwin/Mac OS X" >&6; }
11104         backend="darwin"
11105         ;;
11106 *-openbsd*)
11107         { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
11108 $as_echo "OpenBSD" >&6; }
11109         backend="openbsd"
11110         ;;
11111 *-netbsd*)
11112         { $as_echo "$as_me:${as_lineno-$LINENO}: result: NetBSD (using OpenBSD backend)" >&5
11113 $as_echo "NetBSD (using OpenBSD backend)" >&6; }
11114         backend="openbsd"
11115         ;;
11116 *-mingw*)
11117         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
11118 $as_echo "Windows" >&6; }
11119         backend="windows"
11120         ;;
11121 *-cygwin*)
11122         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cygwin (using Windows backend)" >&5
11123 $as_echo "Cygwin (using Windows backend)" >&6; }
11124         backend="windows"
11125         threads="posix"
11126         ;;
11127 *)
11128         as_fn_error $? "unsupported operating system" "$LINENO" 5
11129 esac
11130 case $backend in
11131 linux)
11132
11133 $as_echo "#define OS_LINUX 1" >>confdefs.h
11134
11135
11136         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
11137 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
11138 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
11139   $as_echo_n "(cached) " >&6
11140 else
11141   ac_check_lib_save_LIBS=$LIBS
11142 LIBS="-lrt  $LIBS"
11143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144 /* end confdefs.h.  */
11145
11146 /* Override any GCC internal prototype to avoid an error.
11147    Use char because int might match the return type of a GCC
11148    builtin and then its argument prototype would still apply.  */
11149 #ifdef __cplusplus
11150 extern "C"
11151 #endif
11152 char clock_gettime ();
11153 int
11154 main ()
11155 {
11156 return clock_gettime ();
11157   ;
11158   return 0;
11159 }
11160 _ACEOF
11161 if ac_fn_c_try_link "$LINENO"; then :
11162   ac_cv_lib_rt_clock_gettime=yes
11163 else
11164   ac_cv_lib_rt_clock_gettime=no
11165 fi
11166 rm -f core conftest.err conftest.$ac_objext \
11167     conftest$ac_exeext conftest.$ac_ext
11168 LIBS=$ac_check_lib_save_LIBS
11169 fi
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
11171 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
11172 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
11173   PC_LIBS_PRIVATE="-lrt"
11174 fi
11175
11176         threads="posix"
11177         THREAD_CFLAGS="-pthread"
11178         PC_LIBS_PRIVATE="${PC_LIBS_PRIVATE} -pthread"
11179         for ac_header in poll.h
11180 do :
11181   ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
11182 if test "x$ac_cv_header_poll_h" = xyes; then :
11183   cat >>confdefs.h <<_ACEOF
11184 #define HAVE_POLL_H 1
11185 _ACEOF
11186
11187 fi
11188
11189 done
11190
11191
11192 $as_echo "#define POLL_NFDS_TYPE nfds_t" >>confdefs.h
11193
11194         ;;
11195 darwin)
11196
11197 $as_echo "#define OS_DARWIN 1" >>confdefs.h
11198
11199
11200         threads="posix"
11201         PC_LIBS_PRIVATE="-lobjc -Wl,-framework,IOKit -Wl,-framework,CoreFoundation"
11202         LTLDFLAGS="${LTLDFLAGS} -Wl,-prebind"
11203         for ac_header in poll.h
11204 do :
11205   ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
11206 if test "x$ac_cv_header_poll_h" = xyes; then :
11207   cat >>confdefs.h <<_ACEOF
11208 #define HAVE_POLL_H 1
11209 _ACEOF
11210
11211 fi
11212
11213 done
11214
11215         ac_fn_c_check_type "$LINENO" "nfds_t" "ac_cv_type_nfds_t" "#include <poll.h>
11216 "
11217 if test "x$ac_cv_type_nfds_t" = xyes; then :
11218
11219 $as_echo "#define POLL_NFDS_TYPE nfds_t" >>confdefs.h
11220
11221 else
11222
11223 $as_echo "#define POLL_NFDS_TYPE unsigned int" >>confdefs.h
11224
11225 fi
11226
11227         ;;
11228 openbsd)
11229
11230 $as_echo "#define OS_OPENBSD 1" >>confdefs.h
11231
11232
11233         threads="posix"
11234         THREAD_CFLAGS="-pthread"
11235         PC_LIBS_PRIVATE="-pthread"
11236         for ac_header in poll.h
11237 do :
11238   ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
11239 if test "x$ac_cv_header_poll_h" = xyes; then :
11240   cat >>confdefs.h <<_ACEOF
11241 #define HAVE_POLL_H 1
11242 _ACEOF
11243
11244 fi
11245
11246 done
11247
11248
11249 $as_echo "#define POLL_NFDS_TYPE nfds_t" >>confdefs.h
11250
11251         ;;
11252 windows)
11253
11254 $as_echo "#define OS_WINDOWS 1" >>confdefs.h
11255
11256
11257         PC_LIBS_PRIVATE=""
11258         LTLDFLAGS="${LTLDFLAGS} -avoid-version -Wl,--add-stdcall-alias"
11259
11260 $as_echo "#define POLL_NFDS_TYPE unsigned int" >>confdefs.h
11261
11262         ;;
11263 esac
11264
11265
11266 LIBS="${LIBS} ${PC_LIBS_PRIVATE}"
11267
11268  if test "x$backend" = xlinux; then
11269   OS_LINUX_TRUE=
11270   OS_LINUX_FALSE='#'
11271 else
11272   OS_LINUX_TRUE='#'
11273   OS_LINUX_FALSE=
11274 fi
11275
11276  if test "x$backend" = xdarwin; then
11277   OS_DARWIN_TRUE=
11278   OS_DARWIN_FALSE='#'
11279 else
11280   OS_DARWIN_TRUE='#'
11281   OS_DARWIN_FALSE=
11282 fi
11283
11284  if test "x$backend" = xopenbsd; then
11285   OS_OPENBSD_TRUE=
11286   OS_OPENBSD_FALSE='#'
11287 else
11288   OS_OPENBSD_TRUE='#'
11289   OS_OPENBSD_FALSE=
11290 fi
11291
11292  if test "x$backend" = xwindows; then
11293   OS_WINDOWS_TRUE=
11294   OS_WINDOWS_FALSE='#'
11295 else
11296   OS_WINDOWS_TRUE='#'
11297   OS_WINDOWS_FALSE=
11298 fi
11299
11300  if test "x$threads" = xposix; then
11301   THREADS_POSIX_TRUE=
11302   THREADS_POSIX_FALSE='#'
11303 else
11304   THREADS_POSIX_TRUE='#'
11305   THREADS_POSIX_FALSE=
11306 fi
11307
11308 if test "$threads" = posix; then
11309
11310 $as_echo "#define THREADS_POSIX 1" >>confdefs.h
11311
11312 fi
11313
11314 # timerfd
11315 ac_fn_c_check_header_mongrel "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default"
11316 if test "x$ac_cv_header_sys_timerfd_h" = xyes; then :
11317   timerfd_h=1
11318 else
11319   timerfd_h=0
11320 fi
11321
11322
11323 # Check whether --enable-timerfd was given.
11324 if test "${enable_timerfd+set}" = set; then :
11325   enableval=$enable_timerfd; use_timerfd=$enableval
11326 else
11327   use_timerfd='auto'
11328 fi
11329
11330
11331 if test "x$use_timerfd" = "xyes" -a "x$timerfd_h" = "x0"; then
11332         as_fn_error $? "timerfd header not available; glibc 2.9+ required" "$LINENO" 5
11333 fi
11334
11335 ac_fn_c_check_decl "$LINENO" "TFD_NONBLOCK" "ac_cv_have_decl_TFD_NONBLOCK" "#include <sys/timerfd.h>
11336 "
11337 if test "x$ac_cv_have_decl_TFD_NONBLOCK" = xyes; then :
11338   tfd_hdr_ok=yes
11339 else
11340   tfd_hdr_ok=no
11341 fi
11342
11343 if test "x$use_timerfd" = "xyes" -a "x$tfd_hdr_ok" = "xno"; then
11344         as_fn_error $? "timerfd header not usable; glibc 2.9+ required" "$LINENO" 5
11345 fi
11346
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use timerfd for timing" >&5
11348 $as_echo_n "checking whether to use timerfd for timing... " >&6; }
11349 if test "x$use_timerfd" = "xno"; then
11350         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (disabled by user)" >&5
11351 $as_echo "no (disabled by user)" >&6; }
11352 else
11353         if test "x$timerfd_h" = "x1" -a "x$tfd_hdr_ok" = "xyes"; then
11354                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11355 $as_echo "yes" >&6; }
11356
11357 $as_echo "#define USBI_TIMERFD_AVAILABLE 1" >>confdefs.h
11358
11359         else
11360                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (header not available)" >&5
11361 $as_echo "no (header not available)" >&6; }
11362         fi
11363 fi
11364
11365 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
11366 if test "x$ac_cv_type_struct_timespec" = xyes; then :
11367
11368 cat >>confdefs.h <<_ACEOF
11369 #define HAVE_STRUCT_TIMESPEC 1
11370 _ACEOF
11371
11372
11373 fi
11374
11375
11376 # Message logging
11377 # Check whether --enable-log was given.
11378 if test "${enable_log+set}" = set; then :
11379   enableval=$enable_log; log_enabled=$enableval
11380 else
11381   log_enabled='yes'
11382 fi
11383
11384 if test "x$log_enabled" != "xno"; then
11385
11386 $as_echo "#define ENABLE_LOGGING 1" >>confdefs.h
11387
11388 fi
11389
11390 # Check whether --enable-debug-log was given.
11391 if test "${enable_debug_log+set}" = set; then :
11392   enableval=$enable_debug_log; debug_log_enabled=$enableval
11393 else
11394   debug_log_enabled='no'
11395 fi
11396
11397 if test "x$debug_log_enabled" != "xno"; then
11398
11399 $as_echo "#define ENABLE_DEBUG_LOGGING 1" >>confdefs.h
11400
11401 fi
11402
11403 # Examples build
11404 # Check whether --enable-examples-build was given.
11405 if test "${enable_examples_build+set}" = set; then :
11406   enableval=$enable_examples_build; build_examples=$enableval
11407 else
11408   build_examples='no'
11409 fi
11410
11411  if test "x$build_examples" != "xno"; then
11412   BUILD_EXAMPLES_TRUE=
11413   BUILD_EXAMPLES_FALSE='#'
11414 else
11415   BUILD_EXAMPLES_TRUE='#'
11416   BUILD_EXAMPLES_FALSE=
11417 fi
11418
11419
11420 # check for -fvisibility=hidden compiler support (GCC >= 3.4)
11421 saved_cflags="$CFLAGS"
11422 # -Werror required for cygwin
11423 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
11424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11425 /* end confdefs.h.  */
11426
11427 int
11428 main ()
11429 {
11430
11431   ;
11432   return 0;
11433 }
11434 _ACEOF
11435 if ac_fn_c_try_compile "$LINENO"; then :
11436   VISIBILITY_CFLAGS="-fvisibility=hidden"
11437
11438 $as_echo "#define DEFAULT_VISIBILITY __attribute__((visibility(\"default\")))" >>confdefs.h
11439
11440 else
11441    VISIBILITY_CFLAGS=""
11442
11443 $as_echo "#define DEFAULT_VISIBILITY /**/" >>confdefs.h
11444
11445 fi
11446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11447 CFLAGS="$saved_cflags"
11448
11449 # check for -Wno-pointer-sign compiler support (GCC >= 4)
11450 saved_cflags="$CFLAGS"
11451 CFLAGS="$CFLAGS -Wno-pointer-sign"
11452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11453 /* end confdefs.h.  */
11454
11455 int
11456 main ()
11457 {
11458
11459   ;
11460   return 0;
11461 }
11462 _ACEOF
11463 if ac_fn_c_try_compile "$LINENO"; then :
11464   nopointersign_cflags="-Wno-pointer-sign"
11465 else
11466   nopointersign_cflags=""
11467 fi
11468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11469 CFLAGS="$saved_cflags"
11470
11471 # sigaction not available on MinGW
11472 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
11473 if test "x$ac_cv_func_sigaction" = xyes; then :
11474   have_sigaction=yes
11475 else
11476   have_sigaction=no
11477 fi
11478
11479  if test "x$have_sigaction" = "xyes"; then
11480   HAVE_SIGACTION_TRUE=
11481   HAVE_SIGACTION_FALSE='#'
11482 else
11483   HAVE_SIGACTION_TRUE='#'
11484   HAVE_SIGACTION_FALSE=
11485 fi
11486
11487
11488 # headers not available on all platforms but required on others
11489 for ac_header in sys/time.h
11490 do :
11491   ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
11492 if test "x$ac_cv_header_sys_time_h" = xyes; then :
11493   cat >>confdefs.h <<_ACEOF
11494 #define HAVE_SYS_TIME_H 1
11495 _ACEOF
11496
11497 fi
11498
11499 done
11500
11501 for ac_func in gettimeofday
11502 do :
11503   ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
11504 if test "x$ac_cv_func_gettimeofday" = xyes; then :
11505   cat >>confdefs.h <<_ACEOF
11506 #define HAVE_GETTIMEOFDAY 1
11507 _ACEOF
11508
11509 fi
11510 done
11511
11512
11513 AM_CFLAGS="-std=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration $nopointersign_cflags -Wshadow"
11514
11515
11516
11517
11518
11519 ac_config_files="$ac_config_files libusb-1.0.pc"
11520
11521 ac_config_files="$ac_config_files Makefile"
11522
11523 ac_config_files="$ac_config_files libusb/Makefile"
11524
11525 ac_config_files="$ac_config_files examples/Makefile"
11526
11527 ac_config_files="$ac_config_files doc/Makefile"
11528
11529 ac_config_files="$ac_config_files doc/doxygen.cfg"
11530
11531 cat >confcache <<\_ACEOF
11532 # This file is a shell script that caches the results of configure
11533 # tests run on this system so they can be shared between configure
11534 # scripts and configure runs, see configure's option --config-cache.
11535 # It is not useful on other systems.  If it contains results you don't
11536 # want to keep, you may remove or edit it.
11537 #
11538 # config.status only pays attention to the cache file if you give it
11539 # the --recheck option to rerun configure.
11540 #
11541 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11542 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11543 # following values.
11544
11545 _ACEOF
11546
11547 # The following way of writing the cache mishandles newlines in values,
11548 # but we know of no workaround that is simple, portable, and efficient.
11549 # So, we kill variables containing newlines.
11550 # Ultrix sh set writes to stderr and can't be redirected directly,
11551 # and sets the high bit in the cache file unless we assign to the vars.
11552 (
11553   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11554     eval ac_val=\$$ac_var
11555     case $ac_val in #(
11556     *${as_nl}*)
11557       case $ac_var in #(
11558       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11559 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11560       esac
11561       case $ac_var in #(
11562       _ | IFS | as_nl) ;; #(
11563       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11564       *) { eval $ac_var=; unset $ac_var;} ;;
11565       esac ;;
11566     esac
11567   done
11568
11569   (set) 2>&1 |
11570     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11571     *${as_nl}ac_space=\ *)
11572       # `set' does not quote correctly, so add quotes: double-quote
11573       # substitution turns \\\\ into \\, and sed turns \\ into \.
11574       sed -n \
11575         "s/'/'\\\\''/g;
11576           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11577       ;; #(
11578     *)
11579       # `set' quotes correctly as required by POSIX, so do not add quotes.
11580       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11581       ;;
11582     esac |
11583     sort
11584 ) |
11585   sed '
11586      /^ac_cv_env_/b end
11587      t clear
11588      :clear
11589      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11590      t end
11591      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11592      :end' >>confcache
11593 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11594   if test -w "$cache_file"; then
11595     if test "x$cache_file" != "x/dev/null"; then
11596       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11597 $as_echo "$as_me: updating cache $cache_file" >&6;}
11598       if test ! -f "$cache_file" || test -h "$cache_file"; then
11599         cat confcache >"$cache_file"
11600       else
11601         case $cache_file in #(
11602         */* | ?:*)
11603           mv -f confcache "$cache_file"$$ &&
11604           mv -f "$cache_file"$$ "$cache_file" ;; #(
11605         *)
11606           mv -f confcache "$cache_file" ;;
11607         esac
11608       fi
11609     fi
11610   else
11611     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11612 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11613   fi
11614 fi
11615 rm -f confcache
11616
11617 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11618 # Let make expand exec_prefix.
11619 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11620
11621 DEFS=-DHAVE_CONFIG_H
11622
11623 ac_libobjs=
11624 ac_ltlibobjs=
11625 U=
11626 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11627   # 1. Remove the extension, and $U if already installed.
11628   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11629   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11630   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11631   #    will be set to the directory where LIBOBJS objects are built.
11632   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11633   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11634 done
11635 LIBOBJS=$ac_libobjs
11636
11637 LTLIBOBJS=$ac_ltlibobjs
11638
11639
11640  if test -n "$EXEEXT"; then
11641   am__EXEEXT_TRUE=
11642   am__EXEEXT_FALSE='#'
11643 else
11644   am__EXEEXT_TRUE='#'
11645   am__EXEEXT_FALSE=
11646 fi
11647
11648 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11649   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11651 fi
11652 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11653   as_fn_error $? "conditional \"AMDEP\" was never defined.
11654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11655 fi
11656 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11657   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11659 fi
11660 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
11661   as_fn_error $? "conditional \"OS_LINUX\" was never defined.
11662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11663 fi
11664 if test -z "${OS_DARWIN_TRUE}" && test -z "${OS_DARWIN_FALSE}"; then
11665   as_fn_error $? "conditional \"OS_DARWIN\" was never defined.
11666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11667 fi
11668 if test -z "${OS_OPENBSD_TRUE}" && test -z "${OS_OPENBSD_FALSE}"; then
11669   as_fn_error $? "conditional \"OS_OPENBSD\" was never defined.
11670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11671 fi
11672 if test -z "${OS_WINDOWS_TRUE}" && test -z "${OS_WINDOWS_FALSE}"; then
11673   as_fn_error $? "conditional \"OS_WINDOWS\" was never defined.
11674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11675 fi
11676 if test -z "${THREADS_POSIX_TRUE}" && test -z "${THREADS_POSIX_FALSE}"; then
11677   as_fn_error $? "conditional \"THREADS_POSIX\" was never defined.
11678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11679 fi
11680 if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
11681   as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
11682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11683 fi
11684 if test -z "${HAVE_SIGACTION_TRUE}" && test -z "${HAVE_SIGACTION_FALSE}"; then
11685   as_fn_error $? "conditional \"HAVE_SIGACTION\" was never defined.
11686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11687 fi
11688
11689 : "${CONFIG_STATUS=./config.status}"
11690 ac_write_fail=0
11691 ac_clean_files_save=$ac_clean_files
11692 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11694 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11695 as_write_fail=0
11696 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11697 #! $SHELL
11698 # Generated by $as_me.
11699 # Run this file to recreate the current configuration.
11700 # Compiler output produced by configure, useful for debugging
11701 # configure, is in config.log if it exists.
11702
11703 debug=false
11704 ac_cs_recheck=false
11705 ac_cs_silent=false
11706
11707 SHELL=\${CONFIG_SHELL-$SHELL}
11708 export SHELL
11709 _ASEOF
11710 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11711 ## -------------------- ##
11712 ## M4sh Initialization. ##
11713 ## -------------------- ##
11714
11715 # Be more Bourne compatible
11716 DUALCASE=1; export DUALCASE # for MKS sh
11717 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11718   emulate sh
11719   NULLCMD=:
11720   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11721   # is contrary to our usage.  Disable this feature.
11722   alias -g '${1+"$@"}'='"$@"'
11723   setopt NO_GLOB_SUBST
11724 else
11725   case `(set -o) 2>/dev/null` in #(
11726   *posix*) :
11727     set -o posix ;; #(
11728   *) :
11729      ;;
11730 esac
11731 fi
11732
11733
11734 as_nl='
11735 '
11736 export as_nl
11737 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11738 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11739 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11740 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11741 # Prefer a ksh shell builtin over an external printf program on Solaris,
11742 # but without wasting forks for bash or zsh.
11743 if test -z "$BASH_VERSION$ZSH_VERSION" \
11744     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11745   as_echo='print -r --'
11746   as_echo_n='print -rn --'
11747 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11748   as_echo='printf %s\n'
11749   as_echo_n='printf %s'
11750 else
11751   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11752     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11753     as_echo_n='/usr/ucb/echo -n'
11754   else
11755     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11756     as_echo_n_body='eval
11757       arg=$1;
11758       case $arg in #(
11759       *"$as_nl"*)
11760         expr "X$arg" : "X\\(.*\\)$as_nl";
11761         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11762       esac;
11763       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11764     '
11765     export as_echo_n_body
11766     as_echo_n='sh -c $as_echo_n_body as_echo'
11767   fi
11768   export as_echo_body
11769   as_echo='sh -c $as_echo_body as_echo'
11770 fi
11771
11772 # The user is always right.
11773 if test "${PATH_SEPARATOR+set}" != set; then
11774   PATH_SEPARATOR=:
11775   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11776     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11777       PATH_SEPARATOR=';'
11778   }
11779 fi
11780
11781
11782 # IFS
11783 # We need space, tab and new line, in precisely that order.  Quoting is
11784 # there to prevent editors from complaining about space-tab.
11785 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11786 # splitting by setting IFS to empty value.)
11787 IFS=" ""        $as_nl"
11788
11789 # Find who we are.  Look in the path if we contain no directory separator.
11790 as_myself=
11791 case $0 in #((
11792   *[\\/]* ) as_myself=$0 ;;
11793   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11794 for as_dir in $PATH
11795 do
11796   IFS=$as_save_IFS
11797   test -z "$as_dir" && as_dir=.
11798     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11799   done
11800 IFS=$as_save_IFS
11801
11802      ;;
11803 esac
11804 # We did not find ourselves, most probably we were run as `sh COMMAND'
11805 # in which case we are not to be found in the path.
11806 if test "x$as_myself" = x; then
11807   as_myself=$0
11808 fi
11809 if test ! -f "$as_myself"; then
11810   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11811   exit 1
11812 fi
11813
11814 # Unset variables that we do not need and which cause bugs (e.g. in
11815 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11816 # suppresses any "Segmentation fault" message there.  '((' could
11817 # trigger a bug in pdksh 5.2.14.
11818 for as_var in BASH_ENV ENV MAIL MAILPATH
11819 do eval test x\${$as_var+set} = xset \
11820   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11821 done
11822 PS1='$ '
11823 PS2='> '
11824 PS4='+ '
11825
11826 # NLS nuisances.
11827 LC_ALL=C
11828 export LC_ALL
11829 LANGUAGE=C
11830 export LANGUAGE
11831
11832 # CDPATH.
11833 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11834
11835
11836 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11837 # ----------------------------------------
11838 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11839 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11840 # script with STATUS, using 1 if that was 0.
11841 as_fn_error ()
11842 {
11843   as_status=$1; test $as_status -eq 0 && as_status=1
11844   if test "$4"; then
11845     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11846     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11847   fi
11848   $as_echo "$as_me: error: $2" >&2
11849   as_fn_exit $as_status
11850 } # as_fn_error
11851
11852
11853 # as_fn_set_status STATUS
11854 # -----------------------
11855 # Set $? to STATUS, without forking.
11856 as_fn_set_status ()
11857 {
11858   return $1
11859 } # as_fn_set_status
11860
11861 # as_fn_exit STATUS
11862 # -----------------
11863 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11864 as_fn_exit ()
11865 {
11866   set +e
11867   as_fn_set_status $1
11868   exit $1
11869 } # as_fn_exit
11870
11871 # as_fn_unset VAR
11872 # ---------------
11873 # Portably unset VAR.
11874 as_fn_unset ()
11875 {
11876   { eval $1=; unset $1;}
11877 }
11878 as_unset=as_fn_unset
11879 # as_fn_append VAR VALUE
11880 # ----------------------
11881 # Append the text in VALUE to the end of the definition contained in VAR. Take
11882 # advantage of any shell optimizations that allow amortized linear growth over
11883 # repeated appends, instead of the typical quadratic growth present in naive
11884 # implementations.
11885 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11886   eval 'as_fn_append ()
11887   {
11888     eval $1+=\$2
11889   }'
11890 else
11891   as_fn_append ()
11892   {
11893     eval $1=\$$1\$2
11894   }
11895 fi # as_fn_append
11896
11897 # as_fn_arith ARG...
11898 # ------------------
11899 # Perform arithmetic evaluation on the ARGs, and store the result in the
11900 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11901 # must be portable across $(()) and expr.
11902 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11903   eval 'as_fn_arith ()
11904   {
11905     as_val=$(( $* ))
11906   }'
11907 else
11908   as_fn_arith ()
11909   {
11910     as_val=`expr "$@" || test $? -eq 1`
11911   }
11912 fi # as_fn_arith
11913
11914
11915 if expr a : '\(a\)' >/dev/null 2>&1 &&
11916    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11917   as_expr=expr
11918 else
11919   as_expr=false
11920 fi
11921
11922 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11923   as_basename=basename
11924 else
11925   as_basename=false
11926 fi
11927
11928 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11929   as_dirname=dirname
11930 else
11931   as_dirname=false
11932 fi
11933
11934 as_me=`$as_basename -- "$0" ||
11935 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11936          X"$0" : 'X\(//\)$' \| \
11937          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11938 $as_echo X/"$0" |
11939     sed '/^.*\/\([^/][^/]*\)\/*$/{
11940             s//\1/
11941             q
11942           }
11943           /^X\/\(\/\/\)$/{
11944             s//\1/
11945             q
11946           }
11947           /^X\/\(\/\).*/{
11948             s//\1/
11949             q
11950           }
11951           s/.*/./; q'`
11952
11953 # Avoid depending upon Character Ranges.
11954 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11955 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11956 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11957 as_cr_digits='0123456789'
11958 as_cr_alnum=$as_cr_Letters$as_cr_digits
11959
11960 ECHO_C= ECHO_N= ECHO_T=
11961 case `echo -n x` in #(((((
11962 -n*)
11963   case `echo 'xy\c'` in
11964   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11965   xy)  ECHO_C='\c';;
11966   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11967        ECHO_T=' ';;
11968   esac;;
11969 *)
11970   ECHO_N='-n';;
11971 esac
11972
11973 rm -f conf$$ conf$$.exe conf$$.file
11974 if test -d conf$$.dir; then
11975   rm -f conf$$.dir/conf$$.file
11976 else
11977   rm -f conf$$.dir
11978   mkdir conf$$.dir 2>/dev/null
11979 fi
11980 if (echo >conf$$.file) 2>/dev/null; then
11981   if ln -s conf$$.file conf$$ 2>/dev/null; then
11982     as_ln_s='ln -s'
11983     # ... but there are two gotchas:
11984     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11985     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11986     # In both cases, we have to default to `cp -p'.
11987     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11988       as_ln_s='cp -p'
11989   elif ln conf$$.file conf$$ 2>/dev/null; then
11990     as_ln_s=ln
11991   else
11992     as_ln_s='cp -p'
11993   fi
11994 else
11995   as_ln_s='cp -p'
11996 fi
11997 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11998 rmdir conf$$.dir 2>/dev/null
11999
12000
12001 # as_fn_mkdir_p
12002 # -------------
12003 # Create "$as_dir" as a directory, including parents if necessary.
12004 as_fn_mkdir_p ()
12005 {
12006
12007   case $as_dir in #(
12008   -*) as_dir=./$as_dir;;
12009   esac
12010   test -d "$as_dir" || eval $as_mkdir_p || {
12011     as_dirs=
12012     while :; do
12013       case $as_dir in #(
12014       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12015       *) as_qdir=$as_dir;;
12016       esac
12017       as_dirs="'$as_qdir' $as_dirs"
12018       as_dir=`$as_dirname -- "$as_dir" ||
12019 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12020          X"$as_dir" : 'X\(//\)[^/]' \| \
12021          X"$as_dir" : 'X\(//\)$' \| \
12022          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12023 $as_echo X"$as_dir" |
12024     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12025             s//\1/
12026             q
12027           }
12028           /^X\(\/\/\)[^/].*/{
12029             s//\1/
12030             q
12031           }
12032           /^X\(\/\/\)$/{
12033             s//\1/
12034             q
12035           }
12036           /^X\(\/\).*/{
12037             s//\1/
12038             q
12039           }
12040           s/.*/./; q'`
12041       test -d "$as_dir" && break
12042     done
12043     test -z "$as_dirs" || eval "mkdir $as_dirs"
12044   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12045
12046
12047 } # as_fn_mkdir_p
12048 if mkdir -p . 2>/dev/null; then
12049   as_mkdir_p='mkdir -p "$as_dir"'
12050 else
12051   test -d ./-p && rmdir ./-p
12052   as_mkdir_p=false
12053 fi
12054
12055 if test -x / >/dev/null 2>&1; then
12056   as_test_x='test -x'
12057 else
12058   if ls -dL / >/dev/null 2>&1; then
12059     as_ls_L_option=L
12060   else
12061     as_ls_L_option=
12062   fi
12063   as_test_x='
12064     eval sh -c '\''
12065       if test -d "$1"; then
12066         test -d "$1/.";
12067       else
12068         case $1 in #(
12069         -*)set "./$1";;
12070         esac;
12071         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12072         ???[sx]*):;;*)false;;esac;fi
12073     '\'' sh
12074   '
12075 fi
12076 as_executable_p=$as_test_x
12077
12078 # Sed expression to map a string onto a valid CPP name.
12079 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12080
12081 # Sed expression to map a string onto a valid variable name.
12082 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12083
12084
12085 exec 6>&1
12086 ## ----------------------------------- ##
12087 ## Main body of $CONFIG_STATUS script. ##
12088 ## ----------------------------------- ##
12089 _ASEOF
12090 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12091
12092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12093 # Save the log message, to keep $0 and so on meaningful, and to
12094 # report actual input values of CONFIG_FILES etc. instead of their
12095 # values after options handling.
12096 ac_log="
12097 This file was extended by libusb $as_me 1.0.9, which was
12098 generated by GNU Autoconf 2.68.  Invocation command line was
12099
12100   CONFIG_FILES    = $CONFIG_FILES
12101   CONFIG_HEADERS  = $CONFIG_HEADERS
12102   CONFIG_LINKS    = $CONFIG_LINKS
12103   CONFIG_COMMANDS = $CONFIG_COMMANDS
12104   $ $0 $@
12105
12106 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12107 "
12108
12109 _ACEOF
12110
12111 case $ac_config_files in *"
12112 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12113 esac
12114
12115 case $ac_config_headers in *"
12116 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12117 esac
12118
12119
12120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12121 # Files that config.status was made for.
12122 config_files="$ac_config_files"
12123 config_headers="$ac_config_headers"
12124 config_commands="$ac_config_commands"
12125
12126 _ACEOF
12127
12128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12129 ac_cs_usage="\
12130 \`$as_me' instantiates files and other configuration actions
12131 from templates according to the current configuration.  Unless the files
12132 and actions are specified as TAGs, all are instantiated by default.
12133
12134 Usage: $0 [OPTION]... [TAG]...
12135
12136   -h, --help       print this help, then exit
12137   -V, --version    print version number and configuration settings, then exit
12138       --config     print configuration, then exit
12139   -q, --quiet, --silent
12140                    do not print progress messages
12141   -d, --debug      don't remove temporary files
12142       --recheck    update $as_me by reconfiguring in the same conditions
12143       --file=FILE[:TEMPLATE]
12144                    instantiate the configuration file FILE
12145       --header=FILE[:TEMPLATE]
12146                    instantiate the configuration header FILE
12147
12148 Configuration files:
12149 $config_files
12150
12151 Configuration headers:
12152 $config_headers
12153
12154 Configuration commands:
12155 $config_commands
12156
12157 Report bugs to <libusb-devel@lists.sourceforge.net>.
12158 libusb home page: <http://www.libusb.org/>."
12159
12160 _ACEOF
12161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12162 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12163 ac_cs_version="\\
12164 libusb config.status 1.0.9
12165 configured by $0, generated by GNU Autoconf 2.68,
12166   with options \\"\$ac_cs_config\\"
12167
12168 Copyright (C) 2010 Free Software Foundation, Inc.
12169 This config.status script is free software; the Free Software Foundation
12170 gives unlimited permission to copy, distribute and modify it."
12171
12172 ac_pwd='$ac_pwd'
12173 srcdir='$srcdir'
12174 INSTALL='$INSTALL'
12175 MKDIR_P='$MKDIR_P'
12176 AWK='$AWK'
12177 test -n "\$AWK" || AWK=awk
12178 _ACEOF
12179
12180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12181 # The default lists apply if the user does not specify any file.
12182 ac_need_defaults=:
12183 while test $# != 0
12184 do
12185   case $1 in
12186   --*=?*)
12187     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12188     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12189     ac_shift=:
12190     ;;
12191   --*=)
12192     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12193     ac_optarg=
12194     ac_shift=:
12195     ;;
12196   *)
12197     ac_option=$1
12198     ac_optarg=$2
12199     ac_shift=shift
12200     ;;
12201   esac
12202
12203   case $ac_option in
12204   # Handling of the options.
12205   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12206     ac_cs_recheck=: ;;
12207   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12208     $as_echo "$ac_cs_version"; exit ;;
12209   --config | --confi | --conf | --con | --co | --c )
12210     $as_echo "$ac_cs_config"; exit ;;
12211   --debug | --debu | --deb | --de | --d | -d )
12212     debug=: ;;
12213   --file | --fil | --fi | --f )
12214     $ac_shift
12215     case $ac_optarg in
12216     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12217     '') as_fn_error $? "missing file argument" ;;
12218     esac
12219     as_fn_append CONFIG_FILES " '$ac_optarg'"
12220     ac_need_defaults=false;;
12221   --header | --heade | --head | --hea )
12222     $ac_shift
12223     case $ac_optarg in
12224     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12225     esac
12226     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12227     ac_need_defaults=false;;
12228   --he | --h)
12229     # Conflict between --help and --header
12230     as_fn_error $? "ambiguous option: \`$1'
12231 Try \`$0 --help' for more information.";;
12232   --help | --hel | -h )
12233     $as_echo "$ac_cs_usage"; exit ;;
12234   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12235   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12236     ac_cs_silent=: ;;
12237
12238   # This is an error.
12239   -*) as_fn_error $? "unrecognized option: \`$1'
12240 Try \`$0 --help' for more information." ;;
12241
12242   *) as_fn_append ac_config_targets " $1"
12243      ac_need_defaults=false ;;
12244
12245   esac
12246   shift
12247 done
12248
12249 ac_configure_extra_args=
12250
12251 if $ac_cs_silent; then
12252   exec 6>/dev/null
12253   ac_configure_extra_args="$ac_configure_extra_args --silent"
12254 fi
12255
12256 _ACEOF
12257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12258 if \$ac_cs_recheck; then
12259   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12260   shift
12261   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12262   CONFIG_SHELL='$SHELL'
12263   export CONFIG_SHELL
12264   exec "\$@"
12265 fi
12266
12267 _ACEOF
12268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12269 exec 5>>config.log
12270 {
12271   echo
12272   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12273 ## Running $as_me. ##
12274 _ASBOX
12275   $as_echo "$ac_log"
12276 } >&5
12277
12278 _ACEOF
12279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12280 #
12281 # INIT-COMMANDS
12282 #
12283 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12284
12285
12286 # The HP-UX ksh and POSIX shell print the target directory to stdout
12287 # if CDPATH is set.
12288 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12289
12290 sed_quote_subst='$sed_quote_subst'
12291 double_quote_subst='$double_quote_subst'
12292 delay_variable_subst='$delay_variable_subst'
12293 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12294 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12295 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12296 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12297 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12298 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12299 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12300 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12301 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12302 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12303 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12304 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12305 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12306 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12307 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12308 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12309 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12310 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12311 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12312 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12313 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12314 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12315 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12316 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12317 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12318 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12319 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12320 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12321 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12322 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12323 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12324 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12325 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12326 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12327 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12328 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12329 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12330 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12331 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12332 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12333 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12334 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12335 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12336 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12337 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12338 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12339 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12340 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12341 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"`'
12342 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12343 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12344 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12345 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12346 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12347 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12348 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12349 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12350 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12351 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12352 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12353 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12354 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12355 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12356 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12357 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12358 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12359 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12360 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12361 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12362 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12363 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12364 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12365 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12366 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12367 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12368 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12369 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12370 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12371 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12372 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12373 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12374 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12375 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12376 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12377 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12378 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12379 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12380 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12381 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12382 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12383 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12384 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12385 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12386 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12387 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12388 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12389 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12390 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12391 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12392 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12393 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12394 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12395 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12396 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12397 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12398 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12399 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12400 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12401 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12402 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12403 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12404 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12405 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12406 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12407 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12408 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12409 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12410 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12411 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12412 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12413 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
12414 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
12415 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
12416 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
12417 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
12418 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
12419 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
12420 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
12421 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
12422 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
12423 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
12424 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
12425 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
12426 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
12427 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
12428 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
12429 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
12430 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
12431 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
12432 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
12433 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
12434 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
12435 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
12436 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
12437 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
12438 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
12439 hardcode_libdir_flag_spec_ld_RC='`$ECHO "$hardcode_libdir_flag_spec_ld_RC" | $SED "$delay_single_quote_subst"`'
12440 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
12441 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
12442 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
12443 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
12444 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
12445 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
12446 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
12447 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
12448 fix_srcfile_path_RC='`$ECHO "$fix_srcfile_path_RC" | $SED "$delay_single_quote_subst"`'
12449 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
12450 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
12451 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
12452 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
12453 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
12454 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
12455 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
12456
12457 LTCC='$LTCC'
12458 LTCFLAGS='$LTCFLAGS'
12459 compiler='$compiler_DEFAULT'
12460
12461 # A function that is used when there is no print builtin or printf.
12462 func_fallback_echo ()
12463 {
12464   eval 'cat <<_LTECHO_EOF
12465 \$1
12466 _LTECHO_EOF'
12467 }
12468
12469 # Quote evaled strings.
12470 for var in SHELL \
12471 ECHO \
12472 SED \
12473 GREP \
12474 EGREP \
12475 FGREP \
12476 LD \
12477 NM \
12478 LN_S \
12479 lt_SP2NL \
12480 lt_NL2SP \
12481 reload_flag \
12482 OBJDUMP \
12483 deplibs_check_method \
12484 file_magic_cmd \
12485 AR \
12486 AR_FLAGS \
12487 STRIP \
12488 RANLIB \
12489 CC \
12490 CFLAGS \
12491 compiler \
12492 lt_cv_sys_global_symbol_pipe \
12493 lt_cv_sys_global_symbol_to_cdecl \
12494 lt_cv_sys_global_symbol_to_c_name_address \
12495 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12496 lt_prog_compiler_no_builtin_flag \
12497 lt_prog_compiler_wl \
12498 lt_prog_compiler_pic \
12499 lt_prog_compiler_static \
12500 lt_cv_prog_compiler_c_o \
12501 need_locks \
12502 DSYMUTIL \
12503 NMEDIT \
12504 LIPO \
12505 OTOOL \
12506 OTOOL64 \
12507 shrext_cmds \
12508 export_dynamic_flag_spec \
12509 whole_archive_flag_spec \
12510 compiler_needs_object \
12511 with_gnu_ld \
12512 allow_undefined_flag \
12513 no_undefined_flag \
12514 hardcode_libdir_flag_spec \
12515 hardcode_libdir_flag_spec_ld \
12516 hardcode_libdir_separator \
12517 fix_srcfile_path \
12518 exclude_expsyms \
12519 include_expsyms \
12520 file_list_spec \
12521 variables_saved_for_relink \
12522 libname_spec \
12523 library_names_spec \
12524 soname_spec \
12525 install_override_mode \
12526 finish_eval \
12527 old_striplib \
12528 striplib \
12529 LD_RC \
12530 reload_flag_RC \
12531 compiler_RC \
12532 lt_prog_compiler_no_builtin_flag_RC \
12533 lt_prog_compiler_wl_RC \
12534 lt_prog_compiler_pic_RC \
12535 lt_prog_compiler_static_RC \
12536 lt_cv_prog_compiler_c_o_RC \
12537 export_dynamic_flag_spec_RC \
12538 whole_archive_flag_spec_RC \
12539 compiler_needs_object_RC \
12540 with_gnu_ld_RC \
12541 allow_undefined_flag_RC \
12542 no_undefined_flag_RC \
12543 hardcode_libdir_flag_spec_RC \
12544 hardcode_libdir_flag_spec_ld_RC \
12545 hardcode_libdir_separator_RC \
12546 fix_srcfile_path_RC \
12547 exclude_expsyms_RC \
12548 include_expsyms_RC \
12549 file_list_spec_RC; do
12550     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12551     *[\\\\\\\`\\"\\\$]*)
12552       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12553       ;;
12554     *)
12555       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12556       ;;
12557     esac
12558 done
12559
12560 # Double-quote double-evaled strings.
12561 for var in reload_cmds \
12562 old_postinstall_cmds \
12563 old_postuninstall_cmds \
12564 old_archive_cmds \
12565 extract_expsyms_cmds \
12566 old_archive_from_new_cmds \
12567 old_archive_from_expsyms_cmds \
12568 archive_cmds \
12569 archive_expsym_cmds \
12570 module_cmds \
12571 module_expsym_cmds \
12572 export_symbols_cmds \
12573 prelink_cmds \
12574 postinstall_cmds \
12575 postuninstall_cmds \
12576 finish_cmds \
12577 sys_lib_search_path_spec \
12578 sys_lib_dlsearch_path_spec \
12579 reload_cmds_RC \
12580 old_archive_cmds_RC \
12581 old_archive_from_new_cmds_RC \
12582 old_archive_from_expsyms_cmds_RC \
12583 archive_cmds_RC \
12584 archive_expsym_cmds_RC \
12585 module_cmds_RC \
12586 module_expsym_cmds_RC \
12587 export_symbols_cmds_RC \
12588 prelink_cmds_RC; do
12589     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12590     *[\\\\\\\`\\"\\\$]*)
12591       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12592       ;;
12593     *)
12594       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12595       ;;
12596     esac
12597 done
12598
12599 ac_aux_dir='$ac_aux_dir'
12600 xsi_shell='$xsi_shell'
12601 lt_shell_append='$lt_shell_append'
12602
12603 # See if we are running on zsh, and set the options which allow our
12604 # commands through without removal of \ escapes INIT.
12605 if test -n "\${ZSH_VERSION+set}" ; then
12606    setopt NO_GLOB_SUBST
12607 fi
12608
12609
12610     PACKAGE='$PACKAGE'
12611     VERSION='$VERSION'
12612     TIMESTAMP='$TIMESTAMP'
12613     RM='$RM'
12614     ofile='$ofile'
12615
12616
12617
12618
12619
12620
12621 _ACEOF
12622
12623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12624
12625 # Handling of arguments.
12626 for ac_config_target in $ac_config_targets
12627 do
12628   case $ac_config_target in
12629     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12630     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12631     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12632     "libusb-1.0.pc") CONFIG_FILES="$CONFIG_FILES libusb-1.0.pc" ;;
12633     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12634     "libusb/Makefile") CONFIG_FILES="$CONFIG_FILES libusb/Makefile" ;;
12635     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
12636     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12637     "doc/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doc/doxygen.cfg" ;;
12638
12639   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12640   esac
12641 done
12642
12643
12644 # If the user did not use the arguments to specify the items to instantiate,
12645 # then the envvar interface is used.  Set only those that are not.
12646 # We use the long form for the default assignment because of an extremely
12647 # bizarre bug on SunOS 4.1.3.
12648 if $ac_need_defaults; then
12649   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12650   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12651   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12652 fi
12653
12654 # Have a temporary directory for convenience.  Make it in the build tree
12655 # simply because there is no reason against having it here, and in addition,
12656 # creating and moving files from /tmp can sometimes cause problems.
12657 # Hook for its removal unless debugging.
12658 # Note that there is a small window in which the directory will not be cleaned:
12659 # after its creation but before its name has been assigned to `$tmp'.
12660 $debug ||
12661 {
12662   tmp= ac_tmp=
12663   trap 'exit_status=$?
12664   : "${ac_tmp:=$tmp}"
12665   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12666 ' 0
12667   trap 'as_fn_exit 1' 1 2 13 15
12668 }
12669 # Create a (secure) tmp directory for tmp files.
12670
12671 {
12672   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12673   test -d "$tmp"
12674 }  ||
12675 {
12676   tmp=./conf$$-$RANDOM
12677   (umask 077 && mkdir "$tmp")
12678 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12679 ac_tmp=$tmp
12680
12681 # Set up the scripts for CONFIG_FILES section.
12682 # No need to generate them if there are no CONFIG_FILES.
12683 # This happens for instance with `./config.status config.h'.
12684 if test -n "$CONFIG_FILES"; then
12685
12686
12687 ac_cr=`echo X | tr X '\015'`
12688 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12689 # But we know of no other shell where ac_cr would be empty at this
12690 # point, so we can use a bashism as a fallback.
12691 if test "x$ac_cr" = x; then
12692   eval ac_cr=\$\'\\r\'
12693 fi
12694 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12695 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12696   ac_cs_awk_cr='\\r'
12697 else
12698   ac_cs_awk_cr=$ac_cr
12699 fi
12700
12701 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12702 _ACEOF
12703
12704
12705 {
12706   echo "cat >conf$$subs.awk <<_ACEOF" &&
12707   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12708   echo "_ACEOF"
12709 } >conf$$subs.sh ||
12710   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12711 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12712 ac_delim='%!_!# '
12713 for ac_last_try in false false false false false :; do
12714   . ./conf$$subs.sh ||
12715     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12716
12717   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12718   if test $ac_delim_n = $ac_delim_num; then
12719     break
12720   elif $ac_last_try; then
12721     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12722   else
12723     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12724   fi
12725 done
12726 rm -f conf$$subs.sh
12727
12728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12729 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12730 _ACEOF
12731 sed -n '
12732 h
12733 s/^/S["/; s/!.*/"]=/
12734 p
12735 g
12736 s/^[^!]*!//
12737 :repl
12738 t repl
12739 s/'"$ac_delim"'$//
12740 t delim
12741 :nl
12742 h
12743 s/\(.\{148\}\)..*/\1/
12744 t more1
12745 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12746 p
12747 n
12748 b repl
12749 :more1
12750 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12751 p
12752 g
12753 s/.\{148\}//
12754 t nl
12755 :delim
12756 h
12757 s/\(.\{148\}\)..*/\1/
12758 t more2
12759 s/["\\]/\\&/g; s/^/"/; s/$/"/
12760 p
12761 b
12762 :more2
12763 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12764 p
12765 g
12766 s/.\{148\}//
12767 t delim
12768 ' <conf$$subs.awk | sed '
12769 /^[^""]/{
12770   N
12771   s/\n//
12772 }
12773 ' >>$CONFIG_STATUS || ac_write_fail=1
12774 rm -f conf$$subs.awk
12775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12776 _ACAWK
12777 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12778   for (key in S) S_is_set[key] = 1
12779   FS = "\a"
12780
12781 }
12782 {
12783   line = $ 0
12784   nfields = split(line, field, "@")
12785   substed = 0
12786   len = length(field[1])
12787   for (i = 2; i < nfields; i++) {
12788     key = field[i]
12789     keylen = length(key)
12790     if (S_is_set[key]) {
12791       value = S[key]
12792       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12793       len += length(value) + length(field[++i])
12794       substed = 1
12795     } else
12796       len += 1 + keylen
12797   }
12798
12799   print line
12800 }
12801
12802 _ACAWK
12803 _ACEOF
12804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12805 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12806   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12807 else
12808   cat
12809 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12810   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12811 _ACEOF
12812
12813 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12814 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12815 # trailing colons and then remove the whole line if VPATH becomes empty
12816 # (actually we leave an empty line to preserve line numbers).
12817 if test "x$srcdir" = x.; then
12818   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12819 h
12820 s///
12821 s/^/:/
12822 s/[      ]*$/:/
12823 s/:\$(srcdir):/:/g
12824 s/:\${srcdir}:/:/g
12825 s/:@srcdir@:/:/g
12826 s/^:*//
12827 s/:*$//
12828 x
12829 s/\(=[   ]*\).*/\1/
12830 G
12831 s/\n//
12832 s/^[^=]*=[       ]*$//
12833 }'
12834 fi
12835
12836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12837 fi # test -n "$CONFIG_FILES"
12838
12839 # Set up the scripts for CONFIG_HEADERS section.
12840 # No need to generate them if there are no CONFIG_HEADERS.
12841 # This happens for instance with `./config.status Makefile'.
12842 if test -n "$CONFIG_HEADERS"; then
12843 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12844 BEGIN {
12845 _ACEOF
12846
12847 # Transform confdefs.h into an awk script `defines.awk', embedded as
12848 # here-document in config.status, that substitutes the proper values into
12849 # config.h.in to produce config.h.
12850
12851 # Create a delimiter string that does not exist in confdefs.h, to ease
12852 # handling of long lines.
12853 ac_delim='%!_!# '
12854 for ac_last_try in false false :; do
12855   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12856   if test -z "$ac_tt"; then
12857     break
12858   elif $ac_last_try; then
12859     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12860   else
12861     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12862   fi
12863 done
12864
12865 # For the awk script, D is an array of macro values keyed by name,
12866 # likewise P contains macro parameters if any.  Preserve backslash
12867 # newline sequences.
12868
12869 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12870 sed -n '
12871 s/.\{148\}/&'"$ac_delim"'/g
12872 t rset
12873 :rset
12874 s/^[     ]*#[    ]*define[       ][      ]*/ /
12875 t def
12876 d
12877 :def
12878 s/\\$//
12879 t bsnl
12880 s/["\\]/\\&/g
12881 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12882 D["\1"]=" \3"/p
12883 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12884 d
12885 :bsnl
12886 s/["\\]/\\&/g
12887 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12888 D["\1"]=" \3\\\\\\n"\\/p
12889 t cont
12890 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12891 t cont
12892 d
12893 :cont
12894 n
12895 s/.\{148\}/&'"$ac_delim"'/g
12896 t clear
12897 :clear
12898 s/\\$//
12899 t bsnlc
12900 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12901 d
12902 :bsnlc
12903 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12904 b cont
12905 ' <confdefs.h | sed '
12906 s/'"$ac_delim"'/"\\\
12907 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12908
12909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12910   for (key in D) D_is_set[key] = 1
12911   FS = "\a"
12912 }
12913 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12914   line = \$ 0
12915   split(line, arg, " ")
12916   if (arg[1] == "#") {
12917     defundef = arg[2]
12918     mac1 = arg[3]
12919   } else {
12920     defundef = substr(arg[1], 2)
12921     mac1 = arg[2]
12922   }
12923   split(mac1, mac2, "(") #)
12924   macro = mac2[1]
12925   prefix = substr(line, 1, index(line, defundef) - 1)
12926   if (D_is_set[macro]) {
12927     # Preserve the white space surrounding the "#".
12928     print prefix "define", macro P[macro] D[macro]
12929     next
12930   } else {
12931     # Replace #undef with comments.  This is necessary, for example,
12932     # in the case of _POSIX_SOURCE, which is predefined and required
12933     # on some systems where configure will not decide to define it.
12934     if (defundef == "undef") {
12935       print "/*", prefix defundef, macro, "*/"
12936       next
12937     }
12938   }
12939 }
12940 { print }
12941 _ACAWK
12942 _ACEOF
12943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12944   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12945 fi # test -n "$CONFIG_HEADERS"
12946
12947
12948 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12949 shift
12950 for ac_tag
12951 do
12952   case $ac_tag in
12953   :[FHLC]) ac_mode=$ac_tag; continue;;
12954   esac
12955   case $ac_mode$ac_tag in
12956   :[FHL]*:*);;
12957   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12958   :[FH]-) ac_tag=-:-;;
12959   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12960   esac
12961   ac_save_IFS=$IFS
12962   IFS=:
12963   set x $ac_tag
12964   IFS=$ac_save_IFS
12965   shift
12966   ac_file=$1
12967   shift
12968
12969   case $ac_mode in
12970   :L) ac_source=$1;;
12971   :[FH])
12972     ac_file_inputs=
12973     for ac_f
12974     do
12975       case $ac_f in
12976       -) ac_f="$ac_tmp/stdin";;
12977       *) # Look for the file first in the build tree, then in the source tree
12978          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12979          # because $ac_f cannot contain `:'.
12980          test -f "$ac_f" ||
12981            case $ac_f in
12982            [\\/$]*) false;;
12983            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12984            esac ||
12985            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12986       esac
12987       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12988       as_fn_append ac_file_inputs " '$ac_f'"
12989     done
12990
12991     # Let's still pretend it is `configure' which instantiates (i.e., don't
12992     # use $as_me), people would be surprised to read:
12993     #    /* config.h.  Generated by config.status.  */
12994     configure_input='Generated from '`
12995           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12996         `' by configure.'
12997     if test x"$ac_file" != x-; then
12998       configure_input="$ac_file.  $configure_input"
12999       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13000 $as_echo "$as_me: creating $ac_file" >&6;}
13001     fi
13002     # Neutralize special characters interpreted by sed in replacement strings.
13003     case $configure_input in #(
13004     *\&* | *\|* | *\\* )
13005        ac_sed_conf_input=`$as_echo "$configure_input" |
13006        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13007     *) ac_sed_conf_input=$configure_input;;
13008     esac
13009
13010     case $ac_tag in
13011     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13012       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13013     esac
13014     ;;
13015   esac
13016
13017   ac_dir=`$as_dirname -- "$ac_file" ||
13018 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13019          X"$ac_file" : 'X\(//\)[^/]' \| \
13020          X"$ac_file" : 'X\(//\)$' \| \
13021          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13022 $as_echo X"$ac_file" |
13023     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13024             s//\1/
13025             q
13026           }
13027           /^X\(\/\/\)[^/].*/{
13028             s//\1/
13029             q
13030           }
13031           /^X\(\/\/\)$/{
13032             s//\1/
13033             q
13034           }
13035           /^X\(\/\).*/{
13036             s//\1/
13037             q
13038           }
13039           s/.*/./; q'`
13040   as_dir="$ac_dir"; as_fn_mkdir_p
13041   ac_builddir=.
13042
13043 case "$ac_dir" in
13044 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13045 *)
13046   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13047   # A ".." for each directory in $ac_dir_suffix.
13048   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13049   case $ac_top_builddir_sub in
13050   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13051   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13052   esac ;;
13053 esac
13054 ac_abs_top_builddir=$ac_pwd
13055 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13056 # for backward compatibility:
13057 ac_top_builddir=$ac_top_build_prefix
13058
13059 case $srcdir in
13060   .)  # We are building in place.
13061     ac_srcdir=.
13062     ac_top_srcdir=$ac_top_builddir_sub
13063     ac_abs_top_srcdir=$ac_pwd ;;
13064   [\\/]* | ?:[\\/]* )  # Absolute name.
13065     ac_srcdir=$srcdir$ac_dir_suffix;
13066     ac_top_srcdir=$srcdir
13067     ac_abs_top_srcdir=$srcdir ;;
13068   *) # Relative name.
13069     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13070     ac_top_srcdir=$ac_top_build_prefix$srcdir
13071     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13072 esac
13073 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13074
13075
13076   case $ac_mode in
13077   :F)
13078   #
13079   # CONFIG_FILE
13080   #
13081
13082   case $INSTALL in
13083   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13084   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13085   esac
13086   ac_MKDIR_P=$MKDIR_P
13087   case $MKDIR_P in
13088   [\\/$]* | ?:[\\/]* ) ;;
13089   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13090   esac
13091 _ACEOF
13092
13093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13094 # If the template does not know about datarootdir, expand it.
13095 # FIXME: This hack should be removed a few years after 2.60.
13096 ac_datarootdir_hack=; ac_datarootdir_seen=
13097 ac_sed_dataroot='
13098 /datarootdir/ {
13099   p
13100   q
13101 }
13102 /@datadir@/p
13103 /@docdir@/p
13104 /@infodir@/p
13105 /@localedir@/p
13106 /@mandir@/p'
13107 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13108 *datarootdir*) ac_datarootdir_seen=yes;;
13109 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13110   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13111 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13112 _ACEOF
13113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13114   ac_datarootdir_hack='
13115   s&@datadir@&$datadir&g
13116   s&@docdir@&$docdir&g
13117   s&@infodir@&$infodir&g
13118   s&@localedir@&$localedir&g
13119   s&@mandir@&$mandir&g
13120   s&\\\${datarootdir}&$datarootdir&g' ;;
13121 esac
13122 _ACEOF
13123
13124 # Neutralize VPATH when `$srcdir' = `.'.
13125 # Shell code in configure.ac might set extrasub.
13126 # FIXME: do we really want to maintain this feature?
13127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13128 ac_sed_extra="$ac_vpsub
13129 $extrasub
13130 _ACEOF
13131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13132 :t
13133 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13134 s|@configure_input@|$ac_sed_conf_input|;t t
13135 s&@top_builddir@&$ac_top_builddir_sub&;t t
13136 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13137 s&@srcdir@&$ac_srcdir&;t t
13138 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13139 s&@top_srcdir@&$ac_top_srcdir&;t t
13140 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13141 s&@builddir@&$ac_builddir&;t t
13142 s&@abs_builddir@&$ac_abs_builddir&;t t
13143 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13144 s&@INSTALL@&$ac_INSTALL&;t t
13145 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13146 $ac_datarootdir_hack
13147 "
13148 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13149   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13150
13151 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13152   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13153   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13154       "$ac_tmp/out"`; test -z "$ac_out"; } &&
13155   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13156 which seems to be undefined.  Please make sure it is defined" >&5
13157 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13158 which seems to be undefined.  Please make sure it is defined" >&2;}
13159
13160   rm -f "$ac_tmp/stdin"
13161   case $ac_file in
13162   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13163   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13164   esac \
13165   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13166  ;;
13167   :H)
13168   #
13169   # CONFIG_HEADER
13170   #
13171   if test x"$ac_file" != x-; then
13172     {
13173       $as_echo "/* $configure_input  */" \
13174       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13175     } >"$ac_tmp/config.h" \
13176       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13177     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13178       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13179 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13180     else
13181       rm -f "$ac_file"
13182       mv "$ac_tmp/config.h" "$ac_file" \
13183         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13184     fi
13185   else
13186     $as_echo "/* $configure_input  */" \
13187       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13188       || as_fn_error $? "could not create -" "$LINENO" 5
13189   fi
13190 # Compute "$ac_file"'s index in $config_headers.
13191 _am_arg="$ac_file"
13192 _am_stamp_count=1
13193 for _am_header in $config_headers :; do
13194   case $_am_header in
13195     $_am_arg | $_am_arg:* )
13196       break ;;
13197     * )
13198       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13199   esac
13200 done
13201 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13202 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13203          X"$_am_arg" : 'X\(//\)[^/]' \| \
13204          X"$_am_arg" : 'X\(//\)$' \| \
13205          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13206 $as_echo X"$_am_arg" |
13207     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13208             s//\1/
13209             q
13210           }
13211           /^X\(\/\/\)[^/].*/{
13212             s//\1/
13213             q
13214           }
13215           /^X\(\/\/\)$/{
13216             s//\1/
13217             q
13218           }
13219           /^X\(\/\).*/{
13220             s//\1/
13221             q
13222           }
13223           s/.*/./; q'`/stamp-h$_am_stamp_count
13224  ;;
13225
13226   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13227 $as_echo "$as_me: executing $ac_file commands" >&6;}
13228  ;;
13229   esac
13230
13231
13232   case $ac_file$ac_mode in
13233     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13234   # Autoconf 2.62 quotes --file arguments for eval, but not when files
13235   # are listed without --file.  Let's play safe and only enable the eval
13236   # if we detect the quoting.
13237   case $CONFIG_FILES in
13238   *\'*) eval set x "$CONFIG_FILES" ;;
13239   *)   set x $CONFIG_FILES ;;
13240   esac
13241   shift
13242   for mf
13243   do
13244     # Strip MF so we end up with the name of the file.
13245     mf=`echo "$mf" | sed -e 's/:.*$//'`
13246     # Check whether this is an Automake generated Makefile or not.
13247     # We used to match only the files named `Makefile.in', but
13248     # some people rename them; so instead we look at the file content.
13249     # Grep'ing the first line is not enough: some people post-process
13250     # each Makefile.in and add a new line on top of each file to say so.
13251     # Grep'ing the whole file is not good either: AIX grep has a line
13252     # limit of 2048, but all sed's we know have understand at least 4000.
13253     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13254       dirpart=`$as_dirname -- "$mf" ||
13255 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13256          X"$mf" : 'X\(//\)[^/]' \| \
13257          X"$mf" : 'X\(//\)$' \| \
13258          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13259 $as_echo X"$mf" |
13260     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13261             s//\1/
13262             q
13263           }
13264           /^X\(\/\/\)[^/].*/{
13265             s//\1/
13266             q
13267           }
13268           /^X\(\/\/\)$/{
13269             s//\1/
13270             q
13271           }
13272           /^X\(\/\).*/{
13273             s//\1/
13274             q
13275           }
13276           s/.*/./; q'`
13277     else
13278       continue
13279     fi
13280     # Extract the definition of DEPDIR, am__include, and am__quote
13281     # from the Makefile without running `make'.
13282     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13283     test -z "$DEPDIR" && continue
13284     am__include=`sed -n 's/^am__include = //p' < "$mf"`
13285     test -z "am__include" && continue
13286     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13287     # When using ansi2knr, U may be empty or an underscore; expand it
13288     U=`sed -n 's/^U = //p' < "$mf"`
13289     # Find all dependency output files, they are included files with
13290     # $(DEPDIR) in their names.  We invoke sed twice because it is the
13291     # simplest approach to changing $(DEPDIR) to its actual value in the
13292     # expansion.
13293     for file in `sed -n "
13294       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13295          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13296       # Make sure the directory exists.
13297       test -f "$dirpart/$file" && continue
13298       fdir=`$as_dirname -- "$file" ||
13299 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13300          X"$file" : 'X\(//\)[^/]' \| \
13301          X"$file" : 'X\(//\)$' \| \
13302          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13303 $as_echo X"$file" |
13304     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13305             s//\1/
13306             q
13307           }
13308           /^X\(\/\/\)[^/].*/{
13309             s//\1/
13310             q
13311           }
13312           /^X\(\/\/\)$/{
13313             s//\1/
13314             q
13315           }
13316           /^X\(\/\).*/{
13317             s//\1/
13318             q
13319           }
13320           s/.*/./; q'`
13321       as_dir=$dirpart/$fdir; as_fn_mkdir_p
13322       # echo "creating $dirpart/$file"
13323       echo '# dummy' > "$dirpart/$file"
13324     done
13325   done
13326 }
13327  ;;
13328     "libtool":C)
13329
13330     # See if we are running on zsh, and set the options which allow our
13331     # commands through without removal of \ escapes.
13332     if test -n "${ZSH_VERSION+set}" ; then
13333       setopt NO_GLOB_SUBST
13334     fi
13335
13336     cfgfile="${ofile}T"
13337     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13338     $RM "$cfgfile"
13339
13340     cat <<_LT_EOF >> "$cfgfile"
13341 #! $SHELL
13342
13343 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13344 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13345 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13346 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13347 #
13348 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13349 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13350 #                 Inc.
13351 #   Written by Gordon Matzigkeit, 1996
13352 #
13353 #   This file is part of GNU Libtool.
13354 #
13355 # GNU Libtool is free software; you can redistribute it and/or
13356 # modify it under the terms of the GNU General Public License as
13357 # published by the Free Software Foundation; either version 2 of
13358 # the License, or (at your option) any later version.
13359 #
13360 # As a special exception to the GNU General Public License,
13361 # if you distribute this file as part of a program or library that
13362 # is built using GNU Libtool, you may include this file under the
13363 # same distribution terms that you use for the rest of that program.
13364 #
13365 # GNU Libtool is distributed in the hope that it will be useful,
13366 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13367 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13368 # GNU General Public License for more details.
13369 #
13370 # You should have received a copy of the GNU General Public License
13371 # along with GNU Libtool; see the file COPYING.  If not, a copy
13372 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13373 # obtained by writing to the Free Software Foundation, Inc.,
13374 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13375
13376
13377 # The names of the tagged configurations supported by this script.
13378 available_tags="RC "
13379
13380 # ### BEGIN LIBTOOL CONFIG
13381
13382 # Which release of libtool.m4 was used?
13383 macro_version=$macro_version
13384 macro_revision=$macro_revision
13385
13386 # Whether or not to build shared libraries.
13387 build_libtool_libs=$enable_shared
13388
13389 # Whether or not to build static libraries.
13390 build_old_libs=$enable_static
13391
13392 # What type of objects to build.
13393 pic_mode=$pic_mode
13394
13395 # Whether or not to optimize for fast installation.
13396 fast_install=$enable_fast_install
13397
13398 # Shell to use when invoking shell scripts.
13399 SHELL=$lt_SHELL
13400
13401 # An echo program that protects backslashes.
13402 ECHO=$lt_ECHO
13403
13404 # The host system.
13405 host_alias=$host_alias
13406 host=$host
13407 host_os=$host_os
13408
13409 # The build system.
13410 build_alias=$build_alias
13411 build=$build
13412 build_os=$build_os
13413
13414 # A sed program that does not truncate output.
13415 SED=$lt_SED
13416
13417 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13418 Xsed="\$SED -e 1s/^X//"
13419
13420 # A grep program that handles long lines.
13421 GREP=$lt_GREP
13422
13423 # An ERE matcher.
13424 EGREP=$lt_EGREP
13425
13426 # A literal string matcher.
13427 FGREP=$lt_FGREP
13428
13429 # A BSD- or MS-compatible name lister.
13430 NM=$lt_NM
13431
13432 # Whether we need soft or hard links.
13433 LN_S=$lt_LN_S
13434
13435 # What is the maximum length of a command?
13436 max_cmd_len=$max_cmd_len
13437
13438 # Object file suffix (normally "o").
13439 objext=$ac_objext
13440
13441 # Executable file suffix (normally "").
13442 exeext=$exeext
13443
13444 # whether the shell understands "unset".
13445 lt_unset=$lt_unset
13446
13447 # turn spaces into newlines.
13448 SP2NL=$lt_lt_SP2NL
13449
13450 # turn newlines into spaces.
13451 NL2SP=$lt_lt_NL2SP
13452
13453 # An object symbol dumper.
13454 OBJDUMP=$lt_OBJDUMP
13455
13456 # Method to check whether dependent libraries are shared objects.
13457 deplibs_check_method=$lt_deplibs_check_method
13458
13459 # Command to use when deplibs_check_method == "file_magic".
13460 file_magic_cmd=$lt_file_magic_cmd
13461
13462 # The archiver.
13463 AR=$lt_AR
13464 AR_FLAGS=$lt_AR_FLAGS
13465
13466 # A symbol stripping program.
13467 STRIP=$lt_STRIP
13468
13469 # Commands used to install an old-style archive.
13470 RANLIB=$lt_RANLIB
13471 old_postinstall_cmds=$lt_old_postinstall_cmds
13472 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13473
13474 # Whether to use a lock for old archive extraction.
13475 lock_old_archive_extraction=$lock_old_archive_extraction
13476
13477 # A C compiler.
13478 LTCC=$lt_CC
13479
13480 # LTCC compiler flags.
13481 LTCFLAGS=$lt_CFLAGS
13482
13483 # Take the output of nm and produce a listing of raw symbols and C names.
13484 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13485
13486 # Transform the output of nm in a proper C declaration.
13487 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13488
13489 # Transform the output of nm in a C name address pair.
13490 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13491
13492 # Transform the output of nm in a C name address pair when lib prefix is needed.
13493 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13494
13495 # The name of the directory that contains temporary libtool files.
13496 objdir=$objdir
13497
13498 # Used to examine libraries when file_magic_cmd begins with "file".
13499 MAGIC_CMD=$MAGIC_CMD
13500
13501 # Must we lock files when doing compilation?
13502 need_locks=$lt_need_locks
13503
13504 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13505 DSYMUTIL=$lt_DSYMUTIL
13506
13507 # Tool to change global to local symbols on Mac OS X.
13508 NMEDIT=$lt_NMEDIT
13509
13510 # Tool to manipulate fat objects and archives on Mac OS X.
13511 LIPO=$lt_LIPO
13512
13513 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13514 OTOOL=$lt_OTOOL
13515
13516 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13517 OTOOL64=$lt_OTOOL64
13518
13519 # Old archive suffix (normally "a").
13520 libext=$libext
13521
13522 # Shared library suffix (normally ".so").
13523 shrext_cmds=$lt_shrext_cmds
13524
13525 # The commands to extract the exported symbol list from a shared archive.
13526 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13527
13528 # Variables whose values should be saved in libtool wrapper scripts and
13529 # restored at link time.
13530 variables_saved_for_relink=$lt_variables_saved_for_relink
13531
13532 # Do we need the "lib" prefix for modules?
13533 need_lib_prefix=$need_lib_prefix
13534
13535 # Do we need a version for libraries?
13536 need_version=$need_version
13537
13538 # Library versioning type.
13539 version_type=$version_type
13540
13541 # Shared library runtime path variable.
13542 runpath_var=$runpath_var
13543
13544 # Shared library path variable.
13545 shlibpath_var=$shlibpath_var
13546
13547 # Is shlibpath searched before the hard-coded library search path?
13548 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13549
13550 # Format of library name prefix.
13551 libname_spec=$lt_libname_spec
13552
13553 # List of archive names.  First name is the real one, the rest are links.
13554 # The last name is the one that the linker finds with -lNAME
13555 library_names_spec=$lt_library_names_spec
13556
13557 # The coded name of the library, if different from the real name.
13558 soname_spec=$lt_soname_spec
13559
13560 # Permission mode override for installation of shared libraries.
13561 install_override_mode=$lt_install_override_mode
13562
13563 # Command to use after installation of a shared archive.
13564 postinstall_cmds=$lt_postinstall_cmds
13565
13566 # Command to use after uninstallation of a shared archive.
13567 postuninstall_cmds=$lt_postuninstall_cmds
13568
13569 # Commands used to finish a libtool library installation in a directory.
13570 finish_cmds=$lt_finish_cmds
13571
13572 # As "finish_cmds", except a single script fragment to be evaled but
13573 # not shown.
13574 finish_eval=$lt_finish_eval
13575
13576 # Whether we should hardcode library paths into libraries.
13577 hardcode_into_libs=$hardcode_into_libs
13578
13579 # Compile-time system search path for libraries.
13580 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13581
13582 # Run-time system search path for libraries.
13583 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13584
13585 # Whether dlopen is supported.
13586 dlopen_support=$enable_dlopen
13587
13588 # Whether dlopen of programs is supported.
13589 dlopen_self=$enable_dlopen_self
13590
13591 # Whether dlopen of statically linked programs is supported.
13592 dlopen_self_static=$enable_dlopen_self_static
13593
13594 # Commands to strip libraries.
13595 old_striplib=$lt_old_striplib
13596 striplib=$lt_striplib
13597
13598
13599 # The linker used to build libraries.
13600 LD=$lt_LD
13601
13602 # How to create reloadable object files.
13603 reload_flag=$lt_reload_flag
13604 reload_cmds=$lt_reload_cmds
13605
13606 # Commands used to build an old-style archive.
13607 old_archive_cmds=$lt_old_archive_cmds
13608
13609 # A language specific compiler.
13610 CC=$lt_compiler
13611
13612 # Is the compiler the GNU compiler?
13613 with_gcc=$GCC
13614
13615 # Compiler flag to turn off builtin functions.
13616 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13617
13618 # How to pass a linker flag through the compiler.
13619 wl=$lt_lt_prog_compiler_wl
13620
13621 # Additional compiler flags for building library objects.
13622 pic_flag=$lt_lt_prog_compiler_pic
13623
13624 # Compiler flag to prevent dynamic linking.
13625 link_static_flag=$lt_lt_prog_compiler_static
13626
13627 # Does compiler simultaneously support -c and -o options?
13628 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13629
13630 # Whether or not to add -lc for building shared libraries.
13631 build_libtool_need_lc=$archive_cmds_need_lc
13632
13633 # Whether or not to disallow shared libs when runtime libs are static.
13634 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13635
13636 # Compiler flag to allow reflexive dlopens.
13637 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13638
13639 # Compiler flag to generate shared objects directly from archives.
13640 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13641
13642 # Whether the compiler copes with passing no objects directly.
13643 compiler_needs_object=$lt_compiler_needs_object
13644
13645 # Create an old-style archive from a shared archive.
13646 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13647
13648 # Create a temporary old-style archive to link instead of a shared archive.
13649 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13650
13651 # Commands used to build a shared archive.
13652 archive_cmds=$lt_archive_cmds
13653 archive_expsym_cmds=$lt_archive_expsym_cmds
13654
13655 # Commands used to build a loadable module if different from building
13656 # a shared archive.
13657 module_cmds=$lt_module_cmds
13658 module_expsym_cmds=$lt_module_expsym_cmds
13659
13660 # Whether we are building with GNU ld or not.
13661 with_gnu_ld=$lt_with_gnu_ld
13662
13663 # Flag that allows shared libraries with undefined symbols to be built.
13664 allow_undefined_flag=$lt_allow_undefined_flag
13665
13666 # Flag that enforces no undefined symbols.
13667 no_undefined_flag=$lt_no_undefined_flag
13668
13669 # Flag to hardcode \$libdir into a binary during linking.
13670 # This must work even if \$libdir does not exist
13671 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13672
13673 # If ld is used when linking, flag to hardcode \$libdir into a binary
13674 # during linking.  This must work even if \$libdir does not exist.
13675 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13676
13677 # Whether we need a single "-rpath" flag with a separated argument.
13678 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13679
13680 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13681 # DIR into the resulting binary.
13682 hardcode_direct=$hardcode_direct
13683
13684 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13685 # DIR into the resulting binary and the resulting library dependency is
13686 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13687 # library is relocated.
13688 hardcode_direct_absolute=$hardcode_direct_absolute
13689
13690 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13691 # into the resulting binary.
13692 hardcode_minus_L=$hardcode_minus_L
13693
13694 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13695 # into the resulting binary.
13696 hardcode_shlibpath_var=$hardcode_shlibpath_var
13697
13698 # Set to "yes" if building a shared library automatically hardcodes DIR
13699 # into the library and all subsequent libraries and executables linked
13700 # against it.
13701 hardcode_automatic=$hardcode_automatic
13702
13703 # Set to yes if linker adds runtime paths of dependent libraries
13704 # to runtime path list.
13705 inherit_rpath=$inherit_rpath
13706
13707 # Whether libtool must link a program against all its dependency libraries.
13708 link_all_deplibs=$link_all_deplibs
13709
13710 # Fix the shell variable \$srcfile for the compiler.
13711 fix_srcfile_path=$lt_fix_srcfile_path
13712
13713 # Set to "yes" if exported symbols are required.
13714 always_export_symbols=$always_export_symbols
13715
13716 # The commands to list exported symbols.
13717 export_symbols_cmds=$lt_export_symbols_cmds
13718
13719 # Symbols that should not be listed in the preloaded symbols.
13720 exclude_expsyms=$lt_exclude_expsyms
13721
13722 # Symbols that must always be exported.
13723 include_expsyms=$lt_include_expsyms
13724
13725 # Commands necessary for linking programs (against libraries) with templates.
13726 prelink_cmds=$lt_prelink_cmds
13727
13728 # Specify filename containing input files.
13729 file_list_spec=$lt_file_list_spec
13730
13731 # How to hardcode a shared library path into an executable.
13732 hardcode_action=$hardcode_action
13733
13734 # ### END LIBTOOL CONFIG
13735
13736 _LT_EOF
13737
13738   case $host_os in
13739   aix3*)
13740     cat <<\_LT_EOF >> "$cfgfile"
13741 # AIX sometimes has problems with the GCC collect2 program.  For some
13742 # reason, if we set the COLLECT_NAMES environment variable, the problems
13743 # vanish in a puff of smoke.
13744 if test "X${COLLECT_NAMES+set}" != Xset; then
13745   COLLECT_NAMES=
13746   export COLLECT_NAMES
13747 fi
13748 _LT_EOF
13749     ;;
13750   esac
13751
13752
13753 ltmain="$ac_aux_dir/ltmain.sh"
13754
13755
13756   # We use sed instead of cat because bash on DJGPP gets confused if
13757   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13758   # text mode, it properly converts lines to CR/LF.  This bash problem
13759   # is reportedly fixed, but why not run on old versions too?
13760   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13761     || (rm -f "$cfgfile"; exit 1)
13762
13763   case $xsi_shell in
13764   yes)
13765     cat << \_LT_EOF >> "$cfgfile"
13766
13767 # func_dirname file append nondir_replacement
13768 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13769 # otherwise set result to NONDIR_REPLACEMENT.
13770 func_dirname ()
13771 {
13772   case ${1} in
13773     */*) func_dirname_result="${1%/*}${2}" ;;
13774     *  ) func_dirname_result="${3}" ;;
13775   esac
13776 }
13777
13778 # func_basename file
13779 func_basename ()
13780 {
13781   func_basename_result="${1##*/}"
13782 }
13783
13784 # func_dirname_and_basename file append nondir_replacement
13785 # perform func_basename and func_dirname in a single function
13786 # call:
13787 #   dirname:  Compute the dirname of FILE.  If nonempty,
13788 #             add APPEND to the result, otherwise set result
13789 #             to NONDIR_REPLACEMENT.
13790 #             value returned in "$func_dirname_result"
13791 #   basename: Compute filename of FILE.
13792 #             value retuned in "$func_basename_result"
13793 # Implementation must be kept synchronized with func_dirname
13794 # and func_basename. For efficiency, we do not delegate to
13795 # those functions but instead duplicate the functionality here.
13796 func_dirname_and_basename ()
13797 {
13798   case ${1} in
13799     */*) func_dirname_result="${1%/*}${2}" ;;
13800     *  ) func_dirname_result="${3}" ;;
13801   esac
13802   func_basename_result="${1##*/}"
13803 }
13804
13805 # func_stripname prefix suffix name
13806 # strip PREFIX and SUFFIX off of NAME.
13807 # PREFIX and SUFFIX must not contain globbing or regex special
13808 # characters, hashes, percent signs, but SUFFIX may contain a leading
13809 # dot (in which case that matches only a dot).
13810 func_stripname ()
13811 {
13812   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13813   # positional parameters, so assign one to ordinary parameter first.
13814   func_stripname_result=${3}
13815   func_stripname_result=${func_stripname_result#"${1}"}
13816   func_stripname_result=${func_stripname_result%"${2}"}
13817 }
13818
13819 # func_opt_split
13820 func_opt_split ()
13821 {
13822   func_opt_split_opt=${1%%=*}
13823   func_opt_split_arg=${1#*=}
13824 }
13825
13826 # func_lo2o object
13827 func_lo2o ()
13828 {
13829   case ${1} in
13830     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13831     *)    func_lo2o_result=${1} ;;
13832   esac
13833 }
13834
13835 # func_xform libobj-or-source
13836 func_xform ()
13837 {
13838   func_xform_result=${1%.*}.lo
13839 }
13840
13841 # func_arith arithmetic-term...
13842 func_arith ()
13843 {
13844   func_arith_result=$(( $* ))
13845 }
13846
13847 # func_len string
13848 # STRING may not start with a hyphen.
13849 func_len ()
13850 {
13851   func_len_result=${#1}
13852 }
13853
13854 _LT_EOF
13855     ;;
13856   *) # Bourne compatible functions.
13857     cat << \_LT_EOF >> "$cfgfile"
13858
13859 # func_dirname file append nondir_replacement
13860 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13861 # otherwise set result to NONDIR_REPLACEMENT.
13862 func_dirname ()
13863 {
13864   # Extract subdirectory from the argument.
13865   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13866   if test "X$func_dirname_result" = "X${1}"; then
13867     func_dirname_result="${3}"
13868   else
13869     func_dirname_result="$func_dirname_result${2}"
13870   fi
13871 }
13872
13873 # func_basename file
13874 func_basename ()
13875 {
13876   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13877 }
13878
13879
13880 # func_stripname prefix suffix name
13881 # strip PREFIX and SUFFIX off of NAME.
13882 # PREFIX and SUFFIX must not contain globbing or regex special
13883 # characters, hashes, percent signs, but SUFFIX may contain a leading
13884 # dot (in which case that matches only a dot).
13885 # func_strip_suffix prefix name
13886 func_stripname ()
13887 {
13888   case ${2} in
13889     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13890     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13891   esac
13892 }
13893
13894 # sed scripts:
13895 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13896 my_sed_long_arg='1s/^-[^=]*=//'
13897
13898 # func_opt_split
13899 func_opt_split ()
13900 {
13901   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13902   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13903 }
13904
13905 # func_lo2o object
13906 func_lo2o ()
13907 {
13908   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13909 }
13910
13911 # func_xform libobj-or-source
13912 func_xform ()
13913 {
13914   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13915 }
13916
13917 # func_arith arithmetic-term...
13918 func_arith ()
13919 {
13920   func_arith_result=`expr "$@"`
13921 }
13922
13923 # func_len string
13924 # STRING may not start with a hyphen.
13925 func_len ()
13926 {
13927   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13928 }
13929
13930 _LT_EOF
13931 esac
13932
13933 case $lt_shell_append in
13934   yes)
13935     cat << \_LT_EOF >> "$cfgfile"
13936
13937 # func_append var value
13938 # Append VALUE to the end of shell variable VAR.
13939 func_append ()
13940 {
13941   eval "$1+=\$2"
13942 }
13943 _LT_EOF
13944     ;;
13945   *)
13946     cat << \_LT_EOF >> "$cfgfile"
13947
13948 # func_append var value
13949 # Append VALUE to the end of shell variable VAR.
13950 func_append ()
13951 {
13952   eval "$1=\$$1\$2"
13953 }
13954
13955 _LT_EOF
13956     ;;
13957   esac
13958
13959
13960   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13961     || (rm -f "$cfgfile"; exit 1)
13962
13963   mv -f "$cfgfile" "$ofile" ||
13964     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13965   chmod +x "$ofile"
13966
13967
13968     cat <<_LT_EOF >> "$ofile"
13969
13970 # ### BEGIN LIBTOOL TAG CONFIG: RC
13971
13972 # The linker used to build libraries.
13973 LD=$lt_LD_RC
13974
13975 # How to create reloadable object files.
13976 reload_flag=$lt_reload_flag_RC
13977 reload_cmds=$lt_reload_cmds_RC
13978
13979 # Commands used to build an old-style archive.
13980 old_archive_cmds=$lt_old_archive_cmds_RC
13981
13982 # A language specific compiler.
13983 CC=$lt_compiler_RC
13984
13985 # Is the compiler the GNU compiler?
13986 with_gcc=$GCC_RC
13987
13988 # Compiler flag to turn off builtin functions.
13989 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
13990
13991 # How to pass a linker flag through the compiler.
13992 wl=$lt_lt_prog_compiler_wl_RC
13993
13994 # Additional compiler flags for building library objects.
13995 pic_flag=$lt_lt_prog_compiler_pic_RC
13996
13997 # Compiler flag to prevent dynamic linking.
13998 link_static_flag=$lt_lt_prog_compiler_static_RC
13999
14000 # Does compiler simultaneously support -c and -o options?
14001 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
14002
14003 # Whether or not to add -lc for building shared libraries.
14004 build_libtool_need_lc=$archive_cmds_need_lc_RC
14005
14006 # Whether or not to disallow shared libs when runtime libs are static.
14007 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
14008
14009 # Compiler flag to allow reflexive dlopens.
14010 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
14011
14012 # Compiler flag to generate shared objects directly from archives.
14013 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
14014
14015 # Whether the compiler copes with passing no objects directly.
14016 compiler_needs_object=$lt_compiler_needs_object_RC
14017
14018 # Create an old-style archive from a shared archive.
14019 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
14020
14021 # Create a temporary old-style archive to link instead of a shared archive.
14022 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
14023
14024 # Commands used to build a shared archive.
14025 archive_cmds=$lt_archive_cmds_RC
14026 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
14027
14028 # Commands used to build a loadable module if different from building
14029 # a shared archive.
14030 module_cmds=$lt_module_cmds_RC
14031 module_expsym_cmds=$lt_module_expsym_cmds_RC
14032
14033 # Whether we are building with GNU ld or not.
14034 with_gnu_ld=$lt_with_gnu_ld_RC
14035
14036 # Flag that allows shared libraries with undefined symbols to be built.
14037 allow_undefined_flag=$lt_allow_undefined_flag_RC
14038
14039 # Flag that enforces no undefined symbols.
14040 no_undefined_flag=$lt_no_undefined_flag_RC
14041
14042 # Flag to hardcode \$libdir into a binary during linking.
14043 # This must work even if \$libdir does not exist
14044 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
14045
14046 # If ld is used when linking, flag to hardcode \$libdir into a binary
14047 # during linking.  This must work even if \$libdir does not exist.
14048 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
14049
14050 # Whether we need a single "-rpath" flag with a separated argument.
14051 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
14052
14053 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14054 # DIR into the resulting binary.
14055 hardcode_direct=$hardcode_direct_RC
14056
14057 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14058 # DIR into the resulting binary and the resulting library dependency is
14059 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14060 # library is relocated.
14061 hardcode_direct_absolute=$hardcode_direct_absolute_RC
14062
14063 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14064 # into the resulting binary.
14065 hardcode_minus_L=$hardcode_minus_L_RC
14066
14067 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14068 # into the resulting binary.
14069 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
14070
14071 # Set to "yes" if building a shared library automatically hardcodes DIR
14072 # into the library and all subsequent libraries and executables linked
14073 # against it.
14074 hardcode_automatic=$hardcode_automatic_RC
14075
14076 # Set to yes if linker adds runtime paths of dependent libraries
14077 # to runtime path list.
14078 inherit_rpath=$inherit_rpath_RC
14079
14080 # Whether libtool must link a program against all its dependency libraries.
14081 link_all_deplibs=$link_all_deplibs_RC
14082
14083 # Fix the shell variable \$srcfile for the compiler.
14084 fix_srcfile_path=$lt_fix_srcfile_path_RC
14085
14086 # Set to "yes" if exported symbols are required.
14087 always_export_symbols=$always_export_symbols_RC
14088
14089 # The commands to list exported symbols.
14090 export_symbols_cmds=$lt_export_symbols_cmds_RC
14091
14092 # Symbols that should not be listed in the preloaded symbols.
14093 exclude_expsyms=$lt_exclude_expsyms_RC
14094
14095 # Symbols that must always be exported.
14096 include_expsyms=$lt_include_expsyms_RC
14097
14098 # Commands necessary for linking programs (against libraries) with templates.
14099 prelink_cmds=$lt_prelink_cmds_RC
14100
14101 # Specify filename containing input files.
14102 file_list_spec=$lt_file_list_spec_RC
14103
14104 # How to hardcode a shared library path into an executable.
14105 hardcode_action=$hardcode_action_RC
14106
14107 # ### END LIBTOOL TAG CONFIG: RC
14108 _LT_EOF
14109
14110  ;;
14111
14112   esac
14113 done # for ac_tag
14114
14115
14116 as_fn_exit 0
14117 _ACEOF
14118 ac_clean_files=$ac_clean_files_save
14119
14120 test $ac_write_fail = 0 ||
14121   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14122
14123
14124 # configure is writing to config.log, and then calls config.status.
14125 # config.status does its own redirection, appending to config.log.
14126 # Unfortunately, on DOS this fails, as config.log is still kept open
14127 # by configure, so config.status won't be able to write to it; its
14128 # output is simply discarded.  So we exec the FD to /dev/null,
14129 # effectively closing config.log, so it can be properly (re)opened and
14130 # appended to by config.status.  When coming back to configure, we
14131 # need to make the FD available again.
14132 if test "$no_create" != yes; then
14133   ac_cs_success=:
14134   ac_config_status_args=
14135   test "$silent" = yes &&
14136     ac_config_status_args="$ac_config_status_args --quiet"
14137   exec 5>/dev/null
14138   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14139   exec 5>>config.log
14140   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14141   # would make configure fail if this is the last instruction.
14142   $ac_cs_success || as_fn_exit 1
14143 fi
14144 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14145   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14146 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14147 fi
14148