fix svace issue(17705530)
[platform/upstream/libmtp.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libmtp 1.1.11.
4 #
5 # Report bugs to <libmtp-discuss@lists.sourceforge.net>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: libmtp-discuss@lists.sourceforge.net about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libmtp'
592 PACKAGE_TARNAME='libmtp'
593 PACKAGE_VERSION='1.1.11'
594 PACKAGE_STRING='libmtp 1.1.11'
595 PACKAGE_BUGREPORT='libmtp-discuss@lists.sourceforge.net'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/libmtp.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 effective_target
639 LIBOBJS
640 LIBOPENUSB_COMPILE_FALSE
641 LIBOPENUSB_COMPILE_TRUE
642 LIBUSB0_COMPILE_FALSE
643 LIBUSB0_COMPILE_TRUE
644 LIBUSB1_COMPILE_FALSE
645 LIBUSB1_COMPILE_TRUE
646 MTPZ_COMPILE_FALSE
647 MTPZ_COMPILE_TRUE
648 LIBUSB_REQUIRES
649 LIBUSB_LIBS
650 LIBUSB_CFLAGS
651 PKG_CONFIG_LIBDIR
652 PKG_CONFIG_PATH
653 PKG_CONFIG
654 MS_LIB_EXE_FALSE
655 MS_LIB_EXE_TRUE
656 ms_lib_exe
657 COMPILE_MINGW32_FALSE
658 COMPILE_MINGW32_TRUE
659 USE_LINUX_FALSE
660 USE_LINUX_TRUE
661 OSFLAGS
662 HAVE_DOXYGEN_FALSE
663 HAVE_DOXYGEN_TRUE
664 HAVE_DOXYGEN
665 UDEV_MODE
666 UDEV_GROUP
667 UDEV_RULES
668 UDEV
669 LTLIBICONV
670 LIBICONV
671 CPP
672 LT_SYS_LIBRARY_PATH
673 OTOOL64
674 OTOOL
675 LIPO
676 NMEDIT
677 DSYMUTIL
678 MANIFEST_TOOL
679 RANLIB
680 ac_ct_AR
681 AR
682 NM
683 ac_ct_DUMPBIN
684 DUMPBIN
685 LD
686 FGREP
687 EGREP
688 GREP
689 SED
690 LIBTOOL
691 OBJDUMP
692 DLLTOOL
693 AS
694 host_os
695 host_vendor
696 host_cpu
697 host
698 build_os
699 build_vendor
700 build_cpu
701 build
702 LN_S
703 am__fastdepCC_FALSE
704 am__fastdepCC_TRUE
705 CCDEPMODE
706 am__nodep
707 AMDEPBACKSLASH
708 AMDEP_FALSE
709 AMDEP_TRUE
710 am__quote
711 am__include
712 DEPDIR
713 OBJEXT
714 EXEEXT
715 ac_ct_CC
716 CPPFLAGS
717 LDFLAGS
718 CFLAGS
719 CC
720 AM_BACKSLASH
721 AM_DEFAULT_VERBOSITY
722 AM_DEFAULT_V
723 AM_V
724 am__untar
725 am__tar
726 AMTAR
727 am__leading_dot
728 SET_MAKE
729 AWK
730 mkdir_p
731 MKDIR_P
732 INSTALL_STRIP_PROGRAM
733 STRIP
734 install_sh
735 MAKEINFO
736 AUTOHEADER
737 AUTOMAKE
738 AUTOCONF
739 ACLOCAL
740 VERSION
741 PACKAGE
742 CYGPATH_W
743 am__isrc
744 INSTALL_DATA
745 INSTALL_SCRIPT
746 INSTALL_PROGRAM
747 target_alias
748 host_alias
749 build_alias
750 LIBS
751 ECHO_T
752 ECHO_N
753 ECHO_C
754 DEFS
755 mandir
756 localedir
757 libdir
758 psdir
759 pdfdir
760 dvidir
761 htmldir
762 infodir
763 docdir
764 oldincludedir
765 includedir
766 localstatedir
767 sharedstatedir
768 sysconfdir
769 datadir
770 datarootdir
771 libexecdir
772 sbindir
773 bindir
774 program_transform_name
775 prefix
776 exec_prefix
777 PACKAGE_URL
778 PACKAGE_BUGREPORT
779 PACKAGE_STRING
780 PACKAGE_VERSION
781 PACKAGE_TARNAME
782 PACKAGE_NAME
783 PATH_SEPARATOR
784 SHELL'
785 ac_subst_files=''
786 ac_user_opts='
787 enable_option_checking
788 enable_silent_rules
789 enable_dependency_tracking
790 enable_shared
791 enable_static
792 with_pic
793 enable_fast_install
794 with_aix_soname
795 with_gnu_ld
796 with_sysroot
797 enable_libtool_lock
798 enable_rpath
799 with_libiconv_prefix
800 with_udev
801 with_udev_rules
802 with_udev_group
803 with_udev_mode
804 enable_doxygen
805 enable_mtpz
806 enable_largefile
807 '
808       ac_precious_vars='build_alias
809 host_alias
810 target_alias
811 CC
812 CFLAGS
813 LDFLAGS
814 LIBS
815 CPPFLAGS
816 LT_SYS_LIBRARY_PATH
817 CPP
818 PKG_CONFIG
819 PKG_CONFIG_PATH
820 PKG_CONFIG_LIBDIR
821 LIBUSB_CFLAGS
822 LIBUSB_LIBS'
823
824
825 # Initialize some variables set by options.
826 ac_init_help=
827 ac_init_version=false
828 ac_unrecognized_opts=
829 ac_unrecognized_sep=
830 # The variables have the same names as the options, with
831 # dashes changed to underlines.
832 cache_file=/dev/null
833 exec_prefix=NONE
834 no_create=
835 no_recursion=
836 prefix=NONE
837 program_prefix=NONE
838 program_suffix=NONE
839 program_transform_name=s,x,x,
840 silent=
841 site=
842 srcdir=
843 verbose=
844 x_includes=NONE
845 x_libraries=NONE
846
847 # Installation directory options.
848 # These are left unexpanded so users can "make install exec_prefix=/foo"
849 # and all the variables that are supposed to be based on exec_prefix
850 # by default will actually change.
851 # Use braces instead of parens because sh, perl, etc. also accept them.
852 # (The list follows the same order as the GNU Coding Standards.)
853 bindir='${exec_prefix}/bin'
854 sbindir='${exec_prefix}/sbin'
855 libexecdir='${exec_prefix}/libexec'
856 datarootdir='${prefix}/share'
857 datadir='${datarootdir}'
858 sysconfdir='${prefix}/etc'
859 sharedstatedir='${prefix}/com'
860 localstatedir='${prefix}/var'
861 includedir='${prefix}/include'
862 oldincludedir='/usr/include'
863 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
864 infodir='${datarootdir}/info'
865 htmldir='${docdir}'
866 dvidir='${docdir}'
867 pdfdir='${docdir}'
868 psdir='${docdir}'
869 libdir='${exec_prefix}/lib'
870 localedir='${datarootdir}/locale'
871 mandir='${datarootdir}/man'
872
873 ac_prev=
874 ac_dashdash=
875 for ac_option
876 do
877   # If the previous option needs an argument, assign it.
878   if test -n "$ac_prev"; then
879     eval $ac_prev=\$ac_option
880     ac_prev=
881     continue
882   fi
883
884   case $ac_option in
885   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886   *=)   ac_optarg= ;;
887   *)    ac_optarg=yes ;;
888   esac
889
890   # Accept the important Cygnus configure options, so we can diagnose typos.
891
892   case $ac_dashdash$ac_option in
893   --)
894     ac_dashdash=yes ;;
895
896   -bindir | --bindir | --bindi | --bind | --bin | --bi)
897     ac_prev=bindir ;;
898   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
899     bindir=$ac_optarg ;;
900
901   -build | --build | --buil | --bui | --bu)
902     ac_prev=build_alias ;;
903   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
904     build_alias=$ac_optarg ;;
905
906   -cache-file | --cache-file | --cache-fil | --cache-fi \
907   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908     ac_prev=cache_file ;;
909   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
911     cache_file=$ac_optarg ;;
912
913   --config-cache | -C)
914     cache_file=config.cache ;;
915
916   -datadir | --datadir | --datadi | --datad)
917     ac_prev=datadir ;;
918   -datadir=* | --datadir=* | --datadi=* | --datad=*)
919     datadir=$ac_optarg ;;
920
921   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922   | --dataroo | --dataro | --datar)
923     ac_prev=datarootdir ;;
924   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926     datarootdir=$ac_optarg ;;
927
928   -disable-* | --disable-*)
929     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
930     # Reject names that are not valid shell variable names.
931     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932       as_fn_error $? "invalid feature name: $ac_useropt"
933     ac_useropt_orig=$ac_useropt
934     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935     case $ac_user_opts in
936       *"
937 "enable_$ac_useropt"
938 "*) ;;
939       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
940          ac_unrecognized_sep=', ';;
941     esac
942     eval enable_$ac_useropt=no ;;
943
944   -docdir | --docdir | --docdi | --doc | --do)
945     ac_prev=docdir ;;
946   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947     docdir=$ac_optarg ;;
948
949   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950     ac_prev=dvidir ;;
951   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952     dvidir=$ac_optarg ;;
953
954   -enable-* | --enable-*)
955     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956     # Reject names that are not valid shell variable names.
957     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958       as_fn_error $? "invalid feature name: $ac_useropt"
959     ac_useropt_orig=$ac_useropt
960     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961     case $ac_user_opts in
962       *"
963 "enable_$ac_useropt"
964 "*) ;;
965       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966          ac_unrecognized_sep=', ';;
967     esac
968     eval enable_$ac_useropt=\$ac_optarg ;;
969
970   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972   | --exec | --exe | --ex)
973     ac_prev=exec_prefix ;;
974   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976   | --exec=* | --exe=* | --ex=*)
977     exec_prefix=$ac_optarg ;;
978
979   -gas | --gas | --ga | --g)
980     # Obsolete; use --with-gas.
981     with_gas=yes ;;
982
983   -help | --help | --hel | --he | -h)
984     ac_init_help=long ;;
985   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986     ac_init_help=recursive ;;
987   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988     ac_init_help=short ;;
989
990   -host | --host | --hos | --ho)
991     ac_prev=host_alias ;;
992   -host=* | --host=* | --hos=* | --ho=*)
993     host_alias=$ac_optarg ;;
994
995   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
996     ac_prev=htmldir ;;
997   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
998   | --ht=*)
999     htmldir=$ac_optarg ;;
1000
1001   -includedir | --includedir | --includedi | --included | --include \
1002   | --includ | --inclu | --incl | --inc)
1003     ac_prev=includedir ;;
1004   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005   | --includ=* | --inclu=* | --incl=* | --inc=*)
1006     includedir=$ac_optarg ;;
1007
1008   -infodir | --infodir | --infodi | --infod | --info | --inf)
1009     ac_prev=infodir ;;
1010   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1011     infodir=$ac_optarg ;;
1012
1013   -libdir | --libdir | --libdi | --libd)
1014     ac_prev=libdir ;;
1015   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1016     libdir=$ac_optarg ;;
1017
1018   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019   | --libexe | --libex | --libe)
1020     ac_prev=libexecdir ;;
1021   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022   | --libexe=* | --libex=* | --libe=*)
1023     libexecdir=$ac_optarg ;;
1024
1025   -localedir | --localedir | --localedi | --localed | --locale)
1026     ac_prev=localedir ;;
1027   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028     localedir=$ac_optarg ;;
1029
1030   -localstatedir | --localstatedir | --localstatedi | --localstated \
1031   | --localstate | --localstat | --localsta | --localst | --locals)
1032     ac_prev=localstatedir ;;
1033   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1034   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1035     localstatedir=$ac_optarg ;;
1036
1037   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1038     ac_prev=mandir ;;
1039   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1040     mandir=$ac_optarg ;;
1041
1042   -nfp | --nfp | --nf)
1043     # Obsolete; use --without-fp.
1044     with_fp=no ;;
1045
1046   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1047   | --no-cr | --no-c | -n)
1048     no_create=yes ;;
1049
1050   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052     no_recursion=yes ;;
1053
1054   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056   | --oldin | --oldi | --old | --ol | --o)
1057     ac_prev=oldincludedir ;;
1058   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1061     oldincludedir=$ac_optarg ;;
1062
1063   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1064     ac_prev=prefix ;;
1065   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1066     prefix=$ac_optarg ;;
1067
1068   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069   | --program-pre | --program-pr | --program-p)
1070     ac_prev=program_prefix ;;
1071   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1073     program_prefix=$ac_optarg ;;
1074
1075   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076   | --program-suf | --program-su | --program-s)
1077     ac_prev=program_suffix ;;
1078   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1080     program_suffix=$ac_optarg ;;
1081
1082   -program-transform-name | --program-transform-name \
1083   | --program-transform-nam | --program-transform-na \
1084   | --program-transform-n | --program-transform- \
1085   | --program-transform | --program-transfor \
1086   | --program-transfo | --program-transf \
1087   | --program-trans | --program-tran \
1088   | --progr-tra | --program-tr | --program-t)
1089     ac_prev=program_transform_name ;;
1090   -program-transform-name=* | --program-transform-name=* \
1091   | --program-transform-nam=* | --program-transform-na=* \
1092   | --program-transform-n=* | --program-transform-=* \
1093   | --program-transform=* | --program-transfor=* \
1094   | --program-transfo=* | --program-transf=* \
1095   | --program-trans=* | --program-tran=* \
1096   | --progr-tra=* | --program-tr=* | --program-t=*)
1097     program_transform_name=$ac_optarg ;;
1098
1099   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1100     ac_prev=pdfdir ;;
1101   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102     pdfdir=$ac_optarg ;;
1103
1104   -psdir | --psdir | --psdi | --psd | --ps)
1105     ac_prev=psdir ;;
1106   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107     psdir=$ac_optarg ;;
1108
1109   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110   | -silent | --silent | --silen | --sile | --sil)
1111     silent=yes ;;
1112
1113   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1114     ac_prev=sbindir ;;
1115   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1116   | --sbi=* | --sb=*)
1117     sbindir=$ac_optarg ;;
1118
1119   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1120   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1121   | --sharedst | --shareds | --shared | --share | --shar \
1122   | --sha | --sh)
1123     ac_prev=sharedstatedir ;;
1124   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1125   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1126   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1127   | --sha=* | --sh=*)
1128     sharedstatedir=$ac_optarg ;;
1129
1130   -site | --site | --sit)
1131     ac_prev=site ;;
1132   -site=* | --site=* | --sit=*)
1133     site=$ac_optarg ;;
1134
1135   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1136     ac_prev=srcdir ;;
1137   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1138     srcdir=$ac_optarg ;;
1139
1140   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1141   | --syscon | --sysco | --sysc | --sys | --sy)
1142     ac_prev=sysconfdir ;;
1143   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1144   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1145     sysconfdir=$ac_optarg ;;
1146
1147   -target | --target | --targe | --targ | --tar | --ta | --t)
1148     ac_prev=target_alias ;;
1149   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1150     target_alias=$ac_optarg ;;
1151
1152   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1153     verbose=yes ;;
1154
1155   -version | --version | --versio | --versi | --vers | -V)
1156     ac_init_version=: ;;
1157
1158   -with-* | --with-*)
1159     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160     # Reject names that are not valid shell variable names.
1161     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162       as_fn_error $? "invalid package name: $ac_useropt"
1163     ac_useropt_orig=$ac_useropt
1164     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165     case $ac_user_opts in
1166       *"
1167 "with_$ac_useropt"
1168 "*) ;;
1169       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1170          ac_unrecognized_sep=', ';;
1171     esac
1172     eval with_$ac_useropt=\$ac_optarg ;;
1173
1174   -without-* | --without-*)
1175     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1176     # Reject names that are not valid shell variable names.
1177     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178       as_fn_error $? "invalid package name: $ac_useropt"
1179     ac_useropt_orig=$ac_useropt
1180     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181     case $ac_user_opts in
1182       *"
1183 "with_$ac_useropt"
1184 "*) ;;
1185       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1186          ac_unrecognized_sep=', ';;
1187     esac
1188     eval with_$ac_useropt=no ;;
1189
1190   --x)
1191     # Obsolete; use --with-x.
1192     with_x=yes ;;
1193
1194   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195   | --x-incl | --x-inc | --x-in | --x-i)
1196     ac_prev=x_includes ;;
1197   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1199     x_includes=$ac_optarg ;;
1200
1201   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203     ac_prev=x_libraries ;;
1204   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1206     x_libraries=$ac_optarg ;;
1207
1208   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1209 Try \`$0 --help' for more information"
1210     ;;
1211
1212   *=*)
1213     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214     # Reject names that are not valid shell variable names.
1215     case $ac_envvar in #(
1216       '' | [0-9]* | *[!_$as_cr_alnum]* )
1217       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1218     esac
1219     eval $ac_envvar=\$ac_optarg
1220     export $ac_envvar ;;
1221
1222   *)
1223     # FIXME: should be removed in autoconf 3.0.
1224     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1225     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1227     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1228     ;;
1229
1230   esac
1231 done
1232
1233 if test -n "$ac_prev"; then
1234   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1235   as_fn_error $? "missing argument to $ac_option"
1236 fi
1237
1238 if test -n "$ac_unrecognized_opts"; then
1239   case $enable_option_checking in
1240     no) ;;
1241     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1242     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1243   esac
1244 fi
1245
1246 # Check all directory arguments for consistency.
1247 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248                 datadir sysconfdir sharedstatedir localstatedir includedir \
1249                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250                 libdir localedir mandir
1251 do
1252   eval ac_val=\$$ac_var
1253   # Remove trailing slashes.
1254   case $ac_val in
1255     */ )
1256       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1257       eval $ac_var=\$ac_val;;
1258   esac
1259   # Be sure to have absolute directory names.
1260   case $ac_val in
1261     [\\/$]* | ?:[\\/]* )  continue;;
1262     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1263   esac
1264   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1265 done
1266
1267 # There might be people who depend on the old broken behavior: `$host'
1268 # used to hold the argument of --host etc.
1269 # FIXME: To remove some day.
1270 build=$build_alias
1271 host=$host_alias
1272 target=$target_alias
1273
1274 # FIXME: To remove some day.
1275 if test "x$host_alias" != x; then
1276   if test "x$build_alias" = x; then
1277     cross_compiling=maybe
1278   elif test "x$build_alias" != "x$host_alias"; then
1279     cross_compiling=yes
1280   fi
1281 fi
1282
1283 ac_tool_prefix=
1284 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1285
1286 test "$silent" = yes && exec 6>/dev/null
1287
1288
1289 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1290 ac_ls_di=`ls -di .` &&
1291 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1292   as_fn_error $? "working directory cannot be determined"
1293 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1294   as_fn_error $? "pwd does not report name of working directory"
1295
1296
1297 # Find the source files, if location was not specified.
1298 if test -z "$srcdir"; then
1299   ac_srcdir_defaulted=yes
1300   # Try the directory containing this script, then the parent directory.
1301   ac_confdir=`$as_dirname -- "$as_myself" ||
1302 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1303          X"$as_myself" : 'X\(//\)[^/]' \| \
1304          X"$as_myself" : 'X\(//\)$' \| \
1305          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1306 $as_echo X"$as_myself" |
1307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1308             s//\1/
1309             q
1310           }
1311           /^X\(\/\/\)[^/].*/{
1312             s//\1/
1313             q
1314           }
1315           /^X\(\/\/\)$/{
1316             s//\1/
1317             q
1318           }
1319           /^X\(\/\).*/{
1320             s//\1/
1321             q
1322           }
1323           s/.*/./; q'`
1324   srcdir=$ac_confdir
1325   if test ! -r "$srcdir/$ac_unique_file"; then
1326     srcdir=..
1327   fi
1328 else
1329   ac_srcdir_defaulted=no
1330 fi
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1333   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1334 fi
1335 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1336 ac_abs_confdir=`(
1337         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1338         pwd)`
1339 # When building in place, set srcdir=.
1340 if test "$ac_abs_confdir" = "$ac_pwd"; then
1341   srcdir=.
1342 fi
1343 # Remove unnecessary trailing slashes from srcdir.
1344 # Double slashes in file names in object file debugging info
1345 # mess up M-x gdb in Emacs.
1346 case $srcdir in
1347 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1348 esac
1349 for ac_var in $ac_precious_vars; do
1350   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1351   eval ac_env_${ac_var}_value=\$${ac_var}
1352   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1353   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1354 done
1355
1356 #
1357 # Report the --help message.
1358 #
1359 if test "$ac_init_help" = "long"; then
1360   # Omit some internal or obsolete options to make the list less imposing.
1361   # This message is too long to be a string in the A/UX 3.1 sh.
1362   cat <<_ACEOF
1363 \`configure' configures libmtp 1.1.11 to adapt to many kinds of systems.
1364
1365 Usage: $0 [OPTION]... [VAR=VALUE]...
1366
1367 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1368 VAR=VALUE.  See below for descriptions of some of the useful variables.
1369
1370 Defaults for the options are specified in brackets.
1371
1372 Configuration:
1373   -h, --help              display this help and exit
1374       --help=short        display options specific to this package
1375       --help=recursive    display the short help of all the included packages
1376   -V, --version           display version information and exit
1377   -q, --quiet, --silent   do not print \`checking ...' messages
1378       --cache-file=FILE   cache test results in FILE [disabled]
1379   -C, --config-cache      alias for \`--cache-file=config.cache'
1380   -n, --no-create         do not create output files
1381       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1382
1383 Installation directories:
1384   --prefix=PREFIX         install architecture-independent files in PREFIX
1385                           [$ac_default_prefix]
1386   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1387                           [PREFIX]
1388
1389 By default, \`make install' will install all the files in
1390 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1391 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1392 for instance \`--prefix=\$HOME'.
1393
1394 For better control, use the options below.
1395
1396 Fine tuning of the installation directories:
1397   --bindir=DIR            user executables [EPREFIX/bin]
1398   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1399   --libexecdir=DIR        program executables [EPREFIX/libexec]
1400   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1401   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1402   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1403   --libdir=DIR            object code libraries [EPREFIX/lib]
1404   --includedir=DIR        C header files [PREFIX/include]
1405   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1406   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1407   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1408   --infodir=DIR           info documentation [DATAROOTDIR/info]
1409   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1410   --mandir=DIR            man documentation [DATAROOTDIR/man]
1411   --docdir=DIR            documentation root [DATAROOTDIR/doc/libmtp]
1412   --htmldir=DIR           html documentation [DOCDIR]
1413   --dvidir=DIR            dvi documentation [DOCDIR]
1414   --pdfdir=DIR            pdf documentation [DOCDIR]
1415   --psdir=DIR             ps documentation [DOCDIR]
1416 _ACEOF
1417
1418   cat <<\_ACEOF
1419
1420 Program names:
1421   --program-prefix=PREFIX            prepend PREFIX to installed program names
1422   --program-suffix=SUFFIX            append SUFFIX to installed program names
1423   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1424
1425 System types:
1426   --build=BUILD     configure for building on BUILD [guessed]
1427   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1428 _ACEOF
1429 fi
1430
1431 if test -n "$ac_init_help"; then
1432   case $ac_init_help in
1433      short | recursive ) echo "Configuration of libmtp 1.1.11:";;
1434    esac
1435   cat <<\_ACEOF
1436
1437 Optional Features:
1438   --disable-option-checking  ignore unrecognized --enable/--with options
1439   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1440   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1441   --enable-silent-rules   less verbose build output (undo: "make V=1")
1442   --disable-silent-rules  verbose build output (undo: "make V=0")
1443   --enable-dependency-tracking
1444                           do not reject slow dependency extractors
1445   --disable-dependency-tracking
1446                           speeds up one-time build
1447   --enable-shared[=PKGS]  build shared libraries [default=yes]
1448   --enable-static[=PKGS]  build static libraries [default=yes]
1449   --enable-fast-install[=PKGS]
1450                           optimize for fast installation [default=yes]
1451   --disable-libtool-lock  avoid locking (might break parallel builds)
1452   --disable-rpath         do not hardcode runtime library paths
1453   --enable-doxygen        Build API documentation using Doxygen [default=auto]
1454   --disable-mtpz          Disable functionality to connect to MTPZ devices
1455                           (e.g. Zune)
1456   --disable-largefile     omit support for large files
1457
1458 Optional Packages:
1459   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1460   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1461   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1462                           both]
1463   --with-aix-soname=aix|svr4|both
1464                           shared library versioning (aka "SONAME") variant to
1465                           provide on AIX, [default=aix].
1466   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1467   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1468                           compiler's sysroot if not specified).
1469   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1470   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1471   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1472   --with-udev=DIR         directory where udev is installed
1473                           [default=/usr/lib/udev]
1474   --with-udev-rules=NAME  file name for udev rules [default=69-libmtp.rules]
1475   --with-udev-group=GROUP file group for device nodes [default: none
1476                           specified]
1477   --with-udev-mode=GROUP  file mode for device nodes [default: none specified]
1478
1479 Some influential environment variables:
1480   CC          C compiler command
1481   CFLAGS      C compiler flags
1482   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1483               nonstandard directory <lib dir>
1484   LIBS        libraries to pass to the linker, e.g. -l<library>
1485   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1486               you have headers in a nonstandard directory <include dir>
1487   LT_SYS_LIBRARY_PATH
1488               User-defined run-time library search path.
1489   CPP         C preprocessor
1490   PKG_CONFIG  path to pkg-config utility
1491   PKG_CONFIG_PATH
1492               directories to add to pkg-config's search path
1493   PKG_CONFIG_LIBDIR
1494               path overriding pkg-config's built-in search path
1495   LIBUSB_CFLAGS
1496               C compiler flags for LIBUSB, overriding pkg-config
1497   LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
1498
1499 Use these variables to override the choices made by `configure' or to help
1500 it to find libraries and programs with nonstandard names/locations.
1501
1502 Report bugs to <libmtp-discuss@lists.sourceforge.net>.
1503 _ACEOF
1504 ac_status=$?
1505 fi
1506
1507 if test "$ac_init_help" = "recursive"; then
1508   # If there are subdirs, report their specific --help.
1509   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1510     test -d "$ac_dir" ||
1511       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1512       continue
1513     ac_builddir=.
1514
1515 case "$ac_dir" in
1516 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *)
1518   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1519   # A ".." for each directory in $ac_dir_suffix.
1520   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1521   case $ac_top_builddir_sub in
1522   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1524   esac ;;
1525 esac
1526 ac_abs_top_builddir=$ac_pwd
1527 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1528 # for backward compatibility:
1529 ac_top_builddir=$ac_top_build_prefix
1530
1531 case $srcdir in
1532   .)  # We are building in place.
1533     ac_srcdir=.
1534     ac_top_srcdir=$ac_top_builddir_sub
1535     ac_abs_top_srcdir=$ac_pwd ;;
1536   [\\/]* | ?:[\\/]* )  # Absolute name.
1537     ac_srcdir=$srcdir$ac_dir_suffix;
1538     ac_top_srcdir=$srcdir
1539     ac_abs_top_srcdir=$srcdir ;;
1540   *) # Relative name.
1541     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1542     ac_top_srcdir=$ac_top_build_prefix$srcdir
1543     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544 esac
1545 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546
1547     cd "$ac_dir" || { ac_status=$?; continue; }
1548     # Check for guested configure.
1549     if test -f "$ac_srcdir/configure.gnu"; then
1550       echo &&
1551       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1552     elif test -f "$ac_srcdir/configure"; then
1553       echo &&
1554       $SHELL "$ac_srcdir/configure" --help=recursive
1555     else
1556       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557     fi || ac_status=$?
1558     cd "$ac_pwd" || { ac_status=$?; break; }
1559   done
1560 fi
1561
1562 test -n "$ac_init_help" && exit $ac_status
1563 if $ac_init_version; then
1564   cat <<\_ACEOF
1565 libmtp configure 1.1.11
1566 generated by GNU Autoconf 2.69
1567
1568 Copyright (C) 2012 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1571 _ACEOF
1572   exit
1573 fi
1574
1575 ## ------------------------ ##
1576 ## Autoconf initialization. ##
1577 ## ------------------------ ##
1578
1579 # ac_fn_c_try_compile LINENO
1580 # --------------------------
1581 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1582 ac_fn_c_try_compile ()
1583 {
1584   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585   rm -f conftest.$ac_objext
1586   if { { ac_try="$ac_compile"
1587 case "(($ac_try" in
1588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589   *) ac_try_echo=$ac_try;;
1590 esac
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593   (eval "$ac_compile") 2>conftest.err
1594   ac_status=$?
1595   if test -s conftest.err; then
1596     grep -v '^ *+' conftest.err >conftest.er1
1597     cat conftest.er1 >&5
1598     mv -f conftest.er1 conftest.err
1599   fi
1600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601   test $ac_status = 0; } && {
1602          test -z "$ac_c_werror_flag" ||
1603          test ! -s conftest.err
1604        } && test -s conftest.$ac_objext; then :
1605   ac_retval=0
1606 else
1607   $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1609
1610         ac_retval=1
1611 fi
1612   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613   as_fn_set_status $ac_retval
1614
1615 } # ac_fn_c_try_compile
1616
1617 # ac_fn_c_try_link LINENO
1618 # -----------------------
1619 # Try to link conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_c_try_link ()
1621 {
1622   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623   rm -f conftest.$ac_objext conftest$ac_exeext
1624   if { { ac_try="$ac_link"
1625 case "(($ac_try" in
1626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627   *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631   (eval "$ac_link") 2>conftest.err
1632   ac_status=$?
1633   if test -s conftest.err; then
1634     grep -v '^ *+' conftest.err >conftest.er1
1635     cat conftest.er1 >&5
1636     mv -f conftest.er1 conftest.err
1637   fi
1638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639   test $ac_status = 0; } && {
1640          test -z "$ac_c_werror_flag" ||
1641          test ! -s conftest.err
1642        } && test -s conftest$ac_exeext && {
1643          test "$cross_compiling" = yes ||
1644          test -x conftest$ac_exeext
1645        }; then :
1646   ac_retval=0
1647 else
1648   $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1650
1651         ac_retval=1
1652 fi
1653   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1654   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1655   # interfere with the next link command; also delete a directory that is
1656   # left behind by Apple's compiler.  We do this before executing the actions.
1657   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1658   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659   as_fn_set_status $ac_retval
1660
1661 } # ac_fn_c_try_link
1662
1663 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1664 # -------------------------------------------------------
1665 # Tests whether HEADER exists and can be compiled using the include files in
1666 # INCLUDES, setting the cache variable VAR accordingly.
1667 ac_fn_c_check_header_compile ()
1668 {
1669   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if eval \${$3+:} false; then :
1673   $as_echo_n "(cached) " >&6
1674 else
1675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676 /* end confdefs.h.  */
1677 $4
1678 #include <$2>
1679 _ACEOF
1680 if ac_fn_c_try_compile "$LINENO"; then :
1681   eval "$3=yes"
1682 else
1683   eval "$3=no"
1684 fi
1685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686 fi
1687 eval ac_res=\$$3
1688                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689 $as_echo "$ac_res" >&6; }
1690   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691
1692 } # ac_fn_c_check_header_compile
1693
1694 # ac_fn_c_try_cpp LINENO
1695 # ----------------------
1696 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1697 ac_fn_c_try_cpp ()
1698 {
1699   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700   if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.err
1708   ac_status=$?
1709   if test -s conftest.err; then
1710     grep -v '^ *+' conftest.err >conftest.er1
1711     cat conftest.er1 >&5
1712     mv -f conftest.er1 conftest.err
1713   fi
1714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715   test $ac_status = 0; } > conftest.i && {
1716          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1717          test ! -s conftest.err
1718        }; then :
1719   ac_retval=0
1720 else
1721   $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1723
1724     ac_retval=1
1725 fi
1726   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727   as_fn_set_status $ac_retval
1728
1729 } # ac_fn_c_try_cpp
1730
1731 # ac_fn_c_try_run LINENO
1732 # ----------------------
1733 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1734 # that executables *can* be run.
1735 ac_fn_c_try_run ()
1736 {
1737   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738   if { { ac_try="$ac_link"
1739 case "(($ac_try" in
1740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741   *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745   (eval "$ac_link") 2>&5
1746   ac_status=$?
1747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1749   { { case "(($ac_try" in
1750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751   *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755   (eval "$ac_try") 2>&5
1756   ac_status=$?
1757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758   test $ac_status = 0; }; }; then :
1759   ac_retval=0
1760 else
1761   $as_echo "$as_me: program exited with status $ac_status" >&5
1762        $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1764
1765        ac_retval=$ac_status
1766 fi
1767   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769   as_fn_set_status $ac_retval
1770
1771 } # ac_fn_c_try_run
1772
1773 # ac_fn_c_check_func LINENO FUNC VAR
1774 # ----------------------------------
1775 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1776 ac_fn_c_check_func ()
1777 {
1778   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782   $as_echo_n "(cached) " >&6
1783 else
1784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h.  */
1786 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1788 #define $2 innocuous_$2
1789
1790 /* System header to define __stub macros and hopefully few prototypes,
1791     which can conflict with char $2 (); below.
1792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1793     <limits.h> exists even on freestanding compilers.  */
1794
1795 #ifdef __STDC__
1796 # include <limits.h>
1797 #else
1798 # include <assert.h>
1799 #endif
1800
1801 #undef $2
1802
1803 /* Override any GCC internal prototype to avoid an error.
1804    Use char because int might match the return type of a GCC
1805    builtin and then its argument prototype would still apply.  */
1806 #ifdef __cplusplus
1807 extern "C"
1808 #endif
1809 char $2 ();
1810 /* The GNU C library defines this for functions which it implements
1811     to always fail with ENOSYS.  Some functions are actually named
1812     something starting with __ and the normal name is an alias.  */
1813 #if defined __stub_$2 || defined __stub___$2
1814 choke me
1815 #endif
1816
1817 int
1818 main ()
1819 {
1820 return $2 ();
1821   ;
1822   return 0;
1823 }
1824 _ACEOF
1825 if ac_fn_c_try_link "$LINENO"; then :
1826   eval "$3=yes"
1827 else
1828   eval "$3=no"
1829 fi
1830 rm -f core conftest.err conftest.$ac_objext \
1831     conftest$ac_exeext conftest.$ac_ext
1832 fi
1833 eval ac_res=\$$3
1834                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837
1838 } # ac_fn_c_check_func
1839
1840 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1843 # the include files in INCLUDES and setting the cache variable VAR
1844 # accordingly.
1845 ac_fn_c_check_header_mongrel ()
1846 {
1847   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848   if eval \${$3+:} false; then :
1849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852   $as_echo_n "(cached) " >&6
1853 fi
1854 eval ac_res=\$$3
1855                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 else
1858   # Is the header compilable?
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1860 $as_echo_n "checking $2 usability... " >&6; }
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h.  */
1863 $4
1864 #include <$2>
1865 _ACEOF
1866 if ac_fn_c_try_compile "$LINENO"; then :
1867   ac_header_compiler=yes
1868 else
1869   ac_header_compiler=no
1870 fi
1871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1873 $as_echo "$ac_header_compiler" >&6; }
1874
1875 # Is the header present?
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1877 $as_echo_n "checking $2 presence... " >&6; }
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h.  */
1880 #include <$2>
1881 _ACEOF
1882 if ac_fn_c_try_cpp "$LINENO"; then :
1883   ac_header_preproc=yes
1884 else
1885   ac_header_preproc=no
1886 fi
1887 rm -f conftest.err conftest.i conftest.$ac_ext
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1889 $as_echo "$ac_header_preproc" >&6; }
1890
1891 # So?  What about this header?
1892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1893   yes:no: )
1894     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1895 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1896     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1897 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1898     ;;
1899   no:yes:* )
1900     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1901 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1902     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1903 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1904     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1905 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1906     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1907 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1908     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1909 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1910 ( $as_echo "## --------------------------------------------------- ##
1911 ## Report this to libmtp-discuss@lists.sourceforge.net ##
1912 ## --------------------------------------------------- ##"
1913      ) | sed "s/^/$as_me: WARNING:     /" >&2
1914     ;;
1915 esac
1916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if eval \${$3+:} false; then :
1919   $as_echo_n "(cached) " >&6
1920 else
1921   eval "$3=\$ac_header_compiler"
1922 fi
1923 eval ac_res=\$$3
1924                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926 fi
1927   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928
1929 } # ac_fn_c_check_header_mongrel
1930
1931 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1932 # -------------------------------------------
1933 # Tests whether TYPE exists after having included INCLUDES, setting cache
1934 # variable VAR accordingly.
1935 ac_fn_c_check_type ()
1936 {
1937   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941   $as_echo_n "(cached) " >&6
1942 else
1943   eval "$3=no"
1944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h.  */
1946 $4
1947 int
1948 main ()
1949 {
1950 if (sizeof ($2))
1951          return 0;
1952   ;
1953   return 0;
1954 }
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h.  */
1959 $4
1960 int
1961 main ()
1962 {
1963 if (sizeof (($2)))
1964             return 0;
1965   ;
1966   return 0;
1967 }
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970
1971 else
1972   eval "$3=yes"
1973 fi
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 fi
1978 eval ac_res=\$$3
1979                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982
1983 } # ac_fn_c_check_type
1984
1985 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1986 # ----------------------------------------------------
1987 # Tries to find if the field MEMBER exists in type AGGR, after including
1988 # INCLUDES, setting cache variable VAR accordingly.
1989 ac_fn_c_check_member ()
1990 {
1991   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1993 $as_echo_n "checking for $2.$3... " >&6; }
1994 if eval \${$4+:} false; then :
1995   $as_echo_n "(cached) " >&6
1996 else
1997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h.  */
1999 $5
2000 int
2001 main ()
2002 {
2003 static $2 ac_aggr;
2004 if (ac_aggr.$3)
2005 return 0;
2006   ;
2007   return 0;
2008 }
2009 _ACEOF
2010 if ac_fn_c_try_compile "$LINENO"; then :
2011   eval "$4=yes"
2012 else
2013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h.  */
2015 $5
2016 int
2017 main ()
2018 {
2019 static $2 ac_aggr;
2020 if (sizeof ac_aggr.$3)
2021 return 0;
2022   ;
2023   return 0;
2024 }
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027   eval "$4=yes"
2028 else
2029   eval "$4=no"
2030 fi
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 fi
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 fi
2035 eval ac_res=\$$4
2036                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037 $as_echo "$ac_res" >&6; }
2038   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039
2040 } # ac_fn_c_check_member
2041 cat >config.log <<_ACEOF
2042 This file contains any messages produced by compilers while
2043 running configure, to aid debugging if configure makes a mistake.
2044
2045 It was created by libmtp $as_me 1.1.11, which was
2046 generated by GNU Autoconf 2.69.  Invocation command line was
2047
2048   $ $0 $@
2049
2050 _ACEOF
2051 exec 5>>config.log
2052 {
2053 cat <<_ASUNAME
2054 ## --------- ##
2055 ## Platform. ##
2056 ## --------- ##
2057
2058 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2059 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2060 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2061 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2062 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2063
2064 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2065 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2066
2067 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2068 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2069 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2070 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2071 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2072 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2073 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2074
2075 _ASUNAME
2076
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2079 do
2080   IFS=$as_save_IFS
2081   test -z "$as_dir" && as_dir=.
2082     $as_echo "PATH: $as_dir"
2083   done
2084 IFS=$as_save_IFS
2085
2086 } >&5
2087
2088 cat >&5 <<_ACEOF
2089
2090
2091 ## ----------- ##
2092 ## Core tests. ##
2093 ## ----------- ##
2094
2095 _ACEOF
2096
2097
2098 # Keep a trace of the command line.
2099 # Strip out --no-create and --no-recursion so they do not pile up.
2100 # Strip out --silent because we don't want to record it for future runs.
2101 # Also quote any args containing shell meta-characters.
2102 # Make two passes to allow for proper duplicate-argument suppression.
2103 ac_configure_args=
2104 ac_configure_args0=
2105 ac_configure_args1=
2106 ac_must_keep_next=false
2107 for ac_pass in 1 2
2108 do
2109   for ac_arg
2110   do
2111     case $ac_arg in
2112     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2113     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2114     | -silent | --silent | --silen | --sile | --sil)
2115       continue ;;
2116     *\'*)
2117       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2118     esac
2119     case $ac_pass in
2120     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2121     2)
2122       as_fn_append ac_configure_args1 " '$ac_arg'"
2123       if test $ac_must_keep_next = true; then
2124         ac_must_keep_next=false # Got value, back to normal.
2125       else
2126         case $ac_arg in
2127           *=* | --config-cache | -C | -disable-* | --disable-* \
2128           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2129           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2130           | -with-* | --with-* | -without-* | --without-* | --x)
2131             case "$ac_configure_args0 " in
2132               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2133             esac
2134             ;;
2135           -* ) ac_must_keep_next=true ;;
2136         esac
2137       fi
2138       as_fn_append ac_configure_args " '$ac_arg'"
2139       ;;
2140     esac
2141   done
2142 done
2143 { ac_configure_args0=; unset ac_configure_args0;}
2144 { ac_configure_args1=; unset ac_configure_args1;}
2145
2146 # When interrupted or exit'd, cleanup temporary files, and complete
2147 # config.log.  We remove comments because anyway the quotes in there
2148 # would cause problems or look ugly.
2149 # WARNING: Use '\'' to represent an apostrophe within the trap.
2150 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2151 trap 'exit_status=$?
2152   # Save into config.log some information that might help in debugging.
2153   {
2154     echo
2155
2156     $as_echo "## ---------------- ##
2157 ## Cache variables. ##
2158 ## ---------------- ##"
2159     echo
2160     # The following way of writing the cache mishandles newlines in values,
2161 (
2162   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2163     eval ac_val=\$$ac_var
2164     case $ac_val in #(
2165     *${as_nl}*)
2166       case $ac_var in #(
2167       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2168 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2169       esac
2170       case $ac_var in #(
2171       _ | IFS | as_nl) ;; #(
2172       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2173       *) { eval $ac_var=; unset $ac_var;} ;;
2174       esac ;;
2175     esac
2176   done
2177   (set) 2>&1 |
2178     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2179     *${as_nl}ac_space=\ *)
2180       sed -n \
2181         "s/'\''/'\''\\\\'\'''\''/g;
2182           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2183       ;; #(
2184     *)
2185       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2186       ;;
2187     esac |
2188     sort
2189 )
2190     echo
2191
2192     $as_echo "## ----------------- ##
2193 ## Output variables. ##
2194 ## ----------------- ##"
2195     echo
2196     for ac_var in $ac_subst_vars
2197     do
2198       eval ac_val=\$$ac_var
2199       case $ac_val in
2200       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2201       esac
2202       $as_echo "$ac_var='\''$ac_val'\''"
2203     done | sort
2204     echo
2205
2206     if test -n "$ac_subst_files"; then
2207       $as_echo "## ------------------- ##
2208 ## File substitutions. ##
2209 ## ------------------- ##"
2210       echo
2211       for ac_var in $ac_subst_files
2212       do
2213         eval ac_val=\$$ac_var
2214         case $ac_val in
2215         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2216         esac
2217         $as_echo "$ac_var='\''$ac_val'\''"
2218       done | sort
2219       echo
2220     fi
2221
2222     if test -s confdefs.h; then
2223       $as_echo "## ----------- ##
2224 ## confdefs.h. ##
2225 ## ----------- ##"
2226       echo
2227       cat confdefs.h
2228       echo
2229     fi
2230     test "$ac_signal" != 0 &&
2231       $as_echo "$as_me: caught signal $ac_signal"
2232     $as_echo "$as_me: exit $exit_status"
2233   } >&5
2234   rm -f core *.core core.conftest.* &&
2235     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2236     exit $exit_status
2237 ' 0
2238 for ac_signal in 1 2 13 15; do
2239   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2240 done
2241 ac_signal=0
2242
2243 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2244 rm -f -r conftest* confdefs.h
2245
2246 $as_echo "/* confdefs.h */" > confdefs.h
2247
2248 # Predefined preprocessor variables.
2249
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_NAME "$PACKAGE_NAME"
2252 _ACEOF
2253
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2256 _ACEOF
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2260 _ACEOF
2261
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_STRING "$PACKAGE_STRING"
2264 _ACEOF
2265
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2268 _ACEOF
2269
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_URL "$PACKAGE_URL"
2272 _ACEOF
2273
2274
2275 # Let the site file select an alternate cache file if it wants to.
2276 # Prefer an explicitly selected file to automatically selected ones.
2277 ac_site_file1=NONE
2278 ac_site_file2=NONE
2279 if test -n "$CONFIG_SITE"; then
2280   # We do not want a PATH search for config.site.
2281   case $CONFIG_SITE in #((
2282     -*)  ac_site_file1=./$CONFIG_SITE;;
2283     */*) ac_site_file1=$CONFIG_SITE;;
2284     *)   ac_site_file1=./$CONFIG_SITE;;
2285   esac
2286 elif test "x$prefix" != xNONE; then
2287   ac_site_file1=$prefix/share/config.site
2288   ac_site_file2=$prefix/etc/config.site
2289 else
2290   ac_site_file1=$ac_default_prefix/share/config.site
2291   ac_site_file2=$ac_default_prefix/etc/config.site
2292 fi
2293 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2294 do
2295   test "x$ac_site_file" = xNONE && continue
2296   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2297     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2298 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2299     sed 's/^/| /' "$ac_site_file" >&5
2300     . "$ac_site_file" \
2301       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2303 as_fn_error $? "failed to load site script $ac_site_file
2304 See \`config.log' for more details" "$LINENO" 5; }
2305   fi
2306 done
2307
2308 if test -r "$cache_file"; then
2309   # Some versions of bash will fail to source /dev/null (special files
2310   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2311   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2312     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2313 $as_echo "$as_me: loading cache $cache_file" >&6;}
2314     case $cache_file in
2315       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2316       *)                      . "./$cache_file";;
2317     esac
2318   fi
2319 else
2320   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2321 $as_echo "$as_me: creating cache $cache_file" >&6;}
2322   >$cache_file
2323 fi
2324
2325 # Check that the precious variables saved in the cache have kept the same
2326 # value.
2327 ac_cache_corrupted=false
2328 for ac_var in $ac_precious_vars; do
2329   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2330   eval ac_new_set=\$ac_env_${ac_var}_set
2331   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2332   eval ac_new_val=\$ac_env_${ac_var}_value
2333   case $ac_old_set,$ac_new_set in
2334     set,)
2335       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2336 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2337       ac_cache_corrupted=: ;;
2338     ,set)
2339       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2340 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2341       ac_cache_corrupted=: ;;
2342     ,);;
2343     *)
2344       if test "x$ac_old_val" != "x$ac_new_val"; then
2345         # differences in whitespace do not lead to failure.
2346         ac_old_val_w=`echo x $ac_old_val`
2347         ac_new_val_w=`echo x $ac_new_val`
2348         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2349           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2350 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2351           ac_cache_corrupted=:
2352         else
2353           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2354 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2355           eval $ac_var=\$ac_old_val
2356         fi
2357         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2358 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2359         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2360 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2361       fi;;
2362   esac
2363   # Pass precious variables to config.status.
2364   if test "$ac_new_set" = set; then
2365     case $ac_new_val in
2366     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2367     *) ac_arg=$ac_var=$ac_new_val ;;
2368     esac
2369     case " $ac_configure_args " in
2370       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2371       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2372     esac
2373   fi
2374 done
2375 if $ac_cache_corrupted; then
2376   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2378   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2379 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2380   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2381 fi
2382 ## -------------------- ##
2383 ## Main body of script. ##
2384 ## -------------------- ##
2385
2386 ac_ext=c
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391
2392
2393
2394 am__api_version='1.15'
2395
2396 ac_aux_dir=
2397 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2398   if test -f "$ac_dir/install-sh"; then
2399     ac_aux_dir=$ac_dir
2400     ac_install_sh="$ac_aux_dir/install-sh -c"
2401     break
2402   elif test -f "$ac_dir/install.sh"; then
2403     ac_aux_dir=$ac_dir
2404     ac_install_sh="$ac_aux_dir/install.sh -c"
2405     break
2406   elif test -f "$ac_dir/shtool"; then
2407     ac_aux_dir=$ac_dir
2408     ac_install_sh="$ac_aux_dir/shtool install -c"
2409     break
2410   fi
2411 done
2412 if test -z "$ac_aux_dir"; then
2413   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2414 fi
2415
2416 # These three variables are undocumented and unsupported,
2417 # and are intended to be withdrawn in a future Autoconf release.
2418 # They can cause serious problems if a builder's source tree is in a directory
2419 # whose full name contains unusual characters.
2420 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2421 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2422 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2423
2424
2425 # Find a good install program.  We prefer a C program (faster),
2426 # so one script is as good as another.  But avoid the broken or
2427 # incompatible versions:
2428 # SysV /etc/install, /usr/sbin/install
2429 # SunOS /usr/etc/install
2430 # IRIX /sbin/install
2431 # AIX /bin/install
2432 # AmigaOS /C/install, which installs bootblocks on floppy discs
2433 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2434 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2435 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2436 # OS/2's system install, which has a completely different semantic
2437 # ./install, which can be erroneously created by make from ./install.sh.
2438 # Reject install programs that cannot install multiple files.
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2440 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2441 if test -z "$INSTALL"; then
2442 if ${ac_cv_path_install+:} false; then :
2443   $as_echo_n "(cached) " >&6
2444 else
2445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2447 do
2448   IFS=$as_save_IFS
2449   test -z "$as_dir" && as_dir=.
2450     # Account for people who put trailing slashes in PATH elements.
2451 case $as_dir/ in #((
2452   ./ | .// | /[cC]/* | \
2453   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2454   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2455   /usr/ucb/* ) ;;
2456   *)
2457     # OSF1 and SCO ODT 3.0 have their own names for install.
2458     # Don't use installbsd from OSF since it installs stuff as root
2459     # by default.
2460     for ac_prog in ginstall scoinst install; do
2461       for ac_exec_ext in '' $ac_executable_extensions; do
2462         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2463           if test $ac_prog = install &&
2464             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2465             # AIX install.  It has an incompatible calling convention.
2466             :
2467           elif test $ac_prog = install &&
2468             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2469             # program-specific install script used by HP pwplus--don't use.
2470             :
2471           else
2472             rm -rf conftest.one conftest.two conftest.dir
2473             echo one > conftest.one
2474             echo two > conftest.two
2475             mkdir conftest.dir
2476             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2477               test -s conftest.one && test -s conftest.two &&
2478               test -s conftest.dir/conftest.one &&
2479               test -s conftest.dir/conftest.two
2480             then
2481               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2482               break 3
2483             fi
2484           fi
2485         fi
2486       done
2487     done
2488     ;;
2489 esac
2490
2491   done
2492 IFS=$as_save_IFS
2493
2494 rm -rf conftest.one conftest.two conftest.dir
2495
2496 fi
2497   if test "${ac_cv_path_install+set}" = set; then
2498     INSTALL=$ac_cv_path_install
2499   else
2500     # As a last resort, use the slow shell script.  Don't cache a
2501     # value for INSTALL within a source directory, because that will
2502     # break other packages using the cache if that directory is
2503     # removed, or if the value is a relative name.
2504     INSTALL=$ac_install_sh
2505   fi
2506 fi
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2508 $as_echo "$INSTALL" >&6; }
2509
2510 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2511 # It thinks the first close brace ends the variable substitution.
2512 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2513
2514 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2515
2516 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2517
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2519 $as_echo_n "checking whether build environment is sane... " >&6; }
2520 # Reject unsafe characters in $srcdir or the absolute working directory
2521 # name.  Accept space and tab only in the latter.
2522 am_lf='
2523 '
2524 case `pwd` in
2525   *[\\\"\#\$\&\'\`$am_lf]*)
2526     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2527 esac
2528 case $srcdir in
2529   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2530     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2531 esac
2532
2533 # Do 'set' in a subshell so we don't clobber the current shell's
2534 # arguments.  Must try -L first in case configure is actually a
2535 # symlink; some systems play weird games with the mod time of symlinks
2536 # (eg FreeBSD returns the mod time of the symlink's containing
2537 # directory).
2538 if (
2539    am_has_slept=no
2540    for am_try in 1 2; do
2541      echo "timestamp, slept: $am_has_slept" > conftest.file
2542      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2543      if test "$*" = "X"; then
2544         # -L didn't work.
2545         set X `ls -t "$srcdir/configure" conftest.file`
2546      fi
2547      if test "$*" != "X $srcdir/configure conftest.file" \
2548         && test "$*" != "X conftest.file $srcdir/configure"; then
2549
2550         # If neither matched, then we have a broken ls.  This can happen
2551         # if, for instance, CONFIG_SHELL is bash and it inherits a
2552         # broken ls alias from the environment.  This has actually
2553         # happened.  Such a system could not be considered "sane".
2554         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2555   alias in your environment" "$LINENO" 5
2556      fi
2557      if test "$2" = conftest.file || test $am_try -eq 2; then
2558        break
2559      fi
2560      # Just in case.
2561      sleep 1
2562      am_has_slept=yes
2563    done
2564    test "$2" = conftest.file
2565    )
2566 then
2567    # Ok.
2568    :
2569 else
2570    as_fn_error $? "newly created file is older than distributed files!
2571 Check your system clock" "$LINENO" 5
2572 fi
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2574 $as_echo "yes" >&6; }
2575 # If we didn't sleep, we still need to ensure time stamps of config.status and
2576 # generated files are strictly newer.
2577 am_sleep_pid=
2578 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2579   ( sleep 1 ) &
2580   am_sleep_pid=$!
2581 fi
2582
2583 rm -f conftest.file
2584
2585 test "$program_prefix" != NONE &&
2586   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2587 # Use a double $ so make ignores it.
2588 test "$program_suffix" != NONE &&
2589   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2590 # Double any \ or $.
2591 # By default was `s,x,x', remove it if useless.
2592 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2593 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2594
2595 # Expand $ac_aux_dir to an absolute path.
2596 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2597
2598 if test x"${MISSING+set}" != xset; then
2599   case $am_aux_dir in
2600   *\ * | *\     *)
2601     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2602   *)
2603     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2604   esac
2605 fi
2606 # Use eval to expand $SHELL
2607 if eval "$MISSING --is-lightweight"; then
2608   am_missing_run="$MISSING "
2609 else
2610   am_missing_run=
2611   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2612 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2613 fi
2614
2615 if test x"${install_sh+set}" != xset; then
2616   case $am_aux_dir in
2617   *\ * | *\     *)
2618     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2619   *)
2620     install_sh="\${SHELL} $am_aux_dir/install-sh"
2621   esac
2622 fi
2623
2624 # Installed binaries are usually stripped using 'strip' when the user
2625 # run "make install-strip".  However 'strip' might not be the right
2626 # tool to use in cross-compilation environments, therefore Automake
2627 # will honor the 'STRIP' environment variable to overrule this program.
2628 if test "$cross_compiling" != no; then
2629   if test -n "$ac_tool_prefix"; then
2630   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2631 set dummy ${ac_tool_prefix}strip; ac_word=$2
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633 $as_echo_n "checking for $ac_word... " >&6; }
2634 if ${ac_cv_prog_STRIP+:} false; then :
2635   $as_echo_n "(cached) " >&6
2636 else
2637   if test -n "$STRIP"; then
2638   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2639 else
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH
2642 do
2643   IFS=$as_save_IFS
2644   test -z "$as_dir" && as_dir=.
2645     for ac_exec_ext in '' $ac_executable_extensions; do
2646   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2647     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2649     break 2
2650   fi
2651 done
2652   done
2653 IFS=$as_save_IFS
2654
2655 fi
2656 fi
2657 STRIP=$ac_cv_prog_STRIP
2658 if test -n "$STRIP"; then
2659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2660 $as_echo "$STRIP" >&6; }
2661 else
2662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663 $as_echo "no" >&6; }
2664 fi
2665
2666
2667 fi
2668 if test -z "$ac_cv_prog_STRIP"; then
2669   ac_ct_STRIP=$STRIP
2670   # Extract the first word of "strip", so it can be a program name with args.
2671 set dummy strip; ac_word=$2
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673 $as_echo_n "checking for $ac_word... " >&6; }
2674 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2675   $as_echo_n "(cached) " >&6
2676 else
2677   if test -n "$ac_ct_STRIP"; then
2678   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2679 else
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 for as_dir in $PATH
2682 do
2683   IFS=$as_save_IFS
2684   test -z "$as_dir" && as_dir=.
2685     for ac_exec_ext in '' $ac_executable_extensions; do
2686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2687     ac_cv_prog_ac_ct_STRIP="strip"
2688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689     break 2
2690   fi
2691 done
2692   done
2693 IFS=$as_save_IFS
2694
2695 fi
2696 fi
2697 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2698 if test -n "$ac_ct_STRIP"; then
2699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2700 $as_echo "$ac_ct_STRIP" >&6; }
2701 else
2702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2704 fi
2705
2706   if test "x$ac_ct_STRIP" = x; then
2707     STRIP=":"
2708   else
2709     case $cross_compiling:$ac_tool_warned in
2710 yes:)
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2713 ac_tool_warned=yes ;;
2714 esac
2715     STRIP=$ac_ct_STRIP
2716   fi
2717 else
2718   STRIP="$ac_cv_prog_STRIP"
2719 fi
2720
2721 fi
2722 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2723
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2725 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2726 if test -z "$MKDIR_P"; then
2727   if ${ac_cv_path_mkdir+:} false; then :
2728   $as_echo_n "(cached) " >&6
2729 else
2730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2732 do
2733   IFS=$as_save_IFS
2734   test -z "$as_dir" && as_dir=.
2735     for ac_prog in mkdir gmkdir; do
2736          for ac_exec_ext in '' $ac_executable_extensions; do
2737            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2738            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2739              'mkdir (GNU coreutils) '* | \
2740              'mkdir (coreutils) '* | \
2741              'mkdir (fileutils) '4.1*)
2742                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2743                break 3;;
2744            esac
2745          done
2746        done
2747   done
2748 IFS=$as_save_IFS
2749
2750 fi
2751
2752   test -d ./--version && rmdir ./--version
2753   if test "${ac_cv_path_mkdir+set}" = set; then
2754     MKDIR_P="$ac_cv_path_mkdir -p"
2755   else
2756     # As a last resort, use the slow shell script.  Don't cache a
2757     # value for MKDIR_P within a source directory, because that will
2758     # break other packages using the cache if that directory is
2759     # removed, or if the value is a relative name.
2760     MKDIR_P="$ac_install_sh -d"
2761   fi
2762 fi
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2764 $as_echo "$MKDIR_P" >&6; }
2765
2766 for ac_prog in gawk mawk nawk awk
2767 do
2768   # Extract the first word of "$ac_prog", so it can be a program name with args.
2769 set dummy $ac_prog; ac_word=$2
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if ${ac_cv_prog_AWK+:} false; then :
2773   $as_echo_n "(cached) " >&6
2774 else
2775   if test -n "$AWK"; then
2776   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2777 else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2780 do
2781   IFS=$as_save_IFS
2782   test -z "$as_dir" && as_dir=.
2783     for ac_exec_ext in '' $ac_executable_extensions; do
2784   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2785     ac_cv_prog_AWK="$ac_prog"
2786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787     break 2
2788   fi
2789 done
2790   done
2791 IFS=$as_save_IFS
2792
2793 fi
2794 fi
2795 AWK=$ac_cv_prog_AWK
2796 if test -n "$AWK"; then
2797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2798 $as_echo "$AWK" >&6; }
2799 else
2800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 $as_echo "no" >&6; }
2802 fi
2803
2804
2805   test -n "$AWK" && break
2806 done
2807
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2809 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2810 set x ${MAKE-make}
2811 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2812 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2813   $as_echo_n "(cached) " >&6
2814 else
2815   cat >conftest.make <<\_ACEOF
2816 SHELL = /bin/sh
2817 all:
2818         @echo '@@@%%%=$(MAKE)=@@@%%%'
2819 _ACEOF
2820 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2821 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2822   *@@@%%%=?*=@@@%%%*)
2823     eval ac_cv_prog_make_${ac_make}_set=yes;;
2824   *)
2825     eval ac_cv_prog_make_${ac_make}_set=no;;
2826 esac
2827 rm -f conftest.make
2828 fi
2829 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2831 $as_echo "yes" >&6; }
2832   SET_MAKE=
2833 else
2834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835 $as_echo "no" >&6; }
2836   SET_MAKE="MAKE=${MAKE-make}"
2837 fi
2838
2839 rm -rf .tst 2>/dev/null
2840 mkdir .tst 2>/dev/null
2841 if test -d .tst; then
2842   am__leading_dot=.
2843 else
2844   am__leading_dot=_
2845 fi
2846 rmdir .tst 2>/dev/null
2847
2848 # Check whether --enable-silent-rules was given.
2849 if test "${enable_silent_rules+set}" = set; then :
2850   enableval=$enable_silent_rules;
2851 fi
2852
2853 case $enable_silent_rules in # (((
2854   yes) AM_DEFAULT_VERBOSITY=0;;
2855    no) AM_DEFAULT_VERBOSITY=1;;
2856     *) AM_DEFAULT_VERBOSITY=1;;
2857 esac
2858 am_make=${MAKE-make}
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2860 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2861 if ${am_cv_make_support_nested_variables+:} false; then :
2862   $as_echo_n "(cached) " >&6
2863 else
2864   if $as_echo 'TRUE=$(BAR$(V))
2865 BAR0=false
2866 BAR1=true
2867 V=1
2868 am__doit:
2869         @$(TRUE)
2870 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2871   am_cv_make_support_nested_variables=yes
2872 else
2873   am_cv_make_support_nested_variables=no
2874 fi
2875 fi
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2877 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2878 if test $am_cv_make_support_nested_variables = yes; then
2879     AM_V='$(V)'
2880   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2881 else
2882   AM_V=$AM_DEFAULT_VERBOSITY
2883   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2884 fi
2885 AM_BACKSLASH='\'
2886
2887 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2888   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2889   # is not polluted with repeated "-I."
2890   am__isrc=' -I$(srcdir)'
2891   # test to see if srcdir already configured
2892   if test -f $srcdir/config.status; then
2893     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2894   fi
2895 fi
2896
2897 # test whether we have cygpath
2898 if test -z "$CYGPATH_W"; then
2899   if (cygpath --version) >/dev/null 2>/dev/null; then
2900     CYGPATH_W='cygpath -w'
2901   else
2902     CYGPATH_W=echo
2903   fi
2904 fi
2905
2906
2907 # Define the identity of the package.
2908  PACKAGE='libmtp'
2909  VERSION='1.1.11'
2910
2911
2912 cat >>confdefs.h <<_ACEOF
2913 #define PACKAGE "$PACKAGE"
2914 _ACEOF
2915
2916
2917 cat >>confdefs.h <<_ACEOF
2918 #define VERSION "$VERSION"
2919 _ACEOF
2920
2921 # Some tools Automake needs.
2922
2923 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2924
2925
2926 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2927
2928
2929 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2930
2931
2932 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2933
2934
2935 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2936
2937 # For better backward compatibility.  To be removed once Automake 1.9.x
2938 # dies out for good.  For more background, see:
2939 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2940 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2941 mkdir_p='$(MKDIR_P)'
2942
2943 # We need awk for the "check" target (and possibly the TAP driver).  The
2944 # system "awk" is bad on some platforms.
2945 # Always define AMTAR for backward compatibility.  Yes, it's still used
2946 # in the wild :-(  We should find a proper way to deprecate it ...
2947 AMTAR='$${TAR-tar}'
2948
2949
2950 # We'll loop over all known methods to create a tar archive until one works.
2951 _am_tools='gnutar  pax cpio none'
2952
2953 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2954
2955
2956
2957
2958
2959
2960 # POSIX will say in a future version that running "rm -f" with no argument
2961 # is OK; and we want to be able to make that assumption in our Makefile
2962 # recipes.  So use an aggressive probe to check that the usage we want is
2963 # actually supported "in the wild" to an acceptable degree.
2964 # See automake bug#10828.
2965 # To make any issue more visible, cause the running configure to be aborted
2966 # by default if the 'rm' program in use doesn't match our expectations; the
2967 # user can still override this though.
2968 if rm -f && rm -fr && rm -rf; then : OK; else
2969   cat >&2 <<'END'
2970 Oops!
2971
2972 Your 'rm' program seems unable to run without file operands specified
2973 on the command line, even when the '-f' option is present.  This is contrary
2974 to the behaviour of most rm programs out there, and not conforming with
2975 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2976
2977 Please tell bug-automake@gnu.org about your system, including the value
2978 of your $PATH and any error possibly output before this message.  This
2979 can help us improve future automake versions.
2980
2981 END
2982   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2983     echo 'Configuration will proceed anyway, since you have set the' >&2
2984     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2985     echo >&2
2986   else
2987     cat >&2 <<'END'
2988 Aborting the configuration process, to ensure you take notice of the issue.
2989
2990 You can download and install GNU coreutils to get an 'rm' implementation
2991 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2992
2993 If you want to complete the configuration process using your problematic
2994 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2995 to "yes", and re-run configure.
2996
2997 END
2998     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2999   fi
3000 fi
3001
3002
3003 ac_config_headers="$ac_config_headers config.h"
3004
3005
3006 # Checks for programs.
3007 ac_ext=c
3008 ac_cpp='$CPP $CPPFLAGS'
3009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3012 if test -n "$ac_tool_prefix"; then
3013   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3014 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if ${ac_cv_prog_CC+:} false; then :
3018   $as_echo_n "(cached) " >&6
3019 else
3020   if test -n "$CC"; then
3021   ac_cv_prog_CC="$CC" # Let the user override the test.
3022 else
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH
3025 do
3026   IFS=$as_save_IFS
3027   test -z "$as_dir" && as_dir=.
3028     for ac_exec_ext in '' $ac_executable_extensions; do
3029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3030     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032     break 2
3033   fi
3034 done
3035   done
3036 IFS=$as_save_IFS
3037
3038 fi
3039 fi
3040 CC=$ac_cv_prog_CC
3041 if test -n "$CC"; then
3042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3043 $as_echo "$CC" >&6; }
3044 else
3045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3047 fi
3048
3049
3050 fi
3051 if test -z "$ac_cv_prog_CC"; then
3052   ac_ct_CC=$CC
3053   # Extract the first word of "gcc", so it can be a program name with args.
3054 set dummy gcc; ac_word=$2
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3058   $as_echo_n "(cached) " >&6
3059 else
3060   if test -n "$ac_ct_CC"; then
3061   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3062 else
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH
3065 do
3066   IFS=$as_save_IFS
3067   test -z "$as_dir" && as_dir=.
3068     for ac_exec_ext in '' $ac_executable_extensions; do
3069   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3070     ac_cv_prog_ac_ct_CC="gcc"
3071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072     break 2
3073   fi
3074 done
3075   done
3076 IFS=$as_save_IFS
3077
3078 fi
3079 fi
3080 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3081 if test -n "$ac_ct_CC"; then
3082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3083 $as_echo "$ac_ct_CC" >&6; }
3084 else
3085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3087 fi
3088
3089   if test "x$ac_ct_CC" = x; then
3090     CC=""
3091   else
3092     case $cross_compiling:$ac_tool_warned in
3093 yes:)
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3096 ac_tool_warned=yes ;;
3097 esac
3098     CC=$ac_ct_CC
3099   fi
3100 else
3101   CC="$ac_cv_prog_CC"
3102 fi
3103
3104 if test -z "$CC"; then
3105           if test -n "$ac_tool_prefix"; then
3106     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3107 set dummy ${ac_tool_prefix}cc; ac_word=$2
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109 $as_echo_n "checking for $ac_word... " >&6; }
3110 if ${ac_cv_prog_CC+:} false; then :
3111   $as_echo_n "(cached) " >&6
3112 else
3113   if test -n "$CC"; then
3114   ac_cv_prog_CC="$CC" # Let the user override the test.
3115 else
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH
3118 do
3119   IFS=$as_save_IFS
3120   test -z "$as_dir" && as_dir=.
3121     for ac_exec_ext in '' $ac_executable_extensions; do
3122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3123     ac_cv_prog_CC="${ac_tool_prefix}cc"
3124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125     break 2
3126   fi
3127 done
3128   done
3129 IFS=$as_save_IFS
3130
3131 fi
3132 fi
3133 CC=$ac_cv_prog_CC
3134 if test -n "$CC"; then
3135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3136 $as_echo "$CC" >&6; }
3137 else
3138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3140 fi
3141
3142
3143   fi
3144 fi
3145 if test -z "$CC"; then
3146   # Extract the first word of "cc", so it can be a program name with args.
3147 set dummy cc; ac_word=$2
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if ${ac_cv_prog_CC+:} false; then :
3151   $as_echo_n "(cached) " >&6
3152 else
3153   if test -n "$CC"; then
3154   ac_cv_prog_CC="$CC" # Let the user override the test.
3155 else
3156   ac_prog_rejected=no
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH
3159 do
3160   IFS=$as_save_IFS
3161   test -z "$as_dir" && as_dir=.
3162     for ac_exec_ext in '' $ac_executable_extensions; do
3163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3164     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3165        ac_prog_rejected=yes
3166        continue
3167      fi
3168     ac_cv_prog_CC="cc"
3169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170     break 2
3171   fi
3172 done
3173   done
3174 IFS=$as_save_IFS
3175
3176 if test $ac_prog_rejected = yes; then
3177   # We found a bogon in the path, so make sure we never use it.
3178   set dummy $ac_cv_prog_CC
3179   shift
3180   if test $# != 0; then
3181     # We chose a different compiler from the bogus one.
3182     # However, it has the same basename, so the bogon will be chosen
3183     # first if we set CC to just the basename; use the full file name.
3184     shift
3185     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3186   fi
3187 fi
3188 fi
3189 fi
3190 CC=$ac_cv_prog_CC
3191 if test -n "$CC"; then
3192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3193 $as_echo "$CC" >&6; }
3194 else
3195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 fi
3198
3199
3200 fi
3201 if test -z "$CC"; then
3202   if test -n "$ac_tool_prefix"; then
3203   for ac_prog in cl.exe
3204   do
3205     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208 $as_echo_n "checking for $ac_word... " >&6; }
3209 if ${ac_cv_prog_CC+:} false; then :
3210   $as_echo_n "(cached) " >&6
3211 else
3212   if test -n "$CC"; then
3213   ac_cv_prog_CC="$CC" # Let the user override the test.
3214 else
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH
3217 do
3218   IFS=$as_save_IFS
3219   test -z "$as_dir" && as_dir=.
3220     for ac_exec_ext in '' $ac_executable_extensions; do
3221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224     break 2
3225   fi
3226 done
3227   done
3228 IFS=$as_save_IFS
3229
3230 fi
3231 fi
3232 CC=$ac_cv_prog_CC
3233 if test -n "$CC"; then
3234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3235 $as_echo "$CC" >&6; }
3236 else
3237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 $as_echo "no" >&6; }
3239 fi
3240
3241
3242     test -n "$CC" && break
3243   done
3244 fi
3245 if test -z "$CC"; then
3246   ac_ct_CC=$CC
3247   for ac_prog in cl.exe
3248 do
3249   # Extract the first word of "$ac_prog", so it can be a program name with args.
3250 set dummy $ac_prog; ac_word=$2
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252 $as_echo_n "checking for $ac_word... " >&6; }
3253 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3254   $as_echo_n "(cached) " >&6
3255 else
3256   if test -n "$ac_ct_CC"; then
3257   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262   IFS=$as_save_IFS
3263   test -z "$as_dir" && as_dir=.
3264     for ac_exec_ext in '' $ac_executable_extensions; do
3265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266     ac_cv_prog_ac_ct_CC="$ac_prog"
3267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268     break 2
3269   fi
3270 done
3271   done
3272 IFS=$as_save_IFS
3273
3274 fi
3275 fi
3276 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3277 if test -n "$ac_ct_CC"; then
3278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3279 $as_echo "$ac_ct_CC" >&6; }
3280 else
3281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283 fi
3284
3285
3286   test -n "$ac_ct_CC" && break
3287 done
3288
3289   if test "x$ac_ct_CC" = x; then
3290     CC=""
3291   else
3292     case $cross_compiling:$ac_tool_warned in
3293 yes:)
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3296 ac_tool_warned=yes ;;
3297 esac
3298     CC=$ac_ct_CC
3299   fi
3300 fi
3301
3302 fi
3303
3304
3305 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307 as_fn_error $? "no acceptable C compiler found in \$PATH
3308 See \`config.log' for more details" "$LINENO" 5; }
3309
3310 # Provide some information about the compiler.
3311 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3312 set X $ac_compile
3313 ac_compiler=$2
3314 for ac_option in --version -v -V -qversion; do
3315   { { ac_try="$ac_compiler $ac_option >&5"
3316 case "(($ac_try" in
3317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318   *) ac_try_echo=$ac_try;;
3319 esac
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3323   ac_status=$?
3324   if test -s conftest.err; then
3325     sed '10a\
3326 ... rest of stderr output deleted ...
3327          10q' conftest.err >conftest.er1
3328     cat conftest.er1 >&5
3329   fi
3330   rm -f conftest.er1 conftest.err
3331   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332   test $ac_status = 0; }
3333 done
3334
3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 /* end confdefs.h.  */
3337
3338 int
3339 main ()
3340 {
3341
3342   ;
3343   return 0;
3344 }
3345 _ACEOF
3346 ac_clean_files_save=$ac_clean_files
3347 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3348 # Try to create an executable without -o first, disregard a.out.
3349 # It will help us diagnose broken compilers, and finding out an intuition
3350 # of exeext.
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3352 $as_echo_n "checking whether the C compiler works... " >&6; }
3353 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3354
3355 # The possible output files:
3356 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3357
3358 ac_rmfiles=
3359 for ac_file in $ac_files
3360 do
3361   case $ac_file in
3362     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3363     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3364   esac
3365 done
3366 rm -f $ac_rmfiles
3367
3368 if { { ac_try="$ac_link_default"
3369 case "(($ac_try" in
3370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371   *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 $as_echo "$ac_try_echo"; } >&5
3375   (eval "$ac_link_default") 2>&5
3376   ac_status=$?
3377   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378   test $ac_status = 0; }; then :
3379   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3380 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3381 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3382 # so that the user can short-circuit this test for compilers unknown to
3383 # Autoconf.
3384 for ac_file in $ac_files ''
3385 do
3386   test -f "$ac_file" || continue
3387   case $ac_file in
3388     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3389         ;;
3390     [ab].out )
3391         # We found the default executable, but exeext='' is most
3392         # certainly right.
3393         break;;
3394     *.* )
3395         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3396         then :; else
3397            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3398         fi
3399         # We set ac_cv_exeext here because the later test for it is not
3400         # safe: cross compilers may not add the suffix if given an `-o'
3401         # argument, so we may need to know it at that point already.
3402         # Even if this section looks crufty: it has the advantage of
3403         # actually working.
3404         break;;
3405     * )
3406         break;;
3407   esac
3408 done
3409 test "$ac_cv_exeext" = no && ac_cv_exeext=
3410
3411 else
3412   ac_file=''
3413 fi
3414 if test -z "$ac_file"; then :
3415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3417 $as_echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3419
3420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422 as_fn_error 77 "C compiler cannot create executables
3423 See \`config.log' for more details" "$LINENO" 5; }
3424 else
3425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3426 $as_echo "yes" >&6; }
3427 fi
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3429 $as_echo_n "checking for C compiler default output file name... " >&6; }
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3431 $as_echo "$ac_file" >&6; }
3432 ac_exeext=$ac_cv_exeext
3433
3434 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3435 ac_clean_files=$ac_clean_files_save
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3437 $as_echo_n "checking for suffix of executables... " >&6; }
3438 if { { ac_try="$ac_link"
3439 case "(($ac_try" in
3440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441   *) ac_try_echo=$ac_try;;
3442 esac
3443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444 $as_echo "$ac_try_echo"; } >&5
3445   (eval "$ac_link") 2>&5
3446   ac_status=$?
3447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448   test $ac_status = 0; }; then :
3449   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3450 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3451 # work properly (i.e., refer to `conftest.exe'), while it won't with
3452 # `rm'.
3453 for ac_file in conftest.exe conftest conftest.*; do
3454   test -f "$ac_file" || continue
3455   case $ac_file in
3456     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3457     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3458           break;;
3459     * ) break;;
3460   esac
3461 done
3462 else
3463   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3466 See \`config.log' for more details" "$LINENO" 5; }
3467 fi
3468 rm -f conftest conftest$ac_cv_exeext
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3470 $as_echo "$ac_cv_exeext" >&6; }
3471
3472 rm -f conftest.$ac_ext
3473 EXEEXT=$ac_cv_exeext
3474 ac_exeext=$EXEEXT
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h.  */
3477 #include <stdio.h>
3478 int
3479 main ()
3480 {
3481 FILE *f = fopen ("conftest.out", "w");
3482  return ferror (f) || fclose (f) != 0;
3483
3484   ;
3485   return 0;
3486 }
3487 _ACEOF
3488 ac_clean_files="$ac_clean_files conftest.out"
3489 # Check that the compiler produces executables we can run.  If not, either
3490 # the compiler is broken, or we cross compile.
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3492 $as_echo_n "checking whether we are cross compiling... " >&6; }
3493 if test "$cross_compiling" != yes; then
3494   { { ac_try="$ac_link"
3495 case "(($ac_try" in
3496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497   *) ac_try_echo=$ac_try;;
3498 esac
3499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500 $as_echo "$ac_try_echo"; } >&5
3501   (eval "$ac_link") 2>&5
3502   ac_status=$?
3503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504   test $ac_status = 0; }
3505   if { ac_try='./conftest$ac_cv_exeext'
3506   { { case "(($ac_try" in
3507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508   *) ac_try_echo=$ac_try;;
3509 esac
3510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511 $as_echo "$ac_try_echo"; } >&5
3512   (eval "$ac_try") 2>&5
3513   ac_status=$?
3514   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515   test $ac_status = 0; }; }; then
3516     cross_compiling=no
3517   else
3518     if test "$cross_compiling" = maybe; then
3519         cross_compiling=yes
3520     else
3521         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 as_fn_error $? "cannot run C compiled programs.
3524 If you meant to cross compile, use \`--host'.
3525 See \`config.log' for more details" "$LINENO" 5; }
3526     fi
3527   fi
3528 fi
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3530 $as_echo "$cross_compiling" >&6; }
3531
3532 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3533 ac_clean_files=$ac_clean_files_save
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3535 $as_echo_n "checking for suffix of object files... " >&6; }
3536 if ${ac_cv_objext+:} false; then :
3537   $as_echo_n "(cached) " >&6
3538 else
3539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h.  */
3541
3542 int
3543 main ()
3544 {
3545
3546   ;
3547   return 0;
3548 }
3549 _ACEOF
3550 rm -f conftest.o conftest.obj
3551 if { { ac_try="$ac_compile"
3552 case "(($ac_try" in
3553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554   *) ac_try_echo=$ac_try;;
3555 esac
3556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557 $as_echo "$ac_try_echo"; } >&5
3558   (eval "$ac_compile") 2>&5
3559   ac_status=$?
3560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561   test $ac_status = 0; }; then :
3562   for ac_file in conftest.o conftest.obj conftest.*; do
3563   test -f "$ac_file" || continue;
3564   case $ac_file in
3565     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3566     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3567        break;;
3568   esac
3569 done
3570 else
3571   $as_echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3573
3574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576 as_fn_error $? "cannot compute suffix of object files: cannot compile
3577 See \`config.log' for more details" "$LINENO" 5; }
3578 fi
3579 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3580 fi
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3582 $as_echo "$ac_cv_objext" >&6; }
3583 OBJEXT=$ac_cv_objext
3584 ac_objext=$OBJEXT
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3586 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3587 if ${ac_cv_c_compiler_gnu+:} false; then :
3588   $as_echo_n "(cached) " >&6
3589 else
3590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h.  */
3592
3593 int
3594 main ()
3595 {
3596 #ifndef __GNUC__
3597        choke me
3598 #endif
3599
3600   ;
3601   return 0;
3602 }
3603 _ACEOF
3604 if ac_fn_c_try_compile "$LINENO"; then :
3605   ac_compiler_gnu=yes
3606 else
3607   ac_compiler_gnu=no
3608 fi
3609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3611
3612 fi
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3614 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3615 if test $ac_compiler_gnu = yes; then
3616   GCC=yes
3617 else
3618   GCC=
3619 fi
3620 ac_test_CFLAGS=${CFLAGS+set}
3621 ac_save_CFLAGS=$CFLAGS
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3623 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3624 if ${ac_cv_prog_cc_g+:} false; then :
3625   $as_echo_n "(cached) " >&6
3626 else
3627   ac_save_c_werror_flag=$ac_c_werror_flag
3628    ac_c_werror_flag=yes
3629    ac_cv_prog_cc_g=no
3630    CFLAGS="-g"
3631    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h.  */
3633
3634 int
3635 main ()
3636 {
3637
3638   ;
3639   return 0;
3640 }
3641 _ACEOF
3642 if ac_fn_c_try_compile "$LINENO"; then :
3643   ac_cv_prog_cc_g=yes
3644 else
3645   CFLAGS=""
3646       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h.  */
3648
3649 int
3650 main ()
3651 {
3652
3653   ;
3654   return 0;
3655 }
3656 _ACEOF
3657 if ac_fn_c_try_compile "$LINENO"; then :
3658
3659 else
3660   ac_c_werror_flag=$ac_save_c_werror_flag
3661          CFLAGS="-g"
3662          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h.  */
3664
3665 int
3666 main ()
3667 {
3668
3669   ;
3670   return 0;
3671 }
3672 _ACEOF
3673 if ac_fn_c_try_compile "$LINENO"; then :
3674   ac_cv_prog_cc_g=yes
3675 fi
3676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677 fi
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679 fi
3680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681    ac_c_werror_flag=$ac_save_c_werror_flag
3682 fi
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3684 $as_echo "$ac_cv_prog_cc_g" >&6; }
3685 if test "$ac_test_CFLAGS" = set; then
3686   CFLAGS=$ac_save_CFLAGS
3687 elif test $ac_cv_prog_cc_g = yes; then
3688   if test "$GCC" = yes; then
3689     CFLAGS="-g -O2"
3690   else
3691     CFLAGS="-g"
3692   fi
3693 else
3694   if test "$GCC" = yes; then
3695     CFLAGS="-O2"
3696   else
3697     CFLAGS=
3698   fi
3699 fi
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3701 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3702 if ${ac_cv_prog_cc_c89+:} false; then :
3703   $as_echo_n "(cached) " >&6
3704 else
3705   ac_cv_prog_cc_c89=no
3706 ac_save_CC=$CC
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h.  */
3709 #include <stdarg.h>
3710 #include <stdio.h>
3711 struct stat;
3712 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3713 struct buf { int x; };
3714 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3715 static char *e (p, i)
3716      char **p;
3717      int i;
3718 {
3719   return p[i];
3720 }
3721 static char *f (char * (*g) (char **, int), char **p, ...)
3722 {
3723   char *s;
3724   va_list v;
3725   va_start (v,p);
3726   s = g (p, va_arg (v,int));
3727   va_end (v);
3728   return s;
3729 }
3730
3731 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3732    function prototypes and stuff, but not '\xHH' hex character constants.
3733    These don't provoke an error unfortunately, instead are silently treated
3734    as 'x'.  The following induces an error, until -std is added to get
3735    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3736    array size at least.  It's necessary to write '\x00'==0 to get something
3737    that's true only with -std.  */
3738 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3739
3740 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3741    inside strings and character constants.  */
3742 #define FOO(x) 'x'
3743 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3744
3745 int test (int i, double x);
3746 struct s1 {int (*f) (int a);};
3747 struct s2 {int (*f) (double a);};
3748 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3749 int argc;
3750 char **argv;
3751 int
3752 main ()
3753 {
3754 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3755   ;
3756   return 0;
3757 }
3758 _ACEOF
3759 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3760         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3761 do
3762   CC="$ac_save_CC $ac_arg"
3763   if ac_fn_c_try_compile "$LINENO"; then :
3764   ac_cv_prog_cc_c89=$ac_arg
3765 fi
3766 rm -f core conftest.err conftest.$ac_objext
3767   test "x$ac_cv_prog_cc_c89" != "xno" && break
3768 done
3769 rm -f conftest.$ac_ext
3770 CC=$ac_save_CC
3771
3772 fi
3773 # AC_CACHE_VAL
3774 case "x$ac_cv_prog_cc_c89" in
3775   x)
3776     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3777 $as_echo "none needed" >&6; } ;;
3778   xno)
3779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3780 $as_echo "unsupported" >&6; } ;;
3781   *)
3782     CC="$CC $ac_cv_prog_cc_c89"
3783     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3784 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3785 esac
3786 if test "x$ac_cv_prog_cc_c89" != xno; then :
3787
3788 fi
3789
3790 ac_ext=c
3791 ac_cpp='$CPP $CPPFLAGS'
3792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3795
3796 ac_ext=c
3797 ac_cpp='$CPP $CPPFLAGS'
3798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3802 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3803 if ${am_cv_prog_cc_c_o+:} false; then :
3804   $as_echo_n "(cached) " >&6
3805 else
3806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h.  */
3808
3809 int
3810 main ()
3811 {
3812
3813   ;
3814   return 0;
3815 }
3816 _ACEOF
3817   # Make sure it works both with $CC and with simple cc.
3818   # Following AC_PROG_CC_C_O, we do the test twice because some
3819   # compilers refuse to overwrite an existing .o file with -o,
3820   # though they will create one.
3821   am_cv_prog_cc_c_o=yes
3822   for am_i in 1 2; do
3823     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3824    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3825    ac_status=$?
3826    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827    (exit $ac_status); } \
3828          && test -f conftest2.$ac_objext; then
3829       : OK
3830     else
3831       am_cv_prog_cc_c_o=no
3832       break
3833     fi
3834   done
3835   rm -f core conftest*
3836   unset am_i
3837 fi
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3839 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3840 if test "$am_cv_prog_cc_c_o" != yes; then
3841    # Losing compiler, so override with the script.
3842    # FIXME: It is wrong to rewrite CC.
3843    # But if we don't then we get into trouble of one sort or another.
3844    # A longer-term fix would be to have automake use am__CC in this case,
3845    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3846    CC="$am_aux_dir/compile $CC"
3847 fi
3848 ac_ext=c
3849 ac_cpp='$CPP $CPPFLAGS'
3850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853
3854 DEPDIR="${am__leading_dot}deps"
3855
3856 ac_config_commands="$ac_config_commands depfiles"
3857
3858
3859 am_make=${MAKE-make}
3860 cat > confinc << 'END'
3861 am__doit:
3862         @echo this is the am__doit target
3863 .PHONY: am__doit
3864 END
3865 # If we don't find an include directive, just comment out the code.
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3867 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3868 am__include="#"
3869 am__quote=
3870 _am_result=none
3871 # First try GNU make style include.
3872 echo "include confinc" > confmf
3873 # Ignore all kinds of additional output from 'make'.
3874 case `$am_make -s -f confmf 2> /dev/null` in #(
3875 *the\ am__doit\ target*)
3876   am__include=include
3877   am__quote=
3878   _am_result=GNU
3879   ;;
3880 esac
3881 # Now try BSD make style include.
3882 if test "$am__include" = "#"; then
3883    echo '.include "confinc"' > confmf
3884    case `$am_make -s -f confmf 2> /dev/null` in #(
3885    *the\ am__doit\ target*)
3886      am__include=.include
3887      am__quote="\""
3888      _am_result=BSD
3889      ;;
3890    esac
3891 fi
3892
3893
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3895 $as_echo "$_am_result" >&6; }
3896 rm -f confinc confmf
3897
3898 # Check whether --enable-dependency-tracking was given.
3899 if test "${enable_dependency_tracking+set}" = set; then :
3900   enableval=$enable_dependency_tracking;
3901 fi
3902
3903 if test "x$enable_dependency_tracking" != xno; then
3904   am_depcomp="$ac_aux_dir/depcomp"
3905   AMDEPBACKSLASH='\'
3906   am__nodep='_no'
3907 fi
3908  if test "x$enable_dependency_tracking" != xno; then
3909   AMDEP_TRUE=
3910   AMDEP_FALSE='#'
3911 else
3912   AMDEP_TRUE='#'
3913   AMDEP_FALSE=
3914 fi
3915
3916
3917
3918 depcc="$CC"   am_compiler_list=
3919
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3921 $as_echo_n "checking dependency style of $depcc... " >&6; }
3922 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3923   $as_echo_n "(cached) " >&6
3924 else
3925   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3926   # We make a subdir and do the tests there.  Otherwise we can end up
3927   # making bogus files that we don't know about and never remove.  For
3928   # instance it was reported that on HP-UX the gcc test will end up
3929   # making a dummy file named 'D' -- because '-MD' means "put the output
3930   # in D".
3931   rm -rf conftest.dir
3932   mkdir conftest.dir
3933   # Copy depcomp to subdir because otherwise we won't find it if we're
3934   # using a relative directory.
3935   cp "$am_depcomp" conftest.dir
3936   cd conftest.dir
3937   # We will build objects and dependencies in a subdirectory because
3938   # it helps to detect inapplicable dependency modes.  For instance
3939   # both Tru64's cc and ICC support -MD to output dependencies as a
3940   # side effect of compilation, but ICC will put the dependencies in
3941   # the current directory while Tru64 will put them in the object
3942   # directory.
3943   mkdir sub
3944
3945   am_cv_CC_dependencies_compiler_type=none
3946   if test "$am_compiler_list" = ""; then
3947      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3948   fi
3949   am__universal=false
3950   case " $depcc " in #(
3951      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3952      esac
3953
3954   for depmode in $am_compiler_list; do
3955     # Setup a source with many dependencies, because some compilers
3956     # like to wrap large dependency lists on column 80 (with \), and
3957     # we should not choose a depcomp mode which is confused by this.
3958     #
3959     # We need to recreate these files for each test, as the compiler may
3960     # overwrite some of them when testing with obscure command lines.
3961     # This happens at least with the AIX C compiler.
3962     : > sub/conftest.c
3963     for i in 1 2 3 4 5 6; do
3964       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3965       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3966       # Solaris 10 /bin/sh.
3967       echo '/* dummy */' > sub/conftst$i.h
3968     done
3969     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3970
3971     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3972     # mode.  It turns out that the SunPro C++ compiler does not properly
3973     # handle '-M -o', and we need to detect this.  Also, some Intel
3974     # versions had trouble with output in subdirs.
3975     am__obj=sub/conftest.${OBJEXT-o}
3976     am__minus_obj="-o $am__obj"
3977     case $depmode in
3978     gcc)
3979       # This depmode causes a compiler race in universal mode.
3980       test "$am__universal" = false || continue
3981       ;;
3982     nosideeffect)
3983       # After this tag, mechanisms are not by side-effect, so they'll
3984       # only be used when explicitly requested.
3985       if test "x$enable_dependency_tracking" = xyes; then
3986         continue
3987       else
3988         break
3989       fi
3990       ;;
3991     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3992       # This compiler won't grok '-c -o', but also, the minuso test has
3993       # not run yet.  These depmodes are late enough in the game, and
3994       # so weak that their functioning should not be impacted.
3995       am__obj=conftest.${OBJEXT-o}
3996       am__minus_obj=
3997       ;;
3998     none) break ;;
3999     esac
4000     if depmode=$depmode \
4001        source=sub/conftest.c object=$am__obj \
4002        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4003        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4004          >/dev/null 2>conftest.err &&
4005        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4006        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4007        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4008        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4009       # icc doesn't choke on unknown options, it will just issue warnings
4010       # or remarks (even with -Werror).  So we grep stderr for any message
4011       # that says an option was ignored or not supported.
4012       # When given -MP, icc 7.0 and 7.1 complain thusly:
4013       #   icc: Command line warning: ignoring option '-M'; no argument required
4014       # The diagnosis changed in icc 8.0:
4015       #   icc: Command line remark: option '-MP' not supported
4016       if (grep 'ignoring option' conftest.err ||
4017           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4018         am_cv_CC_dependencies_compiler_type=$depmode
4019         break
4020       fi
4021     fi
4022   done
4023
4024   cd ..
4025   rm -rf conftest.dir
4026 else
4027   am_cv_CC_dependencies_compiler_type=none
4028 fi
4029
4030 fi
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4032 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4033 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4034
4035  if
4036   test "x$enable_dependency_tracking" != xno \
4037   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4038   am__fastdepCC_TRUE=
4039   am__fastdepCC_FALSE='#'
4040 else
4041   am__fastdepCC_TRUE='#'
4042   am__fastdepCC_FALSE=
4043 fi
4044
4045
4046
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4048 $as_echo_n "checking whether ln -s works... " >&6; }
4049 LN_S=$as_ln_s
4050 if test "$LN_S" = "ln -s"; then
4051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4052 $as_echo "yes" >&6; }
4053 else
4054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4055 $as_echo "no, using $LN_S" >&6; }
4056 fi
4057
4058 # Make sure we can run config.sub.
4059 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4060   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4061
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4063 $as_echo_n "checking build system type... " >&6; }
4064 if ${ac_cv_build+:} false; then :
4065   $as_echo_n "(cached) " >&6
4066 else
4067   ac_build_alias=$build_alias
4068 test "x$ac_build_alias" = x &&
4069   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4070 test "x$ac_build_alias" = x &&
4071   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4072 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4073   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4074
4075 fi
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4077 $as_echo "$ac_cv_build" >&6; }
4078 case $ac_cv_build in
4079 *-*-*) ;;
4080 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4081 esac
4082 build=$ac_cv_build
4083 ac_save_IFS=$IFS; IFS='-'
4084 set x $ac_cv_build
4085 shift
4086 build_cpu=$1
4087 build_vendor=$2
4088 shift; shift
4089 # Remember, the first character of IFS is used to create $*,
4090 # except with old shells:
4091 build_os=$*
4092 IFS=$ac_save_IFS
4093 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4094
4095
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4097 $as_echo_n "checking host system type... " >&6; }
4098 if ${ac_cv_host+:} false; then :
4099   $as_echo_n "(cached) " >&6
4100 else
4101   if test "x$host_alias" = x; then
4102   ac_cv_host=$ac_cv_build
4103 else
4104   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4105     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4106 fi
4107
4108 fi
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4110 $as_echo "$ac_cv_host" >&6; }
4111 case $ac_cv_host in
4112 *-*-*) ;;
4113 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4114 esac
4115 host=$ac_cv_host
4116 ac_save_IFS=$IFS; IFS='-'
4117 set x $ac_cv_host
4118 shift
4119 host_cpu=$1
4120 host_vendor=$2
4121 shift; shift
4122 # Remember, the first character of IFS is used to create $*,
4123 # except with old shells:
4124 host_os=$*
4125 IFS=$ac_save_IFS
4126 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4127
4128
4129 enable_win32_dll=yes
4130
4131 case $host in
4132 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4133   if test -n "$ac_tool_prefix"; then
4134   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4135 set dummy ${ac_tool_prefix}as; ac_word=$2
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 $as_echo_n "checking for $ac_word... " >&6; }
4138 if ${ac_cv_prog_AS+:} false; then :
4139   $as_echo_n "(cached) " >&6
4140 else
4141   if test -n "$AS"; then
4142   ac_cv_prog_AS="$AS" # Let the user override the test.
4143 else
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4146 do
4147   IFS=$as_save_IFS
4148   test -z "$as_dir" && as_dir=.
4149     for ac_exec_ext in '' $ac_executable_extensions; do
4150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4151     ac_cv_prog_AS="${ac_tool_prefix}as"
4152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4153     break 2
4154   fi
4155 done
4156   done
4157 IFS=$as_save_IFS
4158
4159 fi
4160 fi
4161 AS=$ac_cv_prog_AS
4162 if test -n "$AS"; then
4163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4164 $as_echo "$AS" >&6; }
4165 else
4166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 $as_echo "no" >&6; }
4168 fi
4169
4170
4171 fi
4172 if test -z "$ac_cv_prog_AS"; then
4173   ac_ct_AS=$AS
4174   # Extract the first word of "as", so it can be a program name with args.
4175 set dummy as; ac_word=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4179   $as_echo_n "(cached) " >&6
4180 else
4181   if test -n "$ac_ct_AS"; then
4182   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4183 else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4186 do
4187   IFS=$as_save_IFS
4188   test -z "$as_dir" && as_dir=.
4189     for ac_exec_ext in '' $ac_executable_extensions; do
4190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4191     ac_cv_prog_ac_ct_AS="as"
4192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193     break 2
4194   fi
4195 done
4196   done
4197 IFS=$as_save_IFS
4198
4199 fi
4200 fi
4201 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4202 if test -n "$ac_ct_AS"; then
4203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4204 $as_echo "$ac_ct_AS" >&6; }
4205 else
4206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4208 fi
4209
4210   if test "x$ac_ct_AS" = x; then
4211     AS="false"
4212   else
4213     case $cross_compiling:$ac_tool_warned in
4214 yes:)
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4217 ac_tool_warned=yes ;;
4218 esac
4219     AS=$ac_ct_AS
4220   fi
4221 else
4222   AS="$ac_cv_prog_AS"
4223 fi
4224
4225   if test -n "$ac_tool_prefix"; then
4226   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4227 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 $as_echo_n "checking for $ac_word... " >&6; }
4230 if ${ac_cv_prog_DLLTOOL+:} false; then :
4231   $as_echo_n "(cached) " >&6
4232 else
4233   if test -n "$DLLTOOL"; then
4234   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4235 else
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH
4238 do
4239   IFS=$as_save_IFS
4240   test -z "$as_dir" && as_dir=.
4241     for ac_exec_ext in '' $ac_executable_extensions; do
4242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4243     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4245     break 2
4246   fi
4247 done
4248   done
4249 IFS=$as_save_IFS
4250
4251 fi
4252 fi
4253 DLLTOOL=$ac_cv_prog_DLLTOOL
4254 if test -n "$DLLTOOL"; then
4255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4256 $as_echo "$DLLTOOL" >&6; }
4257 else
4258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4260 fi
4261
4262
4263 fi
4264 if test -z "$ac_cv_prog_DLLTOOL"; then
4265   ac_ct_DLLTOOL=$DLLTOOL
4266   # Extract the first word of "dlltool", so it can be a program name with args.
4267 set dummy dlltool; ac_word=$2
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4269 $as_echo_n "checking for $ac_word... " >&6; }
4270 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4271   $as_echo_n "(cached) " >&6
4272 else
4273   if test -n "$ac_ct_DLLTOOL"; then
4274   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4275 else
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH
4278 do
4279   IFS=$as_save_IFS
4280   test -z "$as_dir" && as_dir=.
4281     for ac_exec_ext in '' $ac_executable_extensions; do
4282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4283     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4285     break 2
4286   fi
4287 done
4288   done
4289 IFS=$as_save_IFS
4290
4291 fi
4292 fi
4293 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4294 if test -n "$ac_ct_DLLTOOL"; then
4295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4296 $as_echo "$ac_ct_DLLTOOL" >&6; }
4297 else
4298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299 $as_echo "no" >&6; }
4300 fi
4301
4302   if test "x$ac_ct_DLLTOOL" = x; then
4303     DLLTOOL="false"
4304   else
4305     case $cross_compiling:$ac_tool_warned in
4306 yes:)
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4309 ac_tool_warned=yes ;;
4310 esac
4311     DLLTOOL=$ac_ct_DLLTOOL
4312   fi
4313 else
4314   DLLTOOL="$ac_cv_prog_DLLTOOL"
4315 fi
4316
4317   if test -n "$ac_tool_prefix"; then
4318   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4319 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 $as_echo_n "checking for $ac_word... " >&6; }
4322 if ${ac_cv_prog_OBJDUMP+:} false; then :
4323   $as_echo_n "(cached) " >&6
4324 else
4325   if test -n "$OBJDUMP"; then
4326   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4327 else
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 for as_dir in $PATH
4330 do
4331   IFS=$as_save_IFS
4332   test -z "$as_dir" && as_dir=.
4333     for ac_exec_ext in '' $ac_executable_extensions; do
4334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4335     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337     break 2
4338   fi
4339 done
4340   done
4341 IFS=$as_save_IFS
4342
4343 fi
4344 fi
4345 OBJDUMP=$ac_cv_prog_OBJDUMP
4346 if test -n "$OBJDUMP"; then
4347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4348 $as_echo "$OBJDUMP" >&6; }
4349 else
4350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4352 fi
4353
4354
4355 fi
4356 if test -z "$ac_cv_prog_OBJDUMP"; then
4357   ac_ct_OBJDUMP=$OBJDUMP
4358   # Extract the first word of "objdump", so it can be a program name with args.
4359 set dummy objdump; ac_word=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4363   $as_echo_n "(cached) " >&6
4364 else
4365   if test -n "$ac_ct_OBJDUMP"; then
4366   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371   IFS=$as_save_IFS
4372   test -z "$as_dir" && as_dir=.
4373     for ac_exec_ext in '' $ac_executable_extensions; do
4374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4375     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377     break 2
4378   fi
4379 done
4380   done
4381 IFS=$as_save_IFS
4382
4383 fi
4384 fi
4385 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4386 if test -n "$ac_ct_OBJDUMP"; then
4387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4388 $as_echo "$ac_ct_OBJDUMP" >&6; }
4389 else
4390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4392 fi
4393
4394   if test "x$ac_ct_OBJDUMP" = x; then
4395     OBJDUMP="false"
4396   else
4397     case $cross_compiling:$ac_tool_warned in
4398 yes:)
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4401 ac_tool_warned=yes ;;
4402 esac
4403     OBJDUMP=$ac_ct_OBJDUMP
4404   fi
4405 else
4406   OBJDUMP="$ac_cv_prog_OBJDUMP"
4407 fi
4408
4409   ;;
4410 esac
4411
4412 test -z "$AS" && AS=as
4413
4414
4415
4416
4417
4418 test -z "$DLLTOOL" && DLLTOOL=dlltool
4419
4420
4421
4422
4423
4424 test -z "$OBJDUMP" && OBJDUMP=objdump
4425
4426
4427
4428
4429
4430
4431
4432 case `pwd` in
4433   *\ * | *\     *)
4434     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4435 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4436 esac
4437
4438
4439
4440 macro_version='2.4.6'
4441 macro_revision='2.4.6'
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455 ltmain=$ac_aux_dir/ltmain.sh
4456
4457 # Backslashify metacharacters that are still active within
4458 # double-quoted strings.
4459 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4460
4461 # Same as above, but do not quote variable references.
4462 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4463
4464 # Sed substitution to delay expansion of an escaped shell variable in a
4465 # double_quote_subst'ed string.
4466 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4467
4468 # Sed substitution to delay expansion of an escaped single quote.
4469 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4470
4471 # Sed substitution to avoid accidental globbing in evaled expressions
4472 no_glob_subst='s/\*/\\\*/g'
4473
4474 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4475 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4476 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4477
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4479 $as_echo_n "checking how to print strings... " >&6; }
4480 # Test print first, because it will be a builtin if present.
4481 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4482    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4483   ECHO='print -r --'
4484 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4485   ECHO='printf %s\n'
4486 else
4487   # Use this function as a fallback that always works.
4488   func_fallback_echo ()
4489   {
4490     eval 'cat <<_LTECHO_EOF
4491 $1
4492 _LTECHO_EOF'
4493   }
4494   ECHO='func_fallback_echo'
4495 fi
4496
4497 # func_echo_all arg...
4498 # Invoke $ECHO with all args, space-separated.
4499 func_echo_all ()
4500 {
4501     $ECHO ""
4502 }
4503
4504 case $ECHO in
4505   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4506 $as_echo "printf" >&6; } ;;
4507   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4508 $as_echo "print -r" >&6; } ;;
4509   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4510 $as_echo "cat" >&6; } ;;
4511 esac
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4527 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4528 if ${ac_cv_path_SED+:} false; then :
4529   $as_echo_n "(cached) " >&6
4530 else
4531             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4532      for ac_i in 1 2 3 4 5 6 7; do
4533        ac_script="$ac_script$as_nl$ac_script"
4534      done
4535      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4536      { ac_script=; unset ac_script;}
4537      if test -z "$SED"; then
4538   ac_path_SED_found=false
4539   # Loop through the user's path and test for each of PROGNAME-LIST
4540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 for as_dir in $PATH
4542 do
4543   IFS=$as_save_IFS
4544   test -z "$as_dir" && as_dir=.
4545     for ac_prog in sed gsed; do
4546     for ac_exec_ext in '' $ac_executable_extensions; do
4547       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4548       as_fn_executable_p "$ac_path_SED" || continue
4549 # Check for GNU ac_path_SED and select it if it is found.
4550   # Check for GNU $ac_path_SED
4551 case `"$ac_path_SED" --version 2>&1` in
4552 *GNU*)
4553   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4554 *)
4555   ac_count=0
4556   $as_echo_n 0123456789 >"conftest.in"
4557   while :
4558   do
4559     cat "conftest.in" "conftest.in" >"conftest.tmp"
4560     mv "conftest.tmp" "conftest.in"
4561     cp "conftest.in" "conftest.nl"
4562     $as_echo '' >> "conftest.nl"
4563     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4564     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4565     as_fn_arith $ac_count + 1 && ac_count=$as_val
4566     if test $ac_count -gt ${ac_path_SED_max-0}; then
4567       # Best one so far, save it but keep looking for a better one
4568       ac_cv_path_SED="$ac_path_SED"
4569       ac_path_SED_max=$ac_count
4570     fi
4571     # 10*(2^10) chars as input seems more than enough
4572     test $ac_count -gt 10 && break
4573   done
4574   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4575 esac
4576
4577       $ac_path_SED_found && break 3
4578     done
4579   done
4580   done
4581 IFS=$as_save_IFS
4582   if test -z "$ac_cv_path_SED"; then
4583     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4584   fi
4585 else
4586   ac_cv_path_SED=$SED
4587 fi
4588
4589 fi
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4591 $as_echo "$ac_cv_path_SED" >&6; }
4592  SED="$ac_cv_path_SED"
4593   rm -f conftest.sed
4594
4595 test -z "$SED" && SED=sed
4596 Xsed="$SED -e 1s/^X//"
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4609 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4610 if ${ac_cv_path_GREP+:} false; then :
4611   $as_echo_n "(cached) " >&6
4612 else
4613   if test -z "$GREP"; then
4614   ac_path_GREP_found=false
4615   # Loop through the user's path and test for each of PROGNAME-LIST
4616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4618 do
4619   IFS=$as_save_IFS
4620   test -z "$as_dir" && as_dir=.
4621     for ac_prog in grep ggrep; do
4622     for ac_exec_ext in '' $ac_executable_extensions; do
4623       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4624       as_fn_executable_p "$ac_path_GREP" || continue
4625 # Check for GNU ac_path_GREP and select it if it is found.
4626   # Check for GNU $ac_path_GREP
4627 case `"$ac_path_GREP" --version 2>&1` in
4628 *GNU*)
4629   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4630 *)
4631   ac_count=0
4632   $as_echo_n 0123456789 >"conftest.in"
4633   while :
4634   do
4635     cat "conftest.in" "conftest.in" >"conftest.tmp"
4636     mv "conftest.tmp" "conftest.in"
4637     cp "conftest.in" "conftest.nl"
4638     $as_echo 'GREP' >> "conftest.nl"
4639     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4640     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4641     as_fn_arith $ac_count + 1 && ac_count=$as_val
4642     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4643       # Best one so far, save it but keep looking for a better one
4644       ac_cv_path_GREP="$ac_path_GREP"
4645       ac_path_GREP_max=$ac_count
4646     fi
4647     # 10*(2^10) chars as input seems more than enough
4648     test $ac_count -gt 10 && break
4649   done
4650   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4651 esac
4652
4653       $ac_path_GREP_found && break 3
4654     done
4655   done
4656   done
4657 IFS=$as_save_IFS
4658   if test -z "$ac_cv_path_GREP"; then
4659     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4660   fi
4661 else
4662   ac_cv_path_GREP=$GREP
4663 fi
4664
4665 fi
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4667 $as_echo "$ac_cv_path_GREP" >&6; }
4668  GREP="$ac_cv_path_GREP"
4669
4670
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4672 $as_echo_n "checking for egrep... " >&6; }
4673 if ${ac_cv_path_EGREP+:} false; then :
4674   $as_echo_n "(cached) " >&6
4675 else
4676   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4677    then ac_cv_path_EGREP="$GREP -E"
4678    else
4679      if test -z "$EGREP"; then
4680   ac_path_EGREP_found=false
4681   # Loop through the user's path and test for each of PROGNAME-LIST
4682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4684 do
4685   IFS=$as_save_IFS
4686   test -z "$as_dir" && as_dir=.
4687     for ac_prog in egrep; do
4688     for ac_exec_ext in '' $ac_executable_extensions; do
4689       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4690       as_fn_executable_p "$ac_path_EGREP" || continue
4691 # Check for GNU ac_path_EGREP and select it if it is found.
4692   # Check for GNU $ac_path_EGREP
4693 case `"$ac_path_EGREP" --version 2>&1` in
4694 *GNU*)
4695   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4696 *)
4697   ac_count=0
4698   $as_echo_n 0123456789 >"conftest.in"
4699   while :
4700   do
4701     cat "conftest.in" "conftest.in" >"conftest.tmp"
4702     mv "conftest.tmp" "conftest.in"
4703     cp "conftest.in" "conftest.nl"
4704     $as_echo 'EGREP' >> "conftest.nl"
4705     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4706     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4707     as_fn_arith $ac_count + 1 && ac_count=$as_val
4708     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4709       # Best one so far, save it but keep looking for a better one
4710       ac_cv_path_EGREP="$ac_path_EGREP"
4711       ac_path_EGREP_max=$ac_count
4712     fi
4713     # 10*(2^10) chars as input seems more than enough
4714     test $ac_count -gt 10 && break
4715   done
4716   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4717 esac
4718
4719       $ac_path_EGREP_found && break 3
4720     done
4721   done
4722   done
4723 IFS=$as_save_IFS
4724   if test -z "$ac_cv_path_EGREP"; then
4725     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4726   fi
4727 else
4728   ac_cv_path_EGREP=$EGREP
4729 fi
4730
4731    fi
4732 fi
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4734 $as_echo "$ac_cv_path_EGREP" >&6; }
4735  EGREP="$ac_cv_path_EGREP"
4736
4737
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4739 $as_echo_n "checking for fgrep... " >&6; }
4740 if ${ac_cv_path_FGREP+:} false; then :
4741   $as_echo_n "(cached) " >&6
4742 else
4743   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4744    then ac_cv_path_FGREP="$GREP -F"
4745    else
4746      if test -z "$FGREP"; then
4747   ac_path_FGREP_found=false
4748   # Loop through the user's path and test for each of PROGNAME-LIST
4749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754     for ac_prog in fgrep; do
4755     for ac_exec_ext in '' $ac_executable_extensions; do
4756       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4757       as_fn_executable_p "$ac_path_FGREP" || continue
4758 # Check for GNU ac_path_FGREP and select it if it is found.
4759   # Check for GNU $ac_path_FGREP
4760 case `"$ac_path_FGREP" --version 2>&1` in
4761 *GNU*)
4762   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4763 *)
4764   ac_count=0
4765   $as_echo_n 0123456789 >"conftest.in"
4766   while :
4767   do
4768     cat "conftest.in" "conftest.in" >"conftest.tmp"
4769     mv "conftest.tmp" "conftest.in"
4770     cp "conftest.in" "conftest.nl"
4771     $as_echo 'FGREP' >> "conftest.nl"
4772     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4773     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4774     as_fn_arith $ac_count + 1 && ac_count=$as_val
4775     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4776       # Best one so far, save it but keep looking for a better one
4777       ac_cv_path_FGREP="$ac_path_FGREP"
4778       ac_path_FGREP_max=$ac_count
4779     fi
4780     # 10*(2^10) chars as input seems more than enough
4781     test $ac_count -gt 10 && break
4782   done
4783   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4784 esac
4785
4786       $ac_path_FGREP_found && break 3
4787     done
4788   done
4789   done
4790 IFS=$as_save_IFS
4791   if test -z "$ac_cv_path_FGREP"; then
4792     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4793   fi
4794 else
4795   ac_cv_path_FGREP=$FGREP
4796 fi
4797
4798    fi
4799 fi
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4801 $as_echo "$ac_cv_path_FGREP" >&6; }
4802  FGREP="$ac_cv_path_FGREP"
4803
4804
4805 test -z "$GREP" && GREP=grep
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825 # Check whether --with-gnu-ld was given.
4826 if test "${with_gnu_ld+set}" = set; then :
4827   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4828 else
4829   with_gnu_ld=no
4830 fi
4831
4832 ac_prog=ld
4833 if test yes = "$GCC"; then
4834   # Check if gcc -print-prog-name=ld gives a path.
4835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4836 $as_echo_n "checking for ld used by $CC... " >&6; }
4837   case $host in
4838   *-*-mingw*)
4839     # gcc leaves a trailing carriage return, which upsets mingw
4840     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4841   *)
4842     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4843   esac
4844   case $ac_prog in
4845     # Accept absolute paths.
4846     [\\/]* | ?:[\\/]*)
4847       re_direlt='/[^/][^/]*/\.\./'
4848       # Canonicalize the pathname of ld
4849       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4850       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4851         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4852       done
4853       test -z "$LD" && LD=$ac_prog
4854       ;;
4855   "")
4856     # If it fails, then pretend we aren't using GCC.
4857     ac_prog=ld
4858     ;;
4859   *)
4860     # If it is relative, then search for the first ld in PATH.
4861     with_gnu_ld=unknown
4862     ;;
4863   esac
4864 elif test yes = "$with_gnu_ld"; then
4865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4866 $as_echo_n "checking for GNU ld... " >&6; }
4867 else
4868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4869 $as_echo_n "checking for non-GNU ld... " >&6; }
4870 fi
4871 if ${lt_cv_path_LD+:} false; then :
4872   $as_echo_n "(cached) " >&6
4873 else
4874   if test -z "$LD"; then
4875   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4876   for ac_dir in $PATH; do
4877     IFS=$lt_save_ifs
4878     test -z "$ac_dir" && ac_dir=.
4879     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4880       lt_cv_path_LD=$ac_dir/$ac_prog
4881       # Check to see if the program is GNU ld.  I'd rather use --version,
4882       # but apparently some variants of GNU ld only accept -v.
4883       # Break only if it was the GNU/non-GNU ld that we prefer.
4884       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4885       *GNU* | *'with BFD'*)
4886         test no != "$with_gnu_ld" && break
4887         ;;
4888       *)
4889         test yes != "$with_gnu_ld" && break
4890         ;;
4891       esac
4892     fi
4893   done
4894   IFS=$lt_save_ifs
4895 else
4896   lt_cv_path_LD=$LD # Let the user override the test with a path.
4897 fi
4898 fi
4899
4900 LD=$lt_cv_path_LD
4901 if test -n "$LD"; then
4902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4903 $as_echo "$LD" >&6; }
4904 else
4905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906 $as_echo "no" >&6; }
4907 fi
4908 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4910 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4911 if ${lt_cv_prog_gnu_ld+:} false; then :
4912   $as_echo_n "(cached) " >&6
4913 else
4914   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4915 case `$LD -v 2>&1 </dev/null` in
4916 *GNU* | *'with BFD'*)
4917   lt_cv_prog_gnu_ld=yes
4918   ;;
4919 *)
4920   lt_cv_prog_gnu_ld=no
4921   ;;
4922 esac
4923 fi
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4925 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4926 with_gnu_ld=$lt_cv_prog_gnu_ld
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4937 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4938 if ${lt_cv_path_NM+:} false; then :
4939   $as_echo_n "(cached) " >&6
4940 else
4941   if test -n "$NM"; then
4942   # Let the user override the test.
4943   lt_cv_path_NM=$NM
4944 else
4945   lt_nm_to_check=${ac_tool_prefix}nm
4946   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4947     lt_nm_to_check="$lt_nm_to_check nm"
4948   fi
4949   for lt_tmp_nm in $lt_nm_to_check; do
4950     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4951     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4952       IFS=$lt_save_ifs
4953       test -z "$ac_dir" && ac_dir=.
4954       tmp_nm=$ac_dir/$lt_tmp_nm
4955       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4956         # Check to see if the nm accepts a BSD-compat flag.
4957         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4958         #   nm: unknown option "B" ignored
4959         # Tru64's nm complains that /dev/null is an invalid object file
4960         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4961         case $build_os in
4962         mingw*) lt_bad_file=conftest.nm/nofile ;;
4963         *) lt_bad_file=/dev/null ;;
4964         esac
4965         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4966         *$lt_bad_file* | *'Invalid file or object type'*)
4967           lt_cv_path_NM="$tmp_nm -B"
4968           break 2
4969           ;;
4970         *)
4971           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4972           */dev/null*)
4973             lt_cv_path_NM="$tmp_nm -p"
4974             break 2
4975             ;;
4976           *)
4977             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4978             continue # so that we can try to find one that supports BSD flags
4979             ;;
4980           esac
4981           ;;
4982         esac
4983       fi
4984     done
4985     IFS=$lt_save_ifs
4986   done
4987   : ${lt_cv_path_NM=no}
4988 fi
4989 fi
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4991 $as_echo "$lt_cv_path_NM" >&6; }
4992 if test no != "$lt_cv_path_NM"; then
4993   NM=$lt_cv_path_NM
4994 else
4995   # Didn't find any BSD compatible name lister, look for dumpbin.
4996   if test -n "$DUMPBIN"; then :
4997     # Let the user override the test.
4998   else
4999     if test -n "$ac_tool_prefix"; then
5000   for ac_prog in dumpbin "link -dump"
5001   do
5002     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if ${ac_cv_prog_DUMPBIN+:} false; then :
5007   $as_echo_n "(cached) " >&6
5008 else
5009   if test -n "$DUMPBIN"; then
5010   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015   IFS=$as_save_IFS
5016   test -z "$as_dir" && as_dir=.
5017     for ac_exec_ext in '' $ac_executable_extensions; do
5018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5019     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021     break 2
5022   fi
5023 done
5024   done
5025 IFS=$as_save_IFS
5026
5027 fi
5028 fi
5029 DUMPBIN=$ac_cv_prog_DUMPBIN
5030 if test -n "$DUMPBIN"; then
5031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5032 $as_echo "$DUMPBIN" >&6; }
5033 else
5034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5036 fi
5037
5038
5039     test -n "$DUMPBIN" && break
5040   done
5041 fi
5042 if test -z "$DUMPBIN"; then
5043   ac_ct_DUMPBIN=$DUMPBIN
5044   for ac_prog in dumpbin "link -dump"
5045 do
5046   # Extract the first word of "$ac_prog", so it can be a program name with args.
5047 set dummy $ac_prog; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5051   $as_echo_n "(cached) " >&6
5052 else
5053   if test -n "$ac_ct_DUMPBIN"; then
5054   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5058 do
5059   IFS=$as_save_IFS
5060   test -z "$as_dir" && as_dir=.
5061     for ac_exec_ext in '' $ac_executable_extensions; do
5062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065     break 2
5066   fi
5067 done
5068   done
5069 IFS=$as_save_IFS
5070
5071 fi
5072 fi
5073 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5074 if test -n "$ac_ct_DUMPBIN"; then
5075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5076 $as_echo "$ac_ct_DUMPBIN" >&6; }
5077 else
5078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5080 fi
5081
5082
5083   test -n "$ac_ct_DUMPBIN" && break
5084 done
5085
5086   if test "x$ac_ct_DUMPBIN" = x; then
5087     DUMPBIN=":"
5088   else
5089     case $cross_compiling:$ac_tool_warned in
5090 yes:)
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5093 ac_tool_warned=yes ;;
5094 esac
5095     DUMPBIN=$ac_ct_DUMPBIN
5096   fi
5097 fi
5098
5099     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5100     *COFF*)
5101       DUMPBIN="$DUMPBIN -symbols -headers"
5102       ;;
5103     *)
5104       DUMPBIN=:
5105       ;;
5106     esac
5107   fi
5108
5109   if test : != "$DUMPBIN"; then
5110     NM=$DUMPBIN
5111   fi
5112 fi
5113 test -z "$NM" && NM=nm
5114
5115
5116
5117
5118
5119
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5121 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5122 if ${lt_cv_nm_interface+:} false; then :
5123   $as_echo_n "(cached) " >&6
5124 else
5125   lt_cv_nm_interface="BSD nm"
5126   echo "int some_variable = 0;" > conftest.$ac_ext
5127   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5128   (eval "$ac_compile" 2>conftest.err)
5129   cat conftest.err >&5
5130   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5131   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5132   cat conftest.err >&5
5133   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5134   cat conftest.out >&5
5135   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5136     lt_cv_nm_interface="MS dumpbin"
5137   fi
5138   rm -f conftest*
5139 fi
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5141 $as_echo "$lt_cv_nm_interface" >&6; }
5142
5143 # find the maximum length of command line arguments
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5145 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5146 if ${lt_cv_sys_max_cmd_len+:} false; then :
5147   $as_echo_n "(cached) " >&6
5148 else
5149     i=0
5150   teststring=ABCD
5151
5152   case $build_os in
5153   msdosdjgpp*)
5154     # On DJGPP, this test can blow up pretty badly due to problems in libc
5155     # (any single argument exceeding 2000 bytes causes a buffer overrun
5156     # during glob expansion).  Even if it were fixed, the result of this
5157     # check would be larger than it should be.
5158     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5159     ;;
5160
5161   gnu*)
5162     # Under GNU Hurd, this test is not required because there is
5163     # no limit to the length of command line arguments.
5164     # Libtool will interpret -1 as no limit whatsoever
5165     lt_cv_sys_max_cmd_len=-1;
5166     ;;
5167
5168   cygwin* | mingw* | cegcc*)
5169     # On Win9x/ME, this test blows up -- it succeeds, but takes
5170     # about 5 minutes as the teststring grows exponentially.
5171     # Worse, since 9x/ME are not pre-emptively multitasking,
5172     # you end up with a "frozen" computer, even though with patience
5173     # the test eventually succeeds (with a max line length of 256k).
5174     # Instead, let's just punt: use the minimum linelength reported by
5175     # all of the supported platforms: 8192 (on NT/2K/XP).
5176     lt_cv_sys_max_cmd_len=8192;
5177     ;;
5178
5179   mint*)
5180     # On MiNT this can take a long time and run out of memory.
5181     lt_cv_sys_max_cmd_len=8192;
5182     ;;
5183
5184   amigaos*)
5185     # On AmigaOS with pdksh, this test takes hours, literally.
5186     # So we just punt and use a minimum line length of 8192.
5187     lt_cv_sys_max_cmd_len=8192;
5188     ;;
5189
5190   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5191     # This has been around since 386BSD, at least.  Likely further.
5192     if test -x /sbin/sysctl; then
5193       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5194     elif test -x /usr/sbin/sysctl; then
5195       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5196     else
5197       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5198     fi
5199     # And add a safety zone
5200     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5201     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5202     ;;
5203
5204   interix*)
5205     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5206     lt_cv_sys_max_cmd_len=196608
5207     ;;
5208
5209   os2*)
5210     # The test takes a long time on OS/2.
5211     lt_cv_sys_max_cmd_len=8192
5212     ;;
5213
5214   osf*)
5215     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5216     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5217     # nice to cause kernel panics so lets avoid the loop below.
5218     # First set a reasonable default.
5219     lt_cv_sys_max_cmd_len=16384
5220     #
5221     if test -x /sbin/sysconfig; then
5222       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5223         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5224       esac
5225     fi
5226     ;;
5227   sco3.2v5*)
5228     lt_cv_sys_max_cmd_len=102400
5229     ;;
5230   sysv5* | sco5v6* | sysv4.2uw2*)
5231     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5232     if test -n "$kargmax"; then
5233       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5234     else
5235       lt_cv_sys_max_cmd_len=32768
5236     fi
5237     ;;
5238   *)
5239     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5240     if test -n "$lt_cv_sys_max_cmd_len" && \
5241        test undefined != "$lt_cv_sys_max_cmd_len"; then
5242       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5243       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5244     else
5245       # Make teststring a little bigger before we do anything with it.
5246       # a 1K string should be a reasonable start.
5247       for i in 1 2 3 4 5 6 7 8; do
5248         teststring=$teststring$teststring
5249       done
5250       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5251       # If test is not a shell built-in, we'll probably end up computing a
5252       # maximum length that is only half of the actual maximum length, but
5253       # we can't tell.
5254       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5255                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5256               test 17 != "$i" # 1/2 MB should be enough
5257       do
5258         i=`expr $i + 1`
5259         teststring=$teststring$teststring
5260       done
5261       # Only check the string length outside the loop.
5262       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5263       teststring=
5264       # Add a significant safety factor because C++ compilers can tack on
5265       # massive amounts of additional arguments before passing them to the
5266       # linker.  It appears as though 1/2 is a usable value.
5267       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5268     fi
5269     ;;
5270   esac
5271
5272 fi
5273
5274 if test -n "$lt_cv_sys_max_cmd_len"; then
5275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5276 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5277 else
5278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5279 $as_echo "none" >&6; }
5280 fi
5281 max_cmd_len=$lt_cv_sys_max_cmd_len
5282
5283
5284
5285
5286
5287
5288 : ${CP="cp -f"}
5289 : ${MV="mv -f"}
5290 : ${RM="rm -f"}
5291
5292 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5293   lt_unset=unset
5294 else
5295   lt_unset=false
5296 fi
5297
5298
5299
5300
5301
5302 # test EBCDIC or ASCII
5303 case `echo X|tr X '\101'` in
5304  A) # ASCII based system
5305     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5306   lt_SP2NL='tr \040 \012'
5307   lt_NL2SP='tr \015\012 \040\040'
5308   ;;
5309  *) # EBCDIC based system
5310   lt_SP2NL='tr \100 \n'
5311   lt_NL2SP='tr \r\n \100\100'
5312   ;;
5313 esac
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5324 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5325 if ${lt_cv_to_host_file_cmd+:} false; then :
5326   $as_echo_n "(cached) " >&6
5327 else
5328   case $host in
5329   *-*-mingw* )
5330     case $build in
5331       *-*-mingw* ) # actually msys
5332         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5333         ;;
5334       *-*-cygwin* )
5335         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5336         ;;
5337       * ) # otherwise, assume *nix
5338         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5339         ;;
5340     esac
5341     ;;
5342   *-*-cygwin* )
5343     case $build in
5344       *-*-mingw* ) # actually msys
5345         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5346         ;;
5347       *-*-cygwin* )
5348         lt_cv_to_host_file_cmd=func_convert_file_noop
5349         ;;
5350       * ) # otherwise, assume *nix
5351         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5352         ;;
5353     esac
5354     ;;
5355   * ) # unhandled hosts (and "normal" native builds)
5356     lt_cv_to_host_file_cmd=func_convert_file_noop
5357     ;;
5358 esac
5359
5360 fi
5361
5362 to_host_file_cmd=$lt_cv_to_host_file_cmd
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5364 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5365
5366
5367
5368
5369
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5371 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5372 if ${lt_cv_to_tool_file_cmd+:} false; then :
5373   $as_echo_n "(cached) " >&6
5374 else
5375   #assume ordinary cross tools, or native build.
5376 lt_cv_to_tool_file_cmd=func_convert_file_noop
5377 case $host in
5378   *-*-mingw* )
5379     case $build in
5380       *-*-mingw* ) # actually msys
5381         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5382         ;;
5383     esac
5384     ;;
5385 esac
5386
5387 fi
5388
5389 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5391 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5392
5393
5394
5395
5396
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5398 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5399 if ${lt_cv_ld_reload_flag+:} false; then :
5400   $as_echo_n "(cached) " >&6
5401 else
5402   lt_cv_ld_reload_flag='-r'
5403 fi
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5405 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5406 reload_flag=$lt_cv_ld_reload_flag
5407 case $reload_flag in
5408 "" | " "*) ;;
5409 *) reload_flag=" $reload_flag" ;;
5410 esac
5411 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5412 case $host_os in
5413   cygwin* | mingw* | pw32* | cegcc*)
5414     if test yes != "$GCC"; then
5415       reload_cmds=false
5416     fi
5417     ;;
5418   darwin*)
5419     if test yes = "$GCC"; then
5420       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5421     else
5422       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5423     fi
5424     ;;
5425 esac
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435 if test -n "$ac_tool_prefix"; then
5436   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5437 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5439 $as_echo_n "checking for $ac_word... " >&6; }
5440 if ${ac_cv_prog_OBJDUMP+:} false; then :
5441   $as_echo_n "(cached) " >&6
5442 else
5443   if test -n "$OBJDUMP"; then
5444   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5445 else
5446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 for as_dir in $PATH
5448 do
5449   IFS=$as_save_IFS
5450   test -z "$as_dir" && as_dir=.
5451     for ac_exec_ext in '' $ac_executable_extensions; do
5452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5453     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5455     break 2
5456   fi
5457 done
5458   done
5459 IFS=$as_save_IFS
5460
5461 fi
5462 fi
5463 OBJDUMP=$ac_cv_prog_OBJDUMP
5464 if test -n "$OBJDUMP"; then
5465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5466 $as_echo "$OBJDUMP" >&6; }
5467 else
5468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469 $as_echo "no" >&6; }
5470 fi
5471
5472
5473 fi
5474 if test -z "$ac_cv_prog_OBJDUMP"; then
5475   ac_ct_OBJDUMP=$OBJDUMP
5476   # Extract the first word of "objdump", so it can be a program name with args.
5477 set dummy objdump; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5481   $as_echo_n "(cached) " >&6
5482 else
5483   if test -n "$ac_ct_OBJDUMP"; then
5484   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5485 else
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 for as_dir in $PATH
5488 do
5489   IFS=$as_save_IFS
5490   test -z "$as_dir" && as_dir=.
5491     for ac_exec_ext in '' $ac_executable_extensions; do
5492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495     break 2
5496   fi
5497 done
5498   done
5499 IFS=$as_save_IFS
5500
5501 fi
5502 fi
5503 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5504 if test -n "$ac_ct_OBJDUMP"; then
5505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5506 $as_echo "$ac_ct_OBJDUMP" >&6; }
5507 else
5508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509 $as_echo "no" >&6; }
5510 fi
5511
5512   if test "x$ac_ct_OBJDUMP" = x; then
5513     OBJDUMP="false"
5514   else
5515     case $cross_compiling:$ac_tool_warned in
5516 yes:)
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5519 ac_tool_warned=yes ;;
5520 esac
5521     OBJDUMP=$ac_ct_OBJDUMP
5522   fi
5523 else
5524   OBJDUMP="$ac_cv_prog_OBJDUMP"
5525 fi
5526
5527 test -z "$OBJDUMP" && OBJDUMP=objdump
5528
5529
5530
5531
5532
5533
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5535 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5536 if ${lt_cv_deplibs_check_method+:} false; then :
5537   $as_echo_n "(cached) " >&6
5538 else
5539   lt_cv_file_magic_cmd='$MAGIC_CMD'
5540 lt_cv_file_magic_test_file=
5541 lt_cv_deplibs_check_method='unknown'
5542 # Need to set the preceding variable on all platforms that support
5543 # interlibrary dependencies.
5544 # 'none' -- dependencies not supported.
5545 # 'unknown' -- same as none, but documents that we really don't know.
5546 # 'pass_all' -- all dependencies passed with no checks.
5547 # 'test_compile' -- check by making test program.
5548 # 'file_magic [[regex]]' -- check by looking for files in library path
5549 # that responds to the $file_magic_cmd with a given extended regex.
5550 # If you have 'file' or equivalent on your system and you're not sure
5551 # whether 'pass_all' will *always* work, you probably want this one.
5552
5553 case $host_os in
5554 aix[4-9]*)
5555   lt_cv_deplibs_check_method=pass_all
5556   ;;
5557
5558 beos*)
5559   lt_cv_deplibs_check_method=pass_all
5560   ;;
5561
5562 bsdi[45]*)
5563   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5564   lt_cv_file_magic_cmd='/usr/bin/file -L'
5565   lt_cv_file_magic_test_file=/shlib/libc.so
5566   ;;
5567
5568 cygwin*)
5569   # func_win32_libid is a shell function defined in ltmain.sh
5570   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5571   lt_cv_file_magic_cmd='func_win32_libid'
5572   ;;
5573
5574 mingw* | pw32*)
5575   # Base MSYS/MinGW do not provide the 'file' command needed by
5576   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5577   # unless we find 'file', for example because we are cross-compiling.
5578   if ( file / ) >/dev/null 2>&1; then
5579     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5580     lt_cv_file_magic_cmd='func_win32_libid'
5581   else
5582     # Keep this pattern in sync with the one in func_win32_libid.
5583     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5584     lt_cv_file_magic_cmd='$OBJDUMP -f'
5585   fi
5586   ;;
5587
5588 cegcc*)
5589   # use the weaker test based on 'objdump'. See mingw*.
5590   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5591   lt_cv_file_magic_cmd='$OBJDUMP -f'
5592   ;;
5593
5594 darwin* | rhapsody*)
5595   lt_cv_deplibs_check_method=pass_all
5596   ;;
5597
5598 freebsd* | dragonfly*)
5599   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5600     case $host_cpu in
5601     i*86 )
5602       # Not sure whether the presence of OpenBSD here was a mistake.
5603       # Let's accept both of them until this is cleared up.
5604       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5605       lt_cv_file_magic_cmd=/usr/bin/file
5606       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5607       ;;
5608     esac
5609   else
5610     lt_cv_deplibs_check_method=pass_all
5611   fi
5612   ;;
5613
5614 haiku*)
5615   lt_cv_deplibs_check_method=pass_all
5616   ;;
5617
5618 hpux10.20* | hpux11*)
5619   lt_cv_file_magic_cmd=/usr/bin/file
5620   case $host_cpu in
5621   ia64*)
5622     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5623     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5624     ;;
5625   hppa*64*)
5626     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]'
5627     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5628     ;;
5629   *)
5630     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5631     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5632     ;;
5633   esac
5634   ;;
5635
5636 interix[3-9]*)
5637   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5638   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5639   ;;
5640
5641 irix5* | irix6* | nonstopux*)
5642   case $LD in
5643   *-32|*"-32 ") libmagic=32-bit;;
5644   *-n32|*"-n32 ") libmagic=N32;;
5645   *-64|*"-64 ") libmagic=64-bit;;
5646   *) libmagic=never-match;;
5647   esac
5648   lt_cv_deplibs_check_method=pass_all
5649   ;;
5650
5651 # This must be glibc/ELF.
5652 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5653   lt_cv_deplibs_check_method=pass_all
5654   ;;
5655
5656 netbsd*)
5657   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5658     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5659   else
5660     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5661   fi
5662   ;;
5663
5664 newos6*)
5665   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5666   lt_cv_file_magic_cmd=/usr/bin/file
5667   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5668   ;;
5669
5670 *nto* | *qnx*)
5671   lt_cv_deplibs_check_method=pass_all
5672   ;;
5673
5674 openbsd* | bitrig*)
5675   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5676     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5677   else
5678     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5679   fi
5680   ;;
5681
5682 osf3* | osf4* | osf5*)
5683   lt_cv_deplibs_check_method=pass_all
5684   ;;
5685
5686 rdos*)
5687   lt_cv_deplibs_check_method=pass_all
5688   ;;
5689
5690 solaris*)
5691   lt_cv_deplibs_check_method=pass_all
5692   ;;
5693
5694 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5695   lt_cv_deplibs_check_method=pass_all
5696   ;;
5697
5698 sysv4 | sysv4.3*)
5699   case $host_vendor in
5700   motorola)
5701     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]'
5702     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5703     ;;
5704   ncr)
5705     lt_cv_deplibs_check_method=pass_all
5706     ;;
5707   sequent)
5708     lt_cv_file_magic_cmd='/bin/file'
5709     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5710     ;;
5711   sni)
5712     lt_cv_file_magic_cmd='/bin/file'
5713     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5714     lt_cv_file_magic_test_file=/lib/libc.so
5715     ;;
5716   siemens)
5717     lt_cv_deplibs_check_method=pass_all
5718     ;;
5719   pc)
5720     lt_cv_deplibs_check_method=pass_all
5721     ;;
5722   esac
5723   ;;
5724
5725 tpf*)
5726   lt_cv_deplibs_check_method=pass_all
5727   ;;
5728 os2*)
5729   lt_cv_deplibs_check_method=pass_all
5730   ;;
5731 esac
5732
5733 fi
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5735 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5736
5737 file_magic_glob=
5738 want_nocaseglob=no
5739 if test "$build" = "$host"; then
5740   case $host_os in
5741   mingw* | pw32*)
5742     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5743       want_nocaseglob=yes
5744     else
5745       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5746     fi
5747     ;;
5748   esac
5749 fi
5750
5751 file_magic_cmd=$lt_cv_file_magic_cmd
5752 deplibs_check_method=$lt_cv_deplibs_check_method
5753 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776 if test -n "$ac_tool_prefix"; then
5777   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5778 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5780 $as_echo_n "checking for $ac_word... " >&6; }
5781 if ${ac_cv_prog_DLLTOOL+:} false; then :
5782   $as_echo_n "(cached) " >&6
5783 else
5784   if test -n "$DLLTOOL"; then
5785   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5786 else
5787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 for as_dir in $PATH
5789 do
5790   IFS=$as_save_IFS
5791   test -z "$as_dir" && as_dir=.
5792     for ac_exec_ext in '' $ac_executable_extensions; do
5793   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5794     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5796     break 2
5797   fi
5798 done
5799   done
5800 IFS=$as_save_IFS
5801
5802 fi
5803 fi
5804 DLLTOOL=$ac_cv_prog_DLLTOOL
5805 if test -n "$DLLTOOL"; then
5806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5807 $as_echo "$DLLTOOL" >&6; }
5808 else
5809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5810 $as_echo "no" >&6; }
5811 fi
5812
5813
5814 fi
5815 if test -z "$ac_cv_prog_DLLTOOL"; then
5816   ac_ct_DLLTOOL=$DLLTOOL
5817   # Extract the first word of "dlltool", so it can be a program name with args.
5818 set dummy dlltool; ac_word=$2
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820 $as_echo_n "checking for $ac_word... " >&6; }
5821 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5822   $as_echo_n "(cached) " >&6
5823 else
5824   if test -n "$ac_ct_DLLTOOL"; then
5825   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5826 else
5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 for as_dir in $PATH
5829 do
5830   IFS=$as_save_IFS
5831   test -z "$as_dir" && as_dir=.
5832     for ac_exec_ext in '' $ac_executable_extensions; do
5833   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5834     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836     break 2
5837   fi
5838 done
5839   done
5840 IFS=$as_save_IFS
5841
5842 fi
5843 fi
5844 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5845 if test -n "$ac_ct_DLLTOOL"; then
5846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5847 $as_echo "$ac_ct_DLLTOOL" >&6; }
5848 else
5849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850 $as_echo "no" >&6; }
5851 fi
5852
5853   if test "x$ac_ct_DLLTOOL" = x; then
5854     DLLTOOL="false"
5855   else
5856     case $cross_compiling:$ac_tool_warned in
5857 yes:)
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5860 ac_tool_warned=yes ;;
5861 esac
5862     DLLTOOL=$ac_ct_DLLTOOL
5863   fi
5864 else
5865   DLLTOOL="$ac_cv_prog_DLLTOOL"
5866 fi
5867
5868 test -z "$DLLTOOL" && DLLTOOL=dlltool
5869
5870
5871
5872
5873
5874
5875
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5877 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5878 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5879   $as_echo_n "(cached) " >&6
5880 else
5881   lt_cv_sharedlib_from_linklib_cmd='unknown'
5882
5883 case $host_os in
5884 cygwin* | mingw* | pw32* | cegcc*)
5885   # two different shell functions defined in ltmain.sh;
5886   # decide which one to use based on capabilities of $DLLTOOL
5887   case `$DLLTOOL --help 2>&1` in
5888   *--identify-strict*)
5889     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5890     ;;
5891   *)
5892     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5893     ;;
5894   esac
5895   ;;
5896 *)
5897   # fallback: assume linklib IS sharedlib
5898   lt_cv_sharedlib_from_linklib_cmd=$ECHO
5899   ;;
5900 esac
5901
5902 fi
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5904 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5905 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5906 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5907
5908
5909
5910
5911
5912
5913
5914
5915 if test -n "$ac_tool_prefix"; then
5916   for ac_prog in ar
5917   do
5918     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5919 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921 $as_echo_n "checking for $ac_word... " >&6; }
5922 if ${ac_cv_prog_AR+:} false; then :
5923   $as_echo_n "(cached) " >&6
5924 else
5925   if test -n "$AR"; then
5926   ac_cv_prog_AR="$AR" # Let the user override the test.
5927 else
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931   IFS=$as_save_IFS
5932   test -z "$as_dir" && as_dir=.
5933     for ac_exec_ext in '' $ac_executable_extensions; do
5934   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5935     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5937     break 2
5938   fi
5939 done
5940   done
5941 IFS=$as_save_IFS
5942
5943 fi
5944 fi
5945 AR=$ac_cv_prog_AR
5946 if test -n "$AR"; then
5947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5948 $as_echo "$AR" >&6; }
5949 else
5950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951 $as_echo "no" >&6; }
5952 fi
5953
5954
5955     test -n "$AR" && break
5956   done
5957 fi
5958 if test -z "$AR"; then
5959   ac_ct_AR=$AR
5960   for ac_prog in ar
5961 do
5962   # Extract the first word of "$ac_prog", so it can be a program name with args.
5963 set dummy $ac_prog; ac_word=$2
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5965 $as_echo_n "checking for $ac_word... " >&6; }
5966 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5967   $as_echo_n "(cached) " >&6
5968 else
5969   if test -n "$ac_ct_AR"; then
5970   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5971 else
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 for as_dir in $PATH
5974 do
5975   IFS=$as_save_IFS
5976   test -z "$as_dir" && as_dir=.
5977     for ac_exec_ext in '' $ac_executable_extensions; do
5978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979     ac_cv_prog_ac_ct_AR="$ac_prog"
5980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5981     break 2
5982   fi
5983 done
5984   done
5985 IFS=$as_save_IFS
5986
5987 fi
5988 fi
5989 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5990 if test -n "$ac_ct_AR"; then
5991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5992 $as_echo "$ac_ct_AR" >&6; }
5993 else
5994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995 $as_echo "no" >&6; }
5996 fi
5997
5998
5999   test -n "$ac_ct_AR" && break
6000 done
6001
6002   if test "x$ac_ct_AR" = x; then
6003     AR="false"
6004   else
6005     case $cross_compiling:$ac_tool_warned in
6006 yes:)
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6009 ac_tool_warned=yes ;;
6010 esac
6011     AR=$ac_ct_AR
6012   fi
6013 fi
6014
6015 : ${AR=ar}
6016 : ${AR_FLAGS=cru}
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6029 $as_echo_n "checking for archiver @FILE support... " >&6; }
6030 if ${lt_cv_ar_at_file+:} false; then :
6031   $as_echo_n "(cached) " >&6
6032 else
6033   lt_cv_ar_at_file=no
6034    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h.  */
6036
6037 int
6038 main ()
6039 {
6040
6041   ;
6042   return 0;
6043 }
6044 _ACEOF
6045 if ac_fn_c_try_compile "$LINENO"; then :
6046   echo conftest.$ac_objext > conftest.lst
6047       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6048       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6049   (eval $lt_ar_try) 2>&5
6050   ac_status=$?
6051   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6052   test $ac_status = 0; }
6053       if test 0 -eq "$ac_status"; then
6054         # Ensure the archiver fails upon bogus file names.
6055         rm -f conftest.$ac_objext libconftest.a
6056         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6057   (eval $lt_ar_try) 2>&5
6058   ac_status=$?
6059   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6060   test $ac_status = 0; }
6061         if test 0 -ne "$ac_status"; then
6062           lt_cv_ar_at_file=@
6063         fi
6064       fi
6065       rm -f conftest.* libconftest.a
6066
6067 fi
6068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6069
6070 fi
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6072 $as_echo "$lt_cv_ar_at_file" >&6; }
6073
6074 if test no = "$lt_cv_ar_at_file"; then
6075   archiver_list_spec=
6076 else
6077   archiver_list_spec=$lt_cv_ar_at_file
6078 fi
6079
6080
6081
6082
6083
6084
6085
6086 if test -n "$ac_tool_prefix"; then
6087   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6088 set dummy ${ac_tool_prefix}strip; ac_word=$2
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090 $as_echo_n "checking for $ac_word... " >&6; }
6091 if ${ac_cv_prog_STRIP+:} false; then :
6092   $as_echo_n "(cached) " >&6
6093 else
6094   if test -n "$STRIP"; then
6095   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6096 else
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 for as_dir in $PATH
6099 do
6100   IFS=$as_save_IFS
6101   test -z "$as_dir" && as_dir=.
6102     for ac_exec_ext in '' $ac_executable_extensions; do
6103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6104     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106     break 2
6107   fi
6108 done
6109   done
6110 IFS=$as_save_IFS
6111
6112 fi
6113 fi
6114 STRIP=$ac_cv_prog_STRIP
6115 if test -n "$STRIP"; then
6116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6117 $as_echo "$STRIP" >&6; }
6118 else
6119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6121 fi
6122
6123
6124 fi
6125 if test -z "$ac_cv_prog_STRIP"; then
6126   ac_ct_STRIP=$STRIP
6127   # Extract the first word of "strip", so it can be a program name with args.
6128 set dummy strip; ac_word=$2
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130 $as_echo_n "checking for $ac_word... " >&6; }
6131 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6132   $as_echo_n "(cached) " >&6
6133 else
6134   if test -n "$ac_ct_STRIP"; then
6135   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6136 else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140   IFS=$as_save_IFS
6141   test -z "$as_dir" && as_dir=.
6142     for ac_exec_ext in '' $ac_executable_extensions; do
6143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6144     ac_cv_prog_ac_ct_STRIP="strip"
6145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146     break 2
6147   fi
6148 done
6149   done
6150 IFS=$as_save_IFS
6151
6152 fi
6153 fi
6154 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6155 if test -n "$ac_ct_STRIP"; then
6156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6157 $as_echo "$ac_ct_STRIP" >&6; }
6158 else
6159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160 $as_echo "no" >&6; }
6161 fi
6162
6163   if test "x$ac_ct_STRIP" = x; then
6164     STRIP=":"
6165   else
6166     case $cross_compiling:$ac_tool_warned in
6167 yes:)
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6170 ac_tool_warned=yes ;;
6171 esac
6172     STRIP=$ac_ct_STRIP
6173   fi
6174 else
6175   STRIP="$ac_cv_prog_STRIP"
6176 fi
6177
6178 test -z "$STRIP" && STRIP=:
6179
6180
6181
6182
6183
6184
6185 if test -n "$ac_tool_prefix"; then
6186   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6187 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189 $as_echo_n "checking for $ac_word... " >&6; }
6190 if ${ac_cv_prog_RANLIB+:} false; then :
6191   $as_echo_n "(cached) " >&6
6192 else
6193   if test -n "$RANLIB"; then
6194   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6195 else
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 for as_dir in $PATH
6198 do
6199   IFS=$as_save_IFS
6200   test -z "$as_dir" && as_dir=.
6201     for ac_exec_ext in '' $ac_executable_extensions; do
6202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6203     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6205     break 2
6206   fi
6207 done
6208   done
6209 IFS=$as_save_IFS
6210
6211 fi
6212 fi
6213 RANLIB=$ac_cv_prog_RANLIB
6214 if test -n "$RANLIB"; then
6215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6216 $as_echo "$RANLIB" >&6; }
6217 else
6218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6219 $as_echo "no" >&6; }
6220 fi
6221
6222
6223 fi
6224 if test -z "$ac_cv_prog_RANLIB"; then
6225   ac_ct_RANLIB=$RANLIB
6226   # Extract the first word of "ranlib", so it can be a program name with args.
6227 set dummy ranlib; ac_word=$2
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6229 $as_echo_n "checking for $ac_word... " >&6; }
6230 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6231   $as_echo_n "(cached) " >&6
6232 else
6233   if test -n "$ac_ct_RANLIB"; then
6234   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6235 else
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6238 do
6239   IFS=$as_save_IFS
6240   test -z "$as_dir" && as_dir=.
6241     for ac_exec_ext in '' $ac_executable_extensions; do
6242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6243     ac_cv_prog_ac_ct_RANLIB="ranlib"
6244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6245     break 2
6246   fi
6247 done
6248   done
6249 IFS=$as_save_IFS
6250
6251 fi
6252 fi
6253 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6254 if test -n "$ac_ct_RANLIB"; then
6255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6256 $as_echo "$ac_ct_RANLIB" >&6; }
6257 else
6258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 $as_echo "no" >&6; }
6260 fi
6261
6262   if test "x$ac_ct_RANLIB" = x; then
6263     RANLIB=":"
6264   else
6265     case $cross_compiling:$ac_tool_warned in
6266 yes:)
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6269 ac_tool_warned=yes ;;
6270 esac
6271     RANLIB=$ac_ct_RANLIB
6272   fi
6273 else
6274   RANLIB="$ac_cv_prog_RANLIB"
6275 fi
6276
6277 test -z "$RANLIB" && RANLIB=:
6278
6279
6280
6281
6282
6283
6284 # Determine commands to create old-style static archives.
6285 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6286 old_postinstall_cmds='chmod 644 $oldlib'
6287 old_postuninstall_cmds=
6288
6289 if test -n "$RANLIB"; then
6290   case $host_os in
6291   bitrig* | openbsd*)
6292     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6293     ;;
6294   *)
6295     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6296     ;;
6297   esac
6298   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6299 fi
6300
6301 case $host_os in
6302   darwin*)
6303     lock_old_archive_extraction=yes ;;
6304   *)
6305     lock_old_archive_extraction=no ;;
6306 esac
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346 # If no C compiler was specified, use CC.
6347 LTCC=${LTCC-"$CC"}
6348
6349 # If no C compiler flags were specified, use CFLAGS.
6350 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6351
6352 # Allow CC to be a program name with arguments.
6353 compiler=$CC
6354
6355
6356 # Check for command to grab the raw symbol name followed by C symbol from nm.
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6358 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6359 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6360   $as_echo_n "(cached) " >&6
6361 else
6362
6363 # These are sane defaults that work on at least a few old systems.
6364 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6365
6366 # Character class describing NM global symbol codes.
6367 symcode='[BCDEGRST]'
6368
6369 # Regexp to match symbols that can be accessed directly from C.
6370 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6371
6372 # Define system-specific variables.
6373 case $host_os in
6374 aix*)
6375   symcode='[BCDT]'
6376   ;;
6377 cygwin* | mingw* | pw32* | cegcc*)
6378   symcode='[ABCDGISTW]'
6379   ;;
6380 hpux*)
6381   if test ia64 = "$host_cpu"; then
6382     symcode='[ABCDEGRST]'
6383   fi
6384   ;;
6385 irix* | nonstopux*)
6386   symcode='[BCDEGRST]'
6387   ;;
6388 osf*)
6389   symcode='[BCDEGQRST]'
6390   ;;
6391 solaris*)
6392   symcode='[BDRT]'
6393   ;;
6394 sco3.2v5*)
6395   symcode='[DT]'
6396   ;;
6397 sysv4.2uw2*)
6398   symcode='[DT]'
6399   ;;
6400 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6401   symcode='[ABDT]'
6402   ;;
6403 sysv4)
6404   symcode='[DFNSTU]'
6405   ;;
6406 esac
6407
6408 # If we're using GNU nm, then use its standard symbol codes.
6409 case `$NM -V 2>&1` in
6410 *GNU* | *'with BFD'*)
6411   symcode='[ABCDGIRSTW]' ;;
6412 esac
6413
6414 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6415   # Gets list of data symbols to import.
6416   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6417   # Adjust the below global symbol transforms to fixup imported variables.
6418   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6419   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6420   lt_c_name_lib_hook="\
6421   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6422   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6423 else
6424   # Disable hooks by default.
6425   lt_cv_sys_global_symbol_to_import=
6426   lt_cdecl_hook=
6427   lt_c_name_hook=
6428   lt_c_name_lib_hook=
6429 fi
6430
6431 # Transform an extracted symbol line into a proper C declaration.
6432 # Some systems (esp. on ia64) link data and code symbols differently,
6433 # so use this general approach.
6434 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6435 $lt_cdecl_hook\
6436 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6437 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6438
6439 # Transform an extracted symbol line into symbol name and symbol address
6440 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6441 $lt_c_name_hook\
6442 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6443 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6444
6445 # Transform an extracted symbol line into symbol name with lib prefix and
6446 # symbol address.
6447 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6448 $lt_c_name_lib_hook\
6449 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6450 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6451 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6452
6453 # Handle CRLF in mingw tool chain
6454 opt_cr=
6455 case $build_os in
6456 mingw*)
6457   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6458   ;;
6459 esac
6460
6461 # Try without a prefix underscore, then with it.
6462 for ac_symprfx in "" "_"; do
6463
6464   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6465   symxfrm="\\1 $ac_symprfx\\2 \\2"
6466
6467   # Write the raw and C identifiers.
6468   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6469     # Fake it for dumpbin and say T for any non-static function,
6470     # D for any global variable and I for any imported variable.
6471     # Also find C++ and __fastcall symbols from MSVC++,
6472     # which start with @ or ?.
6473     lt_cv_sys_global_symbol_pipe="$AWK '"\
6474 "     {last_section=section; section=\$ 3};"\
6475 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6476 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6477 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6478 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6479 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6480 "     \$ 0!~/External *\|/{next};"\
6481 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6482 "     {if(hide[section]) next};"\
6483 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6484 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6485 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6486 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6487 "     ' prfx=^$ac_symprfx"
6488   else
6489     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6490   fi
6491   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6492
6493   # Check to see that the pipe works correctly.
6494   pipe_works=no
6495
6496   rm -f conftest*
6497   cat > conftest.$ac_ext <<_LT_EOF
6498 #ifdef __cplusplus
6499 extern "C" {
6500 #endif
6501 char nm_test_var;
6502 void nm_test_func(void);
6503 void nm_test_func(void){}
6504 #ifdef __cplusplus
6505 }
6506 #endif
6507 int main(){nm_test_var='a';nm_test_func();return(0);}
6508 _LT_EOF
6509
6510   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6511   (eval $ac_compile) 2>&5
6512   ac_status=$?
6513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6514   test $ac_status = 0; }; then
6515     # Now try to grab the symbols.
6516     nlist=conftest.nm
6517     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6518   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6519   ac_status=$?
6520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6521   test $ac_status = 0; } && test -s "$nlist"; then
6522       # Try sorting and uniquifying the output.
6523       if sort "$nlist" | uniq > "$nlist"T; then
6524         mv -f "$nlist"T "$nlist"
6525       else
6526         rm -f "$nlist"T
6527       fi
6528
6529       # Make sure that we snagged all the symbols we need.
6530       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6531         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6532           cat <<_LT_EOF > conftest.$ac_ext
6533 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6534 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6535 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6536    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6537 # define LT_DLSYM_CONST
6538 #elif defined __osf__
6539 /* This system does not cope well with relocations in const data.  */
6540 # define LT_DLSYM_CONST
6541 #else
6542 # define LT_DLSYM_CONST const
6543 #endif
6544
6545 #ifdef __cplusplus
6546 extern "C" {
6547 #endif
6548
6549 _LT_EOF
6550           # Now generate the symbol file.
6551           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6552
6553           cat <<_LT_EOF >> conftest.$ac_ext
6554
6555 /* The mapping between symbol names and symbols.  */
6556 LT_DLSYM_CONST struct {
6557   const char *name;
6558   void       *address;
6559 }
6560 lt__PROGRAM__LTX_preloaded_symbols[] =
6561 {
6562   { "@PROGRAM@", (void *) 0 },
6563 _LT_EOF
6564           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6565           cat <<\_LT_EOF >> conftest.$ac_ext
6566   {0, (void *) 0}
6567 };
6568
6569 /* This works around a problem in FreeBSD linker */
6570 #ifdef FREEBSD_WORKAROUND
6571 static const void *lt_preloaded_setup() {
6572   return lt__PROGRAM__LTX_preloaded_symbols;
6573 }
6574 #endif
6575
6576 #ifdef __cplusplus
6577 }
6578 #endif
6579 _LT_EOF
6580           # Now try linking the two files.
6581           mv conftest.$ac_objext conftstm.$ac_objext
6582           lt_globsym_save_LIBS=$LIBS
6583           lt_globsym_save_CFLAGS=$CFLAGS
6584           LIBS=conftstm.$ac_objext
6585           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6586           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6587   (eval $ac_link) 2>&5
6588   ac_status=$?
6589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6590   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6591             pipe_works=yes
6592           fi
6593           LIBS=$lt_globsym_save_LIBS
6594           CFLAGS=$lt_globsym_save_CFLAGS
6595         else
6596           echo "cannot find nm_test_func in $nlist" >&5
6597         fi
6598       else
6599         echo "cannot find nm_test_var in $nlist" >&5
6600       fi
6601     else
6602       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6603     fi
6604   else
6605     echo "$progname: failed program was:" >&5
6606     cat conftest.$ac_ext >&5
6607   fi
6608   rm -rf conftest* conftst*
6609
6610   # Do not use the global_symbol_pipe unless it works.
6611   if test yes = "$pipe_works"; then
6612     break
6613   else
6614     lt_cv_sys_global_symbol_pipe=
6615   fi
6616 done
6617
6618 fi
6619
6620 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6621   lt_cv_sys_global_symbol_to_cdecl=
6622 fi
6623 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6625 $as_echo "failed" >&6; }
6626 else
6627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6628 $as_echo "ok" >&6; }
6629 fi
6630
6631 # Response file support.
6632 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6633   nm_file_list_spec='@'
6634 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6635   nm_file_list_spec='@'
6636 fi
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6675 $as_echo_n "checking for sysroot... " >&6; }
6676
6677 # Check whether --with-sysroot was given.
6678 if test "${with_sysroot+set}" = set; then :
6679   withval=$with_sysroot;
6680 else
6681   with_sysroot=no
6682 fi
6683
6684
6685 lt_sysroot=
6686 case $with_sysroot in #(
6687  yes)
6688    if test yes = "$GCC"; then
6689      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6690    fi
6691    ;; #(
6692  /*)
6693    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6694    ;; #(
6695  no|'')
6696    ;; #(
6697  *)
6698    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6699 $as_echo "$with_sysroot" >&6; }
6700    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6701    ;;
6702 esac
6703
6704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6705 $as_echo "${lt_sysroot:-no}" >&6; }
6706
6707
6708
6709
6710
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6712 $as_echo_n "checking for a working dd... " >&6; }
6713 if ${ac_cv_path_lt_DD+:} false; then :
6714   $as_echo_n "(cached) " >&6
6715 else
6716   printf 0123456789abcdef0123456789abcdef >conftest.i
6717 cat conftest.i conftest.i >conftest2.i
6718 : ${lt_DD:=$DD}
6719 if test -z "$lt_DD"; then
6720   ac_path_lt_DD_found=false
6721   # Loop through the user's path and test for each of PROGNAME-LIST
6722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6724 do
6725   IFS=$as_save_IFS
6726   test -z "$as_dir" && as_dir=.
6727     for ac_prog in dd; do
6728     for ac_exec_ext in '' $ac_executable_extensions; do
6729       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6730       as_fn_executable_p "$ac_path_lt_DD" || continue
6731 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6732   cmp -s conftest.i conftest.out \
6733   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6734 fi
6735       $ac_path_lt_DD_found && break 3
6736     done
6737   done
6738   done
6739 IFS=$as_save_IFS
6740   if test -z "$ac_cv_path_lt_DD"; then
6741     :
6742   fi
6743 else
6744   ac_cv_path_lt_DD=$lt_DD
6745 fi
6746
6747 rm -f conftest.i conftest2.i conftest.out
6748 fi
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6750 $as_echo "$ac_cv_path_lt_DD" >&6; }
6751
6752
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6754 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6755 if ${lt_cv_truncate_bin+:} false; then :
6756   $as_echo_n "(cached) " >&6
6757 else
6758   printf 0123456789abcdef0123456789abcdef >conftest.i
6759 cat conftest.i conftest.i >conftest2.i
6760 lt_cv_truncate_bin=
6761 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6762   cmp -s conftest.i conftest.out \
6763   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6764 fi
6765 rm -f conftest.i conftest2.i conftest.out
6766 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6767 fi
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6769 $as_echo "$lt_cv_truncate_bin" >&6; }
6770
6771
6772
6773
6774
6775
6776
6777 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6778 func_cc_basename ()
6779 {
6780     for cc_temp in $*""; do
6781       case $cc_temp in
6782         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6783         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6784         \-*) ;;
6785         *) break;;
6786       esac
6787     done
6788     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6789 }
6790
6791 # Check whether --enable-libtool-lock was given.
6792 if test "${enable_libtool_lock+set}" = set; then :
6793   enableval=$enable_libtool_lock;
6794 fi
6795
6796 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6797
6798 # Some flags need to be propagated to the compiler or linker for good
6799 # libtool support.
6800 case $host in
6801 ia64-*-hpux*)
6802   # Find out what ABI is being produced by ac_compile, and set mode
6803   # options accordingly.
6804   echo 'int i;' > conftest.$ac_ext
6805   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6806   (eval $ac_compile) 2>&5
6807   ac_status=$?
6808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6809   test $ac_status = 0; }; then
6810     case `/usr/bin/file conftest.$ac_objext` in
6811       *ELF-32*)
6812         HPUX_IA64_MODE=32
6813         ;;
6814       *ELF-64*)
6815         HPUX_IA64_MODE=64
6816         ;;
6817     esac
6818   fi
6819   rm -rf conftest*
6820   ;;
6821 *-*-irix6*)
6822   # Find out what ABI is being produced by ac_compile, and set linker
6823   # options accordingly.
6824   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6825   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6826   (eval $ac_compile) 2>&5
6827   ac_status=$?
6828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6829   test $ac_status = 0; }; then
6830     if test yes = "$lt_cv_prog_gnu_ld"; then
6831       case `/usr/bin/file conftest.$ac_objext` in
6832         *32-bit*)
6833           LD="${LD-ld} -melf32bsmip"
6834           ;;
6835         *N32*)
6836           LD="${LD-ld} -melf32bmipn32"
6837           ;;
6838         *64-bit*)
6839           LD="${LD-ld} -melf64bmip"
6840         ;;
6841       esac
6842     else
6843       case `/usr/bin/file conftest.$ac_objext` in
6844         *32-bit*)
6845           LD="${LD-ld} -32"
6846           ;;
6847         *N32*)
6848           LD="${LD-ld} -n32"
6849           ;;
6850         *64-bit*)
6851           LD="${LD-ld} -64"
6852           ;;
6853       esac
6854     fi
6855   fi
6856   rm -rf conftest*
6857   ;;
6858
6859 mips64*-*linux*)
6860   # Find out what ABI is being produced by ac_compile, and set linker
6861   # options accordingly.
6862   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6863   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6864   (eval $ac_compile) 2>&5
6865   ac_status=$?
6866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6867   test $ac_status = 0; }; then
6868     emul=elf
6869     case `/usr/bin/file conftest.$ac_objext` in
6870       *32-bit*)
6871         emul="${emul}32"
6872         ;;
6873       *64-bit*)
6874         emul="${emul}64"
6875         ;;
6876     esac
6877     case `/usr/bin/file conftest.$ac_objext` in
6878       *MSB*)
6879         emul="${emul}btsmip"
6880         ;;
6881       *LSB*)
6882         emul="${emul}ltsmip"
6883         ;;
6884     esac
6885     case `/usr/bin/file conftest.$ac_objext` in
6886       *N32*)
6887         emul="${emul}n32"
6888         ;;
6889     esac
6890     LD="${LD-ld} -m $emul"
6891   fi
6892   rm -rf conftest*
6893   ;;
6894
6895 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6896 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6897   # Find out what ABI is being produced by ac_compile, and set linker
6898   # options accordingly.  Note that the listed cases only cover the
6899   # situations where additional linker options are needed (such as when
6900   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6901   # vice versa); the common cases where no linker options are needed do
6902   # not appear in the list.
6903   echo 'int i;' > conftest.$ac_ext
6904   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6905   (eval $ac_compile) 2>&5
6906   ac_status=$?
6907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6908   test $ac_status = 0; }; then
6909     case `/usr/bin/file conftest.o` in
6910       *32-bit*)
6911         case $host in
6912           x86_64-*kfreebsd*-gnu)
6913             LD="${LD-ld} -m elf_i386_fbsd"
6914             ;;
6915           x86_64-*linux*)
6916             case `/usr/bin/file conftest.o` in
6917               *x86-64*)
6918                 LD="${LD-ld} -m elf32_x86_64"
6919                 ;;
6920               *)
6921                 LD="${LD-ld} -m elf_i386"
6922                 ;;
6923             esac
6924             ;;
6925           powerpc64le-*linux*)
6926             LD="${LD-ld} -m elf32lppclinux"
6927             ;;
6928           powerpc64-*linux*)
6929             LD="${LD-ld} -m elf32ppclinux"
6930             ;;
6931           s390x-*linux*)
6932             LD="${LD-ld} -m elf_s390"
6933             ;;
6934           sparc64-*linux*)
6935             LD="${LD-ld} -m elf32_sparc"
6936             ;;
6937         esac
6938         ;;
6939       *64-bit*)
6940         case $host in
6941           x86_64-*kfreebsd*-gnu)
6942             LD="${LD-ld} -m elf_x86_64_fbsd"
6943             ;;
6944           x86_64-*linux*)
6945             LD="${LD-ld} -m elf_x86_64"
6946             ;;
6947           powerpcle-*linux*)
6948             LD="${LD-ld} -m elf64lppc"
6949             ;;
6950           powerpc-*linux*)
6951             LD="${LD-ld} -m elf64ppc"
6952             ;;
6953           s390*-*linux*|s390*-*tpf*)
6954             LD="${LD-ld} -m elf64_s390"
6955             ;;
6956           sparc*-*linux*)
6957             LD="${LD-ld} -m elf64_sparc"
6958             ;;
6959         esac
6960         ;;
6961     esac
6962   fi
6963   rm -rf conftest*
6964   ;;
6965
6966 *-*-sco3.2v5*)
6967   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6968   SAVE_CFLAGS=$CFLAGS
6969   CFLAGS="$CFLAGS -belf"
6970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6971 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6972 if ${lt_cv_cc_needs_belf+:} false; then :
6973   $as_echo_n "(cached) " >&6
6974 else
6975   ac_ext=c
6976 ac_cpp='$CPP $CPPFLAGS'
6977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6980
6981      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h.  */
6983
6984 int
6985 main ()
6986 {
6987
6988   ;
6989   return 0;
6990 }
6991 _ACEOF
6992 if ac_fn_c_try_link "$LINENO"; then :
6993   lt_cv_cc_needs_belf=yes
6994 else
6995   lt_cv_cc_needs_belf=no
6996 fi
6997 rm -f core conftest.err conftest.$ac_objext \
6998     conftest$ac_exeext conftest.$ac_ext
6999      ac_ext=c
7000 ac_cpp='$CPP $CPPFLAGS'
7001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7004
7005 fi
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7007 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7008   if test yes != "$lt_cv_cc_needs_belf"; then
7009     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7010     CFLAGS=$SAVE_CFLAGS
7011   fi
7012   ;;
7013 *-*solaris*)
7014   # Find out what ABI is being produced by ac_compile, and set linker
7015   # options accordingly.
7016   echo 'int i;' > conftest.$ac_ext
7017   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7018   (eval $ac_compile) 2>&5
7019   ac_status=$?
7020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7021   test $ac_status = 0; }; then
7022     case `/usr/bin/file conftest.o` in
7023     *64-bit*)
7024       case $lt_cv_prog_gnu_ld in
7025       yes*)
7026         case $host in
7027         i?86-*-solaris*|x86_64-*-solaris*)
7028           LD="${LD-ld} -m elf_x86_64"
7029           ;;
7030         sparc*-*-solaris*)
7031           LD="${LD-ld} -m elf64_sparc"
7032           ;;
7033         esac
7034         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7035         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7036           LD=${LD-ld}_sol2
7037         fi
7038         ;;
7039       *)
7040         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7041           LD="${LD-ld} -64"
7042         fi
7043         ;;
7044       esac
7045       ;;
7046     esac
7047   fi
7048   rm -rf conftest*
7049   ;;
7050 esac
7051
7052 need_locks=$enable_libtool_lock
7053
7054 if test -n "$ac_tool_prefix"; then
7055   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7056 set dummy ${ac_tool_prefix}mt; ac_word=$2
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7058 $as_echo_n "checking for $ac_word... " >&6; }
7059 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7060   $as_echo_n "(cached) " >&6
7061 else
7062   if test -n "$MANIFEST_TOOL"; then
7063   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7064 else
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 for as_dir in $PATH
7067 do
7068   IFS=$as_save_IFS
7069   test -z "$as_dir" && as_dir=.
7070     for ac_exec_ext in '' $ac_executable_extensions; do
7071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7072     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7074     break 2
7075   fi
7076 done
7077   done
7078 IFS=$as_save_IFS
7079
7080 fi
7081 fi
7082 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7083 if test -n "$MANIFEST_TOOL"; then
7084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7085 $as_echo "$MANIFEST_TOOL" >&6; }
7086 else
7087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088 $as_echo "no" >&6; }
7089 fi
7090
7091
7092 fi
7093 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7094   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7095   # Extract the first word of "mt", so it can be a program name with args.
7096 set dummy mt; ac_word=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7100   $as_echo_n "(cached) " >&6
7101 else
7102   if test -n "$ac_ct_MANIFEST_TOOL"; then
7103   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7104 else
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 for as_dir in $PATH
7107 do
7108   IFS=$as_save_IFS
7109   test -z "$as_dir" && as_dir=.
7110     for ac_exec_ext in '' $ac_executable_extensions; do
7111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7112     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7114     break 2
7115   fi
7116 done
7117   done
7118 IFS=$as_save_IFS
7119
7120 fi
7121 fi
7122 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7123 if test -n "$ac_ct_MANIFEST_TOOL"; then
7124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7125 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7126 else
7127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7129 fi
7130
7131   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7132     MANIFEST_TOOL=":"
7133   else
7134     case $cross_compiling:$ac_tool_warned in
7135 yes:)
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7138 ac_tool_warned=yes ;;
7139 esac
7140     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7141   fi
7142 else
7143   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7144 fi
7145
7146 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7148 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7149 if ${lt_cv_path_mainfest_tool+:} false; then :
7150   $as_echo_n "(cached) " >&6
7151 else
7152   lt_cv_path_mainfest_tool=no
7153   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7154   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7155   cat conftest.err >&5
7156   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7157     lt_cv_path_mainfest_tool=yes
7158   fi
7159   rm -f conftest*
7160 fi
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7162 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7163 if test yes != "$lt_cv_path_mainfest_tool"; then
7164   MANIFEST_TOOL=:
7165 fi
7166
7167
7168
7169
7170
7171
7172   case $host_os in
7173     rhapsody* | darwin*)
7174     if test -n "$ac_tool_prefix"; then
7175   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7176 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178 $as_echo_n "checking for $ac_word... " >&6; }
7179 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7180   $as_echo_n "(cached) " >&6
7181 else
7182   if test -n "$DSYMUTIL"; then
7183   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7184 else
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 for as_dir in $PATH
7187 do
7188   IFS=$as_save_IFS
7189   test -z "$as_dir" && as_dir=.
7190     for ac_exec_ext in '' $ac_executable_extensions; do
7191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7192     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7194     break 2
7195   fi
7196 done
7197   done
7198 IFS=$as_save_IFS
7199
7200 fi
7201 fi
7202 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7203 if test -n "$DSYMUTIL"; then
7204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7205 $as_echo "$DSYMUTIL" >&6; }
7206 else
7207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }
7209 fi
7210
7211
7212 fi
7213 if test -z "$ac_cv_prog_DSYMUTIL"; then
7214   ac_ct_DSYMUTIL=$DSYMUTIL
7215   # Extract the first word of "dsymutil", so it can be a program name with args.
7216 set dummy dsymutil; ac_word=$2
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7218 $as_echo_n "checking for $ac_word... " >&6; }
7219 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7220   $as_echo_n "(cached) " >&6
7221 else
7222   if test -n "$ac_ct_DSYMUTIL"; then
7223   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7224 else
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226 for as_dir in $PATH
7227 do
7228   IFS=$as_save_IFS
7229   test -z "$as_dir" && as_dir=.
7230     for ac_exec_ext in '' $ac_executable_extensions; do
7231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7232     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7234     break 2
7235   fi
7236 done
7237   done
7238 IFS=$as_save_IFS
7239
7240 fi
7241 fi
7242 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7243 if test -n "$ac_ct_DSYMUTIL"; then
7244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7245 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7246 else
7247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7248 $as_echo "no" >&6; }
7249 fi
7250
7251   if test "x$ac_ct_DSYMUTIL" = x; then
7252     DSYMUTIL=":"
7253   else
7254     case $cross_compiling:$ac_tool_warned in
7255 yes:)
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7258 ac_tool_warned=yes ;;
7259 esac
7260     DSYMUTIL=$ac_ct_DSYMUTIL
7261   fi
7262 else
7263   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7264 fi
7265
7266     if test -n "$ac_tool_prefix"; then
7267   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7268 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270 $as_echo_n "checking for $ac_word... " >&6; }
7271 if ${ac_cv_prog_NMEDIT+:} false; then :
7272   $as_echo_n "(cached) " >&6
7273 else
7274   if test -n "$NMEDIT"; then
7275   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7276 else
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 for as_dir in $PATH
7279 do
7280   IFS=$as_save_IFS
7281   test -z "$as_dir" && as_dir=.
7282     for ac_exec_ext in '' $ac_executable_extensions; do
7283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7284     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7286     break 2
7287   fi
7288 done
7289   done
7290 IFS=$as_save_IFS
7291
7292 fi
7293 fi
7294 NMEDIT=$ac_cv_prog_NMEDIT
7295 if test -n "$NMEDIT"; then
7296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7297 $as_echo "$NMEDIT" >&6; }
7298 else
7299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 $as_echo "no" >&6; }
7301 fi
7302
7303
7304 fi
7305 if test -z "$ac_cv_prog_NMEDIT"; then
7306   ac_ct_NMEDIT=$NMEDIT
7307   # Extract the first word of "nmedit", so it can be a program name with args.
7308 set dummy nmedit; ac_word=$2
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310 $as_echo_n "checking for $ac_word... " >&6; }
7311 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7312   $as_echo_n "(cached) " >&6
7313 else
7314   if test -n "$ac_ct_NMEDIT"; then
7315   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7316 else
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 for as_dir in $PATH
7319 do
7320   IFS=$as_save_IFS
7321   test -z "$as_dir" && as_dir=.
7322     for ac_exec_ext in '' $ac_executable_extensions; do
7323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7326     break 2
7327   fi
7328 done
7329   done
7330 IFS=$as_save_IFS
7331
7332 fi
7333 fi
7334 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7335 if test -n "$ac_ct_NMEDIT"; then
7336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7337 $as_echo "$ac_ct_NMEDIT" >&6; }
7338 else
7339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7341 fi
7342
7343   if test "x$ac_ct_NMEDIT" = x; then
7344     NMEDIT=":"
7345   else
7346     case $cross_compiling:$ac_tool_warned in
7347 yes:)
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7350 ac_tool_warned=yes ;;
7351 esac
7352     NMEDIT=$ac_ct_NMEDIT
7353   fi
7354 else
7355   NMEDIT="$ac_cv_prog_NMEDIT"
7356 fi
7357
7358     if test -n "$ac_tool_prefix"; then
7359   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7360 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7362 $as_echo_n "checking for $ac_word... " >&6; }
7363 if ${ac_cv_prog_LIPO+:} false; then :
7364   $as_echo_n "(cached) " >&6
7365 else
7366   if test -n "$LIPO"; then
7367   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7368 else
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 for as_dir in $PATH
7371 do
7372   IFS=$as_save_IFS
7373   test -z "$as_dir" && as_dir=.
7374     for ac_exec_ext in '' $ac_executable_extensions; do
7375   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7376     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7378     break 2
7379   fi
7380 done
7381   done
7382 IFS=$as_save_IFS
7383
7384 fi
7385 fi
7386 LIPO=$ac_cv_prog_LIPO
7387 if test -n "$LIPO"; then
7388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7389 $as_echo "$LIPO" >&6; }
7390 else
7391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392 $as_echo "no" >&6; }
7393 fi
7394
7395
7396 fi
7397 if test -z "$ac_cv_prog_LIPO"; then
7398   ac_ct_LIPO=$LIPO
7399   # Extract the first word of "lipo", so it can be a program name with args.
7400 set dummy lipo; ac_word=$2
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402 $as_echo_n "checking for $ac_word... " >&6; }
7403 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7404   $as_echo_n "(cached) " >&6
7405 else
7406   if test -n "$ac_ct_LIPO"; then
7407   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7408 else
7409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 for as_dir in $PATH
7411 do
7412   IFS=$as_save_IFS
7413   test -z "$as_dir" && as_dir=.
7414     for ac_exec_ext in '' $ac_executable_extensions; do
7415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7416     ac_cv_prog_ac_ct_LIPO="lipo"
7417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7418     break 2
7419   fi
7420 done
7421   done
7422 IFS=$as_save_IFS
7423
7424 fi
7425 fi
7426 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7427 if test -n "$ac_ct_LIPO"; then
7428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7429 $as_echo "$ac_ct_LIPO" >&6; }
7430 else
7431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432 $as_echo "no" >&6; }
7433 fi
7434
7435   if test "x$ac_ct_LIPO" = x; then
7436     LIPO=":"
7437   else
7438     case $cross_compiling:$ac_tool_warned in
7439 yes:)
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7442 ac_tool_warned=yes ;;
7443 esac
7444     LIPO=$ac_ct_LIPO
7445   fi
7446 else
7447   LIPO="$ac_cv_prog_LIPO"
7448 fi
7449
7450     if test -n "$ac_tool_prefix"; then
7451   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7452 set dummy ${ac_tool_prefix}otool; ac_word=$2
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454 $as_echo_n "checking for $ac_word... " >&6; }
7455 if ${ac_cv_prog_OTOOL+:} false; then :
7456   $as_echo_n "(cached) " >&6
7457 else
7458   if test -n "$OTOOL"; then
7459   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7460 else
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 for as_dir in $PATH
7463 do
7464   IFS=$as_save_IFS
7465   test -z "$as_dir" && as_dir=.
7466     for ac_exec_ext in '' $ac_executable_extensions; do
7467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7470     break 2
7471   fi
7472 done
7473   done
7474 IFS=$as_save_IFS
7475
7476 fi
7477 fi
7478 OTOOL=$ac_cv_prog_OTOOL
7479 if test -n "$OTOOL"; then
7480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7481 $as_echo "$OTOOL" >&6; }
7482 else
7483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 $as_echo "no" >&6; }
7485 fi
7486
7487
7488 fi
7489 if test -z "$ac_cv_prog_OTOOL"; then
7490   ac_ct_OTOOL=$OTOOL
7491   # Extract the first word of "otool", so it can be a program name with args.
7492 set dummy otool; ac_word=$2
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 $as_echo_n "checking for $ac_word... " >&6; }
7495 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7496   $as_echo_n "(cached) " >&6
7497 else
7498   if test -n "$ac_ct_OTOOL"; then
7499   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7500 else
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in $PATH
7503 do
7504   IFS=$as_save_IFS
7505   test -z "$as_dir" && as_dir=.
7506     for ac_exec_ext in '' $ac_executable_extensions; do
7507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7508     ac_cv_prog_ac_ct_OTOOL="otool"
7509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7510     break 2
7511   fi
7512 done
7513   done
7514 IFS=$as_save_IFS
7515
7516 fi
7517 fi
7518 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7519 if test -n "$ac_ct_OTOOL"; then
7520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7521 $as_echo "$ac_ct_OTOOL" >&6; }
7522 else
7523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7525 fi
7526
7527   if test "x$ac_ct_OTOOL" = x; then
7528     OTOOL=":"
7529   else
7530     case $cross_compiling:$ac_tool_warned in
7531 yes:)
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7534 ac_tool_warned=yes ;;
7535 esac
7536     OTOOL=$ac_ct_OTOOL
7537   fi
7538 else
7539   OTOOL="$ac_cv_prog_OTOOL"
7540 fi
7541
7542     if test -n "$ac_tool_prefix"; then
7543   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7544 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546 $as_echo_n "checking for $ac_word... " >&6; }
7547 if ${ac_cv_prog_OTOOL64+:} false; then :
7548   $as_echo_n "(cached) " >&6
7549 else
7550   if test -n "$OTOOL64"; then
7551   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7552 else
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7555 do
7556   IFS=$as_save_IFS
7557   test -z "$as_dir" && as_dir=.
7558     for ac_exec_ext in '' $ac_executable_extensions; do
7559   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562     break 2
7563   fi
7564 done
7565   done
7566 IFS=$as_save_IFS
7567
7568 fi
7569 fi
7570 OTOOL64=$ac_cv_prog_OTOOL64
7571 if test -n "$OTOOL64"; then
7572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7573 $as_echo "$OTOOL64" >&6; }
7574 else
7575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 $as_echo "no" >&6; }
7577 fi
7578
7579
7580 fi
7581 if test -z "$ac_cv_prog_OTOOL64"; then
7582   ac_ct_OTOOL64=$OTOOL64
7583   # Extract the first word of "otool64", so it can be a program name with args.
7584 set dummy otool64; ac_word=$2
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7586 $as_echo_n "checking for $ac_word... " >&6; }
7587 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7588   $as_echo_n "(cached) " >&6
7589 else
7590   if test -n "$ac_ct_OTOOL64"; then
7591   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7592 else
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 for as_dir in $PATH
7595 do
7596   IFS=$as_save_IFS
7597   test -z "$as_dir" && as_dir=.
7598     for ac_exec_ext in '' $ac_executable_extensions; do
7599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7600     ac_cv_prog_ac_ct_OTOOL64="otool64"
7601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7602     break 2
7603   fi
7604 done
7605   done
7606 IFS=$as_save_IFS
7607
7608 fi
7609 fi
7610 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7611 if test -n "$ac_ct_OTOOL64"; then
7612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7613 $as_echo "$ac_ct_OTOOL64" >&6; }
7614 else
7615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616 $as_echo "no" >&6; }
7617 fi
7618
7619   if test "x$ac_ct_OTOOL64" = x; then
7620     OTOOL64=":"
7621   else
7622     case $cross_compiling:$ac_tool_warned in
7623 yes:)
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7626 ac_tool_warned=yes ;;
7627 esac
7628     OTOOL64=$ac_ct_OTOOL64
7629   fi
7630 else
7631   OTOOL64="$ac_cv_prog_OTOOL64"
7632 fi
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7661 $as_echo_n "checking for -single_module linker flag... " >&6; }
7662 if ${lt_cv_apple_cc_single_mod+:} false; then :
7663   $as_echo_n "(cached) " >&6
7664 else
7665   lt_cv_apple_cc_single_mod=no
7666       if test -z "$LT_MULTI_MODULE"; then
7667         # By default we will add the -single_module flag. You can override
7668         # by either setting the environment variable LT_MULTI_MODULE
7669         # non-empty at configure time, or by adding -multi_module to the
7670         # link flags.
7671         rm -rf libconftest.dylib*
7672         echo "int foo(void){return 1;}" > conftest.c
7673         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7674 -dynamiclib -Wl,-single_module conftest.c" >&5
7675         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7676           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7677         _lt_result=$?
7678         # If there is a non-empty error log, and "single_module"
7679         # appears in it, assume the flag caused a linker warning
7680         if test -s conftest.err && $GREP single_module conftest.err; then
7681           cat conftest.err >&5
7682         # Otherwise, if the output was created with a 0 exit code from
7683         # the compiler, it worked.
7684         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7685           lt_cv_apple_cc_single_mod=yes
7686         else
7687           cat conftest.err >&5
7688         fi
7689         rm -rf libconftest.dylib*
7690         rm -f conftest.*
7691       fi
7692 fi
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7694 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7695
7696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7697 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7698 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7699   $as_echo_n "(cached) " >&6
7700 else
7701   lt_cv_ld_exported_symbols_list=no
7702       save_LDFLAGS=$LDFLAGS
7703       echo "_main" > conftest.sym
7704       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7705       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h.  */
7707
7708 int
7709 main ()
7710 {
7711
7712   ;
7713   return 0;
7714 }
7715 _ACEOF
7716 if ac_fn_c_try_link "$LINENO"; then :
7717   lt_cv_ld_exported_symbols_list=yes
7718 else
7719   lt_cv_ld_exported_symbols_list=no
7720 fi
7721 rm -f core conftest.err conftest.$ac_objext \
7722     conftest$ac_exeext conftest.$ac_ext
7723         LDFLAGS=$save_LDFLAGS
7724
7725 fi
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7727 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7728
7729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7730 $as_echo_n "checking for -force_load linker flag... " >&6; }
7731 if ${lt_cv_ld_force_load+:} false; then :
7732   $as_echo_n "(cached) " >&6
7733 else
7734   lt_cv_ld_force_load=no
7735       cat > conftest.c << _LT_EOF
7736 int forced_loaded() { return 2;}
7737 _LT_EOF
7738       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7739       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7740       echo "$AR cru libconftest.a conftest.o" >&5
7741       $AR cru libconftest.a conftest.o 2>&5
7742       echo "$RANLIB libconftest.a" >&5
7743       $RANLIB libconftest.a 2>&5
7744       cat > conftest.c << _LT_EOF
7745 int main() { return 0;}
7746 _LT_EOF
7747       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7748       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7749       _lt_result=$?
7750       if test -s conftest.err && $GREP force_load conftest.err; then
7751         cat conftest.err >&5
7752       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7753         lt_cv_ld_force_load=yes
7754       else
7755         cat conftest.err >&5
7756       fi
7757         rm -f conftest.err libconftest.a conftest conftest.c
7758         rm -rf conftest.dSYM
7759
7760 fi
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7762 $as_echo "$lt_cv_ld_force_load" >&6; }
7763     case $host_os in
7764     rhapsody* | darwin1.[012])
7765       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7766     darwin1.*)
7767       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7768     darwin*) # darwin 5.x on
7769       # if running on 10.5 or later, the deployment target defaults
7770       # to the OS version, if on x86, and 10.4, the deployment
7771       # target defaults to 10.4. Don't you love it?
7772       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7773         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7774           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7775         10.[012][,.]*)
7776           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7777         10.*)
7778           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7779       esac
7780     ;;
7781   esac
7782     if test yes = "$lt_cv_apple_cc_single_mod"; then
7783       _lt_dar_single_mod='$single_module'
7784     fi
7785     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7786       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7787     else
7788       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7789     fi
7790     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7791       _lt_dsymutil='~$DSYMUTIL $lib || :'
7792     else
7793       _lt_dsymutil=
7794     fi
7795     ;;
7796   esac
7797
7798 # func_munge_path_list VARIABLE PATH
7799 # -----------------------------------
7800 # VARIABLE is name of variable containing _space_ separated list of
7801 # directories to be munged by the contents of PATH, which is string
7802 # having a format:
7803 # "DIR[:DIR]:"
7804 #       string "DIR[ DIR]" will be prepended to VARIABLE
7805 # ":DIR[:DIR]"
7806 #       string "DIR[ DIR]" will be appended to VARIABLE
7807 # "DIRP[:DIRP]::[DIRA:]DIRA"
7808 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7809 #       "DIRA[ DIRA]" will be appended to VARIABLE
7810 # "DIR[:DIR]"
7811 #       VARIABLE will be replaced by "DIR[ DIR]"
7812 func_munge_path_list ()
7813 {
7814     case x$2 in
7815     x)
7816         ;;
7817     *:)
7818         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7819         ;;
7820     x:*)
7821         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7822         ;;
7823     *::*)
7824         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7825         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7826         ;;
7827     *)
7828         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7829         ;;
7830     esac
7831 }
7832
7833 ac_ext=c
7834 ac_cpp='$CPP $CPPFLAGS'
7835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7839 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7840 # On Suns, sometimes $CPP names a directory.
7841 if test -n "$CPP" && test -d "$CPP"; then
7842   CPP=
7843 fi
7844 if test -z "$CPP"; then
7845   if ${ac_cv_prog_CPP+:} false; then :
7846   $as_echo_n "(cached) " >&6
7847 else
7848       # Double quotes because CPP needs to be expanded
7849     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7850     do
7851       ac_preproc_ok=false
7852 for ac_c_preproc_warn_flag in '' yes
7853 do
7854   # Use a header file that comes with gcc, so configuring glibc
7855   # with a fresh cross-compiler works.
7856   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7857   # <limits.h> exists even on freestanding compilers.
7858   # On the NeXT, cc -E runs the code through the compiler's parser,
7859   # not just through cpp. "Syntax error" is here to catch this case.
7860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h.  */
7862 #ifdef __STDC__
7863 # include <limits.h>
7864 #else
7865 # include <assert.h>
7866 #endif
7867                      Syntax error
7868 _ACEOF
7869 if ac_fn_c_try_cpp "$LINENO"; then :
7870
7871 else
7872   # Broken: fails on valid input.
7873 continue
7874 fi
7875 rm -f conftest.err conftest.i conftest.$ac_ext
7876
7877   # OK, works on sane cases.  Now check whether nonexistent headers
7878   # can be detected and how.
7879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880 /* end confdefs.h.  */
7881 #include <ac_nonexistent.h>
7882 _ACEOF
7883 if ac_fn_c_try_cpp "$LINENO"; then :
7884   # Broken: success on invalid input.
7885 continue
7886 else
7887   # Passes both tests.
7888 ac_preproc_ok=:
7889 break
7890 fi
7891 rm -f conftest.err conftest.i conftest.$ac_ext
7892
7893 done
7894 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7895 rm -f conftest.i conftest.err conftest.$ac_ext
7896 if $ac_preproc_ok; then :
7897   break
7898 fi
7899
7900     done
7901     ac_cv_prog_CPP=$CPP
7902
7903 fi
7904   CPP=$ac_cv_prog_CPP
7905 else
7906   ac_cv_prog_CPP=$CPP
7907 fi
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7909 $as_echo "$CPP" >&6; }
7910 ac_preproc_ok=false
7911 for ac_c_preproc_warn_flag in '' yes
7912 do
7913   # Use a header file that comes with gcc, so configuring glibc
7914   # with a fresh cross-compiler works.
7915   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7916   # <limits.h> exists even on freestanding compilers.
7917   # On the NeXT, cc -E runs the code through the compiler's parser,
7918   # not just through cpp. "Syntax error" is here to catch this case.
7919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h.  */
7921 #ifdef __STDC__
7922 # include <limits.h>
7923 #else
7924 # include <assert.h>
7925 #endif
7926                      Syntax error
7927 _ACEOF
7928 if ac_fn_c_try_cpp "$LINENO"; then :
7929
7930 else
7931   # Broken: fails on valid input.
7932 continue
7933 fi
7934 rm -f conftest.err conftest.i conftest.$ac_ext
7935
7936   # OK, works on sane cases.  Now check whether nonexistent headers
7937   # can be detected and how.
7938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h.  */
7940 #include <ac_nonexistent.h>
7941 _ACEOF
7942 if ac_fn_c_try_cpp "$LINENO"; then :
7943   # Broken: success on invalid input.
7944 continue
7945 else
7946   # Passes both tests.
7947 ac_preproc_ok=:
7948 break
7949 fi
7950 rm -f conftest.err conftest.i conftest.$ac_ext
7951
7952 done
7953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7954 rm -f conftest.i conftest.err conftest.$ac_ext
7955 if $ac_preproc_ok; then :
7956
7957 else
7958   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7960 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7961 See \`config.log' for more details" "$LINENO" 5; }
7962 fi
7963
7964 ac_ext=c
7965 ac_cpp='$CPP $CPPFLAGS'
7966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7969
7970
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7972 $as_echo_n "checking for ANSI C header files... " >&6; }
7973 if ${ac_cv_header_stdc+:} false; then :
7974   $as_echo_n "(cached) " >&6
7975 else
7976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h.  */
7978 #include <stdlib.h>
7979 #include <stdarg.h>
7980 #include <string.h>
7981 #include <float.h>
7982
7983 int
7984 main ()
7985 {
7986
7987   ;
7988   return 0;
7989 }
7990 _ACEOF
7991 if ac_fn_c_try_compile "$LINENO"; then :
7992   ac_cv_header_stdc=yes
7993 else
7994   ac_cv_header_stdc=no
7995 fi
7996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7997
7998 if test $ac_cv_header_stdc = yes; then
7999   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h.  */
8002 #include <string.h>
8003
8004 _ACEOF
8005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8006   $EGREP "memchr" >/dev/null 2>&1; then :
8007
8008 else
8009   ac_cv_header_stdc=no
8010 fi
8011 rm -f conftest*
8012
8013 fi
8014
8015 if test $ac_cv_header_stdc = yes; then
8016   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h.  */
8019 #include <stdlib.h>
8020
8021 _ACEOF
8022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8023   $EGREP "free" >/dev/null 2>&1; then :
8024
8025 else
8026   ac_cv_header_stdc=no
8027 fi
8028 rm -f conftest*
8029
8030 fi
8031
8032 if test $ac_cv_header_stdc = yes; then
8033   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8034   if test "$cross_compiling" = yes; then :
8035   :
8036 else
8037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h.  */
8039 #include <ctype.h>
8040 #include <stdlib.h>
8041 #if ((' ' & 0x0FF) == 0x020)
8042 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8043 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8044 #else
8045 # define ISLOWER(c) \
8046                    (('a' <= (c) && (c) <= 'i') \
8047                      || ('j' <= (c) && (c) <= 'r') \
8048                      || ('s' <= (c) && (c) <= 'z'))
8049 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8050 #endif
8051
8052 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8053 int
8054 main ()
8055 {
8056   int i;
8057   for (i = 0; i < 256; i++)
8058     if (XOR (islower (i), ISLOWER (i))
8059         || toupper (i) != TOUPPER (i))
8060       return 2;
8061   return 0;
8062 }
8063 _ACEOF
8064 if ac_fn_c_try_run "$LINENO"; then :
8065
8066 else
8067   ac_cv_header_stdc=no
8068 fi
8069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8070   conftest.$ac_objext conftest.beam conftest.$ac_ext
8071 fi
8072
8073 fi
8074 fi
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8076 $as_echo "$ac_cv_header_stdc" >&6; }
8077 if test $ac_cv_header_stdc = yes; then
8078
8079 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8080
8081 fi
8082
8083 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8084 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8085                   inttypes.h stdint.h unistd.h
8086 do :
8087   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8088 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8089 "
8090 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8091   cat >>confdefs.h <<_ACEOF
8092 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8093 _ACEOF
8094
8095 fi
8096
8097 done
8098
8099
8100 for ac_header in dlfcn.h
8101 do :
8102   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8103 "
8104 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8105   cat >>confdefs.h <<_ACEOF
8106 #define HAVE_DLFCN_H 1
8107 _ACEOF
8108
8109 fi
8110
8111 done
8112
8113
8114
8115
8116
8117 # Set options
8118
8119
8120
8121         enable_dlopen=no
8122
8123
8124
8125             # Check whether --enable-shared was given.
8126 if test "${enable_shared+set}" = set; then :
8127   enableval=$enable_shared; p=${PACKAGE-default}
8128     case $enableval in
8129     yes) enable_shared=yes ;;
8130     no) enable_shared=no ;;
8131     *)
8132       enable_shared=no
8133       # Look at the argument we got.  We use all the common list separators.
8134       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8135       for pkg in $enableval; do
8136         IFS=$lt_save_ifs
8137         if test "X$pkg" = "X$p"; then
8138           enable_shared=yes
8139         fi
8140       done
8141       IFS=$lt_save_ifs
8142       ;;
8143     esac
8144 else
8145   enable_shared=yes
8146 fi
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156   # Check whether --enable-static was given.
8157 if test "${enable_static+set}" = set; then :
8158   enableval=$enable_static; p=${PACKAGE-default}
8159     case $enableval in
8160     yes) enable_static=yes ;;
8161     no) enable_static=no ;;
8162     *)
8163      enable_static=no
8164       # Look at the argument we got.  We use all the common list separators.
8165       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8166       for pkg in $enableval; do
8167         IFS=$lt_save_ifs
8168         if test "X$pkg" = "X$p"; then
8169           enable_static=yes
8170         fi
8171       done
8172       IFS=$lt_save_ifs
8173       ;;
8174     esac
8175 else
8176   enable_static=yes
8177 fi
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188 # Check whether --with-pic was given.
8189 if test "${with_pic+set}" = set; then :
8190   withval=$with_pic; lt_p=${PACKAGE-default}
8191     case $withval in
8192     yes|no) pic_mode=$withval ;;
8193     *)
8194       pic_mode=default
8195       # Look at the argument we got.  We use all the common list separators.
8196       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8197       for lt_pkg in $withval; do
8198         IFS=$lt_save_ifs
8199         if test "X$lt_pkg" = "X$lt_p"; then
8200           pic_mode=yes
8201         fi
8202       done
8203       IFS=$lt_save_ifs
8204       ;;
8205     esac
8206 else
8207   pic_mode=default
8208 fi
8209
8210
8211
8212
8213
8214
8215
8216
8217   # Check whether --enable-fast-install was given.
8218 if test "${enable_fast_install+set}" = set; then :
8219   enableval=$enable_fast_install; p=${PACKAGE-default}
8220     case $enableval in
8221     yes) enable_fast_install=yes ;;
8222     no) enable_fast_install=no ;;
8223     *)
8224       enable_fast_install=no
8225       # Look at the argument we got.  We use all the common list separators.
8226       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8227       for pkg in $enableval; do
8228         IFS=$lt_save_ifs
8229         if test "X$pkg" = "X$p"; then
8230           enable_fast_install=yes
8231         fi
8232       done
8233       IFS=$lt_save_ifs
8234       ;;
8235     esac
8236 else
8237   enable_fast_install=yes
8238 fi
8239
8240
8241
8242
8243
8244
8245
8246
8247   shared_archive_member_spec=
8248 case $host,$enable_shared in
8249 power*-*-aix[5-9]*,yes)
8250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8251 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8252
8253 # Check whether --with-aix-soname was given.
8254 if test "${with_aix_soname+set}" = set; then :
8255   withval=$with_aix_soname; case $withval in
8256     aix|svr4|both)
8257       ;;
8258     *)
8259       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8260       ;;
8261     esac
8262     lt_cv_with_aix_soname=$with_aix_soname
8263 else
8264   if ${lt_cv_with_aix_soname+:} false; then :
8265   $as_echo_n "(cached) " >&6
8266 else
8267   lt_cv_with_aix_soname=aix
8268 fi
8269
8270     with_aix_soname=$lt_cv_with_aix_soname
8271 fi
8272
8273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8274 $as_echo "$with_aix_soname" >&6; }
8275   if test aix != "$with_aix_soname"; then
8276     # For the AIX way of multilib, we name the shared archive member
8277     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8278     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8279     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8280     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8281     if test 64 = "${OBJECT_MODE-32}"; then
8282       shared_archive_member_spec=shr_64
8283     else
8284       shared_archive_member_spec=shr
8285     fi
8286   fi
8287   ;;
8288 *)
8289   with_aix_soname=aix
8290   ;;
8291 esac
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302 # This can be used to rebuild libtool when needed
8303 LIBTOOL_DEPS=$ltmain
8304
8305 # Always use our own libtool.
8306 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337 test -z "$LN_S" && LN_S="ln -s"
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352 if test -n "${ZSH_VERSION+set}"; then
8353    setopt NO_GLOB_SUBST
8354 fi
8355
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8357 $as_echo_n "checking for objdir... " >&6; }
8358 if ${lt_cv_objdir+:} false; then :
8359   $as_echo_n "(cached) " >&6
8360 else
8361   rm -f .libs 2>/dev/null
8362 mkdir .libs 2>/dev/null
8363 if test -d .libs; then
8364   lt_cv_objdir=.libs
8365 else
8366   # MS-DOS does not allow filenames that begin with a dot.
8367   lt_cv_objdir=_libs
8368 fi
8369 rmdir .libs 2>/dev/null
8370 fi
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8372 $as_echo "$lt_cv_objdir" >&6; }
8373 objdir=$lt_cv_objdir
8374
8375
8376
8377
8378
8379 cat >>confdefs.h <<_ACEOF
8380 #define LT_OBJDIR "$lt_cv_objdir/"
8381 _ACEOF
8382
8383
8384
8385
8386 case $host_os in
8387 aix3*)
8388   # AIX sometimes has problems with the GCC collect2 program.  For some
8389   # reason, if we set the COLLECT_NAMES environment variable, the problems
8390   # vanish in a puff of smoke.
8391   if test set != "${COLLECT_NAMES+set}"; then
8392     COLLECT_NAMES=
8393     export COLLECT_NAMES
8394   fi
8395   ;;
8396 esac
8397
8398 # Global variables:
8399 ofile=libtool
8400 can_build_shared=yes
8401
8402 # All known linkers require a '.a' archive for static linking (except MSVC,
8403 # which needs '.lib').
8404 libext=a
8405
8406 with_gnu_ld=$lt_cv_prog_gnu_ld
8407
8408 old_CC=$CC
8409 old_CFLAGS=$CFLAGS
8410
8411 # Set sane defaults for various variables
8412 test -z "$CC" && CC=cc
8413 test -z "$LTCC" && LTCC=$CC
8414 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8415 test -z "$LD" && LD=ld
8416 test -z "$ac_objext" && ac_objext=o
8417
8418 func_cc_basename $compiler
8419 cc_basename=$func_cc_basename_result
8420
8421
8422 # Only perform the check for file, if the check method requires it
8423 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8424 case $deplibs_check_method in
8425 file_magic*)
8426   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8428 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8429 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8430   $as_echo_n "(cached) " >&6
8431 else
8432   case $MAGIC_CMD in
8433 [\\/*] |  ?:[\\/]*)
8434   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8435   ;;
8436 *)
8437   lt_save_MAGIC_CMD=$MAGIC_CMD
8438   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8439   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8440   for ac_dir in $ac_dummy; do
8441     IFS=$lt_save_ifs
8442     test -z "$ac_dir" && ac_dir=.
8443     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8444       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8445       if test -n "$file_magic_test_file"; then
8446         case $deplibs_check_method in
8447         "file_magic "*)
8448           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8449           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8450           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8451             $EGREP "$file_magic_regex" > /dev/null; then
8452             :
8453           else
8454             cat <<_LT_EOF 1>&2
8455
8456 *** Warning: the command libtool uses to detect shared libraries,
8457 *** $file_magic_cmd, produces output that libtool cannot recognize.
8458 *** The result is that libtool may fail to recognize shared libraries
8459 *** as such.  This will affect the creation of libtool libraries that
8460 *** depend on shared libraries, but programs linked with such libtool
8461 *** libraries will work regardless of this problem.  Nevertheless, you
8462 *** may want to report the problem to your system manager and/or to
8463 *** bug-libtool@gnu.org
8464
8465 _LT_EOF
8466           fi ;;
8467         esac
8468       fi
8469       break
8470     fi
8471   done
8472   IFS=$lt_save_ifs
8473   MAGIC_CMD=$lt_save_MAGIC_CMD
8474   ;;
8475 esac
8476 fi
8477
8478 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8479 if test -n "$MAGIC_CMD"; then
8480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8481 $as_echo "$MAGIC_CMD" >&6; }
8482 else
8483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8485 fi
8486
8487
8488
8489
8490
8491 if test -z "$lt_cv_path_MAGIC_CMD"; then
8492   if test -n "$ac_tool_prefix"; then
8493     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8494 $as_echo_n "checking for file... " >&6; }
8495 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8496   $as_echo_n "(cached) " >&6
8497 else
8498   case $MAGIC_CMD in
8499 [\\/*] |  ?:[\\/]*)
8500   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8501   ;;
8502 *)
8503   lt_save_MAGIC_CMD=$MAGIC_CMD
8504   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8505   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8506   for ac_dir in $ac_dummy; do
8507     IFS=$lt_save_ifs
8508     test -z "$ac_dir" && ac_dir=.
8509     if test -f "$ac_dir/file"; then
8510       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8511       if test -n "$file_magic_test_file"; then
8512         case $deplibs_check_method in
8513         "file_magic "*)
8514           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8515           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8516           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8517             $EGREP "$file_magic_regex" > /dev/null; then
8518             :
8519           else
8520             cat <<_LT_EOF 1>&2
8521
8522 *** Warning: the command libtool uses to detect shared libraries,
8523 *** $file_magic_cmd, produces output that libtool cannot recognize.
8524 *** The result is that libtool may fail to recognize shared libraries
8525 *** as such.  This will affect the creation of libtool libraries that
8526 *** depend on shared libraries, but programs linked with such libtool
8527 *** libraries will work regardless of this problem.  Nevertheless, you
8528 *** may want to report the problem to your system manager and/or to
8529 *** bug-libtool@gnu.org
8530
8531 _LT_EOF
8532           fi ;;
8533         esac
8534       fi
8535       break
8536     fi
8537   done
8538   IFS=$lt_save_ifs
8539   MAGIC_CMD=$lt_save_MAGIC_CMD
8540   ;;
8541 esac
8542 fi
8543
8544 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8545 if test -n "$MAGIC_CMD"; then
8546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8547 $as_echo "$MAGIC_CMD" >&6; }
8548 else
8549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 $as_echo "no" >&6; }
8551 fi
8552
8553
8554   else
8555     MAGIC_CMD=:
8556   fi
8557 fi
8558
8559   fi
8560   ;;
8561 esac
8562
8563 # Use C for the default configuration in the libtool script
8564
8565 lt_save_CC=$CC
8566 ac_ext=c
8567 ac_cpp='$CPP $CPPFLAGS'
8568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8571
8572
8573 # Source file extension for C test sources.
8574 ac_ext=c
8575
8576 # Object file extension for compiled C test sources.
8577 objext=o
8578 objext=$objext
8579
8580 # Code to be used in simple compile tests
8581 lt_simple_compile_test_code="int some_variable = 0;"
8582
8583 # Code to be used in simple link tests
8584 lt_simple_link_test_code='int main(){return(0);}'
8585
8586
8587
8588
8589
8590
8591
8592 # If no C compiler was specified, use CC.
8593 LTCC=${LTCC-"$CC"}
8594
8595 # If no C compiler flags were specified, use CFLAGS.
8596 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8597
8598 # Allow CC to be a program name with arguments.
8599 compiler=$CC
8600
8601 # Save the default compiler, since it gets overwritten when the other
8602 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8603 compiler_DEFAULT=$CC
8604
8605 # save warnings/boilerplate of simple test code
8606 ac_outfile=conftest.$ac_objext
8607 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8608 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8609 _lt_compiler_boilerplate=`cat conftest.err`
8610 $RM conftest*
8611
8612 ac_outfile=conftest.$ac_objext
8613 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8614 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8615 _lt_linker_boilerplate=`cat conftest.err`
8616 $RM -r conftest*
8617
8618
8619 ## CAVEAT EMPTOR:
8620 ## There is no encapsulation within the following macros, do not change
8621 ## the running order or otherwise move them around unless you know exactly
8622 ## what you are doing...
8623 if test -n "$compiler"; then
8624
8625 lt_prog_compiler_no_builtin_flag=
8626
8627 if test yes = "$GCC"; then
8628   case $cc_basename in
8629   nvcc*)
8630     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8631   *)
8632     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8633   esac
8634
8635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8636 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8637 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8638   $as_echo_n "(cached) " >&6
8639 else
8640   lt_cv_prog_compiler_rtti_exceptions=no
8641    ac_outfile=conftest.$ac_objext
8642    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8643    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8644    # Insert the option either (1) after the last *FLAGS variable, or
8645    # (2) before a word containing "conftest.", or (3) at the end.
8646    # Note that $ac_compile itself does not contain backslashes and begins
8647    # with a dollar sign (not a hyphen), so the echo should work correctly.
8648    # The option is referenced via a variable to avoid confusing sed.
8649    lt_compile=`echo "$ac_compile" | $SED \
8650    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8651    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8652    -e 's:$: $lt_compiler_flag:'`
8653    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8654    (eval "$lt_compile" 2>conftest.err)
8655    ac_status=$?
8656    cat conftest.err >&5
8657    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658    if (exit $ac_status) && test -s "$ac_outfile"; then
8659      # The compiler can only warn and ignore the option if not recognized
8660      # So say no if there are warnings other than the usual output.
8661      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8662      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8663      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8664        lt_cv_prog_compiler_rtti_exceptions=yes
8665      fi
8666    fi
8667    $RM conftest*
8668
8669 fi
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8671 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8672
8673 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8674     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8675 else
8676     :
8677 fi
8678
8679 fi
8680
8681
8682
8683
8684
8685
8686   lt_prog_compiler_wl=
8687 lt_prog_compiler_pic=
8688 lt_prog_compiler_static=
8689
8690
8691   if test yes = "$GCC"; then
8692     lt_prog_compiler_wl='-Wl,'
8693     lt_prog_compiler_static='-static'
8694
8695     case $host_os in
8696       aix*)
8697       # All AIX code is PIC.
8698       if test ia64 = "$host_cpu"; then
8699         # AIX 5 now supports IA64 processor
8700         lt_prog_compiler_static='-Bstatic'
8701       fi
8702       lt_prog_compiler_pic='-fPIC'
8703       ;;
8704
8705     amigaos*)
8706       case $host_cpu in
8707       powerpc)
8708             # see comment about AmigaOS4 .so support
8709             lt_prog_compiler_pic='-fPIC'
8710         ;;
8711       m68k)
8712             # FIXME: we need at least 68020 code to build shared libraries, but
8713             # adding the '-m68020' flag to GCC prevents building anything better,
8714             # like '-m68040'.
8715             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8716         ;;
8717       esac
8718       ;;
8719
8720     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8721       # PIC is the default for these OSes.
8722       ;;
8723
8724     mingw* | cygwin* | pw32* | os2* | cegcc*)
8725       # This hack is so that the source file can tell whether it is being
8726       # built for inclusion in a dll (and should export symbols for example).
8727       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8728       # (--disable-auto-import) libraries
8729       lt_prog_compiler_pic='-DDLL_EXPORT'
8730       case $host_os in
8731       os2*)
8732         lt_prog_compiler_static='$wl-static'
8733         ;;
8734       esac
8735       ;;
8736
8737     darwin* | rhapsody*)
8738       # PIC is the default on this platform
8739       # Common symbols not allowed in MH_DYLIB files
8740       lt_prog_compiler_pic='-fno-common'
8741       ;;
8742
8743     haiku*)
8744       # PIC is the default for Haiku.
8745       # The "-static" flag exists, but is broken.
8746       lt_prog_compiler_static=
8747       ;;
8748
8749     hpux*)
8750       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8751       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8752       # sets the default TLS model and affects inlining.
8753       case $host_cpu in
8754       hppa*64*)
8755         # +Z the default
8756         ;;
8757       *)
8758         lt_prog_compiler_pic='-fPIC'
8759         ;;
8760       esac
8761       ;;
8762
8763     interix[3-9]*)
8764       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8765       # Instead, we relocate shared libraries at runtime.
8766       ;;
8767
8768     msdosdjgpp*)
8769       # Just because we use GCC doesn't mean we suddenly get shared libraries
8770       # on systems that don't support them.
8771       lt_prog_compiler_can_build_shared=no
8772       enable_shared=no
8773       ;;
8774
8775     *nto* | *qnx*)
8776       # QNX uses GNU C++, but need to define -shared option too, otherwise
8777       # it will coredump.
8778       lt_prog_compiler_pic='-fPIC -shared'
8779       ;;
8780
8781     sysv4*MP*)
8782       if test -d /usr/nec; then
8783         lt_prog_compiler_pic=-Kconform_pic
8784       fi
8785       ;;
8786
8787     *)
8788       lt_prog_compiler_pic='-fPIC'
8789       ;;
8790     esac
8791
8792     case $cc_basename in
8793     nvcc*) # Cuda Compiler Driver 2.2
8794       lt_prog_compiler_wl='-Xlinker '
8795       if test -n "$lt_prog_compiler_pic"; then
8796         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8797       fi
8798       ;;
8799     esac
8800   else
8801     # PORTME Check for flag to pass linker flags through the system compiler.
8802     case $host_os in
8803     aix*)
8804       lt_prog_compiler_wl='-Wl,'
8805       if test ia64 = "$host_cpu"; then
8806         # AIX 5 now supports IA64 processor
8807         lt_prog_compiler_static='-Bstatic'
8808       else
8809         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8810       fi
8811       ;;
8812
8813     darwin* | rhapsody*)
8814       # PIC is the default on this platform
8815       # Common symbols not allowed in MH_DYLIB files
8816       lt_prog_compiler_pic='-fno-common'
8817       case $cc_basename in
8818       nagfor*)
8819         # NAG Fortran compiler
8820         lt_prog_compiler_wl='-Wl,-Wl,,'
8821         lt_prog_compiler_pic='-PIC'
8822         lt_prog_compiler_static='-Bstatic'
8823         ;;
8824       esac
8825       ;;
8826
8827     mingw* | cygwin* | pw32* | os2* | cegcc*)
8828       # This hack is so that the source file can tell whether it is being
8829       # built for inclusion in a dll (and should export symbols for example).
8830       lt_prog_compiler_pic='-DDLL_EXPORT'
8831       case $host_os in
8832       os2*)
8833         lt_prog_compiler_static='$wl-static'
8834         ;;
8835       esac
8836       ;;
8837
8838     hpux9* | hpux10* | hpux11*)
8839       lt_prog_compiler_wl='-Wl,'
8840       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8841       # not for PA HP-UX.
8842       case $host_cpu in
8843       hppa*64*|ia64*)
8844         # +Z the default
8845         ;;
8846       *)
8847         lt_prog_compiler_pic='+Z'
8848         ;;
8849       esac
8850       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8851       lt_prog_compiler_static='$wl-a ${wl}archive'
8852       ;;
8853
8854     irix5* | irix6* | nonstopux*)
8855       lt_prog_compiler_wl='-Wl,'
8856       # PIC (with -KPIC) is the default.
8857       lt_prog_compiler_static='-non_shared'
8858       ;;
8859
8860     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8861       case $cc_basename in
8862       # old Intel for x86_64, which still supported -KPIC.
8863       ecc*)
8864         lt_prog_compiler_wl='-Wl,'
8865         lt_prog_compiler_pic='-KPIC'
8866         lt_prog_compiler_static='-static'
8867         ;;
8868       # icc used to be incompatible with GCC.
8869       # ICC 10 doesn't accept -KPIC any more.
8870       icc* | ifort*)
8871         lt_prog_compiler_wl='-Wl,'
8872         lt_prog_compiler_pic='-fPIC'
8873         lt_prog_compiler_static='-static'
8874         ;;
8875       # Lahey Fortran 8.1.
8876       lf95*)
8877         lt_prog_compiler_wl='-Wl,'
8878         lt_prog_compiler_pic='--shared'
8879         lt_prog_compiler_static='--static'
8880         ;;
8881       nagfor*)
8882         # NAG Fortran compiler
8883         lt_prog_compiler_wl='-Wl,-Wl,,'
8884         lt_prog_compiler_pic='-PIC'
8885         lt_prog_compiler_static='-Bstatic'
8886         ;;
8887       tcc*)
8888         # Fabrice Bellard et al's Tiny C Compiler
8889         lt_prog_compiler_wl='-Wl,'
8890         lt_prog_compiler_pic='-fPIC'
8891         lt_prog_compiler_static='-static'
8892         ;;
8893       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8894         # Portland Group compilers (*not* the Pentium gcc compiler,
8895         # which looks to be a dead project)
8896         lt_prog_compiler_wl='-Wl,'
8897         lt_prog_compiler_pic='-fpic'
8898         lt_prog_compiler_static='-Bstatic'
8899         ;;
8900       ccc*)
8901         lt_prog_compiler_wl='-Wl,'
8902         # All Alpha code is PIC.
8903         lt_prog_compiler_static='-non_shared'
8904         ;;
8905       xl* | bgxl* | bgf* | mpixl*)
8906         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8907         lt_prog_compiler_wl='-Wl,'
8908         lt_prog_compiler_pic='-qpic'
8909         lt_prog_compiler_static='-qstaticlink'
8910         ;;
8911       *)
8912         case `$CC -V 2>&1 | sed 5q` in
8913         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8914           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8915           lt_prog_compiler_pic='-KPIC'
8916           lt_prog_compiler_static='-Bstatic'
8917           lt_prog_compiler_wl=''
8918           ;;
8919         *Sun\ F* | *Sun*Fortran*)
8920           lt_prog_compiler_pic='-KPIC'
8921           lt_prog_compiler_static='-Bstatic'
8922           lt_prog_compiler_wl='-Qoption ld '
8923           ;;
8924         *Sun\ C*)
8925           # Sun C 5.9
8926           lt_prog_compiler_pic='-KPIC'
8927           lt_prog_compiler_static='-Bstatic'
8928           lt_prog_compiler_wl='-Wl,'
8929           ;;
8930         *Intel*\ [CF]*Compiler*)
8931           lt_prog_compiler_wl='-Wl,'
8932           lt_prog_compiler_pic='-fPIC'
8933           lt_prog_compiler_static='-static'
8934           ;;
8935         *Portland\ Group*)
8936           lt_prog_compiler_wl='-Wl,'
8937           lt_prog_compiler_pic='-fpic'
8938           lt_prog_compiler_static='-Bstatic'
8939           ;;
8940         esac
8941         ;;
8942       esac
8943       ;;
8944
8945     newsos6)
8946       lt_prog_compiler_pic='-KPIC'
8947       lt_prog_compiler_static='-Bstatic'
8948       ;;
8949
8950     *nto* | *qnx*)
8951       # QNX uses GNU C++, but need to define -shared option too, otherwise
8952       # it will coredump.
8953       lt_prog_compiler_pic='-fPIC -shared'
8954       ;;
8955
8956     osf3* | osf4* | osf5*)
8957       lt_prog_compiler_wl='-Wl,'
8958       # All OSF/1 code is PIC.
8959       lt_prog_compiler_static='-non_shared'
8960       ;;
8961
8962     rdos*)
8963       lt_prog_compiler_static='-non_shared'
8964       ;;
8965
8966     solaris*)
8967       lt_prog_compiler_pic='-KPIC'
8968       lt_prog_compiler_static='-Bstatic'
8969       case $cc_basename in
8970       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8971         lt_prog_compiler_wl='-Qoption ld ';;
8972       *)
8973         lt_prog_compiler_wl='-Wl,';;
8974       esac
8975       ;;
8976
8977     sunos4*)
8978       lt_prog_compiler_wl='-Qoption ld '
8979       lt_prog_compiler_pic='-PIC'
8980       lt_prog_compiler_static='-Bstatic'
8981       ;;
8982
8983     sysv4 | sysv4.2uw2* | sysv4.3*)
8984       lt_prog_compiler_wl='-Wl,'
8985       lt_prog_compiler_pic='-KPIC'
8986       lt_prog_compiler_static='-Bstatic'
8987       ;;
8988
8989     sysv4*MP*)
8990       if test -d /usr/nec; then
8991         lt_prog_compiler_pic='-Kconform_pic'
8992         lt_prog_compiler_static='-Bstatic'
8993       fi
8994       ;;
8995
8996     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8997       lt_prog_compiler_wl='-Wl,'
8998       lt_prog_compiler_pic='-KPIC'
8999       lt_prog_compiler_static='-Bstatic'
9000       ;;
9001
9002     unicos*)
9003       lt_prog_compiler_wl='-Wl,'
9004       lt_prog_compiler_can_build_shared=no
9005       ;;
9006
9007     uts4*)
9008       lt_prog_compiler_pic='-pic'
9009       lt_prog_compiler_static='-Bstatic'
9010       ;;
9011
9012     *)
9013       lt_prog_compiler_can_build_shared=no
9014       ;;
9015     esac
9016   fi
9017
9018 case $host_os in
9019   # For platforms that do not support PIC, -DPIC is meaningless:
9020   *djgpp*)
9021     lt_prog_compiler_pic=
9022     ;;
9023   *)
9024     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9025     ;;
9026 esac
9027
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9029 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9030 if ${lt_cv_prog_compiler_pic+:} false; then :
9031   $as_echo_n "(cached) " >&6
9032 else
9033   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9034 fi
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9036 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9037 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9038
9039 #
9040 # Check to make sure the PIC flag actually works.
9041 #
9042 if test -n "$lt_prog_compiler_pic"; then
9043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9044 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9045 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9046   $as_echo_n "(cached) " >&6
9047 else
9048   lt_cv_prog_compiler_pic_works=no
9049    ac_outfile=conftest.$ac_objext
9050    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9051    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9052    # Insert the option either (1) after the last *FLAGS variable, or
9053    # (2) before a word containing "conftest.", or (3) at the end.
9054    # Note that $ac_compile itself does not contain backslashes and begins
9055    # with a dollar sign (not a hyphen), so the echo should work correctly.
9056    # The option is referenced via a variable to avoid confusing sed.
9057    lt_compile=`echo "$ac_compile" | $SED \
9058    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9059    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9060    -e 's:$: $lt_compiler_flag:'`
9061    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9062    (eval "$lt_compile" 2>conftest.err)
9063    ac_status=$?
9064    cat conftest.err >&5
9065    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066    if (exit $ac_status) && test -s "$ac_outfile"; then
9067      # The compiler can only warn and ignore the option if not recognized
9068      # So say no if there are warnings other than the usual output.
9069      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9070      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9071      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9072        lt_cv_prog_compiler_pic_works=yes
9073      fi
9074    fi
9075    $RM conftest*
9076
9077 fi
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9079 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9080
9081 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9082     case $lt_prog_compiler_pic in
9083      "" | " "*) ;;
9084      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9085      esac
9086 else
9087     lt_prog_compiler_pic=
9088      lt_prog_compiler_can_build_shared=no
9089 fi
9090
9091 fi
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103 #
9104 # Check to make sure the static flag actually works.
9105 #
9106 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9108 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9109 if ${lt_cv_prog_compiler_static_works+:} false; then :
9110   $as_echo_n "(cached) " >&6
9111 else
9112   lt_cv_prog_compiler_static_works=no
9113    save_LDFLAGS=$LDFLAGS
9114    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9115    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9116    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9117      # The linker can only warn and ignore the option if not recognized
9118      # So say no if there are warnings
9119      if test -s conftest.err; then
9120        # Append any errors to the config.log.
9121        cat conftest.err 1>&5
9122        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9123        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9124        if diff conftest.exp conftest.er2 >/dev/null; then
9125          lt_cv_prog_compiler_static_works=yes
9126        fi
9127      else
9128        lt_cv_prog_compiler_static_works=yes
9129      fi
9130    fi
9131    $RM -r conftest*
9132    LDFLAGS=$save_LDFLAGS
9133
9134 fi
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9136 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9137
9138 if test yes = "$lt_cv_prog_compiler_static_works"; then
9139     :
9140 else
9141     lt_prog_compiler_static=
9142 fi
9143
9144
9145
9146
9147
9148
9149
9150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9151 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9152 if ${lt_cv_prog_compiler_c_o+:} false; then :
9153   $as_echo_n "(cached) " >&6
9154 else
9155   lt_cv_prog_compiler_c_o=no
9156    $RM -r conftest 2>/dev/null
9157    mkdir conftest
9158    cd conftest
9159    mkdir out
9160    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9161
9162    lt_compiler_flag="-o out/conftest2.$ac_objext"
9163    # Insert the option either (1) after the last *FLAGS variable, or
9164    # (2) before a word containing "conftest.", or (3) at the end.
9165    # Note that $ac_compile itself does not contain backslashes and begins
9166    # with a dollar sign (not a hyphen), so the echo should work correctly.
9167    lt_compile=`echo "$ac_compile" | $SED \
9168    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9169    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9170    -e 's:$: $lt_compiler_flag:'`
9171    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9172    (eval "$lt_compile" 2>out/conftest.err)
9173    ac_status=$?
9174    cat out/conftest.err >&5
9175    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9177    then
9178      # The compiler can only warn and ignore the option if not recognized
9179      # So say no if there are warnings
9180      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9181      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9182      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9183        lt_cv_prog_compiler_c_o=yes
9184      fi
9185    fi
9186    chmod u+w . 2>&5
9187    $RM conftest*
9188    # SGI C++ compiler will create directory out/ii_files/ for
9189    # template instantiation
9190    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9191    $RM out/* && rmdir out
9192    cd ..
9193    $RM -r conftest
9194    $RM conftest*
9195
9196 fi
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9198 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9199
9200
9201
9202
9203
9204
9205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9206 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9207 if ${lt_cv_prog_compiler_c_o+:} false; then :
9208   $as_echo_n "(cached) " >&6
9209 else
9210   lt_cv_prog_compiler_c_o=no
9211    $RM -r conftest 2>/dev/null
9212    mkdir conftest
9213    cd conftest
9214    mkdir out
9215    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9216
9217    lt_compiler_flag="-o out/conftest2.$ac_objext"
9218    # Insert the option either (1) after the last *FLAGS variable, or
9219    # (2) before a word containing "conftest.", or (3) at the end.
9220    # Note that $ac_compile itself does not contain backslashes and begins
9221    # with a dollar sign (not a hyphen), so the echo should work correctly.
9222    lt_compile=`echo "$ac_compile" | $SED \
9223    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9224    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9225    -e 's:$: $lt_compiler_flag:'`
9226    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9227    (eval "$lt_compile" 2>out/conftest.err)
9228    ac_status=$?
9229    cat out/conftest.err >&5
9230    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9232    then
9233      # The compiler can only warn and ignore the option if not recognized
9234      # So say no if there are warnings
9235      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9236      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9237      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9238        lt_cv_prog_compiler_c_o=yes
9239      fi
9240    fi
9241    chmod u+w . 2>&5
9242    $RM conftest*
9243    # SGI C++ compiler will create directory out/ii_files/ for
9244    # template instantiation
9245    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9246    $RM out/* && rmdir out
9247    cd ..
9248    $RM -r conftest
9249    $RM conftest*
9250
9251 fi
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9253 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9254
9255
9256
9257
9258 hard_links=nottested
9259 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9260   # do not overwrite the value of need_locks provided by the user
9261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9262 $as_echo_n "checking if we can lock with hard links... " >&6; }
9263   hard_links=yes
9264   $RM conftest*
9265   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9266   touch conftest.a
9267   ln conftest.a conftest.b 2>&5 || hard_links=no
9268   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9270 $as_echo "$hard_links" >&6; }
9271   if test no = "$hard_links"; then
9272     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9273 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9274     need_locks=warn
9275   fi
9276 else
9277   need_locks=no
9278 fi
9279
9280
9281
9282
9283
9284
9285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9286 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9287
9288   runpath_var=
9289   allow_undefined_flag=
9290   always_export_symbols=no
9291   archive_cmds=
9292   archive_expsym_cmds=
9293   compiler_needs_object=no
9294   enable_shared_with_static_runtimes=no
9295   export_dynamic_flag_spec=
9296   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9297   hardcode_automatic=no
9298   hardcode_direct=no
9299   hardcode_direct_absolute=no
9300   hardcode_libdir_flag_spec=
9301   hardcode_libdir_separator=
9302   hardcode_minus_L=no
9303   hardcode_shlibpath_var=unsupported
9304   inherit_rpath=no
9305   link_all_deplibs=unknown
9306   module_cmds=
9307   module_expsym_cmds=
9308   old_archive_from_new_cmds=
9309   old_archive_from_expsyms_cmds=
9310   thread_safe_flag_spec=
9311   whole_archive_flag_spec=
9312   # include_expsyms should be a list of space-separated symbols to be *always*
9313   # included in the symbol list
9314   include_expsyms=
9315   # exclude_expsyms can be an extended regexp of symbols to exclude
9316   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9317   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9318   # as well as any symbol that contains 'd'.
9319   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9320   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9321   # platforms (ab)use it in PIC code, but their linkers get confused if
9322   # the symbol is explicitly referenced.  Since portable code cannot
9323   # rely on this symbol name, it's probably fine to never include it in
9324   # preloaded symbol tables.
9325   # Exclude shared library initialization/finalization symbols.
9326   extract_expsyms_cmds=
9327
9328   case $host_os in
9329   cygwin* | mingw* | pw32* | cegcc*)
9330     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9331     # When not using gcc, we currently assume that we are using
9332     # Microsoft Visual C++.
9333     if test yes != "$GCC"; then
9334       with_gnu_ld=no
9335     fi
9336     ;;
9337   interix*)
9338     # we just hope/assume this is gcc and not c89 (= MSVC++)
9339     with_gnu_ld=yes
9340     ;;
9341   openbsd* | bitrig*)
9342     with_gnu_ld=no
9343     ;;
9344   esac
9345
9346   ld_shlibs=yes
9347
9348   # On some targets, GNU ld is compatible enough with the native linker
9349   # that we're better off using the native interface for both.
9350   lt_use_gnu_ld_interface=no
9351   if test yes = "$with_gnu_ld"; then
9352     case $host_os in
9353       aix*)
9354         # The AIX port of GNU ld has always aspired to compatibility
9355         # with the native linker.  However, as the warning in the GNU ld
9356         # block says, versions before 2.19.5* couldn't really create working
9357         # shared libraries, regardless of the interface used.
9358         case `$LD -v 2>&1` in
9359           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9360           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9361           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9362           *)
9363             lt_use_gnu_ld_interface=yes
9364             ;;
9365         esac
9366         ;;
9367       *)
9368         lt_use_gnu_ld_interface=yes
9369         ;;
9370     esac
9371   fi
9372
9373   if test yes = "$lt_use_gnu_ld_interface"; then
9374     # If archive_cmds runs LD, not CC, wlarc should be empty
9375     wlarc='$wl'
9376
9377     # Set some defaults for GNU ld with shared library support. These
9378     # are reset later if shared libraries are not supported. Putting them
9379     # here allows them to be overridden if necessary.
9380     runpath_var=LD_RUN_PATH
9381     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9382     export_dynamic_flag_spec='$wl--export-dynamic'
9383     # ancient GNU ld didn't support --whole-archive et. al.
9384     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9385       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9386     else
9387       whole_archive_flag_spec=
9388     fi
9389     supports_anon_versioning=no
9390     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9391       *GNU\ gold*) supports_anon_versioning=yes ;;
9392       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9393       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9394       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9395       *\ 2.11.*) ;; # other 2.11 versions
9396       *) supports_anon_versioning=yes ;;
9397     esac
9398
9399     # See if GNU ld supports shared libraries.
9400     case $host_os in
9401     aix[3-9]*)
9402       # On AIX/PPC, the GNU linker is very broken
9403       if test ia64 != "$host_cpu"; then
9404         ld_shlibs=no
9405         cat <<_LT_EOF 1>&2
9406
9407 *** Warning: the GNU linker, at least up to release 2.19, is reported
9408 *** to be unable to reliably create shared libraries on AIX.
9409 *** Therefore, libtool is disabling shared libraries support.  If you
9410 *** really care for shared libraries, you may want to install binutils
9411 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9412 *** You will then need to restart the configuration process.
9413
9414 _LT_EOF
9415       fi
9416       ;;
9417
9418     amigaos*)
9419       case $host_cpu in
9420       powerpc)
9421             # see comment about AmigaOS4 .so support
9422             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9423             archive_expsym_cmds=''
9424         ;;
9425       m68k)
9426             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)'
9427             hardcode_libdir_flag_spec='-L$libdir'
9428             hardcode_minus_L=yes
9429         ;;
9430       esac
9431       ;;
9432
9433     beos*)
9434       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9435         allow_undefined_flag=unsupported
9436         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9437         # support --undefined.  This deserves some investigation.  FIXME
9438         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9439       else
9440         ld_shlibs=no
9441       fi
9442       ;;
9443
9444     cygwin* | mingw* | pw32* | cegcc*)
9445       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9446       # as there is no search path for DLLs.
9447       hardcode_libdir_flag_spec='-L$libdir'
9448       export_dynamic_flag_spec='$wl--export-all-symbols'
9449       allow_undefined_flag=unsupported
9450       always_export_symbols=no
9451       enable_shared_with_static_runtimes=yes
9452       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'
9453       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9454
9455       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9456         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9457         # If the export-symbols file already is a .def file, use it as
9458         # is; otherwise, prepend EXPORTS...
9459         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9460           cp $export_symbols $output_objdir/$soname.def;
9461         else
9462           echo EXPORTS > $output_objdir/$soname.def;
9463           cat $export_symbols >> $output_objdir/$soname.def;
9464         fi~
9465         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9466       else
9467         ld_shlibs=no
9468       fi
9469       ;;
9470
9471     haiku*)
9472       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9473       link_all_deplibs=yes
9474       ;;
9475
9476     os2*)
9477       hardcode_libdir_flag_spec='-L$libdir'
9478       hardcode_minus_L=yes
9479       allow_undefined_flag=unsupported
9480       shrext_cmds=.dll
9481       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9482         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9483         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9484         $ECHO EXPORTS >> $output_objdir/$libname.def~
9485         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9486         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9487         emximp -o $lib $output_objdir/$libname.def'
9488       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9489         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9490         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9491         $ECHO EXPORTS >> $output_objdir/$libname.def~
9492         prefix_cmds="$SED"~
9493         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9494           prefix_cmds="$prefix_cmds -e 1d";
9495         fi~
9496         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9497         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9498         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9499         emximp -o $lib $output_objdir/$libname.def'
9500       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9501       enable_shared_with_static_runtimes=yes
9502       ;;
9503
9504     interix[3-9]*)
9505       hardcode_direct=no
9506       hardcode_shlibpath_var=no
9507       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9508       export_dynamic_flag_spec='$wl-E'
9509       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9510       # Instead, shared libraries are loaded at an image base (0x10000000 by
9511       # default) and relocated if they conflict, which is a slow very memory
9512       # consuming and fragmenting process.  To avoid this, we pick a random,
9513       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9514       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9515       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9516       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'
9517       ;;
9518
9519     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9520       tmp_diet=no
9521       if test linux-dietlibc = "$host_os"; then
9522         case $cc_basename in
9523           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9524         esac
9525       fi
9526       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9527          && test no = "$tmp_diet"
9528       then
9529         tmp_addflag=' $pic_flag'
9530         tmp_sharedflag='-shared'
9531         case $cc_basename,$host_cpu in
9532         pgcc*)                          # Portland Group C compiler
9533           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'
9534           tmp_addflag=' $pic_flag'
9535           ;;
9536         pgf77* | pgf90* | pgf95* | pgfortran*)
9537                                         # Portland Group f77 and f90 compilers
9538           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'
9539           tmp_addflag=' $pic_flag -Mnomain' ;;
9540         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9541           tmp_addflag=' -i_dynamic' ;;
9542         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9543           tmp_addflag=' -i_dynamic -nofor_main' ;;
9544         ifc* | ifort*)                  # Intel Fortran compiler
9545           tmp_addflag=' -nofor_main' ;;
9546         lf95*)                          # Lahey Fortran 8.1
9547           whole_archive_flag_spec=
9548           tmp_sharedflag='--shared' ;;
9549         nagfor*)                        # NAGFOR 5.3
9550           tmp_sharedflag='-Wl,-shared' ;;
9551         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9552           tmp_sharedflag='-qmkshrobj'
9553           tmp_addflag= ;;
9554         nvcc*)  # Cuda Compiler Driver 2.2
9555           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'
9556           compiler_needs_object=yes
9557           ;;
9558         esac
9559         case `$CC -V 2>&1 | sed 5q` in
9560         *Sun\ C*)                       # Sun C 5.9
9561           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'
9562           compiler_needs_object=yes
9563           tmp_sharedflag='-G' ;;
9564         *Sun\ F*)                       # Sun Fortran 8.3
9565           tmp_sharedflag='-G' ;;
9566         esac
9567         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9568
9569         if test yes = "$supports_anon_versioning"; then
9570           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9571             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9572             echo "local: *; };" >> $output_objdir/$libname.ver~
9573             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9574         fi
9575
9576         case $cc_basename in
9577         tcc*)
9578           export_dynamic_flag_spec='-rdynamic'
9579           ;;
9580         xlf* | bgf* | bgxlf* | mpixlf*)
9581           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9582           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9583           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9584           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9585           if test yes = "$supports_anon_versioning"; then
9586             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9587               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9588               echo "local: *; };" >> $output_objdir/$libname.ver~
9589               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9590           fi
9591           ;;
9592         esac
9593       else
9594         ld_shlibs=no
9595       fi
9596       ;;
9597
9598     netbsd*)
9599       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9600         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9601         wlarc=
9602       else
9603         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9604         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9605       fi
9606       ;;
9607
9608     solaris*)
9609       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9610         ld_shlibs=no
9611         cat <<_LT_EOF 1>&2
9612
9613 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9614 *** create shared libraries on Solaris systems.  Therefore, libtool
9615 *** is disabling shared libraries support.  We urge you to upgrade GNU
9616 *** binutils to release 2.9.1 or newer.  Another option is to modify
9617 *** your PATH or compiler configuration so that the native linker is
9618 *** used, and then restart.
9619
9620 _LT_EOF
9621       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9622         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9623         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9624       else
9625         ld_shlibs=no
9626       fi
9627       ;;
9628
9629     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9630       case `$LD -v 2>&1` in
9631         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9632         ld_shlibs=no
9633         cat <<_LT_EOF 1>&2
9634
9635 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9636 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9637 *** is disabling shared libraries support.  We urge you to upgrade GNU
9638 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9639 *** your PATH or compiler configuration so that the native linker is
9640 *** used, and then restart.
9641
9642 _LT_EOF
9643         ;;
9644         *)
9645           # For security reasons, it is highly recommended that you always
9646           # use absolute paths for naming shared libraries, and exclude the
9647           # DT_RUNPATH tag from executables and libraries.  But doing so
9648           # requires that you compile everything twice, which is a pain.
9649           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9650             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9651             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9652             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9653           else
9654             ld_shlibs=no
9655           fi
9656         ;;
9657       esac
9658       ;;
9659
9660     sunos4*)
9661       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9662       wlarc=
9663       hardcode_direct=yes
9664       hardcode_shlibpath_var=no
9665       ;;
9666
9667     *)
9668       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9669         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9670         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9671       else
9672         ld_shlibs=no
9673       fi
9674       ;;
9675     esac
9676
9677     if test no = "$ld_shlibs"; then
9678       runpath_var=
9679       hardcode_libdir_flag_spec=
9680       export_dynamic_flag_spec=
9681       whole_archive_flag_spec=
9682     fi
9683   else
9684     # PORTME fill in a description of your system's linker (not GNU ld)
9685     case $host_os in
9686     aix3*)
9687       allow_undefined_flag=unsupported
9688       always_export_symbols=yes
9689       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'
9690       # Note: this linker hardcodes the directories in LIBPATH if there
9691       # are no directories specified by -L.
9692       hardcode_minus_L=yes
9693       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9694         # Neither direct hardcoding nor static linking is supported with a
9695         # broken collect2.
9696         hardcode_direct=unsupported
9697       fi
9698       ;;
9699
9700     aix[4-9]*)
9701       if test ia64 = "$host_cpu"; then
9702         # On IA64, the linker does run time linking by default, so we don't
9703         # have to do anything special.
9704         aix_use_runtimelinking=no
9705         exp_sym_flag='-Bexport'
9706         no_entry_flag=
9707       else
9708         # If we're using GNU nm, then we don't want the "-C" option.
9709         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9710         # Without the "-l" option, or with the "-B" option, AIX nm treats
9711         # weak defined symbols like other global defined symbols, whereas
9712         # GNU nm marks them as "W".
9713         # While the 'weak' keyword is ignored in the Export File, we need
9714         # it in the Import File for the 'aix-soname' feature, so we have
9715         # to replace the "-B" option with "-P" for AIX nm.
9716         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9717           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9718         else
9719           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9720         fi
9721         aix_use_runtimelinking=no
9722
9723         # Test if we are trying to use run time linking or normal
9724         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9725         # have runtime linking enabled, and use it for executables.
9726         # For shared libraries, we enable/disable runtime linking
9727         # depending on the kind of the shared library created -
9728         # when "with_aix_soname,aix_use_runtimelinking" is:
9729         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9730         # "aix,yes"  lib.so          shared, rtl:yes, for executables
9731         #            lib.a           static archive
9732         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9733         #            lib.a(lib.so.V) shared, rtl:no,  for executables
9734         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9735         #            lib.a(lib.so.V) shared, rtl:no
9736         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9737         #            lib.a           static archive
9738         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9739           for ld_flag in $LDFLAGS; do
9740           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9741             aix_use_runtimelinking=yes
9742             break
9743           fi
9744           done
9745           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9746             # With aix-soname=svr4, we create the lib.so.V shared archives only,
9747             # so we don't have lib.a shared libs to link our executables.
9748             # We have to force runtime linking in this case.
9749             aix_use_runtimelinking=yes
9750             LDFLAGS="$LDFLAGS -Wl,-brtl"
9751           fi
9752           ;;
9753         esac
9754
9755         exp_sym_flag='-bexport'
9756         no_entry_flag='-bnoentry'
9757       fi
9758
9759       # When large executables or shared objects are built, AIX ld can
9760       # have problems creating the table of contents.  If linking a library
9761       # or program results in "error TOC overflow" add -mminimal-toc to
9762       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9763       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9764
9765       archive_cmds=''
9766       hardcode_direct=yes
9767       hardcode_direct_absolute=yes
9768       hardcode_libdir_separator=':'
9769       link_all_deplibs=yes
9770       file_list_spec='$wl-f,'
9771       case $with_aix_soname,$aix_use_runtimelinking in
9772       aix,*) ;; # traditional, no import file
9773       svr4,* | *,yes) # use import file
9774         # The Import File defines what to hardcode.
9775         hardcode_direct=no
9776         hardcode_direct_absolute=no
9777         ;;
9778       esac
9779
9780       if test yes = "$GCC"; then
9781         case $host_os in aix4.[012]|aix4.[012].*)
9782         # We only want to do this on AIX 4.2 and lower, the check
9783         # below for broken collect2 doesn't work under 4.3+
9784           collect2name=`$CC -print-prog-name=collect2`
9785           if test -f "$collect2name" &&
9786            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9787           then
9788           # We have reworked collect2
9789           :
9790           else
9791           # We have old collect2
9792           hardcode_direct=unsupported
9793           # It fails to find uninstalled libraries when the uninstalled
9794           # path is not listed in the libpath.  Setting hardcode_minus_L
9795           # to unsupported forces relinking
9796           hardcode_minus_L=yes
9797           hardcode_libdir_flag_spec='-L$libdir'
9798           hardcode_libdir_separator=
9799           fi
9800           ;;
9801         esac
9802         shared_flag='-shared'
9803         if test yes = "$aix_use_runtimelinking"; then
9804           shared_flag="$shared_flag "'$wl-G'
9805         fi
9806         # Need to ensure runtime linking is disabled for the traditional
9807         # shared library, or the linker may eventually find shared libraries
9808         # /with/ Import File - we do not want to mix them.
9809         shared_flag_aix='-shared'
9810         shared_flag_svr4='-shared $wl-G'
9811       else
9812         # not using gcc
9813         if test ia64 = "$host_cpu"; then
9814         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9815         # chokes on -Wl,-G. The following line is correct:
9816           shared_flag='-G'
9817         else
9818           if test yes = "$aix_use_runtimelinking"; then
9819             shared_flag='$wl-G'
9820           else
9821             shared_flag='$wl-bM:SRE'
9822           fi
9823           shared_flag_aix='$wl-bM:SRE'
9824           shared_flag_svr4='$wl-G'
9825         fi
9826       fi
9827
9828       export_dynamic_flag_spec='$wl-bexpall'
9829       # It seems that -bexpall does not export symbols beginning with
9830       # underscore (_), so it is better to generate a list of symbols to export.
9831       always_export_symbols=yes
9832       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9833         # Warning - without using the other runtime loading flags (-brtl),
9834         # -berok will link without error, but may produce a broken library.
9835         allow_undefined_flag='-berok'
9836         # Determine the default libpath from the value encoded in an
9837         # empty executable.
9838         if test set = "${lt_cv_aix_libpath+set}"; then
9839   aix_libpath=$lt_cv_aix_libpath
9840 else
9841   if ${lt_cv_aix_libpath_+:} false; then :
9842   $as_echo_n "(cached) " >&6
9843 else
9844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845 /* end confdefs.h.  */
9846
9847 int
9848 main ()
9849 {
9850
9851   ;
9852   return 0;
9853 }
9854 _ACEOF
9855 if ac_fn_c_try_link "$LINENO"; then :
9856
9857   lt_aix_libpath_sed='
9858       /Import File Strings/,/^$/ {
9859           /^0/ {
9860               s/^0  *\([^ ]*\) *$/\1/
9861               p
9862           }
9863       }'
9864   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9865   # Check for a 64-bit object if we didn't find anything.
9866   if test -z "$lt_cv_aix_libpath_"; then
9867     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9868   fi
9869 fi
9870 rm -f core conftest.err conftest.$ac_objext \
9871     conftest$ac_exeext conftest.$ac_ext
9872   if test -z "$lt_cv_aix_libpath_"; then
9873     lt_cv_aix_libpath_=/usr/lib:/lib
9874   fi
9875
9876 fi
9877
9878   aix_libpath=$lt_cv_aix_libpath_
9879 fi
9880
9881         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9882         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9883       else
9884         if test ia64 = "$host_cpu"; then
9885           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9886           allow_undefined_flag="-z nodefs"
9887           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"
9888         else
9889          # Determine the default libpath from the value encoded in an
9890          # empty executable.
9891          if test set = "${lt_cv_aix_libpath+set}"; then
9892   aix_libpath=$lt_cv_aix_libpath
9893 else
9894   if ${lt_cv_aix_libpath_+:} false; then :
9895   $as_echo_n "(cached) " >&6
9896 else
9897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h.  */
9899
9900 int
9901 main ()
9902 {
9903
9904   ;
9905   return 0;
9906 }
9907 _ACEOF
9908 if ac_fn_c_try_link "$LINENO"; then :
9909
9910   lt_aix_libpath_sed='
9911       /Import File Strings/,/^$/ {
9912           /^0/ {
9913               s/^0  *\([^ ]*\) *$/\1/
9914               p
9915           }
9916       }'
9917   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9918   # Check for a 64-bit object if we didn't find anything.
9919   if test -z "$lt_cv_aix_libpath_"; then
9920     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9921   fi
9922 fi
9923 rm -f core conftest.err conftest.$ac_objext \
9924     conftest$ac_exeext conftest.$ac_ext
9925   if test -z "$lt_cv_aix_libpath_"; then
9926     lt_cv_aix_libpath_=/usr/lib:/lib
9927   fi
9928
9929 fi
9930
9931   aix_libpath=$lt_cv_aix_libpath_
9932 fi
9933
9934          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9935           # Warning - without using the other run time loading flags,
9936           # -berok will link without error, but may produce a broken library.
9937           no_undefined_flag=' $wl-bernotok'
9938           allow_undefined_flag=' $wl-berok'
9939           if test yes = "$with_gnu_ld"; then
9940             # We only use this code for GNU lds that support --whole-archive.
9941             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9942           else
9943             # Exported symbols can be pulled into shared objects from archives
9944             whole_archive_flag_spec='$convenience'
9945           fi
9946           archive_cmds_need_lc=yes
9947           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9948           # -brtl affects multiple linker settings, -berok does not and is overridden later
9949           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9950           if test svr4 != "$with_aix_soname"; then
9951             # This is similar to how AIX traditionally builds its shared libraries.
9952             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9953           fi
9954           if test aix != "$with_aix_soname"; then
9955             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9956           else
9957             # used by -dlpreopen to get the symbols
9958             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9959           fi
9960           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9961         fi
9962       fi
9963       ;;
9964
9965     amigaos*)
9966       case $host_cpu in
9967       powerpc)
9968             # see comment about AmigaOS4 .so support
9969             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9970             archive_expsym_cmds=''
9971         ;;
9972       m68k)
9973             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)'
9974             hardcode_libdir_flag_spec='-L$libdir'
9975             hardcode_minus_L=yes
9976         ;;
9977       esac
9978       ;;
9979
9980     bsdi[45]*)
9981       export_dynamic_flag_spec=-rdynamic
9982       ;;
9983
9984     cygwin* | mingw* | pw32* | cegcc*)
9985       # When not using gcc, we currently assume that we are using
9986       # Microsoft Visual C++.
9987       # hardcode_libdir_flag_spec is actually meaningless, as there is
9988       # no search path for DLLs.
9989       case $cc_basename in
9990       cl*)
9991         # Native MSVC
9992         hardcode_libdir_flag_spec=' '
9993         allow_undefined_flag=unsupported
9994         always_export_symbols=yes
9995         file_list_spec='@'
9996         # Tell ltmain to make .lib files, not .a files.
9997         libext=lib
9998         # Tell ltmain to make .dll files, not .so files.
9999         shrext_cmds=.dll
10000         # FIXME: Setting linknames here is a bad hack.
10001         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10002         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10003             cp "$export_symbols" "$output_objdir/$soname.def";
10004             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10005           else
10006             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10007           fi~
10008           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10009           linknames='
10010         # The linker will not automatically build a static lib if we build a DLL.
10011         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10012         enable_shared_with_static_runtimes=yes
10013         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10014         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10015         # Don't use ranlib
10016         old_postinstall_cmds='chmod 644 $oldlib'
10017         postlink_cmds='lt_outputfile="@OUTPUT@"~
10018           lt_tool_outputfile="@TOOL_OUTPUT@"~
10019           case $lt_outputfile in
10020             *.exe|*.EXE) ;;
10021             *)
10022               lt_outputfile=$lt_outputfile.exe
10023               lt_tool_outputfile=$lt_tool_outputfile.exe
10024               ;;
10025           esac~
10026           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10027             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10028             $RM "$lt_outputfile.manifest";
10029           fi'
10030         ;;
10031       *)
10032         # Assume MSVC wrapper
10033         hardcode_libdir_flag_spec=' '
10034         allow_undefined_flag=unsupported
10035         # Tell ltmain to make .lib files, not .a files.
10036         libext=lib
10037         # Tell ltmain to make .dll files, not .so files.
10038         shrext_cmds=.dll
10039         # FIXME: Setting linknames here is a bad hack.
10040         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10041         # The linker will automatically build a .lib file if we build a DLL.
10042         old_archive_from_new_cmds='true'
10043         # FIXME: Should let the user specify the lib program.
10044         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10045         enable_shared_with_static_runtimes=yes
10046         ;;
10047       esac
10048       ;;
10049
10050     darwin* | rhapsody*)
10051
10052
10053   archive_cmds_need_lc=no
10054   hardcode_direct=no
10055   hardcode_automatic=yes
10056   hardcode_shlibpath_var=unsupported
10057   if test yes = "$lt_cv_ld_force_load"; then
10058     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\"`'
10059
10060   else
10061     whole_archive_flag_spec=''
10062   fi
10063   link_all_deplibs=yes
10064   allow_undefined_flag=$_lt_dar_allow_undefined
10065   case $cc_basename in
10066      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10067      *) _lt_dar_can_shared=$GCC ;;
10068   esac
10069   if test yes = "$_lt_dar_can_shared"; then
10070     output_verbose_link_cmd=func_echo_all
10071     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10072     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10073     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"
10074     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"
10075
10076   else
10077   ld_shlibs=no
10078   fi
10079
10080       ;;
10081
10082     dgux*)
10083       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10084       hardcode_libdir_flag_spec='-L$libdir'
10085       hardcode_shlibpath_var=no
10086       ;;
10087
10088     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10089     # support.  Future versions do this automatically, but an explicit c++rt0.o
10090     # does not break anything, and helps significantly (at the cost of a little
10091     # extra space).
10092     freebsd2.2*)
10093       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10094       hardcode_libdir_flag_spec='-R$libdir'
10095       hardcode_direct=yes
10096       hardcode_shlibpath_var=no
10097       ;;
10098
10099     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10100     freebsd2.*)
10101       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10102       hardcode_direct=yes
10103       hardcode_minus_L=yes
10104       hardcode_shlibpath_var=no
10105       ;;
10106
10107     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10108     freebsd* | dragonfly*)
10109       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10110       hardcode_libdir_flag_spec='-R$libdir'
10111       hardcode_direct=yes
10112       hardcode_shlibpath_var=no
10113       ;;
10114
10115     hpux9*)
10116       if test yes = "$GCC"; then
10117         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10118       else
10119         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10120       fi
10121       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10122       hardcode_libdir_separator=:
10123       hardcode_direct=yes
10124
10125       # hardcode_minus_L: Not really in the search PATH,
10126       # but as the default location of the library.
10127       hardcode_minus_L=yes
10128       export_dynamic_flag_spec='$wl-E'
10129       ;;
10130
10131     hpux10*)
10132       if test yes,no = "$GCC,$with_gnu_ld"; then
10133         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10134       else
10135         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10136       fi
10137       if test no = "$with_gnu_ld"; then
10138         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10139         hardcode_libdir_separator=:
10140         hardcode_direct=yes
10141         hardcode_direct_absolute=yes
10142         export_dynamic_flag_spec='$wl-E'
10143         # hardcode_minus_L: Not really in the search PATH,
10144         # but as the default location of the library.
10145         hardcode_minus_L=yes
10146       fi
10147       ;;
10148
10149     hpux11*)
10150       if test yes,no = "$GCC,$with_gnu_ld"; then
10151         case $host_cpu in
10152         hppa*64*)
10153           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10154           ;;
10155         ia64*)
10156           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10157           ;;
10158         *)
10159           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10160           ;;
10161         esac
10162       else
10163         case $host_cpu in
10164         hppa*64*)
10165           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10166           ;;
10167         ia64*)
10168           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10169           ;;
10170         *)
10171
10172           # Older versions of the 11.00 compiler do not understand -b yet
10173           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10174           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10175 $as_echo_n "checking if $CC understands -b... " >&6; }
10176 if ${lt_cv_prog_compiler__b+:} false; then :
10177   $as_echo_n "(cached) " >&6
10178 else
10179   lt_cv_prog_compiler__b=no
10180    save_LDFLAGS=$LDFLAGS
10181    LDFLAGS="$LDFLAGS -b"
10182    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10183    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10184      # The linker can only warn and ignore the option if not recognized
10185      # So say no if there are warnings
10186      if test -s conftest.err; then
10187        # Append any errors to the config.log.
10188        cat conftest.err 1>&5
10189        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10190        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10191        if diff conftest.exp conftest.er2 >/dev/null; then
10192          lt_cv_prog_compiler__b=yes
10193        fi
10194      else
10195        lt_cv_prog_compiler__b=yes
10196      fi
10197    fi
10198    $RM -r conftest*
10199    LDFLAGS=$save_LDFLAGS
10200
10201 fi
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10203 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10204
10205 if test yes = "$lt_cv_prog_compiler__b"; then
10206     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10207 else
10208     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10209 fi
10210
10211           ;;
10212         esac
10213       fi
10214       if test no = "$with_gnu_ld"; then
10215         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10216         hardcode_libdir_separator=:
10217
10218         case $host_cpu in
10219         hppa*64*|ia64*)
10220           hardcode_direct=no
10221           hardcode_shlibpath_var=no
10222           ;;
10223         *)
10224           hardcode_direct=yes
10225           hardcode_direct_absolute=yes
10226           export_dynamic_flag_spec='$wl-E'
10227
10228           # hardcode_minus_L: Not really in the search PATH,
10229           # but as the default location of the library.
10230           hardcode_minus_L=yes
10231           ;;
10232         esac
10233       fi
10234       ;;
10235
10236     irix5* | irix6* | nonstopux*)
10237       if test yes = "$GCC"; then
10238         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'
10239         # Try to use the -exported_symbol ld option, if it does not
10240         # work, assume that -exports_file does not work either and
10241         # implicitly export all symbols.
10242         # This should be the same for all languages, so no per-tag cache variable.
10243         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10244 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10245 if ${lt_cv_irix_exported_symbol+:} false; then :
10246   $as_echo_n "(cached) " >&6
10247 else
10248   save_LDFLAGS=$LDFLAGS
10249            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10250            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10251 /* end confdefs.h.  */
10252 int foo (void) { return 0; }
10253 _ACEOF
10254 if ac_fn_c_try_link "$LINENO"; then :
10255   lt_cv_irix_exported_symbol=yes
10256 else
10257   lt_cv_irix_exported_symbol=no
10258 fi
10259 rm -f core conftest.err conftest.$ac_objext \
10260     conftest$ac_exeext conftest.$ac_ext
10261            LDFLAGS=$save_LDFLAGS
10262 fi
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10264 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10265         if test yes = "$lt_cv_irix_exported_symbol"; then
10266           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'
10267         fi
10268       else
10269         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'
10270         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'
10271       fi
10272       archive_cmds_need_lc='no'
10273       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10274       hardcode_libdir_separator=:
10275       inherit_rpath=yes
10276       link_all_deplibs=yes
10277       ;;
10278
10279     linux*)
10280       case $cc_basename in
10281       tcc*)
10282         # Fabrice Bellard et al's Tiny C Compiler
10283         ld_shlibs=yes
10284         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10285         ;;
10286       esac
10287       ;;
10288
10289     netbsd*)
10290       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10291         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10292       else
10293         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10294       fi
10295       hardcode_libdir_flag_spec='-R$libdir'
10296       hardcode_direct=yes
10297       hardcode_shlibpath_var=no
10298       ;;
10299
10300     newsos6)
10301       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10302       hardcode_direct=yes
10303       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10304       hardcode_libdir_separator=:
10305       hardcode_shlibpath_var=no
10306       ;;
10307
10308     *nto* | *qnx*)
10309       ;;
10310
10311     openbsd* | bitrig*)
10312       if test -f /usr/libexec/ld.so; then
10313         hardcode_direct=yes
10314         hardcode_shlibpath_var=no
10315         hardcode_direct_absolute=yes
10316         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10317           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10318           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10319           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10320           export_dynamic_flag_spec='$wl-E'
10321         else
10322           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10323           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10324         fi
10325       else
10326         ld_shlibs=no
10327       fi
10328       ;;
10329
10330     os2*)
10331       hardcode_libdir_flag_spec='-L$libdir'
10332       hardcode_minus_L=yes
10333       allow_undefined_flag=unsupported
10334       shrext_cmds=.dll
10335       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10336         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10337         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10338         $ECHO EXPORTS >> $output_objdir/$libname.def~
10339         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10340         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10341         emximp -o $lib $output_objdir/$libname.def'
10342       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10343         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10344         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10345         $ECHO EXPORTS >> $output_objdir/$libname.def~
10346         prefix_cmds="$SED"~
10347         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10348           prefix_cmds="$prefix_cmds -e 1d";
10349         fi~
10350         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10351         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10352         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10353         emximp -o $lib $output_objdir/$libname.def'
10354       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10355       enable_shared_with_static_runtimes=yes
10356       ;;
10357
10358     osf3*)
10359       if test yes = "$GCC"; then
10360         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10361         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'
10362       else
10363         allow_undefined_flag=' -expect_unresolved \*'
10364         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'
10365       fi
10366       archive_cmds_need_lc='no'
10367       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10368       hardcode_libdir_separator=:
10369       ;;
10370
10371     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10372       if test yes = "$GCC"; then
10373         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10374         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'
10375         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10376       else
10377         allow_undefined_flag=' -expect_unresolved \*'
10378         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'
10379         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~
10380           $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'
10381
10382         # Both c and cxx compiler support -rpath directly
10383         hardcode_libdir_flag_spec='-rpath $libdir'
10384       fi
10385       archive_cmds_need_lc='no'
10386       hardcode_libdir_separator=:
10387       ;;
10388
10389     solaris*)
10390       no_undefined_flag=' -z defs'
10391       if test yes = "$GCC"; then
10392         wlarc='$wl'
10393         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10394         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10395           $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'
10396       else
10397         case `$CC -V 2>&1` in
10398         *"Compilers 5.0"*)
10399           wlarc=''
10400           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10401           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10402             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10403           ;;
10404         *)
10405           wlarc='$wl'
10406           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10407           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10408             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10409           ;;
10410         esac
10411       fi
10412       hardcode_libdir_flag_spec='-R$libdir'
10413       hardcode_shlibpath_var=no
10414       case $host_os in
10415       solaris2.[0-5] | solaris2.[0-5].*) ;;
10416       *)
10417         # The compiler driver will combine and reorder linker options,
10418         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10419         # but is careful enough not to reorder.
10420         # Supported since Solaris 2.6 (maybe 2.5.1?)
10421         if test yes = "$GCC"; then
10422           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10423         else
10424           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10425         fi
10426         ;;
10427       esac
10428       link_all_deplibs=yes
10429       ;;
10430
10431     sunos4*)
10432       if test sequent = "$host_vendor"; then
10433         # Use $CC to link under sequent, because it throws in some extra .o
10434         # files that make .init and .fini sections work.
10435         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10436       else
10437         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10438       fi
10439       hardcode_libdir_flag_spec='-L$libdir'
10440       hardcode_direct=yes
10441       hardcode_minus_L=yes
10442       hardcode_shlibpath_var=no
10443       ;;
10444
10445     sysv4)
10446       case $host_vendor in
10447         sni)
10448           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10449           hardcode_direct=yes # is this really true???
10450         ;;
10451         siemens)
10452           ## LD is ld it makes a PLAMLIB
10453           ## CC just makes a GrossModule.
10454           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10455           reload_cmds='$CC -r -o $output$reload_objs'
10456           hardcode_direct=no
10457         ;;
10458         motorola)
10459           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10460           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10461         ;;
10462       esac
10463       runpath_var='LD_RUN_PATH'
10464       hardcode_shlibpath_var=no
10465       ;;
10466
10467     sysv4.3*)
10468       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10469       hardcode_shlibpath_var=no
10470       export_dynamic_flag_spec='-Bexport'
10471       ;;
10472
10473     sysv4*MP*)
10474       if test -d /usr/nec; then
10475         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10476         hardcode_shlibpath_var=no
10477         runpath_var=LD_RUN_PATH
10478         hardcode_runpath_var=yes
10479         ld_shlibs=yes
10480       fi
10481       ;;
10482
10483     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10484       no_undefined_flag='$wl-z,text'
10485       archive_cmds_need_lc=no
10486       hardcode_shlibpath_var=no
10487       runpath_var='LD_RUN_PATH'
10488
10489       if test yes = "$GCC"; then
10490         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10491         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10492       else
10493         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10494         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10495       fi
10496       ;;
10497
10498     sysv5* | sco3.2v5* | sco5v6*)
10499       # Note: We CANNOT use -z defs as we might desire, because we do not
10500       # link with -lc, and that would cause any symbols used from libc to
10501       # always be unresolved, which means just about no library would
10502       # ever link correctly.  If we're not using GNU ld we use -z text
10503       # though, which does catch some bad symbols but isn't as heavy-handed
10504       # as -z defs.
10505       no_undefined_flag='$wl-z,text'
10506       allow_undefined_flag='$wl-z,nodefs'
10507       archive_cmds_need_lc=no
10508       hardcode_shlibpath_var=no
10509       hardcode_libdir_flag_spec='$wl-R,$libdir'
10510       hardcode_libdir_separator=':'
10511       link_all_deplibs=yes
10512       export_dynamic_flag_spec='$wl-Bexport'
10513       runpath_var='LD_RUN_PATH'
10514
10515       if test yes = "$GCC"; then
10516         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10517         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10518       else
10519         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10520         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10521       fi
10522       ;;
10523
10524     uts4*)
10525       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10526       hardcode_libdir_flag_spec='-L$libdir'
10527       hardcode_shlibpath_var=no
10528       ;;
10529
10530     *)
10531       ld_shlibs=no
10532       ;;
10533     esac
10534
10535     if test sni = "$host_vendor"; then
10536       case $host in
10537       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10538         export_dynamic_flag_spec='$wl-Blargedynsym'
10539         ;;
10540       esac
10541     fi
10542   fi
10543
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10545 $as_echo "$ld_shlibs" >&6; }
10546 test no = "$ld_shlibs" && can_build_shared=no
10547
10548 with_gnu_ld=$with_gnu_ld
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564 #
10565 # Do we need to explicitly link libc?
10566 #
10567 case "x$archive_cmds_need_lc" in
10568 x|xyes)
10569   # Assume -lc should be added
10570   archive_cmds_need_lc=yes
10571
10572   if test yes,yes = "$GCC,$enable_shared"; then
10573     case $archive_cmds in
10574     *'~'*)
10575       # FIXME: we may have to deal with multi-command sequences.
10576       ;;
10577     '$CC '*)
10578       # Test whether the compiler implicitly links with -lc since on some
10579       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10580       # to ld, don't add -lc before -lgcc.
10581       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10582 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10583 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10584   $as_echo_n "(cached) " >&6
10585 else
10586   $RM conftest*
10587         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10588
10589         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10590   (eval $ac_compile) 2>&5
10591   ac_status=$?
10592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10593   test $ac_status = 0; } 2>conftest.err; then
10594           soname=conftest
10595           lib=conftest
10596           libobjs=conftest.$ac_objext
10597           deplibs=
10598           wl=$lt_prog_compiler_wl
10599           pic_flag=$lt_prog_compiler_pic
10600           compiler_flags=-v
10601           linker_flags=-v
10602           verstring=
10603           output_objdir=.
10604           libname=conftest
10605           lt_save_allow_undefined_flag=$allow_undefined_flag
10606           allow_undefined_flag=
10607           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10608   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10609   ac_status=$?
10610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10611   test $ac_status = 0; }
10612           then
10613             lt_cv_archive_cmds_need_lc=no
10614           else
10615             lt_cv_archive_cmds_need_lc=yes
10616           fi
10617           allow_undefined_flag=$lt_save_allow_undefined_flag
10618         else
10619           cat conftest.err 1>&5
10620         fi
10621         $RM conftest*
10622
10623 fi
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10625 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10626       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10627       ;;
10628     esac
10629   fi
10630   ;;
10631 esac
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10785 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10786
10787 if test yes = "$GCC"; then
10788   case $host_os in
10789     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10790     *) lt_awk_arg='/^libraries:/' ;;
10791   esac
10792   case $host_os in
10793     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10794     *) lt_sed_strip_eq='s|=/|/|g' ;;
10795   esac
10796   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10797   case $lt_search_path_spec in
10798   *\;*)
10799     # if the path contains ";" then we assume it to be the separator
10800     # otherwise default to the standard path separator (i.e. ":") - it is
10801     # assumed that no part of a normal pathname contains ";" but that should
10802     # okay in the real world where ";" in dirpaths is itself problematic.
10803     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10804     ;;
10805   *)
10806     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10807     ;;
10808   esac
10809   # Ok, now we have the path, separated by spaces, we can step through it
10810   # and add multilib dir if necessary...
10811   lt_tmp_lt_search_path_spec=
10812   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10813   # ...but if some path component already ends with the multilib dir we assume
10814   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10815   case "$lt_multi_os_dir; $lt_search_path_spec " in
10816   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10817     lt_multi_os_dir=
10818     ;;
10819   esac
10820   for lt_sys_path in $lt_search_path_spec; do
10821     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10822       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10823     elif test -n "$lt_multi_os_dir"; then
10824       test -d "$lt_sys_path" && \
10825         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10826     fi
10827   done
10828   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10829 BEGIN {RS = " "; FS = "/|\n";} {
10830   lt_foo = "";
10831   lt_count = 0;
10832   for (lt_i = NF; lt_i > 0; lt_i--) {
10833     if ($lt_i != "" && $lt_i != ".") {
10834       if ($lt_i == "..") {
10835         lt_count++;
10836       } else {
10837         if (lt_count == 0) {
10838           lt_foo = "/" $lt_i lt_foo;
10839         } else {
10840           lt_count--;
10841         }
10842       }
10843     }
10844   }
10845   if (lt_foo != "") { lt_freq[lt_foo]++; }
10846   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10847 }'`
10848   # AWK program above erroneously prepends '/' to C:/dos/paths
10849   # for these hosts.
10850   case $host_os in
10851     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10852       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10853   esac
10854   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10855 else
10856   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10857 fi
10858 library_names_spec=
10859 libname_spec='lib$name'
10860 soname_spec=
10861 shrext_cmds=.so
10862 postinstall_cmds=
10863 postuninstall_cmds=
10864 finish_cmds=
10865 finish_eval=
10866 shlibpath_var=
10867 shlibpath_overrides_runpath=unknown
10868 version_type=none
10869 dynamic_linker="$host_os ld.so"
10870 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10871 need_lib_prefix=unknown
10872 hardcode_into_libs=no
10873
10874 # when you set need_version to no, make sure it does not cause -set_version
10875 # flags to be left without arguments
10876 need_version=unknown
10877
10878
10879
10880 case $host_os in
10881 aix3*)
10882   version_type=linux # correct to gnu/linux during the next big refactor
10883   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10884   shlibpath_var=LIBPATH
10885
10886   # AIX 3 has no versioning support, so we append a major version to the name.
10887   soname_spec='$libname$release$shared_ext$major'
10888   ;;
10889
10890 aix[4-9]*)
10891   version_type=linux # correct to gnu/linux during the next big refactor
10892   need_lib_prefix=no
10893   need_version=no
10894   hardcode_into_libs=yes
10895   if test ia64 = "$host_cpu"; then
10896     # AIX 5 supports IA64
10897     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10898     shlibpath_var=LD_LIBRARY_PATH
10899   else
10900     # With GCC up to 2.95.x, collect2 would create an import file
10901     # for dependence libraries.  The import file would start with
10902     # the line '#! .'.  This would cause the generated library to
10903     # depend on '.', always an invalid library.  This was fixed in
10904     # development snapshots of GCC prior to 3.0.
10905     case $host_os in
10906       aix4 | aix4.[01] | aix4.[01].*)
10907       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10908            echo ' yes '
10909            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10910         :
10911       else
10912         can_build_shared=no
10913       fi
10914       ;;
10915     esac
10916     # Using Import Files as archive members, it is possible to support
10917     # filename-based versioning of shared library archives on AIX. While
10918     # this would work for both with and without runtime linking, it will
10919     # prevent static linking of such archives. So we do filename-based
10920     # shared library versioning with .so extension only, which is used
10921     # when both runtime linking and shared linking is enabled.
10922     # Unfortunately, runtime linking may impact performance, so we do
10923     # not want this to be the default eventually. Also, we use the
10924     # versioned .so libs for executables only if there is the -brtl
10925     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10926     # To allow for filename-based versioning support, we need to create
10927     # libNAME.so.V as an archive file, containing:
10928     # *) an Import File, referring to the versioned filename of the
10929     #    archive as well as the shared archive member, telling the
10930     #    bitwidth (32 or 64) of that shared object, and providing the
10931     #    list of exported symbols of that shared object, eventually
10932     #    decorated with the 'weak' keyword
10933     # *) the shared object with the F_LOADONLY flag set, to really avoid
10934     #    it being seen by the linker.
10935     # At run time we better use the real file rather than another symlink,
10936     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10937
10938     case $with_aix_soname,$aix_use_runtimelinking in
10939     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10940     # soname into executable. Probably we can add versioning support to
10941     # collect2, so additional links can be useful in future.
10942     aix,yes) # traditional libtool
10943       dynamic_linker='AIX unversionable lib.so'
10944       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10945       # instead of lib<name>.a to let people know that these are not
10946       # typical AIX shared libraries.
10947       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10948       ;;
10949     aix,no) # traditional AIX only
10950       dynamic_linker='AIX lib.a(lib.so.V)'
10951       # We preserve .a as extension for shared libraries through AIX4.2
10952       # and later when we are not doing run time linking.
10953       library_names_spec='$libname$release.a $libname.a'
10954       soname_spec='$libname$release$shared_ext$major'
10955       ;;
10956     svr4,*) # full svr4 only
10957       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10958       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10959       # We do not specify a path in Import Files, so LIBPATH fires.
10960       shlibpath_overrides_runpath=yes
10961       ;;
10962     *,yes) # both, prefer svr4
10963       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10964       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10965       # unpreferred sharedlib libNAME.a needs extra handling
10966       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10967       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10968       # We do not specify a path in Import Files, so LIBPATH fires.
10969       shlibpath_overrides_runpath=yes
10970       ;;
10971     *,no) # both, prefer aix
10972       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10973       library_names_spec='$libname$release.a $libname.a'
10974       soname_spec='$libname$release$shared_ext$major'
10975       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10976       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10977       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10978       ;;
10979     esac
10980     shlibpath_var=LIBPATH
10981   fi
10982   ;;
10983
10984 amigaos*)
10985   case $host_cpu in
10986   powerpc)
10987     # Since July 2007 AmigaOS4 officially supports .so libraries.
10988     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10989     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10990     ;;
10991   m68k)
10992     library_names_spec='$libname.ixlibrary $libname.a'
10993     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10994     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10995     ;;
10996   esac
10997   ;;
10998
10999 beos*)
11000   library_names_spec='$libname$shared_ext'
11001   dynamic_linker="$host_os ld.so"
11002   shlibpath_var=LIBRARY_PATH
11003   ;;
11004
11005 bsdi[45]*)
11006   version_type=linux # correct to gnu/linux during the next big refactor
11007   need_version=no
11008   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11009   soname_spec='$libname$release$shared_ext$major'
11010   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11011   shlibpath_var=LD_LIBRARY_PATH
11012   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11013   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11014   # the default ld.so.conf also contains /usr/contrib/lib and
11015   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11016   # libtool to hard-code these into programs
11017   ;;
11018
11019 cygwin* | mingw* | pw32* | cegcc*)
11020   version_type=windows
11021   shrext_cmds=.dll
11022   need_version=no
11023   need_lib_prefix=no
11024
11025   case $GCC,$cc_basename in
11026   yes,*)
11027     # gcc
11028     library_names_spec='$libname.dll.a'
11029     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11030     postinstall_cmds='base_file=`basename \$file`~
11031       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11032       dldir=$destdir/`dirname \$dlpath`~
11033       test -d \$dldir || mkdir -p \$dldir~
11034       $install_prog $dir/$dlname \$dldir/$dlname~
11035       chmod a+x \$dldir/$dlname~
11036       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11037         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11038       fi'
11039     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11040       dlpath=$dir/\$dldll~
11041        $RM \$dlpath'
11042     shlibpath_overrides_runpath=yes
11043
11044     case $host_os in
11045     cygwin*)
11046       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11047       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11048
11049       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11050       ;;
11051     mingw* | cegcc*)
11052       # MinGW DLLs use traditional 'lib' prefix
11053       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11054       ;;
11055     pw32*)
11056       # pw32 DLLs use 'pw' prefix rather than 'lib'
11057       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11058       ;;
11059     esac
11060     dynamic_linker='Win32 ld.exe'
11061     ;;
11062
11063   *,cl*)
11064     # Native MSVC
11065     libname_spec='$name'
11066     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11067     library_names_spec='$libname.dll.lib'
11068
11069     case $build_os in
11070     mingw*)
11071       sys_lib_search_path_spec=
11072       lt_save_ifs=$IFS
11073       IFS=';'
11074       for lt_path in $LIB
11075       do
11076         IFS=$lt_save_ifs
11077         # Let DOS variable expansion print the short 8.3 style file name.
11078         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11079         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11080       done
11081       IFS=$lt_save_ifs
11082       # Convert to MSYS style.
11083       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11084       ;;
11085     cygwin*)
11086       # Convert to unix form, then to dos form, then back to unix form
11087       # but this time dos style (no spaces!) so that the unix form looks
11088       # like /cygdrive/c/PROGRA~1:/cygdr...
11089       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11090       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11091       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11092       ;;
11093     *)
11094       sys_lib_search_path_spec=$LIB
11095       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11096         # It is most probably a Windows format PATH.
11097         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11098       else
11099         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11100       fi
11101       # FIXME: find the short name or the path components, as spaces are
11102       # common. (e.g. "Program Files" -> "PROGRA~1")
11103       ;;
11104     esac
11105
11106     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11107     postinstall_cmds='base_file=`basename \$file`~
11108       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11109       dldir=$destdir/`dirname \$dlpath`~
11110       test -d \$dldir || mkdir -p \$dldir~
11111       $install_prog $dir/$dlname \$dldir/$dlname'
11112     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11113       dlpath=$dir/\$dldll~
11114        $RM \$dlpath'
11115     shlibpath_overrides_runpath=yes
11116     dynamic_linker='Win32 link.exe'
11117     ;;
11118
11119   *)
11120     # Assume MSVC wrapper
11121     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11122     dynamic_linker='Win32 ld.exe'
11123     ;;
11124   esac
11125   # FIXME: first we should search . and the directory the executable is in
11126   shlibpath_var=PATH
11127   ;;
11128
11129 darwin* | rhapsody*)
11130   dynamic_linker="$host_os dyld"
11131   version_type=darwin
11132   need_lib_prefix=no
11133   need_version=no
11134   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11135   soname_spec='$libname$release$major$shared_ext'
11136   shlibpath_overrides_runpath=yes
11137   shlibpath_var=DYLD_LIBRARY_PATH
11138   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11139
11140   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11141   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11142   ;;
11143
11144 dgux*)
11145   version_type=linux # correct to gnu/linux during the next big refactor
11146   need_lib_prefix=no
11147   need_version=no
11148   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11149   soname_spec='$libname$release$shared_ext$major'
11150   shlibpath_var=LD_LIBRARY_PATH
11151   ;;
11152
11153 freebsd* | dragonfly*)
11154   # DragonFly does not have aout.  When/if they implement a new
11155   # versioning mechanism, adjust this.
11156   if test -x /usr/bin/objformat; then
11157     objformat=`/usr/bin/objformat`
11158   else
11159     case $host_os in
11160     freebsd[23].*) objformat=aout ;;
11161     *) objformat=elf ;;
11162     esac
11163   fi
11164   version_type=freebsd-$objformat
11165   case $version_type in
11166     freebsd-elf*)
11167       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11168       soname_spec='$libname$release$shared_ext$major'
11169       need_version=no
11170       need_lib_prefix=no
11171       ;;
11172     freebsd-*)
11173       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11174       need_version=yes
11175       ;;
11176   esac
11177   shlibpath_var=LD_LIBRARY_PATH
11178   case $host_os in
11179   freebsd2.*)
11180     shlibpath_overrides_runpath=yes
11181     ;;
11182   freebsd3.[01]* | freebsdelf3.[01]*)
11183     shlibpath_overrides_runpath=yes
11184     hardcode_into_libs=yes
11185     ;;
11186   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11187   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11188     shlibpath_overrides_runpath=no
11189     hardcode_into_libs=yes
11190     ;;
11191   *) # from 4.6 on, and DragonFly
11192     shlibpath_overrides_runpath=yes
11193     hardcode_into_libs=yes
11194     ;;
11195   esac
11196   ;;
11197
11198 haiku*)
11199   version_type=linux # correct to gnu/linux during the next big refactor
11200   need_lib_prefix=no
11201   need_version=no
11202   dynamic_linker="$host_os runtime_loader"
11203   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11204   soname_spec='$libname$release$shared_ext$major'
11205   shlibpath_var=LIBRARY_PATH
11206   shlibpath_overrides_runpath=no
11207   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11208   hardcode_into_libs=yes
11209   ;;
11210
11211 hpux9* | hpux10* | hpux11*)
11212   # Give a soname corresponding to the major version so that dld.sl refuses to
11213   # link against other versions.
11214   version_type=sunos
11215   need_lib_prefix=no
11216   need_version=no
11217   case $host_cpu in
11218   ia64*)
11219     shrext_cmds='.so'
11220     hardcode_into_libs=yes
11221     dynamic_linker="$host_os dld.so"
11222     shlibpath_var=LD_LIBRARY_PATH
11223     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11224     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11225     soname_spec='$libname$release$shared_ext$major'
11226     if test 32 = "$HPUX_IA64_MODE"; then
11227       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11228       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11229     else
11230       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11231       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11232     fi
11233     ;;
11234   hppa*64*)
11235     shrext_cmds='.sl'
11236     hardcode_into_libs=yes
11237     dynamic_linker="$host_os dld.sl"
11238     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11239     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11240     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11241     soname_spec='$libname$release$shared_ext$major'
11242     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11243     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11244     ;;
11245   *)
11246     shrext_cmds='.sl'
11247     dynamic_linker="$host_os dld.sl"
11248     shlibpath_var=SHLIB_PATH
11249     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11250     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11251     soname_spec='$libname$release$shared_ext$major'
11252     ;;
11253   esac
11254   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11255   postinstall_cmds='chmod 555 $lib'
11256   # or fails outright, so override atomically:
11257   install_override_mode=555
11258   ;;
11259
11260 interix[3-9]*)
11261   version_type=linux # correct to gnu/linux during the next big refactor
11262   need_lib_prefix=no
11263   need_version=no
11264   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11265   soname_spec='$libname$release$shared_ext$major'
11266   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11267   shlibpath_var=LD_LIBRARY_PATH
11268   shlibpath_overrides_runpath=no
11269   hardcode_into_libs=yes
11270   ;;
11271
11272 irix5* | irix6* | nonstopux*)
11273   case $host_os in
11274     nonstopux*) version_type=nonstopux ;;
11275     *)
11276         if test yes = "$lt_cv_prog_gnu_ld"; then
11277                 version_type=linux # correct to gnu/linux during the next big refactor
11278         else
11279                 version_type=irix
11280         fi ;;
11281   esac
11282   need_lib_prefix=no
11283   need_version=no
11284   soname_spec='$libname$release$shared_ext$major'
11285   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11286   case $host_os in
11287   irix5* | nonstopux*)
11288     libsuff= shlibsuff=
11289     ;;
11290   *)
11291     case $LD in # libtool.m4 will add one of these switches to LD
11292     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11293       libsuff= shlibsuff= libmagic=32-bit;;
11294     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11295       libsuff=32 shlibsuff=N32 libmagic=N32;;
11296     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11297       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11298     *) libsuff= shlibsuff= libmagic=never-match;;
11299     esac
11300     ;;
11301   esac
11302   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11303   shlibpath_overrides_runpath=no
11304   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11305   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11306   hardcode_into_libs=yes
11307   ;;
11308
11309 # No shared lib support for Linux oldld, aout, or coff.
11310 linux*oldld* | linux*aout* | linux*coff*)
11311   dynamic_linker=no
11312   ;;
11313
11314 linux*android*)
11315   version_type=none # Android doesn't support versioned libraries.
11316   need_lib_prefix=no
11317   need_version=no
11318   library_names_spec='$libname$release$shared_ext'
11319   soname_spec='$libname$release$shared_ext'
11320   finish_cmds=
11321   shlibpath_var=LD_LIBRARY_PATH
11322   shlibpath_overrides_runpath=yes
11323
11324   # This implies no fast_install, which is unacceptable.
11325   # Some rework will be needed to allow for fast_install
11326   # before this can be enabled.
11327   hardcode_into_libs=yes
11328
11329   dynamic_linker='Android linker'
11330   # Don't embed -rpath directories since the linker doesn't support them.
11331   hardcode_libdir_flag_spec='-L$libdir'
11332   ;;
11333
11334 # This must be glibc/ELF.
11335 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11336   version_type=linux # correct to gnu/linux during the next big refactor
11337   need_lib_prefix=no
11338   need_version=no
11339   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11340   soname_spec='$libname$release$shared_ext$major'
11341   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11342   shlibpath_var=LD_LIBRARY_PATH
11343   shlibpath_overrides_runpath=no
11344
11345   # Some binutils ld are patched to set DT_RUNPATH
11346   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11347   $as_echo_n "(cached) " >&6
11348 else
11349   lt_cv_shlibpath_overrides_runpath=no
11350     save_LDFLAGS=$LDFLAGS
11351     save_libdir=$libdir
11352     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11353          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11354     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h.  */
11356
11357 int
11358 main ()
11359 {
11360
11361   ;
11362   return 0;
11363 }
11364 _ACEOF
11365 if ac_fn_c_try_link "$LINENO"; then :
11366   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11367   lt_cv_shlibpath_overrides_runpath=yes
11368 fi
11369 fi
11370 rm -f core conftest.err conftest.$ac_objext \
11371     conftest$ac_exeext conftest.$ac_ext
11372     LDFLAGS=$save_LDFLAGS
11373     libdir=$save_libdir
11374
11375 fi
11376
11377   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11378
11379   # This implies no fast_install, which is unacceptable.
11380   # Some rework will be needed to allow for fast_install
11381   # before this can be enabled.
11382   hardcode_into_libs=yes
11383
11384   # Ideally, we could use ldconfig to report *all* directores which are
11385   # searched for libraries, however this is still not possible.  Aside from not
11386   # being certain /sbin/ldconfig is available, command
11387   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11388   # even though it is searched at run-time.  Try to do the best guess by
11389   # appending ld.so.conf contents (and includes) to the search path.
11390   if test -f /etc/ld.so.conf; then
11391     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' ' '`
11392     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11393   fi
11394
11395   # We used to test for /lib/ld.so.1 and disable shared libraries on
11396   # powerpc, because MkLinux only supported shared libraries with the
11397   # GNU dynamic linker.  Since this was broken with cross compilers,
11398   # most powerpc-linux boxes support dynamic linking these days and
11399   # people can always --disable-shared, the test was removed, and we
11400   # assume the GNU/Linux dynamic linker is in use.
11401   dynamic_linker='GNU/Linux ld.so'
11402   ;;
11403
11404 netbsd*)
11405   version_type=sunos
11406   need_lib_prefix=no
11407   need_version=no
11408   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11409     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11410     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11411     dynamic_linker='NetBSD (a.out) ld.so'
11412   else
11413     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11414     soname_spec='$libname$release$shared_ext$major'
11415     dynamic_linker='NetBSD ld.elf_so'
11416   fi
11417   shlibpath_var=LD_LIBRARY_PATH
11418   shlibpath_overrides_runpath=yes
11419   hardcode_into_libs=yes
11420   ;;
11421
11422 newsos6)
11423   version_type=linux # correct to gnu/linux during the next big refactor
11424   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11425   shlibpath_var=LD_LIBRARY_PATH
11426   shlibpath_overrides_runpath=yes
11427   ;;
11428
11429 *nto* | *qnx*)
11430   version_type=qnx
11431   need_lib_prefix=no
11432   need_version=no
11433   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11434   soname_spec='$libname$release$shared_ext$major'
11435   shlibpath_var=LD_LIBRARY_PATH
11436   shlibpath_overrides_runpath=no
11437   hardcode_into_libs=yes
11438   dynamic_linker='ldqnx.so'
11439   ;;
11440
11441 openbsd* | bitrig*)
11442   version_type=sunos
11443   sys_lib_dlsearch_path_spec=/usr/lib
11444   need_lib_prefix=no
11445   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11446     need_version=no
11447   else
11448     need_version=yes
11449   fi
11450   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11451   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11452   shlibpath_var=LD_LIBRARY_PATH
11453   shlibpath_overrides_runpath=yes
11454   ;;
11455
11456 os2*)
11457   libname_spec='$name'
11458   version_type=windows
11459   shrext_cmds=.dll
11460   need_version=no
11461   need_lib_prefix=no
11462   # OS/2 can only load a DLL with a base name of 8 characters or less.
11463   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11464     v=$($ECHO $release$versuffix | tr -d .-);
11465     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11466     $ECHO $n$v`$shared_ext'
11467   library_names_spec='${libname}_dll.$libext'
11468   dynamic_linker='OS/2 ld.exe'
11469   shlibpath_var=BEGINLIBPATH
11470   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11471   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11472   postinstall_cmds='base_file=`basename \$file`~
11473     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11474     dldir=$destdir/`dirname \$dlpath`~
11475     test -d \$dldir || mkdir -p \$dldir~
11476     $install_prog $dir/$dlname \$dldir/$dlname~
11477     chmod a+x \$dldir/$dlname~
11478     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11479       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11480     fi'
11481   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11482     dlpath=$dir/\$dldll~
11483     $RM \$dlpath'
11484   ;;
11485
11486 osf3* | osf4* | osf5*)
11487   version_type=osf
11488   need_lib_prefix=no
11489   need_version=no
11490   soname_spec='$libname$release$shared_ext$major'
11491   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11492   shlibpath_var=LD_LIBRARY_PATH
11493   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11494   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11495   ;;
11496
11497 rdos*)
11498   dynamic_linker=no
11499   ;;
11500
11501 solaris*)
11502   version_type=linux # correct to gnu/linux during the next big refactor
11503   need_lib_prefix=no
11504   need_version=no
11505   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11506   soname_spec='$libname$release$shared_ext$major'
11507   shlibpath_var=LD_LIBRARY_PATH
11508   shlibpath_overrides_runpath=yes
11509   hardcode_into_libs=yes
11510   # ldd complains unless libraries are executable
11511   postinstall_cmds='chmod +x $lib'
11512   ;;
11513
11514 sunos4*)
11515   version_type=sunos
11516   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11517   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11518   shlibpath_var=LD_LIBRARY_PATH
11519   shlibpath_overrides_runpath=yes
11520   if test yes = "$with_gnu_ld"; then
11521     need_lib_prefix=no
11522   fi
11523   need_version=yes
11524   ;;
11525
11526 sysv4 | sysv4.3*)
11527   version_type=linux # correct to gnu/linux during the next big refactor
11528   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11529   soname_spec='$libname$release$shared_ext$major'
11530   shlibpath_var=LD_LIBRARY_PATH
11531   case $host_vendor in
11532     sni)
11533       shlibpath_overrides_runpath=no
11534       need_lib_prefix=no
11535       runpath_var=LD_RUN_PATH
11536       ;;
11537     siemens)
11538       need_lib_prefix=no
11539       ;;
11540     motorola)
11541       need_lib_prefix=no
11542       need_version=no
11543       shlibpath_overrides_runpath=no
11544       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11545       ;;
11546   esac
11547   ;;
11548
11549 sysv4*MP*)
11550   if test -d /usr/nec; then
11551     version_type=linux # correct to gnu/linux during the next big refactor
11552     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11553     soname_spec='$libname$shared_ext.$major'
11554     shlibpath_var=LD_LIBRARY_PATH
11555   fi
11556   ;;
11557
11558 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11559   version_type=sco
11560   need_lib_prefix=no
11561   need_version=no
11562   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11563   soname_spec='$libname$release$shared_ext$major'
11564   shlibpath_var=LD_LIBRARY_PATH
11565   shlibpath_overrides_runpath=yes
11566   hardcode_into_libs=yes
11567   if test yes = "$with_gnu_ld"; then
11568     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11569   else
11570     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11571     case $host_os in
11572       sco3.2v5*)
11573         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11574         ;;
11575     esac
11576   fi
11577   sys_lib_dlsearch_path_spec='/usr/lib'
11578   ;;
11579
11580 tpf*)
11581   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11582   version_type=linux # correct to gnu/linux during the next big refactor
11583   need_lib_prefix=no
11584   need_version=no
11585   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11586   shlibpath_var=LD_LIBRARY_PATH
11587   shlibpath_overrides_runpath=no
11588   hardcode_into_libs=yes
11589   ;;
11590
11591 uts4*)
11592   version_type=linux # correct to gnu/linux during the next big refactor
11593   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11594   soname_spec='$libname$release$shared_ext$major'
11595   shlibpath_var=LD_LIBRARY_PATH
11596   ;;
11597
11598 *)
11599   dynamic_linker=no
11600   ;;
11601 esac
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11603 $as_echo "$dynamic_linker" >&6; }
11604 test no = "$dynamic_linker" && can_build_shared=no
11605
11606 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11607 if test yes = "$GCC"; then
11608   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11609 fi
11610
11611 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11612   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11613 fi
11614
11615 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11616   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11617 fi
11618
11619 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11620 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11621
11622 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11623 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11624
11625 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11626 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11725 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11726 hardcode_action=
11727 if test -n "$hardcode_libdir_flag_spec" ||
11728    test -n "$runpath_var" ||
11729    test yes = "$hardcode_automatic"; then
11730
11731   # We can hardcode non-existent directories.
11732   if test no != "$hardcode_direct" &&
11733      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11734      # have to relink, otherwise we might link with an installed library
11735      # when we should be linking with a yet-to-be-installed one
11736      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11737      test no != "$hardcode_minus_L"; then
11738     # Linking always hardcodes the temporary library directory.
11739     hardcode_action=relink
11740   else
11741     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11742     hardcode_action=immediate
11743   fi
11744 else
11745   # We cannot hardcode anything, or else we can only hardcode existing
11746   # directories.
11747   hardcode_action=unsupported
11748 fi
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11750 $as_echo "$hardcode_action" >&6; }
11751
11752 if test relink = "$hardcode_action" ||
11753    test yes = "$inherit_rpath"; then
11754   # Fast installation is not supported
11755   enable_fast_install=no
11756 elif test yes = "$shlibpath_overrides_runpath" ||
11757      test no = "$enable_shared"; then
11758   # Fast installation is not necessary
11759   enable_fast_install=needless
11760 fi
11761
11762
11763
11764
11765
11766
11767   if test yes != "$enable_dlopen"; then
11768   enable_dlopen=unknown
11769   enable_dlopen_self=unknown
11770   enable_dlopen_self_static=unknown
11771 else
11772   lt_cv_dlopen=no
11773   lt_cv_dlopen_libs=
11774
11775   case $host_os in
11776   beos*)
11777     lt_cv_dlopen=load_add_on
11778     lt_cv_dlopen_libs=
11779     lt_cv_dlopen_self=yes
11780     ;;
11781
11782   mingw* | pw32* | cegcc*)
11783     lt_cv_dlopen=LoadLibrary
11784     lt_cv_dlopen_libs=
11785     ;;
11786
11787   cygwin*)
11788     lt_cv_dlopen=dlopen
11789     lt_cv_dlopen_libs=
11790     ;;
11791
11792   darwin*)
11793     # if libdl is installed we need to link against it
11794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11795 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11796 if ${ac_cv_lib_dl_dlopen+:} false; then :
11797   $as_echo_n "(cached) " >&6
11798 else
11799   ac_check_lib_save_LIBS=$LIBS
11800 LIBS="-ldl  $LIBS"
11801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11802 /* end confdefs.h.  */
11803
11804 /* Override any GCC internal prototype to avoid an error.
11805    Use char because int might match the return type of a GCC
11806    builtin and then its argument prototype would still apply.  */
11807 #ifdef __cplusplus
11808 extern "C"
11809 #endif
11810 char dlopen ();
11811 int
11812 main ()
11813 {
11814 return dlopen ();
11815   ;
11816   return 0;
11817 }
11818 _ACEOF
11819 if ac_fn_c_try_link "$LINENO"; then :
11820   ac_cv_lib_dl_dlopen=yes
11821 else
11822   ac_cv_lib_dl_dlopen=no
11823 fi
11824 rm -f core conftest.err conftest.$ac_objext \
11825     conftest$ac_exeext conftest.$ac_ext
11826 LIBS=$ac_check_lib_save_LIBS
11827 fi
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11829 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11830 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11831   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11832 else
11833
11834     lt_cv_dlopen=dyld
11835     lt_cv_dlopen_libs=
11836     lt_cv_dlopen_self=yes
11837
11838 fi
11839
11840     ;;
11841
11842   tpf*)
11843     # Don't try to run any link tests for TPF.  We know it's impossible
11844     # because TPF is a cross-compiler, and we know how we open DSOs.
11845     lt_cv_dlopen=dlopen
11846     lt_cv_dlopen_libs=
11847     lt_cv_dlopen_self=no
11848     ;;
11849
11850   *)
11851     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11852 if test "x$ac_cv_func_shl_load" = xyes; then :
11853   lt_cv_dlopen=shl_load
11854 else
11855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11856 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11857 if ${ac_cv_lib_dld_shl_load+:} false; then :
11858   $as_echo_n "(cached) " >&6
11859 else
11860   ac_check_lib_save_LIBS=$LIBS
11861 LIBS="-ldld  $LIBS"
11862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11863 /* end confdefs.h.  */
11864
11865 /* Override any GCC internal prototype to avoid an error.
11866    Use char because int might match the return type of a GCC
11867    builtin and then its argument prototype would still apply.  */
11868 #ifdef __cplusplus
11869 extern "C"
11870 #endif
11871 char shl_load ();
11872 int
11873 main ()
11874 {
11875 return shl_load ();
11876   ;
11877   return 0;
11878 }
11879 _ACEOF
11880 if ac_fn_c_try_link "$LINENO"; then :
11881   ac_cv_lib_dld_shl_load=yes
11882 else
11883   ac_cv_lib_dld_shl_load=no
11884 fi
11885 rm -f core conftest.err conftest.$ac_objext \
11886     conftest$ac_exeext conftest.$ac_ext
11887 LIBS=$ac_check_lib_save_LIBS
11888 fi
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11890 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11891 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11892   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11893 else
11894   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11895 if test "x$ac_cv_func_dlopen" = xyes; then :
11896   lt_cv_dlopen=dlopen
11897 else
11898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11899 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11900 if ${ac_cv_lib_dl_dlopen+:} false; then :
11901   $as_echo_n "(cached) " >&6
11902 else
11903   ac_check_lib_save_LIBS=$LIBS
11904 LIBS="-ldl  $LIBS"
11905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11906 /* end confdefs.h.  */
11907
11908 /* Override any GCC internal prototype to avoid an error.
11909    Use char because int might match the return type of a GCC
11910    builtin and then its argument prototype would still apply.  */
11911 #ifdef __cplusplus
11912 extern "C"
11913 #endif
11914 char dlopen ();
11915 int
11916 main ()
11917 {
11918 return dlopen ();
11919   ;
11920   return 0;
11921 }
11922 _ACEOF
11923 if ac_fn_c_try_link "$LINENO"; then :
11924   ac_cv_lib_dl_dlopen=yes
11925 else
11926   ac_cv_lib_dl_dlopen=no
11927 fi
11928 rm -f core conftest.err conftest.$ac_objext \
11929     conftest$ac_exeext conftest.$ac_ext
11930 LIBS=$ac_check_lib_save_LIBS
11931 fi
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11933 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11934 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11935   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11936 else
11937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11938 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11939 if ${ac_cv_lib_svld_dlopen+:} false; then :
11940   $as_echo_n "(cached) " >&6
11941 else
11942   ac_check_lib_save_LIBS=$LIBS
11943 LIBS="-lsvld  $LIBS"
11944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11945 /* end confdefs.h.  */
11946
11947 /* Override any GCC internal prototype to avoid an error.
11948    Use char because int might match the return type of a GCC
11949    builtin and then its argument prototype would still apply.  */
11950 #ifdef __cplusplus
11951 extern "C"
11952 #endif
11953 char dlopen ();
11954 int
11955 main ()
11956 {
11957 return dlopen ();
11958   ;
11959   return 0;
11960 }
11961 _ACEOF
11962 if ac_fn_c_try_link "$LINENO"; then :
11963   ac_cv_lib_svld_dlopen=yes
11964 else
11965   ac_cv_lib_svld_dlopen=no
11966 fi
11967 rm -f core conftest.err conftest.$ac_objext \
11968     conftest$ac_exeext conftest.$ac_ext
11969 LIBS=$ac_check_lib_save_LIBS
11970 fi
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11972 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11973 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11974   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11975 else
11976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11977 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11978 if ${ac_cv_lib_dld_dld_link+:} false; then :
11979   $as_echo_n "(cached) " >&6
11980 else
11981   ac_check_lib_save_LIBS=$LIBS
11982 LIBS="-ldld  $LIBS"
11983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984 /* end confdefs.h.  */
11985
11986 /* Override any GCC internal prototype to avoid an error.
11987    Use char because int might match the return type of a GCC
11988    builtin and then its argument prototype would still apply.  */
11989 #ifdef __cplusplus
11990 extern "C"
11991 #endif
11992 char dld_link ();
11993 int
11994 main ()
11995 {
11996 return dld_link ();
11997   ;
11998   return 0;
11999 }
12000 _ACEOF
12001 if ac_fn_c_try_link "$LINENO"; then :
12002   ac_cv_lib_dld_dld_link=yes
12003 else
12004   ac_cv_lib_dld_dld_link=no
12005 fi
12006 rm -f core conftest.err conftest.$ac_objext \
12007     conftest$ac_exeext conftest.$ac_ext
12008 LIBS=$ac_check_lib_save_LIBS
12009 fi
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12011 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12012 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12013   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12014 fi
12015
12016
12017 fi
12018
12019
12020 fi
12021
12022
12023 fi
12024
12025
12026 fi
12027
12028
12029 fi
12030
12031     ;;
12032   esac
12033
12034   if test no = "$lt_cv_dlopen"; then
12035     enable_dlopen=no
12036   else
12037     enable_dlopen=yes
12038   fi
12039
12040   case $lt_cv_dlopen in
12041   dlopen)
12042     save_CPPFLAGS=$CPPFLAGS
12043     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12044
12045     save_LDFLAGS=$LDFLAGS
12046     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12047
12048     save_LIBS=$LIBS
12049     LIBS="$lt_cv_dlopen_libs $LIBS"
12050
12051     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12052 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12053 if ${lt_cv_dlopen_self+:} false; then :
12054   $as_echo_n "(cached) " >&6
12055 else
12056           if test yes = "$cross_compiling"; then :
12057   lt_cv_dlopen_self=cross
12058 else
12059   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12060   lt_status=$lt_dlunknown
12061   cat > conftest.$ac_ext <<_LT_EOF
12062 #line $LINENO "configure"
12063 #include "confdefs.h"
12064
12065 #if HAVE_DLFCN_H
12066 #include <dlfcn.h>
12067 #endif
12068
12069 #include <stdio.h>
12070
12071 #ifdef RTLD_GLOBAL
12072 #  define LT_DLGLOBAL           RTLD_GLOBAL
12073 #else
12074 #  ifdef DL_GLOBAL
12075 #    define LT_DLGLOBAL         DL_GLOBAL
12076 #  else
12077 #    define LT_DLGLOBAL         0
12078 #  endif
12079 #endif
12080
12081 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12082    find out it does not work in some platform. */
12083 #ifndef LT_DLLAZY_OR_NOW
12084 #  ifdef RTLD_LAZY
12085 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12086 #  else
12087 #    ifdef DL_LAZY
12088 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12089 #    else
12090 #      ifdef RTLD_NOW
12091 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12092 #      else
12093 #        ifdef DL_NOW
12094 #          define LT_DLLAZY_OR_NOW      DL_NOW
12095 #        else
12096 #          define LT_DLLAZY_OR_NOW      0
12097 #        endif
12098 #      endif
12099 #    endif
12100 #  endif
12101 #endif
12102
12103 /* When -fvisibility=hidden is used, assume the code has been annotated
12104    correspondingly for the symbols needed.  */
12105 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12106 int fnord () __attribute__((visibility("default")));
12107 #endif
12108
12109 int fnord () { return 42; }
12110 int main ()
12111 {
12112   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12113   int status = $lt_dlunknown;
12114
12115   if (self)
12116     {
12117       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12118       else
12119         {
12120           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12121           else puts (dlerror ());
12122         }
12123       /* dlclose (self); */
12124     }
12125   else
12126     puts (dlerror ());
12127
12128   return status;
12129 }
12130 _LT_EOF
12131   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12132   (eval $ac_link) 2>&5
12133   ac_status=$?
12134   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12135   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12136     (./conftest; exit; ) >&5 2>/dev/null
12137     lt_status=$?
12138     case x$lt_status in
12139       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12140       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12141       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12142     esac
12143   else :
12144     # compilation failed
12145     lt_cv_dlopen_self=no
12146   fi
12147 fi
12148 rm -fr conftest*
12149
12150
12151 fi
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12153 $as_echo "$lt_cv_dlopen_self" >&6; }
12154
12155     if test yes = "$lt_cv_dlopen_self"; then
12156       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12157       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12158 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12159 if ${lt_cv_dlopen_self_static+:} false; then :
12160   $as_echo_n "(cached) " >&6
12161 else
12162           if test yes = "$cross_compiling"; then :
12163   lt_cv_dlopen_self_static=cross
12164 else
12165   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12166   lt_status=$lt_dlunknown
12167   cat > conftest.$ac_ext <<_LT_EOF
12168 #line $LINENO "configure"
12169 #include "confdefs.h"
12170
12171 #if HAVE_DLFCN_H
12172 #include <dlfcn.h>
12173 #endif
12174
12175 #include <stdio.h>
12176
12177 #ifdef RTLD_GLOBAL
12178 #  define LT_DLGLOBAL           RTLD_GLOBAL
12179 #else
12180 #  ifdef DL_GLOBAL
12181 #    define LT_DLGLOBAL         DL_GLOBAL
12182 #  else
12183 #    define LT_DLGLOBAL         0
12184 #  endif
12185 #endif
12186
12187 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12188    find out it does not work in some platform. */
12189 #ifndef LT_DLLAZY_OR_NOW
12190 #  ifdef RTLD_LAZY
12191 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12192 #  else
12193 #    ifdef DL_LAZY
12194 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12195 #    else
12196 #      ifdef RTLD_NOW
12197 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12198 #      else
12199 #        ifdef DL_NOW
12200 #          define LT_DLLAZY_OR_NOW      DL_NOW
12201 #        else
12202 #          define LT_DLLAZY_OR_NOW      0
12203 #        endif
12204 #      endif
12205 #    endif
12206 #  endif
12207 #endif
12208
12209 /* When -fvisibility=hidden is used, assume the code has been annotated
12210    correspondingly for the symbols needed.  */
12211 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12212 int fnord () __attribute__((visibility("default")));
12213 #endif
12214
12215 int fnord () { return 42; }
12216 int main ()
12217 {
12218   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12219   int status = $lt_dlunknown;
12220
12221   if (self)
12222     {
12223       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12224       else
12225         {
12226           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12227           else puts (dlerror ());
12228         }
12229       /* dlclose (self); */
12230     }
12231   else
12232     puts (dlerror ());
12233
12234   return status;
12235 }
12236 _LT_EOF
12237   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12238   (eval $ac_link) 2>&5
12239   ac_status=$?
12240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12241   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12242     (./conftest; exit; ) >&5 2>/dev/null
12243     lt_status=$?
12244     case x$lt_status in
12245       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12246       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12247       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12248     esac
12249   else :
12250     # compilation failed
12251     lt_cv_dlopen_self_static=no
12252   fi
12253 fi
12254 rm -fr conftest*
12255
12256
12257 fi
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12259 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12260     fi
12261
12262     CPPFLAGS=$save_CPPFLAGS
12263     LDFLAGS=$save_LDFLAGS
12264     LIBS=$save_LIBS
12265     ;;
12266   esac
12267
12268   case $lt_cv_dlopen_self in
12269   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12270   *) enable_dlopen_self=unknown ;;
12271   esac
12272
12273   case $lt_cv_dlopen_self_static in
12274   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12275   *) enable_dlopen_self_static=unknown ;;
12276   esac
12277 fi
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295 striplib=
12296 old_striplib=
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12298 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12299 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12300   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12301   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12303 $as_echo "yes" >&6; }
12304 else
12305 # FIXME - insert some real tests, host_os isn't really good enough
12306   case $host_os in
12307   darwin*)
12308     if test -n "$STRIP"; then
12309       striplib="$STRIP -x"
12310       old_striplib="$STRIP -S"
12311       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12312 $as_echo "yes" >&6; }
12313     else
12314       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12315 $as_echo "no" >&6; }
12316     fi
12317     ;;
12318   *)
12319     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12320 $as_echo "no" >&6; }
12321     ;;
12322   esac
12323 fi
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336   # Report what library types will actually be built
12337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12338 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12340 $as_echo "$can_build_shared" >&6; }
12341
12342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12343 $as_echo_n "checking whether to build shared libraries... " >&6; }
12344   test no = "$can_build_shared" && enable_shared=no
12345
12346   # On AIX, shared libraries and static libraries use the same namespace, and
12347   # are all built from PIC.
12348   case $host_os in
12349   aix3*)
12350     test yes = "$enable_shared" && enable_static=no
12351     if test -n "$RANLIB"; then
12352       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12353       postinstall_cmds='$RANLIB $lib'
12354     fi
12355     ;;
12356
12357   aix[4-9]*)
12358     if test ia64 != "$host_cpu"; then
12359       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12360       yes,aix,yes) ;;                   # shared object as lib.so file only
12361       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12362       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12363       esac
12364     fi
12365     ;;
12366   esac
12367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12368 $as_echo "$enable_shared" >&6; }
12369
12370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12371 $as_echo_n "checking whether to build static libraries... " >&6; }
12372   # Make sure either enable_shared or enable_static is yes.
12373   test yes = "$enable_shared" || enable_static=yes
12374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12375 $as_echo "$enable_static" >&6; }
12376
12377
12378
12379
12380 fi
12381 ac_ext=c
12382 ac_cpp='$CPP $CPPFLAGS'
12383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12386
12387 CC=$lt_save_CC
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403         ac_config_commands="$ac_config_commands libtool"
12404
12405
12406
12407
12408 # Only expand once:
12409
12410
12411
12412       if test "X$prefix" = "XNONE"; then
12413     acl_final_prefix="$ac_default_prefix"
12414   else
12415     acl_final_prefix="$prefix"
12416   fi
12417   if test "X$exec_prefix" = "XNONE"; then
12418     acl_final_exec_prefix='${prefix}'
12419   else
12420     acl_final_exec_prefix="$exec_prefix"
12421   fi
12422   acl_save_prefix="$prefix"
12423   prefix="$acl_final_prefix"
12424   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12425   prefix="$acl_save_prefix"
12426
12427
12428
12429 # Check whether --with-gnu-ld was given.
12430 if test "${with_gnu_ld+set}" = set; then :
12431   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12432 else
12433   with_gnu_ld=no
12434 fi
12435
12436 # Prepare PATH_SEPARATOR.
12437 # The user is always right.
12438 if test "${PATH_SEPARATOR+set}" != set; then
12439   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
12440   # contains only /bin. Note that ksh looks also at the FPATH variable,
12441   # so we have to set that as well for the test.
12442   PATH_SEPARATOR=:
12443   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
12444     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
12445            || PATH_SEPARATOR=';'
12446        }
12447 fi
12448
12449 ac_prog=ld
12450 if test "$GCC" = yes; then
12451   # Check if gcc -print-prog-name=ld gives a path.
12452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12453 $as_echo_n "checking for ld used by $CC... " >&6; }
12454   case $host in
12455   *-*-mingw*)
12456     # gcc leaves a trailing carriage return which upsets mingw
12457     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12458   *)
12459     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12460   esac
12461   case $ac_prog in
12462     # Accept absolute paths.
12463     [\\/]* | ?:[\\/]*)
12464       re_direlt='/[^/][^/]*/\.\./'
12465       # Canonicalize the pathname of ld
12466       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
12467       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
12468         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12469       done
12470       test -z "$LD" && LD="$ac_prog"
12471       ;;
12472   "")
12473     # If it fails, then pretend we aren't using GCC.
12474     ac_prog=ld
12475     ;;
12476   *)
12477     # If it is relative, then search for the first ld in PATH.
12478     with_gnu_ld=unknown
12479     ;;
12480   esac
12481 elif test "$with_gnu_ld" = yes; then
12482   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12483 $as_echo_n "checking for GNU ld... " >&6; }
12484 else
12485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12486 $as_echo_n "checking for non-GNU ld... " >&6; }
12487 fi
12488 if ${acl_cv_path_LD+:} false; then :
12489   $as_echo_n "(cached) " >&6
12490 else
12491   if test -z "$LD"; then
12492   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12493   for ac_dir in $PATH; do
12494     IFS="$acl_save_ifs"
12495     test -z "$ac_dir" && ac_dir=.
12496     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12497       acl_cv_path_LD="$ac_dir/$ac_prog"
12498       # Check to see if the program is GNU ld.  I'd rather use --version,
12499       # but apparently some variants of GNU ld only accept -v.
12500       # Break only if it was the GNU/non-GNU ld that we prefer.
12501       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
12502       *GNU* | *'with BFD'*)
12503         test "$with_gnu_ld" != no && break
12504         ;;
12505       *)
12506         test "$with_gnu_ld" != yes && break
12507         ;;
12508       esac
12509     fi
12510   done
12511   IFS="$acl_save_ifs"
12512 else
12513   acl_cv_path_LD="$LD" # Let the user override the test with a path.
12514 fi
12515 fi
12516
12517 LD="$acl_cv_path_LD"
12518 if test -n "$LD"; then
12519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12520 $as_echo "$LD" >&6; }
12521 else
12522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12523 $as_echo "no" >&6; }
12524 fi
12525 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12527 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12528 if ${acl_cv_prog_gnu_ld+:} false; then :
12529   $as_echo_n "(cached) " >&6
12530 else
12531   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12532 case `$LD -v 2>&1 </dev/null` in
12533 *GNU* | *'with BFD'*)
12534   acl_cv_prog_gnu_ld=yes
12535   ;;
12536 *)
12537   acl_cv_prog_gnu_ld=no
12538   ;;
12539 esac
12540 fi
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12542 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12543 with_gnu_ld=$acl_cv_prog_gnu_ld
12544
12545
12546
12547
12548                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12549 $as_echo_n "checking for shared library run path origin... " >&6; }
12550 if ${acl_cv_rpath+:} false; then :
12551   $as_echo_n "(cached) " >&6
12552 else
12553
12554     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12555     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12556     . ./conftest.sh
12557     rm -f ./conftest.sh
12558     acl_cv_rpath=done
12559
12560 fi
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12562 $as_echo "$acl_cv_rpath" >&6; }
12563   wl="$acl_cv_wl"
12564   acl_libext="$acl_cv_libext"
12565   acl_shlibext="$acl_cv_shlibext"
12566   acl_libname_spec="$acl_cv_libname_spec"
12567   acl_library_names_spec="$acl_cv_library_names_spec"
12568   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12569   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12570   acl_hardcode_direct="$acl_cv_hardcode_direct"
12571   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12572     # Check whether --enable-rpath was given.
12573 if test "${enable_rpath+set}" = set; then :
12574   enableval=$enable_rpath; :
12575 else
12576   enable_rpath=yes
12577 fi
12578
12579
12580
12581
12582   acl_libdirstem=lib
12583   acl_libdirstem2=
12584   case "$host_os" in
12585     solaris*)
12586                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12587 $as_echo_n "checking for 64-bit host... " >&6; }
12588 if ${gl_cv_solaris_64bit+:} false; then :
12589   $as_echo_n "(cached) " >&6
12590 else
12591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12592 /* end confdefs.h.  */
12593
12594 #ifdef _LP64
12595 sixtyfour bits
12596 #endif
12597
12598 _ACEOF
12599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12600   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12601   gl_cv_solaris_64bit=yes
12602 else
12603   gl_cv_solaris_64bit=no
12604 fi
12605 rm -f conftest*
12606
12607
12608 fi
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12610 $as_echo "$gl_cv_solaris_64bit" >&6; }
12611       if test $gl_cv_solaris_64bit = yes; then
12612         acl_libdirstem=lib/64
12613         case "$host_cpu" in
12614           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
12615           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12616         esac
12617       fi
12618       ;;
12619     *)
12620       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12621       if test -n "$searchpath"; then
12622         acl_save_IFS="${IFS=    }"; IFS=":"
12623         for searchdir in $searchpath; do
12624           if test -d "$searchdir"; then
12625             case "$searchdir" in
12626               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12627               */../ | */.. )
12628                 # Better ignore directories of this form. They are misleading.
12629                 ;;
12630               *) searchdir=`cd "$searchdir" && pwd`
12631                  case "$searchdir" in
12632                    */lib64 ) acl_libdirstem=lib64 ;;
12633                  esac ;;
12634             esac
12635           fi
12636         done
12637         IFS="$acl_save_IFS"
12638       fi
12639       ;;
12640   esac
12641   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654     use_additional=yes
12655
12656   acl_save_prefix="$prefix"
12657   prefix="$acl_final_prefix"
12658   acl_save_exec_prefix="$exec_prefix"
12659   exec_prefix="$acl_final_exec_prefix"
12660
12661     eval additional_includedir=\"$includedir\"
12662     eval additional_libdir=\"$libdir\"
12663
12664   exec_prefix="$acl_save_exec_prefix"
12665   prefix="$acl_save_prefix"
12666
12667
12668 # Check whether --with-libiconv-prefix was given.
12669 if test "${with_libiconv_prefix+set}" = set; then :
12670   withval=$with_libiconv_prefix;
12671     if test "X$withval" = "Xno"; then
12672       use_additional=no
12673     else
12674       if test "X$withval" = "X"; then
12675
12676   acl_save_prefix="$prefix"
12677   prefix="$acl_final_prefix"
12678   acl_save_exec_prefix="$exec_prefix"
12679   exec_prefix="$acl_final_exec_prefix"
12680
12681           eval additional_includedir=\"$includedir\"
12682           eval additional_libdir=\"$libdir\"
12683
12684   exec_prefix="$acl_save_exec_prefix"
12685   prefix="$acl_save_prefix"
12686
12687       else
12688         additional_includedir="$withval/include"
12689         additional_libdir="$withval/$acl_libdirstem"
12690         if test "$acl_libdirstem2" != "$acl_libdirstem" \
12691            && ! test -d "$withval/$acl_libdirstem"; then
12692           additional_libdir="$withval/$acl_libdirstem2"
12693         fi
12694       fi
12695     fi
12696
12697 fi
12698
12699       LIBICONV=
12700   LTLIBICONV=
12701   INCICONV=
12702   LIBICONV_PREFIX=
12703       HAVE_LIBICONV=
12704   rpathdirs=
12705   ltrpathdirs=
12706   names_already_handled=
12707   names_next_round='iconv '
12708   while test -n "$names_next_round"; do
12709     names_this_round="$names_next_round"
12710     names_next_round=
12711     for name in $names_this_round; do
12712       already_handled=
12713       for n in $names_already_handled; do
12714         if test "$n" = "$name"; then
12715           already_handled=yes
12716           break
12717         fi
12718       done
12719       if test -z "$already_handled"; then
12720         names_already_handled="$names_already_handled $name"
12721                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
12722         eval value=\"\$HAVE_LIB$uppername\"
12723         if test -n "$value"; then
12724           if test "$value" = yes; then
12725             eval value=\"\$LIB$uppername\"
12726             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12727             eval value=\"\$LTLIB$uppername\"
12728             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12729           else
12730                                     :
12731           fi
12732         else
12733                               found_dir=
12734           found_la=
12735           found_so=
12736           found_a=
12737           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12738           if test -n "$acl_shlibext"; then
12739             shrext=".$acl_shlibext"             # typically: shrext=.so
12740           else
12741             shrext=
12742           fi
12743           if test $use_additional = yes; then
12744             dir="$additional_libdir"
12745                                     if test -n "$acl_shlibext"; then
12746               if test -f "$dir/$libname$shrext"; then
12747                 found_dir="$dir"
12748                 found_so="$dir/$libname$shrext"
12749               else
12750                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12751                   ver=`(cd "$dir" && \
12752                         for f in "$libname$shrext".*; do echo "$f"; done \
12753                         | sed -e "s,^$libname$shrext\\\\.,," \
12754                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12755                         | sed 1q ) 2>/dev/null`
12756                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12757                     found_dir="$dir"
12758                     found_so="$dir/$libname$shrext.$ver"
12759                   fi
12760                 else
12761                   eval library_names=\"$acl_library_names_spec\"
12762                   for f in $library_names; do
12763                     if test -f "$dir/$f"; then
12764                       found_dir="$dir"
12765                       found_so="$dir/$f"
12766                       break
12767                     fi
12768                   done
12769                 fi
12770               fi
12771             fi
12772                         if test "X$found_dir" = "X"; then
12773               if test -f "$dir/$libname.$acl_libext"; then
12774                 found_dir="$dir"
12775                 found_a="$dir/$libname.$acl_libext"
12776               fi
12777             fi
12778             if test "X$found_dir" != "X"; then
12779               if test -f "$dir/$libname.la"; then
12780                 found_la="$dir/$libname.la"
12781               fi
12782             fi
12783           fi
12784           if test "X$found_dir" = "X"; then
12785             for x in $LDFLAGS $LTLIBICONV; do
12786
12787   acl_save_prefix="$prefix"
12788   prefix="$acl_final_prefix"
12789   acl_save_exec_prefix="$exec_prefix"
12790   exec_prefix="$acl_final_exec_prefix"
12791   eval x=\"$x\"
12792   exec_prefix="$acl_save_exec_prefix"
12793   prefix="$acl_save_prefix"
12794
12795               case "$x" in
12796                 -L*)
12797                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12798                                     if test -n "$acl_shlibext"; then
12799                     if test -f "$dir/$libname$shrext"; then
12800                       found_dir="$dir"
12801                       found_so="$dir/$libname$shrext"
12802                     else
12803                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12804                         ver=`(cd "$dir" && \
12805                               for f in "$libname$shrext".*; do echo "$f"; done \
12806                               | sed -e "s,^$libname$shrext\\\\.,," \
12807                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12808                               | sed 1q ) 2>/dev/null`
12809                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12810                           found_dir="$dir"
12811                           found_so="$dir/$libname$shrext.$ver"
12812                         fi
12813                       else
12814                         eval library_names=\"$acl_library_names_spec\"
12815                         for f in $library_names; do
12816                           if test -f "$dir/$f"; then
12817                             found_dir="$dir"
12818                             found_so="$dir/$f"
12819                             break
12820                           fi
12821                         done
12822                       fi
12823                     fi
12824                   fi
12825                                     if test "X$found_dir" = "X"; then
12826                     if test -f "$dir/$libname.$acl_libext"; then
12827                       found_dir="$dir"
12828                       found_a="$dir/$libname.$acl_libext"
12829                     fi
12830                   fi
12831                   if test "X$found_dir" != "X"; then
12832                     if test -f "$dir/$libname.la"; then
12833                       found_la="$dir/$libname.la"
12834                     fi
12835                   fi
12836                   ;;
12837               esac
12838               if test "X$found_dir" != "X"; then
12839                 break
12840               fi
12841             done
12842           fi
12843           if test "X$found_dir" != "X"; then
12844                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12845             if test "X$found_so" != "X"; then
12846                                                         if test "$enable_rpath" = no \
12847                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12848                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12849                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12850               else
12851                                                                                 haveit=
12852                 for x in $ltrpathdirs; do
12853                   if test "X$x" = "X$found_dir"; then
12854                     haveit=yes
12855                     break
12856                   fi
12857                 done
12858                 if test -z "$haveit"; then
12859                   ltrpathdirs="$ltrpathdirs $found_dir"
12860                 fi
12861                                 if test "$acl_hardcode_direct" = yes; then
12862                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12863                 else
12864                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12865                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12866                                                             haveit=
12867                     for x in $rpathdirs; do
12868                       if test "X$x" = "X$found_dir"; then
12869                         haveit=yes
12870                         break
12871                       fi
12872                     done
12873                     if test -z "$haveit"; then
12874                       rpathdirs="$rpathdirs $found_dir"
12875                     fi
12876                   else
12877                                                                                 haveit=
12878                     for x in $LDFLAGS $LIBICONV; do
12879
12880   acl_save_prefix="$prefix"
12881   prefix="$acl_final_prefix"
12882   acl_save_exec_prefix="$exec_prefix"
12883   exec_prefix="$acl_final_exec_prefix"
12884   eval x=\"$x\"
12885   exec_prefix="$acl_save_exec_prefix"
12886   prefix="$acl_save_prefix"
12887
12888                       if test "X$x" = "X-L$found_dir"; then
12889                         haveit=yes
12890                         break
12891                       fi
12892                     done
12893                     if test -z "$haveit"; then
12894                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12895                     fi
12896                     if test "$acl_hardcode_minus_L" != no; then
12897                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12898                     else
12899                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12900                     fi
12901                   fi
12902                 fi
12903               fi
12904             else
12905               if test "X$found_a" != "X"; then
12906                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12907               else
12908                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12909               fi
12910             fi
12911                         additional_includedir=
12912             case "$found_dir" in
12913               */$acl_libdirstem | */$acl_libdirstem/)
12914                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12915                 if test "$name" = 'iconv'; then
12916                   LIBICONV_PREFIX="$basedir"
12917                 fi
12918                 additional_includedir="$basedir/include"
12919                 ;;
12920               */$acl_libdirstem2 | */$acl_libdirstem2/)
12921                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12922                 if test "$name" = 'iconv'; then
12923                   LIBICONV_PREFIX="$basedir"
12924                 fi
12925                 additional_includedir="$basedir/include"
12926                 ;;
12927             esac
12928             if test "X$additional_includedir" != "X"; then
12929                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12930                 haveit=
12931                 if test "X$additional_includedir" = "X/usr/local/include"; then
12932                   if test -n "$GCC"; then
12933                     case $host_os in
12934                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12935                     esac
12936                   fi
12937                 fi
12938                 if test -z "$haveit"; then
12939                   for x in $CPPFLAGS $INCICONV; do
12940
12941   acl_save_prefix="$prefix"
12942   prefix="$acl_final_prefix"
12943   acl_save_exec_prefix="$exec_prefix"
12944   exec_prefix="$acl_final_exec_prefix"
12945   eval x=\"$x\"
12946   exec_prefix="$acl_save_exec_prefix"
12947   prefix="$acl_save_prefix"
12948
12949                     if test "X$x" = "X-I$additional_includedir"; then
12950                       haveit=yes
12951                       break
12952                     fi
12953                   done
12954                   if test -z "$haveit"; then
12955                     if test -d "$additional_includedir"; then
12956                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12957                     fi
12958                   fi
12959                 fi
12960               fi
12961             fi
12962                         if test -n "$found_la"; then
12963                                                         save_libdir="$libdir"
12964               case "$found_la" in
12965                 */* | *\\*) . "$found_la" ;;
12966                 *) . "./$found_la" ;;
12967               esac
12968               libdir="$save_libdir"
12969                             for dep in $dependency_libs; do
12970                 case "$dep" in
12971                   -L*)
12972                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12973                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12974                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12975                       haveit=
12976                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12977                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12978                         if test -n "$GCC"; then
12979                           case $host_os in
12980                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12981                           esac
12982                         fi
12983                       fi
12984                       if test -z "$haveit"; then
12985                         haveit=
12986                         for x in $LDFLAGS $LIBICONV; do
12987
12988   acl_save_prefix="$prefix"
12989   prefix="$acl_final_prefix"
12990   acl_save_exec_prefix="$exec_prefix"
12991   exec_prefix="$acl_final_exec_prefix"
12992   eval x=\"$x\"
12993   exec_prefix="$acl_save_exec_prefix"
12994   prefix="$acl_save_prefix"
12995
12996                           if test "X$x" = "X-L$additional_libdir"; then
12997                             haveit=yes
12998                             break
12999                           fi
13000                         done
13001                         if test -z "$haveit"; then
13002                           if test -d "$additional_libdir"; then
13003                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13004                           fi
13005                         fi
13006                         haveit=
13007                         for x in $LDFLAGS $LTLIBICONV; do
13008
13009   acl_save_prefix="$prefix"
13010   prefix="$acl_final_prefix"
13011   acl_save_exec_prefix="$exec_prefix"
13012   exec_prefix="$acl_final_exec_prefix"
13013   eval x=\"$x\"
13014   exec_prefix="$acl_save_exec_prefix"
13015   prefix="$acl_save_prefix"
13016
13017                           if test "X$x" = "X-L$additional_libdir"; then
13018                             haveit=yes
13019                             break
13020                           fi
13021                         done
13022                         if test -z "$haveit"; then
13023                           if test -d "$additional_libdir"; then
13024                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13025                           fi
13026                         fi
13027                       fi
13028                     fi
13029                     ;;
13030                   -R*)
13031                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13032                     if test "$enable_rpath" != no; then
13033                                                                   haveit=
13034                       for x in $rpathdirs; do
13035                         if test "X$x" = "X$dir"; then
13036                           haveit=yes
13037                           break
13038                         fi
13039                       done
13040                       if test -z "$haveit"; then
13041                         rpathdirs="$rpathdirs $dir"
13042                       fi
13043                                                                   haveit=
13044                       for x in $ltrpathdirs; do
13045                         if test "X$x" = "X$dir"; then
13046                           haveit=yes
13047                           break
13048                         fi
13049                       done
13050                       if test -z "$haveit"; then
13051                         ltrpathdirs="$ltrpathdirs $dir"
13052                       fi
13053                     fi
13054                     ;;
13055                   -l*)
13056                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13057                     ;;
13058                   *.la)
13059                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13060                     ;;
13061                   *)
13062                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13063                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13064                     ;;
13065                 esac
13066               done
13067             fi
13068           else
13069                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13070             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13071           fi
13072         fi
13073       fi
13074     done
13075   done
13076   if test "X$rpathdirs" != "X"; then
13077     if test -n "$acl_hardcode_libdir_separator"; then
13078                         alldirs=
13079       for found_dir in $rpathdirs; do
13080         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13081       done
13082             acl_save_libdir="$libdir"
13083       libdir="$alldirs"
13084       eval flag=\"$acl_hardcode_libdir_flag_spec\"
13085       libdir="$acl_save_libdir"
13086       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13087     else
13088             for found_dir in $rpathdirs; do
13089         acl_save_libdir="$libdir"
13090         libdir="$found_dir"
13091         eval flag=\"$acl_hardcode_libdir_flag_spec\"
13092         libdir="$acl_save_libdir"
13093         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13094       done
13095     fi
13096   fi
13097   if test "X$ltrpathdirs" != "X"; then
13098             for found_dir in $ltrpathdirs; do
13099       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13100     done
13101   fi
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114           am_save_CPPFLAGS="$CPPFLAGS"
13115
13116   for element in $INCICONV; do
13117     haveit=
13118     for x in $CPPFLAGS; do
13119
13120   acl_save_prefix="$prefix"
13121   prefix="$acl_final_prefix"
13122   acl_save_exec_prefix="$exec_prefix"
13123   exec_prefix="$acl_final_exec_prefix"
13124   eval x=\"$x\"
13125   exec_prefix="$acl_save_exec_prefix"
13126   prefix="$acl_save_prefix"
13127
13128       if test "X$x" = "X$element"; then
13129         haveit=yes
13130         break
13131       fi
13132     done
13133     if test -z "$haveit"; then
13134       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13135     fi
13136   done
13137
13138
13139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13140 $as_echo_n "checking for iconv... " >&6; }
13141 if ${am_cv_func_iconv+:} false; then :
13142   $as_echo_n "(cached) " >&6
13143 else
13144
13145     am_cv_func_iconv="no, consider installing GNU libiconv"
13146     am_cv_lib_iconv=no
13147     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148 /* end confdefs.h.  */
13149 #include <stdlib.h>
13150 #include <iconv.h>
13151 int
13152 main ()
13153 {
13154 iconv_t cd = iconv_open("","");
13155        iconv(cd,NULL,NULL,NULL,NULL);
13156        iconv_close(cd);
13157   ;
13158   return 0;
13159 }
13160 _ACEOF
13161 if ac_fn_c_try_link "$LINENO"; then :
13162   am_cv_func_iconv=yes
13163 fi
13164 rm -f core conftest.err conftest.$ac_objext \
13165     conftest$ac_exeext conftest.$ac_ext
13166     if test "$am_cv_func_iconv" != yes; then
13167       am_save_LIBS="$LIBS"
13168       LIBS="$LIBS $LIBICONV"
13169       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13170 /* end confdefs.h.  */
13171 #include <stdlib.h>
13172 #include <iconv.h>
13173 int
13174 main ()
13175 {
13176 iconv_t cd = iconv_open("","");
13177          iconv(cd,NULL,NULL,NULL,NULL);
13178          iconv_close(cd);
13179   ;
13180   return 0;
13181 }
13182 _ACEOF
13183 if ac_fn_c_try_link "$LINENO"; then :
13184   am_cv_lib_iconv=yes
13185         am_cv_func_iconv=yes
13186 fi
13187 rm -f core conftest.err conftest.$ac_objext \
13188     conftest$ac_exeext conftest.$ac_ext
13189       LIBS="$am_save_LIBS"
13190     fi
13191
13192 fi
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13194 $as_echo "$am_cv_func_iconv" >&6; }
13195   if test "$am_cv_func_iconv" = yes; then
13196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13197 $as_echo_n "checking for working iconv... " >&6; }
13198 if ${am_cv_func_iconv_works+:} false; then :
13199   $as_echo_n "(cached) " >&6
13200 else
13201
13202             am_save_LIBS="$LIBS"
13203       if test $am_cv_lib_iconv = yes; then
13204         LIBS="$LIBS $LIBICONV"
13205       fi
13206       if test "$cross_compiling" = yes; then :
13207   case "$host_os" in
13208            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13209            *)            am_cv_func_iconv_works="guessing yes" ;;
13210          esac
13211 else
13212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213 /* end confdefs.h.  */
13214
13215 #include <iconv.h>
13216 #include <string.h>
13217 int main ()
13218 {
13219   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13220      returns.  */
13221   {
13222     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13223     if (cd_utf8_to_88591 != (iconv_t)(-1))
13224       {
13225         static const char input[] = "\342\202\254"; /* EURO SIGN */
13226         char buf[10];
13227         const char *inptr = input;
13228         size_t inbytesleft = strlen (input);
13229         char *outptr = buf;
13230         size_t outbytesleft = sizeof (buf);
13231         size_t res = iconv (cd_utf8_to_88591,
13232                             (char **) &inptr, &inbytesleft,
13233                             &outptr, &outbytesleft);
13234         if (res == 0)
13235           return 1;
13236       }
13237   }
13238 #if 0 /* This bug could be worked around by the caller.  */
13239   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
13240   {
13241     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13242     if (cd_88591_to_utf8 != (iconv_t)(-1))
13243       {
13244         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13245         char buf[50];
13246         const char *inptr = input;
13247         size_t inbytesleft = strlen (input);
13248         char *outptr = buf;
13249         size_t outbytesleft = sizeof (buf);
13250         size_t res = iconv (cd_88591_to_utf8,
13251                             (char **) &inptr, &inbytesleft,
13252                             &outptr, &outbytesleft);
13253         if ((int)res > 0)
13254           return 1;
13255       }
13256   }
13257 #endif
13258   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13259      provided.  */
13260   if (/* Try standardized names.  */
13261       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13262       /* Try IRIX, OSF/1 names.  */
13263       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13264       /* Try AIX names.  */
13265       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13266       /* Try HP-UX names.  */
13267       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13268     return 1;
13269   return 0;
13270 }
13271 _ACEOF
13272 if ac_fn_c_try_run "$LINENO"; then :
13273   am_cv_func_iconv_works=yes
13274 else
13275   am_cv_func_iconv_works=no
13276 fi
13277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13278   conftest.$ac_objext conftest.beam conftest.$ac_ext
13279 fi
13280
13281       LIBS="$am_save_LIBS"
13282
13283 fi
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13285 $as_echo "$am_cv_func_iconv_works" >&6; }
13286     case "$am_cv_func_iconv_works" in
13287       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13288       *)   am_func_iconv=yes ;;
13289     esac
13290   else
13291     am_func_iconv=no am_cv_lib_iconv=no
13292   fi
13293   if test "$am_func_iconv" = yes; then
13294
13295 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13296
13297   fi
13298   if test "$am_cv_lib_iconv" = yes; then
13299     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13300 $as_echo_n "checking how to link with libiconv... " >&6; }
13301     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13302 $as_echo "$LIBICONV" >&6; }
13303   else
13304             CPPFLAGS="$am_save_CPPFLAGS"
13305     LIBICONV=
13306     LTLIBICONV=
13307   fi
13308
13309
13310
13311   if test "$am_cv_func_iconv" = yes; then
13312     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13313 $as_echo_n "checking for iconv declaration... " >&6; }
13314     if ${am_cv_proto_iconv+:} false; then :
13315   $as_echo_n "(cached) " >&6
13316 else
13317
13318       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h.  */
13320
13321 #include <stdlib.h>
13322 #include <iconv.h>
13323 extern
13324 #ifdef __cplusplus
13325 "C"
13326 #endif
13327 #if defined(__STDC__) || defined(__cplusplus)
13328 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13329 #else
13330 size_t iconv();
13331 #endif
13332
13333 int
13334 main ()
13335 {
13336
13337   ;
13338   return 0;
13339 }
13340 _ACEOF
13341 if ac_fn_c_try_compile "$LINENO"; then :
13342   am_cv_proto_iconv_arg1=""
13343 else
13344   am_cv_proto_iconv_arg1="const"
13345 fi
13346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13347       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
13348 fi
13349
13350     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13351     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
13352          $am_cv_proto_iconv" >&5
13353 $as_echo "
13354          $am_cv_proto_iconv" >&6; }
13355
13356 cat >>confdefs.h <<_ACEOF
13357 #define ICONV_CONST $am_cv_proto_iconv_arg1
13358 _ACEOF
13359
13360   fi
13361
13362
13363 # Optionally set install location of udev
13364 UDEV=/usr/lib/udev
13365
13366 # Check whether --with-udev was given.
13367 if test "${with_udev+set}" = set; then :
13368   withval=$with_udev; UDEV="${withval}"
13369 fi
13370
13371
13372
13373 # Optionally set name of udev rules file, default
13374 # priority is 69, to appear before 70-acl.rules which handles
13375 # access control to the devices. We try to let all other userspace
13376 # libusb-based device handlers take precedence since libmtp may
13377 # attempt to autoprobe the devices.
13378 #
13379 # Later rules can then use the identifiers for its processing.
13380 UDEV_RULES=69-libmtp.rules
13381
13382 # Check whether --with-udev-rules was given.
13383 if test "${with_udev_rules+set}" = set; then :
13384   withval=$with_udev_rules; UDEV_RULES="${withval}"
13385 fi
13386
13387
13388
13389 # Optionally set group for device nodes
13390 UDEV_GROUP=
13391
13392 # Check whether --with-udev-group was given.
13393 if test "${with_udev_group+set}" = set; then :
13394   withval=$with_udev_group; UDEV_GROUP="-g\"${withval}\""
13395 fi
13396
13397
13398
13399 # Optionally set mode for device nodes
13400 UDEV_MODE=
13401
13402 # Check whether --with-udev-mode was given.
13403 if test "${with_udev_mode+set}" = set; then :
13404   withval=$with_udev_mode; UDEV_MODE="-m\"${withval}\""
13405 fi
13406
13407
13408
13409 # Optionally enable and check for doxygen
13410 # Check whether --enable-doxygen was given.
13411 if test "${enable_doxygen+set}" = set; then :
13412   enableval=$enable_doxygen; ac_enable_doxygen=$enableval
13413 else
13414   ac_enable_doxygen=auto
13415 fi
13416
13417 if test "x$ac_enable_doxygen" != "xno"; then
13418     # Extract the first word of "doxygen", so it can be a program name with args.
13419 set dummy doxygen; ac_word=$2
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13421 $as_echo_n "checking for $ac_word... " >&6; }
13422 if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
13423   $as_echo_n "(cached) " >&6
13424 else
13425   if test -n "$HAVE_DOXYGEN"; then
13426   ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
13427 else
13428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13429 for as_dir in $PATH
13430 do
13431   IFS=$as_save_IFS
13432   test -z "$as_dir" && as_dir=.
13433     for ac_exec_ext in '' $ac_executable_extensions; do
13434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13435     ac_cv_prog_HAVE_DOXYGEN="true"
13436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13437     break 2
13438   fi
13439 done
13440   done
13441 IFS=$as_save_IFS
13442
13443   test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="false"
13444 fi
13445 fi
13446 HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
13447 if test -n "$HAVE_DOXYGEN"; then
13448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
13449 $as_echo "$HAVE_DOXYGEN" >&6; }
13450 else
13451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13452 $as_echo "no" >&6; }
13453 fi
13454
13455
13456     if test "x$HAVE_DOXYGEN" = "xfalse" -a "x$ac_enable_doxygen" = "xyes"; then
13457         as_fn_error $? "*** API documentation explicitly requested but Doxygen not found" "$LINENO" 5
13458     fi
13459     if test "x$HAVE_DOXYGEN" = "xtrue"; then
13460         { $as_echo "$as_me:${as_lineno-$LINENO}: API documentation will be generated using Doxygen" >&5
13461 $as_echo "$as_me: API documentation will be generated using Doxygen" >&6;}
13462     fi
13463 else
13464     HAVE_DOXYGEN=false
13465     { $as_echo "$as_me:${as_lineno-$LINENO}: API documentation will not be generated" >&5
13466 $as_echo "$as_me: API documentation will not be generated" >&6;}
13467 fi
13468  if $HAVE_DOXYGEN; then
13469   HAVE_DOXYGEN_TRUE=
13470   HAVE_DOXYGEN_FALSE='#'
13471 else
13472   HAVE_DOXYGEN_TRUE='#'
13473   HAVE_DOXYGEN_FALSE=
13474 fi
13475
13476
13477 # Check for Darwin
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the host operating system is Darwin" >&5
13479 $as_echo_n "checking if the host operating system is Darwin... " >&6; }
13480 case "$host" in
13481   *-darwin*)
13482     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13483 $as_echo "yes" >&6; }
13484     CFLAGS="$CFLAGS -DUSE_DARWIN"
13485     OSFLAGS="-framework IOKit"
13486     ;;
13487   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13488 $as_echo "no" >&6; } ;;
13489 esac
13490
13491
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the host operating system is Linux" >&5
13493 $as_echo_n "checking if the host operating system is Linux... " >&6; }
13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495 /* end confdefs.h.  */
13496 #ifndef __linux__
13497                 #error "FAIL"
13498                 #endif
13499
13500 int
13501 main ()
13502 {
13503 int test;
13504   ;
13505   return 0;
13506 }
13507 _ACEOF
13508 if ac_fn_c_try_compile "$LINENO"; then :
13509    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13510 $as_echo "yes" >&6; }
13511                    if true; then
13512   USE_LINUX_TRUE=
13513   USE_LINUX_FALSE='#'
13514 else
13515   USE_LINUX_TRUE='#'
13516   USE_LINUX_FALSE=
13517 fi
13518
13519
13520 else
13521    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13522 $as_echo "no" >&6; }
13523                    if false; then
13524   USE_LINUX_TRUE=
13525   USE_LINUX_FALSE='#'
13526 else
13527   USE_LINUX_TRUE='#'
13528   USE_LINUX_FALSE=
13529 fi
13530
13531
13532 fi
13533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13534
13535 # Check for mingw compiler platform
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking For MinGW32" >&5
13537 $as_echo_n "checking For MinGW32... " >&6; }
13538 case "$host" in
13539   *-*-mingw*)
13540     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13541 $as_echo "yes" >&6; }
13542     mingw_compiler=yes
13543     ;;
13544   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545 $as_echo "no" >&6; } ;;
13546 esac
13547  if test "$mingw_compiler" = "yes"; then
13548   COMPILE_MINGW32_TRUE=
13549   COMPILE_MINGW32_FALSE='#'
13550 else
13551   COMPILE_MINGW32_TRUE='#'
13552   COMPILE_MINGW32_FALSE=
13553 fi
13554
13555
13556 # Check if Microsoft LIB.EXE is available
13557 if test "$mingw_compiler" = "yes"; then
13558   # Extract the first word of "lib.exe", so it can be a program name with args.
13559 set dummy lib.exe; ac_word=$2
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13561 $as_echo_n "checking for $ac_word... " >&6; }
13562 if ${ac_cv_prog_ms_lib_exe+:} false; then :
13563   $as_echo_n "(cached) " >&6
13564 else
13565   if test -n "$ms_lib_exe"; then
13566   ac_cv_prog_ms_lib_exe="$ms_lib_exe" # Let the user override the test.
13567 else
13568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13569 for as_dir in $PATH
13570 do
13571   IFS=$as_save_IFS
13572   test -z "$as_dir" && as_dir=.
13573     for ac_exec_ext in '' $ac_executable_extensions; do
13574   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13575     ac_cv_prog_ms_lib_exe="yes"
13576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13577     break 2
13578   fi
13579 done
13580   done
13581 IFS=$as_save_IFS
13582
13583   test -z "$ac_cv_prog_ms_lib_exe" && ac_cv_prog_ms_lib_exe="no"
13584 fi
13585 fi
13586 ms_lib_exe=$ac_cv_prog_ms_lib_exe
13587 if test -n "$ms_lib_exe"; then
13588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_lib_exe" >&5
13589 $as_echo "$ms_lib_exe" >&6; }
13590 else
13591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13592 $as_echo "no" >&6; }
13593 fi
13594
13595
13596 fi
13597  if test x$ms_lib_exe = xyes; then
13598   MS_LIB_EXE_TRUE=
13599   MS_LIB_EXE_FALSE='#'
13600 else
13601   MS_LIB_EXE_TRUE='#'
13602   MS_LIB_EXE_FALSE=
13603 fi
13604
13605
13606 # Check for libusb-1.0
13607
13608
13609
13610
13611
13612
13613
13614 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13615         if test -n "$ac_tool_prefix"; then
13616   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13617 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13619 $as_echo_n "checking for $ac_word... " >&6; }
13620 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13621   $as_echo_n "(cached) " >&6
13622 else
13623   case $PKG_CONFIG in
13624   [\\/]* | ?:[\\/]*)
13625   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13626   ;;
13627   *)
13628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13629 for as_dir in $PATH
13630 do
13631   IFS=$as_save_IFS
13632   test -z "$as_dir" && as_dir=.
13633     for ac_exec_ext in '' $ac_executable_extensions; do
13634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13635     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13637     break 2
13638   fi
13639 done
13640   done
13641 IFS=$as_save_IFS
13642
13643   ;;
13644 esac
13645 fi
13646 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13647 if test -n "$PKG_CONFIG"; then
13648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13649 $as_echo "$PKG_CONFIG" >&6; }
13650 else
13651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13652 $as_echo "no" >&6; }
13653 fi
13654
13655
13656 fi
13657 if test -z "$ac_cv_path_PKG_CONFIG"; then
13658   ac_pt_PKG_CONFIG=$PKG_CONFIG
13659   # Extract the first word of "pkg-config", so it can be a program name with args.
13660 set dummy pkg-config; ac_word=$2
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13662 $as_echo_n "checking for $ac_word... " >&6; }
13663 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13664   $as_echo_n "(cached) " >&6
13665 else
13666   case $ac_pt_PKG_CONFIG in
13667   [\\/]* | ?:[\\/]*)
13668   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13669   ;;
13670   *)
13671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13672 for as_dir in $PATH
13673 do
13674   IFS=$as_save_IFS
13675   test -z "$as_dir" && as_dir=.
13676     for ac_exec_ext in '' $ac_executable_extensions; do
13677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13678     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13680     break 2
13681   fi
13682 done
13683   done
13684 IFS=$as_save_IFS
13685
13686   ;;
13687 esac
13688 fi
13689 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13690 if test -n "$ac_pt_PKG_CONFIG"; then
13691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13692 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13693 else
13694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13695 $as_echo "no" >&6; }
13696 fi
13697
13698   if test "x$ac_pt_PKG_CONFIG" = x; then
13699     PKG_CONFIG=""
13700   else
13701     case $cross_compiling:$ac_tool_warned in
13702 yes:)
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13705 ac_tool_warned=yes ;;
13706 esac
13707     PKG_CONFIG=$ac_pt_PKG_CONFIG
13708   fi
13709 else
13710   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13711 fi
13712
13713 fi
13714 if test -n "$PKG_CONFIG"; then
13715         _pkg_min_version=0.9.0
13716         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13717 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13718         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13719                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13720 $as_echo "yes" >&6; }
13721         else
13722                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13723 $as_echo "no" >&6; }
13724                 PKG_CONFIG=""
13725         fi
13726 fi
13727
13728 pkg_failed=no
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
13730 $as_echo_n "checking for LIBUSB... " >&6; }
13731
13732 if test -n "$LIBUSB_CFLAGS"; then
13733     pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
13734  elif test -n "$PKG_CONFIG"; then
13735     if test -n "$PKG_CONFIG" && \
13736     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 1.0.0\""; } >&5
13737   ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 1.0.0") 2>&5
13738   ac_status=$?
13739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13740   test $ac_status = 0; }; then
13741   pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0 >= 1.0.0" 2>/dev/null`
13742                       test "x$?" != "x0" && pkg_failed=yes
13743 else
13744   pkg_failed=yes
13745 fi
13746  else
13747     pkg_failed=untried
13748 fi
13749 if test -n "$LIBUSB_LIBS"; then
13750     pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
13751  elif test -n "$PKG_CONFIG"; then
13752     if test -n "$PKG_CONFIG" && \
13753     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 1.0.0\""; } >&5
13754   ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 1.0.0") 2>&5
13755   ac_status=$?
13756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13757   test $ac_status = 0; }; then
13758   pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0 >= 1.0.0" 2>/dev/null`
13759                       test "x$?" != "x0" && pkg_failed=yes
13760 else
13761   pkg_failed=yes
13762 fi
13763  else
13764     pkg_failed=untried
13765 fi
13766
13767
13768
13769 if test $pkg_failed = yes; then
13770         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13771 $as_echo "no" >&6; }
13772
13773 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13774         _pkg_short_errors_supported=yes
13775 else
13776         _pkg_short_errors_supported=no
13777 fi
13778         if test $_pkg_short_errors_supported = yes; then
13779                 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0 >= 1.0.0" 2>&1`
13780         else
13781                 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0 >= 1.0.0" 2>&1`
13782         fi
13783         # Put the nasty error message in config.log where it belongs
13784         echo "$LIBUSB_PKG_ERRORS" >&5
13785
13786
13787    # Check for libopenusb second
13788    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openusb_init in -lopenusb" >&5
13789 $as_echo_n "checking for openusb_init in -lopenusb... " >&6; }
13790 if ${ac_cv_lib_openusb_openusb_init+:} false; then :
13791   $as_echo_n "(cached) " >&6
13792 else
13793   ac_check_lib_save_LIBS=$LIBS
13794 LIBS="-lopenusb  $LIBS"
13795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13796 /* end confdefs.h.  */
13797
13798 /* Override any GCC internal prototype to avoid an error.
13799    Use char because int might match the return type of a GCC
13800    builtin and then its argument prototype would still apply.  */
13801 #ifdef __cplusplus
13802 extern "C"
13803 #endif
13804 char openusb_init ();
13805 int
13806 main ()
13807 {
13808 return openusb_init ();
13809   ;
13810   return 0;
13811 }
13812 _ACEOF
13813 if ac_fn_c_try_link "$LINENO"; then :
13814   ac_cv_lib_openusb_openusb_init=yes
13815 else
13816   ac_cv_lib_openusb_openusb_init=no
13817 fi
13818 rm -f core conftest.err conftest.$ac_objext \
13819     conftest$ac_exeext conftest.$ac_ext
13820 LIBS=$ac_check_lib_save_LIBS
13821 fi
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openusb_openusb_init" >&5
13823 $as_echo "$ac_cv_lib_openusb_openusb_init" >&6; }
13824 if test "x$ac_cv_lib_openusb_openusb_init" = xyes; then :
13825
13826
13827 $as_echo "#define HAVE_OPENUSB /**/" >>confdefs.h
13828
13829         LIBUSB_VER=1.0
13830
13831 else
13832
13833
13834 pkg_failed=no
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
13836 $as_echo_n "checking for LIBUSB... " >&6; }
13837
13838 if test -n "$LIBUSB_CFLAGS"; then
13839     pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
13840  elif test -n "$PKG_CONFIG"; then
13841     if test -n "$PKG_CONFIG" && \
13842     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.8\""; } >&5
13843   ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5
13844   ac_status=$?
13845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13846   test $ac_status = 0; }; then
13847   pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb >= 0.1.8" 2>/dev/null`
13848                       test "x$?" != "x0" && pkg_failed=yes
13849 else
13850   pkg_failed=yes
13851 fi
13852  else
13853     pkg_failed=untried
13854 fi
13855 if test -n "$LIBUSB_LIBS"; then
13856     pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
13857  elif test -n "$PKG_CONFIG"; then
13858     if test -n "$PKG_CONFIG" && \
13859     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.8\""; } >&5
13860   ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5
13861   ac_status=$?
13862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13863   test $ac_status = 0; }; then
13864   pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb >= 0.1.8" 2>/dev/null`
13865                       test "x$?" != "x0" && pkg_failed=yes
13866 else
13867   pkg_failed=yes
13868 fi
13869  else
13870     pkg_failed=untried
13871 fi
13872
13873
13874
13875 if test $pkg_failed = yes; then
13876         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13877 $as_echo "no" >&6; }
13878
13879 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13880         _pkg_short_errors_supported=yes
13881 else
13882         _pkg_short_errors_supported=no
13883 fi
13884         if test $_pkg_short_errors_supported = yes; then
13885                 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb >= 0.1.8" 2>&1`
13886         else
13887                 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb >= 0.1.8" 2>&1`
13888         fi
13889         # Put the nasty error message in config.log where it belongs
13890         echo "$LIBUSB_PKG_ERRORS" >&5
13891
13892
13893          # Some systems don't use pkg-config for libusb, so double check.
13894          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_open in -lusb" >&5
13895 $as_echo_n "checking for usb_open in -lusb... " >&6; }
13896 if ${ac_cv_lib_usb_usb_open+:} false; then :
13897   $as_echo_n "(cached) " >&6
13898 else
13899   ac_check_lib_save_LIBS=$LIBS
13900 LIBS="-lusb  $LIBS"
13901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13902 /* end confdefs.h.  */
13903
13904 /* Override any GCC internal prototype to avoid an error.
13905    Use char because int might match the return type of a GCC
13906    builtin and then its argument prototype would still apply.  */
13907 #ifdef __cplusplus
13908 extern "C"
13909 #endif
13910 char usb_open ();
13911 int
13912 main ()
13913 {
13914 return usb_open ();
13915   ;
13916   return 0;
13917 }
13918 _ACEOF
13919 if ac_fn_c_try_link "$LINENO"; then :
13920   ac_cv_lib_usb_usb_open=yes
13921 else
13922   ac_cv_lib_usb_usb_open=no
13923 fi
13924 rm -f core conftest.err conftest.$ac_objext \
13925     conftest$ac_exeext conftest.$ac_ext
13926 LIBS=$ac_check_lib_save_LIBS
13927 fi
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_open" >&5
13929 $as_echo "$ac_cv_lib_usb_usb_open" >&6; }
13930 if test "x$ac_cv_lib_usb_usb_open" = xyes; then :
13931
13932             LIBUSB_VER=0.1
13933
13934 $as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
13935
13936             found_libusb0_pkg=yes
13937
13938 else
13939
13940             as_fn_error $? "*** libusb not found! (missing -dev/-devel package?) ***\n*** prefer to install libusb-1 if you can! ***" "$LINENO" 5
13941
13942 fi
13943
13944
13945 elif test $pkg_failed = untried; then
13946         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13947 $as_echo "no" >&6; }
13948
13949          # Some systems don't use pkg-config for libusb, so double check.
13950          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_open in -lusb" >&5
13951 $as_echo_n "checking for usb_open in -lusb... " >&6; }
13952 if ${ac_cv_lib_usb_usb_open+:} false; then :
13953   $as_echo_n "(cached) " >&6
13954 else
13955   ac_check_lib_save_LIBS=$LIBS
13956 LIBS="-lusb  $LIBS"
13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h.  */
13959
13960 /* Override any GCC internal prototype to avoid an error.
13961    Use char because int might match the return type of a GCC
13962    builtin and then its argument prototype would still apply.  */
13963 #ifdef __cplusplus
13964 extern "C"
13965 #endif
13966 char usb_open ();
13967 int
13968 main ()
13969 {
13970 return usb_open ();
13971   ;
13972   return 0;
13973 }
13974 _ACEOF
13975 if ac_fn_c_try_link "$LINENO"; then :
13976   ac_cv_lib_usb_usb_open=yes
13977 else
13978   ac_cv_lib_usb_usb_open=no
13979 fi
13980 rm -f core conftest.err conftest.$ac_objext \
13981     conftest$ac_exeext conftest.$ac_ext
13982 LIBS=$ac_check_lib_save_LIBS
13983 fi
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_open" >&5
13985 $as_echo "$ac_cv_lib_usb_usb_open" >&6; }
13986 if test "x$ac_cv_lib_usb_usb_open" = xyes; then :
13987
13988             LIBUSB_VER=0.1
13989
13990 $as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
13991
13992             found_libusb0_pkg=yes
13993
13994 else
13995
13996             as_fn_error $? "*** libusb not found! (missing -dev/-devel package?) ***\n*** prefer to install libusb-1 if you can! ***" "$LINENO" 5
13997
13998 fi
13999
14000
14001 else
14002         LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
14003         LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
14004         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14005 $as_echo "yes" >&6; }
14006
14007          LIBUSB_VER=`pkg-config --modversion libusb`
14008          LIBUSB_REQUIRES='libusb'
14009
14010 $as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
14011
14012          found_libusb0_pkg=yes
14013
14014 fi
14015
14016 fi
14017
14018
14019 elif test $pkg_failed = untried; then
14020         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14021 $as_echo "no" >&6; }
14022
14023    # Check for libopenusb second
14024    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openusb_init in -lopenusb" >&5
14025 $as_echo_n "checking for openusb_init in -lopenusb... " >&6; }
14026 if ${ac_cv_lib_openusb_openusb_init+:} false; then :
14027   $as_echo_n "(cached) " >&6
14028 else
14029   ac_check_lib_save_LIBS=$LIBS
14030 LIBS="-lopenusb  $LIBS"
14031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14032 /* end confdefs.h.  */
14033
14034 /* Override any GCC internal prototype to avoid an error.
14035    Use char because int might match the return type of a GCC
14036    builtin and then its argument prototype would still apply.  */
14037 #ifdef __cplusplus
14038 extern "C"
14039 #endif
14040 char openusb_init ();
14041 int
14042 main ()
14043 {
14044 return openusb_init ();
14045   ;
14046   return 0;
14047 }
14048 _ACEOF
14049 if ac_fn_c_try_link "$LINENO"; then :
14050   ac_cv_lib_openusb_openusb_init=yes
14051 else
14052   ac_cv_lib_openusb_openusb_init=no
14053 fi
14054 rm -f core conftest.err conftest.$ac_objext \
14055     conftest$ac_exeext conftest.$ac_ext
14056 LIBS=$ac_check_lib_save_LIBS
14057 fi
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openusb_openusb_init" >&5
14059 $as_echo "$ac_cv_lib_openusb_openusb_init" >&6; }
14060 if test "x$ac_cv_lib_openusb_openusb_init" = xyes; then :
14061
14062
14063 $as_echo "#define HAVE_OPENUSB /**/" >>confdefs.h
14064
14065         LIBUSB_VER=1.0
14066
14067 else
14068
14069
14070 pkg_failed=no
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
14072 $as_echo_n "checking for LIBUSB... " >&6; }
14073
14074 if test -n "$LIBUSB_CFLAGS"; then
14075     pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
14076  elif test -n "$PKG_CONFIG"; then
14077     if test -n "$PKG_CONFIG" && \
14078     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.8\""; } >&5
14079   ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5
14080   ac_status=$?
14081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14082   test $ac_status = 0; }; then
14083   pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb >= 0.1.8" 2>/dev/null`
14084                       test "x$?" != "x0" && pkg_failed=yes
14085 else
14086   pkg_failed=yes
14087 fi
14088  else
14089     pkg_failed=untried
14090 fi
14091 if test -n "$LIBUSB_LIBS"; then
14092     pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
14093  elif test -n "$PKG_CONFIG"; then
14094     if test -n "$PKG_CONFIG" && \
14095     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.8\""; } >&5
14096   ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5
14097   ac_status=$?
14098   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14099   test $ac_status = 0; }; then
14100   pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb >= 0.1.8" 2>/dev/null`
14101                       test "x$?" != "x0" && pkg_failed=yes
14102 else
14103   pkg_failed=yes
14104 fi
14105  else
14106     pkg_failed=untried
14107 fi
14108
14109
14110
14111 if test $pkg_failed = yes; then
14112         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14113 $as_echo "no" >&6; }
14114
14115 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14116         _pkg_short_errors_supported=yes
14117 else
14118         _pkg_short_errors_supported=no
14119 fi
14120         if test $_pkg_short_errors_supported = yes; then
14121                 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb >= 0.1.8" 2>&1`
14122         else
14123                 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb >= 0.1.8" 2>&1`
14124         fi
14125         # Put the nasty error message in config.log where it belongs
14126         echo "$LIBUSB_PKG_ERRORS" >&5
14127
14128
14129          # Some systems don't use pkg-config for libusb, so double check.
14130          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_open in -lusb" >&5
14131 $as_echo_n "checking for usb_open in -lusb... " >&6; }
14132 if ${ac_cv_lib_usb_usb_open+:} false; then :
14133   $as_echo_n "(cached) " >&6
14134 else
14135   ac_check_lib_save_LIBS=$LIBS
14136 LIBS="-lusb  $LIBS"
14137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14138 /* end confdefs.h.  */
14139
14140 /* Override any GCC internal prototype to avoid an error.
14141    Use char because int might match the return type of a GCC
14142    builtin and then its argument prototype would still apply.  */
14143 #ifdef __cplusplus
14144 extern "C"
14145 #endif
14146 char usb_open ();
14147 int
14148 main ()
14149 {
14150 return usb_open ();
14151   ;
14152   return 0;
14153 }
14154 _ACEOF
14155 if ac_fn_c_try_link "$LINENO"; then :
14156   ac_cv_lib_usb_usb_open=yes
14157 else
14158   ac_cv_lib_usb_usb_open=no
14159 fi
14160 rm -f core conftest.err conftest.$ac_objext \
14161     conftest$ac_exeext conftest.$ac_ext
14162 LIBS=$ac_check_lib_save_LIBS
14163 fi
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_open" >&5
14165 $as_echo "$ac_cv_lib_usb_usb_open" >&6; }
14166 if test "x$ac_cv_lib_usb_usb_open" = xyes; then :
14167
14168             LIBUSB_VER=0.1
14169
14170 $as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
14171
14172             found_libusb0_pkg=yes
14173
14174 else
14175
14176             as_fn_error $? "*** libusb not found! (missing -dev/-devel package?) ***\n*** prefer to install libusb-1 if you can! ***" "$LINENO" 5
14177
14178 fi
14179
14180
14181 elif test $pkg_failed = untried; then
14182         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14183 $as_echo "no" >&6; }
14184
14185          # Some systems don't use pkg-config for libusb, so double check.
14186          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_open in -lusb" >&5
14187 $as_echo_n "checking for usb_open in -lusb... " >&6; }
14188 if ${ac_cv_lib_usb_usb_open+:} false; then :
14189   $as_echo_n "(cached) " >&6
14190 else
14191   ac_check_lib_save_LIBS=$LIBS
14192 LIBS="-lusb  $LIBS"
14193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194 /* end confdefs.h.  */
14195
14196 /* Override any GCC internal prototype to avoid an error.
14197    Use char because int might match the return type of a GCC
14198    builtin and then its argument prototype would still apply.  */
14199 #ifdef __cplusplus
14200 extern "C"
14201 #endif
14202 char usb_open ();
14203 int
14204 main ()
14205 {
14206 return usb_open ();
14207   ;
14208   return 0;
14209 }
14210 _ACEOF
14211 if ac_fn_c_try_link "$LINENO"; then :
14212   ac_cv_lib_usb_usb_open=yes
14213 else
14214   ac_cv_lib_usb_usb_open=no
14215 fi
14216 rm -f core conftest.err conftest.$ac_objext \
14217     conftest$ac_exeext conftest.$ac_ext
14218 LIBS=$ac_check_lib_save_LIBS
14219 fi
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_open" >&5
14221 $as_echo "$ac_cv_lib_usb_usb_open" >&6; }
14222 if test "x$ac_cv_lib_usb_usb_open" = xyes; then :
14223
14224             LIBUSB_VER=0.1
14225
14226 $as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
14227
14228             found_libusb0_pkg=yes
14229
14230 else
14231
14232             as_fn_error $? "*** libusb not found! (missing -dev/-devel package?) ***\n*** prefer to install libusb-1 if you can! ***" "$LINENO" 5
14233
14234 fi
14235
14236
14237 else
14238         LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
14239         LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
14240         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14241 $as_echo "yes" >&6; }
14242
14243          LIBUSB_VER=`pkg-config --modversion libusb`
14244          LIBUSB_REQUIRES='libusb'
14245
14246 $as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
14247
14248          found_libusb0_pkg=yes
14249
14250 fi
14251
14252 fi
14253
14254
14255 else
14256         LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
14257         LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
14258         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14259 $as_echo "yes" >&6; }
14260
14261    LIBUSB_VER=`pkg-config --modversion libusb-1.0`
14262    LIBUSB_REQUIRES='libusb-1.0'
14263
14264 $as_echo "#define HAVE_LIBUSB1 /**/" >>confdefs.h
14265
14266    found_libusb1_pkg=yes
14267
14268 fi
14269
14270 # Optionally disable MTPZ functionality.
14271 # Check whether --enable-mtpz was given.
14272 if test "${enable_mtpz+set}" = set; then :
14273   enableval=$enable_mtpz; use_mtpz=$enableval
14274 else
14275   use_mtpz="yes"
14276 fi
14277
14278
14279 # Include MTPZ if not disabled.
14280 if test x"$use_mtpz" = "xyes" ; then
14281         # Check for libgcrypt.
14282         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcrypt" >&5
14283 $as_echo_n "checking for libgcrypt... " >&6; }
14284         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_check_version in -lgcrypt" >&5
14285 $as_echo_n "checking for gcry_check_version in -lgcrypt... " >&6; }
14286 if ${ac_cv_lib_gcrypt_gcry_check_version+:} false; then :
14287   $as_echo_n "(cached) " >&6
14288 else
14289   ac_check_lib_save_LIBS=$LIBS
14290 LIBS="-lgcrypt  $LIBS"
14291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14292 /* end confdefs.h.  */
14293
14294 /* Override any GCC internal prototype to avoid an error.
14295    Use char because int might match the return type of a GCC
14296    builtin and then its argument prototype would still apply.  */
14297 #ifdef __cplusplus
14298 extern "C"
14299 #endif
14300 char gcry_check_version ();
14301 int
14302 main ()
14303 {
14304 return gcry_check_version ();
14305   ;
14306   return 0;
14307 }
14308 _ACEOF
14309 if ac_fn_c_try_link "$LINENO"; then :
14310   ac_cv_lib_gcrypt_gcry_check_version=yes
14311 else
14312   ac_cv_lib_gcrypt_gcry_check_version=no
14313 fi
14314 rm -f core conftest.err conftest.$ac_objext \
14315     conftest$ac_exeext conftest.$ac_ext
14316 LIBS=$ac_check_lib_save_LIBS
14317 fi
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_check_version" >&5
14319 $as_echo "$ac_cv_lib_gcrypt_gcry_check_version" >&6; }
14320 if test "x$ac_cv_lib_gcrypt_gcry_check_version" = xyes; then :
14321   cat >>confdefs.h <<_ACEOF
14322 #define HAVE_LIBGCRYPT 1
14323 _ACEOF
14324
14325   LIBS="-lgcrypt $LIBS"
14326
14327 else
14328   { $as_echo "$as_me:${as_lineno-$LINENO}: *** libgcrypt not found - disabling MTPZ support ***" >&5
14329 $as_echo "$as_me: *** libgcrypt not found - disabling MTPZ support ***" >&6;} ; use_mtpz="no"
14330 fi
14331
14332 fi
14333
14334 if test x"$use_mtpz" = "xyes" ; then
14335
14336 $as_echo "#define USE_MTPZ /**/" >>confdefs.h
14337
14338         { $as_echo "$as_me:${as_lineno-$LINENO}: MTPZ functionality enabled" >&5
14339 $as_echo "$as_me: MTPZ functionality enabled" >&6;};
14340 else
14341         { $as_echo "$as_me:${as_lineno-$LINENO}: MTPZ functionality disable" >&5
14342 $as_echo "$as_me: MTPZ functionality disable" >&6;};
14343 fi
14344
14345
14346
14347
14348
14349  if test x"$use_mtpz" = "xyes"; then
14350   MTPZ_COMPILE_TRUE=
14351   MTPZ_COMPILE_FALSE='#'
14352 else
14353   MTPZ_COMPILE_TRUE='#'
14354   MTPZ_COMPILE_FALSE=
14355 fi
14356
14357  if test x"$found_libusb1_pkg" = "xyes"; then
14358   LIBUSB1_COMPILE_TRUE=
14359   LIBUSB1_COMPILE_FALSE='#'
14360 else
14361   LIBUSB1_COMPILE_TRUE='#'
14362   LIBUSB1_COMPILE_FALSE=
14363 fi
14364
14365  if test x"$found_libusb0_pkg" = "xyes"; then
14366   LIBUSB0_COMPILE_TRUE=
14367   LIBUSB0_COMPILE_FALSE='#'
14368 else
14369   LIBUSB0_COMPILE_TRUE='#'
14370   LIBUSB0_COMPILE_FALSE=
14371 fi
14372
14373  if test x"$ac_cv_lib_openusb_openusb_init" = "xyes"; then
14374   LIBOPENUSB_COMPILE_TRUE=
14375   LIBOPENUSB_COMPILE_FALSE='#'
14376 else
14377   LIBOPENUSB_COMPILE_TRUE='#'
14378   LIBOPENUSB_COMPILE_FALSE=
14379 fi
14380
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: *** using libusb $LIBUSB_VER ***" >&5
14382 $as_echo "$as_me: *** using libusb $LIBUSB_VER ***" >&6;}
14383
14384 # Checks for header files.
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14386 $as_echo_n "checking for ANSI C header files... " >&6; }
14387 if ${ac_cv_header_stdc+:} false; then :
14388   $as_echo_n "(cached) " >&6
14389 else
14390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14391 /* end confdefs.h.  */
14392 #include <stdlib.h>
14393 #include <stdarg.h>
14394 #include <string.h>
14395 #include <float.h>
14396
14397 int
14398 main ()
14399 {
14400
14401   ;
14402   return 0;
14403 }
14404 _ACEOF
14405 if ac_fn_c_try_compile "$LINENO"; then :
14406   ac_cv_header_stdc=yes
14407 else
14408   ac_cv_header_stdc=no
14409 fi
14410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14411
14412 if test $ac_cv_header_stdc = yes; then
14413   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14415 /* end confdefs.h.  */
14416 #include <string.h>
14417
14418 _ACEOF
14419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14420   $EGREP "memchr" >/dev/null 2>&1; then :
14421
14422 else
14423   ac_cv_header_stdc=no
14424 fi
14425 rm -f conftest*
14426
14427 fi
14428
14429 if test $ac_cv_header_stdc = yes; then
14430   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14432 /* end confdefs.h.  */
14433 #include <stdlib.h>
14434
14435 _ACEOF
14436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14437   $EGREP "free" >/dev/null 2>&1; then :
14438
14439 else
14440   ac_cv_header_stdc=no
14441 fi
14442 rm -f conftest*
14443
14444 fi
14445
14446 if test $ac_cv_header_stdc = yes; then
14447   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14448   if test "$cross_compiling" = yes; then :
14449   :
14450 else
14451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452 /* end confdefs.h.  */
14453 #include <ctype.h>
14454 #include <stdlib.h>
14455 #if ((' ' & 0x0FF) == 0x020)
14456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14458 #else
14459 # define ISLOWER(c) \
14460                    (('a' <= (c) && (c) <= 'i') \
14461                      || ('j' <= (c) && (c) <= 'r') \
14462                      || ('s' <= (c) && (c) <= 'z'))
14463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14464 #endif
14465
14466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14467 int
14468 main ()
14469 {
14470   int i;
14471   for (i = 0; i < 256; i++)
14472     if (XOR (islower (i), ISLOWER (i))
14473         || toupper (i) != TOUPPER (i))
14474       return 2;
14475   return 0;
14476 }
14477 _ACEOF
14478 if ac_fn_c_try_run "$LINENO"; then :
14479
14480 else
14481   ac_cv_header_stdc=no
14482 fi
14483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14484   conftest.$ac_objext conftest.beam conftest.$ac_ext
14485 fi
14486
14487 fi
14488 fi
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14490 $as_echo "$ac_cv_header_stdc" >&6; }
14491 if test $ac_cv_header_stdc = yes; then
14492
14493 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14494
14495 fi
14496
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14498 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14499 if ${ac_cv_header_time+:} false; then :
14500   $as_echo_n "(cached) " >&6
14501 else
14502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14503 /* end confdefs.h.  */
14504 #include <sys/types.h>
14505 #include <sys/time.h>
14506 #include <time.h>
14507
14508 int
14509 main ()
14510 {
14511 if ((struct tm *) 0)
14512 return 0;
14513   ;
14514   return 0;
14515 }
14516 _ACEOF
14517 if ac_fn_c_try_compile "$LINENO"; then :
14518   ac_cv_header_time=yes
14519 else
14520   ac_cv_header_time=no
14521 fi
14522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14523 fi
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14525 $as_echo "$ac_cv_header_time" >&6; }
14526 if test $ac_cv_header_time = yes; then
14527
14528 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14529
14530 fi
14531
14532 # zlib.h the day we need to decompress firmware
14533 for ac_header in ctype.h errno.h fcntl.h getopt.h libgen.h \
14534         limits.h stdio.h string.h sys/stat.h sys/time.h unistd.h \
14535         langinfo.h locale.h arpa/inet.h byteswap.h sys/uio.h
14536 do :
14537   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14538 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14539 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14540   cat >>confdefs.h <<_ACEOF
14541 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14542 _ACEOF
14543
14544 fi
14545
14546 done
14547
14548
14549 # Checks for typedefs, structures, and compiler characteristics.
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14551 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14552 if ${ac_cv_c_const+:} false; then :
14553   $as_echo_n "(cached) " >&6
14554 else
14555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14556 /* end confdefs.h.  */
14557
14558 int
14559 main ()
14560 {
14561
14562 #ifndef __cplusplus
14563   /* Ultrix mips cc rejects this sort of thing.  */
14564   typedef int charset[2];
14565   const charset cs = { 0, 0 };
14566   /* SunOS 4.1.1 cc rejects this.  */
14567   char const *const *pcpcc;
14568   char **ppc;
14569   /* NEC SVR4.0.2 mips cc rejects this.  */
14570   struct point {int x, y;};
14571   static struct point const zero = {0,0};
14572   /* AIX XL C 1.02.0.0 rejects this.
14573      It does not let you subtract one const X* pointer from another in
14574      an arm of an if-expression whose if-part is not a constant
14575      expression */
14576   const char *g = "string";
14577   pcpcc = &g + (g ? g-g : 0);
14578   /* HPUX 7.0 cc rejects these. */
14579   ++pcpcc;
14580   ppc = (char**) pcpcc;
14581   pcpcc = (char const *const *) ppc;
14582   { /* SCO 3.2v4 cc rejects this sort of thing.  */
14583     char tx;
14584     char *t = &tx;
14585     char const *s = 0 ? (char *) 0 : (char const *) 0;
14586
14587     *t++ = 0;
14588     if (s) return 0;
14589   }
14590   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14591     int x[] = {25, 17};
14592     const int *foo = &x[0];
14593     ++foo;
14594   }
14595   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14596     typedef const int *iptr;
14597     iptr p = 0;
14598     ++p;
14599   }
14600   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14601        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14602     struct s { int j; const int *ap[3]; } bx;
14603     struct s *b = &bx; b->j = 5;
14604   }
14605   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14606     const int foo = 10;
14607     if (!foo) return 0;
14608   }
14609   return !cs[0] && !zero.x;
14610 #endif
14611
14612   ;
14613   return 0;
14614 }
14615 _ACEOF
14616 if ac_fn_c_try_compile "$LINENO"; then :
14617   ac_cv_c_const=yes
14618 else
14619   ac_cv_c_const=no
14620 fi
14621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14622 fi
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14624 $as_echo "$ac_cv_c_const" >&6; }
14625 if test $ac_cv_c_const = no; then
14626
14627 $as_echo "#define const /**/" >>confdefs.h
14628
14629 fi
14630
14631 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14632 if test "x$ac_cv_type_off_t" = xyes; then :
14633
14634 else
14635
14636 cat >>confdefs.h <<_ACEOF
14637 #define off_t long int
14638 _ACEOF
14639
14640 fi
14641
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14643 $as_echo_n "checking return type of signal handlers... " >&6; }
14644 if ${ac_cv_type_signal+:} false; then :
14645   $as_echo_n "(cached) " >&6
14646 else
14647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14648 /* end confdefs.h.  */
14649 #include <sys/types.h>
14650 #include <signal.h>
14651
14652 int
14653 main ()
14654 {
14655 return *(signal (0, 0)) (0) == 1;
14656   ;
14657   return 0;
14658 }
14659 _ACEOF
14660 if ac_fn_c_try_compile "$LINENO"; then :
14661   ac_cv_type_signal=int
14662 else
14663   ac_cv_type_signal=void
14664 fi
14665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14666 fi
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14668 $as_echo "$ac_cv_type_signal" >&6; }
14669
14670 cat >>confdefs.h <<_ACEOF
14671 #define RETSIGTYPE $ac_cv_type_signal
14672 _ACEOF
14673
14674
14675 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14676 if test "x$ac_cv_type_size_t" = xyes; then :
14677
14678 else
14679
14680 cat >>confdefs.h <<_ACEOF
14681 #define size_t unsigned int
14682 _ACEOF
14683
14684 fi
14685
14686 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
14687 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
14688
14689 cat >>confdefs.h <<_ACEOF
14690 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14691 _ACEOF
14692
14693
14694 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
14695
14696 fi
14697
14698
14699
14700 # Checks for library functions.
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
14702 $as_echo_n "checking for working memcmp... " >&6; }
14703 if ${ac_cv_func_memcmp_working+:} false; then :
14704   $as_echo_n "(cached) " >&6
14705 else
14706   if test "$cross_compiling" = yes; then :
14707   ac_cv_func_memcmp_working=no
14708 else
14709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14710 /* end confdefs.h.  */
14711 $ac_includes_default
14712 int
14713 main ()
14714 {
14715
14716   /* Some versions of memcmp are not 8-bit clean.  */
14717   char c0 = '\100', c1 = '\200', c2 = '\201';
14718   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
14719     return 1;
14720
14721   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
14722      or more and with at least one buffer not starting on a 4-byte boundary.
14723      William Lewis provided this test program.   */
14724   {
14725     char foo[21];
14726     char bar[21];
14727     int i;
14728     for (i = 0; i < 4; i++)
14729       {
14730         char *a = foo + i;
14731         char *b = bar + i;
14732         strcpy (a, "--------01111111");
14733         strcpy (b, "--------10000000");
14734         if (memcmp (a, b, 16) >= 0)
14735           return 1;
14736       }
14737     return 0;
14738   }
14739
14740   ;
14741   return 0;
14742 }
14743 _ACEOF
14744 if ac_fn_c_try_run "$LINENO"; then :
14745   ac_cv_func_memcmp_working=yes
14746 else
14747   ac_cv_func_memcmp_working=no
14748 fi
14749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14750   conftest.$ac_objext conftest.beam conftest.$ac_ext
14751 fi
14752
14753 fi
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
14755 $as_echo "$ac_cv_func_memcmp_working" >&6; }
14756 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
14757   *" memcmp.$ac_objext "* ) ;;
14758   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14759  ;;
14760 esac
14761
14762
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14764 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
14765 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
14766   $as_echo_n "(cached) " >&6
14767 else
14768   rm -f conftest.sym conftest.file
14769 echo >conftest.file
14770 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14771   if test "$cross_compiling" = yes; then :
14772   ac_cv_func_lstat_dereferences_slashed_symlink=no
14773 else
14774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14775 /* end confdefs.h.  */
14776 $ac_includes_default
14777 int
14778 main ()
14779 {
14780 struct stat sbuf;
14781      /* Linux will dereference the symlink and fail, as required by POSIX.
14782         That is better in the sense that it means we will not
14783         have to compile and use the lstat wrapper.  */
14784      return lstat ("conftest.sym/", &sbuf) == 0;
14785   ;
14786   return 0;
14787 }
14788 _ACEOF
14789 if ac_fn_c_try_run "$LINENO"; then :
14790   ac_cv_func_lstat_dereferences_slashed_symlink=yes
14791 else
14792   ac_cv_func_lstat_dereferences_slashed_symlink=no
14793 fi
14794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14795   conftest.$ac_objext conftest.beam conftest.$ac_ext
14796 fi
14797
14798 else
14799   # If the `ln -s' command failed, then we probably don't even
14800   # have an lstat function.
14801   ac_cv_func_lstat_dereferences_slashed_symlink=no
14802 fi
14803 rm -f conftest.sym conftest.file
14804
14805 fi
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14807 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14808
14809 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14810
14811 cat >>confdefs.h <<_ACEOF
14812 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14813 _ACEOF
14814
14815
14816 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
14817   case " $LIBOBJS " in
14818   *" lstat.$ac_objext "* ) ;;
14819   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
14820  ;;
14821 esac
14822
14823 fi
14824
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
14826 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
14827 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
14828   $as_echo_n "(cached) " >&6
14829 else
14830   if test "$cross_compiling" = yes; then :
14831   ac_cv_func_stat_empty_string_bug=yes
14832 else
14833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14834 /* end confdefs.h.  */
14835 $ac_includes_default
14836 int
14837 main ()
14838 {
14839 struct stat sbuf;
14840   return stat ("", &sbuf) == 0;
14841   ;
14842   return 0;
14843 }
14844 _ACEOF
14845 if ac_fn_c_try_run "$LINENO"; then :
14846   ac_cv_func_stat_empty_string_bug=no
14847 else
14848   ac_cv_func_stat_empty_string_bug=yes
14849 fi
14850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14851   conftest.$ac_objext conftest.beam conftest.$ac_ext
14852 fi
14853
14854 fi
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
14856 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
14857 if test $ac_cv_func_stat_empty_string_bug = yes; then
14858   case " $LIBOBJS " in
14859   *" stat.$ac_objext "* ) ;;
14860   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
14861  ;;
14862 esac
14863
14864
14865 cat >>confdefs.h <<_ACEOF
14866 #define HAVE_STAT_EMPTY_STRING_BUG 1
14867 _ACEOF
14868
14869 fi
14870
14871 for ac_func in basename memset select strdup strerror strndup strrchr strtoul usleep mkstemp
14872 do :
14873   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14874 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14875 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14876   cat >>confdefs.h <<_ACEOF
14877 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14878 _ACEOF
14879
14880 fi
14881 done
14882
14883
14884 # Switches.
14885 # Enable LFS (Large File Support)
14886 # Check whether --enable-largefile was given.
14887 if test "${enable_largefile+set}" = set; then :
14888   enableval=$enable_largefile;
14889 fi
14890
14891 if test "$enable_largefile" != no; then
14892
14893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14894 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14895 if ${ac_cv_sys_largefile_CC+:} false; then :
14896   $as_echo_n "(cached) " >&6
14897 else
14898   ac_cv_sys_largefile_CC=no
14899      if test "$GCC" != yes; then
14900        ac_save_CC=$CC
14901        while :; do
14902          # IRIX 6.2 and later do not support large files by default,
14903          # so use the C compiler's -n32 option if that helps.
14904          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14905 /* end confdefs.h.  */
14906 #include <sys/types.h>
14907  /* Check that off_t can represent 2**63 - 1 correctly.
14908     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14909     since some C++ compilers masquerading as C compilers
14910     incorrectly reject 9223372036854775807.  */
14911 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14912   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14913                        && LARGE_OFF_T % 2147483647 == 1)
14914                       ? 1 : -1];
14915 int
14916 main ()
14917 {
14918
14919   ;
14920   return 0;
14921 }
14922 _ACEOF
14923          if ac_fn_c_try_compile "$LINENO"; then :
14924   break
14925 fi
14926 rm -f core conftest.err conftest.$ac_objext
14927          CC="$CC -n32"
14928          if ac_fn_c_try_compile "$LINENO"; then :
14929   ac_cv_sys_largefile_CC=' -n32'; break
14930 fi
14931 rm -f core conftest.err conftest.$ac_objext
14932          break
14933        done
14934        CC=$ac_save_CC
14935        rm -f conftest.$ac_ext
14936     fi
14937 fi
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14939 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14940   if test "$ac_cv_sys_largefile_CC" != no; then
14941     CC=$CC$ac_cv_sys_largefile_CC
14942   fi
14943
14944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14945 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14946 if ${ac_cv_sys_file_offset_bits+:} false; then :
14947   $as_echo_n "(cached) " >&6
14948 else
14949   while :; do
14950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14951 /* end confdefs.h.  */
14952 #include <sys/types.h>
14953  /* Check that off_t can represent 2**63 - 1 correctly.
14954     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14955     since some C++ compilers masquerading as C compilers
14956     incorrectly reject 9223372036854775807.  */
14957 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14958   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14959                        && LARGE_OFF_T % 2147483647 == 1)
14960                       ? 1 : -1];
14961 int
14962 main ()
14963 {
14964
14965   ;
14966   return 0;
14967 }
14968 _ACEOF
14969 if ac_fn_c_try_compile "$LINENO"; then :
14970   ac_cv_sys_file_offset_bits=no; break
14971 fi
14972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14974 /* end confdefs.h.  */
14975 #define _FILE_OFFSET_BITS 64
14976 #include <sys/types.h>
14977  /* Check that off_t can represent 2**63 - 1 correctly.
14978     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14979     since some C++ compilers masquerading as C compilers
14980     incorrectly reject 9223372036854775807.  */
14981 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14982   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14983                        && LARGE_OFF_T % 2147483647 == 1)
14984                       ? 1 : -1];
14985 int
14986 main ()
14987 {
14988
14989   ;
14990   return 0;
14991 }
14992 _ACEOF
14993 if ac_fn_c_try_compile "$LINENO"; then :
14994   ac_cv_sys_file_offset_bits=64; break
14995 fi
14996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14997   ac_cv_sys_file_offset_bits=unknown
14998   break
14999 done
15000 fi
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15002 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15003 case $ac_cv_sys_file_offset_bits in #(
15004   no | unknown) ;;
15005   *)
15006 cat >>confdefs.h <<_ACEOF
15007 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15008 _ACEOF
15009 ;;
15010 esac
15011 rm -rf conftest*
15012   if test $ac_cv_sys_file_offset_bits = unknown; then
15013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15014 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15015 if ${ac_cv_sys_large_files+:} false; then :
15016   $as_echo_n "(cached) " >&6
15017 else
15018   while :; do
15019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15020 /* end confdefs.h.  */
15021 #include <sys/types.h>
15022  /* Check that off_t can represent 2**63 - 1 correctly.
15023     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15024     since some C++ compilers masquerading as C compilers
15025     incorrectly reject 9223372036854775807.  */
15026 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15027   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15028                        && LARGE_OFF_T % 2147483647 == 1)
15029                       ? 1 : -1];
15030 int
15031 main ()
15032 {
15033
15034   ;
15035   return 0;
15036 }
15037 _ACEOF
15038 if ac_fn_c_try_compile "$LINENO"; then :
15039   ac_cv_sys_large_files=no; break
15040 fi
15041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043 /* end confdefs.h.  */
15044 #define _LARGE_FILES 1
15045 #include <sys/types.h>
15046  /* Check that off_t can represent 2**63 - 1 correctly.
15047     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15048     since some C++ compilers masquerading as C compilers
15049     incorrectly reject 9223372036854775807.  */
15050 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15051   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15052                        && LARGE_OFF_T % 2147483647 == 1)
15053                       ? 1 : -1];
15054 int
15055 main ()
15056 {
15057
15058   ;
15059   return 0;
15060 }
15061 _ACEOF
15062 if ac_fn_c_try_compile "$LINENO"; then :
15063   ac_cv_sys_large_files=1; break
15064 fi
15065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15066   ac_cv_sys_large_files=unknown
15067   break
15068 done
15069 fi
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15071 $as_echo "$ac_cv_sys_large_files" >&6; }
15072 case $ac_cv_sys_large_files in #(
15073   no | unknown) ;;
15074   *)
15075 cat >>confdefs.h <<_ACEOF
15076 #define _LARGE_FILES $ac_cv_sys_large_files
15077 _ACEOF
15078 ;;
15079 esac
15080 rm -rf conftest*
15081   fi
15082
15083
15084 fi
15085
15086 # Stick in "-Werror" if you want to be more aggressive.
15087 # (No need to use AC_SUBST on this default substituted environment variable.)
15088 # Only add these additional CFLAGS if we are using GCC. Other C compilers may
15089 # not support them.
15090 if test x"$GCC" == "xyes" ; then
15091         CFLAGS="$CFLAGS -Wall -Wmissing-prototypes"
15092 fi
15093
15094 # Output files
15095
15096 # Create a stdint.h-like file containing size-specific integer definitions
15097 # that will always be available. The <stdint.h> file is required by the
15098 # library, but we provide this anyway because the libptp2 stuff wants this
15099 # file.
15100
15101 ac_dir=`$as_dirname -- "src/_stdint.h" ||
15102 $as_expr X"src/_stdint.h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15103          X"src/_stdint.h" : 'X\(//\)[^/]' \| \
15104          X"src/_stdint.h" : 'X\(//\)$' \| \
15105          X"src/_stdint.h" : 'X\(/\)' \| . 2>/dev/null ||
15106 $as_echo X"src/_stdint.h" |
15107     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15108             s//\1/
15109             q
15110           }
15111           /^X\(\/\/\)[^/].*/{
15112             s//\1/
15113             q
15114           }
15115           /^X\(\/\/\)$/{
15116             s//\1/
15117             q
15118           }
15119           /^X\(\/\).*/{
15120             s//\1/
15121             q
15122           }
15123           s/.*/./; q'`
15124 if test "$ac_dir" != "src/_stdint.h" && test "$ac_dir" != .; then
15125   # The file is in a subdirectory.
15126   test ! -d "$ac_dir" && (as_dir="$ac_dir"; as_fn_mkdir_p)
15127 fi
15128
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in stdint.h" >&5
15130 $as_echo_n "checking for uint8_t in stdint.h... " >&6; }
15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h.  */
15133 #include <stdint.h>
15134 _ACEOF
15135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15136   $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
15137   ac_cv_type_uint8_t=yes
15138 else
15139   ac_cv_type_uint8_t=no
15140 fi
15141 rm -f conftest*
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
15143 $as_echo "$ac_cv_type_uint8_t" >&6; }
15144 if test $ac_cv_type_uint8_t = yes; then
15145
15146 cat > "src/_stdint.h" <<EOF
15147 /* This file is generated automatically by configure */
15148 #include <stdint.h>
15149 EOF
15150 else
15151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in inttypes.h" >&5
15152 $as_echo_n "checking for uint8_t in inttypes.h... " >&6; }
15153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15154 /* end confdefs.h.  */
15155 #include <inttypes.h>
15156 _ACEOF
15157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15158   $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
15159   ac_cv_type_uint8_t=yes
15160 else
15161   ac_cv_type_uint8_t=no
15162 fi
15163 rm -f conftest*
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
15165 $as_echo "$ac_cv_type_uint8_t" >&6; }
15166 if test $ac_cv_type_uint8_t = yes; then
15167   cat > "src/_stdint.h" <<EOF
15168 /* This file is generated automatically by configure */
15169 #include <inttypes.h>
15170 EOF
15171 else
15172   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in sys/types.h" >&5
15173 $as_echo_n "checking for uint8_t in sys/types.h... " >&6; }
15174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15175 /* end confdefs.h.  */
15176 #include <sys/types.h>
15177 _ACEOF
15178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15179   $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
15180   ac_cv_type_uint8_t=yes
15181 else
15182   ac_cv_type_uint8_t=no
15183 fi
15184 rm -f conftest*
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
15186 $as_echo "$ac_cv_type_uint8_t" >&6; }
15187 if test $ac_cv_type_uint8_t = yes; then
15188   cat > "src/_stdint.h" <<EOF
15189 /* This file is generated automatically by configure */
15190 #include <sys/types.h>
15191 EOF
15192 else
15193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int8_t in sys/types.h" >&5
15194 $as_echo_n "checking for u_int8_t in sys/types.h... " >&6; }
15195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15196 /* end confdefs.h.  */
15197 #include <sys/types.h>
15198 _ACEOF
15199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15200   $EGREP "(^|[^a-zA-Z_0-9])u_int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
15201   ac_cv_type_u_int8_t=yes
15202 else
15203   ac_cv_type_u_int8_t=no
15204 fi
15205 rm -f conftest*
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int8_t" >&5
15207 $as_echo "$ac_cv_type_u_int8_t" >&6; }
15208 if test $ac_cv_type_u_int8_t = yes; then
15209   cat > "src/_stdint.h" <<EOF
15210 /* This file is generated automatically by configure */
15211 #ifndef __STDINT_H
15212 #define __STDINT_H
15213 #include <sys/types.h>
15214 typedef u_int8_t uint8_t;
15215 typedef u_int16_t uint16_t;
15216 typedef u_int32_t uint32_t;
15217 EOF
15218
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t in sys/types.h" >&5
15220 $as_echo_n "checking for u_int64_t in sys/types.h... " >&6; }
15221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15222 /* end confdefs.h.  */
15223 #include <sys/types.h>
15224 _ACEOF
15225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15226   $EGREP "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
15227   ac_cv_type_u_int64_t=yes
15228 else
15229   ac_cv_type_u_int64_t=no
15230 fi
15231 rm -f conftest*
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int64_t" >&5
15233 $as_echo "$ac_cv_type_u_int64_t" >&6; }
15234 if test $ac_cv_type_u_int64_t = yes; then
15235   cat >> "src/_stdint.h" <<EOF
15236 typedef u_int64_t uint64_t;
15237 #endif /*!__STDINT_H*/
15238 EOF
15239 else
15240   cat >> "src/_stdint.h" <<EOF
15241 /* 64-bit types are not available on this system */
15242 /* typedef u_int64_t uint64_t; */
15243 #endif /*!__STDINT_H*/
15244 EOF
15245 fi
15246
15247
15248
15249 else
15250   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I can't find size-specific integer definitions on this system" >&5
15251 $as_echo "$as_me: WARNING: I can't find size-specific integer definitions on this system" >&2;}
15252 if test -e "src/_stdint.h" ; then
15253         rm -f "src/_stdint.h"
15254 fi
15255
15256 fi
15257
15258 fi
15259
15260 fi
15261
15262 fi
15263
15264
15265 # Create a header file containing NetBSD-style byte swapping macros.
15266 # This m4 macros has caused severe pain, I am considering creating a
15267 # hard-coded byte swapper that will be eternally portable.
15268
15269 ac_dir=`$as_dirname -- "src/gphoto2-endian.h" ||
15270 $as_expr X"src/gphoto2-endian.h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15271          X"src/gphoto2-endian.h" : 'X\(//\)[^/]' \| \
15272          X"src/gphoto2-endian.h" : 'X\(//\)$' \| \
15273          X"src/gphoto2-endian.h" : 'X\(/\)' \| . 2>/dev/null ||
15274 $as_echo X"src/gphoto2-endian.h" |
15275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15276             s//\1/
15277             q
15278           }
15279           /^X\(\/\/\)[^/].*/{
15280             s//\1/
15281             q
15282           }
15283           /^X\(\/\/\)$/{
15284             s//\1/
15285             q
15286           }
15287           /^X\(\/\).*/{
15288             s//\1/
15289             q
15290           }
15291           s/.*/./; q'`
15292 if test "$ac_dir" != "src/gphoto2-endian.h" && test "$ac_dir" != .; then
15293   # The file is in a subdirectory.
15294   test ! -d "$ac_dir" && (as_dir="$ac_dir"; as_fn_mkdir_p)
15295 fi
15296
15297 # We're only interested in the target CPU, but it's not always set
15298 effective_target="$target"
15299 if test "x$effective_target" = xNONE -o "x$effective_target" = x ; then
15300         effective_target="$host"
15301 fi
15302
15303
15304 cat > "src/gphoto2-endian.h" << EOF
15305 /* This file is generated automatically by configure */
15306 /* It is valid only for the system type ${effective_target} */
15307
15308 #ifndef __BYTEORDER_H
15309 #define __BYTEORDER_H
15310
15311 EOF
15312
15313  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15314 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15315 if ${ac_cv_c_bigendian+:} false; then :
15316   $as_echo_n "(cached) " >&6
15317 else
15318   ac_cv_c_bigendian=unknown
15319     # See if we're dealing with a universal compiler.
15320     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321 /* end confdefs.h.  */
15322 #ifndef __APPLE_CC__
15323                not a universal capable compiler
15324              #endif
15325              typedef int dummy;
15326
15327 _ACEOF
15328 if ac_fn_c_try_compile "$LINENO"; then :
15329
15330         # Check for potential -arch flags.  It is not universal unless
15331         # there are at least two -arch flags with different values.
15332         ac_arch=
15333         ac_prev=
15334         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15335          if test -n "$ac_prev"; then
15336            case $ac_word in
15337              i?86 | x86_64 | ppc | ppc64)
15338                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15339                  ac_arch=$ac_word
15340                else
15341                  ac_cv_c_bigendian=universal
15342                  break
15343                fi
15344                ;;
15345            esac
15346            ac_prev=
15347          elif test "x$ac_word" = "x-arch"; then
15348            ac_prev=arch
15349          fi
15350        done
15351 fi
15352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15353     if test $ac_cv_c_bigendian = unknown; then
15354       # See if sys/param.h defines the BYTE_ORDER macro.
15355       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15356 /* end confdefs.h.  */
15357 #include <sys/types.h>
15358              #include <sys/param.h>
15359
15360 int
15361 main ()
15362 {
15363 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15364                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15365                      && LITTLE_ENDIAN)
15366               bogus endian macros
15367              #endif
15368
15369   ;
15370   return 0;
15371 }
15372 _ACEOF
15373 if ac_fn_c_try_compile "$LINENO"; then :
15374   # It does; now see whether it defined to BIG_ENDIAN or not.
15375          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h.  */
15377 #include <sys/types.h>
15378                 #include <sys/param.h>
15379
15380 int
15381 main ()
15382 {
15383 #if BYTE_ORDER != BIG_ENDIAN
15384                  not big endian
15385                 #endif
15386
15387   ;
15388   return 0;
15389 }
15390 _ACEOF
15391 if ac_fn_c_try_compile "$LINENO"; then :
15392   ac_cv_c_bigendian=yes
15393 else
15394   ac_cv_c_bigendian=no
15395 fi
15396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15397 fi
15398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15399     fi
15400     if test $ac_cv_c_bigendian = unknown; then
15401       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15402       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15403 /* end confdefs.h.  */
15404 #include <limits.h>
15405
15406 int
15407 main ()
15408 {
15409 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15410               bogus endian macros
15411              #endif
15412
15413   ;
15414   return 0;
15415 }
15416 _ACEOF
15417 if ac_fn_c_try_compile "$LINENO"; then :
15418   # It does; now see whether it defined to _BIG_ENDIAN or not.
15419          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15420 /* end confdefs.h.  */
15421 #include <limits.h>
15422
15423 int
15424 main ()
15425 {
15426 #ifndef _BIG_ENDIAN
15427                  not big endian
15428                 #endif
15429
15430   ;
15431   return 0;
15432 }
15433 _ACEOF
15434 if ac_fn_c_try_compile "$LINENO"; then :
15435   ac_cv_c_bigendian=yes
15436 else
15437   ac_cv_c_bigendian=no
15438 fi
15439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15440 fi
15441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15442     fi
15443     if test $ac_cv_c_bigendian = unknown; then
15444       # Compile a test program.
15445       if test "$cross_compiling" = yes; then :
15446   # Try to guess by grepping values from an object file.
15447          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448 /* end confdefs.h.  */
15449 short int ascii_mm[] =
15450                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15451                 short int ascii_ii[] =
15452                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15453                 int use_ascii (int i) {
15454                   return ascii_mm[i] + ascii_ii[i];
15455                 }
15456                 short int ebcdic_ii[] =
15457                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15458                 short int ebcdic_mm[] =
15459                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15460                 int use_ebcdic (int i) {
15461                   return ebcdic_mm[i] + ebcdic_ii[i];
15462                 }
15463                 extern int foo;
15464
15465 int
15466 main ()
15467 {
15468 return use_ascii (foo) == use_ebcdic (foo);
15469   ;
15470   return 0;
15471 }
15472 _ACEOF
15473 if ac_fn_c_try_compile "$LINENO"; then :
15474   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15475               ac_cv_c_bigendian=yes
15476             fi
15477             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15478               if test "$ac_cv_c_bigendian" = unknown; then
15479                 ac_cv_c_bigendian=no
15480               else
15481                 # finding both strings is unlikely to happen, but who knows?
15482                 ac_cv_c_bigendian=unknown
15483               fi
15484             fi
15485 fi
15486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15487 else
15488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489 /* end confdefs.h.  */
15490 $ac_includes_default
15491 int
15492 main ()
15493 {
15494
15495              /* Are we little or big endian?  From Harbison&Steele.  */
15496              union
15497              {
15498                long int l;
15499                char c[sizeof (long int)];
15500              } u;
15501              u.l = 1;
15502              return u.c[sizeof (long int) - 1] == 1;
15503
15504   ;
15505   return 0;
15506 }
15507 _ACEOF
15508 if ac_fn_c_try_run "$LINENO"; then :
15509   ac_cv_c_bigendian=no
15510 else
15511   ac_cv_c_bigendian=yes
15512 fi
15513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15514   conftest.$ac_objext conftest.beam conftest.$ac_ext
15515 fi
15516
15517     fi
15518 fi
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15520 $as_echo "$ac_cv_c_bigendian" >&6; }
15521  case $ac_cv_c_bigendian in #(
15522    yes)
15523      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15524 ;; #(
15525    no)
15526       ;; #(
15527    universal)
15528
15529 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15530
15531      ;; #(
15532    *)
15533      as_fn_error $? "unknown endianness
15534  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15535  esac
15536
15537
15538
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le32toh in machine/endian.h" >&5
15540 $as_echo_n "checking for le32toh in machine/endian.h... " >&6; }
15541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15542 /* end confdefs.h.  */
15543
15544 #include <machine/endian.h>
15545 #ifdef le32toh
15546         symbol is present
15547 #endif
15548
15549 _ACEOF
15550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15551   $EGREP "symbol is present|\<le32toh\>" >/dev/null 2>&1; then :
15552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15553 $as_echo "yes" >&6; }
15554 HAVE_LE32TOH=1
15555  cat >> "src/gphoto2-endian.h" << EOF
15556 /* extended byte swapping macros are already available */
15557 #include <machine/endian.h>
15558
15559 EOF
15560
15561 else
15562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15563 $as_echo "no" >&6; }
15564
15565
15566
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ntohl in arpa/inet.h" >&5
15568 $as_echo_n "checking for ntohl in arpa/inet.h... " >&6; }
15569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15570 /* end confdefs.h.  */
15571
15572 #include <arpa/inet.h>
15573 #ifdef ntohl
15574         symbol is present
15575 #endif
15576
15577 _ACEOF
15578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15579   $EGREP "symbol is present|\<ntohl\>" >/dev/null 2>&1; then :
15580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15581 $as_echo "yes" >&6; }
15582 cat >> "src/gphoto2-endian.h" << EOF
15583 /* ntohl and relatives live here */
15584 #include <arpa/inet.h>
15585
15586 EOF
15587
15588 else
15589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15590 $as_echo "no" >&6; }
15591
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ntohl in netinet/in.h" >&5
15593 $as_echo_n "checking for ntohl in netinet/in.h... " >&6; }
15594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15595 /* end confdefs.h.  */
15596
15597 #include <netinet/in.h>
15598 #ifdef ntohl
15599         symbol is present
15600 #endif
15601
15602 _ACEOF
15603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15604   $EGREP "symbol is present|\<ntohl\>" >/dev/null 2>&1; then :
15605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15606 $as_echo "yes" >&6; }
15607 cat >> "src/gphoto2-endian.h" << EOF
15608 /* ntohl and relatives live here */
15609 #include <netinet/in.h>
15610
15611 EOF
15612
15613 else
15614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15615 $as_echo "no" >&6; }
15616 true
15617
15618 fi
15619 rm -f conftest*
15620
15621
15622 fi
15623 rm -f conftest*
15624
15625
15626
15627 fi
15628 rm -f conftest*
15629
15630
15631
15632
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for swap32 in machine/endian.h" >&5
15634 $as_echo_n "checking for swap32 in machine/endian.h... " >&6; }
15635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15636 /* end confdefs.h.  */
15637
15638 #include <machine/endian.h>
15639 #ifdef swap32
15640         symbol is present
15641 #endif
15642
15643 _ACEOF
15644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15645   $EGREP "symbol is present|\<swap32\>" >/dev/null 2>&1; then :
15646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15647 $as_echo "yes" >&6; }
15648 cat >> "src/gphoto2-endian.h" << EOF
15649 /* swap32 and swap16 are defined in machine/endian.h */
15650
15651 EOF
15652
15653 else
15654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15655 $as_echo "no" >&6; }
15656
15657
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap_32 in byteswap.h" >&5
15659 $as_echo_n "checking for bswap_32 in byteswap.h... " >&6; }
15660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15661 /* end confdefs.h.  */
15662
15663 #include <byteswap.h>
15664 #ifdef bswap_32
15665         symbol is present
15666 #endif
15667
15668 _ACEOF
15669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15670   $EGREP "symbol is present|\<bswap_32\>" >/dev/null 2>&1; then :
15671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15672 $as_echo "yes" >&6; }
15673 cat >> "src/gphoto2-endian.h" << EOF
15674 /* Define generic byte swapping functions */
15675 #include <byteswap.h>
15676 #define swap16(x) bswap_16(x)
15677 #define swap32(x) bswap_32(x)
15678 #define swap64(x) bswap_64(x)
15679
15680 EOF
15681
15682 else
15683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15684 $as_echo "no" >&6; }
15685
15686
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap32 in machine/endian.h" >&5
15688 $as_echo_n "checking for bswap32 in machine/endian.h... " >&6; }
15689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15690 /* end confdefs.h.  */
15691
15692 #include <machine/endian.h>
15693 #ifdef bswap32
15694         symbol is present
15695 #endif
15696
15697 _ACEOF
15698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15699   $EGREP "symbol is present|\<bswap32\>" >/dev/null 2>&1; then :
15700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15701 $as_echo "yes" >&6; }
15702          cat >> "src/gphoto2-endian.h" << EOF
15703 /* Define generic byte swapping functions */
15704 EOF
15705         if test "$HAVE_LE32TOH" != "1"; then
15706                 echo '#include <machine/endian.h>'>> "src/gphoto2-endian.h"
15707         fi
15708 cat >> "src/gphoto2-endian.h" << EOF
15709 #define swap16(x) bswap16(x)
15710 #define swap32(x) bswap32(x)
15711 #define swap64(x) bswap64(x)
15712
15713 EOF
15714
15715 else
15716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15717 $as_echo "no" >&6; }
15718
15719
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __byte_swap_long in sys/types.h" >&5
15721 $as_echo_n "checking for __byte_swap_long in sys/types.h... " >&6; }
15722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15723 /* end confdefs.h.  */
15724
15725 #include <sys/types.h>
15726 #ifdef __byte_swap_long
15727         symbol is present
15728 #endif
15729
15730 _ACEOF
15731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15732   $EGREP "symbol is present|\<__byte_swap_long\>" >/dev/null 2>&1; then :
15733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15734 $as_echo "yes" >&6; }
15735 cat >> "src/gphoto2-endian.h" << EOF
15736 /* Define generic byte swapping functions */
15737 #include <sys/types.h>
15738 #define swap16(x) __byte_swap_word(x)
15739 #define swap32(x) __byte_swap_long(x)
15740 /* No optimized 64 bit byte swapping macro is available */
15741 #define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\
15742                               ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\
15743                               ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\
15744                               ((uint64_t)(x) << 8)  & 0x000000ff00000000ULL | \\
15745                               ((x) >> 8)  & 0x00000000ff000000ULL | \\
15746                               ((x) >> 24) & 0x0000000000ff0000ULL | \\
15747                               ((x) >> 40) & 0x000000000000ff00ULL | \\
15748                               ((x) >> 56) & 0x00000000000000ffULL))
15749
15750 EOF
15751
15752 else
15753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15754 $as_echo "no" >&6; }
15755
15756
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NXSwapLong in machine/byte_order.h" >&5
15758 $as_echo_n "checking for NXSwapLong in machine/byte_order.h... " >&6; }
15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h.  */
15761
15762 #include <machine/byte_order.h>
15763 #ifdef NXSwapLong
15764         symbol is present
15765 #endif
15766
15767 _ACEOF
15768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15769   $EGREP "symbol is present|\<NXSwapLong\>" >/dev/null 2>&1; then :
15770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15771 $as_echo "yes" >&6; }
15772 cat >> "src/gphoto2-endian.h" << EOF
15773 /* Define generic byte swapping functions */
15774 #include <machine/byte_order.h>
15775 #define swap16(x) NXSwapShort(x)
15776 #define swap32(x) NXSwapLong(x)
15777 #define swap64(x) NXSwapLongLong(x)
15778
15779 EOF
15780
15781 else
15782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15783 $as_echo "no" >&6; }
15784
15785         if test $ac_cv_c_bigendian = yes; then
15786                 cat >> "src/gphoto2-endian.h" << EOF
15787 /* No other byte swapping functions are available on this big-endian system */
15788 #define swap16(x)       ((uint16_t)(((x) << 8) | ((uint16_t)(x) >> 8)))
15789 #define swap32(x)       ((uint32_t)(((uint32_t)(x) << 24) & 0xff000000UL | \\
15790                                     ((uint32_t)(x) << 8)  & 0x00ff0000UL | \\
15791                                     ((x) >> 8)  & 0x0000ff00UL | \\
15792                                     ((x) >> 24) & 0x000000ffUL))
15793 #define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\
15794                               ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\
15795                               ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\
15796                               ((uint64_t)(x) << 8)  & 0x000000ff00000000ULL | \\
15797                               ((x) >> 8)  & 0x00000000ff000000ULL | \\
15798                               ((x) >> 24) & 0x0000000000ff0000ULL | \\
15799                               ((x) >> 40) & 0x000000000000ff00ULL | \\
15800                               ((x) >> 56) & 0x00000000000000ffULL))
15801
15802 EOF
15803         else
15804  cat >> "src/gphoto2-endian.h" << EOF
15805 /* Use these as generic byteswapping macros on this little endian system */
15806 #define swap16(x)               ntohs(x)
15807 #define swap32(x)               ntohl(x)
15808 /* No optimized 64 bit byte swapping macro is available */
15809 #define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\
15810                               ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\
15811                               ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\
15812                               ((uint64_t)(x) << 8)  & 0x000000ff00000000ULL | \\
15813                               ((x) >> 8)  & 0x00000000ff000000ULL | \\
15814                               ((x) >> 24) & 0x0000000000ff0000ULL | \\
15815                               ((x) >> 40) & 0x000000000000ff00ULL | \\
15816                               ((x) >> 56) & 0x00000000000000ffULL))
15817
15818 EOF
15819         fi
15820
15821
15822 fi
15823 rm -f conftest*
15824
15825
15826
15827 fi
15828 rm -f conftest*
15829
15830
15831
15832 fi
15833 rm -f conftest*
15834
15835
15836
15837 fi
15838 rm -f conftest*
15839
15840
15841
15842 fi
15843 rm -f conftest*
15844
15845
15846
15847
15848 if test "$HAVE_LE32TOH" != "1"; then
15849  cat >> "src/gphoto2-endian.h" << EOF
15850 /* The byte swapping macros have the form: */
15851 /*   EENN[a]toh or htoEENN[a] where EE is be (big endian) or */
15852 /* le (little-endian), NN is 16 or 32 (number of bits) and a, */
15853 /* if present, indicates that the endian side is a pointer to an */
15854 /* array of uint8_t bytes instead of an integer of the specified length. */
15855 /* h refers to the host's ordering method. */
15856
15857 /* So, to convert a 32-bit integer stored in a buffer in little-endian */
15858 /* format into a uint32_t usable on this machine, you could use: */
15859 /*   uint32_t value = le32atoh(&buf[3]); */
15860 /* To put that value back into the buffer, you could use: */
15861 /*   htole32a(&buf[3], value); */
15862
15863 /* Define aliases for the standard byte swapping macros */
15864 /* Arguments to these macros must be properly aligned on natural word */
15865 /* boundaries in order to work properly on all architectures */
15866 #ifndef htobe16
15867 # define htobe16(x) htons(x)
15868 #endif
15869 #ifndef htobe32
15870 # define htobe32(x) htonl(x)
15871 #endif
15872 #ifndef be16toh
15873 # define be16toh(x) ntohs(x)
15874 #endif
15875 #ifndef be32toh
15876 # define be32toh(x) ntohl(x)
15877 #endif
15878
15879 #define HTOBE16(x) (x) = htobe16(x)
15880 #define HTOBE32(x) (x) = htobe32(x)
15881 #define BE32TOH(x) (x) = be32toh(x)
15882 #define BE16TOH(x) (x) = be16toh(x)
15883
15884 EOF
15885
15886  if test $ac_cv_c_bigendian = yes; then
15887   cat >> "src/gphoto2-endian.h" << EOF
15888 /* Define our own extended byte swapping macros for big-endian machines */
15889 #ifndef htole16
15890 # define htole16(x)      swap16(x)
15891 #endif
15892 #ifndef htole32
15893 # define htole32(x)      swap32(x)
15894 #endif
15895 #ifndef le16toh
15896 # define le16toh(x)      swap16(x)
15897 #endif
15898 #ifndef le32toh
15899 # define le32toh(x)      swap32(x)
15900 #endif
15901 #ifndef le64toh
15902 # define le64toh(x)      swap64(x)
15903 #endif
15904
15905 #ifndef htobe64
15906 # define htobe64(x)      (x)
15907 #endif
15908 #ifndef be64toh
15909 # define be64toh(x)      (x)
15910 #endif
15911
15912 #define HTOLE16(x)      (x) = htole16(x)
15913 #define HTOLE32(x)      (x) = htole32(x)
15914 #define LE16TOH(x)      (x) = le16toh(x)
15915 #define LE32TOH(x)      (x) = le32toh(x)
15916 #define LE64TOH(x)      (x) = le64toh(x)
15917
15918 #define HTOBE64(x)      (void) (x)
15919 #define BE64TOH(x)      (void) (x)
15920
15921 EOF
15922  else
15923   cat >> "src/gphoto2-endian.h" << EOF
15924 /* On little endian machines, these macros are null */
15925 #ifndef htole16
15926 # define htole16(x)      (x)
15927 #endif
15928 #ifndef htole32
15929 # define htole32(x)      (x)
15930 #endif
15931 #ifndef htole64
15932 # define htole64(x)      (x)
15933 #endif
15934 #ifndef le16toh
15935 # define le16toh(x)      (x)
15936 #endif
15937 #ifndef le32toh
15938 # define le32toh(x)      (x)
15939 #endif
15940 #ifndef le64toh
15941 # define le64toh(x)      (x)
15942 #endif
15943
15944 #define HTOLE16(x)      (void) (x)
15945 #define HTOLE32(x)      (void) (x)
15946 #define HTOLE64(x)      (void) (x)
15947 #define LE16TOH(x)      (void) (x)
15948 #define LE32TOH(x)      (void) (x)
15949 #define LE64TOH(x)      (void) (x)
15950
15951 /* These don't have standard aliases */
15952 #ifndef htobe64
15953 # define htobe64(x)      swap64(x)
15954 #endif
15955 #ifndef be64toh
15956 # define be64toh(x)      swap64(x)
15957 #endif
15958
15959 #define HTOBE64(x)      (x) = htobe64(x)
15960 #define BE64TOH(x)      (x) = be64toh(x)
15961
15962 EOF
15963  fi
15964 fi
15965
15966 cat >> "src/gphoto2-endian.h" << EOF
15967 /* Define the C99 standard length-specific integer types */
15968 #include <_stdint.h>
15969
15970 EOF
15971
15972 case "${effective_target}" in
15973  i[3456]86-*)
15974   cat >> "src/gphoto2-endian.h" << EOF
15975 /* Here are some macros to create integers from a byte array */
15976 /* These are used to get and put integers from/into a uint8_t array */
15977 /* with a specific endianness.  This is the most portable way to generate */
15978 /* and read messages to a network or serial device.  Each member of a */
15979 /* packet structure must be handled separately. */
15980
15981 /* The i386 and compatibles can handle unaligned memory access, */
15982 /* so use the optimized macros above to do this job */
15983 #ifndef be16atoh
15984 # define be16atoh(x)     be16toh(*(uint16_t*)(x))
15985 #endif
15986 #ifndef be32atoh
15987 # define be32atoh(x)     be32toh(*(uint32_t*)(x))
15988 #endif
15989 #ifndef be64atoh
15990 # define be64atoh(x)     be64toh(*(uint64_t*)(x))
15991 #endif
15992 #ifndef le16atoh
15993 # define le16atoh(x)     le16toh(*(uint16_t*)(x))
15994 #endif
15995 #ifndef le32atoh
15996 # define le32atoh(x)     le32toh(*(uint32_t*)(x))
15997 #endif
15998 #ifndef le64atoh
15999 # define le64atoh(x)     le64toh(*(uint64_t*)(x))
16000 #endif
16001
16002 #ifndef htob16a
16003 # define htobe16a(a,x)   *(uint16_t*)(a) = htobe16(x)
16004 #endif
16005 #ifndef htobe32a
16006 # define htobe32a(a,x)   *(uint32_t*)(a) = htobe32(x)
16007 #endif
16008 #ifndef htobe64a
16009 # define htobe64a(a,x)   *(uint64_t*)(a) = htobe64(x)
16010 #endif
16011 #ifndef htole16a
16012 # define htole16a(a,x)   *(uint16_t*)(a) = htole16(x)
16013 #endif
16014 #ifndef htole32a
16015 # define htole32a(a,x)   *(uint32_t*)(a) = htole32(x)
16016 #endif
16017 #ifndef htole64a
16018 # define htole64a(a,x)   *(uint64_t*)(a) = htole64(x)
16019 #endif
16020
16021 EOF
16022   ;;
16023
16024  *)
16025   cat >> "src/gphoto2-endian.h" << EOF
16026 /* Here are some macros to create integers from a byte array */
16027 /* These are used to get and put integers from/into a uint8_t array */
16028 /* with a specific endianness.  This is the most portable way to generate */
16029 /* and read messages to a network or serial device.  Each member of a */
16030 /* packet structure must be handled separately. */
16031
16032 /* Non-optimized but portable macros */
16033 #define be16atoh(x)     ((uint16_t)(((x)[0]<<8)|(x)[1]))
16034 #define be32atoh(x)     ((uint32_t)(((x)[0]<<24)|((x)[1]<<16)|((x)[2]<<8)|(x)[3]))
16035 #define be64atoh_x(x,off,shift)         (((uint64_t)((x)[off]))<<shift)
16036 #define be64atoh(x)     ((uint64_t)(be64atoh_x(x,0,56)|be64atoh_x(x,1,48)|be64atoh_x(x,2,40)| \\
16037         be64atoh_x(x,3,32)|be64atoh_x(x,4,24)|be64atoh_x(x,5,16)|be64atoh_x(x,6,8)|((x)[7])))
16038 #define le16atoh(x)     ((uint16_t)(((x)[1]<<8)|(x)[0]))
16039 #define le32atoh(x)     ((uint32_t)(((x)[3]<<24)|((x)[2]<<16)|((x)[1]<<8)|(x)[0]))
16040 #define le64atoh_x(x,off,shift) (((uint64_t)(x)[off])<<shift)
16041 #define le64atoh(x)     ((uint64_t)(le64atoh_x(x,7,56)|le64atoh_x(x,6,48)|le64atoh_x(x,5,40)| \\
16042         le64atoh_x(x,4,32)|le64atoh_x(x,3,24)|le64atoh_x(x,2,16)|le64atoh_x(x,1,8)|((x)[0])))
16043
16044 #define htobe16a(a,x)   (a)[0]=(uint8_t)((x)>>8), (a)[1]=(uint8_t)(x)
16045 #define htobe32a(a,x)   (a)[0]=(uint8_t)((x)>>24), (a)[1]=(uint8_t)((x)>>16), \\
16046         (a)[2]=(uint8_t)((x)>>8), (a)[3]=(uint8_t)(x)
16047 #define htobe64a(a,x)   (a)[0]=(uint8_t)((x)>>56), (a)[1]=(uint8_t)((x)>>48), \\
16048         (a)[2]=(uint8_t)((x)>>40), (a)[3]=(uint8_t)((x)>>32), \\
16049         (a)[4]=(uint8_t)((x)>>24), (a)[5]=(uint8_t)((x)>>16), \\
16050         (a)[6]=(uint8_t)((x)>>8), (a)[7]=(uint8_t)(x)
16051 #define htole16a(a,x)   (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x)
16052 #define htole32a(a,x)   (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\
16053         (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x)
16054 #define htole64a(a,x)   (a)[7]=(uint8_t)((x)>>56), (a)[6]=(uint8_t)((x)>>48), \\
16055         (a)[5]=(uint8_t)((x)>>40), (a)[4]=(uint8_t)((x)>>32), \\
16056         (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\
16057         (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x)
16058
16059 EOF
16060   ;;
16061 esac
16062
16063
16064 cat >> "src/gphoto2-endian.h" << EOF
16065 #endif /*__BYTEORDER_H*/
16066 EOF
16067
16068 ac_config_files="$ac_config_files src/libmtp.h doc/Doxyfile Makefile doc/Makefile src/Makefile examples/Makefile util/Makefile libmtp.sh hotplug.sh libmtp.pc"
16069
16070 cat >confcache <<\_ACEOF
16071 # This file is a shell script that caches the results of configure
16072 # tests run on this system so they can be shared between configure
16073 # scripts and configure runs, see configure's option --config-cache.
16074 # It is not useful on other systems.  If it contains results you don't
16075 # want to keep, you may remove or edit it.
16076 #
16077 # config.status only pays attention to the cache file if you give it
16078 # the --recheck option to rerun configure.
16079 #
16080 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16081 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16082 # following values.
16083
16084 _ACEOF
16085
16086 # The following way of writing the cache mishandles newlines in values,
16087 # but we know of no workaround that is simple, portable, and efficient.
16088 # So, we kill variables containing newlines.
16089 # Ultrix sh set writes to stderr and can't be redirected directly,
16090 # and sets the high bit in the cache file unless we assign to the vars.
16091 (
16092   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16093     eval ac_val=\$$ac_var
16094     case $ac_val in #(
16095     *${as_nl}*)
16096       case $ac_var in #(
16097       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16098 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16099       esac
16100       case $ac_var in #(
16101       _ | IFS | as_nl) ;; #(
16102       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16103       *) { eval $ac_var=; unset $ac_var;} ;;
16104       esac ;;
16105     esac
16106   done
16107
16108   (set) 2>&1 |
16109     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16110     *${as_nl}ac_space=\ *)
16111       # `set' does not quote correctly, so add quotes: double-quote
16112       # substitution turns \\\\ into \\, and sed turns \\ into \.
16113       sed -n \
16114         "s/'/'\\\\''/g;
16115           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16116       ;; #(
16117     *)
16118       # `set' quotes correctly as required by POSIX, so do not add quotes.
16119       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16120       ;;
16121     esac |
16122     sort
16123 ) |
16124   sed '
16125      /^ac_cv_env_/b end
16126      t clear
16127      :clear
16128      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16129      t end
16130      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16131      :end' >>confcache
16132 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16133   if test -w "$cache_file"; then
16134     if test "x$cache_file" != "x/dev/null"; then
16135       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16136 $as_echo "$as_me: updating cache $cache_file" >&6;}
16137       if test ! -f "$cache_file" || test -h "$cache_file"; then
16138         cat confcache >"$cache_file"
16139       else
16140         case $cache_file in #(
16141         */* | ?:*)
16142           mv -f confcache "$cache_file"$$ &&
16143           mv -f "$cache_file"$$ "$cache_file" ;; #(
16144         *)
16145           mv -f confcache "$cache_file" ;;
16146         esac
16147       fi
16148     fi
16149   else
16150     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16151 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16152   fi
16153 fi
16154 rm -f confcache
16155
16156 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16157 # Let make expand exec_prefix.
16158 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16159
16160 DEFS=-DHAVE_CONFIG_H
16161
16162 ac_libobjs=
16163 ac_ltlibobjs=
16164 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16165   # 1. Remove the extension, and $U if already installed.
16166   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16167   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16168   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16169   #    will be set to the directory where LIBOBJS objects are built.
16170   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16171   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16172 done
16173 LIBOBJS=$ac_libobjs
16174
16175 LTLIBOBJS=$ac_ltlibobjs
16176
16177
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16179 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16180    if test -n "$am_sleep_pid"; then
16181      # Hide warnings about reused PIDs.
16182      wait $am_sleep_pid 2>/dev/null
16183    fi
16184    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16185 $as_echo "done" >&6; }
16186  if test -n "$EXEEXT"; then
16187   am__EXEEXT_TRUE=
16188   am__EXEEXT_FALSE='#'
16189 else
16190   am__EXEEXT_TRUE='#'
16191   am__EXEEXT_FALSE=
16192 fi
16193
16194 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16195   as_fn_error $? "conditional \"AMDEP\" was never defined.
16196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16197 fi
16198 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16199   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16201 fi
16202 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
16203   as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
16204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16205 fi
16206 if test -z "${USE_LINUX_TRUE}" && test -z "${USE_LINUX_FALSE}"; then
16207   as_fn_error $? "conditional \"USE_LINUX\" was never defined.
16208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16209 fi
16210 if test -z "${USE_LINUX_TRUE}" && test -z "${USE_LINUX_FALSE}"; then
16211   as_fn_error $? "conditional \"USE_LINUX\" was never defined.
16212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16213 fi
16214 if test -z "${COMPILE_MINGW32_TRUE}" && test -z "${COMPILE_MINGW32_FALSE}"; then
16215   as_fn_error $? "conditional \"COMPILE_MINGW32\" was never defined.
16216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16217 fi
16218 if test -z "${MS_LIB_EXE_TRUE}" && test -z "${MS_LIB_EXE_FALSE}"; then
16219   as_fn_error $? "conditional \"MS_LIB_EXE\" was never defined.
16220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16221 fi
16222 if test -z "${MTPZ_COMPILE_TRUE}" && test -z "${MTPZ_COMPILE_FALSE}"; then
16223   as_fn_error $? "conditional \"MTPZ_COMPILE\" was never defined.
16224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16225 fi
16226 if test -z "${LIBUSB1_COMPILE_TRUE}" && test -z "${LIBUSB1_COMPILE_FALSE}"; then
16227   as_fn_error $? "conditional \"LIBUSB1_COMPILE\" was never defined.
16228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16229 fi
16230 if test -z "${LIBUSB0_COMPILE_TRUE}" && test -z "${LIBUSB0_COMPILE_FALSE}"; then
16231   as_fn_error $? "conditional \"LIBUSB0_COMPILE\" was never defined.
16232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16233 fi
16234 if test -z "${LIBOPENUSB_COMPILE_TRUE}" && test -z "${LIBOPENUSB_COMPILE_FALSE}"; then
16235   as_fn_error $? "conditional \"LIBOPENUSB_COMPILE\" was never defined.
16236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16237 fi
16238
16239
16240 : "${CONFIG_STATUS=./config.status}"
16241 ac_write_fail=0
16242 ac_clean_files_save=$ac_clean_files
16243 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16245 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16246 as_write_fail=0
16247 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16248 #! $SHELL
16249 # Generated by $as_me.
16250 # Run this file to recreate the current configuration.
16251 # Compiler output produced by configure, useful for debugging
16252 # configure, is in config.log if it exists.
16253
16254 debug=false
16255 ac_cs_recheck=false
16256 ac_cs_silent=false
16257
16258 SHELL=\${CONFIG_SHELL-$SHELL}
16259 export SHELL
16260 _ASEOF
16261 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16262 ## -------------------- ##
16263 ## M4sh Initialization. ##
16264 ## -------------------- ##
16265
16266 # Be more Bourne compatible
16267 DUALCASE=1; export DUALCASE # for MKS sh
16268 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16269   emulate sh
16270   NULLCMD=:
16271   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16272   # is contrary to our usage.  Disable this feature.
16273   alias -g '${1+"$@"}'='"$@"'
16274   setopt NO_GLOB_SUBST
16275 else
16276   case `(set -o) 2>/dev/null` in #(
16277   *posix*) :
16278     set -o posix ;; #(
16279   *) :
16280      ;;
16281 esac
16282 fi
16283
16284
16285 as_nl='
16286 '
16287 export as_nl
16288 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16289 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16290 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16291 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16292 # Prefer a ksh shell builtin over an external printf program on Solaris,
16293 # but without wasting forks for bash or zsh.
16294 if test -z "$BASH_VERSION$ZSH_VERSION" \
16295     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16296   as_echo='print -r --'
16297   as_echo_n='print -rn --'
16298 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16299   as_echo='printf %s\n'
16300   as_echo_n='printf %s'
16301 else
16302   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16303     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16304     as_echo_n='/usr/ucb/echo -n'
16305   else
16306     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16307     as_echo_n_body='eval
16308       arg=$1;
16309       case $arg in #(
16310       *"$as_nl"*)
16311         expr "X$arg" : "X\\(.*\\)$as_nl";
16312         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16313       esac;
16314       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16315     '
16316     export as_echo_n_body
16317     as_echo_n='sh -c $as_echo_n_body as_echo'
16318   fi
16319   export as_echo_body
16320   as_echo='sh -c $as_echo_body as_echo'
16321 fi
16322
16323 # The user is always right.
16324 if test "${PATH_SEPARATOR+set}" != set; then
16325   PATH_SEPARATOR=:
16326   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16327     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16328       PATH_SEPARATOR=';'
16329   }
16330 fi
16331
16332
16333 # IFS
16334 # We need space, tab and new line, in precisely that order.  Quoting is
16335 # there to prevent editors from complaining about space-tab.
16336 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16337 # splitting by setting IFS to empty value.)
16338 IFS=" ""        $as_nl"
16339
16340 # Find who we are.  Look in the path if we contain no directory separator.
16341 as_myself=
16342 case $0 in #((
16343   *[\\/]* ) as_myself=$0 ;;
16344   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16345 for as_dir in $PATH
16346 do
16347   IFS=$as_save_IFS
16348   test -z "$as_dir" && as_dir=.
16349     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16350   done
16351 IFS=$as_save_IFS
16352
16353      ;;
16354 esac
16355 # We did not find ourselves, most probably we were run as `sh COMMAND'
16356 # in which case we are not to be found in the path.
16357 if test "x$as_myself" = x; then
16358   as_myself=$0
16359 fi
16360 if test ! -f "$as_myself"; then
16361   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16362   exit 1
16363 fi
16364
16365 # Unset variables that we do not need and which cause bugs (e.g. in
16366 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16367 # suppresses any "Segmentation fault" message there.  '((' could
16368 # trigger a bug in pdksh 5.2.14.
16369 for as_var in BASH_ENV ENV MAIL MAILPATH
16370 do eval test x\${$as_var+set} = xset \
16371   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16372 done
16373 PS1='$ '
16374 PS2='> '
16375 PS4='+ '
16376
16377 # NLS nuisances.
16378 LC_ALL=C
16379 export LC_ALL
16380 LANGUAGE=C
16381 export LANGUAGE
16382
16383 # CDPATH.
16384 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16385
16386
16387 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16388 # ----------------------------------------
16389 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16390 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16391 # script with STATUS, using 1 if that was 0.
16392 as_fn_error ()
16393 {
16394   as_status=$1; test $as_status -eq 0 && as_status=1
16395   if test "$4"; then
16396     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16397     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16398   fi
16399   $as_echo "$as_me: error: $2" >&2
16400   as_fn_exit $as_status
16401 } # as_fn_error
16402
16403
16404 # as_fn_set_status STATUS
16405 # -----------------------
16406 # Set $? to STATUS, without forking.
16407 as_fn_set_status ()
16408 {
16409   return $1
16410 } # as_fn_set_status
16411
16412 # as_fn_exit STATUS
16413 # -----------------
16414 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16415 as_fn_exit ()
16416 {
16417   set +e
16418   as_fn_set_status $1
16419   exit $1
16420 } # as_fn_exit
16421
16422 # as_fn_unset VAR
16423 # ---------------
16424 # Portably unset VAR.
16425 as_fn_unset ()
16426 {
16427   { eval $1=; unset $1;}
16428 }
16429 as_unset=as_fn_unset
16430 # as_fn_append VAR VALUE
16431 # ----------------------
16432 # Append the text in VALUE to the end of the definition contained in VAR. Take
16433 # advantage of any shell optimizations that allow amortized linear growth over
16434 # repeated appends, instead of the typical quadratic growth present in naive
16435 # implementations.
16436 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16437   eval 'as_fn_append ()
16438   {
16439     eval $1+=\$2
16440   }'
16441 else
16442   as_fn_append ()
16443   {
16444     eval $1=\$$1\$2
16445   }
16446 fi # as_fn_append
16447
16448 # as_fn_arith ARG...
16449 # ------------------
16450 # Perform arithmetic evaluation on the ARGs, and store the result in the
16451 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16452 # must be portable across $(()) and expr.
16453 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16454   eval 'as_fn_arith ()
16455   {
16456     as_val=$(( $* ))
16457   }'
16458 else
16459   as_fn_arith ()
16460   {
16461     as_val=`expr "$@" || test $? -eq 1`
16462   }
16463 fi # as_fn_arith
16464
16465
16466 if expr a : '\(a\)' >/dev/null 2>&1 &&
16467    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16468   as_expr=expr
16469 else
16470   as_expr=false
16471 fi
16472
16473 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16474   as_basename=basename
16475 else
16476   as_basename=false
16477 fi
16478
16479 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16480   as_dirname=dirname
16481 else
16482   as_dirname=false
16483 fi
16484
16485 as_me=`$as_basename -- "$0" ||
16486 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16487          X"$0" : 'X\(//\)$' \| \
16488          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16489 $as_echo X/"$0" |
16490     sed '/^.*\/\([^/][^/]*\)\/*$/{
16491             s//\1/
16492             q
16493           }
16494           /^X\/\(\/\/\)$/{
16495             s//\1/
16496             q
16497           }
16498           /^X\/\(\/\).*/{
16499             s//\1/
16500             q
16501           }
16502           s/.*/./; q'`
16503
16504 # Avoid depending upon Character Ranges.
16505 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16506 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16507 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16508 as_cr_digits='0123456789'
16509 as_cr_alnum=$as_cr_Letters$as_cr_digits
16510
16511 ECHO_C= ECHO_N= ECHO_T=
16512 case `echo -n x` in #(((((
16513 -n*)
16514   case `echo 'xy\c'` in
16515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16516   xy)  ECHO_C='\c';;
16517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16518        ECHO_T=' ';;
16519   esac;;
16520 *)
16521   ECHO_N='-n';;
16522 esac
16523
16524 rm -f conf$$ conf$$.exe conf$$.file
16525 if test -d conf$$.dir; then
16526   rm -f conf$$.dir/conf$$.file
16527 else
16528   rm -f conf$$.dir
16529   mkdir conf$$.dir 2>/dev/null
16530 fi
16531 if (echo >conf$$.file) 2>/dev/null; then
16532   if ln -s conf$$.file conf$$ 2>/dev/null; then
16533     as_ln_s='ln -s'
16534     # ... but there are two gotchas:
16535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16537     # In both cases, we have to default to `cp -pR'.
16538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16539       as_ln_s='cp -pR'
16540   elif ln conf$$.file conf$$ 2>/dev/null; then
16541     as_ln_s=ln
16542   else
16543     as_ln_s='cp -pR'
16544   fi
16545 else
16546   as_ln_s='cp -pR'
16547 fi
16548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16549 rmdir conf$$.dir 2>/dev/null
16550
16551
16552 # as_fn_mkdir_p
16553 # -------------
16554 # Create "$as_dir" as a directory, including parents if necessary.
16555 as_fn_mkdir_p ()
16556 {
16557
16558   case $as_dir in #(
16559   -*) as_dir=./$as_dir;;
16560   esac
16561   test -d "$as_dir" || eval $as_mkdir_p || {
16562     as_dirs=
16563     while :; do
16564       case $as_dir in #(
16565       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16566       *) as_qdir=$as_dir;;
16567       esac
16568       as_dirs="'$as_qdir' $as_dirs"
16569       as_dir=`$as_dirname -- "$as_dir" ||
16570 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16571          X"$as_dir" : 'X\(//\)[^/]' \| \
16572          X"$as_dir" : 'X\(//\)$' \| \
16573          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16574 $as_echo X"$as_dir" |
16575     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16576             s//\1/
16577             q
16578           }
16579           /^X\(\/\/\)[^/].*/{
16580             s//\1/
16581             q
16582           }
16583           /^X\(\/\/\)$/{
16584             s//\1/
16585             q
16586           }
16587           /^X\(\/\).*/{
16588             s//\1/
16589             q
16590           }
16591           s/.*/./; q'`
16592       test -d "$as_dir" && break
16593     done
16594     test -z "$as_dirs" || eval "mkdir $as_dirs"
16595   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16596
16597
16598 } # as_fn_mkdir_p
16599 if mkdir -p . 2>/dev/null; then
16600   as_mkdir_p='mkdir -p "$as_dir"'
16601 else
16602   test -d ./-p && rmdir ./-p
16603   as_mkdir_p=false
16604 fi
16605
16606
16607 # as_fn_executable_p FILE
16608 # -----------------------
16609 # Test if FILE is an executable regular file.
16610 as_fn_executable_p ()
16611 {
16612   test -f "$1" && test -x "$1"
16613 } # as_fn_executable_p
16614 as_test_x='test -x'
16615 as_executable_p=as_fn_executable_p
16616
16617 # Sed expression to map a string onto a valid CPP name.
16618 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16619
16620 # Sed expression to map a string onto a valid variable name.
16621 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16622
16623
16624 exec 6>&1
16625 ## ----------------------------------- ##
16626 ## Main body of $CONFIG_STATUS script. ##
16627 ## ----------------------------------- ##
16628 _ASEOF
16629 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16630
16631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16632 # Save the log message, to keep $0 and so on meaningful, and to
16633 # report actual input values of CONFIG_FILES etc. instead of their
16634 # values after options handling.
16635 ac_log="
16636 This file was extended by libmtp $as_me 1.1.11, which was
16637 generated by GNU Autoconf 2.69.  Invocation command line was
16638
16639   CONFIG_FILES    = $CONFIG_FILES
16640   CONFIG_HEADERS  = $CONFIG_HEADERS
16641   CONFIG_LINKS    = $CONFIG_LINKS
16642   CONFIG_COMMANDS = $CONFIG_COMMANDS
16643   $ $0 $@
16644
16645 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16646 "
16647
16648 _ACEOF
16649
16650 case $ac_config_files in *"
16651 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16652 esac
16653
16654 case $ac_config_headers in *"
16655 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16656 esac
16657
16658
16659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16660 # Files that config.status was made for.
16661 config_files="$ac_config_files"
16662 config_headers="$ac_config_headers"
16663 config_commands="$ac_config_commands"
16664
16665 _ACEOF
16666
16667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16668 ac_cs_usage="\
16669 \`$as_me' instantiates files and other configuration actions
16670 from templates according to the current configuration.  Unless the files
16671 and actions are specified as TAGs, all are instantiated by default.
16672
16673 Usage: $0 [OPTION]... [TAG]...
16674
16675   -h, --help       print this help, then exit
16676   -V, --version    print version number and configuration settings, then exit
16677       --config     print configuration, then exit
16678   -q, --quiet, --silent
16679                    do not print progress messages
16680   -d, --debug      don't remove temporary files
16681       --recheck    update $as_me by reconfiguring in the same conditions
16682       --file=FILE[:TEMPLATE]
16683                    instantiate the configuration file FILE
16684       --header=FILE[:TEMPLATE]
16685                    instantiate the configuration header FILE
16686
16687 Configuration files:
16688 $config_files
16689
16690 Configuration headers:
16691 $config_headers
16692
16693 Configuration commands:
16694 $config_commands
16695
16696 Report bugs to <libmtp-discuss@lists.sourceforge.net>."
16697
16698 _ACEOF
16699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16700 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16701 ac_cs_version="\\
16702 libmtp config.status 1.1.11
16703 configured by $0, generated by GNU Autoconf 2.69,
16704   with options \\"\$ac_cs_config\\"
16705
16706 Copyright (C) 2012 Free Software Foundation, Inc.
16707 This config.status script is free software; the Free Software Foundation
16708 gives unlimited permission to copy, distribute and modify it."
16709
16710 ac_pwd='$ac_pwd'
16711 srcdir='$srcdir'
16712 INSTALL='$INSTALL'
16713 MKDIR_P='$MKDIR_P'
16714 AWK='$AWK'
16715 test -n "\$AWK" || AWK=awk
16716 _ACEOF
16717
16718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16719 # The default lists apply if the user does not specify any file.
16720 ac_need_defaults=:
16721 while test $# != 0
16722 do
16723   case $1 in
16724   --*=?*)
16725     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16726     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16727     ac_shift=:
16728     ;;
16729   --*=)
16730     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16731     ac_optarg=
16732     ac_shift=:
16733     ;;
16734   *)
16735     ac_option=$1
16736     ac_optarg=$2
16737     ac_shift=shift
16738     ;;
16739   esac
16740
16741   case $ac_option in
16742   # Handling of the options.
16743   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16744     ac_cs_recheck=: ;;
16745   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16746     $as_echo "$ac_cs_version"; exit ;;
16747   --config | --confi | --conf | --con | --co | --c )
16748     $as_echo "$ac_cs_config"; exit ;;
16749   --debug | --debu | --deb | --de | --d | -d )
16750     debug=: ;;
16751   --file | --fil | --fi | --f )
16752     $ac_shift
16753     case $ac_optarg in
16754     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16755     '') as_fn_error $? "missing file argument" ;;
16756     esac
16757     as_fn_append CONFIG_FILES " '$ac_optarg'"
16758     ac_need_defaults=false;;
16759   --header | --heade | --head | --hea )
16760     $ac_shift
16761     case $ac_optarg in
16762     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16763     esac
16764     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16765     ac_need_defaults=false;;
16766   --he | --h)
16767     # Conflict between --help and --header
16768     as_fn_error $? "ambiguous option: \`$1'
16769 Try \`$0 --help' for more information.";;
16770   --help | --hel | -h )
16771     $as_echo "$ac_cs_usage"; exit ;;
16772   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16773   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16774     ac_cs_silent=: ;;
16775
16776   # This is an error.
16777   -*) as_fn_error $? "unrecognized option: \`$1'
16778 Try \`$0 --help' for more information." ;;
16779
16780   *) as_fn_append ac_config_targets " $1"
16781      ac_need_defaults=false ;;
16782
16783   esac
16784   shift
16785 done
16786
16787 ac_configure_extra_args=
16788
16789 if $ac_cs_silent; then
16790   exec 6>/dev/null
16791   ac_configure_extra_args="$ac_configure_extra_args --silent"
16792 fi
16793
16794 _ACEOF
16795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16796 if \$ac_cs_recheck; then
16797   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16798   shift
16799   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16800   CONFIG_SHELL='$SHELL'
16801   export CONFIG_SHELL
16802   exec "\$@"
16803 fi
16804
16805 _ACEOF
16806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16807 exec 5>>config.log
16808 {
16809   echo
16810   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16811 ## Running $as_me. ##
16812 _ASBOX
16813   $as_echo "$ac_log"
16814 } >&5
16815
16816 _ACEOF
16817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16818 #
16819 # INIT-COMMANDS
16820 #
16821 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16822
16823
16824 # The HP-UX ksh and POSIX shell print the target directory to stdout
16825 # if CDPATH is set.
16826 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16827
16828 sed_quote_subst='$sed_quote_subst'
16829 double_quote_subst='$double_quote_subst'
16830 delay_variable_subst='$delay_variable_subst'
16831 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16832 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16833 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16834 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16835 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16836 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16837 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16838 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16839 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16840 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16841 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16842 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16843 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16844 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16845 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16846 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16847 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16848 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16849 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16850 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16851 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16852 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16853 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16854 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16855 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16856 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16857 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16858 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16859 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16860 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16861 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16862 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16863 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16864 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16865 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16866 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16867 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16868 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16869 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16870 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16871 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16872 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16873 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16874 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16875 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16876 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16877 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16878 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16879 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16880 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16881 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16882 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16883 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16884 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16885 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16886 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16887 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16888 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16889 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16890 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"`'
16891 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16892 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16893 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16894 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16895 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16896 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16897 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16898 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16899 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16900 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16901 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16902 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16903 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16904 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16905 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16906 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16907 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16908 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16909 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16910 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16911 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16912 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16913 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16914 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16915 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16916 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16917 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16918 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16919 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16920 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16921 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16922 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16923 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16924 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16925 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16926 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16927 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16928 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16929 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16930 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16931 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16932 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16933 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16934 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16935 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16936 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16937 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16938 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16939 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16940 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16941 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16942 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16943 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16944 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16945 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16946 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16947 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16948 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16949 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16950 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16951 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16952 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16953 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16954 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16955 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16956 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16957 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16958 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16959 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16960 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16961 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16962 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16963 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16964 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16965 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16966 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16967
16968 LTCC='$LTCC'
16969 LTCFLAGS='$LTCFLAGS'
16970 compiler='$compiler_DEFAULT'
16971
16972 # A function that is used when there is no print builtin or printf.
16973 func_fallback_echo ()
16974 {
16975   eval 'cat <<_LTECHO_EOF
16976 \$1
16977 _LTECHO_EOF'
16978 }
16979
16980 # Quote evaled strings.
16981 for var in AS \
16982 DLLTOOL \
16983 OBJDUMP \
16984 SHELL \
16985 ECHO \
16986 PATH_SEPARATOR \
16987 SED \
16988 GREP \
16989 EGREP \
16990 FGREP \
16991 LD \
16992 NM \
16993 LN_S \
16994 lt_SP2NL \
16995 lt_NL2SP \
16996 reload_flag \
16997 deplibs_check_method \
16998 file_magic_cmd \
16999 file_magic_glob \
17000 want_nocaseglob \
17001 sharedlib_from_linklib_cmd \
17002 AR \
17003 AR_FLAGS \
17004 archiver_list_spec \
17005 STRIP \
17006 RANLIB \
17007 CC \
17008 CFLAGS \
17009 compiler \
17010 lt_cv_sys_global_symbol_pipe \
17011 lt_cv_sys_global_symbol_to_cdecl \
17012 lt_cv_sys_global_symbol_to_import \
17013 lt_cv_sys_global_symbol_to_c_name_address \
17014 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17015 lt_cv_nm_interface \
17016 nm_file_list_spec \
17017 lt_cv_truncate_bin \
17018 lt_prog_compiler_no_builtin_flag \
17019 lt_prog_compiler_pic \
17020 lt_prog_compiler_wl \
17021 lt_prog_compiler_static \
17022 lt_cv_prog_compiler_c_o \
17023 need_locks \
17024 MANIFEST_TOOL \
17025 DSYMUTIL \
17026 NMEDIT \
17027 LIPO \
17028 OTOOL \
17029 OTOOL64 \
17030 shrext_cmds \
17031 export_dynamic_flag_spec \
17032 whole_archive_flag_spec \
17033 compiler_needs_object \
17034 with_gnu_ld \
17035 allow_undefined_flag \
17036 no_undefined_flag \
17037 hardcode_libdir_flag_spec \
17038 hardcode_libdir_separator \
17039 exclude_expsyms \
17040 include_expsyms \
17041 file_list_spec \
17042 variables_saved_for_relink \
17043 libname_spec \
17044 library_names_spec \
17045 soname_spec \
17046 install_override_mode \
17047 finish_eval \
17048 old_striplib \
17049 striplib; do
17050     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17051     *[\\\\\\\`\\"\\\$]*)
17052       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17053       ;;
17054     *)
17055       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17056       ;;
17057     esac
17058 done
17059
17060 # Double-quote double-evaled strings.
17061 for var in reload_cmds \
17062 old_postinstall_cmds \
17063 old_postuninstall_cmds \
17064 old_archive_cmds \
17065 extract_expsyms_cmds \
17066 old_archive_from_new_cmds \
17067 old_archive_from_expsyms_cmds \
17068 archive_cmds \
17069 archive_expsym_cmds \
17070 module_cmds \
17071 module_expsym_cmds \
17072 export_symbols_cmds \
17073 prelink_cmds \
17074 postlink_cmds \
17075 postinstall_cmds \
17076 postuninstall_cmds \
17077 finish_cmds \
17078 sys_lib_search_path_spec \
17079 configure_time_dlsearch_path \
17080 configure_time_lt_sys_library_path; do
17081     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17082     *[\\\\\\\`\\"\\\$]*)
17083       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17084       ;;
17085     *)
17086       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17087       ;;
17088     esac
17089 done
17090
17091 ac_aux_dir='$ac_aux_dir'
17092
17093 # See if we are running on zsh, and set the options that allow our
17094 # commands through without removal of \ escapes INIT.
17095 if test -n "\${ZSH_VERSION+set}"; then
17096    setopt NO_GLOB_SUBST
17097 fi
17098
17099
17100     PACKAGE='$PACKAGE'
17101     VERSION='$VERSION'
17102     RM='$RM'
17103     ofile='$ofile'
17104
17105
17106
17107
17108 _ACEOF
17109
17110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17111
17112 # Handling of arguments.
17113 for ac_config_target in $ac_config_targets
17114 do
17115   case $ac_config_target in
17116     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17117     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17118     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17119     "src/libmtp.h") CONFIG_FILES="$CONFIG_FILES src/libmtp.h" ;;
17120     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
17121     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17122     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17123     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17124     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
17125     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
17126     "libmtp.sh") CONFIG_FILES="$CONFIG_FILES libmtp.sh" ;;
17127     "hotplug.sh") CONFIG_FILES="$CONFIG_FILES hotplug.sh" ;;
17128     "libmtp.pc") CONFIG_FILES="$CONFIG_FILES libmtp.pc" ;;
17129
17130   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17131   esac
17132 done
17133
17134
17135 # If the user did not use the arguments to specify the items to instantiate,
17136 # then the envvar interface is used.  Set only those that are not.
17137 # We use the long form for the default assignment because of an extremely
17138 # bizarre bug on SunOS 4.1.3.
17139 if $ac_need_defaults; then
17140   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17141   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17142   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17143 fi
17144
17145 # Have a temporary directory for convenience.  Make it in the build tree
17146 # simply because there is no reason against having it here, and in addition,
17147 # creating and moving files from /tmp can sometimes cause problems.
17148 # Hook for its removal unless debugging.
17149 # Note that there is a small window in which the directory will not be cleaned:
17150 # after its creation but before its name has been assigned to `$tmp'.
17151 $debug ||
17152 {
17153   tmp= ac_tmp=
17154   trap 'exit_status=$?
17155   : "${ac_tmp:=$tmp}"
17156   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17157 ' 0
17158   trap 'as_fn_exit 1' 1 2 13 15
17159 }
17160 # Create a (secure) tmp directory for tmp files.
17161
17162 {
17163   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17164   test -d "$tmp"
17165 }  ||
17166 {
17167   tmp=./conf$$-$RANDOM
17168   (umask 077 && mkdir "$tmp")
17169 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17170 ac_tmp=$tmp
17171
17172 # Set up the scripts for CONFIG_FILES section.
17173 # No need to generate them if there are no CONFIG_FILES.
17174 # This happens for instance with `./config.status config.h'.
17175 if test -n "$CONFIG_FILES"; then
17176
17177
17178 ac_cr=`echo X | tr X '\015'`
17179 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17180 # But we know of no other shell where ac_cr would be empty at this
17181 # point, so we can use a bashism as a fallback.
17182 if test "x$ac_cr" = x; then
17183   eval ac_cr=\$\'\\r\'
17184 fi
17185 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17186 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17187   ac_cs_awk_cr='\\r'
17188 else
17189   ac_cs_awk_cr=$ac_cr
17190 fi
17191
17192 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17193 _ACEOF
17194
17195
17196 {
17197   echo "cat >conf$$subs.awk <<_ACEOF" &&
17198   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17199   echo "_ACEOF"
17200 } >conf$$subs.sh ||
17201   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17202 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17203 ac_delim='%!_!# '
17204 for ac_last_try in false false false false false :; do
17205   . ./conf$$subs.sh ||
17206     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17207
17208   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17209   if test $ac_delim_n = $ac_delim_num; then
17210     break
17211   elif $ac_last_try; then
17212     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17213   else
17214     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17215   fi
17216 done
17217 rm -f conf$$subs.sh
17218
17219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17220 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17221 _ACEOF
17222 sed -n '
17223 h
17224 s/^/S["/; s/!.*/"]=/
17225 p
17226 g
17227 s/^[^!]*!//
17228 :repl
17229 t repl
17230 s/'"$ac_delim"'$//
17231 t delim
17232 :nl
17233 h
17234 s/\(.\{148\}\)..*/\1/
17235 t more1
17236 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17237 p
17238 n
17239 b repl
17240 :more1
17241 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17242 p
17243 g
17244 s/.\{148\}//
17245 t nl
17246 :delim
17247 h
17248 s/\(.\{148\}\)..*/\1/
17249 t more2
17250 s/["\\]/\\&/g; s/^/"/; s/$/"/
17251 p
17252 b
17253 :more2
17254 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17255 p
17256 g
17257 s/.\{148\}//
17258 t delim
17259 ' <conf$$subs.awk | sed '
17260 /^[^""]/{
17261   N
17262   s/\n//
17263 }
17264 ' >>$CONFIG_STATUS || ac_write_fail=1
17265 rm -f conf$$subs.awk
17266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17267 _ACAWK
17268 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17269   for (key in S) S_is_set[key] = 1
17270   FS = "\a"
17271
17272 }
17273 {
17274   line = $ 0
17275   nfields = split(line, field, "@")
17276   substed = 0
17277   len = length(field[1])
17278   for (i = 2; i < nfields; i++) {
17279     key = field[i]
17280     keylen = length(key)
17281     if (S_is_set[key]) {
17282       value = S[key]
17283       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17284       len += length(value) + length(field[++i])
17285       substed = 1
17286     } else
17287       len += 1 + keylen
17288   }
17289
17290   print line
17291 }
17292
17293 _ACAWK
17294 _ACEOF
17295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17296 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17297   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17298 else
17299   cat
17300 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17301   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17302 _ACEOF
17303
17304 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17305 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17306 # trailing colons and then remove the whole line if VPATH becomes empty
17307 # (actually we leave an empty line to preserve line numbers).
17308 if test "x$srcdir" = x.; then
17309   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17310 h
17311 s///
17312 s/^/:/
17313 s/[      ]*$/:/
17314 s/:\$(srcdir):/:/g
17315 s/:\${srcdir}:/:/g
17316 s/:@srcdir@:/:/g
17317 s/^:*//
17318 s/:*$//
17319 x
17320 s/\(=[   ]*\).*/\1/
17321 G
17322 s/\n//
17323 s/^[^=]*=[       ]*$//
17324 }'
17325 fi
17326
17327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17328 fi # test -n "$CONFIG_FILES"
17329
17330 # Set up the scripts for CONFIG_HEADERS section.
17331 # No need to generate them if there are no CONFIG_HEADERS.
17332 # This happens for instance with `./config.status Makefile'.
17333 if test -n "$CONFIG_HEADERS"; then
17334 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17335 BEGIN {
17336 _ACEOF
17337
17338 # Transform confdefs.h into an awk script `defines.awk', embedded as
17339 # here-document in config.status, that substitutes the proper values into
17340 # config.h.in to produce config.h.
17341
17342 # Create a delimiter string that does not exist in confdefs.h, to ease
17343 # handling of long lines.
17344 ac_delim='%!_!# '
17345 for ac_last_try in false false :; do
17346   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17347   if test -z "$ac_tt"; then
17348     break
17349   elif $ac_last_try; then
17350     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17351   else
17352     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17353   fi
17354 done
17355
17356 # For the awk script, D is an array of macro values keyed by name,
17357 # likewise P contains macro parameters if any.  Preserve backslash
17358 # newline sequences.
17359
17360 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17361 sed -n '
17362 s/.\{148\}/&'"$ac_delim"'/g
17363 t rset
17364 :rset
17365 s/^[     ]*#[    ]*define[       ][      ]*/ /
17366 t def
17367 d
17368 :def
17369 s/\\$//
17370 t bsnl
17371 s/["\\]/\\&/g
17372 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17373 D["\1"]=" \3"/p
17374 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17375 d
17376 :bsnl
17377 s/["\\]/\\&/g
17378 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17379 D["\1"]=" \3\\\\\\n"\\/p
17380 t cont
17381 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17382 t cont
17383 d
17384 :cont
17385 n
17386 s/.\{148\}/&'"$ac_delim"'/g
17387 t clear
17388 :clear
17389 s/\\$//
17390 t bsnlc
17391 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17392 d
17393 :bsnlc
17394 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17395 b cont
17396 ' <confdefs.h | sed '
17397 s/'"$ac_delim"'/"\\\
17398 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17399
17400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17401   for (key in D) D_is_set[key] = 1
17402   FS = "\a"
17403 }
17404 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17405   line = \$ 0
17406   split(line, arg, " ")
17407   if (arg[1] == "#") {
17408     defundef = arg[2]
17409     mac1 = arg[3]
17410   } else {
17411     defundef = substr(arg[1], 2)
17412     mac1 = arg[2]
17413   }
17414   split(mac1, mac2, "(") #)
17415   macro = mac2[1]
17416   prefix = substr(line, 1, index(line, defundef) - 1)
17417   if (D_is_set[macro]) {
17418     # Preserve the white space surrounding the "#".
17419     print prefix "define", macro P[macro] D[macro]
17420     next
17421   } else {
17422     # Replace #undef with comments.  This is necessary, for example,
17423     # in the case of _POSIX_SOURCE, which is predefined and required
17424     # on some systems where configure will not decide to define it.
17425     if (defundef == "undef") {
17426       print "/*", prefix defundef, macro, "*/"
17427       next
17428     }
17429   }
17430 }
17431 { print }
17432 _ACAWK
17433 _ACEOF
17434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17435   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17436 fi # test -n "$CONFIG_HEADERS"
17437
17438
17439 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17440 shift
17441 for ac_tag
17442 do
17443   case $ac_tag in
17444   :[FHLC]) ac_mode=$ac_tag; continue;;
17445   esac
17446   case $ac_mode$ac_tag in
17447   :[FHL]*:*);;
17448   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17449   :[FH]-) ac_tag=-:-;;
17450   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17451   esac
17452   ac_save_IFS=$IFS
17453   IFS=:
17454   set x $ac_tag
17455   IFS=$ac_save_IFS
17456   shift
17457   ac_file=$1
17458   shift
17459
17460   case $ac_mode in
17461   :L) ac_source=$1;;
17462   :[FH])
17463     ac_file_inputs=
17464     for ac_f
17465     do
17466       case $ac_f in
17467       -) ac_f="$ac_tmp/stdin";;
17468       *) # Look for the file first in the build tree, then in the source tree
17469          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17470          # because $ac_f cannot contain `:'.
17471          test -f "$ac_f" ||
17472            case $ac_f in
17473            [\\/$]*) false;;
17474            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17475            esac ||
17476            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17477       esac
17478       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17479       as_fn_append ac_file_inputs " '$ac_f'"
17480     done
17481
17482     # Let's still pretend it is `configure' which instantiates (i.e., don't
17483     # use $as_me), people would be surprised to read:
17484     #    /* config.h.  Generated by config.status.  */
17485     configure_input='Generated from '`
17486           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17487         `' by configure.'
17488     if test x"$ac_file" != x-; then
17489       configure_input="$ac_file.  $configure_input"
17490       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17491 $as_echo "$as_me: creating $ac_file" >&6;}
17492     fi
17493     # Neutralize special characters interpreted by sed in replacement strings.
17494     case $configure_input in #(
17495     *\&* | *\|* | *\\* )
17496        ac_sed_conf_input=`$as_echo "$configure_input" |
17497        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17498     *) ac_sed_conf_input=$configure_input;;
17499     esac
17500
17501     case $ac_tag in
17502     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17503       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17504     esac
17505     ;;
17506   esac
17507
17508   ac_dir=`$as_dirname -- "$ac_file" ||
17509 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17510          X"$ac_file" : 'X\(//\)[^/]' \| \
17511          X"$ac_file" : 'X\(//\)$' \| \
17512          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17513 $as_echo X"$ac_file" |
17514     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17515             s//\1/
17516             q
17517           }
17518           /^X\(\/\/\)[^/].*/{
17519             s//\1/
17520             q
17521           }
17522           /^X\(\/\/\)$/{
17523             s//\1/
17524             q
17525           }
17526           /^X\(\/\).*/{
17527             s//\1/
17528             q
17529           }
17530           s/.*/./; q'`
17531   as_dir="$ac_dir"; as_fn_mkdir_p
17532   ac_builddir=.
17533
17534 case "$ac_dir" in
17535 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17536 *)
17537   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17538   # A ".." for each directory in $ac_dir_suffix.
17539   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17540   case $ac_top_builddir_sub in
17541   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17542   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17543   esac ;;
17544 esac
17545 ac_abs_top_builddir=$ac_pwd
17546 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17547 # for backward compatibility:
17548 ac_top_builddir=$ac_top_build_prefix
17549
17550 case $srcdir in
17551   .)  # We are building in place.
17552     ac_srcdir=.
17553     ac_top_srcdir=$ac_top_builddir_sub
17554     ac_abs_top_srcdir=$ac_pwd ;;
17555   [\\/]* | ?:[\\/]* )  # Absolute name.
17556     ac_srcdir=$srcdir$ac_dir_suffix;
17557     ac_top_srcdir=$srcdir
17558     ac_abs_top_srcdir=$srcdir ;;
17559   *) # Relative name.
17560     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17561     ac_top_srcdir=$ac_top_build_prefix$srcdir
17562     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17563 esac
17564 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17565
17566
17567   case $ac_mode in
17568   :F)
17569   #
17570   # CONFIG_FILE
17571   #
17572
17573   case $INSTALL in
17574   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17575   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17576   esac
17577   ac_MKDIR_P=$MKDIR_P
17578   case $MKDIR_P in
17579   [\\/$]* | ?:[\\/]* ) ;;
17580   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17581   esac
17582 _ACEOF
17583
17584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17585 # If the template does not know about datarootdir, expand it.
17586 # FIXME: This hack should be removed a few years after 2.60.
17587 ac_datarootdir_hack=; ac_datarootdir_seen=
17588 ac_sed_dataroot='
17589 /datarootdir/ {
17590   p
17591   q
17592 }
17593 /@datadir@/p
17594 /@docdir@/p
17595 /@infodir@/p
17596 /@localedir@/p
17597 /@mandir@/p'
17598 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17599 *datarootdir*) ac_datarootdir_seen=yes;;
17600 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17601   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17602 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17603 _ACEOF
17604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17605   ac_datarootdir_hack='
17606   s&@datadir@&$datadir&g
17607   s&@docdir@&$docdir&g
17608   s&@infodir@&$infodir&g
17609   s&@localedir@&$localedir&g
17610   s&@mandir@&$mandir&g
17611   s&\\\${datarootdir}&$datarootdir&g' ;;
17612 esac
17613 _ACEOF
17614
17615 # Neutralize VPATH when `$srcdir' = `.'.
17616 # Shell code in configure.ac might set extrasub.
17617 # FIXME: do we really want to maintain this feature?
17618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17619 ac_sed_extra="$ac_vpsub
17620 $extrasub
17621 _ACEOF
17622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17623 :t
17624 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17625 s|@configure_input@|$ac_sed_conf_input|;t t
17626 s&@top_builddir@&$ac_top_builddir_sub&;t t
17627 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17628 s&@srcdir@&$ac_srcdir&;t t
17629 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17630 s&@top_srcdir@&$ac_top_srcdir&;t t
17631 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17632 s&@builddir@&$ac_builddir&;t t
17633 s&@abs_builddir@&$ac_abs_builddir&;t t
17634 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17635 s&@INSTALL@&$ac_INSTALL&;t t
17636 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17637 $ac_datarootdir_hack
17638 "
17639 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17640   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17641
17642 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17643   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17644   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17645       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17646   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17647 which seems to be undefined.  Please make sure it is defined" >&5
17648 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17649 which seems to be undefined.  Please make sure it is defined" >&2;}
17650
17651   rm -f "$ac_tmp/stdin"
17652   case $ac_file in
17653   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17654   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17655   esac \
17656   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17657  ;;
17658   :H)
17659   #
17660   # CONFIG_HEADER
17661   #
17662   if test x"$ac_file" != x-; then
17663     {
17664       $as_echo "/* $configure_input  */" \
17665       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17666     } >"$ac_tmp/config.h" \
17667       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17668     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17669       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17670 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17671     else
17672       rm -f "$ac_file"
17673       mv "$ac_tmp/config.h" "$ac_file" \
17674         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17675     fi
17676   else
17677     $as_echo "/* $configure_input  */" \
17678       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17679       || as_fn_error $? "could not create -" "$LINENO" 5
17680   fi
17681 # Compute "$ac_file"'s index in $config_headers.
17682 _am_arg="$ac_file"
17683 _am_stamp_count=1
17684 for _am_header in $config_headers :; do
17685   case $_am_header in
17686     $_am_arg | $_am_arg:* )
17687       break ;;
17688     * )
17689       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17690   esac
17691 done
17692 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17693 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17694          X"$_am_arg" : 'X\(//\)[^/]' \| \
17695          X"$_am_arg" : 'X\(//\)$' \| \
17696          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17697 $as_echo X"$_am_arg" |
17698     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17699             s//\1/
17700             q
17701           }
17702           /^X\(\/\/\)[^/].*/{
17703             s//\1/
17704             q
17705           }
17706           /^X\(\/\/\)$/{
17707             s//\1/
17708             q
17709           }
17710           /^X\(\/\).*/{
17711             s//\1/
17712             q
17713           }
17714           s/.*/./; q'`/stamp-h$_am_stamp_count
17715  ;;
17716
17717   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17718 $as_echo "$as_me: executing $ac_file commands" >&6;}
17719  ;;
17720   esac
17721
17722
17723   case $ac_file$ac_mode in
17724     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17725   # Older Autoconf quotes --file arguments for eval, but not when files
17726   # are listed without --file.  Let's play safe and only enable the eval
17727   # if we detect the quoting.
17728   case $CONFIG_FILES in
17729   *\'*) eval set x "$CONFIG_FILES" ;;
17730   *)   set x $CONFIG_FILES ;;
17731   esac
17732   shift
17733   for mf
17734   do
17735     # Strip MF so we end up with the name of the file.
17736     mf=`echo "$mf" | sed -e 's/:.*$//'`
17737     # Check whether this is an Automake generated Makefile or not.
17738     # We used to match only the files named 'Makefile.in', but
17739     # some people rename them; so instead we look at the file content.
17740     # Grep'ing the first line is not enough: some people post-process
17741     # each Makefile.in and add a new line on top of each file to say so.
17742     # Grep'ing the whole file is not good either: AIX grep has a line
17743     # limit of 2048, but all sed's we know have understand at least 4000.
17744     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17745       dirpart=`$as_dirname -- "$mf" ||
17746 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17747          X"$mf" : 'X\(//\)[^/]' \| \
17748          X"$mf" : 'X\(//\)$' \| \
17749          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17750 $as_echo X"$mf" |
17751     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17752             s//\1/
17753             q
17754           }
17755           /^X\(\/\/\)[^/].*/{
17756             s//\1/
17757             q
17758           }
17759           /^X\(\/\/\)$/{
17760             s//\1/
17761             q
17762           }
17763           /^X\(\/\).*/{
17764             s//\1/
17765             q
17766           }
17767           s/.*/./; q'`
17768     else
17769       continue
17770     fi
17771     # Extract the definition of DEPDIR, am__include, and am__quote
17772     # from the Makefile without running 'make'.
17773     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17774     test -z "$DEPDIR" && continue
17775     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17776     test -z "$am__include" && continue
17777     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17778     # Find all dependency output files, they are included files with
17779     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17780     # simplest approach to changing $(DEPDIR) to its actual value in the
17781     # expansion.
17782     for file in `sed -n "
17783       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17784          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17785       # Make sure the directory exists.
17786       test -f "$dirpart/$file" && continue
17787       fdir=`$as_dirname -- "$file" ||
17788 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17789          X"$file" : 'X\(//\)[^/]' \| \
17790          X"$file" : 'X\(//\)$' \| \
17791          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17792 $as_echo X"$file" |
17793     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17794             s//\1/
17795             q
17796           }
17797           /^X\(\/\/\)[^/].*/{
17798             s//\1/
17799             q
17800           }
17801           /^X\(\/\/\)$/{
17802             s//\1/
17803             q
17804           }
17805           /^X\(\/\).*/{
17806             s//\1/
17807             q
17808           }
17809           s/.*/./; q'`
17810       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17811       # echo "creating $dirpart/$file"
17812       echo '# dummy' > "$dirpart/$file"
17813     done
17814   done
17815 }
17816  ;;
17817     "libtool":C)
17818
17819     # See if we are running on zsh, and set the options that allow our
17820     # commands through without removal of \ escapes.
17821     if test -n "${ZSH_VERSION+set}"; then
17822       setopt NO_GLOB_SUBST
17823     fi
17824
17825     cfgfile=${ofile}T
17826     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17827     $RM "$cfgfile"
17828
17829     cat <<_LT_EOF >> "$cfgfile"
17830 #! $SHELL
17831 # Generated automatically by $as_me ($PACKAGE) $VERSION
17832 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17833
17834 # Provide generalized library-building support services.
17835 # Written by Gordon Matzigkeit, 1996
17836
17837 # Copyright (C) 2014 Free Software Foundation, Inc.
17838 # This is free software; see the source for copying conditions.  There is NO
17839 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17840
17841 # GNU Libtool is free software; you can redistribute it and/or modify
17842 # it under the terms of the GNU General Public License as published by
17843 # the Free Software Foundation; either version 2 of of the License, or
17844 # (at your option) any later version.
17845 #
17846 # As a special exception to the GNU General Public License, if you
17847 # distribute this file as part of a program or library that is built
17848 # using GNU Libtool, you may include this file under the  same
17849 # distribution terms that you use for the rest of that program.
17850 #
17851 # GNU Libtool is distributed in the hope that it will be useful, but
17852 # WITHOUT ANY WARRANTY; without even the implied warranty of
17853 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17854 # GNU General Public License for more details.
17855 #
17856 # You should have received a copy of the GNU General Public License
17857 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
17858
17859
17860 # The names of the tagged configurations supported by this script.
17861 available_tags=''
17862
17863 # Configured defaults for sys_lib_dlsearch_path munging.
17864 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17865
17866 # ### BEGIN LIBTOOL CONFIG
17867
17868 # Assembler program.
17869 AS=$lt_AS
17870
17871 # DLL creation program.
17872 DLLTOOL=$lt_DLLTOOL
17873
17874 # Object dumper program.
17875 OBJDUMP=$lt_OBJDUMP
17876
17877 # Which release of libtool.m4 was used?
17878 macro_version=$macro_version
17879 macro_revision=$macro_revision
17880
17881 # Whether or not to build shared libraries.
17882 build_libtool_libs=$enable_shared
17883
17884 # Whether or not to build static libraries.
17885 build_old_libs=$enable_static
17886
17887 # What type of objects to build.
17888 pic_mode=$pic_mode
17889
17890 # Whether or not to optimize for fast installation.
17891 fast_install=$enable_fast_install
17892
17893 # Shared archive member basename,for filename based shared library versioning on AIX.
17894 shared_archive_member_spec=$shared_archive_member_spec
17895
17896 # Shell to use when invoking shell scripts.
17897 SHELL=$lt_SHELL
17898
17899 # An echo program that protects backslashes.
17900 ECHO=$lt_ECHO
17901
17902 # The PATH separator for the build system.
17903 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17904
17905 # The host system.
17906 host_alias=$host_alias
17907 host=$host
17908 host_os=$host_os
17909
17910 # The build system.
17911 build_alias=$build_alias
17912 build=$build
17913 build_os=$build_os
17914
17915 # A sed program that does not truncate output.
17916 SED=$lt_SED
17917
17918 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17919 Xsed="\$SED -e 1s/^X//"
17920
17921 # A grep program that handles long lines.
17922 GREP=$lt_GREP
17923
17924 # An ERE matcher.
17925 EGREP=$lt_EGREP
17926
17927 # A literal string matcher.
17928 FGREP=$lt_FGREP
17929
17930 # A BSD- or MS-compatible name lister.
17931 NM=$lt_NM
17932
17933 # Whether we need soft or hard links.
17934 LN_S=$lt_LN_S
17935
17936 # What is the maximum length of a command?
17937 max_cmd_len=$max_cmd_len
17938
17939 # Object file suffix (normally "o").
17940 objext=$ac_objext
17941
17942 # Executable file suffix (normally "").
17943 exeext=$exeext
17944
17945 # whether the shell understands "unset".
17946 lt_unset=$lt_unset
17947
17948 # turn spaces into newlines.
17949 SP2NL=$lt_lt_SP2NL
17950
17951 # turn newlines into spaces.
17952 NL2SP=$lt_lt_NL2SP
17953
17954 # convert \$build file names to \$host format.
17955 to_host_file_cmd=$lt_cv_to_host_file_cmd
17956
17957 # convert \$build files to toolchain format.
17958 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17959
17960 # Method to check whether dependent libraries are shared objects.
17961 deplibs_check_method=$lt_deplibs_check_method
17962
17963 # Command to use when deplibs_check_method = "file_magic".
17964 file_magic_cmd=$lt_file_magic_cmd
17965
17966 # How to find potential files when deplibs_check_method = "file_magic".
17967 file_magic_glob=$lt_file_magic_glob
17968
17969 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17970 want_nocaseglob=$lt_want_nocaseglob
17971
17972 # Command to associate shared and link libraries.
17973 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17974
17975 # The archiver.
17976 AR=$lt_AR
17977
17978 # Flags to create an archive.
17979 AR_FLAGS=$lt_AR_FLAGS
17980
17981 # How to feed a file listing to the archiver.
17982 archiver_list_spec=$lt_archiver_list_spec
17983
17984 # A symbol stripping program.
17985 STRIP=$lt_STRIP
17986
17987 # Commands used to install an old-style archive.
17988 RANLIB=$lt_RANLIB
17989 old_postinstall_cmds=$lt_old_postinstall_cmds
17990 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17991
17992 # Whether to use a lock for old archive extraction.
17993 lock_old_archive_extraction=$lock_old_archive_extraction
17994
17995 # A C compiler.
17996 LTCC=$lt_CC
17997
17998 # LTCC compiler flags.
17999 LTCFLAGS=$lt_CFLAGS
18000
18001 # Take the output of nm and produce a listing of raw symbols and C names.
18002 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18003
18004 # Transform the output of nm in a proper C declaration.
18005 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18006
18007 # Transform the output of nm into a list of symbols to manually relocate.
18008 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18009
18010 # Transform the output of nm in a C name address pair.
18011 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18012
18013 # Transform the output of nm in a C name address pair when lib prefix is needed.
18014 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18015
18016 # The name lister interface.
18017 nm_interface=$lt_lt_cv_nm_interface
18018
18019 # Specify filename containing input files for \$NM.
18020 nm_file_list_spec=$lt_nm_file_list_spec
18021
18022 # The root where to search for dependent libraries,and where our libraries should be installed.
18023 lt_sysroot=$lt_sysroot
18024
18025 # Command to truncate a binary pipe.
18026 lt_truncate_bin=$lt_lt_cv_truncate_bin
18027
18028 # The name of the directory that contains temporary libtool files.
18029 objdir=$objdir
18030
18031 # Used to examine libraries when file_magic_cmd begins with "file".
18032 MAGIC_CMD=$MAGIC_CMD
18033
18034 # Must we lock files when doing compilation?
18035 need_locks=$lt_need_locks
18036
18037 # Manifest tool.
18038 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18039
18040 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18041 DSYMUTIL=$lt_DSYMUTIL
18042
18043 # Tool to change global to local symbols on Mac OS X.
18044 NMEDIT=$lt_NMEDIT
18045
18046 # Tool to manipulate fat objects and archives on Mac OS X.
18047 LIPO=$lt_LIPO
18048
18049 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18050 OTOOL=$lt_OTOOL
18051
18052 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18053 OTOOL64=$lt_OTOOL64
18054
18055 # Old archive suffix (normally "a").
18056 libext=$libext
18057
18058 # Shared library suffix (normally ".so").
18059 shrext_cmds=$lt_shrext_cmds
18060
18061 # The commands to extract the exported symbol list from a shared archive.
18062 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18063
18064 # Variables whose values should be saved in libtool wrapper scripts and
18065 # restored at link time.
18066 variables_saved_for_relink=$lt_variables_saved_for_relink
18067
18068 # Do we need the "lib" prefix for modules?
18069 need_lib_prefix=$need_lib_prefix
18070
18071 # Do we need a version for libraries?
18072 need_version=$need_version
18073
18074 # Library versioning type.
18075 version_type=$version_type
18076
18077 # Shared library runtime path variable.
18078 runpath_var=$runpath_var
18079
18080 # Shared library path variable.
18081 shlibpath_var=$shlibpath_var
18082
18083 # Is shlibpath searched before the hard-coded library search path?
18084 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18085
18086 # Format of library name prefix.
18087 libname_spec=$lt_libname_spec
18088
18089 # List of archive names.  First name is the real one, the rest are links.
18090 # The last name is the one that the linker finds with -lNAME
18091 library_names_spec=$lt_library_names_spec
18092
18093 # The coded name of the library, if different from the real name.
18094 soname_spec=$lt_soname_spec
18095
18096 # Permission mode override for installation of shared libraries.
18097 install_override_mode=$lt_install_override_mode
18098
18099 # Command to use after installation of a shared archive.
18100 postinstall_cmds=$lt_postinstall_cmds
18101
18102 # Command to use after uninstallation of a shared archive.
18103 postuninstall_cmds=$lt_postuninstall_cmds
18104
18105 # Commands used to finish a libtool library installation in a directory.
18106 finish_cmds=$lt_finish_cmds
18107
18108 # As "finish_cmds", except a single script fragment to be evaled but
18109 # not shown.
18110 finish_eval=$lt_finish_eval
18111
18112 # Whether we should hardcode library paths into libraries.
18113 hardcode_into_libs=$hardcode_into_libs
18114
18115 # Compile-time system search path for libraries.
18116 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18117
18118 # Detected run-time system search path for libraries.
18119 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18120
18121 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18122 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18123
18124 # Whether dlopen is supported.
18125 dlopen_support=$enable_dlopen
18126
18127 # Whether dlopen of programs is supported.
18128 dlopen_self=$enable_dlopen_self
18129
18130 # Whether dlopen of statically linked programs is supported.
18131 dlopen_self_static=$enable_dlopen_self_static
18132
18133 # Commands to strip libraries.
18134 old_striplib=$lt_old_striplib
18135 striplib=$lt_striplib
18136
18137
18138 # The linker used to build libraries.
18139 LD=$lt_LD
18140
18141 # How to create reloadable object files.
18142 reload_flag=$lt_reload_flag
18143 reload_cmds=$lt_reload_cmds
18144
18145 # Commands used to build an old-style archive.
18146 old_archive_cmds=$lt_old_archive_cmds
18147
18148 # A language specific compiler.
18149 CC=$lt_compiler
18150
18151 # Is the compiler the GNU compiler?
18152 with_gcc=$GCC
18153
18154 # Compiler flag to turn off builtin functions.
18155 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18156
18157 # Additional compiler flags for building library objects.
18158 pic_flag=$lt_lt_prog_compiler_pic
18159
18160 # How to pass a linker flag through the compiler.
18161 wl=$lt_lt_prog_compiler_wl
18162
18163 # Compiler flag to prevent dynamic linking.
18164 link_static_flag=$lt_lt_prog_compiler_static
18165
18166 # Does compiler simultaneously support -c and -o options?
18167 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18168
18169 # Whether or not to add -lc for building shared libraries.
18170 build_libtool_need_lc=$archive_cmds_need_lc
18171
18172 # Whether or not to disallow shared libs when runtime libs are static.
18173 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18174
18175 # Compiler flag to allow reflexive dlopens.
18176 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18177
18178 # Compiler flag to generate shared objects directly from archives.
18179 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18180
18181 # Whether the compiler copes with passing no objects directly.
18182 compiler_needs_object=$lt_compiler_needs_object
18183
18184 # Create an old-style archive from a shared archive.
18185 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18186
18187 # Create a temporary old-style archive to link instead of a shared archive.
18188 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18189
18190 # Commands used to build a shared archive.
18191 archive_cmds=$lt_archive_cmds
18192 archive_expsym_cmds=$lt_archive_expsym_cmds
18193
18194 # Commands used to build a loadable module if different from building
18195 # a shared archive.
18196 module_cmds=$lt_module_cmds
18197 module_expsym_cmds=$lt_module_expsym_cmds
18198
18199 # Whether we are building with GNU ld or not.
18200 with_gnu_ld=$lt_with_gnu_ld
18201
18202 # Flag that allows shared libraries with undefined symbols to be built.
18203 allow_undefined_flag=$lt_allow_undefined_flag
18204
18205 # Flag that enforces no undefined symbols.
18206 no_undefined_flag=$lt_no_undefined_flag
18207
18208 # Flag to hardcode \$libdir into a binary during linking.
18209 # This must work even if \$libdir does not exist
18210 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18211
18212 # Whether we need a single "-rpath" flag with a separated argument.
18213 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18214
18215 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18216 # DIR into the resulting binary.
18217 hardcode_direct=$hardcode_direct
18218
18219 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18220 # DIR into the resulting binary and the resulting library dependency is
18221 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18222 # library is relocated.
18223 hardcode_direct_absolute=$hardcode_direct_absolute
18224
18225 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18226 # into the resulting binary.
18227 hardcode_minus_L=$hardcode_minus_L
18228
18229 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18230 # into the resulting binary.
18231 hardcode_shlibpath_var=$hardcode_shlibpath_var
18232
18233 # Set to "yes" if building a shared library automatically hardcodes DIR
18234 # into the library and all subsequent libraries and executables linked
18235 # against it.
18236 hardcode_automatic=$hardcode_automatic
18237
18238 # Set to yes if linker adds runtime paths of dependent libraries
18239 # to runtime path list.
18240 inherit_rpath=$inherit_rpath
18241
18242 # Whether libtool must link a program against all its dependency libraries.
18243 link_all_deplibs=$link_all_deplibs
18244
18245 # Set to "yes" if exported symbols are required.
18246 always_export_symbols=$always_export_symbols
18247
18248 # The commands to list exported symbols.
18249 export_symbols_cmds=$lt_export_symbols_cmds
18250
18251 # Symbols that should not be listed in the preloaded symbols.
18252 exclude_expsyms=$lt_exclude_expsyms
18253
18254 # Symbols that must always be exported.
18255 include_expsyms=$lt_include_expsyms
18256
18257 # Commands necessary for linking programs (against libraries) with templates.
18258 prelink_cmds=$lt_prelink_cmds
18259
18260 # Commands necessary for finishing linking programs.
18261 postlink_cmds=$lt_postlink_cmds
18262
18263 # Specify filename containing input files.
18264 file_list_spec=$lt_file_list_spec
18265
18266 # How to hardcode a shared library path into an executable.
18267 hardcode_action=$hardcode_action
18268
18269 # ### END LIBTOOL CONFIG
18270
18271 _LT_EOF
18272
18273     cat <<'_LT_EOF' >> "$cfgfile"
18274
18275 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18276
18277 # func_munge_path_list VARIABLE PATH
18278 # -----------------------------------
18279 # VARIABLE is name of variable containing _space_ separated list of
18280 # directories to be munged by the contents of PATH, which is string
18281 # having a format:
18282 # "DIR[:DIR]:"
18283 #       string "DIR[ DIR]" will be prepended to VARIABLE
18284 # ":DIR[:DIR]"
18285 #       string "DIR[ DIR]" will be appended to VARIABLE
18286 # "DIRP[:DIRP]::[DIRA:]DIRA"
18287 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18288 #       "DIRA[ DIRA]" will be appended to VARIABLE
18289 # "DIR[:DIR]"
18290 #       VARIABLE will be replaced by "DIR[ DIR]"
18291 func_munge_path_list ()
18292 {
18293     case x$2 in
18294     x)
18295         ;;
18296     *:)
18297         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18298         ;;
18299     x:*)
18300         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18301         ;;
18302     *::*)
18303         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18304         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18305         ;;
18306     *)
18307         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18308         ;;
18309     esac
18310 }
18311
18312
18313 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
18314 func_cc_basename ()
18315 {
18316     for cc_temp in $*""; do
18317       case $cc_temp in
18318         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18319         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18320         \-*) ;;
18321         *) break;;
18322       esac
18323     done
18324     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18325 }
18326
18327
18328 # ### END FUNCTIONS SHARED WITH CONFIGURE
18329
18330 _LT_EOF
18331
18332   case $host_os in
18333   aix3*)
18334     cat <<\_LT_EOF >> "$cfgfile"
18335 # AIX sometimes has problems with the GCC collect2 program.  For some
18336 # reason, if we set the COLLECT_NAMES environment variable, the problems
18337 # vanish in a puff of smoke.
18338 if test set != "${COLLECT_NAMES+set}"; then
18339   COLLECT_NAMES=
18340   export COLLECT_NAMES
18341 fi
18342 _LT_EOF
18343     ;;
18344   esac
18345
18346
18347 ltmain=$ac_aux_dir/ltmain.sh
18348
18349
18350   # We use sed instead of cat because bash on DJGPP gets confused if
18351   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18352   # text mode, it properly converts lines to CR/LF.  This bash problem
18353   # is reportedly fixed, but why not run on old versions too?
18354   sed '$q' "$ltmain" >> "$cfgfile" \
18355      || (rm -f "$cfgfile"; exit 1)
18356
18357    mv -f "$cfgfile" "$ofile" ||
18358     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18359   chmod +x "$ofile"
18360
18361  ;;
18362
18363   esac
18364 done # for ac_tag
18365
18366
18367 as_fn_exit 0
18368 _ACEOF
18369 ac_clean_files=$ac_clean_files_save
18370
18371 test $ac_write_fail = 0 ||
18372   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18373
18374
18375 # configure is writing to config.log, and then calls config.status.
18376 # config.status does its own redirection, appending to config.log.
18377 # Unfortunately, on DOS this fails, as config.log is still kept open
18378 # by configure, so config.status won't be able to write to it; its
18379 # output is simply discarded.  So we exec the FD to /dev/null,
18380 # effectively closing config.log, so it can be properly (re)opened and
18381 # appended to by config.status.  When coming back to configure, we
18382 # need to make the FD available again.
18383 if test "$no_create" != yes; then
18384   ac_cs_success=:
18385   ac_config_status_args=
18386   test "$silent" = yes &&
18387     ac_config_status_args="$ac_config_status_args --quiet"
18388   exec 5>/dev/null
18389   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18390   exec 5>>config.log
18391   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18392   # would make configure fail if this is the last instruction.
18393   $ac_cs_success || as_fn_exit 1
18394 fi
18395 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18396   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18397 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18398 fi
18399
18400 chmod +x hotplug.sh