configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xf86-input-mouse 1.7.1.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255 fi
256 exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274 { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283 return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291 set +e
292 as_fn_set_status $1
293 exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302 case $as_dir in #(
303 -*) as_dir=./$as_dir;;
304 esac
305 test -d "$as_dir" || eval $as_mkdir_p || {
306 as_dirs=
307 while :; do
308 case $as_dir in #(
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310 *) as_qdir=$as_dir;;
311 esac
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)[^/].*/{
324 s//\1/
325 q
326 }
327 /^X\(\/\/\)$/{
328 s//\1/
329 q
330 }
331 /^X\(\/\).*/{
332 s//\1/
333 q
334 }
335 s/.*/./; q'`
336 test -d "$as_dir" && break
337 done
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
351 {
352 eval $1+=\$2
353 }'
354 else
355 as_fn_append ()
356 {
357 eval $1=\$$1\$2
358 }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367 eval 'as_fn_arith ()
368 {
369 as_val=$(( $* ))
370 }'
371 else
372 as_fn_arith ()
373 {
374 as_val=`expr "$@" || test $? -eq 1`
375 }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386 as_status=$1; test $as_status -eq 0 && as_status=1
387 if test "$4"; then
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 fi
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
397 as_expr=expr
398 else
399 as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403 as_basename=basename
404 else
405 as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409 as_dirname=dirname
410 else
411 as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\/\)$/{
424 s//\1/
425 q
426 }
427 /^X\/\(\/\).*/{
428 s//\1/
429 q
430 }
431 s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 sed -n '
447 p
448 /[$]LINENO/=
449 ' <$as_myself |
450 sed '
451 s/[$]LINENO.*/&-/
452 t lineno
453 b
454 :lineno
455 N
456 :loop
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 t loop
459 s/-\n.*//
460 ' >$as_me.lineno &&
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
467 . "./$as_me.lineno"
468 # Exit status is that of the last command.
469 exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 xy) ECHO_C='\c';;
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
479 ECHO_T=' ';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
488 else
489 rm -f conf$$.dir
490 mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s='ln -s'
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s=ln
503 else
504 as_ln_s='cp -p'
505 fi
506 else
507 as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520 as_test_x='test -x'
521 else
522 if ls -dL / >/dev/null 2>&1; then
523 as_ls_L_option=L
524 else
525 as_ls_L_option=
526 fi
527 as_test_x='
528 eval sh -c '\''
529 if test -d "$1"; then
530 test -d "$1/.";
531 else
532 case $1 in #(
533 -*)set "./$1";;
534 esac;
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
537 '\'' sh
538 '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='xf86-input-mouse'
573 PACKAGE_TARNAME='xf86-input-mouse'
574 PACKAGE_VERSION='1.7.1'
575 PACKAGE_STRING='xf86-input-mouse 1.7.1'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577 PACKAGE_URL=''
578
579 ac_unique_file="Makefile.am"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 DRIVER_NAME
621 OS_MOUSE_NAME
622 inputdir
623 XORG_LIBS
624 XORG_CFLAGS
625 LINT_FALSE
626 LINT_TRUE
627 LINT_FLAGS
628 LINT
629 AM_BACKSLASH
630 AM_DEFAULT_VERBOSITY
631 MAN_SUBSTS
632 XORG_MAN_PAGE
633 ADMIN_MAN_DIR
634 DRIVER_MAN_DIR
635 MISC_MAN_DIR
636 FILE_MAN_DIR
637 LIB_MAN_DIR
638 APP_MAN_DIR
639 ADMIN_MAN_SUFFIX
640 DRIVER_MAN_SUFFIX
641 MISC_MAN_SUFFIX
642 FILE_MAN_SUFFIX
643 LIB_MAN_SUFFIX
644 APP_MAN_SUFFIX
645 INSTALL_CMD
646 PKG_CONFIG
647 CHANGELOG_CMD
648 STRICT_CFLAGS
649 CWARNFLAGS
650 CPP
651 OTOOL64
652 OTOOL
653 LIPO
654 NMEDIT
655 DSYMUTIL
656 MANIFEST_TOOL
657 RANLIB
658 ac_ct_AR
659 AR
660 DLLTOOL
661 OBJDUMP
662 LN_S
663 NM
664 ac_ct_DUMPBIN
665 DUMPBIN
666 LD
667 FGREP
668 EGREP
669 GREP
670 SED
671 am__fastdepCC_FALSE
672 am__fastdepCC_TRUE
673 CCDEPMODE
674 AMDEPBACKSLASH
675 AMDEP_FALSE
676 AMDEP_TRUE
677 am__quote
678 am__include
679 DEPDIR
680 OBJEXT
681 EXEEXT
682 ac_ct_CC
683 CPPFLAGS
684 LDFLAGS
685 CFLAGS
686 CC
687 host_os
688 host_vendor
689 host_cpu
690 host
691 build_os
692 build_vendor
693 build_cpu
694 build
695 LIBTOOL
696 MAINT
697 MAINTAINER_MODE_FALSE
698 MAINTAINER_MODE_TRUE
699 am__untar
700 am__tar
701 AMTAR
702 am__leading_dot
703 SET_MAKE
704 AWK
705 mkdir_p
706 MKDIR_P
707 INSTALL_STRIP_PROGRAM
708 STRIP
709 install_sh
710 MAKEINFO
711 AUTOHEADER
712 AUTOMAKE
713 AUTOCONF
714 ACLOCAL
715 VERSION
716 PACKAGE
717 CYGPATH_W
718 am__isrc
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 target_alias
723 host_alias
724 build_alias
725 LIBS
726 ECHO_T
727 ECHO_N
728 ECHO_C
729 DEFS
730 mandir
731 localedir
732 libdir
733 psdir
734 pdfdir
735 dvidir
736 htmldir
737 infodir
738 docdir
739 oldincludedir
740 includedir
741 localstatedir
742 sharedstatedir
743 sysconfdir
744 datadir
745 datarootdir
746 libexecdir
747 sbindir
748 bindir
749 program_transform_name
750 prefix
751 exec_prefix
752 PACKAGE_URL
753 PACKAGE_BUGREPORT
754 PACKAGE_STRING
755 PACKAGE_VERSION
756 PACKAGE_TARNAME
757 PACKAGE_NAME
758 PATH_SEPARATOR
759 SHELL'
760 ac_subst_files=''
761 ac_user_opts='
762 enable_option_checking
763 enable_maintainer_mode
764 enable_static
765 enable_shared
766 with_pic
767 enable_fast_install
768 enable_dependency_tracking
769 with_gnu_ld
770 with_sysroot
771 enable_libtool_lock
772 enable_strict_compilation
773 enable_silent_rules
774 with_lint
775 with_xorg_module_dir
776 '
777 ac_precious_vars='build_alias
778 host_alias
779 target_alias
780 CC
781 CFLAGS
782 LDFLAGS
783 LIBS
784 CPPFLAGS
785 CPP
786 PKG_CONFIG
787 LINT
788 LINT_FLAGS
789 XORG_CFLAGS
790 XORG_LIBS'
791
792
793 # Initialize some variables set by options.
794 ac_init_help=
795 ac_init_version=false
796 ac_unrecognized_opts=
797 ac_unrecognized_sep=
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
800 cache_file=/dev/null
801 exec_prefix=NONE
802 no_create=
803 no_recursion=
804 prefix=NONE
805 program_prefix=NONE
806 program_suffix=NONE
807 program_transform_name=s,x,x,
808 silent=
809 site=
810 srcdir=
811 verbose=
812 x_includes=NONE
813 x_libraries=NONE
814
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
840
841 ac_prev=
842 ac_dashdash=
843 for ac_option
844 do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
850 fi
851
852 case $ac_option in
853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *=) ac_optarg= ;;
855 *) ac_optarg=yes ;;
856 esac
857
858 # Accept the important Cygnus configure options, so we can diagnose typos.
859
860 case $ac_dashdash$ac_option in
861 --)
862 ac_dashdash=yes ;;
863
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 ac_prev=bindir ;;
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867 bindir=$ac_optarg ;;
868
869 -build | --build | --buil | --bui | --bu)
870 ac_prev=build_alias ;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias=$ac_optarg ;;
873
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file=$ac_optarg ;;
880
881 --config-cache | -C)
882 cache_file=config.cache ;;
883
884 -datadir | --datadir | --datadi | --datad)
885 ac_prev=datadir ;;
886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
887 datadir=$ac_optarg ;;
888
889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
895
896 -disable-* | --disable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 as_fn_error $? "invalid feature name: $ac_useropt"
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
904 *"
905 "enable_$ac_useropt"
906 "*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=no ;;
911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
921
922 -enable-* | --enable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=\$ac_optarg ;;
937
938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940 | --exec | --exe | --ex)
941 ac_prev=exec_prefix ;;
942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944 | --exec=* | --exe=* | --ex=*)
945 exec_prefix=$ac_optarg ;;
946
947 -gas | --gas | --ga | --g)
948 # Obsolete; use --with-gas.
949 with_gas=yes ;;
950
951 -help | --help | --hel | --he | -h)
952 ac_init_help=long ;;
953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954 ac_init_help=recursive ;;
955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956 ac_init_help=short ;;
957
958 -host | --host | --hos | --ho)
959 ac_prev=host_alias ;;
960 -host=* | --host=* | --hos=* | --ho=*)
961 host_alias=$ac_optarg ;;
962
963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 ac_prev=htmldir ;;
965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 | --ht=*)
967 htmldir=$ac_optarg ;;
968
969 -includedir | --includedir | --includedi | --included | --include \
970 | --includ | --inclu | --incl | --inc)
971 ac_prev=includedir ;;
972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973 | --includ=* | --inclu=* | --incl=* | --inc=*)
974 includedir=$ac_optarg ;;
975
976 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 ac_prev=infodir ;;
978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979 infodir=$ac_optarg ;;
980
981 -libdir | --libdir | --libdi | --libd)
982 ac_prev=libdir ;;
983 -libdir=* | --libdir=* | --libdi=* | --libd=*)
984 libdir=$ac_optarg ;;
985
986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987 | --libexe | --libex | --libe)
988 ac_prev=libexecdir ;;
989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990 | --libexe=* | --libex=* | --libe=*)
991 libexecdir=$ac_optarg ;;
992
993 -localedir | --localedir | --localedi | --localed | --locale)
994 ac_prev=localedir ;;
995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996 localedir=$ac_optarg ;;
997
998 -localstatedir | --localstatedir | --localstatedi | --localstated \
999 | --localstate | --localstat | --localsta | --localst | --locals)
1000 ac_prev=localstatedir ;;
1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003 localstatedir=$ac_optarg ;;
1004
1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 ac_prev=mandir ;;
1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008 mandir=$ac_optarg ;;
1009
1010 -nfp | --nfp | --nf)
1011 # Obsolete; use --without-fp.
1012 with_fp=no ;;
1013
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n)
1016 no_create=yes ;;
1017
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020 no_recursion=yes ;;
1021
1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024 | --oldin | --oldi | --old | --ol | --o)
1025 ac_prev=oldincludedir ;;
1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029 oldincludedir=$ac_optarg ;;
1030
1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 ac_prev=prefix ;;
1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034 prefix=$ac_optarg ;;
1035
1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037 | --program-pre | --program-pr | --program-p)
1038 ac_prev=program_prefix ;;
1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041 program_prefix=$ac_optarg ;;
1042
1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044 | --program-suf | --program-su | --program-s)
1045 ac_prev=program_suffix ;;
1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048 program_suffix=$ac_optarg ;;
1049
1050 -program-transform-name | --program-transform-name \
1051 | --program-transform-nam | --program-transform-na \
1052 | --program-transform-n | --program-transform- \
1053 | --program-transform | --program-transfor \
1054 | --program-transfo | --program-transf \
1055 | --program-trans | --program-tran \
1056 | --progr-tra | --program-tr | --program-t)
1057 ac_prev=program_transform_name ;;
1058 -program-transform-name=* | --program-transform-name=* \
1059 | --program-transform-nam=* | --program-transform-na=* \
1060 | --program-transform-n=* | --program-transform-=* \
1061 | --program-transform=* | --program-transfor=* \
1062 | --program-transfo=* | --program-transf=* \
1063 | --program-trans=* | --program-tran=* \
1064 | --progr-tra=* | --program-tr=* | --program-t=*)
1065 program_transform_name=$ac_optarg ;;
1066
1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 ac_prev=pdfdir ;;
1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070 pdfdir=$ac_optarg ;;
1071
1072 -psdir | --psdir | --psdi | --psd | --ps)
1073 ac_prev=psdir ;;
1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075 psdir=$ac_optarg ;;
1076
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 silent=yes ;;
1080
1081 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082 ac_prev=sbindir ;;
1083 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084 | --sbi=* | --sb=*)
1085 sbindir=$ac_optarg ;;
1086
1087 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089 | --sharedst | --shareds | --shared | --share | --shar \
1090 | --sha | --sh)
1091 ac_prev=sharedstatedir ;;
1092 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095 | --sha=* | --sh=*)
1096 sharedstatedir=$ac_optarg ;;
1097
1098 -site | --site | --sit)
1099 ac_prev=site ;;
1100 -site=* | --site=* | --sit=*)
1101 site=$ac_optarg ;;
1102
1103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104 ac_prev=srcdir ;;
1105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106 srcdir=$ac_optarg ;;
1107
1108 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109 | --syscon | --sysco | --sysc | --sys | --sy)
1110 ac_prev=sysconfdir ;;
1111 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113 sysconfdir=$ac_optarg ;;
1114
1115 -target | --target | --targe | --targ | --tar | --ta | --t)
1116 ac_prev=target_alias ;;
1117 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118 target_alias=$ac_optarg ;;
1119
1120 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1121 verbose=yes ;;
1122
1123 -version | --version | --versio | --versi | --vers | -V)
1124 ac_init_version=: ;;
1125
1126 -with-* | --with-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error $? "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1134 *"
1135 "with_$ac_useropt"
1136 "*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=\$ac_optarg ;;
1141
1142 -without-* | --without-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=no ;;
1157
1158 --x)
1159 # Obsolete; use --with-x.
1160 with_x=yes ;;
1161
1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163 | --x-incl | --x-inc | --x-in | --x-i)
1164 ac_prev=x_includes ;;
1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167 x_includes=$ac_optarg ;;
1168
1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171 ac_prev=x_libraries ;;
1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174 x_libraries=$ac_optarg ;;
1175
1176 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177 Try \`$0 --help' for more information"
1178 ;;
1179
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
1183 case $ac_envvar in #(
1184 '' | [0-9]* | *[!_$as_cr_alnum]* )
1185 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186 esac
1187 eval $ac_envvar=\$ac_optarg
1188 export $ac_envvar ;;
1189
1190 *)
1191 # FIXME: should be removed in autoconf 3.0.
1192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1196 ;;
1197
1198 esac
1199 done
1200
1201 if test -n "$ac_prev"; then
1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203 as_fn_error $? "missing argument to $ac_option"
1204 fi
1205
1206 if test -n "$ac_unrecognized_opts"; then
1207 case $enable_option_checking in
1208 no) ;;
1209 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211 esac
1212 fi
1213
1214 # Check all directory arguments for consistency.
1215 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
1219 do
1220 eval ac_val=\$$ac_var
1221 # Remove trailing slashes.
1222 case $ac_val in
1223 */ )
1224 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225 eval $ac_var=\$ac_val;;
1226 esac
1227 # Be sure to have absolute directory names.
1228 case $ac_val in
1229 [\\/$]* | ?:[\\/]* ) continue;;
1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231 esac
1232 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1233 done
1234
1235 # There might be people who depend on the old broken behavior: `$host'
1236 # used to hold the argument of --host etc.
1237 # FIXME: To remove some day.
1238 build=$build_alias
1239 host=$host_alias
1240 target=$target_alias
1241
1242 # FIXME: To remove some day.
1243 if test "x$host_alias" != x; then
1244 if test "x$build_alias" = x; then
1245 cross_compiling=maybe
1246 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1247 If a cross compiler is detected then cross compile mode will be used" >&2
1248 elif test "x$build_alias" != "x$host_alias"; then
1249 cross_compiling=yes
1250 fi
1251 fi
1252
1253 ac_tool_prefix=
1254 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255
1256 test "$silent" = yes && exec 6>/dev/null
1257
1258
1259 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1260 ac_ls_di=`ls -di .` &&
1261 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1262 as_fn_error $? "working directory cannot be determined"
1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264 as_fn_error $? "pwd does not report name of working directory"
1265
1266
1267 # Find the source files, if location was not specified.
1268 if test -z "$srcdir"; then
1269 ac_srcdir_defaulted=yes
1270 # Try the directory containing this script, then the parent directory.
1271 ac_confdir=`$as_dirname -- "$as_myself" ||
1272 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273 X"$as_myself" : 'X\(//\)[^/]' \| \
1274 X"$as_myself" : 'X\(//\)$' \| \
1275 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1276 $as_echo X"$as_myself" |
1277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)[^/].*/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\/\)$/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\).*/{
1290 s//\1/
1291 q
1292 }
1293 s/.*/./; q'`
1294 srcdir=$ac_confdir
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 srcdir=..
1297 fi
1298 else
1299 ac_srcdir_defaulted=no
1300 fi
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1303 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1304 fi
1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 ac_abs_confdir=`(
1307 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1308 pwd)`
1309 # When building in place, set srcdir=.
1310 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311 srcdir=.
1312 fi
1313 # Remove unnecessary trailing slashes from srcdir.
1314 # Double slashes in file names in object file debugging info
1315 # mess up M-x gdb in Emacs.
1316 case $srcdir in
1317 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 esac
1319 for ac_var in $ac_precious_vars; do
1320 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_env_${ac_var}_value=\$${ac_var}
1322 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324 done
1325
1326 #
1327 # Report the --help message.
1328 #
1329 if test "$ac_init_help" = "long"; then
1330 # Omit some internal or obsolete options to make the list less imposing.
1331 # This message is too long to be a string in the A/UX 3.1 sh.
1332 cat <<_ACEOF
1333 \`configure' configures xf86-input-mouse 1.7.1 to adapt to many kinds of systems.
1334
1335 Usage: $0 [OPTION]... [VAR=VALUE]...
1336
1337 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338 VAR=VALUE. See below for descriptions of some of the useful variables.
1339
1340 Defaults for the options are specified in brackets.
1341
1342 Configuration:
1343 -h, --help display this help and exit
1344 --help=short display options specific to this package
1345 --help=recursive display the short help of all the included packages
1346 -V, --version display version information and exit
1347 -q, --quiet, --silent do not print \`checking ...' messages
1348 --cache-file=FILE cache test results in FILE [disabled]
1349 -C, --config-cache alias for \`--cache-file=config.cache'
1350 -n, --no-create do not create output files
1351 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352
1353 Installation directories:
1354 --prefix=PREFIX install architecture-independent files in PREFIX
1355 [$ac_default_prefix]
1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1357 [PREFIX]
1358
1359 By default, \`make install' will install all the files in
1360 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1361 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362 for instance \`--prefix=\$HOME'.
1363
1364 For better control, use the options below.
1365
1366 Fine tuning of the installation directories:
1367 --bindir=DIR user executables [EPREFIX/bin]
1368 --sbindir=DIR system admin executables [EPREFIX/sbin]
1369 --libexecdir=DIR program executables [EPREFIX/libexec]
1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1373 --libdir=DIR object code libraries [EPREFIX/lib]
1374 --includedir=DIR C header files [PREFIX/include]
1375 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1378 --infodir=DIR info documentation [DATAROOTDIR/info]
1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1380 --mandir=DIR man documentation [DATAROOTDIR/man]
1381 --docdir=DIR documentation root
1382 [DATAROOTDIR/doc/xf86-input-mouse]
1383 --htmldir=DIR html documentation [DOCDIR]
1384 --dvidir=DIR dvi documentation [DOCDIR]
1385 --pdfdir=DIR pdf documentation [DOCDIR]
1386 --psdir=DIR ps documentation [DOCDIR]
1387 _ACEOF
1388
1389 cat <<\_ACEOF
1390
1391 Program names:
1392 --program-prefix=PREFIX prepend PREFIX to installed program names
1393 --program-suffix=SUFFIX append SUFFIX to installed program names
1394 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1395
1396 System types:
1397 --build=BUILD configure for building on BUILD [guessed]
1398 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1399 _ACEOF
1400 fi
1401
1402 if test -n "$ac_init_help"; then
1403 case $ac_init_help in
1404 short | recursive ) echo "Configuration of xf86-input-mouse 1.7.1:";;
1405 esac
1406 cat <<\_ACEOF
1407
1408 Optional Features:
1409 --disable-option-checking ignore unrecognized --enable/--with options
1410 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1411 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1412 --enable-maintainer-mode enable make rules and dependencies not useful
1413 (and sometimes confusing) to the casual installer
1414 --enable-static[=PKGS] build static libraries [default=no]
1415 --enable-shared[=PKGS] build shared libraries [default=yes]
1416 --enable-fast-install[=PKGS]
1417 optimize for fast installation [default=yes]
1418 --disable-dependency-tracking speeds up one-time build
1419 --enable-dependency-tracking do not reject slow dependency extractors
1420 --disable-libtool-lock avoid locking (might break parallel builds)
1421 --enable-strict-compilation
1422 Enable all warnings from compiler and make them
1423 errors (default: disabled)
1424 --enable-silent-rules less verbose build output (undo: `make V=1')
1425 --disable-silent-rules verbose build output (undo: `make V=0')
1426
1427 Optional Packages:
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430 --with-pic try to use only PIC/non-PIC objects [default=use
1431 both]
1432 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1433 --with-sysroot=DIR Search for dependent libraries within DIR
1434 (or the compiler's sysroot if not specified).
1435 --with-lint Use a lint-style source code checker (default:
1436 disabled)
1437 --with-xorg-module-dir=DIR
1438 Default xorg module directory
1439 [[default=$libdir/xorg/modules]]
1440
1441 Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 LIBS libraries to pass to the linker, e.g. -l<library>
1447 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1448 you have headers in a nonstandard directory <include dir>
1449 CPP C preprocessor
1450 PKG_CONFIG path to pkg-config utility
1451 LINT Path to a lint-style command
1452 LINT_FLAGS Flags for the lint-style command
1453 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1454 XORG_LIBS linker flags for XORG, overriding pkg-config
1455
1456 Use these variables to override the choices made by `configure' or to help
1457 it to find libraries and programs with nonstandard names/locations.
1458
1459 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1460 _ACEOF
1461 ac_status=$?
1462 fi
1463
1464 if test "$ac_init_help" = "recursive"; then
1465 # If there are subdirs, report their specific --help.
1466 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467 test -d "$ac_dir" ||
1468 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1469 continue
1470 ac_builddir=.
1471
1472 case "$ac_dir" in
1473 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *)
1475 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1476 # A ".." for each directory in $ac_dir_suffix.
1477 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1478 case $ac_top_builddir_sub in
1479 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481 esac ;;
1482 esac
1483 ac_abs_top_builddir=$ac_pwd
1484 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485 # for backward compatibility:
1486 ac_top_builddir=$ac_top_build_prefix
1487
1488 case $srcdir in
1489 .) # We are building in place.
1490 ac_srcdir=.
1491 ac_top_srcdir=$ac_top_builddir_sub
1492 ac_abs_top_srcdir=$ac_pwd ;;
1493 [\\/]* | ?:[\\/]* ) # Absolute name.
1494 ac_srcdir=$srcdir$ac_dir_suffix;
1495 ac_top_srcdir=$srcdir
1496 ac_abs_top_srcdir=$srcdir ;;
1497 *) # Relative name.
1498 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499 ac_top_srcdir=$ac_top_build_prefix$srcdir
1500 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501 esac
1502 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503
1504 cd "$ac_dir" || { ac_status=$?; continue; }
1505 # Check for guested configure.
1506 if test -f "$ac_srcdir/configure.gnu"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509 elif test -f "$ac_srcdir/configure"; then
1510 echo &&
1511 $SHELL "$ac_srcdir/configure" --help=recursive
1512 else
1513 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514 fi || ac_status=$?
1515 cd "$ac_pwd" || { ac_status=$?; break; }
1516 done
1517 fi
1518
1519 test -n "$ac_init_help" && exit $ac_status
1520 if $ac_init_version; then
1521 cat <<\_ACEOF
1522 xf86-input-mouse configure 1.7.1
1523 generated by GNU Autoconf 2.68
1524
1525 Copyright (C) 2010 Free Software Foundation, Inc.
1526 This configure script is free software; the Free Software Foundation
1527 gives unlimited permission to copy, distribute and modify it.
1528 _ACEOF
1529 exit
1530 fi
1531
1532 ## ------------------------ ##
1533 ## Autoconf initialization. ##
1534 ## ------------------------ ##
1535
1536 # ac_fn_c_try_compile LINENO
1537 # --------------------------
1538 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1539 ac_fn_c_try_compile ()
1540 {
1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542 rm -f conftest.$ac_objext
1543 if { { ac_try="$ac_compile"
1544 case "(($ac_try" in
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1547 esac
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 $as_echo "$ac_try_echo"; } >&5
1550 (eval "$ac_compile") 2>conftest.err
1551 ac_status=$?
1552 if test -s conftest.err; then
1553 grep -v '^ *+' conftest.err >conftest.er1
1554 cat conftest.er1 >&5
1555 mv -f conftest.er1 conftest.err
1556 fi
1557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558 test $ac_status = 0; } && {
1559 test -z "$ac_c_werror_flag" ||
1560 test ! -s conftest.err
1561 } && test -s conftest.$ac_objext; then :
1562 ac_retval=0
1563 else
1564 $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1566
1567 ac_retval=1
1568 fi
1569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570 as_fn_set_status $ac_retval
1571
1572 } # ac_fn_c_try_compile
1573
1574 # ac_fn_c_try_link LINENO
1575 # -----------------------
1576 # Try to link conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_link ()
1578 {
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext conftest$ac_exeext
1581 if { { ac_try="$ac_link"
1582 case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_link") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest$ac_exeext && {
1600 test "$cross_compiling" = yes ||
1601 $as_test_x conftest$ac_exeext
1602 }; then :
1603 ac_retval=0
1604 else
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1607
1608 ac_retval=1
1609 fi
1610 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1611 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1612 # interfere with the next link command; also delete a directory that is
1613 # left behind by Apple's compiler. We do this before executing the actions.
1614 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616 as_fn_set_status $ac_retval
1617
1618 } # ac_fn_c_try_link
1619
1620 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1621 # -------------------------------------------------------
1622 # Tests whether HEADER exists and can be compiled using the include files in
1623 # INCLUDES, setting the cache variable VAR accordingly.
1624 ac_fn_c_check_header_compile ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1628 $as_echo_n "checking for $2... " >&6; }
1629 if eval \${$3+:} false; then :
1630 $as_echo_n "(cached) " >&6
1631 else
1632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633 /* end confdefs.h. */
1634 $4
1635 #include <$2>
1636 _ACEOF
1637 if ac_fn_c_try_compile "$LINENO"; then :
1638 eval "$3=yes"
1639 else
1640 eval "$3=no"
1641 fi
1642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1643 fi
1644 eval ac_res=\$$3
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646 $as_echo "$ac_res" >&6; }
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648
1649 } # ac_fn_c_check_header_compile
1650
1651 # ac_fn_c_try_cpp LINENO
1652 # ----------------------
1653 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_cpp ()
1655 {
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if { { ac_try="$ac_cpp conftest.$ac_ext"
1658 case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1670 fi
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } > conftest.i && {
1673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 }; then :
1676 ac_retval=0
1677 else
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=1
1682 fi
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1685
1686 } # ac_fn_c_try_cpp
1687
1688 # ac_fn_c_try_run LINENO
1689 # ----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1691 # that executables *can* be run.
1692 ac_fn_c_try_run ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_link"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_link") 2>&5
1703 ac_status=$?
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1706 { { case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_try") 2>&5
1713 ac_status=$?
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; }; }; then :
1716 ac_retval=0
1717 else
1718 $as_echo "$as_me: program exited with status $ac_status" >&5
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=$ac_status
1723 fi
1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 as_fn_set_status $ac_retval
1727
1728 } # ac_fn_c_try_run
1729
1730 # ac_fn_c_check_func LINENO FUNC VAR
1731 # ----------------------------------
1732 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1733 ac_fn_c_check_func ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 $as_echo_n "checking for $2... " >&6; }
1738 if eval \${$3+:} false; then :
1739 $as_echo_n "(cached) " >&6
1740 else
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1743 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1745 #define $2 innocuous_$2
1746
1747 /* System header to define __stub macros and hopefully few prototypes,
1748 which can conflict with char $2 (); below.
1749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1750 <limits.h> exists even on freestanding compilers. */
1751
1752 #ifdef __STDC__
1753 # include <limits.h>
1754 #else
1755 # include <assert.h>
1756 #endif
1757
1758 #undef $2
1759
1760 /* Override any GCC internal prototype to avoid an error.
1761 Use char because int might match the return type of a GCC
1762 builtin and then its argument prototype would still apply. */
1763 #ifdef __cplusplus
1764 extern "C"
1765 #endif
1766 char $2 ();
1767 /* The GNU C library defines this for functions which it implements
1768 to always fail with ENOSYS. Some functions are actually named
1769 something starting with __ and the normal name is an alias. */
1770 #if defined __stub_$2 || defined __stub___$2
1771 choke me
1772 #endif
1773
1774 int
1775 main ()
1776 {
1777 return $2 ();
1778 ;
1779 return 0;
1780 }
1781 _ACEOF
1782 if ac_fn_c_try_link "$LINENO"; then :
1783 eval "$3=yes"
1784 else
1785 eval "$3=no"
1786 fi
1787 rm -f core conftest.err conftest.$ac_objext \
1788 conftest$ac_exeext conftest.$ac_ext
1789 fi
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795 } # ac_fn_c_check_func
1796
1797 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1798 # ---------------------------------------------
1799 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1800 # accordingly.
1801 ac_fn_c_check_decl ()
1802 {
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 as_decl_name=`echo $2|sed 's/ *(.*//'`
1805 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1807 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1808 if eval \${$3+:} false; then :
1809 $as_echo_n "(cached) " >&6
1810 else
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1813 $4
1814 int
1815 main ()
1816 {
1817 #ifndef $as_decl_name
1818 #ifdef __cplusplus
1819 (void) $as_decl_use;
1820 #else
1821 (void) $as_decl_name;
1822 #endif
1823 #endif
1824
1825 ;
1826 return 0;
1827 }
1828 _ACEOF
1829 if ac_fn_c_try_compile "$LINENO"; then :
1830 eval "$3=yes"
1831 else
1832 eval "$3=no"
1833 fi
1834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835 fi
1836 eval ac_res=\$$3
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 $as_echo "$ac_res" >&6; }
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840
1841 } # ac_fn_c_check_decl
1842 cat >config.log <<_ACEOF
1843 This file contains any messages produced by compilers while
1844 running configure, to aid debugging if configure makes a mistake.
1845
1846 It was created by xf86-input-mouse $as_me 1.7.1, which was
1847 generated by GNU Autoconf 2.68. Invocation command line was
1848
1849 $ $0 $@
1850
1851 _ACEOF
1852 exec 5>>config.log
1853 {
1854 cat <<_ASUNAME
1855 ## --------- ##
1856 ## Platform. ##
1857 ## --------- ##
1858
1859 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1860 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1861 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1862 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1863 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1864
1865 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1866 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1867
1868 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1869 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1870 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1871 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1872 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1873 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1874 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1875
1876 _ASUNAME
1877
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879 for as_dir in $PATH
1880 do
1881 IFS=$as_save_IFS
1882 test -z "$as_dir" && as_dir=.
1883 $as_echo "PATH: $as_dir"
1884 done
1885 IFS=$as_save_IFS
1886
1887 } >&5
1888
1889 cat >&5 <<_ACEOF
1890
1891
1892 ## ----------- ##
1893 ## Core tests. ##
1894 ## ----------- ##
1895
1896 _ACEOF
1897
1898
1899 # Keep a trace of the command line.
1900 # Strip out --no-create and --no-recursion so they do not pile up.
1901 # Strip out --silent because we don't want to record it for future runs.
1902 # Also quote any args containing shell meta-characters.
1903 # Make two passes to allow for proper duplicate-argument suppression.
1904 ac_configure_args=
1905 ac_configure_args0=
1906 ac_configure_args1=
1907 ac_must_keep_next=false
1908 for ac_pass in 1 2
1909 do
1910 for ac_arg
1911 do
1912 case $ac_arg in
1913 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1914 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1915 | -silent | --silent | --silen | --sile | --sil)
1916 continue ;;
1917 *\'*)
1918 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1919 esac
1920 case $ac_pass in
1921 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1922 2)
1923 as_fn_append ac_configure_args1 " '$ac_arg'"
1924 if test $ac_must_keep_next = true; then
1925 ac_must_keep_next=false # Got value, back to normal.
1926 else
1927 case $ac_arg in
1928 *=* | --config-cache | -C | -disable-* | --disable-* \
1929 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1930 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1931 | -with-* | --with-* | -without-* | --without-* | --x)
1932 case "$ac_configure_args0 " in
1933 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1934 esac
1935 ;;
1936 -* ) ac_must_keep_next=true ;;
1937 esac
1938 fi
1939 as_fn_append ac_configure_args " '$ac_arg'"
1940 ;;
1941 esac
1942 done
1943 done
1944 { ac_configure_args0=; unset ac_configure_args0;}
1945 { ac_configure_args1=; unset ac_configure_args1;}
1946
1947 # When interrupted or exit'd, cleanup temporary files, and complete
1948 # config.log. We remove comments because anyway the quotes in there
1949 # would cause problems or look ugly.
1950 # WARNING: Use '\'' to represent an apostrophe within the trap.
1951 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1952 trap 'exit_status=$?
1953 # Save into config.log some information that might help in debugging.
1954 {
1955 echo
1956
1957 $as_echo "## ---------------- ##
1958 ## Cache variables. ##
1959 ## ---------------- ##"
1960 echo
1961 # The following way of writing the cache mishandles newlines in values,
1962 (
1963 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1964 eval ac_val=\$$ac_var
1965 case $ac_val in #(
1966 *${as_nl}*)
1967 case $ac_var in #(
1968 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1969 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1970 esac
1971 case $ac_var in #(
1972 _ | IFS | as_nl) ;; #(
1973 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1974 *) { eval $ac_var=; unset $ac_var;} ;;
1975 esac ;;
1976 esac
1977 done
1978 (set) 2>&1 |
1979 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1980 *${as_nl}ac_space=\ *)
1981 sed -n \
1982 "s/'\''/'\''\\\\'\'''\''/g;
1983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1984 ;; #(
1985 *)
1986 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1987 ;;
1988 esac |
1989 sort
1990 )
1991 echo
1992
1993 $as_echo "## ----------------- ##
1994 ## Output variables. ##
1995 ## ----------------- ##"
1996 echo
1997 for ac_var in $ac_subst_vars
1998 do
1999 eval ac_val=\$$ac_var
2000 case $ac_val in
2001 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2002 esac
2003 $as_echo "$ac_var='\''$ac_val'\''"
2004 done | sort
2005 echo
2006
2007 if test -n "$ac_subst_files"; then
2008 $as_echo "## ------------------- ##
2009 ## File substitutions. ##
2010 ## ------------------- ##"
2011 echo
2012 for ac_var in $ac_subst_files
2013 do
2014 eval ac_val=\$$ac_var
2015 case $ac_val in
2016 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2017 esac
2018 $as_echo "$ac_var='\''$ac_val'\''"
2019 done | sort
2020 echo
2021 fi
2022
2023 if test -s confdefs.h; then
2024 $as_echo "## ----------- ##
2025 ## confdefs.h. ##
2026 ## ----------- ##"
2027 echo
2028 cat confdefs.h
2029 echo
2030 fi
2031 test "$ac_signal" != 0 &&
2032 $as_echo "$as_me: caught signal $ac_signal"
2033 $as_echo "$as_me: exit $exit_status"
2034 } >&5
2035 rm -f core *.core core.conftest.* &&
2036 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2037 exit $exit_status
2038 ' 0
2039 for ac_signal in 1 2 13 15; do
2040 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2041 done
2042 ac_signal=0
2043
2044 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2045 rm -f -r conftest* confdefs.h
2046
2047 $as_echo "/* confdefs.h */" > confdefs.h
2048
2049 # Predefined preprocessor variables.
2050
2051 cat >>confdefs.h <<_ACEOF
2052 #define PACKAGE_NAME "$PACKAGE_NAME"
2053 _ACEOF
2054
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2057 _ACEOF
2058
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2061 _ACEOF
2062
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_STRING "$PACKAGE_STRING"
2065 _ACEOF
2066
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2069 _ACEOF
2070
2071 cat >>confdefs.h <<_ACEOF
2072 #define PACKAGE_URL "$PACKAGE_URL"
2073 _ACEOF
2074
2075
2076 # Let the site file select an alternate cache file if it wants to.
2077 # Prefer an explicitly selected file to automatically selected ones.
2078 ac_site_file1=NONE
2079 ac_site_file2=NONE
2080 if test -n "$CONFIG_SITE"; then
2081 # We do not want a PATH search for config.site.
2082 case $CONFIG_SITE in #((
2083 -*) ac_site_file1=./$CONFIG_SITE;;
2084 */*) ac_site_file1=$CONFIG_SITE;;
2085 *) ac_site_file1=./$CONFIG_SITE;;
2086 esac
2087 elif test "x$prefix" != xNONE; then
2088 ac_site_file1=$prefix/share/config.site
2089 ac_site_file2=$prefix/etc/config.site
2090 else
2091 ac_site_file1=$ac_default_prefix/share/config.site
2092 ac_site_file2=$ac_default_prefix/etc/config.site
2093 fi
2094 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2095 do
2096 test "x$ac_site_file" = xNONE && continue
2097 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2099 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2100 sed 's/^/| /' "$ac_site_file" >&5
2101 . "$ac_site_file" \
2102 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2104 as_fn_error $? "failed to load site script $ac_site_file
2105 See \`config.log' for more details" "$LINENO" 5; }
2106 fi
2107 done
2108
2109 if test -r "$cache_file"; then
2110 # Some versions of bash will fail to source /dev/null (special files
2111 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2112 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2114 $as_echo "$as_me: loading cache $cache_file" >&6;}
2115 case $cache_file in
2116 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2117 *) . "./$cache_file";;
2118 esac
2119 fi
2120 else
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2122 $as_echo "$as_me: creating cache $cache_file" >&6;}
2123 >$cache_file
2124 fi
2125
2126 # Check that the precious variables saved in the cache have kept the same
2127 # value.
2128 ac_cache_corrupted=false
2129 for ac_var in $ac_precious_vars; do
2130 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2131 eval ac_new_set=\$ac_env_${ac_var}_set
2132 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2133 eval ac_new_val=\$ac_env_${ac_var}_value
2134 case $ac_old_set,$ac_new_set in
2135 set,)
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2137 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2138 ac_cache_corrupted=: ;;
2139 ,set)
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2141 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2142 ac_cache_corrupted=: ;;
2143 ,);;
2144 *)
2145 if test "x$ac_old_val" != "x$ac_new_val"; then
2146 # differences in whitespace do not lead to failure.
2147 ac_old_val_w=`echo x $ac_old_val`
2148 ac_new_val_w=`echo x $ac_new_val`
2149 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2151 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2152 ac_cache_corrupted=:
2153 else
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2155 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2156 eval $ac_var=\$ac_old_val
2157 fi
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2159 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2161 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2162 fi;;
2163 esac
2164 # Pass precious variables to config.status.
2165 if test "$ac_new_set" = set; then
2166 case $ac_new_val in
2167 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2168 *) ac_arg=$ac_var=$ac_new_val ;;
2169 esac
2170 case " $ac_configure_args " in
2171 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2172 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2173 esac
2174 fi
2175 done
2176 if $ac_cache_corrupted; then
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2180 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2181 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2182 fi
2183 ## -------------------- ##
2184 ## Main body of script. ##
2185 ## -------------------- ##
2186
2187 ac_ext=c
2188 ac_cpp='$CPP $CPPFLAGS'
2189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2192
2193
2194
2195 ac_config_headers="$ac_config_headers config.h"
2196
2197 ac_aux_dir=
2198 for ac_dir in . "$srcdir"/.; do
2199 if test -f "$ac_dir/install-sh"; then
2200 ac_aux_dir=$ac_dir
2201 ac_install_sh="$ac_aux_dir/install-sh -c"
2202 break
2203 elif test -f "$ac_dir/install.sh"; then
2204 ac_aux_dir=$ac_dir
2205 ac_install_sh="$ac_aux_dir/install.sh -c"
2206 break
2207 elif test -f "$ac_dir/shtool"; then
2208 ac_aux_dir=$ac_dir
2209 ac_install_sh="$ac_aux_dir/shtool install -c"
2210 break
2211 fi
2212 done
2213 if test -z "$ac_aux_dir"; then
2214 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2215 fi
2216
2217 # These three variables are undocumented and unsupported,
2218 # and are intended to be withdrawn in a future Autoconf release.
2219 # They can cause serious problems if a builder's source tree is in a directory
2220 # whose full name contains unusual characters.
2221 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2222 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2223 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2224
2225
2226
2227 # Initialize Automake
2228 am__api_version='1.11'
2229
2230 # Find a good install program. We prefer a C program (faster),
2231 # so one script is as good as another. But avoid the broken or
2232 # incompatible versions:
2233 # SysV /etc/install, /usr/sbin/install
2234 # SunOS /usr/etc/install
2235 # IRIX /sbin/install
2236 # AIX /bin/install
2237 # AmigaOS /C/install, which installs bootblocks on floppy discs
2238 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2239 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2240 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2241 # OS/2's system install, which has a completely different semantic
2242 # ./install, which can be erroneously created by make from ./install.sh.
2243 # Reject install programs that cannot install multiple files.
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2245 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2246 if test -z "$INSTALL"; then
2247 if ${ac_cv_path_install+:} false; then :
2248 $as_echo_n "(cached) " >&6
2249 else
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 for as_dir in $PATH
2252 do
2253 IFS=$as_save_IFS
2254 test -z "$as_dir" && as_dir=.
2255 # Account for people who put trailing slashes in PATH elements.
2256 case $as_dir/ in #((
2257 ./ | .// | /[cC]/* | \
2258 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2259 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2260 /usr/ucb/* ) ;;
2261 *)
2262 # OSF1 and SCO ODT 3.0 have their own names for install.
2263 # Don't use installbsd from OSF since it installs stuff as root
2264 # by default.
2265 for ac_prog in ginstall scoinst install; do
2266 for ac_exec_ext in '' $ac_executable_extensions; do
2267 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2268 if test $ac_prog = install &&
2269 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2270 # AIX install. It has an incompatible calling convention.
2271 :
2272 elif test $ac_prog = install &&
2273 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2274 # program-specific install script used by HP pwplus--don't use.
2275 :
2276 else
2277 rm -rf conftest.one conftest.two conftest.dir
2278 echo one > conftest.one
2279 echo two > conftest.two
2280 mkdir conftest.dir
2281 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2282 test -s conftest.one && test -s conftest.two &&
2283 test -s conftest.dir/conftest.one &&
2284 test -s conftest.dir/conftest.two
2285 then
2286 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2287 break 3
2288 fi
2289 fi
2290 fi
2291 done
2292 done
2293 ;;
2294 esac
2295
2296 done
2297 IFS=$as_save_IFS
2298
2299 rm -rf conftest.one conftest.two conftest.dir
2300
2301 fi
2302 if test "${ac_cv_path_install+set}" = set; then
2303 INSTALL=$ac_cv_path_install
2304 else
2305 # As a last resort, use the slow shell script. Don't cache a
2306 # value for INSTALL within a source directory, because that will
2307 # break other packages using the cache if that directory is
2308 # removed, or if the value is a relative name.
2309 INSTALL=$ac_install_sh
2310 fi
2311 fi
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2313 $as_echo "$INSTALL" >&6; }
2314
2315 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2316 # It thinks the first close brace ends the variable substitution.
2317 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2318
2319 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2320
2321 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2322
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2324 $as_echo_n "checking whether build environment is sane... " >&6; }
2325 # Just in case
2326 sleep 1
2327 echo timestamp > conftest.file
2328 # Reject unsafe characters in $srcdir or the absolute working directory
2329 # name. Accept space and tab only in the latter.
2330 am_lf='
2331 '
2332 case `pwd` in
2333 *[\\\"\#\$\&\'\`$am_lf]*)
2334 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2335 esac
2336 case $srcdir in
2337 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2338 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2339 esac
2340
2341 # Do `set' in a subshell so we don't clobber the current shell's
2342 # arguments. Must try -L first in case configure is actually a
2343 # symlink; some systems play weird games with the mod time of symlinks
2344 # (eg FreeBSD returns the mod time of the symlink's containing
2345 # directory).
2346 if (
2347 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2348 if test "$*" = "X"; then
2349 # -L didn't work.
2350 set X `ls -t "$srcdir/configure" conftest.file`
2351 fi
2352 rm -f conftest.file
2353 if test "$*" != "X $srcdir/configure conftest.file" \
2354 && test "$*" != "X conftest.file $srcdir/configure"; then
2355
2356 # If neither matched, then we have a broken ls. This can happen
2357 # if, for instance, CONFIG_SHELL is bash and it inherits a
2358 # broken ls alias from the environment. This has actually
2359 # happened. Such a system could not be considered "sane".
2360 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2361 alias in your environment" "$LINENO" 5
2362 fi
2363
2364 test "$2" = conftest.file
2365 )
2366 then
2367 # Ok.
2368 :
2369 else
2370 as_fn_error $? "newly created file is older than distributed files!
2371 Check your system clock" "$LINENO" 5
2372 fi
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2374 $as_echo "yes" >&6; }
2375 test "$program_prefix" != NONE &&
2376 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2377 # Use a double $ so make ignores it.
2378 test "$program_suffix" != NONE &&
2379 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2380 # Double any \ or $.
2381 # By default was `s,x,x', remove it if useless.
2382 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2383 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2384
2385 # expand $ac_aux_dir to an absolute path
2386 am_aux_dir=`cd $ac_aux_dir && pwd`
2387
2388 if test x"${MISSING+set}" != xset; then
2389 case $am_aux_dir in
2390 *\ * | *\ *)
2391 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2392 *)
2393 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2394 esac
2395 fi
2396 # Use eval to expand $SHELL
2397 if eval "$MISSING --run true"; then
2398 am_missing_run="$MISSING --run "
2399 else
2400 am_missing_run=
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2402 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2403 fi
2404
2405 if test x"${install_sh}" != xset; then
2406 case $am_aux_dir in
2407 *\ * | *\ *)
2408 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2409 *)
2410 install_sh="\${SHELL} $am_aux_dir/install-sh"
2411 esac
2412 fi
2413
2414 # Installed binaries are usually stripped using `strip' when the user
2415 # run `make install-strip'. However `strip' might not be the right
2416 # tool to use in cross-compilation environments, therefore Automake
2417 # will honor the `STRIP' environment variable to overrule this program.
2418 if test "$cross_compiling" != no; then
2419 if test -n "$ac_tool_prefix"; then
2420 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2421 set dummy ${ac_tool_prefix}strip; ac_word=$2
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2423 $as_echo_n "checking for $ac_word... " >&6; }
2424 if ${ac_cv_prog_STRIP+:} false; then :
2425 $as_echo_n "(cached) " >&6
2426 else
2427 if test -n "$STRIP"; then
2428 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2429 else
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2432 do
2433 IFS=$as_save_IFS
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 break 2
2440 fi
2441 done
2442 done
2443 IFS=$as_save_IFS
2444
2445 fi
2446 fi
2447 STRIP=$ac_cv_prog_STRIP
2448 if test -n "$STRIP"; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2450 $as_echo "$STRIP" >&6; }
2451 else
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2453 $as_echo "no" >&6; }
2454 fi
2455
2456
2457 fi
2458 if test -z "$ac_cv_prog_STRIP"; then
2459 ac_ct_STRIP=$STRIP
2460 # Extract the first word of "strip", so it can be a program name with args.
2461 set dummy strip; ac_word=$2
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2463 $as_echo_n "checking for $ac_word... " >&6; }
2464 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2465 $as_echo_n "(cached) " >&6
2466 else
2467 if test -n "$ac_ct_STRIP"; then
2468 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 ac_cv_prog_ac_ct_STRIP="strip"
2478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 break 2
2480 fi
2481 done
2482 done
2483 IFS=$as_save_IFS
2484
2485 fi
2486 fi
2487 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2488 if test -n "$ac_ct_STRIP"; then
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2490 $as_echo "$ac_ct_STRIP" >&6; }
2491 else
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2493 $as_echo "no" >&6; }
2494 fi
2495
2496 if test "x$ac_ct_STRIP" = x; then
2497 STRIP=":"
2498 else
2499 case $cross_compiling:$ac_tool_warned in
2500 yes:)
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2503 ac_tool_warned=yes ;;
2504 esac
2505 STRIP=$ac_ct_STRIP
2506 fi
2507 else
2508 STRIP="$ac_cv_prog_STRIP"
2509 fi
2510
2511 fi
2512 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2513
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2515 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2516 if test -z "$MKDIR_P"; then
2517 if ${ac_cv_path_mkdir+:} false; then :
2518 $as_echo_n "(cached) " >&6
2519 else
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2522 do
2523 IFS=$as_save_IFS
2524 test -z "$as_dir" && as_dir=.
2525 for ac_prog in mkdir gmkdir; do
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2528 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2529 'mkdir (GNU coreutils) '* | \
2530 'mkdir (coreutils) '* | \
2531 'mkdir (fileutils) '4.1*)
2532 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2533 break 3;;
2534 esac
2535 done
2536 done
2537 done
2538 IFS=$as_save_IFS
2539
2540 fi
2541
2542 test -d ./--version && rmdir ./--version
2543 if test "${ac_cv_path_mkdir+set}" = set; then
2544 MKDIR_P="$ac_cv_path_mkdir -p"
2545 else
2546 # As a last resort, use the slow shell script. Don't cache a
2547 # value for MKDIR_P within a source directory, because that will
2548 # break other packages using the cache if that directory is
2549 # removed, or if the value is a relative name.
2550 MKDIR_P="$ac_install_sh -d"
2551 fi
2552 fi
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2554 $as_echo "$MKDIR_P" >&6; }
2555
2556 mkdir_p="$MKDIR_P"
2557 case $mkdir_p in
2558 [\\/$]* | ?:[\\/]*) ;;
2559 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2560 esac
2561
2562 for ac_prog in gawk mawk nawk awk
2563 do
2564 # Extract the first word of "$ac_prog", so it can be a program name with args.
2565 set dummy $ac_prog; ac_word=$2
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2567 $as_echo_n "checking for $ac_word... " >&6; }
2568 if ${ac_cv_prog_AWK+:} false; then :
2569 $as_echo_n "(cached) " >&6
2570 else
2571 if test -n "$AWK"; then
2572 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2573 else
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH
2576 do
2577 IFS=$as_save_IFS
2578 test -z "$as_dir" && as_dir=.
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581 ac_cv_prog_AWK="$ac_prog"
2582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 break 2
2584 fi
2585 done
2586 done
2587 IFS=$as_save_IFS
2588
2589 fi
2590 fi
2591 AWK=$ac_cv_prog_AWK
2592 if test -n "$AWK"; then
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2594 $as_echo "$AWK" >&6; }
2595 else
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2597 $as_echo "no" >&6; }
2598 fi
2599
2600
2601 test -n "$AWK" && break
2602 done
2603
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2605 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2606 set x ${MAKE-make}
2607 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2608 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2609 $as_echo_n "(cached) " >&6
2610 else
2611 cat >conftest.make <<\_ACEOF
2612 SHELL = /bin/sh
2613 all:
2614 @echo '@@@%%%=$(MAKE)=@@@%%%'
2615 _ACEOF
2616 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2617 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2618 *@@@%%%=?*=@@@%%%*)
2619 eval ac_cv_prog_make_${ac_make}_set=yes;;
2620 *)
2621 eval ac_cv_prog_make_${ac_make}_set=no;;
2622 esac
2623 rm -f conftest.make
2624 fi
2625 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2627 $as_echo "yes" >&6; }
2628 SET_MAKE=
2629 else
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2631 $as_echo "no" >&6; }
2632 SET_MAKE="MAKE=${MAKE-make}"
2633 fi
2634
2635 rm -rf .tst 2>/dev/null
2636 mkdir .tst 2>/dev/null
2637 if test -d .tst; then
2638 am__leading_dot=.
2639 else
2640 am__leading_dot=_
2641 fi
2642 rmdir .tst 2>/dev/null
2643
2644 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2645 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2646 # is not polluted with repeated "-I."
2647 am__isrc=' -I$(srcdir)'
2648 # test to see if srcdir already configured
2649 if test -f $srcdir/config.status; then
2650 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2651 fi
2652 fi
2653
2654 # test whether we have cygpath
2655 if test -z "$CYGPATH_W"; then
2656 if (cygpath --version) >/dev/null 2>/dev/null; then
2657 CYGPATH_W='cygpath -w'
2658 else
2659 CYGPATH_W=echo
2660 fi
2661 fi
2662
2663
2664 # Define the identity of the package.
2665 PACKAGE='xf86-input-mouse'
2666 VERSION='1.7.1'
2667
2668
2669 cat >>confdefs.h <<_ACEOF
2670 #define PACKAGE "$PACKAGE"
2671 _ACEOF
2672
2673
2674 cat >>confdefs.h <<_ACEOF
2675 #define VERSION "$VERSION"
2676 _ACEOF
2677
2678 # Some tools Automake needs.
2679
2680 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2681
2682
2683 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2684
2685
2686 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2687
2688
2689 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2690
2691
2692 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2693
2694 # We need awk for the "check" target. The system "awk" is bad on
2695 # some platforms.
2696 # Always define AMTAR for backward compatibility.
2697
2698 AMTAR=${AMTAR-"${am_missing_run}tar"}
2699
2700 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2701
2702
2703
2704
2705
2706
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2708 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2709 # Check whether --enable-maintainer-mode was given.
2710 if test "${enable_maintainer_mode+set}" = set; then :
2711 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2712 else
2713 USE_MAINTAINER_MODE=no
2714 fi
2715
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2717 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2718 if test $USE_MAINTAINER_MODE = yes; then
2719 MAINTAINER_MODE_TRUE=
2720 MAINTAINER_MODE_FALSE='#'
2721 else
2722 MAINTAINER_MODE_TRUE='#'
2723 MAINTAINER_MODE_FALSE=
2724 fi
2725
2726 MAINT=$MAINTAINER_MODE_TRUE
2727
2728
2729
2730 # Initialize libtool
2731 # Check whether --enable-static was given.
2732 if test "${enable_static+set}" = set; then :
2733 enableval=$enable_static; p=${PACKAGE-default}
2734 case $enableval in
2735 yes) enable_static=yes ;;
2736 no) enable_static=no ;;
2737 *)
2738 enable_static=no
2739 # Look at the argument we got. We use all the common list separators.
2740 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2741 for pkg in $enableval; do
2742 IFS="$lt_save_ifs"
2743 if test "X$pkg" = "X$p"; then
2744 enable_static=yes
2745 fi
2746 done
2747 IFS="$lt_save_ifs"
2748 ;;
2749 esac
2750 else
2751 enable_static=no
2752 fi
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762 case `pwd` in
2763 *\ * | *\ *)
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2765 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2766 esac
2767
2768
2769
2770 macro_version='2.4'
2771 macro_revision='1.3293'
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785 ltmain="$ac_aux_dir/ltmain.sh"
2786
2787 # Make sure we can run config.sub.
2788 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2789 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2790
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2792 $as_echo_n "checking build system type... " >&6; }
2793 if ${ac_cv_build+:} false; then :
2794 $as_echo_n "(cached) " >&6
2795 else
2796 ac_build_alias=$build_alias
2797 test "x$ac_build_alias" = x &&
2798 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2799 test "x$ac_build_alias" = x &&
2800 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2801 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2802 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2803
2804 fi
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2806 $as_echo "$ac_cv_build" >&6; }
2807 case $ac_cv_build in
2808 *-*-*) ;;
2809 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2810 esac
2811 build=$ac_cv_build
2812 ac_save_IFS=$IFS; IFS='-'
2813 set x $ac_cv_build
2814 shift
2815 build_cpu=$1
2816 build_vendor=$2
2817 shift; shift
2818 # Remember, the first character of IFS is used to create $*,
2819 # except with old shells:
2820 build_os=$*
2821 IFS=$ac_save_IFS
2822 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2823
2824
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2826 $as_echo_n "checking host system type... " >&6; }
2827 if ${ac_cv_host+:} false; then :
2828 $as_echo_n "(cached) " >&6
2829 else
2830 if test "x$host_alias" = x; then
2831 ac_cv_host=$ac_cv_build
2832 else
2833 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2834 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2835 fi
2836
2837 fi
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2839 $as_echo "$ac_cv_host" >&6; }
2840 case $ac_cv_host in
2841 *-*-*) ;;
2842 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2843 esac
2844 host=$ac_cv_host
2845 ac_save_IFS=$IFS; IFS='-'
2846 set x $ac_cv_host
2847 shift
2848 host_cpu=$1
2849 host_vendor=$2
2850 shift; shift
2851 # Remember, the first character of IFS is used to create $*,
2852 # except with old shells:
2853 host_os=$*
2854 IFS=$ac_save_IFS
2855 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2856
2857
2858 # Backslashify metacharacters that are still active within
2859 # double-quoted strings.
2860 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2861
2862 # Same as above, but do not quote variable references.
2863 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2864
2865 # Sed substitution to delay expansion of an escaped shell variable in a
2866 # double_quote_subst'ed string.
2867 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2868
2869 # Sed substitution to delay expansion of an escaped single quote.
2870 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2871
2872 # Sed substitution to avoid accidental globbing in evaled expressions
2873 no_glob_subst='s/\*/\\\*/g'
2874
2875 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2876 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2877 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2878
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2880 $as_echo_n "checking how to print strings... " >&6; }
2881 # Test print first, because it will be a builtin if present.
2882 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2883 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2884 ECHO='print -r --'
2885 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2886 ECHO='printf %s\n'
2887 else
2888 # Use this function as a fallback that always works.
2889 func_fallback_echo ()
2890 {
2891 eval 'cat <<_LTECHO_EOF
2892 $1
2893 _LTECHO_EOF'
2894 }
2895 ECHO='func_fallback_echo'
2896 fi
2897
2898 # func_echo_all arg...
2899 # Invoke $ECHO with all args, space-separated.
2900 func_echo_all ()
2901 {
2902 $ECHO ""
2903 }
2904
2905 case "$ECHO" in
2906 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2907 $as_echo "printf" >&6; } ;;
2908 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2909 $as_echo "print -r" >&6; } ;;
2910 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2911 $as_echo "cat" >&6; } ;;
2912 esac
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927 DEPDIR="${am__leading_dot}deps"
2928
2929 ac_config_commands="$ac_config_commands depfiles"
2930
2931
2932 am_make=${MAKE-make}
2933 cat > confinc << 'END'
2934 am__doit:
2935 @echo this is the am__doit target
2936 .PHONY: am__doit
2937 END
2938 # If we don't find an include directive, just comment out the code.
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2940 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2941 am__include="#"
2942 am__quote=
2943 _am_result=none
2944 # First try GNU make style include.
2945 echo "include confinc" > confmf
2946 # Ignore all kinds of additional output from `make'.
2947 case `$am_make -s -f confmf 2> /dev/null` in #(
2948 *the\ am__doit\ target*)
2949 am__include=include
2950 am__quote=
2951 _am_result=GNU
2952 ;;
2953 esac
2954 # Now try BSD make style include.
2955 if test "$am__include" = "#"; then
2956 echo '.include "confinc"' > confmf
2957 case `$am_make -s -f confmf 2> /dev/null` in #(
2958 *the\ am__doit\ target*)
2959 am__include=.include
2960 am__quote="\""
2961 _am_result=BSD
2962 ;;
2963 esac
2964 fi
2965
2966
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2968 $as_echo "$_am_result" >&6; }
2969 rm -f confinc confmf
2970
2971 # Check whether --enable-dependency-tracking was given.
2972 if test "${enable_dependency_tracking+set}" = set; then :
2973 enableval=$enable_dependency_tracking;
2974 fi
2975
2976 if test "x$enable_dependency_tracking" != xno; then
2977 am_depcomp="$ac_aux_dir/depcomp"
2978 AMDEPBACKSLASH='\'
2979 fi
2980 if test "x$enable_dependency_tracking" != xno; then
2981 AMDEP_TRUE=
2982 AMDEP_FALSE='#'
2983 else
2984 AMDEP_TRUE='#'
2985 AMDEP_FALSE=
2986 fi
2987
2988
2989 ac_ext=c
2990 ac_cpp='$CPP $CPPFLAGS'
2991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2994 if test -n "$ac_tool_prefix"; then
2995 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2996 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_CC+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 if test -n "$CC"; then
3003 ac_cv_prog_CC="$CC" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3007 do
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 break 2
3015 fi
3016 done
3017 done
3018 IFS=$as_save_IFS
3019
3020 fi
3021 fi
3022 CC=$ac_cv_prog_CC
3023 if test -n "$CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3025 $as_echo "$CC" >&6; }
3026 else
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3029 fi
3030
3031
3032 fi
3033 if test -z "$ac_cv_prog_CC"; then
3034 ac_ct_CC=$CC
3035 # Extract the first word of "gcc", so it can be a program name with args.
3036 set dummy gcc; ac_word=$2
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038 $as_echo_n "checking for $ac_word... " >&6; }
3039 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3040 $as_echo_n "(cached) " >&6
3041 else
3042 if test -n "$ac_ct_CC"; then
3043 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3044 else
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3047 do
3048 IFS=$as_save_IFS
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3052 ac_cv_prog_ac_ct_CC="gcc"
3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 break 2
3055 fi
3056 done
3057 done
3058 IFS=$as_save_IFS
3059
3060 fi
3061 fi
3062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3063 if test -n "$ac_ct_CC"; then
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3065 $as_echo "$ac_ct_CC" >&6; }
3066 else
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 $as_echo "no" >&6; }
3069 fi
3070
3071 if test "x$ac_ct_CC" = x; then
3072 CC=""
3073 else
3074 case $cross_compiling:$ac_tool_warned in
3075 yes:)
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3078 ac_tool_warned=yes ;;
3079 esac
3080 CC=$ac_ct_CC
3081 fi
3082 else
3083 CC="$ac_cv_prog_CC"
3084 fi
3085
3086 if test -z "$CC"; then
3087 if test -n "$ac_tool_prefix"; then
3088 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3089 set dummy ${ac_tool_prefix}cc; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if ${ac_cv_prog_CC+:} false; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3095 if test -n "$CC"; then
3096 ac_cv_prog_CC="$CC" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3100 do
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105 ac_cv_prog_CC="${ac_tool_prefix}cc"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 break 2
3108 fi
3109 done
3110 done
3111 IFS=$as_save_IFS
3112
3113 fi
3114 fi
3115 CC=$ac_cv_prog_CC
3116 if test -n "$CC"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3118 $as_echo "$CC" >&6; }
3119 else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3122 fi
3123
3124
3125 fi
3126 fi
3127 if test -z "$CC"; then
3128 # Extract the first word of "cc", so it can be a program name with args.
3129 set dummy cc; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if ${ac_cv_prog_CC+:} false; then :
3133 $as_echo_n "(cached) " >&6
3134 else
3135 if test -n "$CC"; then
3136 ac_cv_prog_CC="$CC" # Let the user override the test.
3137 else
3138 ac_prog_rejected=no
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 for as_dir in $PATH
3141 do
3142 IFS=$as_save_IFS
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3146 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3147 ac_prog_rejected=yes
3148 continue
3149 fi
3150 ac_cv_prog_CC="cc"
3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 break 2
3153 fi
3154 done
3155 done
3156 IFS=$as_save_IFS
3157
3158 if test $ac_prog_rejected = yes; then
3159 # We found a bogon in the path, so make sure we never use it.
3160 set dummy $ac_cv_prog_CC
3161 shift
3162 if test $# != 0; then
3163 # We chose a different compiler from the bogus one.
3164 # However, it has the same basename, so the bogon will be chosen
3165 # first if we set CC to just the basename; use the full file name.
3166 shift
3167 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3168 fi
3169 fi
3170 fi
3171 fi
3172 CC=$ac_cv_prog_CC
3173 if test -n "$CC"; then
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3175 $as_echo "$CC" >&6; }
3176 else
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3179 fi
3180
3181
3182 fi
3183 if test -z "$CC"; then
3184 if test -n "$ac_tool_prefix"; then
3185 for ac_prog in cl.exe
3186 do
3187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3188 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if ${ac_cv_prog_CC+:} false; then :
3192 $as_echo_n "(cached) " >&6
3193 else
3194 if test -n "$CC"; then
3195 ac_cv_prog_CC="$CC" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3199 do
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 break 2
3207 fi
3208 done
3209 done
3210 IFS=$as_save_IFS
3211
3212 fi
3213 fi
3214 CC=$ac_cv_prog_CC
3215 if test -n "$CC"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3217 $as_echo "$CC" >&6; }
3218 else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3221 fi
3222
3223
3224 test -n "$CC" && break
3225 done
3226 fi
3227 if test -z "$CC"; then
3228 ac_ct_CC=$CC
3229 for ac_prog in cl.exe
3230 do
3231 # Extract the first word of "$ac_prog", so it can be a program name with args.
3232 set dummy $ac_prog; ac_word=$2
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234 $as_echo_n "checking for $ac_word... " >&6; }
3235 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3236 $as_echo_n "(cached) " >&6
3237 else
3238 if test -n "$ac_ct_CC"; then
3239 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3240 else
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3243 do
3244 IFS=$as_save_IFS
3245 test -z "$as_dir" && as_dir=.
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3248 ac_cv_prog_ac_ct_CC="$ac_prog"
3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 break 2
3251 fi
3252 done
3253 done
3254 IFS=$as_save_IFS
3255
3256 fi
3257 fi
3258 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3259 if test -n "$ac_ct_CC"; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3261 $as_echo "$ac_ct_CC" >&6; }
3262 else
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3265 fi
3266
3267
3268 test -n "$ac_ct_CC" && break
3269 done
3270
3271 if test "x$ac_ct_CC" = x; then
3272 CC=""
3273 else
3274 case $cross_compiling:$ac_tool_warned in
3275 yes:)
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3278 ac_tool_warned=yes ;;
3279 esac
3280 CC=$ac_ct_CC
3281 fi
3282 fi
3283
3284 fi
3285
3286
3287 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289 as_fn_error $? "no acceptable C compiler found in \$PATH
3290 See \`config.log' for more details" "$LINENO" 5; }
3291
3292 # Provide some information about the compiler.
3293 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3294 set X $ac_compile
3295 ac_compiler=$2
3296 for ac_option in --version -v -V -qversion; do
3297 { { ac_try="$ac_compiler $ac_option >&5"
3298 case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3301 esac
3302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3303 $as_echo "$ac_try_echo"; } >&5
3304 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3305 ac_status=$?
3306 if test -s conftest.err; then
3307 sed '10a\
3308 ... rest of stderr output deleted ...
3309 10q' conftest.err >conftest.er1
3310 cat conftest.er1 >&5
3311 fi
3312 rm -f conftest.er1 conftest.err
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }
3315 done
3316
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h. */
3319
3320 int
3321 main ()
3322 {
3323
3324 ;
3325 return 0;
3326 }
3327 _ACEOF
3328 ac_clean_files_save=$ac_clean_files
3329 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3330 # Try to create an executable without -o first, disregard a.out.
3331 # It will help us diagnose broken compilers, and finding out an intuition
3332 # of exeext.
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3334 $as_echo_n "checking whether the C compiler works... " >&6; }
3335 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3336
3337 # The possible output files:
3338 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3339
3340 ac_rmfiles=
3341 for ac_file in $ac_files
3342 do
3343 case $ac_file in
3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3345 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3346 esac
3347 done
3348 rm -f $ac_rmfiles
3349
3350 if { { ac_try="$ac_link_default"
3351 case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354 esac
3355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356 $as_echo "$ac_try_echo"; } >&5
3357 (eval "$ac_link_default") 2>&5
3358 ac_status=$?
3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360 test $ac_status = 0; }; then :
3361 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3362 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3363 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3364 # so that the user can short-circuit this test for compilers unknown to
3365 # Autoconf.
3366 for ac_file in $ac_files ''
3367 do
3368 test -f "$ac_file" || continue
3369 case $ac_file in
3370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3371 ;;
3372 [ab].out )
3373 # We found the default executable, but exeext='' is most
3374 # certainly right.
3375 break;;
3376 *.* )
3377 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3378 then :; else
3379 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3380 fi
3381 # We set ac_cv_exeext here because the later test for it is not
3382 # safe: cross compilers may not add the suffix if given an `-o'
3383 # argument, so we may need to know it at that point already.
3384 # Even if this section looks crufty: it has the advantage of
3385 # actually working.
3386 break;;
3387 * )
3388 break;;
3389 esac
3390 done
3391 test "$ac_cv_exeext" = no && ac_cv_exeext=
3392
3393 else
3394 ac_file=''
3395 fi
3396 if test -z "$ac_file"; then :
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3399 $as_echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3401
3402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404 as_fn_error 77 "C compiler cannot create executables
3405 See \`config.log' for more details" "$LINENO" 5; }
3406 else
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3408 $as_echo "yes" >&6; }
3409 fi
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3411 $as_echo_n "checking for C compiler default output file name... " >&6; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3413 $as_echo "$ac_file" >&6; }
3414 ac_exeext=$ac_cv_exeext
3415
3416 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3417 ac_clean_files=$ac_clean_files_save
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3419 $as_echo_n "checking for suffix of executables... " >&6; }
3420 if { { ac_try="$ac_link"
3421 case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3424 esac
3425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426 $as_echo "$ac_try_echo"; } >&5
3427 (eval "$ac_link") 2>&5
3428 ac_status=$?
3429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430 test $ac_status = 0; }; then :
3431 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3432 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3433 # work properly (i.e., refer to `conftest.exe'), while it won't with
3434 # `rm'.
3435 for ac_file in conftest.exe conftest conftest.*; do
3436 test -f "$ac_file" || continue
3437 case $ac_file in
3438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3439 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3440 break;;
3441 * ) break;;
3442 esac
3443 done
3444 else
3445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3448 See \`config.log' for more details" "$LINENO" 5; }
3449 fi
3450 rm -f conftest conftest$ac_cv_exeext
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3452 $as_echo "$ac_cv_exeext" >&6; }
3453
3454 rm -f conftest.$ac_ext
3455 EXEEXT=$ac_cv_exeext
3456 ac_exeext=$EXEEXT
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3459 #include <stdio.h>
3460 int
3461 main ()
3462 {
3463 FILE *f = fopen ("conftest.out", "w");
3464 return ferror (f) || fclose (f) != 0;
3465
3466 ;
3467 return 0;
3468 }
3469 _ACEOF
3470 ac_clean_files="$ac_clean_files conftest.out"
3471 # Check that the compiler produces executables we can run. If not, either
3472 # the compiler is broken, or we cross compile.
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3474 $as_echo_n "checking whether we are cross compiling... " >&6; }
3475 if test "$cross_compiling" != yes; then
3476 { { ac_try="$ac_link"
3477 case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480 esac
3481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3482 $as_echo "$ac_try_echo"; } >&5
3483 (eval "$ac_link") 2>&5
3484 ac_status=$?
3485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3486 test $ac_status = 0; }
3487 if { ac_try='./conftest$ac_cv_exeext'
3488 { { case "(($ac_try" in
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3491 esac
3492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493 $as_echo "$ac_try_echo"; } >&5
3494 (eval "$ac_try") 2>&5
3495 ac_status=$?
3496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3497 test $ac_status = 0; }; }; then
3498 cross_compiling=no
3499 else
3500 if test "$cross_compiling" = maybe; then
3501 cross_compiling=yes
3502 else
3503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3505 as_fn_error $? "cannot run C compiled programs.
3506 If you meant to cross compile, use \`--host'.
3507 See \`config.log' for more details" "$LINENO" 5; }
3508 fi
3509 fi
3510 fi
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3512 $as_echo "$cross_compiling" >&6; }
3513
3514 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3515 ac_clean_files=$ac_clean_files_save
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3517 $as_echo_n "checking for suffix of object files... " >&6; }
3518 if ${ac_cv_objext+:} false; then :
3519 $as_echo_n "(cached) " >&6
3520 else
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3523
3524 int
3525 main ()
3526 {
3527
3528 ;
3529 return 0;
3530 }
3531 _ACEOF
3532 rm -f conftest.o conftest.obj
3533 if { { ac_try="$ac_compile"
3534 case "(($ac_try" in
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3537 esac
3538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3539 $as_echo "$ac_try_echo"; } >&5
3540 (eval "$ac_compile") 2>&5
3541 ac_status=$?
3542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543 test $ac_status = 0; }; then :
3544 for ac_file in conftest.o conftest.obj conftest.*; do
3545 test -f "$ac_file" || continue;
3546 case $ac_file in
3547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3548 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3549 break;;
3550 esac
3551 done
3552 else
3553 $as_echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3555
3556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 as_fn_error $? "cannot compute suffix of object files: cannot compile
3559 See \`config.log' for more details" "$LINENO" 5; }
3560 fi
3561 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3562 fi
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3564 $as_echo "$ac_cv_objext" >&6; }
3565 OBJEXT=$ac_cv_objext
3566 ac_objext=$OBJEXT
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3568 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3569 if ${ac_cv_c_compiler_gnu+:} false; then :
3570 $as_echo_n "(cached) " >&6
3571 else
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3574
3575 int
3576 main ()
3577 {
3578 #ifndef __GNUC__
3579 choke me
3580 #endif
3581
3582 ;
3583 return 0;
3584 }
3585 _ACEOF
3586 if ac_fn_c_try_compile "$LINENO"; then :
3587 ac_compiler_gnu=yes
3588 else
3589 ac_compiler_gnu=no
3590 fi
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3593
3594 fi
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3596 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3597 if test $ac_compiler_gnu = yes; then
3598 GCC=yes
3599 else
3600 GCC=
3601 fi
3602 ac_test_CFLAGS=${CFLAGS+set}
3603 ac_save_CFLAGS=$CFLAGS
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3605 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3606 if ${ac_cv_prog_cc_g+:} false; then :
3607 $as_echo_n "(cached) " >&6
3608 else
3609 ac_save_c_werror_flag=$ac_c_werror_flag
3610 ac_c_werror_flag=yes
3611 ac_cv_prog_cc_g=no
3612 CFLAGS="-g"
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3615
3616 int
3617 main ()
3618 {
3619
3620 ;
3621 return 0;
3622 }
3623 _ACEOF
3624 if ac_fn_c_try_compile "$LINENO"; then :
3625 ac_cv_prog_cc_g=yes
3626 else
3627 CFLAGS=""
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3630
3631 int
3632 main ()
3633 {
3634
3635 ;
3636 return 0;
3637 }
3638 _ACEOF
3639 if ac_fn_c_try_compile "$LINENO"; then :
3640
3641 else
3642 ac_c_werror_flag=$ac_save_c_werror_flag
3643 CFLAGS="-g"
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3646
3647 int
3648 main ()
3649 {
3650
3651 ;
3652 return 0;
3653 }
3654 _ACEOF
3655 if ac_fn_c_try_compile "$LINENO"; then :
3656 ac_cv_prog_cc_g=yes
3657 fi
3658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659 fi
3660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661 fi
3662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3663 ac_c_werror_flag=$ac_save_c_werror_flag
3664 fi
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3666 $as_echo "$ac_cv_prog_cc_g" >&6; }
3667 if test "$ac_test_CFLAGS" = set; then
3668 CFLAGS=$ac_save_CFLAGS
3669 elif test $ac_cv_prog_cc_g = yes; then
3670 if test "$GCC" = yes; then
3671 CFLAGS="-g -O2"
3672 else
3673 CFLAGS="-g"
3674 fi
3675 else
3676 if test "$GCC" = yes; then
3677 CFLAGS="-O2"
3678 else
3679 CFLAGS=
3680 fi
3681 fi
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3683 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3684 if ${ac_cv_prog_cc_c89+:} false; then :
3685 $as_echo_n "(cached) " >&6
3686 else
3687 ac_cv_prog_cc_c89=no
3688 ac_save_CC=$CC
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3691 #include <stdarg.h>
3692 #include <stdio.h>
3693 #include <sys/types.h>
3694 #include <sys/stat.h>
3695 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3696 struct buf { int x; };
3697 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3698 static char *e (p, i)
3699 char **p;
3700 int i;
3701 {
3702 return p[i];
3703 }
3704 static char *f (char * (*g) (char **, int), char **p, ...)
3705 {
3706 char *s;
3707 va_list v;
3708 va_start (v,p);
3709 s = g (p, va_arg (v,int));
3710 va_end (v);
3711 return s;
3712 }
3713
3714 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3715 function prototypes and stuff, but not '\xHH' hex character constants.
3716 These don't provoke an error unfortunately, instead are silently treated
3717 as 'x'. The following induces an error, until -std is added to get
3718 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3719 array size at least. It's necessary to write '\x00'==0 to get something
3720 that's true only with -std. */
3721 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3722
3723 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3724 inside strings and character constants. */
3725 #define FOO(x) 'x'
3726 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3727
3728 int test (int i, double x);
3729 struct s1 {int (*f) (int a);};
3730 struct s2 {int (*f) (double a);};
3731 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3732 int argc;
3733 char **argv;
3734 int
3735 main ()
3736 {
3737 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3738 ;
3739 return 0;
3740 }
3741 _ACEOF
3742 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3743 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3744 do
3745 CC="$ac_save_CC $ac_arg"
3746 if ac_fn_c_try_compile "$LINENO"; then :
3747 ac_cv_prog_cc_c89=$ac_arg
3748 fi
3749 rm -f core conftest.err conftest.$ac_objext
3750 test "x$ac_cv_prog_cc_c89" != "xno" && break
3751 done
3752 rm -f conftest.$ac_ext
3753 CC=$ac_save_CC
3754
3755 fi
3756 # AC_CACHE_VAL
3757 case "x$ac_cv_prog_cc_c89" in
3758 x)
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3760 $as_echo "none needed" >&6; } ;;
3761 xno)
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3763 $as_echo "unsupported" >&6; } ;;
3764 *)
3765 CC="$CC $ac_cv_prog_cc_c89"
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3767 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3768 esac
3769 if test "x$ac_cv_prog_cc_c89" != xno; then :
3770
3771 fi
3772
3773 ac_ext=c
3774 ac_cpp='$CPP $CPPFLAGS'
3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778
3779 depcc="$CC" am_compiler_list=
3780
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3782 $as_echo_n "checking dependency style of $depcc... " >&6; }
3783 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3784 $as_echo_n "(cached) " >&6
3785 else
3786 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3787 # We make a subdir and do the tests there. Otherwise we can end up
3788 # making bogus files that we don't know about and never remove. For
3789 # instance it was reported that on HP-UX the gcc test will end up
3790 # making a dummy file named `D' -- because `-MD' means `put the output
3791 # in D'.
3792 mkdir conftest.dir
3793 # Copy depcomp to subdir because otherwise we won't find it if we're
3794 # using a relative directory.
3795 cp "$am_depcomp" conftest.dir
3796 cd conftest.dir
3797 # We will build objects and dependencies in a subdirectory because
3798 # it helps to detect inapplicable dependency modes. For instance
3799 # both Tru64's cc and ICC support -MD to output dependencies as a
3800 # side effect of compilation, but ICC will put the dependencies in
3801 # the current directory while Tru64 will put them in the object
3802 # directory.
3803 mkdir sub
3804
3805 am_cv_CC_dependencies_compiler_type=none
3806 if test "$am_compiler_list" = ""; then
3807 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3808 fi
3809 am__universal=false
3810 case " $depcc " in #(
3811 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3812 esac
3813
3814 for depmode in $am_compiler_list; do
3815 # Setup a source with many dependencies, because some compilers
3816 # like to wrap large dependency lists on column 80 (with \), and
3817 # we should not choose a depcomp mode which is confused by this.
3818 #
3819 # We need to recreate these files for each test, as the compiler may
3820 # overwrite some of them when testing with obscure command lines.
3821 # This happens at least with the AIX C compiler.
3822 : > sub/conftest.c
3823 for i in 1 2 3 4 5 6; do
3824 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3825 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3826 # Solaris 8's {/usr,}/bin/sh.
3827 touch sub/conftst$i.h
3828 done
3829 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3830
3831 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3832 # mode. It turns out that the SunPro C++ compiler does not properly
3833 # handle `-M -o', and we need to detect this. Also, some Intel
3834 # versions had trouble with output in subdirs
3835 am__obj=sub/conftest.${OBJEXT-o}
3836 am__minus_obj="-o $am__obj"
3837 case $depmode in
3838 gcc)
3839 # This depmode causes a compiler race in universal mode.
3840 test "$am__universal" = false || continue
3841 ;;
3842 nosideeffect)
3843 # after this tag, mechanisms are not by side-effect, so they'll
3844 # only be used when explicitly requested
3845 if test "x$enable_dependency_tracking" = xyes; then
3846 continue
3847 else
3848 break
3849 fi
3850 ;;
3851 msvisualcpp | msvcmsys)
3852 # This compiler won't grok `-c -o', but also, the minuso test has
3853 # not run yet. These depmodes are late enough in the game, and
3854 # so weak that their functioning should not be impacted.
3855 am__obj=conftest.${OBJEXT-o}
3856 am__minus_obj=
3857 ;;
3858 none) break ;;
3859 esac
3860 if depmode=$depmode \
3861 source=sub/conftest.c object=$am__obj \
3862 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3863 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3864 >/dev/null 2>conftest.err &&
3865 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3866 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3867 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3868 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3869 # icc doesn't choke on unknown options, it will just issue warnings
3870 # or remarks (even with -Werror). So we grep stderr for any message
3871 # that says an option was ignored or not supported.
3872 # When given -MP, icc 7.0 and 7.1 complain thusly:
3873 # icc: Command line warning: ignoring option '-M'; no argument required
3874 # The diagnosis changed in icc 8.0:
3875 # icc: Command line remark: option '-MP' not supported
3876 if (grep 'ignoring option' conftest.err ||
3877 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3878 am_cv_CC_dependencies_compiler_type=$depmode
3879 break
3880 fi
3881 fi
3882 done
3883
3884 cd ..
3885 rm -rf conftest.dir
3886 else
3887 am_cv_CC_dependencies_compiler_type=none
3888 fi
3889
3890 fi
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3892 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3893 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3894
3895 if
3896 test "x$enable_dependency_tracking" != xno \
3897 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3898 am__fastdepCC_TRUE=
3899 am__fastdepCC_FALSE='#'
3900 else
3901 am__fastdepCC_TRUE='#'
3902 am__fastdepCC_FALSE=
3903 fi
3904
3905
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3907 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3908 if ${ac_cv_path_SED+:} false; then :
3909 $as_echo_n "(cached) " >&6
3910 else
3911 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3912 for ac_i in 1 2 3 4 5 6 7; do
3913 ac_script="$ac_script$as_nl$ac_script"
3914 done
3915 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3916 { ac_script=; unset ac_script;}
3917 if test -z "$SED"; then
3918 ac_path_SED_found=false
3919 # Loop through the user's path and test for each of PROGNAME-LIST
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3922 do
3923 IFS=$as_save_IFS
3924 test -z "$as_dir" && as_dir=.
3925 for ac_prog in sed gsed; do
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3928 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3929 # Check for GNU ac_path_SED and select it if it is found.
3930 # Check for GNU $ac_path_SED
3931 case `"$ac_path_SED" --version 2>&1` in
3932 *GNU*)
3933 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3934 *)
3935 ac_count=0
3936 $as_echo_n 0123456789 >"conftest.in"
3937 while :
3938 do
3939 cat "conftest.in" "conftest.in" >"conftest.tmp"
3940 mv "conftest.tmp" "conftest.in"
3941 cp "conftest.in" "conftest.nl"
3942 $as_echo '' >> "conftest.nl"
3943 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3945 as_fn_arith $ac_count + 1 && ac_count=$as_val
3946 if test $ac_count -gt ${ac_path_SED_max-0}; then
3947 # Best one so far, save it but keep looking for a better one
3948 ac_cv_path_SED="$ac_path_SED"
3949 ac_path_SED_max=$ac_count
3950 fi
3951 # 10*(2^10) chars as input seems more than enough
3952 test $ac_count -gt 10 && break
3953 done
3954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3955 esac
3956
3957 $ac_path_SED_found && break 3
3958 done
3959 done
3960 done
3961 IFS=$as_save_IFS
3962 if test -z "$ac_cv_path_SED"; then
3963 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3964 fi
3965 else
3966 ac_cv_path_SED=$SED
3967 fi
3968
3969 fi
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3971 $as_echo "$ac_cv_path_SED" >&6; }
3972 SED="$ac_cv_path_SED"
3973 rm -f conftest.sed
3974
3975 test -z "$SED" && SED=sed
3976 Xsed="$SED -e 1s/^X//"
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3989 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3990 if ${ac_cv_path_GREP+:} false; then :
3991 $as_echo_n "(cached) " >&6
3992 else
3993 if test -z "$GREP"; then
3994 ac_path_GREP_found=false
3995 # Loop through the user's path and test for each of PROGNAME-LIST
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3998 do
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 for ac_prog in grep ggrep; do
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4004 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4005 # Check for GNU ac_path_GREP and select it if it is found.
4006 # Check for GNU $ac_path_GREP
4007 case `"$ac_path_GREP" --version 2>&1` in
4008 *GNU*)
4009 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4010 *)
4011 ac_count=0
4012 $as_echo_n 0123456789 >"conftest.in"
4013 while :
4014 do
4015 cat "conftest.in" "conftest.in" >"conftest.tmp"
4016 mv "conftest.tmp" "conftest.in"
4017 cp "conftest.in" "conftest.nl"
4018 $as_echo 'GREP' >> "conftest.nl"
4019 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4020 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4021 as_fn_arith $ac_count + 1 && ac_count=$as_val
4022 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4023 # Best one so far, save it but keep looking for a better one
4024 ac_cv_path_GREP="$ac_path_GREP"
4025 ac_path_GREP_max=$ac_count
4026 fi
4027 # 10*(2^10) chars as input seems more than enough
4028 test $ac_count -gt 10 && break
4029 done
4030 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4031 esac
4032
4033 $ac_path_GREP_found && break 3
4034 done
4035 done
4036 done
4037 IFS=$as_save_IFS
4038 if test -z "$ac_cv_path_GREP"; then
4039 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4040 fi
4041 else
4042 ac_cv_path_GREP=$GREP
4043 fi
4044
4045 fi
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4047 $as_echo "$ac_cv_path_GREP" >&6; }
4048 GREP="$ac_cv_path_GREP"
4049
4050
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4052 $as_echo_n "checking for egrep... " >&6; }
4053 if ${ac_cv_path_EGREP+:} false; then :
4054 $as_echo_n "(cached) " >&6
4055 else
4056 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4057 then ac_cv_path_EGREP="$GREP -E"
4058 else
4059 if test -z "$EGREP"; then
4060 ac_path_EGREP_found=false
4061 # Loop through the user's path and test for each of PROGNAME-LIST
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4064 do
4065 IFS=$as_save_IFS
4066 test -z "$as_dir" && as_dir=.
4067 for ac_prog in egrep; do
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4070 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4071 # Check for GNU ac_path_EGREP and select it if it is found.
4072 # Check for GNU $ac_path_EGREP
4073 case `"$ac_path_EGREP" --version 2>&1` in
4074 *GNU*)
4075 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4076 *)
4077 ac_count=0
4078 $as_echo_n 0123456789 >"conftest.in"
4079 while :
4080 do
4081 cat "conftest.in" "conftest.in" >"conftest.tmp"
4082 mv "conftest.tmp" "conftest.in"
4083 cp "conftest.in" "conftest.nl"
4084 $as_echo 'EGREP' >> "conftest.nl"
4085 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4087 as_fn_arith $ac_count + 1 && ac_count=$as_val
4088 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4089 # Best one so far, save it but keep looking for a better one
4090 ac_cv_path_EGREP="$ac_path_EGREP"
4091 ac_path_EGREP_max=$ac_count
4092 fi
4093 # 10*(2^10) chars as input seems more than enough
4094 test $ac_count -gt 10 && break
4095 done
4096 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4097 esac
4098
4099 $ac_path_EGREP_found && break 3
4100 done
4101 done
4102 done
4103 IFS=$as_save_IFS
4104 if test -z "$ac_cv_path_EGREP"; then
4105 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4106 fi
4107 else
4108 ac_cv_path_EGREP=$EGREP
4109 fi
4110
4111 fi
4112 fi
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4114 $as_echo "$ac_cv_path_EGREP" >&6; }
4115 EGREP="$ac_cv_path_EGREP"
4116
4117
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4119 $as_echo_n "checking for fgrep... " >&6; }
4120 if ${ac_cv_path_FGREP+:} false; then :
4121 $as_echo_n "(cached) " >&6
4122 else
4123 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4124 then ac_cv_path_FGREP="$GREP -F"
4125 else
4126 if test -z "$FGREP"; then
4127 ac_path_FGREP_found=false
4128 # Loop through the user's path and test for each of PROGNAME-LIST
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4131 do
4132 IFS=$as_save_IFS
4133 test -z "$as_dir" && as_dir=.
4134 for ac_prog in fgrep; do
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4137 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4138 # Check for GNU ac_path_FGREP and select it if it is found.
4139 # Check for GNU $ac_path_FGREP
4140 case `"$ac_path_FGREP" --version 2>&1` in
4141 *GNU*)
4142 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4143 *)
4144 ac_count=0
4145 $as_echo_n 0123456789 >"conftest.in"
4146 while :
4147 do
4148 cat "conftest.in" "conftest.in" >"conftest.tmp"
4149 mv "conftest.tmp" "conftest.in"
4150 cp "conftest.in" "conftest.nl"
4151 $as_echo 'FGREP' >> "conftest.nl"
4152 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4153 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4154 as_fn_arith $ac_count + 1 && ac_count=$as_val
4155 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4156 # Best one so far, save it but keep looking for a better one
4157 ac_cv_path_FGREP="$ac_path_FGREP"
4158 ac_path_FGREP_max=$ac_count
4159 fi
4160 # 10*(2^10) chars as input seems more than enough
4161 test $ac_count -gt 10 && break
4162 done
4163 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4164 esac
4165
4166 $ac_path_FGREP_found && break 3
4167 done
4168 done
4169 done
4170 IFS=$as_save_IFS
4171 if test -z "$ac_cv_path_FGREP"; then
4172 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4173 fi
4174 else
4175 ac_cv_path_FGREP=$FGREP
4176 fi
4177
4178 fi
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4181 $as_echo "$ac_cv_path_FGREP" >&6; }
4182 FGREP="$ac_cv_path_FGREP"
4183
4184
4185 test -z "$GREP" && GREP=grep
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205 # Check whether --with-gnu-ld was given.
4206 if test "${with_gnu_ld+set}" = set; then :
4207 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4208 else
4209 with_gnu_ld=no
4210 fi
4211
4212 ac_prog=ld
4213 if test "$GCC" = yes; then
4214 # Check if gcc -print-prog-name=ld gives a path.
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4216 $as_echo_n "checking for ld used by $CC... " >&6; }
4217 case $host in
4218 *-*-mingw*)
4219 # gcc leaves a trailing carriage return which upsets mingw
4220 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4221 *)
4222 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4223 esac
4224 case $ac_prog in
4225 # Accept absolute paths.
4226 [\\/]* | ?:[\\/]*)
4227 re_direlt='/[^/][^/]*/\.\./'
4228 # Canonicalize the pathname of ld
4229 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4230 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4231 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4232 done
4233 test -z "$LD" && LD="$ac_prog"
4234 ;;
4235 "")
4236 # If it fails, then pretend we aren't using GCC.
4237 ac_prog=ld
4238 ;;
4239 *)
4240 # If it is relative, then search for the first ld in PATH.
4241 with_gnu_ld=unknown
4242 ;;
4243 esac
4244 elif test "$with_gnu_ld" = yes; then
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4246 $as_echo_n "checking for GNU ld... " >&6; }
4247 else
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4249 $as_echo_n "checking for non-GNU ld... " >&6; }
4250 fi
4251 if ${lt_cv_path_LD+:} false; then :
4252 $as_echo_n "(cached) " >&6
4253 else
4254 if test -z "$LD"; then
4255 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4256 for ac_dir in $PATH; do
4257 IFS="$lt_save_ifs"
4258 test -z "$ac_dir" && ac_dir=.
4259 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4260 lt_cv_path_LD="$ac_dir/$ac_prog"
4261 # Check to see if the program is GNU ld. I'd rather use --version,
4262 # but apparently some variants of GNU ld only accept -v.
4263 # Break only if it was the GNU/non-GNU ld that we prefer.
4264 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4265 *GNU* | *'with BFD'*)
4266 test "$with_gnu_ld" != no && break
4267 ;;
4268 *)
4269 test "$with_gnu_ld" != yes && break
4270 ;;
4271 esac
4272 fi
4273 done
4274 IFS="$lt_save_ifs"
4275 else
4276 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4277 fi
4278 fi
4279
4280 LD="$lt_cv_path_LD"
4281 if test -n "$LD"; then
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4283 $as_echo "$LD" >&6; }
4284 else
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286 $as_echo "no" >&6; }
4287 fi
4288 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4290 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4291 if ${lt_cv_prog_gnu_ld+:} false; then :
4292 $as_echo_n "(cached) " >&6
4293 else
4294 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4295 case `$LD -v 2>&1 </dev/null` in
4296 *GNU* | *'with BFD'*)
4297 lt_cv_prog_gnu_ld=yes
4298 ;;
4299 *)
4300 lt_cv_prog_gnu_ld=no
4301 ;;
4302 esac
4303 fi
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4305 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4306 with_gnu_ld=$lt_cv_prog_gnu_ld
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4317 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4318 if ${lt_cv_path_NM+:} false; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 if test -n "$NM"; then
4322 # Let the user override the test.
4323 lt_cv_path_NM="$NM"
4324 else
4325 lt_nm_to_check="${ac_tool_prefix}nm"
4326 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4327 lt_nm_to_check="$lt_nm_to_check nm"
4328 fi
4329 for lt_tmp_nm in $lt_nm_to_check; do
4330 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4331 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4332 IFS="$lt_save_ifs"
4333 test -z "$ac_dir" && ac_dir=.
4334 tmp_nm="$ac_dir/$lt_tmp_nm"
4335 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4336 # Check to see if the nm accepts a BSD-compat flag.
4337 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4338 # nm: unknown option "B" ignored
4339 # Tru64's nm complains that /dev/null is an invalid object file
4340 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4341 */dev/null* | *'Invalid file or object type'*)
4342 lt_cv_path_NM="$tmp_nm -B"
4343 break
4344 ;;
4345 *)
4346 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4347 */dev/null*)
4348 lt_cv_path_NM="$tmp_nm -p"
4349 break
4350 ;;
4351 *)
4352 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4353 continue # so that we can try to find one that supports BSD flags
4354 ;;
4355 esac
4356 ;;
4357 esac
4358 fi
4359 done
4360 IFS="$lt_save_ifs"
4361 done
4362 : ${lt_cv_path_NM=no}
4363 fi
4364 fi
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4366 $as_echo "$lt_cv_path_NM" >&6; }
4367 if test "$lt_cv_path_NM" != "no"; then
4368 NM="$lt_cv_path_NM"
4369 else
4370 # Didn't find any BSD compatible name lister, look for dumpbin.
4371 if test -n "$DUMPBIN"; then :
4372 # Let the user override the test.
4373 else
4374 if test -n "$ac_tool_prefix"; then
4375 for ac_prog in dumpbin "link -dump"
4376 do
4377 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if ${ac_cv_prog_DUMPBIN+:} false; then :
4382 $as_echo_n "(cached) " >&6
4383 else
4384 if test -n "$DUMPBIN"; then
4385 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4386 else
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4389 do
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4394 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 break 2
4397 fi
4398 done
4399 done
4400 IFS=$as_save_IFS
4401
4402 fi
4403 fi
4404 DUMPBIN=$ac_cv_prog_DUMPBIN
4405 if test -n "$DUMPBIN"; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4407 $as_echo "$DUMPBIN" >&6; }
4408 else
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4411 fi
4412
4413
4414 test -n "$DUMPBIN" && break
4415 done
4416 fi
4417 if test -z "$DUMPBIN"; then
4418 ac_ct_DUMPBIN=$DUMPBIN
4419 for ac_prog in dumpbin "link -dump"
4420 do
4421 # Extract the first word of "$ac_prog", so it can be a program name with args.
4422 set dummy $ac_prog; ac_word=$2
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4424 $as_echo_n "checking for $ac_word... " >&6; }
4425 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4426 $as_echo_n "(cached) " >&6
4427 else
4428 if test -n "$ac_ct_DUMPBIN"; then
4429 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4430 else
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4438 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 break 2
4441 fi
4442 done
4443 done
4444 IFS=$as_save_IFS
4445
4446 fi
4447 fi
4448 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4449 if test -n "$ac_ct_DUMPBIN"; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4451 $as_echo "$ac_ct_DUMPBIN" >&6; }
4452 else
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454 $as_echo "no" >&6; }
4455 fi
4456
4457
4458 test -n "$ac_ct_DUMPBIN" && break
4459 done
4460
4461 if test "x$ac_ct_DUMPBIN" = x; then
4462 DUMPBIN=":"
4463 else
4464 case $cross_compiling:$ac_tool_warned in
4465 yes:)
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4468 ac_tool_warned=yes ;;
4469 esac
4470 DUMPBIN=$ac_ct_DUMPBIN
4471 fi
4472 fi
4473
4474 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4475 *COFF*)
4476 DUMPBIN="$DUMPBIN -symbols"
4477 ;;
4478 *)
4479 DUMPBIN=:
4480 ;;
4481 esac
4482 fi
4483
4484 if test "$DUMPBIN" != ":"; then
4485 NM="$DUMPBIN"
4486 fi
4487 fi
4488 test -z "$NM" && NM=nm
4489
4490
4491
4492
4493
4494
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4496 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4497 if ${lt_cv_nm_interface+:} false; then :
4498 $as_echo_n "(cached) " >&6
4499 else
4500 lt_cv_nm_interface="BSD nm"
4501 echo "int some_variable = 0;" > conftest.$ac_ext
4502 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4503 (eval "$ac_compile" 2>conftest.err)
4504 cat conftest.err >&5
4505 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4506 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4507 cat conftest.err >&5
4508 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4509 cat conftest.out >&5
4510 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4511 lt_cv_nm_interface="MS dumpbin"
4512 fi
4513 rm -f conftest*
4514 fi
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4516 $as_echo "$lt_cv_nm_interface" >&6; }
4517
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4519 $as_echo_n "checking whether ln -s works... " >&6; }
4520 LN_S=$as_ln_s
4521 if test "$LN_S" = "ln -s"; then
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4523 $as_echo "yes" >&6; }
4524 else
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4526 $as_echo "no, using $LN_S" >&6; }
4527 fi
4528
4529 # find the maximum length of command line arguments
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4531 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4532 if ${lt_cv_sys_max_cmd_len+:} false; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 i=0
4536 teststring="ABCD"
4537
4538 case $build_os in
4539 msdosdjgpp*)
4540 # On DJGPP, this test can blow up pretty badly due to problems in libc
4541 # (any single argument exceeding 2000 bytes causes a buffer overrun
4542 # during glob expansion). Even if it were fixed, the result of this
4543 # check would be larger than it should be.
4544 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4545 ;;
4546
4547 gnu*)
4548 # Under GNU Hurd, this test is not required because there is
4549 # no limit to the length of command line arguments.
4550 # Libtool will interpret -1 as no limit whatsoever
4551 lt_cv_sys_max_cmd_len=-1;
4552 ;;
4553
4554 cygwin* | mingw* | cegcc*)
4555 # On Win9x/ME, this test blows up -- it succeeds, but takes
4556 # about 5 minutes as the teststring grows exponentially.
4557 # Worse, since 9x/ME are not pre-emptively multitasking,
4558 # you end up with a "frozen" computer, even though with patience
4559 # the test eventually succeeds (with a max line length of 256k).
4560 # Instead, let's just punt: use the minimum linelength reported by
4561 # all of the supported platforms: 8192 (on NT/2K/XP).
4562 lt_cv_sys_max_cmd_len=8192;
4563 ;;
4564
4565 mint*)
4566 # On MiNT this can take a long time and run out of memory.
4567 lt_cv_sys_max_cmd_len=8192;
4568 ;;
4569
4570 amigaos*)
4571 # On AmigaOS with pdksh, this test takes hours, literally.
4572 # So we just punt and use a minimum line length of 8192.
4573 lt_cv_sys_max_cmd_len=8192;
4574 ;;
4575
4576 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4577 # This has been around since 386BSD, at least. Likely further.
4578 if test -x /sbin/sysctl; then
4579 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4580 elif test -x /usr/sbin/sysctl; then
4581 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4582 else
4583 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4584 fi
4585 # And add a safety zone
4586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4588 ;;
4589
4590 interix*)
4591 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4592 lt_cv_sys_max_cmd_len=196608
4593 ;;
4594
4595 osf*)
4596 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4597 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4598 # nice to cause kernel panics so lets avoid the loop below.
4599 # First set a reasonable default.
4600 lt_cv_sys_max_cmd_len=16384
4601 #
4602 if test -x /sbin/sysconfig; then
4603 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4604 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4605 esac
4606 fi
4607 ;;
4608 sco3.2v5*)
4609 lt_cv_sys_max_cmd_len=102400
4610 ;;
4611 sysv5* | sco5v6* | sysv4.2uw2*)
4612 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4613 if test -n "$kargmax"; then
4614 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4615 else
4616 lt_cv_sys_max_cmd_len=32768
4617 fi
4618 ;;
4619 *)
4620 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4621 if test -n "$lt_cv_sys_max_cmd_len"; then
4622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4623 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4624 else
4625 # Make teststring a little bigger before we do anything with it.
4626 # a 1K string should be a reasonable start.
4627 for i in 1 2 3 4 5 6 7 8 ; do
4628 teststring=$teststring$teststring
4629 done
4630 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4631 # If test is not a shell built-in, we'll probably end up computing a
4632 # maximum length that is only half of the actual maximum length, but
4633 # we can't tell.
4634 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4635 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4636 test $i != 17 # 1/2 MB should be enough
4637 do
4638 i=`expr $i + 1`
4639 teststring=$teststring$teststring
4640 done
4641 # Only check the string length outside the loop.
4642 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4643 teststring=
4644 # Add a significant safety factor because C++ compilers can tack on
4645 # massive amounts of additional arguments before passing them to the
4646 # linker. It appears as though 1/2 is a usable value.
4647 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4648 fi
4649 ;;
4650 esac
4651
4652 fi
4653
4654 if test -n $lt_cv_sys_max_cmd_len ; then
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4656 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4657 else
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4659 $as_echo "none" >&6; }
4660 fi
4661 max_cmd_len=$lt_cv_sys_max_cmd_len
4662
4663
4664
4665
4666
4667
4668 : ${CP="cp -f"}
4669 : ${MV="mv -f"}
4670 : ${RM="rm -f"}
4671
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4673 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4674 # Try some XSI features
4675 xsi_shell=no
4676 ( _lt_dummy="a/b/c"
4677 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4678 = c,a/b,b/c, \
4679 && eval 'test $(( 1 + 1 )) -eq 2 \
4680 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4681 && xsi_shell=yes
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4683 $as_echo "$xsi_shell" >&6; }
4684
4685
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4687 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4688 lt_shell_append=no
4689 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4690 >/dev/null 2>&1 \
4691 && lt_shell_append=yes
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4693 $as_echo "$lt_shell_append" >&6; }
4694
4695
4696 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4697 lt_unset=unset
4698 else
4699 lt_unset=false
4700 fi
4701
4702
4703
4704
4705
4706 # test EBCDIC or ASCII
4707 case `echo X|tr X '\101'` in
4708 A) # ASCII based system
4709 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4710 lt_SP2NL='tr \040 \012'
4711 lt_NL2SP='tr \015\012 \040\040'
4712 ;;
4713 *) # EBCDIC based system
4714 lt_SP2NL='tr \100 \n'
4715 lt_NL2SP='tr \r\n \100\100'
4716 ;;
4717 esac
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4728 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4729 if ${lt_cv_to_host_file_cmd+:} false; then :
4730 $as_echo_n "(cached) " >&6
4731 else
4732 case $host in
4733 *-*-mingw* )
4734 case $build in
4735 *-*-mingw* ) # actually msys
4736 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4737 ;;
4738 *-*-cygwin* )
4739 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4740 ;;
4741 * ) # otherwise, assume *nix
4742 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4743 ;;
4744 esac
4745 ;;
4746 *-*-cygwin* )
4747 case $build in
4748 *-*-mingw* ) # actually msys
4749 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4750 ;;
4751 *-*-cygwin* )
4752 lt_cv_to_host_file_cmd=func_convert_file_noop
4753 ;;
4754 * ) # otherwise, assume *nix
4755 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4756 ;;
4757 esac
4758 ;;
4759 * ) # unhandled hosts (and "normal" native builds)
4760 lt_cv_to_host_file_cmd=func_convert_file_noop
4761 ;;
4762 esac
4763
4764 fi
4765
4766 to_host_file_cmd=$lt_cv_to_host_file_cmd
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4768 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4769
4770
4771
4772
4773
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4775 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4776 if ${lt_cv_to_tool_file_cmd+:} false; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 #assume ordinary cross tools, or native build.
4780 lt_cv_to_tool_file_cmd=func_convert_file_noop
4781 case $host in
4782 *-*-mingw* )
4783 case $build in
4784 *-*-mingw* ) # actually msys
4785 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4786 ;;
4787 esac
4788 ;;
4789 esac
4790
4791 fi
4792
4793 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4795 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4796
4797
4798
4799
4800
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4802 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4803 if ${lt_cv_ld_reload_flag+:} false; then :
4804 $as_echo_n "(cached) " >&6
4805 else
4806 lt_cv_ld_reload_flag='-r'
4807 fi
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4809 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4810 reload_flag=$lt_cv_ld_reload_flag
4811 case $reload_flag in
4812 "" | " "*) ;;
4813 *) reload_flag=" $reload_flag" ;;
4814 esac
4815 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4816 case $host_os in
4817 cygwin* | mingw* | pw32* | cegcc*)
4818 if test "$GCC" != yes; then
4819 reload_cmds=false
4820 fi
4821 ;;
4822 darwin*)
4823 if test "$GCC" = yes; then
4824 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4825 else
4826 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4827 fi
4828 ;;
4829 esac
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839 if test -n "$ac_tool_prefix"; then
4840 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4841 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843 $as_echo_n "checking for $ac_word... " >&6; }
4844 if ${ac_cv_prog_OBJDUMP+:} false; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 if test -n "$OBJDUMP"; then
4848 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4849 else
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4852 do
4853 IFS=$as_save_IFS
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4857 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859 break 2
4860 fi
4861 done
4862 done
4863 IFS=$as_save_IFS
4864
4865 fi
4866 fi
4867 OBJDUMP=$ac_cv_prog_OBJDUMP
4868 if test -n "$OBJDUMP"; then
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4870 $as_echo "$OBJDUMP" >&6; }
4871 else
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4873 $as_echo "no" >&6; }
4874 fi
4875
4876
4877 fi
4878 if test -z "$ac_cv_prog_OBJDUMP"; then
4879 ac_ct_OBJDUMP=$OBJDUMP
4880 # Extract the first word of "objdump", so it can be a program name with args.
4881 set dummy objdump; ac_word=$2
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4883 $as_echo_n "checking for $ac_word... " >&6; }
4884 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4885 $as_echo_n "(cached) " >&6
4886 else
4887 if test -n "$ac_ct_OBJDUMP"; then
4888 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4889 else
4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 for as_dir in $PATH
4892 do
4893 IFS=$as_save_IFS
4894 test -z "$as_dir" && as_dir=.
4895 for ac_exec_ext in '' $ac_executable_extensions; do
4896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4897 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4899 break 2
4900 fi
4901 done
4902 done
4903 IFS=$as_save_IFS
4904
4905 fi
4906 fi
4907 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4908 if test -n "$ac_ct_OBJDUMP"; then
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4910 $as_echo "$ac_ct_OBJDUMP" >&6; }
4911 else
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913 $as_echo "no" >&6; }
4914 fi
4915
4916 if test "x$ac_ct_OBJDUMP" = x; then
4917 OBJDUMP="false"
4918 else
4919 case $cross_compiling:$ac_tool_warned in
4920 yes:)
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4923 ac_tool_warned=yes ;;
4924 esac
4925 OBJDUMP=$ac_ct_OBJDUMP
4926 fi
4927 else
4928 OBJDUMP="$ac_cv_prog_OBJDUMP"
4929 fi
4930
4931 test -z "$OBJDUMP" && OBJDUMP=objdump
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4942 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4943 if ${lt_cv_deplibs_check_method+:} false; then :
4944 $as_echo_n "(cached) " >&6
4945 else
4946 lt_cv_file_magic_cmd='$MAGIC_CMD'
4947 lt_cv_file_magic_test_file=
4948 lt_cv_deplibs_check_method='unknown'
4949 # Need to set the preceding variable on all platforms that support
4950 # interlibrary dependencies.
4951 # 'none' -- dependencies not supported.
4952 # `unknown' -- same as none, but documents that we really don't know.
4953 # 'pass_all' -- all dependencies passed with no checks.
4954 # 'test_compile' -- check by making test program.
4955 # 'file_magic [[regex]]' -- check by looking for files in library path
4956 # which responds to the $file_magic_cmd with a given extended regex.
4957 # If you have `file' or equivalent on your system and you're not sure
4958 # whether `pass_all' will *always* work, you probably want this one.
4959
4960 case $host_os in
4961 aix[4-9]*)
4962 lt_cv_deplibs_check_method=pass_all
4963 ;;
4964
4965 beos*)
4966 lt_cv_deplibs_check_method=pass_all
4967 ;;
4968
4969 bsdi[45]*)
4970 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4971 lt_cv_file_magic_cmd='/usr/bin/file -L'
4972 lt_cv_file_magic_test_file=/shlib/libc.so
4973 ;;
4974
4975 cygwin*)
4976 # func_win32_libid is a shell function defined in ltmain.sh
4977 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4978 lt_cv_file_magic_cmd='func_win32_libid'
4979 ;;
4980
4981 mingw* | pw32*)
4982 # Base MSYS/MinGW do not provide the 'file' command needed by
4983 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4984 # unless we find 'file', for example because we are cross-compiling.
4985 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4986 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4987 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4988 lt_cv_file_magic_cmd='func_win32_libid'
4989 else
4990 # Keep this pattern in sync with the one in func_win32_libid.
4991 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4992 lt_cv_file_magic_cmd='$OBJDUMP -f'
4993 fi
4994 ;;
4995
4996 cegcc*)
4997 # use the weaker test based on 'objdump'. See mingw*.
4998 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4999 lt_cv_file_magic_cmd='$OBJDUMP -f'
5000 ;;
5001
5002 darwin* | rhapsody*)
5003 lt_cv_deplibs_check_method=pass_all
5004 ;;
5005
5006 freebsd* | dragonfly*)
5007 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5008 case $host_cpu in
5009 i*86 )
5010 # Not sure whether the presence of OpenBSD here was a mistake.
5011 # Let's accept both of them until this is cleared up.
5012 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5013 lt_cv_file_magic_cmd=/usr/bin/file
5014 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5015 ;;
5016 esac
5017 else
5018 lt_cv_deplibs_check_method=pass_all
5019 fi
5020 ;;
5021
5022 gnu*)
5023 lt_cv_deplibs_check_method=pass_all
5024 ;;
5025
5026 haiku*)
5027 lt_cv_deplibs_check_method=pass_all
5028 ;;
5029
5030 hpux10.20* | hpux11*)
5031 lt_cv_file_magic_cmd=/usr/bin/file
5032 case $host_cpu in
5033 ia64*)
5034 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5035 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5036 ;;
5037 hppa*64*)
5038 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]'
5039 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5040 ;;
5041 *)
5042 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5043 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5044 ;;
5045 esac
5046 ;;
5047
5048 interix[3-9]*)
5049 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5050 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5051 ;;
5052
5053 irix5* | irix6* | nonstopux*)
5054 case $LD in
5055 *-32|*"-32 ") libmagic=32-bit;;
5056 *-n32|*"-n32 ") libmagic=N32;;
5057 *-64|*"-64 ") libmagic=64-bit;;
5058 *) libmagic=never-match;;
5059 esac
5060 lt_cv_deplibs_check_method=pass_all
5061 ;;
5062
5063 # This must be Linux ELF.
5064 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5065 lt_cv_deplibs_check_method=pass_all
5066 ;;
5067
5068 netbsd*)
5069 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5071 else
5072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5073 fi
5074 ;;
5075
5076 newos6*)
5077 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5078 lt_cv_file_magic_cmd=/usr/bin/file
5079 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5080 ;;
5081
5082 *nto* | *qnx*)
5083 lt_cv_deplibs_check_method=pass_all
5084 ;;
5085
5086 openbsd*)
5087 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5089 else
5090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5091 fi
5092 ;;
5093
5094 osf3* | osf4* | osf5*)
5095 lt_cv_deplibs_check_method=pass_all
5096 ;;
5097
5098 rdos*)
5099 lt_cv_deplibs_check_method=pass_all
5100 ;;
5101
5102 solaris*)
5103 lt_cv_deplibs_check_method=pass_all
5104 ;;
5105
5106 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5107 lt_cv_deplibs_check_method=pass_all
5108 ;;
5109
5110 sysv4 | sysv4.3*)
5111 case $host_vendor in
5112 motorola)
5113 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]'
5114 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5115 ;;
5116 ncr)
5117 lt_cv_deplibs_check_method=pass_all
5118 ;;
5119 sequent)
5120 lt_cv_file_magic_cmd='/bin/file'
5121 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5122 ;;
5123 sni)
5124 lt_cv_file_magic_cmd='/bin/file'
5125 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5126 lt_cv_file_magic_test_file=/lib/libc.so
5127 ;;
5128 siemens)
5129 lt_cv_deplibs_check_method=pass_all
5130 ;;
5131 pc)
5132 lt_cv_deplibs_check_method=pass_all
5133 ;;
5134 esac
5135 ;;
5136
5137 tpf*)
5138 lt_cv_deplibs_check_method=pass_all
5139 ;;
5140 esac
5141
5142 fi
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5144 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5145
5146 file_magic_glob=
5147 want_nocaseglob=no
5148 if test "$build" = "$host"; then
5149 case $host_os in
5150 mingw* | pw32*)
5151 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5152 want_nocaseglob=yes
5153 else
5154 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5155 fi
5156 ;;
5157 esac
5158 fi
5159
5160 file_magic_cmd=$lt_cv_file_magic_cmd
5161 deplibs_check_method=$lt_cv_deplibs_check_method
5162 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185 if test -n "$ac_tool_prefix"; then
5186 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5187 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if ${ac_cv_prog_DLLTOOL+:} false; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 if test -n "$DLLTOOL"; then
5194 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5198 do
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5203 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 break 2
5206 fi
5207 done
5208 done
5209 IFS=$as_save_IFS
5210
5211 fi
5212 fi
5213 DLLTOOL=$ac_cv_prog_DLLTOOL
5214 if test -n "$DLLTOOL"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5216 $as_echo "$DLLTOOL" >&6; }
5217 else
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5220 fi
5221
5222
5223 fi
5224 if test -z "$ac_cv_prog_DLLTOOL"; then
5225 ac_ct_DLLTOOL=$DLLTOOL
5226 # Extract the first word of "dlltool", so it can be a program name with args.
5227 set dummy dlltool; ac_word=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 if test -n "$ac_ct_DLLTOOL"; then
5234 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5235 else
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH
5238 do
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 break 2
5246 fi
5247 done
5248 done
5249 IFS=$as_save_IFS
5250
5251 fi
5252 fi
5253 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5254 if test -n "$ac_ct_DLLTOOL"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5256 $as_echo "$ac_ct_DLLTOOL" >&6; }
5257 else
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5260 fi
5261
5262 if test "x$ac_ct_DLLTOOL" = x; then
5263 DLLTOOL="false"
5264 else
5265 case $cross_compiling:$ac_tool_warned in
5266 yes:)
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5269 ac_tool_warned=yes ;;
5270 esac
5271 DLLTOOL=$ac_ct_DLLTOOL
5272 fi
5273 else
5274 DLLTOOL="$ac_cv_prog_DLLTOOL"
5275 fi
5276
5277 test -z "$DLLTOOL" && DLLTOOL=dlltool
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5289 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5290 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5291 $as_echo_n "(cached) " >&6
5292 else
5293 lt_cv_sharedlib_from_linklib_cmd='unknown'
5294
5295 case $host_os in
5296 cygwin* | mingw* | pw32* | cegcc*)
5297 # two different shell functions defined in ltmain.sh
5298 # decide which to use based on capabilities of $DLLTOOL
5299 case `$DLLTOOL --help 2>&1` in
5300 *--identify-strict*)
5301 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5302 ;;
5303 *)
5304 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5305 ;;
5306 esac
5307 ;;
5308 *)
5309 # fallback: assume linklib IS sharedlib
5310 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5311 ;;
5312 esac
5313
5314 fi
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5316 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5317 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5318 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5319
5320
5321
5322
5323
5324
5325
5326
5327 if test -n "$ac_tool_prefix"; then
5328 for ac_prog in ar
5329 do
5330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5333 $as_echo_n "checking for $ac_word... " >&6; }
5334 if ${ac_cv_prog_AR+:} false; then :
5335 $as_echo_n "(cached) " >&6
5336 else
5337 if test -n "$AR"; then
5338 ac_cv_prog_AR="$AR" # Let the user override the test.
5339 else
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH
5342 do
5343 IFS=$as_save_IFS
5344 test -z "$as_dir" && as_dir=.
5345 for ac_exec_ext in '' $ac_executable_extensions; do
5346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5349 break 2
5350 fi
5351 done
5352 done
5353 IFS=$as_save_IFS
5354
5355 fi
5356 fi
5357 AR=$ac_cv_prog_AR
5358 if test -n "$AR"; then
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5360 $as_echo "$AR" >&6; }
5361 else
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363 $as_echo "no" >&6; }
5364 fi
5365
5366
5367 test -n "$AR" && break
5368 done
5369 fi
5370 if test -z "$AR"; then
5371 ac_ct_AR=$AR
5372 for ac_prog in ar
5373 do
5374 # Extract the first word of "$ac_prog", so it can be a program name with args.
5375 set dummy $ac_prog; ac_word=$2
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377 $as_echo_n "checking for $ac_word... " >&6; }
5378 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 if test -n "$ac_ct_AR"; then
5382 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5383 else
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH
5386 do
5387 IFS=$as_save_IFS
5388 test -z "$as_dir" && as_dir=.
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391 ac_cv_prog_ac_ct_AR="$ac_prog"
5392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 break 2
5394 fi
5395 done
5396 done
5397 IFS=$as_save_IFS
5398
5399 fi
5400 fi
5401 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5402 if test -n "$ac_ct_AR"; then
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5404 $as_echo "$ac_ct_AR" >&6; }
5405 else
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407 $as_echo "no" >&6; }
5408 fi
5409
5410
5411 test -n "$ac_ct_AR" && break
5412 done
5413
5414 if test "x$ac_ct_AR" = x; then
5415 AR="false"
5416 else
5417 case $cross_compiling:$ac_tool_warned in
5418 yes:)
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5421 ac_tool_warned=yes ;;
5422 esac
5423 AR=$ac_ct_AR
5424 fi
5425 fi
5426
5427 : ${AR=ar}
5428 : ${AR_FLAGS=cru}
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5441 $as_echo_n "checking for archiver @FILE support... " >&6; }
5442 if ${lt_cv_ar_at_file+:} false; then :
5443 $as_echo_n "(cached) " >&6
5444 else
5445 lt_cv_ar_at_file=no
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5448
5449 int
5450 main ()
5451 {
5452
5453 ;
5454 return 0;
5455 }
5456 _ACEOF
5457 if ac_fn_c_try_compile "$LINENO"; then :
5458 echo conftest.$ac_objext > conftest.lst
5459 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5461 (eval $lt_ar_try) 2>&5
5462 ac_status=$?
5463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5464 test $ac_status = 0; }
5465 if test "$ac_status" -eq 0; then
5466 # Ensure the archiver fails upon bogus file names.
5467 rm -f conftest.$ac_objext libconftest.a
5468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5469 (eval $lt_ar_try) 2>&5
5470 ac_status=$?
5471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5472 test $ac_status = 0; }
5473 if test "$ac_status" -ne 0; then
5474 lt_cv_ar_at_file=@
5475 fi
5476 fi
5477 rm -f conftest.* libconftest.a
5478
5479 fi
5480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481
5482 fi
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5484 $as_echo "$lt_cv_ar_at_file" >&6; }
5485
5486 if test "x$lt_cv_ar_at_file" = xno; then
5487 archiver_list_spec=
5488 else
5489 archiver_list_spec=$lt_cv_ar_at_file
5490 fi
5491
5492
5493
5494
5495
5496
5497
5498 if test -n "$ac_tool_prefix"; then
5499 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5500 set dummy ${ac_tool_prefix}strip; ac_word=$2
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5502 $as_echo_n "checking for $ac_word... " >&6; }
5503 if ${ac_cv_prog_STRIP+:} false; then :
5504 $as_echo_n "(cached) " >&6
5505 else
5506 if test -n "$STRIP"; then
5507 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5508 else
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 for as_dir in $PATH
5511 do
5512 IFS=$as_save_IFS
5513 test -z "$as_dir" && as_dir=.
5514 for ac_exec_ext in '' $ac_executable_extensions; do
5515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5516 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5518 break 2
5519 fi
5520 done
5521 done
5522 IFS=$as_save_IFS
5523
5524 fi
5525 fi
5526 STRIP=$ac_cv_prog_STRIP
5527 if test -n "$STRIP"; then
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5529 $as_echo "$STRIP" >&6; }
5530 else
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532 $as_echo "no" >&6; }
5533 fi
5534
5535
5536 fi
5537 if test -z "$ac_cv_prog_STRIP"; then
5538 ac_ct_STRIP=$STRIP
5539 # Extract the first word of "strip", so it can be a program name with args.
5540 set dummy strip; ac_word=$2
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542 $as_echo_n "checking for $ac_word... " >&6; }
5543 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 if test -n "$ac_ct_STRIP"; then
5547 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5548 else
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5551 do
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_prog_ac_ct_STRIP="strip"
5557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5559 fi
5560 done
5561 done
5562 IFS=$as_save_IFS
5563
5564 fi
5565 fi
5566 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5567 if test -n "$ac_ct_STRIP"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5569 $as_echo "$ac_ct_STRIP" >&6; }
5570 else
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 $as_echo "no" >&6; }
5573 fi
5574
5575 if test "x$ac_ct_STRIP" = x; then
5576 STRIP=":"
5577 else
5578 case $cross_compiling:$ac_tool_warned in
5579 yes:)
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5582 ac_tool_warned=yes ;;
5583 esac
5584 STRIP=$ac_ct_STRIP
5585 fi
5586 else
5587 STRIP="$ac_cv_prog_STRIP"
5588 fi
5589
5590 test -z "$STRIP" && STRIP=:
5591
5592
5593
5594
5595
5596
5597 if test -n "$ac_tool_prefix"; then
5598 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5599 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_prog_RANLIB+:} false; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 if test -n "$RANLIB"; then
5606 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5610 do
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5618 fi
5619 done
5620 done
5621 IFS=$as_save_IFS
5622
5623 fi
5624 fi
5625 RANLIB=$ac_cv_prog_RANLIB
5626 if test -n "$RANLIB"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5628 $as_echo "$RANLIB" >&6; }
5629 else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5632 fi
5633
5634
5635 fi
5636 if test -z "$ac_cv_prog_RANLIB"; then
5637 ac_ct_RANLIB=$RANLIB
5638 # Extract the first word of "ranlib", so it can be a program name with args.
5639 set dummy ranlib; ac_word=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5643 $as_echo_n "(cached) " >&6
5644 else
5645 if test -n "$ac_ct_RANLIB"; then
5646 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5647 else
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5650 do
5651 IFS=$as_save_IFS
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655 ac_cv_prog_ac_ct_RANLIB="ranlib"
5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 break 2
5658 fi
5659 done
5660 done
5661 IFS=$as_save_IFS
5662
5663 fi
5664 fi
5665 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5666 if test -n "$ac_ct_RANLIB"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5668 $as_echo "$ac_ct_RANLIB" >&6; }
5669 else
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5672 fi
5673
5674 if test "x$ac_ct_RANLIB" = x; then
5675 RANLIB=":"
5676 else
5677 case $cross_compiling:$ac_tool_warned in
5678 yes:)
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5681 ac_tool_warned=yes ;;
5682 esac
5683 RANLIB=$ac_ct_RANLIB
5684 fi
5685 else
5686 RANLIB="$ac_cv_prog_RANLIB"
5687 fi
5688
5689 test -z "$RANLIB" && RANLIB=:
5690
5691
5692
5693
5694
5695
5696 # Determine commands to create old-style static archives.
5697 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5698 old_postinstall_cmds='chmod 644 $oldlib'
5699 old_postuninstall_cmds=
5700
5701 if test -n "$RANLIB"; then
5702 case $host_os in
5703 openbsd*)
5704 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5705 ;;
5706 *)
5707 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5708 ;;
5709 esac
5710 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5711 fi
5712
5713 case $host_os in
5714 darwin*)
5715 lock_old_archive_extraction=yes ;;
5716 *)
5717 lock_old_archive_extraction=no ;;
5718 esac
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758 # If no C compiler was specified, use CC.
5759 LTCC=${LTCC-"$CC"}
5760
5761 # If no C compiler flags were specified, use CFLAGS.
5762 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5763
5764 # Allow CC to be a program name with arguments.
5765 compiler=$CC
5766
5767
5768 # Check for command to grab the raw symbol name followed by C symbol from nm.
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5770 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5771 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5772 $as_echo_n "(cached) " >&6
5773 else
5774
5775 # These are sane defaults that work on at least a few old systems.
5776 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5777
5778 # Character class describing NM global symbol codes.
5779 symcode='[BCDEGRST]'
5780
5781 # Regexp to match symbols that can be accessed directly from C.
5782 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5783
5784 # Define system-specific variables.
5785 case $host_os in
5786 aix*)
5787 symcode='[BCDT]'
5788 ;;
5789 cygwin* | mingw* | pw32* | cegcc*)
5790 symcode='[ABCDGISTW]'
5791 ;;
5792 hpux*)
5793 if test "$host_cpu" = ia64; then
5794 symcode='[ABCDEGRST]'
5795 fi
5796 ;;
5797 irix* | nonstopux*)
5798 symcode='[BCDEGRST]'
5799 ;;
5800 osf*)
5801 symcode='[BCDEGQRST]'
5802 ;;
5803 solaris*)
5804 symcode='[BDRT]'
5805 ;;
5806 sco3.2v5*)
5807 symcode='[DT]'
5808 ;;
5809 sysv4.2uw2*)
5810 symcode='[DT]'
5811 ;;
5812 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5813 symcode='[ABDT]'
5814 ;;
5815 sysv4)
5816 symcode='[DFNSTU]'
5817 ;;
5818 esac
5819
5820 # If we're using GNU nm, then use its standard symbol codes.
5821 case `$NM -V 2>&1` in
5822 *GNU* | *'with BFD'*)
5823 symcode='[ABCDGIRSTW]' ;;
5824 esac
5825
5826 # Transform an extracted symbol line into a proper C declaration.
5827 # Some systems (esp. on ia64) link data and code symbols differently,
5828 # so use this general approach.
5829 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5830
5831 # Transform an extracted symbol line into symbol name and symbol address
5832 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5833 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5834
5835 # Handle CRLF in mingw tool chain
5836 opt_cr=
5837 case $build_os in
5838 mingw*)
5839 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5840 ;;
5841 esac
5842
5843 # Try without a prefix underscore, then with it.
5844 for ac_symprfx in "" "_"; do
5845
5846 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5847 symxfrm="\\1 $ac_symprfx\\2 \\2"
5848
5849 # Write the raw and C identifiers.
5850 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5851 # Fake it for dumpbin and say T for any non-static function
5852 # and D for any global variable.
5853 # Also find C++ and __fastcall symbols from MSVC++,
5854 # which start with @ or ?.
5855 lt_cv_sys_global_symbol_pipe="$AWK '"\
5856 " {last_section=section; section=\$ 3};"\
5857 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5858 " \$ 0!~/External *\|/{next};"\
5859 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5860 " {if(hide[section]) next};"\
5861 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5862 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5863 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5864 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5865 " ' prfx=^$ac_symprfx"
5866 else
5867 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5868 fi
5869 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5870
5871 # Check to see that the pipe works correctly.
5872 pipe_works=no
5873
5874 rm -f conftest*
5875 cat > conftest.$ac_ext <<_LT_EOF
5876 #ifdef __cplusplus
5877 extern "C" {
5878 #endif
5879 char nm_test_var;
5880 void nm_test_func(void);
5881 void nm_test_func(void){}
5882 #ifdef __cplusplus
5883 }
5884 #endif
5885 int main(){nm_test_var='a';nm_test_func();return(0);}
5886 _LT_EOF
5887
5888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5889 (eval $ac_compile) 2>&5
5890 ac_status=$?
5891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5892 test $ac_status = 0; }; then
5893 # Now try to grab the symbols.
5894 nlist=conftest.nm
5895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5896 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5897 ac_status=$?
5898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5899 test $ac_status = 0; } && test -s "$nlist"; then
5900 # Try sorting and uniquifying the output.
5901 if sort "$nlist" | uniq > "$nlist"T; then
5902 mv -f "$nlist"T "$nlist"
5903 else
5904 rm -f "$nlist"T
5905 fi
5906
5907 # Make sure that we snagged all the symbols we need.
5908 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5909 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5910 cat <<_LT_EOF > conftest.$ac_ext
5911 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5912 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5913 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5914 relocations are performed -- see ld's documentation on pseudo-relocs. */
5915 # define LT_DLSYM_CONST
5916 #elif defined(__osf__)
5917 /* This system does not cope well with relocations in const data. */
5918 # define LT_DLSYM_CONST
5919 #else
5920 # define LT_DLSYM_CONST const
5921 #endif
5922
5923 #ifdef __cplusplus
5924 extern "C" {
5925 #endif
5926
5927 _LT_EOF
5928 # Now generate the symbol file.
5929 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5930
5931 cat <<_LT_EOF >> conftest.$ac_ext
5932
5933 /* The mapping between symbol names and symbols. */
5934 LT_DLSYM_CONST struct {
5935 const char *name;
5936 void *address;
5937 }
5938 lt__PROGRAM__LTX_preloaded_symbols[] =
5939 {
5940 { "@PROGRAM@", (void *) 0 },
5941 _LT_EOF
5942 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5943 cat <<\_LT_EOF >> conftest.$ac_ext
5944 {0, (void *) 0}
5945 };
5946
5947 /* This works around a problem in FreeBSD linker */
5948 #ifdef FREEBSD_WORKAROUND
5949 static const void *lt_preloaded_setup() {
5950 return lt__PROGRAM__LTX_preloaded_symbols;
5951 }
5952 #endif
5953
5954 #ifdef __cplusplus
5955 }
5956 #endif
5957 _LT_EOF
5958 # Now try linking the two files.
5959 mv conftest.$ac_objext conftstm.$ac_objext
5960 lt_globsym_save_LIBS=$LIBS
5961 lt_globsym_save_CFLAGS=$CFLAGS
5962 LIBS="conftstm.$ac_objext"
5963 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5965 (eval $ac_link) 2>&5
5966 ac_status=$?
5967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5968 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5969 pipe_works=yes
5970 fi
5971 LIBS=$lt_globsym_save_LIBS
5972 CFLAGS=$lt_globsym_save_CFLAGS
5973 else
5974 echo "cannot find nm_test_func in $nlist" >&5
5975 fi
5976 else
5977 echo "cannot find nm_test_var in $nlist" >&5
5978 fi
5979 else
5980 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5981 fi
5982 else
5983 echo "$progname: failed program was:" >&5
5984 cat conftest.$ac_ext >&5
5985 fi
5986 rm -rf conftest* conftst*
5987
5988 # Do not use the global_symbol_pipe unless it works.
5989 if test "$pipe_works" = yes; then
5990 break
5991 else
5992 lt_cv_sys_global_symbol_pipe=
5993 fi
5994 done
5995
5996 fi
5997
5998 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5999 lt_cv_sys_global_symbol_to_cdecl=
6000 fi
6001 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6003 $as_echo "failed" >&6; }
6004 else
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6006 $as_echo "ok" >&6; }
6007 fi
6008
6009 # Response file support.
6010 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6011 nm_file_list_spec='@'
6012 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6013 nm_file_list_spec='@'
6014 fi
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6043 $as_echo_n "checking for sysroot... " >&6; }
6044
6045 # Check whether --with-sysroot was given.
6046 if test "${with_sysroot+set}" = set; then :
6047 withval=$with_sysroot;
6048 else
6049 with_sysroot=no
6050 fi
6051
6052
6053 lt_sysroot=
6054 case ${with_sysroot} in #(
6055 yes)
6056 if test "$GCC" = yes; then
6057 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6058 fi
6059 ;; #(
6060 /*)
6061 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6062 ;; #(
6063 no|'')
6064 ;; #(
6065 *)
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6067 $as_echo "${with_sysroot}" >&6; }
6068 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6069 ;;
6070 esac
6071
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6073 $as_echo "${lt_sysroot:-no}" >&6; }
6074
6075
6076
6077
6078
6079 # Check whether --enable-libtool-lock was given.
6080 if test "${enable_libtool_lock+set}" = set; then :
6081 enableval=$enable_libtool_lock;
6082 fi
6083
6084 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6085
6086 # Some flags need to be propagated to the compiler or linker for good
6087 # libtool support.
6088 case $host in
6089 ia64-*-hpux*)
6090 # Find out which ABI we are using.
6091 echo 'int i;' > conftest.$ac_ext
6092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6093 (eval $ac_compile) 2>&5
6094 ac_status=$?
6095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6096 test $ac_status = 0; }; then
6097 case `/usr/bin/file conftest.$ac_objext` in
6098 *ELF-32*)
6099 HPUX_IA64_MODE="32"
6100 ;;
6101 *ELF-64*)
6102 HPUX_IA64_MODE="64"
6103 ;;
6104 esac
6105 fi
6106 rm -rf conftest*
6107 ;;
6108 *-*-irix6*)
6109 # Find out which ABI we are using.
6110 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6112 (eval $ac_compile) 2>&5
6113 ac_status=$?
6114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6115 test $ac_status = 0; }; then
6116 if test "$lt_cv_prog_gnu_ld" = yes; then
6117 case `/usr/bin/file conftest.$ac_objext` in
6118 *32-bit*)
6119 LD="${LD-ld} -melf32bsmip"
6120 ;;
6121 *N32*)
6122 LD="${LD-ld} -melf32bmipn32"
6123 ;;
6124 *64-bit*)
6125 LD="${LD-ld} -melf64bmip"
6126 ;;
6127 esac
6128 else
6129 case `/usr/bin/file conftest.$ac_objext` in
6130 *32-bit*)
6131 LD="${LD-ld} -32"
6132 ;;
6133 *N32*)
6134 LD="${LD-ld} -n32"
6135 ;;
6136 *64-bit*)
6137 LD="${LD-ld} -64"
6138 ;;
6139 esac
6140 fi
6141 fi
6142 rm -rf conftest*
6143 ;;
6144
6145 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6146 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6147 # Find out which ABI we are using.
6148 echo 'int i;' > conftest.$ac_ext
6149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6150 (eval $ac_compile) 2>&5
6151 ac_status=$?
6152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6153 test $ac_status = 0; }; then
6154 case `/usr/bin/file conftest.o` in
6155 *32-bit*)
6156 case $host in
6157 x86_64-*kfreebsd*-gnu)
6158 LD="${LD-ld} -m elf_i386_fbsd"
6159 ;;
6160 x86_64-*linux*)
6161 LD="${LD-ld} -m elf_i386"
6162 ;;
6163 ppc64-*linux*|powerpc64-*linux*)
6164 LD="${LD-ld} -m elf32ppclinux"
6165 ;;
6166 s390x-*linux*)
6167 LD="${LD-ld} -m elf_s390"
6168 ;;
6169 sparc64-*linux*)
6170 LD="${LD-ld} -m elf32_sparc"
6171 ;;
6172 esac
6173 ;;
6174 *64-bit*)
6175 case $host in
6176 x86_64-*kfreebsd*-gnu)
6177 LD="${LD-ld} -m elf_x86_64_fbsd"
6178 ;;
6179 x86_64-*linux*)
6180 LD="${LD-ld} -m elf_x86_64"
6181 ;;
6182 ppc*-*linux*|powerpc*-*linux*)
6183 LD="${LD-ld} -m elf64ppc"
6184 ;;
6185 s390*-*linux*|s390*-*tpf*)
6186 LD="${LD-ld} -m elf64_s390"
6187 ;;
6188 sparc*-*linux*)
6189 LD="${LD-ld} -m elf64_sparc"
6190 ;;
6191 esac
6192 ;;
6193 esac
6194 fi
6195 rm -rf conftest*
6196 ;;
6197
6198 *-*-sco3.2v5*)
6199 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6200 SAVE_CFLAGS="$CFLAGS"
6201 CFLAGS="$CFLAGS -belf"
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6203 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6204 if ${lt_cv_cc_needs_belf+:} false; then :
6205 $as_echo_n "(cached) " >&6
6206 else
6207 ac_ext=c
6208 ac_cpp='$CPP $CPPFLAGS'
6209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6212
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h. */
6215
6216 int
6217 main ()
6218 {
6219
6220 ;
6221 return 0;
6222 }
6223 _ACEOF
6224 if ac_fn_c_try_link "$LINENO"; then :
6225 lt_cv_cc_needs_belf=yes
6226 else
6227 lt_cv_cc_needs_belf=no
6228 fi
6229 rm -f core conftest.err conftest.$ac_objext \
6230 conftest$ac_exeext conftest.$ac_ext
6231 ac_ext=c
6232 ac_cpp='$CPP $CPPFLAGS'
6233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6236
6237 fi
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6239 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6240 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6241 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6242 CFLAGS="$SAVE_CFLAGS"
6243 fi
6244 ;;
6245 sparc*-*solaris*)
6246 # Find out which ABI we are using.
6247 echo 'int i;' > conftest.$ac_ext
6248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6249 (eval $ac_compile) 2>&5
6250 ac_status=$?
6251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6252 test $ac_status = 0; }; then
6253 case `/usr/bin/file conftest.o` in
6254 *64-bit*)
6255 case $lt_cv_prog_gnu_ld in
6256 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6257 *)
6258 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6259 LD="${LD-ld} -64"
6260 fi
6261 ;;
6262 esac
6263 ;;
6264 esac
6265 fi
6266 rm -rf conftest*
6267 ;;
6268 esac
6269
6270 need_locks="$enable_libtool_lock"
6271
6272 if test -n "$ac_tool_prefix"; then
6273 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6274 set dummy ${ac_tool_prefix}mt; ac_word=$2
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6276 $as_echo_n "checking for $ac_word... " >&6; }
6277 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6278 $as_echo_n "(cached) " >&6
6279 else
6280 if test -n "$MANIFEST_TOOL"; then
6281 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6282 else
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 for as_dir in $PATH
6285 do
6286 IFS=$as_save_IFS
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6290 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 break 2
6293 fi
6294 done
6295 done
6296 IFS=$as_save_IFS
6297
6298 fi
6299 fi
6300 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6301 if test -n "$MANIFEST_TOOL"; then
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6303 $as_echo "$MANIFEST_TOOL" >&6; }
6304 else
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6306 $as_echo "no" >&6; }
6307 fi
6308
6309
6310 fi
6311 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6312 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6313 # Extract the first word of "mt", so it can be a program name with args.
6314 set dummy mt; ac_word=$2
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6316 $as_echo_n "checking for $ac_word... " >&6; }
6317 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6318 $as_echo_n "(cached) " >&6
6319 else
6320 if test -n "$ac_ct_MANIFEST_TOOL"; then
6321 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6322 else
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in $PATH
6325 do
6326 IFS=$as_save_IFS
6327 test -z "$as_dir" && as_dir=.
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6330 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 break 2
6333 fi
6334 done
6335 done
6336 IFS=$as_save_IFS
6337
6338 fi
6339 fi
6340 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6341 if test -n "$ac_ct_MANIFEST_TOOL"; then
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6343 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6344 else
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 $as_echo "no" >&6; }
6347 fi
6348
6349 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6350 MANIFEST_TOOL=":"
6351 else
6352 case $cross_compiling:$ac_tool_warned in
6353 yes:)
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6356 ac_tool_warned=yes ;;
6357 esac
6358 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6359 fi
6360 else
6361 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6362 fi
6363
6364 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6366 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6367 if ${lt_cv_path_mainfest_tool+:} false; then :
6368 $as_echo_n "(cached) " >&6
6369 else
6370 lt_cv_path_mainfest_tool=no
6371 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6372 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6373 cat conftest.err >&5
6374 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6375 lt_cv_path_mainfest_tool=yes
6376 fi
6377 rm -f conftest*
6378 fi
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6380 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6381 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6382 MANIFEST_TOOL=:
6383 fi
6384
6385
6386
6387
6388
6389
6390 case $host_os in
6391 rhapsody* | darwin*)
6392 if test -n "$ac_tool_prefix"; then
6393 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6394 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6398 $as_echo_n "(cached) " >&6
6399 else
6400 if test -n "$DSYMUTIL"; then
6401 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6402 else
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 for as_dir in $PATH
6405 do
6406 IFS=$as_save_IFS
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6410 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 break 2
6413 fi
6414 done
6415 done
6416 IFS=$as_save_IFS
6417
6418 fi
6419 fi
6420 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6421 if test -n "$DSYMUTIL"; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6423 $as_echo "$DSYMUTIL" >&6; }
6424 else
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6427 fi
6428
6429
6430 fi
6431 if test -z "$ac_cv_prog_DSYMUTIL"; then
6432 ac_ct_DSYMUTIL=$DSYMUTIL
6433 # Extract the first word of "dsymutil", so it can be a program name with args.
6434 set dummy dsymutil; ac_word=$2
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6436 $as_echo_n "checking for $ac_word... " >&6; }
6437 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6438 $as_echo_n "(cached) " >&6
6439 else
6440 if test -n "$ac_ct_DSYMUTIL"; then
6441 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6442 else
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6445 do
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6450 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 break 2
6453 fi
6454 done
6455 done
6456 IFS=$as_save_IFS
6457
6458 fi
6459 fi
6460 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6461 if test -n "$ac_ct_DSYMUTIL"; then
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6463 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6464 else
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6466 $as_echo "no" >&6; }
6467 fi
6468
6469 if test "x$ac_ct_DSYMUTIL" = x; then
6470 DSYMUTIL=":"
6471 else
6472 case $cross_compiling:$ac_tool_warned in
6473 yes:)
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6476 ac_tool_warned=yes ;;
6477 esac
6478 DSYMUTIL=$ac_ct_DSYMUTIL
6479 fi
6480 else
6481 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6482 fi
6483
6484 if test -n "$ac_tool_prefix"; then
6485 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6486 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488 $as_echo_n "checking for $ac_word... " >&6; }
6489 if ${ac_cv_prog_NMEDIT+:} false; then :
6490 $as_echo_n "(cached) " >&6
6491 else
6492 if test -n "$NMEDIT"; then
6493 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6494 else
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 for as_dir in $PATH
6497 do
6498 IFS=$as_save_IFS
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6502 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 break 2
6505 fi
6506 done
6507 done
6508 IFS=$as_save_IFS
6509
6510 fi
6511 fi
6512 NMEDIT=$ac_cv_prog_NMEDIT
6513 if test -n "$NMEDIT"; then
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6515 $as_echo "$NMEDIT" >&6; }
6516 else
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518 $as_echo "no" >&6; }
6519 fi
6520
6521
6522 fi
6523 if test -z "$ac_cv_prog_NMEDIT"; then
6524 ac_ct_NMEDIT=$NMEDIT
6525 # Extract the first word of "nmedit", so it can be a program name with args.
6526 set dummy nmedit; ac_word=$2
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6528 $as_echo_n "checking for $ac_word... " >&6; }
6529 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6530 $as_echo_n "(cached) " >&6
6531 else
6532 if test -n "$ac_ct_NMEDIT"; then
6533 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6534 else
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6537 do
6538 IFS=$as_save_IFS
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6542 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 break 2
6545 fi
6546 done
6547 done
6548 IFS=$as_save_IFS
6549
6550 fi
6551 fi
6552 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6553 if test -n "$ac_ct_NMEDIT"; then
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6555 $as_echo "$ac_ct_NMEDIT" >&6; }
6556 else
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558 $as_echo "no" >&6; }
6559 fi
6560
6561 if test "x$ac_ct_NMEDIT" = x; then
6562 NMEDIT=":"
6563 else
6564 case $cross_compiling:$ac_tool_warned in
6565 yes:)
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6568 ac_tool_warned=yes ;;
6569 esac
6570 NMEDIT=$ac_ct_NMEDIT
6571 fi
6572 else
6573 NMEDIT="$ac_cv_prog_NMEDIT"
6574 fi
6575
6576 if test -n "$ac_tool_prefix"; then
6577 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6578 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6580 $as_echo_n "checking for $ac_word... " >&6; }
6581 if ${ac_cv_prog_LIPO+:} false; then :
6582 $as_echo_n "(cached) " >&6
6583 else
6584 if test -n "$LIPO"; then
6585 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6586 else
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 for as_dir in $PATH
6589 do
6590 IFS=$as_save_IFS
6591 test -z "$as_dir" && as_dir=.
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6594 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 break 2
6597 fi
6598 done
6599 done
6600 IFS=$as_save_IFS
6601
6602 fi
6603 fi
6604 LIPO=$ac_cv_prog_LIPO
6605 if test -n "$LIPO"; then
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6607 $as_echo "$LIPO" >&6; }
6608 else
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610 $as_echo "no" >&6; }
6611 fi
6612
6613
6614 fi
6615 if test -z "$ac_cv_prog_LIPO"; then
6616 ac_ct_LIPO=$LIPO
6617 # Extract the first word of "lipo", so it can be a program name with args.
6618 set dummy lipo; ac_word=$2
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6620 $as_echo_n "checking for $ac_word... " >&6; }
6621 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6622 $as_echo_n "(cached) " >&6
6623 else
6624 if test -n "$ac_ct_LIPO"; then
6625 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6626 else
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 for as_dir in $PATH
6629 do
6630 IFS=$as_save_IFS
6631 test -z "$as_dir" && as_dir=.
6632 for ac_exec_ext in '' $ac_executable_extensions; do
6633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6634 ac_cv_prog_ac_ct_LIPO="lipo"
6635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6636 break 2
6637 fi
6638 done
6639 done
6640 IFS=$as_save_IFS
6641
6642 fi
6643 fi
6644 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6645 if test -n "$ac_ct_LIPO"; then
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6647 $as_echo "$ac_ct_LIPO" >&6; }
6648 else
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6650 $as_echo "no" >&6; }
6651 fi
6652
6653 if test "x$ac_ct_LIPO" = x; then
6654 LIPO=":"
6655 else
6656 case $cross_compiling:$ac_tool_warned in
6657 yes:)
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6660 ac_tool_warned=yes ;;
6661 esac
6662 LIPO=$ac_ct_LIPO
6663 fi
6664 else
6665 LIPO="$ac_cv_prog_LIPO"
6666 fi
6667
6668 if test -n "$ac_tool_prefix"; then
6669 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6670 set dummy ${ac_tool_prefix}otool; ac_word=$2
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6672 $as_echo_n "checking for $ac_word... " >&6; }
6673 if ${ac_cv_prog_OTOOL+:} false; then :
6674 $as_echo_n "(cached) " >&6
6675 else
6676 if test -n "$OTOOL"; then
6677 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6678 else
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6681 do
6682 IFS=$as_save_IFS
6683 test -z "$as_dir" && as_dir=.
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6688 break 2
6689 fi
6690 done
6691 done
6692 IFS=$as_save_IFS
6693
6694 fi
6695 fi
6696 OTOOL=$ac_cv_prog_OTOOL
6697 if test -n "$OTOOL"; then
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6699 $as_echo "$OTOOL" >&6; }
6700 else
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702 $as_echo "no" >&6; }
6703 fi
6704
6705
6706 fi
6707 if test -z "$ac_cv_prog_OTOOL"; then
6708 ac_ct_OTOOL=$OTOOL
6709 # Extract the first word of "otool", so it can be a program name with args.
6710 set dummy otool; ac_word=$2
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712 $as_echo_n "checking for $ac_word... " >&6; }
6713 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6714 $as_echo_n "(cached) " >&6
6715 else
6716 if test -n "$ac_ct_OTOOL"; then
6717 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6718 else
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 for as_dir in $PATH
6721 do
6722 IFS=$as_save_IFS
6723 test -z "$as_dir" && as_dir=.
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6726 ac_cv_prog_ac_ct_OTOOL="otool"
6727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6728 break 2
6729 fi
6730 done
6731 done
6732 IFS=$as_save_IFS
6733
6734 fi
6735 fi
6736 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6737 if test -n "$ac_ct_OTOOL"; then
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6739 $as_echo "$ac_ct_OTOOL" >&6; }
6740 else
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 $as_echo "no" >&6; }
6743 fi
6744
6745 if test "x$ac_ct_OTOOL" = x; then
6746 OTOOL=":"
6747 else
6748 case $cross_compiling:$ac_tool_warned in
6749 yes:)
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6752 ac_tool_warned=yes ;;
6753 esac
6754 OTOOL=$ac_ct_OTOOL
6755 fi
6756 else
6757 OTOOL="$ac_cv_prog_OTOOL"
6758 fi
6759
6760 if test -n "$ac_tool_prefix"; then
6761 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6762 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764 $as_echo_n "checking for $ac_word... " >&6; }
6765 if ${ac_cv_prog_OTOOL64+:} false; then :
6766 $as_echo_n "(cached) " >&6
6767 else
6768 if test -n "$OTOOL64"; then
6769 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6770 else
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 for as_dir in $PATH
6773 do
6774 IFS=$as_save_IFS
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6778 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 break 2
6781 fi
6782 done
6783 done
6784 IFS=$as_save_IFS
6785
6786 fi
6787 fi
6788 OTOOL64=$ac_cv_prog_OTOOL64
6789 if test -n "$OTOOL64"; then
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6791 $as_echo "$OTOOL64" >&6; }
6792 else
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794 $as_echo "no" >&6; }
6795 fi
6796
6797
6798 fi
6799 if test -z "$ac_cv_prog_OTOOL64"; then
6800 ac_ct_OTOOL64=$OTOOL64
6801 # Extract the first word of "otool64", so it can be a program name with args.
6802 set dummy otool64; ac_word=$2
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804 $as_echo_n "checking for $ac_word... " >&6; }
6805 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6806 $as_echo_n "(cached) " >&6
6807 else
6808 if test -n "$ac_ct_OTOOL64"; then
6809 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6810 else
6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 for as_dir in $PATH
6813 do
6814 IFS=$as_save_IFS
6815 test -z "$as_dir" && as_dir=.
6816 for ac_exec_ext in '' $ac_executable_extensions; do
6817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6818 ac_cv_prog_ac_ct_OTOOL64="otool64"
6819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 break 2
6821 fi
6822 done
6823 done
6824 IFS=$as_save_IFS
6825
6826 fi
6827 fi
6828 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6829 if test -n "$ac_ct_OTOOL64"; then
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6831 $as_echo "$ac_ct_OTOOL64" >&6; }
6832 else
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834 $as_echo "no" >&6; }
6835 fi
6836
6837 if test "x$ac_ct_OTOOL64" = x; then
6838 OTOOL64=":"
6839 else
6840 case $cross_compiling:$ac_tool_warned in
6841 yes:)
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6844 ac_tool_warned=yes ;;
6845 esac
6846 OTOOL64=$ac_ct_OTOOL64
6847 fi
6848 else
6849 OTOOL64="$ac_cv_prog_OTOOL64"
6850 fi
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6879 $as_echo_n "checking for -single_module linker flag... " >&6; }
6880 if ${lt_cv_apple_cc_single_mod+:} false; then :
6881 $as_echo_n "(cached) " >&6
6882 else
6883 lt_cv_apple_cc_single_mod=no
6884 if test -z "${LT_MULTI_MODULE}"; then
6885 # By default we will add the -single_module flag. You can override
6886 # by either setting the environment variable LT_MULTI_MODULE
6887 # non-empty at configure time, or by adding -multi_module to the
6888 # link flags.
6889 rm -rf libconftest.dylib*
6890 echo "int foo(void){return 1;}" > conftest.c
6891 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6892 -dynamiclib -Wl,-single_module conftest.c" >&5
6893 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6894 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6895 _lt_result=$?
6896 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6897 lt_cv_apple_cc_single_mod=yes
6898 else
6899 cat conftest.err >&5
6900 fi
6901 rm -rf libconftest.dylib*
6902 rm -f conftest.*
6903 fi
6904 fi
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6906 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6908 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6909 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6910 $as_echo_n "(cached) " >&6
6911 else
6912 lt_cv_ld_exported_symbols_list=no
6913 save_LDFLAGS=$LDFLAGS
6914 echo "_main" > conftest.sym
6915 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6917 /* end confdefs.h. */
6918
6919 int
6920 main ()
6921 {
6922
6923 ;
6924 return 0;
6925 }
6926 _ACEOF
6927 if ac_fn_c_try_link "$LINENO"; then :
6928 lt_cv_ld_exported_symbols_list=yes
6929 else
6930 lt_cv_ld_exported_symbols_list=no
6931 fi
6932 rm -f core conftest.err conftest.$ac_objext \
6933 conftest$ac_exeext conftest.$ac_ext
6934 LDFLAGS="$save_LDFLAGS"
6935
6936 fi
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6938 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6940 $as_echo_n "checking for -force_load linker flag... " >&6; }
6941 if ${lt_cv_ld_force_load+:} false; then :
6942 $as_echo_n "(cached) " >&6
6943 else
6944 lt_cv_ld_force_load=no
6945 cat > conftest.c << _LT_EOF
6946 int forced_loaded() { return 2;}
6947 _LT_EOF
6948 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6949 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6950 echo "$AR cru libconftest.a conftest.o" >&5
6951 $AR cru libconftest.a conftest.o 2>&5
6952 echo "$RANLIB libconftest.a" >&5
6953 $RANLIB libconftest.a 2>&5
6954 cat > conftest.c << _LT_EOF
6955 int main() { return 0;}
6956 _LT_EOF
6957 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6958 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6959 _lt_result=$?
6960 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6961 lt_cv_ld_force_load=yes
6962 else
6963 cat conftest.err >&5
6964 fi
6965 rm -f conftest.err libconftest.a conftest conftest.c
6966 rm -rf conftest.dSYM
6967
6968 fi
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6970 $as_echo "$lt_cv_ld_force_load" >&6; }
6971 case $host_os in
6972 rhapsody* | darwin1.[012])
6973 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6974 darwin1.*)
6975 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6976 darwin*) # darwin 5.x on
6977 # if running on 10.5 or later, the deployment target defaults
6978 # to the OS version, if on x86, and 10.4, the deployment
6979 # target defaults to 10.4. Don't you love it?
6980 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6981 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6982 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6983 10.[012]*)
6984 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6985 10.*)
6986 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6987 esac
6988 ;;
6989 esac
6990 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6991 _lt_dar_single_mod='$single_module'
6992 fi
6993 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6994 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6995 else
6996 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6997 fi
6998 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6999 _lt_dsymutil='~$DSYMUTIL $lib || :'
7000 else
7001 _lt_dsymutil=
7002 fi
7003 ;;
7004 esac
7005
7006 ac_ext=c
7007 ac_cpp='$CPP $CPPFLAGS'
7008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7012 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7013 # On Suns, sometimes $CPP names a directory.
7014 if test -n "$CPP" && test -d "$CPP"; then
7015 CPP=
7016 fi
7017 if test -z "$CPP"; then
7018 if ${ac_cv_prog_CPP+:} false; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 # Double quotes because CPP needs to be expanded
7022 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7023 do
7024 ac_preproc_ok=false
7025 for ac_c_preproc_warn_flag in '' yes
7026 do
7027 # Use a header file that comes with gcc, so configuring glibc
7028 # with a fresh cross-compiler works.
7029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7030 # <limits.h> exists even on freestanding compilers.
7031 # On the NeXT, cc -E runs the code through the compiler's parser,
7032 # not just through cpp. "Syntax error" is here to catch this case.
7033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h. */
7035 #ifdef __STDC__
7036 # include <limits.h>
7037 #else
7038 # include <assert.h>
7039 #endif
7040 Syntax error
7041 _ACEOF
7042 if ac_fn_c_try_cpp "$LINENO"; then :
7043
7044 else
7045 # Broken: fails on valid input.
7046 continue
7047 fi
7048 rm -f conftest.err conftest.i conftest.$ac_ext
7049
7050 # OK, works on sane cases. Now check whether nonexistent headers
7051 # can be detected and how.
7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h. */
7054 #include <ac_nonexistent.h>
7055 _ACEOF
7056 if ac_fn_c_try_cpp "$LINENO"; then :
7057 # Broken: success on invalid input.
7058 continue
7059 else
7060 # Passes both tests.
7061 ac_preproc_ok=:
7062 break
7063 fi
7064 rm -f conftest.err conftest.i conftest.$ac_ext
7065
7066 done
7067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7068 rm -f conftest.i conftest.err conftest.$ac_ext
7069 if $ac_preproc_ok; then :
7070 break
7071 fi
7072
7073 done
7074 ac_cv_prog_CPP=$CPP
7075
7076 fi
7077 CPP=$ac_cv_prog_CPP
7078 else
7079 ac_cv_prog_CPP=$CPP
7080 fi
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7082 $as_echo "$CPP" >&6; }
7083 ac_preproc_ok=false
7084 for ac_c_preproc_warn_flag in '' yes
7085 do
7086 # Use a header file that comes with gcc, so configuring glibc
7087 # with a fresh cross-compiler works.
7088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7089 # <limits.h> exists even on freestanding compilers.
7090 # On the NeXT, cc -E runs the code through the compiler's parser,
7091 # not just through cpp. "Syntax error" is here to catch this case.
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7094 #ifdef __STDC__
7095 # include <limits.h>
7096 #else
7097 # include <assert.h>
7098 #endif
7099 Syntax error
7100 _ACEOF
7101 if ac_fn_c_try_cpp "$LINENO"; then :
7102
7103 else
7104 # Broken: fails on valid input.
7105 continue
7106 fi
7107 rm -f conftest.err conftest.i conftest.$ac_ext
7108
7109 # OK, works on sane cases. Now check whether nonexistent headers
7110 # can be detected and how.
7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7113 #include <ac_nonexistent.h>
7114 _ACEOF
7115 if ac_fn_c_try_cpp "$LINENO"; then :
7116 # Broken: success on invalid input.
7117 continue
7118 else
7119 # Passes both tests.
7120 ac_preproc_ok=:
7121 break
7122 fi
7123 rm -f conftest.err conftest.i conftest.$ac_ext
7124
7125 done
7126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7127 rm -f conftest.i conftest.err conftest.$ac_ext
7128 if $ac_preproc_ok; then :
7129
7130 else
7131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7133 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7134 See \`config.log' for more details" "$LINENO" 5; }
7135 fi
7136
7137 ac_ext=c
7138 ac_cpp='$CPP $CPPFLAGS'
7139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7142
7143
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7145 $as_echo_n "checking for ANSI C header files... " >&6; }
7146 if ${ac_cv_header_stdc+:} false; then :
7147 $as_echo_n "(cached) " >&6
7148 else
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7151 #include <stdlib.h>
7152 #include <stdarg.h>
7153 #include <string.h>
7154 #include <float.h>
7155
7156 int
7157 main ()
7158 {
7159
7160 ;
7161 return 0;
7162 }
7163 _ACEOF
7164 if ac_fn_c_try_compile "$LINENO"; then :
7165 ac_cv_header_stdc=yes
7166 else
7167 ac_cv_header_stdc=no
7168 fi
7169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170
7171 if test $ac_cv_header_stdc = yes; then
7172 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7175 #include <string.h>
7176
7177 _ACEOF
7178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7179 $EGREP "memchr" >/dev/null 2>&1; then :
7180
7181 else
7182 ac_cv_header_stdc=no
7183 fi
7184 rm -f conftest*
7185
7186 fi
7187
7188 if test $ac_cv_header_stdc = yes; then
7189 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 #include <stdlib.h>
7193
7194 _ACEOF
7195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7196 $EGREP "free" >/dev/null 2>&1; then :
7197
7198 else
7199 ac_cv_header_stdc=no
7200 fi
7201 rm -f conftest*
7202
7203 fi
7204
7205 if test $ac_cv_header_stdc = yes; then
7206 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7207 if test "$cross_compiling" = yes; then :
7208 :
7209 else
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7212 #include <ctype.h>
7213 #include <stdlib.h>
7214 #if ((' ' & 0x0FF) == 0x020)
7215 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7216 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7217 #else
7218 # define ISLOWER(c) \
7219 (('a' <= (c) && (c) <= 'i') \
7220 || ('j' <= (c) && (c) <= 'r') \
7221 || ('s' <= (c) && (c) <= 'z'))
7222 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7223 #endif
7224
7225 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7226 int
7227 main ()
7228 {
7229 int i;
7230 for (i = 0; i < 256; i++)
7231 if (XOR (islower (i), ISLOWER (i))
7232 || toupper (i) != TOUPPER (i))
7233 return 2;
7234 return 0;
7235 }
7236 _ACEOF
7237 if ac_fn_c_try_run "$LINENO"; then :
7238
7239 else
7240 ac_cv_header_stdc=no
7241 fi
7242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7243 conftest.$ac_objext conftest.beam conftest.$ac_ext
7244 fi
7245
7246 fi
7247 fi
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7249 $as_echo "$ac_cv_header_stdc" >&6; }
7250 if test $ac_cv_header_stdc = yes; then
7251
7252 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7253
7254 fi
7255
7256 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7257 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7258 inttypes.h stdint.h unistd.h
7259 do :
7260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7261 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7262 "
7263 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7264 cat >>confdefs.h <<_ACEOF
7265 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7266 _ACEOF
7267
7268 fi
7269
7270 done
7271
7272
7273 for ac_header in dlfcn.h
7274 do :
7275 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7276 "
7277 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7278 cat >>confdefs.h <<_ACEOF
7279 #define HAVE_DLFCN_H 1
7280 _ACEOF
7281
7282 fi
7283
7284 done
7285
7286
7287
7288
7289
7290 # Set options
7291
7292
7293
7294 enable_dlopen=no
7295
7296
7297 enable_win32_dll=no
7298
7299
7300 # Check whether --enable-shared was given.
7301 if test "${enable_shared+set}" = set; then :
7302 enableval=$enable_shared; p=${PACKAGE-default}
7303 case $enableval in
7304 yes) enable_shared=yes ;;
7305 no) enable_shared=no ;;
7306 *)
7307 enable_shared=no
7308 # Look at the argument we got. We use all the common list separators.
7309 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7310 for pkg in $enableval; do
7311 IFS="$lt_save_ifs"
7312 if test "X$pkg" = "X$p"; then
7313 enable_shared=yes
7314 fi
7315 done
7316 IFS="$lt_save_ifs"
7317 ;;
7318 esac
7319 else
7320 enable_shared=yes
7321 fi
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333 # Check whether --with-pic was given.
7334 if test "${with_pic+set}" = set; then :
7335 withval=$with_pic; pic_mode="$withval"
7336 else
7337 pic_mode=default
7338 fi
7339
7340
7341 test -z "$pic_mode" && pic_mode=default
7342
7343
7344
7345
7346
7347
7348
7349 # Check whether --enable-fast-install was given.
7350 if test "${enable_fast_install+set}" = set; then :
7351 enableval=$enable_fast_install; p=${PACKAGE-default}
7352 case $enableval in
7353 yes) enable_fast_install=yes ;;
7354 no) enable_fast_install=no ;;
7355 *)
7356 enable_fast_install=no
7357 # Look at the argument we got. We use all the common list separators.
7358 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7359 for pkg in $enableval; do
7360 IFS="$lt_save_ifs"
7361 if test "X$pkg" = "X$p"; then
7362 enable_fast_install=yes
7363 fi
7364 done
7365 IFS="$lt_save_ifs"
7366 ;;
7367 esac
7368 else
7369 enable_fast_install=yes
7370 fi
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382 # This can be used to rebuild libtool when needed
7383 LIBTOOL_DEPS="$ltmain"
7384
7385 # Always use our own libtool.
7386 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413 test -z "$LN_S" && LN_S="ln -s"
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428 if test -n "${ZSH_VERSION+set}" ; then
7429 setopt NO_GLOB_SUBST
7430 fi
7431
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7433 $as_echo_n "checking for objdir... " >&6; }
7434 if ${lt_cv_objdir+:} false; then :
7435 $as_echo_n "(cached) " >&6
7436 else
7437 rm -f .libs 2>/dev/null
7438 mkdir .libs 2>/dev/null
7439 if test -d .libs; then
7440 lt_cv_objdir=.libs
7441 else
7442 # MS-DOS does not allow filenames that begin with a dot.
7443 lt_cv_objdir=_libs
7444 fi
7445 rmdir .libs 2>/dev/null
7446 fi
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7448 $as_echo "$lt_cv_objdir" >&6; }
7449 objdir=$lt_cv_objdir
7450
7451
7452
7453
7454
7455 cat >>confdefs.h <<_ACEOF
7456 #define LT_OBJDIR "$lt_cv_objdir/"
7457 _ACEOF
7458
7459
7460
7461
7462 case $host_os in
7463 aix3*)
7464 # AIX sometimes has problems with the GCC collect2 program. For some
7465 # reason, if we set the COLLECT_NAMES environment variable, the problems
7466 # vanish in a puff of smoke.
7467 if test "X${COLLECT_NAMES+set}" != Xset; then
7468 COLLECT_NAMES=
7469 export COLLECT_NAMES
7470 fi
7471 ;;
7472 esac
7473
7474 # Global variables:
7475 ofile=libtool
7476 can_build_shared=yes
7477
7478 # All known linkers require a `.a' archive for static linking (except MSVC,
7479 # which needs '.lib').
7480 libext=a
7481
7482 with_gnu_ld="$lt_cv_prog_gnu_ld"
7483
7484 old_CC="$CC"
7485 old_CFLAGS="$CFLAGS"
7486
7487 # Set sane defaults for various variables
7488 test -z "$CC" && CC=cc
7489 test -z "$LTCC" && LTCC=$CC
7490 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7491 test -z "$LD" && LD=ld
7492 test -z "$ac_objext" && ac_objext=o
7493
7494 for cc_temp in $compiler""; do
7495 case $cc_temp in
7496 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7497 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7498 \-*) ;;
7499 *) break;;
7500 esac
7501 done
7502 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7503
7504
7505 # Only perform the check for file, if the check method requires it
7506 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7507 case $deplibs_check_method in
7508 file_magic*)
7509 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7511 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7512 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7513 $as_echo_n "(cached) " >&6
7514 else
7515 case $MAGIC_CMD in
7516 [\\/*] | ?:[\\/]*)
7517 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7518 ;;
7519 *)
7520 lt_save_MAGIC_CMD="$MAGIC_CMD"
7521 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7522 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7523 for ac_dir in $ac_dummy; do
7524 IFS="$lt_save_ifs"
7525 test -z "$ac_dir" && ac_dir=.
7526 if test -f $ac_dir/${ac_tool_prefix}file; then
7527 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7528 if test -n "$file_magic_test_file"; then
7529 case $deplibs_check_method in
7530 "file_magic "*)
7531 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7532 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7533 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7534 $EGREP "$file_magic_regex" > /dev/null; then
7535 :
7536 else
7537 cat <<_LT_EOF 1>&2
7538
7539 *** Warning: the command libtool uses to detect shared libraries,
7540 *** $file_magic_cmd, produces output that libtool cannot recognize.
7541 *** The result is that libtool may fail to recognize shared libraries
7542 *** as such. This will affect the creation of libtool libraries that
7543 *** depend on shared libraries, but programs linked with such libtool
7544 *** libraries will work regardless of this problem. Nevertheless, you
7545 *** may want to report the problem to your system manager and/or to
7546 *** bug-libtool@gnu.org
7547
7548 _LT_EOF
7549 fi ;;
7550 esac
7551 fi
7552 break
7553 fi
7554 done
7555 IFS="$lt_save_ifs"
7556 MAGIC_CMD="$lt_save_MAGIC_CMD"
7557 ;;
7558 esac
7559 fi
7560
7561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7562 if test -n "$MAGIC_CMD"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7564 $as_echo "$MAGIC_CMD" >&6; }
7565 else
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7568 fi
7569
7570
7571
7572
7573
7574 if test -z "$lt_cv_path_MAGIC_CMD"; then
7575 if test -n "$ac_tool_prefix"; then
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7577 $as_echo_n "checking for file... " >&6; }
7578 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7579 $as_echo_n "(cached) " >&6
7580 else
7581 case $MAGIC_CMD in
7582 [\\/*] | ?:[\\/]*)
7583 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7584 ;;
7585 *)
7586 lt_save_MAGIC_CMD="$MAGIC_CMD"
7587 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7588 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7589 for ac_dir in $ac_dummy; do
7590 IFS="$lt_save_ifs"
7591 test -z "$ac_dir" && ac_dir=.
7592 if test -f $ac_dir/file; then
7593 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7594 if test -n "$file_magic_test_file"; then
7595 case $deplibs_check_method in
7596 "file_magic "*)
7597 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7598 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7599 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7600 $EGREP "$file_magic_regex" > /dev/null; then
7601 :
7602 else
7603 cat <<_LT_EOF 1>&2
7604
7605 *** Warning: the command libtool uses to detect shared libraries,
7606 *** $file_magic_cmd, produces output that libtool cannot recognize.
7607 *** The result is that libtool may fail to recognize shared libraries
7608 *** as such. This will affect the creation of libtool libraries that
7609 *** depend on shared libraries, but programs linked with such libtool
7610 *** libraries will work regardless of this problem. Nevertheless, you
7611 *** may want to report the problem to your system manager and/or to
7612 *** bug-libtool@gnu.org
7613
7614 _LT_EOF
7615 fi ;;
7616 esac
7617 fi
7618 break
7619 fi
7620 done
7621 IFS="$lt_save_ifs"
7622 MAGIC_CMD="$lt_save_MAGIC_CMD"
7623 ;;
7624 esac
7625 fi
7626
7627 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7628 if test -n "$MAGIC_CMD"; then
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7630 $as_echo "$MAGIC_CMD" >&6; }
7631 else
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7633 $as_echo "no" >&6; }
7634 fi
7635
7636
7637 else
7638 MAGIC_CMD=:
7639 fi
7640 fi
7641
7642 fi
7643 ;;
7644 esac
7645
7646 # Use C for the default configuration in the libtool script
7647
7648 lt_save_CC="$CC"
7649 ac_ext=c
7650 ac_cpp='$CPP $CPPFLAGS'
7651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7654
7655
7656 # Source file extension for C test sources.
7657 ac_ext=c
7658
7659 # Object file extension for compiled C test sources.
7660 objext=o
7661 objext=$objext
7662
7663 # Code to be used in simple compile tests
7664 lt_simple_compile_test_code="int some_variable = 0;"
7665
7666 # Code to be used in simple link tests
7667 lt_simple_link_test_code='int main(){return(0);}'
7668
7669
7670
7671
7672
7673
7674
7675 # If no C compiler was specified, use CC.
7676 LTCC=${LTCC-"$CC"}
7677
7678 # If no C compiler flags were specified, use CFLAGS.
7679 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7680
7681 # Allow CC to be a program name with arguments.
7682 compiler=$CC
7683
7684 # Save the default compiler, since it gets overwritten when the other
7685 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7686 compiler_DEFAULT=$CC
7687
7688 # save warnings/boilerplate of simple test code
7689 ac_outfile=conftest.$ac_objext
7690 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7691 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7692 _lt_compiler_boilerplate=`cat conftest.err`
7693 $RM conftest*
7694
7695 ac_outfile=conftest.$ac_objext
7696 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7697 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7698 _lt_linker_boilerplate=`cat conftest.err`
7699 $RM -r conftest*
7700
7701
7702 if test -n "$compiler"; then
7703
7704 lt_prog_compiler_no_builtin_flag=
7705
7706 if test "$GCC" = yes; then
7707 case $cc_basename in
7708 nvcc*)
7709 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7710 *)
7711 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7712 esac
7713
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7715 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7716 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7717 $as_echo_n "(cached) " >&6
7718 else
7719 lt_cv_prog_compiler_rtti_exceptions=no
7720 ac_outfile=conftest.$ac_objext
7721 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7722 lt_compiler_flag="-fno-rtti -fno-exceptions"
7723 # Insert the option either (1) after the last *FLAGS variable, or
7724 # (2) before a word containing "conftest.", or (3) at the end.
7725 # Note that $ac_compile itself does not contain backslashes and begins
7726 # with a dollar sign (not a hyphen), so the echo should work correctly.
7727 # The option is referenced via a variable to avoid confusing sed.
7728 lt_compile=`echo "$ac_compile" | $SED \
7729 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7730 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7731 -e 's:$: $lt_compiler_flag:'`
7732 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7733 (eval "$lt_compile" 2>conftest.err)
7734 ac_status=$?
7735 cat conftest.err >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 if (exit $ac_status) && test -s "$ac_outfile"; then
7738 # The compiler can only warn and ignore the option if not recognized
7739 # So say no if there are warnings other than the usual output.
7740 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7741 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7742 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7743 lt_cv_prog_compiler_rtti_exceptions=yes
7744 fi
7745 fi
7746 $RM conftest*
7747
7748 fi
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7750 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7751
7752 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7753 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7754 else
7755 :
7756 fi
7757
7758 fi
7759
7760
7761
7762
7763
7764
7765 lt_prog_compiler_wl=
7766 lt_prog_compiler_pic=
7767 lt_prog_compiler_static=
7768
7769
7770 if test "$GCC" = yes; then
7771 lt_prog_compiler_wl='-Wl,'
7772 lt_prog_compiler_static='-static'
7773
7774 case $host_os in
7775 aix*)
7776 # All AIX code is PIC.
7777 if test "$host_cpu" = ia64; then
7778 # AIX 5 now supports IA64 processor
7779 lt_prog_compiler_static='-Bstatic'
7780 fi
7781 ;;
7782
7783 amigaos*)
7784 case $host_cpu in
7785 powerpc)
7786 # see comment about AmigaOS4 .so support
7787 lt_prog_compiler_pic='-fPIC'
7788 ;;
7789 m68k)
7790 # FIXME: we need at least 68020 code to build shared libraries, but
7791 # adding the `-m68020' flag to GCC prevents building anything better,
7792 # like `-m68040'.
7793 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7794 ;;
7795 esac
7796 ;;
7797
7798 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7799 # PIC is the default for these OSes.
7800 ;;
7801
7802 mingw* | cygwin* | pw32* | os2* | cegcc*)
7803 # This hack is so that the source file can tell whether it is being
7804 # built for inclusion in a dll (and should export symbols for example).
7805 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7806 # (--disable-auto-import) libraries
7807 lt_prog_compiler_pic='-DDLL_EXPORT'
7808 ;;
7809
7810 darwin* | rhapsody*)
7811 # PIC is the default on this platform
7812 # Common symbols not allowed in MH_DYLIB files
7813 lt_prog_compiler_pic='-fno-common'
7814 ;;
7815
7816 haiku*)
7817 # PIC is the default for Haiku.
7818 # The "-static" flag exists, but is broken.
7819 lt_prog_compiler_static=
7820 ;;
7821
7822 hpux*)
7823 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7824 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7825 # sets the default TLS model and affects inlining.
7826 case $host_cpu in
7827 hppa*64*)
7828 # +Z the default
7829 ;;
7830 *)
7831 lt_prog_compiler_pic='-fPIC'
7832 ;;
7833 esac
7834 ;;
7835
7836 interix[3-9]*)
7837 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7838 # Instead, we relocate shared libraries at runtime.
7839 ;;
7840
7841 msdosdjgpp*)
7842 # Just because we use GCC doesn't mean we suddenly get shared libraries
7843 # on systems that don't support them.
7844 lt_prog_compiler_can_build_shared=no
7845 enable_shared=no
7846 ;;
7847
7848 *nto* | *qnx*)
7849 # QNX uses GNU C++, but need to define -shared option too, otherwise
7850 # it will coredump.
7851 lt_prog_compiler_pic='-fPIC -shared'
7852 ;;
7853
7854 sysv4*MP*)
7855 if test -d /usr/nec; then
7856 lt_prog_compiler_pic=-Kconform_pic
7857 fi
7858 ;;
7859
7860 *)
7861 lt_prog_compiler_pic='-fPIC'
7862 ;;
7863 esac
7864
7865 case $cc_basename in
7866 nvcc*) # Cuda Compiler Driver 2.2
7867 lt_prog_compiler_wl='-Xlinker '
7868 lt_prog_compiler_pic='-Xcompiler -fPIC'
7869 ;;
7870 esac
7871 else
7872 # PORTME Check for flag to pass linker flags through the system compiler.
7873 case $host_os in
7874 aix*)
7875 lt_prog_compiler_wl='-Wl,'
7876 if test "$host_cpu" = ia64; then
7877 # AIX 5 now supports IA64 processor
7878 lt_prog_compiler_static='-Bstatic'
7879 else
7880 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7881 fi
7882 ;;
7883
7884 mingw* | cygwin* | pw32* | os2* | cegcc*)
7885 # This hack is so that the source file can tell whether it is being
7886 # built for inclusion in a dll (and should export symbols for example).
7887 lt_prog_compiler_pic='-DDLL_EXPORT'
7888 ;;
7889
7890 hpux9* | hpux10* | hpux11*)
7891 lt_prog_compiler_wl='-Wl,'
7892 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7893 # not for PA HP-UX.
7894 case $host_cpu in
7895 hppa*64*|ia64*)
7896 # +Z the default
7897 ;;
7898 *)
7899 lt_prog_compiler_pic='+Z'
7900 ;;
7901 esac
7902 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7903 lt_prog_compiler_static='${wl}-a ${wl}archive'
7904 ;;
7905
7906 irix5* | irix6* | nonstopux*)
7907 lt_prog_compiler_wl='-Wl,'
7908 # PIC (with -KPIC) is the default.
7909 lt_prog_compiler_static='-non_shared'
7910 ;;
7911
7912 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7913 case $cc_basename in
7914 # old Intel for x86_64 which still supported -KPIC.
7915 ecc*)
7916 lt_prog_compiler_wl='-Wl,'
7917 lt_prog_compiler_pic='-KPIC'
7918 lt_prog_compiler_static='-static'
7919 ;;
7920 # icc used to be incompatible with GCC.
7921 # ICC 10 doesn't accept -KPIC any more.
7922 icc* | ifort*)
7923 lt_prog_compiler_wl='-Wl,'
7924 lt_prog_compiler_pic='-fPIC'
7925 lt_prog_compiler_static='-static'
7926 ;;
7927 # Lahey Fortran 8.1.
7928 lf95*)
7929 lt_prog_compiler_wl='-Wl,'
7930 lt_prog_compiler_pic='--shared'
7931 lt_prog_compiler_static='--static'
7932 ;;
7933 nagfor*)
7934 # NAG Fortran compiler
7935 lt_prog_compiler_wl='-Wl,-Wl,,'
7936 lt_prog_compiler_pic='-PIC'
7937 lt_prog_compiler_static='-Bstatic'
7938 ;;
7939 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7940 # Portland Group compilers (*not* the Pentium gcc compiler,
7941 # which looks to be a dead project)
7942 lt_prog_compiler_wl='-Wl,'
7943 lt_prog_compiler_pic='-fpic'
7944 lt_prog_compiler_static='-Bstatic'
7945 ;;
7946 ccc*)
7947 lt_prog_compiler_wl='-Wl,'
7948 # All Alpha code is PIC.
7949 lt_prog_compiler_static='-non_shared'
7950 ;;
7951 xl* | bgxl* | bgf* | mpixl*)
7952 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7953 lt_prog_compiler_wl='-Wl,'
7954 lt_prog_compiler_pic='-qpic'
7955 lt_prog_compiler_static='-qstaticlink'
7956 ;;
7957 *)
7958 case `$CC -V 2>&1 | sed 5q` in
7959 *Sun\ F* | *Sun*Fortran*)
7960 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7961 lt_prog_compiler_pic='-KPIC'
7962 lt_prog_compiler_static='-Bstatic'
7963 lt_prog_compiler_wl=''
7964 ;;
7965 *Sun\ C*)
7966 # Sun C 5.9
7967 lt_prog_compiler_pic='-KPIC'
7968 lt_prog_compiler_static='-Bstatic'
7969 lt_prog_compiler_wl='-Wl,'
7970 ;;
7971 esac
7972 ;;
7973 esac
7974 ;;
7975
7976 newsos6)
7977 lt_prog_compiler_pic='-KPIC'
7978 lt_prog_compiler_static='-Bstatic'
7979 ;;
7980
7981 *nto* | *qnx*)
7982 # QNX uses GNU C++, but need to define -shared option too, otherwise
7983 # it will coredump.
7984 lt_prog_compiler_pic='-fPIC -shared'
7985 ;;
7986
7987 osf3* | osf4* | osf5*)
7988 lt_prog_compiler_wl='-Wl,'
7989 # All OSF/1 code is PIC.
7990 lt_prog_compiler_static='-non_shared'
7991 ;;
7992
7993 rdos*)
7994 lt_prog_compiler_static='-non_shared'
7995 ;;
7996
7997 solaris*)
7998 lt_prog_compiler_pic='-KPIC'
7999 lt_prog_compiler_static='-Bstatic'
8000 case $cc_basename in
8001 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8002 lt_prog_compiler_wl='-Qoption ld ';;
8003 *)
8004 lt_prog_compiler_wl='-Wl,';;
8005 esac
8006 ;;
8007
8008 sunos4*)
8009 lt_prog_compiler_wl='-Qoption ld '
8010 lt_prog_compiler_pic='-PIC'
8011 lt_prog_compiler_static='-Bstatic'
8012 ;;
8013
8014 sysv4 | sysv4.2uw2* | sysv4.3*)
8015 lt_prog_compiler_wl='-Wl,'
8016 lt_prog_compiler_pic='-KPIC'
8017 lt_prog_compiler_static='-Bstatic'
8018 ;;
8019
8020 sysv4*MP*)
8021 if test -d /usr/nec ;then
8022 lt_prog_compiler_pic='-Kconform_pic'
8023 lt_prog_compiler_static='-Bstatic'
8024 fi
8025 ;;
8026
8027 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8028 lt_prog_compiler_wl='-Wl,'
8029 lt_prog_compiler_pic='-KPIC'
8030 lt_prog_compiler_static='-Bstatic'
8031 ;;
8032
8033 unicos*)
8034 lt_prog_compiler_wl='-Wl,'
8035 lt_prog_compiler_can_build_shared=no
8036 ;;
8037
8038 uts4*)
8039 lt_prog_compiler_pic='-pic'
8040 lt_prog_compiler_static='-Bstatic'
8041 ;;
8042
8043 *)
8044 lt_prog_compiler_can_build_shared=no
8045 ;;
8046 esac
8047 fi
8048
8049 case $host_os in
8050 # For platforms which do not support PIC, -DPIC is meaningless:
8051 *djgpp*)
8052 lt_prog_compiler_pic=
8053 ;;
8054 *)
8055 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8056 ;;
8057 esac
8058
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8060 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8061 if ${lt_cv_prog_compiler_pic+:} false; then :
8062 $as_echo_n "(cached) " >&6
8063 else
8064 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8065 fi
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8067 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8068 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8069
8070 #
8071 # Check to make sure the PIC flag actually works.
8072 #
8073 if test -n "$lt_prog_compiler_pic"; then
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8075 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8076 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8077 $as_echo_n "(cached) " >&6
8078 else
8079 lt_cv_prog_compiler_pic_works=no
8080 ac_outfile=conftest.$ac_objext
8081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8082 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8083 # Insert the option either (1) after the last *FLAGS variable, or
8084 # (2) before a word containing "conftest.", or (3) at the end.
8085 # Note that $ac_compile itself does not contain backslashes and begins
8086 # with a dollar sign (not a hyphen), so the echo should work correctly.
8087 # The option is referenced via a variable to avoid confusing sed.
8088 lt_compile=`echo "$ac_compile" | $SED \
8089 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8091 -e 's:$: $lt_compiler_flag:'`
8092 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8093 (eval "$lt_compile" 2>conftest.err)
8094 ac_status=$?
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 if (exit $ac_status) && test -s "$ac_outfile"; then
8098 # The compiler can only warn and ignore the option if not recognized
8099 # So say no if there are warnings other than the usual output.
8100 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8101 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8102 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8103 lt_cv_prog_compiler_pic_works=yes
8104 fi
8105 fi
8106 $RM conftest*
8107
8108 fi
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8110 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8111
8112 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8113 case $lt_prog_compiler_pic in
8114 "" | " "*) ;;
8115 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8116 esac
8117 else
8118 lt_prog_compiler_pic=
8119 lt_prog_compiler_can_build_shared=no
8120 fi
8121
8122 fi
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134 #
8135 # Check to make sure the static flag actually works.
8136 #
8137 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8139 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8140 if ${lt_cv_prog_compiler_static_works+:} false; then :
8141 $as_echo_n "(cached) " >&6
8142 else
8143 lt_cv_prog_compiler_static_works=no
8144 save_LDFLAGS="$LDFLAGS"
8145 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8146 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8147 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8148 # The linker can only warn and ignore the option if not recognized
8149 # So say no if there are warnings
8150 if test -s conftest.err; then
8151 # Append any errors to the config.log.
8152 cat conftest.err 1>&5
8153 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8154 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8155 if diff conftest.exp conftest.er2 >/dev/null; then
8156 lt_cv_prog_compiler_static_works=yes
8157 fi
8158 else
8159 lt_cv_prog_compiler_static_works=yes
8160 fi
8161 fi
8162 $RM -r conftest*
8163 LDFLAGS="$save_LDFLAGS"
8164
8165 fi
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8167 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8168
8169 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8170 :
8171 else
8172 lt_prog_compiler_static=
8173 fi
8174
8175
8176
8177
8178
8179
8180
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8182 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8183 if ${lt_cv_prog_compiler_c_o+:} false; then :
8184 $as_echo_n "(cached) " >&6
8185 else
8186 lt_cv_prog_compiler_c_o=no
8187 $RM -r conftest 2>/dev/null
8188 mkdir conftest
8189 cd conftest
8190 mkdir out
8191 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8192
8193 lt_compiler_flag="-o out/conftest2.$ac_objext"
8194 # Insert the option either (1) after the last *FLAGS variable, or
8195 # (2) before a word containing "conftest.", or (3) at the end.
8196 # Note that $ac_compile itself does not contain backslashes and begins
8197 # with a dollar sign (not a hyphen), so the echo should work correctly.
8198 lt_compile=`echo "$ac_compile" | $SED \
8199 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8200 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8201 -e 's:$: $lt_compiler_flag:'`
8202 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8203 (eval "$lt_compile" 2>out/conftest.err)
8204 ac_status=$?
8205 cat out/conftest.err >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8208 then
8209 # The compiler can only warn and ignore the option if not recognized
8210 # So say no if there are warnings
8211 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8212 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8213 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8214 lt_cv_prog_compiler_c_o=yes
8215 fi
8216 fi
8217 chmod u+w . 2>&5
8218 $RM conftest*
8219 # SGI C++ compiler will create directory out/ii_files/ for
8220 # template instantiation
8221 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8222 $RM out/* && rmdir out
8223 cd ..
8224 $RM -r conftest
8225 $RM conftest*
8226
8227 fi
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8229 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8230
8231
8232
8233
8234
8235
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8237 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8238 if ${lt_cv_prog_compiler_c_o+:} false; then :
8239 $as_echo_n "(cached) " >&6
8240 else
8241 lt_cv_prog_compiler_c_o=no
8242 $RM -r conftest 2>/dev/null
8243 mkdir conftest
8244 cd conftest
8245 mkdir out
8246 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8247
8248 lt_compiler_flag="-o out/conftest2.$ac_objext"
8249 # Insert the option either (1) after the last *FLAGS variable, or
8250 # (2) before a word containing "conftest.", or (3) at the end.
8251 # Note that $ac_compile itself does not contain backslashes and begins
8252 # with a dollar sign (not a hyphen), so the echo should work correctly.
8253 lt_compile=`echo "$ac_compile" | $SED \
8254 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8256 -e 's:$: $lt_compiler_flag:'`
8257 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8258 (eval "$lt_compile" 2>out/conftest.err)
8259 ac_status=$?
8260 cat out/conftest.err >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8263 then
8264 # The compiler can only warn and ignore the option if not recognized
8265 # So say no if there are warnings
8266 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8267 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8268 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8269 lt_cv_prog_compiler_c_o=yes
8270 fi
8271 fi
8272 chmod u+w . 2>&5
8273 $RM conftest*
8274 # SGI C++ compiler will create directory out/ii_files/ for
8275 # template instantiation
8276 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8277 $RM out/* && rmdir out
8278 cd ..
8279 $RM -r conftest
8280 $RM conftest*
8281
8282 fi
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8284 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8285
8286
8287
8288
8289 hard_links="nottested"
8290 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8291 # do not overwrite the value of need_locks provided by the user
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8293 $as_echo_n "checking if we can lock with hard links... " >&6; }
8294 hard_links=yes
8295 $RM conftest*
8296 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8297 touch conftest.a
8298 ln conftest.a conftest.b 2>&5 || hard_links=no
8299 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8301 $as_echo "$hard_links" >&6; }
8302 if test "$hard_links" = no; then
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8304 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8305 need_locks=warn
8306 fi
8307 else
8308 need_locks=no
8309 fi
8310
8311
8312
8313
8314
8315
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8317 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8318
8319 runpath_var=
8320 allow_undefined_flag=
8321 always_export_symbols=no
8322 archive_cmds=
8323 archive_expsym_cmds=
8324 compiler_needs_object=no
8325 enable_shared_with_static_runtimes=no
8326 export_dynamic_flag_spec=
8327 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8328 hardcode_automatic=no
8329 hardcode_direct=no
8330 hardcode_direct_absolute=no
8331 hardcode_libdir_flag_spec=
8332 hardcode_libdir_flag_spec_ld=
8333 hardcode_libdir_separator=
8334 hardcode_minus_L=no
8335 hardcode_shlibpath_var=unsupported
8336 inherit_rpath=no
8337 link_all_deplibs=unknown
8338 module_cmds=
8339 module_expsym_cmds=
8340 old_archive_from_new_cmds=
8341 old_archive_from_expsyms_cmds=
8342 thread_safe_flag_spec=
8343 whole_archive_flag_spec=
8344 # include_expsyms should be a list of space-separated symbols to be *always*
8345 # included in the symbol list
8346 include_expsyms=
8347 # exclude_expsyms can be an extended regexp of symbols to exclude
8348 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8349 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8350 # as well as any symbol that contains `d'.
8351 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8352 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8353 # platforms (ab)use it in PIC code, but their linkers get confused if
8354 # the symbol is explicitly referenced. Since portable code cannot
8355 # rely on this symbol name, it's probably fine to never include it in
8356 # preloaded symbol tables.
8357 # Exclude shared library initialization/finalization symbols.
8358 extract_expsyms_cmds=
8359
8360 case $host_os in
8361 cygwin* | mingw* | pw32* | cegcc*)
8362 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8363 # When not using gcc, we currently assume that we are using
8364 # Microsoft Visual C++.
8365 if test "$GCC" != yes; then
8366 with_gnu_ld=no
8367 fi
8368 ;;
8369 interix*)
8370 # we just hope/assume this is gcc and not c89 (= MSVC++)
8371 with_gnu_ld=yes
8372 ;;
8373 openbsd*)
8374 with_gnu_ld=no
8375 ;;
8376 esac
8377
8378 ld_shlibs=yes
8379
8380 # On some targets, GNU ld is compatible enough with the native linker
8381 # that we're better off using the native interface for both.
8382 lt_use_gnu_ld_interface=no
8383 if test "$with_gnu_ld" = yes; then
8384 case $host_os in
8385 aix*)
8386 # The AIX port of GNU ld has always aspired to compatibility
8387 # with the native linker. However, as the warning in the GNU ld
8388 # block says, versions before 2.19.5* couldn't really create working
8389 # shared libraries, regardless of the interface used.
8390 case `$LD -v 2>&1` in
8391 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8392 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8393 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8394 *)
8395 lt_use_gnu_ld_interface=yes
8396 ;;
8397 esac
8398 ;;
8399 *)
8400 lt_use_gnu_ld_interface=yes
8401 ;;
8402 esac
8403 fi
8404
8405 if test "$lt_use_gnu_ld_interface" = yes; then
8406 # If archive_cmds runs LD, not CC, wlarc should be empty
8407 wlarc='${wl}'
8408
8409 # Set some defaults for GNU ld with shared library support. These
8410 # are reset later if shared libraries are not supported. Putting them
8411 # here allows them to be overridden if necessary.
8412 runpath_var=LD_RUN_PATH
8413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8414 export_dynamic_flag_spec='${wl}--export-dynamic'
8415 # ancient GNU ld didn't support --whole-archive et. al.
8416 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8417 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8418 else
8419 whole_archive_flag_spec=
8420 fi
8421 supports_anon_versioning=no
8422 case `$LD -v 2>&1` in
8423 *GNU\ gold*) supports_anon_versioning=yes ;;
8424 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8425 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8426 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8427 *\ 2.11.*) ;; # other 2.11 versions
8428 *) supports_anon_versioning=yes ;;
8429 esac
8430
8431 # See if GNU ld supports shared libraries.
8432 case $host_os in
8433 aix[3-9]*)
8434 # On AIX/PPC, the GNU linker is very broken
8435 if test "$host_cpu" != ia64; then
8436 ld_shlibs=no
8437 cat <<_LT_EOF 1>&2
8438
8439 *** Warning: the GNU linker, at least up to release 2.19, is reported
8440 *** to be unable to reliably create shared libraries on AIX.
8441 *** Therefore, libtool is disabling shared libraries support. If you
8442 *** really care for shared libraries, you may want to install binutils
8443 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8444 *** You will then need to restart the configuration process.
8445
8446 _LT_EOF
8447 fi
8448 ;;
8449
8450 amigaos*)
8451 case $host_cpu in
8452 powerpc)
8453 # see comment about AmigaOS4 .so support
8454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8455 archive_expsym_cmds=''
8456 ;;
8457 m68k)
8458 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)'
8459 hardcode_libdir_flag_spec='-L$libdir'
8460 hardcode_minus_L=yes
8461 ;;
8462 esac
8463 ;;
8464
8465 beos*)
8466 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8467 allow_undefined_flag=unsupported
8468 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8469 # support --undefined. This deserves some investigation. FIXME
8470 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8471 else
8472 ld_shlibs=no
8473 fi
8474 ;;
8475
8476 cygwin* | mingw* | pw32* | cegcc*)
8477 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8478 # as there is no search path for DLLs.
8479 hardcode_libdir_flag_spec='-L$libdir'
8480 export_dynamic_flag_spec='${wl}--export-all-symbols'
8481 allow_undefined_flag=unsupported
8482 always_export_symbols=no
8483 enable_shared_with_static_runtimes=yes
8484 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'
8485 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8486
8487 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8489 # If the export-symbols file already is a .def file (1st line
8490 # is EXPORTS), use it as is; otherwise, prepend...
8491 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8492 cp $export_symbols $output_objdir/$soname.def;
8493 else
8494 echo EXPORTS > $output_objdir/$soname.def;
8495 cat $export_symbols >> $output_objdir/$soname.def;
8496 fi~
8497 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8498 else
8499 ld_shlibs=no
8500 fi
8501 ;;
8502
8503 haiku*)
8504 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8505 link_all_deplibs=yes
8506 ;;
8507
8508 interix[3-9]*)
8509 hardcode_direct=no
8510 hardcode_shlibpath_var=no
8511 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8512 export_dynamic_flag_spec='${wl}-E'
8513 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8514 # Instead, shared libraries are loaded at an image base (0x10000000 by
8515 # default) and relocated if they conflict, which is a slow very memory
8516 # consuming and fragmenting process. To avoid this, we pick a random,
8517 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8518 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8519 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8520 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'
8521 ;;
8522
8523 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8524 tmp_diet=no
8525 if test "$host_os" = linux-dietlibc; then
8526 case $cc_basename in
8527 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8528 esac
8529 fi
8530 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8531 && test "$tmp_diet" = no
8532 then
8533 tmp_addflag=' $pic_flag'
8534 tmp_sharedflag='-shared'
8535 case $cc_basename,$host_cpu in
8536 pgcc*) # Portland Group C compiler
8537 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'
8538 tmp_addflag=' $pic_flag'
8539 ;;
8540 pgf77* | pgf90* | pgf95* | pgfortran*)
8541 # Portland Group f77 and f90 compilers
8542 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'
8543 tmp_addflag=' $pic_flag -Mnomain' ;;
8544 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8545 tmp_addflag=' -i_dynamic' ;;
8546 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8547 tmp_addflag=' -i_dynamic -nofor_main' ;;
8548 ifc* | ifort*) # Intel Fortran compiler
8549 tmp_addflag=' -nofor_main' ;;
8550 lf95*) # Lahey Fortran 8.1
8551 whole_archive_flag_spec=
8552 tmp_sharedflag='--shared' ;;
8553 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8554 tmp_sharedflag='-qmkshrobj'
8555 tmp_addflag= ;;
8556 nvcc*) # Cuda Compiler Driver 2.2
8557 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'
8558 compiler_needs_object=yes
8559 ;;
8560 esac
8561 case `$CC -V 2>&1 | sed 5q` in
8562 *Sun\ C*) # Sun C 5.9
8563 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'
8564 compiler_needs_object=yes
8565 tmp_sharedflag='-G' ;;
8566 *Sun\ F*) # Sun Fortran 8.3
8567 tmp_sharedflag='-G' ;;
8568 esac
8569 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8570
8571 if test "x$supports_anon_versioning" = xyes; then
8572 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8573 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8574 echo "local: *; };" >> $output_objdir/$libname.ver~
8575 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8576 fi
8577
8578 case $cc_basename in
8579 xlf* | bgf* | bgxlf* | mpixlf*)
8580 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8581 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8582 hardcode_libdir_flag_spec=
8583 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8584 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8585 if test "x$supports_anon_versioning" = xyes; then
8586 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8587 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8588 echo "local: *; };" >> $output_objdir/$libname.ver~
8589 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8590 fi
8591 ;;
8592 esac
8593 else
8594 ld_shlibs=no
8595 fi
8596 ;;
8597
8598 netbsd*)
8599 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8600 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8601 wlarc=
8602 else
8603 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8604 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8605 fi
8606 ;;
8607
8608 solaris*)
8609 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8610 ld_shlibs=no
8611 cat <<_LT_EOF 1>&2
8612
8613 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8614 *** create shared libraries on Solaris systems. Therefore, libtool
8615 *** is disabling shared libraries support. We urge you to upgrade GNU
8616 *** binutils to release 2.9.1 or newer. Another option is to modify
8617 *** your PATH or compiler configuration so that the native linker is
8618 *** used, and then restart.
8619
8620 _LT_EOF
8621 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8622 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8623 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8624 else
8625 ld_shlibs=no
8626 fi
8627 ;;
8628
8629 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8630 case `$LD -v 2>&1` in
8631 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8632 ld_shlibs=no
8633 cat <<_LT_EOF 1>&2
8634
8635 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8636 *** reliably create shared libraries on SCO systems. Therefore, libtool
8637 *** is disabling shared libraries support. We urge you to upgrade GNU
8638 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8639 *** your PATH or compiler configuration so that the native linker is
8640 *** used, and then restart.
8641
8642 _LT_EOF
8643 ;;
8644 *)
8645 # For security reasons, it is highly recommended that you always
8646 # use absolute paths for naming shared libraries, and exclude the
8647 # DT_RUNPATH tag from executables and libraries. But doing so
8648 # requires that you compile everything twice, which is a pain.
8649 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8650 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8652 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8653 else
8654 ld_shlibs=no
8655 fi
8656 ;;
8657 esac
8658 ;;
8659
8660 sunos4*)
8661 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8662 wlarc=
8663 hardcode_direct=yes
8664 hardcode_shlibpath_var=no
8665 ;;
8666
8667 *)
8668 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8669 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8670 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8671 else
8672 ld_shlibs=no
8673 fi
8674 ;;
8675 esac
8676
8677 if test "$ld_shlibs" = no; then
8678 runpath_var=
8679 hardcode_libdir_flag_spec=
8680 export_dynamic_flag_spec=
8681 whole_archive_flag_spec=
8682 fi
8683 else
8684 # PORTME fill in a description of your system's linker (not GNU ld)
8685 case $host_os in
8686 aix3*)
8687 allow_undefined_flag=unsupported
8688 always_export_symbols=yes
8689 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'
8690 # Note: this linker hardcodes the directories in LIBPATH if there
8691 # are no directories specified by -L.
8692 hardcode_minus_L=yes
8693 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8694 # Neither direct hardcoding nor static linking is supported with a
8695 # broken collect2.
8696 hardcode_direct=unsupported
8697 fi
8698 ;;
8699
8700 aix[4-9]*)
8701 if test "$host_cpu" = ia64; then
8702 # On IA64, the linker does run time linking by default, so we don't
8703 # have to do anything special.
8704 aix_use_runtimelinking=no
8705 exp_sym_flag='-Bexport'
8706 no_entry_flag=""
8707 else
8708 # If we're using GNU nm, then we don't want the "-C" option.
8709 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8710 # Also, AIX nm treats weak defined symbols like other global
8711 # defined symbols, whereas GNU nm marks them as "W".
8712 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8713 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8714 else
8715 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8716 fi
8717 aix_use_runtimelinking=no
8718
8719 # Test if we are trying to use run time linking or normal
8720 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8721 # need to do runtime linking.
8722 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8723 for ld_flag in $LDFLAGS; do
8724 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8725 aix_use_runtimelinking=yes
8726 break
8727 fi
8728 done
8729 ;;
8730 esac
8731
8732 exp_sym_flag='-bexport'
8733 no_entry_flag='-bnoentry'
8734 fi
8735
8736 # When large executables or shared objects are built, AIX ld can
8737 # have problems creating the table of contents. If linking a library
8738 # or program results in "error TOC overflow" add -mminimal-toc to
8739 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8740 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8741
8742 archive_cmds=''
8743 hardcode_direct=yes
8744 hardcode_direct_absolute=yes
8745 hardcode_libdir_separator=':'
8746 link_all_deplibs=yes
8747 file_list_spec='${wl}-f,'
8748
8749 if test "$GCC" = yes; then
8750 case $host_os in aix4.[012]|aix4.[012].*)
8751 # We only want to do this on AIX 4.2 and lower, the check
8752 # below for broken collect2 doesn't work under 4.3+
8753 collect2name=`${CC} -print-prog-name=collect2`
8754 if test -f "$collect2name" &&
8755 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8756 then
8757 # We have reworked collect2
8758 :
8759 else
8760 # We have old collect2
8761 hardcode_direct=unsupported
8762 # It fails to find uninstalled libraries when the uninstalled
8763 # path is not listed in the libpath. Setting hardcode_minus_L
8764 # to unsupported forces relinking
8765 hardcode_minus_L=yes
8766 hardcode_libdir_flag_spec='-L$libdir'
8767 hardcode_libdir_separator=
8768 fi
8769 ;;
8770 esac
8771 shared_flag='-shared'
8772 if test "$aix_use_runtimelinking" = yes; then
8773 shared_flag="$shared_flag "'${wl}-G'
8774 fi
8775 else
8776 # not using gcc
8777 if test "$host_cpu" = ia64; then
8778 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8779 # chokes on -Wl,-G. The following line is correct:
8780 shared_flag='-G'
8781 else
8782 if test "$aix_use_runtimelinking" = yes; then
8783 shared_flag='${wl}-G'
8784 else
8785 shared_flag='${wl}-bM:SRE'
8786 fi
8787 fi
8788 fi
8789
8790 export_dynamic_flag_spec='${wl}-bexpall'
8791 # It seems that -bexpall does not export symbols beginning with
8792 # underscore (_), so it is better to generate a list of symbols to export.
8793 always_export_symbols=yes
8794 if test "$aix_use_runtimelinking" = yes; then
8795 # Warning - without using the other runtime loading flags (-brtl),
8796 # -berok will link without error, but may produce a broken library.
8797 allow_undefined_flag='-berok'
8798 # Determine the default libpath from the value encoded in an
8799 # empty executable.
8800 if test "${lt_cv_aix_libpath+set}" = set; then
8801 aix_libpath=$lt_cv_aix_libpath
8802 else
8803 if ${lt_cv_aix_libpath_+:} false; then :
8804 $as_echo_n "(cached) " >&6
8805 else
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8808
8809 int
8810 main ()
8811 {
8812
8813 ;
8814 return 0;
8815 }
8816 _ACEOF
8817 if ac_fn_c_try_link "$LINENO"; then :
8818
8819 lt_aix_libpath_sed='
8820 /Import File Strings/,/^$/ {
8821 /^0/ {
8822 s/^0 *\([^ ]*\) *$/\1/
8823 p
8824 }
8825 }'
8826 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8827 # Check for a 64-bit object if we didn't find anything.
8828 if test -z "$lt_cv_aix_libpath_"; then
8829 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8830 fi
8831 fi
8832 rm -f core conftest.err conftest.$ac_objext \
8833 conftest$ac_exeext conftest.$ac_ext
8834 if test -z "$lt_cv_aix_libpath_"; then
8835 lt_cv_aix_libpath_="/usr/lib:/lib"
8836 fi
8837
8838 fi
8839
8840 aix_libpath=$lt_cv_aix_libpath_
8841 fi
8842
8843 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8844 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8845 else
8846 if test "$host_cpu" = ia64; then
8847 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8848 allow_undefined_flag="-z nodefs"
8849 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"
8850 else
8851 # Determine the default libpath from the value encoded in an
8852 # empty executable.
8853 if test "${lt_cv_aix_libpath+set}" = set; then
8854 aix_libpath=$lt_cv_aix_libpath
8855 else
8856 if ${lt_cv_aix_libpath_+:} false; then :
8857 $as_echo_n "(cached) " >&6
8858 else
8859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8861
8862 int
8863 main ()
8864 {
8865
8866 ;
8867 return 0;
8868 }
8869 _ACEOF
8870 if ac_fn_c_try_link "$LINENO"; then :
8871
8872 lt_aix_libpath_sed='
8873 /Import File Strings/,/^$/ {
8874 /^0/ {
8875 s/^0 *\([^ ]*\) *$/\1/
8876 p
8877 }
8878 }'
8879 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8880 # Check for a 64-bit object if we didn't find anything.
8881 if test -z "$lt_cv_aix_libpath_"; then
8882 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8883 fi
8884 fi
8885 rm -f core conftest.err conftest.$ac_objext \
8886 conftest$ac_exeext conftest.$ac_ext
8887 if test -z "$lt_cv_aix_libpath_"; then
8888 lt_cv_aix_libpath_="/usr/lib:/lib"
8889 fi
8890
8891 fi
8892
8893 aix_libpath=$lt_cv_aix_libpath_
8894 fi
8895
8896 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8897 # Warning - without using the other run time loading flags,
8898 # -berok will link without error, but may produce a broken library.
8899 no_undefined_flag=' ${wl}-bernotok'
8900 allow_undefined_flag=' ${wl}-berok'
8901 if test "$with_gnu_ld" = yes; then
8902 # We only use this code for GNU lds that support --whole-archive.
8903 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8904 else
8905 # Exported symbols can be pulled into shared objects from archives
8906 whole_archive_flag_spec='$convenience'
8907 fi
8908 archive_cmds_need_lc=yes
8909 # This is similar to how AIX traditionally builds its shared libraries.
8910 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8911 fi
8912 fi
8913 ;;
8914
8915 amigaos*)
8916 case $host_cpu in
8917 powerpc)
8918 # see comment about AmigaOS4 .so support
8919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8920 archive_expsym_cmds=''
8921 ;;
8922 m68k)
8923 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)'
8924 hardcode_libdir_flag_spec='-L$libdir'
8925 hardcode_minus_L=yes
8926 ;;
8927 esac
8928 ;;
8929
8930 bsdi[45]*)
8931 export_dynamic_flag_spec=-rdynamic
8932 ;;
8933
8934 cygwin* | mingw* | pw32* | cegcc*)
8935 # When not using gcc, we currently assume that we are using
8936 # Microsoft Visual C++.
8937 # hardcode_libdir_flag_spec is actually meaningless, as there is
8938 # no search path for DLLs.
8939 case $cc_basename in
8940 cl*)
8941 # Native MSVC
8942 hardcode_libdir_flag_spec=' '
8943 allow_undefined_flag=unsupported
8944 always_export_symbols=yes
8945 file_list_spec='@'
8946 # Tell ltmain to make .lib files, not .a files.
8947 libext=lib
8948 # Tell ltmain to make .dll files, not .so files.
8949 shrext_cmds=".dll"
8950 # FIXME: Setting linknames here is a bad hack.
8951 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8952 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8953 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8954 else
8955 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8956 fi~
8957 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8958 linknames='
8959 # The linker will not automatically build a static lib if we build a DLL.
8960 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8961 enable_shared_with_static_runtimes=yes
8962 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8963 # Don't use ranlib
8964 old_postinstall_cmds='chmod 644 $oldlib'
8965 postlink_cmds='lt_outputfile="@OUTPUT@"~
8966 lt_tool_outputfile="@TOOL_OUTPUT@"~
8967 case $lt_outputfile in
8968 *.exe|*.EXE) ;;
8969 *)
8970 lt_outputfile="$lt_outputfile.exe"
8971 lt_tool_outputfile="$lt_tool_outputfile.exe"
8972 ;;
8973 esac~
8974 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8975 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8976 $RM "$lt_outputfile.manifest";
8977 fi'
8978 ;;
8979 *)
8980 # Assume MSVC wrapper
8981 hardcode_libdir_flag_spec=' '
8982 allow_undefined_flag=unsupported
8983 # Tell ltmain to make .lib files, not .a files.
8984 libext=lib
8985 # Tell ltmain to make .dll files, not .so files.
8986 shrext_cmds=".dll"
8987 # FIXME: Setting linknames here is a bad hack.
8988 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8989 # The linker will automatically build a .lib file if we build a DLL.
8990 old_archive_from_new_cmds='true'
8991 # FIXME: Should let the user specify the lib program.
8992 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8993 enable_shared_with_static_runtimes=yes
8994 ;;
8995 esac
8996 ;;
8997
8998 darwin* | rhapsody*)
8999
9000
9001 archive_cmds_need_lc=no
9002 hardcode_direct=no
9003 hardcode_automatic=yes
9004 hardcode_shlibpath_var=unsupported
9005 if test "$lt_cv_ld_force_load" = "yes"; then
9006 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\"`'
9007 else
9008 whole_archive_flag_spec=''
9009 fi
9010 link_all_deplibs=yes
9011 allow_undefined_flag="$_lt_dar_allow_undefined"
9012 case $cc_basename in
9013 ifort*) _lt_dar_can_shared=yes ;;
9014 *) _lt_dar_can_shared=$GCC ;;
9015 esac
9016 if test "$_lt_dar_can_shared" = "yes"; then
9017 output_verbose_link_cmd=func_echo_all
9018 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9019 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9020 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}"
9021 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}"
9022
9023 else
9024 ld_shlibs=no
9025 fi
9026
9027 ;;
9028
9029 dgux*)
9030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9031 hardcode_libdir_flag_spec='-L$libdir'
9032 hardcode_shlibpath_var=no
9033 ;;
9034
9035 freebsd1*)
9036 ld_shlibs=no
9037 ;;
9038
9039 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9040 # support. Future versions do this automatically, but an explicit c++rt0.o
9041 # does not break anything, and helps significantly (at the cost of a little
9042 # extra space).
9043 freebsd2.2*)
9044 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9045 hardcode_libdir_flag_spec='-R$libdir'
9046 hardcode_direct=yes
9047 hardcode_shlibpath_var=no
9048 ;;
9049
9050 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9051 freebsd2*)
9052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9053 hardcode_direct=yes
9054 hardcode_minus_L=yes
9055 hardcode_shlibpath_var=no
9056 ;;
9057
9058 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9059 freebsd* | dragonfly*)
9060 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9061 hardcode_libdir_flag_spec='-R$libdir'
9062 hardcode_direct=yes
9063 hardcode_shlibpath_var=no
9064 ;;
9065
9066 hpux9*)
9067 if test "$GCC" = yes; then
9068 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9069 else
9070 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9071 fi
9072 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9073 hardcode_libdir_separator=:
9074 hardcode_direct=yes
9075
9076 # hardcode_minus_L: Not really in the search PATH,
9077 # but as the default location of the library.
9078 hardcode_minus_L=yes
9079 export_dynamic_flag_spec='${wl}-E'
9080 ;;
9081
9082 hpux10*)
9083 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9084 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9085 else
9086 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9087 fi
9088 if test "$with_gnu_ld" = no; then
9089 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9090 hardcode_libdir_flag_spec_ld='+b $libdir'
9091 hardcode_libdir_separator=:
9092 hardcode_direct=yes
9093 hardcode_direct_absolute=yes
9094 export_dynamic_flag_spec='${wl}-E'
9095 # hardcode_minus_L: Not really in the search PATH,
9096 # but as the default location of the library.
9097 hardcode_minus_L=yes
9098 fi
9099 ;;
9100
9101 hpux11*)
9102 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9103 case $host_cpu in
9104 hppa*64*)
9105 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9106 ;;
9107 ia64*)
9108 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9109 ;;
9110 *)
9111 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9112 ;;
9113 esac
9114 else
9115 case $host_cpu in
9116 hppa*64*)
9117 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9118 ;;
9119 ia64*)
9120 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9121 ;;
9122 *)
9123
9124 # Older versions of the 11.00 compiler do not understand -b yet
9125 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9127 $as_echo_n "checking if $CC understands -b... " >&6; }
9128 if ${lt_cv_prog_compiler__b+:} false; then :
9129 $as_echo_n "(cached) " >&6
9130 else
9131 lt_cv_prog_compiler__b=no
9132 save_LDFLAGS="$LDFLAGS"
9133 LDFLAGS="$LDFLAGS -b"
9134 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9135 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9136 # The linker can only warn and ignore the option if not recognized
9137 # So say no if there are warnings
9138 if test -s conftest.err; then
9139 # Append any errors to the config.log.
9140 cat conftest.err 1>&5
9141 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9143 if diff conftest.exp conftest.er2 >/dev/null; then
9144 lt_cv_prog_compiler__b=yes
9145 fi
9146 else
9147 lt_cv_prog_compiler__b=yes
9148 fi
9149 fi
9150 $RM -r conftest*
9151 LDFLAGS="$save_LDFLAGS"
9152
9153 fi
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9155 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9156
9157 if test x"$lt_cv_prog_compiler__b" = xyes; then
9158 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9159 else
9160 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9161 fi
9162
9163 ;;
9164 esac
9165 fi
9166 if test "$with_gnu_ld" = no; then
9167 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9168 hardcode_libdir_separator=:
9169
9170 case $host_cpu in
9171 hppa*64*|ia64*)
9172 hardcode_direct=no
9173 hardcode_shlibpath_var=no
9174 ;;
9175 *)
9176 hardcode_direct=yes
9177 hardcode_direct_absolute=yes
9178 export_dynamic_flag_spec='${wl}-E'
9179
9180 # hardcode_minus_L: Not really in the search PATH,
9181 # but as the default location of the library.
9182 hardcode_minus_L=yes
9183 ;;
9184 esac
9185 fi
9186 ;;
9187
9188 irix5* | irix6* | nonstopux*)
9189 if test "$GCC" = yes; then
9190 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'
9191 # Try to use the -exported_symbol ld option, if it does not
9192 # work, assume that -exports_file does not work either and
9193 # implicitly export all symbols.
9194 # This should be the same for all languages, so no per-tag cache variable.
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9196 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9197 if ${lt_cv_irix_exported_symbol+:} false; then :
9198 $as_echo_n "(cached) " >&6
9199 else
9200 save_LDFLAGS="$LDFLAGS"
9201 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203 /* end confdefs.h. */
9204 int foo (void) { return 0; }
9205 _ACEOF
9206 if ac_fn_c_try_link "$LINENO"; then :
9207 lt_cv_irix_exported_symbol=yes
9208 else
9209 lt_cv_irix_exported_symbol=no
9210 fi
9211 rm -f core conftest.err conftest.$ac_objext \
9212 conftest$ac_exeext conftest.$ac_ext
9213 LDFLAGS="$save_LDFLAGS"
9214 fi
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9216 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9217 if test "$lt_cv_irix_exported_symbol" = yes; then
9218 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'
9219 fi
9220 else
9221 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'
9222 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'
9223 fi
9224 archive_cmds_need_lc='no'
9225 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9226 hardcode_libdir_separator=:
9227 inherit_rpath=yes
9228 link_all_deplibs=yes
9229 ;;
9230
9231 netbsd*)
9232 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9233 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9234 else
9235 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9236 fi
9237 hardcode_libdir_flag_spec='-R$libdir'
9238 hardcode_direct=yes
9239 hardcode_shlibpath_var=no
9240 ;;
9241
9242 newsos6)
9243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9244 hardcode_direct=yes
9245 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9246 hardcode_libdir_separator=:
9247 hardcode_shlibpath_var=no
9248 ;;
9249
9250 *nto* | *qnx*)
9251 ;;
9252
9253 openbsd*)
9254 if test -f /usr/libexec/ld.so; then
9255 hardcode_direct=yes
9256 hardcode_shlibpath_var=no
9257 hardcode_direct_absolute=yes
9258 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9259 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9260 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9261 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9262 export_dynamic_flag_spec='${wl}-E'
9263 else
9264 case $host_os in
9265 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9266 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9267 hardcode_libdir_flag_spec='-R$libdir'
9268 ;;
9269 *)
9270 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9271 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9272 ;;
9273 esac
9274 fi
9275 else
9276 ld_shlibs=no
9277 fi
9278 ;;
9279
9280 os2*)
9281 hardcode_libdir_flag_spec='-L$libdir'
9282 hardcode_minus_L=yes
9283 allow_undefined_flag=unsupported
9284 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9285 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9286 ;;
9287
9288 osf3*)
9289 if test "$GCC" = yes; then
9290 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9291 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'
9292 else
9293 allow_undefined_flag=' -expect_unresolved \*'
9294 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'
9295 fi
9296 archive_cmds_need_lc='no'
9297 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9298 hardcode_libdir_separator=:
9299 ;;
9300
9301 osf4* | osf5*) # as osf3* with the addition of -msym flag
9302 if test "$GCC" = yes; then
9303 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9304 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'
9305 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9306 else
9307 allow_undefined_flag=' -expect_unresolved \*'
9308 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'
9309 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~
9310 $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'
9311
9312 # Both c and cxx compiler support -rpath directly
9313 hardcode_libdir_flag_spec='-rpath $libdir'
9314 fi
9315 archive_cmds_need_lc='no'
9316 hardcode_libdir_separator=:
9317 ;;
9318
9319 solaris*)
9320 no_undefined_flag=' -z defs'
9321 if test "$GCC" = yes; then
9322 wlarc='${wl}'
9323 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9324 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9325 $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'
9326 else
9327 case `$CC -V 2>&1` in
9328 *"Compilers 5.0"*)
9329 wlarc=''
9330 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9331 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9332 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9333 ;;
9334 *)
9335 wlarc='${wl}'
9336 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9337 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9338 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9339 ;;
9340 esac
9341 fi
9342 hardcode_libdir_flag_spec='-R$libdir'
9343 hardcode_shlibpath_var=no
9344 case $host_os in
9345 solaris2.[0-5] | solaris2.[0-5].*) ;;
9346 *)
9347 # The compiler driver will combine and reorder linker options,
9348 # but understands `-z linker_flag'. GCC discards it without `$wl',
9349 # but is careful enough not to reorder.
9350 # Supported since Solaris 2.6 (maybe 2.5.1?)
9351 if test "$GCC" = yes; then
9352 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9353 else
9354 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9355 fi
9356 ;;
9357 esac
9358 link_all_deplibs=yes
9359 ;;
9360
9361 sunos4*)
9362 if test "x$host_vendor" = xsequent; then
9363 # Use $CC to link under sequent, because it throws in some extra .o
9364 # files that make .init and .fini sections work.
9365 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9366 else
9367 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9368 fi
9369 hardcode_libdir_flag_spec='-L$libdir'
9370 hardcode_direct=yes
9371 hardcode_minus_L=yes
9372 hardcode_shlibpath_var=no
9373 ;;
9374
9375 sysv4)
9376 case $host_vendor in
9377 sni)
9378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9379 hardcode_direct=yes # is this really true???
9380 ;;
9381 siemens)
9382 ## LD is ld it makes a PLAMLIB
9383 ## CC just makes a GrossModule.
9384 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9385 reload_cmds='$CC -r -o $output$reload_objs'
9386 hardcode_direct=no
9387 ;;
9388 motorola)
9389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9390 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9391 ;;
9392 esac
9393 runpath_var='LD_RUN_PATH'
9394 hardcode_shlibpath_var=no
9395 ;;
9396
9397 sysv4.3*)
9398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399 hardcode_shlibpath_var=no
9400 export_dynamic_flag_spec='-Bexport'
9401 ;;
9402
9403 sysv4*MP*)
9404 if test -d /usr/nec; then
9405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9406 hardcode_shlibpath_var=no
9407 runpath_var=LD_RUN_PATH
9408 hardcode_runpath_var=yes
9409 ld_shlibs=yes
9410 fi
9411 ;;
9412
9413 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9414 no_undefined_flag='${wl}-z,text'
9415 archive_cmds_need_lc=no
9416 hardcode_shlibpath_var=no
9417 runpath_var='LD_RUN_PATH'
9418
9419 if test "$GCC" = yes; then
9420 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9421 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9422 else
9423 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9424 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9425 fi
9426 ;;
9427
9428 sysv5* | sco3.2v5* | sco5v6*)
9429 # Note: We can NOT use -z defs as we might desire, because we do not
9430 # link with -lc, and that would cause any symbols used from libc to
9431 # always be unresolved, which means just about no library would
9432 # ever link correctly. If we're not using GNU ld we use -z text
9433 # though, which does catch some bad symbols but isn't as heavy-handed
9434 # as -z defs.
9435 no_undefined_flag='${wl}-z,text'
9436 allow_undefined_flag='${wl}-z,nodefs'
9437 archive_cmds_need_lc=no
9438 hardcode_shlibpath_var=no
9439 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9440 hardcode_libdir_separator=':'
9441 link_all_deplibs=yes
9442 export_dynamic_flag_spec='${wl}-Bexport'
9443 runpath_var='LD_RUN_PATH'
9444
9445 if test "$GCC" = yes; then
9446 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9447 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9448 else
9449 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9450 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9451 fi
9452 ;;
9453
9454 uts4*)
9455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9456 hardcode_libdir_flag_spec='-L$libdir'
9457 hardcode_shlibpath_var=no
9458 ;;
9459
9460 *)
9461 ld_shlibs=no
9462 ;;
9463 esac
9464
9465 if test x$host_vendor = xsni; then
9466 case $host in
9467 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9468 export_dynamic_flag_spec='${wl}-Blargedynsym'
9469 ;;
9470 esac
9471 fi
9472 fi
9473
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9475 $as_echo "$ld_shlibs" >&6; }
9476 test "$ld_shlibs" = no && can_build_shared=no
9477
9478 with_gnu_ld=$with_gnu_ld
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494 #
9495 # Do we need to explicitly link libc?
9496 #
9497 case "x$archive_cmds_need_lc" in
9498 x|xyes)
9499 # Assume -lc should be added
9500 archive_cmds_need_lc=yes
9501
9502 if test "$enable_shared" = yes && test "$GCC" = yes; then
9503 case $archive_cmds in
9504 *'~'*)
9505 # FIXME: we may have to deal with multi-command sequences.
9506 ;;
9507 '$CC '*)
9508 # Test whether the compiler implicitly links with -lc since on some
9509 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9510 # to ld, don't add -lc before -lgcc.
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9512 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9513 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9514 $as_echo_n "(cached) " >&6
9515 else
9516 $RM conftest*
9517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9518
9519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9520 (eval $ac_compile) 2>&5
9521 ac_status=$?
9522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9523 test $ac_status = 0; } 2>conftest.err; then
9524 soname=conftest
9525 lib=conftest
9526 libobjs=conftest.$ac_objext
9527 deplibs=
9528 wl=$lt_prog_compiler_wl
9529 pic_flag=$lt_prog_compiler_pic
9530 compiler_flags=-v
9531 linker_flags=-v
9532 verstring=
9533 output_objdir=.
9534 libname=conftest
9535 lt_save_allow_undefined_flag=$allow_undefined_flag
9536 allow_undefined_flag=
9537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9538 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9539 ac_status=$?
9540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9541 test $ac_status = 0; }
9542 then
9543 lt_cv_archive_cmds_need_lc=no
9544 else
9545 lt_cv_archive_cmds_need_lc=yes
9546 fi
9547 allow_undefined_flag=$lt_save_allow_undefined_flag
9548 else
9549 cat conftest.err 1>&5
9550 fi
9551 $RM conftest*
9552
9553 fi
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9555 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9556 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9557 ;;
9558 esac
9559 fi
9560 ;;
9561 esac
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9720 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9721
9722 if test "$GCC" = yes; then
9723 case $host_os in
9724 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9725 *) lt_awk_arg="/^libraries:/" ;;
9726 esac
9727 case $host_os in
9728 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9729 *) lt_sed_strip_eq="s,=/,/,g" ;;
9730 esac
9731 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9732 case $lt_search_path_spec in
9733 *\;*)
9734 # if the path contains ";" then we assume it to be the separator
9735 # otherwise default to the standard path separator (i.e. ":") - it is
9736 # assumed that no part of a normal pathname contains ";" but that should
9737 # okay in the real world where ";" in dirpaths is itself problematic.
9738 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9739 ;;
9740 *)
9741 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9742 ;;
9743 esac
9744 # Ok, now we have the path, separated by spaces, we can step through it
9745 # and add multilib dir if necessary.
9746 lt_tmp_lt_search_path_spec=
9747 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9748 for lt_sys_path in $lt_search_path_spec; do
9749 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9750 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9751 else
9752 test -d "$lt_sys_path" && \
9753 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9754 fi
9755 done
9756 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9757 BEGIN {RS=" "; FS="/|\n";} {
9758 lt_foo="";
9759 lt_count=0;
9760 for (lt_i = NF; lt_i > 0; lt_i--) {
9761 if ($lt_i != "" && $lt_i != ".") {
9762 if ($lt_i == "..") {
9763 lt_count++;
9764 } else {
9765 if (lt_count == 0) {
9766 lt_foo="/" $lt_i lt_foo;
9767 } else {
9768 lt_count--;
9769 }
9770 }
9771 }
9772 }
9773 if (lt_foo != "") { lt_freq[lt_foo]++; }
9774 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9775 }'`
9776 # AWK program above erroneously prepends '/' to C:/dos/paths
9777 # for these hosts.
9778 case $host_os in
9779 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9780 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9781 esac
9782 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9783 else
9784 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9785 fi
9786 library_names_spec=
9787 libname_spec='lib$name'
9788 soname_spec=
9789 shrext_cmds=".so"
9790 postinstall_cmds=
9791 postuninstall_cmds=
9792 finish_cmds=
9793 finish_eval=
9794 shlibpath_var=
9795 shlibpath_overrides_runpath=unknown
9796 version_type=none
9797 dynamic_linker="$host_os ld.so"
9798 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9799 need_lib_prefix=unknown
9800 hardcode_into_libs=no
9801
9802 # when you set need_version to no, make sure it does not cause -set_version
9803 # flags to be left without arguments
9804 need_version=unknown
9805
9806 case $host_os in
9807 aix3*)
9808 version_type=linux
9809 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9810 shlibpath_var=LIBPATH
9811
9812 # AIX 3 has no versioning support, so we append a major version to the name.
9813 soname_spec='${libname}${release}${shared_ext}$major'
9814 ;;
9815
9816 aix[4-9]*)
9817 version_type=linux
9818 need_lib_prefix=no
9819 need_version=no
9820 hardcode_into_libs=yes
9821 if test "$host_cpu" = ia64; then
9822 # AIX 5 supports IA64
9823 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9824 shlibpath_var=LD_LIBRARY_PATH
9825 else
9826 # With GCC up to 2.95.x, collect2 would create an import file
9827 # for dependence libraries. The import file would start with
9828 # the line `#! .'. This would cause the generated library to
9829 # depend on `.', always an invalid library. This was fixed in
9830 # development snapshots of GCC prior to 3.0.
9831 case $host_os in
9832 aix4 | aix4.[01] | aix4.[01].*)
9833 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9834 echo ' yes '
9835 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9836 :
9837 else
9838 can_build_shared=no
9839 fi
9840 ;;
9841 esac
9842 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9843 # soname into executable. Probably we can add versioning support to
9844 # collect2, so additional links can be useful in future.
9845 if test "$aix_use_runtimelinking" = yes; then
9846 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9847 # instead of lib<name>.a to let people know that these are not
9848 # typical AIX shared libraries.
9849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9850 else
9851 # We preserve .a as extension for shared libraries through AIX4.2
9852 # and later when we are not doing run time linking.
9853 library_names_spec='${libname}${release}.a $libname.a'
9854 soname_spec='${libname}${release}${shared_ext}$major'
9855 fi
9856 shlibpath_var=LIBPATH
9857 fi
9858 ;;
9859
9860 amigaos*)
9861 case $host_cpu in
9862 powerpc)
9863 # Since July 2007 AmigaOS4 officially supports .so libraries.
9864 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9866 ;;
9867 m68k)
9868 library_names_spec='$libname.ixlibrary $libname.a'
9869 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9870 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9871 ;;
9872 esac
9873 ;;
9874
9875 beos*)
9876 library_names_spec='${libname}${shared_ext}'
9877 dynamic_linker="$host_os ld.so"
9878 shlibpath_var=LIBRARY_PATH
9879 ;;
9880
9881 bsdi[45]*)
9882 version_type=linux
9883 need_version=no
9884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9885 soname_spec='${libname}${release}${shared_ext}$major'
9886 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9887 shlibpath_var=LD_LIBRARY_PATH
9888 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9889 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9890 # the default ld.so.conf also contains /usr/contrib/lib and
9891 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9892 # libtool to hard-code these into programs
9893 ;;
9894
9895 cygwin* | mingw* | pw32* | cegcc*)
9896 version_type=windows
9897 shrext_cmds=".dll"
9898 need_version=no
9899 need_lib_prefix=no
9900
9901 case $GCC,$cc_basename in
9902 yes,*)
9903 # gcc
9904 library_names_spec='$libname.dll.a'
9905 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9906 postinstall_cmds='base_file=`basename \${file}`~
9907 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9908 dldir=$destdir/`dirname \$dlpath`~
9909 test -d \$dldir || mkdir -p \$dldir~
9910 $install_prog $dir/$dlname \$dldir/$dlname~
9911 chmod a+x \$dldir/$dlname~
9912 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9913 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9914 fi'
9915 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9916 dlpath=$dir/\$dldll~
9917 $RM \$dlpath'
9918 shlibpath_overrides_runpath=yes
9919
9920 case $host_os in
9921 cygwin*)
9922 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9923 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9924
9925 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9926 ;;
9927 mingw* | cegcc*)
9928 # MinGW DLLs use traditional 'lib' prefix
9929 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9930 ;;
9931 pw32*)
9932 # pw32 DLLs use 'pw' prefix rather than 'lib'
9933 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9934 ;;
9935 esac
9936 dynamic_linker='Win32 ld.exe'
9937 ;;
9938
9939 *,cl*)
9940 # Native MSVC
9941 libname_spec='$name'
9942 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9943 library_names_spec='${libname}.dll.lib'
9944
9945 case $build_os in
9946 mingw*)
9947 sys_lib_search_path_spec=
9948 lt_save_ifs=$IFS
9949 IFS=';'
9950 for lt_path in $LIB
9951 do
9952 IFS=$lt_save_ifs
9953 # Let DOS variable expansion print the short 8.3 style file name.
9954 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9955 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9956 done
9957 IFS=$lt_save_ifs
9958 # Convert to MSYS style.
9959 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9960 ;;
9961 cygwin*)
9962 # Convert to unix form, then to dos form, then back to unix form
9963 # but this time dos style (no spaces!) so that the unix form looks
9964 # like /cygdrive/c/PROGRA~1:/cygdr...
9965 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9966 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9967 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9968 ;;
9969 *)
9970 sys_lib_search_path_spec="$LIB"
9971 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9972 # It is most probably a Windows format PATH.
9973 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9974 else
9975 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9976 fi
9977 # FIXME: find the short name or the path components, as spaces are
9978 # common. (e.g. "Program Files" -> "PROGRA~1")
9979 ;;
9980 esac
9981
9982 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9983 postinstall_cmds='base_file=`basename \${file}`~
9984 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9985 dldir=$destdir/`dirname \$dlpath`~
9986 test -d \$dldir || mkdir -p \$dldir~
9987 $install_prog $dir/$dlname \$dldir/$dlname'
9988 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9989 dlpath=$dir/\$dldll~
9990 $RM \$dlpath'
9991 shlibpath_overrides_runpath=yes
9992 dynamic_linker='Win32 link.exe'
9993 ;;
9994
9995 *)
9996 # Assume MSVC wrapper
9997 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9998 dynamic_linker='Win32 ld.exe'
9999 ;;
10000 esac
10001 # FIXME: first we should search . and the directory the executable is in
10002 shlibpath_var=PATH
10003 ;;
10004
10005 darwin* | rhapsody*)
10006 dynamic_linker="$host_os dyld"
10007 version_type=darwin
10008 need_lib_prefix=no
10009 need_version=no
10010 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10011 soname_spec='${libname}${release}${major}$shared_ext'
10012 shlibpath_overrides_runpath=yes
10013 shlibpath_var=DYLD_LIBRARY_PATH
10014 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10015
10016 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10017 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10018 ;;
10019
10020 dgux*)
10021 version_type=linux
10022 need_lib_prefix=no
10023 need_version=no
10024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10025 soname_spec='${libname}${release}${shared_ext}$major'
10026 shlibpath_var=LD_LIBRARY_PATH
10027 ;;
10028
10029 freebsd1*)
10030 dynamic_linker=no
10031 ;;
10032
10033 freebsd* | dragonfly*)
10034 # DragonFly does not have aout. When/if they implement a new
10035 # versioning mechanism, adjust this.
10036 if test -x /usr/bin/objformat; then
10037 objformat=`/usr/bin/objformat`
10038 else
10039 case $host_os in
10040 freebsd[123]*) objformat=aout ;;
10041 *) objformat=elf ;;
10042 esac
10043 fi
10044 version_type=freebsd-$objformat
10045 case $version_type in
10046 freebsd-elf*)
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10048 need_version=no
10049 need_lib_prefix=no
10050 ;;
10051 freebsd-*)
10052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10053 need_version=yes
10054 ;;
10055 esac
10056 shlibpath_var=LD_LIBRARY_PATH
10057 case $host_os in
10058 freebsd2*)
10059 shlibpath_overrides_runpath=yes
10060 ;;
10061 freebsd3.[01]* | freebsdelf3.[01]*)
10062 shlibpath_overrides_runpath=yes
10063 hardcode_into_libs=yes
10064 ;;
10065 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10066 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10067 shlibpath_overrides_runpath=no
10068 hardcode_into_libs=yes
10069 ;;
10070 *) # from 4.6 on, and DragonFly
10071 shlibpath_overrides_runpath=yes
10072 hardcode_into_libs=yes
10073 ;;
10074 esac
10075 ;;
10076
10077 gnu*)
10078 version_type=linux
10079 need_lib_prefix=no
10080 need_version=no
10081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10082 soname_spec='${libname}${release}${shared_ext}$major'
10083 shlibpath_var=LD_LIBRARY_PATH
10084 hardcode_into_libs=yes
10085 ;;
10086
10087 haiku*)
10088 version_type=linux
10089 need_lib_prefix=no
10090 need_version=no
10091 dynamic_linker="$host_os runtime_loader"
10092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10093 soname_spec='${libname}${release}${shared_ext}$major'
10094 shlibpath_var=LIBRARY_PATH
10095 shlibpath_overrides_runpath=yes
10096 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10097 hardcode_into_libs=yes
10098 ;;
10099
10100 hpux9* | hpux10* | hpux11*)
10101 # Give a soname corresponding to the major version so that dld.sl refuses to
10102 # link against other versions.
10103 version_type=sunos
10104 need_lib_prefix=no
10105 need_version=no
10106 case $host_cpu in
10107 ia64*)
10108 shrext_cmds='.so'
10109 hardcode_into_libs=yes
10110 dynamic_linker="$host_os dld.so"
10111 shlibpath_var=LD_LIBRARY_PATH
10112 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10114 soname_spec='${libname}${release}${shared_ext}$major'
10115 if test "X$HPUX_IA64_MODE" = X32; then
10116 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10117 else
10118 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10119 fi
10120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10121 ;;
10122 hppa*64*)
10123 shrext_cmds='.sl'
10124 hardcode_into_libs=yes
10125 dynamic_linker="$host_os dld.sl"
10126 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10127 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10129 soname_spec='${libname}${release}${shared_ext}$major'
10130 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10131 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10132 ;;
10133 *)
10134 shrext_cmds='.sl'
10135 dynamic_linker="$host_os dld.sl"
10136 shlibpath_var=SHLIB_PATH
10137 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10139 soname_spec='${libname}${release}${shared_ext}$major'
10140 ;;
10141 esac
10142 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10143 postinstall_cmds='chmod 555 $lib'
10144 # or fails outright, so override atomically:
10145 install_override_mode=555
10146 ;;
10147
10148 interix[3-9]*)
10149 version_type=linux
10150 need_lib_prefix=no
10151 need_version=no
10152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10153 soname_spec='${libname}${release}${shared_ext}$major'
10154 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10155 shlibpath_var=LD_LIBRARY_PATH
10156 shlibpath_overrides_runpath=no
10157 hardcode_into_libs=yes
10158 ;;
10159
10160 irix5* | irix6* | nonstopux*)
10161 case $host_os in
10162 nonstopux*) version_type=nonstopux ;;
10163 *)
10164 if test "$lt_cv_prog_gnu_ld" = yes; then
10165 version_type=linux
10166 else
10167 version_type=irix
10168 fi ;;
10169 esac
10170 need_lib_prefix=no
10171 need_version=no
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10174 case $host_os in
10175 irix5* | nonstopux*)
10176 libsuff= shlibsuff=
10177 ;;
10178 *)
10179 case $LD in # libtool.m4 will add one of these switches to LD
10180 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10181 libsuff= shlibsuff= libmagic=32-bit;;
10182 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10183 libsuff=32 shlibsuff=N32 libmagic=N32;;
10184 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10185 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10186 *) libsuff= shlibsuff= libmagic=never-match;;
10187 esac
10188 ;;
10189 esac
10190 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10191 shlibpath_overrides_runpath=no
10192 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10193 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10194 hardcode_into_libs=yes
10195 ;;
10196
10197 # No shared lib support for Linux oldld, aout, or coff.
10198 linux*oldld* | linux*aout* | linux*coff*)
10199 dynamic_linker=no
10200 ;;
10201
10202 # This must be Linux ELF.
10203 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10204 version_type=linux
10205 need_lib_prefix=no
10206 need_version=no
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10208 soname_spec='${libname}${release}${shared_ext}$major'
10209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10210 shlibpath_var=LD_LIBRARY_PATH
10211 shlibpath_overrides_runpath=no
10212
10213 # Some binutils ld are patched to set DT_RUNPATH
10214 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10215 $as_echo_n "(cached) " >&6
10216 else
10217 lt_cv_shlibpath_overrides_runpath=no
10218 save_LDFLAGS=$LDFLAGS
10219 save_libdir=$libdir
10220 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10221 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10223 /* end confdefs.h. */
10224
10225 int
10226 main ()
10227 {
10228
10229 ;
10230 return 0;
10231 }
10232 _ACEOF
10233 if ac_fn_c_try_link "$LINENO"; then :
10234 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10235 lt_cv_shlibpath_overrides_runpath=yes
10236 fi
10237 fi
10238 rm -f core conftest.err conftest.$ac_objext \
10239 conftest$ac_exeext conftest.$ac_ext
10240 LDFLAGS=$save_LDFLAGS
10241 libdir=$save_libdir
10242
10243 fi
10244
10245 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10246
10247 # This implies no fast_install, which is unacceptable.
10248 # Some rework will be needed to allow for fast_install
10249 # before this can be enabled.
10250 hardcode_into_libs=yes
10251
10252 # Append ld.so.conf contents to the search path
10253 if test -f /etc/ld.so.conf; then
10254 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' ' '`
10255 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10256 fi
10257
10258 # We used to test for /lib/ld.so.1 and disable shared libraries on
10259 # powerpc, because MkLinux only supported shared libraries with the
10260 # GNU dynamic linker. Since this was broken with cross compilers,
10261 # most powerpc-linux boxes support dynamic linking these days and
10262 # people can always --disable-shared, the test was removed, and we
10263 # assume the GNU/Linux dynamic linker is in use.
10264 dynamic_linker='GNU/Linux ld.so'
10265 ;;
10266
10267 netbsd*)
10268 version_type=sunos
10269 need_lib_prefix=no
10270 need_version=no
10271 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10273 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10274 dynamic_linker='NetBSD (a.out) ld.so'
10275 else
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10277 soname_spec='${libname}${release}${shared_ext}$major'
10278 dynamic_linker='NetBSD ld.elf_so'
10279 fi
10280 shlibpath_var=LD_LIBRARY_PATH
10281 shlibpath_overrides_runpath=yes
10282 hardcode_into_libs=yes
10283 ;;
10284
10285 newsos6)
10286 version_type=linux
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10288 shlibpath_var=LD_LIBRARY_PATH
10289 shlibpath_overrides_runpath=yes
10290 ;;
10291
10292 *nto* | *qnx*)
10293 version_type=qnx
10294 need_lib_prefix=no
10295 need_version=no
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297 soname_spec='${libname}${release}${shared_ext}$major'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 shlibpath_overrides_runpath=no
10300 hardcode_into_libs=yes
10301 dynamic_linker='ldqnx.so'
10302 ;;
10303
10304 openbsd*)
10305 version_type=sunos
10306 sys_lib_dlsearch_path_spec="/usr/lib"
10307 need_lib_prefix=no
10308 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10309 case $host_os in
10310 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10311 *) need_version=no ;;
10312 esac
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10317 case $host_os in
10318 openbsd2.[89] | openbsd2.[89].*)
10319 shlibpath_overrides_runpath=no
10320 ;;
10321 *)
10322 shlibpath_overrides_runpath=yes
10323 ;;
10324 esac
10325 else
10326 shlibpath_overrides_runpath=yes
10327 fi
10328 ;;
10329
10330 os2*)
10331 libname_spec='$name'
10332 shrext_cmds=".dll"
10333 need_lib_prefix=no
10334 library_names_spec='$libname${shared_ext} $libname.a'
10335 dynamic_linker='OS/2 ld.exe'
10336 shlibpath_var=LIBPATH
10337 ;;
10338
10339 osf3* | osf4* | osf5*)
10340 version_type=osf
10341 need_lib_prefix=no
10342 need_version=no
10343 soname_spec='${libname}${release}${shared_ext}$major'
10344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10345 shlibpath_var=LD_LIBRARY_PATH
10346 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10347 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10348 ;;
10349
10350 rdos*)
10351 dynamic_linker=no
10352 ;;
10353
10354 solaris*)
10355 version_type=linux
10356 need_lib_prefix=no
10357 need_version=no
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359 soname_spec='${libname}${release}${shared_ext}$major'
10360 shlibpath_var=LD_LIBRARY_PATH
10361 shlibpath_overrides_runpath=yes
10362 hardcode_into_libs=yes
10363 # ldd complains unless libraries are executable
10364 postinstall_cmds='chmod +x $lib'
10365 ;;
10366
10367 sunos4*)
10368 version_type=sunos
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10370 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10371 shlibpath_var=LD_LIBRARY_PATH
10372 shlibpath_overrides_runpath=yes
10373 if test "$with_gnu_ld" = yes; then
10374 need_lib_prefix=no
10375 fi
10376 need_version=yes
10377 ;;
10378
10379 sysv4 | sysv4.3*)
10380 version_type=linux
10381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10382 soname_spec='${libname}${release}${shared_ext}$major'
10383 shlibpath_var=LD_LIBRARY_PATH
10384 case $host_vendor in
10385 sni)
10386 shlibpath_overrides_runpath=no
10387 need_lib_prefix=no
10388 runpath_var=LD_RUN_PATH
10389 ;;
10390 siemens)
10391 need_lib_prefix=no
10392 ;;
10393 motorola)
10394 need_lib_prefix=no
10395 need_version=no
10396 shlibpath_overrides_runpath=no
10397 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10398 ;;
10399 esac
10400 ;;
10401
10402 sysv4*MP*)
10403 if test -d /usr/nec ;then
10404 version_type=linux
10405 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10406 soname_spec='$libname${shared_ext}.$major'
10407 shlibpath_var=LD_LIBRARY_PATH
10408 fi
10409 ;;
10410
10411 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10412 version_type=freebsd-elf
10413 need_lib_prefix=no
10414 need_version=no
10415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10416 soname_spec='${libname}${release}${shared_ext}$major'
10417 shlibpath_var=LD_LIBRARY_PATH
10418 shlibpath_overrides_runpath=yes
10419 hardcode_into_libs=yes
10420 if test "$with_gnu_ld" = yes; then
10421 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10422 else
10423 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10424 case $host_os in
10425 sco3.2v5*)
10426 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10427 ;;
10428 esac
10429 fi
10430 sys_lib_dlsearch_path_spec='/usr/lib'
10431 ;;
10432
10433 tpf*)
10434 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10435 version_type=linux
10436 need_lib_prefix=no
10437 need_version=no
10438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10439 shlibpath_var=LD_LIBRARY_PATH
10440 shlibpath_overrides_runpath=no
10441 hardcode_into_libs=yes
10442 ;;
10443
10444 uts4*)
10445 version_type=linux
10446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10447 soname_spec='${libname}${release}${shared_ext}$major'
10448 shlibpath_var=LD_LIBRARY_PATH
10449 ;;
10450
10451 *)
10452 dynamic_linker=no
10453 ;;
10454 esac
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10456 $as_echo "$dynamic_linker" >&6; }
10457 test "$dynamic_linker" = no && can_build_shared=no
10458
10459 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10460 if test "$GCC" = yes; then
10461 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10462 fi
10463
10464 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10465 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10466 fi
10467 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10468 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10469 fi
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10563 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10564 hardcode_action=
10565 if test -n "$hardcode_libdir_flag_spec" ||
10566 test -n "$runpath_var" ||
10567 test "X$hardcode_automatic" = "Xyes" ; then
10568
10569 # We can hardcode non-existent directories.
10570 if test "$hardcode_direct" != no &&
10571 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10572 # have to relink, otherwise we might link with an installed library
10573 # when we should be linking with a yet-to-be-installed one
10574 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10575 test "$hardcode_minus_L" != no; then
10576 # Linking always hardcodes the temporary library directory.
10577 hardcode_action=relink
10578 else
10579 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10580 hardcode_action=immediate
10581 fi
10582 else
10583 # We cannot hardcode anything, or else we can only hardcode existing
10584 # directories.
10585 hardcode_action=unsupported
10586 fi
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10588 $as_echo "$hardcode_action" >&6; }
10589
10590 if test "$hardcode_action" = relink ||
10591 test "$inherit_rpath" = yes; then
10592 # Fast installation is not supported
10593 enable_fast_install=no
10594 elif test "$shlibpath_overrides_runpath" = yes ||
10595 test "$enable_shared" = no; then
10596 # Fast installation is not necessary
10597 enable_fast_install=needless
10598 fi
10599
10600
10601
10602
10603
10604
10605 if test "x$enable_dlopen" != xyes; then
10606 enable_dlopen=unknown
10607 enable_dlopen_self=unknown
10608 enable_dlopen_self_static=unknown
10609 else
10610 lt_cv_dlopen=no
10611 lt_cv_dlopen_libs=
10612
10613 case $host_os in
10614 beos*)
10615 lt_cv_dlopen="load_add_on"
10616 lt_cv_dlopen_libs=
10617 lt_cv_dlopen_self=yes
10618 ;;
10619
10620 mingw* | pw32* | cegcc*)
10621 lt_cv_dlopen="LoadLibrary"
10622 lt_cv_dlopen_libs=
10623 ;;
10624
10625 cygwin*)
10626 lt_cv_dlopen="dlopen"
10627 lt_cv_dlopen_libs=
10628 ;;
10629
10630 darwin*)
10631 # if libdl is installed we need to link against it
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10633 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10634 if ${ac_cv_lib_dl_dlopen+:} false; then :
10635 $as_echo_n "(cached) " >&6
10636 else
10637 ac_check_lib_save_LIBS=$LIBS
10638 LIBS="-ldl $LIBS"
10639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640 /* end confdefs.h. */
10641
10642 /* Override any GCC internal prototype to avoid an error.
10643 Use char because int might match the return type of a GCC
10644 builtin and then its argument prototype would still apply. */
10645 #ifdef __cplusplus
10646 extern "C"
10647 #endif
10648 char dlopen ();
10649 int
10650 main ()
10651 {
10652 return dlopen ();
10653 ;
10654 return 0;
10655 }
10656 _ACEOF
10657 if ac_fn_c_try_link "$LINENO"; then :
10658 ac_cv_lib_dl_dlopen=yes
10659 else
10660 ac_cv_lib_dl_dlopen=no
10661 fi
10662 rm -f core conftest.err conftest.$ac_objext \
10663 conftest$ac_exeext conftest.$ac_ext
10664 LIBS=$ac_check_lib_save_LIBS
10665 fi
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10667 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10668 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10669 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10670 else
10671
10672 lt_cv_dlopen="dyld"
10673 lt_cv_dlopen_libs=
10674 lt_cv_dlopen_self=yes
10675
10676 fi
10677
10678 ;;
10679
10680 *)
10681 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10682 if test "x$ac_cv_func_shl_load" = xyes; then :
10683 lt_cv_dlopen="shl_load"
10684 else
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10686 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10687 if ${ac_cv_lib_dld_shl_load+:} false; then :
10688 $as_echo_n "(cached) " >&6
10689 else
10690 ac_check_lib_save_LIBS=$LIBS
10691 LIBS="-ldld $LIBS"
10692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10693 /* end confdefs.h. */
10694
10695 /* Override any GCC internal prototype to avoid an error.
10696 Use char because int might match the return type of a GCC
10697 builtin and then its argument prototype would still apply. */
10698 #ifdef __cplusplus
10699 extern "C"
10700 #endif
10701 char shl_load ();
10702 int
10703 main ()
10704 {
10705 return shl_load ();
10706 ;
10707 return 0;
10708 }
10709 _ACEOF
10710 if ac_fn_c_try_link "$LINENO"; then :
10711 ac_cv_lib_dld_shl_load=yes
10712 else
10713 ac_cv_lib_dld_shl_load=no
10714 fi
10715 rm -f core conftest.err conftest.$ac_objext \
10716 conftest$ac_exeext conftest.$ac_ext
10717 LIBS=$ac_check_lib_save_LIBS
10718 fi
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10720 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10721 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10722 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10723 else
10724 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10725 if test "x$ac_cv_func_dlopen" = xyes; then :
10726 lt_cv_dlopen="dlopen"
10727 else
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10729 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10730 if ${ac_cv_lib_dl_dlopen+:} false; then :
10731 $as_echo_n "(cached) " >&6
10732 else
10733 ac_check_lib_save_LIBS=$LIBS
10734 LIBS="-ldl $LIBS"
10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10737
10738 /* Override any GCC internal prototype to avoid an error.
10739 Use char because int might match the return type of a GCC
10740 builtin and then its argument prototype would still apply. */
10741 #ifdef __cplusplus
10742 extern "C"
10743 #endif
10744 char dlopen ();
10745 int
10746 main ()
10747 {
10748 return dlopen ();
10749 ;
10750 return 0;
10751 }
10752 _ACEOF
10753 if ac_fn_c_try_link "$LINENO"; then :
10754 ac_cv_lib_dl_dlopen=yes
10755 else
10756 ac_cv_lib_dl_dlopen=no
10757 fi
10758 rm -f core conftest.err conftest.$ac_objext \
10759 conftest$ac_exeext conftest.$ac_ext
10760 LIBS=$ac_check_lib_save_LIBS
10761 fi
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10763 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10764 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10765 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10766 else
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10768 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10769 if ${ac_cv_lib_svld_dlopen+:} false; then :
10770 $as_echo_n "(cached) " >&6
10771 else
10772 ac_check_lib_save_LIBS=$LIBS
10773 LIBS="-lsvld $LIBS"
10774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h. */
10776
10777 /* Override any GCC internal prototype to avoid an error.
10778 Use char because int might match the return type of a GCC
10779 builtin and then its argument prototype would still apply. */
10780 #ifdef __cplusplus
10781 extern "C"
10782 #endif
10783 char dlopen ();
10784 int
10785 main ()
10786 {
10787 return dlopen ();
10788 ;
10789 return 0;
10790 }
10791 _ACEOF
10792 if ac_fn_c_try_link "$LINENO"; then :
10793 ac_cv_lib_svld_dlopen=yes
10794 else
10795 ac_cv_lib_svld_dlopen=no
10796 fi
10797 rm -f core conftest.err conftest.$ac_objext \
10798 conftest$ac_exeext conftest.$ac_ext
10799 LIBS=$ac_check_lib_save_LIBS
10800 fi
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10802 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10803 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10804 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10805 else
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10807 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10808 if ${ac_cv_lib_dld_dld_link+:} false; then :
10809 $as_echo_n "(cached) " >&6
10810 else
10811 ac_check_lib_save_LIBS=$LIBS
10812 LIBS="-ldld $LIBS"
10813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h. */
10815
10816 /* Override any GCC internal prototype to avoid an error.
10817 Use char because int might match the return type of a GCC
10818 builtin and then its argument prototype would still apply. */
10819 #ifdef __cplusplus
10820 extern "C"
10821 #endif
10822 char dld_link ();
10823 int
10824 main ()
10825 {
10826 return dld_link ();
10827 ;
10828 return 0;
10829 }
10830 _ACEOF
10831 if ac_fn_c_try_link "$LINENO"; then :
10832 ac_cv_lib_dld_dld_link=yes
10833 else
10834 ac_cv_lib_dld_dld_link=no
10835 fi
10836 rm -f core conftest.err conftest.$ac_objext \
10837 conftest$ac_exeext conftest.$ac_ext
10838 LIBS=$ac_check_lib_save_LIBS
10839 fi
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10841 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10842 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10843 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10844 fi
10845
10846
10847 fi
10848
10849
10850 fi
10851
10852
10853 fi
10854
10855
10856 fi
10857
10858
10859 fi
10860
10861 ;;
10862 esac
10863
10864 if test "x$lt_cv_dlopen" != xno; then
10865 enable_dlopen=yes
10866 else
10867 enable_dlopen=no
10868 fi
10869
10870 case $lt_cv_dlopen in
10871 dlopen)
10872 save_CPPFLAGS="$CPPFLAGS"
10873 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10874
10875 save_LDFLAGS="$LDFLAGS"
10876 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10877
10878 save_LIBS="$LIBS"
10879 LIBS="$lt_cv_dlopen_libs $LIBS"
10880
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10882 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10883 if ${lt_cv_dlopen_self+:} false; then :
10884 $as_echo_n "(cached) " >&6
10885 else
10886 if test "$cross_compiling" = yes; then :
10887 lt_cv_dlopen_self=cross
10888 else
10889 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10890 lt_status=$lt_dlunknown
10891 cat > conftest.$ac_ext <<_LT_EOF
10892 #line $LINENO "configure"
10893 #include "confdefs.h"
10894
10895 #if HAVE_DLFCN_H
10896 #include <dlfcn.h>
10897 #endif
10898
10899 #include <stdio.h>
10900
10901 #ifdef RTLD_GLOBAL
10902 # define LT_DLGLOBAL RTLD_GLOBAL
10903 #else
10904 # ifdef DL_GLOBAL
10905 # define LT_DLGLOBAL DL_GLOBAL
10906 # else
10907 # define LT_DLGLOBAL 0
10908 # endif
10909 #endif
10910
10911 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10912 find out it does not work in some platform. */
10913 #ifndef LT_DLLAZY_OR_NOW
10914 # ifdef RTLD_LAZY
10915 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10916 # else
10917 # ifdef DL_LAZY
10918 # define LT_DLLAZY_OR_NOW DL_LAZY
10919 # else
10920 # ifdef RTLD_NOW
10921 # define LT_DLLAZY_OR_NOW RTLD_NOW
10922 # else
10923 # ifdef DL_NOW
10924 # define LT_DLLAZY_OR_NOW DL_NOW
10925 # else
10926 # define LT_DLLAZY_OR_NOW 0
10927 # endif
10928 # endif
10929 # endif
10930 # endif
10931 #endif
10932
10933 /* When -fvisbility=hidden is used, assume the code has been annotated
10934 correspondingly for the symbols needed. */
10935 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10936 int fnord () __attribute__((visibility("default")));
10937 #endif
10938
10939 int fnord () { return 42; }
10940 int main ()
10941 {
10942 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10943 int status = $lt_dlunknown;
10944
10945 if (self)
10946 {
10947 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10948 else
10949 {
10950 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10951 else puts (dlerror ());
10952 }
10953 /* dlclose (self); */
10954 }
10955 else
10956 puts (dlerror ());
10957
10958 return status;
10959 }
10960 _LT_EOF
10961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10962 (eval $ac_link) 2>&5
10963 ac_status=$?
10964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10965 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10966 (./conftest; exit; ) >&5 2>/dev/null
10967 lt_status=$?
10968 case x$lt_status in
10969 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10970 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10971 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10972 esac
10973 else :
10974 # compilation failed
10975 lt_cv_dlopen_self=no
10976 fi
10977 fi
10978 rm -fr conftest*
10979
10980
10981 fi
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10983 $as_echo "$lt_cv_dlopen_self" >&6; }
10984
10985 if test "x$lt_cv_dlopen_self" = xyes; then
10986 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10988 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10989 if ${lt_cv_dlopen_self_static+:} false; then :
10990 $as_echo_n "(cached) " >&6
10991 else
10992 if test "$cross_compiling" = yes; then :
10993 lt_cv_dlopen_self_static=cross
10994 else
10995 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10996 lt_status=$lt_dlunknown
10997 cat > conftest.$ac_ext <<_LT_EOF
10998 #line $LINENO "configure"
10999 #include "confdefs.h"
11000
11001 #if HAVE_DLFCN_H
11002 #include <dlfcn.h>
11003 #endif
11004
11005 #include <stdio.h>
11006
11007 #ifdef RTLD_GLOBAL
11008 # define LT_DLGLOBAL RTLD_GLOBAL
11009 #else
11010 # ifdef DL_GLOBAL
11011 # define LT_DLGLOBAL DL_GLOBAL
11012 # else
11013 # define LT_DLGLOBAL 0
11014 # endif
11015 #endif
11016
11017 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11018 find out it does not work in some platform. */
11019 #ifndef LT_DLLAZY_OR_NOW
11020 # ifdef RTLD_LAZY
11021 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11022 # else
11023 # ifdef DL_LAZY
11024 # define LT_DLLAZY_OR_NOW DL_LAZY
11025 # else
11026 # ifdef RTLD_NOW
11027 # define LT_DLLAZY_OR_NOW RTLD_NOW
11028 # else
11029 # ifdef DL_NOW
11030 # define LT_DLLAZY_OR_NOW DL_NOW
11031 # else
11032 # define LT_DLLAZY_OR_NOW 0
11033 # endif
11034 # endif
11035 # endif
11036 # endif
11037 #endif
11038
11039 /* When -fvisbility=hidden is used, assume the code has been annotated
11040 correspondingly for the symbols needed. */
11041 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11042 int fnord () __attribute__((visibility("default")));
11043 #endif
11044
11045 int fnord () { return 42; }
11046 int main ()
11047 {
11048 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11049 int status = $lt_dlunknown;
11050
11051 if (self)
11052 {
11053 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11054 else
11055 {
11056 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11057 else puts (dlerror ());
11058 }
11059 /* dlclose (self); */
11060 }
11061 else
11062 puts (dlerror ());
11063
11064 return status;
11065 }
11066 _LT_EOF
11067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11068 (eval $ac_link) 2>&5
11069 ac_status=$?
11070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11071 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11072 (./conftest; exit; ) >&5 2>/dev/null
11073 lt_status=$?
11074 case x$lt_status in
11075 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11076 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11077 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11078 esac
11079 else :
11080 # compilation failed
11081 lt_cv_dlopen_self_static=no
11082 fi
11083 fi
11084 rm -fr conftest*
11085
11086
11087 fi
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11089 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11090 fi
11091
11092 CPPFLAGS="$save_CPPFLAGS"
11093 LDFLAGS="$save_LDFLAGS"
11094 LIBS="$save_LIBS"
11095 ;;
11096 esac
11097
11098 case $lt_cv_dlopen_self in
11099 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11100 *) enable_dlopen_self=unknown ;;
11101 esac
11102
11103 case $lt_cv_dlopen_self_static in
11104 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11105 *) enable_dlopen_self_static=unknown ;;
11106 esac
11107 fi
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125 striplib=
11126 old_striplib=
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11128 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11129 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11130 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11131 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11133 $as_echo "yes" >&6; }
11134 else
11135 # FIXME - insert some real tests, host_os isn't really good enough
11136 case $host_os in
11137 darwin*)
11138 if test -n "$STRIP" ; then
11139 striplib="$STRIP -x"
11140 old_striplib="$STRIP -S"
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11142 $as_echo "yes" >&6; }
11143 else
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11145 $as_echo "no" >&6; }
11146 fi
11147 ;;
11148 *)
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11150 $as_echo "no" >&6; }
11151 ;;
11152 esac
11153 fi
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166 # Report which library types will actually be built
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11168 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11170 $as_echo "$can_build_shared" >&6; }
11171
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11173 $as_echo_n "checking whether to build shared libraries... " >&6; }
11174 test "$can_build_shared" = "no" && enable_shared=no
11175
11176 # On AIX, shared libraries and static libraries use the same namespace, and
11177 # are all built from PIC.
11178 case $host_os in
11179 aix3*)
11180 test "$enable_shared" = yes && enable_static=no
11181 if test -n "$RANLIB"; then
11182 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11183 postinstall_cmds='$RANLIB $lib'
11184 fi
11185 ;;
11186
11187 aix[4-9]*)
11188 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11189 test "$enable_shared" = yes && enable_static=no
11190 fi
11191 ;;
11192 esac
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11194 $as_echo "$enable_shared" >&6; }
11195
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11197 $as_echo_n "checking whether to build static libraries... " >&6; }
11198 # Make sure either enable_shared or enable_static is yes.
11199 test "$enable_shared" = yes || enable_static=yes
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11201 $as_echo "$enable_static" >&6; }
11202
11203
11204
11205
11206 fi
11207 ac_ext=c
11208 ac_cpp='$CPP $CPPFLAGS'
11209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11212
11213 CC="$lt_save_CC"
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227 ac_config_commands="$ac_config_commands libtool"
11228
11229
11230
11231
11232 # Only expand once:
11233
11234
11235
11236 # Initialize X.Org macros
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11249 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11250 if ${ac_cv_prog_cc_c99+:} false; then :
11251 $as_echo_n "(cached) " >&6
11252 else
11253 ac_cv_prog_cc_c99=no
11254 ac_save_CC=$CC
11255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11256 /* end confdefs.h. */
11257 #include <stdarg.h>
11258 #include <stdbool.h>
11259 #include <stdlib.h>
11260 #include <wchar.h>
11261 #include <stdio.h>
11262
11263 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11264 #define debug(...) fprintf (stderr, __VA_ARGS__)
11265 #define showlist(...) puts (#__VA_ARGS__)
11266 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11267 static void
11268 test_varargs_macros (void)
11269 {
11270 int x = 1234;
11271 int y = 5678;
11272 debug ("Flag");
11273 debug ("X = %d\n", x);
11274 showlist (The first, second, and third items.);
11275 report (x>y, "x is %d but y is %d", x, y);
11276 }
11277
11278 // Check long long types.
11279 #define BIG64 18446744073709551615ull
11280 #define BIG32 4294967295ul
11281 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11282 #if !BIG_OK
11283 your preprocessor is broken;
11284 #endif
11285 #if BIG_OK
11286 #else
11287 your preprocessor is broken;
11288 #endif
11289 static long long int bignum = -9223372036854775807LL;
11290 static unsigned long long int ubignum = BIG64;
11291
11292 struct incomplete_array
11293 {
11294 int datasize;
11295 double data[];
11296 };
11297
11298 struct named_init {
11299 int number;
11300 const wchar_t *name;
11301 double average;
11302 };
11303
11304 typedef const char *ccp;
11305
11306 static inline int
11307 test_restrict (ccp restrict text)
11308 {
11309 // See if C++-style comments work.
11310 // Iterate through items via the restricted pointer.
11311 // Also check for declarations in for loops.
11312 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11313 continue;
11314 return 0;
11315 }
11316
11317 // Check varargs and va_copy.
11318 static void
11319 test_varargs (const char *format, ...)
11320 {
11321 va_list args;
11322 va_start (args, format);
11323 va_list args_copy;
11324 va_copy (args_copy, args);
11325
11326 const char *str;
11327 int number;
11328 float fnumber;
11329
11330 while (*format)
11331 {
11332 switch (*format++)
11333 {
11334 case 's': // string
11335 str = va_arg (args_copy, const char *);
11336 break;
11337 case 'd': // int
11338 number = va_arg (args_copy, int);
11339 break;
11340 case 'f': // float
11341 fnumber = va_arg (args_copy, double);
11342 break;
11343 default:
11344 break;
11345 }
11346 }
11347 va_end (args_copy);
11348 va_end (args);
11349 }
11350
11351 int
11352 main ()
11353 {
11354
11355 // Check bool.
11356 _Bool success = false;
11357
11358 // Check restrict.
11359 if (test_restrict ("String literal") == 0)
11360 success = true;
11361 char *restrict newvar = "Another string";
11362
11363 // Check varargs.
11364 test_varargs ("s, d' f .", "string", 65, 34.234);
11365 test_varargs_macros ();
11366
11367 // Check flexible array members.
11368 struct incomplete_array *ia =
11369 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11370 ia->datasize = 10;
11371 for (int i = 0; i < ia->datasize; ++i)
11372 ia->data[i] = i * 1.234;
11373
11374 // Check named initializers.
11375 struct named_init ni = {
11376 .number = 34,
11377 .name = L"Test wide string",
11378 .average = 543.34343,
11379 };
11380
11381 ni.number = 58;
11382
11383 int dynamic_array[ni.number];
11384 dynamic_array[ni.number - 1] = 543;
11385
11386 // work around unused variable warnings
11387 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11388 || dynamic_array[ni.number - 1] != 543);
11389
11390 ;
11391 return 0;
11392 }
11393 _ACEOF
11394 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11395 do
11396 CC="$ac_save_CC $ac_arg"
11397 if ac_fn_c_try_compile "$LINENO"; then :
11398 ac_cv_prog_cc_c99=$ac_arg
11399 fi
11400 rm -f core conftest.err conftest.$ac_objext
11401 test "x$ac_cv_prog_cc_c99" != "xno" && break
11402 done
11403 rm -f conftest.$ac_ext
11404 CC=$ac_save_CC
11405
11406 fi
11407 # AC_CACHE_VAL
11408 case "x$ac_cv_prog_cc_c99" in
11409 x)
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11411 $as_echo "none needed" >&6; } ;;
11412 xno)
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11414 $as_echo "unsupported" >&6; } ;;
11415 *)
11416 CC="$CC $ac_cv_prog_cc_c99"
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11418 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11419 esac
11420 if test "x$ac_cv_prog_cc_c99" != xno; then :
11421
11422 fi
11423
11424
11425
11426
11427 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11428 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11429 CLANGCC="yes"
11430 else
11431 CLANGCC="no"
11432 fi
11433
11434 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11435 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11436 INTELCC="yes"
11437 else
11438 INTELCC="no"
11439 fi
11440
11441 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11442 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11443 SUNCC="yes"
11444 else
11445 SUNCC="no"
11446 fi
11447
11448
11449
11450
11451 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11452 if test -n "$ac_tool_prefix"; then
11453 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11454 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11456 $as_echo_n "checking for $ac_word... " >&6; }
11457 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11458 $as_echo_n "(cached) " >&6
11459 else
11460 case $PKG_CONFIG in
11461 [\\/]* | ?:[\\/]*)
11462 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11463 ;;
11464 *)
11465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11466 for as_dir in $PATH
11467 do
11468 IFS=$as_save_IFS
11469 test -z "$as_dir" && as_dir=.
11470 for ac_exec_ext in '' $ac_executable_extensions; do
11471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11472 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11474 break 2
11475 fi
11476 done
11477 done
11478 IFS=$as_save_IFS
11479
11480 ;;
11481 esac
11482 fi
11483 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11484 if test -n "$PKG_CONFIG"; then
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11486 $as_echo "$PKG_CONFIG" >&6; }
11487 else
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11489 $as_echo "no" >&6; }
11490 fi
11491
11492
11493 fi
11494 if test -z "$ac_cv_path_PKG_CONFIG"; then
11495 ac_pt_PKG_CONFIG=$PKG_CONFIG
11496 # Extract the first word of "pkg-config", so it can be a program name with args.
11497 set dummy pkg-config; ac_word=$2
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11499 $as_echo_n "checking for $ac_word... " >&6; }
11500 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11501 $as_echo_n "(cached) " >&6
11502 else
11503 case $ac_pt_PKG_CONFIG in
11504 [\\/]* | ?:[\\/]*)
11505 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11506 ;;
11507 *)
11508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11509 for as_dir in $PATH
11510 do
11511 IFS=$as_save_IFS
11512 test -z "$as_dir" && as_dir=.
11513 for ac_exec_ext in '' $ac_executable_extensions; do
11514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11515 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11517 break 2
11518 fi
11519 done
11520 done
11521 IFS=$as_save_IFS
11522
11523 ;;
11524 esac
11525 fi
11526 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11527 if test -n "$ac_pt_PKG_CONFIG"; then
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11529 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11530 else
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11532 $as_echo "no" >&6; }
11533 fi
11534
11535 if test "x$ac_pt_PKG_CONFIG" = x; then
11536 PKG_CONFIG=""
11537 else
11538 case $cross_compiling:$ac_tool_warned in
11539 yes:)
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11542 ac_tool_warned=yes ;;
11543 esac
11544 PKG_CONFIG=$ac_pt_PKG_CONFIG
11545 fi
11546 else
11547 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11548 fi
11549
11550 fi
11551 if test -n "$PKG_CONFIG"; then
11552 _pkg_min_version=0.9.0
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11554 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11555 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11557 $as_echo "yes" >&6; }
11558 else
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11560 $as_echo "no" >&6; }
11561 PKG_CONFIG=""
11562 fi
11563
11564 fi
11565
11566
11567
11568
11569
11570 if test "x$GCC" = xyes ; then
11571 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
11572 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
11573 -Wbad-function-cast -Wformat=2"
11574 case `$CC -dumpversion` in
11575 3.4.* | 4.*)
11576 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
11577 ;;
11578 esac
11579 else
11580 if test "x$SUNCC" = "xyes"; then
11581 CWARNFLAGS="-v"
11582 fi
11583 fi
11584
11585
11586
11587 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
11588
11589
11590
11591
11592 # Check whether --enable-strict-compilation was given.
11593 if test "${enable_strict_compilation+set}" = set; then :
11594 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11595 else
11596 STRICT_COMPILE=no
11597 fi
11598
11599 if test "x$GCC" = xyes ; then
11600 STRICT_CFLAGS="-pedantic -Werror"
11601 # Add -Werror=attributes if supported (gcc 4.2 & later)
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11603 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
11604 save_CFLAGS="$CFLAGS"
11605 CFLAGS="$CFLAGS $STRICT_CFLAGS -Werror=attributes"
11606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h. */
11608 return 0;
11609 _ACEOF
11610 if ac_fn_c_try_compile "$LINENO"; then :
11611 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11613 $as_echo "yes" >&6; }
11614 else
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616 $as_echo "no" >&6; }
11617 fi
11618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11619 CFLAGS="$save_CFLAGS"
11620 elif test "x$SUNCC" = "xyes"; then
11621 STRICT_CFLAGS="-errwarn"
11622 elif test "x$INTELCC" = "xyes"; then
11623 STRICT_CFLAGS="-Werror"
11624 fi
11625 if test "x$STRICT_COMPILE" = "xyes"; then
11626 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11627 fi
11628
11629
11630
11631
11632
11633 cat >>confdefs.h <<_ACEOF
11634 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11635 _ACEOF
11636
11637 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11638 if test "x$PVM" = "x"; then
11639 PVM="0"
11640 fi
11641
11642 cat >>confdefs.h <<_ACEOF
11643 #define PACKAGE_VERSION_MINOR $PVM
11644 _ACEOF
11645
11646 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11647 if test "x$PVP" = "x"; then
11648 PVP="0"
11649 fi
11650
11651 cat >>confdefs.h <<_ACEOF
11652 #define PACKAGE_VERSION_PATCHLEVEL $PVP
11653 _ACEOF
11654
11655
11656
11657 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
11658 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11659 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
11660 echo 'git directory not found: installing possibly empty changelog.' >&2)"
11661
11662
11663
11664
11665 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11666 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11667 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11668 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
11669 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
11670
11671
11672
11673
11674
11675
11676 if test x$APP_MAN_SUFFIX = x ; then
11677 APP_MAN_SUFFIX=1
11678 fi
11679 if test x$APP_MAN_DIR = x ; then
11680 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11681 fi
11682
11683 if test x$LIB_MAN_SUFFIX = x ; then
11684 LIB_MAN_SUFFIX=3
11685 fi
11686 if test x$LIB_MAN_DIR = x ; then
11687 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11688 fi
11689
11690 if test x$FILE_MAN_SUFFIX = x ; then
11691 case $host_os in
11692 solaris*) FILE_MAN_SUFFIX=4 ;;
11693 *) FILE_MAN_SUFFIX=5 ;;
11694 esac
11695 fi
11696 if test x$FILE_MAN_DIR = x ; then
11697 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11698 fi
11699
11700 if test x$MISC_MAN_SUFFIX = x ; then
11701 case $host_os in
11702 solaris*) MISC_MAN_SUFFIX=5 ;;
11703 *) MISC_MAN_SUFFIX=7 ;;
11704 esac
11705 fi
11706 if test x$MISC_MAN_DIR = x ; then
11707 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11708 fi
11709
11710 if test x$DRIVER_MAN_SUFFIX = x ; then
11711 case $host_os in
11712 solaris*) DRIVER_MAN_SUFFIX=7 ;;
11713 *) DRIVER_MAN_SUFFIX=4 ;;
11714 esac
11715 fi
11716 if test x$DRIVER_MAN_DIR = x ; then
11717 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11718 fi
11719
11720 if test x$ADMIN_MAN_SUFFIX = x ; then
11721 case $host_os in
11722 solaris*) ADMIN_MAN_SUFFIX=1m ;;
11723 *) ADMIN_MAN_SUFFIX=8 ;;
11724 esac
11725 fi
11726 if test x$ADMIN_MAN_DIR = x ; then
11727 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11728 fi
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744 XORG_MAN_PAGE="X Version 11"
11745
11746 MAN_SUBSTS="\
11747 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11748 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11749 -e 's|__xservername__|Xorg|g' \
11750 -e 's|__xconfigfile__|xorg.conf|g' \
11751 -e 's|__projectroot__|\$(prefix)|g' \
11752 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11753 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11754 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11755 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11756 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11757 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11758 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11759
11760
11761
11762 # Check whether --enable-silent-rules was given.
11763 if test "${enable_silent_rules+set}" = set; then :
11764 enableval=$enable_silent_rules;
11765 fi
11766
11767 case $enable_silent_rules in
11768 yes) AM_DEFAULT_VERBOSITY=0;;
11769 no) AM_DEFAULT_VERBOSITY=1;;
11770 *) AM_DEFAULT_VERBOSITY=0;;
11771 esac
11772 AM_BACKSLASH='\'
11773
11774
11775
11776
11777
11778
11779
11780 # Check whether --with-lint was given.
11781 if test "${with_lint+set}" = set; then :
11782 withval=$with_lint; use_lint=$withval
11783 else
11784 use_lint=no
11785 fi
11786
11787
11788 # Obtain platform specific info like program name and options
11789 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
11790 case $host_os in
11791 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11792 lint_name=splint
11793 lint_options="-badflag"
11794 ;;
11795 *freebsd* | *netbsd*)
11796 lint_name=lint
11797 lint_options="-u -b"
11798 ;;
11799 *solaris*)
11800 lint_name=lint
11801 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11802 ;;
11803 esac
11804
11805 # Test for the presence of the program (either guessed by the code or spelled out by the user)
11806 if test "x$use_lint" = x"yes" ; then
11807 # Extract the first word of "$lint_name", so it can be a program name with args.
11808 set dummy $lint_name; ac_word=$2
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11810 $as_echo_n "checking for $ac_word... " >&6; }
11811 if ${ac_cv_path_LINT+:} false; then :
11812 $as_echo_n "(cached) " >&6
11813 else
11814 case $LINT in
11815 [\\/]* | ?:[\\/]*)
11816 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
11817 ;;
11818 *)
11819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820 for as_dir in $PATH
11821 do
11822 IFS=$as_save_IFS
11823 test -z "$as_dir" && as_dir=.
11824 for ac_exec_ext in '' $ac_executable_extensions; do
11825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11826 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
11827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11828 break 2
11829 fi
11830 done
11831 done
11832 IFS=$as_save_IFS
11833
11834 ;;
11835 esac
11836 fi
11837 LINT=$ac_cv_path_LINT
11838 if test -n "$LINT"; then
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11840 $as_echo "$LINT" >&6; }
11841 else
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843 $as_echo "no" >&6; }
11844 fi
11845
11846
11847 if test "x$LINT" = "x"; then
11848 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11849 fi
11850 elif test "x$use_lint" = x"no" ; then
11851 if test "x$LINT" != "x"; then
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
11853 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
11854 fi
11855 else
11856 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
11857 fi
11858
11859 # User supplied flags override default flags
11860 if test "x$LINT_FLAGS" != "x"; then
11861 lint_options=$LINT_FLAGS
11862 fi
11863
11864 LINT_FLAGS=$lint_options
11865
11866 if test "x$LINT" != x; then
11867 LINT_TRUE=
11868 LINT_FALSE='#'
11869 else
11870 LINT_TRUE='#'
11871 LINT_FALSE=
11872 fi
11873
11874
11875
11876
11877 # Obtain compiler/linker options from server and required extensions
11878
11879 pkg_failed=no
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
11881 $as_echo_n "checking for XORG... " >&6; }
11882
11883 if test -n "$XORG_CFLAGS"; then
11884 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
11885 elif test -n "$PKG_CONFIG"; then
11886 if test -n "$PKG_CONFIG" && \
11887 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.5.99.901 xproto inputproto\""; } >&5
11888 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.5.99.901 xproto inputproto") 2>&5
11889 ac_status=$?
11890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11891 test $ac_status = 0; }; then
11892 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.5.99.901 xproto inputproto" 2>/dev/null`
11893 else
11894 pkg_failed=yes
11895 fi
11896 else
11897 pkg_failed=untried
11898 fi
11899 if test -n "$XORG_LIBS"; then
11900 pkg_cv_XORG_LIBS="$XORG_LIBS"
11901 elif test -n "$PKG_CONFIG"; then
11902 if test -n "$PKG_CONFIG" && \
11903 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.5.99.901 xproto inputproto\""; } >&5
11904 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.5.99.901 xproto inputproto") 2>&5
11905 ac_status=$?
11906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11907 test $ac_status = 0; }; then
11908 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.5.99.901 xproto inputproto" 2>/dev/null`
11909 else
11910 pkg_failed=yes
11911 fi
11912 else
11913 pkg_failed=untried
11914 fi
11915
11916
11917
11918 if test $pkg_failed = yes; then
11919
11920 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11921 _pkg_short_errors_supported=yes
11922 else
11923 _pkg_short_errors_supported=no
11924 fi
11925 if test $_pkg_short_errors_supported = yes; then
11926 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.5.99.901 xproto inputproto" 2>&1`
11927 else
11928 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.5.99.901 xproto inputproto" 2>&1`
11929 fi
11930 # Put the nasty error message in config.log where it belongs
11931 echo "$XORG_PKG_ERRORS" >&5
11932
11933 as_fn_error $? "Package requirements (xorg-server >= 1.5.99.901 xproto inputproto) were not met:
11934
11935 $XORG_PKG_ERRORS
11936
11937 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11938 installed software in a non-standard prefix.
11939
11940 Alternatively, you may set the environment variables XORG_CFLAGS
11941 and XORG_LIBS to avoid the need to call pkg-config.
11942 See the pkg-config man page for more details.
11943 " "$LINENO" 5
11944 elif test $pkg_failed = untried; then
11945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11947 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11948 is in your PATH or set the PKG_CONFIG environment variable to the full
11949 path to pkg-config.
11950
11951 Alternatively, you may set the environment variables XORG_CFLAGS
11952 and XORG_LIBS to avoid the need to call pkg-config.
11953 See the pkg-config man page for more details.
11954
11955 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11956 See \`config.log' for more details" "$LINENO" 5; }
11957 else
11958 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
11959 XORG_LIBS=$pkg_cv_XORG_LIBS
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11961 $as_echo "yes" >&6; }
11962 :
11963 fi
11964
11965 # Define a configure option for an alternate input module directory
11966
11967 # Check whether --with-xorg-module-dir was given.
11968 if test "${with_xorg_module_dir+set}" = set; then :
11969 withval=$with_xorg_module_dir; moduledir="$withval"
11970 else
11971 moduledir="$libdir/xorg/modules"
11972 fi
11973
11974 inputdir=${moduledir}/input
11975
11976
11977 # Work out which OS mouse driver we need to build
11978 case $host_os in
11979 linux*)
11980 OS_MOUSE_NAME=lnx
11981 ;;
11982 freebsd*|kfreebsd*-gnu|dragonfly*|netbsd*|openbsd*)
11983 OS_MOUSE_NAME=bsd
11984 ;;
11985 solaris*)
11986 OS_MOUSE_NAME=sun
11987 ;;
11988 gnu*)
11989 OS_MOUSE_NAME=hurd
11990 ;;
11991 esac
11992
11993
11994 DRIVER_NAME=mouse
11995
11996
11997 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
11998
11999 cat >confcache <<\_ACEOF
12000 # This file is a shell script that caches the results of configure
12001 # tests run on this system so they can be shared between configure
12002 # scripts and configure runs, see configure's option --config-cache.
12003 # It is not useful on other systems. If it contains results you don't
12004 # want to keep, you may remove or edit it.
12005 #
12006 # config.status only pays attention to the cache file if you give it
12007 # the --recheck option to rerun configure.
12008 #
12009 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12010 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12011 # following values.
12012
12013 _ACEOF
12014
12015 # The following way of writing the cache mishandles newlines in values,
12016 # but we know of no workaround that is simple, portable, and efficient.
12017 # So, we kill variables containing newlines.
12018 # Ultrix sh set writes to stderr and can't be redirected directly,
12019 # and sets the high bit in the cache file unless we assign to the vars.
12020 (
12021 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12022 eval ac_val=\$$ac_var
12023 case $ac_val in #(
12024 *${as_nl}*)
12025 case $ac_var in #(
12026 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12027 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12028 esac
12029 case $ac_var in #(
12030 _ | IFS | as_nl) ;; #(
12031 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12032 *) { eval $ac_var=; unset $ac_var;} ;;
12033 esac ;;
12034 esac
12035 done
12036
12037 (set) 2>&1 |
12038 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12039 *${as_nl}ac_space=\ *)
12040 # `set' does not quote correctly, so add quotes: double-quote
12041 # substitution turns \\\\ into \\, and sed turns \\ into \.
12042 sed -n \
12043 "s/'/'\\\\''/g;
12044 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12045 ;; #(
12046 *)
12047 # `set' quotes correctly as required by POSIX, so do not add quotes.
12048 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12049 ;;
12050 esac |
12051 sort
12052 ) |
12053 sed '
12054 /^ac_cv_env_/b end
12055 t clear
12056 :clear
12057 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12058 t end
12059 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12060 :end' >>confcache
12061 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12062 if test -w "$cache_file"; then
12063 if test "x$cache_file" != "x/dev/null"; then
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12065 $as_echo "$as_me: updating cache $cache_file" >&6;}
12066 if test ! -f "$cache_file" || test -h "$cache_file"; then
12067 cat confcache >"$cache_file"
12068 else
12069 case $cache_file in #(
12070 */* | ?:*)
12071 mv -f confcache "$cache_file"$$ &&
12072 mv -f "$cache_file"$$ "$cache_file" ;; #(
12073 *)
12074 mv -f confcache "$cache_file" ;;
12075 esac
12076 fi
12077 fi
12078 else
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12080 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12081 fi
12082 fi
12083 rm -f confcache
12084
12085 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12086 # Let make expand exec_prefix.
12087 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12088
12089 DEFS=-DHAVE_CONFIG_H
12090
12091 ac_libobjs=
12092 ac_ltlibobjs=
12093 U=
12094 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12095 # 1. Remove the extension, and $U if already installed.
12096 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12097 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12098 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12099 # will be set to the directory where LIBOBJS objects are built.
12100 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12101 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12102 done
12103 LIBOBJS=$ac_libobjs
12104
12105 LTLIBOBJS=$ac_ltlibobjs
12106
12107
12108 if test -n "$EXEEXT"; then
12109 am__EXEEXT_TRUE=
12110 am__EXEEXT_FALSE='#'
12111 else
12112 am__EXEEXT_TRUE='#'
12113 am__EXEEXT_FALSE=
12114 fi
12115
12116 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12117 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12119 fi
12120 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12121 as_fn_error $? "conditional \"AMDEP\" was never defined.
12122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12123 fi
12124 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12125 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12127 fi
12128 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12129 as_fn_error $? "conditional \"LINT\" was never defined.
12130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12131 fi
12132
12133 : "${CONFIG_STATUS=./config.status}"
12134 ac_write_fail=0
12135 ac_clean_files_save=$ac_clean_files
12136 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12138 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12139 as_write_fail=0
12140 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12141 #! $SHELL
12142 # Generated by $as_me.
12143 # Run this file to recreate the current configuration.
12144 # Compiler output produced by configure, useful for debugging
12145 # configure, is in config.log if it exists.
12146
12147 debug=false
12148 ac_cs_recheck=false
12149 ac_cs_silent=false
12150
12151 SHELL=\${CONFIG_SHELL-$SHELL}
12152 export SHELL
12153 _ASEOF
12154 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12155 ## -------------------- ##
12156 ## M4sh Initialization. ##
12157 ## -------------------- ##
12158
12159 # Be more Bourne compatible
12160 DUALCASE=1; export DUALCASE # for MKS sh
12161 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12162 emulate sh
12163 NULLCMD=:
12164 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12165 # is contrary to our usage. Disable this feature.
12166 alias -g '${1+"$@"}'='"$@"'
12167 setopt NO_GLOB_SUBST
12168 else
12169 case `(set -o) 2>/dev/null` in #(
12170 *posix*) :
12171 set -o posix ;; #(
12172 *) :
12173 ;;
12174 esac
12175 fi
12176
12177
12178 as_nl='
12179 '
12180 export as_nl
12181 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12182 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12183 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12184 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12185 # Prefer a ksh shell builtin over an external printf program on Solaris,
12186 # but without wasting forks for bash or zsh.
12187 if test -z "$BASH_VERSION$ZSH_VERSION" \
12188 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12189 as_echo='print -r --'
12190 as_echo_n='print -rn --'
12191 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12192 as_echo='printf %s\n'
12193 as_echo_n='printf %s'
12194 else
12195 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12196 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12197 as_echo_n='/usr/ucb/echo -n'
12198 else
12199 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12200 as_echo_n_body='eval
12201 arg=$1;
12202 case $arg in #(
12203 *"$as_nl"*)
12204 expr "X$arg" : "X\\(.*\\)$as_nl";
12205 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12206 esac;
12207 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12208 '
12209 export as_echo_n_body
12210 as_echo_n='sh -c $as_echo_n_body as_echo'
12211 fi
12212 export as_echo_body
12213 as_echo='sh -c $as_echo_body as_echo'
12214 fi
12215
12216 # The user is always right.
12217 if test "${PATH_SEPARATOR+set}" != set; then
12218 PATH_SEPARATOR=:
12219 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12220 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12221 PATH_SEPARATOR=';'
12222 }
12223 fi
12224
12225
12226 # IFS
12227 # We need space, tab and new line, in precisely that order. Quoting is
12228 # there to prevent editors from complaining about space-tab.
12229 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12230 # splitting by setting IFS to empty value.)
12231 IFS=" "" $as_nl"
12232
12233 # Find who we are. Look in the path if we contain no directory separator.
12234 as_myself=
12235 case $0 in #((
12236 *[\\/]* ) as_myself=$0 ;;
12237 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12238 for as_dir in $PATH
12239 do
12240 IFS=$as_save_IFS
12241 test -z "$as_dir" && as_dir=.
12242 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12243 done
12244 IFS=$as_save_IFS
12245
12246 ;;
12247 esac
12248 # We did not find ourselves, most probably we were run as `sh COMMAND'
12249 # in which case we are not to be found in the path.
12250 if test "x$as_myself" = x; then
12251 as_myself=$0
12252 fi
12253 if test ! -f "$as_myself"; then
12254 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12255 exit 1
12256 fi
12257
12258 # Unset variables that we do not need and which cause bugs (e.g. in
12259 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12260 # suppresses any "Segmentation fault" message there. '((' could
12261 # trigger a bug in pdksh 5.2.14.
12262 for as_var in BASH_ENV ENV MAIL MAILPATH
12263 do eval test x\${$as_var+set} = xset \
12264 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12265 done
12266 PS1='$ '
12267 PS2='> '
12268 PS4='+ '
12269
12270 # NLS nuisances.
12271 LC_ALL=C
12272 export LC_ALL
12273 LANGUAGE=C
12274 export LANGUAGE
12275
12276 # CDPATH.
12277 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12278
12279
12280 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12281 # ----------------------------------------
12282 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12283 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12284 # script with STATUS, using 1 if that was 0.
12285 as_fn_error ()
12286 {
12287 as_status=$1; test $as_status -eq 0 && as_status=1
12288 if test "$4"; then
12289 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12290 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12291 fi
12292 $as_echo "$as_me: error: $2" >&2
12293 as_fn_exit $as_status
12294 } # as_fn_error
12295
12296
12297 # as_fn_set_status STATUS
12298 # -----------------------
12299 # Set $? to STATUS, without forking.
12300 as_fn_set_status ()
12301 {
12302 return $1
12303 } # as_fn_set_status
12304
12305 # as_fn_exit STATUS
12306 # -----------------
12307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12308 as_fn_exit ()
12309 {
12310 set +e
12311 as_fn_set_status $1
12312 exit $1
12313 } # as_fn_exit
12314
12315 # as_fn_unset VAR
12316 # ---------------
12317 # Portably unset VAR.
12318 as_fn_unset ()
12319 {
12320 { eval $1=; unset $1;}
12321 }
12322 as_unset=as_fn_unset
12323 # as_fn_append VAR VALUE
12324 # ----------------------
12325 # Append the text in VALUE to the end of the definition contained in VAR. Take
12326 # advantage of any shell optimizations that allow amortized linear growth over
12327 # repeated appends, instead of the typical quadratic growth present in naive
12328 # implementations.
12329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12330 eval 'as_fn_append ()
12331 {
12332 eval $1+=\$2
12333 }'
12334 else
12335 as_fn_append ()
12336 {
12337 eval $1=\$$1\$2
12338 }
12339 fi # as_fn_append
12340
12341 # as_fn_arith ARG...
12342 # ------------------
12343 # Perform arithmetic evaluation on the ARGs, and store the result in the
12344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12345 # must be portable across $(()) and expr.
12346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12347 eval 'as_fn_arith ()
12348 {
12349 as_val=$(( $* ))
12350 }'
12351 else
12352 as_fn_arith ()
12353 {
12354 as_val=`expr "$@" || test $? -eq 1`
12355 }
12356 fi # as_fn_arith
12357
12358
12359 if expr a : '\(a\)' >/dev/null 2>&1 &&
12360 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12361 as_expr=expr
12362 else
12363 as_expr=false
12364 fi
12365
12366 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12367 as_basename=basename
12368 else
12369 as_basename=false
12370 fi
12371
12372 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12373 as_dirname=dirname
12374 else
12375 as_dirname=false
12376 fi
12377
12378 as_me=`$as_basename -- "$0" ||
12379 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12380 X"$0" : 'X\(//\)$' \| \
12381 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12382 $as_echo X/"$0" |
12383 sed '/^.*\/\([^/][^/]*\)\/*$/{
12384 s//\1/
12385 q
12386 }
12387 /^X\/\(\/\/\)$/{
12388 s//\1/
12389 q
12390 }
12391 /^X\/\(\/\).*/{
12392 s//\1/
12393 q
12394 }
12395 s/.*/./; q'`
12396
12397 # Avoid depending upon Character Ranges.
12398 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12399 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12400 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12401 as_cr_digits='0123456789'
12402 as_cr_alnum=$as_cr_Letters$as_cr_digits
12403
12404 ECHO_C= ECHO_N= ECHO_T=
12405 case `echo -n x` in #(((((
12406 -n*)
12407 case `echo 'xy\c'` in
12408 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12409 xy) ECHO_C='\c';;
12410 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12411 ECHO_T=' ';;
12412 esac;;
12413 *)
12414 ECHO_N='-n';;
12415 esac
12416
12417 rm -f conf$$ conf$$.exe conf$$.file
12418 if test -d conf$$.dir; then
12419 rm -f conf$$.dir/conf$$.file
12420 else
12421 rm -f conf$$.dir
12422 mkdir conf$$.dir 2>/dev/null
12423 fi
12424 if (echo >conf$$.file) 2>/dev/null; then
12425 if ln -s conf$$.file conf$$ 2>/dev/null; then
12426 as_ln_s='ln -s'
12427 # ... but there are two gotchas:
12428 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12429 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12430 # In both cases, we have to default to `cp -p'.
12431 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12432 as_ln_s='cp -p'
12433 elif ln conf$$.file conf$$ 2>/dev/null; then
12434 as_ln_s=ln
12435 else
12436 as_ln_s='cp -p'
12437 fi
12438 else
12439 as_ln_s='cp -p'
12440 fi
12441 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12442 rmdir conf$$.dir 2>/dev/null
12443
12444
12445 # as_fn_mkdir_p
12446 # -------------
12447 # Create "$as_dir" as a directory, including parents if necessary.
12448 as_fn_mkdir_p ()
12449 {
12450
12451 case $as_dir in #(
12452 -*) as_dir=./$as_dir;;
12453 esac
12454 test -d "$as_dir" || eval $as_mkdir_p || {
12455 as_dirs=
12456 while :; do
12457 case $as_dir in #(
12458 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12459 *) as_qdir=$as_dir;;
12460 esac
12461 as_dirs="'$as_qdir' $as_dirs"
12462 as_dir=`$as_dirname -- "$as_dir" ||
12463 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12464 X"$as_dir" : 'X\(//\)[^/]' \| \
12465 X"$as_dir" : 'X\(//\)$' \| \
12466 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12467 $as_echo X"$as_dir" |
12468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12469 s//\1/
12470 q
12471 }
12472 /^X\(\/\/\)[^/].*/{
12473 s//\1/
12474 q
12475 }
12476 /^X\(\/\/\)$/{
12477 s//\1/
12478 q
12479 }
12480 /^X\(\/\).*/{
12481 s//\1/
12482 q
12483 }
12484 s/.*/./; q'`
12485 test -d "$as_dir" && break
12486 done
12487 test -z "$as_dirs" || eval "mkdir $as_dirs"
12488 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12489
12490
12491 } # as_fn_mkdir_p
12492 if mkdir -p . 2>/dev/null; then
12493 as_mkdir_p='mkdir -p "$as_dir"'
12494 else
12495 test -d ./-p && rmdir ./-p
12496 as_mkdir_p=false
12497 fi
12498
12499 if test -x / >/dev/null 2>&1; then
12500 as_test_x='test -x'
12501 else
12502 if ls -dL / >/dev/null 2>&1; then
12503 as_ls_L_option=L
12504 else
12505 as_ls_L_option=
12506 fi
12507 as_test_x='
12508 eval sh -c '\''
12509 if test -d "$1"; then
12510 test -d "$1/.";
12511 else
12512 case $1 in #(
12513 -*)set "./$1";;
12514 esac;
12515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12516 ???[sx]*):;;*)false;;esac;fi
12517 '\'' sh
12518 '
12519 fi
12520 as_executable_p=$as_test_x
12521
12522 # Sed expression to map a string onto a valid CPP name.
12523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12524
12525 # Sed expression to map a string onto a valid variable name.
12526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12527
12528
12529 exec 6>&1
12530 ## ----------------------------------- ##
12531 ## Main body of $CONFIG_STATUS script. ##
12532 ## ----------------------------------- ##
12533 _ASEOF
12534 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12535
12536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12537 # Save the log message, to keep $0 and so on meaningful, and to
12538 # report actual input values of CONFIG_FILES etc. instead of their
12539 # values after options handling.
12540 ac_log="
12541 This file was extended by xf86-input-mouse $as_me 1.7.1, which was
12542 generated by GNU Autoconf 2.68. Invocation command line was
12543
12544 CONFIG_FILES = $CONFIG_FILES
12545 CONFIG_HEADERS = $CONFIG_HEADERS
12546 CONFIG_LINKS = $CONFIG_LINKS
12547 CONFIG_COMMANDS = $CONFIG_COMMANDS
12548 $ $0 $@
12549
12550 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12551 "
12552
12553 _ACEOF
12554
12555 case $ac_config_files in *"
12556 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12557 esac
12558
12559 case $ac_config_headers in *"
12560 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12561 esac
12562
12563
12564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12565 # Files that config.status was made for.
12566 config_files="$ac_config_files"
12567 config_headers="$ac_config_headers"
12568 config_commands="$ac_config_commands"
12569
12570 _ACEOF
12571
12572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12573 ac_cs_usage="\
12574 \`$as_me' instantiates files and other configuration actions
12575 from templates according to the current configuration. Unless the files
12576 and actions are specified as TAGs, all are instantiated by default.
12577
12578 Usage: $0 [OPTION]... [TAG]...
12579
12580 -h, --help print this help, then exit
12581 -V, --version print version number and configuration settings, then exit
12582 --config print configuration, then exit
12583 -q, --quiet, --silent
12584 do not print progress messages
12585 -d, --debug don't remove temporary files
12586 --recheck update $as_me by reconfiguring in the same conditions
12587 --file=FILE[:TEMPLATE]
12588 instantiate the configuration file FILE
12589 --header=FILE[:TEMPLATE]
12590 instantiate the configuration header FILE
12591
12592 Configuration files:
12593 $config_files
12594
12595 Configuration headers:
12596 $config_headers
12597
12598 Configuration commands:
12599 $config_commands
12600
12601 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12602
12603 _ACEOF
12604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12605 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12606 ac_cs_version="\\
12607 xf86-input-mouse config.status 1.7.1
12608 configured by $0, generated by GNU Autoconf 2.68,
12609 with options \\"\$ac_cs_config\\"
12610
12611 Copyright (C) 2010 Free Software Foundation, Inc.
12612 This config.status script is free software; the Free Software Foundation
12613 gives unlimited permission to copy, distribute and modify it."
12614
12615 ac_pwd='$ac_pwd'
12616 srcdir='$srcdir'
12617 INSTALL='$INSTALL'
12618 MKDIR_P='$MKDIR_P'
12619 AWK='$AWK'
12620 test -n "\$AWK" || AWK=awk
12621 _ACEOF
12622
12623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12624 # The default lists apply if the user does not specify any file.
12625 ac_need_defaults=:
12626 while test $# != 0
12627 do
12628 case $1 in
12629 --*=?*)
12630 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12631 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12632 ac_shift=:
12633 ;;
12634 --*=)
12635 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12636 ac_optarg=
12637 ac_shift=:
12638 ;;
12639 *)
12640 ac_option=$1
12641 ac_optarg=$2
12642 ac_shift=shift
12643 ;;
12644 esac
12645
12646 case $ac_option in
12647 # Handling of the options.
12648 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12649 ac_cs_recheck=: ;;
12650 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12651 $as_echo "$ac_cs_version"; exit ;;
12652 --config | --confi | --conf | --con | --co | --c )
12653 $as_echo "$ac_cs_config"; exit ;;
12654 --debug | --debu | --deb | --de | --d | -d )
12655 debug=: ;;
12656 --file | --fil | --fi | --f )
12657 $ac_shift
12658 case $ac_optarg in
12659 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12660 '') as_fn_error $? "missing file argument" ;;
12661 esac
12662 as_fn_append CONFIG_FILES " '$ac_optarg'"
12663 ac_need_defaults=false;;
12664 --header | --heade | --head | --hea )
12665 $ac_shift
12666 case $ac_optarg in
12667 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12668 esac
12669 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12670 ac_need_defaults=false;;
12671 --he | --h)
12672 # Conflict between --help and --header
12673 as_fn_error $? "ambiguous option: \`$1'
12674 Try \`$0 --help' for more information.";;
12675 --help | --hel | -h )
12676 $as_echo "$ac_cs_usage"; exit ;;
12677 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12678 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12679 ac_cs_silent=: ;;
12680
12681 # This is an error.
12682 -*) as_fn_error $? "unrecognized option: \`$1'
12683 Try \`$0 --help' for more information." ;;
12684
12685 *) as_fn_append ac_config_targets " $1"
12686 ac_need_defaults=false ;;
12687
12688 esac
12689 shift
12690 done
12691
12692 ac_configure_extra_args=
12693
12694 if $ac_cs_silent; then
12695 exec 6>/dev/null
12696 ac_configure_extra_args="$ac_configure_extra_args --silent"
12697 fi
12698
12699 _ACEOF
12700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12701 if \$ac_cs_recheck; then
12702 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12703 shift
12704 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12705 CONFIG_SHELL='$SHELL'
12706 export CONFIG_SHELL
12707 exec "\$@"
12708 fi
12709
12710 _ACEOF
12711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12712 exec 5>>config.log
12713 {
12714 echo
12715 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12716 ## Running $as_me. ##
12717 _ASBOX
12718 $as_echo "$ac_log"
12719 } >&5
12720
12721 _ACEOF
12722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12723 #
12724 # INIT-COMMANDS
12725 #
12726 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12727
12728
12729 # The HP-UX ksh and POSIX shell print the target directory to stdout
12730 # if CDPATH is set.
12731 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12732
12733 sed_quote_subst='$sed_quote_subst'
12734 double_quote_subst='$double_quote_subst'
12735 delay_variable_subst='$delay_variable_subst'
12736 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12737 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12738 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12739 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12740 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12741 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12742 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12743 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12744 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12745 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12746 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12747 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12748 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12749 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12750 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12751 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12752 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12753 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12754 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12755 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12756 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12757 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12758 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12759 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12760 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12761 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12762 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12763 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12764 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12765 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12766 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12767 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12768 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12769 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12770 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12771 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12772 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12773 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12774 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12775 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12776 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12777 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12778 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12779 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12780 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12781 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12782 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12783 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12784 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12785 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12786 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12787 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12788 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12789 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12790 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12791 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"`'
12792 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12793 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12794 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12795 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12796 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12797 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12798 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12799 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12800 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12801 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12802 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12803 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12804 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12805 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12806 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12807 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12808 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12809 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12810 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12811 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12812 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12813 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12814 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12815 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12816 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12817 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12818 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12819 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12820 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12821 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12822 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12823 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12824 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12825 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12826 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12827 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12828 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12829 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12830 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12831 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12832 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12833 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12834 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12835 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12836 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12837 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12838 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12839 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12840 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12841 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12842 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12843 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12844 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12845 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12846 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12847 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12848 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12849 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12850 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12851 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12852 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12853 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12854 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12855 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12856 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12857 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12858 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12859 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12860 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12861 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12862 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12863 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12864 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12865 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12866
12867 LTCC='$LTCC'
12868 LTCFLAGS='$LTCFLAGS'
12869 compiler='$compiler_DEFAULT'
12870
12871 # A function that is used when there is no print builtin or printf.
12872 func_fallback_echo ()
12873 {
12874 eval 'cat <<_LTECHO_EOF
12875 \$1
12876 _LTECHO_EOF'
12877 }
12878
12879 # Quote evaled strings.
12880 for var in SHELL \
12881 ECHO \
12882 SED \
12883 GREP \
12884 EGREP \
12885 FGREP \
12886 LD \
12887 NM \
12888 LN_S \
12889 lt_SP2NL \
12890 lt_NL2SP \
12891 reload_flag \
12892 OBJDUMP \
12893 deplibs_check_method \
12894 file_magic_cmd \
12895 file_magic_glob \
12896 want_nocaseglob \
12897 DLLTOOL \
12898 sharedlib_from_linklib_cmd \
12899 AR \
12900 AR_FLAGS \
12901 archiver_list_spec \
12902 STRIP \
12903 RANLIB \
12904 CC \
12905 CFLAGS \
12906 compiler \
12907 lt_cv_sys_global_symbol_pipe \
12908 lt_cv_sys_global_symbol_to_cdecl \
12909 lt_cv_sys_global_symbol_to_c_name_address \
12910 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12911 nm_file_list_spec \
12912 lt_prog_compiler_no_builtin_flag \
12913 lt_prog_compiler_pic \
12914 lt_prog_compiler_wl \
12915 lt_prog_compiler_static \
12916 lt_cv_prog_compiler_c_o \
12917 need_locks \
12918 MANIFEST_TOOL \
12919 DSYMUTIL \
12920 NMEDIT \
12921 LIPO \
12922 OTOOL \
12923 OTOOL64 \
12924 shrext_cmds \
12925 export_dynamic_flag_spec \
12926 whole_archive_flag_spec \
12927 compiler_needs_object \
12928 with_gnu_ld \
12929 allow_undefined_flag \
12930 no_undefined_flag \
12931 hardcode_libdir_flag_spec \
12932 hardcode_libdir_flag_spec_ld \
12933 hardcode_libdir_separator \
12934 exclude_expsyms \
12935 include_expsyms \
12936 file_list_spec \
12937 variables_saved_for_relink \
12938 libname_spec \
12939 library_names_spec \
12940 soname_spec \
12941 install_override_mode \
12942 finish_eval \
12943 old_striplib \
12944 striplib; do
12945 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12946 *[\\\\\\\`\\"\\\$]*)
12947 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12948 ;;
12949 *)
12950 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12951 ;;
12952 esac
12953 done
12954
12955 # Double-quote double-evaled strings.
12956 for var in reload_cmds \
12957 old_postinstall_cmds \
12958 old_postuninstall_cmds \
12959 old_archive_cmds \
12960 extract_expsyms_cmds \
12961 old_archive_from_new_cmds \
12962 old_archive_from_expsyms_cmds \
12963 archive_cmds \
12964 archive_expsym_cmds \
12965 module_cmds \
12966 module_expsym_cmds \
12967 export_symbols_cmds \
12968 prelink_cmds \
12969 postlink_cmds \
12970 postinstall_cmds \
12971 postuninstall_cmds \
12972 finish_cmds \
12973 sys_lib_search_path_spec \
12974 sys_lib_dlsearch_path_spec; do
12975 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12976 *[\\\\\\\`\\"\\\$]*)
12977 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12978 ;;
12979 *)
12980 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12981 ;;
12982 esac
12983 done
12984
12985 ac_aux_dir='$ac_aux_dir'
12986 xsi_shell='$xsi_shell'
12987 lt_shell_append='$lt_shell_append'
12988
12989 # See if we are running on zsh, and set the options which allow our
12990 # commands through without removal of \ escapes INIT.
12991 if test -n "\${ZSH_VERSION+set}" ; then
12992 setopt NO_GLOB_SUBST
12993 fi
12994
12995
12996 PACKAGE='$PACKAGE'
12997 VERSION='$VERSION'
12998 TIMESTAMP='$TIMESTAMP'
12999 RM='$RM'
13000 ofile='$ofile'
13001
13002
13003
13004
13005 _ACEOF
13006
13007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13008
13009 # Handling of arguments.
13010 for ac_config_target in $ac_config_targets
13011 do
13012 case $ac_config_target in
13013 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13014 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13015 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13016 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13017 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13018 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13019
13020 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13021 esac
13022 done
13023
13024
13025 # If the user did not use the arguments to specify the items to instantiate,
13026 # then the envvar interface is used. Set only those that are not.
13027 # We use the long form for the default assignment because of an extremely
13028 # bizarre bug on SunOS 4.1.3.
13029 if $ac_need_defaults; then
13030 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13031 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13032 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13033 fi
13034
13035 # Have a temporary directory for convenience. Make it in the build tree
13036 # simply because there is no reason against having it here, and in addition,
13037 # creating and moving files from /tmp can sometimes cause problems.
13038 # Hook for its removal unless debugging.
13039 # Note that there is a small window in which the directory will not be cleaned:
13040 # after its creation but before its name has been assigned to `$tmp'.
13041 $debug ||
13042 {
13043 tmp= ac_tmp=
13044 trap 'exit_status=$?
13045 : "${ac_tmp:=$tmp}"
13046 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13047 ' 0
13048 trap 'as_fn_exit 1' 1 2 13 15
13049 }
13050 # Create a (secure) tmp directory for tmp files.
13051
13052 {
13053 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13054 test -d "$tmp"
13055 } ||
13056 {
13057 tmp=./conf$$-$RANDOM
13058 (umask 077 && mkdir "$tmp")
13059 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13060 ac_tmp=$tmp
13061
13062 # Set up the scripts for CONFIG_FILES section.
13063 # No need to generate them if there are no CONFIG_FILES.
13064 # This happens for instance with `./config.status config.h'.
13065 if test -n "$CONFIG_FILES"; then
13066
13067
13068 ac_cr=`echo X | tr X '\015'`
13069 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13070 # But we know of no other shell where ac_cr would be empty at this
13071 # point, so we can use a bashism as a fallback.
13072 if test "x$ac_cr" = x; then
13073 eval ac_cr=\$\'\\r\'
13074 fi
13075 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13076 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13077 ac_cs_awk_cr='\\r'
13078 else
13079 ac_cs_awk_cr=$ac_cr
13080 fi
13081
13082 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13083 _ACEOF
13084
13085
13086 {
13087 echo "cat >conf$$subs.awk <<_ACEOF" &&
13088 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13089 echo "_ACEOF"
13090 } >conf$$subs.sh ||
13091 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13092 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13093 ac_delim='%!_!# '
13094 for ac_last_try in false false false false false :; do
13095 . ./conf$$subs.sh ||
13096 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13097
13098 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13099 if test $ac_delim_n = $ac_delim_num; then
13100 break
13101 elif $ac_last_try; then
13102 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13103 else
13104 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13105 fi
13106 done
13107 rm -f conf$$subs.sh
13108
13109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13110 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13111 _ACEOF
13112 sed -n '
13113 h
13114 s/^/S["/; s/!.*/"]=/
13115 p
13116 g
13117 s/^[^!]*!//
13118 :repl
13119 t repl
13120 s/'"$ac_delim"'$//
13121 t delim
13122 :nl
13123 h
13124 s/\(.\{148\}\)..*/\1/
13125 t more1
13126 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13127 p
13128 n
13129 b repl
13130 :more1
13131 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13132 p
13133 g
13134 s/.\{148\}//
13135 t nl
13136 :delim
13137 h
13138 s/\(.\{148\}\)..*/\1/
13139 t more2
13140 s/["\\]/\\&/g; s/^/"/; s/$/"/
13141 p
13142 b
13143 :more2
13144 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13145 p
13146 g
13147 s/.\{148\}//
13148 t delim
13149 ' <conf$$subs.awk | sed '
13150 /^[^""]/{
13151 N
13152 s/\n//
13153 }
13154 ' >>$CONFIG_STATUS || ac_write_fail=1
13155 rm -f conf$$subs.awk
13156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13157 _ACAWK
13158 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13159 for (key in S) S_is_set[key] = 1
13160 FS = ""
13161
13162 }
13163 {
13164 line = $ 0
13165 nfields = split(line, field, "@")
13166 substed = 0
13167 len = length(field[1])
13168 for (i = 2; i < nfields; i++) {
13169 key = field[i]
13170 keylen = length(key)
13171 if (S_is_set[key]) {
13172 value = S[key]
13173 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13174 len += length(value) + length(field[++i])
13175 substed = 1
13176 } else
13177 len += 1 + keylen
13178 }
13179
13180 print line
13181 }
13182
13183 _ACAWK
13184 _ACEOF
13185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13186 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13187 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13188 else
13189 cat
13190 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13191 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13192 _ACEOF
13193
13194 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13195 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13196 # trailing colons and then remove the whole line if VPATH becomes empty
13197 # (actually we leave an empty line to preserve line numbers).
13198 if test "x$srcdir" = x.; then
13199 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13200 h
13201 s///
13202 s/^/:/
13203 s/[ ]*$/:/
13204 s/:\$(srcdir):/:/g
13205 s/:\${srcdir}:/:/g
13206 s/:@srcdir@:/:/g
13207 s/^:*//
13208 s/:*$//
13209 x
13210 s/\(=[ ]*\).*/\1/
13211 G
13212 s/\n//
13213 s/^[^=]*=[ ]*$//
13214 }'
13215 fi
13216
13217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13218 fi # test -n "$CONFIG_FILES"
13219
13220 # Set up the scripts for CONFIG_HEADERS section.
13221 # No need to generate them if there are no CONFIG_HEADERS.
13222 # This happens for instance with `./config.status Makefile'.
13223 if test -n "$CONFIG_HEADERS"; then
13224 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13225 BEGIN {
13226 _ACEOF
13227
13228 # Transform confdefs.h into an awk script `defines.awk', embedded as
13229 # here-document in config.status, that substitutes the proper values into
13230 # config.h.in to produce config.h.
13231
13232 # Create a delimiter string that does not exist in confdefs.h, to ease
13233 # handling of long lines.
13234 ac_delim='%!_!# '
13235 for ac_last_try in false false :; do
13236 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13237 if test -z "$ac_tt"; then
13238 break
13239 elif $ac_last_try; then
13240 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13241 else
13242 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13243 fi
13244 done
13245
13246 # For the awk script, D is an array of macro values keyed by name,
13247 # likewise P contains macro parameters if any. Preserve backslash
13248 # newline sequences.
13249
13250 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13251 sed -n '
13252 s/.\{148\}/&'"$ac_delim"'/g
13253 t rset
13254 :rset
13255 s/^[ ]*#[ ]*define[ ][ ]*/ /
13256 t def
13257 d
13258 :def
13259 s/\\$//
13260 t bsnl
13261 s/["\\]/\\&/g
13262 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13263 D["\1"]=" \3"/p
13264 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13265 d
13266 :bsnl
13267 s/["\\]/\\&/g
13268 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13269 D["\1"]=" \3\\\\\\n"\\/p
13270 t cont
13271 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13272 t cont
13273 d
13274 :cont
13275 n
13276 s/.\{148\}/&'"$ac_delim"'/g
13277 t clear
13278 :clear
13279 s/\\$//
13280 t bsnlc
13281 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13282 d
13283 :bsnlc
13284 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13285 b cont
13286 ' <confdefs.h | sed '
13287 s/'"$ac_delim"'/"\\\
13288 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13289
13290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13291 for (key in D) D_is_set[key] = 1
13292 FS = ""
13293 }
13294 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13295 line = \$ 0
13296 split(line, arg, " ")
13297 if (arg[1] == "#") {
13298 defundef = arg[2]
13299 mac1 = arg[3]
13300 } else {
13301 defundef = substr(arg[1], 2)
13302 mac1 = arg[2]
13303 }
13304 split(mac1, mac2, "(") #)
13305 macro = mac2[1]
13306 prefix = substr(line, 1, index(line, defundef) - 1)
13307 if (D_is_set[macro]) {
13308 # Preserve the white space surrounding the "#".
13309 print prefix "define", macro P[macro] D[macro]
13310 next
13311 } else {
13312 # Replace #undef with comments. This is necessary, for example,
13313 # in the case of _POSIX_SOURCE, which is predefined and required
13314 # on some systems where configure will not decide to define it.
13315 if (defundef == "undef") {
13316 print "/*", prefix defundef, macro, "*/"
13317 next
13318 }
13319 }
13320 }
13321 { print }
13322 _ACAWK
13323 _ACEOF
13324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13325 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13326 fi # test -n "$CONFIG_HEADERS"
13327
13328
13329 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13330 shift
13331 for ac_tag
13332 do
13333 case $ac_tag in
13334 :[FHLC]) ac_mode=$ac_tag; continue;;
13335 esac
13336 case $ac_mode$ac_tag in
13337 :[FHL]*:*);;
13338 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13339 :[FH]-) ac_tag=-:-;;
13340 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13341 esac
13342 ac_save_IFS=$IFS
13343 IFS=:
13344 set x $ac_tag
13345 IFS=$ac_save_IFS
13346 shift
13347 ac_file=$1
13348 shift
13349
13350 case $ac_mode in
13351 :L) ac_source=$1;;
13352 :[FH])
13353 ac_file_inputs=
13354 for ac_f
13355 do
13356 case $ac_f in
13357 -) ac_f="$ac_tmp/stdin";;
13358 *) # Look for the file first in the build tree, then in the source tree
13359 # (if the path is not absolute). The absolute path cannot be DOS-style,
13360 # because $ac_f cannot contain `:'.
13361 test -f "$ac_f" ||
13362 case $ac_f in
13363 [\\/$]*) false;;
13364 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13365 esac ||
13366 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13367 esac
13368 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13369 as_fn_append ac_file_inputs " '$ac_f'"
13370 done
13371
13372 # Let's still pretend it is `configure' which instantiates (i.e., don't
13373 # use $as_me), people would be surprised to read:
13374 # /* config.h. Generated by config.status. */
13375 configure_input='Generated from '`
13376 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13377 `' by configure.'
13378 if test x"$ac_file" != x-; then
13379 configure_input="$ac_file. $configure_input"
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13381 $as_echo "$as_me: creating $ac_file" >&6;}
13382 fi
13383 # Neutralize special characters interpreted by sed in replacement strings.
13384 case $configure_input in #(
13385 *\&* | *\|* | *\\* )
13386 ac_sed_conf_input=`$as_echo "$configure_input" |
13387 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13388 *) ac_sed_conf_input=$configure_input;;
13389 esac
13390
13391 case $ac_tag in
13392 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13393 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13394 esac
13395 ;;
13396 esac
13397
13398 ac_dir=`$as_dirname -- "$ac_file" ||
13399 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13400 X"$ac_file" : 'X\(//\)[^/]' \| \
13401 X"$ac_file" : 'X\(//\)$' \| \
13402 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13403 $as_echo X"$ac_file" |
13404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13405 s//\1/
13406 q
13407 }
13408 /^X\(\/\/\)[^/].*/{
13409 s//\1/
13410 q
13411 }
13412 /^X\(\/\/\)$/{
13413 s//\1/
13414 q
13415 }
13416 /^X\(\/\).*/{
13417 s//\1/
13418 q
13419 }
13420 s/.*/./; q'`
13421 as_dir="$ac_dir"; as_fn_mkdir_p
13422 ac_builddir=.
13423
13424 case "$ac_dir" in
13425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13426 *)
13427 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13428 # A ".." for each directory in $ac_dir_suffix.
13429 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13430 case $ac_top_builddir_sub in
13431 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13432 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13433 esac ;;
13434 esac
13435 ac_abs_top_builddir=$ac_pwd
13436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13437 # for backward compatibility:
13438 ac_top_builddir=$ac_top_build_prefix
13439
13440 case $srcdir in
13441 .) # We are building in place.
13442 ac_srcdir=.
13443 ac_top_srcdir=$ac_top_builddir_sub
13444 ac_abs_top_srcdir=$ac_pwd ;;
13445 [\\/]* | ?:[\\/]* ) # Absolute name.
13446 ac_srcdir=$srcdir$ac_dir_suffix;
13447 ac_top_srcdir=$srcdir
13448 ac_abs_top_srcdir=$srcdir ;;
13449 *) # Relative name.
13450 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13451 ac_top_srcdir=$ac_top_build_prefix$srcdir
13452 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13453 esac
13454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13455
13456
13457 case $ac_mode in
13458 :F)
13459 #
13460 # CONFIG_FILE
13461 #
13462
13463 case $INSTALL in
13464 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13465 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13466 esac
13467 ac_MKDIR_P=$MKDIR_P
13468 case $MKDIR_P in
13469 [\\/$]* | ?:[\\/]* ) ;;
13470 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13471 esac
13472 _ACEOF
13473
13474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13475 # If the template does not know about datarootdir, expand it.
13476 # FIXME: This hack should be removed a few years after 2.60.
13477 ac_datarootdir_hack=; ac_datarootdir_seen=
13478 ac_sed_dataroot='
13479 /datarootdir/ {
13480 p
13481 q
13482 }
13483 /@datadir@/p
13484 /@docdir@/p
13485 /@infodir@/p
13486 /@localedir@/p
13487 /@mandir@/p'
13488 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13489 *datarootdir*) ac_datarootdir_seen=yes;;
13490 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13492 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13493 _ACEOF
13494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13495 ac_datarootdir_hack='
13496 s&@datadir@&$datadir&g
13497 s&@docdir@&$docdir&g
13498 s&@infodir@&$infodir&g
13499 s&@localedir@&$localedir&g
13500 s&@mandir@&$mandir&g
13501 s&\\\${datarootdir}&$datarootdir&g' ;;
13502 esac
13503 _ACEOF
13504
13505 # Neutralize VPATH when `$srcdir' = `.'.
13506 # Shell code in configure.ac might set extrasub.
13507 # FIXME: do we really want to maintain this feature?
13508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13509 ac_sed_extra="$ac_vpsub
13510 $extrasub
13511 _ACEOF
13512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13513 :t
13514 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13515 s|@configure_input@|$ac_sed_conf_input|;t t
13516 s&@top_builddir@&$ac_top_builddir_sub&;t t
13517 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13518 s&@srcdir@&$ac_srcdir&;t t
13519 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13520 s&@top_srcdir@&$ac_top_srcdir&;t t
13521 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13522 s&@builddir@&$ac_builddir&;t t
13523 s&@abs_builddir@&$ac_abs_builddir&;t t
13524 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13525 s&@INSTALL@&$ac_INSTALL&;t t
13526 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13527 $ac_datarootdir_hack
13528 "
13529 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13530 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13531
13532 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13533 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13534 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13535 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13537 which seems to be undefined. Please make sure it is defined" >&5
13538 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13539 which seems to be undefined. Please make sure it is defined" >&2;}
13540
13541 rm -f "$ac_tmp/stdin"
13542 case $ac_file in
13543 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13544 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13545 esac \
13546 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13547 ;;
13548 :H)
13549 #
13550 # CONFIG_HEADER
13551 #
13552 if test x"$ac_file" != x-; then
13553 {
13554 $as_echo "/* $configure_input */" \
13555 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13556 } >"$ac_tmp/config.h" \
13557 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13558 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13560 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13561 else
13562 rm -f "$ac_file"
13563 mv "$ac_tmp/config.h" "$ac_file" \
13564 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13565 fi
13566 else
13567 $as_echo "/* $configure_input */" \
13568 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13569 || as_fn_error $? "could not create -" "$LINENO" 5
13570 fi
13571 # Compute "$ac_file"'s index in $config_headers.
13572 _am_arg="$ac_file"
13573 _am_stamp_count=1
13574 for _am_header in $config_headers :; do
13575 case $_am_header in
13576 $_am_arg | $_am_arg:* )
13577 break ;;
13578 * )
13579 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13580 esac
13581 done
13582 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13583 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13584 X"$_am_arg" : 'X\(//\)[^/]' \| \
13585 X"$_am_arg" : 'X\(//\)$' \| \
13586 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13587 $as_echo X"$_am_arg" |
13588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13589 s//\1/
13590 q
13591 }
13592 /^X\(\/\/\)[^/].*/{
13593 s//\1/
13594 q
13595 }
13596 /^X\(\/\/\)$/{
13597 s//\1/
13598 q
13599 }
13600 /^X\(\/\).*/{
13601 s//\1/
13602 q
13603 }
13604 s/.*/./; q'`/stamp-h$_am_stamp_count
13605 ;;
13606
13607 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13608 $as_echo "$as_me: executing $ac_file commands" >&6;}
13609 ;;
13610 esac
13611
13612
13613 case $ac_file$ac_mode in
13614 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13615 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13616 # are listed without --file. Let's play safe and only enable the eval
13617 # if we detect the quoting.
13618 case $CONFIG_FILES in
13619 *\'*) eval set x "$CONFIG_FILES" ;;
13620 *) set x $CONFIG_FILES ;;
13621 esac
13622 shift
13623 for mf
13624 do
13625 # Strip MF so we end up with the name of the file.
13626 mf=`echo "$mf" | sed -e 's/:.*$//'`
13627 # Check whether this is an Automake generated Makefile or not.
13628 # We used to match only the files named `Makefile.in', but
13629 # some people rename them; so instead we look at the file content.
13630 # Grep'ing the first line is not enough: some people post-process
13631 # each Makefile.in and add a new line on top of each file to say so.
13632 # Grep'ing the whole file is not good either: AIX grep has a line
13633 # limit of 2048, but all sed's we know have understand at least 4000.
13634 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13635 dirpart=`$as_dirname -- "$mf" ||
13636 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13637 X"$mf" : 'X\(//\)[^/]' \| \
13638 X"$mf" : 'X\(//\)$' \| \
13639 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13640 $as_echo X"$mf" |
13641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13642 s//\1/
13643 q
13644 }
13645 /^X\(\/\/\)[^/].*/{
13646 s//\1/
13647 q
13648 }
13649 /^X\(\/\/\)$/{
13650 s//\1/
13651 q
13652 }
13653 /^X\(\/\).*/{
13654 s//\1/
13655 q
13656 }
13657 s/.*/./; q'`
13658 else
13659 continue
13660 fi
13661 # Extract the definition of DEPDIR, am__include, and am__quote
13662 # from the Makefile without running `make'.
13663 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13664 test -z "$DEPDIR" && continue
13665 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13666 test -z "am__include" && continue
13667 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13668 # When using ansi2knr, U may be empty or an underscore; expand it
13669 U=`sed -n 's/^U = //p' < "$mf"`
13670 # Find all dependency output files, they are included files with
13671 # $(DEPDIR) in their names. We invoke sed twice because it is the
13672 # simplest approach to changing $(DEPDIR) to its actual value in the
13673 # expansion.
13674 for file in `sed -n "
13675 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13676 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13677 # Make sure the directory exists.
13678 test -f "$dirpart/$file" && continue
13679 fdir=`$as_dirname -- "$file" ||
13680 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13681 X"$file" : 'X\(//\)[^/]' \| \
13682 X"$file" : 'X\(//\)$' \| \
13683 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13684 $as_echo X"$file" |
13685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13686 s//\1/
13687 q
13688 }
13689 /^X\(\/\/\)[^/].*/{
13690 s//\1/
13691 q
13692 }
13693 /^X\(\/\/\)$/{
13694 s//\1/
13695 q
13696 }
13697 /^X\(\/\).*/{
13698 s//\1/
13699 q
13700 }
13701 s/.*/./; q'`
13702 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13703 # echo "creating $dirpart/$file"
13704 echo '# dummy' > "$dirpart/$file"
13705 done
13706 done
13707 }
13708 ;;
13709 "libtool":C)
13710
13711 # See if we are running on zsh, and set the options which allow our
13712 # commands through without removal of \ escapes.
13713 if test -n "${ZSH_VERSION+set}" ; then
13714 setopt NO_GLOB_SUBST
13715 fi
13716
13717 cfgfile="${ofile}T"
13718 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13719 $RM "$cfgfile"
13720
13721 cat <<_LT_EOF >> "$cfgfile"
13722 #! $SHELL
13723
13724 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13725 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13726 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13727 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13728 #
13729 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13730 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13731 # Inc.
13732 # Written by Gordon Matzigkeit, 1996
13733 #
13734 # This file is part of GNU Libtool.
13735 #
13736 # GNU Libtool is free software; you can redistribute it and/or
13737 # modify it under the terms of the GNU General Public License as
13738 # published by the Free Software Foundation; either version 2 of
13739 # the License, or (at your option) any later version.
13740 #
13741 # As a special exception to the GNU General Public License,
13742 # if you distribute this file as part of a program or library that
13743 # is built using GNU Libtool, you may include this file under the
13744 # same distribution terms that you use for the rest of that program.
13745 #
13746 # GNU Libtool is distributed in the hope that it will be useful,
13747 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13748 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13749 # GNU General Public License for more details.
13750 #
13751 # You should have received a copy of the GNU General Public License
13752 # along with GNU Libtool; see the file COPYING. If not, a copy
13753 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13754 # obtained by writing to the Free Software Foundation, Inc.,
13755 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13756
13757
13758 # The names of the tagged configurations supported by this script.
13759 available_tags=""
13760
13761 # ### BEGIN LIBTOOL CONFIG
13762
13763 # Whether or not to build static libraries.
13764 build_old_libs=$enable_static
13765
13766 # Which release of libtool.m4 was used?
13767 macro_version=$macro_version
13768 macro_revision=$macro_revision
13769
13770 # Whether or not to build shared libraries.
13771 build_libtool_libs=$enable_shared
13772
13773 # What type of objects to build.
13774 pic_mode=$pic_mode
13775
13776 # Whether or not to optimize for fast installation.
13777 fast_install=$enable_fast_install
13778
13779 # Shell to use when invoking shell scripts.
13780 SHELL=$lt_SHELL
13781
13782 # An echo program that protects backslashes.
13783 ECHO=$lt_ECHO
13784
13785 # The host system.
13786 host_alias=$host_alias
13787 host=$host
13788 host_os=$host_os
13789
13790 # The build system.
13791 build_alias=$build_alias
13792 build=$build
13793 build_os=$build_os
13794
13795 # A sed program that does not truncate output.
13796 SED=$lt_SED
13797
13798 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13799 Xsed="\$SED -e 1s/^X//"
13800
13801 # A grep program that handles long lines.
13802 GREP=$lt_GREP
13803
13804 # An ERE matcher.
13805 EGREP=$lt_EGREP
13806
13807 # A literal string matcher.
13808 FGREP=$lt_FGREP
13809
13810 # A BSD- or MS-compatible name lister.
13811 NM=$lt_NM
13812
13813 # Whether we need soft or hard links.
13814 LN_S=$lt_LN_S
13815
13816 # What is the maximum length of a command?
13817 max_cmd_len=$max_cmd_len
13818
13819 # Object file suffix (normally "o").
13820 objext=$ac_objext
13821
13822 # Executable file suffix (normally "").
13823 exeext=$exeext
13824
13825 # whether the shell understands "unset".
13826 lt_unset=$lt_unset
13827
13828 # turn spaces into newlines.
13829 SP2NL=$lt_lt_SP2NL
13830
13831 # turn newlines into spaces.
13832 NL2SP=$lt_lt_NL2SP
13833
13834 # convert \$build file names to \$host format.
13835 to_host_file_cmd=$lt_cv_to_host_file_cmd
13836
13837 # convert \$build files to toolchain format.
13838 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13839
13840 # An object symbol dumper.
13841 OBJDUMP=$lt_OBJDUMP
13842
13843 # Method to check whether dependent libraries are shared objects.
13844 deplibs_check_method=$lt_deplibs_check_method
13845
13846 # Command to use when deplibs_check_method = "file_magic".
13847 file_magic_cmd=$lt_file_magic_cmd
13848
13849 # How to find potential files when deplibs_check_method = "file_magic".
13850 file_magic_glob=$lt_file_magic_glob
13851
13852 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13853 want_nocaseglob=$lt_want_nocaseglob
13854
13855 # DLL creation program.
13856 DLLTOOL=$lt_DLLTOOL
13857
13858 # Command to associate shared and link libraries.
13859 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13860
13861 # The archiver.
13862 AR=$lt_AR
13863
13864 # Flags to create an archive.
13865 AR_FLAGS=$lt_AR_FLAGS
13866
13867 # How to feed a file listing to the archiver.
13868 archiver_list_spec=$lt_archiver_list_spec
13869
13870 # A symbol stripping program.
13871 STRIP=$lt_STRIP
13872
13873 # Commands used to install an old-style archive.
13874 RANLIB=$lt_RANLIB
13875 old_postinstall_cmds=$lt_old_postinstall_cmds
13876 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13877
13878 # Whether to use a lock for old archive extraction.
13879 lock_old_archive_extraction=$lock_old_archive_extraction
13880
13881 # A C compiler.
13882 LTCC=$lt_CC
13883
13884 # LTCC compiler flags.
13885 LTCFLAGS=$lt_CFLAGS
13886
13887 # Take the output of nm and produce a listing of raw symbols and C names.
13888 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13889
13890 # Transform the output of nm in a proper C declaration.
13891 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13892
13893 # Transform the output of nm in a C name address pair.
13894 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13895
13896 # Transform the output of nm in a C name address pair when lib prefix is needed.
13897 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13898
13899 # Specify filename containing input files for \$NM.
13900 nm_file_list_spec=$lt_nm_file_list_spec
13901
13902 # The root where to search for dependent libraries,and in which our libraries should be installed.
13903 lt_sysroot=$lt_sysroot
13904
13905 # The name of the directory that contains temporary libtool files.
13906 objdir=$objdir
13907
13908 # Used to examine libraries when file_magic_cmd begins with "file".
13909 MAGIC_CMD=$MAGIC_CMD
13910
13911 # Must we lock files when doing compilation?
13912 need_locks=$lt_need_locks
13913
13914 # Manifest tool.
13915 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13916
13917 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13918 DSYMUTIL=$lt_DSYMUTIL
13919
13920 # Tool to change global to local symbols on Mac OS X.
13921 NMEDIT=$lt_NMEDIT
13922
13923 # Tool to manipulate fat objects and archives on Mac OS X.
13924 LIPO=$lt_LIPO
13925
13926 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13927 OTOOL=$lt_OTOOL
13928
13929 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13930 OTOOL64=$lt_OTOOL64
13931
13932 # Old archive suffix (normally "a").
13933 libext=$libext
13934
13935 # Shared library suffix (normally ".so").
13936 shrext_cmds=$lt_shrext_cmds
13937
13938 # The commands to extract the exported symbol list from a shared archive.
13939 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13940
13941 # Variables whose values should be saved in libtool wrapper scripts and
13942 # restored at link time.
13943 variables_saved_for_relink=$lt_variables_saved_for_relink
13944
13945 # Do we need the "lib" prefix for modules?
13946 need_lib_prefix=$need_lib_prefix
13947
13948 # Do we need a version for libraries?
13949 need_version=$need_version
13950
13951 # Library versioning type.
13952 version_type=$version_type
13953
13954 # Shared library runtime path variable.
13955 runpath_var=$runpath_var
13956
13957 # Shared library path variable.
13958 shlibpath_var=$shlibpath_var
13959
13960 # Is shlibpath searched before the hard-coded library search path?
13961 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13962
13963 # Format of library name prefix.
13964 libname_spec=$lt_libname_spec
13965
13966 # List of archive names. First name is the real one, the rest are links.
13967 # The last name is the one that the linker finds with -lNAME
13968 library_names_spec=$lt_library_names_spec
13969
13970 # The coded name of the library, if different from the real name.
13971 soname_spec=$lt_soname_spec
13972
13973 # Permission mode override for installation of shared libraries.
13974 install_override_mode=$lt_install_override_mode
13975
13976 # Command to use after installation of a shared archive.
13977 postinstall_cmds=$lt_postinstall_cmds
13978
13979 # Command to use after uninstallation of a shared archive.
13980 postuninstall_cmds=$lt_postuninstall_cmds
13981
13982 # Commands used to finish a libtool library installation in a directory.
13983 finish_cmds=$lt_finish_cmds
13984
13985 # As "finish_cmds", except a single script fragment to be evaled but
13986 # not shown.
13987 finish_eval=$lt_finish_eval
13988
13989 # Whether we should hardcode library paths into libraries.
13990 hardcode_into_libs=$hardcode_into_libs
13991
13992 # Compile-time system search path for libraries.
13993 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13994
13995 # Run-time system search path for libraries.
13996 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13997
13998 # Whether dlopen is supported.
13999 dlopen_support=$enable_dlopen
14000
14001 # Whether dlopen of programs is supported.
14002 dlopen_self=$enable_dlopen_self
14003
14004 # Whether dlopen of statically linked programs is supported.
14005 dlopen_self_static=$enable_dlopen_self_static
14006
14007 # Commands to strip libraries.
14008 old_striplib=$lt_old_striplib
14009 striplib=$lt_striplib
14010
14011
14012 # The linker used to build libraries.
14013 LD=$lt_LD
14014
14015 # How to create reloadable object files.
14016 reload_flag=$lt_reload_flag
14017 reload_cmds=$lt_reload_cmds
14018
14019 # Commands used to build an old-style archive.
14020 old_archive_cmds=$lt_old_archive_cmds
14021
14022 # A language specific compiler.
14023 CC=$lt_compiler
14024
14025 # Is the compiler the GNU compiler?
14026 with_gcc=$GCC
14027
14028 # Compiler flag to turn off builtin functions.
14029 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14030
14031 # Additional compiler flags for building library objects.
14032 pic_flag=$lt_lt_prog_compiler_pic
14033
14034 # How to pass a linker flag through the compiler.
14035 wl=$lt_lt_prog_compiler_wl
14036
14037 # Compiler flag to prevent dynamic linking.
14038 link_static_flag=$lt_lt_prog_compiler_static
14039
14040 # Does compiler simultaneously support -c and -o options?
14041 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14042
14043 # Whether or not to add -lc for building shared libraries.
14044 build_libtool_need_lc=$archive_cmds_need_lc
14045
14046 # Whether or not to disallow shared libs when runtime libs are static.
14047 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14048
14049 # Compiler flag to allow reflexive dlopens.
14050 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14051
14052 # Compiler flag to generate shared objects directly from archives.
14053 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14054
14055 # Whether the compiler copes with passing no objects directly.
14056 compiler_needs_object=$lt_compiler_needs_object
14057
14058 # Create an old-style archive from a shared archive.
14059 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14060
14061 # Create a temporary old-style archive to link instead of a shared archive.
14062 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14063
14064 # Commands used to build a shared archive.
14065 archive_cmds=$lt_archive_cmds
14066 archive_expsym_cmds=$lt_archive_expsym_cmds
14067
14068 # Commands used to build a loadable module if different from building
14069 # a shared archive.
14070 module_cmds=$lt_module_cmds
14071 module_expsym_cmds=$lt_module_expsym_cmds
14072
14073 # Whether we are building with GNU ld or not.
14074 with_gnu_ld=$lt_with_gnu_ld
14075
14076 # Flag that allows shared libraries with undefined symbols to be built.
14077 allow_undefined_flag=$lt_allow_undefined_flag
14078
14079 # Flag that enforces no undefined symbols.
14080 no_undefined_flag=$lt_no_undefined_flag
14081
14082 # Flag to hardcode \$libdir into a binary during linking.
14083 # This must work even if \$libdir does not exist
14084 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14085
14086 # If ld is used when linking, flag to hardcode \$libdir into a binary
14087 # during linking. This must work even if \$libdir does not exist.
14088 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14089
14090 # Whether we need a single "-rpath" flag with a separated argument.
14091 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14092
14093 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14094 # DIR into the resulting binary.
14095 hardcode_direct=$hardcode_direct
14096
14097 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14098 # DIR into the resulting binary and the resulting library dependency is
14099 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14100 # library is relocated.
14101 hardcode_direct_absolute=$hardcode_direct_absolute
14102
14103 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14104 # into the resulting binary.
14105 hardcode_minus_L=$hardcode_minus_L
14106
14107 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14108 # into the resulting binary.
14109 hardcode_shlibpath_var=$hardcode_shlibpath_var
14110
14111 # Set to "yes" if building a shared library automatically hardcodes DIR
14112 # into the library and all subsequent libraries and executables linked
14113 # against it.
14114 hardcode_automatic=$hardcode_automatic
14115
14116 # Set to yes if linker adds runtime paths of dependent libraries
14117 # to runtime path list.
14118 inherit_rpath=$inherit_rpath
14119
14120 # Whether libtool must link a program against all its dependency libraries.
14121 link_all_deplibs=$link_all_deplibs
14122
14123 # Set to "yes" if exported symbols are required.
14124 always_export_symbols=$always_export_symbols
14125
14126 # The commands to list exported symbols.
14127 export_symbols_cmds=$lt_export_symbols_cmds
14128
14129 # Symbols that should not be listed in the preloaded symbols.
14130 exclude_expsyms=$lt_exclude_expsyms
14131
14132 # Symbols that must always be exported.
14133 include_expsyms=$lt_include_expsyms
14134
14135 # Commands necessary for linking programs (against libraries) with templates.
14136 prelink_cmds=$lt_prelink_cmds
14137
14138 # Commands necessary for finishing linking programs.
14139 postlink_cmds=$lt_postlink_cmds
14140
14141 # Specify filename containing input files.
14142 file_list_spec=$lt_file_list_spec
14143
14144 # How to hardcode a shared library path into an executable.
14145 hardcode_action=$hardcode_action
14146
14147 # ### END LIBTOOL CONFIG
14148
14149 _LT_EOF
14150
14151 case $host_os in
14152 aix3*)
14153 cat <<\_LT_EOF >> "$cfgfile"
14154 # AIX sometimes has problems with the GCC collect2 program. For some
14155 # reason, if we set the COLLECT_NAMES environment variable, the problems
14156 # vanish in a puff of smoke.
14157 if test "X${COLLECT_NAMES+set}" != Xset; then
14158 COLLECT_NAMES=
14159 export COLLECT_NAMES
14160 fi
14161 _LT_EOF
14162 ;;
14163 esac
14164
14165
14166 ltmain="$ac_aux_dir/ltmain.sh"
14167
14168
14169 # We use sed instead of cat because bash on DJGPP gets confused if
14170 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14171 # text mode, it properly converts lines to CR/LF. This bash problem
14172 # is reportedly fixed, but why not run on old versions too?
14173 sed '$q' "$ltmain" >> "$cfgfile" \
14174 || (rm -f "$cfgfile"; exit 1)
14175
14176 if test x"$xsi_shell" = xyes; then
14177 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14178 func_dirname ()\
14179 {\
14180 \ case ${1} in\
14181 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14182 \ * ) func_dirname_result="${3}" ;;\
14183 \ esac\
14184 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14185 && mv -f "$cfgfile.tmp" "$cfgfile" \
14186 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14187 test 0 -eq $? || _lt_function_replace_fail=:
14188
14189
14190 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14191 func_basename ()\
14192 {\
14193 \ func_basename_result="${1##*/}"\
14194 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14195 && mv -f "$cfgfile.tmp" "$cfgfile" \
14196 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14197 test 0 -eq $? || _lt_function_replace_fail=:
14198
14199
14200 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14201 func_dirname_and_basename ()\
14202 {\
14203 \ case ${1} in\
14204 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14205 \ * ) func_dirname_result="${3}" ;;\
14206 \ esac\
14207 \ func_basename_result="${1##*/}"\
14208 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14209 && mv -f "$cfgfile.tmp" "$cfgfile" \
14210 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14211 test 0 -eq $? || _lt_function_replace_fail=:
14212
14213
14214 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14215 func_stripname ()\
14216 {\
14217 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14218 \ # positional parameters, so assign one to ordinary parameter first.\
14219 \ func_stripname_result=${3}\
14220 \ func_stripname_result=${func_stripname_result#"${1}"}\
14221 \ func_stripname_result=${func_stripname_result%"${2}"}\
14222 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14223 && mv -f "$cfgfile.tmp" "$cfgfile" \
14224 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14225 test 0 -eq $? || _lt_function_replace_fail=:
14226
14227
14228 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14229 func_split_long_opt ()\
14230 {\
14231 \ func_split_long_opt_name=${1%%=*}\
14232 \ func_split_long_opt_arg=${1#*=}\
14233 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14234 && mv -f "$cfgfile.tmp" "$cfgfile" \
14235 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14236 test 0 -eq $? || _lt_function_replace_fail=:
14237
14238
14239 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14240 func_split_short_opt ()\
14241 {\
14242 \ func_split_short_opt_arg=${1#??}\
14243 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14244 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14245 && mv -f "$cfgfile.tmp" "$cfgfile" \
14246 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14247 test 0 -eq $? || _lt_function_replace_fail=:
14248
14249
14250 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14251 func_lo2o ()\
14252 {\
14253 \ case ${1} in\
14254 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14255 \ *) func_lo2o_result=${1} ;;\
14256 \ esac\
14257 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14258 && mv -f "$cfgfile.tmp" "$cfgfile" \
14259 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14260 test 0 -eq $? || _lt_function_replace_fail=:
14261
14262
14263 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14264 func_xform ()\
14265 {\
14266 func_xform_result=${1%.*}.lo\
14267 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14268 && mv -f "$cfgfile.tmp" "$cfgfile" \
14269 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14270 test 0 -eq $? || _lt_function_replace_fail=:
14271
14272
14273 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14274 func_arith ()\
14275 {\
14276 func_arith_result=$(( $* ))\
14277 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14278 && mv -f "$cfgfile.tmp" "$cfgfile" \
14279 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14280 test 0 -eq $? || _lt_function_replace_fail=:
14281
14282
14283 sed -e '/^func_len ()$/,/^} # func_len /c\
14284 func_len ()\
14285 {\
14286 func_len_result=${#1}\
14287 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14288 && mv -f "$cfgfile.tmp" "$cfgfile" \
14289 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14290 test 0 -eq $? || _lt_function_replace_fail=:
14291
14292 fi
14293
14294 if test x"$lt_shell_append" = xyes; then
14295 sed -e '/^func_append ()$/,/^} # func_append /c\
14296 func_append ()\
14297 {\
14298 eval "${1}+=\\${2}"\
14299 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14300 && mv -f "$cfgfile.tmp" "$cfgfile" \
14301 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14302 test 0 -eq $? || _lt_function_replace_fail=:
14303
14304
14305 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14306 func_append_quoted ()\
14307 {\
14308 \ func_quote_for_eval "${2}"\
14309 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14310 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14311 && mv -f "$cfgfile.tmp" "$cfgfile" \
14312 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14313 test 0 -eq $? || _lt_function_replace_fail=:
14314
14315
14316 # Save a `func_append' function call where possible by direct use of '+='
14317 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14318 && mv -f "$cfgfile.tmp" "$cfgfile" \
14319 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14320 test 0 -eq $? || _lt_function_replace_fail=:
14321 else
14322 # Save a `func_append' function call even when '+=' is not available
14323 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14324 && mv -f "$cfgfile.tmp" "$cfgfile" \
14325 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14326 test 0 -eq $? || _lt_function_replace_fail=:
14327 fi
14328
14329 if test x"$_lt_function_replace_fail" = x":"; then
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14331 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14332 fi
14333
14334
14335 mv -f "$cfgfile" "$ofile" ||
14336 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14337 chmod +x "$ofile"
14338
14339 ;;
14340
14341 esac
14342 done # for ac_tag
14343
14344
14345 as_fn_exit 0
14346 _ACEOF
14347 ac_clean_files=$ac_clean_files_save
14348
14349 test $ac_write_fail = 0 ||
14350 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14351
14352
14353 # configure is writing to config.log, and then calls config.status.
14354 # config.status does its own redirection, appending to config.log.
14355 # Unfortunately, on DOS this fails, as config.log is still kept open
14356 # by configure, so config.status won't be able to write to it; its
14357 # output is simply discarded. So we exec the FD to /dev/null,
14358 # effectively closing config.log, so it can be properly (re)opened and
14359 # appended to by config.status. When coming back to configure, we
14360 # need to make the FD available again.
14361 if test "$no_create" != yes; then
14362 ac_cs_success=:
14363 ac_config_status_args=
14364 test "$silent" = yes &&
14365 ac_config_status_args="$ac_config_status_args --quiet"
14366 exec 5>/dev/null
14367 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14368 exec 5>>config.log
14369 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14370 # would make configure fail if this is the last instruction.
14371 $ac_cs_success || as_fn_exit 1
14372 fi
14373 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14375 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14376 fi
14377
14378