Imported Upstream version 0.1.5
[platform/upstream/libusb-compat.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libusb-compat 0.1.5.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     PATH=/empty FPATH=/empty; export PATH FPATH
205     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='libusb-compat'
589 PACKAGE_TARNAME='libusb-compat'
590 PACKAGE_VERSION='0.1.5'
591 PACKAGE_STRING='libusb-compat 0.1.5'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="libusb/core.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 AM_CFLAGS
637 BUILD_EXAMPLES_FALSE
638 BUILD_EXAMPLES_TRUE
639 LIBUSB_1_0_LIBS
640 LIBUSB_1_0_CFLAGS
641 PKG_CONFIG_LIBDIR
642 PKG_CONFIG_PATH
643 PKG_CONFIG
644 LIBUSB01_VERSION
645 LT_AGE
646 LT_REVISION
647 LT_MAJOR
648 CPP
649 OTOOL64
650 OTOOL
651 LIPO
652 NMEDIT
653 DSYMUTIL
654 MANIFEST_TOOL
655 RANLIB
656 ac_ct_AR
657 AR
658 DLLTOOL
659 OBJDUMP
660 LN_S
661 NM
662 ac_ct_DUMPBIN
663 DUMPBIN
664 LD
665 FGREP
666 EGREP
667 GREP
668 SED
669 host_os
670 host_vendor
671 host_cpu
672 host
673 build_os
674 build_vendor
675 build_cpu
676 build
677 LIBTOOL
678 am__fastdepCC_FALSE
679 am__fastdepCC_TRUE
680 CCDEPMODE
681 am__nodep
682 AMDEPBACKSLASH
683 AMDEP_FALSE
684 AMDEP_TRUE
685 am__quote
686 am__include
687 DEPDIR
688 OBJEXT
689 EXEEXT
690 ac_ct_CC
691 CPPFLAGS
692 LDFLAGS
693 CFLAGS
694 CC
695 AM_BACKSLASH
696 AM_DEFAULT_VERBOSITY
697 AM_DEFAULT_V
698 AM_V
699 am__untar
700 am__tar
701 AMTAR
702 am__leading_dot
703 SET_MAKE
704 AWK
705 mkdir_p
706 MKDIR_P
707 INSTALL_STRIP_PROGRAM
708 STRIP
709 install_sh
710 MAKEINFO
711 AUTOHEADER
712 AUTOMAKE
713 AUTOCONF
714 ACLOCAL
715 VERSION
716 PACKAGE
717 CYGPATH_W
718 am__isrc
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 target_alias
723 host_alias
724 build_alias
725 LIBS
726 ECHO_T
727 ECHO_N
728 ECHO_C
729 DEFS
730 mandir
731 localedir
732 libdir
733 psdir
734 pdfdir
735 dvidir
736 htmldir
737 infodir
738 docdir
739 oldincludedir
740 includedir
741 localstatedir
742 sharedstatedir
743 sysconfdir
744 datadir
745 datarootdir
746 libexecdir
747 sbindir
748 bindir
749 program_transform_name
750 prefix
751 exec_prefix
752 PACKAGE_URL
753 PACKAGE_BUGREPORT
754 PACKAGE_STRING
755 PACKAGE_VERSION
756 PACKAGE_TARNAME
757 PACKAGE_NAME
758 PATH_SEPARATOR
759 SHELL'
760 ac_subst_files=''
761 ac_user_opts='
762 enable_option_checking
763 enable_silent_rules
764 enable_dependency_tracking
765 enable_shared
766 enable_static
767 with_pic
768 enable_fast_install
769 with_gnu_ld
770 with_sysroot
771 enable_libtool_lock
772 enable_log
773 enable_debug_log
774 enable_examples_build
775 '
776       ac_precious_vars='build_alias
777 host_alias
778 target_alias
779 CC
780 CFLAGS
781 LDFLAGS
782 LIBS
783 CPPFLAGS
784 CPP
785 PKG_CONFIG
786 PKG_CONFIG_PATH
787 PKG_CONFIG_LIBDIR
788 LIBUSB_1_0_CFLAGS
789 LIBUSB_1_0_LIBS'
790
791
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 ac_unrecognized_opts=
796 ac_unrecognized_sep=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
799 cache_file=/dev/null
800 exec_prefix=NONE
801 no_create=
802 no_recursion=
803 prefix=NONE
804 program_prefix=NONE
805 program_suffix=NONE
806 program_transform_name=s,x,x,
807 silent=
808 site=
809 srcdir=
810 verbose=
811 x_includes=NONE
812 x_libraries=NONE
813
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 includedir='${prefix}/include'
829 oldincludedir='/usr/include'
830 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831 infodir='${datarootdir}/info'
832 htmldir='${docdir}'
833 dvidir='${docdir}'
834 pdfdir='${docdir}'
835 psdir='${docdir}'
836 libdir='${exec_prefix}/lib'
837 localedir='${datarootdir}/locale'
838 mandir='${datarootdir}/man'
839
840 ac_prev=
841 ac_dashdash=
842 for ac_option
843 do
844   # If the previous option needs an argument, assign it.
845   if test -n "$ac_prev"; then
846     eval $ac_prev=\$ac_option
847     ac_prev=
848     continue
849   fi
850
851   case $ac_option in
852   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853   *=)   ac_optarg= ;;
854   *)    ac_optarg=yes ;;
855   esac
856
857   # Accept the important Cygnus configure options, so we can diagnose typos.
858
859   case $ac_dashdash$ac_option in
860   --)
861     ac_dashdash=yes ;;
862
863   -bindir | --bindir | --bindi | --bind | --bin | --bi)
864     ac_prev=bindir ;;
865   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866     bindir=$ac_optarg ;;
867
868   -build | --build | --buil | --bui | --bu)
869     ac_prev=build_alias ;;
870   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871     build_alias=$ac_optarg ;;
872
873   -cache-file | --cache-file | --cache-fil | --cache-fi \
874   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875     ac_prev=cache_file ;;
876   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878     cache_file=$ac_optarg ;;
879
880   --config-cache | -C)
881     cache_file=config.cache ;;
882
883   -datadir | --datadir | --datadi | --datad)
884     ac_prev=datadir ;;
885   -datadir=* | --datadir=* | --datadi=* | --datad=*)
886     datadir=$ac_optarg ;;
887
888   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889   | --dataroo | --dataro | --datar)
890     ac_prev=datarootdir ;;
891   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893     datarootdir=$ac_optarg ;;
894
895   -disable-* | --disable-*)
896     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897     # Reject names that are not valid shell variable names.
898     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899       as_fn_error $? "invalid feature name: $ac_useropt"
900     ac_useropt_orig=$ac_useropt
901     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902     case $ac_user_opts in
903       *"
904 "enable_$ac_useropt"
905 "*) ;;
906       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907          ac_unrecognized_sep=', ';;
908     esac
909     eval enable_$ac_useropt=no ;;
910
911   -docdir | --docdir | --docdi | --doc | --do)
912     ac_prev=docdir ;;
913   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914     docdir=$ac_optarg ;;
915
916   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917     ac_prev=dvidir ;;
918   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919     dvidir=$ac_optarg ;;
920
921   -enable-* | --enable-*)
922     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923     # Reject names that are not valid shell variable names.
924     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925       as_fn_error $? "invalid feature name: $ac_useropt"
926     ac_useropt_orig=$ac_useropt
927     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928     case $ac_user_opts in
929       *"
930 "enable_$ac_useropt"
931 "*) ;;
932       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933          ac_unrecognized_sep=', ';;
934     esac
935     eval enable_$ac_useropt=\$ac_optarg ;;
936
937   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939   | --exec | --exe | --ex)
940     ac_prev=exec_prefix ;;
941   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943   | --exec=* | --exe=* | --ex=*)
944     exec_prefix=$ac_optarg ;;
945
946   -gas | --gas | --ga | --g)
947     # Obsolete; use --with-gas.
948     with_gas=yes ;;
949
950   -help | --help | --hel | --he | -h)
951     ac_init_help=long ;;
952   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953     ac_init_help=recursive ;;
954   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955     ac_init_help=short ;;
956
957   -host | --host | --hos | --ho)
958     ac_prev=host_alias ;;
959   -host=* | --host=* | --hos=* | --ho=*)
960     host_alias=$ac_optarg ;;
961
962   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963     ac_prev=htmldir ;;
964   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965   | --ht=*)
966     htmldir=$ac_optarg ;;
967
968   -includedir | --includedir | --includedi | --included | --include \
969   | --includ | --inclu | --incl | --inc)
970     ac_prev=includedir ;;
971   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972   | --includ=* | --inclu=* | --incl=* | --inc=*)
973     includedir=$ac_optarg ;;
974
975   -infodir | --infodir | --infodi | --infod | --info | --inf)
976     ac_prev=infodir ;;
977   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978     infodir=$ac_optarg ;;
979
980   -libdir | --libdir | --libdi | --libd)
981     ac_prev=libdir ;;
982   -libdir=* | --libdir=* | --libdi=* | --libd=*)
983     libdir=$ac_optarg ;;
984
985   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986   | --libexe | --libex | --libe)
987     ac_prev=libexecdir ;;
988   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989   | --libexe=* | --libex=* | --libe=*)
990     libexecdir=$ac_optarg ;;
991
992   -localedir | --localedir | --localedi | --localed | --locale)
993     ac_prev=localedir ;;
994   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995     localedir=$ac_optarg ;;
996
997   -localstatedir | --localstatedir | --localstatedi | --localstated \
998   | --localstate | --localstat | --localsta | --localst | --locals)
999     ac_prev=localstatedir ;;
1000   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002     localstatedir=$ac_optarg ;;
1003
1004   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005     ac_prev=mandir ;;
1006   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007     mandir=$ac_optarg ;;
1008
1009   -nfp | --nfp | --nf)
1010     # Obsolete; use --without-fp.
1011     with_fp=no ;;
1012
1013   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014   | --no-cr | --no-c | -n)
1015     no_create=yes ;;
1016
1017   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019     no_recursion=yes ;;
1020
1021   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023   | --oldin | --oldi | --old | --ol | --o)
1024     ac_prev=oldincludedir ;;
1025   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028     oldincludedir=$ac_optarg ;;
1029
1030   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031     ac_prev=prefix ;;
1032   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033     prefix=$ac_optarg ;;
1034
1035   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036   | --program-pre | --program-pr | --program-p)
1037     ac_prev=program_prefix ;;
1038   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040     program_prefix=$ac_optarg ;;
1041
1042   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043   | --program-suf | --program-su | --program-s)
1044     ac_prev=program_suffix ;;
1045   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047     program_suffix=$ac_optarg ;;
1048
1049   -program-transform-name | --program-transform-name \
1050   | --program-transform-nam | --program-transform-na \
1051   | --program-transform-n | --program-transform- \
1052   | --program-transform | --program-transfor \
1053   | --program-transfo | --program-transf \
1054   | --program-trans | --program-tran \
1055   | --progr-tra | --program-tr | --program-t)
1056     ac_prev=program_transform_name ;;
1057   -program-transform-name=* | --program-transform-name=* \
1058   | --program-transform-nam=* | --program-transform-na=* \
1059   | --program-transform-n=* | --program-transform-=* \
1060   | --program-transform=* | --program-transfor=* \
1061   | --program-transfo=* | --program-transf=* \
1062   | --program-trans=* | --program-tran=* \
1063   | --progr-tra=* | --program-tr=* | --program-t=*)
1064     program_transform_name=$ac_optarg ;;
1065
1066   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067     ac_prev=pdfdir ;;
1068   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069     pdfdir=$ac_optarg ;;
1070
1071   -psdir | --psdir | --psdi | --psd | --ps)
1072     ac_prev=psdir ;;
1073   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074     psdir=$ac_optarg ;;
1075
1076   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077   | -silent | --silent | --silen | --sile | --sil)
1078     silent=yes ;;
1079
1080   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081     ac_prev=sbindir ;;
1082   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083   | --sbi=* | --sb=*)
1084     sbindir=$ac_optarg ;;
1085
1086   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088   | --sharedst | --shareds | --shared | --share | --shar \
1089   | --sha | --sh)
1090     ac_prev=sharedstatedir ;;
1091   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094   | --sha=* | --sh=*)
1095     sharedstatedir=$ac_optarg ;;
1096
1097   -site | --site | --sit)
1098     ac_prev=site ;;
1099   -site=* | --site=* | --sit=*)
1100     site=$ac_optarg ;;
1101
1102   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103     ac_prev=srcdir ;;
1104   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105     srcdir=$ac_optarg ;;
1106
1107   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108   | --syscon | --sysco | --sysc | --sys | --sy)
1109     ac_prev=sysconfdir ;;
1110   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112     sysconfdir=$ac_optarg ;;
1113
1114   -target | --target | --targe | --targ | --tar | --ta | --t)
1115     ac_prev=target_alias ;;
1116   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117     target_alias=$ac_optarg ;;
1118
1119   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120     verbose=yes ;;
1121
1122   -version | --version | --versio | --versi | --vers | -V)
1123     ac_init_version=: ;;
1124
1125   -with-* | --with-*)
1126     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127     # Reject names that are not valid shell variable names.
1128     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129       as_fn_error $? "invalid package name: $ac_useropt"
1130     ac_useropt_orig=$ac_useropt
1131     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132     case $ac_user_opts in
1133       *"
1134 "with_$ac_useropt"
1135 "*) ;;
1136       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137          ac_unrecognized_sep=', ';;
1138     esac
1139     eval with_$ac_useropt=\$ac_optarg ;;
1140
1141   -without-* | --without-*)
1142     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143     # Reject names that are not valid shell variable names.
1144     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145       as_fn_error $? "invalid package name: $ac_useropt"
1146     ac_useropt_orig=$ac_useropt
1147     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148     case $ac_user_opts in
1149       *"
1150 "with_$ac_useropt"
1151 "*) ;;
1152       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153          ac_unrecognized_sep=', ';;
1154     esac
1155     eval with_$ac_useropt=no ;;
1156
1157   --x)
1158     # Obsolete; use --with-x.
1159     with_x=yes ;;
1160
1161   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162   | --x-incl | --x-inc | --x-in | --x-i)
1163     ac_prev=x_includes ;;
1164   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166     x_includes=$ac_optarg ;;
1167
1168   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170     ac_prev=x_libraries ;;
1171   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173     x_libraries=$ac_optarg ;;
1174
1175   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176 Try \`$0 --help' for more information"
1177     ;;
1178
1179   *=*)
1180     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181     # Reject names that are not valid shell variable names.
1182     case $ac_envvar in #(
1183       '' | [0-9]* | *[!_$as_cr_alnum]* )
1184       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1185     esac
1186     eval $ac_envvar=\$ac_optarg
1187     export $ac_envvar ;;
1188
1189   *)
1190     # FIXME: should be removed in autoconf 3.0.
1191     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1195     ;;
1196
1197   esac
1198 done
1199
1200 if test -n "$ac_prev"; then
1201   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202   as_fn_error $? "missing argument to $ac_option"
1203 fi
1204
1205 if test -n "$ac_unrecognized_opts"; then
1206   case $enable_option_checking in
1207     no) ;;
1208     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210   esac
1211 fi
1212
1213 # Check all directory arguments for consistency.
1214 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215                 datadir sysconfdir sharedstatedir localstatedir includedir \
1216                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217                 libdir localedir mandir
1218 do
1219   eval ac_val=\$$ac_var
1220   # Remove trailing slashes.
1221   case $ac_val in
1222     */ )
1223       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224       eval $ac_var=\$ac_val;;
1225   esac
1226   # Be sure to have absolute directory names.
1227   case $ac_val in
1228     [\\/$]* | ?:[\\/]* )  continue;;
1229     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230   esac
1231   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232 done
1233
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1237 build=$build_alias
1238 host=$host_alias
1239 target=$target_alias
1240
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243   if test "x$build_alias" = x; then
1244     cross_compiling=maybe
1245   elif test "x$build_alias" != "x$host_alias"; then
1246     cross_compiling=yes
1247   fi
1248 fi
1249
1250 ac_tool_prefix=
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253 test "$silent" = yes && exec 6>/dev/null
1254
1255
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259   as_fn_error $? "working directory cannot be determined"
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261   as_fn_error $? "pwd does not report name of working directory"
1262
1263
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266   ac_srcdir_defaulted=yes
1267   # Try the directory containing this script, then the parent directory.
1268   ac_confdir=`$as_dirname -- "$as_myself" ||
1269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270          X"$as_myself" : 'X\(//\)[^/]' \| \
1271          X"$as_myself" : 'X\(//\)$' \| \
1272          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273 $as_echo X"$as_myself" |
1274     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275             s//\1/
1276             q
1277           }
1278           /^X\(\/\/\)[^/].*/{
1279             s//\1/
1280             q
1281           }
1282           /^X\(\/\/\)$/{
1283             s//\1/
1284             q
1285           }
1286           /^X\(\/\).*/{
1287             s//\1/
1288             q
1289           }
1290           s/.*/./; q'`
1291   srcdir=$ac_confdir
1292   if test ! -r "$srcdir/$ac_unique_file"; then
1293     srcdir=..
1294   fi
1295 else
1296   ac_srcdir_defaulted=no
1297 fi
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1301 fi
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 ac_abs_confdir=`(
1304         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305         pwd)`
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308   srcdir=.
1309 fi
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1313 case $srcdir in
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 esac
1316 for ac_var in $ac_precious_vars; do
1317   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318   eval ac_env_${ac_var}_value=\$${ac_var}
1319   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 done
1322
1323 #
1324 # Report the --help message.
1325 #
1326 if test "$ac_init_help" = "long"; then
1327   # Omit some internal or obsolete options to make the list less imposing.
1328   # This message is too long to be a string in the A/UX 3.1 sh.
1329   cat <<_ACEOF
1330 \`configure' configures libusb-compat 0.1.5 to adapt to many kinds of systems.
1331
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE.  See below for descriptions of some of the useful variables.
1336
1337 Defaults for the options are specified in brackets.
1338
1339 Configuration:
1340   -h, --help              display this help and exit
1341       --help=short        display options specific to this package
1342       --help=recursive    display the short help of all the included packages
1343   -V, --version           display version information and exit
1344   -q, --quiet, --silent   do not print \`checking ...' messages
1345       --cache-file=FILE   cache test results in FILE [disabled]
1346   -C, --config-cache      alias for \`--cache-file=config.cache'
1347   -n, --no-create         do not create output files
1348       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1349
1350 Installation directories:
1351   --prefix=PREFIX         install architecture-independent files in PREFIX
1352                           [$ac_default_prefix]
1353   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1354                           [PREFIX]
1355
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1360
1361 For better control, use the options below.
1362
1363 Fine tuning of the installation directories:
1364   --bindir=DIR            user executables [EPREFIX/bin]
1365   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1366   --libexecdir=DIR        program executables [EPREFIX/libexec]
1367   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1368   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1369   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1370   --libdir=DIR            object code libraries [EPREFIX/lib]
1371   --includedir=DIR        C header files [PREFIX/include]
1372   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1373   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1374   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1375   --infodir=DIR           info documentation [DATAROOTDIR/info]
1376   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1377   --mandir=DIR            man documentation [DATAROOTDIR/man]
1378   --docdir=DIR            documentation root [DATAROOTDIR/doc/libusb-compat]
1379   --htmldir=DIR           html documentation [DOCDIR]
1380   --dvidir=DIR            dvi documentation [DOCDIR]
1381   --pdfdir=DIR            pdf documentation [DOCDIR]
1382   --psdir=DIR             ps documentation [DOCDIR]
1383 _ACEOF
1384
1385   cat <<\_ACEOF
1386
1387 Program names:
1388   --program-prefix=PREFIX            prepend PREFIX to installed program names
1389   --program-suffix=SUFFIX            append SUFFIX to installed program names
1390   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1391
1392 System types:
1393   --build=BUILD     configure for building on BUILD [guessed]
1394   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1395 _ACEOF
1396 fi
1397
1398 if test -n "$ac_init_help"; then
1399   case $ac_init_help in
1400      short | recursive ) echo "Configuration of libusb-compat 0.1.5:";;
1401    esac
1402   cat <<\_ACEOF
1403
1404 Optional Features:
1405   --disable-option-checking  ignore unrecognized --enable/--with options
1406   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1407   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1408   --enable-silent-rules   less verbose build output (undo: "make V=1")
1409   --disable-silent-rules  verbose build output (undo: "make V=0")
1410   --enable-dependency-tracking
1411                           do not reject slow dependency extractors
1412   --disable-dependency-tracking
1413                           speeds up one-time build
1414   --enable-shared[=PKGS]  build shared libraries [default=yes]
1415   --enable-static[=PKGS]  build static libraries [default=yes]
1416   --enable-fast-install[=PKGS]
1417                           optimize for fast installation [default=yes]
1418   --disable-libtool-lock  avoid locking (might break parallel builds)
1419   --disable-log           disable all logging
1420   --enable-debug-log      enable debug logging (default n)
1421   --enable-examples-build build example applications (default n)
1422
1423 Optional Packages:
1424   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1425   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1426   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1427                           both]
1428   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1429   --with-sysroot=DIR Search for dependent libraries within DIR
1430                         (or the compiler's sysroot if not specified).
1431
1432 Some influential environment variables:
1433   CC          C compiler command
1434   CFLAGS      C compiler flags
1435   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1436               nonstandard directory <lib dir>
1437   LIBS        libraries to pass to the linker, e.g. -l<library>
1438   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439               you have headers in a nonstandard directory <include dir>
1440   CPP         C preprocessor
1441   PKG_CONFIG  path to pkg-config utility
1442   PKG_CONFIG_PATH
1443               directories to add to pkg-config's search path
1444   PKG_CONFIG_LIBDIR
1445               path overriding pkg-config's built-in search path
1446   LIBUSB_1_0_CFLAGS
1447               C compiler flags for LIBUSB_1_0, overriding pkg-config
1448   LIBUSB_1_0_LIBS
1449               linker flags for LIBUSB_1_0, overriding pkg-config
1450
1451 Use these variables to override the choices made by `configure' or to help
1452 it to find libraries and programs with nonstandard names/locations.
1453
1454 Report bugs to the package provider.
1455 _ACEOF
1456 ac_status=$?
1457 fi
1458
1459 if test "$ac_init_help" = "recursive"; then
1460   # If there are subdirs, report their specific --help.
1461   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462     test -d "$ac_dir" ||
1463       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464       continue
1465     ac_builddir=.
1466
1467 case "$ac_dir" in
1468 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 *)
1470   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1471   # A ".." for each directory in $ac_dir_suffix.
1472   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1473   case $ac_top_builddir_sub in
1474   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476   esac ;;
1477 esac
1478 ac_abs_top_builddir=$ac_pwd
1479 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480 # for backward compatibility:
1481 ac_top_builddir=$ac_top_build_prefix
1482
1483 case $srcdir in
1484   .)  # We are building in place.
1485     ac_srcdir=.
1486     ac_top_srcdir=$ac_top_builddir_sub
1487     ac_abs_top_srcdir=$ac_pwd ;;
1488   [\\/]* | ?:[\\/]* )  # Absolute name.
1489     ac_srcdir=$srcdir$ac_dir_suffix;
1490     ac_top_srcdir=$srcdir
1491     ac_abs_top_srcdir=$srcdir ;;
1492   *) # Relative name.
1493     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494     ac_top_srcdir=$ac_top_build_prefix$srcdir
1495     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496 esac
1497 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498
1499     cd "$ac_dir" || { ac_status=$?; continue; }
1500     # Check for guested configure.
1501     if test -f "$ac_srcdir/configure.gnu"; then
1502       echo &&
1503       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504     elif test -f "$ac_srcdir/configure"; then
1505       echo &&
1506       $SHELL "$ac_srcdir/configure" --help=recursive
1507     else
1508       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509     fi || ac_status=$?
1510     cd "$ac_pwd" || { ac_status=$?; break; }
1511   done
1512 fi
1513
1514 test -n "$ac_init_help" && exit $ac_status
1515 if $ac_init_version; then
1516   cat <<\_ACEOF
1517 libusb-compat configure 0.1.5
1518 generated by GNU Autoconf 2.69
1519
1520 Copyright (C) 2012 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1523 _ACEOF
1524   exit
1525 fi
1526
1527 ## ------------------------ ##
1528 ## Autoconf initialization. ##
1529 ## ------------------------ ##
1530
1531 # ac_fn_c_try_compile LINENO
1532 # --------------------------
1533 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1534 ac_fn_c_try_compile ()
1535 {
1536   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537   rm -f conftest.$ac_objext
1538   if { { ac_try="$ac_compile"
1539 case "(($ac_try" in
1540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541   *) ac_try_echo=$ac_try;;
1542 esac
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545   (eval "$ac_compile") 2>conftest.err
1546   ac_status=$?
1547   if test -s conftest.err; then
1548     grep -v '^ *+' conftest.err >conftest.er1
1549     cat conftest.er1 >&5
1550     mv -f conftest.er1 conftest.err
1551   fi
1552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553   test $ac_status = 0; } && {
1554          test -z "$ac_c_werror_flag" ||
1555          test ! -s conftest.err
1556        } && test -s conftest.$ac_objext; then :
1557   ac_retval=0
1558 else
1559   $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1561
1562         ac_retval=1
1563 fi
1564   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565   as_fn_set_status $ac_retval
1566
1567 } # ac_fn_c_try_compile
1568
1569 # ac_fn_c_try_link LINENO
1570 # -----------------------
1571 # Try to link conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_link ()
1573 {
1574   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575   rm -f conftest.$ac_objext conftest$ac_exeext
1576   if { { ac_try="$ac_link"
1577 case "(($ac_try" in
1578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579   *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583   (eval "$ac_link") 2>conftest.err
1584   ac_status=$?
1585   if test -s conftest.err; then
1586     grep -v '^ *+' conftest.err >conftest.er1
1587     cat conftest.er1 >&5
1588     mv -f conftest.er1 conftest.err
1589   fi
1590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591   test $ac_status = 0; } && {
1592          test -z "$ac_c_werror_flag" ||
1593          test ! -s conftest.err
1594        } && test -s conftest$ac_exeext && {
1595          test "$cross_compiling" = yes ||
1596          test -x conftest$ac_exeext
1597        }; then :
1598   ac_retval=0
1599 else
1600   $as_echo "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.$ac_ext >&5
1602
1603         ac_retval=1
1604 fi
1605   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1606   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1607   # interfere with the next link command; also delete a directory that is
1608   # left behind by Apple's compiler.  We do this before executing the actions.
1609   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1610   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611   as_fn_set_status $ac_retval
1612
1613 } # ac_fn_c_try_link
1614
1615 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1616 # -------------------------------------------------------
1617 # Tests whether HEADER exists and can be compiled using the include files in
1618 # INCLUDES, setting the cache variable VAR accordingly.
1619 ac_fn_c_check_header_compile ()
1620 {
1621   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623 $as_echo_n "checking for $2... " >&6; }
1624 if eval \${$3+:} false; then :
1625   $as_echo_n "(cached) " >&6
1626 else
1627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628 /* end confdefs.h.  */
1629 $4
1630 #include <$2>
1631 _ACEOF
1632 if ac_fn_c_try_compile "$LINENO"; then :
1633   eval "$3=yes"
1634 else
1635   eval "$3=no"
1636 fi
1637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1638 fi
1639 eval ac_res=\$$3
1640                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1641 $as_echo "$ac_res" >&6; }
1642   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643
1644 } # ac_fn_c_check_header_compile
1645
1646 # ac_fn_c_try_cpp LINENO
1647 # ----------------------
1648 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_cpp ()
1650 {
1651   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652   if { { ac_try="$ac_cpp conftest.$ac_ext"
1653 case "(($ac_try" in
1654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655   *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1660   ac_status=$?
1661   if test -s conftest.err; then
1662     grep -v '^ *+' conftest.err >conftest.er1
1663     cat conftest.er1 >&5
1664     mv -f conftest.er1 conftest.err
1665   fi
1666   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667   test $ac_status = 0; } > conftest.i && {
1668          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1669          test ! -s conftest.err
1670        }; then :
1671   ac_retval=0
1672 else
1673   $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1675
1676     ac_retval=1
1677 fi
1678   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679   as_fn_set_status $ac_retval
1680
1681 } # ac_fn_c_try_cpp
1682
1683 # ac_fn_c_try_run LINENO
1684 # ----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1686 # that executables *can* be run.
1687 ac_fn_c_try_run ()
1688 {
1689   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690   if { { ac_try="$ac_link"
1691 case "(($ac_try" in
1692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693   *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697   (eval "$ac_link") 2>&5
1698   ac_status=$?
1699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1701   { { case "(($ac_try" in
1702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703   *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707   (eval "$ac_try") 2>&5
1708   ac_status=$?
1709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710   test $ac_status = 0; }; }; then :
1711   ac_retval=0
1712 else
1713   $as_echo "$as_me: program exited with status $ac_status" >&5
1714        $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717        ac_retval=$ac_status
1718 fi
1719   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721   as_fn_set_status $ac_retval
1722
1723 } # ac_fn_c_try_run
1724
1725 # ac_fn_c_check_func LINENO FUNC VAR
1726 # ----------------------------------
1727 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1728 ac_fn_c_check_func ()
1729 {
1730   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 $as_echo_n "checking for $2... " >&6; }
1733 if eval \${$3+:} false; then :
1734   $as_echo_n "(cached) " >&6
1735 else
1736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h.  */
1738 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1740 #define $2 innocuous_$2
1741
1742 /* System header to define __stub macros and hopefully few prototypes,
1743     which can conflict with char $2 (); below.
1744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1745     <limits.h> exists even on freestanding compilers.  */
1746
1747 #ifdef __STDC__
1748 # include <limits.h>
1749 #else
1750 # include <assert.h>
1751 #endif
1752
1753 #undef $2
1754
1755 /* Override any GCC internal prototype to avoid an error.
1756    Use char because int might match the return type of a GCC
1757    builtin and then its argument prototype would still apply.  */
1758 #ifdef __cplusplus
1759 extern "C"
1760 #endif
1761 char $2 ();
1762 /* The GNU C library defines this for functions which it implements
1763     to always fail with ENOSYS.  Some functions are actually named
1764     something starting with __ and the normal name is an alias.  */
1765 #if defined __stub_$2 || defined __stub___$2
1766 choke me
1767 #endif
1768
1769 int
1770 main ()
1771 {
1772 return $2 ();
1773   ;
1774   return 0;
1775 }
1776 _ACEOF
1777 if ac_fn_c_try_link "$LINENO"; then :
1778   eval "$3=yes"
1779 else
1780   eval "$3=no"
1781 fi
1782 rm -f core conftest.err conftest.$ac_objext \
1783     conftest$ac_exeext conftest.$ac_ext
1784 fi
1785 eval ac_res=\$$3
1786                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790 } # ac_fn_c_check_func
1791 cat >config.log <<_ACEOF
1792 This file contains any messages produced by compilers while
1793 running configure, to aid debugging if configure makes a mistake.
1794
1795 It was created by libusb-compat $as_me 0.1.5, which was
1796 generated by GNU Autoconf 2.69.  Invocation command line was
1797
1798   $ $0 $@
1799
1800 _ACEOF
1801 exec 5>>config.log
1802 {
1803 cat <<_ASUNAME
1804 ## --------- ##
1805 ## Platform. ##
1806 ## --------- ##
1807
1808 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1809 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1810 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1811 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1812 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1813
1814 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1815 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1816
1817 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1818 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1819 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1820 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1821 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1822 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1823 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1824
1825 _ASUNAME
1826
1827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828 for as_dir in $PATH
1829 do
1830   IFS=$as_save_IFS
1831   test -z "$as_dir" && as_dir=.
1832     $as_echo "PATH: $as_dir"
1833   done
1834 IFS=$as_save_IFS
1835
1836 } >&5
1837
1838 cat >&5 <<_ACEOF
1839
1840
1841 ## ----------- ##
1842 ## Core tests. ##
1843 ## ----------- ##
1844
1845 _ACEOF
1846
1847
1848 # Keep a trace of the command line.
1849 # Strip out --no-create and --no-recursion so they do not pile up.
1850 # Strip out --silent because we don't want to record it for future runs.
1851 # Also quote any args containing shell meta-characters.
1852 # Make two passes to allow for proper duplicate-argument suppression.
1853 ac_configure_args=
1854 ac_configure_args0=
1855 ac_configure_args1=
1856 ac_must_keep_next=false
1857 for ac_pass in 1 2
1858 do
1859   for ac_arg
1860   do
1861     case $ac_arg in
1862     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1863     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1864     | -silent | --silent | --silen | --sile | --sil)
1865       continue ;;
1866     *\'*)
1867       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1868     esac
1869     case $ac_pass in
1870     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1871     2)
1872       as_fn_append ac_configure_args1 " '$ac_arg'"
1873       if test $ac_must_keep_next = true; then
1874         ac_must_keep_next=false # Got value, back to normal.
1875       else
1876         case $ac_arg in
1877           *=* | --config-cache | -C | -disable-* | --disable-* \
1878           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1879           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1880           | -with-* | --with-* | -without-* | --without-* | --x)
1881             case "$ac_configure_args0 " in
1882               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1883             esac
1884             ;;
1885           -* ) ac_must_keep_next=true ;;
1886         esac
1887       fi
1888       as_fn_append ac_configure_args " '$ac_arg'"
1889       ;;
1890     esac
1891   done
1892 done
1893 { ac_configure_args0=; unset ac_configure_args0;}
1894 { ac_configure_args1=; unset ac_configure_args1;}
1895
1896 # When interrupted or exit'd, cleanup temporary files, and complete
1897 # config.log.  We remove comments because anyway the quotes in there
1898 # would cause problems or look ugly.
1899 # WARNING: Use '\'' to represent an apostrophe within the trap.
1900 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1901 trap 'exit_status=$?
1902   # Save into config.log some information that might help in debugging.
1903   {
1904     echo
1905
1906     $as_echo "## ---------------- ##
1907 ## Cache variables. ##
1908 ## ---------------- ##"
1909     echo
1910     # The following way of writing the cache mishandles newlines in values,
1911 (
1912   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1913     eval ac_val=\$$ac_var
1914     case $ac_val in #(
1915     *${as_nl}*)
1916       case $ac_var in #(
1917       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1918 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1919       esac
1920       case $ac_var in #(
1921       _ | IFS | as_nl) ;; #(
1922       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1923       *) { eval $ac_var=; unset $ac_var;} ;;
1924       esac ;;
1925     esac
1926   done
1927   (set) 2>&1 |
1928     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1929     *${as_nl}ac_space=\ *)
1930       sed -n \
1931         "s/'\''/'\''\\\\'\'''\''/g;
1932           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1933       ;; #(
1934     *)
1935       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1936       ;;
1937     esac |
1938     sort
1939 )
1940     echo
1941
1942     $as_echo "## ----------------- ##
1943 ## Output variables. ##
1944 ## ----------------- ##"
1945     echo
1946     for ac_var in $ac_subst_vars
1947     do
1948       eval ac_val=\$$ac_var
1949       case $ac_val in
1950       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1951       esac
1952       $as_echo "$ac_var='\''$ac_val'\''"
1953     done | sort
1954     echo
1955
1956     if test -n "$ac_subst_files"; then
1957       $as_echo "## ------------------- ##
1958 ## File substitutions. ##
1959 ## ------------------- ##"
1960       echo
1961       for ac_var in $ac_subst_files
1962       do
1963         eval ac_val=\$$ac_var
1964         case $ac_val in
1965         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1966         esac
1967         $as_echo "$ac_var='\''$ac_val'\''"
1968       done | sort
1969       echo
1970     fi
1971
1972     if test -s confdefs.h; then
1973       $as_echo "## ----------- ##
1974 ## confdefs.h. ##
1975 ## ----------- ##"
1976       echo
1977       cat confdefs.h
1978       echo
1979     fi
1980     test "$ac_signal" != 0 &&
1981       $as_echo "$as_me: caught signal $ac_signal"
1982     $as_echo "$as_me: exit $exit_status"
1983   } >&5
1984   rm -f core *.core core.conftest.* &&
1985     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1986     exit $exit_status
1987 ' 0
1988 for ac_signal in 1 2 13 15; do
1989   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1990 done
1991 ac_signal=0
1992
1993 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1994 rm -f -r conftest* confdefs.h
1995
1996 $as_echo "/* confdefs.h */" > confdefs.h
1997
1998 # Predefined preprocessor variables.
1999
2000 cat >>confdefs.h <<_ACEOF
2001 #define PACKAGE_NAME "$PACKAGE_NAME"
2002 _ACEOF
2003
2004 cat >>confdefs.h <<_ACEOF
2005 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2006 _ACEOF
2007
2008 cat >>confdefs.h <<_ACEOF
2009 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2010 _ACEOF
2011
2012 cat >>confdefs.h <<_ACEOF
2013 #define PACKAGE_STRING "$PACKAGE_STRING"
2014 _ACEOF
2015
2016 cat >>confdefs.h <<_ACEOF
2017 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2018 _ACEOF
2019
2020 cat >>confdefs.h <<_ACEOF
2021 #define PACKAGE_URL "$PACKAGE_URL"
2022 _ACEOF
2023
2024
2025 # Let the site file select an alternate cache file if it wants to.
2026 # Prefer an explicitly selected file to automatically selected ones.
2027 ac_site_file1=NONE
2028 ac_site_file2=NONE
2029 if test -n "$CONFIG_SITE"; then
2030   # We do not want a PATH search for config.site.
2031   case $CONFIG_SITE in #((
2032     -*)  ac_site_file1=./$CONFIG_SITE;;
2033     */*) ac_site_file1=$CONFIG_SITE;;
2034     *)   ac_site_file1=./$CONFIG_SITE;;
2035   esac
2036 elif test "x$prefix" != xNONE; then
2037   ac_site_file1=$prefix/share/config.site
2038   ac_site_file2=$prefix/etc/config.site
2039 else
2040   ac_site_file1=$ac_default_prefix/share/config.site
2041   ac_site_file2=$ac_default_prefix/etc/config.site
2042 fi
2043 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2044 do
2045   test "x$ac_site_file" = xNONE && continue
2046   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2047     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2048 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2049     sed 's/^/| /' "$ac_site_file" >&5
2050     . "$ac_site_file" \
2051       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2053 as_fn_error $? "failed to load site script $ac_site_file
2054 See \`config.log' for more details" "$LINENO" 5; }
2055   fi
2056 done
2057
2058 if test -r "$cache_file"; then
2059   # Some versions of bash will fail to source /dev/null (special files
2060   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2061   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2062     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2063 $as_echo "$as_me: loading cache $cache_file" >&6;}
2064     case $cache_file in
2065       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2066       *)                      . "./$cache_file";;
2067     esac
2068   fi
2069 else
2070   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2071 $as_echo "$as_me: creating cache $cache_file" >&6;}
2072   >$cache_file
2073 fi
2074
2075 # Check that the precious variables saved in the cache have kept the same
2076 # value.
2077 ac_cache_corrupted=false
2078 for ac_var in $ac_precious_vars; do
2079   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2080   eval ac_new_set=\$ac_env_${ac_var}_set
2081   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2082   eval ac_new_val=\$ac_env_${ac_var}_value
2083   case $ac_old_set,$ac_new_set in
2084     set,)
2085       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2086 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2087       ac_cache_corrupted=: ;;
2088     ,set)
2089       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2090 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2091       ac_cache_corrupted=: ;;
2092     ,);;
2093     *)
2094       if test "x$ac_old_val" != "x$ac_new_val"; then
2095         # differences in whitespace do not lead to failure.
2096         ac_old_val_w=`echo x $ac_old_val`
2097         ac_new_val_w=`echo x $ac_new_val`
2098         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2099           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2100 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2101           ac_cache_corrupted=:
2102         else
2103           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2104 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2105           eval $ac_var=\$ac_old_val
2106         fi
2107         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2108 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2109         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2110 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2111       fi;;
2112   esac
2113   # Pass precious variables to config.status.
2114   if test "$ac_new_set" = set; then
2115     case $ac_new_val in
2116     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2117     *) ac_arg=$ac_var=$ac_new_val ;;
2118     esac
2119     case " $ac_configure_args " in
2120       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2121       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2122     esac
2123   fi
2124 done
2125 if $ac_cache_corrupted; then
2126   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2128   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2129 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2130   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2131 fi
2132 ## -------------------- ##
2133 ## Main body of script. ##
2134 ## -------------------- ##
2135
2136 ac_ext=c
2137 ac_cpp='$CPP $CPPFLAGS'
2138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2141
2142
2143 am__api_version='1.13'
2144
2145 ac_aux_dir=
2146 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2147   if test -f "$ac_dir/install-sh"; then
2148     ac_aux_dir=$ac_dir
2149     ac_install_sh="$ac_aux_dir/install-sh -c"
2150     break
2151   elif test -f "$ac_dir/install.sh"; then
2152     ac_aux_dir=$ac_dir
2153     ac_install_sh="$ac_aux_dir/install.sh -c"
2154     break
2155   elif test -f "$ac_dir/shtool"; then
2156     ac_aux_dir=$ac_dir
2157     ac_install_sh="$ac_aux_dir/shtool install -c"
2158     break
2159   fi
2160 done
2161 if test -z "$ac_aux_dir"; then
2162   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2163 fi
2164
2165 # These three variables are undocumented and unsupported,
2166 # and are intended to be withdrawn in a future Autoconf release.
2167 # They can cause serious problems if a builder's source tree is in a directory
2168 # whose full name contains unusual characters.
2169 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2170 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2171 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2172
2173
2174 # Find a good install program.  We prefer a C program (faster),
2175 # so one script is as good as another.  But avoid the broken or
2176 # incompatible versions:
2177 # SysV /etc/install, /usr/sbin/install
2178 # SunOS /usr/etc/install
2179 # IRIX /sbin/install
2180 # AIX /bin/install
2181 # AmigaOS /C/install, which installs bootblocks on floppy discs
2182 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2183 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2184 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2185 # OS/2's system install, which has a completely different semantic
2186 # ./install, which can be erroneously created by make from ./install.sh.
2187 # Reject install programs that cannot install multiple files.
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2189 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2190 if test -z "$INSTALL"; then
2191 if ${ac_cv_path_install+:} false; then :
2192   $as_echo_n "(cached) " >&6
2193 else
2194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2196 do
2197   IFS=$as_save_IFS
2198   test -z "$as_dir" && as_dir=.
2199     # Account for people who put trailing slashes in PATH elements.
2200 case $as_dir/ in #((
2201   ./ | .// | /[cC]/* | \
2202   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2203   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2204   /usr/ucb/* ) ;;
2205   *)
2206     # OSF1 and SCO ODT 3.0 have their own names for install.
2207     # Don't use installbsd from OSF since it installs stuff as root
2208     # by default.
2209     for ac_prog in ginstall scoinst install; do
2210       for ac_exec_ext in '' $ac_executable_extensions; do
2211         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2212           if test $ac_prog = install &&
2213             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2214             # AIX install.  It has an incompatible calling convention.
2215             :
2216           elif test $ac_prog = install &&
2217             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2218             # program-specific install script used by HP pwplus--don't use.
2219             :
2220           else
2221             rm -rf conftest.one conftest.two conftest.dir
2222             echo one > conftest.one
2223             echo two > conftest.two
2224             mkdir conftest.dir
2225             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2226               test -s conftest.one && test -s conftest.two &&
2227               test -s conftest.dir/conftest.one &&
2228               test -s conftest.dir/conftest.two
2229             then
2230               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2231               break 3
2232             fi
2233           fi
2234         fi
2235       done
2236     done
2237     ;;
2238 esac
2239
2240   done
2241 IFS=$as_save_IFS
2242
2243 rm -rf conftest.one conftest.two conftest.dir
2244
2245 fi
2246   if test "${ac_cv_path_install+set}" = set; then
2247     INSTALL=$ac_cv_path_install
2248   else
2249     # As a last resort, use the slow shell script.  Don't cache a
2250     # value for INSTALL within a source directory, because that will
2251     # break other packages using the cache if that directory is
2252     # removed, or if the value is a relative name.
2253     INSTALL=$ac_install_sh
2254   fi
2255 fi
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2257 $as_echo "$INSTALL" >&6; }
2258
2259 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2260 # It thinks the first close brace ends the variable substitution.
2261 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2262
2263 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2264
2265 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2266
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2268 $as_echo_n "checking whether build environment is sane... " >&6; }
2269 # Reject unsafe characters in $srcdir or the absolute working directory
2270 # name.  Accept space and tab only in the latter.
2271 am_lf='
2272 '
2273 case `pwd` in
2274   *[\\\"\#\$\&\'\`$am_lf]*)
2275     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2276 esac
2277 case $srcdir in
2278   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2279     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2280 esac
2281
2282 # Do 'set' in a subshell so we don't clobber the current shell's
2283 # arguments.  Must try -L first in case configure is actually a
2284 # symlink; some systems play weird games with the mod time of symlinks
2285 # (eg FreeBSD returns the mod time of the symlink's containing
2286 # directory).
2287 if (
2288    am_has_slept=no
2289    for am_try in 1 2; do
2290      echo "timestamp, slept: $am_has_slept" > conftest.file
2291      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2292      if test "$*" = "X"; then
2293         # -L didn't work.
2294         set X `ls -t "$srcdir/configure" conftest.file`
2295      fi
2296      if test "$*" != "X $srcdir/configure conftest.file" \
2297         && test "$*" != "X conftest.file $srcdir/configure"; then
2298
2299         # If neither matched, then we have a broken ls.  This can happen
2300         # if, for instance, CONFIG_SHELL is bash and it inherits a
2301         # broken ls alias from the environment.  This has actually
2302         # happened.  Such a system could not be considered "sane".
2303         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2304   alias in your environment" "$LINENO" 5
2305      fi
2306      if test "$2" = conftest.file || test $am_try -eq 2; then
2307        break
2308      fi
2309      # Just in case.
2310      sleep 1
2311      am_has_slept=yes
2312    done
2313    test "$2" = conftest.file
2314    )
2315 then
2316    # Ok.
2317    :
2318 else
2319    as_fn_error $? "newly created file is older than distributed files!
2320 Check your system clock" "$LINENO" 5
2321 fi
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2323 $as_echo "yes" >&6; }
2324 # If we didn't sleep, we still need to ensure time stamps of config.status and
2325 # generated files are strictly newer.
2326 am_sleep_pid=
2327 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2328   ( sleep 1 ) &
2329   am_sleep_pid=$!
2330 fi
2331
2332 rm -f conftest.file
2333
2334 test "$program_prefix" != NONE &&
2335   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2336 # Use a double $ so make ignores it.
2337 test "$program_suffix" != NONE &&
2338   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2339 # Double any \ or $.
2340 # By default was `s,x,x', remove it if useless.
2341 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2342 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2343
2344 # expand $ac_aux_dir to an absolute path
2345 am_aux_dir=`cd $ac_aux_dir && pwd`
2346
2347 if test x"${MISSING+set}" != xset; then
2348   case $am_aux_dir in
2349   *\ * | *\     *)
2350     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2351   *)
2352     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2353   esac
2354 fi
2355 # Use eval to expand $SHELL
2356 if eval "$MISSING --is-lightweight"; then
2357   am_missing_run="$MISSING "
2358 else
2359   am_missing_run=
2360   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2361 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2362 fi
2363
2364 if test x"${install_sh}" != xset; then
2365   case $am_aux_dir in
2366   *\ * | *\     *)
2367     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2368   *)
2369     install_sh="\${SHELL} $am_aux_dir/install-sh"
2370   esac
2371 fi
2372
2373 # Installed binaries are usually stripped using 'strip' when the user
2374 # run "make install-strip".  However 'strip' might not be the right
2375 # tool to use in cross-compilation environments, therefore Automake
2376 # will honor the 'STRIP' environment variable to overrule this program.
2377 if test "$cross_compiling" != no; then
2378   if test -n "$ac_tool_prefix"; then
2379   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2380 set dummy ${ac_tool_prefix}strip; ac_word=$2
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2382 $as_echo_n "checking for $ac_word... " >&6; }
2383 if ${ac_cv_prog_STRIP+:} false; then :
2384   $as_echo_n "(cached) " >&6
2385 else
2386   if test -n "$STRIP"; then
2387   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2388 else
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 for as_dir in $PATH
2391 do
2392   IFS=$as_save_IFS
2393   test -z "$as_dir" && as_dir=.
2394     for ac_exec_ext in '' $ac_executable_extensions; do
2395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2396     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2398     break 2
2399   fi
2400 done
2401   done
2402 IFS=$as_save_IFS
2403
2404 fi
2405 fi
2406 STRIP=$ac_cv_prog_STRIP
2407 if test -n "$STRIP"; then
2408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2409 $as_echo "$STRIP" >&6; }
2410 else
2411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2412 $as_echo "no" >&6; }
2413 fi
2414
2415
2416 fi
2417 if test -z "$ac_cv_prog_STRIP"; then
2418   ac_ct_STRIP=$STRIP
2419   # Extract the first word of "strip", so it can be a program name with args.
2420 set dummy strip; ac_word=$2
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2422 $as_echo_n "checking for $ac_word... " >&6; }
2423 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2424   $as_echo_n "(cached) " >&6
2425 else
2426   if test -n "$ac_ct_STRIP"; then
2427   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2428 else
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430 for as_dir in $PATH
2431 do
2432   IFS=$as_save_IFS
2433   test -z "$as_dir" && as_dir=.
2434     for ac_exec_ext in '' $ac_executable_extensions; do
2435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2436     ac_cv_prog_ac_ct_STRIP="strip"
2437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2438     break 2
2439   fi
2440 done
2441   done
2442 IFS=$as_save_IFS
2443
2444 fi
2445 fi
2446 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2447 if test -n "$ac_ct_STRIP"; then
2448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2449 $as_echo "$ac_ct_STRIP" >&6; }
2450 else
2451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2452 $as_echo "no" >&6; }
2453 fi
2454
2455   if test "x$ac_ct_STRIP" = x; then
2456     STRIP=":"
2457   else
2458     case $cross_compiling:$ac_tool_warned in
2459 yes:)
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2462 ac_tool_warned=yes ;;
2463 esac
2464     STRIP=$ac_ct_STRIP
2465   fi
2466 else
2467   STRIP="$ac_cv_prog_STRIP"
2468 fi
2469
2470 fi
2471 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2472
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2474 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2475 if test -z "$MKDIR_P"; then
2476   if ${ac_cv_path_mkdir+:} false; then :
2477   $as_echo_n "(cached) " >&6
2478 else
2479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2481 do
2482   IFS=$as_save_IFS
2483   test -z "$as_dir" && as_dir=.
2484     for ac_prog in mkdir gmkdir; do
2485          for ac_exec_ext in '' $ac_executable_extensions; do
2486            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2487            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2488              'mkdir (GNU coreutils) '* | \
2489              'mkdir (coreutils) '* | \
2490              'mkdir (fileutils) '4.1*)
2491                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2492                break 3;;
2493            esac
2494          done
2495        done
2496   done
2497 IFS=$as_save_IFS
2498
2499 fi
2500
2501   test -d ./--version && rmdir ./--version
2502   if test "${ac_cv_path_mkdir+set}" = set; then
2503     MKDIR_P="$ac_cv_path_mkdir -p"
2504   else
2505     # As a last resort, use the slow shell script.  Don't cache a
2506     # value for MKDIR_P within a source directory, because that will
2507     # break other packages using the cache if that directory is
2508     # removed, or if the value is a relative name.
2509     MKDIR_P="$ac_install_sh -d"
2510   fi
2511 fi
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2513 $as_echo "$MKDIR_P" >&6; }
2514
2515 for ac_prog in gawk mawk nawk awk
2516 do
2517   # Extract the first word of "$ac_prog", so it can be a program name with args.
2518 set dummy $ac_prog; ac_word=$2
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2520 $as_echo_n "checking for $ac_word... " >&6; }
2521 if ${ac_cv_prog_AWK+:} false; then :
2522   $as_echo_n "(cached) " >&6
2523 else
2524   if test -n "$AWK"; then
2525   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2526 else
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 for as_dir in $PATH
2529 do
2530   IFS=$as_save_IFS
2531   test -z "$as_dir" && as_dir=.
2532     for ac_exec_ext in '' $ac_executable_extensions; do
2533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2534     ac_cv_prog_AWK="$ac_prog"
2535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2536     break 2
2537   fi
2538 done
2539   done
2540 IFS=$as_save_IFS
2541
2542 fi
2543 fi
2544 AWK=$ac_cv_prog_AWK
2545 if test -n "$AWK"; then
2546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2547 $as_echo "$AWK" >&6; }
2548 else
2549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2550 $as_echo "no" >&6; }
2551 fi
2552
2553
2554   test -n "$AWK" && break
2555 done
2556
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2558 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2559 set x ${MAKE-make}
2560 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2561 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2562   $as_echo_n "(cached) " >&6
2563 else
2564   cat >conftest.make <<\_ACEOF
2565 SHELL = /bin/sh
2566 all:
2567         @echo '@@@%%%=$(MAKE)=@@@%%%'
2568 _ACEOF
2569 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2570 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2571   *@@@%%%=?*=@@@%%%*)
2572     eval ac_cv_prog_make_${ac_make}_set=yes;;
2573   *)
2574     eval ac_cv_prog_make_${ac_make}_set=no;;
2575 esac
2576 rm -f conftest.make
2577 fi
2578 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2580 $as_echo "yes" >&6; }
2581   SET_MAKE=
2582 else
2583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2584 $as_echo "no" >&6; }
2585   SET_MAKE="MAKE=${MAKE-make}"
2586 fi
2587
2588 rm -rf .tst 2>/dev/null
2589 mkdir .tst 2>/dev/null
2590 if test -d .tst; then
2591   am__leading_dot=.
2592 else
2593   am__leading_dot=_
2594 fi
2595 rmdir .tst 2>/dev/null
2596
2597 # Check whether --enable-silent-rules was given.
2598 if test "${enable_silent_rules+set}" = set; then :
2599   enableval=$enable_silent_rules;
2600 fi
2601
2602 case $enable_silent_rules in # (((
2603   yes) AM_DEFAULT_VERBOSITY=0;;
2604    no) AM_DEFAULT_VERBOSITY=1;;
2605     *) AM_DEFAULT_VERBOSITY=1;;
2606 esac
2607 am_make=${MAKE-make}
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2609 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2610 if ${am_cv_make_support_nested_variables+:} false; then :
2611   $as_echo_n "(cached) " >&6
2612 else
2613   if $as_echo 'TRUE=$(BAR$(V))
2614 BAR0=false
2615 BAR1=true
2616 V=1
2617 am__doit:
2618         @$(TRUE)
2619 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2620   am_cv_make_support_nested_variables=yes
2621 else
2622   am_cv_make_support_nested_variables=no
2623 fi
2624 fi
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2626 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2627 if test $am_cv_make_support_nested_variables = yes; then
2628     AM_V='$(V)'
2629   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2630 else
2631   AM_V=$AM_DEFAULT_VERBOSITY
2632   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2633 fi
2634 AM_BACKSLASH='\'
2635
2636 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2637   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2638   # is not polluted with repeated "-I."
2639   am__isrc=' -I$(srcdir)'
2640   # test to see if srcdir already configured
2641   if test -f $srcdir/config.status; then
2642     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2643   fi
2644 fi
2645
2646 # test whether we have cygpath
2647 if test -z "$CYGPATH_W"; then
2648   if (cygpath --version) >/dev/null 2>/dev/null; then
2649     CYGPATH_W='cygpath -w'
2650   else
2651     CYGPATH_W=echo
2652   fi
2653 fi
2654
2655
2656 # Define the identity of the package.
2657  PACKAGE='libusb-compat'
2658  VERSION='0.1.5'
2659
2660
2661 cat >>confdefs.h <<_ACEOF
2662 #define PACKAGE "$PACKAGE"
2663 _ACEOF
2664
2665
2666 cat >>confdefs.h <<_ACEOF
2667 #define VERSION "$VERSION"
2668 _ACEOF
2669
2670 # Some tools Automake needs.
2671
2672 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2673
2674
2675 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2676
2677
2678 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2679
2680
2681 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2682
2683
2684 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2685
2686 # For better backward compatibility.  To be removed once Automake 1.9.x
2687 # dies out for good.  For more background, see:
2688 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2689 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2690 mkdir_p='$(MKDIR_P)'
2691
2692 # We need awk for the "check" target.  The system "awk" is bad on
2693 # some platforms.
2694 # Always define AMTAR for backward compatibility.  Yes, it's still used
2695 # in the wild :-(  We should find a proper way to deprecate it ...
2696 AMTAR='$${TAR-tar}'
2697
2698 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2699
2700
2701
2702
2703
2704
2705 ac_config_headers="$ac_config_headers config.h"
2706
2707
2708
2709
2710 ac_ext=c
2711 ac_cpp='$CPP $CPPFLAGS'
2712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2715 if test -n "$ac_tool_prefix"; then
2716   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2717 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if ${ac_cv_prog_CC+:} false; then :
2721   $as_echo_n "(cached) " >&6
2722 else
2723   if test -n "$CC"; then
2724   ac_cv_prog_CC="$CC" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
2729   IFS=$as_save_IFS
2730   test -z "$as_dir" && as_dir=.
2731     for ac_exec_ext in '' $ac_executable_extensions; do
2732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735     break 2
2736   fi
2737 done
2738   done
2739 IFS=$as_save_IFS
2740
2741 fi
2742 fi
2743 CC=$ac_cv_prog_CC
2744 if test -n "$CC"; then
2745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2746 $as_echo "$CC" >&6; }
2747 else
2748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2750 fi
2751
2752
2753 fi
2754 if test -z "$ac_cv_prog_CC"; then
2755   ac_ct_CC=$CC
2756   # Extract the first word of "gcc", so it can be a program name with args.
2757 set dummy gcc; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2761   $as_echo_n "(cached) " >&6
2762 else
2763   if test -n "$ac_ct_CC"; then
2764   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2765 else
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 for as_dir in $PATH
2768 do
2769   IFS=$as_save_IFS
2770   test -z "$as_dir" && as_dir=.
2771     for ac_exec_ext in '' $ac_executable_extensions; do
2772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2773     ac_cv_prog_ac_ct_CC="gcc"
2774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775     break 2
2776   fi
2777 done
2778   done
2779 IFS=$as_save_IFS
2780
2781 fi
2782 fi
2783 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2784 if test -n "$ac_ct_CC"; then
2785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2786 $as_echo "$ac_ct_CC" >&6; }
2787 else
2788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2790 fi
2791
2792   if test "x$ac_ct_CC" = x; then
2793     CC=""
2794   else
2795     case $cross_compiling:$ac_tool_warned in
2796 yes:)
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2799 ac_tool_warned=yes ;;
2800 esac
2801     CC=$ac_ct_CC
2802   fi
2803 else
2804   CC="$ac_cv_prog_CC"
2805 fi
2806
2807 if test -z "$CC"; then
2808           if test -n "$ac_tool_prefix"; then
2809     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2810 set dummy ${ac_tool_prefix}cc; ac_word=$2
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812 $as_echo_n "checking for $ac_word... " >&6; }
2813 if ${ac_cv_prog_CC+:} false; then :
2814   $as_echo_n "(cached) " >&6
2815 else
2816   if test -n "$CC"; then
2817   ac_cv_prog_CC="$CC" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822   IFS=$as_save_IFS
2823   test -z "$as_dir" && as_dir=.
2824     for ac_exec_ext in '' $ac_executable_extensions; do
2825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826     ac_cv_prog_CC="${ac_tool_prefix}cc"
2827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828     break 2
2829   fi
2830 done
2831   done
2832 IFS=$as_save_IFS
2833
2834 fi
2835 fi
2836 CC=$ac_cv_prog_CC
2837 if test -n "$CC"; then
2838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2839 $as_echo "$CC" >&6; }
2840 else
2841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2843 fi
2844
2845
2846   fi
2847 fi
2848 if test -z "$CC"; then
2849   # Extract the first word of "cc", so it can be a program name with args.
2850 set dummy cc; ac_word=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if ${ac_cv_prog_CC+:} false; then :
2854   $as_echo_n "(cached) " >&6
2855 else
2856   if test -n "$CC"; then
2857   ac_cv_prog_CC="$CC" # Let the user override the test.
2858 else
2859   ac_prog_rejected=no
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2862 do
2863   IFS=$as_save_IFS
2864   test -z "$as_dir" && as_dir=.
2865     for ac_exec_ext in '' $ac_executable_extensions; do
2866   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2867     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2868        ac_prog_rejected=yes
2869        continue
2870      fi
2871     ac_cv_prog_CC="cc"
2872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2873     break 2
2874   fi
2875 done
2876   done
2877 IFS=$as_save_IFS
2878
2879 if test $ac_prog_rejected = yes; then
2880   # We found a bogon in the path, so make sure we never use it.
2881   set dummy $ac_cv_prog_CC
2882   shift
2883   if test $# != 0; then
2884     # We chose a different compiler from the bogus one.
2885     # However, it has the same basename, so the bogon will be chosen
2886     # first if we set CC to just the basename; use the full file name.
2887     shift
2888     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2889   fi
2890 fi
2891 fi
2892 fi
2893 CC=$ac_cv_prog_CC
2894 if test -n "$CC"; then
2895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2896 $as_echo "$CC" >&6; }
2897 else
2898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2899 $as_echo "no" >&6; }
2900 fi
2901
2902
2903 fi
2904 if test -z "$CC"; then
2905   if test -n "$ac_tool_prefix"; then
2906   for ac_prog in cl.exe
2907   do
2908     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2909 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if ${ac_cv_prog_CC+:} false; then :
2913   $as_echo_n "(cached) " >&6
2914 else
2915   if test -n "$CC"; then
2916   ac_cv_prog_CC="$CC" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921   IFS=$as_save_IFS
2922   test -z "$as_dir" && as_dir=.
2923     for ac_exec_ext in '' $ac_executable_extensions; do
2924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927     break 2
2928   fi
2929 done
2930   done
2931 IFS=$as_save_IFS
2932
2933 fi
2934 fi
2935 CC=$ac_cv_prog_CC
2936 if test -n "$CC"; then
2937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2938 $as_echo "$CC" >&6; }
2939 else
2940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2942 fi
2943
2944
2945     test -n "$CC" && break
2946   done
2947 fi
2948 if test -z "$CC"; then
2949   ac_ct_CC=$CC
2950   for ac_prog in cl.exe
2951 do
2952   # Extract the first word of "$ac_prog", so it can be a program name with args.
2953 set dummy $ac_prog; ac_word=$2
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955 $as_echo_n "checking for $ac_word... " >&6; }
2956 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2957   $as_echo_n "(cached) " >&6
2958 else
2959   if test -n "$ac_ct_CC"; then
2960   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2964 do
2965   IFS=$as_save_IFS
2966   test -z "$as_dir" && as_dir=.
2967     for ac_exec_ext in '' $ac_executable_extensions; do
2968   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2969     ac_cv_prog_ac_ct_CC="$ac_prog"
2970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971     break 2
2972   fi
2973 done
2974   done
2975 IFS=$as_save_IFS
2976
2977 fi
2978 fi
2979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2980 if test -n "$ac_ct_CC"; then
2981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2982 $as_echo "$ac_ct_CC" >&6; }
2983 else
2984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 $as_echo "no" >&6; }
2986 fi
2987
2988
2989   test -n "$ac_ct_CC" && break
2990 done
2991
2992   if test "x$ac_ct_CC" = x; then
2993     CC=""
2994   else
2995     case $cross_compiling:$ac_tool_warned in
2996 yes:)
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2999 ac_tool_warned=yes ;;
3000 esac
3001     CC=$ac_ct_CC
3002   fi
3003 fi
3004
3005 fi
3006
3007
3008 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3010 as_fn_error $? "no acceptable C compiler found in \$PATH
3011 See \`config.log' for more details" "$LINENO" 5; }
3012
3013 # Provide some information about the compiler.
3014 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3015 set X $ac_compile
3016 ac_compiler=$2
3017 for ac_option in --version -v -V -qversion; do
3018   { { ac_try="$ac_compiler $ac_option >&5"
3019 case "(($ac_try" in
3020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021   *) ac_try_echo=$ac_try;;
3022 esac
3023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3024 $as_echo "$ac_try_echo"; } >&5
3025   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3026   ac_status=$?
3027   if test -s conftest.err; then
3028     sed '10a\
3029 ... rest of stderr output deleted ...
3030          10q' conftest.err >conftest.er1
3031     cat conftest.er1 >&5
3032   fi
3033   rm -f conftest.er1 conftest.err
3034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3035   test $ac_status = 0; }
3036 done
3037
3038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3039 /* end confdefs.h.  */
3040
3041 int
3042 main ()
3043 {
3044
3045   ;
3046   return 0;
3047 }
3048 _ACEOF
3049 ac_clean_files_save=$ac_clean_files
3050 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3051 # Try to create an executable without -o first, disregard a.out.
3052 # It will help us diagnose broken compilers, and finding out an intuition
3053 # of exeext.
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3055 $as_echo_n "checking whether the C compiler works... " >&6; }
3056 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3057
3058 # The possible output files:
3059 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3060
3061 ac_rmfiles=
3062 for ac_file in $ac_files
3063 do
3064   case $ac_file in
3065     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3066     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3067   esac
3068 done
3069 rm -f $ac_rmfiles
3070
3071 if { { ac_try="$ac_link_default"
3072 case "(($ac_try" in
3073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074   *) ac_try_echo=$ac_try;;
3075 esac
3076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3077 $as_echo "$ac_try_echo"; } >&5
3078   (eval "$ac_link_default") 2>&5
3079   ac_status=$?
3080   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3081   test $ac_status = 0; }; then :
3082   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3083 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3084 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3085 # so that the user can short-circuit this test for compilers unknown to
3086 # Autoconf.
3087 for ac_file in $ac_files ''
3088 do
3089   test -f "$ac_file" || continue
3090   case $ac_file in
3091     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3092         ;;
3093     [ab].out )
3094         # We found the default executable, but exeext='' is most
3095         # certainly right.
3096         break;;
3097     *.* )
3098         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3099         then :; else
3100            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3101         fi
3102         # We set ac_cv_exeext here because the later test for it is not
3103         # safe: cross compilers may not add the suffix if given an `-o'
3104         # argument, so we may need to know it at that point already.
3105         # Even if this section looks crufty: it has the advantage of
3106         # actually working.
3107         break;;
3108     * )
3109         break;;
3110   esac
3111 done
3112 test "$ac_cv_exeext" = no && ac_cv_exeext=
3113
3114 else
3115   ac_file=''
3116 fi
3117 if test -z "$ac_file"; then :
3118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3120 $as_echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3122
3123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3125 as_fn_error 77 "C compiler cannot create executables
3126 See \`config.log' for more details" "$LINENO" 5; }
3127 else
3128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3129 $as_echo "yes" >&6; }
3130 fi
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3132 $as_echo_n "checking for C compiler default output file name... " >&6; }
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3134 $as_echo "$ac_file" >&6; }
3135 ac_exeext=$ac_cv_exeext
3136
3137 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3138 ac_clean_files=$ac_clean_files_save
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3140 $as_echo_n "checking for suffix of executables... " >&6; }
3141 if { { ac_try="$ac_link"
3142 case "(($ac_try" in
3143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144   *) ac_try_echo=$ac_try;;
3145 esac
3146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3147 $as_echo "$ac_try_echo"; } >&5
3148   (eval "$ac_link") 2>&5
3149   ac_status=$?
3150   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3151   test $ac_status = 0; }; then :
3152   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3153 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3154 # work properly (i.e., refer to `conftest.exe'), while it won't with
3155 # `rm'.
3156 for ac_file in conftest.exe conftest conftest.*; do
3157   test -f "$ac_file" || continue
3158   case $ac_file in
3159     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3160     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3161           break;;
3162     * ) break;;
3163   esac
3164 done
3165 else
3166   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3169 See \`config.log' for more details" "$LINENO" 5; }
3170 fi
3171 rm -f conftest conftest$ac_cv_exeext
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3173 $as_echo "$ac_cv_exeext" >&6; }
3174
3175 rm -f conftest.$ac_ext
3176 EXEEXT=$ac_cv_exeext
3177 ac_exeext=$EXEEXT
3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179 /* end confdefs.h.  */
3180 #include <stdio.h>
3181 int
3182 main ()
3183 {
3184 FILE *f = fopen ("conftest.out", "w");
3185  return ferror (f) || fclose (f) != 0;
3186
3187   ;
3188   return 0;
3189 }
3190 _ACEOF
3191 ac_clean_files="$ac_clean_files conftest.out"
3192 # Check that the compiler produces executables we can run.  If not, either
3193 # the compiler is broken, or we cross compile.
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3195 $as_echo_n "checking whether we are cross compiling... " >&6; }
3196 if test "$cross_compiling" != yes; then
3197   { { ac_try="$ac_link"
3198 case "(($ac_try" in
3199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200   *) ac_try_echo=$ac_try;;
3201 esac
3202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203 $as_echo "$ac_try_echo"; } >&5
3204   (eval "$ac_link") 2>&5
3205   ac_status=$?
3206   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207   test $ac_status = 0; }
3208   if { ac_try='./conftest$ac_cv_exeext'
3209   { { case "(($ac_try" in
3210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211   *) ac_try_echo=$ac_try;;
3212 esac
3213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3214 $as_echo "$ac_try_echo"; } >&5
3215   (eval "$ac_try") 2>&5
3216   ac_status=$?
3217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3218   test $ac_status = 0; }; }; then
3219     cross_compiling=no
3220   else
3221     if test "$cross_compiling" = maybe; then
3222         cross_compiling=yes
3223     else
3224         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226 as_fn_error $? "cannot run C compiled programs.
3227 If you meant to cross compile, use \`--host'.
3228 See \`config.log' for more details" "$LINENO" 5; }
3229     fi
3230   fi
3231 fi
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3233 $as_echo "$cross_compiling" >&6; }
3234
3235 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3236 ac_clean_files=$ac_clean_files_save
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3238 $as_echo_n "checking for suffix of object files... " >&6; }
3239 if ${ac_cv_objext+:} false; then :
3240   $as_echo_n "(cached) " >&6
3241 else
3242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3243 /* end confdefs.h.  */
3244
3245 int
3246 main ()
3247 {
3248
3249   ;
3250   return 0;
3251 }
3252 _ACEOF
3253 rm -f conftest.o conftest.obj
3254 if { { ac_try="$ac_compile"
3255 case "(($ac_try" in
3256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257   *) ac_try_echo=$ac_try;;
3258 esac
3259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260 $as_echo "$ac_try_echo"; } >&5
3261   (eval "$ac_compile") 2>&5
3262   ac_status=$?
3263   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264   test $ac_status = 0; }; then :
3265   for ac_file in conftest.o conftest.obj conftest.*; do
3266   test -f "$ac_file" || continue;
3267   case $ac_file in
3268     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3269     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3270        break;;
3271   esac
3272 done
3273 else
3274   $as_echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3276
3277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279 as_fn_error $? "cannot compute suffix of object files: cannot compile
3280 See \`config.log' for more details" "$LINENO" 5; }
3281 fi
3282 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3283 fi
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3285 $as_echo "$ac_cv_objext" >&6; }
3286 OBJEXT=$ac_cv_objext
3287 ac_objext=$OBJEXT
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3289 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3290 if ${ac_cv_c_compiler_gnu+:} false; then :
3291   $as_echo_n "(cached) " >&6
3292 else
3293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294 /* end confdefs.h.  */
3295
3296 int
3297 main ()
3298 {
3299 #ifndef __GNUC__
3300        choke me
3301 #endif
3302
3303   ;
3304   return 0;
3305 }
3306 _ACEOF
3307 if ac_fn_c_try_compile "$LINENO"; then :
3308   ac_compiler_gnu=yes
3309 else
3310   ac_compiler_gnu=no
3311 fi
3312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3314
3315 fi
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3317 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3318 if test $ac_compiler_gnu = yes; then
3319   GCC=yes
3320 else
3321   GCC=
3322 fi
3323 ac_test_CFLAGS=${CFLAGS+set}
3324 ac_save_CFLAGS=$CFLAGS
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3326 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3327 if ${ac_cv_prog_cc_g+:} false; then :
3328   $as_echo_n "(cached) " >&6
3329 else
3330   ac_save_c_werror_flag=$ac_c_werror_flag
3331    ac_c_werror_flag=yes
3332    ac_cv_prog_cc_g=no
3333    CFLAGS="-g"
3334    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h.  */
3336
3337 int
3338 main ()
3339 {
3340
3341   ;
3342   return 0;
3343 }
3344 _ACEOF
3345 if ac_fn_c_try_compile "$LINENO"; then :
3346   ac_cv_prog_cc_g=yes
3347 else
3348   CFLAGS=""
3349       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h.  */
3351
3352 int
3353 main ()
3354 {
3355
3356   ;
3357   return 0;
3358 }
3359 _ACEOF
3360 if ac_fn_c_try_compile "$LINENO"; then :
3361
3362 else
3363   ac_c_werror_flag=$ac_save_c_werror_flag
3364          CFLAGS="-g"
3365          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h.  */
3367
3368 int
3369 main ()
3370 {
3371
3372   ;
3373   return 0;
3374 }
3375 _ACEOF
3376 if ac_fn_c_try_compile "$LINENO"; then :
3377   ac_cv_prog_cc_g=yes
3378 fi
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380 fi
3381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382 fi
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384    ac_c_werror_flag=$ac_save_c_werror_flag
3385 fi
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3387 $as_echo "$ac_cv_prog_cc_g" >&6; }
3388 if test "$ac_test_CFLAGS" = set; then
3389   CFLAGS=$ac_save_CFLAGS
3390 elif test $ac_cv_prog_cc_g = yes; then
3391   if test "$GCC" = yes; then
3392     CFLAGS="-g -O2"
3393   else
3394     CFLAGS="-g"
3395   fi
3396 else
3397   if test "$GCC" = yes; then
3398     CFLAGS="-O2"
3399   else
3400     CFLAGS=
3401   fi
3402 fi
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3404 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3405 if ${ac_cv_prog_cc_c89+:} false; then :
3406   $as_echo_n "(cached) " >&6
3407 else
3408   ac_cv_prog_cc_c89=no
3409 ac_save_CC=$CC
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h.  */
3412 #include <stdarg.h>
3413 #include <stdio.h>
3414 struct stat;
3415 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3416 struct buf { int x; };
3417 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3418 static char *e (p, i)
3419      char **p;
3420      int i;
3421 {
3422   return p[i];
3423 }
3424 static char *f (char * (*g) (char **, int), char **p, ...)
3425 {
3426   char *s;
3427   va_list v;
3428   va_start (v,p);
3429   s = g (p, va_arg (v,int));
3430   va_end (v);
3431   return s;
3432 }
3433
3434 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3435    function prototypes and stuff, but not '\xHH' hex character constants.
3436    These don't provoke an error unfortunately, instead are silently treated
3437    as 'x'.  The following induces an error, until -std is added to get
3438    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3439    array size at least.  It's necessary to write '\x00'==0 to get something
3440    that's true only with -std.  */
3441 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3442
3443 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3444    inside strings and character constants.  */
3445 #define FOO(x) 'x'
3446 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3447
3448 int test (int i, double x);
3449 struct s1 {int (*f) (int a);};
3450 struct s2 {int (*f) (double a);};
3451 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3452 int argc;
3453 char **argv;
3454 int
3455 main ()
3456 {
3457 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3458   ;
3459   return 0;
3460 }
3461 _ACEOF
3462 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3463         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3464 do
3465   CC="$ac_save_CC $ac_arg"
3466   if ac_fn_c_try_compile "$LINENO"; then :
3467   ac_cv_prog_cc_c89=$ac_arg
3468 fi
3469 rm -f core conftest.err conftest.$ac_objext
3470   test "x$ac_cv_prog_cc_c89" != "xno" && break
3471 done
3472 rm -f conftest.$ac_ext
3473 CC=$ac_save_CC
3474
3475 fi
3476 # AC_CACHE_VAL
3477 case "x$ac_cv_prog_cc_c89" in
3478   x)
3479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3480 $as_echo "none needed" >&6; } ;;
3481   xno)
3482     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3483 $as_echo "unsupported" >&6; } ;;
3484   *)
3485     CC="$CC $ac_cv_prog_cc_c89"
3486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3487 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3488 esac
3489 if test "x$ac_cv_prog_cc_c89" != xno; then :
3490
3491 fi
3492
3493 ac_ext=c
3494 ac_cpp='$CPP $CPPFLAGS'
3495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498 DEPDIR="${am__leading_dot}deps"
3499
3500 ac_config_commands="$ac_config_commands depfiles"
3501
3502
3503 am_make=${MAKE-make}
3504 cat > confinc << 'END'
3505 am__doit:
3506         @echo this is the am__doit target
3507 .PHONY: am__doit
3508 END
3509 # If we don't find an include directive, just comment out the code.
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3511 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3512 am__include="#"
3513 am__quote=
3514 _am_result=none
3515 # First try GNU make style include.
3516 echo "include confinc" > confmf
3517 # Ignore all kinds of additional output from 'make'.
3518 case `$am_make -s -f confmf 2> /dev/null` in #(
3519 *the\ am__doit\ target*)
3520   am__include=include
3521   am__quote=
3522   _am_result=GNU
3523   ;;
3524 esac
3525 # Now try BSD make style include.
3526 if test "$am__include" = "#"; then
3527    echo '.include "confinc"' > confmf
3528    case `$am_make -s -f confmf 2> /dev/null` in #(
3529    *the\ am__doit\ target*)
3530      am__include=.include
3531      am__quote="\""
3532      _am_result=BSD
3533      ;;
3534    esac
3535 fi
3536
3537
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3539 $as_echo "$_am_result" >&6; }
3540 rm -f confinc confmf
3541
3542 # Check whether --enable-dependency-tracking was given.
3543 if test "${enable_dependency_tracking+set}" = set; then :
3544   enableval=$enable_dependency_tracking;
3545 fi
3546
3547 if test "x$enable_dependency_tracking" != xno; then
3548   am_depcomp="$ac_aux_dir/depcomp"
3549   AMDEPBACKSLASH='\'
3550   am__nodep='_no'
3551 fi
3552  if test "x$enable_dependency_tracking" != xno; then
3553   AMDEP_TRUE=
3554   AMDEP_FALSE='#'
3555 else
3556   AMDEP_TRUE='#'
3557   AMDEP_FALSE=
3558 fi
3559
3560
3561
3562 depcc="$CC"   am_compiler_list=
3563
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3565 $as_echo_n "checking dependency style of $depcc... " >&6; }
3566 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3567   $as_echo_n "(cached) " >&6
3568 else
3569   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3570   # We make a subdir and do the tests there.  Otherwise we can end up
3571   # making bogus files that we don't know about and never remove.  For
3572   # instance it was reported that on HP-UX the gcc test will end up
3573   # making a dummy file named 'D' -- because '-MD' means "put the output
3574   # in D".
3575   rm -rf conftest.dir
3576   mkdir conftest.dir
3577   # Copy depcomp to subdir because otherwise we won't find it if we're
3578   # using a relative directory.
3579   cp "$am_depcomp" conftest.dir
3580   cd conftest.dir
3581   # We will build objects and dependencies in a subdirectory because
3582   # it helps to detect inapplicable dependency modes.  For instance
3583   # both Tru64's cc and ICC support -MD to output dependencies as a
3584   # side effect of compilation, but ICC will put the dependencies in
3585   # the current directory while Tru64 will put them in the object
3586   # directory.
3587   mkdir sub
3588
3589   am_cv_CC_dependencies_compiler_type=none
3590   if test "$am_compiler_list" = ""; then
3591      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3592   fi
3593   am__universal=false
3594   case " $depcc " in #(
3595      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3596      esac
3597
3598   for depmode in $am_compiler_list; do
3599     # Setup a source with many dependencies, because some compilers
3600     # like to wrap large dependency lists on column 80 (with \), and
3601     # we should not choose a depcomp mode which is confused by this.
3602     #
3603     # We need to recreate these files for each test, as the compiler may
3604     # overwrite some of them when testing with obscure command lines.
3605     # This happens at least with the AIX C compiler.
3606     : > sub/conftest.c
3607     for i in 1 2 3 4 5 6; do
3608       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3609       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3610       # Solaris 10 /bin/sh.
3611       echo '/* dummy */' > sub/conftst$i.h
3612     done
3613     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3614
3615     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3616     # mode.  It turns out that the SunPro C++ compiler does not properly
3617     # handle '-M -o', and we need to detect this.  Also, some Intel
3618     # versions had trouble with output in subdirs.
3619     am__obj=sub/conftest.${OBJEXT-o}
3620     am__minus_obj="-o $am__obj"
3621     case $depmode in
3622     gcc)
3623       # This depmode causes a compiler race in universal mode.
3624       test "$am__universal" = false || continue
3625       ;;
3626     nosideeffect)
3627       # After this tag, mechanisms are not by side-effect, so they'll
3628       # only be used when explicitly requested.
3629       if test "x$enable_dependency_tracking" = xyes; then
3630         continue
3631       else
3632         break
3633       fi
3634       ;;
3635     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3636       # This compiler won't grok '-c -o', but also, the minuso test has
3637       # not run yet.  These depmodes are late enough in the game, and
3638       # so weak that their functioning should not be impacted.
3639       am__obj=conftest.${OBJEXT-o}
3640       am__minus_obj=
3641       ;;
3642     none) break ;;
3643     esac
3644     if depmode=$depmode \
3645        source=sub/conftest.c object=$am__obj \
3646        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3647        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3648          >/dev/null 2>conftest.err &&
3649        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3650        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3651        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3652        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3653       # icc doesn't choke on unknown options, it will just issue warnings
3654       # or remarks (even with -Werror).  So we grep stderr for any message
3655       # that says an option was ignored or not supported.
3656       # When given -MP, icc 7.0 and 7.1 complain thusly:
3657       #   icc: Command line warning: ignoring option '-M'; no argument required
3658       # The diagnosis changed in icc 8.0:
3659       #   icc: Command line remark: option '-MP' not supported
3660       if (grep 'ignoring option' conftest.err ||
3661           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3662         am_cv_CC_dependencies_compiler_type=$depmode
3663         break
3664       fi
3665     fi
3666   done
3667
3668   cd ..
3669   rm -rf conftest.dir
3670 else
3671   am_cv_CC_dependencies_compiler_type=none
3672 fi
3673
3674 fi
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3676 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3677 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3678
3679  if
3680   test "x$enable_dependency_tracking" != xno \
3681   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3682   am__fastdepCC_TRUE=
3683   am__fastdepCC_FALSE='#'
3684 else
3685   am__fastdepCC_TRUE='#'
3686   am__fastdepCC_FALSE=
3687 fi
3688
3689
3690 case `pwd` in
3691   *\ * | *\     *)
3692     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3693 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3694 esac
3695
3696
3697
3698 macro_version='2.4.2'
3699 macro_revision='1.3337'
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713 ltmain="$ac_aux_dir/ltmain.sh"
3714
3715 # Make sure we can run config.sub.
3716 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3717   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3718
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3720 $as_echo_n "checking build system type... " >&6; }
3721 if ${ac_cv_build+:} false; then :
3722   $as_echo_n "(cached) " >&6
3723 else
3724   ac_build_alias=$build_alias
3725 test "x$ac_build_alias" = x &&
3726   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3727 test "x$ac_build_alias" = x &&
3728   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3729 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3730   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3731
3732 fi
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3734 $as_echo "$ac_cv_build" >&6; }
3735 case $ac_cv_build in
3736 *-*-*) ;;
3737 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3738 esac
3739 build=$ac_cv_build
3740 ac_save_IFS=$IFS; IFS='-'
3741 set x $ac_cv_build
3742 shift
3743 build_cpu=$1
3744 build_vendor=$2
3745 shift; shift
3746 # Remember, the first character of IFS is used to create $*,
3747 # except with old shells:
3748 build_os=$*
3749 IFS=$ac_save_IFS
3750 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3751
3752
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3754 $as_echo_n "checking host system type... " >&6; }
3755 if ${ac_cv_host+:} false; then :
3756   $as_echo_n "(cached) " >&6
3757 else
3758   if test "x$host_alias" = x; then
3759   ac_cv_host=$ac_cv_build
3760 else
3761   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3762     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3763 fi
3764
3765 fi
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3767 $as_echo "$ac_cv_host" >&6; }
3768 case $ac_cv_host in
3769 *-*-*) ;;
3770 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3771 esac
3772 host=$ac_cv_host
3773 ac_save_IFS=$IFS; IFS='-'
3774 set x $ac_cv_host
3775 shift
3776 host_cpu=$1
3777 host_vendor=$2
3778 shift; shift
3779 # Remember, the first character of IFS is used to create $*,
3780 # except with old shells:
3781 host_os=$*
3782 IFS=$ac_save_IFS
3783 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3784
3785
3786 # Backslashify metacharacters that are still active within
3787 # double-quoted strings.
3788 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3789
3790 # Same as above, but do not quote variable references.
3791 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3792
3793 # Sed substitution to delay expansion of an escaped shell variable in a
3794 # double_quote_subst'ed string.
3795 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3796
3797 # Sed substitution to delay expansion of an escaped single quote.
3798 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3799
3800 # Sed substitution to avoid accidental globbing in evaled expressions
3801 no_glob_subst='s/\*/\\\*/g'
3802
3803 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3804 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3805 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3806
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3808 $as_echo_n "checking how to print strings... " >&6; }
3809 # Test print first, because it will be a builtin if present.
3810 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3811    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3812   ECHO='print -r --'
3813 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3814   ECHO='printf %s\n'
3815 else
3816   # Use this function as a fallback that always works.
3817   func_fallback_echo ()
3818   {
3819     eval 'cat <<_LTECHO_EOF
3820 $1
3821 _LTECHO_EOF'
3822   }
3823   ECHO='func_fallback_echo'
3824 fi
3825
3826 # func_echo_all arg...
3827 # Invoke $ECHO with all args, space-separated.
3828 func_echo_all ()
3829 {
3830     $ECHO ""
3831 }
3832
3833 case "$ECHO" in
3834   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3835 $as_echo "printf" >&6; } ;;
3836   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3837 $as_echo "print -r" >&6; } ;;
3838   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3839 $as_echo "cat" >&6; } ;;
3840 esac
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3856 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3857 if ${ac_cv_path_SED+:} false; then :
3858   $as_echo_n "(cached) " >&6
3859 else
3860             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3861      for ac_i in 1 2 3 4 5 6 7; do
3862        ac_script="$ac_script$as_nl$ac_script"
3863      done
3864      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3865      { ac_script=; unset ac_script;}
3866      if test -z "$SED"; then
3867   ac_path_SED_found=false
3868   # Loop through the user's path and test for each of PROGNAME-LIST
3869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870 for as_dir in $PATH
3871 do
3872   IFS=$as_save_IFS
3873   test -z "$as_dir" && as_dir=.
3874     for ac_prog in sed gsed; do
3875     for ac_exec_ext in '' $ac_executable_extensions; do
3876       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3877       as_fn_executable_p "$ac_path_SED" || continue
3878 # Check for GNU ac_path_SED and select it if it is found.
3879   # Check for GNU $ac_path_SED
3880 case `"$ac_path_SED" --version 2>&1` in
3881 *GNU*)
3882   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3883 *)
3884   ac_count=0
3885   $as_echo_n 0123456789 >"conftest.in"
3886   while :
3887   do
3888     cat "conftest.in" "conftest.in" >"conftest.tmp"
3889     mv "conftest.tmp" "conftest.in"
3890     cp "conftest.in" "conftest.nl"
3891     $as_echo '' >> "conftest.nl"
3892     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3893     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3894     as_fn_arith $ac_count + 1 && ac_count=$as_val
3895     if test $ac_count -gt ${ac_path_SED_max-0}; then
3896       # Best one so far, save it but keep looking for a better one
3897       ac_cv_path_SED="$ac_path_SED"
3898       ac_path_SED_max=$ac_count
3899     fi
3900     # 10*(2^10) chars as input seems more than enough
3901     test $ac_count -gt 10 && break
3902   done
3903   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3904 esac
3905
3906       $ac_path_SED_found && break 3
3907     done
3908   done
3909   done
3910 IFS=$as_save_IFS
3911   if test -z "$ac_cv_path_SED"; then
3912     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3913   fi
3914 else
3915   ac_cv_path_SED=$SED
3916 fi
3917
3918 fi
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3920 $as_echo "$ac_cv_path_SED" >&6; }
3921  SED="$ac_cv_path_SED"
3922   rm -f conftest.sed
3923
3924 test -z "$SED" && SED=sed
3925 Xsed="$SED -e 1s/^X//"
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3938 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3939 if ${ac_cv_path_GREP+:} false; then :
3940   $as_echo_n "(cached) " >&6
3941 else
3942   if test -z "$GREP"; then
3943   ac_path_GREP_found=false
3944   # Loop through the user's path and test for each of PROGNAME-LIST
3945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3947 do
3948   IFS=$as_save_IFS
3949   test -z "$as_dir" && as_dir=.
3950     for ac_prog in grep ggrep; do
3951     for ac_exec_ext in '' $ac_executable_extensions; do
3952       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3953       as_fn_executable_p "$ac_path_GREP" || continue
3954 # Check for GNU ac_path_GREP and select it if it is found.
3955   # Check for GNU $ac_path_GREP
3956 case `"$ac_path_GREP" --version 2>&1` in
3957 *GNU*)
3958   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3959 *)
3960   ac_count=0
3961   $as_echo_n 0123456789 >"conftest.in"
3962   while :
3963   do
3964     cat "conftest.in" "conftest.in" >"conftest.tmp"
3965     mv "conftest.tmp" "conftest.in"
3966     cp "conftest.in" "conftest.nl"
3967     $as_echo 'GREP' >> "conftest.nl"
3968     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3969     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3970     as_fn_arith $ac_count + 1 && ac_count=$as_val
3971     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3972       # Best one so far, save it but keep looking for a better one
3973       ac_cv_path_GREP="$ac_path_GREP"
3974       ac_path_GREP_max=$ac_count
3975     fi
3976     # 10*(2^10) chars as input seems more than enough
3977     test $ac_count -gt 10 && break
3978   done
3979   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3980 esac
3981
3982       $ac_path_GREP_found && break 3
3983     done
3984   done
3985   done
3986 IFS=$as_save_IFS
3987   if test -z "$ac_cv_path_GREP"; then
3988     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3989   fi
3990 else
3991   ac_cv_path_GREP=$GREP
3992 fi
3993
3994 fi
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3996 $as_echo "$ac_cv_path_GREP" >&6; }
3997  GREP="$ac_cv_path_GREP"
3998
3999
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4001 $as_echo_n "checking for egrep... " >&6; }
4002 if ${ac_cv_path_EGREP+:} false; then :
4003   $as_echo_n "(cached) " >&6
4004 else
4005   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4006    then ac_cv_path_EGREP="$GREP -E"
4007    else
4008      if test -z "$EGREP"; then
4009   ac_path_EGREP_found=false
4010   # Loop through the user's path and test for each of PROGNAME-LIST
4011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4013 do
4014   IFS=$as_save_IFS
4015   test -z "$as_dir" && as_dir=.
4016     for ac_prog in egrep; do
4017     for ac_exec_ext in '' $ac_executable_extensions; do
4018       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4019       as_fn_executable_p "$ac_path_EGREP" || continue
4020 # Check for GNU ac_path_EGREP and select it if it is found.
4021   # Check for GNU $ac_path_EGREP
4022 case `"$ac_path_EGREP" --version 2>&1` in
4023 *GNU*)
4024   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4025 *)
4026   ac_count=0
4027   $as_echo_n 0123456789 >"conftest.in"
4028   while :
4029   do
4030     cat "conftest.in" "conftest.in" >"conftest.tmp"
4031     mv "conftest.tmp" "conftest.in"
4032     cp "conftest.in" "conftest.nl"
4033     $as_echo 'EGREP' >> "conftest.nl"
4034     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4035     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4036     as_fn_arith $ac_count + 1 && ac_count=$as_val
4037     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4038       # Best one so far, save it but keep looking for a better one
4039       ac_cv_path_EGREP="$ac_path_EGREP"
4040       ac_path_EGREP_max=$ac_count
4041     fi
4042     # 10*(2^10) chars as input seems more than enough
4043     test $ac_count -gt 10 && break
4044   done
4045   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4046 esac
4047
4048       $ac_path_EGREP_found && break 3
4049     done
4050   done
4051   done
4052 IFS=$as_save_IFS
4053   if test -z "$ac_cv_path_EGREP"; then
4054     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4055   fi
4056 else
4057   ac_cv_path_EGREP=$EGREP
4058 fi
4059
4060    fi
4061 fi
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4063 $as_echo "$ac_cv_path_EGREP" >&6; }
4064  EGREP="$ac_cv_path_EGREP"
4065
4066
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4068 $as_echo_n "checking for fgrep... " >&6; }
4069 if ${ac_cv_path_FGREP+:} false; then :
4070   $as_echo_n "(cached) " >&6
4071 else
4072   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4073    then ac_cv_path_FGREP="$GREP -F"
4074    else
4075      if test -z "$FGREP"; then
4076   ac_path_FGREP_found=false
4077   # Loop through the user's path and test for each of PROGNAME-LIST
4078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4080 do
4081   IFS=$as_save_IFS
4082   test -z "$as_dir" && as_dir=.
4083     for ac_prog in fgrep; do
4084     for ac_exec_ext in '' $ac_executable_extensions; do
4085       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4086       as_fn_executable_p "$ac_path_FGREP" || continue
4087 # Check for GNU ac_path_FGREP and select it if it is found.
4088   # Check for GNU $ac_path_FGREP
4089 case `"$ac_path_FGREP" --version 2>&1` in
4090 *GNU*)
4091   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4092 *)
4093   ac_count=0
4094   $as_echo_n 0123456789 >"conftest.in"
4095   while :
4096   do
4097     cat "conftest.in" "conftest.in" >"conftest.tmp"
4098     mv "conftest.tmp" "conftest.in"
4099     cp "conftest.in" "conftest.nl"
4100     $as_echo 'FGREP' >> "conftest.nl"
4101     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4102     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4103     as_fn_arith $ac_count + 1 && ac_count=$as_val
4104     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4105       # Best one so far, save it but keep looking for a better one
4106       ac_cv_path_FGREP="$ac_path_FGREP"
4107       ac_path_FGREP_max=$ac_count
4108     fi
4109     # 10*(2^10) chars as input seems more than enough
4110     test $ac_count -gt 10 && break
4111   done
4112   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4113 esac
4114
4115       $ac_path_FGREP_found && break 3
4116     done
4117   done
4118   done
4119 IFS=$as_save_IFS
4120   if test -z "$ac_cv_path_FGREP"; then
4121     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4122   fi
4123 else
4124   ac_cv_path_FGREP=$FGREP
4125 fi
4126
4127    fi
4128 fi
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4130 $as_echo "$ac_cv_path_FGREP" >&6; }
4131  FGREP="$ac_cv_path_FGREP"
4132
4133
4134 test -z "$GREP" && GREP=grep
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154 # Check whether --with-gnu-ld was given.
4155 if test "${with_gnu_ld+set}" = set; then :
4156   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4157 else
4158   with_gnu_ld=no
4159 fi
4160
4161 ac_prog=ld
4162 if test "$GCC" = yes; then
4163   # Check if gcc -print-prog-name=ld gives a path.
4164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4165 $as_echo_n "checking for ld used by $CC... " >&6; }
4166   case $host in
4167   *-*-mingw*)
4168     # gcc leaves a trailing carriage return which upsets mingw
4169     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4170   *)
4171     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4172   esac
4173   case $ac_prog in
4174     # Accept absolute paths.
4175     [\\/]* | ?:[\\/]*)
4176       re_direlt='/[^/][^/]*/\.\./'
4177       # Canonicalize the pathname of ld
4178       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4179       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4180         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4181       done
4182       test -z "$LD" && LD="$ac_prog"
4183       ;;
4184   "")
4185     # If it fails, then pretend we aren't using GCC.
4186     ac_prog=ld
4187     ;;
4188   *)
4189     # If it is relative, then search for the first ld in PATH.
4190     with_gnu_ld=unknown
4191     ;;
4192   esac
4193 elif test "$with_gnu_ld" = yes; then
4194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4195 $as_echo_n "checking for GNU ld... " >&6; }
4196 else
4197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4198 $as_echo_n "checking for non-GNU ld... " >&6; }
4199 fi
4200 if ${lt_cv_path_LD+:} false; then :
4201   $as_echo_n "(cached) " >&6
4202 else
4203   if test -z "$LD"; then
4204   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4205   for ac_dir in $PATH; do
4206     IFS="$lt_save_ifs"
4207     test -z "$ac_dir" && ac_dir=.
4208     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4209       lt_cv_path_LD="$ac_dir/$ac_prog"
4210       # Check to see if the program is GNU ld.  I'd rather use --version,
4211       # but apparently some variants of GNU ld only accept -v.
4212       # Break only if it was the GNU/non-GNU ld that we prefer.
4213       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4214       *GNU* | *'with BFD'*)
4215         test "$with_gnu_ld" != no && break
4216         ;;
4217       *)
4218         test "$with_gnu_ld" != yes && break
4219         ;;
4220       esac
4221     fi
4222   done
4223   IFS="$lt_save_ifs"
4224 else
4225   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4226 fi
4227 fi
4228
4229 LD="$lt_cv_path_LD"
4230 if test -n "$LD"; then
4231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4232 $as_echo "$LD" >&6; }
4233 else
4234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 $as_echo "no" >&6; }
4236 fi
4237 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4239 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4240 if ${lt_cv_prog_gnu_ld+:} false; then :
4241   $as_echo_n "(cached) " >&6
4242 else
4243   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4244 case `$LD -v 2>&1 </dev/null` in
4245 *GNU* | *'with BFD'*)
4246   lt_cv_prog_gnu_ld=yes
4247   ;;
4248 *)
4249   lt_cv_prog_gnu_ld=no
4250   ;;
4251 esac
4252 fi
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4254 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4255 with_gnu_ld=$lt_cv_prog_gnu_ld
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4266 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4267 if ${lt_cv_path_NM+:} false; then :
4268   $as_echo_n "(cached) " >&6
4269 else
4270   if test -n "$NM"; then
4271   # Let the user override the test.
4272   lt_cv_path_NM="$NM"
4273 else
4274   lt_nm_to_check="${ac_tool_prefix}nm"
4275   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4276     lt_nm_to_check="$lt_nm_to_check nm"
4277   fi
4278   for lt_tmp_nm in $lt_nm_to_check; do
4279     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4280     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4281       IFS="$lt_save_ifs"
4282       test -z "$ac_dir" && ac_dir=.
4283       tmp_nm="$ac_dir/$lt_tmp_nm"
4284       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4285         # Check to see if the nm accepts a BSD-compat flag.
4286         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4287         #   nm: unknown option "B" ignored
4288         # Tru64's nm complains that /dev/null is an invalid object file
4289         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4290         */dev/null* | *'Invalid file or object type'*)
4291           lt_cv_path_NM="$tmp_nm -B"
4292           break
4293           ;;
4294         *)
4295           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4296           */dev/null*)
4297             lt_cv_path_NM="$tmp_nm -p"
4298             break
4299             ;;
4300           *)
4301             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4302             continue # so that we can try to find one that supports BSD flags
4303             ;;
4304           esac
4305           ;;
4306         esac
4307       fi
4308     done
4309     IFS="$lt_save_ifs"
4310   done
4311   : ${lt_cv_path_NM=no}
4312 fi
4313 fi
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4315 $as_echo "$lt_cv_path_NM" >&6; }
4316 if test "$lt_cv_path_NM" != "no"; then
4317   NM="$lt_cv_path_NM"
4318 else
4319   # Didn't find any BSD compatible name lister, look for dumpbin.
4320   if test -n "$DUMPBIN"; then :
4321     # Let the user override the test.
4322   else
4323     if test -n "$ac_tool_prefix"; then
4324   for ac_prog in dumpbin "link -dump"
4325   do
4326     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4327 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4329 $as_echo_n "checking for $ac_word... " >&6; }
4330 if ${ac_cv_prog_DUMPBIN+:} false; then :
4331   $as_echo_n "(cached) " >&6
4332 else
4333   if test -n "$DUMPBIN"; then
4334   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4335 else
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 for as_dir in $PATH
4338 do
4339   IFS=$as_save_IFS
4340   test -z "$as_dir" && as_dir=.
4341     for ac_exec_ext in '' $ac_executable_extensions; do
4342   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4343     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4345     break 2
4346   fi
4347 done
4348   done
4349 IFS=$as_save_IFS
4350
4351 fi
4352 fi
4353 DUMPBIN=$ac_cv_prog_DUMPBIN
4354 if test -n "$DUMPBIN"; then
4355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4356 $as_echo "$DUMPBIN" >&6; }
4357 else
4358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4360 fi
4361
4362
4363     test -n "$DUMPBIN" && break
4364   done
4365 fi
4366 if test -z "$DUMPBIN"; then
4367   ac_ct_DUMPBIN=$DUMPBIN
4368   for ac_prog in dumpbin "link -dump"
4369 do
4370   # Extract the first word of "$ac_prog", so it can be a program name with args.
4371 set dummy $ac_prog; ac_word=$2
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4373 $as_echo_n "checking for $ac_word... " >&6; }
4374 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4375   $as_echo_n "(cached) " >&6
4376 else
4377   if test -n "$ac_ct_DUMPBIN"; then
4378   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4379 else
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4382 do
4383   IFS=$as_save_IFS
4384   test -z "$as_dir" && as_dir=.
4385     for ac_exec_ext in '' $ac_executable_extensions; do
4386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4387     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4389     break 2
4390   fi
4391 done
4392   done
4393 IFS=$as_save_IFS
4394
4395 fi
4396 fi
4397 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4398 if test -n "$ac_ct_DUMPBIN"; then
4399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4400 $as_echo "$ac_ct_DUMPBIN" >&6; }
4401 else
4402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403 $as_echo "no" >&6; }
4404 fi
4405
4406
4407   test -n "$ac_ct_DUMPBIN" && break
4408 done
4409
4410   if test "x$ac_ct_DUMPBIN" = x; then
4411     DUMPBIN=":"
4412   else
4413     case $cross_compiling:$ac_tool_warned in
4414 yes:)
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4417 ac_tool_warned=yes ;;
4418 esac
4419     DUMPBIN=$ac_ct_DUMPBIN
4420   fi
4421 fi
4422
4423     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4424     *COFF*)
4425       DUMPBIN="$DUMPBIN -symbols"
4426       ;;
4427     *)
4428       DUMPBIN=:
4429       ;;
4430     esac
4431   fi
4432
4433   if test "$DUMPBIN" != ":"; then
4434     NM="$DUMPBIN"
4435   fi
4436 fi
4437 test -z "$NM" && NM=nm
4438
4439
4440
4441
4442
4443
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4445 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4446 if ${lt_cv_nm_interface+:} false; then :
4447   $as_echo_n "(cached) " >&6
4448 else
4449   lt_cv_nm_interface="BSD nm"
4450   echo "int some_variable = 0;" > conftest.$ac_ext
4451   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4452   (eval "$ac_compile" 2>conftest.err)
4453   cat conftest.err >&5
4454   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4455   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4456   cat conftest.err >&5
4457   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4458   cat conftest.out >&5
4459   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4460     lt_cv_nm_interface="MS dumpbin"
4461   fi
4462   rm -f conftest*
4463 fi
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4465 $as_echo "$lt_cv_nm_interface" >&6; }
4466
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4468 $as_echo_n "checking whether ln -s works... " >&6; }
4469 LN_S=$as_ln_s
4470 if test "$LN_S" = "ln -s"; then
4471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4472 $as_echo "yes" >&6; }
4473 else
4474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4475 $as_echo "no, using $LN_S" >&6; }
4476 fi
4477
4478 # find the maximum length of command line arguments
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4480 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4481 if ${lt_cv_sys_max_cmd_len+:} false; then :
4482   $as_echo_n "(cached) " >&6
4483 else
4484     i=0
4485   teststring="ABCD"
4486
4487   case $build_os in
4488   msdosdjgpp*)
4489     # On DJGPP, this test can blow up pretty badly due to problems in libc
4490     # (any single argument exceeding 2000 bytes causes a buffer overrun
4491     # during glob expansion).  Even if it were fixed, the result of this
4492     # check would be larger than it should be.
4493     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4494     ;;
4495
4496   gnu*)
4497     # Under GNU Hurd, this test is not required because there is
4498     # no limit to the length of command line arguments.
4499     # Libtool will interpret -1 as no limit whatsoever
4500     lt_cv_sys_max_cmd_len=-1;
4501     ;;
4502
4503   cygwin* | mingw* | cegcc*)
4504     # On Win9x/ME, this test blows up -- it succeeds, but takes
4505     # about 5 minutes as the teststring grows exponentially.
4506     # Worse, since 9x/ME are not pre-emptively multitasking,
4507     # you end up with a "frozen" computer, even though with patience
4508     # the test eventually succeeds (with a max line length of 256k).
4509     # Instead, let's just punt: use the minimum linelength reported by
4510     # all of the supported platforms: 8192 (on NT/2K/XP).
4511     lt_cv_sys_max_cmd_len=8192;
4512     ;;
4513
4514   mint*)
4515     # On MiNT this can take a long time and run out of memory.
4516     lt_cv_sys_max_cmd_len=8192;
4517     ;;
4518
4519   amigaos*)
4520     # On AmigaOS with pdksh, this test takes hours, literally.
4521     # So we just punt and use a minimum line length of 8192.
4522     lt_cv_sys_max_cmd_len=8192;
4523     ;;
4524
4525   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4526     # This has been around since 386BSD, at least.  Likely further.
4527     if test -x /sbin/sysctl; then
4528       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4529     elif test -x /usr/sbin/sysctl; then
4530       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4531     else
4532       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4533     fi
4534     # And add a safety zone
4535     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4536     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4537     ;;
4538
4539   interix*)
4540     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4541     lt_cv_sys_max_cmd_len=196608
4542     ;;
4543
4544   os2*)
4545     # The test takes a long time on OS/2.
4546     lt_cv_sys_max_cmd_len=8192
4547     ;;
4548
4549   osf*)
4550     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4551     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4552     # nice to cause kernel panics so lets avoid the loop below.
4553     # First set a reasonable default.
4554     lt_cv_sys_max_cmd_len=16384
4555     #
4556     if test -x /sbin/sysconfig; then
4557       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4558         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4559       esac
4560     fi
4561     ;;
4562   sco3.2v5*)
4563     lt_cv_sys_max_cmd_len=102400
4564     ;;
4565   sysv5* | sco5v6* | sysv4.2uw2*)
4566     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4567     if test -n "$kargmax"; then
4568       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4569     else
4570       lt_cv_sys_max_cmd_len=32768
4571     fi
4572     ;;
4573   *)
4574     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4575     if test -n "$lt_cv_sys_max_cmd_len"; then
4576       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4577       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4578     else
4579       # Make teststring a little bigger before we do anything with it.
4580       # a 1K string should be a reasonable start.
4581       for i in 1 2 3 4 5 6 7 8 ; do
4582         teststring=$teststring$teststring
4583       done
4584       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4585       # If test is not a shell built-in, we'll probably end up computing a
4586       # maximum length that is only half of the actual maximum length, but
4587       # we can't tell.
4588       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4589                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4590               test $i != 17 # 1/2 MB should be enough
4591       do
4592         i=`expr $i + 1`
4593         teststring=$teststring$teststring
4594       done
4595       # Only check the string length outside the loop.
4596       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4597       teststring=
4598       # Add a significant safety factor because C++ compilers can tack on
4599       # massive amounts of additional arguments before passing them to the
4600       # linker.  It appears as though 1/2 is a usable value.
4601       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4602     fi
4603     ;;
4604   esac
4605
4606 fi
4607
4608 if test -n $lt_cv_sys_max_cmd_len ; then
4609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4610 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4611 else
4612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4613 $as_echo "none" >&6; }
4614 fi
4615 max_cmd_len=$lt_cv_sys_max_cmd_len
4616
4617
4618
4619
4620
4621
4622 : ${CP="cp -f"}
4623 : ${MV="mv -f"}
4624 : ${RM="rm -f"}
4625
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4627 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4628 # Try some XSI features
4629 xsi_shell=no
4630 ( _lt_dummy="a/b/c"
4631   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4632       = c,a/b,b/c, \
4633     && eval 'test $(( 1 + 1 )) -eq 2 \
4634     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4635   && xsi_shell=yes
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4637 $as_echo "$xsi_shell" >&6; }
4638
4639
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4641 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4642 lt_shell_append=no
4643 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4644     >/dev/null 2>&1 \
4645   && lt_shell_append=yes
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4647 $as_echo "$lt_shell_append" >&6; }
4648
4649
4650 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4651   lt_unset=unset
4652 else
4653   lt_unset=false
4654 fi
4655
4656
4657
4658
4659
4660 # test EBCDIC or ASCII
4661 case `echo X|tr X '\101'` in
4662  A) # ASCII based system
4663     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4664   lt_SP2NL='tr \040 \012'
4665   lt_NL2SP='tr \015\012 \040\040'
4666   ;;
4667  *) # EBCDIC based system
4668   lt_SP2NL='tr \100 \n'
4669   lt_NL2SP='tr \r\n \100\100'
4670   ;;
4671 esac
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4682 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4683 if ${lt_cv_to_host_file_cmd+:} false; then :
4684   $as_echo_n "(cached) " >&6
4685 else
4686   case $host in
4687   *-*-mingw* )
4688     case $build in
4689       *-*-mingw* ) # actually msys
4690         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4691         ;;
4692       *-*-cygwin* )
4693         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4694         ;;
4695       * ) # otherwise, assume *nix
4696         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4697         ;;
4698     esac
4699     ;;
4700   *-*-cygwin* )
4701     case $build in
4702       *-*-mingw* ) # actually msys
4703         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4704         ;;
4705       *-*-cygwin* )
4706         lt_cv_to_host_file_cmd=func_convert_file_noop
4707         ;;
4708       * ) # otherwise, assume *nix
4709         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4710         ;;
4711     esac
4712     ;;
4713   * ) # unhandled hosts (and "normal" native builds)
4714     lt_cv_to_host_file_cmd=func_convert_file_noop
4715     ;;
4716 esac
4717
4718 fi
4719
4720 to_host_file_cmd=$lt_cv_to_host_file_cmd
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4722 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4723
4724
4725
4726
4727
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4729 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4730 if ${lt_cv_to_tool_file_cmd+:} false; then :
4731   $as_echo_n "(cached) " >&6
4732 else
4733   #assume ordinary cross tools, or native build.
4734 lt_cv_to_tool_file_cmd=func_convert_file_noop
4735 case $host in
4736   *-*-mingw* )
4737     case $build in
4738       *-*-mingw* ) # actually msys
4739         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4740         ;;
4741     esac
4742     ;;
4743 esac
4744
4745 fi
4746
4747 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4749 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4750
4751
4752
4753
4754
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4756 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4757 if ${lt_cv_ld_reload_flag+:} false; then :
4758   $as_echo_n "(cached) " >&6
4759 else
4760   lt_cv_ld_reload_flag='-r'
4761 fi
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4763 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4764 reload_flag=$lt_cv_ld_reload_flag
4765 case $reload_flag in
4766 "" | " "*) ;;
4767 *) reload_flag=" $reload_flag" ;;
4768 esac
4769 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4770 case $host_os in
4771   cygwin* | mingw* | pw32* | cegcc*)
4772     if test "$GCC" != yes; then
4773       reload_cmds=false
4774     fi
4775     ;;
4776   darwin*)
4777     if test "$GCC" = yes; then
4778       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4779     else
4780       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4781     fi
4782     ;;
4783 esac
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793 if test -n "$ac_tool_prefix"; then
4794   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4795 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4797 $as_echo_n "checking for $ac_word... " >&6; }
4798 if ${ac_cv_prog_OBJDUMP+:} false; then :
4799   $as_echo_n "(cached) " >&6
4800 else
4801   if test -n "$OBJDUMP"; then
4802   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4803 else
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4806 do
4807   IFS=$as_save_IFS
4808   test -z "$as_dir" && as_dir=.
4809     for ac_exec_ext in '' $ac_executable_extensions; do
4810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4811     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813     break 2
4814   fi
4815 done
4816   done
4817 IFS=$as_save_IFS
4818
4819 fi
4820 fi
4821 OBJDUMP=$ac_cv_prog_OBJDUMP
4822 if test -n "$OBJDUMP"; then
4823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4824 $as_echo "$OBJDUMP" >&6; }
4825 else
4826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 $as_echo "no" >&6; }
4828 fi
4829
4830
4831 fi
4832 if test -z "$ac_cv_prog_OBJDUMP"; then
4833   ac_ct_OBJDUMP=$OBJDUMP
4834   # Extract the first word of "objdump", so it can be a program name with args.
4835 set dummy objdump; ac_word=$2
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4837 $as_echo_n "checking for $ac_word... " >&6; }
4838 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4839   $as_echo_n "(cached) " >&6
4840 else
4841   if test -n "$ac_ct_OBJDUMP"; then
4842   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4843 else
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 for as_dir in $PATH
4846 do
4847   IFS=$as_save_IFS
4848   test -z "$as_dir" && as_dir=.
4849     for ac_exec_ext in '' $ac_executable_extensions; do
4850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4851     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4853     break 2
4854   fi
4855 done
4856   done
4857 IFS=$as_save_IFS
4858
4859 fi
4860 fi
4861 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4862 if test -n "$ac_ct_OBJDUMP"; then
4863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4864 $as_echo "$ac_ct_OBJDUMP" >&6; }
4865 else
4866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867 $as_echo "no" >&6; }
4868 fi
4869
4870   if test "x$ac_ct_OBJDUMP" = x; then
4871     OBJDUMP="false"
4872   else
4873     case $cross_compiling:$ac_tool_warned in
4874 yes:)
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4877 ac_tool_warned=yes ;;
4878 esac
4879     OBJDUMP=$ac_ct_OBJDUMP
4880   fi
4881 else
4882   OBJDUMP="$ac_cv_prog_OBJDUMP"
4883 fi
4884
4885 test -z "$OBJDUMP" && OBJDUMP=objdump
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4896 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4897 if ${lt_cv_deplibs_check_method+:} false; then :
4898   $as_echo_n "(cached) " >&6
4899 else
4900   lt_cv_file_magic_cmd='$MAGIC_CMD'
4901 lt_cv_file_magic_test_file=
4902 lt_cv_deplibs_check_method='unknown'
4903 # Need to set the preceding variable on all platforms that support
4904 # interlibrary dependencies.
4905 # 'none' -- dependencies not supported.
4906 # `unknown' -- same as none, but documents that we really don't know.
4907 # 'pass_all' -- all dependencies passed with no checks.
4908 # 'test_compile' -- check by making test program.
4909 # 'file_magic [[regex]]' -- check by looking for files in library path
4910 # which responds to the $file_magic_cmd with a given extended regex.
4911 # If you have `file' or equivalent on your system and you're not sure
4912 # whether `pass_all' will *always* work, you probably want this one.
4913
4914 case $host_os in
4915 aix[4-9]*)
4916   lt_cv_deplibs_check_method=pass_all
4917   ;;
4918
4919 beos*)
4920   lt_cv_deplibs_check_method=pass_all
4921   ;;
4922
4923 bsdi[45]*)
4924   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4925   lt_cv_file_magic_cmd='/usr/bin/file -L'
4926   lt_cv_file_magic_test_file=/shlib/libc.so
4927   ;;
4928
4929 cygwin*)
4930   # func_win32_libid is a shell function defined in ltmain.sh
4931   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4932   lt_cv_file_magic_cmd='func_win32_libid'
4933   ;;
4934
4935 mingw* | pw32*)
4936   # Base MSYS/MinGW do not provide the 'file' command needed by
4937   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4938   # unless we find 'file', for example because we are cross-compiling.
4939   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4940   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4941     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4942     lt_cv_file_magic_cmd='func_win32_libid'
4943   else
4944     # Keep this pattern in sync with the one in func_win32_libid.
4945     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4946     lt_cv_file_magic_cmd='$OBJDUMP -f'
4947   fi
4948   ;;
4949
4950 cegcc*)
4951   # use the weaker test based on 'objdump'. See mingw*.
4952   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4953   lt_cv_file_magic_cmd='$OBJDUMP -f'
4954   ;;
4955
4956 darwin* | rhapsody*)
4957   lt_cv_deplibs_check_method=pass_all
4958   ;;
4959
4960 freebsd* | dragonfly*)
4961   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4962     case $host_cpu in
4963     i*86 )
4964       # Not sure whether the presence of OpenBSD here was a mistake.
4965       # Let's accept both of them until this is cleared up.
4966       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4967       lt_cv_file_magic_cmd=/usr/bin/file
4968       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4969       ;;
4970     esac
4971   else
4972     lt_cv_deplibs_check_method=pass_all
4973   fi
4974   ;;
4975
4976 gnu*)
4977   lt_cv_deplibs_check_method=pass_all
4978   ;;
4979
4980 haiku*)
4981   lt_cv_deplibs_check_method=pass_all
4982   ;;
4983
4984 hpux10.20* | hpux11*)
4985   lt_cv_file_magic_cmd=/usr/bin/file
4986   case $host_cpu in
4987   ia64*)
4988     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4989     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4990     ;;
4991   hppa*64*)
4992     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]'
4993     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4994     ;;
4995   *)
4996     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4997     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4998     ;;
4999   esac
5000   ;;
5001
5002 interix[3-9]*)
5003   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5004   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5005   ;;
5006
5007 irix5* | irix6* | nonstopux*)
5008   case $LD in
5009   *-32|*"-32 ") libmagic=32-bit;;
5010   *-n32|*"-n32 ") libmagic=N32;;
5011   *-64|*"-64 ") libmagic=64-bit;;
5012   *) libmagic=never-match;;
5013   esac
5014   lt_cv_deplibs_check_method=pass_all
5015   ;;
5016
5017 # This must be glibc/ELF.
5018 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5019   lt_cv_deplibs_check_method=pass_all
5020   ;;
5021
5022 netbsd*)
5023   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5024     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5025   else
5026     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5027   fi
5028   ;;
5029
5030 newos6*)
5031   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5032   lt_cv_file_magic_cmd=/usr/bin/file
5033   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5034   ;;
5035
5036 *nto* | *qnx*)
5037   lt_cv_deplibs_check_method=pass_all
5038   ;;
5039
5040 openbsd*)
5041   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5042     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5043   else
5044     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5045   fi
5046   ;;
5047
5048 osf3* | osf4* | osf5*)
5049   lt_cv_deplibs_check_method=pass_all
5050   ;;
5051
5052 rdos*)
5053   lt_cv_deplibs_check_method=pass_all
5054   ;;
5055
5056 solaris*)
5057   lt_cv_deplibs_check_method=pass_all
5058   ;;
5059
5060 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5061   lt_cv_deplibs_check_method=pass_all
5062   ;;
5063
5064 sysv4 | sysv4.3*)
5065   case $host_vendor in
5066   motorola)
5067     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]'
5068     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5069     ;;
5070   ncr)
5071     lt_cv_deplibs_check_method=pass_all
5072     ;;
5073   sequent)
5074     lt_cv_file_magic_cmd='/bin/file'
5075     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5076     ;;
5077   sni)
5078     lt_cv_file_magic_cmd='/bin/file'
5079     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5080     lt_cv_file_magic_test_file=/lib/libc.so
5081     ;;
5082   siemens)
5083     lt_cv_deplibs_check_method=pass_all
5084     ;;
5085   pc)
5086     lt_cv_deplibs_check_method=pass_all
5087     ;;
5088   esac
5089   ;;
5090
5091 tpf*)
5092   lt_cv_deplibs_check_method=pass_all
5093   ;;
5094 esac
5095
5096 fi
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5098 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5099
5100 file_magic_glob=
5101 want_nocaseglob=no
5102 if test "$build" = "$host"; then
5103   case $host_os in
5104   mingw* | pw32*)
5105     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5106       want_nocaseglob=yes
5107     else
5108       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5109     fi
5110     ;;
5111   esac
5112 fi
5113
5114 file_magic_cmd=$lt_cv_file_magic_cmd
5115 deplibs_check_method=$lt_cv_deplibs_check_method
5116 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139 if test -n "$ac_tool_prefix"; then
5140   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5141 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if ${ac_cv_prog_DLLTOOL+:} false; then :
5145   $as_echo_n "(cached) " >&6
5146 else
5147   if test -n "$DLLTOOL"; then
5148   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5149 else
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5152 do
5153   IFS=$as_save_IFS
5154   test -z "$as_dir" && as_dir=.
5155     for ac_exec_ext in '' $ac_executable_extensions; do
5156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159     break 2
5160   fi
5161 done
5162   done
5163 IFS=$as_save_IFS
5164
5165 fi
5166 fi
5167 DLLTOOL=$ac_cv_prog_DLLTOOL
5168 if test -n "$DLLTOOL"; then
5169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5170 $as_echo "$DLLTOOL" >&6; }
5171 else
5172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5174 fi
5175
5176
5177 fi
5178 if test -z "$ac_cv_prog_DLLTOOL"; then
5179   ac_ct_DLLTOOL=$DLLTOOL
5180   # Extract the first word of "dlltool", so it can be a program name with args.
5181 set dummy dlltool; ac_word=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5185   $as_echo_n "(cached) " >&6
5186 else
5187   if test -n "$ac_ct_DLLTOOL"; then
5188   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5189 else
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5192 do
5193   IFS=$as_save_IFS
5194   test -z "$as_dir" && as_dir=.
5195     for ac_exec_ext in '' $ac_executable_extensions; do
5196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199     break 2
5200   fi
5201 done
5202   done
5203 IFS=$as_save_IFS
5204
5205 fi
5206 fi
5207 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5208 if test -n "$ac_ct_DLLTOOL"; then
5209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5210 $as_echo "$ac_ct_DLLTOOL" >&6; }
5211 else
5212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5214 fi
5215
5216   if test "x$ac_ct_DLLTOOL" = x; then
5217     DLLTOOL="false"
5218   else
5219     case $cross_compiling:$ac_tool_warned in
5220 yes:)
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5223 ac_tool_warned=yes ;;
5224 esac
5225     DLLTOOL=$ac_ct_DLLTOOL
5226   fi
5227 else
5228   DLLTOOL="$ac_cv_prog_DLLTOOL"
5229 fi
5230
5231 test -z "$DLLTOOL" && DLLTOOL=dlltool
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5243 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5244 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5245   $as_echo_n "(cached) " >&6
5246 else
5247   lt_cv_sharedlib_from_linklib_cmd='unknown'
5248
5249 case $host_os in
5250 cygwin* | mingw* | pw32* | cegcc*)
5251   # two different shell functions defined in ltmain.sh
5252   # decide which to use based on capabilities of $DLLTOOL
5253   case `$DLLTOOL --help 2>&1` in
5254   *--identify-strict*)
5255     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5256     ;;
5257   *)
5258     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5259     ;;
5260   esac
5261   ;;
5262 *)
5263   # fallback: assume linklib IS sharedlib
5264   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5265   ;;
5266 esac
5267
5268 fi
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5270 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5271 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5272 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5273
5274
5275
5276
5277
5278
5279
5280
5281 if test -n "$ac_tool_prefix"; then
5282   for ac_prog in ar
5283   do
5284     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5285 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 $as_echo_n "checking for $ac_word... " >&6; }
5288 if ${ac_cv_prog_AR+:} false; then :
5289   $as_echo_n "(cached) " >&6
5290 else
5291   if test -n "$AR"; then
5292   ac_cv_prog_AR="$AR" # Let the user override the test.
5293 else
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH
5296 do
5297   IFS=$as_save_IFS
5298   test -z "$as_dir" && as_dir=.
5299     for ac_exec_ext in '' $ac_executable_extensions; do
5300   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5301     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303     break 2
5304   fi
5305 done
5306   done
5307 IFS=$as_save_IFS
5308
5309 fi
5310 fi
5311 AR=$ac_cv_prog_AR
5312 if test -n "$AR"; then
5313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5314 $as_echo "$AR" >&6; }
5315 else
5316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5318 fi
5319
5320
5321     test -n "$AR" && break
5322   done
5323 fi
5324 if test -z "$AR"; then
5325   ac_ct_AR=$AR
5326   for ac_prog in ar
5327 do
5328   # Extract the first word of "$ac_prog", so it can be a program name with args.
5329 set dummy $ac_prog; ac_word=$2
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5331 $as_echo_n "checking for $ac_word... " >&6; }
5332 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5333   $as_echo_n "(cached) " >&6
5334 else
5335   if test -n "$ac_ct_AR"; then
5336   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5337 else
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 for as_dir in $PATH
5340 do
5341   IFS=$as_save_IFS
5342   test -z "$as_dir" && as_dir=.
5343     for ac_exec_ext in '' $ac_executable_extensions; do
5344   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5345     ac_cv_prog_ac_ct_AR="$ac_prog"
5346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5347     break 2
5348   fi
5349 done
5350   done
5351 IFS=$as_save_IFS
5352
5353 fi
5354 fi
5355 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5356 if test -n "$ac_ct_AR"; then
5357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5358 $as_echo "$ac_ct_AR" >&6; }
5359 else
5360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5362 fi
5363
5364
5365   test -n "$ac_ct_AR" && break
5366 done
5367
5368   if test "x$ac_ct_AR" = x; then
5369     AR="false"
5370   else
5371     case $cross_compiling:$ac_tool_warned in
5372 yes:)
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5375 ac_tool_warned=yes ;;
5376 esac
5377     AR=$ac_ct_AR
5378   fi
5379 fi
5380
5381 : ${AR=ar}
5382 : ${AR_FLAGS=cru}
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5395 $as_echo_n "checking for archiver @FILE support... " >&6; }
5396 if ${lt_cv_ar_at_file+:} false; then :
5397   $as_echo_n "(cached) " >&6
5398 else
5399   lt_cv_ar_at_file=no
5400    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h.  */
5402
5403 int
5404 main ()
5405 {
5406
5407   ;
5408   return 0;
5409 }
5410 _ACEOF
5411 if ac_fn_c_try_compile "$LINENO"; then :
5412   echo conftest.$ac_objext > conftest.lst
5413       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5414       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5415   (eval $lt_ar_try) 2>&5
5416   ac_status=$?
5417   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5418   test $ac_status = 0; }
5419       if test "$ac_status" -eq 0; then
5420         # Ensure the archiver fails upon bogus file names.
5421         rm -f conftest.$ac_objext libconftest.a
5422         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5423   (eval $lt_ar_try) 2>&5
5424   ac_status=$?
5425   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5426   test $ac_status = 0; }
5427         if test "$ac_status" -ne 0; then
5428           lt_cv_ar_at_file=@
5429         fi
5430       fi
5431       rm -f conftest.* libconftest.a
5432
5433 fi
5434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435
5436 fi
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5438 $as_echo "$lt_cv_ar_at_file" >&6; }
5439
5440 if test "x$lt_cv_ar_at_file" = xno; then
5441   archiver_list_spec=
5442 else
5443   archiver_list_spec=$lt_cv_ar_at_file
5444 fi
5445
5446
5447
5448
5449
5450
5451
5452 if test -n "$ac_tool_prefix"; then
5453   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5454 set dummy ${ac_tool_prefix}strip; ac_word=$2
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if ${ac_cv_prog_STRIP+:} false; then :
5458   $as_echo_n "(cached) " >&6
5459 else
5460   if test -n "$STRIP"; then
5461   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5462 else
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5465 do
5466   IFS=$as_save_IFS
5467   test -z "$as_dir" && as_dir=.
5468     for ac_exec_ext in '' $ac_executable_extensions; do
5469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5470     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472     break 2
5473   fi
5474 done
5475   done
5476 IFS=$as_save_IFS
5477
5478 fi
5479 fi
5480 STRIP=$ac_cv_prog_STRIP
5481 if test -n "$STRIP"; then
5482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5483 $as_echo "$STRIP" >&6; }
5484 else
5485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5487 fi
5488
5489
5490 fi
5491 if test -z "$ac_cv_prog_STRIP"; then
5492   ac_ct_STRIP=$STRIP
5493   # Extract the first word of "strip", so it can be a program name with args.
5494 set dummy strip; ac_word=$2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496 $as_echo_n "checking for $ac_word... " >&6; }
5497 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5498   $as_echo_n "(cached) " >&6
5499 else
5500   if test -n "$ac_ct_STRIP"; then
5501   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5502 else
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5505 do
5506   IFS=$as_save_IFS
5507   test -z "$as_dir" && as_dir=.
5508     for ac_exec_ext in '' $ac_executable_extensions; do
5509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5510     ac_cv_prog_ac_ct_STRIP="strip"
5511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512     break 2
5513   fi
5514 done
5515   done
5516 IFS=$as_save_IFS
5517
5518 fi
5519 fi
5520 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5521 if test -n "$ac_ct_STRIP"; then
5522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5523 $as_echo "$ac_ct_STRIP" >&6; }
5524 else
5525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5527 fi
5528
5529   if test "x$ac_ct_STRIP" = x; then
5530     STRIP=":"
5531   else
5532     case $cross_compiling:$ac_tool_warned in
5533 yes:)
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5536 ac_tool_warned=yes ;;
5537 esac
5538     STRIP=$ac_ct_STRIP
5539   fi
5540 else
5541   STRIP="$ac_cv_prog_STRIP"
5542 fi
5543
5544 test -z "$STRIP" && STRIP=:
5545
5546
5547
5548
5549
5550
5551 if test -n "$ac_tool_prefix"; then
5552   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5553 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5555 $as_echo_n "checking for $ac_word... " >&6; }
5556 if ${ac_cv_prog_RANLIB+:} false; then :
5557   $as_echo_n "(cached) " >&6
5558 else
5559   if test -n "$RANLIB"; then
5560   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5561 else
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH
5564 do
5565   IFS=$as_save_IFS
5566   test -z "$as_dir" && as_dir=.
5567     for ac_exec_ext in '' $ac_executable_extensions; do
5568   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5571     break 2
5572   fi
5573 done
5574   done
5575 IFS=$as_save_IFS
5576
5577 fi
5578 fi
5579 RANLIB=$ac_cv_prog_RANLIB
5580 if test -n "$RANLIB"; then
5581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5582 $as_echo "$RANLIB" >&6; }
5583 else
5584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5585 $as_echo "no" >&6; }
5586 fi
5587
5588
5589 fi
5590 if test -z "$ac_cv_prog_RANLIB"; then
5591   ac_ct_RANLIB=$RANLIB
5592   # Extract the first word of "ranlib", so it can be a program name with args.
5593 set dummy ranlib; ac_word=$2
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5595 $as_echo_n "checking for $ac_word... " >&6; }
5596 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5597   $as_echo_n "(cached) " >&6
5598 else
5599   if test -n "$ac_ct_RANLIB"; then
5600   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5601 else
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 for as_dir in $PATH
5604 do
5605   IFS=$as_save_IFS
5606   test -z "$as_dir" && as_dir=.
5607     for ac_exec_ext in '' $ac_executable_extensions; do
5608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5609     ac_cv_prog_ac_ct_RANLIB="ranlib"
5610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5611     break 2
5612   fi
5613 done
5614   done
5615 IFS=$as_save_IFS
5616
5617 fi
5618 fi
5619 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5620 if test -n "$ac_ct_RANLIB"; then
5621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5622 $as_echo "$ac_ct_RANLIB" >&6; }
5623 else
5624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625 $as_echo "no" >&6; }
5626 fi
5627
5628   if test "x$ac_ct_RANLIB" = x; then
5629     RANLIB=":"
5630   else
5631     case $cross_compiling:$ac_tool_warned in
5632 yes:)
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5635 ac_tool_warned=yes ;;
5636 esac
5637     RANLIB=$ac_ct_RANLIB
5638   fi
5639 else
5640   RANLIB="$ac_cv_prog_RANLIB"
5641 fi
5642
5643 test -z "$RANLIB" && RANLIB=:
5644
5645
5646
5647
5648
5649
5650 # Determine commands to create old-style static archives.
5651 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5652 old_postinstall_cmds='chmod 644 $oldlib'
5653 old_postuninstall_cmds=
5654
5655 if test -n "$RANLIB"; then
5656   case $host_os in
5657   openbsd*)
5658     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5659     ;;
5660   *)
5661     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5662     ;;
5663   esac
5664   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5665 fi
5666
5667 case $host_os in
5668   darwin*)
5669     lock_old_archive_extraction=yes ;;
5670   *)
5671     lock_old_archive_extraction=no ;;
5672 esac
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712 # If no C compiler was specified, use CC.
5713 LTCC=${LTCC-"$CC"}
5714
5715 # If no C compiler flags were specified, use CFLAGS.
5716 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5717
5718 # Allow CC to be a program name with arguments.
5719 compiler=$CC
5720
5721
5722 # Check for command to grab the raw symbol name followed by C symbol from nm.
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5724 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5725 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5726   $as_echo_n "(cached) " >&6
5727 else
5728
5729 # These are sane defaults that work on at least a few old systems.
5730 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5731
5732 # Character class describing NM global symbol codes.
5733 symcode='[BCDEGRST]'
5734
5735 # Regexp to match symbols that can be accessed directly from C.
5736 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5737
5738 # Define system-specific variables.
5739 case $host_os in
5740 aix*)
5741   symcode='[BCDT]'
5742   ;;
5743 cygwin* | mingw* | pw32* | cegcc*)
5744   symcode='[ABCDGISTW]'
5745   ;;
5746 hpux*)
5747   if test "$host_cpu" = ia64; then
5748     symcode='[ABCDEGRST]'
5749   fi
5750   ;;
5751 irix* | nonstopux*)
5752   symcode='[BCDEGRST]'
5753   ;;
5754 osf*)
5755   symcode='[BCDEGQRST]'
5756   ;;
5757 solaris*)
5758   symcode='[BDRT]'
5759   ;;
5760 sco3.2v5*)
5761   symcode='[DT]'
5762   ;;
5763 sysv4.2uw2*)
5764   symcode='[DT]'
5765   ;;
5766 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5767   symcode='[ABDT]'
5768   ;;
5769 sysv4)
5770   symcode='[DFNSTU]'
5771   ;;
5772 esac
5773
5774 # If we're using GNU nm, then use its standard symbol codes.
5775 case `$NM -V 2>&1` in
5776 *GNU* | *'with BFD'*)
5777   symcode='[ABCDGIRSTW]' ;;
5778 esac
5779
5780 # Transform an extracted symbol line into a proper C declaration.
5781 # Some systems (esp. on ia64) link data and code symbols differently,
5782 # so use this general approach.
5783 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5784
5785 # Transform an extracted symbol line into symbol name and symbol address
5786 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5787 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'"
5788
5789 # Handle CRLF in mingw tool chain
5790 opt_cr=
5791 case $build_os in
5792 mingw*)
5793   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5794   ;;
5795 esac
5796
5797 # Try without a prefix underscore, then with it.
5798 for ac_symprfx in "" "_"; do
5799
5800   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5801   symxfrm="\\1 $ac_symprfx\\2 \\2"
5802
5803   # Write the raw and C identifiers.
5804   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5805     # Fake it for dumpbin and say T for any non-static function
5806     # and D for any global variable.
5807     # Also find C++ and __fastcall symbols from MSVC++,
5808     # which start with @ or ?.
5809     lt_cv_sys_global_symbol_pipe="$AWK '"\
5810 "     {last_section=section; section=\$ 3};"\
5811 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5812 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5813 "     \$ 0!~/External *\|/{next};"\
5814 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5815 "     {if(hide[section]) next};"\
5816 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5817 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5818 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5819 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5820 "     ' prfx=^$ac_symprfx"
5821   else
5822     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5823   fi
5824   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5825
5826   # Check to see that the pipe works correctly.
5827   pipe_works=no
5828
5829   rm -f conftest*
5830   cat > conftest.$ac_ext <<_LT_EOF
5831 #ifdef __cplusplus
5832 extern "C" {
5833 #endif
5834 char nm_test_var;
5835 void nm_test_func(void);
5836 void nm_test_func(void){}
5837 #ifdef __cplusplus
5838 }
5839 #endif
5840 int main(){nm_test_var='a';nm_test_func();return(0);}
5841 _LT_EOF
5842
5843   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5844   (eval $ac_compile) 2>&5
5845   ac_status=$?
5846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5847   test $ac_status = 0; }; then
5848     # Now try to grab the symbols.
5849     nlist=conftest.nm
5850     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5851   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5852   ac_status=$?
5853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5854   test $ac_status = 0; } && test -s "$nlist"; then
5855       # Try sorting and uniquifying the output.
5856       if sort "$nlist" | uniq > "$nlist"T; then
5857         mv -f "$nlist"T "$nlist"
5858       else
5859         rm -f "$nlist"T
5860       fi
5861
5862       # Make sure that we snagged all the symbols we need.
5863       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5864         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5865           cat <<_LT_EOF > conftest.$ac_ext
5866 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5867 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5868 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5869    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5870 # define LT_DLSYM_CONST
5871 #elif defined(__osf__)
5872 /* This system does not cope well with relocations in const data.  */
5873 # define LT_DLSYM_CONST
5874 #else
5875 # define LT_DLSYM_CONST const
5876 #endif
5877
5878 #ifdef __cplusplus
5879 extern "C" {
5880 #endif
5881
5882 _LT_EOF
5883           # Now generate the symbol file.
5884           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5885
5886           cat <<_LT_EOF >> conftest.$ac_ext
5887
5888 /* The mapping between symbol names and symbols.  */
5889 LT_DLSYM_CONST struct {
5890   const char *name;
5891   void       *address;
5892 }
5893 lt__PROGRAM__LTX_preloaded_symbols[] =
5894 {
5895   { "@PROGRAM@", (void *) 0 },
5896 _LT_EOF
5897           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5898           cat <<\_LT_EOF >> conftest.$ac_ext
5899   {0, (void *) 0}
5900 };
5901
5902 /* This works around a problem in FreeBSD linker */
5903 #ifdef FREEBSD_WORKAROUND
5904 static const void *lt_preloaded_setup() {
5905   return lt__PROGRAM__LTX_preloaded_symbols;
5906 }
5907 #endif
5908
5909 #ifdef __cplusplus
5910 }
5911 #endif
5912 _LT_EOF
5913           # Now try linking the two files.
5914           mv conftest.$ac_objext conftstm.$ac_objext
5915           lt_globsym_save_LIBS=$LIBS
5916           lt_globsym_save_CFLAGS=$CFLAGS
5917           LIBS="conftstm.$ac_objext"
5918           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5919           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5920   (eval $ac_link) 2>&5
5921   ac_status=$?
5922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5923   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5924             pipe_works=yes
5925           fi
5926           LIBS=$lt_globsym_save_LIBS
5927           CFLAGS=$lt_globsym_save_CFLAGS
5928         else
5929           echo "cannot find nm_test_func in $nlist" >&5
5930         fi
5931       else
5932         echo "cannot find nm_test_var in $nlist" >&5
5933       fi
5934     else
5935       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5936     fi
5937   else
5938     echo "$progname: failed program was:" >&5
5939     cat conftest.$ac_ext >&5
5940   fi
5941   rm -rf conftest* conftst*
5942
5943   # Do not use the global_symbol_pipe unless it works.
5944   if test "$pipe_works" = yes; then
5945     break
5946   else
5947     lt_cv_sys_global_symbol_pipe=
5948   fi
5949 done
5950
5951 fi
5952
5953 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5954   lt_cv_sys_global_symbol_to_cdecl=
5955 fi
5956 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5958 $as_echo "failed" >&6; }
5959 else
5960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5961 $as_echo "ok" >&6; }
5962 fi
5963
5964 # Response file support.
5965 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5966   nm_file_list_spec='@'
5967 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5968   nm_file_list_spec='@'
5969 fi
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5998 $as_echo_n "checking for sysroot... " >&6; }
5999
6000 # Check whether --with-sysroot was given.
6001 if test "${with_sysroot+set}" = set; then :
6002   withval=$with_sysroot;
6003 else
6004   with_sysroot=no
6005 fi
6006
6007
6008 lt_sysroot=
6009 case ${with_sysroot} in #(
6010  yes)
6011    if test "$GCC" = yes; then
6012      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6013    fi
6014    ;; #(
6015  /*)
6016    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6017    ;; #(
6018  no|'')
6019    ;; #(
6020  *)
6021    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6022 $as_echo "${with_sysroot}" >&6; }
6023    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6024    ;;
6025 esac
6026
6027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6028 $as_echo "${lt_sysroot:-no}" >&6; }
6029
6030
6031
6032
6033
6034 # Check whether --enable-libtool-lock was given.
6035 if test "${enable_libtool_lock+set}" = set; then :
6036   enableval=$enable_libtool_lock;
6037 fi
6038
6039 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6040
6041 # Some flags need to be propagated to the compiler or linker for good
6042 # libtool support.
6043 case $host in
6044 ia64-*-hpux*)
6045   # Find out which ABI we are using.
6046   echo 'int i;' > conftest.$ac_ext
6047   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6048   (eval $ac_compile) 2>&5
6049   ac_status=$?
6050   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6051   test $ac_status = 0; }; then
6052     case `/usr/bin/file conftest.$ac_objext` in
6053       *ELF-32*)
6054         HPUX_IA64_MODE="32"
6055         ;;
6056       *ELF-64*)
6057         HPUX_IA64_MODE="64"
6058         ;;
6059     esac
6060   fi
6061   rm -rf conftest*
6062   ;;
6063 *-*-irix6*)
6064   # Find out which ABI we are using.
6065   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6066   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6067   (eval $ac_compile) 2>&5
6068   ac_status=$?
6069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6070   test $ac_status = 0; }; then
6071     if test "$lt_cv_prog_gnu_ld" = yes; then
6072       case `/usr/bin/file conftest.$ac_objext` in
6073         *32-bit*)
6074           LD="${LD-ld} -melf32bsmip"
6075           ;;
6076         *N32*)
6077           LD="${LD-ld} -melf32bmipn32"
6078           ;;
6079         *64-bit*)
6080           LD="${LD-ld} -melf64bmip"
6081         ;;
6082       esac
6083     else
6084       case `/usr/bin/file conftest.$ac_objext` in
6085         *32-bit*)
6086           LD="${LD-ld} -32"
6087           ;;
6088         *N32*)
6089           LD="${LD-ld} -n32"
6090           ;;
6091         *64-bit*)
6092           LD="${LD-ld} -64"
6093           ;;
6094       esac
6095     fi
6096   fi
6097   rm -rf conftest*
6098   ;;
6099
6100 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6101 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6102   # Find out which ABI we are using.
6103   echo 'int i;' > conftest.$ac_ext
6104   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6105   (eval $ac_compile) 2>&5
6106   ac_status=$?
6107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6108   test $ac_status = 0; }; then
6109     case `/usr/bin/file conftest.o` in
6110       *32-bit*)
6111         case $host in
6112           x86_64-*kfreebsd*-gnu)
6113             LD="${LD-ld} -m elf_i386_fbsd"
6114             ;;
6115           x86_64-*linux*)
6116             LD="${LD-ld} -m elf_i386"
6117             ;;
6118           ppc64-*linux*|powerpc64-*linux*)
6119             LD="${LD-ld} -m elf32ppclinux"
6120             ;;
6121           s390x-*linux*)
6122             LD="${LD-ld} -m elf_s390"
6123             ;;
6124           sparc64-*linux*)
6125             LD="${LD-ld} -m elf32_sparc"
6126             ;;
6127         esac
6128         ;;
6129       *64-bit*)
6130         case $host in
6131           x86_64-*kfreebsd*-gnu)
6132             LD="${LD-ld} -m elf_x86_64_fbsd"
6133             ;;
6134           x86_64-*linux*)
6135             LD="${LD-ld} -m elf_x86_64"
6136             ;;
6137           ppc*-*linux*|powerpc*-*linux*)
6138             LD="${LD-ld} -m elf64ppc"
6139             ;;
6140           s390*-*linux*|s390*-*tpf*)
6141             LD="${LD-ld} -m elf64_s390"
6142             ;;
6143           sparc*-*linux*)
6144             LD="${LD-ld} -m elf64_sparc"
6145             ;;
6146         esac
6147         ;;
6148     esac
6149   fi
6150   rm -rf conftest*
6151   ;;
6152
6153 *-*-sco3.2v5*)
6154   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6155   SAVE_CFLAGS="$CFLAGS"
6156   CFLAGS="$CFLAGS -belf"
6157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6158 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6159 if ${lt_cv_cc_needs_belf+:} false; then :
6160   $as_echo_n "(cached) " >&6
6161 else
6162   ac_ext=c
6163 ac_cpp='$CPP $CPPFLAGS'
6164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6167
6168      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h.  */
6170
6171 int
6172 main ()
6173 {
6174
6175   ;
6176   return 0;
6177 }
6178 _ACEOF
6179 if ac_fn_c_try_link "$LINENO"; then :
6180   lt_cv_cc_needs_belf=yes
6181 else
6182   lt_cv_cc_needs_belf=no
6183 fi
6184 rm -f core conftest.err conftest.$ac_objext \
6185     conftest$ac_exeext conftest.$ac_ext
6186      ac_ext=c
6187 ac_cpp='$CPP $CPPFLAGS'
6188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6191
6192 fi
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6194 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6195   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6196     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6197     CFLAGS="$SAVE_CFLAGS"
6198   fi
6199   ;;
6200 *-*solaris*)
6201   # Find out which ABI we are using.
6202   echo 'int i;' > conftest.$ac_ext
6203   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6204   (eval $ac_compile) 2>&5
6205   ac_status=$?
6206   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6207   test $ac_status = 0; }; then
6208     case `/usr/bin/file conftest.o` in
6209     *64-bit*)
6210       case $lt_cv_prog_gnu_ld in
6211       yes*)
6212         case $host in
6213         i?86-*-solaris*)
6214           LD="${LD-ld} -m elf_x86_64"
6215           ;;
6216         sparc*-*-solaris*)
6217           LD="${LD-ld} -m elf64_sparc"
6218           ;;
6219         esac
6220         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6221         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6222           LD="${LD-ld}_sol2"
6223         fi
6224         ;;
6225       *)
6226         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6227           LD="${LD-ld} -64"
6228         fi
6229         ;;
6230       esac
6231       ;;
6232     esac
6233   fi
6234   rm -rf conftest*
6235   ;;
6236 esac
6237
6238 need_locks="$enable_libtool_lock"
6239
6240 if test -n "$ac_tool_prefix"; then
6241   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6242 set dummy ${ac_tool_prefix}mt; ac_word=$2
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244 $as_echo_n "checking for $ac_word... " >&6; }
6245 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6246   $as_echo_n "(cached) " >&6
6247 else
6248   if test -n "$MANIFEST_TOOL"; then
6249   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6250 else
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 for as_dir in $PATH
6253 do
6254   IFS=$as_save_IFS
6255   test -z "$as_dir" && as_dir=.
6256     for ac_exec_ext in '' $ac_executable_extensions; do
6257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6258     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6260     break 2
6261   fi
6262 done
6263   done
6264 IFS=$as_save_IFS
6265
6266 fi
6267 fi
6268 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6269 if test -n "$MANIFEST_TOOL"; then
6270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6271 $as_echo "$MANIFEST_TOOL" >&6; }
6272 else
6273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274 $as_echo "no" >&6; }
6275 fi
6276
6277
6278 fi
6279 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6280   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6281   # Extract the first word of "mt", so it can be a program name with args.
6282 set dummy mt; ac_word=$2
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 $as_echo_n "checking for $ac_word... " >&6; }
6285 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6286   $as_echo_n "(cached) " >&6
6287 else
6288   if test -n "$ac_ct_MANIFEST_TOOL"; then
6289   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6290 else
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 for as_dir in $PATH
6293 do
6294   IFS=$as_save_IFS
6295   test -z "$as_dir" && as_dir=.
6296     for ac_exec_ext in '' $ac_executable_extensions; do
6297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6300     break 2
6301   fi
6302 done
6303   done
6304 IFS=$as_save_IFS
6305
6306 fi
6307 fi
6308 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6309 if test -n "$ac_ct_MANIFEST_TOOL"; then
6310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6311 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6312 else
6313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6315 fi
6316
6317   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6318     MANIFEST_TOOL=":"
6319   else
6320     case $cross_compiling:$ac_tool_warned in
6321 yes:)
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6324 ac_tool_warned=yes ;;
6325 esac
6326     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6327   fi
6328 else
6329   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6330 fi
6331
6332 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6334 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6335 if ${lt_cv_path_mainfest_tool+:} false; then :
6336   $as_echo_n "(cached) " >&6
6337 else
6338   lt_cv_path_mainfest_tool=no
6339   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6340   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6341   cat conftest.err >&5
6342   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6343     lt_cv_path_mainfest_tool=yes
6344   fi
6345   rm -f conftest*
6346 fi
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6348 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6349 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6350   MANIFEST_TOOL=:
6351 fi
6352
6353
6354
6355
6356
6357
6358   case $host_os in
6359     rhapsody* | darwin*)
6360     if test -n "$ac_tool_prefix"; then
6361   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6362 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364 $as_echo_n "checking for $ac_word... " >&6; }
6365 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6366   $as_echo_n "(cached) " >&6
6367 else
6368   if test -n "$DSYMUTIL"; then
6369   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6370 else
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 for as_dir in $PATH
6373 do
6374   IFS=$as_save_IFS
6375   test -z "$as_dir" && as_dir=.
6376     for ac_exec_ext in '' $ac_executable_extensions; do
6377   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6378     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6380     break 2
6381   fi
6382 done
6383   done
6384 IFS=$as_save_IFS
6385
6386 fi
6387 fi
6388 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6389 if test -n "$DSYMUTIL"; then
6390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6391 $as_echo "$DSYMUTIL" >&6; }
6392 else
6393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394 $as_echo "no" >&6; }
6395 fi
6396
6397
6398 fi
6399 if test -z "$ac_cv_prog_DSYMUTIL"; then
6400   ac_ct_DSYMUTIL=$DSYMUTIL
6401   # Extract the first word of "dsymutil", so it can be a program name with args.
6402 set dummy dsymutil; ac_word=$2
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6404 $as_echo_n "checking for $ac_word... " >&6; }
6405 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6406   $as_echo_n "(cached) " >&6
6407 else
6408   if test -n "$ac_ct_DSYMUTIL"; then
6409   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6410 else
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 for as_dir in $PATH
6413 do
6414   IFS=$as_save_IFS
6415   test -z "$as_dir" && as_dir=.
6416     for ac_exec_ext in '' $ac_executable_extensions; do
6417   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6418     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6420     break 2
6421   fi
6422 done
6423   done
6424 IFS=$as_save_IFS
6425
6426 fi
6427 fi
6428 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6429 if test -n "$ac_ct_DSYMUTIL"; then
6430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6431 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6432 else
6433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434 $as_echo "no" >&6; }
6435 fi
6436
6437   if test "x$ac_ct_DSYMUTIL" = x; then
6438     DSYMUTIL=":"
6439   else
6440     case $cross_compiling:$ac_tool_warned in
6441 yes:)
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6444 ac_tool_warned=yes ;;
6445 esac
6446     DSYMUTIL=$ac_ct_DSYMUTIL
6447   fi
6448 else
6449   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6450 fi
6451
6452     if test -n "$ac_tool_prefix"; then
6453   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6454 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6456 $as_echo_n "checking for $ac_word... " >&6; }
6457 if ${ac_cv_prog_NMEDIT+:} false; then :
6458   $as_echo_n "(cached) " >&6
6459 else
6460   if test -n "$NMEDIT"; then
6461   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6462 else
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 for as_dir in $PATH
6465 do
6466   IFS=$as_save_IFS
6467   test -z "$as_dir" && as_dir=.
6468     for ac_exec_ext in '' $ac_executable_extensions; do
6469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6470     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6472     break 2
6473   fi
6474 done
6475   done
6476 IFS=$as_save_IFS
6477
6478 fi
6479 fi
6480 NMEDIT=$ac_cv_prog_NMEDIT
6481 if test -n "$NMEDIT"; then
6482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6483 $as_echo "$NMEDIT" >&6; }
6484 else
6485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486 $as_echo "no" >&6; }
6487 fi
6488
6489
6490 fi
6491 if test -z "$ac_cv_prog_NMEDIT"; then
6492   ac_ct_NMEDIT=$NMEDIT
6493   # Extract the first word of "nmedit", so it can be a program name with args.
6494 set dummy nmedit; ac_word=$2
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6496 $as_echo_n "checking for $ac_word... " >&6; }
6497 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6498   $as_echo_n "(cached) " >&6
6499 else
6500   if test -n "$ac_ct_NMEDIT"; then
6501   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6502 else
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504 for as_dir in $PATH
6505 do
6506   IFS=$as_save_IFS
6507   test -z "$as_dir" && as_dir=.
6508     for ac_exec_ext in '' $ac_executable_extensions; do
6509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6510     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6512     break 2
6513   fi
6514 done
6515   done
6516 IFS=$as_save_IFS
6517
6518 fi
6519 fi
6520 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6521 if test -n "$ac_ct_NMEDIT"; then
6522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6523 $as_echo "$ac_ct_NMEDIT" >&6; }
6524 else
6525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6526 $as_echo "no" >&6; }
6527 fi
6528
6529   if test "x$ac_ct_NMEDIT" = x; then
6530     NMEDIT=":"
6531   else
6532     case $cross_compiling:$ac_tool_warned in
6533 yes:)
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6536 ac_tool_warned=yes ;;
6537 esac
6538     NMEDIT=$ac_ct_NMEDIT
6539   fi
6540 else
6541   NMEDIT="$ac_cv_prog_NMEDIT"
6542 fi
6543
6544     if test -n "$ac_tool_prefix"; then
6545   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6546 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548 $as_echo_n "checking for $ac_word... " >&6; }
6549 if ${ac_cv_prog_LIPO+:} false; then :
6550   $as_echo_n "(cached) " >&6
6551 else
6552   if test -n "$LIPO"; then
6553   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6554 else
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 for as_dir in $PATH
6557 do
6558   IFS=$as_save_IFS
6559   test -z "$as_dir" && as_dir=.
6560     for ac_exec_ext in '' $ac_executable_extensions; do
6561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564     break 2
6565   fi
6566 done
6567   done
6568 IFS=$as_save_IFS
6569
6570 fi
6571 fi
6572 LIPO=$ac_cv_prog_LIPO
6573 if test -n "$LIPO"; then
6574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6575 $as_echo "$LIPO" >&6; }
6576 else
6577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 $as_echo "no" >&6; }
6579 fi
6580
6581
6582 fi
6583 if test -z "$ac_cv_prog_LIPO"; then
6584   ac_ct_LIPO=$LIPO
6585   # Extract the first word of "lipo", so it can be a program name with args.
6586 set dummy lipo; ac_word=$2
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588 $as_echo_n "checking for $ac_word... " >&6; }
6589 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6590   $as_echo_n "(cached) " >&6
6591 else
6592   if test -n "$ac_ct_LIPO"; then
6593   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6594 else
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6597 do
6598   IFS=$as_save_IFS
6599   test -z "$as_dir" && as_dir=.
6600     for ac_exec_ext in '' $ac_executable_extensions; do
6601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6602     ac_cv_prog_ac_ct_LIPO="lipo"
6603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604     break 2
6605   fi
6606 done
6607   done
6608 IFS=$as_save_IFS
6609
6610 fi
6611 fi
6612 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6613 if test -n "$ac_ct_LIPO"; then
6614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6615 $as_echo "$ac_ct_LIPO" >&6; }
6616 else
6617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 $as_echo "no" >&6; }
6619 fi
6620
6621   if test "x$ac_ct_LIPO" = x; then
6622     LIPO=":"
6623   else
6624     case $cross_compiling:$ac_tool_warned in
6625 yes:)
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6628 ac_tool_warned=yes ;;
6629 esac
6630     LIPO=$ac_ct_LIPO
6631   fi
6632 else
6633   LIPO="$ac_cv_prog_LIPO"
6634 fi
6635
6636     if test -n "$ac_tool_prefix"; then
6637   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6638 set dummy ${ac_tool_prefix}otool; ac_word=$2
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640 $as_echo_n "checking for $ac_word... " >&6; }
6641 if ${ac_cv_prog_OTOOL+:} false; then :
6642   $as_echo_n "(cached) " >&6
6643 else
6644   if test -n "$OTOOL"; then
6645   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6646 else
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650   IFS=$as_save_IFS
6651   test -z "$as_dir" && as_dir=.
6652     for ac_exec_ext in '' $ac_executable_extensions; do
6653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6654     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656     break 2
6657   fi
6658 done
6659   done
6660 IFS=$as_save_IFS
6661
6662 fi
6663 fi
6664 OTOOL=$ac_cv_prog_OTOOL
6665 if test -n "$OTOOL"; then
6666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6667 $as_echo "$OTOOL" >&6; }
6668 else
6669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6670 $as_echo "no" >&6; }
6671 fi
6672
6673
6674 fi
6675 if test -z "$ac_cv_prog_OTOOL"; then
6676   ac_ct_OTOOL=$OTOOL
6677   # Extract the first word of "otool", so it can be a program name with args.
6678 set dummy otool; ac_word=$2
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6680 $as_echo_n "checking for $ac_word... " >&6; }
6681 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6682   $as_echo_n "(cached) " >&6
6683 else
6684   if test -n "$ac_ct_OTOOL"; then
6685   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6686 else
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 for as_dir in $PATH
6689 do
6690   IFS=$as_save_IFS
6691   test -z "$as_dir" && as_dir=.
6692     for ac_exec_ext in '' $ac_executable_extensions; do
6693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6694     ac_cv_prog_ac_ct_OTOOL="otool"
6695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696     break 2
6697   fi
6698 done
6699   done
6700 IFS=$as_save_IFS
6701
6702 fi
6703 fi
6704 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6705 if test -n "$ac_ct_OTOOL"; then
6706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6707 $as_echo "$ac_ct_OTOOL" >&6; }
6708 else
6709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710 $as_echo "no" >&6; }
6711 fi
6712
6713   if test "x$ac_ct_OTOOL" = x; then
6714     OTOOL=":"
6715   else
6716     case $cross_compiling:$ac_tool_warned in
6717 yes:)
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6720 ac_tool_warned=yes ;;
6721 esac
6722     OTOOL=$ac_ct_OTOOL
6723   fi
6724 else
6725   OTOOL="$ac_cv_prog_OTOOL"
6726 fi
6727
6728     if test -n "$ac_tool_prefix"; then
6729   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6730 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732 $as_echo_n "checking for $ac_word... " >&6; }
6733 if ${ac_cv_prog_OTOOL64+:} false; then :
6734   $as_echo_n "(cached) " >&6
6735 else
6736   if test -n "$OTOOL64"; then
6737   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6738 else
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742   IFS=$as_save_IFS
6743   test -z "$as_dir" && as_dir=.
6744     for ac_exec_ext in '' $ac_executable_extensions; do
6745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6746     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6748     break 2
6749   fi
6750 done
6751   done
6752 IFS=$as_save_IFS
6753
6754 fi
6755 fi
6756 OTOOL64=$ac_cv_prog_OTOOL64
6757 if test -n "$OTOOL64"; then
6758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6759 $as_echo "$OTOOL64" >&6; }
6760 else
6761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6762 $as_echo "no" >&6; }
6763 fi
6764
6765
6766 fi
6767 if test -z "$ac_cv_prog_OTOOL64"; then
6768   ac_ct_OTOOL64=$OTOOL64
6769   # Extract the first word of "otool64", so it can be a program name with args.
6770 set dummy otool64; ac_word=$2
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6772 $as_echo_n "checking for $ac_word... " >&6; }
6773 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6774   $as_echo_n "(cached) " >&6
6775 else
6776   if test -n "$ac_ct_OTOOL64"; then
6777   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782   IFS=$as_save_IFS
6783   test -z "$as_dir" && as_dir=.
6784     for ac_exec_ext in '' $ac_executable_extensions; do
6785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6786     ac_cv_prog_ac_ct_OTOOL64="otool64"
6787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6788     break 2
6789   fi
6790 done
6791   done
6792 IFS=$as_save_IFS
6793
6794 fi
6795 fi
6796 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6797 if test -n "$ac_ct_OTOOL64"; then
6798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6799 $as_echo "$ac_ct_OTOOL64" >&6; }
6800 else
6801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802 $as_echo "no" >&6; }
6803 fi
6804
6805   if test "x$ac_ct_OTOOL64" = x; then
6806     OTOOL64=":"
6807   else
6808     case $cross_compiling:$ac_tool_warned in
6809 yes:)
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6812 ac_tool_warned=yes ;;
6813 esac
6814     OTOOL64=$ac_ct_OTOOL64
6815   fi
6816 else
6817   OTOOL64="$ac_cv_prog_OTOOL64"
6818 fi
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6847 $as_echo_n "checking for -single_module linker flag... " >&6; }
6848 if ${lt_cv_apple_cc_single_mod+:} false; then :
6849   $as_echo_n "(cached) " >&6
6850 else
6851   lt_cv_apple_cc_single_mod=no
6852       if test -z "${LT_MULTI_MODULE}"; then
6853         # By default we will add the -single_module flag. You can override
6854         # by either setting the environment variable LT_MULTI_MODULE
6855         # non-empty at configure time, or by adding -multi_module to the
6856         # link flags.
6857         rm -rf libconftest.dylib*
6858         echo "int foo(void){return 1;}" > conftest.c
6859         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6860 -dynamiclib -Wl,-single_module conftest.c" >&5
6861         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6862           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6863         _lt_result=$?
6864         # If there is a non-empty error log, and "single_module"
6865         # appears in it, assume the flag caused a linker warning
6866         if test -s conftest.err && $GREP single_module conftest.err; then
6867           cat conftest.err >&5
6868         # Otherwise, if the output was created with a 0 exit code from
6869         # the compiler, it worked.
6870         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6871           lt_cv_apple_cc_single_mod=yes
6872         else
6873           cat conftest.err >&5
6874         fi
6875         rm -rf libconftest.dylib*
6876         rm -f conftest.*
6877       fi
6878 fi
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6880 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6881
6882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6883 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6884 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6885   $as_echo_n "(cached) " >&6
6886 else
6887   lt_cv_ld_exported_symbols_list=no
6888       save_LDFLAGS=$LDFLAGS
6889       echo "_main" > conftest.sym
6890       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6891       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892 /* end confdefs.h.  */
6893
6894 int
6895 main ()
6896 {
6897
6898   ;
6899   return 0;
6900 }
6901 _ACEOF
6902 if ac_fn_c_try_link "$LINENO"; then :
6903   lt_cv_ld_exported_symbols_list=yes
6904 else
6905   lt_cv_ld_exported_symbols_list=no
6906 fi
6907 rm -f core conftest.err conftest.$ac_objext \
6908     conftest$ac_exeext conftest.$ac_ext
6909         LDFLAGS="$save_LDFLAGS"
6910
6911 fi
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6913 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6914
6915     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6916 $as_echo_n "checking for -force_load linker flag... " >&6; }
6917 if ${lt_cv_ld_force_load+:} false; then :
6918   $as_echo_n "(cached) " >&6
6919 else
6920   lt_cv_ld_force_load=no
6921       cat > conftest.c << _LT_EOF
6922 int forced_loaded() { return 2;}
6923 _LT_EOF
6924       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6925       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6926       echo "$AR cru libconftest.a conftest.o" >&5
6927       $AR cru libconftest.a conftest.o 2>&5
6928       echo "$RANLIB libconftest.a" >&5
6929       $RANLIB libconftest.a 2>&5
6930       cat > conftest.c << _LT_EOF
6931 int main() { return 0;}
6932 _LT_EOF
6933       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6934       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6935       _lt_result=$?
6936       if test -s conftest.err && $GREP force_load conftest.err; then
6937         cat conftest.err >&5
6938       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6939         lt_cv_ld_force_load=yes
6940       else
6941         cat conftest.err >&5
6942       fi
6943         rm -f conftest.err libconftest.a conftest conftest.c
6944         rm -rf conftest.dSYM
6945
6946 fi
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6948 $as_echo "$lt_cv_ld_force_load" >&6; }
6949     case $host_os in
6950     rhapsody* | darwin1.[012])
6951       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6952     darwin1.*)
6953       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6954     darwin*) # darwin 5.x on
6955       # if running on 10.5 or later, the deployment target defaults
6956       # to the OS version, if on x86, and 10.4, the deployment
6957       # target defaults to 10.4. Don't you love it?
6958       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6959         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6960           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6961         10.[012]*)
6962           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6963         10.*)
6964           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6965       esac
6966     ;;
6967   esac
6968     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6969       _lt_dar_single_mod='$single_module'
6970     fi
6971     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6972       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6973     else
6974       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6975     fi
6976     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6977       _lt_dsymutil='~$DSYMUTIL $lib || :'
6978     else
6979       _lt_dsymutil=
6980     fi
6981     ;;
6982   esac
6983
6984 ac_ext=c
6985 ac_cpp='$CPP $CPPFLAGS'
6986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6990 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6991 # On Suns, sometimes $CPP names a directory.
6992 if test -n "$CPP" && test -d "$CPP"; then
6993   CPP=
6994 fi
6995 if test -z "$CPP"; then
6996   if ${ac_cv_prog_CPP+:} false; then :
6997   $as_echo_n "(cached) " >&6
6998 else
6999       # Double quotes because CPP needs to be expanded
7000     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7001     do
7002       ac_preproc_ok=false
7003 for ac_c_preproc_warn_flag in '' yes
7004 do
7005   # Use a header file that comes with gcc, so configuring glibc
7006   # with a fresh cross-compiler works.
7007   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7008   # <limits.h> exists even on freestanding compilers.
7009   # On the NeXT, cc -E runs the code through the compiler's parser,
7010   # not just through cpp. "Syntax error" is here to catch this case.
7011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h.  */
7013 #ifdef __STDC__
7014 # include <limits.h>
7015 #else
7016 # include <assert.h>
7017 #endif
7018                      Syntax error
7019 _ACEOF
7020 if ac_fn_c_try_cpp "$LINENO"; then :
7021
7022 else
7023   # Broken: fails on valid input.
7024 continue
7025 fi
7026 rm -f conftest.err conftest.i conftest.$ac_ext
7027
7028   # OK, works on sane cases.  Now check whether nonexistent headers
7029   # can be detected and how.
7030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h.  */
7032 #include <ac_nonexistent.h>
7033 _ACEOF
7034 if ac_fn_c_try_cpp "$LINENO"; then :
7035   # Broken: success on invalid input.
7036 continue
7037 else
7038   # Passes both tests.
7039 ac_preproc_ok=:
7040 break
7041 fi
7042 rm -f conftest.err conftest.i conftest.$ac_ext
7043
7044 done
7045 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7046 rm -f conftest.i conftest.err conftest.$ac_ext
7047 if $ac_preproc_ok; then :
7048   break
7049 fi
7050
7051     done
7052     ac_cv_prog_CPP=$CPP
7053
7054 fi
7055   CPP=$ac_cv_prog_CPP
7056 else
7057   ac_cv_prog_CPP=$CPP
7058 fi
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7060 $as_echo "$CPP" >&6; }
7061 ac_preproc_ok=false
7062 for ac_c_preproc_warn_flag in '' yes
7063 do
7064   # Use a header file that comes with gcc, so configuring glibc
7065   # with a fresh cross-compiler works.
7066   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7067   # <limits.h> exists even on freestanding compilers.
7068   # On the NeXT, cc -E runs the code through the compiler's parser,
7069   # not just through cpp. "Syntax error" is here to catch this case.
7070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071 /* end confdefs.h.  */
7072 #ifdef __STDC__
7073 # include <limits.h>
7074 #else
7075 # include <assert.h>
7076 #endif
7077                      Syntax error
7078 _ACEOF
7079 if ac_fn_c_try_cpp "$LINENO"; then :
7080
7081 else
7082   # Broken: fails on valid input.
7083 continue
7084 fi
7085 rm -f conftest.err conftest.i conftest.$ac_ext
7086
7087   # OK, works on sane cases.  Now check whether nonexistent headers
7088   # can be detected and how.
7089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090 /* end confdefs.h.  */
7091 #include <ac_nonexistent.h>
7092 _ACEOF
7093 if ac_fn_c_try_cpp "$LINENO"; then :
7094   # Broken: success on invalid input.
7095 continue
7096 else
7097   # Passes both tests.
7098 ac_preproc_ok=:
7099 break
7100 fi
7101 rm -f conftest.err conftest.i conftest.$ac_ext
7102
7103 done
7104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7105 rm -f conftest.i conftest.err conftest.$ac_ext
7106 if $ac_preproc_ok; then :
7107
7108 else
7109   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7111 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7112 See \`config.log' for more details" "$LINENO" 5; }
7113 fi
7114
7115 ac_ext=c
7116 ac_cpp='$CPP $CPPFLAGS'
7117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7120
7121
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7123 $as_echo_n "checking for ANSI C header files... " >&6; }
7124 if ${ac_cv_header_stdc+:} false; then :
7125   $as_echo_n "(cached) " >&6
7126 else
7127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h.  */
7129 #include <stdlib.h>
7130 #include <stdarg.h>
7131 #include <string.h>
7132 #include <float.h>
7133
7134 int
7135 main ()
7136 {
7137
7138   ;
7139   return 0;
7140 }
7141 _ACEOF
7142 if ac_fn_c_try_compile "$LINENO"; then :
7143   ac_cv_header_stdc=yes
7144 else
7145   ac_cv_header_stdc=no
7146 fi
7147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7148
7149 if test $ac_cv_header_stdc = yes; then
7150   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h.  */
7153 #include <string.h>
7154
7155 _ACEOF
7156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7157   $EGREP "memchr" >/dev/null 2>&1; then :
7158
7159 else
7160   ac_cv_header_stdc=no
7161 fi
7162 rm -f conftest*
7163
7164 fi
7165
7166 if test $ac_cv_header_stdc = yes; then
7167   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h.  */
7170 #include <stdlib.h>
7171
7172 _ACEOF
7173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7174   $EGREP "free" >/dev/null 2>&1; then :
7175
7176 else
7177   ac_cv_header_stdc=no
7178 fi
7179 rm -f conftest*
7180
7181 fi
7182
7183 if test $ac_cv_header_stdc = yes; then
7184   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7185   if test "$cross_compiling" = yes; then :
7186   :
7187 else
7188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h.  */
7190 #include <ctype.h>
7191 #include <stdlib.h>
7192 #if ((' ' & 0x0FF) == 0x020)
7193 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7194 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7195 #else
7196 # define ISLOWER(c) \
7197                    (('a' <= (c) && (c) <= 'i') \
7198                      || ('j' <= (c) && (c) <= 'r') \
7199                      || ('s' <= (c) && (c) <= 'z'))
7200 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7201 #endif
7202
7203 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7204 int
7205 main ()
7206 {
7207   int i;
7208   for (i = 0; i < 256; i++)
7209     if (XOR (islower (i), ISLOWER (i))
7210         || toupper (i) != TOUPPER (i))
7211       return 2;
7212   return 0;
7213 }
7214 _ACEOF
7215 if ac_fn_c_try_run "$LINENO"; then :
7216
7217 else
7218   ac_cv_header_stdc=no
7219 fi
7220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7221   conftest.$ac_objext conftest.beam conftest.$ac_ext
7222 fi
7223
7224 fi
7225 fi
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7227 $as_echo "$ac_cv_header_stdc" >&6; }
7228 if test $ac_cv_header_stdc = yes; then
7229
7230 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7231
7232 fi
7233
7234 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7235 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7236                   inttypes.h stdint.h unistd.h
7237 do :
7238   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7239 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7240 "
7241 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7242   cat >>confdefs.h <<_ACEOF
7243 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7244 _ACEOF
7245
7246 fi
7247
7248 done
7249
7250
7251 for ac_header in dlfcn.h
7252 do :
7253   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7254 "
7255 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7256   cat >>confdefs.h <<_ACEOF
7257 #define HAVE_DLFCN_H 1
7258 _ACEOF
7259
7260 fi
7261
7262 done
7263
7264
7265
7266
7267
7268 # Set options
7269
7270
7271
7272         enable_dlopen=no
7273
7274
7275   enable_win32_dll=no
7276
7277
7278             # Check whether --enable-shared was given.
7279 if test "${enable_shared+set}" = set; then :
7280   enableval=$enable_shared; p=${PACKAGE-default}
7281     case $enableval in
7282     yes) enable_shared=yes ;;
7283     no) enable_shared=no ;;
7284     *)
7285       enable_shared=no
7286       # Look at the argument we got.  We use all the common list separators.
7287       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7288       for pkg in $enableval; do
7289         IFS="$lt_save_ifs"
7290         if test "X$pkg" = "X$p"; then
7291           enable_shared=yes
7292         fi
7293       done
7294       IFS="$lt_save_ifs"
7295       ;;
7296     esac
7297 else
7298   enable_shared=yes
7299 fi
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309   # Check whether --enable-static was given.
7310 if test "${enable_static+set}" = set; then :
7311   enableval=$enable_static; p=${PACKAGE-default}
7312     case $enableval in
7313     yes) enable_static=yes ;;
7314     no) enable_static=no ;;
7315     *)
7316      enable_static=no
7317       # Look at the argument we got.  We use all the common list separators.
7318       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7319       for pkg in $enableval; do
7320         IFS="$lt_save_ifs"
7321         if test "X$pkg" = "X$p"; then
7322           enable_static=yes
7323         fi
7324       done
7325       IFS="$lt_save_ifs"
7326       ;;
7327     esac
7328 else
7329   enable_static=yes
7330 fi
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341 # Check whether --with-pic was given.
7342 if test "${with_pic+set}" = set; then :
7343   withval=$with_pic; lt_p=${PACKAGE-default}
7344     case $withval in
7345     yes|no) pic_mode=$withval ;;
7346     *)
7347       pic_mode=default
7348       # Look at the argument we got.  We use all the common list separators.
7349       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7350       for lt_pkg in $withval; do
7351         IFS="$lt_save_ifs"
7352         if test "X$lt_pkg" = "X$lt_p"; then
7353           pic_mode=yes
7354         fi
7355       done
7356       IFS="$lt_save_ifs"
7357       ;;
7358     esac
7359 else
7360   pic_mode=default
7361 fi
7362
7363
7364 test -z "$pic_mode" && pic_mode=default
7365
7366
7367
7368
7369
7370
7371
7372   # Check whether --enable-fast-install was given.
7373 if test "${enable_fast_install+set}" = set; then :
7374   enableval=$enable_fast_install; p=${PACKAGE-default}
7375     case $enableval in
7376     yes) enable_fast_install=yes ;;
7377     no) enable_fast_install=no ;;
7378     *)
7379       enable_fast_install=no
7380       # Look at the argument we got.  We use all the common list separators.
7381       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7382       for pkg in $enableval; do
7383         IFS="$lt_save_ifs"
7384         if test "X$pkg" = "X$p"; then
7385           enable_fast_install=yes
7386         fi
7387       done
7388       IFS="$lt_save_ifs"
7389       ;;
7390     esac
7391 else
7392   enable_fast_install=yes
7393 fi
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405 # This can be used to rebuild libtool when needed
7406 LIBTOOL_DEPS="$ltmain"
7407
7408 # Always use our own libtool.
7409 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440 test -z "$LN_S" && LN_S="ln -s"
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455 if test -n "${ZSH_VERSION+set}" ; then
7456    setopt NO_GLOB_SUBST
7457 fi
7458
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7460 $as_echo_n "checking for objdir... " >&6; }
7461 if ${lt_cv_objdir+:} false; then :
7462   $as_echo_n "(cached) " >&6
7463 else
7464   rm -f .libs 2>/dev/null
7465 mkdir .libs 2>/dev/null
7466 if test -d .libs; then
7467   lt_cv_objdir=.libs
7468 else
7469   # MS-DOS does not allow filenames that begin with a dot.
7470   lt_cv_objdir=_libs
7471 fi
7472 rmdir .libs 2>/dev/null
7473 fi
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7475 $as_echo "$lt_cv_objdir" >&6; }
7476 objdir=$lt_cv_objdir
7477
7478
7479
7480
7481
7482 cat >>confdefs.h <<_ACEOF
7483 #define LT_OBJDIR "$lt_cv_objdir/"
7484 _ACEOF
7485
7486
7487
7488
7489 case $host_os in
7490 aix3*)
7491   # AIX sometimes has problems with the GCC collect2 program.  For some
7492   # reason, if we set the COLLECT_NAMES environment variable, the problems
7493   # vanish in a puff of smoke.
7494   if test "X${COLLECT_NAMES+set}" != Xset; then
7495     COLLECT_NAMES=
7496     export COLLECT_NAMES
7497   fi
7498   ;;
7499 esac
7500
7501 # Global variables:
7502 ofile=libtool
7503 can_build_shared=yes
7504
7505 # All known linkers require a `.a' archive for static linking (except MSVC,
7506 # which needs '.lib').
7507 libext=a
7508
7509 with_gnu_ld="$lt_cv_prog_gnu_ld"
7510
7511 old_CC="$CC"
7512 old_CFLAGS="$CFLAGS"
7513
7514 # Set sane defaults for various variables
7515 test -z "$CC" && CC=cc
7516 test -z "$LTCC" && LTCC=$CC
7517 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7518 test -z "$LD" && LD=ld
7519 test -z "$ac_objext" && ac_objext=o
7520
7521 for cc_temp in $compiler""; do
7522   case $cc_temp in
7523     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7524     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7525     \-*) ;;
7526     *) break;;
7527   esac
7528 done
7529 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7530
7531
7532 # Only perform the check for file, if the check method requires it
7533 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7534 case $deplibs_check_method in
7535 file_magic*)
7536   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7537     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7538 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7539 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7540   $as_echo_n "(cached) " >&6
7541 else
7542   case $MAGIC_CMD in
7543 [\\/*] |  ?:[\\/]*)
7544   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7545   ;;
7546 *)
7547   lt_save_MAGIC_CMD="$MAGIC_CMD"
7548   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7549   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7550   for ac_dir in $ac_dummy; do
7551     IFS="$lt_save_ifs"
7552     test -z "$ac_dir" && ac_dir=.
7553     if test -f $ac_dir/${ac_tool_prefix}file; then
7554       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7555       if test -n "$file_magic_test_file"; then
7556         case $deplibs_check_method in
7557         "file_magic "*)
7558           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7559           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7560           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7561             $EGREP "$file_magic_regex" > /dev/null; then
7562             :
7563           else
7564             cat <<_LT_EOF 1>&2
7565
7566 *** Warning: the command libtool uses to detect shared libraries,
7567 *** $file_magic_cmd, produces output that libtool cannot recognize.
7568 *** The result is that libtool may fail to recognize shared libraries
7569 *** as such.  This will affect the creation of libtool libraries that
7570 *** depend on shared libraries, but programs linked with such libtool
7571 *** libraries will work regardless of this problem.  Nevertheless, you
7572 *** may want to report the problem to your system manager and/or to
7573 *** bug-libtool@gnu.org
7574
7575 _LT_EOF
7576           fi ;;
7577         esac
7578       fi
7579       break
7580     fi
7581   done
7582   IFS="$lt_save_ifs"
7583   MAGIC_CMD="$lt_save_MAGIC_CMD"
7584   ;;
7585 esac
7586 fi
7587
7588 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7589 if test -n "$MAGIC_CMD"; then
7590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7591 $as_echo "$MAGIC_CMD" >&6; }
7592 else
7593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594 $as_echo "no" >&6; }
7595 fi
7596
7597
7598
7599
7600
7601 if test -z "$lt_cv_path_MAGIC_CMD"; then
7602   if test -n "$ac_tool_prefix"; then
7603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7604 $as_echo_n "checking for file... " >&6; }
7605 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7606   $as_echo_n "(cached) " >&6
7607 else
7608   case $MAGIC_CMD in
7609 [\\/*] |  ?:[\\/]*)
7610   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7611   ;;
7612 *)
7613   lt_save_MAGIC_CMD="$MAGIC_CMD"
7614   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7615   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7616   for ac_dir in $ac_dummy; do
7617     IFS="$lt_save_ifs"
7618     test -z "$ac_dir" && ac_dir=.
7619     if test -f $ac_dir/file; then
7620       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7621       if test -n "$file_magic_test_file"; then
7622         case $deplibs_check_method in
7623         "file_magic "*)
7624           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7625           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7626           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7627             $EGREP "$file_magic_regex" > /dev/null; then
7628             :
7629           else
7630             cat <<_LT_EOF 1>&2
7631
7632 *** Warning: the command libtool uses to detect shared libraries,
7633 *** $file_magic_cmd, produces output that libtool cannot recognize.
7634 *** The result is that libtool may fail to recognize shared libraries
7635 *** as such.  This will affect the creation of libtool libraries that
7636 *** depend on shared libraries, but programs linked with such libtool
7637 *** libraries will work regardless of this problem.  Nevertheless, you
7638 *** may want to report the problem to your system manager and/or to
7639 *** bug-libtool@gnu.org
7640
7641 _LT_EOF
7642           fi ;;
7643         esac
7644       fi
7645       break
7646     fi
7647   done
7648   IFS="$lt_save_ifs"
7649   MAGIC_CMD="$lt_save_MAGIC_CMD"
7650   ;;
7651 esac
7652 fi
7653
7654 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7655 if test -n "$MAGIC_CMD"; then
7656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7657 $as_echo "$MAGIC_CMD" >&6; }
7658 else
7659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660 $as_echo "no" >&6; }
7661 fi
7662
7663
7664   else
7665     MAGIC_CMD=:
7666   fi
7667 fi
7668
7669   fi
7670   ;;
7671 esac
7672
7673 # Use C for the default configuration in the libtool script
7674
7675 lt_save_CC="$CC"
7676 ac_ext=c
7677 ac_cpp='$CPP $CPPFLAGS'
7678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7681
7682
7683 # Source file extension for C test sources.
7684 ac_ext=c
7685
7686 # Object file extension for compiled C test sources.
7687 objext=o
7688 objext=$objext
7689
7690 # Code to be used in simple compile tests
7691 lt_simple_compile_test_code="int some_variable = 0;"
7692
7693 # Code to be used in simple link tests
7694 lt_simple_link_test_code='int main(){return(0);}'
7695
7696
7697
7698
7699
7700
7701
7702 # If no C compiler was specified, use CC.
7703 LTCC=${LTCC-"$CC"}
7704
7705 # If no C compiler flags were specified, use CFLAGS.
7706 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7707
7708 # Allow CC to be a program name with arguments.
7709 compiler=$CC
7710
7711 # Save the default compiler, since it gets overwritten when the other
7712 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7713 compiler_DEFAULT=$CC
7714
7715 # save warnings/boilerplate of simple test code
7716 ac_outfile=conftest.$ac_objext
7717 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7718 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7719 _lt_compiler_boilerplate=`cat conftest.err`
7720 $RM conftest*
7721
7722 ac_outfile=conftest.$ac_objext
7723 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7724 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7725 _lt_linker_boilerplate=`cat conftest.err`
7726 $RM -r conftest*
7727
7728
7729 ## CAVEAT EMPTOR:
7730 ## There is no encapsulation within the following macros, do not change
7731 ## the running order or otherwise move them around unless you know exactly
7732 ## what you are doing...
7733 if test -n "$compiler"; then
7734
7735 lt_prog_compiler_no_builtin_flag=
7736
7737 if test "$GCC" = yes; then
7738   case $cc_basename in
7739   nvcc*)
7740     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7741   *)
7742     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7743   esac
7744
7745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7746 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7747 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7748   $as_echo_n "(cached) " >&6
7749 else
7750   lt_cv_prog_compiler_rtti_exceptions=no
7751    ac_outfile=conftest.$ac_objext
7752    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7753    lt_compiler_flag="-fno-rtti -fno-exceptions"
7754    # Insert the option either (1) after the last *FLAGS variable, or
7755    # (2) before a word containing "conftest.", or (3) at the end.
7756    # Note that $ac_compile itself does not contain backslashes and begins
7757    # with a dollar sign (not a hyphen), so the echo should work correctly.
7758    # The option is referenced via a variable to avoid confusing sed.
7759    lt_compile=`echo "$ac_compile" | $SED \
7760    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7761    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7762    -e 's:$: $lt_compiler_flag:'`
7763    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7764    (eval "$lt_compile" 2>conftest.err)
7765    ac_status=$?
7766    cat conftest.err >&5
7767    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768    if (exit $ac_status) && test -s "$ac_outfile"; then
7769      # The compiler can only warn and ignore the option if not recognized
7770      # So say no if there are warnings other than the usual output.
7771      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7772      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7773      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7774        lt_cv_prog_compiler_rtti_exceptions=yes
7775      fi
7776    fi
7777    $RM conftest*
7778
7779 fi
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7781 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7782
7783 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7784     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7785 else
7786     :
7787 fi
7788
7789 fi
7790
7791
7792
7793
7794
7795
7796   lt_prog_compiler_wl=
7797 lt_prog_compiler_pic=
7798 lt_prog_compiler_static=
7799
7800
7801   if test "$GCC" = yes; then
7802     lt_prog_compiler_wl='-Wl,'
7803     lt_prog_compiler_static='-static'
7804
7805     case $host_os in
7806       aix*)
7807       # All AIX code is PIC.
7808       if test "$host_cpu" = ia64; then
7809         # AIX 5 now supports IA64 processor
7810         lt_prog_compiler_static='-Bstatic'
7811       fi
7812       ;;
7813
7814     amigaos*)
7815       case $host_cpu in
7816       powerpc)
7817             # see comment about AmigaOS4 .so support
7818             lt_prog_compiler_pic='-fPIC'
7819         ;;
7820       m68k)
7821             # FIXME: we need at least 68020 code to build shared libraries, but
7822             # adding the `-m68020' flag to GCC prevents building anything better,
7823             # like `-m68040'.
7824             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7825         ;;
7826       esac
7827       ;;
7828
7829     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7830       # PIC is the default for these OSes.
7831       ;;
7832
7833     mingw* | cygwin* | pw32* | os2* | cegcc*)
7834       # This hack is so that the source file can tell whether it is being
7835       # built for inclusion in a dll (and should export symbols for example).
7836       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7837       # (--disable-auto-import) libraries
7838       lt_prog_compiler_pic='-DDLL_EXPORT'
7839       ;;
7840
7841     darwin* | rhapsody*)
7842       # PIC is the default on this platform
7843       # Common symbols not allowed in MH_DYLIB files
7844       lt_prog_compiler_pic='-fno-common'
7845       ;;
7846
7847     haiku*)
7848       # PIC is the default for Haiku.
7849       # The "-static" flag exists, but is broken.
7850       lt_prog_compiler_static=
7851       ;;
7852
7853     hpux*)
7854       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7855       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7856       # sets the default TLS model and affects inlining.
7857       case $host_cpu in
7858       hppa*64*)
7859         # +Z the default
7860         ;;
7861       *)
7862         lt_prog_compiler_pic='-fPIC'
7863         ;;
7864       esac
7865       ;;
7866
7867     interix[3-9]*)
7868       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7869       # Instead, we relocate shared libraries at runtime.
7870       ;;
7871
7872     msdosdjgpp*)
7873       # Just because we use GCC doesn't mean we suddenly get shared libraries
7874       # on systems that don't support them.
7875       lt_prog_compiler_can_build_shared=no
7876       enable_shared=no
7877       ;;
7878
7879     *nto* | *qnx*)
7880       # QNX uses GNU C++, but need to define -shared option too, otherwise
7881       # it will coredump.
7882       lt_prog_compiler_pic='-fPIC -shared'
7883       ;;
7884
7885     sysv4*MP*)
7886       if test -d /usr/nec; then
7887         lt_prog_compiler_pic=-Kconform_pic
7888       fi
7889       ;;
7890
7891     *)
7892       lt_prog_compiler_pic='-fPIC'
7893       ;;
7894     esac
7895
7896     case $cc_basename in
7897     nvcc*) # Cuda Compiler Driver 2.2
7898       lt_prog_compiler_wl='-Xlinker '
7899       if test -n "$lt_prog_compiler_pic"; then
7900         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7901       fi
7902       ;;
7903     esac
7904   else
7905     # PORTME Check for flag to pass linker flags through the system compiler.
7906     case $host_os in
7907     aix*)
7908       lt_prog_compiler_wl='-Wl,'
7909       if test "$host_cpu" = ia64; then
7910         # AIX 5 now supports IA64 processor
7911         lt_prog_compiler_static='-Bstatic'
7912       else
7913         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7914       fi
7915       ;;
7916
7917     mingw* | cygwin* | pw32* | os2* | cegcc*)
7918       # This hack is so that the source file can tell whether it is being
7919       # built for inclusion in a dll (and should export symbols for example).
7920       lt_prog_compiler_pic='-DDLL_EXPORT'
7921       ;;
7922
7923     hpux9* | hpux10* | hpux11*)
7924       lt_prog_compiler_wl='-Wl,'
7925       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7926       # not for PA HP-UX.
7927       case $host_cpu in
7928       hppa*64*|ia64*)
7929         # +Z the default
7930         ;;
7931       *)
7932         lt_prog_compiler_pic='+Z'
7933         ;;
7934       esac
7935       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7936       lt_prog_compiler_static='${wl}-a ${wl}archive'
7937       ;;
7938
7939     irix5* | irix6* | nonstopux*)
7940       lt_prog_compiler_wl='-Wl,'
7941       # PIC (with -KPIC) is the default.
7942       lt_prog_compiler_static='-non_shared'
7943       ;;
7944
7945     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7946       case $cc_basename in
7947       # old Intel for x86_64 which still supported -KPIC.
7948       ecc*)
7949         lt_prog_compiler_wl='-Wl,'
7950         lt_prog_compiler_pic='-KPIC'
7951         lt_prog_compiler_static='-static'
7952         ;;
7953       # icc used to be incompatible with GCC.
7954       # ICC 10 doesn't accept -KPIC any more.
7955       icc* | ifort*)
7956         lt_prog_compiler_wl='-Wl,'
7957         lt_prog_compiler_pic='-fPIC'
7958         lt_prog_compiler_static='-static'
7959         ;;
7960       # Lahey Fortran 8.1.
7961       lf95*)
7962         lt_prog_compiler_wl='-Wl,'
7963         lt_prog_compiler_pic='--shared'
7964         lt_prog_compiler_static='--static'
7965         ;;
7966       nagfor*)
7967         # NAG Fortran compiler
7968         lt_prog_compiler_wl='-Wl,-Wl,,'
7969         lt_prog_compiler_pic='-PIC'
7970         lt_prog_compiler_static='-Bstatic'
7971         ;;
7972       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7973         # Portland Group compilers (*not* the Pentium gcc compiler,
7974         # which looks to be a dead project)
7975         lt_prog_compiler_wl='-Wl,'
7976         lt_prog_compiler_pic='-fpic'
7977         lt_prog_compiler_static='-Bstatic'
7978         ;;
7979       ccc*)
7980         lt_prog_compiler_wl='-Wl,'
7981         # All Alpha code is PIC.
7982         lt_prog_compiler_static='-non_shared'
7983         ;;
7984       xl* | bgxl* | bgf* | mpixl*)
7985         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7986         lt_prog_compiler_wl='-Wl,'
7987         lt_prog_compiler_pic='-qpic'
7988         lt_prog_compiler_static='-qstaticlink'
7989         ;;
7990       *)
7991         case `$CC -V 2>&1 | sed 5q` in
7992         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7993           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7994           lt_prog_compiler_pic='-KPIC'
7995           lt_prog_compiler_static='-Bstatic'
7996           lt_prog_compiler_wl=''
7997           ;;
7998         *Sun\ F* | *Sun*Fortran*)
7999           lt_prog_compiler_pic='-KPIC'
8000           lt_prog_compiler_static='-Bstatic'
8001           lt_prog_compiler_wl='-Qoption ld '
8002           ;;
8003         *Sun\ C*)
8004           # Sun C 5.9
8005           lt_prog_compiler_pic='-KPIC'
8006           lt_prog_compiler_static='-Bstatic'
8007           lt_prog_compiler_wl='-Wl,'
8008           ;;
8009         *Intel*\ [CF]*Compiler*)
8010           lt_prog_compiler_wl='-Wl,'
8011           lt_prog_compiler_pic='-fPIC'
8012           lt_prog_compiler_static='-static'
8013           ;;
8014         *Portland\ Group*)
8015           lt_prog_compiler_wl='-Wl,'
8016           lt_prog_compiler_pic='-fpic'
8017           lt_prog_compiler_static='-Bstatic'
8018           ;;
8019         esac
8020         ;;
8021       esac
8022       ;;
8023
8024     newsos6)
8025       lt_prog_compiler_pic='-KPIC'
8026       lt_prog_compiler_static='-Bstatic'
8027       ;;
8028
8029     *nto* | *qnx*)
8030       # QNX uses GNU C++, but need to define -shared option too, otherwise
8031       # it will coredump.
8032       lt_prog_compiler_pic='-fPIC -shared'
8033       ;;
8034
8035     osf3* | osf4* | osf5*)
8036       lt_prog_compiler_wl='-Wl,'
8037       # All OSF/1 code is PIC.
8038       lt_prog_compiler_static='-non_shared'
8039       ;;
8040
8041     rdos*)
8042       lt_prog_compiler_static='-non_shared'
8043       ;;
8044
8045     solaris*)
8046       lt_prog_compiler_pic='-KPIC'
8047       lt_prog_compiler_static='-Bstatic'
8048       case $cc_basename in
8049       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8050         lt_prog_compiler_wl='-Qoption ld ';;
8051       *)
8052         lt_prog_compiler_wl='-Wl,';;
8053       esac
8054       ;;
8055
8056     sunos4*)
8057       lt_prog_compiler_wl='-Qoption ld '
8058       lt_prog_compiler_pic='-PIC'
8059       lt_prog_compiler_static='-Bstatic'
8060       ;;
8061
8062     sysv4 | sysv4.2uw2* | sysv4.3*)
8063       lt_prog_compiler_wl='-Wl,'
8064       lt_prog_compiler_pic='-KPIC'
8065       lt_prog_compiler_static='-Bstatic'
8066       ;;
8067
8068     sysv4*MP*)
8069       if test -d /usr/nec ;then
8070         lt_prog_compiler_pic='-Kconform_pic'
8071         lt_prog_compiler_static='-Bstatic'
8072       fi
8073       ;;
8074
8075     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8076       lt_prog_compiler_wl='-Wl,'
8077       lt_prog_compiler_pic='-KPIC'
8078       lt_prog_compiler_static='-Bstatic'
8079       ;;
8080
8081     unicos*)
8082       lt_prog_compiler_wl='-Wl,'
8083       lt_prog_compiler_can_build_shared=no
8084       ;;
8085
8086     uts4*)
8087       lt_prog_compiler_pic='-pic'
8088       lt_prog_compiler_static='-Bstatic'
8089       ;;
8090
8091     *)
8092       lt_prog_compiler_can_build_shared=no
8093       ;;
8094     esac
8095   fi
8096
8097 case $host_os in
8098   # For platforms which do not support PIC, -DPIC is meaningless:
8099   *djgpp*)
8100     lt_prog_compiler_pic=
8101     ;;
8102   *)
8103     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8104     ;;
8105 esac
8106
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8108 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8109 if ${lt_cv_prog_compiler_pic+:} false; then :
8110   $as_echo_n "(cached) " >&6
8111 else
8112   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8113 fi
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8115 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8116 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8117
8118 #
8119 # Check to make sure the PIC flag actually works.
8120 #
8121 if test -n "$lt_prog_compiler_pic"; then
8122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8123 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8124 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8125   $as_echo_n "(cached) " >&6
8126 else
8127   lt_cv_prog_compiler_pic_works=no
8128    ac_outfile=conftest.$ac_objext
8129    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8130    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8131    # Insert the option either (1) after the last *FLAGS variable, or
8132    # (2) before a word containing "conftest.", or (3) at the end.
8133    # Note that $ac_compile itself does not contain backslashes and begins
8134    # with a dollar sign (not a hyphen), so the echo should work correctly.
8135    # The option is referenced via a variable to avoid confusing sed.
8136    lt_compile=`echo "$ac_compile" | $SED \
8137    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8138    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8139    -e 's:$: $lt_compiler_flag:'`
8140    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8141    (eval "$lt_compile" 2>conftest.err)
8142    ac_status=$?
8143    cat conftest.err >&5
8144    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145    if (exit $ac_status) && test -s "$ac_outfile"; then
8146      # The compiler can only warn and ignore the option if not recognized
8147      # So say no if there are warnings other than the usual output.
8148      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8149      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8150      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8151        lt_cv_prog_compiler_pic_works=yes
8152      fi
8153    fi
8154    $RM conftest*
8155
8156 fi
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8158 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8159
8160 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8161     case $lt_prog_compiler_pic in
8162      "" | " "*) ;;
8163      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8164      esac
8165 else
8166     lt_prog_compiler_pic=
8167      lt_prog_compiler_can_build_shared=no
8168 fi
8169
8170 fi
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182 #
8183 # Check to make sure the static flag actually works.
8184 #
8185 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8187 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8188 if ${lt_cv_prog_compiler_static_works+:} false; then :
8189   $as_echo_n "(cached) " >&6
8190 else
8191   lt_cv_prog_compiler_static_works=no
8192    save_LDFLAGS="$LDFLAGS"
8193    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8194    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8195    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8196      # The linker can only warn and ignore the option if not recognized
8197      # So say no if there are warnings
8198      if test -s conftest.err; then
8199        # Append any errors to the config.log.
8200        cat conftest.err 1>&5
8201        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8202        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8203        if diff conftest.exp conftest.er2 >/dev/null; then
8204          lt_cv_prog_compiler_static_works=yes
8205        fi
8206      else
8207        lt_cv_prog_compiler_static_works=yes
8208      fi
8209    fi
8210    $RM -r conftest*
8211    LDFLAGS="$save_LDFLAGS"
8212
8213 fi
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8215 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8216
8217 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8218     :
8219 else
8220     lt_prog_compiler_static=
8221 fi
8222
8223
8224
8225
8226
8227
8228
8229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8230 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8231 if ${lt_cv_prog_compiler_c_o+:} false; then :
8232   $as_echo_n "(cached) " >&6
8233 else
8234   lt_cv_prog_compiler_c_o=no
8235    $RM -r conftest 2>/dev/null
8236    mkdir conftest
8237    cd conftest
8238    mkdir out
8239    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8240
8241    lt_compiler_flag="-o out/conftest2.$ac_objext"
8242    # Insert the option either (1) after the last *FLAGS variable, or
8243    # (2) before a word containing "conftest.", or (3) at the end.
8244    # Note that $ac_compile itself does not contain backslashes and begins
8245    # with a dollar sign (not a hyphen), so the echo should work correctly.
8246    lt_compile=`echo "$ac_compile" | $SED \
8247    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8248    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8249    -e 's:$: $lt_compiler_flag:'`
8250    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8251    (eval "$lt_compile" 2>out/conftest.err)
8252    ac_status=$?
8253    cat out/conftest.err >&5
8254    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8256    then
8257      # The compiler can only warn and ignore the option if not recognized
8258      # So say no if there are warnings
8259      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8260      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8261      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8262        lt_cv_prog_compiler_c_o=yes
8263      fi
8264    fi
8265    chmod u+w . 2>&5
8266    $RM conftest*
8267    # SGI C++ compiler will create directory out/ii_files/ for
8268    # template instantiation
8269    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8270    $RM out/* && rmdir out
8271    cd ..
8272    $RM -r conftest
8273    $RM conftest*
8274
8275 fi
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8277 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8278
8279
8280
8281
8282
8283
8284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8285 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8286 if ${lt_cv_prog_compiler_c_o+:} false; then :
8287   $as_echo_n "(cached) " >&6
8288 else
8289   lt_cv_prog_compiler_c_o=no
8290    $RM -r conftest 2>/dev/null
8291    mkdir conftest
8292    cd conftest
8293    mkdir out
8294    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8295
8296    lt_compiler_flag="-o out/conftest2.$ac_objext"
8297    # Insert the option either (1) after the last *FLAGS variable, or
8298    # (2) before a word containing "conftest.", or (3) at the end.
8299    # Note that $ac_compile itself does not contain backslashes and begins
8300    # with a dollar sign (not a hyphen), so the echo should work correctly.
8301    lt_compile=`echo "$ac_compile" | $SED \
8302    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8303    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8304    -e 's:$: $lt_compiler_flag:'`
8305    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8306    (eval "$lt_compile" 2>out/conftest.err)
8307    ac_status=$?
8308    cat out/conftest.err >&5
8309    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8311    then
8312      # The compiler can only warn and ignore the option if not recognized
8313      # So say no if there are warnings
8314      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8315      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8316      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8317        lt_cv_prog_compiler_c_o=yes
8318      fi
8319    fi
8320    chmod u+w . 2>&5
8321    $RM conftest*
8322    # SGI C++ compiler will create directory out/ii_files/ for
8323    # template instantiation
8324    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8325    $RM out/* && rmdir out
8326    cd ..
8327    $RM -r conftest
8328    $RM conftest*
8329
8330 fi
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8332 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8333
8334
8335
8336
8337 hard_links="nottested"
8338 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8339   # do not overwrite the value of need_locks provided by the user
8340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8341 $as_echo_n "checking if we can lock with hard links... " >&6; }
8342   hard_links=yes
8343   $RM conftest*
8344   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8345   touch conftest.a
8346   ln conftest.a conftest.b 2>&5 || hard_links=no
8347   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8349 $as_echo "$hard_links" >&6; }
8350   if test "$hard_links" = no; then
8351     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8352 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8353     need_locks=warn
8354   fi
8355 else
8356   need_locks=no
8357 fi
8358
8359
8360
8361
8362
8363
8364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8365 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8366
8367   runpath_var=
8368   allow_undefined_flag=
8369   always_export_symbols=no
8370   archive_cmds=
8371   archive_expsym_cmds=
8372   compiler_needs_object=no
8373   enable_shared_with_static_runtimes=no
8374   export_dynamic_flag_spec=
8375   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8376   hardcode_automatic=no
8377   hardcode_direct=no
8378   hardcode_direct_absolute=no
8379   hardcode_libdir_flag_spec=
8380   hardcode_libdir_separator=
8381   hardcode_minus_L=no
8382   hardcode_shlibpath_var=unsupported
8383   inherit_rpath=no
8384   link_all_deplibs=unknown
8385   module_cmds=
8386   module_expsym_cmds=
8387   old_archive_from_new_cmds=
8388   old_archive_from_expsyms_cmds=
8389   thread_safe_flag_spec=
8390   whole_archive_flag_spec=
8391   # include_expsyms should be a list of space-separated symbols to be *always*
8392   # included in the symbol list
8393   include_expsyms=
8394   # exclude_expsyms can be an extended regexp of symbols to exclude
8395   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8396   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8397   # as well as any symbol that contains `d'.
8398   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8399   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8400   # platforms (ab)use it in PIC code, but their linkers get confused if
8401   # the symbol is explicitly referenced.  Since portable code cannot
8402   # rely on this symbol name, it's probably fine to never include it in
8403   # preloaded symbol tables.
8404   # Exclude shared library initialization/finalization symbols.
8405   extract_expsyms_cmds=
8406
8407   case $host_os in
8408   cygwin* | mingw* | pw32* | cegcc*)
8409     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8410     # When not using gcc, we currently assume that we are using
8411     # Microsoft Visual C++.
8412     if test "$GCC" != yes; then
8413       with_gnu_ld=no
8414     fi
8415     ;;
8416   interix*)
8417     # we just hope/assume this is gcc and not c89 (= MSVC++)
8418     with_gnu_ld=yes
8419     ;;
8420   openbsd*)
8421     with_gnu_ld=no
8422     ;;
8423   esac
8424
8425   ld_shlibs=yes
8426
8427   # On some targets, GNU ld is compatible enough with the native linker
8428   # that we're better off using the native interface for both.
8429   lt_use_gnu_ld_interface=no
8430   if test "$with_gnu_ld" = yes; then
8431     case $host_os in
8432       aix*)
8433         # The AIX port of GNU ld has always aspired to compatibility
8434         # with the native linker.  However, as the warning in the GNU ld
8435         # block says, versions before 2.19.5* couldn't really create working
8436         # shared libraries, regardless of the interface used.
8437         case `$LD -v 2>&1` in
8438           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8439           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8440           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8441           *)
8442             lt_use_gnu_ld_interface=yes
8443             ;;
8444         esac
8445         ;;
8446       *)
8447         lt_use_gnu_ld_interface=yes
8448         ;;
8449     esac
8450   fi
8451
8452   if test "$lt_use_gnu_ld_interface" = yes; then
8453     # If archive_cmds runs LD, not CC, wlarc should be empty
8454     wlarc='${wl}'
8455
8456     # Set some defaults for GNU ld with shared library support. These
8457     # are reset later if shared libraries are not supported. Putting them
8458     # here allows them to be overridden if necessary.
8459     runpath_var=LD_RUN_PATH
8460     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8461     export_dynamic_flag_spec='${wl}--export-dynamic'
8462     # ancient GNU ld didn't support --whole-archive et. al.
8463     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8464       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8465     else
8466       whole_archive_flag_spec=
8467     fi
8468     supports_anon_versioning=no
8469     case `$LD -v 2>&1` in
8470       *GNU\ gold*) supports_anon_versioning=yes ;;
8471       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8472       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8473       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8474       *\ 2.11.*) ;; # other 2.11 versions
8475       *) supports_anon_versioning=yes ;;
8476     esac
8477
8478     # See if GNU ld supports shared libraries.
8479     case $host_os in
8480     aix[3-9]*)
8481       # On AIX/PPC, the GNU linker is very broken
8482       if test "$host_cpu" != ia64; then
8483         ld_shlibs=no
8484         cat <<_LT_EOF 1>&2
8485
8486 *** Warning: the GNU linker, at least up to release 2.19, is reported
8487 *** to be unable to reliably create shared libraries on AIX.
8488 *** Therefore, libtool is disabling shared libraries support.  If you
8489 *** really care for shared libraries, you may want to install binutils
8490 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8491 *** You will then need to restart the configuration process.
8492
8493 _LT_EOF
8494       fi
8495       ;;
8496
8497     amigaos*)
8498       case $host_cpu in
8499       powerpc)
8500             # see comment about AmigaOS4 .so support
8501             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8502             archive_expsym_cmds=''
8503         ;;
8504       m68k)
8505             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)'
8506             hardcode_libdir_flag_spec='-L$libdir'
8507             hardcode_minus_L=yes
8508         ;;
8509       esac
8510       ;;
8511
8512     beos*)
8513       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8514         allow_undefined_flag=unsupported
8515         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8516         # support --undefined.  This deserves some investigation.  FIXME
8517         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8518       else
8519         ld_shlibs=no
8520       fi
8521       ;;
8522
8523     cygwin* | mingw* | pw32* | cegcc*)
8524       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8525       # as there is no search path for DLLs.
8526       hardcode_libdir_flag_spec='-L$libdir'
8527       export_dynamic_flag_spec='${wl}--export-all-symbols'
8528       allow_undefined_flag=unsupported
8529       always_export_symbols=no
8530       enable_shared_with_static_runtimes=yes
8531       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8532       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8533
8534       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8535         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8536         # If the export-symbols file already is a .def file (1st line
8537         # is EXPORTS), use it as is; otherwise, prepend...
8538         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8539           cp $export_symbols $output_objdir/$soname.def;
8540         else
8541           echo EXPORTS > $output_objdir/$soname.def;
8542           cat $export_symbols >> $output_objdir/$soname.def;
8543         fi~
8544         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8545       else
8546         ld_shlibs=no
8547       fi
8548       ;;
8549
8550     haiku*)
8551       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8552       link_all_deplibs=yes
8553       ;;
8554
8555     interix[3-9]*)
8556       hardcode_direct=no
8557       hardcode_shlibpath_var=no
8558       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8559       export_dynamic_flag_spec='${wl}-E'
8560       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8561       # Instead, shared libraries are loaded at an image base (0x10000000 by
8562       # default) and relocated if they conflict, which is a slow very memory
8563       # consuming and fragmenting process.  To avoid this, we pick a random,
8564       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8565       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8566       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8567       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'
8568       ;;
8569
8570     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8571       tmp_diet=no
8572       if test "$host_os" = linux-dietlibc; then
8573         case $cc_basename in
8574           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8575         esac
8576       fi
8577       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8578          && test "$tmp_diet" = no
8579       then
8580         tmp_addflag=' $pic_flag'
8581         tmp_sharedflag='-shared'
8582         case $cc_basename,$host_cpu in
8583         pgcc*)                          # Portland Group C compiler
8584           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'
8585           tmp_addflag=' $pic_flag'
8586           ;;
8587         pgf77* | pgf90* | pgf95* | pgfortran*)
8588                                         # Portland Group f77 and f90 compilers
8589           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'
8590           tmp_addflag=' $pic_flag -Mnomain' ;;
8591         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8592           tmp_addflag=' -i_dynamic' ;;
8593         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8594           tmp_addflag=' -i_dynamic -nofor_main' ;;
8595         ifc* | ifort*)                  # Intel Fortran compiler
8596           tmp_addflag=' -nofor_main' ;;
8597         lf95*)                          # Lahey Fortran 8.1
8598           whole_archive_flag_spec=
8599           tmp_sharedflag='--shared' ;;
8600         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8601           tmp_sharedflag='-qmkshrobj'
8602           tmp_addflag= ;;
8603         nvcc*)  # Cuda Compiler Driver 2.2
8604           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'
8605           compiler_needs_object=yes
8606           ;;
8607         esac
8608         case `$CC -V 2>&1 | sed 5q` in
8609         *Sun\ C*)                       # Sun C 5.9
8610           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'
8611           compiler_needs_object=yes
8612           tmp_sharedflag='-G' ;;
8613         *Sun\ F*)                       # Sun Fortran 8.3
8614           tmp_sharedflag='-G' ;;
8615         esac
8616         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8617
8618         if test "x$supports_anon_versioning" = xyes; then
8619           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8620             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8621             echo "local: *; };" >> $output_objdir/$libname.ver~
8622             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8623         fi
8624
8625         case $cc_basename in
8626         xlf* | bgf* | bgxlf* | mpixlf*)
8627           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8628           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8629           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8630           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8631           if test "x$supports_anon_versioning" = xyes; then
8632             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8633               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8634               echo "local: *; };" >> $output_objdir/$libname.ver~
8635               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8636           fi
8637           ;;
8638         esac
8639       else
8640         ld_shlibs=no
8641       fi
8642       ;;
8643
8644     netbsd*)
8645       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8646         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8647         wlarc=
8648       else
8649         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8650         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8651       fi
8652       ;;
8653
8654     solaris*)
8655       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8656         ld_shlibs=no
8657         cat <<_LT_EOF 1>&2
8658
8659 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8660 *** create shared libraries on Solaris systems.  Therefore, libtool
8661 *** is disabling shared libraries support.  We urge you to upgrade GNU
8662 *** binutils to release 2.9.1 or newer.  Another option is to modify
8663 *** your PATH or compiler configuration so that the native linker is
8664 *** used, and then restart.
8665
8666 _LT_EOF
8667       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8668         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8669         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8670       else
8671         ld_shlibs=no
8672       fi
8673       ;;
8674
8675     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8676       case `$LD -v 2>&1` in
8677         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8678         ld_shlibs=no
8679         cat <<_LT_EOF 1>&2
8680
8681 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8682 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8683 *** is disabling shared libraries support.  We urge you to upgrade GNU
8684 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8685 *** your PATH or compiler configuration so that the native linker is
8686 *** used, and then restart.
8687
8688 _LT_EOF
8689         ;;
8690         *)
8691           # For security reasons, it is highly recommended that you always
8692           # use absolute paths for naming shared libraries, and exclude the
8693           # DT_RUNPATH tag from executables and libraries.  But doing so
8694           # requires that you compile everything twice, which is a pain.
8695           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8696             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8697             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8699           else
8700             ld_shlibs=no
8701           fi
8702         ;;
8703       esac
8704       ;;
8705
8706     sunos4*)
8707       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8708       wlarc=
8709       hardcode_direct=yes
8710       hardcode_shlibpath_var=no
8711       ;;
8712
8713     *)
8714       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8715         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8716         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8717       else
8718         ld_shlibs=no
8719       fi
8720       ;;
8721     esac
8722
8723     if test "$ld_shlibs" = no; then
8724       runpath_var=
8725       hardcode_libdir_flag_spec=
8726       export_dynamic_flag_spec=
8727       whole_archive_flag_spec=
8728     fi
8729   else
8730     # PORTME fill in a description of your system's linker (not GNU ld)
8731     case $host_os in
8732     aix3*)
8733       allow_undefined_flag=unsupported
8734       always_export_symbols=yes
8735       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'
8736       # Note: this linker hardcodes the directories in LIBPATH if there
8737       # are no directories specified by -L.
8738       hardcode_minus_L=yes
8739       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8740         # Neither direct hardcoding nor static linking is supported with a
8741         # broken collect2.
8742         hardcode_direct=unsupported
8743       fi
8744       ;;
8745
8746     aix[4-9]*)
8747       if test "$host_cpu" = ia64; then
8748         # On IA64, the linker does run time linking by default, so we don't
8749         # have to do anything special.
8750         aix_use_runtimelinking=no
8751         exp_sym_flag='-Bexport'
8752         no_entry_flag=""
8753       else
8754         # If we're using GNU nm, then we don't want the "-C" option.
8755         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8756         # Also, AIX nm treats weak defined symbols like other global
8757         # defined symbols, whereas GNU nm marks them as "W".
8758         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8759           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'
8760         else
8761           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'
8762         fi
8763         aix_use_runtimelinking=no
8764
8765         # Test if we are trying to use run time linking or normal
8766         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8767         # need to do runtime linking.
8768         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8769           for ld_flag in $LDFLAGS; do
8770           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8771             aix_use_runtimelinking=yes
8772             break
8773           fi
8774           done
8775           ;;
8776         esac
8777
8778         exp_sym_flag='-bexport'
8779         no_entry_flag='-bnoentry'
8780       fi
8781
8782       # When large executables or shared objects are built, AIX ld can
8783       # have problems creating the table of contents.  If linking a library
8784       # or program results in "error TOC overflow" add -mminimal-toc to
8785       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8786       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8787
8788       archive_cmds=''
8789       hardcode_direct=yes
8790       hardcode_direct_absolute=yes
8791       hardcode_libdir_separator=':'
8792       link_all_deplibs=yes
8793       file_list_spec='${wl}-f,'
8794
8795       if test "$GCC" = yes; then
8796         case $host_os in aix4.[012]|aix4.[012].*)
8797         # We only want to do this on AIX 4.2 and lower, the check
8798         # below for broken collect2 doesn't work under 4.3+
8799           collect2name=`${CC} -print-prog-name=collect2`
8800           if test -f "$collect2name" &&
8801            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8802           then
8803           # We have reworked collect2
8804           :
8805           else
8806           # We have old collect2
8807           hardcode_direct=unsupported
8808           # It fails to find uninstalled libraries when the uninstalled
8809           # path is not listed in the libpath.  Setting hardcode_minus_L
8810           # to unsupported forces relinking
8811           hardcode_minus_L=yes
8812           hardcode_libdir_flag_spec='-L$libdir'
8813           hardcode_libdir_separator=
8814           fi
8815           ;;
8816         esac
8817         shared_flag='-shared'
8818         if test "$aix_use_runtimelinking" = yes; then
8819           shared_flag="$shared_flag "'${wl}-G'
8820         fi
8821       else
8822         # not using gcc
8823         if test "$host_cpu" = ia64; then
8824         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8825         # chokes on -Wl,-G. The following line is correct:
8826           shared_flag='-G'
8827         else
8828           if test "$aix_use_runtimelinking" = yes; then
8829             shared_flag='${wl}-G'
8830           else
8831             shared_flag='${wl}-bM:SRE'
8832           fi
8833         fi
8834       fi
8835
8836       export_dynamic_flag_spec='${wl}-bexpall'
8837       # It seems that -bexpall does not export symbols beginning with
8838       # underscore (_), so it is better to generate a list of symbols to export.
8839       always_export_symbols=yes
8840       if test "$aix_use_runtimelinking" = yes; then
8841         # Warning - without using the other runtime loading flags (-brtl),
8842         # -berok will link without error, but may produce a broken library.
8843         allow_undefined_flag='-berok'
8844         # Determine the default libpath from the value encoded in an
8845         # empty executable.
8846         if test "${lt_cv_aix_libpath+set}" = set; then
8847   aix_libpath=$lt_cv_aix_libpath
8848 else
8849   if ${lt_cv_aix_libpath_+:} false; then :
8850   $as_echo_n "(cached) " >&6
8851 else
8852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h.  */
8854
8855 int
8856 main ()
8857 {
8858
8859   ;
8860   return 0;
8861 }
8862 _ACEOF
8863 if ac_fn_c_try_link "$LINENO"; then :
8864
8865   lt_aix_libpath_sed='
8866       /Import File Strings/,/^$/ {
8867           /^0/ {
8868               s/^0  *\([^ ]*\) *$/\1/
8869               p
8870           }
8871       }'
8872   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8873   # Check for a 64-bit object if we didn't find anything.
8874   if test -z "$lt_cv_aix_libpath_"; then
8875     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8876   fi
8877 fi
8878 rm -f core conftest.err conftest.$ac_objext \
8879     conftest$ac_exeext conftest.$ac_ext
8880   if test -z "$lt_cv_aix_libpath_"; then
8881     lt_cv_aix_libpath_="/usr/lib:/lib"
8882   fi
8883
8884 fi
8885
8886   aix_libpath=$lt_cv_aix_libpath_
8887 fi
8888
8889         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8890         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"
8891       else
8892         if test "$host_cpu" = ia64; then
8893           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8894           allow_undefined_flag="-z nodefs"
8895           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"
8896         else
8897          # Determine the default libpath from the value encoded in an
8898          # empty executable.
8899          if test "${lt_cv_aix_libpath+set}" = set; then
8900   aix_libpath=$lt_cv_aix_libpath
8901 else
8902   if ${lt_cv_aix_libpath_+:} false; then :
8903   $as_echo_n "(cached) " >&6
8904 else
8905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8906 /* end confdefs.h.  */
8907
8908 int
8909 main ()
8910 {
8911
8912   ;
8913   return 0;
8914 }
8915 _ACEOF
8916 if ac_fn_c_try_link "$LINENO"; then :
8917
8918   lt_aix_libpath_sed='
8919       /Import File Strings/,/^$/ {
8920           /^0/ {
8921               s/^0  *\([^ ]*\) *$/\1/
8922               p
8923           }
8924       }'
8925   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8926   # Check for a 64-bit object if we didn't find anything.
8927   if test -z "$lt_cv_aix_libpath_"; then
8928     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8929   fi
8930 fi
8931 rm -f core conftest.err conftest.$ac_objext \
8932     conftest$ac_exeext conftest.$ac_ext
8933   if test -z "$lt_cv_aix_libpath_"; then
8934     lt_cv_aix_libpath_="/usr/lib:/lib"
8935   fi
8936
8937 fi
8938
8939   aix_libpath=$lt_cv_aix_libpath_
8940 fi
8941
8942          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8943           # Warning - without using the other run time loading flags,
8944           # -berok will link without error, but may produce a broken library.
8945           no_undefined_flag=' ${wl}-bernotok'
8946           allow_undefined_flag=' ${wl}-berok'
8947           if test "$with_gnu_ld" = yes; then
8948             # We only use this code for GNU lds that support --whole-archive.
8949             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8950           else
8951             # Exported symbols can be pulled into shared objects from archives
8952             whole_archive_flag_spec='$convenience'
8953           fi
8954           archive_cmds_need_lc=yes
8955           # This is similar to how AIX traditionally builds its shared libraries.
8956           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'
8957         fi
8958       fi
8959       ;;
8960
8961     amigaos*)
8962       case $host_cpu in
8963       powerpc)
8964             # see comment about AmigaOS4 .so support
8965             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8966             archive_expsym_cmds=''
8967         ;;
8968       m68k)
8969             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)'
8970             hardcode_libdir_flag_spec='-L$libdir'
8971             hardcode_minus_L=yes
8972         ;;
8973       esac
8974       ;;
8975
8976     bsdi[45]*)
8977       export_dynamic_flag_spec=-rdynamic
8978       ;;
8979
8980     cygwin* | mingw* | pw32* | cegcc*)
8981       # When not using gcc, we currently assume that we are using
8982       # Microsoft Visual C++.
8983       # hardcode_libdir_flag_spec is actually meaningless, as there is
8984       # no search path for DLLs.
8985       case $cc_basename in
8986       cl*)
8987         # Native MSVC
8988         hardcode_libdir_flag_spec=' '
8989         allow_undefined_flag=unsupported
8990         always_export_symbols=yes
8991         file_list_spec='@'
8992         # Tell ltmain to make .lib files, not .a files.
8993         libext=lib
8994         # Tell ltmain to make .dll files, not .so files.
8995         shrext_cmds=".dll"
8996         # FIXME: Setting linknames here is a bad hack.
8997         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8998         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8999             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9000           else
9001             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9002           fi~
9003           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9004           linknames='
9005         # The linker will not automatically build a static lib if we build a DLL.
9006         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9007         enable_shared_with_static_runtimes=yes
9008         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9009         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9010         # Don't use ranlib
9011         old_postinstall_cmds='chmod 644 $oldlib'
9012         postlink_cmds='lt_outputfile="@OUTPUT@"~
9013           lt_tool_outputfile="@TOOL_OUTPUT@"~
9014           case $lt_outputfile in
9015             *.exe|*.EXE) ;;
9016             *)
9017               lt_outputfile="$lt_outputfile.exe"
9018               lt_tool_outputfile="$lt_tool_outputfile.exe"
9019               ;;
9020           esac~
9021           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9022             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9023             $RM "$lt_outputfile.manifest";
9024           fi'
9025         ;;
9026       *)
9027         # Assume MSVC wrapper
9028         hardcode_libdir_flag_spec=' '
9029         allow_undefined_flag=unsupported
9030         # Tell ltmain to make .lib files, not .a files.
9031         libext=lib
9032         # Tell ltmain to make .dll files, not .so files.
9033         shrext_cmds=".dll"
9034         # FIXME: Setting linknames here is a bad hack.
9035         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9036         # The linker will automatically build a .lib file if we build a DLL.
9037         old_archive_from_new_cmds='true'
9038         # FIXME: Should let the user specify the lib program.
9039         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9040         enable_shared_with_static_runtimes=yes
9041         ;;
9042       esac
9043       ;;
9044
9045     darwin* | rhapsody*)
9046
9047
9048   archive_cmds_need_lc=no
9049   hardcode_direct=no
9050   hardcode_automatic=yes
9051   hardcode_shlibpath_var=unsupported
9052   if test "$lt_cv_ld_force_load" = "yes"; then
9053     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\"`'
9054
9055   else
9056     whole_archive_flag_spec=''
9057   fi
9058   link_all_deplibs=yes
9059   allow_undefined_flag="$_lt_dar_allow_undefined"
9060   case $cc_basename in
9061      ifort*) _lt_dar_can_shared=yes ;;
9062      *) _lt_dar_can_shared=$GCC ;;
9063   esac
9064   if test "$_lt_dar_can_shared" = "yes"; then
9065     output_verbose_link_cmd=func_echo_all
9066     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9067     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9068     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}"
9069     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}"
9070
9071   else
9072   ld_shlibs=no
9073   fi
9074
9075       ;;
9076
9077     dgux*)
9078       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9079       hardcode_libdir_flag_spec='-L$libdir'
9080       hardcode_shlibpath_var=no
9081       ;;
9082
9083     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9084     # support.  Future versions do this automatically, but an explicit c++rt0.o
9085     # does not break anything, and helps significantly (at the cost of a little
9086     # extra space).
9087     freebsd2.2*)
9088       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9089       hardcode_libdir_flag_spec='-R$libdir'
9090       hardcode_direct=yes
9091       hardcode_shlibpath_var=no
9092       ;;
9093
9094     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9095     freebsd2.*)
9096       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9097       hardcode_direct=yes
9098       hardcode_minus_L=yes
9099       hardcode_shlibpath_var=no
9100       ;;
9101
9102     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9103     freebsd* | dragonfly*)
9104       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9105       hardcode_libdir_flag_spec='-R$libdir'
9106       hardcode_direct=yes
9107       hardcode_shlibpath_var=no
9108       ;;
9109
9110     hpux9*)
9111       if test "$GCC" = yes; then
9112         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9113       else
9114         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'
9115       fi
9116       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9117       hardcode_libdir_separator=:
9118       hardcode_direct=yes
9119
9120       # hardcode_minus_L: Not really in the search PATH,
9121       # but as the default location of the library.
9122       hardcode_minus_L=yes
9123       export_dynamic_flag_spec='${wl}-E'
9124       ;;
9125
9126     hpux10*)
9127       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9128         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9129       else
9130         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9131       fi
9132       if test "$with_gnu_ld" = no; then
9133         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9134         hardcode_libdir_separator=:
9135         hardcode_direct=yes
9136         hardcode_direct_absolute=yes
9137         export_dynamic_flag_spec='${wl}-E'
9138         # hardcode_minus_L: Not really in the search PATH,
9139         # but as the default location of the library.
9140         hardcode_minus_L=yes
9141       fi
9142       ;;
9143
9144     hpux11*)
9145       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9146         case $host_cpu in
9147         hppa*64*)
9148           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9149           ;;
9150         ia64*)
9151           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9152           ;;
9153         *)
9154           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9155           ;;
9156         esac
9157       else
9158         case $host_cpu in
9159         hppa*64*)
9160           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9161           ;;
9162         ia64*)
9163           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9164           ;;
9165         *)
9166
9167           # Older versions of the 11.00 compiler do not understand -b yet
9168           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9169           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9170 $as_echo_n "checking if $CC understands -b... " >&6; }
9171 if ${lt_cv_prog_compiler__b+:} false; then :
9172   $as_echo_n "(cached) " >&6
9173 else
9174   lt_cv_prog_compiler__b=no
9175    save_LDFLAGS="$LDFLAGS"
9176    LDFLAGS="$LDFLAGS -b"
9177    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9178    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9179      # The linker can only warn and ignore the option if not recognized
9180      # So say no if there are warnings
9181      if test -s conftest.err; then
9182        # Append any errors to the config.log.
9183        cat conftest.err 1>&5
9184        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9185        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9186        if diff conftest.exp conftest.er2 >/dev/null; then
9187          lt_cv_prog_compiler__b=yes
9188        fi
9189      else
9190        lt_cv_prog_compiler__b=yes
9191      fi
9192    fi
9193    $RM -r conftest*
9194    LDFLAGS="$save_LDFLAGS"
9195
9196 fi
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9198 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9199
9200 if test x"$lt_cv_prog_compiler__b" = xyes; then
9201     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9202 else
9203     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9204 fi
9205
9206           ;;
9207         esac
9208       fi
9209       if test "$with_gnu_ld" = no; then
9210         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9211         hardcode_libdir_separator=:
9212
9213         case $host_cpu in
9214         hppa*64*|ia64*)
9215           hardcode_direct=no
9216           hardcode_shlibpath_var=no
9217           ;;
9218         *)
9219           hardcode_direct=yes
9220           hardcode_direct_absolute=yes
9221           export_dynamic_flag_spec='${wl}-E'
9222
9223           # hardcode_minus_L: Not really in the search PATH,
9224           # but as the default location of the library.
9225           hardcode_minus_L=yes
9226           ;;
9227         esac
9228       fi
9229       ;;
9230
9231     irix5* | irix6* | nonstopux*)
9232       if test "$GCC" = yes; then
9233         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9234         # Try to use the -exported_symbol ld option, if it does not
9235         # work, assume that -exports_file does not work either and
9236         # implicitly export all symbols.
9237         # This should be the same for all languages, so no per-tag cache variable.
9238         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9239 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9240 if ${lt_cv_irix_exported_symbol+:} false; then :
9241   $as_echo_n "(cached) " >&6
9242 else
9243   save_LDFLAGS="$LDFLAGS"
9244            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9245            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h.  */
9247 int foo (void) { return 0; }
9248 _ACEOF
9249 if ac_fn_c_try_link "$LINENO"; then :
9250   lt_cv_irix_exported_symbol=yes
9251 else
9252   lt_cv_irix_exported_symbol=no
9253 fi
9254 rm -f core conftest.err conftest.$ac_objext \
9255     conftest$ac_exeext conftest.$ac_ext
9256            LDFLAGS="$save_LDFLAGS"
9257 fi
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9259 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9260         if test "$lt_cv_irix_exported_symbol" = yes; then
9261           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9262         fi
9263       else
9264         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'
9265         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'
9266       fi
9267       archive_cmds_need_lc='no'
9268       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9269       hardcode_libdir_separator=:
9270       inherit_rpath=yes
9271       link_all_deplibs=yes
9272       ;;
9273
9274     netbsd*)
9275       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9276         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9277       else
9278         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9279       fi
9280       hardcode_libdir_flag_spec='-R$libdir'
9281       hardcode_direct=yes
9282       hardcode_shlibpath_var=no
9283       ;;
9284
9285     newsos6)
9286       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9287       hardcode_direct=yes
9288       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9289       hardcode_libdir_separator=:
9290       hardcode_shlibpath_var=no
9291       ;;
9292
9293     *nto* | *qnx*)
9294       ;;
9295
9296     openbsd*)
9297       if test -f /usr/libexec/ld.so; then
9298         hardcode_direct=yes
9299         hardcode_shlibpath_var=no
9300         hardcode_direct_absolute=yes
9301         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9302           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9303           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9304           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9305           export_dynamic_flag_spec='${wl}-E'
9306         else
9307           case $host_os in
9308            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9309              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9310              hardcode_libdir_flag_spec='-R$libdir'
9311              ;;
9312            *)
9313              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9314              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9315              ;;
9316           esac
9317         fi
9318       else
9319         ld_shlibs=no
9320       fi
9321       ;;
9322
9323     os2*)
9324       hardcode_libdir_flag_spec='-L$libdir'
9325       hardcode_minus_L=yes
9326       allow_undefined_flag=unsupported
9327       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'
9328       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9329       ;;
9330
9331     osf3*)
9332       if test "$GCC" = yes; then
9333         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9334         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'
9335       else
9336         allow_undefined_flag=' -expect_unresolved \*'
9337         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'
9338       fi
9339       archive_cmds_need_lc='no'
9340       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9341       hardcode_libdir_separator=:
9342       ;;
9343
9344     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9345       if test "$GCC" = yes; then
9346         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9347         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9348         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9349       else
9350         allow_undefined_flag=' -expect_unresolved \*'
9351         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'
9352         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~
9353         $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'
9354
9355         # Both c and cxx compiler support -rpath directly
9356         hardcode_libdir_flag_spec='-rpath $libdir'
9357       fi
9358       archive_cmds_need_lc='no'
9359       hardcode_libdir_separator=:
9360       ;;
9361
9362     solaris*)
9363       no_undefined_flag=' -z defs'
9364       if test "$GCC" = yes; then
9365         wlarc='${wl}'
9366         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9367         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9368           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9369       else
9370         case `$CC -V 2>&1` in
9371         *"Compilers 5.0"*)
9372           wlarc=''
9373           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9374           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9375           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9376           ;;
9377         *)
9378           wlarc='${wl}'
9379           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9380           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9381           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9382           ;;
9383         esac
9384       fi
9385       hardcode_libdir_flag_spec='-R$libdir'
9386       hardcode_shlibpath_var=no
9387       case $host_os in
9388       solaris2.[0-5] | solaris2.[0-5].*) ;;
9389       *)
9390         # The compiler driver will combine and reorder linker options,
9391         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9392         # but is careful enough not to reorder.
9393         # Supported since Solaris 2.6 (maybe 2.5.1?)
9394         if test "$GCC" = yes; then
9395           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9396         else
9397           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9398         fi
9399         ;;
9400       esac
9401       link_all_deplibs=yes
9402       ;;
9403
9404     sunos4*)
9405       if test "x$host_vendor" = xsequent; then
9406         # Use $CC to link under sequent, because it throws in some extra .o
9407         # files that make .init and .fini sections work.
9408         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9409       else
9410         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9411       fi
9412       hardcode_libdir_flag_spec='-L$libdir'
9413       hardcode_direct=yes
9414       hardcode_minus_L=yes
9415       hardcode_shlibpath_var=no
9416       ;;
9417
9418     sysv4)
9419       case $host_vendor in
9420         sni)
9421           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9422           hardcode_direct=yes # is this really true???
9423         ;;
9424         siemens)
9425           ## LD is ld it makes a PLAMLIB
9426           ## CC just makes a GrossModule.
9427           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9428           reload_cmds='$CC -r -o $output$reload_objs'
9429           hardcode_direct=no
9430         ;;
9431         motorola)
9432           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9433           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9434         ;;
9435       esac
9436       runpath_var='LD_RUN_PATH'
9437       hardcode_shlibpath_var=no
9438       ;;
9439
9440     sysv4.3*)
9441       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9442       hardcode_shlibpath_var=no
9443       export_dynamic_flag_spec='-Bexport'
9444       ;;
9445
9446     sysv4*MP*)
9447       if test -d /usr/nec; then
9448         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9449         hardcode_shlibpath_var=no
9450         runpath_var=LD_RUN_PATH
9451         hardcode_runpath_var=yes
9452         ld_shlibs=yes
9453       fi
9454       ;;
9455
9456     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9457       no_undefined_flag='${wl}-z,text'
9458       archive_cmds_need_lc=no
9459       hardcode_shlibpath_var=no
9460       runpath_var='LD_RUN_PATH'
9461
9462       if test "$GCC" = yes; then
9463         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9464         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9465       else
9466         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9467         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9468       fi
9469       ;;
9470
9471     sysv5* | sco3.2v5* | sco5v6*)
9472       # Note: We can NOT use -z defs as we might desire, because we do not
9473       # link with -lc, and that would cause any symbols used from libc to
9474       # always be unresolved, which means just about no library would
9475       # ever link correctly.  If we're not using GNU ld we use -z text
9476       # though, which does catch some bad symbols but isn't as heavy-handed
9477       # as -z defs.
9478       no_undefined_flag='${wl}-z,text'
9479       allow_undefined_flag='${wl}-z,nodefs'
9480       archive_cmds_need_lc=no
9481       hardcode_shlibpath_var=no
9482       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9483       hardcode_libdir_separator=':'
9484       link_all_deplibs=yes
9485       export_dynamic_flag_spec='${wl}-Bexport'
9486       runpath_var='LD_RUN_PATH'
9487
9488       if test "$GCC" = yes; then
9489         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9490         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9491       else
9492         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9493         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9494       fi
9495       ;;
9496
9497     uts4*)
9498       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9499       hardcode_libdir_flag_spec='-L$libdir'
9500       hardcode_shlibpath_var=no
9501       ;;
9502
9503     *)
9504       ld_shlibs=no
9505       ;;
9506     esac
9507
9508     if test x$host_vendor = xsni; then
9509       case $host in
9510       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9511         export_dynamic_flag_spec='${wl}-Blargedynsym'
9512         ;;
9513       esac
9514     fi
9515   fi
9516
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9518 $as_echo "$ld_shlibs" >&6; }
9519 test "$ld_shlibs" = no && can_build_shared=no
9520
9521 with_gnu_ld=$with_gnu_ld
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537 #
9538 # Do we need to explicitly link libc?
9539 #
9540 case "x$archive_cmds_need_lc" in
9541 x|xyes)
9542   # Assume -lc should be added
9543   archive_cmds_need_lc=yes
9544
9545   if test "$enable_shared" = yes && test "$GCC" = yes; then
9546     case $archive_cmds in
9547     *'~'*)
9548       # FIXME: we may have to deal with multi-command sequences.
9549       ;;
9550     '$CC '*)
9551       # Test whether the compiler implicitly links with -lc since on some
9552       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9553       # to ld, don't add -lc before -lgcc.
9554       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9555 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9556 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9557   $as_echo_n "(cached) " >&6
9558 else
9559   $RM conftest*
9560         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9561
9562         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9563   (eval $ac_compile) 2>&5
9564   ac_status=$?
9565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9566   test $ac_status = 0; } 2>conftest.err; then
9567           soname=conftest
9568           lib=conftest
9569           libobjs=conftest.$ac_objext
9570           deplibs=
9571           wl=$lt_prog_compiler_wl
9572           pic_flag=$lt_prog_compiler_pic
9573           compiler_flags=-v
9574           linker_flags=-v
9575           verstring=
9576           output_objdir=.
9577           libname=conftest
9578           lt_save_allow_undefined_flag=$allow_undefined_flag
9579           allow_undefined_flag=
9580           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9581   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9582   ac_status=$?
9583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9584   test $ac_status = 0; }
9585           then
9586             lt_cv_archive_cmds_need_lc=no
9587           else
9588             lt_cv_archive_cmds_need_lc=yes
9589           fi
9590           allow_undefined_flag=$lt_save_allow_undefined_flag
9591         else
9592           cat conftest.err 1>&5
9593         fi
9594         $RM conftest*
9595
9596 fi
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9598 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9599       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9600       ;;
9601     esac
9602   fi
9603   ;;
9604 esac
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9758 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9759
9760 if test "$GCC" = yes; then
9761   case $host_os in
9762     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9763     *) lt_awk_arg="/^libraries:/" ;;
9764   esac
9765   case $host_os in
9766     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9767     *) lt_sed_strip_eq="s,=/,/,g" ;;
9768   esac
9769   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9770   case $lt_search_path_spec in
9771   *\;*)
9772     # if the path contains ";" then we assume it to be the separator
9773     # otherwise default to the standard path separator (i.e. ":") - it is
9774     # assumed that no part of a normal pathname contains ";" but that should
9775     # okay in the real world where ";" in dirpaths is itself problematic.
9776     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9777     ;;
9778   *)
9779     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9780     ;;
9781   esac
9782   # Ok, now we have the path, separated by spaces, we can step through it
9783   # and add multilib dir if necessary.
9784   lt_tmp_lt_search_path_spec=
9785   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9786   for lt_sys_path in $lt_search_path_spec; do
9787     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9788       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9789     else
9790       test -d "$lt_sys_path" && \
9791         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9792     fi
9793   done
9794   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9795 BEGIN {RS=" "; FS="/|\n";} {
9796   lt_foo="";
9797   lt_count=0;
9798   for (lt_i = NF; lt_i > 0; lt_i--) {
9799     if ($lt_i != "" && $lt_i != ".") {
9800       if ($lt_i == "..") {
9801         lt_count++;
9802       } else {
9803         if (lt_count == 0) {
9804           lt_foo="/" $lt_i lt_foo;
9805         } else {
9806           lt_count--;
9807         }
9808       }
9809     }
9810   }
9811   if (lt_foo != "") { lt_freq[lt_foo]++; }
9812   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9813 }'`
9814   # AWK program above erroneously prepends '/' to C:/dos/paths
9815   # for these hosts.
9816   case $host_os in
9817     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9818       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9819   esac
9820   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9821 else
9822   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9823 fi
9824 library_names_spec=
9825 libname_spec='lib$name'
9826 soname_spec=
9827 shrext_cmds=".so"
9828 postinstall_cmds=
9829 postuninstall_cmds=
9830 finish_cmds=
9831 finish_eval=
9832 shlibpath_var=
9833 shlibpath_overrides_runpath=unknown
9834 version_type=none
9835 dynamic_linker="$host_os ld.so"
9836 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9837 need_lib_prefix=unknown
9838 hardcode_into_libs=no
9839
9840 # when you set need_version to no, make sure it does not cause -set_version
9841 # flags to be left without arguments
9842 need_version=unknown
9843
9844 case $host_os in
9845 aix3*)
9846   version_type=linux # correct to gnu/linux during the next big refactor
9847   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9848   shlibpath_var=LIBPATH
9849
9850   # AIX 3 has no versioning support, so we append a major version to the name.
9851   soname_spec='${libname}${release}${shared_ext}$major'
9852   ;;
9853
9854 aix[4-9]*)
9855   version_type=linux # correct to gnu/linux during the next big refactor
9856   need_lib_prefix=no
9857   need_version=no
9858   hardcode_into_libs=yes
9859   if test "$host_cpu" = ia64; then
9860     # AIX 5 supports IA64
9861     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9862     shlibpath_var=LD_LIBRARY_PATH
9863   else
9864     # With GCC up to 2.95.x, collect2 would create an import file
9865     # for dependence libraries.  The import file would start with
9866     # the line `#! .'.  This would cause the generated library to
9867     # depend on `.', always an invalid library.  This was fixed in
9868     # development snapshots of GCC prior to 3.0.
9869     case $host_os in
9870       aix4 | aix4.[01] | aix4.[01].*)
9871       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9872            echo ' yes '
9873            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9874         :
9875       else
9876         can_build_shared=no
9877       fi
9878       ;;
9879     esac
9880     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9881     # soname into executable. Probably we can add versioning support to
9882     # collect2, so additional links can be useful in future.
9883     if test "$aix_use_runtimelinking" = yes; then
9884       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9885       # instead of lib<name>.a to let people know that these are not
9886       # typical AIX shared libraries.
9887       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9888     else
9889       # We preserve .a as extension for shared libraries through AIX4.2
9890       # and later when we are not doing run time linking.
9891       library_names_spec='${libname}${release}.a $libname.a'
9892       soname_spec='${libname}${release}${shared_ext}$major'
9893     fi
9894     shlibpath_var=LIBPATH
9895   fi
9896   ;;
9897
9898 amigaos*)
9899   case $host_cpu in
9900   powerpc)
9901     # Since July 2007 AmigaOS4 officially supports .so libraries.
9902     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9903     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904     ;;
9905   m68k)
9906     library_names_spec='$libname.ixlibrary $libname.a'
9907     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9908     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'
9909     ;;
9910   esac
9911   ;;
9912
9913 beos*)
9914   library_names_spec='${libname}${shared_ext}'
9915   dynamic_linker="$host_os ld.so"
9916   shlibpath_var=LIBRARY_PATH
9917   ;;
9918
9919 bsdi[45]*)
9920   version_type=linux # correct to gnu/linux during the next big refactor
9921   need_version=no
9922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9923   soname_spec='${libname}${release}${shared_ext}$major'
9924   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9925   shlibpath_var=LD_LIBRARY_PATH
9926   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9927   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9928   # the default ld.so.conf also contains /usr/contrib/lib and
9929   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9930   # libtool to hard-code these into programs
9931   ;;
9932
9933 cygwin* | mingw* | pw32* | cegcc*)
9934   version_type=windows
9935   shrext_cmds=".dll"
9936   need_version=no
9937   need_lib_prefix=no
9938
9939   case $GCC,$cc_basename in
9940   yes,*)
9941     # gcc
9942     library_names_spec='$libname.dll.a'
9943     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9944     postinstall_cmds='base_file=`basename \${file}`~
9945       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9946       dldir=$destdir/`dirname \$dlpath`~
9947       test -d \$dldir || mkdir -p \$dldir~
9948       $install_prog $dir/$dlname \$dldir/$dlname~
9949       chmod a+x \$dldir/$dlname~
9950       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9951         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9952       fi'
9953     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9954       dlpath=$dir/\$dldll~
9955        $RM \$dlpath'
9956     shlibpath_overrides_runpath=yes
9957
9958     case $host_os in
9959     cygwin*)
9960       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9961       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9962
9963       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9964       ;;
9965     mingw* | cegcc*)
9966       # MinGW DLLs use traditional 'lib' prefix
9967       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9968       ;;
9969     pw32*)
9970       # pw32 DLLs use 'pw' prefix rather than 'lib'
9971       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9972       ;;
9973     esac
9974     dynamic_linker='Win32 ld.exe'
9975     ;;
9976
9977   *,cl*)
9978     # Native MSVC
9979     libname_spec='$name'
9980     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9981     library_names_spec='${libname}.dll.lib'
9982
9983     case $build_os in
9984     mingw*)
9985       sys_lib_search_path_spec=
9986       lt_save_ifs=$IFS
9987       IFS=';'
9988       for lt_path in $LIB
9989       do
9990         IFS=$lt_save_ifs
9991         # Let DOS variable expansion print the short 8.3 style file name.
9992         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9993         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9994       done
9995       IFS=$lt_save_ifs
9996       # Convert to MSYS style.
9997       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9998       ;;
9999     cygwin*)
10000       # Convert to unix form, then to dos form, then back to unix form
10001       # but this time dos style (no spaces!) so that the unix form looks
10002       # like /cygdrive/c/PROGRA~1:/cygdr...
10003       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10004       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10005       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10006       ;;
10007     *)
10008       sys_lib_search_path_spec="$LIB"
10009       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10010         # It is most probably a Windows format PATH.
10011         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10012       else
10013         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10014       fi
10015       # FIXME: find the short name or the path components, as spaces are
10016       # common. (e.g. "Program Files" -> "PROGRA~1")
10017       ;;
10018     esac
10019
10020     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10021     postinstall_cmds='base_file=`basename \${file}`~
10022       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10023       dldir=$destdir/`dirname \$dlpath`~
10024       test -d \$dldir || mkdir -p \$dldir~
10025       $install_prog $dir/$dlname \$dldir/$dlname'
10026     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10027       dlpath=$dir/\$dldll~
10028        $RM \$dlpath'
10029     shlibpath_overrides_runpath=yes
10030     dynamic_linker='Win32 link.exe'
10031     ;;
10032
10033   *)
10034     # Assume MSVC wrapper
10035     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10036     dynamic_linker='Win32 ld.exe'
10037     ;;
10038   esac
10039   # FIXME: first we should search . and the directory the executable is in
10040   shlibpath_var=PATH
10041   ;;
10042
10043 darwin* | rhapsody*)
10044   dynamic_linker="$host_os dyld"
10045   version_type=darwin
10046   need_lib_prefix=no
10047   need_version=no
10048   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10049   soname_spec='${libname}${release}${major}$shared_ext'
10050   shlibpath_overrides_runpath=yes
10051   shlibpath_var=DYLD_LIBRARY_PATH
10052   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10053
10054   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10055   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10056   ;;
10057
10058 dgux*)
10059   version_type=linux # correct to gnu/linux during the next big refactor
10060   need_lib_prefix=no
10061   need_version=no
10062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10063   soname_spec='${libname}${release}${shared_ext}$major'
10064   shlibpath_var=LD_LIBRARY_PATH
10065   ;;
10066
10067 freebsd* | dragonfly*)
10068   # DragonFly does not have aout.  When/if they implement a new
10069   # versioning mechanism, adjust this.
10070   if test -x /usr/bin/objformat; then
10071     objformat=`/usr/bin/objformat`
10072   else
10073     case $host_os in
10074     freebsd[23].*) objformat=aout ;;
10075     *) objformat=elf ;;
10076     esac
10077   fi
10078   version_type=freebsd-$objformat
10079   case $version_type in
10080     freebsd-elf*)
10081       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10082       need_version=no
10083       need_lib_prefix=no
10084       ;;
10085     freebsd-*)
10086       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10087       need_version=yes
10088       ;;
10089   esac
10090   shlibpath_var=LD_LIBRARY_PATH
10091   case $host_os in
10092   freebsd2.*)
10093     shlibpath_overrides_runpath=yes
10094     ;;
10095   freebsd3.[01]* | freebsdelf3.[01]*)
10096     shlibpath_overrides_runpath=yes
10097     hardcode_into_libs=yes
10098     ;;
10099   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10100   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10101     shlibpath_overrides_runpath=no
10102     hardcode_into_libs=yes
10103     ;;
10104   *) # from 4.6 on, and DragonFly
10105     shlibpath_overrides_runpath=yes
10106     hardcode_into_libs=yes
10107     ;;
10108   esac
10109   ;;
10110
10111 gnu*)
10112   version_type=linux # correct to gnu/linux during the next big refactor
10113   need_lib_prefix=no
10114   need_version=no
10115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10116   soname_spec='${libname}${release}${shared_ext}$major'
10117   shlibpath_var=LD_LIBRARY_PATH
10118   shlibpath_overrides_runpath=no
10119   hardcode_into_libs=yes
10120   ;;
10121
10122 haiku*)
10123   version_type=linux # correct to gnu/linux during the next big refactor
10124   need_lib_prefix=no
10125   need_version=no
10126   dynamic_linker="$host_os runtime_loader"
10127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10128   soname_spec='${libname}${release}${shared_ext}$major'
10129   shlibpath_var=LIBRARY_PATH
10130   shlibpath_overrides_runpath=yes
10131   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10132   hardcode_into_libs=yes
10133   ;;
10134
10135 hpux9* | hpux10* | hpux11*)
10136   # Give a soname corresponding to the major version so that dld.sl refuses to
10137   # link against other versions.
10138   version_type=sunos
10139   need_lib_prefix=no
10140   need_version=no
10141   case $host_cpu in
10142   ia64*)
10143     shrext_cmds='.so'
10144     hardcode_into_libs=yes
10145     dynamic_linker="$host_os dld.so"
10146     shlibpath_var=LD_LIBRARY_PATH
10147     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10148     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10149     soname_spec='${libname}${release}${shared_ext}$major'
10150     if test "X$HPUX_IA64_MODE" = X32; then
10151       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10152     else
10153       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10154     fi
10155     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10156     ;;
10157   hppa*64*)
10158     shrext_cmds='.sl'
10159     hardcode_into_libs=yes
10160     dynamic_linker="$host_os dld.sl"
10161     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10162     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10163     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10164     soname_spec='${libname}${release}${shared_ext}$major'
10165     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10166     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10167     ;;
10168   *)
10169     shrext_cmds='.sl'
10170     dynamic_linker="$host_os dld.sl"
10171     shlibpath_var=SHLIB_PATH
10172     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10173     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10174     soname_spec='${libname}${release}${shared_ext}$major'
10175     ;;
10176   esac
10177   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10178   postinstall_cmds='chmod 555 $lib'
10179   # or fails outright, so override atomically:
10180   install_override_mode=555
10181   ;;
10182
10183 interix[3-9]*)
10184   version_type=linux # correct to gnu/linux during the next big refactor
10185   need_lib_prefix=no
10186   need_version=no
10187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10188   soname_spec='${libname}${release}${shared_ext}$major'
10189   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10190   shlibpath_var=LD_LIBRARY_PATH
10191   shlibpath_overrides_runpath=no
10192   hardcode_into_libs=yes
10193   ;;
10194
10195 irix5* | irix6* | nonstopux*)
10196   case $host_os in
10197     nonstopux*) version_type=nonstopux ;;
10198     *)
10199         if test "$lt_cv_prog_gnu_ld" = yes; then
10200                 version_type=linux # correct to gnu/linux during the next big refactor
10201         else
10202                 version_type=irix
10203         fi ;;
10204   esac
10205   need_lib_prefix=no
10206   need_version=no
10207   soname_spec='${libname}${release}${shared_ext}$major'
10208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10209   case $host_os in
10210   irix5* | nonstopux*)
10211     libsuff= shlibsuff=
10212     ;;
10213   *)
10214     case $LD in # libtool.m4 will add one of these switches to LD
10215     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10216       libsuff= shlibsuff= libmagic=32-bit;;
10217     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10218       libsuff=32 shlibsuff=N32 libmagic=N32;;
10219     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10220       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10221     *) libsuff= shlibsuff= libmagic=never-match;;
10222     esac
10223     ;;
10224   esac
10225   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10226   shlibpath_overrides_runpath=no
10227   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10228   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10229   hardcode_into_libs=yes
10230   ;;
10231
10232 # No shared lib support for Linux oldld, aout, or coff.
10233 linux*oldld* | linux*aout* | linux*coff*)
10234   dynamic_linker=no
10235   ;;
10236
10237 # This must be glibc/ELF.
10238 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10239   version_type=linux # correct to gnu/linux during the next big refactor
10240   need_lib_prefix=no
10241   need_version=no
10242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10243   soname_spec='${libname}${release}${shared_ext}$major'
10244   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10245   shlibpath_var=LD_LIBRARY_PATH
10246   shlibpath_overrides_runpath=no
10247
10248   # Some binutils ld are patched to set DT_RUNPATH
10249   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10250   $as_echo_n "(cached) " >&6
10251 else
10252   lt_cv_shlibpath_overrides_runpath=no
10253     save_LDFLAGS=$LDFLAGS
10254     save_libdir=$libdir
10255     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10256          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10257     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10258 /* end confdefs.h.  */
10259
10260 int
10261 main ()
10262 {
10263
10264   ;
10265   return 0;
10266 }
10267 _ACEOF
10268 if ac_fn_c_try_link "$LINENO"; then :
10269   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10270   lt_cv_shlibpath_overrides_runpath=yes
10271 fi
10272 fi
10273 rm -f core conftest.err conftest.$ac_objext \
10274     conftest$ac_exeext conftest.$ac_ext
10275     LDFLAGS=$save_LDFLAGS
10276     libdir=$save_libdir
10277
10278 fi
10279
10280   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10281
10282   # This implies no fast_install, which is unacceptable.
10283   # Some rework will be needed to allow for fast_install
10284   # before this can be enabled.
10285   hardcode_into_libs=yes
10286
10287   # Append ld.so.conf contents to the search path
10288   if test -f /etc/ld.so.conf; then
10289     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' ' '`
10290     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10291   fi
10292
10293   # We used to test for /lib/ld.so.1 and disable shared libraries on
10294   # powerpc, because MkLinux only supported shared libraries with the
10295   # GNU dynamic linker.  Since this was broken with cross compilers,
10296   # most powerpc-linux boxes support dynamic linking these days and
10297   # people can always --disable-shared, the test was removed, and we
10298   # assume the GNU/Linux dynamic linker is in use.
10299   dynamic_linker='GNU/Linux ld.so'
10300   ;;
10301
10302 netbsd*)
10303   version_type=sunos
10304   need_lib_prefix=no
10305   need_version=no
10306   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10307     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10308     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10309     dynamic_linker='NetBSD (a.out) ld.so'
10310   else
10311     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10312     soname_spec='${libname}${release}${shared_ext}$major'
10313     dynamic_linker='NetBSD ld.elf_so'
10314   fi
10315   shlibpath_var=LD_LIBRARY_PATH
10316   shlibpath_overrides_runpath=yes
10317   hardcode_into_libs=yes
10318   ;;
10319
10320 newsos6)
10321   version_type=linux # correct to gnu/linux during the next big refactor
10322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10323   shlibpath_var=LD_LIBRARY_PATH
10324   shlibpath_overrides_runpath=yes
10325   ;;
10326
10327 *nto* | *qnx*)
10328   version_type=qnx
10329   need_lib_prefix=no
10330   need_version=no
10331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332   soname_spec='${libname}${release}${shared_ext}$major'
10333   shlibpath_var=LD_LIBRARY_PATH
10334   shlibpath_overrides_runpath=no
10335   hardcode_into_libs=yes
10336   dynamic_linker='ldqnx.so'
10337   ;;
10338
10339 openbsd*)
10340   version_type=sunos
10341   sys_lib_dlsearch_path_spec="/usr/lib"
10342   need_lib_prefix=no
10343   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10344   case $host_os in
10345     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10346     *)                          need_version=no  ;;
10347   esac
10348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10349   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10350   shlibpath_var=LD_LIBRARY_PATH
10351   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10352     case $host_os in
10353       openbsd2.[89] | openbsd2.[89].*)
10354         shlibpath_overrides_runpath=no
10355         ;;
10356       *)
10357         shlibpath_overrides_runpath=yes
10358         ;;
10359       esac
10360   else
10361     shlibpath_overrides_runpath=yes
10362   fi
10363   ;;
10364
10365 os2*)
10366   libname_spec='$name'
10367   shrext_cmds=".dll"
10368   need_lib_prefix=no
10369   library_names_spec='$libname${shared_ext} $libname.a'
10370   dynamic_linker='OS/2 ld.exe'
10371   shlibpath_var=LIBPATH
10372   ;;
10373
10374 osf3* | osf4* | osf5*)
10375   version_type=osf
10376   need_lib_prefix=no
10377   need_version=no
10378   soname_spec='${libname}${release}${shared_ext}$major'
10379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10380   shlibpath_var=LD_LIBRARY_PATH
10381   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10382   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10383   ;;
10384
10385 rdos*)
10386   dynamic_linker=no
10387   ;;
10388
10389 solaris*)
10390   version_type=linux # correct to gnu/linux during the next big refactor
10391   need_lib_prefix=no
10392   need_version=no
10393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394   soname_spec='${libname}${release}${shared_ext}$major'
10395   shlibpath_var=LD_LIBRARY_PATH
10396   shlibpath_overrides_runpath=yes
10397   hardcode_into_libs=yes
10398   # ldd complains unless libraries are executable
10399   postinstall_cmds='chmod +x $lib'
10400   ;;
10401
10402 sunos4*)
10403   version_type=sunos
10404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10405   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10406   shlibpath_var=LD_LIBRARY_PATH
10407   shlibpath_overrides_runpath=yes
10408   if test "$with_gnu_ld" = yes; then
10409     need_lib_prefix=no
10410   fi
10411   need_version=yes
10412   ;;
10413
10414 sysv4 | sysv4.3*)
10415   version_type=linux # correct to gnu/linux during the next big refactor
10416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10417   soname_spec='${libname}${release}${shared_ext}$major'
10418   shlibpath_var=LD_LIBRARY_PATH
10419   case $host_vendor in
10420     sni)
10421       shlibpath_overrides_runpath=no
10422       need_lib_prefix=no
10423       runpath_var=LD_RUN_PATH
10424       ;;
10425     siemens)
10426       need_lib_prefix=no
10427       ;;
10428     motorola)
10429       need_lib_prefix=no
10430       need_version=no
10431       shlibpath_overrides_runpath=no
10432       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10433       ;;
10434   esac
10435   ;;
10436
10437 sysv4*MP*)
10438   if test -d /usr/nec ;then
10439     version_type=linux # correct to gnu/linux during the next big refactor
10440     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10441     soname_spec='$libname${shared_ext}.$major'
10442     shlibpath_var=LD_LIBRARY_PATH
10443   fi
10444   ;;
10445
10446 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10447   version_type=freebsd-elf
10448   need_lib_prefix=no
10449   need_version=no
10450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10451   soname_spec='${libname}${release}${shared_ext}$major'
10452   shlibpath_var=LD_LIBRARY_PATH
10453   shlibpath_overrides_runpath=yes
10454   hardcode_into_libs=yes
10455   if test "$with_gnu_ld" = yes; then
10456     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10457   else
10458     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10459     case $host_os in
10460       sco3.2v5*)
10461         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10462         ;;
10463     esac
10464   fi
10465   sys_lib_dlsearch_path_spec='/usr/lib'
10466   ;;
10467
10468 tpf*)
10469   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10470   version_type=linux # correct to gnu/linux during the next big refactor
10471   need_lib_prefix=no
10472   need_version=no
10473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474   shlibpath_var=LD_LIBRARY_PATH
10475   shlibpath_overrides_runpath=no
10476   hardcode_into_libs=yes
10477   ;;
10478
10479 uts4*)
10480   version_type=linux # correct to gnu/linux during the next big refactor
10481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10482   soname_spec='${libname}${release}${shared_ext}$major'
10483   shlibpath_var=LD_LIBRARY_PATH
10484   ;;
10485
10486 *)
10487   dynamic_linker=no
10488   ;;
10489 esac
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10491 $as_echo "$dynamic_linker" >&6; }
10492 test "$dynamic_linker" = no && can_build_shared=no
10493
10494 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10495 if test "$GCC" = yes; then
10496   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10497 fi
10498
10499 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10500   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10501 fi
10502 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10503   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10504 fi
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10598 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10599 hardcode_action=
10600 if test -n "$hardcode_libdir_flag_spec" ||
10601    test -n "$runpath_var" ||
10602    test "X$hardcode_automatic" = "Xyes" ; then
10603
10604   # We can hardcode non-existent directories.
10605   if test "$hardcode_direct" != no &&
10606      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10607      # have to relink, otherwise we might link with an installed library
10608      # when we should be linking with a yet-to-be-installed one
10609      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10610      test "$hardcode_minus_L" != no; then
10611     # Linking always hardcodes the temporary library directory.
10612     hardcode_action=relink
10613   else
10614     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10615     hardcode_action=immediate
10616   fi
10617 else
10618   # We cannot hardcode anything, or else we can only hardcode existing
10619   # directories.
10620   hardcode_action=unsupported
10621 fi
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10623 $as_echo "$hardcode_action" >&6; }
10624
10625 if test "$hardcode_action" = relink ||
10626    test "$inherit_rpath" = yes; then
10627   # Fast installation is not supported
10628   enable_fast_install=no
10629 elif test "$shlibpath_overrides_runpath" = yes ||
10630      test "$enable_shared" = no; then
10631   # Fast installation is not necessary
10632   enable_fast_install=needless
10633 fi
10634
10635
10636
10637
10638
10639
10640   if test "x$enable_dlopen" != xyes; then
10641   enable_dlopen=unknown
10642   enable_dlopen_self=unknown
10643   enable_dlopen_self_static=unknown
10644 else
10645   lt_cv_dlopen=no
10646   lt_cv_dlopen_libs=
10647
10648   case $host_os in
10649   beos*)
10650     lt_cv_dlopen="load_add_on"
10651     lt_cv_dlopen_libs=
10652     lt_cv_dlopen_self=yes
10653     ;;
10654
10655   mingw* | pw32* | cegcc*)
10656     lt_cv_dlopen="LoadLibrary"
10657     lt_cv_dlopen_libs=
10658     ;;
10659
10660   cygwin*)
10661     lt_cv_dlopen="dlopen"
10662     lt_cv_dlopen_libs=
10663     ;;
10664
10665   darwin*)
10666   # if libdl is installed we need to link against it
10667     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10668 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10669 if ${ac_cv_lib_dl_dlopen+:} false; then :
10670   $as_echo_n "(cached) " >&6
10671 else
10672   ac_check_lib_save_LIBS=$LIBS
10673 LIBS="-ldl  $LIBS"
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h.  */
10676
10677 /* Override any GCC internal prototype to avoid an error.
10678    Use char because int might match the return type of a GCC
10679    builtin and then its argument prototype would still apply.  */
10680 #ifdef __cplusplus
10681 extern "C"
10682 #endif
10683 char dlopen ();
10684 int
10685 main ()
10686 {
10687 return dlopen ();
10688   ;
10689   return 0;
10690 }
10691 _ACEOF
10692 if ac_fn_c_try_link "$LINENO"; then :
10693   ac_cv_lib_dl_dlopen=yes
10694 else
10695   ac_cv_lib_dl_dlopen=no
10696 fi
10697 rm -f core conftest.err conftest.$ac_objext \
10698     conftest$ac_exeext conftest.$ac_ext
10699 LIBS=$ac_check_lib_save_LIBS
10700 fi
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10702 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10703 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10704   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10705 else
10706
10707     lt_cv_dlopen="dyld"
10708     lt_cv_dlopen_libs=
10709     lt_cv_dlopen_self=yes
10710
10711 fi
10712
10713     ;;
10714
10715   *)
10716     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10717 if test "x$ac_cv_func_shl_load" = xyes; then :
10718   lt_cv_dlopen="shl_load"
10719 else
10720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10721 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10722 if ${ac_cv_lib_dld_shl_load+:} false; then :
10723   $as_echo_n "(cached) " >&6
10724 else
10725   ac_check_lib_save_LIBS=$LIBS
10726 LIBS="-ldld  $LIBS"
10727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h.  */
10729
10730 /* Override any GCC internal prototype to avoid an error.
10731    Use char because int might match the return type of a GCC
10732    builtin and then its argument prototype would still apply.  */
10733 #ifdef __cplusplus
10734 extern "C"
10735 #endif
10736 char shl_load ();
10737 int
10738 main ()
10739 {
10740 return shl_load ();
10741   ;
10742   return 0;
10743 }
10744 _ACEOF
10745 if ac_fn_c_try_link "$LINENO"; then :
10746   ac_cv_lib_dld_shl_load=yes
10747 else
10748   ac_cv_lib_dld_shl_load=no
10749 fi
10750 rm -f core conftest.err conftest.$ac_objext \
10751     conftest$ac_exeext conftest.$ac_ext
10752 LIBS=$ac_check_lib_save_LIBS
10753 fi
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10755 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10756 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10757   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10758 else
10759   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10760 if test "x$ac_cv_func_dlopen" = xyes; then :
10761   lt_cv_dlopen="dlopen"
10762 else
10763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10764 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10765 if ${ac_cv_lib_dl_dlopen+:} false; then :
10766   $as_echo_n "(cached) " >&6
10767 else
10768   ac_check_lib_save_LIBS=$LIBS
10769 LIBS="-ldl  $LIBS"
10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h.  */
10772
10773 /* Override any GCC internal prototype to avoid an error.
10774    Use char because int might match the return type of a GCC
10775    builtin and then its argument prototype would still apply.  */
10776 #ifdef __cplusplus
10777 extern "C"
10778 #endif
10779 char dlopen ();
10780 int
10781 main ()
10782 {
10783 return dlopen ();
10784   ;
10785   return 0;
10786 }
10787 _ACEOF
10788 if ac_fn_c_try_link "$LINENO"; then :
10789   ac_cv_lib_dl_dlopen=yes
10790 else
10791   ac_cv_lib_dl_dlopen=no
10792 fi
10793 rm -f core conftest.err conftest.$ac_objext \
10794     conftest$ac_exeext conftest.$ac_ext
10795 LIBS=$ac_check_lib_save_LIBS
10796 fi
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10798 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10799 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10800   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10801 else
10802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10803 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10804 if ${ac_cv_lib_svld_dlopen+:} false; then :
10805   $as_echo_n "(cached) " >&6
10806 else
10807   ac_check_lib_save_LIBS=$LIBS
10808 LIBS="-lsvld  $LIBS"
10809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h.  */
10811
10812 /* Override any GCC internal prototype to avoid an error.
10813    Use char because int might match the return type of a GCC
10814    builtin and then its argument prototype would still apply.  */
10815 #ifdef __cplusplus
10816 extern "C"
10817 #endif
10818 char dlopen ();
10819 int
10820 main ()
10821 {
10822 return dlopen ();
10823   ;
10824   return 0;
10825 }
10826 _ACEOF
10827 if ac_fn_c_try_link "$LINENO"; then :
10828   ac_cv_lib_svld_dlopen=yes
10829 else
10830   ac_cv_lib_svld_dlopen=no
10831 fi
10832 rm -f core conftest.err conftest.$ac_objext \
10833     conftest$ac_exeext conftest.$ac_ext
10834 LIBS=$ac_check_lib_save_LIBS
10835 fi
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10837 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10838 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10839   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10840 else
10841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10842 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10843 if ${ac_cv_lib_dld_dld_link+:} false; then :
10844   $as_echo_n "(cached) " >&6
10845 else
10846   ac_check_lib_save_LIBS=$LIBS
10847 LIBS="-ldld  $LIBS"
10848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849 /* end confdefs.h.  */
10850
10851 /* Override any GCC internal prototype to avoid an error.
10852    Use char because int might match the return type of a GCC
10853    builtin and then its argument prototype would still apply.  */
10854 #ifdef __cplusplus
10855 extern "C"
10856 #endif
10857 char dld_link ();
10858 int
10859 main ()
10860 {
10861 return dld_link ();
10862   ;
10863   return 0;
10864 }
10865 _ACEOF
10866 if ac_fn_c_try_link "$LINENO"; then :
10867   ac_cv_lib_dld_dld_link=yes
10868 else
10869   ac_cv_lib_dld_dld_link=no
10870 fi
10871 rm -f core conftest.err conftest.$ac_objext \
10872     conftest$ac_exeext conftest.$ac_ext
10873 LIBS=$ac_check_lib_save_LIBS
10874 fi
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10876 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10877 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10878   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10879 fi
10880
10881
10882 fi
10883
10884
10885 fi
10886
10887
10888 fi
10889
10890
10891 fi
10892
10893
10894 fi
10895
10896     ;;
10897   esac
10898
10899   if test "x$lt_cv_dlopen" != xno; then
10900     enable_dlopen=yes
10901   else
10902     enable_dlopen=no
10903   fi
10904
10905   case $lt_cv_dlopen in
10906   dlopen)
10907     save_CPPFLAGS="$CPPFLAGS"
10908     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10909
10910     save_LDFLAGS="$LDFLAGS"
10911     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10912
10913     save_LIBS="$LIBS"
10914     LIBS="$lt_cv_dlopen_libs $LIBS"
10915
10916     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10917 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10918 if ${lt_cv_dlopen_self+:} false; then :
10919   $as_echo_n "(cached) " >&6
10920 else
10921           if test "$cross_compiling" = yes; then :
10922   lt_cv_dlopen_self=cross
10923 else
10924   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10925   lt_status=$lt_dlunknown
10926   cat > conftest.$ac_ext <<_LT_EOF
10927 #line $LINENO "configure"
10928 #include "confdefs.h"
10929
10930 #if HAVE_DLFCN_H
10931 #include <dlfcn.h>
10932 #endif
10933
10934 #include <stdio.h>
10935
10936 #ifdef RTLD_GLOBAL
10937 #  define LT_DLGLOBAL           RTLD_GLOBAL
10938 #else
10939 #  ifdef DL_GLOBAL
10940 #    define LT_DLGLOBAL         DL_GLOBAL
10941 #  else
10942 #    define LT_DLGLOBAL         0
10943 #  endif
10944 #endif
10945
10946 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10947    find out it does not work in some platform. */
10948 #ifndef LT_DLLAZY_OR_NOW
10949 #  ifdef RTLD_LAZY
10950 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10951 #  else
10952 #    ifdef DL_LAZY
10953 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10954 #    else
10955 #      ifdef RTLD_NOW
10956 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10957 #      else
10958 #        ifdef DL_NOW
10959 #          define LT_DLLAZY_OR_NOW      DL_NOW
10960 #        else
10961 #          define LT_DLLAZY_OR_NOW      0
10962 #        endif
10963 #      endif
10964 #    endif
10965 #  endif
10966 #endif
10967
10968 /* When -fvisbility=hidden is used, assume the code has been annotated
10969    correspondingly for the symbols needed.  */
10970 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10971 int fnord () __attribute__((visibility("default")));
10972 #endif
10973
10974 int fnord () { return 42; }
10975 int main ()
10976 {
10977   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10978   int status = $lt_dlunknown;
10979
10980   if (self)
10981     {
10982       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10983       else
10984         {
10985           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10986           else puts (dlerror ());
10987         }
10988       /* dlclose (self); */
10989     }
10990   else
10991     puts (dlerror ());
10992
10993   return status;
10994 }
10995 _LT_EOF
10996   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10997   (eval $ac_link) 2>&5
10998   ac_status=$?
10999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11000   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11001     (./conftest; exit; ) >&5 2>/dev/null
11002     lt_status=$?
11003     case x$lt_status in
11004       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11005       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11006       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11007     esac
11008   else :
11009     # compilation failed
11010     lt_cv_dlopen_self=no
11011   fi
11012 fi
11013 rm -fr conftest*
11014
11015
11016 fi
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11018 $as_echo "$lt_cv_dlopen_self" >&6; }
11019
11020     if test "x$lt_cv_dlopen_self" = xyes; then
11021       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11022       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11023 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11024 if ${lt_cv_dlopen_self_static+:} false; then :
11025   $as_echo_n "(cached) " >&6
11026 else
11027           if test "$cross_compiling" = yes; then :
11028   lt_cv_dlopen_self_static=cross
11029 else
11030   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11031   lt_status=$lt_dlunknown
11032   cat > conftest.$ac_ext <<_LT_EOF
11033 #line $LINENO "configure"
11034 #include "confdefs.h"
11035
11036 #if HAVE_DLFCN_H
11037 #include <dlfcn.h>
11038 #endif
11039
11040 #include <stdio.h>
11041
11042 #ifdef RTLD_GLOBAL
11043 #  define LT_DLGLOBAL           RTLD_GLOBAL
11044 #else
11045 #  ifdef DL_GLOBAL
11046 #    define LT_DLGLOBAL         DL_GLOBAL
11047 #  else
11048 #    define LT_DLGLOBAL         0
11049 #  endif
11050 #endif
11051
11052 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11053    find out it does not work in some platform. */
11054 #ifndef LT_DLLAZY_OR_NOW
11055 #  ifdef RTLD_LAZY
11056 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11057 #  else
11058 #    ifdef DL_LAZY
11059 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11060 #    else
11061 #      ifdef RTLD_NOW
11062 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11063 #      else
11064 #        ifdef DL_NOW
11065 #          define LT_DLLAZY_OR_NOW      DL_NOW
11066 #        else
11067 #          define LT_DLLAZY_OR_NOW      0
11068 #        endif
11069 #      endif
11070 #    endif
11071 #  endif
11072 #endif
11073
11074 /* When -fvisbility=hidden is used, assume the code has been annotated
11075    correspondingly for the symbols needed.  */
11076 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11077 int fnord () __attribute__((visibility("default")));
11078 #endif
11079
11080 int fnord () { return 42; }
11081 int main ()
11082 {
11083   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11084   int status = $lt_dlunknown;
11085
11086   if (self)
11087     {
11088       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11089       else
11090         {
11091           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11092           else puts (dlerror ());
11093         }
11094       /* dlclose (self); */
11095     }
11096   else
11097     puts (dlerror ());
11098
11099   return status;
11100 }
11101 _LT_EOF
11102   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11103   (eval $ac_link) 2>&5
11104   ac_status=$?
11105   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11106   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11107     (./conftest; exit; ) >&5 2>/dev/null
11108     lt_status=$?
11109     case x$lt_status in
11110       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11111       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11112       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11113     esac
11114   else :
11115     # compilation failed
11116     lt_cv_dlopen_self_static=no
11117   fi
11118 fi
11119 rm -fr conftest*
11120
11121
11122 fi
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11124 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11125     fi
11126
11127     CPPFLAGS="$save_CPPFLAGS"
11128     LDFLAGS="$save_LDFLAGS"
11129     LIBS="$save_LIBS"
11130     ;;
11131   esac
11132
11133   case $lt_cv_dlopen_self in
11134   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11135   *) enable_dlopen_self=unknown ;;
11136   esac
11137
11138   case $lt_cv_dlopen_self_static in
11139   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11140   *) enable_dlopen_self_static=unknown ;;
11141   esac
11142 fi
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160 striplib=
11161 old_striplib=
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11163 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11164 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11165   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11166   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11168 $as_echo "yes" >&6; }
11169 else
11170 # FIXME - insert some real tests, host_os isn't really good enough
11171   case $host_os in
11172   darwin*)
11173     if test -n "$STRIP" ; then
11174       striplib="$STRIP -x"
11175       old_striplib="$STRIP -S"
11176       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11177 $as_echo "yes" >&6; }
11178     else
11179       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180 $as_echo "no" >&6; }
11181     fi
11182     ;;
11183   *)
11184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11185 $as_echo "no" >&6; }
11186     ;;
11187   esac
11188 fi
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201   # Report which library types will actually be built
11202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11203 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11205 $as_echo "$can_build_shared" >&6; }
11206
11207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11208 $as_echo_n "checking whether to build shared libraries... " >&6; }
11209   test "$can_build_shared" = "no" && enable_shared=no
11210
11211   # On AIX, shared libraries and static libraries use the same namespace, and
11212   # are all built from PIC.
11213   case $host_os in
11214   aix3*)
11215     test "$enable_shared" = yes && enable_static=no
11216     if test -n "$RANLIB"; then
11217       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11218       postinstall_cmds='$RANLIB $lib'
11219     fi
11220     ;;
11221
11222   aix[4-9]*)
11223     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11224       test "$enable_shared" = yes && enable_static=no
11225     fi
11226     ;;
11227   esac
11228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11229 $as_echo "$enable_shared" >&6; }
11230
11231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11232 $as_echo_n "checking whether to build static libraries... " >&6; }
11233   # Make sure either enable_shared or enable_static is yes.
11234   test "$enable_shared" = yes || enable_static=yes
11235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11236 $as_echo "$enable_static" >&6; }
11237
11238
11239
11240
11241 fi
11242 ac_ext=c
11243 ac_cpp='$CPP $CPPFLAGS'
11244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11247
11248 CC="$lt_save_CC"
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264         ac_config_commands="$ac_config_commands libtool"
11265
11266
11267
11268
11269 # Only expand once:
11270
11271
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11273 $as_echo_n "checking for inline... " >&6; }
11274 if ${ac_cv_c_inline+:} false; then :
11275   $as_echo_n "(cached) " >&6
11276 else
11277   ac_cv_c_inline=no
11278 for ac_kw in inline __inline__ __inline; do
11279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h.  */
11281 #ifndef __cplusplus
11282 typedef int foo_t;
11283 static $ac_kw foo_t static_foo () {return 0; }
11284 $ac_kw foo_t foo () {return 0; }
11285 #endif
11286
11287 _ACEOF
11288 if ac_fn_c_try_compile "$LINENO"; then :
11289   ac_cv_c_inline=$ac_kw
11290 fi
11291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11292   test "$ac_cv_c_inline" != no && break
11293 done
11294
11295 fi
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11297 $as_echo "$ac_cv_c_inline" >&6; }
11298
11299 case $ac_cv_c_inline in
11300   inline | yes) ;;
11301   *)
11302     case $ac_cv_c_inline in
11303       no) ac_val=;;
11304       *) ac_val=$ac_cv_c_inline;;
11305     esac
11306     cat >>confdefs.h <<_ACEOF
11307 #ifndef __cplusplus
11308 #define inline $ac_val
11309 #endif
11310 _ACEOF
11311     ;;
11312 esac
11313
11314 if test "x$CC" != xcc; then
11315   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11316 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11317 else
11318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11319 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11320 fi
11321 set dummy $CC; ac_cc=`$as_echo "$2" |
11322                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11323 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11324   $as_echo_n "(cached) " >&6
11325 else
11326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11327 /* end confdefs.h.  */
11328
11329 int
11330 main ()
11331 {
11332
11333   ;
11334   return 0;
11335 }
11336 _ACEOF
11337 # Make sure it works both with $CC and with simple cc.
11338 # We do the test twice because some compilers refuse to overwrite an
11339 # existing .o file with -o, though they will create one.
11340 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11341 rm -f conftest2.*
11342 if { { case "(($ac_try" in
11343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344   *) ac_try_echo=$ac_try;;
11345 esac
11346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11347 $as_echo "$ac_try_echo"; } >&5
11348   (eval "$ac_try") 2>&5
11349   ac_status=$?
11350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11351   test $ac_status = 0; } &&
11352    test -f conftest2.$ac_objext && { { case "(($ac_try" in
11353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354   *) ac_try_echo=$ac_try;;
11355 esac
11356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11357 $as_echo "$ac_try_echo"; } >&5
11358   (eval "$ac_try") 2>&5
11359   ac_status=$?
11360   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11361   test $ac_status = 0; };
11362 then
11363   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11364   if test "x$CC" != xcc; then
11365     # Test first that cc exists at all.
11366     if { ac_try='cc -c conftest.$ac_ext >&5'
11367   { { case "(($ac_try" in
11368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369   *) ac_try_echo=$ac_try;;
11370 esac
11371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11372 $as_echo "$ac_try_echo"; } >&5
11373   (eval "$ac_try") 2>&5
11374   ac_status=$?
11375   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11376   test $ac_status = 0; }; }; then
11377       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11378       rm -f conftest2.*
11379       if { { case "(($ac_try" in
11380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381   *) ac_try_echo=$ac_try;;
11382 esac
11383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11384 $as_echo "$ac_try_echo"; } >&5
11385   (eval "$ac_try") 2>&5
11386   ac_status=$?
11387   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11388   test $ac_status = 0; } &&
11389          test -f conftest2.$ac_objext && { { case "(($ac_try" in
11390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11391   *) ac_try_echo=$ac_try;;
11392 esac
11393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11394 $as_echo "$ac_try_echo"; } >&5
11395   (eval "$ac_try") 2>&5
11396   ac_status=$?
11397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11398   test $ac_status = 0; };
11399       then
11400         # cc works too.
11401         :
11402       else
11403         # cc exists but doesn't like -o.
11404         eval ac_cv_prog_cc_${ac_cc}_c_o=no
11405       fi
11406     fi
11407   fi
11408 else
11409   eval ac_cv_prog_cc_${ac_cc}_c_o=no
11410 fi
11411 rm -f core conftest*
11412
11413 fi
11414 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11416 $as_echo "yes" >&6; }
11417 else
11418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419 $as_echo "no" >&6; }
11420
11421 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11422
11423 fi
11424
11425 # FIXME: we rely on the cache variable name because
11426 # there is no other way.
11427 set dummy $CC
11428 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11429 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11430 if test "$am_t" != yes; then
11431    # Losing compiler, so override with the script.
11432    # FIXME: It is wrong to rewrite CC.
11433    # But if we don't then we get into trouble of one sort or another.
11434    # A longer-term fix would be to have automake use am__CC in this case,
11435    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11436    CC="$am_aux_dir/compile $CC"
11437 fi
11438
11439
11440
11441 # Library versioning
11442 LT_MAJOR="8"
11443 LT_REVISION="4"
11444 LT_AGE="4"
11445
11446
11447
11448
11449 # The libusb-0.1 version we pretend to be
11450 LIBUSB01_VERSION="0.1.12"
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11461         if test -n "$ac_tool_prefix"; then
11462   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11463 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11465 $as_echo_n "checking for $ac_word... " >&6; }
11466 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11467   $as_echo_n "(cached) " >&6
11468 else
11469   case $PKG_CONFIG in
11470   [\\/]* | ?:[\\/]*)
11471   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11472   ;;
11473   *)
11474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11475 for as_dir in $PATH
11476 do
11477   IFS=$as_save_IFS
11478   test -z "$as_dir" && as_dir=.
11479     for ac_exec_ext in '' $ac_executable_extensions; do
11480   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11481     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11483     break 2
11484   fi
11485 done
11486   done
11487 IFS=$as_save_IFS
11488
11489   ;;
11490 esac
11491 fi
11492 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11493 if test -n "$PKG_CONFIG"; then
11494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11495 $as_echo "$PKG_CONFIG" >&6; }
11496 else
11497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498 $as_echo "no" >&6; }
11499 fi
11500
11501
11502 fi
11503 if test -z "$ac_cv_path_PKG_CONFIG"; then
11504   ac_pt_PKG_CONFIG=$PKG_CONFIG
11505   # Extract the first word of "pkg-config", so it can be a program name with args.
11506 set dummy pkg-config; ac_word=$2
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11508 $as_echo_n "checking for $ac_word... " >&6; }
11509 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11510   $as_echo_n "(cached) " >&6
11511 else
11512   case $ac_pt_PKG_CONFIG in
11513   [\\/]* | ?:[\\/]*)
11514   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11515   ;;
11516   *)
11517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11518 for as_dir in $PATH
11519 do
11520   IFS=$as_save_IFS
11521   test -z "$as_dir" && as_dir=.
11522     for ac_exec_ext in '' $ac_executable_extensions; do
11523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11524     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11526     break 2
11527   fi
11528 done
11529   done
11530 IFS=$as_save_IFS
11531
11532   ;;
11533 esac
11534 fi
11535 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11536 if test -n "$ac_pt_PKG_CONFIG"; then
11537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11538 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11539 else
11540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541 $as_echo "no" >&6; }
11542 fi
11543
11544   if test "x$ac_pt_PKG_CONFIG" = x; then
11545     PKG_CONFIG=""
11546   else
11547     case $cross_compiling:$ac_tool_warned in
11548 yes:)
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11551 ac_tool_warned=yes ;;
11552 esac
11553     PKG_CONFIG=$ac_pt_PKG_CONFIG
11554   fi
11555 else
11556   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11557 fi
11558
11559 fi
11560 if test -n "$PKG_CONFIG"; then
11561         _pkg_min_version=0.9.0
11562         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11563 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11564         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11565                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11566 $as_echo "yes" >&6; }
11567         else
11568                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569 $as_echo "no" >&6; }
11570                 PKG_CONFIG=""
11571         fi
11572 fi
11573
11574 pkg_failed=no
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB_1_0" >&5
11576 $as_echo_n "checking for LIBUSB_1_0... " >&6; }
11577
11578 if test -n "$LIBUSB_1_0_CFLAGS"; then
11579     pkg_cv_LIBUSB_1_0_CFLAGS="$LIBUSB_1_0_CFLAGS"
11580  elif test -n "$PKG_CONFIG"; then
11581     if test -n "$PKG_CONFIG" && \
11582     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 0.9.1\""; } >&5
11583   ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 0.9.1") 2>&5
11584   ac_status=$?
11585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11586   test $ac_status = 0; }; then
11587   pkg_cv_LIBUSB_1_0_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0 >= 0.9.1" 2>/dev/null`
11588                       test "x$?" != "x0" && pkg_failed=yes
11589 else
11590   pkg_failed=yes
11591 fi
11592  else
11593     pkg_failed=untried
11594 fi
11595 if test -n "$LIBUSB_1_0_LIBS"; then
11596     pkg_cv_LIBUSB_1_0_LIBS="$LIBUSB_1_0_LIBS"
11597  elif test -n "$PKG_CONFIG"; then
11598     if test -n "$PKG_CONFIG" && \
11599     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 0.9.1\""; } >&5
11600   ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 0.9.1") 2>&5
11601   ac_status=$?
11602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11603   test $ac_status = 0; }; then
11604   pkg_cv_LIBUSB_1_0_LIBS=`$PKG_CONFIG --libs "libusb-1.0 >= 0.9.1" 2>/dev/null`
11605                       test "x$?" != "x0" && pkg_failed=yes
11606 else
11607   pkg_failed=yes
11608 fi
11609  else
11610     pkg_failed=untried
11611 fi
11612
11613
11614
11615 if test $pkg_failed = yes; then
11616         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617 $as_echo "no" >&6; }
11618
11619 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11620         _pkg_short_errors_supported=yes
11621 else
11622         _pkg_short_errors_supported=no
11623 fi
11624         if test $_pkg_short_errors_supported = yes; then
11625                 LIBUSB_1_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0 >= 0.9.1" 2>&1`
11626         else
11627                 LIBUSB_1_0_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0 >= 0.9.1" 2>&1`
11628         fi
11629         # Put the nasty error message in config.log where it belongs
11630         echo "$LIBUSB_1_0_PKG_ERRORS" >&5
11631
11632         as_fn_error $? "Package requirements (libusb-1.0 >= 0.9.1) were not met:
11633
11634 $LIBUSB_1_0_PKG_ERRORS
11635
11636 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11637 installed software in a non-standard prefix.
11638
11639 Alternatively, you may set the environment variables LIBUSB_1_0_CFLAGS
11640 and LIBUSB_1_0_LIBS to avoid the need to call pkg-config.
11641 See the pkg-config man page for more details." "$LINENO" 5
11642 elif test $pkg_failed = untried; then
11643         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644 $as_echo "no" >&6; }
11645         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11647 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11648 is in your PATH or set the PKG_CONFIG environment variable to the full
11649 path to pkg-config.
11650
11651 Alternatively, you may set the environment variables LIBUSB_1_0_CFLAGS
11652 and LIBUSB_1_0_LIBS to avoid the need to call pkg-config.
11653 See the pkg-config man page for more details.
11654
11655 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11656 See \`config.log' for more details" "$LINENO" 5; }
11657 else
11658         LIBUSB_1_0_CFLAGS=$pkg_cv_LIBUSB_1_0_CFLAGS
11659         LIBUSB_1_0_LIBS=$pkg_cv_LIBUSB_1_0_LIBS
11660         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11661 $as_echo "yes" >&6; }
11662
11663 fi
11664
11665
11666
11667 # Message logging
11668 # Check whether --enable-log was given.
11669 if test "${enable_log+set}" = set; then :
11670   enableval=$enable_log; log_enabled=$enableval
11671 else
11672   log_enabled='yes'
11673 fi
11674
11675 if test "x$log_enabled" != "xno"; then
11676
11677 $as_echo "#define ENABLE_LOGGING 1" >>confdefs.h
11678
11679 fi
11680
11681 # Check whether --enable-debug-log was given.
11682 if test "${enable_debug_log+set}" = set; then :
11683   enableval=$enable_debug_log; debug_log_enabled=$enableval
11684 else
11685   debug_log_enabled='no'
11686 fi
11687
11688 if test "x$debug_log_enabled" != "xno"; then
11689
11690 $as_echo "#define ENABLE_DEBUG_LOGGING 1" >>confdefs.h
11691
11692 fi
11693
11694 # Examples build
11695 # Check whether --enable-examples-build was given.
11696 if test "${enable_examples_build+set}" = set; then :
11697   enableval=$enable_examples_build; build_examples=$enableval
11698 else
11699   build_examples='no'
11700 fi
11701
11702  if test "x$build_examples" != "xno"; then
11703   BUILD_EXAMPLES_TRUE=
11704   BUILD_EXAMPLES_FALSE='#'
11705 else
11706   BUILD_EXAMPLES_TRUE='#'
11707   BUILD_EXAMPLES_FALSE=
11708 fi
11709
11710
11711 # Restore gnu89 inline semantics on gcc 4.3 and newer
11712 saved_cflags="$CFLAGS"
11713 CFLAGS="$CFLAGS -fgnu89-inline"
11714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715 /* end confdefs.h.  */
11716
11717 int
11718 main ()
11719 {
11720
11721   ;
11722   return 0;
11723 }
11724 _ACEOF
11725 if ac_fn_c_try_compile "$LINENO"; then :
11726   inline_cflags="-fgnu89-inline"
11727 else
11728   inline_cflags=""
11729 fi
11730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11731 CFLAGS="$saved_cflags"
11732
11733
11734 $as_echo "#define API_EXPORTED __attribute__((visibility(\"default\")))" >>confdefs.h
11735
11736 AM_CFLAGS="-std=gnu99 $inline_cflags -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow"
11737
11738
11739 ac_config_files="$ac_config_files libusb.pc libusb-config Makefile libusb/Makefile examples/Makefile"
11740
11741 ac_config_commands="$ac_config_commands default"
11742
11743
11744 cat >confcache <<\_ACEOF
11745 # This file is a shell script that caches the results of configure
11746 # tests run on this system so they can be shared between configure
11747 # scripts and configure runs, see configure's option --config-cache.
11748 # It is not useful on other systems.  If it contains results you don't
11749 # want to keep, you may remove or edit it.
11750 #
11751 # config.status only pays attention to the cache file if you give it
11752 # the --recheck option to rerun configure.
11753 #
11754 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11755 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11756 # following values.
11757
11758 _ACEOF
11759
11760 # The following way of writing the cache mishandles newlines in values,
11761 # but we know of no workaround that is simple, portable, and efficient.
11762 # So, we kill variables containing newlines.
11763 # Ultrix sh set writes to stderr and can't be redirected directly,
11764 # and sets the high bit in the cache file unless we assign to the vars.
11765 (
11766   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11767     eval ac_val=\$$ac_var
11768     case $ac_val in #(
11769     *${as_nl}*)
11770       case $ac_var in #(
11771       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11772 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11773       esac
11774       case $ac_var in #(
11775       _ | IFS | as_nl) ;; #(
11776       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11777       *) { eval $ac_var=; unset $ac_var;} ;;
11778       esac ;;
11779     esac
11780   done
11781
11782   (set) 2>&1 |
11783     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11784     *${as_nl}ac_space=\ *)
11785       # `set' does not quote correctly, so add quotes: double-quote
11786       # substitution turns \\\\ into \\, and sed turns \\ into \.
11787       sed -n \
11788         "s/'/'\\\\''/g;
11789           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11790       ;; #(
11791     *)
11792       # `set' quotes correctly as required by POSIX, so do not add quotes.
11793       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11794       ;;
11795     esac |
11796     sort
11797 ) |
11798   sed '
11799      /^ac_cv_env_/b end
11800      t clear
11801      :clear
11802      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11803      t end
11804      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11805      :end' >>confcache
11806 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11807   if test -w "$cache_file"; then
11808     if test "x$cache_file" != "x/dev/null"; then
11809       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11810 $as_echo "$as_me: updating cache $cache_file" >&6;}
11811       if test ! -f "$cache_file" || test -h "$cache_file"; then
11812         cat confcache >"$cache_file"
11813       else
11814         case $cache_file in #(
11815         */* | ?:*)
11816           mv -f confcache "$cache_file"$$ &&
11817           mv -f "$cache_file"$$ "$cache_file" ;; #(
11818         *)
11819           mv -f confcache "$cache_file" ;;
11820         esac
11821       fi
11822     fi
11823   else
11824     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11825 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11826   fi
11827 fi
11828 rm -f confcache
11829
11830 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11831 # Let make expand exec_prefix.
11832 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11833
11834 DEFS=-DHAVE_CONFIG_H
11835
11836 ac_libobjs=
11837 ac_ltlibobjs=
11838 U=
11839 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11840   # 1. Remove the extension, and $U if already installed.
11841   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11842   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11843   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11844   #    will be set to the directory where LIBOBJS objects are built.
11845   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11846   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11847 done
11848 LIBOBJS=$ac_libobjs
11849
11850 LTLIBOBJS=$ac_ltlibobjs
11851
11852
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11854 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11855    if test -n "$am_sleep_pid"; then
11856      # Hide warnings about reused PIDs.
11857      wait $am_sleep_pid 2>/dev/null
11858    fi
11859    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11860 $as_echo "done" >&6; }
11861  if test -n "$EXEEXT"; then
11862   am__EXEEXT_TRUE=
11863   am__EXEEXT_FALSE='#'
11864 else
11865   am__EXEEXT_TRUE='#'
11866   am__EXEEXT_FALSE=
11867 fi
11868
11869 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11870   as_fn_error $? "conditional \"AMDEP\" was never defined.
11871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11872 fi
11873 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11874   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11876 fi
11877 if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
11878   as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
11879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11880 fi
11881
11882 : "${CONFIG_STATUS=./config.status}"
11883 ac_write_fail=0
11884 ac_clean_files_save=$ac_clean_files
11885 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11887 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11888 as_write_fail=0
11889 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11890 #! $SHELL
11891 # Generated by $as_me.
11892 # Run this file to recreate the current configuration.
11893 # Compiler output produced by configure, useful for debugging
11894 # configure, is in config.log if it exists.
11895
11896 debug=false
11897 ac_cs_recheck=false
11898 ac_cs_silent=false
11899
11900 SHELL=\${CONFIG_SHELL-$SHELL}
11901 export SHELL
11902 _ASEOF
11903 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11904 ## -------------------- ##
11905 ## M4sh Initialization. ##
11906 ## -------------------- ##
11907
11908 # Be more Bourne compatible
11909 DUALCASE=1; export DUALCASE # for MKS sh
11910 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11911   emulate sh
11912   NULLCMD=:
11913   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11914   # is contrary to our usage.  Disable this feature.
11915   alias -g '${1+"$@"}'='"$@"'
11916   setopt NO_GLOB_SUBST
11917 else
11918   case `(set -o) 2>/dev/null` in #(
11919   *posix*) :
11920     set -o posix ;; #(
11921   *) :
11922      ;;
11923 esac
11924 fi
11925
11926
11927 as_nl='
11928 '
11929 export as_nl
11930 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11931 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11932 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11933 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11934 # Prefer a ksh shell builtin over an external printf program on Solaris,
11935 # but without wasting forks for bash or zsh.
11936 if test -z "$BASH_VERSION$ZSH_VERSION" \
11937     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11938   as_echo='print -r --'
11939   as_echo_n='print -rn --'
11940 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11941   as_echo='printf %s\n'
11942   as_echo_n='printf %s'
11943 else
11944   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11945     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11946     as_echo_n='/usr/ucb/echo -n'
11947   else
11948     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11949     as_echo_n_body='eval
11950       arg=$1;
11951       case $arg in #(
11952       *"$as_nl"*)
11953         expr "X$arg" : "X\\(.*\\)$as_nl";
11954         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11955       esac;
11956       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11957     '
11958     export as_echo_n_body
11959     as_echo_n='sh -c $as_echo_n_body as_echo'
11960   fi
11961   export as_echo_body
11962   as_echo='sh -c $as_echo_body as_echo'
11963 fi
11964
11965 # The user is always right.
11966 if test "${PATH_SEPARATOR+set}" != set; then
11967   PATH_SEPARATOR=:
11968   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11969     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11970       PATH_SEPARATOR=';'
11971   }
11972 fi
11973
11974
11975 # IFS
11976 # We need space, tab and new line, in precisely that order.  Quoting is
11977 # there to prevent editors from complaining about space-tab.
11978 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11979 # splitting by setting IFS to empty value.)
11980 IFS=" ""        $as_nl"
11981
11982 # Find who we are.  Look in the path if we contain no directory separator.
11983 as_myself=
11984 case $0 in #((
11985   *[\\/]* ) as_myself=$0 ;;
11986   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11987 for as_dir in $PATH
11988 do
11989   IFS=$as_save_IFS
11990   test -z "$as_dir" && as_dir=.
11991     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11992   done
11993 IFS=$as_save_IFS
11994
11995      ;;
11996 esac
11997 # We did not find ourselves, most probably we were run as `sh COMMAND'
11998 # in which case we are not to be found in the path.
11999 if test "x$as_myself" = x; then
12000   as_myself=$0
12001 fi
12002 if test ! -f "$as_myself"; then
12003   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12004   exit 1
12005 fi
12006
12007 # Unset variables that we do not need and which cause bugs (e.g. in
12008 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12009 # suppresses any "Segmentation fault" message there.  '((' could
12010 # trigger a bug in pdksh 5.2.14.
12011 for as_var in BASH_ENV ENV MAIL MAILPATH
12012 do eval test x\${$as_var+set} = xset \
12013   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12014 done
12015 PS1='$ '
12016 PS2='> '
12017 PS4='+ '
12018
12019 # NLS nuisances.
12020 LC_ALL=C
12021 export LC_ALL
12022 LANGUAGE=C
12023 export LANGUAGE
12024
12025 # CDPATH.
12026 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12027
12028
12029 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12030 # ----------------------------------------
12031 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12032 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12033 # script with STATUS, using 1 if that was 0.
12034 as_fn_error ()
12035 {
12036   as_status=$1; test $as_status -eq 0 && as_status=1
12037   if test "$4"; then
12038     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12039     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12040   fi
12041   $as_echo "$as_me: error: $2" >&2
12042   as_fn_exit $as_status
12043 } # as_fn_error
12044
12045
12046 # as_fn_set_status STATUS
12047 # -----------------------
12048 # Set $? to STATUS, without forking.
12049 as_fn_set_status ()
12050 {
12051   return $1
12052 } # as_fn_set_status
12053
12054 # as_fn_exit STATUS
12055 # -----------------
12056 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12057 as_fn_exit ()
12058 {
12059   set +e
12060   as_fn_set_status $1
12061   exit $1
12062 } # as_fn_exit
12063
12064 # as_fn_unset VAR
12065 # ---------------
12066 # Portably unset VAR.
12067 as_fn_unset ()
12068 {
12069   { eval $1=; unset $1;}
12070 }
12071 as_unset=as_fn_unset
12072 # as_fn_append VAR VALUE
12073 # ----------------------
12074 # Append the text in VALUE to the end of the definition contained in VAR. Take
12075 # advantage of any shell optimizations that allow amortized linear growth over
12076 # repeated appends, instead of the typical quadratic growth present in naive
12077 # implementations.
12078 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12079   eval 'as_fn_append ()
12080   {
12081     eval $1+=\$2
12082   }'
12083 else
12084   as_fn_append ()
12085   {
12086     eval $1=\$$1\$2
12087   }
12088 fi # as_fn_append
12089
12090 # as_fn_arith ARG...
12091 # ------------------
12092 # Perform arithmetic evaluation on the ARGs, and store the result in the
12093 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12094 # must be portable across $(()) and expr.
12095 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12096   eval 'as_fn_arith ()
12097   {
12098     as_val=$(( $* ))
12099   }'
12100 else
12101   as_fn_arith ()
12102   {
12103     as_val=`expr "$@" || test $? -eq 1`
12104   }
12105 fi # as_fn_arith
12106
12107
12108 if expr a : '\(a\)' >/dev/null 2>&1 &&
12109    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12110   as_expr=expr
12111 else
12112   as_expr=false
12113 fi
12114
12115 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12116   as_basename=basename
12117 else
12118   as_basename=false
12119 fi
12120
12121 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12122   as_dirname=dirname
12123 else
12124   as_dirname=false
12125 fi
12126
12127 as_me=`$as_basename -- "$0" ||
12128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12129          X"$0" : 'X\(//\)$' \| \
12130          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12131 $as_echo X/"$0" |
12132     sed '/^.*\/\([^/][^/]*\)\/*$/{
12133             s//\1/
12134             q
12135           }
12136           /^X\/\(\/\/\)$/{
12137             s//\1/
12138             q
12139           }
12140           /^X\/\(\/\).*/{
12141             s//\1/
12142             q
12143           }
12144           s/.*/./; q'`
12145
12146 # Avoid depending upon Character Ranges.
12147 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12148 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12149 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12150 as_cr_digits='0123456789'
12151 as_cr_alnum=$as_cr_Letters$as_cr_digits
12152
12153 ECHO_C= ECHO_N= ECHO_T=
12154 case `echo -n x` in #(((((
12155 -n*)
12156   case `echo 'xy\c'` in
12157   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12158   xy)  ECHO_C='\c';;
12159   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12160        ECHO_T=' ';;
12161   esac;;
12162 *)
12163   ECHO_N='-n';;
12164 esac
12165
12166 rm -f conf$$ conf$$.exe conf$$.file
12167 if test -d conf$$.dir; then
12168   rm -f conf$$.dir/conf$$.file
12169 else
12170   rm -f conf$$.dir
12171   mkdir conf$$.dir 2>/dev/null
12172 fi
12173 if (echo >conf$$.file) 2>/dev/null; then
12174   if ln -s conf$$.file conf$$ 2>/dev/null; then
12175     as_ln_s='ln -s'
12176     # ... but there are two gotchas:
12177     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12178     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12179     # In both cases, we have to default to `cp -pR'.
12180     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12181       as_ln_s='cp -pR'
12182   elif ln conf$$.file conf$$ 2>/dev/null; then
12183     as_ln_s=ln
12184   else
12185     as_ln_s='cp -pR'
12186   fi
12187 else
12188   as_ln_s='cp -pR'
12189 fi
12190 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12191 rmdir conf$$.dir 2>/dev/null
12192
12193
12194 # as_fn_mkdir_p
12195 # -------------
12196 # Create "$as_dir" as a directory, including parents if necessary.
12197 as_fn_mkdir_p ()
12198 {
12199
12200   case $as_dir in #(
12201   -*) as_dir=./$as_dir;;
12202   esac
12203   test -d "$as_dir" || eval $as_mkdir_p || {
12204     as_dirs=
12205     while :; do
12206       case $as_dir in #(
12207       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12208       *) as_qdir=$as_dir;;
12209       esac
12210       as_dirs="'$as_qdir' $as_dirs"
12211       as_dir=`$as_dirname -- "$as_dir" ||
12212 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12213          X"$as_dir" : 'X\(//\)[^/]' \| \
12214          X"$as_dir" : 'X\(//\)$' \| \
12215          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12216 $as_echo X"$as_dir" |
12217     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12218             s//\1/
12219             q
12220           }
12221           /^X\(\/\/\)[^/].*/{
12222             s//\1/
12223             q
12224           }
12225           /^X\(\/\/\)$/{
12226             s//\1/
12227             q
12228           }
12229           /^X\(\/\).*/{
12230             s//\1/
12231             q
12232           }
12233           s/.*/./; q'`
12234       test -d "$as_dir" && break
12235     done
12236     test -z "$as_dirs" || eval "mkdir $as_dirs"
12237   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12238
12239
12240 } # as_fn_mkdir_p
12241 if mkdir -p . 2>/dev/null; then
12242   as_mkdir_p='mkdir -p "$as_dir"'
12243 else
12244   test -d ./-p && rmdir ./-p
12245   as_mkdir_p=false
12246 fi
12247
12248
12249 # as_fn_executable_p FILE
12250 # -----------------------
12251 # Test if FILE is an executable regular file.
12252 as_fn_executable_p ()
12253 {
12254   test -f "$1" && test -x "$1"
12255 } # as_fn_executable_p
12256 as_test_x='test -x'
12257 as_executable_p=as_fn_executable_p
12258
12259 # Sed expression to map a string onto a valid CPP name.
12260 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12261
12262 # Sed expression to map a string onto a valid variable name.
12263 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12264
12265
12266 exec 6>&1
12267 ## ----------------------------------- ##
12268 ## Main body of $CONFIG_STATUS script. ##
12269 ## ----------------------------------- ##
12270 _ASEOF
12271 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12272
12273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12274 # Save the log message, to keep $0 and so on meaningful, and to
12275 # report actual input values of CONFIG_FILES etc. instead of their
12276 # values after options handling.
12277 ac_log="
12278 This file was extended by libusb-compat $as_me 0.1.5, which was
12279 generated by GNU Autoconf 2.69.  Invocation command line was
12280
12281   CONFIG_FILES    = $CONFIG_FILES
12282   CONFIG_HEADERS  = $CONFIG_HEADERS
12283   CONFIG_LINKS    = $CONFIG_LINKS
12284   CONFIG_COMMANDS = $CONFIG_COMMANDS
12285   $ $0 $@
12286
12287 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12288 "
12289
12290 _ACEOF
12291
12292 case $ac_config_files in *"
12293 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12294 esac
12295
12296 case $ac_config_headers in *"
12297 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12298 esac
12299
12300
12301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12302 # Files that config.status was made for.
12303 config_files="$ac_config_files"
12304 config_headers="$ac_config_headers"
12305 config_commands="$ac_config_commands"
12306
12307 _ACEOF
12308
12309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12310 ac_cs_usage="\
12311 \`$as_me' instantiates files and other configuration actions
12312 from templates according to the current configuration.  Unless the files
12313 and actions are specified as TAGs, all are instantiated by default.
12314
12315 Usage: $0 [OPTION]... [TAG]...
12316
12317   -h, --help       print this help, then exit
12318   -V, --version    print version number and configuration settings, then exit
12319       --config     print configuration, then exit
12320   -q, --quiet, --silent
12321                    do not print progress messages
12322   -d, --debug      don't remove temporary files
12323       --recheck    update $as_me by reconfiguring in the same conditions
12324       --file=FILE[:TEMPLATE]
12325                    instantiate the configuration file FILE
12326       --header=FILE[:TEMPLATE]
12327                    instantiate the configuration header FILE
12328
12329 Configuration files:
12330 $config_files
12331
12332 Configuration headers:
12333 $config_headers
12334
12335 Configuration commands:
12336 $config_commands
12337
12338 Report bugs to the package provider."
12339
12340 _ACEOF
12341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12342 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12343 ac_cs_version="\\
12344 libusb-compat config.status 0.1.5
12345 configured by $0, generated by GNU Autoconf 2.69,
12346   with options \\"\$ac_cs_config\\"
12347
12348 Copyright (C) 2012 Free Software Foundation, Inc.
12349 This config.status script is free software; the Free Software Foundation
12350 gives unlimited permission to copy, distribute and modify it."
12351
12352 ac_pwd='$ac_pwd'
12353 srcdir='$srcdir'
12354 INSTALL='$INSTALL'
12355 MKDIR_P='$MKDIR_P'
12356 AWK='$AWK'
12357 test -n "\$AWK" || AWK=awk
12358 _ACEOF
12359
12360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12361 # The default lists apply if the user does not specify any file.
12362 ac_need_defaults=:
12363 while test $# != 0
12364 do
12365   case $1 in
12366   --*=?*)
12367     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12368     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12369     ac_shift=:
12370     ;;
12371   --*=)
12372     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12373     ac_optarg=
12374     ac_shift=:
12375     ;;
12376   *)
12377     ac_option=$1
12378     ac_optarg=$2
12379     ac_shift=shift
12380     ;;
12381   esac
12382
12383   case $ac_option in
12384   # Handling of the options.
12385   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12386     ac_cs_recheck=: ;;
12387   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12388     $as_echo "$ac_cs_version"; exit ;;
12389   --config | --confi | --conf | --con | --co | --c )
12390     $as_echo "$ac_cs_config"; exit ;;
12391   --debug | --debu | --deb | --de | --d | -d )
12392     debug=: ;;
12393   --file | --fil | --fi | --f )
12394     $ac_shift
12395     case $ac_optarg in
12396     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12397     '') as_fn_error $? "missing file argument" ;;
12398     esac
12399     as_fn_append CONFIG_FILES " '$ac_optarg'"
12400     ac_need_defaults=false;;
12401   --header | --heade | --head | --hea )
12402     $ac_shift
12403     case $ac_optarg in
12404     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12405     esac
12406     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12407     ac_need_defaults=false;;
12408   --he | --h)
12409     # Conflict between --help and --header
12410     as_fn_error $? "ambiguous option: \`$1'
12411 Try \`$0 --help' for more information.";;
12412   --help | --hel | -h )
12413     $as_echo "$ac_cs_usage"; exit ;;
12414   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12415   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12416     ac_cs_silent=: ;;
12417
12418   # This is an error.
12419   -*) as_fn_error $? "unrecognized option: \`$1'
12420 Try \`$0 --help' for more information." ;;
12421
12422   *) as_fn_append ac_config_targets " $1"
12423      ac_need_defaults=false ;;
12424
12425   esac
12426   shift
12427 done
12428
12429 ac_configure_extra_args=
12430
12431 if $ac_cs_silent; then
12432   exec 6>/dev/null
12433   ac_configure_extra_args="$ac_configure_extra_args --silent"
12434 fi
12435
12436 _ACEOF
12437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12438 if \$ac_cs_recheck; then
12439   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12440   shift
12441   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12442   CONFIG_SHELL='$SHELL'
12443   export CONFIG_SHELL
12444   exec "\$@"
12445 fi
12446
12447 _ACEOF
12448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12449 exec 5>>config.log
12450 {
12451   echo
12452   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12453 ## Running $as_me. ##
12454 _ASBOX
12455   $as_echo "$ac_log"
12456 } >&5
12457
12458 _ACEOF
12459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12460 #
12461 # INIT-COMMANDS
12462 #
12463 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12464
12465
12466 # The HP-UX ksh and POSIX shell print the target directory to stdout
12467 # if CDPATH is set.
12468 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12469
12470 sed_quote_subst='$sed_quote_subst'
12471 double_quote_subst='$double_quote_subst'
12472 delay_variable_subst='$delay_variable_subst'
12473 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12474 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12475 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12476 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12477 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12478 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12479 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12480 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12481 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12482 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12483 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12484 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12485 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12486 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12487 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12488 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12489 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12490 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12491 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12492 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12493 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12494 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12495 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12496 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12497 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12498 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12499 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12500 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12501 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12502 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12503 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12504 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12505 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12506 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12507 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12508 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12509 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12510 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12511 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12512 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12513 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12514 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12515 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12516 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12517 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12518 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12519 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12520 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12521 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12522 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12523 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12524 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12525 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12526 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12527 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12528 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12529 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"`'
12530 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12531 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12532 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12533 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12534 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12535 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12536 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12537 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12538 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12539 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12540 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12541 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12542 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12543 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12544 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12545 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12546 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12547 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12548 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12549 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12550 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12551 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12552 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12553 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12554 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12555 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12556 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12557 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12558 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12559 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12560 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12561 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12562 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12563 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12564 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12565 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12566 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12567 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12568 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12569 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12570 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12571 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12572 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12573 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12574 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12575 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12576 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12577 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12578 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12579 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12580 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12581 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12582 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12583 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12584 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12585 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12586 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12587 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12588 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12589 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12590 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12591 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12592 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12593 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12594 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12595 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12596 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12597 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12598 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12599 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12600 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12601 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12602 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12603
12604 LTCC='$LTCC'
12605 LTCFLAGS='$LTCFLAGS'
12606 compiler='$compiler_DEFAULT'
12607
12608 # A function that is used when there is no print builtin or printf.
12609 func_fallback_echo ()
12610 {
12611   eval 'cat <<_LTECHO_EOF
12612 \$1
12613 _LTECHO_EOF'
12614 }
12615
12616 # Quote evaled strings.
12617 for var in SHELL \
12618 ECHO \
12619 PATH_SEPARATOR \
12620 SED \
12621 GREP \
12622 EGREP \
12623 FGREP \
12624 LD \
12625 NM \
12626 LN_S \
12627 lt_SP2NL \
12628 lt_NL2SP \
12629 reload_flag \
12630 OBJDUMP \
12631 deplibs_check_method \
12632 file_magic_cmd \
12633 file_magic_glob \
12634 want_nocaseglob \
12635 DLLTOOL \
12636 sharedlib_from_linklib_cmd \
12637 AR \
12638 AR_FLAGS \
12639 archiver_list_spec \
12640 STRIP \
12641 RANLIB \
12642 CC \
12643 CFLAGS \
12644 compiler \
12645 lt_cv_sys_global_symbol_pipe \
12646 lt_cv_sys_global_symbol_to_cdecl \
12647 lt_cv_sys_global_symbol_to_c_name_address \
12648 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12649 nm_file_list_spec \
12650 lt_prog_compiler_no_builtin_flag \
12651 lt_prog_compiler_pic \
12652 lt_prog_compiler_wl \
12653 lt_prog_compiler_static \
12654 lt_cv_prog_compiler_c_o \
12655 need_locks \
12656 MANIFEST_TOOL \
12657 DSYMUTIL \
12658 NMEDIT \
12659 LIPO \
12660 OTOOL \
12661 OTOOL64 \
12662 shrext_cmds \
12663 export_dynamic_flag_spec \
12664 whole_archive_flag_spec \
12665 compiler_needs_object \
12666 with_gnu_ld \
12667 allow_undefined_flag \
12668 no_undefined_flag \
12669 hardcode_libdir_flag_spec \
12670 hardcode_libdir_separator \
12671 exclude_expsyms \
12672 include_expsyms \
12673 file_list_spec \
12674 variables_saved_for_relink \
12675 libname_spec \
12676 library_names_spec \
12677 soname_spec \
12678 install_override_mode \
12679 finish_eval \
12680 old_striplib \
12681 striplib; do
12682     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12683     *[\\\\\\\`\\"\\\$]*)
12684       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12685       ;;
12686     *)
12687       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12688       ;;
12689     esac
12690 done
12691
12692 # Double-quote double-evaled strings.
12693 for var in reload_cmds \
12694 old_postinstall_cmds \
12695 old_postuninstall_cmds \
12696 old_archive_cmds \
12697 extract_expsyms_cmds \
12698 old_archive_from_new_cmds \
12699 old_archive_from_expsyms_cmds \
12700 archive_cmds \
12701 archive_expsym_cmds \
12702 module_cmds \
12703 module_expsym_cmds \
12704 export_symbols_cmds \
12705 prelink_cmds \
12706 postlink_cmds \
12707 postinstall_cmds \
12708 postuninstall_cmds \
12709 finish_cmds \
12710 sys_lib_search_path_spec \
12711 sys_lib_dlsearch_path_spec; do
12712     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12713     *[\\\\\\\`\\"\\\$]*)
12714       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12715       ;;
12716     *)
12717       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12718       ;;
12719     esac
12720 done
12721
12722 ac_aux_dir='$ac_aux_dir'
12723 xsi_shell='$xsi_shell'
12724 lt_shell_append='$lt_shell_append'
12725
12726 # See if we are running on zsh, and set the options which allow our
12727 # commands through without removal of \ escapes INIT.
12728 if test -n "\${ZSH_VERSION+set}" ; then
12729    setopt NO_GLOB_SUBST
12730 fi
12731
12732
12733     PACKAGE='$PACKAGE'
12734     VERSION='$VERSION'
12735     TIMESTAMP='$TIMESTAMP'
12736     RM='$RM'
12737     ofile='$ofile'
12738
12739
12740
12741
12742
12743 _ACEOF
12744
12745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12746
12747 # Handling of arguments.
12748 for ac_config_target in $ac_config_targets
12749 do
12750   case $ac_config_target in
12751     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12752     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12753     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12754     "libusb.pc") CONFIG_FILES="$CONFIG_FILES libusb.pc" ;;
12755     "libusb-config") CONFIG_FILES="$CONFIG_FILES libusb-config" ;;
12756     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12757     "libusb/Makefile") CONFIG_FILES="$CONFIG_FILES libusb/Makefile" ;;
12758     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
12759     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12760
12761   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12762   esac
12763 done
12764
12765
12766 # If the user did not use the arguments to specify the items to instantiate,
12767 # then the envvar interface is used.  Set only those that are not.
12768 # We use the long form for the default assignment because of an extremely
12769 # bizarre bug on SunOS 4.1.3.
12770 if $ac_need_defaults; then
12771   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12772   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12773   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12774 fi
12775
12776 # Have a temporary directory for convenience.  Make it in the build tree
12777 # simply because there is no reason against having it here, and in addition,
12778 # creating and moving files from /tmp can sometimes cause problems.
12779 # Hook for its removal unless debugging.
12780 # Note that there is a small window in which the directory will not be cleaned:
12781 # after its creation but before its name has been assigned to `$tmp'.
12782 $debug ||
12783 {
12784   tmp= ac_tmp=
12785   trap 'exit_status=$?
12786   : "${ac_tmp:=$tmp}"
12787   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12788 ' 0
12789   trap 'as_fn_exit 1' 1 2 13 15
12790 }
12791 # Create a (secure) tmp directory for tmp files.
12792
12793 {
12794   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12795   test -d "$tmp"
12796 }  ||
12797 {
12798   tmp=./conf$$-$RANDOM
12799   (umask 077 && mkdir "$tmp")
12800 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12801 ac_tmp=$tmp
12802
12803 # Set up the scripts for CONFIG_FILES section.
12804 # No need to generate them if there are no CONFIG_FILES.
12805 # This happens for instance with `./config.status config.h'.
12806 if test -n "$CONFIG_FILES"; then
12807
12808
12809 ac_cr=`echo X | tr X '\015'`
12810 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12811 # But we know of no other shell where ac_cr would be empty at this
12812 # point, so we can use a bashism as a fallback.
12813 if test "x$ac_cr" = x; then
12814   eval ac_cr=\$\'\\r\'
12815 fi
12816 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12817 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12818   ac_cs_awk_cr='\\r'
12819 else
12820   ac_cs_awk_cr=$ac_cr
12821 fi
12822
12823 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12824 _ACEOF
12825
12826
12827 {
12828   echo "cat >conf$$subs.awk <<_ACEOF" &&
12829   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12830   echo "_ACEOF"
12831 } >conf$$subs.sh ||
12832   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12833 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12834 ac_delim='%!_!# '
12835 for ac_last_try in false false false false false :; do
12836   . ./conf$$subs.sh ||
12837     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12838
12839   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12840   if test $ac_delim_n = $ac_delim_num; then
12841     break
12842   elif $ac_last_try; then
12843     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12844   else
12845     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12846   fi
12847 done
12848 rm -f conf$$subs.sh
12849
12850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12851 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12852 _ACEOF
12853 sed -n '
12854 h
12855 s/^/S["/; s/!.*/"]=/
12856 p
12857 g
12858 s/^[^!]*!//
12859 :repl
12860 t repl
12861 s/'"$ac_delim"'$//
12862 t delim
12863 :nl
12864 h
12865 s/\(.\{148\}\)..*/\1/
12866 t more1
12867 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12868 p
12869 n
12870 b repl
12871 :more1
12872 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12873 p
12874 g
12875 s/.\{148\}//
12876 t nl
12877 :delim
12878 h
12879 s/\(.\{148\}\)..*/\1/
12880 t more2
12881 s/["\\]/\\&/g; s/^/"/; s/$/"/
12882 p
12883 b
12884 :more2
12885 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12886 p
12887 g
12888 s/.\{148\}//
12889 t delim
12890 ' <conf$$subs.awk | sed '
12891 /^[^""]/{
12892   N
12893   s/\n//
12894 }
12895 ' >>$CONFIG_STATUS || ac_write_fail=1
12896 rm -f conf$$subs.awk
12897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12898 _ACAWK
12899 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12900   for (key in S) S_is_set[key] = 1
12901   FS = "\a"
12902
12903 }
12904 {
12905   line = $ 0
12906   nfields = split(line, field, "@")
12907   substed = 0
12908   len = length(field[1])
12909   for (i = 2; i < nfields; i++) {
12910     key = field[i]
12911     keylen = length(key)
12912     if (S_is_set[key]) {
12913       value = S[key]
12914       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12915       len += length(value) + length(field[++i])
12916       substed = 1
12917     } else
12918       len += 1 + keylen
12919   }
12920
12921   print line
12922 }
12923
12924 _ACAWK
12925 _ACEOF
12926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12927 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12928   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12929 else
12930   cat
12931 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12932   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12933 _ACEOF
12934
12935 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12936 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12937 # trailing colons and then remove the whole line if VPATH becomes empty
12938 # (actually we leave an empty line to preserve line numbers).
12939 if test "x$srcdir" = x.; then
12940   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12941 h
12942 s///
12943 s/^/:/
12944 s/[      ]*$/:/
12945 s/:\$(srcdir):/:/g
12946 s/:\${srcdir}:/:/g
12947 s/:@srcdir@:/:/g
12948 s/^:*//
12949 s/:*$//
12950 x
12951 s/\(=[   ]*\).*/\1/
12952 G
12953 s/\n//
12954 s/^[^=]*=[       ]*$//
12955 }'
12956 fi
12957
12958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12959 fi # test -n "$CONFIG_FILES"
12960
12961 # Set up the scripts for CONFIG_HEADERS section.
12962 # No need to generate them if there are no CONFIG_HEADERS.
12963 # This happens for instance with `./config.status Makefile'.
12964 if test -n "$CONFIG_HEADERS"; then
12965 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12966 BEGIN {
12967 _ACEOF
12968
12969 # Transform confdefs.h into an awk script `defines.awk', embedded as
12970 # here-document in config.status, that substitutes the proper values into
12971 # config.h.in to produce config.h.
12972
12973 # Create a delimiter string that does not exist in confdefs.h, to ease
12974 # handling of long lines.
12975 ac_delim='%!_!# '
12976 for ac_last_try in false false :; do
12977   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12978   if test -z "$ac_tt"; then
12979     break
12980   elif $ac_last_try; then
12981     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12982   else
12983     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12984   fi
12985 done
12986
12987 # For the awk script, D is an array of macro values keyed by name,
12988 # likewise P contains macro parameters if any.  Preserve backslash
12989 # newline sequences.
12990
12991 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12992 sed -n '
12993 s/.\{148\}/&'"$ac_delim"'/g
12994 t rset
12995 :rset
12996 s/^[     ]*#[    ]*define[       ][      ]*/ /
12997 t def
12998 d
12999 :def
13000 s/\\$//
13001 t bsnl
13002 s/["\\]/\\&/g
13003 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13004 D["\1"]=" \3"/p
13005 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13006 d
13007 :bsnl
13008 s/["\\]/\\&/g
13009 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13010 D["\1"]=" \3\\\\\\n"\\/p
13011 t cont
13012 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13013 t cont
13014 d
13015 :cont
13016 n
13017 s/.\{148\}/&'"$ac_delim"'/g
13018 t clear
13019 :clear
13020 s/\\$//
13021 t bsnlc
13022 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13023 d
13024 :bsnlc
13025 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13026 b cont
13027 ' <confdefs.h | sed '
13028 s/'"$ac_delim"'/"\\\
13029 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13030
13031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13032   for (key in D) D_is_set[key] = 1
13033   FS = "\a"
13034 }
13035 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13036   line = \$ 0
13037   split(line, arg, " ")
13038   if (arg[1] == "#") {
13039     defundef = arg[2]
13040     mac1 = arg[3]
13041   } else {
13042     defundef = substr(arg[1], 2)
13043     mac1 = arg[2]
13044   }
13045   split(mac1, mac2, "(") #)
13046   macro = mac2[1]
13047   prefix = substr(line, 1, index(line, defundef) - 1)
13048   if (D_is_set[macro]) {
13049     # Preserve the white space surrounding the "#".
13050     print prefix "define", macro P[macro] D[macro]
13051     next
13052   } else {
13053     # Replace #undef with comments.  This is necessary, for example,
13054     # in the case of _POSIX_SOURCE, which is predefined and required
13055     # on some systems where configure will not decide to define it.
13056     if (defundef == "undef") {
13057       print "/*", prefix defundef, macro, "*/"
13058       next
13059     }
13060   }
13061 }
13062 { print }
13063 _ACAWK
13064 _ACEOF
13065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13066   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13067 fi # test -n "$CONFIG_HEADERS"
13068
13069
13070 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13071 shift
13072 for ac_tag
13073 do
13074   case $ac_tag in
13075   :[FHLC]) ac_mode=$ac_tag; continue;;
13076   esac
13077   case $ac_mode$ac_tag in
13078   :[FHL]*:*);;
13079   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13080   :[FH]-) ac_tag=-:-;;
13081   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13082   esac
13083   ac_save_IFS=$IFS
13084   IFS=:
13085   set x $ac_tag
13086   IFS=$ac_save_IFS
13087   shift
13088   ac_file=$1
13089   shift
13090
13091   case $ac_mode in
13092   :L) ac_source=$1;;
13093   :[FH])
13094     ac_file_inputs=
13095     for ac_f
13096     do
13097       case $ac_f in
13098       -) ac_f="$ac_tmp/stdin";;
13099       *) # Look for the file first in the build tree, then in the source tree
13100          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13101          # because $ac_f cannot contain `:'.
13102          test -f "$ac_f" ||
13103            case $ac_f in
13104            [\\/$]*) false;;
13105            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13106            esac ||
13107            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13108       esac
13109       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13110       as_fn_append ac_file_inputs " '$ac_f'"
13111     done
13112
13113     # Let's still pretend it is `configure' which instantiates (i.e., don't
13114     # use $as_me), people would be surprised to read:
13115     #    /* config.h.  Generated by config.status.  */
13116     configure_input='Generated from '`
13117           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13118         `' by configure.'
13119     if test x"$ac_file" != x-; then
13120       configure_input="$ac_file.  $configure_input"
13121       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13122 $as_echo "$as_me: creating $ac_file" >&6;}
13123     fi
13124     # Neutralize special characters interpreted by sed in replacement strings.
13125     case $configure_input in #(
13126     *\&* | *\|* | *\\* )
13127        ac_sed_conf_input=`$as_echo "$configure_input" |
13128        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13129     *) ac_sed_conf_input=$configure_input;;
13130     esac
13131
13132     case $ac_tag in
13133     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13134       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13135     esac
13136     ;;
13137   esac
13138
13139   ac_dir=`$as_dirname -- "$ac_file" ||
13140 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13141          X"$ac_file" : 'X\(//\)[^/]' \| \
13142          X"$ac_file" : 'X\(//\)$' \| \
13143          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13144 $as_echo X"$ac_file" |
13145     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13146             s//\1/
13147             q
13148           }
13149           /^X\(\/\/\)[^/].*/{
13150             s//\1/
13151             q
13152           }
13153           /^X\(\/\/\)$/{
13154             s//\1/
13155             q
13156           }
13157           /^X\(\/\).*/{
13158             s//\1/
13159             q
13160           }
13161           s/.*/./; q'`
13162   as_dir="$ac_dir"; as_fn_mkdir_p
13163   ac_builddir=.
13164
13165 case "$ac_dir" in
13166 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13167 *)
13168   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13169   # A ".." for each directory in $ac_dir_suffix.
13170   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13171   case $ac_top_builddir_sub in
13172   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13173   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13174   esac ;;
13175 esac
13176 ac_abs_top_builddir=$ac_pwd
13177 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13178 # for backward compatibility:
13179 ac_top_builddir=$ac_top_build_prefix
13180
13181 case $srcdir in
13182   .)  # We are building in place.
13183     ac_srcdir=.
13184     ac_top_srcdir=$ac_top_builddir_sub
13185     ac_abs_top_srcdir=$ac_pwd ;;
13186   [\\/]* | ?:[\\/]* )  # Absolute name.
13187     ac_srcdir=$srcdir$ac_dir_suffix;
13188     ac_top_srcdir=$srcdir
13189     ac_abs_top_srcdir=$srcdir ;;
13190   *) # Relative name.
13191     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13192     ac_top_srcdir=$ac_top_build_prefix$srcdir
13193     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13194 esac
13195 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13196
13197
13198   case $ac_mode in
13199   :F)
13200   #
13201   # CONFIG_FILE
13202   #
13203
13204   case $INSTALL in
13205   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13206   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13207   esac
13208   ac_MKDIR_P=$MKDIR_P
13209   case $MKDIR_P in
13210   [\\/$]* | ?:[\\/]* ) ;;
13211   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13212   esac
13213 _ACEOF
13214
13215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13216 # If the template does not know about datarootdir, expand it.
13217 # FIXME: This hack should be removed a few years after 2.60.
13218 ac_datarootdir_hack=; ac_datarootdir_seen=
13219 ac_sed_dataroot='
13220 /datarootdir/ {
13221   p
13222   q
13223 }
13224 /@datadir@/p
13225 /@docdir@/p
13226 /@infodir@/p
13227 /@localedir@/p
13228 /@mandir@/p'
13229 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13230 *datarootdir*) ac_datarootdir_seen=yes;;
13231 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13232   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13233 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13234 _ACEOF
13235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13236   ac_datarootdir_hack='
13237   s&@datadir@&$datadir&g
13238   s&@docdir@&$docdir&g
13239   s&@infodir@&$infodir&g
13240   s&@localedir@&$localedir&g
13241   s&@mandir@&$mandir&g
13242   s&\\\${datarootdir}&$datarootdir&g' ;;
13243 esac
13244 _ACEOF
13245
13246 # Neutralize VPATH when `$srcdir' = `.'.
13247 # Shell code in configure.ac might set extrasub.
13248 # FIXME: do we really want to maintain this feature?
13249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13250 ac_sed_extra="$ac_vpsub
13251 $extrasub
13252 _ACEOF
13253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13254 :t
13255 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13256 s|@configure_input@|$ac_sed_conf_input|;t t
13257 s&@top_builddir@&$ac_top_builddir_sub&;t t
13258 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13259 s&@srcdir@&$ac_srcdir&;t t
13260 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13261 s&@top_srcdir@&$ac_top_srcdir&;t t
13262 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13263 s&@builddir@&$ac_builddir&;t t
13264 s&@abs_builddir@&$ac_abs_builddir&;t t
13265 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13266 s&@INSTALL@&$ac_INSTALL&;t t
13267 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13268 $ac_datarootdir_hack
13269 "
13270 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13271   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13272
13273 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13274   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13275   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13276       "$ac_tmp/out"`; test -z "$ac_out"; } &&
13277   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13278 which seems to be undefined.  Please make sure it is defined" >&5
13279 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13280 which seems to be undefined.  Please make sure it is defined" >&2;}
13281
13282   rm -f "$ac_tmp/stdin"
13283   case $ac_file in
13284   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13285   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13286   esac \
13287   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13288  ;;
13289   :H)
13290   #
13291   # CONFIG_HEADER
13292   #
13293   if test x"$ac_file" != x-; then
13294     {
13295       $as_echo "/* $configure_input  */" \
13296       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13297     } >"$ac_tmp/config.h" \
13298       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13299     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13300       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13301 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13302     else
13303       rm -f "$ac_file"
13304       mv "$ac_tmp/config.h" "$ac_file" \
13305         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13306     fi
13307   else
13308     $as_echo "/* $configure_input  */" \
13309       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13310       || as_fn_error $? "could not create -" "$LINENO" 5
13311   fi
13312 # Compute "$ac_file"'s index in $config_headers.
13313 _am_arg="$ac_file"
13314 _am_stamp_count=1
13315 for _am_header in $config_headers :; do
13316   case $_am_header in
13317     $_am_arg | $_am_arg:* )
13318       break ;;
13319     * )
13320       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13321   esac
13322 done
13323 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13324 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13325          X"$_am_arg" : 'X\(//\)[^/]' \| \
13326          X"$_am_arg" : 'X\(//\)$' \| \
13327          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13328 $as_echo X"$_am_arg" |
13329     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13330             s//\1/
13331             q
13332           }
13333           /^X\(\/\/\)[^/].*/{
13334             s//\1/
13335             q
13336           }
13337           /^X\(\/\/\)$/{
13338             s//\1/
13339             q
13340           }
13341           /^X\(\/\).*/{
13342             s//\1/
13343             q
13344           }
13345           s/.*/./; q'`/stamp-h$_am_stamp_count
13346  ;;
13347
13348   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13349 $as_echo "$as_me: executing $ac_file commands" >&6;}
13350  ;;
13351   esac
13352
13353
13354   case $ac_file$ac_mode in
13355     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13356   # Older Autoconf quotes --file arguments for eval, but not when files
13357   # are listed without --file.  Let's play safe and only enable the eval
13358   # if we detect the quoting.
13359   case $CONFIG_FILES in
13360   *\'*) eval set x "$CONFIG_FILES" ;;
13361   *)   set x $CONFIG_FILES ;;
13362   esac
13363   shift
13364   for mf
13365   do
13366     # Strip MF so we end up with the name of the file.
13367     mf=`echo "$mf" | sed -e 's/:.*$//'`
13368     # Check whether this is an Automake generated Makefile or not.
13369     # We used to match only the files named 'Makefile.in', but
13370     # some people rename them; so instead we look at the file content.
13371     # Grep'ing the first line is not enough: some people post-process
13372     # each Makefile.in and add a new line on top of each file to say so.
13373     # Grep'ing the whole file is not good either: AIX grep has a line
13374     # limit of 2048, but all sed's we know have understand at least 4000.
13375     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13376       dirpart=`$as_dirname -- "$mf" ||
13377 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13378          X"$mf" : 'X\(//\)[^/]' \| \
13379          X"$mf" : 'X\(//\)$' \| \
13380          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13381 $as_echo X"$mf" |
13382     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13383             s//\1/
13384             q
13385           }
13386           /^X\(\/\/\)[^/].*/{
13387             s//\1/
13388             q
13389           }
13390           /^X\(\/\/\)$/{
13391             s//\1/
13392             q
13393           }
13394           /^X\(\/\).*/{
13395             s//\1/
13396             q
13397           }
13398           s/.*/./; q'`
13399     else
13400       continue
13401     fi
13402     # Extract the definition of DEPDIR, am__include, and am__quote
13403     # from the Makefile without running 'make'.
13404     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13405     test -z "$DEPDIR" && continue
13406     am__include=`sed -n 's/^am__include = //p' < "$mf"`
13407     test -z "am__include" && continue
13408     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13409     # Find all dependency output files, they are included files with
13410     # $(DEPDIR) in their names.  We invoke sed twice because it is the
13411     # simplest approach to changing $(DEPDIR) to its actual value in the
13412     # expansion.
13413     for file in `sed -n "
13414       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13415          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13416       # Make sure the directory exists.
13417       test -f "$dirpart/$file" && continue
13418       fdir=`$as_dirname -- "$file" ||
13419 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13420          X"$file" : 'X\(//\)[^/]' \| \
13421          X"$file" : 'X\(//\)$' \| \
13422          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13423 $as_echo X"$file" |
13424     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13425             s//\1/
13426             q
13427           }
13428           /^X\(\/\/\)[^/].*/{
13429             s//\1/
13430             q
13431           }
13432           /^X\(\/\/\)$/{
13433             s//\1/
13434             q
13435           }
13436           /^X\(\/\).*/{
13437             s//\1/
13438             q
13439           }
13440           s/.*/./; q'`
13441       as_dir=$dirpart/$fdir; as_fn_mkdir_p
13442       # echo "creating $dirpart/$file"
13443       echo '# dummy' > "$dirpart/$file"
13444     done
13445   done
13446 }
13447  ;;
13448     "libtool":C)
13449
13450     # See if we are running on zsh, and set the options which allow our
13451     # commands through without removal of \ escapes.
13452     if test -n "${ZSH_VERSION+set}" ; then
13453       setopt NO_GLOB_SUBST
13454     fi
13455
13456     cfgfile="${ofile}T"
13457     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13458     $RM "$cfgfile"
13459
13460     cat <<_LT_EOF >> "$cfgfile"
13461 #! $SHELL
13462
13463 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13464 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13465 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13466 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13467 #
13468 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13469 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13470 #                 Foundation, Inc.
13471 #   Written by Gordon Matzigkeit, 1996
13472 #
13473 #   This file is part of GNU Libtool.
13474 #
13475 # GNU Libtool is free software; you can redistribute it and/or
13476 # modify it under the terms of the GNU General Public License as
13477 # published by the Free Software Foundation; either version 2 of
13478 # the License, or (at your option) any later version.
13479 #
13480 # As a special exception to the GNU General Public License,
13481 # if you distribute this file as part of a program or library that
13482 # is built using GNU Libtool, you may include this file under the
13483 # same distribution terms that you use for the rest of that program.
13484 #
13485 # GNU Libtool is distributed in the hope that it will be useful,
13486 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13487 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13488 # GNU General Public License for more details.
13489 #
13490 # You should have received a copy of the GNU General Public License
13491 # along with GNU Libtool; see the file COPYING.  If not, a copy
13492 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13493 # obtained by writing to the Free Software Foundation, Inc.,
13494 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13495
13496
13497 # The names of the tagged configurations supported by this script.
13498 available_tags=""
13499
13500 # ### BEGIN LIBTOOL CONFIG
13501
13502 # Which release of libtool.m4 was used?
13503 macro_version=$macro_version
13504 macro_revision=$macro_revision
13505
13506 # Whether or not to build shared libraries.
13507 build_libtool_libs=$enable_shared
13508
13509 # Whether or not to build static libraries.
13510 build_old_libs=$enable_static
13511
13512 # What type of objects to build.
13513 pic_mode=$pic_mode
13514
13515 # Whether or not to optimize for fast installation.
13516 fast_install=$enable_fast_install
13517
13518 # Shell to use when invoking shell scripts.
13519 SHELL=$lt_SHELL
13520
13521 # An echo program that protects backslashes.
13522 ECHO=$lt_ECHO
13523
13524 # The PATH separator for the build system.
13525 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13526
13527 # The host system.
13528 host_alias=$host_alias
13529 host=$host
13530 host_os=$host_os
13531
13532 # The build system.
13533 build_alias=$build_alias
13534 build=$build
13535 build_os=$build_os
13536
13537 # A sed program that does not truncate output.
13538 SED=$lt_SED
13539
13540 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13541 Xsed="\$SED -e 1s/^X//"
13542
13543 # A grep program that handles long lines.
13544 GREP=$lt_GREP
13545
13546 # An ERE matcher.
13547 EGREP=$lt_EGREP
13548
13549 # A literal string matcher.
13550 FGREP=$lt_FGREP
13551
13552 # A BSD- or MS-compatible name lister.
13553 NM=$lt_NM
13554
13555 # Whether we need soft or hard links.
13556 LN_S=$lt_LN_S
13557
13558 # What is the maximum length of a command?
13559 max_cmd_len=$max_cmd_len
13560
13561 # Object file suffix (normally "o").
13562 objext=$ac_objext
13563
13564 # Executable file suffix (normally "").
13565 exeext=$exeext
13566
13567 # whether the shell understands "unset".
13568 lt_unset=$lt_unset
13569
13570 # turn spaces into newlines.
13571 SP2NL=$lt_lt_SP2NL
13572
13573 # turn newlines into spaces.
13574 NL2SP=$lt_lt_NL2SP
13575
13576 # convert \$build file names to \$host format.
13577 to_host_file_cmd=$lt_cv_to_host_file_cmd
13578
13579 # convert \$build files to toolchain format.
13580 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13581
13582 # An object symbol dumper.
13583 OBJDUMP=$lt_OBJDUMP
13584
13585 # Method to check whether dependent libraries are shared objects.
13586 deplibs_check_method=$lt_deplibs_check_method
13587
13588 # Command to use when deplibs_check_method = "file_magic".
13589 file_magic_cmd=$lt_file_magic_cmd
13590
13591 # How to find potential files when deplibs_check_method = "file_magic".
13592 file_magic_glob=$lt_file_magic_glob
13593
13594 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13595 want_nocaseglob=$lt_want_nocaseglob
13596
13597 # DLL creation program.
13598 DLLTOOL=$lt_DLLTOOL
13599
13600 # Command to associate shared and link libraries.
13601 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13602
13603 # The archiver.
13604 AR=$lt_AR
13605
13606 # Flags to create an archive.
13607 AR_FLAGS=$lt_AR_FLAGS
13608
13609 # How to feed a file listing to the archiver.
13610 archiver_list_spec=$lt_archiver_list_spec
13611
13612 # A symbol stripping program.
13613 STRIP=$lt_STRIP
13614
13615 # Commands used to install an old-style archive.
13616 RANLIB=$lt_RANLIB
13617 old_postinstall_cmds=$lt_old_postinstall_cmds
13618 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13619
13620 # Whether to use a lock for old archive extraction.
13621 lock_old_archive_extraction=$lock_old_archive_extraction
13622
13623 # A C compiler.
13624 LTCC=$lt_CC
13625
13626 # LTCC compiler flags.
13627 LTCFLAGS=$lt_CFLAGS
13628
13629 # Take the output of nm and produce a listing of raw symbols and C names.
13630 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13631
13632 # Transform the output of nm in a proper C declaration.
13633 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13634
13635 # Transform the output of nm in a C name address pair.
13636 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13637
13638 # Transform the output of nm in a C name address pair when lib prefix is needed.
13639 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13640
13641 # Specify filename containing input files for \$NM.
13642 nm_file_list_spec=$lt_nm_file_list_spec
13643
13644 # The root where to search for dependent libraries,and in which our libraries should be installed.
13645 lt_sysroot=$lt_sysroot
13646
13647 # The name of the directory that contains temporary libtool files.
13648 objdir=$objdir
13649
13650 # Used to examine libraries when file_magic_cmd begins with "file".
13651 MAGIC_CMD=$MAGIC_CMD
13652
13653 # Must we lock files when doing compilation?
13654 need_locks=$lt_need_locks
13655
13656 # Manifest tool.
13657 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13658
13659 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13660 DSYMUTIL=$lt_DSYMUTIL
13661
13662 # Tool to change global to local symbols on Mac OS X.
13663 NMEDIT=$lt_NMEDIT
13664
13665 # Tool to manipulate fat objects and archives on Mac OS X.
13666 LIPO=$lt_LIPO
13667
13668 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13669 OTOOL=$lt_OTOOL
13670
13671 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13672 OTOOL64=$lt_OTOOL64
13673
13674 # Old archive suffix (normally "a").
13675 libext=$libext
13676
13677 # Shared library suffix (normally ".so").
13678 shrext_cmds=$lt_shrext_cmds
13679
13680 # The commands to extract the exported symbol list from a shared archive.
13681 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13682
13683 # Variables whose values should be saved in libtool wrapper scripts and
13684 # restored at link time.
13685 variables_saved_for_relink=$lt_variables_saved_for_relink
13686
13687 # Do we need the "lib" prefix for modules?
13688 need_lib_prefix=$need_lib_prefix
13689
13690 # Do we need a version for libraries?
13691 need_version=$need_version
13692
13693 # Library versioning type.
13694 version_type=$version_type
13695
13696 # Shared library runtime path variable.
13697 runpath_var=$runpath_var
13698
13699 # Shared library path variable.
13700 shlibpath_var=$shlibpath_var
13701
13702 # Is shlibpath searched before the hard-coded library search path?
13703 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13704
13705 # Format of library name prefix.
13706 libname_spec=$lt_libname_spec
13707
13708 # List of archive names.  First name is the real one, the rest are links.
13709 # The last name is the one that the linker finds with -lNAME
13710 library_names_spec=$lt_library_names_spec
13711
13712 # The coded name of the library, if different from the real name.
13713 soname_spec=$lt_soname_spec
13714
13715 # Permission mode override for installation of shared libraries.
13716 install_override_mode=$lt_install_override_mode
13717
13718 # Command to use after installation of a shared archive.
13719 postinstall_cmds=$lt_postinstall_cmds
13720
13721 # Command to use after uninstallation of a shared archive.
13722 postuninstall_cmds=$lt_postuninstall_cmds
13723
13724 # Commands used to finish a libtool library installation in a directory.
13725 finish_cmds=$lt_finish_cmds
13726
13727 # As "finish_cmds", except a single script fragment to be evaled but
13728 # not shown.
13729 finish_eval=$lt_finish_eval
13730
13731 # Whether we should hardcode library paths into libraries.
13732 hardcode_into_libs=$hardcode_into_libs
13733
13734 # Compile-time system search path for libraries.
13735 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13736
13737 # Run-time system search path for libraries.
13738 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13739
13740 # Whether dlopen is supported.
13741 dlopen_support=$enable_dlopen
13742
13743 # Whether dlopen of programs is supported.
13744 dlopen_self=$enable_dlopen_self
13745
13746 # Whether dlopen of statically linked programs is supported.
13747 dlopen_self_static=$enable_dlopen_self_static
13748
13749 # Commands to strip libraries.
13750 old_striplib=$lt_old_striplib
13751 striplib=$lt_striplib
13752
13753
13754 # The linker used to build libraries.
13755 LD=$lt_LD
13756
13757 # How to create reloadable object files.
13758 reload_flag=$lt_reload_flag
13759 reload_cmds=$lt_reload_cmds
13760
13761 # Commands used to build an old-style archive.
13762 old_archive_cmds=$lt_old_archive_cmds
13763
13764 # A language specific compiler.
13765 CC=$lt_compiler
13766
13767 # Is the compiler the GNU compiler?
13768 with_gcc=$GCC
13769
13770 # Compiler flag to turn off builtin functions.
13771 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13772
13773 # Additional compiler flags for building library objects.
13774 pic_flag=$lt_lt_prog_compiler_pic
13775
13776 # How to pass a linker flag through the compiler.
13777 wl=$lt_lt_prog_compiler_wl
13778
13779 # Compiler flag to prevent dynamic linking.
13780 link_static_flag=$lt_lt_prog_compiler_static
13781
13782 # Does compiler simultaneously support -c and -o options?
13783 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13784
13785 # Whether or not to add -lc for building shared libraries.
13786 build_libtool_need_lc=$archive_cmds_need_lc
13787
13788 # Whether or not to disallow shared libs when runtime libs are static.
13789 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13790
13791 # Compiler flag to allow reflexive dlopens.
13792 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13793
13794 # Compiler flag to generate shared objects directly from archives.
13795 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13796
13797 # Whether the compiler copes with passing no objects directly.
13798 compiler_needs_object=$lt_compiler_needs_object
13799
13800 # Create an old-style archive from a shared archive.
13801 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13802
13803 # Create a temporary old-style archive to link instead of a shared archive.
13804 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13805
13806 # Commands used to build a shared archive.
13807 archive_cmds=$lt_archive_cmds
13808 archive_expsym_cmds=$lt_archive_expsym_cmds
13809
13810 # Commands used to build a loadable module if different from building
13811 # a shared archive.
13812 module_cmds=$lt_module_cmds
13813 module_expsym_cmds=$lt_module_expsym_cmds
13814
13815 # Whether we are building with GNU ld or not.
13816 with_gnu_ld=$lt_with_gnu_ld
13817
13818 # Flag that allows shared libraries with undefined symbols to be built.
13819 allow_undefined_flag=$lt_allow_undefined_flag
13820
13821 # Flag that enforces no undefined symbols.
13822 no_undefined_flag=$lt_no_undefined_flag
13823
13824 # Flag to hardcode \$libdir into a binary during linking.
13825 # This must work even if \$libdir does not exist
13826 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13827
13828 # Whether we need a single "-rpath" flag with a separated argument.
13829 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13830
13831 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13832 # DIR into the resulting binary.
13833 hardcode_direct=$hardcode_direct
13834
13835 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13836 # DIR into the resulting binary and the resulting library dependency is
13837 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13838 # library is relocated.
13839 hardcode_direct_absolute=$hardcode_direct_absolute
13840
13841 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13842 # into the resulting binary.
13843 hardcode_minus_L=$hardcode_minus_L
13844
13845 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13846 # into the resulting binary.
13847 hardcode_shlibpath_var=$hardcode_shlibpath_var
13848
13849 # Set to "yes" if building a shared library automatically hardcodes DIR
13850 # into the library and all subsequent libraries and executables linked
13851 # against it.
13852 hardcode_automatic=$hardcode_automatic
13853
13854 # Set to yes if linker adds runtime paths of dependent libraries
13855 # to runtime path list.
13856 inherit_rpath=$inherit_rpath
13857
13858 # Whether libtool must link a program against all its dependency libraries.
13859 link_all_deplibs=$link_all_deplibs
13860
13861 # Set to "yes" if exported symbols are required.
13862 always_export_symbols=$always_export_symbols
13863
13864 # The commands to list exported symbols.
13865 export_symbols_cmds=$lt_export_symbols_cmds
13866
13867 # Symbols that should not be listed in the preloaded symbols.
13868 exclude_expsyms=$lt_exclude_expsyms
13869
13870 # Symbols that must always be exported.
13871 include_expsyms=$lt_include_expsyms
13872
13873 # Commands necessary for linking programs (against libraries) with templates.
13874 prelink_cmds=$lt_prelink_cmds
13875
13876 # Commands necessary for finishing linking programs.
13877 postlink_cmds=$lt_postlink_cmds
13878
13879 # Specify filename containing input files.
13880 file_list_spec=$lt_file_list_spec
13881
13882 # How to hardcode a shared library path into an executable.
13883 hardcode_action=$hardcode_action
13884
13885 # ### END LIBTOOL CONFIG
13886
13887 _LT_EOF
13888
13889   case $host_os in
13890   aix3*)
13891     cat <<\_LT_EOF >> "$cfgfile"
13892 # AIX sometimes has problems with the GCC collect2 program.  For some
13893 # reason, if we set the COLLECT_NAMES environment variable, the problems
13894 # vanish in a puff of smoke.
13895 if test "X${COLLECT_NAMES+set}" != Xset; then
13896   COLLECT_NAMES=
13897   export COLLECT_NAMES
13898 fi
13899 _LT_EOF
13900     ;;
13901   esac
13902
13903
13904 ltmain="$ac_aux_dir/ltmain.sh"
13905
13906
13907   # We use sed instead of cat because bash on DJGPP gets confused if
13908   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13909   # text mode, it properly converts lines to CR/LF.  This bash problem
13910   # is reportedly fixed, but why not run on old versions too?
13911   sed '$q' "$ltmain" >> "$cfgfile" \
13912      || (rm -f "$cfgfile"; exit 1)
13913
13914   if test x"$xsi_shell" = xyes; then
13915   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13916 func_dirname ()\
13917 {\
13918 \    case ${1} in\
13919 \      */*) func_dirname_result="${1%/*}${2}" ;;\
13920 \      *  ) func_dirname_result="${3}" ;;\
13921 \    esac\
13922 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13923   && mv -f "$cfgfile.tmp" "$cfgfile" \
13924     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13925 test 0 -eq $? || _lt_function_replace_fail=:
13926
13927
13928   sed -e '/^func_basename ()$/,/^} # func_basename /c\
13929 func_basename ()\
13930 {\
13931 \    func_basename_result="${1##*/}"\
13932 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13933   && mv -f "$cfgfile.tmp" "$cfgfile" \
13934     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13935 test 0 -eq $? || _lt_function_replace_fail=:
13936
13937
13938   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13939 func_dirname_and_basename ()\
13940 {\
13941 \    case ${1} in\
13942 \      */*) func_dirname_result="${1%/*}${2}" ;;\
13943 \      *  ) func_dirname_result="${3}" ;;\
13944 \    esac\
13945 \    func_basename_result="${1##*/}"\
13946 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13947   && mv -f "$cfgfile.tmp" "$cfgfile" \
13948     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13949 test 0 -eq $? || _lt_function_replace_fail=:
13950
13951
13952   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13953 func_stripname ()\
13954 {\
13955 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13956 \    # positional parameters, so assign one to ordinary parameter first.\
13957 \    func_stripname_result=${3}\
13958 \    func_stripname_result=${func_stripname_result#"${1}"}\
13959 \    func_stripname_result=${func_stripname_result%"${2}"}\
13960 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13961   && mv -f "$cfgfile.tmp" "$cfgfile" \
13962     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13963 test 0 -eq $? || _lt_function_replace_fail=:
13964
13965
13966   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13967 func_split_long_opt ()\
13968 {\
13969 \    func_split_long_opt_name=${1%%=*}\
13970 \    func_split_long_opt_arg=${1#*=}\
13971 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13972   && mv -f "$cfgfile.tmp" "$cfgfile" \
13973     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13974 test 0 -eq $? || _lt_function_replace_fail=:
13975
13976
13977   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13978 func_split_short_opt ()\
13979 {\
13980 \    func_split_short_opt_arg=${1#??}\
13981 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13982 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13983   && mv -f "$cfgfile.tmp" "$cfgfile" \
13984     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13985 test 0 -eq $? || _lt_function_replace_fail=:
13986
13987
13988   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13989 func_lo2o ()\
13990 {\
13991 \    case ${1} in\
13992 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13993 \      *)    func_lo2o_result=${1} ;;\
13994 \    esac\
13995 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13996   && mv -f "$cfgfile.tmp" "$cfgfile" \
13997     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13998 test 0 -eq $? || _lt_function_replace_fail=:
13999
14000
14001   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14002 func_xform ()\
14003 {\
14004     func_xform_result=${1%.*}.lo\
14005 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14006   && mv -f "$cfgfile.tmp" "$cfgfile" \
14007     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14008 test 0 -eq $? || _lt_function_replace_fail=:
14009
14010
14011   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14012 func_arith ()\
14013 {\
14014     func_arith_result=$(( $* ))\
14015 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14016   && mv -f "$cfgfile.tmp" "$cfgfile" \
14017     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14018 test 0 -eq $? || _lt_function_replace_fail=:
14019
14020
14021   sed -e '/^func_len ()$/,/^} # func_len /c\
14022 func_len ()\
14023 {\
14024     func_len_result=${#1}\
14025 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14026   && mv -f "$cfgfile.tmp" "$cfgfile" \
14027     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14028 test 0 -eq $? || _lt_function_replace_fail=:
14029
14030 fi
14031
14032 if test x"$lt_shell_append" = xyes; then
14033   sed -e '/^func_append ()$/,/^} # func_append /c\
14034 func_append ()\
14035 {\
14036     eval "${1}+=\\${2}"\
14037 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14038   && mv -f "$cfgfile.tmp" "$cfgfile" \
14039     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14040 test 0 -eq $? || _lt_function_replace_fail=:
14041
14042
14043   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14044 func_append_quoted ()\
14045 {\
14046 \    func_quote_for_eval "${2}"\
14047 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14048 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14049   && mv -f "$cfgfile.tmp" "$cfgfile" \
14050     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14051 test 0 -eq $? || _lt_function_replace_fail=:
14052
14053
14054   # Save a `func_append' function call where possible by direct use of '+='
14055   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14056     && mv -f "$cfgfile.tmp" "$cfgfile" \
14057       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14058   test 0 -eq $? || _lt_function_replace_fail=:
14059 else
14060   # Save a `func_append' function call even when '+=' is not available
14061   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14062     && mv -f "$cfgfile.tmp" "$cfgfile" \
14063       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14064   test 0 -eq $? || _lt_function_replace_fail=:
14065 fi
14066
14067 if test x"$_lt_function_replace_fail" = x":"; then
14068   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14069 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14070 fi
14071
14072
14073    mv -f "$cfgfile" "$ofile" ||
14074     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14075   chmod +x "$ofile"
14076
14077  ;;
14078     "default":C) chmod +x libusb-config ;;
14079
14080   esac
14081 done # for ac_tag
14082
14083
14084 as_fn_exit 0
14085 _ACEOF
14086 ac_clean_files=$ac_clean_files_save
14087
14088 test $ac_write_fail = 0 ||
14089   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14090
14091
14092 # configure is writing to config.log, and then calls config.status.
14093 # config.status does its own redirection, appending to config.log.
14094 # Unfortunately, on DOS this fails, as config.log is still kept open
14095 # by configure, so config.status won't be able to write to it; its
14096 # output is simply discarded.  So we exec the FD to /dev/null,
14097 # effectively closing config.log, so it can be properly (re)opened and
14098 # appended to by config.status.  When coming back to configure, we
14099 # need to make the FD available again.
14100 if test "$no_create" != yes; then
14101   ac_cs_success=:
14102   ac_config_status_args=
14103   test "$silent" = yes &&
14104     ac_config_status_args="$ac_config_status_args --quiet"
14105   exec 5>/dev/null
14106   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14107   exec 5>>config.log
14108   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14109   # would make configure fail if this is the last instruction.
14110   $ac_cs_success || as_fn_exit 1
14111 fi
14112 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14113   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14114 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14115 fi
14116
14117