configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xf86-input-keyboard 1.5.0.
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-keyboard'
573 PACKAGE_TARNAME='xf86-input-keyboard'
574 PACKAGE_VERSION='1.5.0'
575 PACKAGE_STRING='xf86-input-keyboard 1.5.0'
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 HURD_FALSE
622 HURD_TRUE
623 SOLARIS_FALSE
624 SOLARIS_TRUE
625 BSD_FALSE
626 BSD_TRUE
627 LINUX_FALSE
628 LINUX_TRUE
629 inputdir
630 XORG_LIBS
631 XORG_CFLAGS
632 AM_BACKSLASH
633 AM_DEFAULT_VERBOSITY
634 MAN_SUBSTS
635 XORG_MAN_PAGE
636 ADMIN_MAN_DIR
637 DRIVER_MAN_DIR
638 MISC_MAN_DIR
639 FILE_MAN_DIR
640 LIB_MAN_DIR
641 APP_MAN_DIR
642 ADMIN_MAN_SUFFIX
643 DRIVER_MAN_SUFFIX
644 MISC_MAN_SUFFIX
645 FILE_MAN_SUFFIX
646 LIB_MAN_SUFFIX
647 APP_MAN_SUFFIX
648 INSTALL_CMD
649 PKG_CONFIG
650 CHANGELOG_CMD
651 CWARNFLAGS
652 CPP
653 OTOOL64
654 OTOOL
655 LIPO
656 NMEDIT
657 DSYMUTIL
658 RANLIB
659 AR
660 OBJDUMP
661 LN_S
662 NM
663 ac_ct_DUMPBIN
664 DUMPBIN
665 LD
666 FGREP
667 EGREP
668 GREP
669 SED
670 am__fastdepCC_FALSE
671 am__fastdepCC_TRUE
672 CCDEPMODE
673 AMDEPBACKSLASH
674 AMDEP_FALSE
675 AMDEP_TRUE
676 am__quote
677 am__include
678 DEPDIR
679 OBJEXT
680 EXEEXT
681 ac_ct_CC
682 CPPFLAGS
683 LDFLAGS
684 CFLAGS
685 CC
686 host_os
687 host_vendor
688 host_cpu
689 host
690 build_os
691 build_vendor
692 build_cpu
693 build
694 LIBTOOL
695 MAINT
696 MAINTAINER_MODE_FALSE
697 MAINTAINER_MODE_TRUE
698 am__untar
699 am__tar
700 AMTAR
701 am__leading_dot
702 SET_MAKE
703 AWK
704 mkdir_p
705 MKDIR_P
706 INSTALL_STRIP_PROGRAM
707 STRIP
708 install_sh
709 MAKEINFO
710 AUTOHEADER
711 AUTOMAKE
712 AUTOCONF
713 ACLOCAL
714 VERSION
715 PACKAGE
716 CYGPATH_W
717 am__isrc
718 INSTALL_DATA
719 INSTALL_SCRIPT
720 INSTALL_PROGRAM
721 target_alias
722 host_alias
723 build_alias
724 LIBS
725 ECHO_T
726 ECHO_N
727 ECHO_C
728 DEFS
729 mandir
730 localedir
731 libdir
732 psdir
733 pdfdir
734 dvidir
735 htmldir
736 infodir
737 docdir
738 oldincludedir
739 includedir
740 localstatedir
741 sharedstatedir
742 sysconfdir
743 datadir
744 datarootdir
745 libexecdir
746 sbindir
747 bindir
748 program_transform_name
749 prefix
750 exec_prefix
751 PACKAGE_URL
752 PACKAGE_BUGREPORT
753 PACKAGE_STRING
754 PACKAGE_VERSION
755 PACKAGE_TARNAME
756 PACKAGE_NAME
757 PATH_SEPARATOR
758 SHELL'
759 ac_subst_files=''
760 ac_user_opts='
761 enable_option_checking
762 enable_maintainer_mode
763 enable_static
764 enable_shared
765 with_pic
766 enable_fast_install
767 enable_dependency_tracking
768 with_gnu_ld
769 enable_libtool_lock
770 enable_strict_compilation
771 enable_silent_rules
772 with_xorg_module_dir
773 '
774 ac_precious_vars='build_alias
775 host_alias
776 target_alias
777 CC
778 CFLAGS
779 LDFLAGS
780 LIBS
781 CPPFLAGS
782 CPP
783 PKG_CONFIG
784 XORG_CFLAGS
785 XORG_LIBS'
786
787
788 # Initialize some variables set by options.
789 ac_init_help=
790 ac_init_version=false
791 ac_unrecognized_opts=
792 ac_unrecognized_sep=
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
795 cache_file=/dev/null
796 exec_prefix=NONE
797 no_create=
798 no_recursion=
799 prefix=NONE
800 program_prefix=NONE
801 program_suffix=NONE
802 program_transform_name=s,x,x,
803 silent=
804 site=
805 srcdir=
806 verbose=
807 x_includes=NONE
808 x_libraries=NONE
809
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 includedir='${prefix}/include'
825 oldincludedir='/usr/include'
826 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827 infodir='${datarootdir}/info'
828 htmldir='${docdir}'
829 dvidir='${docdir}'
830 pdfdir='${docdir}'
831 psdir='${docdir}'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
835
836 ac_prev=
837 ac_dashdash=
838 for ac_option
839 do
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
842 eval $ac_prev=\$ac_option
843 ac_prev=
844 continue
845 fi
846
847 case $ac_option in
848 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849 *=) ac_optarg= ;;
850 *) ac_optarg=yes ;;
851 esac
852
853 # Accept the important Cygnus configure options, so we can diagnose typos.
854
855 case $ac_dashdash$ac_option in
856 --)
857 ac_dashdash=yes ;;
858
859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
860 ac_prev=bindir ;;
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862 bindir=$ac_optarg ;;
863
864 -build | --build | --buil | --bui | --bu)
865 ac_prev=build_alias ;;
866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867 build_alias=$ac_optarg ;;
868
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874 cache_file=$ac_optarg ;;
875
876 --config-cache | -C)
877 cache_file=config.cache ;;
878
879 -datadir | --datadir | --datadi | --datad)
880 ac_prev=datadir ;;
881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
882 datadir=$ac_optarg ;;
883
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
890
891 -disable-* | --disable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error $? "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900 "enable_$ac_useropt"
901 "*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=no ;;
906
907 -docdir | --docdir | --docdi | --doc | --do)
908 ac_prev=docdir ;;
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910 docdir=$ac_optarg ;;
911
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913 ac_prev=dvidir ;;
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915 dvidir=$ac_optarg ;;
916
917 -enable-* | --enable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error $? "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
925 *"
926 "enable_$ac_useropt"
927 "*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=\$ac_optarg ;;
932
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
940 exec_prefix=$ac_optarg ;;
941
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
944 with_gas=yes ;;
945
946 -help | --help | --hel | --he | -h)
947 ac_init_help=long ;;
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
952
953 -host | --host | --hos | --ho)
954 ac_prev=host_alias ;;
955 -host=* | --host=* | --hos=* | --ho=*)
956 host_alias=$ac_optarg ;;
957
958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959 ac_prev=htmldir ;;
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961 | --ht=*)
962 htmldir=$ac_optarg ;;
963
964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
969 includedir=$ac_optarg ;;
970
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
972 ac_prev=infodir ;;
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974 infodir=$ac_optarg ;;
975
976 -libdir | --libdir | --libdi | --libd)
977 ac_prev=libdir ;;
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979 libdir=$ac_optarg ;;
980
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
986 libexecdir=$ac_optarg ;;
987
988 -localedir | --localedir | --localedi | --localed | --locale)
989 ac_prev=localedir ;;
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
992
993 -localstatedir | --localstatedir | --localstatedi | --localstated \
994 | --localstate | --localstat | --localsta | --localst | --locals)
995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998 localstatedir=$ac_optarg ;;
999
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001 ac_prev=mandir ;;
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003 mandir=$ac_optarg ;;
1004
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1007 with_fp=no ;;
1008
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n)
1011 no_create=yes ;;
1012
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015 no_recursion=yes ;;
1016
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024 oldincludedir=$ac_optarg ;;
1025
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027 ac_prev=prefix ;;
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029 prefix=$ac_optarg ;;
1030
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036 program_prefix=$ac_optarg ;;
1037
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043 program_suffix=$ac_optarg ;;
1044
1045 -program-transform-name | --program-transform-name \
1046 | --program-transform-nam | --program-transform-na \
1047 | --program-transform-n | --program-transform- \
1048 | --program-transform | --program-transfor \
1049 | --program-transfo | --program-transf \
1050 | --program-trans | --program-tran \
1051 | --progr-tra | --program-tr | --program-t)
1052 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
1060 program_transform_name=$ac_optarg ;;
1061
1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063 ac_prev=pdfdir ;;
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1066
1067 -psdir | --psdir | --psdi | --psd | --ps)
1068 ac_prev=psdir ;;
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070 psdir=$ac_optarg ;;
1071
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1074 silent=yes ;;
1075
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 ac_prev=sbindir ;;
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 | --sbi=* | --sb=*)
1080 sbindir=$ac_optarg ;;
1081
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1085 | --sha | --sh)
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090 | --sha=* | --sh=*)
1091 sharedstatedir=$ac_optarg ;;
1092
1093 -site | --site | --sit)
1094 ac_prev=site ;;
1095 -site=* | --site=* | --sit=*)
1096 site=$ac_optarg ;;
1097
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099 ac_prev=srcdir ;;
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101 srcdir=$ac_optarg ;;
1102
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108 sysconfdir=$ac_optarg ;;
1109
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
1111 ac_prev=target_alias ;;
1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113 target_alias=$ac_optarg ;;
1114
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116 verbose=yes ;;
1117
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
1120
1121 -with-* | --with-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1129 *"
1130 "with_$ac_useropt"
1131 "*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval with_$ac_useropt=\$ac_optarg ;;
1136
1137 -without-* | --without-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error $? "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1145 *"
1146 "with_$ac_useropt"
1147 "*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval with_$ac_useropt=no ;;
1152
1153 --x)
1154 # Obsolete; use --with-x.
1155 with_x=yes ;;
1156
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1163
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1170
1171 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1172 Try \`$0 --help' for more information"
1173 ;;
1174
1175 *=*)
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 case $ac_envvar in #(
1179 '' | [0-9]* | *[!_$as_cr_alnum]* )
1180 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1181 esac
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1184
1185 *)
1186 # FIXME: should be removed in autoconf 3.0.
1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1191 ;;
1192
1193 esac
1194 done
1195
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 as_fn_error $? "missing argument to $ac_option"
1199 fi
1200
1201 if test -n "$ac_unrecognized_opts"; then
1202 case $enable_option_checking in
1203 no) ;;
1204 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206 esac
1207 fi
1208
1209 # Check all directory arguments for consistency.
1210 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir
1214 do
1215 eval ac_val=\$$ac_var
1216 # Remove trailing slashes.
1217 case $ac_val in
1218 */ )
1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220 eval $ac_var=\$ac_val;;
1221 esac
1222 # Be sure to have absolute directory names.
1223 case $ac_val in
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226 esac
1227 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1228 done
1229
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1233 build=$build_alias
1234 host=$host_alias
1235 target=$target_alias
1236
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1242 If a cross compiler is detected then cross compile mode will be used" >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1245 fi
1246 fi
1247
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251 test "$silent" = yes && exec 6>/dev/null
1252
1253
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 as_fn_error $? "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 as_fn_error $? "pwd does not report name of working directory"
1260
1261
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)[^/].*/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\).*/{
1285 s//\1/
1286 q
1287 }
1288 s/.*/./; q'`
1289 srcdir=$ac_confdir
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 srcdir=..
1292 fi
1293 else
1294 ac_srcdir_defaulted=no
1295 fi
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1299 fi
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1303 pwd)`
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 srcdir=.
1307 fi
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1311 case $srcdir in
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 esac
1314 for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 done
1320
1321 #
1322 # Report the --help message.
1323 #
1324 if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1327 cat <<_ACEOF
1328 \`configure' configures xf86-input-keyboard 1.5.0 to adapt to many kinds of systems.
1329
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1331
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE. See below for descriptions of some of the useful variables.
1334
1335 Defaults for the options are specified in brackets.
1336
1337 Configuration:
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print \`checking ...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347
1348 Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
1350 [$ac_default_prefix]
1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 [PREFIX]
1353
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1358
1359 For better control, use the options below.
1360
1361 Fine tuning of the installation directories:
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
1376 --docdir=DIR documentation root
1377 [DATAROOTDIR/doc/xf86-input-keyboard]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
1382 _ACEOF
1383
1384 cat <<\_ACEOF
1385
1386 Program names:
1387 --program-prefix=PREFIX prepend PREFIX to installed program names
1388 --program-suffix=SUFFIX append SUFFIX to installed program names
1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1390
1391 System types:
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 _ACEOF
1395 fi
1396
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of xf86-input-keyboard 1.5.0:";;
1400 esac
1401 cat <<\_ACEOF
1402
1403 Optional Features:
1404 --disable-option-checking ignore unrecognized --enable/--with options
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --enable-maintainer-mode enable make rules and dependencies not useful
1408 (and sometimes confusing) to the casual installer
1409 --enable-static[=PKGS] build static libraries [default=no]
1410 --enable-shared[=PKGS] build shared libraries [default=yes]
1411 --enable-fast-install[=PKGS]
1412 optimize for fast installation [default=yes]
1413 --disable-dependency-tracking speeds up one-time build
1414 --enable-dependency-tracking do not reject slow dependency extractors
1415 --disable-libtool-lock avoid locking (might break parallel builds)
1416 --enable-strict-compilation
1417 Enable all warnings from compiler and make them
1418 errors (default: disabled)
1419 --enable-silent-rules less verbose build output (undo: `make V=1')
1420 --disable-silent-rules verbose build output (undo: `make V=0')
1421
1422 Optional Packages:
1423 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1424 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1425 --with-pic try to use only PIC/non-PIC objects [default=use
1426 both]
1427 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1428 --with-xorg-module-dir=DIR
1429 Default xorg module directory
1430 [[default=$libdir/xorg/modules]]
1431
1432 Some influential environment variables:
1433 CC C compiler command
1434 CFLAGS C compiler flags
1435 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1436 nonstandard directory <lib dir>
1437 LIBS libraries to pass to the linker, e.g. -l<library>
1438 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439 you have headers in a nonstandard directory <include dir>
1440 CPP C preprocessor
1441 PKG_CONFIG path to pkg-config utility
1442 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1443 XORG_LIBS linker flags for XORG, overriding pkg-config
1444
1445 Use these variables to override the choices made by `configure' or to help
1446 it to find libraries and programs with nonstandard names/locations.
1447
1448 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1449 _ACEOF
1450 ac_status=$?
1451 fi
1452
1453 if test "$ac_init_help" = "recursive"; then
1454 # If there are subdirs, report their specific --help.
1455 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1456 test -d "$ac_dir" ||
1457 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1458 continue
1459 ac_builddir=.
1460
1461 case "$ac_dir" in
1462 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *)
1464 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1465 # A ".." for each directory in $ac_dir_suffix.
1466 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1467 case $ac_top_builddir_sub in
1468 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470 esac ;;
1471 esac
1472 ac_abs_top_builddir=$ac_pwd
1473 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1474 # for backward compatibility:
1475 ac_top_builddir=$ac_top_build_prefix
1476
1477 case $srcdir in
1478 .) # We are building in place.
1479 ac_srcdir=.
1480 ac_top_srcdir=$ac_top_builddir_sub
1481 ac_abs_top_srcdir=$ac_pwd ;;
1482 [\\/]* | ?:[\\/]* ) # Absolute name.
1483 ac_srcdir=$srcdir$ac_dir_suffix;
1484 ac_top_srcdir=$srcdir
1485 ac_abs_top_srcdir=$srcdir ;;
1486 *) # Relative name.
1487 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1488 ac_top_srcdir=$ac_top_build_prefix$srcdir
1489 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1490 esac
1491 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1492
1493 cd "$ac_dir" || { ac_status=$?; continue; }
1494 # Check for guested configure.
1495 if test -f "$ac_srcdir/configure.gnu"; then
1496 echo &&
1497 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1498 elif test -f "$ac_srcdir/configure"; then
1499 echo &&
1500 $SHELL "$ac_srcdir/configure" --help=recursive
1501 else
1502 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1503 fi || ac_status=$?
1504 cd "$ac_pwd" || { ac_status=$?; break; }
1505 done
1506 fi
1507
1508 test -n "$ac_init_help" && exit $ac_status
1509 if $ac_init_version; then
1510 cat <<\_ACEOF
1511 xf86-input-keyboard configure 1.5.0
1512 generated by GNU Autoconf 2.68
1513
1514 Copyright (C) 2010 Free Software Foundation, Inc.
1515 This configure script is free software; the Free Software Foundation
1516 gives unlimited permission to copy, distribute and modify it.
1517 _ACEOF
1518 exit
1519 fi
1520
1521 ## ------------------------ ##
1522 ## Autoconf initialization. ##
1523 ## ------------------------ ##
1524
1525 # ac_fn_c_try_compile LINENO
1526 # --------------------------
1527 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1528 ac_fn_c_try_compile ()
1529 {
1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531 rm -f conftest.$ac_objext
1532 if { { ac_try="$ac_compile"
1533 case "(($ac_try" in
1534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535 *) ac_try_echo=$ac_try;;
1536 esac
1537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538 $as_echo "$ac_try_echo"; } >&5
1539 (eval "$ac_compile") 2>conftest.err
1540 ac_status=$?
1541 if test -s conftest.err; then
1542 grep -v '^ *+' conftest.err >conftest.er1
1543 cat conftest.er1 >&5
1544 mv -f conftest.er1 conftest.err
1545 fi
1546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547 test $ac_status = 0; } && {
1548 test -z "$ac_c_werror_flag" ||
1549 test ! -s conftest.err
1550 } && test -s conftest.$ac_objext; then :
1551 ac_retval=0
1552 else
1553 $as_echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.$ac_ext >&5
1555
1556 ac_retval=1
1557 fi
1558 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559 as_fn_set_status $ac_retval
1560
1561 } # ac_fn_c_try_compile
1562
1563 # ac_fn_c_try_link LINENO
1564 # -----------------------
1565 # Try to link conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_c_try_link ()
1567 {
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 rm -f conftest.$ac_objext conftest$ac_exeext
1570 if { { ac_try="$ac_link"
1571 case "(($ac_try" in
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_link") 2>conftest.err
1578 ac_status=$?
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1583 fi
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && {
1586 test -z "$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 } && test -s conftest$ac_exeext && {
1589 test "$cross_compiling" = yes ||
1590 $as_test_x conftest$ac_exeext
1591 }; then :
1592 ac_retval=0
1593 else
1594 $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1596
1597 ac_retval=1
1598 fi
1599 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1600 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1601 # interfere with the next link command; also delete a directory that is
1602 # left behind by Apple's compiler. We do this before executing the actions.
1603 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605 as_fn_set_status $ac_retval
1606
1607 } # ac_fn_c_try_link
1608
1609 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1610 # -------------------------------------------------------
1611 # Tests whether HEADER exists and can be compiled using the include files in
1612 # INCLUDES, setting the cache variable VAR accordingly.
1613 ac_fn_c_check_header_compile ()
1614 {
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1617 $as_echo_n "checking for $2... " >&6; }
1618 if eval \${$3+:} false; then :
1619 $as_echo_n "(cached) " >&6
1620 else
1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h. */
1623 $4
1624 #include <$2>
1625 _ACEOF
1626 if ac_fn_c_try_compile "$LINENO"; then :
1627 eval "$3=yes"
1628 else
1629 eval "$3=no"
1630 fi
1631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1632 fi
1633 eval ac_res=\$$3
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1635 $as_echo "$ac_res" >&6; }
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637
1638 } # ac_fn_c_check_header_compile
1639
1640 # ac_fn_c_try_cpp LINENO
1641 # ----------------------
1642 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_c_try_cpp ()
1644 {
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 if { { ac_try="$ac_cpp conftest.$ac_ext"
1647 case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1654 ac_status=$?
1655 if test -s conftest.err; then
1656 grep -v '^ *+' conftest.err >conftest.er1
1657 cat conftest.er1 >&5
1658 mv -f conftest.er1 conftest.err
1659 fi
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } > conftest.i && {
1662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1663 test ! -s conftest.err
1664 }; then :
1665 ac_retval=0
1666 else
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670 ac_retval=1
1671 fi
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673 as_fn_set_status $ac_retval
1674
1675 } # ac_fn_c_try_cpp
1676
1677 # ac_fn_c_try_run LINENO
1678 # ----------------------
1679 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1680 # that executables *can* be run.
1681 ac_fn_c_try_run ()
1682 {
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 if { { ac_try="$ac_link"
1685 case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_link") 2>&5
1692 ac_status=$?
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1695 { { case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_try") 2>&5
1702 ac_status=$?
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; }; }; then :
1705 ac_retval=0
1706 else
1707 $as_echo "$as_me: program exited with status $ac_status" >&5
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1710
1711 ac_retval=$ac_status
1712 fi
1713 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 as_fn_set_status $ac_retval
1716
1717 } # ac_fn_c_try_run
1718
1719 # ac_fn_c_check_func LINENO FUNC VAR
1720 # ----------------------------------
1721 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1722 ac_fn_c_check_func ()
1723 {
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726 $as_echo_n "checking for $2... " >&6; }
1727 if eval \${$3+:} false; then :
1728 $as_echo_n "(cached) " >&6
1729 else
1730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h. */
1732 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1734 #define $2 innocuous_$2
1735
1736 /* System header to define __stub macros and hopefully few prototypes,
1737 which can conflict with char $2 (); below.
1738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1739 <limits.h> exists even on freestanding compilers. */
1740
1741 #ifdef __STDC__
1742 # include <limits.h>
1743 #else
1744 # include <assert.h>
1745 #endif
1746
1747 #undef $2
1748
1749 /* Override any GCC internal prototype to avoid an error.
1750 Use char because int might match the return type of a GCC
1751 builtin and then its argument prototype would still apply. */
1752 #ifdef __cplusplus
1753 extern "C"
1754 #endif
1755 char $2 ();
1756 /* The GNU C library defines this for functions which it implements
1757 to always fail with ENOSYS. Some functions are actually named
1758 something starting with __ and the normal name is an alias. */
1759 #if defined __stub_$2 || defined __stub___$2
1760 choke me
1761 #endif
1762
1763 int
1764 main ()
1765 {
1766 return $2 ();
1767 ;
1768 return 0;
1769 }
1770 _ACEOF
1771 if ac_fn_c_try_link "$LINENO"; then :
1772 eval "$3=yes"
1773 else
1774 eval "$3=no"
1775 fi
1776 rm -f core conftest.err conftest.$ac_objext \
1777 conftest$ac_exeext conftest.$ac_ext
1778 fi
1779 eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783
1784 } # ac_fn_c_check_func
1785
1786 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1787 # ---------------------------------------------
1788 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1789 # accordingly.
1790 ac_fn_c_check_decl ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 as_decl_name=`echo $2|sed 's/ *(.*//'`
1794 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1796 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1797 if eval \${$3+:} false; then :
1798 $as_echo_n "(cached) " >&6
1799 else
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1802 $4
1803 int
1804 main ()
1805 {
1806 #ifndef $as_decl_name
1807 #ifdef __cplusplus
1808 (void) $as_decl_use;
1809 #else
1810 (void) $as_decl_name;
1811 #endif
1812 #endif
1813
1814 ;
1815 return 0;
1816 }
1817 _ACEOF
1818 if ac_fn_c_try_compile "$LINENO"; then :
1819 eval "$3=yes"
1820 else
1821 eval "$3=no"
1822 fi
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824 fi
1825 eval ac_res=\$$3
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829
1830 } # ac_fn_c_check_decl
1831 cat >config.log <<_ACEOF
1832 This file contains any messages produced by compilers while
1833 running configure, to aid debugging if configure makes a mistake.
1834
1835 It was created by xf86-input-keyboard $as_me 1.5.0, which was
1836 generated by GNU Autoconf 2.68. Invocation command line was
1837
1838 $ $0 $@
1839
1840 _ACEOF
1841 exec 5>>config.log
1842 {
1843 cat <<_ASUNAME
1844 ## --------- ##
1845 ## Platform. ##
1846 ## --------- ##
1847
1848 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1849 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1850 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1851 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1852 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1853
1854 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1855 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1856
1857 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1858 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1859 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1860 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1861 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1862 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1863 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1864
1865 _ASUNAME
1866
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH
1869 do
1870 IFS=$as_save_IFS
1871 test -z "$as_dir" && as_dir=.
1872 $as_echo "PATH: $as_dir"
1873 done
1874 IFS=$as_save_IFS
1875
1876 } >&5
1877
1878 cat >&5 <<_ACEOF
1879
1880
1881 ## ----------- ##
1882 ## Core tests. ##
1883 ## ----------- ##
1884
1885 _ACEOF
1886
1887
1888 # Keep a trace of the command line.
1889 # Strip out --no-create and --no-recursion so they do not pile up.
1890 # Strip out --silent because we don't want to record it for future runs.
1891 # Also quote any args containing shell meta-characters.
1892 # Make two passes to allow for proper duplicate-argument suppression.
1893 ac_configure_args=
1894 ac_configure_args0=
1895 ac_configure_args1=
1896 ac_must_keep_next=false
1897 for ac_pass in 1 2
1898 do
1899 for ac_arg
1900 do
1901 case $ac_arg in
1902 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1903 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1904 | -silent | --silent | --silen | --sile | --sil)
1905 continue ;;
1906 *\'*)
1907 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1908 esac
1909 case $ac_pass in
1910 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1911 2)
1912 as_fn_append ac_configure_args1 " '$ac_arg'"
1913 if test $ac_must_keep_next = true; then
1914 ac_must_keep_next=false # Got value, back to normal.
1915 else
1916 case $ac_arg in
1917 *=* | --config-cache | -C | -disable-* | --disable-* \
1918 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1919 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1920 | -with-* | --with-* | -without-* | --without-* | --x)
1921 case "$ac_configure_args0 " in
1922 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1923 esac
1924 ;;
1925 -* ) ac_must_keep_next=true ;;
1926 esac
1927 fi
1928 as_fn_append ac_configure_args " '$ac_arg'"
1929 ;;
1930 esac
1931 done
1932 done
1933 { ac_configure_args0=; unset ac_configure_args0;}
1934 { ac_configure_args1=; unset ac_configure_args1;}
1935
1936 # When interrupted or exit'd, cleanup temporary files, and complete
1937 # config.log. We remove comments because anyway the quotes in there
1938 # would cause problems or look ugly.
1939 # WARNING: Use '\'' to represent an apostrophe within the trap.
1940 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1941 trap 'exit_status=$?
1942 # Save into config.log some information that might help in debugging.
1943 {
1944 echo
1945
1946 $as_echo "## ---------------- ##
1947 ## Cache variables. ##
1948 ## ---------------- ##"
1949 echo
1950 # The following way of writing the cache mishandles newlines in values,
1951 (
1952 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1953 eval ac_val=\$$ac_var
1954 case $ac_val in #(
1955 *${as_nl}*)
1956 case $ac_var in #(
1957 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1958 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1959 esac
1960 case $ac_var in #(
1961 _ | IFS | as_nl) ;; #(
1962 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1963 *) { eval $ac_var=; unset $ac_var;} ;;
1964 esac ;;
1965 esac
1966 done
1967 (set) 2>&1 |
1968 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1969 *${as_nl}ac_space=\ *)
1970 sed -n \
1971 "s/'\''/'\''\\\\'\'''\''/g;
1972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1973 ;; #(
1974 *)
1975 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1976 ;;
1977 esac |
1978 sort
1979 )
1980 echo
1981
1982 $as_echo "## ----------------- ##
1983 ## Output variables. ##
1984 ## ----------------- ##"
1985 echo
1986 for ac_var in $ac_subst_vars
1987 do
1988 eval ac_val=\$$ac_var
1989 case $ac_val in
1990 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1991 esac
1992 $as_echo "$ac_var='\''$ac_val'\''"
1993 done | sort
1994 echo
1995
1996 if test -n "$ac_subst_files"; then
1997 $as_echo "## ------------------- ##
1998 ## File substitutions. ##
1999 ## ------------------- ##"
2000 echo
2001 for ac_var in $ac_subst_files
2002 do
2003 eval ac_val=\$$ac_var
2004 case $ac_val in
2005 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2006 esac
2007 $as_echo "$ac_var='\''$ac_val'\''"
2008 done | sort
2009 echo
2010 fi
2011
2012 if test -s confdefs.h; then
2013 $as_echo "## ----------- ##
2014 ## confdefs.h. ##
2015 ## ----------- ##"
2016 echo
2017 cat confdefs.h
2018 echo
2019 fi
2020 test "$ac_signal" != 0 &&
2021 $as_echo "$as_me: caught signal $ac_signal"
2022 $as_echo "$as_me: exit $exit_status"
2023 } >&5
2024 rm -f core *.core core.conftest.* &&
2025 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2026 exit $exit_status
2027 ' 0
2028 for ac_signal in 1 2 13 15; do
2029 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2030 done
2031 ac_signal=0
2032
2033 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2034 rm -f -r conftest* confdefs.h
2035
2036 $as_echo "/* confdefs.h */" > confdefs.h
2037
2038 # Predefined preprocessor variables.
2039
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_NAME "$PACKAGE_NAME"
2042 _ACEOF
2043
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2046 _ACEOF
2047
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2050 _ACEOF
2051
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_STRING "$PACKAGE_STRING"
2054 _ACEOF
2055
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2058 _ACEOF
2059
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_URL "$PACKAGE_URL"
2062 _ACEOF
2063
2064
2065 # Let the site file select an alternate cache file if it wants to.
2066 # Prefer an explicitly selected file to automatically selected ones.
2067 ac_site_file1=NONE
2068 ac_site_file2=NONE
2069 if test -n "$CONFIG_SITE"; then
2070 # We do not want a PATH search for config.site.
2071 case $CONFIG_SITE in #((
2072 -*) ac_site_file1=./$CONFIG_SITE;;
2073 */*) ac_site_file1=$CONFIG_SITE;;
2074 *) ac_site_file1=./$CONFIG_SITE;;
2075 esac
2076 elif test "x$prefix" != xNONE; then
2077 ac_site_file1=$prefix/share/config.site
2078 ac_site_file2=$prefix/etc/config.site
2079 else
2080 ac_site_file1=$ac_default_prefix/share/config.site
2081 ac_site_file2=$ac_default_prefix/etc/config.site
2082 fi
2083 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2084 do
2085 test "x$ac_site_file" = xNONE && continue
2086 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2088 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2089 sed 's/^/| /' "$ac_site_file" >&5
2090 . "$ac_site_file" \
2091 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2093 as_fn_error $? "failed to load site script $ac_site_file
2094 See \`config.log' for more details" "$LINENO" 5; }
2095 fi
2096 done
2097
2098 if test -r "$cache_file"; then
2099 # Some versions of bash will fail to source /dev/null (special files
2100 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2101 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2103 $as_echo "$as_me: loading cache $cache_file" >&6;}
2104 case $cache_file in
2105 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2106 *) . "./$cache_file";;
2107 esac
2108 fi
2109 else
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2111 $as_echo "$as_me: creating cache $cache_file" >&6;}
2112 >$cache_file
2113 fi
2114
2115 # Check that the precious variables saved in the cache have kept the same
2116 # value.
2117 ac_cache_corrupted=false
2118 for ac_var in $ac_precious_vars; do
2119 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2120 eval ac_new_set=\$ac_env_${ac_var}_set
2121 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2122 eval ac_new_val=\$ac_env_${ac_var}_value
2123 case $ac_old_set,$ac_new_set in
2124 set,)
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2126 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2127 ac_cache_corrupted=: ;;
2128 ,set)
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2130 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2131 ac_cache_corrupted=: ;;
2132 ,);;
2133 *)
2134 if test "x$ac_old_val" != "x$ac_new_val"; then
2135 # differences in whitespace do not lead to failure.
2136 ac_old_val_w=`echo x $ac_old_val`
2137 ac_new_val_w=`echo x $ac_new_val`
2138 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2140 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2141 ac_cache_corrupted=:
2142 else
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2144 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2145 eval $ac_var=\$ac_old_val
2146 fi
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2148 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2150 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2151 fi;;
2152 esac
2153 # Pass precious variables to config.status.
2154 if test "$ac_new_set" = set; then
2155 case $ac_new_val in
2156 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2157 *) ac_arg=$ac_var=$ac_new_val ;;
2158 esac
2159 case " $ac_configure_args " in
2160 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2161 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2162 esac
2163 fi
2164 done
2165 if $ac_cache_corrupted; then
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2169 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2170 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2171 fi
2172 ## -------------------- ##
2173 ## Main body of script. ##
2174 ## -------------------- ##
2175
2176 ac_ext=c
2177 ac_cpp='$CPP $CPPFLAGS'
2178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2181
2182
2183
2184 ac_config_headers="$ac_config_headers config.h"
2185
2186 ac_aux_dir=
2187 for ac_dir in . "$srcdir"/.; do
2188 if test -f "$ac_dir/install-sh"; then
2189 ac_aux_dir=$ac_dir
2190 ac_install_sh="$ac_aux_dir/install-sh -c"
2191 break
2192 elif test -f "$ac_dir/install.sh"; then
2193 ac_aux_dir=$ac_dir
2194 ac_install_sh="$ac_aux_dir/install.sh -c"
2195 break
2196 elif test -f "$ac_dir/shtool"; then
2197 ac_aux_dir=$ac_dir
2198 ac_install_sh="$ac_aux_dir/shtool install -c"
2199 break
2200 fi
2201 done
2202 if test -z "$ac_aux_dir"; then
2203 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2204 fi
2205
2206 # These three variables are undocumented and unsupported,
2207 # and are intended to be withdrawn in a future Autoconf release.
2208 # They can cause serious problems if a builder's source tree is in a directory
2209 # whose full name contains unusual characters.
2210 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2211 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2212 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2213
2214
2215
2216 # Initialize Automake
2217 am__api_version='1.11'
2218
2219 # Find a good install program. We prefer a C program (faster),
2220 # so one script is as good as another. But avoid the broken or
2221 # incompatible versions:
2222 # SysV /etc/install, /usr/sbin/install
2223 # SunOS /usr/etc/install
2224 # IRIX /sbin/install
2225 # AIX /bin/install
2226 # AmigaOS /C/install, which installs bootblocks on floppy discs
2227 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2228 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2229 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2230 # OS/2's system install, which has a completely different semantic
2231 # ./install, which can be erroneously created by make from ./install.sh.
2232 # Reject install programs that cannot install multiple files.
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2234 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2235 if test -z "$INSTALL"; then
2236 if ${ac_cv_path_install+:} false; then :
2237 $as_echo_n "(cached) " >&6
2238 else
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2241 do
2242 IFS=$as_save_IFS
2243 test -z "$as_dir" && as_dir=.
2244 # Account for people who put trailing slashes in PATH elements.
2245 case $as_dir/ in #((
2246 ./ | .// | /[cC]/* | \
2247 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2248 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2249 /usr/ucb/* ) ;;
2250 *)
2251 # OSF1 and SCO ODT 3.0 have their own names for install.
2252 # Don't use installbsd from OSF since it installs stuff as root
2253 # by default.
2254 for ac_prog in ginstall scoinst install; do
2255 for ac_exec_ext in '' $ac_executable_extensions; do
2256 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2257 if test $ac_prog = install &&
2258 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2259 # AIX install. It has an incompatible calling convention.
2260 :
2261 elif test $ac_prog = install &&
2262 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2263 # program-specific install script used by HP pwplus--don't use.
2264 :
2265 else
2266 rm -rf conftest.one conftest.two conftest.dir
2267 echo one > conftest.one
2268 echo two > conftest.two
2269 mkdir conftest.dir
2270 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2271 test -s conftest.one && test -s conftest.two &&
2272 test -s conftest.dir/conftest.one &&
2273 test -s conftest.dir/conftest.two
2274 then
2275 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2276 break 3
2277 fi
2278 fi
2279 fi
2280 done
2281 done
2282 ;;
2283 esac
2284
2285 done
2286 IFS=$as_save_IFS
2287
2288 rm -rf conftest.one conftest.two conftest.dir
2289
2290 fi
2291 if test "${ac_cv_path_install+set}" = set; then
2292 INSTALL=$ac_cv_path_install
2293 else
2294 # As a last resort, use the slow shell script. Don't cache a
2295 # value for INSTALL within a source directory, because that will
2296 # break other packages using the cache if that directory is
2297 # removed, or if the value is a relative name.
2298 INSTALL=$ac_install_sh
2299 fi
2300 fi
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2302 $as_echo "$INSTALL" >&6; }
2303
2304 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2305 # It thinks the first close brace ends the variable substitution.
2306 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2307
2308 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2309
2310 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2311
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2313 $as_echo_n "checking whether build environment is sane... " >&6; }
2314 # Just in case
2315 sleep 1
2316 echo timestamp > conftest.file
2317 # Reject unsafe characters in $srcdir or the absolute working directory
2318 # name. Accept space and tab only in the latter.
2319 am_lf='
2320 '
2321 case `pwd` in
2322 *[\\\"\#\$\&\'\`$am_lf]*)
2323 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2324 esac
2325 case $srcdir in
2326 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2327 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2328 esac
2329
2330 # Do `set' in a subshell so we don't clobber the current shell's
2331 # arguments. Must try -L first in case configure is actually a
2332 # symlink; some systems play weird games with the mod time of symlinks
2333 # (eg FreeBSD returns the mod time of the symlink's containing
2334 # directory).
2335 if (
2336 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2337 if test "$*" = "X"; then
2338 # -L didn't work.
2339 set X `ls -t "$srcdir/configure" conftest.file`
2340 fi
2341 rm -f conftest.file
2342 if test "$*" != "X $srcdir/configure conftest.file" \
2343 && test "$*" != "X conftest.file $srcdir/configure"; then
2344
2345 # If neither matched, then we have a broken ls. This can happen
2346 # if, for instance, CONFIG_SHELL is bash and it inherits a
2347 # broken ls alias from the environment. This has actually
2348 # happened. Such a system could not be considered "sane".
2349 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2350 alias in your environment" "$LINENO" 5
2351 fi
2352
2353 test "$2" = conftest.file
2354 )
2355 then
2356 # Ok.
2357 :
2358 else
2359 as_fn_error $? "newly created file is older than distributed files!
2360 Check your system clock" "$LINENO" 5
2361 fi
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2363 $as_echo "yes" >&6; }
2364 test "$program_prefix" != NONE &&
2365 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2366 # Use a double $ so make ignores it.
2367 test "$program_suffix" != NONE &&
2368 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2369 # Double any \ or $.
2370 # By default was `s,x,x', remove it if useless.
2371 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2372 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2373
2374 # expand $ac_aux_dir to an absolute path
2375 am_aux_dir=`cd $ac_aux_dir && pwd`
2376
2377 if test x"${MISSING+set}" != xset; then
2378 case $am_aux_dir in
2379 *\ * | *\ *)
2380 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2381 *)
2382 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2383 esac
2384 fi
2385 # Use eval to expand $SHELL
2386 if eval "$MISSING --run true"; then
2387 am_missing_run="$MISSING --run "
2388 else
2389 am_missing_run=
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2391 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2392 fi
2393
2394 if test x"${install_sh}" != xset; then
2395 case $am_aux_dir in
2396 *\ * | *\ *)
2397 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2398 *)
2399 install_sh="\${SHELL} $am_aux_dir/install-sh"
2400 esac
2401 fi
2402
2403 # Installed binaries are usually stripped using `strip' when the user
2404 # run `make install-strip'. However `strip' might not be the right
2405 # tool to use in cross-compilation environments, therefore Automake
2406 # will honor the `STRIP' environment variable to overrule this program.
2407 if test "$cross_compiling" != no; then
2408 if test -n "$ac_tool_prefix"; then
2409 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2410 set dummy ${ac_tool_prefix}strip; ac_word=$2
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2412 $as_echo_n "checking for $ac_word... " >&6; }
2413 if ${ac_cv_prog_STRIP+:} false; then :
2414 $as_echo_n "(cached) " >&6
2415 else
2416 if test -n "$STRIP"; then
2417 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2418 else
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 for as_dir in $PATH
2421 do
2422 IFS=$as_save_IFS
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2426 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2428 break 2
2429 fi
2430 done
2431 done
2432 IFS=$as_save_IFS
2433
2434 fi
2435 fi
2436 STRIP=$ac_cv_prog_STRIP
2437 if test -n "$STRIP"; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2439 $as_echo "$STRIP" >&6; }
2440 else
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2442 $as_echo "no" >&6; }
2443 fi
2444
2445
2446 fi
2447 if test -z "$ac_cv_prog_STRIP"; then
2448 ac_ct_STRIP=$STRIP
2449 # Extract the first word of "strip", so it can be a program name with args.
2450 set dummy strip; ac_word=$2
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2452 $as_echo_n "checking for $ac_word... " >&6; }
2453 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2454 $as_echo_n "(cached) " >&6
2455 else
2456 if test -n "$ac_ct_STRIP"; then
2457 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2458 else
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 for as_dir in $PATH
2461 do
2462 IFS=$as_save_IFS
2463 test -z "$as_dir" && as_dir=.
2464 for ac_exec_ext in '' $ac_executable_extensions; do
2465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2466 ac_cv_prog_ac_ct_STRIP="strip"
2467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2468 break 2
2469 fi
2470 done
2471 done
2472 IFS=$as_save_IFS
2473
2474 fi
2475 fi
2476 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2477 if test -n "$ac_ct_STRIP"; then
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2479 $as_echo "$ac_ct_STRIP" >&6; }
2480 else
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2482 $as_echo "no" >&6; }
2483 fi
2484
2485 if test "x$ac_ct_STRIP" = x; then
2486 STRIP=":"
2487 else
2488 case $cross_compiling:$ac_tool_warned in
2489 yes:)
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2492 ac_tool_warned=yes ;;
2493 esac
2494 STRIP=$ac_ct_STRIP
2495 fi
2496 else
2497 STRIP="$ac_cv_prog_STRIP"
2498 fi
2499
2500 fi
2501 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2502
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2504 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2505 if test -z "$MKDIR_P"; then
2506 if ${ac_cv_path_mkdir+:} false; then :
2507 $as_echo_n "(cached) " >&6
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2511 do
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 for ac_prog in mkdir gmkdir; do
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2517 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2518 'mkdir (GNU coreutils) '* | \
2519 'mkdir (coreutils) '* | \
2520 'mkdir (fileutils) '4.1*)
2521 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2522 break 3;;
2523 esac
2524 done
2525 done
2526 done
2527 IFS=$as_save_IFS
2528
2529 fi
2530
2531 test -d ./--version && rmdir ./--version
2532 if test "${ac_cv_path_mkdir+set}" = set; then
2533 MKDIR_P="$ac_cv_path_mkdir -p"
2534 else
2535 # As a last resort, use the slow shell script. Don't cache a
2536 # value for MKDIR_P within a source directory, because that will
2537 # break other packages using the cache if that directory is
2538 # removed, or if the value is a relative name.
2539 MKDIR_P="$ac_install_sh -d"
2540 fi
2541 fi
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2543 $as_echo "$MKDIR_P" >&6; }
2544
2545 mkdir_p="$MKDIR_P"
2546 case $mkdir_p in
2547 [\\/$]* | ?:[\\/]*) ;;
2548 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2549 esac
2550
2551 for ac_prog in gawk mawk nawk awk
2552 do
2553 # Extract the first word of "$ac_prog", so it can be a program name with args.
2554 set dummy $ac_prog; ac_word=$2
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556 $as_echo_n "checking for $ac_word... " >&6; }
2557 if ${ac_cv_prog_AWK+:} false; then :
2558 $as_echo_n "(cached) " >&6
2559 else
2560 if test -n "$AWK"; then
2561 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2562 else
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH
2565 do
2566 IFS=$as_save_IFS
2567 test -z "$as_dir" && as_dir=.
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2570 ac_cv_prog_AWK="$ac_prog"
2571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2572 break 2
2573 fi
2574 done
2575 done
2576 IFS=$as_save_IFS
2577
2578 fi
2579 fi
2580 AWK=$ac_cv_prog_AWK
2581 if test -n "$AWK"; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2583 $as_echo "$AWK" >&6; }
2584 else
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2586 $as_echo "no" >&6; }
2587 fi
2588
2589
2590 test -n "$AWK" && break
2591 done
2592
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2594 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2595 set x ${MAKE-make}
2596 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2597 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2598 $as_echo_n "(cached) " >&6
2599 else
2600 cat >conftest.make <<\_ACEOF
2601 SHELL = /bin/sh
2602 all:
2603 @echo '@@@%%%=$(MAKE)=@@@%%%'
2604 _ACEOF
2605 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2606 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2607 *@@@%%%=?*=@@@%%%*)
2608 eval ac_cv_prog_make_${ac_make}_set=yes;;
2609 *)
2610 eval ac_cv_prog_make_${ac_make}_set=no;;
2611 esac
2612 rm -f conftest.make
2613 fi
2614 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2616 $as_echo "yes" >&6; }
2617 SET_MAKE=
2618 else
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620 $as_echo "no" >&6; }
2621 SET_MAKE="MAKE=${MAKE-make}"
2622 fi
2623
2624 rm -rf .tst 2>/dev/null
2625 mkdir .tst 2>/dev/null
2626 if test -d .tst; then
2627 am__leading_dot=.
2628 else
2629 am__leading_dot=_
2630 fi
2631 rmdir .tst 2>/dev/null
2632
2633 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2634 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2635 # is not polluted with repeated "-I."
2636 am__isrc=' -I$(srcdir)'
2637 # test to see if srcdir already configured
2638 if test -f $srcdir/config.status; then
2639 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2640 fi
2641 fi
2642
2643 # test whether we have cygpath
2644 if test -z "$CYGPATH_W"; then
2645 if (cygpath --version) >/dev/null 2>/dev/null; then
2646 CYGPATH_W='cygpath -w'
2647 else
2648 CYGPATH_W=echo
2649 fi
2650 fi
2651
2652
2653 # Define the identity of the package.
2654 PACKAGE='xf86-input-keyboard'
2655 VERSION='1.5.0'
2656
2657
2658 cat >>confdefs.h <<_ACEOF
2659 #define PACKAGE "$PACKAGE"
2660 _ACEOF
2661
2662
2663 cat >>confdefs.h <<_ACEOF
2664 #define VERSION "$VERSION"
2665 _ACEOF
2666
2667 # Some tools Automake needs.
2668
2669 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2670
2671
2672 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2673
2674
2675 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2676
2677
2678 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2679
2680
2681 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2682
2683 # We need awk for the "check" target. The system "awk" is bad on
2684 # some platforms.
2685 # Always define AMTAR for backward compatibility.
2686
2687 AMTAR=${AMTAR-"${am_missing_run}tar"}
2688
2689 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2690
2691
2692
2693
2694
2695
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2697 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2698 # Check whether --enable-maintainer-mode was given.
2699 if test "${enable_maintainer_mode+set}" = set; then :
2700 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2701 else
2702 USE_MAINTAINER_MODE=no
2703 fi
2704
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2706 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2707 if test $USE_MAINTAINER_MODE = yes; then
2708 MAINTAINER_MODE_TRUE=
2709 MAINTAINER_MODE_FALSE='#'
2710 else
2711 MAINTAINER_MODE_TRUE='#'
2712 MAINTAINER_MODE_FALSE=
2713 fi
2714
2715 MAINT=$MAINTAINER_MODE_TRUE
2716
2717
2718
2719 # Initialize libtool
2720 # Check whether --enable-static was given.
2721 if test "${enable_static+set}" = set; then :
2722 enableval=$enable_static; p=${PACKAGE-default}
2723 case $enableval in
2724 yes) enable_static=yes ;;
2725 no) enable_static=no ;;
2726 *)
2727 enable_static=no
2728 # Look at the argument we got. We use all the common list separators.
2729 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2730 for pkg in $enableval; do
2731 IFS="$lt_save_ifs"
2732 if test "X$pkg" = "X$p"; then
2733 enable_static=yes
2734 fi
2735 done
2736 IFS="$lt_save_ifs"
2737 ;;
2738 esac
2739 else
2740 enable_static=no
2741 fi
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751 case `pwd` in
2752 *\ * | *\ *)
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2754 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2755 esac
2756
2757
2758
2759 macro_version='2.2.10'
2760 macro_revision='1.3175'
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774 ltmain="$ac_aux_dir/ltmain.sh"
2775
2776 # Make sure we can run config.sub.
2777 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2778 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2779
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2781 $as_echo_n "checking build system type... " >&6; }
2782 if ${ac_cv_build+:} false; then :
2783 $as_echo_n "(cached) " >&6
2784 else
2785 ac_build_alias=$build_alias
2786 test "x$ac_build_alias" = x &&
2787 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2788 test "x$ac_build_alias" = x &&
2789 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2790 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2791 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2792
2793 fi
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2795 $as_echo "$ac_cv_build" >&6; }
2796 case $ac_cv_build in
2797 *-*-*) ;;
2798 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2799 esac
2800 build=$ac_cv_build
2801 ac_save_IFS=$IFS; IFS='-'
2802 set x $ac_cv_build
2803 shift
2804 build_cpu=$1
2805 build_vendor=$2
2806 shift; shift
2807 # Remember, the first character of IFS is used to create $*,
2808 # except with old shells:
2809 build_os=$*
2810 IFS=$ac_save_IFS
2811 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2812
2813
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2815 $as_echo_n "checking host system type... " >&6; }
2816 if ${ac_cv_host+:} false; then :
2817 $as_echo_n "(cached) " >&6
2818 else
2819 if test "x$host_alias" = x; then
2820 ac_cv_host=$ac_cv_build
2821 else
2822 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2823 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2824 fi
2825
2826 fi
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2828 $as_echo "$ac_cv_host" >&6; }
2829 case $ac_cv_host in
2830 *-*-*) ;;
2831 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2832 esac
2833 host=$ac_cv_host
2834 ac_save_IFS=$IFS; IFS='-'
2835 set x $ac_cv_host
2836 shift
2837 host_cpu=$1
2838 host_vendor=$2
2839 shift; shift
2840 # Remember, the first character of IFS is used to create $*,
2841 # except with old shells:
2842 host_os=$*
2843 IFS=$ac_save_IFS
2844 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2845
2846
2847 # Backslashify metacharacters that are still active within
2848 # double-quoted strings.
2849 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2850
2851 # Same as above, but do not quote variable references.
2852 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2853
2854 # Sed substitution to delay expansion of an escaped shell variable in a
2855 # double_quote_subst'ed string.
2856 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2857
2858 # Sed substitution to delay expansion of an escaped single quote.
2859 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2860
2861 # Sed substitution to avoid accidental globbing in evaled expressions
2862 no_glob_subst='s/\*/\\\*/g'
2863
2864 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2865 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2866 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2867
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2869 $as_echo_n "checking how to print strings... " >&6; }
2870 # Test print first, because it will be a builtin if present.
2871 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
2872 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2873 ECHO='print -r --'
2874 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2875 ECHO='printf %s\n'
2876 else
2877 # Use this function as a fallback that always works.
2878 func_fallback_echo ()
2879 {
2880 eval 'cat <<_LTECHO_EOF
2881 $1
2882 _LTECHO_EOF'
2883 }
2884 ECHO='func_fallback_echo'
2885 fi
2886
2887 # func_echo_all arg...
2888 # Invoke $ECHO with all args, space-separated.
2889 func_echo_all ()
2890 {
2891 $ECHO ""
2892 }
2893
2894 case "$ECHO" in
2895 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2896 $as_echo "printf" >&6; } ;;
2897 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2898 $as_echo "print -r" >&6; } ;;
2899 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2900 $as_echo "cat" >&6; } ;;
2901 esac
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916 DEPDIR="${am__leading_dot}deps"
2917
2918 ac_config_commands="$ac_config_commands depfiles"
2919
2920
2921 am_make=${MAKE-make}
2922 cat > confinc << 'END'
2923 am__doit:
2924 @echo this is the am__doit target
2925 .PHONY: am__doit
2926 END
2927 # If we don't find an include directive, just comment out the code.
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2929 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2930 am__include="#"
2931 am__quote=
2932 _am_result=none
2933 # First try GNU make style include.
2934 echo "include confinc" > confmf
2935 # Ignore all kinds of additional output from `make'.
2936 case `$am_make -s -f confmf 2> /dev/null` in #(
2937 *the\ am__doit\ target*)
2938 am__include=include
2939 am__quote=
2940 _am_result=GNU
2941 ;;
2942 esac
2943 # Now try BSD make style include.
2944 if test "$am__include" = "#"; then
2945 echo '.include "confinc"' > confmf
2946 case `$am_make -s -f confmf 2> /dev/null` in #(
2947 *the\ am__doit\ target*)
2948 am__include=.include
2949 am__quote="\""
2950 _am_result=BSD
2951 ;;
2952 esac
2953 fi
2954
2955
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2957 $as_echo "$_am_result" >&6; }
2958 rm -f confinc confmf
2959
2960 # Check whether --enable-dependency-tracking was given.
2961 if test "${enable_dependency_tracking+set}" = set; then :
2962 enableval=$enable_dependency_tracking;
2963 fi
2964
2965 if test "x$enable_dependency_tracking" != xno; then
2966 am_depcomp="$ac_aux_dir/depcomp"
2967 AMDEPBACKSLASH='\'
2968 fi
2969 if test "x$enable_dependency_tracking" != xno; then
2970 AMDEP_TRUE=
2971 AMDEP_FALSE='#'
2972 else
2973 AMDEP_TRUE='#'
2974 AMDEP_FALSE=
2975 fi
2976
2977
2978 ac_ext=c
2979 ac_cpp='$CPP $CPPFLAGS'
2980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2983 if test -n "$ac_tool_prefix"; then
2984 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2985 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if ${ac_cv_prog_CC+:} false; then :
2989 $as_echo_n "(cached) " >&6
2990 else
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC="$CC" # Let the user override the test.
2993 else
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 for as_dir in $PATH
2996 do
2997 IFS=$as_save_IFS
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3001 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 break 2
3004 fi
3005 done
3006 done
3007 IFS=$as_save_IFS
3008
3009 fi
3010 fi
3011 CC=$ac_cv_prog_CC
3012 if test -n "$CC"; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3014 $as_echo "$CC" >&6; }
3015 else
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3018 fi
3019
3020
3021 fi
3022 if test -z "$ac_cv_prog_CC"; then
3023 ac_ct_CC=$CC
3024 # Extract the first word of "gcc", so it can be a program name with args.
3025 set dummy gcc; ac_word=$2
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027 $as_echo_n "checking for $ac_word... " >&6; }
3028 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3029 $as_echo_n "(cached) " >&6
3030 else
3031 if test -n "$ac_ct_CC"; then
3032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3033 else
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3036 do
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3041 ac_cv_prog_ac_ct_CC="gcc"
3042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 break 2
3044 fi
3045 done
3046 done
3047 IFS=$as_save_IFS
3048
3049 fi
3050 fi
3051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3052 if test -n "$ac_ct_CC"; then
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3054 $as_echo "$ac_ct_CC" >&6; }
3055 else
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057 $as_echo "no" >&6; }
3058 fi
3059
3060 if test "x$ac_ct_CC" = x; then
3061 CC=""
3062 else
3063 case $cross_compiling:$ac_tool_warned in
3064 yes:)
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3067 ac_tool_warned=yes ;;
3068 esac
3069 CC=$ac_ct_CC
3070 fi
3071 else
3072 CC="$ac_cv_prog_CC"
3073 fi
3074
3075 if test -z "$CC"; then
3076 if test -n "$ac_tool_prefix"; then
3077 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3078 set dummy ${ac_tool_prefix}cc; ac_word=$2
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3080 $as_echo_n "checking for $ac_word... " >&6; }
3081 if ${ac_cv_prog_CC+:} false; then :
3082 $as_echo_n "(cached) " >&6
3083 else
3084 if test -n "$CC"; then
3085 ac_cv_prog_CC="$CC" # Let the user override the test.
3086 else
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 for as_dir in $PATH
3089 do
3090 IFS=$as_save_IFS
3091 test -z "$as_dir" && as_dir=.
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3094 ac_cv_prog_CC="${ac_tool_prefix}cc"
3095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 break 2
3097 fi
3098 done
3099 done
3100 IFS=$as_save_IFS
3101
3102 fi
3103 fi
3104 CC=$ac_cv_prog_CC
3105 if test -n "$CC"; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3107 $as_echo "$CC" >&6; }
3108 else
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3111 fi
3112
3113
3114 fi
3115 fi
3116 if test -z "$CC"; then
3117 # Extract the first word of "cc", so it can be a program name with args.
3118 set dummy cc; ac_word=$2
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if ${ac_cv_prog_CC+:} false; then :
3122 $as_echo_n "(cached) " >&6
3123 else
3124 if test -n "$CC"; then
3125 ac_cv_prog_CC="$CC" # Let the user override the test.
3126 else
3127 ac_prog_rejected=no
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3130 do
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3135 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3136 ac_prog_rejected=yes
3137 continue
3138 fi
3139 ac_cv_prog_CC="cc"
3140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141 break 2
3142 fi
3143 done
3144 done
3145 IFS=$as_save_IFS
3146
3147 if test $ac_prog_rejected = yes; then
3148 # We found a bogon in the path, so make sure we never use it.
3149 set dummy $ac_cv_prog_CC
3150 shift
3151 if test $# != 0; then
3152 # We chose a different compiler from the bogus one.
3153 # However, it has the same basename, so the bogon will be chosen
3154 # first if we set CC to just the basename; use the full file name.
3155 shift
3156 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3157 fi
3158 fi
3159 fi
3160 fi
3161 CC=$ac_cv_prog_CC
3162 if test -n "$CC"; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3164 $as_echo "$CC" >&6; }
3165 else
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3168 fi
3169
3170
3171 fi
3172 if test -z "$CC"; then
3173 if test -n "$ac_tool_prefix"; then
3174 for ac_prog in cl.exe
3175 do
3176 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3177 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179 $as_echo_n "checking for $ac_word... " >&6; }
3180 if ${ac_cv_prog_CC+:} false; then :
3181 $as_echo_n "(cached) " >&6
3182 else
3183 if test -n "$CC"; then
3184 ac_cv_prog_CC="$CC" # Let the user override the test.
3185 else
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH
3188 do
3189 IFS=$as_save_IFS
3190 test -z "$as_dir" && as_dir=.
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3193 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 break 2
3196 fi
3197 done
3198 done
3199 IFS=$as_save_IFS
3200
3201 fi
3202 fi
3203 CC=$ac_cv_prog_CC
3204 if test -n "$CC"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3206 $as_echo "$CC" >&6; }
3207 else
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3210 fi
3211
3212
3213 test -n "$CC" && break
3214 done
3215 fi
3216 if test -z "$CC"; then
3217 ac_ct_CC=$CC
3218 for ac_prog in cl.exe
3219 do
3220 # Extract the first word of "$ac_prog", so it can be a program name with args.
3221 set dummy $ac_prog; ac_word=$2
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223 $as_echo_n "checking for $ac_word... " >&6; }
3224 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3225 $as_echo_n "(cached) " >&6
3226 else
3227 if test -n "$ac_ct_CC"; then
3228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3229 else
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3232 do
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3237 ac_cv_prog_ac_ct_CC="$ac_prog"
3238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3239 break 2
3240 fi
3241 done
3242 done
3243 IFS=$as_save_IFS
3244
3245 fi
3246 fi
3247 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3248 if test -n "$ac_ct_CC"; then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3250 $as_echo "$ac_ct_CC" >&6; }
3251 else
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3254 fi
3255
3256
3257 test -n "$ac_ct_CC" && break
3258 done
3259
3260 if test "x$ac_ct_CC" = x; then
3261 CC=""
3262 else
3263 case $cross_compiling:$ac_tool_warned in
3264 yes:)
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3267 ac_tool_warned=yes ;;
3268 esac
3269 CC=$ac_ct_CC
3270 fi
3271 fi
3272
3273 fi
3274
3275
3276 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278 as_fn_error $? "no acceptable C compiler found in \$PATH
3279 See \`config.log' for more details" "$LINENO" 5; }
3280
3281 # Provide some information about the compiler.
3282 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3283 set X $ac_compile
3284 ac_compiler=$2
3285 for ac_option in --version -v -V -qversion; do
3286 { { ac_try="$ac_compiler $ac_option >&5"
3287 case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290 esac
3291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292 $as_echo "$ac_try_echo"; } >&5
3293 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3294 ac_status=$?
3295 if test -s conftest.err; then
3296 sed '10a\
3297 ... rest of stderr output deleted ...
3298 10q' conftest.err >conftest.er1
3299 cat conftest.er1 >&5
3300 fi
3301 rm -f conftest.er1 conftest.err
3302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3303 test $ac_status = 0; }
3304 done
3305
3306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307 /* end confdefs.h. */
3308
3309 int
3310 main ()
3311 {
3312
3313 ;
3314 return 0;
3315 }
3316 _ACEOF
3317 ac_clean_files_save=$ac_clean_files
3318 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3319 # Try to create an executable without -o first, disregard a.out.
3320 # It will help us diagnose broken compilers, and finding out an intuition
3321 # of exeext.
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3323 $as_echo_n "checking whether the C compiler works... " >&6; }
3324 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3325
3326 # The possible output files:
3327 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3328
3329 ac_rmfiles=
3330 for ac_file in $ac_files
3331 do
3332 case $ac_file in
3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3334 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3335 esac
3336 done
3337 rm -f $ac_rmfiles
3338
3339 if { { ac_try="$ac_link_default"
3340 case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343 esac
3344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3345 $as_echo "$ac_try_echo"; } >&5
3346 (eval "$ac_link_default") 2>&5
3347 ac_status=$?
3348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3349 test $ac_status = 0; }; then :
3350 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3351 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3352 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3353 # so that the user can short-circuit this test for compilers unknown to
3354 # Autoconf.
3355 for ac_file in $ac_files ''
3356 do
3357 test -f "$ac_file" || continue
3358 case $ac_file in
3359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3360 ;;
3361 [ab].out )
3362 # We found the default executable, but exeext='' is most
3363 # certainly right.
3364 break;;
3365 *.* )
3366 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3367 then :; else
3368 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3369 fi
3370 # We set ac_cv_exeext here because the later test for it is not
3371 # safe: cross compilers may not add the suffix if given an `-o'
3372 # argument, so we may need to know it at that point already.
3373 # Even if this section looks crufty: it has the advantage of
3374 # actually working.
3375 break;;
3376 * )
3377 break;;
3378 esac
3379 done
3380 test "$ac_cv_exeext" = no && ac_cv_exeext=
3381
3382 else
3383 ac_file=''
3384 fi
3385 if test -z "$ac_file"; then :
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3387 $as_echo "no" >&6; }
3388 $as_echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3390
3391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 as_fn_error 77 "C compiler cannot create executables
3394 See \`config.log' for more details" "$LINENO" 5; }
3395 else
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3397 $as_echo "yes" >&6; }
3398 fi
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3400 $as_echo_n "checking for C compiler default output file name... " >&6; }
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3402 $as_echo "$ac_file" >&6; }
3403 ac_exeext=$ac_cv_exeext
3404
3405 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3406 ac_clean_files=$ac_clean_files_save
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3408 $as_echo_n "checking for suffix of executables... " >&6; }
3409 if { { ac_try="$ac_link"
3410 case "(($ac_try" in
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3413 esac
3414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3415 $as_echo "$ac_try_echo"; } >&5
3416 (eval "$ac_link") 2>&5
3417 ac_status=$?
3418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419 test $ac_status = 0; }; then :
3420 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3421 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3422 # work properly (i.e., refer to `conftest.exe'), while it won't with
3423 # `rm'.
3424 for ac_file in conftest.exe conftest conftest.*; do
3425 test -f "$ac_file" || continue
3426 case $ac_file in
3427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3428 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3429 break;;
3430 * ) break;;
3431 esac
3432 done
3433 else
3434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3437 See \`config.log' for more details" "$LINENO" 5; }
3438 fi
3439 rm -f conftest conftest$ac_cv_exeext
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3441 $as_echo "$ac_cv_exeext" >&6; }
3442
3443 rm -f conftest.$ac_ext
3444 EXEEXT=$ac_cv_exeext
3445 ac_exeext=$EXEEXT
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3448 #include <stdio.h>
3449 int
3450 main ()
3451 {
3452 FILE *f = fopen ("conftest.out", "w");
3453 return ferror (f) || fclose (f) != 0;
3454
3455 ;
3456 return 0;
3457 }
3458 _ACEOF
3459 ac_clean_files="$ac_clean_files conftest.out"
3460 # Check that the compiler produces executables we can run. If not, either
3461 # the compiler is broken, or we cross compile.
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3463 $as_echo_n "checking whether we are cross compiling... " >&6; }
3464 if test "$cross_compiling" != yes; then
3465 { { ac_try="$ac_link"
3466 case "(($ac_try" in
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3469 esac
3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471 $as_echo "$ac_try_echo"; } >&5
3472 (eval "$ac_link") 2>&5
3473 ac_status=$?
3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475 test $ac_status = 0; }
3476 if { ac_try='./conftest$ac_cv_exeext'
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_try") 2>&5
3484 ac_status=$?
3485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3486 test $ac_status = 0; }; }; then
3487 cross_compiling=no
3488 else
3489 if test "$cross_compiling" = maybe; then
3490 cross_compiling=yes
3491 else
3492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3494 as_fn_error $? "cannot run C compiled programs.
3495 If you meant to cross compile, use \`--host'.
3496 See \`config.log' for more details" "$LINENO" 5; }
3497 fi
3498 fi
3499 fi
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3501 $as_echo "$cross_compiling" >&6; }
3502
3503 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3504 ac_clean_files=$ac_clean_files_save
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3506 $as_echo_n "checking for suffix of object files... " >&6; }
3507 if ${ac_cv_objext+:} false; then :
3508 $as_echo_n "(cached) " >&6
3509 else
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h. */
3512
3513 int
3514 main ()
3515 {
3516
3517 ;
3518 return 0;
3519 }
3520 _ACEOF
3521 rm -f conftest.o conftest.obj
3522 if { { ac_try="$ac_compile"
3523 case "(($ac_try" in
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3526 esac
3527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3528 $as_echo "$ac_try_echo"; } >&5
3529 (eval "$ac_compile") 2>&5
3530 ac_status=$?
3531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3532 test $ac_status = 0; }; then :
3533 for ac_file in conftest.o conftest.obj conftest.*; do
3534 test -f "$ac_file" || continue;
3535 case $ac_file in
3536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3537 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3538 break;;
3539 esac
3540 done
3541 else
3542 $as_echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3544
3545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3547 as_fn_error $? "cannot compute suffix of object files: cannot compile
3548 See \`config.log' for more details" "$LINENO" 5; }
3549 fi
3550 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3551 fi
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3553 $as_echo "$ac_cv_objext" >&6; }
3554 OBJEXT=$ac_cv_objext
3555 ac_objext=$OBJEXT
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3557 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3558 if ${ac_cv_c_compiler_gnu+:} false; then :
3559 $as_echo_n "(cached) " >&6
3560 else
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3563
3564 int
3565 main ()
3566 {
3567 #ifndef __GNUC__
3568 choke me
3569 #endif
3570
3571 ;
3572 return 0;
3573 }
3574 _ACEOF
3575 if ac_fn_c_try_compile "$LINENO"; then :
3576 ac_compiler_gnu=yes
3577 else
3578 ac_compiler_gnu=no
3579 fi
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3582
3583 fi
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3585 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3586 if test $ac_compiler_gnu = yes; then
3587 GCC=yes
3588 else
3589 GCC=
3590 fi
3591 ac_test_CFLAGS=${CFLAGS+set}
3592 ac_save_CFLAGS=$CFLAGS
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3594 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3595 if ${ac_cv_prog_cc_g+:} false; then :
3596 $as_echo_n "(cached) " >&6
3597 else
3598 ac_save_c_werror_flag=$ac_c_werror_flag
3599 ac_c_werror_flag=yes
3600 ac_cv_prog_cc_g=no
3601 CFLAGS="-g"
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h. */
3604
3605 int
3606 main ()
3607 {
3608
3609 ;
3610 return 0;
3611 }
3612 _ACEOF
3613 if ac_fn_c_try_compile "$LINENO"; then :
3614 ac_cv_prog_cc_g=yes
3615 else
3616 CFLAGS=""
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h. */
3619
3620 int
3621 main ()
3622 {
3623
3624 ;
3625 return 0;
3626 }
3627 _ACEOF
3628 if ac_fn_c_try_compile "$LINENO"; then :
3629
3630 else
3631 ac_c_werror_flag=$ac_save_c_werror_flag
3632 CFLAGS="-g"
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3635
3636 int
3637 main ()
3638 {
3639
3640 ;
3641 return 0;
3642 }
3643 _ACEOF
3644 if ac_fn_c_try_compile "$LINENO"; then :
3645 ac_cv_prog_cc_g=yes
3646 fi
3647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3648 fi
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 fi
3651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652 ac_c_werror_flag=$ac_save_c_werror_flag
3653 fi
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3655 $as_echo "$ac_cv_prog_cc_g" >&6; }
3656 if test "$ac_test_CFLAGS" = set; then
3657 CFLAGS=$ac_save_CFLAGS
3658 elif test $ac_cv_prog_cc_g = yes; then
3659 if test "$GCC" = yes; then
3660 CFLAGS="-g -O2"
3661 else
3662 CFLAGS="-g"
3663 fi
3664 else
3665 if test "$GCC" = yes; then
3666 CFLAGS="-O2"
3667 else
3668 CFLAGS=
3669 fi
3670 fi
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3672 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3673 if ${ac_cv_prog_cc_c89+:} false; then :
3674 $as_echo_n "(cached) " >&6
3675 else
3676 ac_cv_prog_cc_c89=no
3677 ac_save_CC=$CC
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3680 #include <stdarg.h>
3681 #include <stdio.h>
3682 #include <sys/types.h>
3683 #include <sys/stat.h>
3684 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3685 struct buf { int x; };
3686 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3687 static char *e (p, i)
3688 char **p;
3689 int i;
3690 {
3691 return p[i];
3692 }
3693 static char *f (char * (*g) (char **, int), char **p, ...)
3694 {
3695 char *s;
3696 va_list v;
3697 va_start (v,p);
3698 s = g (p, va_arg (v,int));
3699 va_end (v);
3700 return s;
3701 }
3702
3703 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3704 function prototypes and stuff, but not '\xHH' hex character constants.
3705 These don't provoke an error unfortunately, instead are silently treated
3706 as 'x'. The following induces an error, until -std is added to get
3707 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3708 array size at least. It's necessary to write '\x00'==0 to get something
3709 that's true only with -std. */
3710 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3711
3712 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3713 inside strings and character constants. */
3714 #define FOO(x) 'x'
3715 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3716
3717 int test (int i, double x);
3718 struct s1 {int (*f) (int a);};
3719 struct s2 {int (*f) (double a);};
3720 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3721 int argc;
3722 char **argv;
3723 int
3724 main ()
3725 {
3726 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3727 ;
3728 return 0;
3729 }
3730 _ACEOF
3731 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3732 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3733 do
3734 CC="$ac_save_CC $ac_arg"
3735 if ac_fn_c_try_compile "$LINENO"; then :
3736 ac_cv_prog_cc_c89=$ac_arg
3737 fi
3738 rm -f core conftest.err conftest.$ac_objext
3739 test "x$ac_cv_prog_cc_c89" != "xno" && break
3740 done
3741 rm -f conftest.$ac_ext
3742 CC=$ac_save_CC
3743
3744 fi
3745 # AC_CACHE_VAL
3746 case "x$ac_cv_prog_cc_c89" in
3747 x)
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3749 $as_echo "none needed" >&6; } ;;
3750 xno)
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3752 $as_echo "unsupported" >&6; } ;;
3753 *)
3754 CC="$CC $ac_cv_prog_cc_c89"
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3756 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3757 esac
3758 if test "x$ac_cv_prog_cc_c89" != xno; then :
3759
3760 fi
3761
3762 ac_ext=c
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3767
3768 depcc="$CC" am_compiler_list=
3769
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3771 $as_echo_n "checking dependency style of $depcc... " >&6; }
3772 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3773 $as_echo_n "(cached) " >&6
3774 else
3775 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3776 # We make a subdir and do the tests there. Otherwise we can end up
3777 # making bogus files that we don't know about and never remove. For
3778 # instance it was reported that on HP-UX the gcc test will end up
3779 # making a dummy file named `D' -- because `-MD' means `put the output
3780 # in D'.
3781 mkdir conftest.dir
3782 # Copy depcomp to subdir because otherwise we won't find it if we're
3783 # using a relative directory.
3784 cp "$am_depcomp" conftest.dir
3785 cd conftest.dir
3786 # We will build objects and dependencies in a subdirectory because
3787 # it helps to detect inapplicable dependency modes. For instance
3788 # both Tru64's cc and ICC support -MD to output dependencies as a
3789 # side effect of compilation, but ICC will put the dependencies in
3790 # the current directory while Tru64 will put them in the object
3791 # directory.
3792 mkdir sub
3793
3794 am_cv_CC_dependencies_compiler_type=none
3795 if test "$am_compiler_list" = ""; then
3796 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3797 fi
3798 am__universal=false
3799 case " $depcc " in #(
3800 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3801 esac
3802
3803 for depmode in $am_compiler_list; do
3804 # Setup a source with many dependencies, because some compilers
3805 # like to wrap large dependency lists on column 80 (with \), and
3806 # we should not choose a depcomp mode which is confused by this.
3807 #
3808 # We need to recreate these files for each test, as the compiler may
3809 # overwrite some of them when testing with obscure command lines.
3810 # This happens at least with the AIX C compiler.
3811 : > sub/conftest.c
3812 for i in 1 2 3 4 5 6; do
3813 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3814 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3815 # Solaris 8's {/usr,}/bin/sh.
3816 touch sub/conftst$i.h
3817 done
3818 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3819
3820 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3821 # mode. It turns out that the SunPro C++ compiler does not properly
3822 # handle `-M -o', and we need to detect this. Also, some Intel
3823 # versions had trouble with output in subdirs
3824 am__obj=sub/conftest.${OBJEXT-o}
3825 am__minus_obj="-o $am__obj"
3826 case $depmode in
3827 gcc)
3828 # This depmode causes a compiler race in universal mode.
3829 test "$am__universal" = false || continue
3830 ;;
3831 nosideeffect)
3832 # after this tag, mechanisms are not by side-effect, so they'll
3833 # only be used when explicitly requested
3834 if test "x$enable_dependency_tracking" = xyes; then
3835 continue
3836 else
3837 break
3838 fi
3839 ;;
3840 msvisualcpp | msvcmsys)
3841 # This compiler won't grok `-c -o', but also, the minuso test has
3842 # not run yet. These depmodes are late enough in the game, and
3843 # so weak that their functioning should not be impacted.
3844 am__obj=conftest.${OBJEXT-o}
3845 am__minus_obj=
3846 ;;
3847 none) break ;;
3848 esac
3849 if depmode=$depmode \
3850 source=sub/conftest.c object=$am__obj \
3851 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3852 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3853 >/dev/null 2>conftest.err &&
3854 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3855 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3856 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3857 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3858 # icc doesn't choke on unknown options, it will just issue warnings
3859 # or remarks (even with -Werror). So we grep stderr for any message
3860 # that says an option was ignored or not supported.
3861 # When given -MP, icc 7.0 and 7.1 complain thusly:
3862 # icc: Command line warning: ignoring option '-M'; no argument required
3863 # The diagnosis changed in icc 8.0:
3864 # icc: Command line remark: option '-MP' not supported
3865 if (grep 'ignoring option' conftest.err ||
3866 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3867 am_cv_CC_dependencies_compiler_type=$depmode
3868 break
3869 fi
3870 fi
3871 done
3872
3873 cd ..
3874 rm -rf conftest.dir
3875 else
3876 am_cv_CC_dependencies_compiler_type=none
3877 fi
3878
3879 fi
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3881 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3882 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3883
3884 if
3885 test "x$enable_dependency_tracking" != xno \
3886 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3887 am__fastdepCC_TRUE=
3888 am__fastdepCC_FALSE='#'
3889 else
3890 am__fastdepCC_TRUE='#'
3891 am__fastdepCC_FALSE=
3892 fi
3893
3894
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3896 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3897 if ${ac_cv_path_SED+:} false; then :
3898 $as_echo_n "(cached) " >&6
3899 else
3900 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3901 for ac_i in 1 2 3 4 5 6 7; do
3902 ac_script="$ac_script$as_nl$ac_script"
3903 done
3904 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3905 { ac_script=; unset ac_script;}
3906 if test -z "$SED"; then
3907 ac_path_SED_found=false
3908 # Loop through the user's path and test for each of PROGNAME-LIST
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH
3911 do
3912 IFS=$as_save_IFS
3913 test -z "$as_dir" && as_dir=.
3914 for ac_prog in sed gsed; do
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3917 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3918 # Check for GNU ac_path_SED and select it if it is found.
3919 # Check for GNU $ac_path_SED
3920 case `"$ac_path_SED" --version 2>&1` in
3921 *GNU*)
3922 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3923 *)
3924 ac_count=0
3925 $as_echo_n 0123456789 >"conftest.in"
3926 while :
3927 do
3928 cat "conftest.in" "conftest.in" >"conftest.tmp"
3929 mv "conftest.tmp" "conftest.in"
3930 cp "conftest.in" "conftest.nl"
3931 $as_echo '' >> "conftest.nl"
3932 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3933 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3934 as_fn_arith $ac_count + 1 && ac_count=$as_val
3935 if test $ac_count -gt ${ac_path_SED_max-0}; then
3936 # Best one so far, save it but keep looking for a better one
3937 ac_cv_path_SED="$ac_path_SED"
3938 ac_path_SED_max=$ac_count
3939 fi
3940 # 10*(2^10) chars as input seems more than enough
3941 test $ac_count -gt 10 && break
3942 done
3943 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3944 esac
3945
3946 $ac_path_SED_found && break 3
3947 done
3948 done
3949 done
3950 IFS=$as_save_IFS
3951 if test -z "$ac_cv_path_SED"; then
3952 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3953 fi
3954 else
3955 ac_cv_path_SED=$SED
3956 fi
3957
3958 fi
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3960 $as_echo "$ac_cv_path_SED" >&6; }
3961 SED="$ac_cv_path_SED"
3962 rm -f conftest.sed
3963
3964 test -z "$SED" && SED=sed
3965 Xsed="$SED -e 1s/^X//"
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3978 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3979 if ${ac_cv_path_GREP+:} false; then :
3980 $as_echo_n "(cached) " >&6
3981 else
3982 if test -z "$GREP"; then
3983 ac_path_GREP_found=false
3984 # Loop through the user's path and test for each of PROGNAME-LIST
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3987 do
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for ac_prog in grep ggrep; do
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3993 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3994 # Check for GNU ac_path_GREP and select it if it is found.
3995 # Check for GNU $ac_path_GREP
3996 case `"$ac_path_GREP" --version 2>&1` in
3997 *GNU*)
3998 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3999 *)
4000 ac_count=0
4001 $as_echo_n 0123456789 >"conftest.in"
4002 while :
4003 do
4004 cat "conftest.in" "conftest.in" >"conftest.tmp"
4005 mv "conftest.tmp" "conftest.in"
4006 cp "conftest.in" "conftest.nl"
4007 $as_echo 'GREP' >> "conftest.nl"
4008 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4010 as_fn_arith $ac_count + 1 && ac_count=$as_val
4011 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4012 # Best one so far, save it but keep looking for a better one
4013 ac_cv_path_GREP="$ac_path_GREP"
4014 ac_path_GREP_max=$ac_count
4015 fi
4016 # 10*(2^10) chars as input seems more than enough
4017 test $ac_count -gt 10 && break
4018 done
4019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4020 esac
4021
4022 $ac_path_GREP_found && break 3
4023 done
4024 done
4025 done
4026 IFS=$as_save_IFS
4027 if test -z "$ac_cv_path_GREP"; then
4028 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4029 fi
4030 else
4031 ac_cv_path_GREP=$GREP
4032 fi
4033
4034 fi
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4036 $as_echo "$ac_cv_path_GREP" >&6; }
4037 GREP="$ac_cv_path_GREP"
4038
4039
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4041 $as_echo_n "checking for egrep... " >&6; }
4042 if ${ac_cv_path_EGREP+:} false; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4046 then ac_cv_path_EGREP="$GREP -E"
4047 else
4048 if test -z "$EGREP"; then
4049 ac_path_EGREP_found=false
4050 # Loop through the user's path and test for each of PROGNAME-LIST
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4053 do
4054 IFS=$as_save_IFS
4055 test -z "$as_dir" && as_dir=.
4056 for ac_prog in egrep; do
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4059 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4060 # Check for GNU ac_path_EGREP and select it if it is found.
4061 # Check for GNU $ac_path_EGREP
4062 case `"$ac_path_EGREP" --version 2>&1` in
4063 *GNU*)
4064 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4065 *)
4066 ac_count=0
4067 $as_echo_n 0123456789 >"conftest.in"
4068 while :
4069 do
4070 cat "conftest.in" "conftest.in" >"conftest.tmp"
4071 mv "conftest.tmp" "conftest.in"
4072 cp "conftest.in" "conftest.nl"
4073 $as_echo 'EGREP' >> "conftest.nl"
4074 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4075 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4076 as_fn_arith $ac_count + 1 && ac_count=$as_val
4077 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4078 # Best one so far, save it but keep looking for a better one
4079 ac_cv_path_EGREP="$ac_path_EGREP"
4080 ac_path_EGREP_max=$ac_count
4081 fi
4082 # 10*(2^10) chars as input seems more than enough
4083 test $ac_count -gt 10 && break
4084 done
4085 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4086 esac
4087
4088 $ac_path_EGREP_found && break 3
4089 done
4090 done
4091 done
4092 IFS=$as_save_IFS
4093 if test -z "$ac_cv_path_EGREP"; then
4094 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4095 fi
4096 else
4097 ac_cv_path_EGREP=$EGREP
4098 fi
4099
4100 fi
4101 fi
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4103 $as_echo "$ac_cv_path_EGREP" >&6; }
4104 EGREP="$ac_cv_path_EGREP"
4105
4106
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4108 $as_echo_n "checking for fgrep... " >&6; }
4109 if ${ac_cv_path_FGREP+:} false; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4113 then ac_cv_path_FGREP="$GREP -F"
4114 else
4115 if test -z "$FGREP"; then
4116 ac_path_FGREP_found=false
4117 # Loop through the user's path and test for each of PROGNAME-LIST
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4120 do
4121 IFS=$as_save_IFS
4122 test -z "$as_dir" && as_dir=.
4123 for ac_prog in fgrep; do
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4126 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4127 # Check for GNU ac_path_FGREP and select it if it is found.
4128 # Check for GNU $ac_path_FGREP
4129 case `"$ac_path_FGREP" --version 2>&1` in
4130 *GNU*)
4131 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4132 *)
4133 ac_count=0
4134 $as_echo_n 0123456789 >"conftest.in"
4135 while :
4136 do
4137 cat "conftest.in" "conftest.in" >"conftest.tmp"
4138 mv "conftest.tmp" "conftest.in"
4139 cp "conftest.in" "conftest.nl"
4140 $as_echo 'FGREP' >> "conftest.nl"
4141 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4143 as_fn_arith $ac_count + 1 && ac_count=$as_val
4144 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4145 # Best one so far, save it but keep looking for a better one
4146 ac_cv_path_FGREP="$ac_path_FGREP"
4147 ac_path_FGREP_max=$ac_count
4148 fi
4149 # 10*(2^10) chars as input seems more than enough
4150 test $ac_count -gt 10 && break
4151 done
4152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4153 esac
4154
4155 $ac_path_FGREP_found && break 3
4156 done
4157 done
4158 done
4159 IFS=$as_save_IFS
4160 if test -z "$ac_cv_path_FGREP"; then
4161 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4162 fi
4163 else
4164 ac_cv_path_FGREP=$FGREP
4165 fi
4166
4167 fi
4168 fi
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4170 $as_echo "$ac_cv_path_FGREP" >&6; }
4171 FGREP="$ac_cv_path_FGREP"
4172
4173
4174 test -z "$GREP" && GREP=grep
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194 # Check whether --with-gnu-ld was given.
4195 if test "${with_gnu_ld+set}" = set; then :
4196 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4197 else
4198 with_gnu_ld=no
4199 fi
4200
4201 ac_prog=ld
4202 if test "$GCC" = yes; then
4203 # Check if gcc -print-prog-name=ld gives a path.
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4205 $as_echo_n "checking for ld used by $CC... " >&6; }
4206 case $host in
4207 *-*-mingw*)
4208 # gcc leaves a trailing carriage return which upsets mingw
4209 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4210 *)
4211 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4212 esac
4213 case $ac_prog in
4214 # Accept absolute paths.
4215 [\\/]* | ?:[\\/]*)
4216 re_direlt='/[^/][^/]*/\.\./'
4217 # Canonicalize the pathname of ld
4218 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4219 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4220 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4221 done
4222 test -z "$LD" && LD="$ac_prog"
4223 ;;
4224 "")
4225 # If it fails, then pretend we aren't using GCC.
4226 ac_prog=ld
4227 ;;
4228 *)
4229 # If it is relative, then search for the first ld in PATH.
4230 with_gnu_ld=unknown
4231 ;;
4232 esac
4233 elif test "$with_gnu_ld" = yes; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4235 $as_echo_n "checking for GNU ld... " >&6; }
4236 else
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4238 $as_echo_n "checking for non-GNU ld... " >&6; }
4239 fi
4240 if ${lt_cv_path_LD+:} false; then :
4241 $as_echo_n "(cached) " >&6
4242 else
4243 if test -z "$LD"; then
4244 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4245 for ac_dir in $PATH; do
4246 IFS="$lt_save_ifs"
4247 test -z "$ac_dir" && ac_dir=.
4248 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4249 lt_cv_path_LD="$ac_dir/$ac_prog"
4250 # Check to see if the program is GNU ld. I'd rather use --version,
4251 # but apparently some variants of GNU ld only accept -v.
4252 # Break only if it was the GNU/non-GNU ld that we prefer.
4253 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4254 *GNU* | *'with BFD'*)
4255 test "$with_gnu_ld" != no && break
4256 ;;
4257 *)
4258 test "$with_gnu_ld" != yes && break
4259 ;;
4260 esac
4261 fi
4262 done
4263 IFS="$lt_save_ifs"
4264 else
4265 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4266 fi
4267 fi
4268
4269 LD="$lt_cv_path_LD"
4270 if test -n "$LD"; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4272 $as_echo "$LD" >&6; }
4273 else
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4276 fi
4277 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4279 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4280 if ${lt_cv_prog_gnu_ld+:} false; then :
4281 $as_echo_n "(cached) " >&6
4282 else
4283 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4284 case `$LD -v 2>&1 </dev/null` in
4285 *GNU* | *'with BFD'*)
4286 lt_cv_prog_gnu_ld=yes
4287 ;;
4288 *)
4289 lt_cv_prog_gnu_ld=no
4290 ;;
4291 esac
4292 fi
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4294 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4295 with_gnu_ld=$lt_cv_prog_gnu_ld
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4306 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4307 if ${lt_cv_path_NM+:} false; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 if test -n "$NM"; then
4311 # Let the user override the test.
4312 lt_cv_path_NM="$NM"
4313 else
4314 lt_nm_to_check="${ac_tool_prefix}nm"
4315 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4316 lt_nm_to_check="$lt_nm_to_check nm"
4317 fi
4318 for lt_tmp_nm in $lt_nm_to_check; do
4319 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4320 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4321 IFS="$lt_save_ifs"
4322 test -z "$ac_dir" && ac_dir=.
4323 tmp_nm="$ac_dir/$lt_tmp_nm"
4324 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4325 # Check to see if the nm accepts a BSD-compat flag.
4326 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4327 # nm: unknown option "B" ignored
4328 # Tru64's nm complains that /dev/null is an invalid object file
4329 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4330 */dev/null* | *'Invalid file or object type'*)
4331 lt_cv_path_NM="$tmp_nm -B"
4332 break
4333 ;;
4334 *)
4335 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4336 */dev/null*)
4337 lt_cv_path_NM="$tmp_nm -p"
4338 break
4339 ;;
4340 *)
4341 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4342 continue # so that we can try to find one that supports BSD flags
4343 ;;
4344 esac
4345 ;;
4346 esac
4347 fi
4348 done
4349 IFS="$lt_save_ifs"
4350 done
4351 : ${lt_cv_path_NM=no}
4352 fi
4353 fi
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4355 $as_echo "$lt_cv_path_NM" >&6; }
4356 if test "$lt_cv_path_NM" != "no"; then
4357 NM="$lt_cv_path_NM"
4358 else
4359 # Didn't find any BSD compatible name lister, look for dumpbin.
4360 if test -n "$DUMPBIN"; then :
4361 # Let the user override the test.
4362 else
4363 if test -n "$ac_tool_prefix"; then
4364 for ac_prog in dumpbin "link -dump"
4365 do
4366 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4367 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4369 $as_echo_n "checking for $ac_word... " >&6; }
4370 if ${ac_cv_prog_DUMPBIN+:} false; then :
4371 $as_echo_n "(cached) " >&6
4372 else
4373 if test -n "$DUMPBIN"; then
4374 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4375 else
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $PATH
4378 do
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 break 2
4386 fi
4387 done
4388 done
4389 IFS=$as_save_IFS
4390
4391 fi
4392 fi
4393 DUMPBIN=$ac_cv_prog_DUMPBIN
4394 if test -n "$DUMPBIN"; then
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4396 $as_echo "$DUMPBIN" >&6; }
4397 else
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399 $as_echo "no" >&6; }
4400 fi
4401
4402
4403 test -n "$DUMPBIN" && break
4404 done
4405 fi
4406 if test -z "$DUMPBIN"; then
4407 ac_ct_DUMPBIN=$DUMPBIN
4408 for ac_prog in dumpbin "link -dump"
4409 do
4410 # Extract the first word of "$ac_prog", so it can be a program name with args.
4411 set dummy $ac_prog; ac_word=$2
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4413 $as_echo_n "checking for $ac_word... " >&6; }
4414 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4415 $as_echo_n "(cached) " >&6
4416 else
4417 if test -n "$ac_ct_DUMPBIN"; then
4418 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4419 else
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH
4422 do
4423 IFS=$as_save_IFS
4424 test -z "$as_dir" && as_dir=.
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4427 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 break 2
4430 fi
4431 done
4432 done
4433 IFS=$as_save_IFS
4434
4435 fi
4436 fi
4437 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4438 if test -n "$ac_ct_DUMPBIN"; then
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4440 $as_echo "$ac_ct_DUMPBIN" >&6; }
4441 else
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4443 $as_echo "no" >&6; }
4444 fi
4445
4446
4447 test -n "$ac_ct_DUMPBIN" && break
4448 done
4449
4450 if test "x$ac_ct_DUMPBIN" = x; then
4451 DUMPBIN=":"
4452 else
4453 case $cross_compiling:$ac_tool_warned in
4454 yes:)
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4457 ac_tool_warned=yes ;;
4458 esac
4459 DUMPBIN=$ac_ct_DUMPBIN
4460 fi
4461 fi
4462
4463 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4464 *COFF*)
4465 DUMPBIN="$DUMPBIN -symbols"
4466 ;;
4467 *)
4468 DUMPBIN=:
4469 ;;
4470 esac
4471 fi
4472
4473 if test "$DUMPBIN" != ":"; then
4474 NM="$DUMPBIN"
4475 fi
4476 fi
4477 test -z "$NM" && NM=nm
4478
4479
4480
4481
4482
4483
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4485 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4486 if ${lt_cv_nm_interface+:} false; then :
4487 $as_echo_n "(cached) " >&6
4488 else
4489 lt_cv_nm_interface="BSD nm"
4490 echo "int some_variable = 0;" > conftest.$ac_ext
4491 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4492 (eval "$ac_compile" 2>conftest.err)
4493 cat conftest.err >&5
4494 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4495 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4496 cat conftest.err >&5
4497 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4498 cat conftest.out >&5
4499 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4500 lt_cv_nm_interface="MS dumpbin"
4501 fi
4502 rm -f conftest*
4503 fi
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4505 $as_echo "$lt_cv_nm_interface" >&6; }
4506
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4508 $as_echo_n "checking whether ln -s works... " >&6; }
4509 LN_S=$as_ln_s
4510 if test "$LN_S" = "ln -s"; then
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4512 $as_echo "yes" >&6; }
4513 else
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4515 $as_echo "no, using $LN_S" >&6; }
4516 fi
4517
4518 # find the maximum length of command line arguments
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4520 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4521 if ${lt_cv_sys_max_cmd_len+:} false; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 i=0
4525 teststring="ABCD"
4526
4527 case $build_os in
4528 msdosdjgpp*)
4529 # On DJGPP, this test can blow up pretty badly due to problems in libc
4530 # (any single argument exceeding 2000 bytes causes a buffer overrun
4531 # during glob expansion). Even if it were fixed, the result of this
4532 # check would be larger than it should be.
4533 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4534 ;;
4535
4536 gnu*)
4537 # Under GNU Hurd, this test is not required because there is
4538 # no limit to the length of command line arguments.
4539 # Libtool will interpret -1 as no limit whatsoever
4540 lt_cv_sys_max_cmd_len=-1;
4541 ;;
4542
4543 cygwin* | mingw* | cegcc*)
4544 # On Win9x/ME, this test blows up -- it succeeds, but takes
4545 # about 5 minutes as the teststring grows exponentially.
4546 # Worse, since 9x/ME are not pre-emptively multitasking,
4547 # you end up with a "frozen" computer, even though with patience
4548 # the test eventually succeeds (with a max line length of 256k).
4549 # Instead, let's just punt: use the minimum linelength reported by
4550 # all of the supported platforms: 8192 (on NT/2K/XP).
4551 lt_cv_sys_max_cmd_len=8192;
4552 ;;
4553
4554 mint*)
4555 # On MiNT this can take a long time and run out of memory.
4556 lt_cv_sys_max_cmd_len=8192;
4557 ;;
4558
4559 amigaos*)
4560 # On AmigaOS with pdksh, this test takes hours, literally.
4561 # So we just punt and use a minimum line length of 8192.
4562 lt_cv_sys_max_cmd_len=8192;
4563 ;;
4564
4565 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4566 # This has been around since 386BSD, at least. Likely further.
4567 if test -x /sbin/sysctl; then
4568 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4569 elif test -x /usr/sbin/sysctl; then
4570 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4571 else
4572 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4573 fi
4574 # And add a safety zone
4575 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4576 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4577 ;;
4578
4579 interix*)
4580 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4581 lt_cv_sys_max_cmd_len=196608
4582 ;;
4583
4584 osf*)
4585 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4586 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4587 # nice to cause kernel panics so lets avoid the loop below.
4588 # First set a reasonable default.
4589 lt_cv_sys_max_cmd_len=16384
4590 #
4591 if test -x /sbin/sysconfig; then
4592 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4593 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4594 esac
4595 fi
4596 ;;
4597 sco3.2v5*)
4598 lt_cv_sys_max_cmd_len=102400
4599 ;;
4600 sysv5* | sco5v6* | sysv4.2uw2*)
4601 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4602 if test -n "$kargmax"; then
4603 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4604 else
4605 lt_cv_sys_max_cmd_len=32768
4606 fi
4607 ;;
4608 *)
4609 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4610 if test -n "$lt_cv_sys_max_cmd_len"; then
4611 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4612 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4613 else
4614 # Make teststring a little bigger before we do anything with it.
4615 # a 1K string should be a reasonable start.
4616 for i in 1 2 3 4 5 6 7 8 ; do
4617 teststring=$teststring$teststring
4618 done
4619 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4620 # If test is not a shell built-in, we'll probably end up computing a
4621 # maximum length that is only half of the actual maximum length, but
4622 # we can't tell.
4623 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4624 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4625 test $i != 17 # 1/2 MB should be enough
4626 do
4627 i=`expr $i + 1`
4628 teststring=$teststring$teststring
4629 done
4630 # Only check the string length outside the loop.
4631 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4632 teststring=
4633 # Add a significant safety factor because C++ compilers can tack on
4634 # massive amounts of additional arguments before passing them to the
4635 # linker. It appears as though 1/2 is a usable value.
4636 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4637 fi
4638 ;;
4639 esac
4640
4641 fi
4642
4643 if test -n $lt_cv_sys_max_cmd_len ; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4645 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4646 else
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4648 $as_echo "none" >&6; }
4649 fi
4650 max_cmd_len=$lt_cv_sys_max_cmd_len
4651
4652
4653
4654
4655
4656
4657 : ${CP="cp -f"}
4658 : ${MV="mv -f"}
4659 : ${RM="rm -f"}
4660
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4662 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4663 # Try some XSI features
4664 xsi_shell=no
4665 ( _lt_dummy="a/b/c"
4666 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4667 = c,a/b,, \
4668 && eval 'test $(( 1 + 1 )) -eq 2 \
4669 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4670 && xsi_shell=yes
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4672 $as_echo "$xsi_shell" >&6; }
4673
4674
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4676 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4677 lt_shell_append=no
4678 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4679 >/dev/null 2>&1 \
4680 && lt_shell_append=yes
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4682 $as_echo "$lt_shell_append" >&6; }
4683
4684
4685 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4686 lt_unset=unset
4687 else
4688 lt_unset=false
4689 fi
4690
4691
4692
4693
4694
4695 # test EBCDIC or ASCII
4696 case `echo X|tr X '\101'` in
4697 A) # ASCII based system
4698 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4699 lt_SP2NL='tr \040 \012'
4700 lt_NL2SP='tr \015\012 \040\040'
4701 ;;
4702 *) # EBCDIC based system
4703 lt_SP2NL='tr \100 \n'
4704 lt_NL2SP='tr \r\n \100\100'
4705 ;;
4706 esac
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4717 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4718 if ${lt_cv_ld_reload_flag+:} false; then :
4719 $as_echo_n "(cached) " >&6
4720 else
4721 lt_cv_ld_reload_flag='-r'
4722 fi
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4724 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4725 reload_flag=$lt_cv_ld_reload_flag
4726 case $reload_flag in
4727 "" | " "*) ;;
4728 *) reload_flag=" $reload_flag" ;;
4729 esac
4730 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4731 case $host_os in
4732 darwin*)
4733 if test "$GCC" = yes; then
4734 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4735 else
4736 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4737 fi
4738 ;;
4739 esac
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749 if test -n "$ac_tool_prefix"; then
4750 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4751 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if ${ac_cv_prog_OBJDUMP+:} false; then :
4755 $as_echo_n "(cached) " >&6
4756 else
4757 if test -n "$OBJDUMP"; then
4758 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4759 else
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4767 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 break 2
4770 fi
4771 done
4772 done
4773 IFS=$as_save_IFS
4774
4775 fi
4776 fi
4777 OBJDUMP=$ac_cv_prog_OBJDUMP
4778 if test -n "$OBJDUMP"; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4780 $as_echo "$OBJDUMP" >&6; }
4781 else
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4784 fi
4785
4786
4787 fi
4788 if test -z "$ac_cv_prog_OBJDUMP"; then
4789 ac_ct_OBJDUMP=$OBJDUMP
4790 # Extract the first word of "objdump", so it can be a program name with args.
4791 set dummy objdump; ac_word=$2
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 if test -n "$ac_ct_OBJDUMP"; then
4798 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4799 else
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803 IFS=$as_save_IFS
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 break 2
4810 fi
4811 done
4812 done
4813 IFS=$as_save_IFS
4814
4815 fi
4816 fi
4817 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4818 if test -n "$ac_ct_OBJDUMP"; then
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4820 $as_echo "$ac_ct_OBJDUMP" >&6; }
4821 else
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823 $as_echo "no" >&6; }
4824 fi
4825
4826 if test "x$ac_ct_OBJDUMP" = x; then
4827 OBJDUMP="false"
4828 else
4829 case $cross_compiling:$ac_tool_warned in
4830 yes:)
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4833 ac_tool_warned=yes ;;
4834 esac
4835 OBJDUMP=$ac_ct_OBJDUMP
4836 fi
4837 else
4838 OBJDUMP="$ac_cv_prog_OBJDUMP"
4839 fi
4840
4841 test -z "$OBJDUMP" && OBJDUMP=objdump
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4852 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4853 if ${lt_cv_deplibs_check_method+:} false; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 lt_cv_file_magic_cmd='$MAGIC_CMD'
4857 lt_cv_file_magic_test_file=
4858 lt_cv_deplibs_check_method='unknown'
4859 # Need to set the preceding variable on all platforms that support
4860 # interlibrary dependencies.
4861 # 'none' -- dependencies not supported.
4862 # `unknown' -- same as none, but documents that we really don't know.
4863 # 'pass_all' -- all dependencies passed with no checks.
4864 # 'test_compile' -- check by making test program.
4865 # 'file_magic [[regex]]' -- check by looking for files in library path
4866 # which responds to the $file_magic_cmd with a given extended regex.
4867 # If you have `file' or equivalent on your system and you're not sure
4868 # whether `pass_all' will *always* work, you probably want this one.
4869
4870 case $host_os in
4871 aix[4-9]*)
4872 lt_cv_deplibs_check_method=pass_all
4873 ;;
4874
4875 beos*)
4876 lt_cv_deplibs_check_method=pass_all
4877 ;;
4878
4879 bsdi[45]*)
4880 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4881 lt_cv_file_magic_cmd='/usr/bin/file -L'
4882 lt_cv_file_magic_test_file=/shlib/libc.so
4883 ;;
4884
4885 cygwin*)
4886 # func_win32_libid is a shell function defined in ltmain.sh
4887 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4888 lt_cv_file_magic_cmd='func_win32_libid'
4889 ;;
4890
4891 mingw* | pw32*)
4892 # Base MSYS/MinGW do not provide the 'file' command needed by
4893 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4894 # unless we find 'file', for example because we are cross-compiling.
4895 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4896 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4897 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4898 lt_cv_file_magic_cmd='func_win32_libid'
4899 else
4900 # Keep this pattern in sync with the one in func_win32_libid.
4901 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4902 lt_cv_file_magic_cmd='$OBJDUMP -f'
4903 fi
4904 ;;
4905
4906 cegcc*)
4907 # use the weaker test based on 'objdump'. See mingw*.
4908 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4909 lt_cv_file_magic_cmd='$OBJDUMP -f'
4910 ;;
4911
4912 darwin* | rhapsody*)
4913 lt_cv_deplibs_check_method=pass_all
4914 ;;
4915
4916 freebsd* | dragonfly*)
4917 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4918 case $host_cpu in
4919 i*86 )
4920 # Not sure whether the presence of OpenBSD here was a mistake.
4921 # Let's accept both of them until this is cleared up.
4922 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4923 lt_cv_file_magic_cmd=/usr/bin/file
4924 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4925 ;;
4926 esac
4927 else
4928 lt_cv_deplibs_check_method=pass_all
4929 fi
4930 ;;
4931
4932 gnu*)
4933 lt_cv_deplibs_check_method=pass_all
4934 ;;
4935
4936 haiku*)
4937 lt_cv_deplibs_check_method=pass_all
4938 ;;
4939
4940 hpux10.20* | hpux11*)
4941 lt_cv_file_magic_cmd=/usr/bin/file
4942 case $host_cpu in
4943 ia64*)
4944 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4945 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4946 ;;
4947 hppa*64*)
4948 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]'
4949 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4950 ;;
4951 *)
4952 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4953 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4954 ;;
4955 esac
4956 ;;
4957
4958 interix[3-9]*)
4959 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4960 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4961 ;;
4962
4963 irix5* | irix6* | nonstopux*)
4964 case $LD in
4965 *-32|*"-32 ") libmagic=32-bit;;
4966 *-n32|*"-n32 ") libmagic=N32;;
4967 *-64|*"-64 ") libmagic=64-bit;;
4968 *) libmagic=never-match;;
4969 esac
4970 lt_cv_deplibs_check_method=pass_all
4971 ;;
4972
4973 # This must be Linux ELF.
4974 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4975 lt_cv_deplibs_check_method=pass_all
4976 ;;
4977
4978 netbsd*)
4979 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4980 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4981 else
4982 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4983 fi
4984 ;;
4985
4986 newos6*)
4987 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4988 lt_cv_file_magic_cmd=/usr/bin/file
4989 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4990 ;;
4991
4992 *nto* | *qnx*)
4993 lt_cv_deplibs_check_method=pass_all
4994 ;;
4995
4996 openbsd*)
4997 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4999 else
5000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5001 fi
5002 ;;
5003
5004 osf3* | osf4* | osf5*)
5005 lt_cv_deplibs_check_method=pass_all
5006 ;;
5007
5008 rdos*)
5009 lt_cv_deplibs_check_method=pass_all
5010 ;;
5011
5012 solaris*)
5013 lt_cv_deplibs_check_method=pass_all
5014 ;;
5015
5016 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5017 lt_cv_deplibs_check_method=pass_all
5018 ;;
5019
5020 sysv4 | sysv4.3*)
5021 case $host_vendor in
5022 motorola)
5023 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]'
5024 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5025 ;;
5026 ncr)
5027 lt_cv_deplibs_check_method=pass_all
5028 ;;
5029 sequent)
5030 lt_cv_file_magic_cmd='/bin/file'
5031 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5032 ;;
5033 sni)
5034 lt_cv_file_magic_cmd='/bin/file'
5035 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5036 lt_cv_file_magic_test_file=/lib/libc.so
5037 ;;
5038 siemens)
5039 lt_cv_deplibs_check_method=pass_all
5040 ;;
5041 pc)
5042 lt_cv_deplibs_check_method=pass_all
5043 ;;
5044 esac
5045 ;;
5046
5047 tpf*)
5048 lt_cv_deplibs_check_method=pass_all
5049 ;;
5050 esac
5051
5052 fi
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5054 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5055 file_magic_cmd=$lt_cv_file_magic_cmd
5056 deplibs_check_method=$lt_cv_deplibs_check_method
5057 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070 if test -n "$ac_tool_prefix"; then
5071 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5072 set dummy ${ac_tool_prefix}ar; ac_word=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if ${ac_cv_prog_AR+:} false; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 if test -n "$AR"; then
5079 ac_cv_prog_AR="$AR" # Let the user override the test.
5080 else
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5083 do
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088 ac_cv_prog_AR="${ac_tool_prefix}ar"
5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 break 2
5091 fi
5092 done
5093 done
5094 IFS=$as_save_IFS
5095
5096 fi
5097 fi
5098 AR=$ac_cv_prog_AR
5099 if test -n "$AR"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5101 $as_echo "$AR" >&6; }
5102 else
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5105 fi
5106
5107
5108 fi
5109 if test -z "$ac_cv_prog_AR"; then
5110 ac_ct_AR=$AR
5111 # Extract the first word of "ar", so it can be a program name with args.
5112 set dummy ar; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5116 $as_echo_n "(cached) " >&6
5117 else
5118 if test -n "$ac_ct_AR"; then
5119 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5120 else
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5123 do
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128 ac_cv_prog_ac_ct_AR="ar"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5131 fi
5132 done
5133 done
5134 IFS=$as_save_IFS
5135
5136 fi
5137 fi
5138 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5139 if test -n "$ac_ct_AR"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5141 $as_echo "$ac_ct_AR" >&6; }
5142 else
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5145 fi
5146
5147 if test "x$ac_ct_AR" = x; then
5148 AR="false"
5149 else
5150 case $cross_compiling:$ac_tool_warned in
5151 yes:)
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5154 ac_tool_warned=yes ;;
5155 esac
5156 AR=$ac_ct_AR
5157 fi
5158 else
5159 AR="$ac_cv_prog_AR"
5160 fi
5161
5162 test -z "$AR" && AR=ar
5163 test -z "$AR_FLAGS" && AR_FLAGS=cru
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175 if test -n "$ac_tool_prefix"; then
5176 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5177 set dummy ${ac_tool_prefix}strip; ac_word=$2
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179 $as_echo_n "checking for $ac_word... " >&6; }
5180 if ${ac_cv_prog_STRIP+:} false; then :
5181 $as_echo_n "(cached) " >&6
5182 else
5183 if test -n "$STRIP"; then
5184 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5185 else
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH
5188 do
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 break 2
5196 fi
5197 done
5198 done
5199 IFS=$as_save_IFS
5200
5201 fi
5202 fi
5203 STRIP=$ac_cv_prog_STRIP
5204 if test -n "$STRIP"; then
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5206 $as_echo "$STRIP" >&6; }
5207 else
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 $as_echo "no" >&6; }
5210 fi
5211
5212
5213 fi
5214 if test -z "$ac_cv_prog_STRIP"; then
5215 ac_ct_STRIP=$STRIP
5216 # Extract the first word of "strip", so it can be a program name with args.
5217 set dummy strip; ac_word=$2
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 if test -n "$ac_ct_STRIP"; then
5224 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5225 else
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH
5228 do
5229 IFS=$as_save_IFS
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5233 ac_cv_prog_ac_ct_STRIP="strip"
5234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 break 2
5236 fi
5237 done
5238 done
5239 IFS=$as_save_IFS
5240
5241 fi
5242 fi
5243 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5244 if test -n "$ac_ct_STRIP"; then
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5246 $as_echo "$ac_ct_STRIP" >&6; }
5247 else
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5250 fi
5251
5252 if test "x$ac_ct_STRIP" = x; then
5253 STRIP=":"
5254 else
5255 case $cross_compiling:$ac_tool_warned in
5256 yes:)
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5259 ac_tool_warned=yes ;;
5260 esac
5261 STRIP=$ac_ct_STRIP
5262 fi
5263 else
5264 STRIP="$ac_cv_prog_STRIP"
5265 fi
5266
5267 test -z "$STRIP" && STRIP=:
5268
5269
5270
5271
5272
5273
5274 if test -n "$ac_tool_prefix"; then
5275 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5276 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if ${ac_cv_prog_RANLIB+:} false; then :
5280 $as_echo_n "(cached) " >&6
5281 else
5282 if test -n "$RANLIB"; then
5283 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5284 else
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 for as_dir in $PATH
5287 do
5288 IFS=$as_save_IFS
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5292 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 break 2
5295 fi
5296 done
5297 done
5298 IFS=$as_save_IFS
5299
5300 fi
5301 fi
5302 RANLIB=$ac_cv_prog_RANLIB
5303 if test -n "$RANLIB"; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5305 $as_echo "$RANLIB" >&6; }
5306 else
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308 $as_echo "no" >&6; }
5309 fi
5310
5311
5312 fi
5313 if test -z "$ac_cv_prog_RANLIB"; then
5314 ac_ct_RANLIB=$RANLIB
5315 # Extract the first word of "ranlib", so it can be a program name with args.
5316 set dummy ranlib; ac_word=$2
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318 $as_echo_n "checking for $ac_word... " >&6; }
5319 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5320 $as_echo_n "(cached) " >&6
5321 else
5322 if test -n "$ac_ct_RANLIB"; then
5323 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5324 else
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH
5327 do
5328 IFS=$as_save_IFS
5329 test -z "$as_dir" && as_dir=.
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5332 ac_cv_prog_ac_ct_RANLIB="ranlib"
5333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5334 break 2
5335 fi
5336 done
5337 done
5338 IFS=$as_save_IFS
5339
5340 fi
5341 fi
5342 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5343 if test -n "$ac_ct_RANLIB"; then
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5345 $as_echo "$ac_ct_RANLIB" >&6; }
5346 else
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348 $as_echo "no" >&6; }
5349 fi
5350
5351 if test "x$ac_ct_RANLIB" = x; then
5352 RANLIB=":"
5353 else
5354 case $cross_compiling:$ac_tool_warned in
5355 yes:)
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5358 ac_tool_warned=yes ;;
5359 esac
5360 RANLIB=$ac_ct_RANLIB
5361 fi
5362 else
5363 RANLIB="$ac_cv_prog_RANLIB"
5364 fi
5365
5366 test -z "$RANLIB" && RANLIB=:
5367
5368
5369
5370
5371
5372
5373 # Determine commands to create old-style static archives.
5374 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5375 old_postinstall_cmds='chmod 644 $oldlib'
5376 old_postuninstall_cmds=
5377
5378 if test -n "$RANLIB"; then
5379 case $host_os in
5380 openbsd*)
5381 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5382 ;;
5383 *)
5384 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5385 ;;
5386 esac
5387 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5388 fi
5389
5390 case $host_os in
5391 darwin*)
5392 lock_old_archive_extraction=yes ;;
5393 *)
5394 lock_old_archive_extraction=no ;;
5395 esac
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435 # If no C compiler was specified, use CC.
5436 LTCC=${LTCC-"$CC"}
5437
5438 # If no C compiler flags were specified, use CFLAGS.
5439 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5440
5441 # Allow CC to be a program name with arguments.
5442 compiler=$CC
5443
5444
5445 # Check for command to grab the raw symbol name followed by C symbol from nm.
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5447 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5448 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451
5452 # These are sane defaults that work on at least a few old systems.
5453 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5454
5455 # Character class describing NM global symbol codes.
5456 symcode='[BCDEGRST]'
5457
5458 # Regexp to match symbols that can be accessed directly from C.
5459 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5460
5461 # Define system-specific variables.
5462 case $host_os in
5463 aix*)
5464 symcode='[BCDT]'
5465 ;;
5466 cygwin* | mingw* | pw32* | cegcc*)
5467 symcode='[ABCDGISTW]'
5468 ;;
5469 hpux*)
5470 if test "$host_cpu" = ia64; then
5471 symcode='[ABCDEGRST]'
5472 fi
5473 ;;
5474 irix* | nonstopux*)
5475 symcode='[BCDEGRST]'
5476 ;;
5477 osf*)
5478 symcode='[BCDEGQRST]'
5479 ;;
5480 solaris*)
5481 symcode='[BDRT]'
5482 ;;
5483 sco3.2v5*)
5484 symcode='[DT]'
5485 ;;
5486 sysv4.2uw2*)
5487 symcode='[DT]'
5488 ;;
5489 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5490 symcode='[ABDT]'
5491 ;;
5492 sysv4)
5493 symcode='[DFNSTU]'
5494 ;;
5495 esac
5496
5497 # If we're using GNU nm, then use its standard symbol codes.
5498 case `$NM -V 2>&1` in
5499 *GNU* | *'with BFD'*)
5500 symcode='[ABCDGIRSTW]' ;;
5501 esac
5502
5503 # Transform an extracted symbol line into a proper C declaration.
5504 # Some systems (esp. on ia64) link data and code symbols differently,
5505 # so use this general approach.
5506 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5507
5508 # Transform an extracted symbol line into symbol name and symbol address
5509 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5510 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'"
5511
5512 # Handle CRLF in mingw tool chain
5513 opt_cr=
5514 case $build_os in
5515 mingw*)
5516 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5517 ;;
5518 esac
5519
5520 # Try without a prefix underscore, then with it.
5521 for ac_symprfx in "" "_"; do
5522
5523 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5524 symxfrm="\\1 $ac_symprfx\\2 \\2"
5525
5526 # Write the raw and C identifiers.
5527 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5528 # Fake it for dumpbin and say T for any non-static function
5529 # and D for any global variable.
5530 # Also find C++ and __fastcall symbols from MSVC++,
5531 # which start with @ or ?.
5532 lt_cv_sys_global_symbol_pipe="$AWK '"\
5533 " {last_section=section; section=\$ 3};"\
5534 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5535 " \$ 0!~/External *\|/{next};"\
5536 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5537 " {if(hide[section]) next};"\
5538 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5539 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5540 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5541 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5542 " ' prfx=^$ac_symprfx"
5543 else
5544 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5545 fi
5546
5547 # Check to see that the pipe works correctly.
5548 pipe_works=no
5549
5550 rm -f conftest*
5551 cat > conftest.$ac_ext <<_LT_EOF
5552 #ifdef __cplusplus
5553 extern "C" {
5554 #endif
5555 char nm_test_var;
5556 void nm_test_func(void);
5557 void nm_test_func(void){}
5558 #ifdef __cplusplus
5559 }
5560 #endif
5561 int main(){nm_test_var='a';nm_test_func();return(0);}
5562 _LT_EOF
5563
5564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5565 (eval $ac_compile) 2>&5
5566 ac_status=$?
5567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5568 test $ac_status = 0; }; then
5569 # Now try to grab the symbols.
5570 nlist=conftest.nm
5571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5572 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5573 ac_status=$?
5574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5575 test $ac_status = 0; } && test -s "$nlist"; then
5576 # Try sorting and uniquifying the output.
5577 if sort "$nlist" | uniq > "$nlist"T; then
5578 mv -f "$nlist"T "$nlist"
5579 else
5580 rm -f "$nlist"T
5581 fi
5582
5583 # Make sure that we snagged all the symbols we need.
5584 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5585 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5586 cat <<_LT_EOF > conftest.$ac_ext
5587 #ifdef __cplusplus
5588 extern "C" {
5589 #endif
5590
5591 _LT_EOF
5592 # Now generate the symbol file.
5593 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5594
5595 cat <<_LT_EOF >> conftest.$ac_ext
5596
5597 /* The mapping between symbol names and symbols. */
5598 const struct {
5599 const char *name;
5600 void *address;
5601 }
5602 lt__PROGRAM__LTX_preloaded_symbols[] =
5603 {
5604 { "@PROGRAM@", (void *) 0 },
5605 _LT_EOF
5606 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5607 cat <<\_LT_EOF >> conftest.$ac_ext
5608 {0, (void *) 0}
5609 };
5610
5611 /* This works around a problem in FreeBSD linker */
5612 #ifdef FREEBSD_WORKAROUND
5613 static const void *lt_preloaded_setup() {
5614 return lt__PROGRAM__LTX_preloaded_symbols;
5615 }
5616 #endif
5617
5618 #ifdef __cplusplus
5619 }
5620 #endif
5621 _LT_EOF
5622 # Now try linking the two files.
5623 mv conftest.$ac_objext conftstm.$ac_objext
5624 lt_save_LIBS="$LIBS"
5625 lt_save_CFLAGS="$CFLAGS"
5626 LIBS="conftstm.$ac_objext"
5627 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5629 (eval $ac_link) 2>&5
5630 ac_status=$?
5631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5632 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5633 pipe_works=yes
5634 fi
5635 LIBS="$lt_save_LIBS"
5636 CFLAGS="$lt_save_CFLAGS"
5637 else
5638 echo "cannot find nm_test_func in $nlist" >&5
5639 fi
5640 else
5641 echo "cannot find nm_test_var in $nlist" >&5
5642 fi
5643 else
5644 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5645 fi
5646 else
5647 echo "$progname: failed program was:" >&5
5648 cat conftest.$ac_ext >&5
5649 fi
5650 rm -rf conftest* conftst*
5651
5652 # Do not use the global_symbol_pipe unless it works.
5653 if test "$pipe_works" = yes; then
5654 break
5655 else
5656 lt_cv_sys_global_symbol_pipe=
5657 fi
5658 done
5659
5660 fi
5661
5662 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5663 lt_cv_sys_global_symbol_to_cdecl=
5664 fi
5665 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5667 $as_echo "failed" >&6; }
5668 else
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5670 $as_echo "ok" >&6; }
5671 fi
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695 # Check whether --enable-libtool-lock was given.
5696 if test "${enable_libtool_lock+set}" = set; then :
5697 enableval=$enable_libtool_lock;
5698 fi
5699
5700 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5701
5702 # Some flags need to be propagated to the compiler or linker for good
5703 # libtool support.
5704 case $host in
5705 ia64-*-hpux*)
5706 # Find out which ABI we are using.
5707 echo 'int i;' > conftest.$ac_ext
5708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5709 (eval $ac_compile) 2>&5
5710 ac_status=$?
5711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5712 test $ac_status = 0; }; then
5713 case `/usr/bin/file conftest.$ac_objext` in
5714 *ELF-32*)
5715 HPUX_IA64_MODE="32"
5716 ;;
5717 *ELF-64*)
5718 HPUX_IA64_MODE="64"
5719 ;;
5720 esac
5721 fi
5722 rm -rf conftest*
5723 ;;
5724 *-*-irix6*)
5725 # Find out which ABI we are using.
5726 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5728 (eval $ac_compile) 2>&5
5729 ac_status=$?
5730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5731 test $ac_status = 0; }; then
5732 if test "$lt_cv_prog_gnu_ld" = yes; then
5733 case `/usr/bin/file conftest.$ac_objext` in
5734 *32-bit*)
5735 LD="${LD-ld} -melf32bsmip"
5736 ;;
5737 *N32*)
5738 LD="${LD-ld} -melf32bmipn32"
5739 ;;
5740 *64-bit*)
5741 LD="${LD-ld} -melf64bmip"
5742 ;;
5743 esac
5744 else
5745 case `/usr/bin/file conftest.$ac_objext` in
5746 *32-bit*)
5747 LD="${LD-ld} -32"
5748 ;;
5749 *N32*)
5750 LD="${LD-ld} -n32"
5751 ;;
5752 *64-bit*)
5753 LD="${LD-ld} -64"
5754 ;;
5755 esac
5756 fi
5757 fi
5758 rm -rf conftest*
5759 ;;
5760
5761 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5762 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5763 # Find out which ABI we are using.
5764 echo 'int i;' > conftest.$ac_ext
5765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5766 (eval $ac_compile) 2>&5
5767 ac_status=$?
5768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5769 test $ac_status = 0; }; then
5770 case `/usr/bin/file conftest.o` in
5771 *32-bit*)
5772 case $host in
5773 x86_64-*kfreebsd*-gnu)
5774 LD="${LD-ld} -m elf_i386_fbsd"
5775 ;;
5776 x86_64-*linux*)
5777 LD="${LD-ld} -m elf_i386"
5778 ;;
5779 ppc64-*linux*|powerpc64-*linux*)
5780 LD="${LD-ld} -m elf32ppclinux"
5781 ;;
5782 s390x-*linux*)
5783 LD="${LD-ld} -m elf_s390"
5784 ;;
5785 sparc64-*linux*)
5786 LD="${LD-ld} -m elf32_sparc"
5787 ;;
5788 esac
5789 ;;
5790 *64-bit*)
5791 case $host in
5792 x86_64-*kfreebsd*-gnu)
5793 LD="${LD-ld} -m elf_x86_64_fbsd"
5794 ;;
5795 x86_64-*linux*)
5796 LD="${LD-ld} -m elf_x86_64"
5797 ;;
5798 ppc*-*linux*|powerpc*-*linux*)
5799 LD="${LD-ld} -m elf64ppc"
5800 ;;
5801 s390*-*linux*|s390*-*tpf*)
5802 LD="${LD-ld} -m elf64_s390"
5803 ;;
5804 sparc*-*linux*)
5805 LD="${LD-ld} -m elf64_sparc"
5806 ;;
5807 esac
5808 ;;
5809 esac
5810 fi
5811 rm -rf conftest*
5812 ;;
5813
5814 *-*-sco3.2v5*)
5815 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5816 SAVE_CFLAGS="$CFLAGS"
5817 CFLAGS="$CFLAGS -belf"
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5819 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5820 if ${lt_cv_cc_needs_belf+:} false; then :
5821 $as_echo_n "(cached) " >&6
5822 else
5823 ac_ext=c
5824 ac_cpp='$CPP $CPPFLAGS'
5825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5828
5829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830 /* end confdefs.h. */
5831
5832 int
5833 main ()
5834 {
5835
5836 ;
5837 return 0;
5838 }
5839 _ACEOF
5840 if ac_fn_c_try_link "$LINENO"; then :
5841 lt_cv_cc_needs_belf=yes
5842 else
5843 lt_cv_cc_needs_belf=no
5844 fi
5845 rm -f core conftest.err conftest.$ac_objext \
5846 conftest$ac_exeext conftest.$ac_ext
5847 ac_ext=c
5848 ac_cpp='$CPP $CPPFLAGS'
5849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5852
5853 fi
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5855 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5856 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5857 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5858 CFLAGS="$SAVE_CFLAGS"
5859 fi
5860 ;;
5861 sparc*-*solaris*)
5862 # Find out which ABI we are using.
5863 echo 'int i;' > conftest.$ac_ext
5864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5865 (eval $ac_compile) 2>&5
5866 ac_status=$?
5867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5868 test $ac_status = 0; }; then
5869 case `/usr/bin/file conftest.o` in
5870 *64-bit*)
5871 case $lt_cv_prog_gnu_ld in
5872 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5873 *)
5874 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5875 LD="${LD-ld} -64"
5876 fi
5877 ;;
5878 esac
5879 ;;
5880 esac
5881 fi
5882 rm -rf conftest*
5883 ;;
5884 esac
5885
5886 need_locks="$enable_libtool_lock"
5887
5888
5889 case $host_os in
5890 rhapsody* | darwin*)
5891 if test -n "$ac_tool_prefix"; then
5892 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5893 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 $as_echo_n "checking for $ac_word... " >&6; }
5896 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5897 $as_echo_n "(cached) " >&6
5898 else
5899 if test -n "$DSYMUTIL"; then
5900 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5901 else
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 for as_dir in $PATH
5904 do
5905 IFS=$as_save_IFS
5906 test -z "$as_dir" && as_dir=.
5907 for ac_exec_ext in '' $ac_executable_extensions; do
5908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5909 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 break 2
5912 fi
5913 done
5914 done
5915 IFS=$as_save_IFS
5916
5917 fi
5918 fi
5919 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5920 if test -n "$DSYMUTIL"; then
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5922 $as_echo "$DSYMUTIL" >&6; }
5923 else
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925 $as_echo "no" >&6; }
5926 fi
5927
5928
5929 fi
5930 if test -z "$ac_cv_prog_DSYMUTIL"; then
5931 ac_ct_DSYMUTIL=$DSYMUTIL
5932 # Extract the first word of "dsymutil", so it can be a program name with args.
5933 set dummy dsymutil; ac_word=$2
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935 $as_echo_n "checking for $ac_word... " >&6; }
5936 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5939 if test -n "$ac_ct_DSYMUTIL"; then
5940 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5941 else
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 for as_dir in $PATH
5944 do
5945 IFS=$as_save_IFS
5946 test -z "$as_dir" && as_dir=.
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5949 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 break 2
5952 fi
5953 done
5954 done
5955 IFS=$as_save_IFS
5956
5957 fi
5958 fi
5959 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5960 if test -n "$ac_ct_DSYMUTIL"; then
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5962 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5963 else
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965 $as_echo "no" >&6; }
5966 fi
5967
5968 if test "x$ac_ct_DSYMUTIL" = x; then
5969 DSYMUTIL=":"
5970 else
5971 case $cross_compiling:$ac_tool_warned in
5972 yes:)
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5975 ac_tool_warned=yes ;;
5976 esac
5977 DSYMUTIL=$ac_ct_DSYMUTIL
5978 fi
5979 else
5980 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5981 fi
5982
5983 if test -n "$ac_tool_prefix"; then
5984 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5985 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987 $as_echo_n "checking for $ac_word... " >&6; }
5988 if ${ac_cv_prog_NMEDIT+:} false; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 if test -n "$NMEDIT"; then
5992 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5993 else
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH
5996 do
5997 IFS=$as_save_IFS
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6001 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 break 2
6004 fi
6005 done
6006 done
6007 IFS=$as_save_IFS
6008
6009 fi
6010 fi
6011 NMEDIT=$ac_cv_prog_NMEDIT
6012 if test -n "$NMEDIT"; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6014 $as_echo "$NMEDIT" >&6; }
6015 else
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017 $as_echo "no" >&6; }
6018 fi
6019
6020
6021 fi
6022 if test -z "$ac_cv_prog_NMEDIT"; then
6023 ac_ct_NMEDIT=$NMEDIT
6024 # Extract the first word of "nmedit", so it can be a program name with args.
6025 set dummy nmedit; ac_word=$2
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6027 $as_echo_n "checking for $ac_word... " >&6; }
6028 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6029 $as_echo_n "(cached) " >&6
6030 else
6031 if test -n "$ac_ct_NMEDIT"; then
6032 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6033 else
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 for as_dir in $PATH
6036 do
6037 IFS=$as_save_IFS
6038 test -z "$as_dir" && as_dir=.
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6041 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6043 break 2
6044 fi
6045 done
6046 done
6047 IFS=$as_save_IFS
6048
6049 fi
6050 fi
6051 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6052 if test -n "$ac_ct_NMEDIT"; then
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6054 $as_echo "$ac_ct_NMEDIT" >&6; }
6055 else
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057 $as_echo "no" >&6; }
6058 fi
6059
6060 if test "x$ac_ct_NMEDIT" = x; then
6061 NMEDIT=":"
6062 else
6063 case $cross_compiling:$ac_tool_warned in
6064 yes:)
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6067 ac_tool_warned=yes ;;
6068 esac
6069 NMEDIT=$ac_ct_NMEDIT
6070 fi
6071 else
6072 NMEDIT="$ac_cv_prog_NMEDIT"
6073 fi
6074
6075 if test -n "$ac_tool_prefix"; then
6076 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6077 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6079 $as_echo_n "checking for $ac_word... " >&6; }
6080 if ${ac_cv_prog_LIPO+:} false; then :
6081 $as_echo_n "(cached) " >&6
6082 else
6083 if test -n "$LIPO"; then
6084 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6085 else
6086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 for as_dir in $PATH
6088 do
6089 IFS=$as_save_IFS
6090 test -z "$as_dir" && as_dir=.
6091 for ac_exec_ext in '' $ac_executable_extensions; do
6092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6093 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 break 2
6096 fi
6097 done
6098 done
6099 IFS=$as_save_IFS
6100
6101 fi
6102 fi
6103 LIPO=$ac_cv_prog_LIPO
6104 if test -n "$LIPO"; then
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6106 $as_echo "$LIPO" >&6; }
6107 else
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109 $as_echo "no" >&6; }
6110 fi
6111
6112
6113 fi
6114 if test -z "$ac_cv_prog_LIPO"; then
6115 ac_ct_LIPO=$LIPO
6116 # Extract the first word of "lipo", so it can be a program name with args.
6117 set dummy lipo; ac_word=$2
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119 $as_echo_n "checking for $ac_word... " >&6; }
6120 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6121 $as_echo_n "(cached) " >&6
6122 else
6123 if test -n "$ac_ct_LIPO"; then
6124 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6125 else
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH
6128 do
6129 IFS=$as_save_IFS
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6133 ac_cv_prog_ac_ct_LIPO="lipo"
6134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 break 2
6136 fi
6137 done
6138 done
6139 IFS=$as_save_IFS
6140
6141 fi
6142 fi
6143 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6144 if test -n "$ac_ct_LIPO"; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6146 $as_echo "$ac_ct_LIPO" >&6; }
6147 else
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149 $as_echo "no" >&6; }
6150 fi
6151
6152 if test "x$ac_ct_LIPO" = x; then
6153 LIPO=":"
6154 else
6155 case $cross_compiling:$ac_tool_warned in
6156 yes:)
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6159 ac_tool_warned=yes ;;
6160 esac
6161 LIPO=$ac_ct_LIPO
6162 fi
6163 else
6164 LIPO="$ac_cv_prog_LIPO"
6165 fi
6166
6167 if test -n "$ac_tool_prefix"; then
6168 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6169 set dummy ${ac_tool_prefix}otool; ac_word=$2
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171 $as_echo_n "checking for $ac_word... " >&6; }
6172 if ${ac_cv_prog_OTOOL+:} false; then :
6173 $as_echo_n "(cached) " >&6
6174 else
6175 if test -n "$OTOOL"; then
6176 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6177 else
6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 for as_dir in $PATH
6180 do
6181 IFS=$as_save_IFS
6182 test -z "$as_dir" && as_dir=.
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6185 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 break 2
6188 fi
6189 done
6190 done
6191 IFS=$as_save_IFS
6192
6193 fi
6194 fi
6195 OTOOL=$ac_cv_prog_OTOOL
6196 if test -n "$OTOOL"; then
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6198 $as_echo "$OTOOL" >&6; }
6199 else
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201 $as_echo "no" >&6; }
6202 fi
6203
6204
6205 fi
6206 if test -z "$ac_cv_prog_OTOOL"; then
6207 ac_ct_OTOOL=$OTOOL
6208 # Extract the first word of "otool", so it can be a program name with args.
6209 set dummy otool; ac_word=$2
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211 $as_echo_n "checking for $ac_word... " >&6; }
6212 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6213 $as_echo_n "(cached) " >&6
6214 else
6215 if test -n "$ac_ct_OTOOL"; then
6216 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6217 else
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 for as_dir in $PATH
6220 do
6221 IFS=$as_save_IFS
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225 ac_cv_prog_ac_ct_OTOOL="otool"
6226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 break 2
6228 fi
6229 done
6230 done
6231 IFS=$as_save_IFS
6232
6233 fi
6234 fi
6235 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6236 if test -n "$ac_ct_OTOOL"; then
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6238 $as_echo "$ac_ct_OTOOL" >&6; }
6239 else
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 $as_echo "no" >&6; }
6242 fi
6243
6244 if test "x$ac_ct_OTOOL" = x; then
6245 OTOOL=":"
6246 else
6247 case $cross_compiling:$ac_tool_warned in
6248 yes:)
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6251 ac_tool_warned=yes ;;
6252 esac
6253 OTOOL=$ac_ct_OTOOL
6254 fi
6255 else
6256 OTOOL="$ac_cv_prog_OTOOL"
6257 fi
6258
6259 if test -n "$ac_tool_prefix"; then
6260 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6261 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263 $as_echo_n "checking for $ac_word... " >&6; }
6264 if ${ac_cv_prog_OTOOL64+:} false; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6267 if test -n "$OTOOL64"; then
6268 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6269 else
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 for as_dir in $PATH
6272 do
6273 IFS=$as_save_IFS
6274 test -z "$as_dir" && as_dir=.
6275 for ac_exec_ext in '' $ac_executable_extensions; do
6276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6277 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6279 break 2
6280 fi
6281 done
6282 done
6283 IFS=$as_save_IFS
6284
6285 fi
6286 fi
6287 OTOOL64=$ac_cv_prog_OTOOL64
6288 if test -n "$OTOOL64"; then
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6290 $as_echo "$OTOOL64" >&6; }
6291 else
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6294 fi
6295
6296
6297 fi
6298 if test -z "$ac_cv_prog_OTOOL64"; then
6299 ac_ct_OTOOL64=$OTOOL64
6300 # Extract the first word of "otool64", so it can be a program name with args.
6301 set dummy otool64; ac_word=$2
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 $as_echo_n "checking for $ac_word... " >&6; }
6304 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 if test -n "$ac_ct_OTOOL64"; then
6308 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6309 else
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6312 do
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6317 ac_cv_prog_ac_ct_OTOOL64="otool64"
6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 break 2
6320 fi
6321 done
6322 done
6323 IFS=$as_save_IFS
6324
6325 fi
6326 fi
6327 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6328 if test -n "$ac_ct_OTOOL64"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6330 $as_echo "$ac_ct_OTOOL64" >&6; }
6331 else
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6334 fi
6335
6336 if test "x$ac_ct_OTOOL64" = x; then
6337 OTOOL64=":"
6338 else
6339 case $cross_compiling:$ac_tool_warned in
6340 yes:)
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6343 ac_tool_warned=yes ;;
6344 esac
6345 OTOOL64=$ac_ct_OTOOL64
6346 fi
6347 else
6348 OTOOL64="$ac_cv_prog_OTOOL64"
6349 fi
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6378 $as_echo_n "checking for -single_module linker flag... " >&6; }
6379 if ${lt_cv_apple_cc_single_mod+:} false; then :
6380 $as_echo_n "(cached) " >&6
6381 else
6382 lt_cv_apple_cc_single_mod=no
6383 if test -z "${LT_MULTI_MODULE}"; then
6384 # By default we will add the -single_module flag. You can override
6385 # by either setting the environment variable LT_MULTI_MODULE
6386 # non-empty at configure time, or by adding -multi_module to the
6387 # link flags.
6388 rm -rf libconftest.dylib*
6389 echo "int foo(void){return 1;}" > conftest.c
6390 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6391 -dynamiclib -Wl,-single_module conftest.c" >&5
6392 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6393 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6394 _lt_result=$?
6395 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6396 lt_cv_apple_cc_single_mod=yes
6397 else
6398 cat conftest.err >&5
6399 fi
6400 rm -rf libconftest.dylib*
6401 rm -f conftest.*
6402 fi
6403 fi
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6405 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6407 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6408 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6409 $as_echo_n "(cached) " >&6
6410 else
6411 lt_cv_ld_exported_symbols_list=no
6412 save_LDFLAGS=$LDFLAGS
6413 echo "_main" > conftest.sym
6414 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6417
6418 int
6419 main ()
6420 {
6421
6422 ;
6423 return 0;
6424 }
6425 _ACEOF
6426 if ac_fn_c_try_link "$LINENO"; then :
6427 lt_cv_ld_exported_symbols_list=yes
6428 else
6429 lt_cv_ld_exported_symbols_list=no
6430 fi
6431 rm -f core conftest.err conftest.$ac_objext \
6432 conftest$ac_exeext conftest.$ac_ext
6433 LDFLAGS="$save_LDFLAGS"
6434
6435 fi
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6437 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6439 $as_echo_n "checking for -force_load linker flag... " >&6; }
6440 if ${lt_cv_ld_force_load+:} false; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 lt_cv_ld_force_load=no
6444 cat > conftest.c << _LT_EOF
6445 int forced_loaded() { return 2;}
6446 _LT_EOF
6447 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6448 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6449 echo "$AR cru libconftest.a conftest.o" >&5
6450 $AR cru libconftest.a conftest.o 2>&5
6451 echo "$RANLIB libconftest.a" >&5
6452 $RANLIB libconftest.a 2>&5
6453 cat > conftest.c << _LT_EOF
6454 int main() { return 0;}
6455 _LT_EOF
6456 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6457 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6458 _lt_result=$?
6459 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6460 lt_cv_ld_force_load=yes
6461 else
6462 cat conftest.err >&5
6463 fi
6464 rm -f conftest.err libconftest.a conftest conftest.c
6465 rm -rf conftest.dSYM
6466
6467 fi
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6469 $as_echo "$lt_cv_ld_force_load" >&6; }
6470 case $host_os in
6471 rhapsody* | darwin1.[012])
6472 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6473 darwin1.*)
6474 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6475 darwin*) # darwin 5.x on
6476 # if running on 10.5 or later, the deployment target defaults
6477 # to the OS version, if on x86, and 10.4, the deployment
6478 # target defaults to 10.4. Don't you love it?
6479 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6480 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6481 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6482 10.[012]*)
6483 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6484 10.*)
6485 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6486 esac
6487 ;;
6488 esac
6489 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6490 _lt_dar_single_mod='$single_module'
6491 fi
6492 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6493 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6494 else
6495 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6496 fi
6497 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6498 _lt_dsymutil='~$DSYMUTIL $lib || :'
6499 else
6500 _lt_dsymutil=
6501 fi
6502 ;;
6503 esac
6504
6505 ac_ext=c
6506 ac_cpp='$CPP $CPPFLAGS'
6507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6511 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6512 # On Suns, sometimes $CPP names a directory.
6513 if test -n "$CPP" && test -d "$CPP"; then
6514 CPP=
6515 fi
6516 if test -z "$CPP"; then
6517 if ${ac_cv_prog_CPP+:} false; then :
6518 $as_echo_n "(cached) " >&6
6519 else
6520 # Double quotes because CPP needs to be expanded
6521 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6522 do
6523 ac_preproc_ok=false
6524 for ac_c_preproc_warn_flag in '' yes
6525 do
6526 # Use a header file that comes with gcc, so configuring glibc
6527 # with a fresh cross-compiler works.
6528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6529 # <limits.h> exists even on freestanding compilers.
6530 # On the NeXT, cc -E runs the code through the compiler's parser,
6531 # not just through cpp. "Syntax error" is here to catch this case.
6532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533 /* end confdefs.h. */
6534 #ifdef __STDC__
6535 # include <limits.h>
6536 #else
6537 # include <assert.h>
6538 #endif
6539 Syntax error
6540 _ACEOF
6541 if ac_fn_c_try_cpp "$LINENO"; then :
6542
6543 else
6544 # Broken: fails on valid input.
6545 continue
6546 fi
6547 rm -f conftest.err conftest.i conftest.$ac_ext
6548
6549 # OK, works on sane cases. Now check whether nonexistent headers
6550 # can be detected and how.
6551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h. */
6553 #include <ac_nonexistent.h>
6554 _ACEOF
6555 if ac_fn_c_try_cpp "$LINENO"; then :
6556 # Broken: success on invalid input.
6557 continue
6558 else
6559 # Passes both tests.
6560 ac_preproc_ok=:
6561 break
6562 fi
6563 rm -f conftest.err conftest.i conftest.$ac_ext
6564
6565 done
6566 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6567 rm -f conftest.i conftest.err conftest.$ac_ext
6568 if $ac_preproc_ok; then :
6569 break
6570 fi
6571
6572 done
6573 ac_cv_prog_CPP=$CPP
6574
6575 fi
6576 CPP=$ac_cv_prog_CPP
6577 else
6578 ac_cv_prog_CPP=$CPP
6579 fi
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6581 $as_echo "$CPP" >&6; }
6582 ac_preproc_ok=false
6583 for ac_c_preproc_warn_flag in '' yes
6584 do
6585 # Use a header file that comes with gcc, so configuring glibc
6586 # with a fresh cross-compiler works.
6587 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6588 # <limits.h> exists even on freestanding compilers.
6589 # On the NeXT, cc -E runs the code through the compiler's parser,
6590 # not just through cpp. "Syntax error" is here to catch this case.
6591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592 /* end confdefs.h. */
6593 #ifdef __STDC__
6594 # include <limits.h>
6595 #else
6596 # include <assert.h>
6597 #endif
6598 Syntax error
6599 _ACEOF
6600 if ac_fn_c_try_cpp "$LINENO"; then :
6601
6602 else
6603 # Broken: fails on valid input.
6604 continue
6605 fi
6606 rm -f conftest.err conftest.i conftest.$ac_ext
6607
6608 # OK, works on sane cases. Now check whether nonexistent headers
6609 # can be detected and how.
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6612 #include <ac_nonexistent.h>
6613 _ACEOF
6614 if ac_fn_c_try_cpp "$LINENO"; then :
6615 # Broken: success on invalid input.
6616 continue
6617 else
6618 # Passes both tests.
6619 ac_preproc_ok=:
6620 break
6621 fi
6622 rm -f conftest.err conftest.i conftest.$ac_ext
6623
6624 done
6625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6626 rm -f conftest.i conftest.err conftest.$ac_ext
6627 if $ac_preproc_ok; then :
6628
6629 else
6630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6632 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6633 See \`config.log' for more details" "$LINENO" 5; }
6634 fi
6635
6636 ac_ext=c
6637 ac_cpp='$CPP $CPPFLAGS'
6638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6641
6642
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6644 $as_echo_n "checking for ANSI C header files... " >&6; }
6645 if ${ac_cv_header_stdc+:} false; then :
6646 $as_echo_n "(cached) " >&6
6647 else
6648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6649 /* end confdefs.h. */
6650 #include <stdlib.h>
6651 #include <stdarg.h>
6652 #include <string.h>
6653 #include <float.h>
6654
6655 int
6656 main ()
6657 {
6658
6659 ;
6660 return 0;
6661 }
6662 _ACEOF
6663 if ac_fn_c_try_compile "$LINENO"; then :
6664 ac_cv_header_stdc=yes
6665 else
6666 ac_cv_header_stdc=no
6667 fi
6668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6669
6670 if test $ac_cv_header_stdc = yes; then
6671 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h. */
6674 #include <string.h>
6675
6676 _ACEOF
6677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6678 $EGREP "memchr" >/dev/null 2>&1; then :
6679
6680 else
6681 ac_cv_header_stdc=no
6682 fi
6683 rm -f conftest*
6684
6685 fi
6686
6687 if test $ac_cv_header_stdc = yes; then
6688 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6690 /* end confdefs.h. */
6691 #include <stdlib.h>
6692
6693 _ACEOF
6694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6695 $EGREP "free" >/dev/null 2>&1; then :
6696
6697 else
6698 ac_cv_header_stdc=no
6699 fi
6700 rm -f conftest*
6701
6702 fi
6703
6704 if test $ac_cv_header_stdc = yes; then
6705 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6706 if test "$cross_compiling" = yes; then :
6707 :
6708 else
6709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h. */
6711 #include <ctype.h>
6712 #include <stdlib.h>
6713 #if ((' ' & 0x0FF) == 0x020)
6714 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6715 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6716 #else
6717 # define ISLOWER(c) \
6718 (('a' <= (c) && (c) <= 'i') \
6719 || ('j' <= (c) && (c) <= 'r') \
6720 || ('s' <= (c) && (c) <= 'z'))
6721 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6722 #endif
6723
6724 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6725 int
6726 main ()
6727 {
6728 int i;
6729 for (i = 0; i < 256; i++)
6730 if (XOR (islower (i), ISLOWER (i))
6731 || toupper (i) != TOUPPER (i))
6732 return 2;
6733 return 0;
6734 }
6735 _ACEOF
6736 if ac_fn_c_try_run "$LINENO"; then :
6737
6738 else
6739 ac_cv_header_stdc=no
6740 fi
6741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6742 conftest.$ac_objext conftest.beam conftest.$ac_ext
6743 fi
6744
6745 fi
6746 fi
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6748 $as_echo "$ac_cv_header_stdc" >&6; }
6749 if test $ac_cv_header_stdc = yes; then
6750
6751 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6752
6753 fi
6754
6755 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6756 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6757 inttypes.h stdint.h unistd.h
6758 do :
6759 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6760 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6761 "
6762 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6763 cat >>confdefs.h <<_ACEOF
6764 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6765 _ACEOF
6766
6767 fi
6768
6769 done
6770
6771
6772 for ac_header in dlfcn.h
6773 do :
6774 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6775 "
6776 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6777 cat >>confdefs.h <<_ACEOF
6778 #define HAVE_DLFCN_H 1
6779 _ACEOF
6780
6781 fi
6782
6783 done
6784
6785
6786
6787
6788
6789 # Set options
6790
6791
6792
6793 enable_dlopen=no
6794
6795
6796 enable_win32_dll=no
6797
6798
6799 # Check whether --enable-shared was given.
6800 if test "${enable_shared+set}" = set; then :
6801 enableval=$enable_shared; p=${PACKAGE-default}
6802 case $enableval in
6803 yes) enable_shared=yes ;;
6804 no) enable_shared=no ;;
6805 *)
6806 enable_shared=no
6807 # Look at the argument we got. We use all the common list separators.
6808 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6809 for pkg in $enableval; do
6810 IFS="$lt_save_ifs"
6811 if test "X$pkg" = "X$p"; then
6812 enable_shared=yes
6813 fi
6814 done
6815 IFS="$lt_save_ifs"
6816 ;;
6817 esac
6818 else
6819 enable_shared=yes
6820 fi
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832 # Check whether --with-pic was given.
6833 if test "${with_pic+set}" = set; then :
6834 withval=$with_pic; pic_mode="$withval"
6835 else
6836 pic_mode=default
6837 fi
6838
6839
6840 test -z "$pic_mode" && pic_mode=default
6841
6842
6843
6844
6845
6846
6847
6848 # Check whether --enable-fast-install was given.
6849 if test "${enable_fast_install+set}" = set; then :
6850 enableval=$enable_fast_install; p=${PACKAGE-default}
6851 case $enableval in
6852 yes) enable_fast_install=yes ;;
6853 no) enable_fast_install=no ;;
6854 *)
6855 enable_fast_install=no
6856 # Look at the argument we got. We use all the common list separators.
6857 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6858 for pkg in $enableval; do
6859 IFS="$lt_save_ifs"
6860 if test "X$pkg" = "X$p"; then
6861 enable_fast_install=yes
6862 fi
6863 done
6864 IFS="$lt_save_ifs"
6865 ;;
6866 esac
6867 else
6868 enable_fast_install=yes
6869 fi
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881 # This can be used to rebuild libtool when needed
6882 LIBTOOL_DEPS="$ltmain"
6883
6884 # Always use our own libtool.
6885 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912 test -z "$LN_S" && LN_S="ln -s"
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927 if test -n "${ZSH_VERSION+set}" ; then
6928 setopt NO_GLOB_SUBST
6929 fi
6930
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6932 $as_echo_n "checking for objdir... " >&6; }
6933 if ${lt_cv_objdir+:} false; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 rm -f .libs 2>/dev/null
6937 mkdir .libs 2>/dev/null
6938 if test -d .libs; then
6939 lt_cv_objdir=.libs
6940 else
6941 # MS-DOS does not allow filenames that begin with a dot.
6942 lt_cv_objdir=_libs
6943 fi
6944 rmdir .libs 2>/dev/null
6945 fi
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6947 $as_echo "$lt_cv_objdir" >&6; }
6948 objdir=$lt_cv_objdir
6949
6950
6951
6952
6953
6954 cat >>confdefs.h <<_ACEOF
6955 #define LT_OBJDIR "$lt_cv_objdir/"
6956 _ACEOF
6957
6958
6959
6960
6961 case $host_os in
6962 aix3*)
6963 # AIX sometimes has problems with the GCC collect2 program. For some
6964 # reason, if we set the COLLECT_NAMES environment variable, the problems
6965 # vanish in a puff of smoke.
6966 if test "X${COLLECT_NAMES+set}" != Xset; then
6967 COLLECT_NAMES=
6968 export COLLECT_NAMES
6969 fi
6970 ;;
6971 esac
6972
6973 # Global variables:
6974 ofile=libtool
6975 can_build_shared=yes
6976
6977 # All known linkers require a `.a' archive for static linking (except MSVC,
6978 # which needs '.lib').
6979 libext=a
6980
6981 with_gnu_ld="$lt_cv_prog_gnu_ld"
6982
6983 old_CC="$CC"
6984 old_CFLAGS="$CFLAGS"
6985
6986 # Set sane defaults for various variables
6987 test -z "$CC" && CC=cc
6988 test -z "$LTCC" && LTCC=$CC
6989 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6990 test -z "$LD" && LD=ld
6991 test -z "$ac_objext" && ac_objext=o
6992
6993 for cc_temp in $compiler""; do
6994 case $cc_temp in
6995 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6996 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6997 \-*) ;;
6998 *) break;;
6999 esac
7000 done
7001 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7002
7003
7004 # Only perform the check for file, if the check method requires it
7005 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7006 case $deplibs_check_method in
7007 file_magic*)
7008 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7010 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7011 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7012 $as_echo_n "(cached) " >&6
7013 else
7014 case $MAGIC_CMD in
7015 [\\/*] | ?:[\\/]*)
7016 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7017 ;;
7018 *)
7019 lt_save_MAGIC_CMD="$MAGIC_CMD"
7020 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7021 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7022 for ac_dir in $ac_dummy; do
7023 IFS="$lt_save_ifs"
7024 test -z "$ac_dir" && ac_dir=.
7025 if test -f $ac_dir/${ac_tool_prefix}file; then
7026 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7027 if test -n "$file_magic_test_file"; then
7028 case $deplibs_check_method in
7029 "file_magic "*)
7030 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7031 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7032 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7033 $EGREP "$file_magic_regex" > /dev/null; then
7034 :
7035 else
7036 cat <<_LT_EOF 1>&2
7037
7038 *** Warning: the command libtool uses to detect shared libraries,
7039 *** $file_magic_cmd, produces output that libtool cannot recognize.
7040 *** The result is that libtool may fail to recognize shared libraries
7041 *** as such. This will affect the creation of libtool libraries that
7042 *** depend on shared libraries, but programs linked with such libtool
7043 *** libraries will work regardless of this problem. Nevertheless, you
7044 *** may want to report the problem to your system manager and/or to
7045 *** bug-libtool@gnu.org
7046
7047 _LT_EOF
7048 fi ;;
7049 esac
7050 fi
7051 break
7052 fi
7053 done
7054 IFS="$lt_save_ifs"
7055 MAGIC_CMD="$lt_save_MAGIC_CMD"
7056 ;;
7057 esac
7058 fi
7059
7060 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7061 if test -n "$MAGIC_CMD"; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7063 $as_echo "$MAGIC_CMD" >&6; }
7064 else
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 $as_echo "no" >&6; }
7067 fi
7068
7069
7070
7071
7072
7073 if test -z "$lt_cv_path_MAGIC_CMD"; then
7074 if test -n "$ac_tool_prefix"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7076 $as_echo_n "checking for file... " >&6; }
7077 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7078 $as_echo_n "(cached) " >&6
7079 else
7080 case $MAGIC_CMD in
7081 [\\/*] | ?:[\\/]*)
7082 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7083 ;;
7084 *)
7085 lt_save_MAGIC_CMD="$MAGIC_CMD"
7086 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7087 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7088 for ac_dir in $ac_dummy; do
7089 IFS="$lt_save_ifs"
7090 test -z "$ac_dir" && ac_dir=.
7091 if test -f $ac_dir/file; then
7092 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7093 if test -n "$file_magic_test_file"; then
7094 case $deplibs_check_method in
7095 "file_magic "*)
7096 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7097 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7098 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7099 $EGREP "$file_magic_regex" > /dev/null; then
7100 :
7101 else
7102 cat <<_LT_EOF 1>&2
7103
7104 *** Warning: the command libtool uses to detect shared libraries,
7105 *** $file_magic_cmd, produces output that libtool cannot recognize.
7106 *** The result is that libtool may fail to recognize shared libraries
7107 *** as such. This will affect the creation of libtool libraries that
7108 *** depend on shared libraries, but programs linked with such libtool
7109 *** libraries will work regardless of this problem. Nevertheless, you
7110 *** may want to report the problem to your system manager and/or to
7111 *** bug-libtool@gnu.org
7112
7113 _LT_EOF
7114 fi ;;
7115 esac
7116 fi
7117 break
7118 fi
7119 done
7120 IFS="$lt_save_ifs"
7121 MAGIC_CMD="$lt_save_MAGIC_CMD"
7122 ;;
7123 esac
7124 fi
7125
7126 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7127 if test -n "$MAGIC_CMD"; then
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7129 $as_echo "$MAGIC_CMD" >&6; }
7130 else
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7133 fi
7134
7135
7136 else
7137 MAGIC_CMD=:
7138 fi
7139 fi
7140
7141 fi
7142 ;;
7143 esac
7144
7145 # Use C for the default configuration in the libtool script
7146
7147 lt_save_CC="$CC"
7148 ac_ext=c
7149 ac_cpp='$CPP $CPPFLAGS'
7150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7153
7154
7155 # Source file extension for C test sources.
7156 ac_ext=c
7157
7158 # Object file extension for compiled C test sources.
7159 objext=o
7160 objext=$objext
7161
7162 # Code to be used in simple compile tests
7163 lt_simple_compile_test_code="int some_variable = 0;"
7164
7165 # Code to be used in simple link tests
7166 lt_simple_link_test_code='int main(){return(0);}'
7167
7168
7169
7170
7171
7172
7173
7174 # If no C compiler was specified, use CC.
7175 LTCC=${LTCC-"$CC"}
7176
7177 # If no C compiler flags were specified, use CFLAGS.
7178 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7179
7180 # Allow CC to be a program name with arguments.
7181 compiler=$CC
7182
7183 # Save the default compiler, since it gets overwritten when the other
7184 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7185 compiler_DEFAULT=$CC
7186
7187 # save warnings/boilerplate of simple test code
7188 ac_outfile=conftest.$ac_objext
7189 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7190 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7191 _lt_compiler_boilerplate=`cat conftest.err`
7192 $RM conftest*
7193
7194 ac_outfile=conftest.$ac_objext
7195 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7196 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7197 _lt_linker_boilerplate=`cat conftest.err`
7198 $RM -r conftest*
7199
7200
7201 if test -n "$compiler"; then
7202
7203 lt_prog_compiler_no_builtin_flag=
7204
7205 if test "$GCC" = yes; then
7206 case $cc_basename in
7207 nvcc*)
7208 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7209 *)
7210 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7211 esac
7212
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7214 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7215 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7216 $as_echo_n "(cached) " >&6
7217 else
7218 lt_cv_prog_compiler_rtti_exceptions=no
7219 ac_outfile=conftest.$ac_objext
7220 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7221 lt_compiler_flag="-fno-rtti -fno-exceptions"
7222 # Insert the option either (1) after the last *FLAGS variable, or
7223 # (2) before a word containing "conftest.", or (3) at the end.
7224 # Note that $ac_compile itself does not contain backslashes and begins
7225 # with a dollar sign (not a hyphen), so the echo should work correctly.
7226 # The option is referenced via a variable to avoid confusing sed.
7227 lt_compile=`echo "$ac_compile" | $SED \
7228 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7229 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7230 -e 's:$: $lt_compiler_flag:'`
7231 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7232 (eval "$lt_compile" 2>conftest.err)
7233 ac_status=$?
7234 cat conftest.err >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 if (exit $ac_status) && test -s "$ac_outfile"; then
7237 # The compiler can only warn and ignore the option if not recognized
7238 # So say no if there are warnings other than the usual output.
7239 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7240 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7241 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7242 lt_cv_prog_compiler_rtti_exceptions=yes
7243 fi
7244 fi
7245 $RM conftest*
7246
7247 fi
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7249 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7250
7251 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7252 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7253 else
7254 :
7255 fi
7256
7257 fi
7258
7259
7260
7261
7262
7263
7264 lt_prog_compiler_wl=
7265 lt_prog_compiler_pic=
7266 lt_prog_compiler_static=
7267
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7269 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7270
7271 if test "$GCC" = yes; then
7272 lt_prog_compiler_wl='-Wl,'
7273 lt_prog_compiler_static='-static'
7274
7275 case $host_os in
7276 aix*)
7277 # All AIX code is PIC.
7278 if test "$host_cpu" = ia64; then
7279 # AIX 5 now supports IA64 processor
7280 lt_prog_compiler_static='-Bstatic'
7281 fi
7282 ;;
7283
7284 amigaos*)
7285 case $host_cpu in
7286 powerpc)
7287 # see comment about AmigaOS4 .so support
7288 lt_prog_compiler_pic='-fPIC'
7289 ;;
7290 m68k)
7291 # FIXME: we need at least 68020 code to build shared libraries, but
7292 # adding the `-m68020' flag to GCC prevents building anything better,
7293 # like `-m68040'.
7294 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7295 ;;
7296 esac
7297 ;;
7298
7299 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7300 # PIC is the default for these OSes.
7301 ;;
7302
7303 mingw* | cygwin* | pw32* | os2* | cegcc*)
7304 # This hack is so that the source file can tell whether it is being
7305 # built for inclusion in a dll (and should export symbols for example).
7306 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7307 # (--disable-auto-import) libraries
7308 lt_prog_compiler_pic='-DDLL_EXPORT'
7309 ;;
7310
7311 darwin* | rhapsody*)
7312 # PIC is the default on this platform
7313 # Common symbols not allowed in MH_DYLIB files
7314 lt_prog_compiler_pic='-fno-common'
7315 ;;
7316
7317 haiku*)
7318 # PIC is the default for Haiku.
7319 # The "-static" flag exists, but is broken.
7320 lt_prog_compiler_static=
7321 ;;
7322
7323 hpux*)
7324 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7325 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7326 # sets the default TLS model and affects inlining.
7327 case $host_cpu in
7328 hppa*64*)
7329 # +Z the default
7330 ;;
7331 *)
7332 lt_prog_compiler_pic='-fPIC'
7333 ;;
7334 esac
7335 ;;
7336
7337 interix[3-9]*)
7338 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7339 # Instead, we relocate shared libraries at runtime.
7340 ;;
7341
7342 msdosdjgpp*)
7343 # Just because we use GCC doesn't mean we suddenly get shared libraries
7344 # on systems that don't support them.
7345 lt_prog_compiler_can_build_shared=no
7346 enable_shared=no
7347 ;;
7348
7349 *nto* | *qnx*)
7350 # QNX uses GNU C++, but need to define -shared option too, otherwise
7351 # it will coredump.
7352 lt_prog_compiler_pic='-fPIC -shared'
7353 ;;
7354
7355 sysv4*MP*)
7356 if test -d /usr/nec; then
7357 lt_prog_compiler_pic=-Kconform_pic
7358 fi
7359 ;;
7360
7361 *)
7362 lt_prog_compiler_pic='-fPIC'
7363 ;;
7364 esac
7365
7366 case $cc_basename in
7367 nvcc*) # Cuda Compiler Driver 2.2
7368 lt_prog_compiler_wl='-Xlinker '
7369 lt_prog_compiler_pic='-Xcompiler -fPIC'
7370 ;;
7371 esac
7372 else
7373 # PORTME Check for flag to pass linker flags through the system compiler.
7374 case $host_os in
7375 aix*)
7376 lt_prog_compiler_wl='-Wl,'
7377 if test "$host_cpu" = ia64; then
7378 # AIX 5 now supports IA64 processor
7379 lt_prog_compiler_static='-Bstatic'
7380 else
7381 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7382 fi
7383 ;;
7384
7385 mingw* | cygwin* | pw32* | os2* | cegcc*)
7386 # This hack is so that the source file can tell whether it is being
7387 # built for inclusion in a dll (and should export symbols for example).
7388 lt_prog_compiler_pic='-DDLL_EXPORT'
7389 ;;
7390
7391 hpux9* | hpux10* | hpux11*)
7392 lt_prog_compiler_wl='-Wl,'
7393 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7394 # not for PA HP-UX.
7395 case $host_cpu in
7396 hppa*64*|ia64*)
7397 # +Z the default
7398 ;;
7399 *)
7400 lt_prog_compiler_pic='+Z'
7401 ;;
7402 esac
7403 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7404 lt_prog_compiler_static='${wl}-a ${wl}archive'
7405 ;;
7406
7407 irix5* | irix6* | nonstopux*)
7408 lt_prog_compiler_wl='-Wl,'
7409 # PIC (with -KPIC) is the default.
7410 lt_prog_compiler_static='-non_shared'
7411 ;;
7412
7413 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7414 case $cc_basename in
7415 # old Intel for x86_64 which still supported -KPIC.
7416 ecc*)
7417 lt_prog_compiler_wl='-Wl,'
7418 lt_prog_compiler_pic='-KPIC'
7419 lt_prog_compiler_static='-static'
7420 ;;
7421 # icc used to be incompatible with GCC.
7422 # ICC 10 doesn't accept -KPIC any more.
7423 icc* | ifort*)
7424 lt_prog_compiler_wl='-Wl,'
7425 lt_prog_compiler_pic='-fPIC'
7426 lt_prog_compiler_static='-static'
7427 ;;
7428 # Lahey Fortran 8.1.
7429 lf95*)
7430 lt_prog_compiler_wl='-Wl,'
7431 lt_prog_compiler_pic='--shared'
7432 lt_prog_compiler_static='--static'
7433 ;;
7434 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7435 # Portland Group compilers (*not* the Pentium gcc compiler,
7436 # which looks to be a dead project)
7437 lt_prog_compiler_wl='-Wl,'
7438 lt_prog_compiler_pic='-fpic'
7439 lt_prog_compiler_static='-Bstatic'
7440 ;;
7441 ccc*)
7442 lt_prog_compiler_wl='-Wl,'
7443 # All Alpha code is PIC.
7444 lt_prog_compiler_static='-non_shared'
7445 ;;
7446 xl* | bgxl* | bgf* | mpixl*)
7447 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7448 lt_prog_compiler_wl='-Wl,'
7449 lt_prog_compiler_pic='-qpic'
7450 lt_prog_compiler_static='-qstaticlink'
7451 ;;
7452 *)
7453 case `$CC -V 2>&1 | sed 5q` in
7454 *Sun\ F* | *Sun*Fortran*)
7455 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7456 lt_prog_compiler_pic='-KPIC'
7457 lt_prog_compiler_static='-Bstatic'
7458 lt_prog_compiler_wl=''
7459 ;;
7460 *Sun\ C*)
7461 # Sun C 5.9
7462 lt_prog_compiler_pic='-KPIC'
7463 lt_prog_compiler_static='-Bstatic'
7464 lt_prog_compiler_wl='-Wl,'
7465 ;;
7466 esac
7467 ;;
7468 esac
7469 ;;
7470
7471 newsos6)
7472 lt_prog_compiler_pic='-KPIC'
7473 lt_prog_compiler_static='-Bstatic'
7474 ;;
7475
7476 *nto* | *qnx*)
7477 # QNX uses GNU C++, but need to define -shared option too, otherwise
7478 # it will coredump.
7479 lt_prog_compiler_pic='-fPIC -shared'
7480 ;;
7481
7482 osf3* | osf4* | osf5*)
7483 lt_prog_compiler_wl='-Wl,'
7484 # All OSF/1 code is PIC.
7485 lt_prog_compiler_static='-non_shared'
7486 ;;
7487
7488 rdos*)
7489 lt_prog_compiler_static='-non_shared'
7490 ;;
7491
7492 solaris*)
7493 lt_prog_compiler_pic='-KPIC'
7494 lt_prog_compiler_static='-Bstatic'
7495 case $cc_basename in
7496 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7497 lt_prog_compiler_wl='-Qoption ld ';;
7498 *)
7499 lt_prog_compiler_wl='-Wl,';;
7500 esac
7501 ;;
7502
7503 sunos4*)
7504 lt_prog_compiler_wl='-Qoption ld '
7505 lt_prog_compiler_pic='-PIC'
7506 lt_prog_compiler_static='-Bstatic'
7507 ;;
7508
7509 sysv4 | sysv4.2uw2* | sysv4.3*)
7510 lt_prog_compiler_wl='-Wl,'
7511 lt_prog_compiler_pic='-KPIC'
7512 lt_prog_compiler_static='-Bstatic'
7513 ;;
7514
7515 sysv4*MP*)
7516 if test -d /usr/nec ;then
7517 lt_prog_compiler_pic='-Kconform_pic'
7518 lt_prog_compiler_static='-Bstatic'
7519 fi
7520 ;;
7521
7522 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7523 lt_prog_compiler_wl='-Wl,'
7524 lt_prog_compiler_pic='-KPIC'
7525 lt_prog_compiler_static='-Bstatic'
7526 ;;
7527
7528 unicos*)
7529 lt_prog_compiler_wl='-Wl,'
7530 lt_prog_compiler_can_build_shared=no
7531 ;;
7532
7533 uts4*)
7534 lt_prog_compiler_pic='-pic'
7535 lt_prog_compiler_static='-Bstatic'
7536 ;;
7537
7538 *)
7539 lt_prog_compiler_can_build_shared=no
7540 ;;
7541 esac
7542 fi
7543
7544 case $host_os in
7545 # For platforms which do not support PIC, -DPIC is meaningless:
7546 *djgpp*)
7547 lt_prog_compiler_pic=
7548 ;;
7549 *)
7550 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7551 ;;
7552 esac
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7554 $as_echo "$lt_prog_compiler_pic" >&6; }
7555
7556
7557
7558
7559
7560
7561 #
7562 # Check to make sure the PIC flag actually works.
7563 #
7564 if test -n "$lt_prog_compiler_pic"; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7566 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7567 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7568 $as_echo_n "(cached) " >&6
7569 else
7570 lt_cv_prog_compiler_pic_works=no
7571 ac_outfile=conftest.$ac_objext
7572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7573 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7574 # Insert the option either (1) after the last *FLAGS variable, or
7575 # (2) before a word containing "conftest.", or (3) at the end.
7576 # Note that $ac_compile itself does not contain backslashes and begins
7577 # with a dollar sign (not a hyphen), so the echo should work correctly.
7578 # The option is referenced via a variable to avoid confusing sed.
7579 lt_compile=`echo "$ac_compile" | $SED \
7580 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7582 -e 's:$: $lt_compiler_flag:'`
7583 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7584 (eval "$lt_compile" 2>conftest.err)
7585 ac_status=$?
7586 cat conftest.err >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 if (exit $ac_status) && test -s "$ac_outfile"; then
7589 # The compiler can only warn and ignore the option if not recognized
7590 # So say no if there are warnings other than the usual output.
7591 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7592 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7593 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7594 lt_cv_prog_compiler_pic_works=yes
7595 fi
7596 fi
7597 $RM conftest*
7598
7599 fi
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7601 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7602
7603 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7604 case $lt_prog_compiler_pic in
7605 "" | " "*) ;;
7606 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7607 esac
7608 else
7609 lt_prog_compiler_pic=
7610 lt_prog_compiler_can_build_shared=no
7611 fi
7612
7613 fi
7614
7615
7616
7617
7618
7619
7620 #
7621 # Check to make sure the static flag actually works.
7622 #
7623 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7625 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7626 if ${lt_cv_prog_compiler_static_works+:} false; then :
7627 $as_echo_n "(cached) " >&6
7628 else
7629 lt_cv_prog_compiler_static_works=no
7630 save_LDFLAGS="$LDFLAGS"
7631 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7632 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7633 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7634 # The linker can only warn and ignore the option if not recognized
7635 # So say no if there are warnings
7636 if test -s conftest.err; then
7637 # Append any errors to the config.log.
7638 cat conftest.err 1>&5
7639 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7640 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7641 if diff conftest.exp conftest.er2 >/dev/null; then
7642 lt_cv_prog_compiler_static_works=yes
7643 fi
7644 else
7645 lt_cv_prog_compiler_static_works=yes
7646 fi
7647 fi
7648 $RM -r conftest*
7649 LDFLAGS="$save_LDFLAGS"
7650
7651 fi
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7653 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7654
7655 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7656 :
7657 else
7658 lt_prog_compiler_static=
7659 fi
7660
7661
7662
7663
7664
7665
7666
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7668 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7669 if ${lt_cv_prog_compiler_c_o+:} false; then :
7670 $as_echo_n "(cached) " >&6
7671 else
7672 lt_cv_prog_compiler_c_o=no
7673 $RM -r conftest 2>/dev/null
7674 mkdir conftest
7675 cd conftest
7676 mkdir out
7677 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7678
7679 lt_compiler_flag="-o out/conftest2.$ac_objext"
7680 # Insert the option either (1) after the last *FLAGS variable, or
7681 # (2) before a word containing "conftest.", or (3) at the end.
7682 # Note that $ac_compile itself does not contain backslashes and begins
7683 # with a dollar sign (not a hyphen), so the echo should work correctly.
7684 lt_compile=`echo "$ac_compile" | $SED \
7685 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7687 -e 's:$: $lt_compiler_flag:'`
7688 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7689 (eval "$lt_compile" 2>out/conftest.err)
7690 ac_status=$?
7691 cat out/conftest.err >&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7694 then
7695 # The compiler can only warn and ignore the option if not recognized
7696 # So say no if there are warnings
7697 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7698 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7699 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7700 lt_cv_prog_compiler_c_o=yes
7701 fi
7702 fi
7703 chmod u+w . 2>&5
7704 $RM conftest*
7705 # SGI C++ compiler will create directory out/ii_files/ for
7706 # template instantiation
7707 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7708 $RM out/* && rmdir out
7709 cd ..
7710 $RM -r conftest
7711 $RM conftest*
7712
7713 fi
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7715 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7716
7717
7718
7719
7720
7721
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7723 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7724 if ${lt_cv_prog_compiler_c_o+:} false; then :
7725 $as_echo_n "(cached) " >&6
7726 else
7727 lt_cv_prog_compiler_c_o=no
7728 $RM -r conftest 2>/dev/null
7729 mkdir conftest
7730 cd conftest
7731 mkdir out
7732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7733
7734 lt_compiler_flag="-o out/conftest2.$ac_objext"
7735 # Insert the option either (1) after the last *FLAGS variable, or
7736 # (2) before a word containing "conftest.", or (3) at the end.
7737 # Note that $ac_compile itself does not contain backslashes and begins
7738 # with a dollar sign (not a hyphen), so the echo should work correctly.
7739 lt_compile=`echo "$ac_compile" | $SED \
7740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7742 -e 's:$: $lt_compiler_flag:'`
7743 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7744 (eval "$lt_compile" 2>out/conftest.err)
7745 ac_status=$?
7746 cat out/conftest.err >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7749 then
7750 # The compiler can only warn and ignore the option if not recognized
7751 # So say no if there are warnings
7752 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7753 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7754 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7755 lt_cv_prog_compiler_c_o=yes
7756 fi
7757 fi
7758 chmod u+w . 2>&5
7759 $RM conftest*
7760 # SGI C++ compiler will create directory out/ii_files/ for
7761 # template instantiation
7762 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7763 $RM out/* && rmdir out
7764 cd ..
7765 $RM -r conftest
7766 $RM conftest*
7767
7768 fi
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7770 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7771
7772
7773
7774
7775 hard_links="nottested"
7776 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7777 # do not overwrite the value of need_locks provided by the user
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7779 $as_echo_n "checking if we can lock with hard links... " >&6; }
7780 hard_links=yes
7781 $RM conftest*
7782 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7783 touch conftest.a
7784 ln conftest.a conftest.b 2>&5 || hard_links=no
7785 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7787 $as_echo "$hard_links" >&6; }
7788 if test "$hard_links" = no; then
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7790 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7791 need_locks=warn
7792 fi
7793 else
7794 need_locks=no
7795 fi
7796
7797
7798
7799
7800
7801
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7803 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7804
7805 runpath_var=
7806 allow_undefined_flag=
7807 always_export_symbols=no
7808 archive_cmds=
7809 archive_expsym_cmds=
7810 compiler_needs_object=no
7811 enable_shared_with_static_runtimes=no
7812 export_dynamic_flag_spec=
7813 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7814 hardcode_automatic=no
7815 hardcode_direct=no
7816 hardcode_direct_absolute=no
7817 hardcode_libdir_flag_spec=
7818 hardcode_libdir_flag_spec_ld=
7819 hardcode_libdir_separator=
7820 hardcode_minus_L=no
7821 hardcode_shlibpath_var=unsupported
7822 inherit_rpath=no
7823 link_all_deplibs=unknown
7824 module_cmds=
7825 module_expsym_cmds=
7826 old_archive_from_new_cmds=
7827 old_archive_from_expsyms_cmds=
7828 thread_safe_flag_spec=
7829 whole_archive_flag_spec=
7830 # include_expsyms should be a list of space-separated symbols to be *always*
7831 # included in the symbol list
7832 include_expsyms=
7833 # exclude_expsyms can be an extended regexp of symbols to exclude
7834 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7835 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7836 # as well as any symbol that contains `d'.
7837 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7838 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7839 # platforms (ab)use it in PIC code, but their linkers get confused if
7840 # the symbol is explicitly referenced. Since portable code cannot
7841 # rely on this symbol name, it's probably fine to never include it in
7842 # preloaded symbol tables.
7843 # Exclude shared library initialization/finalization symbols.
7844 extract_expsyms_cmds=
7845
7846 case $host_os in
7847 cygwin* | mingw* | pw32* | cegcc*)
7848 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7849 # When not using gcc, we currently assume that we are using
7850 # Microsoft Visual C++.
7851 if test "$GCC" != yes; then
7852 with_gnu_ld=no
7853 fi
7854 ;;
7855 interix*)
7856 # we just hope/assume this is gcc and not c89 (= MSVC++)
7857 with_gnu_ld=yes
7858 ;;
7859 openbsd*)
7860 with_gnu_ld=no
7861 ;;
7862 esac
7863
7864 ld_shlibs=yes
7865
7866 # On some targets, GNU ld is compatible enough with the native linker
7867 # that we're better off using the native interface for both.
7868 lt_use_gnu_ld_interface=no
7869 if test "$with_gnu_ld" = yes; then
7870 case $host_os in
7871 aix*)
7872 # The AIX port of GNU ld has always aspired to compatibility
7873 # with the native linker. However, as the warning in the GNU ld
7874 # block says, versions before 2.19.5* couldn't really create working
7875 # shared libraries, regardless of the interface used.
7876 case `$LD -v 2>&1` in
7877 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7878 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7879 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7880 *)
7881 lt_use_gnu_ld_interface=yes
7882 ;;
7883 esac
7884 ;;
7885 *)
7886 lt_use_gnu_ld_interface=yes
7887 ;;
7888 esac
7889 fi
7890
7891 if test "$lt_use_gnu_ld_interface" = yes; then
7892 # If archive_cmds runs LD, not CC, wlarc should be empty
7893 wlarc='${wl}'
7894
7895 # Set some defaults for GNU ld with shared library support. These
7896 # are reset later if shared libraries are not supported. Putting them
7897 # here allows them to be overridden if necessary.
7898 runpath_var=LD_RUN_PATH
7899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7900 export_dynamic_flag_spec='${wl}--export-dynamic'
7901 # ancient GNU ld didn't support --whole-archive et. al.
7902 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7903 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7904 else
7905 whole_archive_flag_spec=
7906 fi
7907 supports_anon_versioning=no
7908 case `$LD -v 2>&1` in
7909 *GNU\ gold*) supports_anon_versioning=yes ;;
7910 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7911 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7912 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7913 *\ 2.11.*) ;; # other 2.11 versions
7914 *) supports_anon_versioning=yes ;;
7915 esac
7916
7917 # See if GNU ld supports shared libraries.
7918 case $host_os in
7919 aix[3-9]*)
7920 # On AIX/PPC, the GNU linker is very broken
7921 if test "$host_cpu" != ia64; then
7922 ld_shlibs=no
7923 cat <<_LT_EOF 1>&2
7924
7925 *** Warning: the GNU linker, at least up to release 2.19, is reported
7926 *** to be unable to reliably create shared libraries on AIX.
7927 *** Therefore, libtool is disabling shared libraries support. If you
7928 *** really care for shared libraries, you may want to install binutils
7929 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7930 *** You will then need to restart the configuration process.
7931
7932 _LT_EOF
7933 fi
7934 ;;
7935
7936 amigaos*)
7937 case $host_cpu in
7938 powerpc)
7939 # see comment about AmigaOS4 .so support
7940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7941 archive_expsym_cmds=''
7942 ;;
7943 m68k)
7944 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)'
7945 hardcode_libdir_flag_spec='-L$libdir'
7946 hardcode_minus_L=yes
7947 ;;
7948 esac
7949 ;;
7950
7951 beos*)
7952 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7953 allow_undefined_flag=unsupported
7954 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
7955 # support --undefined. This deserves some investigation. FIXME
7956 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7957 else
7958 ld_shlibs=no
7959 fi
7960 ;;
7961
7962 cygwin* | mingw* | pw32* | cegcc*)
7963 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7964 # as there is no search path for DLLs.
7965 hardcode_libdir_flag_spec='-L$libdir'
7966 export_dynamic_flag_spec='${wl}--export-all-symbols'
7967 allow_undefined_flag=unsupported
7968 always_export_symbols=no
7969 enable_shared_with_static_runtimes=yes
7970 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7971
7972 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7974 # If the export-symbols file already is a .def file (1st line
7975 # is EXPORTS), use it as is; otherwise, prepend...
7976 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7977 cp $export_symbols $output_objdir/$soname.def;
7978 else
7979 echo EXPORTS > $output_objdir/$soname.def;
7980 cat $export_symbols >> $output_objdir/$soname.def;
7981 fi~
7982 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7983 else
7984 ld_shlibs=no
7985 fi
7986 ;;
7987
7988 haiku*)
7989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7990 link_all_deplibs=yes
7991 ;;
7992
7993 interix[3-9]*)
7994 hardcode_direct=no
7995 hardcode_shlibpath_var=no
7996 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7997 export_dynamic_flag_spec='${wl}-E'
7998 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7999 # Instead, shared libraries are loaded at an image base (0x10000000 by
8000 # default) and relocated if they conflict, which is a slow very memory
8001 # consuming and fragmenting process. To avoid this, we pick a random,
8002 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8003 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8004 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8005 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'
8006 ;;
8007
8008 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8009 tmp_diet=no
8010 if test "$host_os" = linux-dietlibc; then
8011 case $cc_basename in
8012 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8013 esac
8014 fi
8015 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8016 && test "$tmp_diet" = no
8017 then
8018 tmp_addflag=
8019 tmp_sharedflag='-shared'
8020 case $cc_basename,$host_cpu in
8021 pgcc*) # Portland Group C compiler
8022 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'
8023 tmp_addflag=' $pic_flag'
8024 ;;
8025 pgf77* | pgf90* | pgf95* | pgfortran*)
8026 # Portland Group f77 and f90 compilers
8027 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'
8028 tmp_addflag=' $pic_flag -Mnomain' ;;
8029 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8030 tmp_addflag=' -i_dynamic' ;;
8031 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8032 tmp_addflag=' -i_dynamic -nofor_main' ;;
8033 ifc* | ifort*) # Intel Fortran compiler
8034 tmp_addflag=' -nofor_main' ;;
8035 lf95*) # Lahey Fortran 8.1
8036 whole_archive_flag_spec=
8037 tmp_sharedflag='--shared' ;;
8038 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8039 tmp_sharedflag='-qmkshrobj'
8040 tmp_addflag= ;;
8041 nvcc*) # Cuda Compiler Driver 2.2
8042 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'
8043 compiler_needs_object=yes
8044 ;;
8045 esac
8046 case `$CC -V 2>&1 | sed 5q` in
8047 *Sun\ C*) # Sun C 5.9
8048 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'
8049 compiler_needs_object=yes
8050 tmp_sharedflag='-G' ;;
8051 *Sun\ F*) # Sun Fortran 8.3
8052 tmp_sharedflag='-G' ;;
8053 esac
8054 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8055
8056 if test "x$supports_anon_versioning" = xyes; then
8057 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8058 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8059 echo "local: *; };" >> $output_objdir/$libname.ver~
8060 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8061 fi
8062
8063 case $cc_basename in
8064 xlf* | bgf* | bgxlf* | mpixlf*)
8065 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8066 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8067 hardcode_libdir_flag_spec=
8068 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8069 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8070 if test "x$supports_anon_versioning" = xyes; then
8071 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8072 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8073 echo "local: *; };" >> $output_objdir/$libname.ver~
8074 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8075 fi
8076 ;;
8077 esac
8078 else
8079 ld_shlibs=no
8080 fi
8081 ;;
8082
8083 netbsd*)
8084 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8085 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8086 wlarc=
8087 else
8088 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8089 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8090 fi
8091 ;;
8092
8093 solaris*)
8094 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8095 ld_shlibs=no
8096 cat <<_LT_EOF 1>&2
8097
8098 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8099 *** create shared libraries on Solaris systems. Therefore, libtool
8100 *** is disabling shared libraries support. We urge you to upgrade GNU
8101 *** binutils to release 2.9.1 or newer. Another option is to modify
8102 *** your PATH or compiler configuration so that the native linker is
8103 *** used, and then restart.
8104
8105 _LT_EOF
8106 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8108 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8109 else
8110 ld_shlibs=no
8111 fi
8112 ;;
8113
8114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8115 case `$LD -v 2>&1` in
8116 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8117 ld_shlibs=no
8118 cat <<_LT_EOF 1>&2
8119
8120 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8121 *** reliably create shared libraries on SCO systems. Therefore, libtool
8122 *** is disabling shared libraries support. We urge you to upgrade GNU
8123 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8124 *** your PATH or compiler configuration so that the native linker is
8125 *** used, and then restart.
8126
8127 _LT_EOF
8128 ;;
8129 *)
8130 # For security reasons, it is highly recommended that you always
8131 # use absolute paths for naming shared libraries, and exclude the
8132 # DT_RUNPATH tag from executables and libraries. But doing so
8133 # requires that you compile everything twice, which is a pain.
8134 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8137 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8138 else
8139 ld_shlibs=no
8140 fi
8141 ;;
8142 esac
8143 ;;
8144
8145 sunos4*)
8146 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8147 wlarc=
8148 hardcode_direct=yes
8149 hardcode_shlibpath_var=no
8150 ;;
8151
8152 *)
8153 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8155 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8156 else
8157 ld_shlibs=no
8158 fi
8159 ;;
8160 esac
8161
8162 if test "$ld_shlibs" = no; then
8163 runpath_var=
8164 hardcode_libdir_flag_spec=
8165 export_dynamic_flag_spec=
8166 whole_archive_flag_spec=
8167 fi
8168 else
8169 # PORTME fill in a description of your system's linker (not GNU ld)
8170 case $host_os in
8171 aix3*)
8172 allow_undefined_flag=unsupported
8173 always_export_symbols=yes
8174 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'
8175 # Note: this linker hardcodes the directories in LIBPATH if there
8176 # are no directories specified by -L.
8177 hardcode_minus_L=yes
8178 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8179 # Neither direct hardcoding nor static linking is supported with a
8180 # broken collect2.
8181 hardcode_direct=unsupported
8182 fi
8183 ;;
8184
8185 aix[4-9]*)
8186 if test "$host_cpu" = ia64; then
8187 # On IA64, the linker does run time linking by default, so we don't
8188 # have to do anything special.
8189 aix_use_runtimelinking=no
8190 exp_sym_flag='-Bexport'
8191 no_entry_flag=""
8192 else
8193 # If we're using GNU nm, then we don't want the "-C" option.
8194 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8195 # Also, AIX nm treats weak defined symbols like other global
8196 # defined symbols, whereas GNU nm marks them as "W".
8197 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8198 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'
8199 else
8200 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'
8201 fi
8202 aix_use_runtimelinking=no
8203
8204 # Test if we are trying to use run time linking or normal
8205 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8206 # need to do runtime linking.
8207 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8208 for ld_flag in $LDFLAGS; do
8209 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8210 aix_use_runtimelinking=yes
8211 break
8212 fi
8213 done
8214 ;;
8215 esac
8216
8217 exp_sym_flag='-bexport'
8218 no_entry_flag='-bnoentry'
8219 fi
8220
8221 # When large executables or shared objects are built, AIX ld can
8222 # have problems creating the table of contents. If linking a library
8223 # or program results in "error TOC overflow" add -mminimal-toc to
8224 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8225 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8226
8227 archive_cmds=''
8228 hardcode_direct=yes
8229 hardcode_direct_absolute=yes
8230 hardcode_libdir_separator=':'
8231 link_all_deplibs=yes
8232 file_list_spec='${wl}-f,'
8233
8234 if test "$GCC" = yes; then
8235 case $host_os in aix4.[012]|aix4.[012].*)
8236 # We only want to do this on AIX 4.2 and lower, the check
8237 # below for broken collect2 doesn't work under 4.3+
8238 collect2name=`${CC} -print-prog-name=collect2`
8239 if test -f "$collect2name" &&
8240 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8241 then
8242 # We have reworked collect2
8243 :
8244 else
8245 # We have old collect2
8246 hardcode_direct=unsupported
8247 # It fails to find uninstalled libraries when the uninstalled
8248 # path is not listed in the libpath. Setting hardcode_minus_L
8249 # to unsupported forces relinking
8250 hardcode_minus_L=yes
8251 hardcode_libdir_flag_spec='-L$libdir'
8252 hardcode_libdir_separator=
8253 fi
8254 ;;
8255 esac
8256 shared_flag='-shared'
8257 if test "$aix_use_runtimelinking" = yes; then
8258 shared_flag="$shared_flag "'${wl}-G'
8259 fi
8260 else
8261 # not using gcc
8262 if test "$host_cpu" = ia64; then
8263 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8264 # chokes on -Wl,-G. The following line is correct:
8265 shared_flag='-G'
8266 else
8267 if test "$aix_use_runtimelinking" = yes; then
8268 shared_flag='${wl}-G'
8269 else
8270 shared_flag='${wl}-bM:SRE'
8271 fi
8272 fi
8273 fi
8274
8275 export_dynamic_flag_spec='${wl}-bexpall'
8276 # It seems that -bexpall does not export symbols beginning with
8277 # underscore (_), so it is better to generate a list of symbols to export.
8278 always_export_symbols=yes
8279 if test "$aix_use_runtimelinking" = yes; then
8280 # Warning - without using the other runtime loading flags (-brtl),
8281 # -berok will link without error, but may produce a broken library.
8282 allow_undefined_flag='-berok'
8283 # Determine the default libpath from the value encoded in an
8284 # empty executable.
8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h. */
8287
8288 int
8289 main ()
8290 {
8291
8292 ;
8293 return 0;
8294 }
8295 _ACEOF
8296 if ac_fn_c_try_link "$LINENO"; then :
8297
8298 lt_aix_libpath_sed='
8299 /Import File Strings/,/^$/ {
8300 /^0/ {
8301 s/^0 *\(.*\)$/\1/
8302 p
8303 }
8304 }'
8305 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8306 # Check for a 64-bit object if we didn't find anything.
8307 if test -z "$aix_libpath"; then
8308 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8309 fi
8310 fi
8311 rm -f core conftest.err conftest.$ac_objext \
8312 conftest$ac_exeext conftest.$ac_ext
8313 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8314
8315 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8316 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"
8317 else
8318 if test "$host_cpu" = ia64; then
8319 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8320 allow_undefined_flag="-z nodefs"
8321 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"
8322 else
8323 # Determine the default libpath from the value encoded in an
8324 # empty executable.
8325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326 /* end confdefs.h. */
8327
8328 int
8329 main ()
8330 {
8331
8332 ;
8333 return 0;
8334 }
8335 _ACEOF
8336 if ac_fn_c_try_link "$LINENO"; then :
8337
8338 lt_aix_libpath_sed='
8339 /Import File Strings/,/^$/ {
8340 /^0/ {
8341 s/^0 *\(.*\)$/\1/
8342 p
8343 }
8344 }'
8345 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8346 # Check for a 64-bit object if we didn't find anything.
8347 if test -z "$aix_libpath"; then
8348 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8349 fi
8350 fi
8351 rm -f core conftest.err conftest.$ac_objext \
8352 conftest$ac_exeext conftest.$ac_ext
8353 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8354
8355 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8356 # Warning - without using the other run time loading flags,
8357 # -berok will link without error, but may produce a broken library.
8358 no_undefined_flag=' ${wl}-bernotok'
8359 allow_undefined_flag=' ${wl}-berok'
8360 if test "$with_gnu_ld" = yes; then
8361 # We only use this code for GNU lds that support --whole-archive.
8362 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8363 else
8364 # Exported symbols can be pulled into shared objects from archives
8365 whole_archive_flag_spec='$convenience'
8366 fi
8367 archive_cmds_need_lc=yes
8368 # This is similar to how AIX traditionally builds its shared libraries.
8369 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'
8370 fi
8371 fi
8372 ;;
8373
8374 amigaos*)
8375 case $host_cpu in
8376 powerpc)
8377 # see comment about AmigaOS4 .so support
8378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8379 archive_expsym_cmds=''
8380 ;;
8381 m68k)
8382 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)'
8383 hardcode_libdir_flag_spec='-L$libdir'
8384 hardcode_minus_L=yes
8385 ;;
8386 esac
8387 ;;
8388
8389 bsdi[45]*)
8390 export_dynamic_flag_spec=-rdynamic
8391 ;;
8392
8393 cygwin* | mingw* | pw32* | cegcc*)
8394 # When not using gcc, we currently assume that we are using
8395 # Microsoft Visual C++.
8396 # hardcode_libdir_flag_spec is actually meaningless, as there is
8397 # no search path for DLLs.
8398 hardcode_libdir_flag_spec=' '
8399 allow_undefined_flag=unsupported
8400 # Tell ltmain to make .lib files, not .a files.
8401 libext=lib
8402 # Tell ltmain to make .dll files, not .so files.
8403 shrext_cmds=".dll"
8404 # FIXME: Setting linknames here is a bad hack.
8405 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8406 # The linker will automatically build a .lib file if we build a DLL.
8407 old_archive_from_new_cmds='true'
8408 # FIXME: Should let the user specify the lib program.
8409 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8410 fix_srcfile_path='`cygpath -w "$srcfile"`'
8411 enable_shared_with_static_runtimes=yes
8412 ;;
8413
8414 darwin* | rhapsody*)
8415
8416
8417 archive_cmds_need_lc=no
8418 hardcode_direct=no
8419 hardcode_automatic=yes
8420 hardcode_shlibpath_var=unsupported
8421 if test "$lt_cv_ld_force_load" = "yes"; then
8422 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\"`'
8423 else
8424 whole_archive_flag_spec=''
8425 fi
8426 link_all_deplibs=yes
8427 allow_undefined_flag="$_lt_dar_allow_undefined"
8428 case $cc_basename in
8429 ifort*) _lt_dar_can_shared=yes ;;
8430 *) _lt_dar_can_shared=$GCC ;;
8431 esac
8432 if test "$_lt_dar_can_shared" = "yes"; then
8433 output_verbose_link_cmd=func_echo_all
8434 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8435 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8436 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}"
8437 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}"
8438
8439 else
8440 ld_shlibs=no
8441 fi
8442
8443 ;;
8444
8445 dgux*)
8446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8447 hardcode_libdir_flag_spec='-L$libdir'
8448 hardcode_shlibpath_var=no
8449 ;;
8450
8451 freebsd1*)
8452 ld_shlibs=no
8453 ;;
8454
8455 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8456 # support. Future versions do this automatically, but an explicit c++rt0.o
8457 # does not break anything, and helps significantly (at the cost of a little
8458 # extra space).
8459 freebsd2.2*)
8460 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8461 hardcode_libdir_flag_spec='-R$libdir'
8462 hardcode_direct=yes
8463 hardcode_shlibpath_var=no
8464 ;;
8465
8466 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8467 freebsd2*)
8468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8469 hardcode_direct=yes
8470 hardcode_minus_L=yes
8471 hardcode_shlibpath_var=no
8472 ;;
8473
8474 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8475 freebsd* | dragonfly*)
8476 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8477 hardcode_libdir_flag_spec='-R$libdir'
8478 hardcode_direct=yes
8479 hardcode_shlibpath_var=no
8480 ;;
8481
8482 hpux9*)
8483 if test "$GCC" = yes; then
8484 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8485 else
8486 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'
8487 fi
8488 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8489 hardcode_libdir_separator=:
8490 hardcode_direct=yes
8491
8492 # hardcode_minus_L: Not really in the search PATH,
8493 # but as the default location of the library.
8494 hardcode_minus_L=yes
8495 export_dynamic_flag_spec='${wl}-E'
8496 ;;
8497
8498 hpux10*)
8499 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8500 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8501 else
8502 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8503 fi
8504 if test "$with_gnu_ld" = no; then
8505 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8506 hardcode_libdir_flag_spec_ld='+b $libdir'
8507 hardcode_libdir_separator=:
8508 hardcode_direct=yes
8509 hardcode_direct_absolute=yes
8510 export_dynamic_flag_spec='${wl}-E'
8511 # hardcode_minus_L: Not really in the search PATH,
8512 # but as the default location of the library.
8513 hardcode_minus_L=yes
8514 fi
8515 ;;
8516
8517 hpux11*)
8518 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8519 case $host_cpu in
8520 hppa*64*)
8521 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8522 ;;
8523 ia64*)
8524 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8525 ;;
8526 *)
8527 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8528 ;;
8529 esac
8530 else
8531 case $host_cpu in
8532 hppa*64*)
8533 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8534 ;;
8535 ia64*)
8536 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8537 ;;
8538 *)
8539
8540 # Older versions of the 11.00 compiler do not understand -b yet
8541 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8543 $as_echo_n "checking if $CC understands -b... " >&6; }
8544 if ${lt_cv_prog_compiler__b+:} false; then :
8545 $as_echo_n "(cached) " >&6
8546 else
8547 lt_cv_prog_compiler__b=no
8548 save_LDFLAGS="$LDFLAGS"
8549 LDFLAGS="$LDFLAGS -b"
8550 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8551 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8552 # The linker can only warn and ignore the option if not recognized
8553 # So say no if there are warnings
8554 if test -s conftest.err; then
8555 # Append any errors to the config.log.
8556 cat conftest.err 1>&5
8557 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8558 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8559 if diff conftest.exp conftest.er2 >/dev/null; then
8560 lt_cv_prog_compiler__b=yes
8561 fi
8562 else
8563 lt_cv_prog_compiler__b=yes
8564 fi
8565 fi
8566 $RM -r conftest*
8567 LDFLAGS="$save_LDFLAGS"
8568
8569 fi
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8571 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8572
8573 if test x"$lt_cv_prog_compiler__b" = xyes; then
8574 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8575 else
8576 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8577 fi
8578
8579 ;;
8580 esac
8581 fi
8582 if test "$with_gnu_ld" = no; then
8583 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8584 hardcode_libdir_separator=:
8585
8586 case $host_cpu in
8587 hppa*64*|ia64*)
8588 hardcode_direct=no
8589 hardcode_shlibpath_var=no
8590 ;;
8591 *)
8592 hardcode_direct=yes
8593 hardcode_direct_absolute=yes
8594 export_dynamic_flag_spec='${wl}-E'
8595
8596 # hardcode_minus_L: Not really in the search PATH,
8597 # but as the default location of the library.
8598 hardcode_minus_L=yes
8599 ;;
8600 esac
8601 fi
8602 ;;
8603
8604 irix5* | irix6* | nonstopux*)
8605 if test "$GCC" = yes; then
8606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8607 # Try to use the -exported_symbol ld option, if it does not
8608 # work, assume that -exports_file does not work either and
8609 # implicitly export all symbols.
8610 save_LDFLAGS="$LDFLAGS"
8611 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613 /* end confdefs.h. */
8614 int foo(void) {}
8615 _ACEOF
8616 if ac_fn_c_try_link "$LINENO"; then :
8617 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8618
8619 fi
8620 rm -f core conftest.err conftest.$ac_objext \
8621 conftest$ac_exeext conftest.$ac_ext
8622 LDFLAGS="$save_LDFLAGS"
8623 else
8624 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'
8625 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'
8626 fi
8627 archive_cmds_need_lc='no'
8628 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8629 hardcode_libdir_separator=:
8630 inherit_rpath=yes
8631 link_all_deplibs=yes
8632 ;;
8633
8634 netbsd*)
8635 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8637 else
8638 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8639 fi
8640 hardcode_libdir_flag_spec='-R$libdir'
8641 hardcode_direct=yes
8642 hardcode_shlibpath_var=no
8643 ;;
8644
8645 newsos6)
8646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8647 hardcode_direct=yes
8648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8649 hardcode_libdir_separator=:
8650 hardcode_shlibpath_var=no
8651 ;;
8652
8653 *nto* | *qnx*)
8654 ;;
8655
8656 openbsd*)
8657 if test -f /usr/libexec/ld.so; then
8658 hardcode_direct=yes
8659 hardcode_shlibpath_var=no
8660 hardcode_direct_absolute=yes
8661 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8662 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8663 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8664 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8665 export_dynamic_flag_spec='${wl}-E'
8666 else
8667 case $host_os in
8668 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8669 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8670 hardcode_libdir_flag_spec='-R$libdir'
8671 ;;
8672 *)
8673 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8674 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8675 ;;
8676 esac
8677 fi
8678 else
8679 ld_shlibs=no
8680 fi
8681 ;;
8682
8683 os2*)
8684 hardcode_libdir_flag_spec='-L$libdir'
8685 hardcode_minus_L=yes
8686 allow_undefined_flag=unsupported
8687 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'
8688 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8689 ;;
8690
8691 osf3*)
8692 if test "$GCC" = yes; then
8693 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8694 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'
8695 else
8696 allow_undefined_flag=' -expect_unresolved \*'
8697 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'
8698 fi
8699 archive_cmds_need_lc='no'
8700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8701 hardcode_libdir_separator=:
8702 ;;
8703
8704 osf4* | osf5*) # as osf3* with the addition of -msym flag
8705 if test "$GCC" = yes; then
8706 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8707 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8708 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8709 else
8710 allow_undefined_flag=' -expect_unresolved \*'
8711 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'
8712 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~
8713 $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'
8714
8715 # Both c and cxx compiler support -rpath directly
8716 hardcode_libdir_flag_spec='-rpath $libdir'
8717 fi
8718 archive_cmds_need_lc='no'
8719 hardcode_libdir_separator=:
8720 ;;
8721
8722 solaris*)
8723 no_undefined_flag=' -z defs'
8724 if test "$GCC" = yes; then
8725 wlarc='${wl}'
8726 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8727 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8728 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8729 else
8730 case `$CC -V 2>&1` in
8731 *"Compilers 5.0"*)
8732 wlarc=''
8733 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8734 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8735 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8736 ;;
8737 *)
8738 wlarc='${wl}'
8739 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8740 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8741 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8742 ;;
8743 esac
8744 fi
8745 hardcode_libdir_flag_spec='-R$libdir'
8746 hardcode_shlibpath_var=no
8747 case $host_os in
8748 solaris2.[0-5] | solaris2.[0-5].*) ;;
8749 *)
8750 # The compiler driver will combine and reorder linker options,
8751 # but understands `-z linker_flag'. GCC discards it without `$wl',
8752 # but is careful enough not to reorder.
8753 # Supported since Solaris 2.6 (maybe 2.5.1?)
8754 if test "$GCC" = yes; then
8755 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8756 else
8757 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8758 fi
8759 ;;
8760 esac
8761 link_all_deplibs=yes
8762 ;;
8763
8764 sunos4*)
8765 if test "x$host_vendor" = xsequent; then
8766 # Use $CC to link under sequent, because it throws in some extra .o
8767 # files that make .init and .fini sections work.
8768 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8769 else
8770 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8771 fi
8772 hardcode_libdir_flag_spec='-L$libdir'
8773 hardcode_direct=yes
8774 hardcode_minus_L=yes
8775 hardcode_shlibpath_var=no
8776 ;;
8777
8778 sysv4)
8779 case $host_vendor in
8780 sni)
8781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8782 hardcode_direct=yes # is this really true???
8783 ;;
8784 siemens)
8785 ## LD is ld it makes a PLAMLIB
8786 ## CC just makes a GrossModule.
8787 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8788 reload_cmds='$CC -r -o $output$reload_objs'
8789 hardcode_direct=no
8790 ;;
8791 motorola)
8792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8793 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8794 ;;
8795 esac
8796 runpath_var='LD_RUN_PATH'
8797 hardcode_shlibpath_var=no
8798 ;;
8799
8800 sysv4.3*)
8801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8802 hardcode_shlibpath_var=no
8803 export_dynamic_flag_spec='-Bexport'
8804 ;;
8805
8806 sysv4*MP*)
8807 if test -d /usr/nec; then
8808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8809 hardcode_shlibpath_var=no
8810 runpath_var=LD_RUN_PATH
8811 hardcode_runpath_var=yes
8812 ld_shlibs=yes
8813 fi
8814 ;;
8815
8816 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8817 no_undefined_flag='${wl}-z,text'
8818 archive_cmds_need_lc=no
8819 hardcode_shlibpath_var=no
8820 runpath_var='LD_RUN_PATH'
8821
8822 if test "$GCC" = yes; then
8823 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8824 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8825 else
8826 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8827 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8828 fi
8829 ;;
8830
8831 sysv5* | sco3.2v5* | sco5v6*)
8832 # Note: We can NOT use -z defs as we might desire, because we do not
8833 # link with -lc, and that would cause any symbols used from libc to
8834 # always be unresolved, which means just about no library would
8835 # ever link correctly. If we're not using GNU ld we use -z text
8836 # though, which does catch some bad symbols but isn't as heavy-handed
8837 # as -z defs.
8838 no_undefined_flag='${wl}-z,text'
8839 allow_undefined_flag='${wl}-z,nodefs'
8840 archive_cmds_need_lc=no
8841 hardcode_shlibpath_var=no
8842 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8843 hardcode_libdir_separator=':'
8844 link_all_deplibs=yes
8845 export_dynamic_flag_spec='${wl}-Bexport'
8846 runpath_var='LD_RUN_PATH'
8847
8848 if test "$GCC" = yes; then
8849 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8850 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8851 else
8852 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8853 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8854 fi
8855 ;;
8856
8857 uts4*)
8858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8859 hardcode_libdir_flag_spec='-L$libdir'
8860 hardcode_shlibpath_var=no
8861 ;;
8862
8863 *)
8864 ld_shlibs=no
8865 ;;
8866 esac
8867
8868 if test x$host_vendor = xsni; then
8869 case $host in
8870 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8871 export_dynamic_flag_spec='${wl}-Blargedynsym'
8872 ;;
8873 esac
8874 fi
8875 fi
8876
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8878 $as_echo "$ld_shlibs" >&6; }
8879 test "$ld_shlibs" = no && can_build_shared=no
8880
8881 with_gnu_ld=$with_gnu_ld
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897 #
8898 # Do we need to explicitly link libc?
8899 #
8900 case "x$archive_cmds_need_lc" in
8901 x|xyes)
8902 # Assume -lc should be added
8903 archive_cmds_need_lc=yes
8904
8905 if test "$enable_shared" = yes && test "$GCC" = yes; then
8906 case $archive_cmds in
8907 *'~'*)
8908 # FIXME: we may have to deal with multi-command sequences.
8909 ;;
8910 '$CC '*)
8911 # Test whether the compiler implicitly links with -lc since on some
8912 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8913 # to ld, don't add -lc before -lgcc.
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8915 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8916 if ${lt_cv_archive_cmds_need_lc+:} false; then :
8917 $as_echo_n "(cached) " >&6
8918 else
8919 $RM conftest*
8920 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8921
8922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8923 (eval $ac_compile) 2>&5
8924 ac_status=$?
8925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8926 test $ac_status = 0; } 2>conftest.err; then
8927 soname=conftest
8928 lib=conftest
8929 libobjs=conftest.$ac_objext
8930 deplibs=
8931 wl=$lt_prog_compiler_wl
8932 pic_flag=$lt_prog_compiler_pic
8933 compiler_flags=-v
8934 linker_flags=-v
8935 verstring=
8936 output_objdir=.
8937 libname=conftest
8938 lt_save_allow_undefined_flag=$allow_undefined_flag
8939 allow_undefined_flag=
8940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8941 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8942 ac_status=$?
8943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8944 test $ac_status = 0; }
8945 then
8946 lt_cv_archive_cmds_need_lc=no
8947 else
8948 lt_cv_archive_cmds_need_lc=yes
8949 fi
8950 allow_undefined_flag=$lt_save_allow_undefined_flag
8951 else
8952 cat conftest.err 1>&5
8953 fi
8954 $RM conftest*
8955
8956 fi
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
8958 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
8959 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
8960 ;;
8961 esac
8962 fi
8963 ;;
8964 esac
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9123 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9124
9125 if test "$GCC" = yes; then
9126 case $host_os in
9127 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9128 *) lt_awk_arg="/^libraries:/" ;;
9129 esac
9130 case $host_os in
9131 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9132 *) lt_sed_strip_eq="s,=/,/,g" ;;
9133 esac
9134 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9135 case $lt_search_path_spec in
9136 *\;*)
9137 # if the path contains ";" then we assume it to be the separator
9138 # otherwise default to the standard path separator (i.e. ":") - it is
9139 # assumed that no part of a normal pathname contains ";" but that should
9140 # okay in the real world where ";" in dirpaths is itself problematic.
9141 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9142 ;;
9143 *)
9144 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9145 ;;
9146 esac
9147 # Ok, now we have the path, separated by spaces, we can step through it
9148 # and add multilib dir if necessary.
9149 lt_tmp_lt_search_path_spec=
9150 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9151 for lt_sys_path in $lt_search_path_spec; do
9152 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9153 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9154 else
9155 test -d "$lt_sys_path" && \
9156 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9157 fi
9158 done
9159 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9160 BEGIN {RS=" "; FS="/|\n";} {
9161 lt_foo="";
9162 lt_count=0;
9163 for (lt_i = NF; lt_i > 0; lt_i--) {
9164 if ($lt_i != "" && $lt_i != ".") {
9165 if ($lt_i == "..") {
9166 lt_count++;
9167 } else {
9168 if (lt_count == 0) {
9169 lt_foo="/" $lt_i lt_foo;
9170 } else {
9171 lt_count--;
9172 }
9173 }
9174 }
9175 }
9176 if (lt_foo != "") { lt_freq[lt_foo]++; }
9177 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9178 }'`
9179 # AWK program above erroneously prepends '/' to C:/dos/paths
9180 # for these hosts.
9181 case $host_os in
9182 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9183 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9184 esac
9185 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9186 else
9187 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9188 fi
9189 library_names_spec=
9190 libname_spec='lib$name'
9191 soname_spec=
9192 shrext_cmds=".so"
9193 postinstall_cmds=
9194 postuninstall_cmds=
9195 finish_cmds=
9196 finish_eval=
9197 shlibpath_var=
9198 shlibpath_overrides_runpath=unknown
9199 version_type=none
9200 dynamic_linker="$host_os ld.so"
9201 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9202 need_lib_prefix=unknown
9203 hardcode_into_libs=no
9204
9205 # when you set need_version to no, make sure it does not cause -set_version
9206 # flags to be left without arguments
9207 need_version=unknown
9208
9209 case $host_os in
9210 aix3*)
9211 version_type=linux
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9213 shlibpath_var=LIBPATH
9214
9215 # AIX 3 has no versioning support, so we append a major version to the name.
9216 soname_spec='${libname}${release}${shared_ext}$major'
9217 ;;
9218
9219 aix[4-9]*)
9220 version_type=linux
9221 need_lib_prefix=no
9222 need_version=no
9223 hardcode_into_libs=yes
9224 if test "$host_cpu" = ia64; then
9225 # AIX 5 supports IA64
9226 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9227 shlibpath_var=LD_LIBRARY_PATH
9228 else
9229 # With GCC up to 2.95.x, collect2 would create an import file
9230 # for dependence libraries. The import file would start with
9231 # the line `#! .'. This would cause the generated library to
9232 # depend on `.', always an invalid library. This was fixed in
9233 # development snapshots of GCC prior to 3.0.
9234 case $host_os in
9235 aix4 | aix4.[01] | aix4.[01].*)
9236 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9237 echo ' yes '
9238 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9239 :
9240 else
9241 can_build_shared=no
9242 fi
9243 ;;
9244 esac
9245 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9246 # soname into executable. Probably we can add versioning support to
9247 # collect2, so additional links can be useful in future.
9248 if test "$aix_use_runtimelinking" = yes; then
9249 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9250 # instead of lib<name>.a to let people know that these are not
9251 # typical AIX shared libraries.
9252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253 else
9254 # We preserve .a as extension for shared libraries through AIX4.2
9255 # and later when we are not doing run time linking.
9256 library_names_spec='${libname}${release}.a $libname.a'
9257 soname_spec='${libname}${release}${shared_ext}$major'
9258 fi
9259 shlibpath_var=LIBPATH
9260 fi
9261 ;;
9262
9263 amigaos*)
9264 case $host_cpu in
9265 powerpc)
9266 # Since July 2007 AmigaOS4 officially supports .so libraries.
9267 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269 ;;
9270 m68k)
9271 library_names_spec='$libname.ixlibrary $libname.a'
9272 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9273 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'
9274 ;;
9275 esac
9276 ;;
9277
9278 beos*)
9279 library_names_spec='${libname}${shared_ext}'
9280 dynamic_linker="$host_os ld.so"
9281 shlibpath_var=LIBRARY_PATH
9282 ;;
9283
9284 bsdi[45]*)
9285 version_type=linux
9286 need_version=no
9287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9288 soname_spec='${libname}${release}${shared_ext}$major'
9289 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9290 shlibpath_var=LD_LIBRARY_PATH
9291 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9292 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9293 # the default ld.so.conf also contains /usr/contrib/lib and
9294 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9295 # libtool to hard-code these into programs
9296 ;;
9297
9298 cygwin* | mingw* | pw32* | cegcc*)
9299 version_type=windows
9300 shrext_cmds=".dll"
9301 need_version=no
9302 need_lib_prefix=no
9303
9304 case $GCC,$host_os in
9305 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9306 library_names_spec='$libname.dll.a'
9307 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9308 postinstall_cmds='base_file=`basename \${file}`~
9309 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9310 dldir=$destdir/`dirname \$dlpath`~
9311 test -d \$dldir || mkdir -p \$dldir~
9312 $install_prog $dir/$dlname \$dldir/$dlname~
9313 chmod a+x \$dldir/$dlname~
9314 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9315 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9316 fi'
9317 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9318 dlpath=$dir/\$dldll~
9319 $RM \$dlpath'
9320 shlibpath_overrides_runpath=yes
9321
9322 case $host_os in
9323 cygwin*)
9324 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9325 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9326
9327 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9328 ;;
9329 mingw* | cegcc*)
9330 # MinGW DLLs use traditional 'lib' prefix
9331 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9332 ;;
9333 pw32*)
9334 # pw32 DLLs use 'pw' prefix rather than 'lib'
9335 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9336 ;;
9337 esac
9338 ;;
9339
9340 *)
9341 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9342 ;;
9343 esac
9344 dynamic_linker='Win32 ld.exe'
9345 # FIXME: first we should search . and the directory the executable is in
9346 shlibpath_var=PATH
9347 ;;
9348
9349 darwin* | rhapsody*)
9350 dynamic_linker="$host_os dyld"
9351 version_type=darwin
9352 need_lib_prefix=no
9353 need_version=no
9354 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9355 soname_spec='${libname}${release}${major}$shared_ext'
9356 shlibpath_overrides_runpath=yes
9357 shlibpath_var=DYLD_LIBRARY_PATH
9358 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9359
9360 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9361 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9362 ;;
9363
9364 dgux*)
9365 version_type=linux
9366 need_lib_prefix=no
9367 need_version=no
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9369 soname_spec='${libname}${release}${shared_ext}$major'
9370 shlibpath_var=LD_LIBRARY_PATH
9371 ;;
9372
9373 freebsd1*)
9374 dynamic_linker=no
9375 ;;
9376
9377 freebsd* | dragonfly*)
9378 # DragonFly does not have aout. When/if they implement a new
9379 # versioning mechanism, adjust this.
9380 if test -x /usr/bin/objformat; then
9381 objformat=`/usr/bin/objformat`
9382 else
9383 case $host_os in
9384 freebsd[123]*) objformat=aout ;;
9385 *) objformat=elf ;;
9386 esac
9387 fi
9388 version_type=freebsd-$objformat
9389 case $version_type in
9390 freebsd-elf*)
9391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9392 need_version=no
9393 need_lib_prefix=no
9394 ;;
9395 freebsd-*)
9396 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9397 need_version=yes
9398 ;;
9399 esac
9400 shlibpath_var=LD_LIBRARY_PATH
9401 case $host_os in
9402 freebsd2*)
9403 shlibpath_overrides_runpath=yes
9404 ;;
9405 freebsd3.[01]* | freebsdelf3.[01]*)
9406 shlibpath_overrides_runpath=yes
9407 hardcode_into_libs=yes
9408 ;;
9409 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9410 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9411 shlibpath_overrides_runpath=no
9412 hardcode_into_libs=yes
9413 ;;
9414 *) # from 4.6 on, and DragonFly
9415 shlibpath_overrides_runpath=yes
9416 hardcode_into_libs=yes
9417 ;;
9418 esac
9419 ;;
9420
9421 gnu*)
9422 version_type=linux
9423 need_lib_prefix=no
9424 need_version=no
9425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9426 soname_spec='${libname}${release}${shared_ext}$major'
9427 shlibpath_var=LD_LIBRARY_PATH
9428 hardcode_into_libs=yes
9429 ;;
9430
9431 haiku*)
9432 version_type=linux
9433 need_lib_prefix=no
9434 need_version=no
9435 dynamic_linker="$host_os runtime_loader"
9436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9437 soname_spec='${libname}${release}${shared_ext}$major'
9438 shlibpath_var=LIBRARY_PATH
9439 shlibpath_overrides_runpath=yes
9440 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9441 hardcode_into_libs=yes
9442 ;;
9443
9444 hpux9* | hpux10* | hpux11*)
9445 # Give a soname corresponding to the major version so that dld.sl refuses to
9446 # link against other versions.
9447 version_type=sunos
9448 need_lib_prefix=no
9449 need_version=no
9450 case $host_cpu in
9451 ia64*)
9452 shrext_cmds='.so'
9453 hardcode_into_libs=yes
9454 dynamic_linker="$host_os dld.so"
9455 shlibpath_var=LD_LIBRARY_PATH
9456 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458 soname_spec='${libname}${release}${shared_ext}$major'
9459 if test "X$HPUX_IA64_MODE" = X32; then
9460 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9461 else
9462 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9463 fi
9464 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9465 ;;
9466 hppa*64*)
9467 shrext_cmds='.sl'
9468 hardcode_into_libs=yes
9469 dynamic_linker="$host_os dld.sl"
9470 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9471 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9473 soname_spec='${libname}${release}${shared_ext}$major'
9474 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9476 ;;
9477 *)
9478 shrext_cmds='.sl'
9479 dynamic_linker="$host_os dld.sl"
9480 shlibpath_var=SHLIB_PATH
9481 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483 soname_spec='${libname}${release}${shared_ext}$major'
9484 ;;
9485 esac
9486 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9487 postinstall_cmds='chmod 555 $lib'
9488 # or fails outright, so override atomically:
9489 install_override_mode=555
9490 ;;
9491
9492 interix[3-9]*)
9493 version_type=linux
9494 need_lib_prefix=no
9495 need_version=no
9496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9497 soname_spec='${libname}${release}${shared_ext}$major'
9498 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9499 shlibpath_var=LD_LIBRARY_PATH
9500 shlibpath_overrides_runpath=no
9501 hardcode_into_libs=yes
9502 ;;
9503
9504 irix5* | irix6* | nonstopux*)
9505 case $host_os in
9506 nonstopux*) version_type=nonstopux ;;
9507 *)
9508 if test "$lt_cv_prog_gnu_ld" = yes; then
9509 version_type=linux
9510 else
9511 version_type=irix
9512 fi ;;
9513 esac
9514 need_lib_prefix=no
9515 need_version=no
9516 soname_spec='${libname}${release}${shared_ext}$major'
9517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9518 case $host_os in
9519 irix5* | nonstopux*)
9520 libsuff= shlibsuff=
9521 ;;
9522 *)
9523 case $LD in # libtool.m4 will add one of these switches to LD
9524 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9525 libsuff= shlibsuff= libmagic=32-bit;;
9526 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9527 libsuff=32 shlibsuff=N32 libmagic=N32;;
9528 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9529 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9530 *) libsuff= shlibsuff= libmagic=never-match;;
9531 esac
9532 ;;
9533 esac
9534 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9535 shlibpath_overrides_runpath=no
9536 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9537 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9538 hardcode_into_libs=yes
9539 ;;
9540
9541 # No shared lib support for Linux oldld, aout, or coff.
9542 linux*oldld* | linux*aout* | linux*coff*)
9543 dynamic_linker=no
9544 ;;
9545
9546 # This must be Linux ELF.
9547 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9548 version_type=linux
9549 need_lib_prefix=no
9550 need_version=no
9551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552 soname_spec='${libname}${release}${shared_ext}$major'
9553 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9554 shlibpath_var=LD_LIBRARY_PATH
9555 shlibpath_overrides_runpath=no
9556
9557 # Some binutils ld are patched to set DT_RUNPATH
9558 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9559 $as_echo_n "(cached) " >&6
9560 else
9561 lt_cv_shlibpath_overrides_runpath=no
9562 save_LDFLAGS=$LDFLAGS
9563 save_libdir=$libdir
9564 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9565 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567 /* end confdefs.h. */
9568
9569 int
9570 main ()
9571 {
9572
9573 ;
9574 return 0;
9575 }
9576 _ACEOF
9577 if ac_fn_c_try_link "$LINENO"; then :
9578 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9579 lt_cv_shlibpath_overrides_runpath=yes
9580 fi
9581 fi
9582 rm -f core conftest.err conftest.$ac_objext \
9583 conftest$ac_exeext conftest.$ac_ext
9584 LDFLAGS=$save_LDFLAGS
9585 libdir=$save_libdir
9586
9587 fi
9588
9589 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9590
9591 # This implies no fast_install, which is unacceptable.
9592 # Some rework will be needed to allow for fast_install
9593 # before this can be enabled.
9594 hardcode_into_libs=yes
9595
9596 # Append ld.so.conf contents to the search path
9597 if test -f /etc/ld.so.conf; then
9598 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' ' '`
9599 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9600 fi
9601
9602 # We used to test for /lib/ld.so.1 and disable shared libraries on
9603 # powerpc, because MkLinux only supported shared libraries with the
9604 # GNU dynamic linker. Since this was broken with cross compilers,
9605 # most powerpc-linux boxes support dynamic linking these days and
9606 # people can always --disable-shared, the test was removed, and we
9607 # assume the GNU/Linux dynamic linker is in use.
9608 dynamic_linker='GNU/Linux ld.so'
9609 ;;
9610
9611 netbsd*)
9612 version_type=sunos
9613 need_lib_prefix=no
9614 need_version=no
9615 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9618 dynamic_linker='NetBSD (a.out) ld.so'
9619 else
9620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9621 soname_spec='${libname}${release}${shared_ext}$major'
9622 dynamic_linker='NetBSD ld.elf_so'
9623 fi
9624 shlibpath_var=LD_LIBRARY_PATH
9625 shlibpath_overrides_runpath=yes
9626 hardcode_into_libs=yes
9627 ;;
9628
9629 newsos6)
9630 version_type=linux
9631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9632 shlibpath_var=LD_LIBRARY_PATH
9633 shlibpath_overrides_runpath=yes
9634 ;;
9635
9636 *nto* | *qnx*)
9637 version_type=qnx
9638 need_lib_prefix=no
9639 need_version=no
9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9641 soname_spec='${libname}${release}${shared_ext}$major'
9642 shlibpath_var=LD_LIBRARY_PATH
9643 shlibpath_overrides_runpath=no
9644 hardcode_into_libs=yes
9645 dynamic_linker='ldqnx.so'
9646 ;;
9647
9648 openbsd*)
9649 version_type=sunos
9650 sys_lib_dlsearch_path_spec="/usr/lib"
9651 need_lib_prefix=no
9652 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9653 case $host_os in
9654 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9655 *) need_version=no ;;
9656 esac
9657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9659 shlibpath_var=LD_LIBRARY_PATH
9660 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9661 case $host_os in
9662 openbsd2.[89] | openbsd2.[89].*)
9663 shlibpath_overrides_runpath=no
9664 ;;
9665 *)
9666 shlibpath_overrides_runpath=yes
9667 ;;
9668 esac
9669 else
9670 shlibpath_overrides_runpath=yes
9671 fi
9672 ;;
9673
9674 os2*)
9675 libname_spec='$name'
9676 shrext_cmds=".dll"
9677 need_lib_prefix=no
9678 library_names_spec='$libname${shared_ext} $libname.a'
9679 dynamic_linker='OS/2 ld.exe'
9680 shlibpath_var=LIBPATH
9681 ;;
9682
9683 osf3* | osf4* | osf5*)
9684 version_type=osf
9685 need_lib_prefix=no
9686 need_version=no
9687 soname_spec='${libname}${release}${shared_ext}$major'
9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9689 shlibpath_var=LD_LIBRARY_PATH
9690 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9691 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9692 ;;
9693
9694 rdos*)
9695 dynamic_linker=no
9696 ;;
9697
9698 solaris*)
9699 version_type=linux
9700 need_lib_prefix=no
9701 need_version=no
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703 soname_spec='${libname}${release}${shared_ext}$major'
9704 shlibpath_var=LD_LIBRARY_PATH
9705 shlibpath_overrides_runpath=yes
9706 hardcode_into_libs=yes
9707 # ldd complains unless libraries are executable
9708 postinstall_cmds='chmod +x $lib'
9709 ;;
9710
9711 sunos4*)
9712 version_type=sunos
9713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9714 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9715 shlibpath_var=LD_LIBRARY_PATH
9716 shlibpath_overrides_runpath=yes
9717 if test "$with_gnu_ld" = yes; then
9718 need_lib_prefix=no
9719 fi
9720 need_version=yes
9721 ;;
9722
9723 sysv4 | sysv4.3*)
9724 version_type=linux
9725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9726 soname_spec='${libname}${release}${shared_ext}$major'
9727 shlibpath_var=LD_LIBRARY_PATH
9728 case $host_vendor in
9729 sni)
9730 shlibpath_overrides_runpath=no
9731 need_lib_prefix=no
9732 runpath_var=LD_RUN_PATH
9733 ;;
9734 siemens)
9735 need_lib_prefix=no
9736 ;;
9737 motorola)
9738 need_lib_prefix=no
9739 need_version=no
9740 shlibpath_overrides_runpath=no
9741 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9742 ;;
9743 esac
9744 ;;
9745
9746 sysv4*MP*)
9747 if test -d /usr/nec ;then
9748 version_type=linux
9749 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9750 soname_spec='$libname${shared_ext}.$major'
9751 shlibpath_var=LD_LIBRARY_PATH
9752 fi
9753 ;;
9754
9755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9756 version_type=freebsd-elf
9757 need_lib_prefix=no
9758 need_version=no
9759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9760 soname_spec='${libname}${release}${shared_ext}$major'
9761 shlibpath_var=LD_LIBRARY_PATH
9762 shlibpath_overrides_runpath=yes
9763 hardcode_into_libs=yes
9764 if test "$with_gnu_ld" = yes; then
9765 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9766 else
9767 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9768 case $host_os in
9769 sco3.2v5*)
9770 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9771 ;;
9772 esac
9773 fi
9774 sys_lib_dlsearch_path_spec='/usr/lib'
9775 ;;
9776
9777 tpf*)
9778 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9779 version_type=linux
9780 need_lib_prefix=no
9781 need_version=no
9782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9783 shlibpath_var=LD_LIBRARY_PATH
9784 shlibpath_overrides_runpath=no
9785 hardcode_into_libs=yes
9786 ;;
9787
9788 uts4*)
9789 version_type=linux
9790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9791 soname_spec='${libname}${release}${shared_ext}$major'
9792 shlibpath_var=LD_LIBRARY_PATH
9793 ;;
9794
9795 *)
9796 dynamic_linker=no
9797 ;;
9798 esac
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9800 $as_echo "$dynamic_linker" >&6; }
9801 test "$dynamic_linker" = no && can_build_shared=no
9802
9803 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9804 if test "$GCC" = yes; then
9805 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9806 fi
9807
9808 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9809 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9810 fi
9811 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9812 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9813 fi
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9907 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9908 hardcode_action=
9909 if test -n "$hardcode_libdir_flag_spec" ||
9910 test -n "$runpath_var" ||
9911 test "X$hardcode_automatic" = "Xyes" ; then
9912
9913 # We can hardcode non-existent directories.
9914 if test "$hardcode_direct" != no &&
9915 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9916 # have to relink, otherwise we might link with an installed library
9917 # when we should be linking with a yet-to-be-installed one
9918 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9919 test "$hardcode_minus_L" != no; then
9920 # Linking always hardcodes the temporary library directory.
9921 hardcode_action=relink
9922 else
9923 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9924 hardcode_action=immediate
9925 fi
9926 else
9927 # We cannot hardcode anything, or else we can only hardcode existing
9928 # directories.
9929 hardcode_action=unsupported
9930 fi
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9932 $as_echo "$hardcode_action" >&6; }
9933
9934 if test "$hardcode_action" = relink ||
9935 test "$inherit_rpath" = yes; then
9936 # Fast installation is not supported
9937 enable_fast_install=no
9938 elif test "$shlibpath_overrides_runpath" = yes ||
9939 test "$enable_shared" = no; then
9940 # Fast installation is not necessary
9941 enable_fast_install=needless
9942 fi
9943
9944
9945
9946
9947
9948
9949 if test "x$enable_dlopen" != xyes; then
9950 enable_dlopen=unknown
9951 enable_dlopen_self=unknown
9952 enable_dlopen_self_static=unknown
9953 else
9954 lt_cv_dlopen=no
9955 lt_cv_dlopen_libs=
9956
9957 case $host_os in
9958 beos*)
9959 lt_cv_dlopen="load_add_on"
9960 lt_cv_dlopen_libs=
9961 lt_cv_dlopen_self=yes
9962 ;;
9963
9964 mingw* | pw32* | cegcc*)
9965 lt_cv_dlopen="LoadLibrary"
9966 lt_cv_dlopen_libs=
9967 ;;
9968
9969 cygwin*)
9970 lt_cv_dlopen="dlopen"
9971 lt_cv_dlopen_libs=
9972 ;;
9973
9974 darwin*)
9975 # if libdl is installed we need to link against it
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9977 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9978 if ${ac_cv_lib_dl_dlopen+:} false; then :
9979 $as_echo_n "(cached) " >&6
9980 else
9981 ac_check_lib_save_LIBS=$LIBS
9982 LIBS="-ldl $LIBS"
9983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984 /* end confdefs.h. */
9985
9986 /* Override any GCC internal prototype to avoid an error.
9987 Use char because int might match the return type of a GCC
9988 builtin and then its argument prototype would still apply. */
9989 #ifdef __cplusplus
9990 extern "C"
9991 #endif
9992 char dlopen ();
9993 int
9994 main ()
9995 {
9996 return dlopen ();
9997 ;
9998 return 0;
9999 }
10000 _ACEOF
10001 if ac_fn_c_try_link "$LINENO"; then :
10002 ac_cv_lib_dl_dlopen=yes
10003 else
10004 ac_cv_lib_dl_dlopen=no
10005 fi
10006 rm -f core conftest.err conftest.$ac_objext \
10007 conftest$ac_exeext conftest.$ac_ext
10008 LIBS=$ac_check_lib_save_LIBS
10009 fi
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10011 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10012 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10013 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10014 else
10015
10016 lt_cv_dlopen="dyld"
10017 lt_cv_dlopen_libs=
10018 lt_cv_dlopen_self=yes
10019
10020 fi
10021
10022 ;;
10023
10024 *)
10025 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10026 if test "x$ac_cv_func_shl_load" = xyes; then :
10027 lt_cv_dlopen="shl_load"
10028 else
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10030 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10031 if ${ac_cv_lib_dld_shl_load+:} false; then :
10032 $as_echo_n "(cached) " >&6
10033 else
10034 ac_check_lib_save_LIBS=$LIBS
10035 LIBS="-ldld $LIBS"
10036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037 /* end confdefs.h. */
10038
10039 /* Override any GCC internal prototype to avoid an error.
10040 Use char because int might match the return type of a GCC
10041 builtin and then its argument prototype would still apply. */
10042 #ifdef __cplusplus
10043 extern "C"
10044 #endif
10045 char shl_load ();
10046 int
10047 main ()
10048 {
10049 return shl_load ();
10050 ;
10051 return 0;
10052 }
10053 _ACEOF
10054 if ac_fn_c_try_link "$LINENO"; then :
10055 ac_cv_lib_dld_shl_load=yes
10056 else
10057 ac_cv_lib_dld_shl_load=no
10058 fi
10059 rm -f core conftest.err conftest.$ac_objext \
10060 conftest$ac_exeext conftest.$ac_ext
10061 LIBS=$ac_check_lib_save_LIBS
10062 fi
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10064 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10065 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10066 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10067 else
10068 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10069 if test "x$ac_cv_func_dlopen" = xyes; then :
10070 lt_cv_dlopen="dlopen"
10071 else
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10073 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10074 if ${ac_cv_lib_dl_dlopen+:} false; then :
10075 $as_echo_n "(cached) " >&6
10076 else
10077 ac_check_lib_save_LIBS=$LIBS
10078 LIBS="-ldl $LIBS"
10079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10080 /* end confdefs.h. */
10081
10082 /* Override any GCC internal prototype to avoid an error.
10083 Use char because int might match the return type of a GCC
10084 builtin and then its argument prototype would still apply. */
10085 #ifdef __cplusplus
10086 extern "C"
10087 #endif
10088 char dlopen ();
10089 int
10090 main ()
10091 {
10092 return dlopen ();
10093 ;
10094 return 0;
10095 }
10096 _ACEOF
10097 if ac_fn_c_try_link "$LINENO"; then :
10098 ac_cv_lib_dl_dlopen=yes
10099 else
10100 ac_cv_lib_dl_dlopen=no
10101 fi
10102 rm -f core conftest.err conftest.$ac_objext \
10103 conftest$ac_exeext conftest.$ac_ext
10104 LIBS=$ac_check_lib_save_LIBS
10105 fi
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10107 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10108 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10109 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10110 else
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10112 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10113 if ${ac_cv_lib_svld_dlopen+:} false; then :
10114 $as_echo_n "(cached) " >&6
10115 else
10116 ac_check_lib_save_LIBS=$LIBS
10117 LIBS="-lsvld $LIBS"
10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119 /* end confdefs.h. */
10120
10121 /* Override any GCC internal prototype to avoid an error.
10122 Use char because int might match the return type of a GCC
10123 builtin and then its argument prototype would still apply. */
10124 #ifdef __cplusplus
10125 extern "C"
10126 #endif
10127 char dlopen ();
10128 int
10129 main ()
10130 {
10131 return dlopen ();
10132 ;
10133 return 0;
10134 }
10135 _ACEOF
10136 if ac_fn_c_try_link "$LINENO"; then :
10137 ac_cv_lib_svld_dlopen=yes
10138 else
10139 ac_cv_lib_svld_dlopen=no
10140 fi
10141 rm -f core conftest.err conftest.$ac_objext \
10142 conftest$ac_exeext conftest.$ac_ext
10143 LIBS=$ac_check_lib_save_LIBS
10144 fi
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10146 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10147 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10148 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10149 else
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10151 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10152 if ${ac_cv_lib_dld_dld_link+:} false; then :
10153 $as_echo_n "(cached) " >&6
10154 else
10155 ac_check_lib_save_LIBS=$LIBS
10156 LIBS="-ldld $LIBS"
10157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10158 /* end confdefs.h. */
10159
10160 /* Override any GCC internal prototype to avoid an error.
10161 Use char because int might match the return type of a GCC
10162 builtin and then its argument prototype would still apply. */
10163 #ifdef __cplusplus
10164 extern "C"
10165 #endif
10166 char dld_link ();
10167 int
10168 main ()
10169 {
10170 return dld_link ();
10171 ;
10172 return 0;
10173 }
10174 _ACEOF
10175 if ac_fn_c_try_link "$LINENO"; then :
10176 ac_cv_lib_dld_dld_link=yes
10177 else
10178 ac_cv_lib_dld_dld_link=no
10179 fi
10180 rm -f core conftest.err conftest.$ac_objext \
10181 conftest$ac_exeext conftest.$ac_ext
10182 LIBS=$ac_check_lib_save_LIBS
10183 fi
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10185 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10186 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10187 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10188 fi
10189
10190
10191 fi
10192
10193
10194 fi
10195
10196
10197 fi
10198
10199
10200 fi
10201
10202
10203 fi
10204
10205 ;;
10206 esac
10207
10208 if test "x$lt_cv_dlopen" != xno; then
10209 enable_dlopen=yes
10210 else
10211 enable_dlopen=no
10212 fi
10213
10214 case $lt_cv_dlopen in
10215 dlopen)
10216 save_CPPFLAGS="$CPPFLAGS"
10217 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10218
10219 save_LDFLAGS="$LDFLAGS"
10220 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10221
10222 save_LIBS="$LIBS"
10223 LIBS="$lt_cv_dlopen_libs $LIBS"
10224
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10226 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10227 if ${lt_cv_dlopen_self+:} false; then :
10228 $as_echo_n "(cached) " >&6
10229 else
10230 if test "$cross_compiling" = yes; then :
10231 lt_cv_dlopen_self=cross
10232 else
10233 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10234 lt_status=$lt_dlunknown
10235 cat > conftest.$ac_ext <<_LT_EOF
10236 #line $LINENO "configure"
10237 #include "confdefs.h"
10238
10239 #if HAVE_DLFCN_H
10240 #include <dlfcn.h>
10241 #endif
10242
10243 #include <stdio.h>
10244
10245 #ifdef RTLD_GLOBAL
10246 # define LT_DLGLOBAL RTLD_GLOBAL
10247 #else
10248 # ifdef DL_GLOBAL
10249 # define LT_DLGLOBAL DL_GLOBAL
10250 # else
10251 # define LT_DLGLOBAL 0
10252 # endif
10253 #endif
10254
10255 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10256 find out it does not work in some platform. */
10257 #ifndef LT_DLLAZY_OR_NOW
10258 # ifdef RTLD_LAZY
10259 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10260 # else
10261 # ifdef DL_LAZY
10262 # define LT_DLLAZY_OR_NOW DL_LAZY
10263 # else
10264 # ifdef RTLD_NOW
10265 # define LT_DLLAZY_OR_NOW RTLD_NOW
10266 # else
10267 # ifdef DL_NOW
10268 # define LT_DLLAZY_OR_NOW DL_NOW
10269 # else
10270 # define LT_DLLAZY_OR_NOW 0
10271 # endif
10272 # endif
10273 # endif
10274 # endif
10275 #endif
10276
10277 /* When -fvisbility=hidden is used, assume the code has been annotated
10278 correspondingly for the symbols needed. */
10279 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10280 void fnord () __attribute__((visibility("default")));
10281 #endif
10282
10283 void fnord () { int i=42; }
10284 int main ()
10285 {
10286 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10287 int status = $lt_dlunknown;
10288
10289 if (self)
10290 {
10291 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10292 else
10293 {
10294 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10295 else puts (dlerror ());
10296 }
10297 /* dlclose (self); */
10298 }
10299 else
10300 puts (dlerror ());
10301
10302 return status;
10303 }
10304 _LT_EOF
10305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10306 (eval $ac_link) 2>&5
10307 ac_status=$?
10308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10309 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10310 (./conftest; exit; ) >&5 2>/dev/null
10311 lt_status=$?
10312 case x$lt_status in
10313 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10314 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10315 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10316 esac
10317 else :
10318 # compilation failed
10319 lt_cv_dlopen_self=no
10320 fi
10321 fi
10322 rm -fr conftest*
10323
10324
10325 fi
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10327 $as_echo "$lt_cv_dlopen_self" >&6; }
10328
10329 if test "x$lt_cv_dlopen_self" = xyes; then
10330 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10332 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10333 if ${lt_cv_dlopen_self_static+:} false; then :
10334 $as_echo_n "(cached) " >&6
10335 else
10336 if test "$cross_compiling" = yes; then :
10337 lt_cv_dlopen_self_static=cross
10338 else
10339 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10340 lt_status=$lt_dlunknown
10341 cat > conftest.$ac_ext <<_LT_EOF
10342 #line $LINENO "configure"
10343 #include "confdefs.h"
10344
10345 #if HAVE_DLFCN_H
10346 #include <dlfcn.h>
10347 #endif
10348
10349 #include <stdio.h>
10350
10351 #ifdef RTLD_GLOBAL
10352 # define LT_DLGLOBAL RTLD_GLOBAL
10353 #else
10354 # ifdef DL_GLOBAL
10355 # define LT_DLGLOBAL DL_GLOBAL
10356 # else
10357 # define LT_DLGLOBAL 0
10358 # endif
10359 #endif
10360
10361 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10362 find out it does not work in some platform. */
10363 #ifndef LT_DLLAZY_OR_NOW
10364 # ifdef RTLD_LAZY
10365 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10366 # else
10367 # ifdef DL_LAZY
10368 # define LT_DLLAZY_OR_NOW DL_LAZY
10369 # else
10370 # ifdef RTLD_NOW
10371 # define LT_DLLAZY_OR_NOW RTLD_NOW
10372 # else
10373 # ifdef DL_NOW
10374 # define LT_DLLAZY_OR_NOW DL_NOW
10375 # else
10376 # define LT_DLLAZY_OR_NOW 0
10377 # endif
10378 # endif
10379 # endif
10380 # endif
10381 #endif
10382
10383 /* When -fvisbility=hidden is used, assume the code has been annotated
10384 correspondingly for the symbols needed. */
10385 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10386 void fnord () __attribute__((visibility("default")));
10387 #endif
10388
10389 void fnord () { int i=42; }
10390 int main ()
10391 {
10392 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10393 int status = $lt_dlunknown;
10394
10395 if (self)
10396 {
10397 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10398 else
10399 {
10400 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10401 else puts (dlerror ());
10402 }
10403 /* dlclose (self); */
10404 }
10405 else
10406 puts (dlerror ());
10407
10408 return status;
10409 }
10410 _LT_EOF
10411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10412 (eval $ac_link) 2>&5
10413 ac_status=$?
10414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10415 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10416 (./conftest; exit; ) >&5 2>/dev/null
10417 lt_status=$?
10418 case x$lt_status in
10419 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10420 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10421 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10422 esac
10423 else :
10424 # compilation failed
10425 lt_cv_dlopen_self_static=no
10426 fi
10427 fi
10428 rm -fr conftest*
10429
10430
10431 fi
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10433 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10434 fi
10435
10436 CPPFLAGS="$save_CPPFLAGS"
10437 LDFLAGS="$save_LDFLAGS"
10438 LIBS="$save_LIBS"
10439 ;;
10440 esac
10441
10442 case $lt_cv_dlopen_self in
10443 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10444 *) enable_dlopen_self=unknown ;;
10445 esac
10446
10447 case $lt_cv_dlopen_self_static in
10448 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10449 *) enable_dlopen_self_static=unknown ;;
10450 esac
10451 fi
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469 striplib=
10470 old_striplib=
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10472 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10473 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10474 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10475 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10477 $as_echo "yes" >&6; }
10478 else
10479 # FIXME - insert some real tests, host_os isn't really good enough
10480 case $host_os in
10481 darwin*)
10482 if test -n "$STRIP" ; then
10483 striplib="$STRIP -x"
10484 old_striplib="$STRIP -S"
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10486 $as_echo "yes" >&6; }
10487 else
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10489 $as_echo "no" >&6; }
10490 fi
10491 ;;
10492 *)
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10494 $as_echo "no" >&6; }
10495 ;;
10496 esac
10497 fi
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510 # Report which library types will actually be built
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10512 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10514 $as_echo "$can_build_shared" >&6; }
10515
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10517 $as_echo_n "checking whether to build shared libraries... " >&6; }
10518 test "$can_build_shared" = "no" && enable_shared=no
10519
10520 # On AIX, shared libraries and static libraries use the same namespace, and
10521 # are all built from PIC.
10522 case $host_os in
10523 aix3*)
10524 test "$enable_shared" = yes && enable_static=no
10525 if test -n "$RANLIB"; then
10526 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10527 postinstall_cmds='$RANLIB $lib'
10528 fi
10529 ;;
10530
10531 aix[4-9]*)
10532 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10533 test "$enable_shared" = yes && enable_static=no
10534 fi
10535 ;;
10536 esac
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10538 $as_echo "$enable_shared" >&6; }
10539
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10541 $as_echo_n "checking whether to build static libraries... " >&6; }
10542 # Make sure either enable_shared or enable_static is yes.
10543 test "$enable_shared" = yes || enable_static=yes
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10545 $as_echo "$enable_static" >&6; }
10546
10547
10548
10549
10550 fi
10551 ac_ext=c
10552 ac_cpp='$CPP $CPPFLAGS'
10553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10556
10557 CC="$lt_save_CC"
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571 ac_config_commands="$ac_config_commands libtool"
10572
10573
10574
10575
10576 # Only expand once:
10577
10578
10579
10580 # Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
10593 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
10594 if ${ac_cv_prog_cc_c99+:} false; then :
10595 $as_echo_n "(cached) " >&6
10596 else
10597 ac_cv_prog_cc_c99=no
10598 ac_save_CC=$CC
10599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10600 /* end confdefs.h. */
10601 #include <stdarg.h>
10602 #include <stdbool.h>
10603 #include <stdlib.h>
10604 #include <wchar.h>
10605 #include <stdio.h>
10606
10607 // Check varargs macros. These examples are taken from C99 6.10.3.5.
10608 #define debug(...) fprintf (stderr, __VA_ARGS__)
10609 #define showlist(...) puts (#__VA_ARGS__)
10610 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
10611 static void
10612 test_varargs_macros (void)
10613 {
10614 int x = 1234;
10615 int y = 5678;
10616 debug ("Flag");
10617 debug ("X = %d\n", x);
10618 showlist (The first, second, and third items.);
10619 report (x>y, "x is %d but y is %d", x, y);
10620 }
10621
10622 // Check long long types.
10623 #define BIG64 18446744073709551615ull
10624 #define BIG32 4294967295ul
10625 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
10626 #if !BIG_OK
10627 your preprocessor is broken;
10628 #endif
10629 #if BIG_OK
10630 #else
10631 your preprocessor is broken;
10632 #endif
10633 static long long int bignum = -9223372036854775807LL;
10634 static unsigned long long int ubignum = BIG64;
10635
10636 struct incomplete_array
10637 {
10638 int datasize;
10639 double data[];
10640 };
10641
10642 struct named_init {
10643 int number;
10644 const wchar_t *name;
10645 double average;
10646 };
10647
10648 typedef const char *ccp;
10649
10650 static inline int
10651 test_restrict (ccp restrict text)
10652 {
10653 // See if C++-style comments work.
10654 // Iterate through items via the restricted pointer.
10655 // Also check for declarations in for loops.
10656 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
10657 continue;
10658 return 0;
10659 }
10660
10661 // Check varargs and va_copy.
10662 static void
10663 test_varargs (const char *format, ...)
10664 {
10665 va_list args;
10666 va_start (args, format);
10667 va_list args_copy;
10668 va_copy (args_copy, args);
10669
10670 const char *str;
10671 int number;
10672 float fnumber;
10673
10674 while (*format)
10675 {
10676 switch (*format++)
10677 {
10678 case 's': // string
10679 str = va_arg (args_copy, const char *);
10680 break;
10681 case 'd': // int
10682 number = va_arg (args_copy, int);
10683 break;
10684 case 'f': // float
10685 fnumber = va_arg (args_copy, double);
10686 break;
10687 default:
10688 break;
10689 }
10690 }
10691 va_end (args_copy);
10692 va_end (args);
10693 }
10694
10695 int
10696 main ()
10697 {
10698
10699 // Check bool.
10700 _Bool success = false;
10701
10702 // Check restrict.
10703 if (test_restrict ("String literal") == 0)
10704 success = true;
10705 char *restrict newvar = "Another string";
10706
10707 // Check varargs.
10708 test_varargs ("s, d' f .", "string", 65, 34.234);
10709 test_varargs_macros ();
10710
10711 // Check flexible array members.
10712 struct incomplete_array *ia =
10713 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
10714 ia->datasize = 10;
10715 for (int i = 0; i < ia->datasize; ++i)
10716 ia->data[i] = i * 1.234;
10717
10718 // Check named initializers.
10719 struct named_init ni = {
10720 .number = 34,
10721 .name = L"Test wide string",
10722 .average = 543.34343,
10723 };
10724
10725 ni.number = 58;
10726
10727 int dynamic_array[ni.number];
10728 dynamic_array[ni.number - 1] = 543;
10729
10730 // work around unused variable warnings
10731 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
10732 || dynamic_array[ni.number - 1] != 543);
10733
10734 ;
10735 return 0;
10736 }
10737 _ACEOF
10738 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
10739 do
10740 CC="$ac_save_CC $ac_arg"
10741 if ac_fn_c_try_compile "$LINENO"; then :
10742 ac_cv_prog_cc_c99=$ac_arg
10743 fi
10744 rm -f core conftest.err conftest.$ac_objext
10745 test "x$ac_cv_prog_cc_c99" != "xno" && break
10746 done
10747 rm -f conftest.$ac_ext
10748 CC=$ac_save_CC
10749
10750 fi
10751 # AC_CACHE_VAL
10752 case "x$ac_cv_prog_cc_c99" in
10753 x)
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10755 $as_echo "none needed" >&6; } ;;
10756 xno)
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10758 $as_echo "unsupported" >&6; } ;;
10759 *)
10760 CC="$CC $ac_cv_prog_cc_c99"
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
10762 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
10763 esac
10764 if test "x$ac_cv_prog_cc_c99" != xno; then :
10765
10766 fi
10767
10768
10769
10770
10771 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10772 if test -n "$ac_tool_prefix"; then
10773 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10774 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10776 $as_echo_n "checking for $ac_word... " >&6; }
10777 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10778 $as_echo_n "(cached) " >&6
10779 else
10780 case $PKG_CONFIG in
10781 [\\/]* | ?:[\\/]*)
10782 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10783 ;;
10784 *)
10785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10786 for as_dir in $PATH
10787 do
10788 IFS=$as_save_IFS
10789 test -z "$as_dir" && as_dir=.
10790 for ac_exec_ext in '' $ac_executable_extensions; do
10791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10792 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10794 break 2
10795 fi
10796 done
10797 done
10798 IFS=$as_save_IFS
10799
10800 ;;
10801 esac
10802 fi
10803 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10804 if test -n "$PKG_CONFIG"; then
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10806 $as_echo "$PKG_CONFIG" >&6; }
10807 else
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10809 $as_echo "no" >&6; }
10810 fi
10811
10812
10813 fi
10814 if test -z "$ac_cv_path_PKG_CONFIG"; then
10815 ac_pt_PKG_CONFIG=$PKG_CONFIG
10816 # Extract the first word of "pkg-config", so it can be a program name with args.
10817 set dummy pkg-config; ac_word=$2
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10819 $as_echo_n "checking for $ac_word... " >&6; }
10820 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10821 $as_echo_n "(cached) " >&6
10822 else
10823 case $ac_pt_PKG_CONFIG in
10824 [\\/]* | ?:[\\/]*)
10825 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10826 ;;
10827 *)
10828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10829 for as_dir in $PATH
10830 do
10831 IFS=$as_save_IFS
10832 test -z "$as_dir" && as_dir=.
10833 for ac_exec_ext in '' $ac_executable_extensions; do
10834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10835 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10837 break 2
10838 fi
10839 done
10840 done
10841 IFS=$as_save_IFS
10842
10843 ;;
10844 esac
10845 fi
10846 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10847 if test -n "$ac_pt_PKG_CONFIG"; then
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10849 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10850 else
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10852 $as_echo "no" >&6; }
10853 fi
10854
10855 if test "x$ac_pt_PKG_CONFIG" = x; then
10856 PKG_CONFIG=""
10857 else
10858 case $cross_compiling:$ac_tool_warned in
10859 yes:)
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10862 ac_tool_warned=yes ;;
10863 esac
10864 PKG_CONFIG=$ac_pt_PKG_CONFIG
10865 fi
10866 else
10867 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10868 fi
10869
10870 fi
10871 if test -n "$PKG_CONFIG"; then
10872 _pkg_min_version=0.9.0
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10874 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10875 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10877 $as_echo "yes" >&6; }
10878 else
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10880 $as_echo "no" >&6; }
10881 PKG_CONFIG=""
10882 fi
10883
10884 fi
10885
10886
10887
10888
10889 if test "x$GCC" = xyes ; then
10890 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
10891 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
10892 -Wbad-function-cast -Wformat=2"
10893 case `$CC -dumpversion` in
10894 3.4.* | 4.*)
10895 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
10896 ;;
10897 esac
10898 else
10899 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
10900 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
10901 SUNCC="yes"
10902 else
10903 SUNCC="no"
10904 fi
10905
10906 if test "x$SUNCC" = "xyes"; then
10907 CWARNFLAGS="-v"
10908 fi
10909 fi
10910
10911
10912
10913 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
10914
10915
10916
10917 # Check whether --enable-strict-compilation was given.
10918 if test "${enable_strict_compilation+set}" = set; then :
10919 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10920 else
10921 STRICT_COMPILE=no
10922 fi
10923
10924 if test "x$STRICT_COMPILE" = "xyes"; then
10925 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
10926 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
10927 SUNCC="yes"
10928 else
10929 SUNCC="no"
10930 fi
10931
10932 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
10933 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
10934 INTELCC="yes"
10935 else
10936 INTELCC="no"
10937 fi
10938
10939 if test "x$GCC" = xyes ; then
10940 STRICT_CFLAGS="-pedantic -Werror"
10941 elif test "x$SUNCC" = "xyes"; then
10942 STRICT_CFLAGS="-errwarn"
10943 elif test "x$INTELCC" = "xyes"; then
10944 STRICT_CFLAGS="-Werror"
10945 fi
10946 fi
10947 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10948
10949
10950
10951
10952 cat >>confdefs.h <<_ACEOF
10953 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10954 _ACEOF
10955
10956 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10957 if test "x$PVM" = "x"; then
10958 PVM="0"
10959 fi
10960
10961 cat >>confdefs.h <<_ACEOF
10962 #define PACKAGE_VERSION_MINOR $PVM
10963 _ACEOF
10964
10965 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10966 if test "x$PVP" = "x"; then
10967 PVP="0"
10968 fi
10969
10970 cat >>confdefs.h <<_ACEOF
10971 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10972 _ACEOF
10973
10974
10975
10976 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10977 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10978 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10979 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10980
10981
10982
10983
10984 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10985 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10986 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10987 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10988 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10989
10990
10991
10992
10993
10994
10995 if test x$APP_MAN_SUFFIX = x ; then
10996 APP_MAN_SUFFIX=1
10997 fi
10998 if test x$APP_MAN_DIR = x ; then
10999 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11000 fi
11001
11002 if test x$LIB_MAN_SUFFIX = x ; then
11003 LIB_MAN_SUFFIX=3
11004 fi
11005 if test x$LIB_MAN_DIR = x ; then
11006 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11007 fi
11008
11009 if test x$FILE_MAN_SUFFIX = x ; then
11010 case $host_os in
11011 solaris*) FILE_MAN_SUFFIX=4 ;;
11012 *) FILE_MAN_SUFFIX=5 ;;
11013 esac
11014 fi
11015 if test x$FILE_MAN_DIR = x ; then
11016 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11017 fi
11018
11019 if test x$MISC_MAN_SUFFIX = x ; then
11020 case $host_os in
11021 solaris*) MISC_MAN_SUFFIX=5 ;;
11022 *) MISC_MAN_SUFFIX=7 ;;
11023 esac
11024 fi
11025 if test x$MISC_MAN_DIR = x ; then
11026 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11027 fi
11028
11029 if test x$DRIVER_MAN_SUFFIX = x ; then
11030 case $host_os in
11031 solaris*) DRIVER_MAN_SUFFIX=7 ;;
11032 *) DRIVER_MAN_SUFFIX=4 ;;
11033 esac
11034 fi
11035 if test x$DRIVER_MAN_DIR = x ; then
11036 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11037 fi
11038
11039 if test x$ADMIN_MAN_SUFFIX = x ; then
11040 case $host_os in
11041 solaris*) ADMIN_MAN_SUFFIX=1m ;;
11042 *) ADMIN_MAN_SUFFIX=8 ;;
11043 esac
11044 fi
11045 if test x$ADMIN_MAN_DIR = x ; then
11046 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11047 fi
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063 XORG_MAN_PAGE="X Version 11"
11064
11065 MAN_SUBSTS="\
11066 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11067 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11068 -e 's|__xservername__|Xorg|g' \
11069 -e 's|__xconfigfile__|xorg.conf|g' \
11070 -e 's|__projectroot__|\$(prefix)|g' \
11071 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11072 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11073 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11074 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11075 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11076 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11077 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11078
11079
11080
11081 # Check whether --enable-silent-rules was given.
11082 if test "${enable_silent_rules+set}" = set; then :
11083 enableval=$enable_silent_rules;
11084 fi
11085
11086 case $enable_silent_rules in
11087 yes) AM_DEFAULT_VERBOSITY=0;;
11088 no) AM_DEFAULT_VERBOSITY=1;;
11089 *) AM_DEFAULT_VERBOSITY=0;;
11090 esac
11091 AM_BACKSLASH='\'
11092
11093
11094
11095 # Obtain compiler/linker options from server and required extensions
11096
11097 pkg_failed=no
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
11099 $as_echo_n "checking for XORG... " >&6; }
11100
11101 if test -n "$XORG_CFLAGS"; then
11102 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
11103 elif test -n "$PKG_CONFIG"; then
11104 if test -n "$PKG_CONFIG" && \
11105 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2.99.0 xproto inputproto\""; } >&5
11106 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2.99.0 xproto inputproto") 2>&5
11107 ac_status=$?
11108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11109 test $ac_status = 0; }; then
11110 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.2.99.0 xproto inputproto" 2>/dev/null`
11111 else
11112 pkg_failed=yes
11113 fi
11114 else
11115 pkg_failed=untried
11116 fi
11117 if test -n "$XORG_LIBS"; then
11118 pkg_cv_XORG_LIBS="$XORG_LIBS"
11119 elif test -n "$PKG_CONFIG"; then
11120 if test -n "$PKG_CONFIG" && \
11121 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2.99.0 xproto inputproto\""; } >&5
11122 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2.99.0 xproto inputproto") 2>&5
11123 ac_status=$?
11124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11125 test $ac_status = 0; }; then
11126 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.2.99.0 xproto inputproto" 2>/dev/null`
11127 else
11128 pkg_failed=yes
11129 fi
11130 else
11131 pkg_failed=untried
11132 fi
11133
11134
11135
11136 if test $pkg_failed = yes; then
11137
11138 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11139 _pkg_short_errors_supported=yes
11140 else
11141 _pkg_short_errors_supported=no
11142 fi
11143 if test $_pkg_short_errors_supported = yes; then
11144 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.2.99.0 xproto inputproto" 2>&1`
11145 else
11146 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.2.99.0 xproto inputproto" 2>&1`
11147 fi
11148 # Put the nasty error message in config.log where it belongs
11149 echo "$XORG_PKG_ERRORS" >&5
11150
11151 as_fn_error $? "Package requirements (xorg-server >= 1.2.99.0 xproto inputproto) were not met:
11152
11153 $XORG_PKG_ERRORS
11154
11155 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11156 installed software in a non-standard prefix.
11157
11158 Alternatively, you may set the environment variables XORG_CFLAGS
11159 and XORG_LIBS to avoid the need to call pkg-config.
11160 See the pkg-config man page for more details.
11161 " "$LINENO" 5
11162 elif test $pkg_failed = untried; then
11163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11165 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11166 is in your PATH or set the PKG_CONFIG environment variable to the full
11167 path to pkg-config.
11168
11169 Alternatively, you may set the environment variables XORG_CFLAGS
11170 and XORG_LIBS to avoid the need to call pkg-config.
11171 See the pkg-config man page for more details.
11172
11173 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11174 See \`config.log' for more details" "$LINENO" 5; }
11175 else
11176 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
11177 XORG_LIBS=$pkg_cv_XORG_LIBS
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11179 $as_echo "yes" >&6; }
11180 :
11181 fi
11182
11183 # Define a configure option for an alternate input module directory
11184
11185 # Check whether --with-xorg-module-dir was given.
11186 if test "${with_xorg_module_dir+set}" = set; then :
11187 withval=$with_xorg_module_dir; moduledir="$withval"
11188 else
11189 moduledir="$libdir/xorg/modules"
11190 fi
11191
11192 inputdir=${moduledir}/input
11193
11194
11195 # The keyboard driver code is O/S specific
11196 case $host_os in
11197 linux*)
11198 IS_LINUX="yes"
11199 ;;
11200
11201 freebsd* | kfreebsd-gnu* | netbsd* | openbsd*)
11202 IS_BSD="yes"
11203 ;;
11204
11205 solaris*)
11206 IS_SOLARIS="yes"
11207 ;;
11208
11209 gnu*)
11210 IS_HURD="yes"
11211 ;;
11212
11213 *)
11214 as_fn_error $? "Your operating system is not supported by the kbd driver.
11215 Contact xorg@lists.freedesktop.org if you are interested in
11216 porting it." "$LINENO" 5
11217 ;;
11218 esac
11219 if test "x$IS_LINUX" = xyes; then
11220 LINUX_TRUE=
11221 LINUX_FALSE='#'
11222 else
11223 LINUX_TRUE='#'
11224 LINUX_FALSE=
11225 fi
11226
11227 if test "x$IS_BSD" = xyes; then
11228 BSD_TRUE=
11229 BSD_FALSE='#'
11230 else
11231 BSD_TRUE='#'
11232 BSD_FALSE=
11233 fi
11234
11235 if test "x$IS_SOLARIS" = xyes; then
11236 SOLARIS_TRUE=
11237 SOLARIS_FALSE='#'
11238 else
11239 SOLARIS_TRUE='#'
11240 SOLARIS_FALSE=
11241 fi
11242
11243 if test "x$IS_HURD" = xyes; then
11244 HURD_TRUE=
11245 HURD_FALSE='#'
11246 else
11247 HURD_TRUE='#'
11248 HURD_FALSE=
11249 fi
11250
11251
11252 DRIVER_NAME=kbd
11253
11254
11255 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
11256
11257 cat >confcache <<\_ACEOF
11258 # This file is a shell script that caches the results of configure
11259 # tests run on this system so they can be shared between configure
11260 # scripts and configure runs, see configure's option --config-cache.
11261 # It is not useful on other systems. If it contains results you don't
11262 # want to keep, you may remove or edit it.
11263 #
11264 # config.status only pays attention to the cache file if you give it
11265 # the --recheck option to rerun configure.
11266 #
11267 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11268 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11269 # following values.
11270
11271 _ACEOF
11272
11273 # The following way of writing the cache mishandles newlines in values,
11274 # but we know of no workaround that is simple, portable, and efficient.
11275 # So, we kill variables containing newlines.
11276 # Ultrix sh set writes to stderr and can't be redirected directly,
11277 # and sets the high bit in the cache file unless we assign to the vars.
11278 (
11279 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11280 eval ac_val=\$$ac_var
11281 case $ac_val in #(
11282 *${as_nl}*)
11283 case $ac_var in #(
11284 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11285 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11286 esac
11287 case $ac_var in #(
11288 _ | IFS | as_nl) ;; #(
11289 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11290 *) { eval $ac_var=; unset $ac_var;} ;;
11291 esac ;;
11292 esac
11293 done
11294
11295 (set) 2>&1 |
11296 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11297 *${as_nl}ac_space=\ *)
11298 # `set' does not quote correctly, so add quotes: double-quote
11299 # substitution turns \\\\ into \\, and sed turns \\ into \.
11300 sed -n \
11301 "s/'/'\\\\''/g;
11302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11303 ;; #(
11304 *)
11305 # `set' quotes correctly as required by POSIX, so do not add quotes.
11306 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11307 ;;
11308 esac |
11309 sort
11310 ) |
11311 sed '
11312 /^ac_cv_env_/b end
11313 t clear
11314 :clear
11315 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11316 t end
11317 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11318 :end' >>confcache
11319 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11320 if test -w "$cache_file"; then
11321 if test "x$cache_file" != "x/dev/null"; then
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11323 $as_echo "$as_me: updating cache $cache_file" >&6;}
11324 if test ! -f "$cache_file" || test -h "$cache_file"; then
11325 cat confcache >"$cache_file"
11326 else
11327 case $cache_file in #(
11328 */* | ?:*)
11329 mv -f confcache "$cache_file"$$ &&
11330 mv -f "$cache_file"$$ "$cache_file" ;; #(
11331 *)
11332 mv -f confcache "$cache_file" ;;
11333 esac
11334 fi
11335 fi
11336 else
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11338 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11339 fi
11340 fi
11341 rm -f confcache
11342
11343 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11344 # Let make expand exec_prefix.
11345 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11346
11347 DEFS=-DHAVE_CONFIG_H
11348
11349 ac_libobjs=
11350 ac_ltlibobjs=
11351 U=
11352 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11353 # 1. Remove the extension, and $U if already installed.
11354 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11355 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11356 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11357 # will be set to the directory where LIBOBJS objects are built.
11358 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11359 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11360 done
11361 LIBOBJS=$ac_libobjs
11362
11363 LTLIBOBJS=$ac_ltlibobjs
11364
11365
11366 if test -n "$EXEEXT"; then
11367 am__EXEEXT_TRUE=
11368 am__EXEEXT_FALSE='#'
11369 else
11370 am__EXEEXT_TRUE='#'
11371 am__EXEEXT_FALSE=
11372 fi
11373
11374 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11375 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11377 fi
11378 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11379 as_fn_error $? "conditional \"AMDEP\" was never defined.
11380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11381 fi
11382 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11383 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11385 fi
11386 if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
11387 as_fn_error $? "conditional \"LINUX\" was never defined.
11388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11389 fi
11390 if test -z "${BSD_TRUE}" && test -z "${BSD_FALSE}"; then
11391 as_fn_error $? "conditional \"BSD\" was never defined.
11392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11393 fi
11394 if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
11395 as_fn_error $? "conditional \"SOLARIS\" was never defined.
11396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11397 fi
11398 if test -z "${HURD_TRUE}" && test -z "${HURD_FALSE}"; then
11399 as_fn_error $? "conditional \"HURD\" was never defined.
11400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11401 fi
11402
11403 : "${CONFIG_STATUS=./config.status}"
11404 ac_write_fail=0
11405 ac_clean_files_save=$ac_clean_files
11406 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11408 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11409 as_write_fail=0
11410 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11411 #! $SHELL
11412 # Generated by $as_me.
11413 # Run this file to recreate the current configuration.
11414 # Compiler output produced by configure, useful for debugging
11415 # configure, is in config.log if it exists.
11416
11417 debug=false
11418 ac_cs_recheck=false
11419 ac_cs_silent=false
11420
11421 SHELL=\${CONFIG_SHELL-$SHELL}
11422 export SHELL
11423 _ASEOF
11424 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11425 ## -------------------- ##
11426 ## M4sh Initialization. ##
11427 ## -------------------- ##
11428
11429 # Be more Bourne compatible
11430 DUALCASE=1; export DUALCASE # for MKS sh
11431 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11432 emulate sh
11433 NULLCMD=:
11434 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11435 # is contrary to our usage. Disable this feature.
11436 alias -g '${1+"$@"}'='"$@"'
11437 setopt NO_GLOB_SUBST
11438 else
11439 case `(set -o) 2>/dev/null` in #(
11440 *posix*) :
11441 set -o posix ;; #(
11442 *) :
11443 ;;
11444 esac
11445 fi
11446
11447
11448 as_nl='
11449 '
11450 export as_nl
11451 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11452 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11453 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11454 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11455 # Prefer a ksh shell builtin over an external printf program on Solaris,
11456 # but without wasting forks for bash or zsh.
11457 if test -z "$BASH_VERSION$ZSH_VERSION" \
11458 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11459 as_echo='print -r --'
11460 as_echo_n='print -rn --'
11461 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11462 as_echo='printf %s\n'
11463 as_echo_n='printf %s'
11464 else
11465 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11466 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11467 as_echo_n='/usr/ucb/echo -n'
11468 else
11469 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11470 as_echo_n_body='eval
11471 arg=$1;
11472 case $arg in #(
11473 *"$as_nl"*)
11474 expr "X$arg" : "X\\(.*\\)$as_nl";
11475 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11476 esac;
11477 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11478 '
11479 export as_echo_n_body
11480 as_echo_n='sh -c $as_echo_n_body as_echo'
11481 fi
11482 export as_echo_body
11483 as_echo='sh -c $as_echo_body as_echo'
11484 fi
11485
11486 # The user is always right.
11487 if test "${PATH_SEPARATOR+set}" != set; then
11488 PATH_SEPARATOR=:
11489 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11490 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11491 PATH_SEPARATOR=';'
11492 }
11493 fi
11494
11495
11496 # IFS
11497 # We need space, tab and new line, in precisely that order. Quoting is
11498 # there to prevent editors from complaining about space-tab.
11499 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11500 # splitting by setting IFS to empty value.)
11501 IFS=" "" $as_nl"
11502
11503 # Find who we are. Look in the path if we contain no directory separator.
11504 as_myself=
11505 case $0 in #((
11506 *[\\/]* ) as_myself=$0 ;;
11507 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11508 for as_dir in $PATH
11509 do
11510 IFS=$as_save_IFS
11511 test -z "$as_dir" && as_dir=.
11512 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11513 done
11514 IFS=$as_save_IFS
11515
11516 ;;
11517 esac
11518 # We did not find ourselves, most probably we were run as `sh COMMAND'
11519 # in which case we are not to be found in the path.
11520 if test "x$as_myself" = x; then
11521 as_myself=$0
11522 fi
11523 if test ! -f "$as_myself"; then
11524 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11525 exit 1
11526 fi
11527
11528 # Unset variables that we do not need and which cause bugs (e.g. in
11529 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11530 # suppresses any "Segmentation fault" message there. '((' could
11531 # trigger a bug in pdksh 5.2.14.
11532 for as_var in BASH_ENV ENV MAIL MAILPATH
11533 do eval test x\${$as_var+set} = xset \
11534 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11535 done
11536 PS1='$ '
11537 PS2='> '
11538 PS4='+ '
11539
11540 # NLS nuisances.
11541 LC_ALL=C
11542 export LC_ALL
11543 LANGUAGE=C
11544 export LANGUAGE
11545
11546 # CDPATH.
11547 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11548
11549
11550 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11551 # ----------------------------------------
11552 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11553 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11554 # script with STATUS, using 1 if that was 0.
11555 as_fn_error ()
11556 {
11557 as_status=$1; test $as_status -eq 0 && as_status=1
11558 if test "$4"; then
11559 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11560 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11561 fi
11562 $as_echo "$as_me: error: $2" >&2
11563 as_fn_exit $as_status
11564 } # as_fn_error
11565
11566
11567 # as_fn_set_status STATUS
11568 # -----------------------
11569 # Set $? to STATUS, without forking.
11570 as_fn_set_status ()
11571 {
11572 return $1
11573 } # as_fn_set_status
11574
11575 # as_fn_exit STATUS
11576 # -----------------
11577 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11578 as_fn_exit ()
11579 {
11580 set +e
11581 as_fn_set_status $1
11582 exit $1
11583 } # as_fn_exit
11584
11585 # as_fn_unset VAR
11586 # ---------------
11587 # Portably unset VAR.
11588 as_fn_unset ()
11589 {
11590 { eval $1=; unset $1;}
11591 }
11592 as_unset=as_fn_unset
11593 # as_fn_append VAR VALUE
11594 # ----------------------
11595 # Append the text in VALUE to the end of the definition contained in VAR. Take
11596 # advantage of any shell optimizations that allow amortized linear growth over
11597 # repeated appends, instead of the typical quadratic growth present in naive
11598 # implementations.
11599 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11600 eval 'as_fn_append ()
11601 {
11602 eval $1+=\$2
11603 }'
11604 else
11605 as_fn_append ()
11606 {
11607 eval $1=\$$1\$2
11608 }
11609 fi # as_fn_append
11610
11611 # as_fn_arith ARG...
11612 # ------------------
11613 # Perform arithmetic evaluation on the ARGs, and store the result in the
11614 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11615 # must be portable across $(()) and expr.
11616 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11617 eval 'as_fn_arith ()
11618 {
11619 as_val=$(( $* ))
11620 }'
11621 else
11622 as_fn_arith ()
11623 {
11624 as_val=`expr "$@" || test $? -eq 1`
11625 }
11626 fi # as_fn_arith
11627
11628
11629 if expr a : '\(a\)' >/dev/null 2>&1 &&
11630 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11631 as_expr=expr
11632 else
11633 as_expr=false
11634 fi
11635
11636 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11637 as_basename=basename
11638 else
11639 as_basename=false
11640 fi
11641
11642 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11643 as_dirname=dirname
11644 else
11645 as_dirname=false
11646 fi
11647
11648 as_me=`$as_basename -- "$0" ||
11649 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11650 X"$0" : 'X\(//\)$' \| \
11651 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11652 $as_echo X/"$0" |
11653 sed '/^.*\/\([^/][^/]*\)\/*$/{
11654 s//\1/
11655 q
11656 }
11657 /^X\/\(\/\/\)$/{
11658 s//\1/
11659 q
11660 }
11661 /^X\/\(\/\).*/{
11662 s//\1/
11663 q
11664 }
11665 s/.*/./; q'`
11666
11667 # Avoid depending upon Character Ranges.
11668 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11669 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11670 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11671 as_cr_digits='0123456789'
11672 as_cr_alnum=$as_cr_Letters$as_cr_digits
11673
11674 ECHO_C= ECHO_N= ECHO_T=
11675 case `echo -n x` in #(((((
11676 -n*)
11677 case `echo 'xy\c'` in
11678 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11679 xy) ECHO_C='\c';;
11680 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11681 ECHO_T=' ';;
11682 esac;;
11683 *)
11684 ECHO_N='-n';;
11685 esac
11686
11687 rm -f conf$$ conf$$.exe conf$$.file
11688 if test -d conf$$.dir; then
11689 rm -f conf$$.dir/conf$$.file
11690 else
11691 rm -f conf$$.dir
11692 mkdir conf$$.dir 2>/dev/null
11693 fi
11694 if (echo >conf$$.file) 2>/dev/null; then
11695 if ln -s conf$$.file conf$$ 2>/dev/null; then
11696 as_ln_s='ln -s'
11697 # ... but there are two gotchas:
11698 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11699 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11700 # In both cases, we have to default to `cp -p'.
11701 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11702 as_ln_s='cp -p'
11703 elif ln conf$$.file conf$$ 2>/dev/null; then
11704 as_ln_s=ln
11705 else
11706 as_ln_s='cp -p'
11707 fi
11708 else
11709 as_ln_s='cp -p'
11710 fi
11711 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11712 rmdir conf$$.dir 2>/dev/null
11713
11714
11715 # as_fn_mkdir_p
11716 # -------------
11717 # Create "$as_dir" as a directory, including parents if necessary.
11718 as_fn_mkdir_p ()
11719 {
11720
11721 case $as_dir in #(
11722 -*) as_dir=./$as_dir;;
11723 esac
11724 test -d "$as_dir" || eval $as_mkdir_p || {
11725 as_dirs=
11726 while :; do
11727 case $as_dir in #(
11728 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11729 *) as_qdir=$as_dir;;
11730 esac
11731 as_dirs="'$as_qdir' $as_dirs"
11732 as_dir=`$as_dirname -- "$as_dir" ||
11733 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11734 X"$as_dir" : 'X\(//\)[^/]' \| \
11735 X"$as_dir" : 'X\(//\)$' \| \
11736 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11737 $as_echo X"$as_dir" |
11738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11739 s//\1/
11740 q
11741 }
11742 /^X\(\/\/\)[^/].*/{
11743 s//\1/
11744 q
11745 }
11746 /^X\(\/\/\)$/{
11747 s//\1/
11748 q
11749 }
11750 /^X\(\/\).*/{
11751 s//\1/
11752 q
11753 }
11754 s/.*/./; q'`
11755 test -d "$as_dir" && break
11756 done
11757 test -z "$as_dirs" || eval "mkdir $as_dirs"
11758 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11759
11760
11761 } # as_fn_mkdir_p
11762 if mkdir -p . 2>/dev/null; then
11763 as_mkdir_p='mkdir -p "$as_dir"'
11764 else
11765 test -d ./-p && rmdir ./-p
11766 as_mkdir_p=false
11767 fi
11768
11769 if test -x / >/dev/null 2>&1; then
11770 as_test_x='test -x'
11771 else
11772 if ls -dL / >/dev/null 2>&1; then
11773 as_ls_L_option=L
11774 else
11775 as_ls_L_option=
11776 fi
11777 as_test_x='
11778 eval sh -c '\''
11779 if test -d "$1"; then
11780 test -d "$1/.";
11781 else
11782 case $1 in #(
11783 -*)set "./$1";;
11784 esac;
11785 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11786 ???[sx]*):;;*)false;;esac;fi
11787 '\'' sh
11788 '
11789 fi
11790 as_executable_p=$as_test_x
11791
11792 # Sed expression to map a string onto a valid CPP name.
11793 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11794
11795 # Sed expression to map a string onto a valid variable name.
11796 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11797
11798
11799 exec 6>&1
11800 ## ----------------------------------- ##
11801 ## Main body of $CONFIG_STATUS script. ##
11802 ## ----------------------------------- ##
11803 _ASEOF
11804 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11805
11806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11807 # Save the log message, to keep $0 and so on meaningful, and to
11808 # report actual input values of CONFIG_FILES etc. instead of their
11809 # values after options handling.
11810 ac_log="
11811 This file was extended by xf86-input-keyboard $as_me 1.5.0, which was
11812 generated by GNU Autoconf 2.68. Invocation command line was
11813
11814 CONFIG_FILES = $CONFIG_FILES
11815 CONFIG_HEADERS = $CONFIG_HEADERS
11816 CONFIG_LINKS = $CONFIG_LINKS
11817 CONFIG_COMMANDS = $CONFIG_COMMANDS
11818 $ $0 $@
11819
11820 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11821 "
11822
11823 _ACEOF
11824
11825 case $ac_config_files in *"
11826 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11827 esac
11828
11829 case $ac_config_headers in *"
11830 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11831 esac
11832
11833
11834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11835 # Files that config.status was made for.
11836 config_files="$ac_config_files"
11837 config_headers="$ac_config_headers"
11838 config_commands="$ac_config_commands"
11839
11840 _ACEOF
11841
11842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11843 ac_cs_usage="\
11844 \`$as_me' instantiates files and other configuration actions
11845 from templates according to the current configuration. Unless the files
11846 and actions are specified as TAGs, all are instantiated by default.
11847
11848 Usage: $0 [OPTION]... [TAG]...
11849
11850 -h, --help print this help, then exit
11851 -V, --version print version number and configuration settings, then exit
11852 --config print configuration, then exit
11853 -q, --quiet, --silent
11854 do not print progress messages
11855 -d, --debug don't remove temporary files
11856 --recheck update $as_me by reconfiguring in the same conditions
11857 --file=FILE[:TEMPLATE]
11858 instantiate the configuration file FILE
11859 --header=FILE[:TEMPLATE]
11860 instantiate the configuration header FILE
11861
11862 Configuration files:
11863 $config_files
11864
11865 Configuration headers:
11866 $config_headers
11867
11868 Configuration commands:
11869 $config_commands
11870
11871 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11872
11873 _ACEOF
11874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11875 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11876 ac_cs_version="\\
11877 xf86-input-keyboard config.status 1.5.0
11878 configured by $0, generated by GNU Autoconf 2.68,
11879 with options \\"\$ac_cs_config\\"
11880
11881 Copyright (C) 2010 Free Software Foundation, Inc.
11882 This config.status script is free software; the Free Software Foundation
11883 gives unlimited permission to copy, distribute and modify it."
11884
11885 ac_pwd='$ac_pwd'
11886 srcdir='$srcdir'
11887 INSTALL='$INSTALL'
11888 MKDIR_P='$MKDIR_P'
11889 AWK='$AWK'
11890 test -n "\$AWK" || AWK=awk
11891 _ACEOF
11892
11893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11894 # The default lists apply if the user does not specify any file.
11895 ac_need_defaults=:
11896 while test $# != 0
11897 do
11898 case $1 in
11899 --*=?*)
11900 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11901 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11902 ac_shift=:
11903 ;;
11904 --*=)
11905 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11906 ac_optarg=
11907 ac_shift=:
11908 ;;
11909 *)
11910 ac_option=$1
11911 ac_optarg=$2
11912 ac_shift=shift
11913 ;;
11914 esac
11915
11916 case $ac_option in
11917 # Handling of the options.
11918 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11919 ac_cs_recheck=: ;;
11920 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11921 $as_echo "$ac_cs_version"; exit ;;
11922 --config | --confi | --conf | --con | --co | --c )
11923 $as_echo "$ac_cs_config"; exit ;;
11924 --debug | --debu | --deb | --de | --d | -d )
11925 debug=: ;;
11926 --file | --fil | --fi | --f )
11927 $ac_shift
11928 case $ac_optarg in
11929 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11930 '') as_fn_error $? "missing file argument" ;;
11931 esac
11932 as_fn_append CONFIG_FILES " '$ac_optarg'"
11933 ac_need_defaults=false;;
11934 --header | --heade | --head | --hea )
11935 $ac_shift
11936 case $ac_optarg in
11937 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11938 esac
11939 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11940 ac_need_defaults=false;;
11941 --he | --h)
11942 # Conflict between --help and --header
11943 as_fn_error $? "ambiguous option: \`$1'
11944 Try \`$0 --help' for more information.";;
11945 --help | --hel | -h )
11946 $as_echo "$ac_cs_usage"; exit ;;
11947 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11948 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11949 ac_cs_silent=: ;;
11950
11951 # This is an error.
11952 -*) as_fn_error $? "unrecognized option: \`$1'
11953 Try \`$0 --help' for more information." ;;
11954
11955 *) as_fn_append ac_config_targets " $1"
11956 ac_need_defaults=false ;;
11957
11958 esac
11959 shift
11960 done
11961
11962 ac_configure_extra_args=
11963
11964 if $ac_cs_silent; then
11965 exec 6>/dev/null
11966 ac_configure_extra_args="$ac_configure_extra_args --silent"
11967 fi
11968
11969 _ACEOF
11970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11971 if \$ac_cs_recheck; then
11972 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11973 shift
11974 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11975 CONFIG_SHELL='$SHELL'
11976 export CONFIG_SHELL
11977 exec "\$@"
11978 fi
11979
11980 _ACEOF
11981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11982 exec 5>>config.log
11983 {
11984 echo
11985 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11986 ## Running $as_me. ##
11987 _ASBOX
11988 $as_echo "$ac_log"
11989 } >&5
11990
11991 _ACEOF
11992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11993 #
11994 # INIT-COMMANDS
11995 #
11996 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11997
11998
11999 # The HP-UX ksh and POSIX shell print the target directory to stdout
12000 # if CDPATH is set.
12001 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12002
12003 sed_quote_subst='$sed_quote_subst'
12004 double_quote_subst='$double_quote_subst'
12005 delay_variable_subst='$delay_variable_subst'
12006 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12007 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12008 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12009 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12010 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12011 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12012 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12013 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12014 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12015 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12016 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12017 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12018 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12019 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12020 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12021 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12022 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12023 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12024 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12025 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12026 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12027 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12028 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12029 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12030 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12031 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12032 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12033 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12034 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12035 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12036 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12037 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12038 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12039 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12040 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12041 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12042 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12043 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12044 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12045 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12046 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12047 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12048 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12049 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12050 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12051 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12052 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12053 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12054 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"`'
12055 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12056 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12057 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12058 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12059 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12060 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12061 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12062 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12063 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12064 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12065 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12066 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12067 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12068 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12069 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12070 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12071 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12072 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12073 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12074 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12075 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12076 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12077 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12078 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12079 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12080 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12081 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12082 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12083 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12084 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12085 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12086 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12087 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12088 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12089 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12090 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12091 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12092 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12093 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12094 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12095 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12096 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12097 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12098 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12099 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12100 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12101 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12102 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12103 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12104 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12105 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12106 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12107 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12108 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12109 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12110 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12111 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12112 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12113 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12114 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12115 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12116 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12117 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12118 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12119 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12120 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12121 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12122 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12123 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12124 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12125 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12126
12127 LTCC='$LTCC'
12128 LTCFLAGS='$LTCFLAGS'
12129 compiler='$compiler_DEFAULT'
12130
12131 # A function that is used when there is no print builtin or printf.
12132 func_fallback_echo ()
12133 {
12134 eval 'cat <<_LTECHO_EOF
12135 \$1
12136 _LTECHO_EOF'
12137 }
12138
12139 # Quote evaled strings.
12140 for var in SHELL \
12141 ECHO \
12142 SED \
12143 GREP \
12144 EGREP \
12145 FGREP \
12146 LD \
12147 NM \
12148 LN_S \
12149 lt_SP2NL \
12150 lt_NL2SP \
12151 reload_flag \
12152 OBJDUMP \
12153 deplibs_check_method \
12154 file_magic_cmd \
12155 AR \
12156 AR_FLAGS \
12157 STRIP \
12158 RANLIB \
12159 CC \
12160 CFLAGS \
12161 compiler \
12162 lt_cv_sys_global_symbol_pipe \
12163 lt_cv_sys_global_symbol_to_cdecl \
12164 lt_cv_sys_global_symbol_to_c_name_address \
12165 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12166 lt_prog_compiler_no_builtin_flag \
12167 lt_prog_compiler_wl \
12168 lt_prog_compiler_pic \
12169 lt_prog_compiler_static \
12170 lt_cv_prog_compiler_c_o \
12171 need_locks \
12172 DSYMUTIL \
12173 NMEDIT \
12174 LIPO \
12175 OTOOL \
12176 OTOOL64 \
12177 shrext_cmds \
12178 export_dynamic_flag_spec \
12179 whole_archive_flag_spec \
12180 compiler_needs_object \
12181 with_gnu_ld \
12182 allow_undefined_flag \
12183 no_undefined_flag \
12184 hardcode_libdir_flag_spec \
12185 hardcode_libdir_flag_spec_ld \
12186 hardcode_libdir_separator \
12187 fix_srcfile_path \
12188 exclude_expsyms \
12189 include_expsyms \
12190 file_list_spec \
12191 variables_saved_for_relink \
12192 libname_spec \
12193 library_names_spec \
12194 soname_spec \
12195 install_override_mode \
12196 finish_eval \
12197 old_striplib \
12198 striplib; do
12199 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12200 *[\\\\\\\`\\"\\\$]*)
12201 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12202 ;;
12203 *)
12204 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12205 ;;
12206 esac
12207 done
12208
12209 # Double-quote double-evaled strings.
12210 for var in reload_cmds \
12211 old_postinstall_cmds \
12212 old_postuninstall_cmds \
12213 old_archive_cmds \
12214 extract_expsyms_cmds \
12215 old_archive_from_new_cmds \
12216 old_archive_from_expsyms_cmds \
12217 archive_cmds \
12218 archive_expsym_cmds \
12219 module_cmds \
12220 module_expsym_cmds \
12221 export_symbols_cmds \
12222 prelink_cmds \
12223 postinstall_cmds \
12224 postuninstall_cmds \
12225 finish_cmds \
12226 sys_lib_search_path_spec \
12227 sys_lib_dlsearch_path_spec; do
12228 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12229 *[\\\\\\\`\\"\\\$]*)
12230 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12231 ;;
12232 *)
12233 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12234 ;;
12235 esac
12236 done
12237
12238 ac_aux_dir='$ac_aux_dir'
12239 xsi_shell='$xsi_shell'
12240 lt_shell_append='$lt_shell_append'
12241
12242 # See if we are running on zsh, and set the options which allow our
12243 # commands through without removal of \ escapes INIT.
12244 if test -n "\${ZSH_VERSION+set}" ; then
12245 setopt NO_GLOB_SUBST
12246 fi
12247
12248
12249 PACKAGE='$PACKAGE'
12250 VERSION='$VERSION'
12251 TIMESTAMP='$TIMESTAMP'
12252 RM='$RM'
12253 ofile='$ofile'
12254
12255
12256
12257
12258 _ACEOF
12259
12260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12261
12262 # Handling of arguments.
12263 for ac_config_target in $ac_config_targets
12264 do
12265 case $ac_config_target in
12266 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12267 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12268 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12269 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12270 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12271 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12272
12273 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12274 esac
12275 done
12276
12277
12278 # If the user did not use the arguments to specify the items to instantiate,
12279 # then the envvar interface is used. Set only those that are not.
12280 # We use the long form for the default assignment because of an extremely
12281 # bizarre bug on SunOS 4.1.3.
12282 if $ac_need_defaults; then
12283 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12284 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12285 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12286 fi
12287
12288 # Have a temporary directory for convenience. Make it in the build tree
12289 # simply because there is no reason against having it here, and in addition,
12290 # creating and moving files from /tmp can sometimes cause problems.
12291 # Hook for its removal unless debugging.
12292 # Note that there is a small window in which the directory will not be cleaned:
12293 # after its creation but before its name has been assigned to `$tmp'.
12294 $debug ||
12295 {
12296 tmp= ac_tmp=
12297 trap 'exit_status=$?
12298 : "${ac_tmp:=$tmp}"
12299 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12300 ' 0
12301 trap 'as_fn_exit 1' 1 2 13 15
12302 }
12303 # Create a (secure) tmp directory for tmp files.
12304
12305 {
12306 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12307 test -d "$tmp"
12308 } ||
12309 {
12310 tmp=./conf$$-$RANDOM
12311 (umask 077 && mkdir "$tmp")
12312 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12313 ac_tmp=$tmp
12314
12315 # Set up the scripts for CONFIG_FILES section.
12316 # No need to generate them if there are no CONFIG_FILES.
12317 # This happens for instance with `./config.status config.h'.
12318 if test -n "$CONFIG_FILES"; then
12319
12320
12321 ac_cr=`echo X | tr X '\015'`
12322 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12323 # But we know of no other shell where ac_cr would be empty at this
12324 # point, so we can use a bashism as a fallback.
12325 if test "x$ac_cr" = x; then
12326 eval ac_cr=\$\'\\r\'
12327 fi
12328 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12329 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12330 ac_cs_awk_cr='\\r'
12331 else
12332 ac_cs_awk_cr=$ac_cr
12333 fi
12334
12335 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12336 _ACEOF
12337
12338
12339 {
12340 echo "cat >conf$$subs.awk <<_ACEOF" &&
12341 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12342 echo "_ACEOF"
12343 } >conf$$subs.sh ||
12344 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12345 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12346 ac_delim='%!_!# '
12347 for ac_last_try in false false false false false :; do
12348 . ./conf$$subs.sh ||
12349 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12350
12351 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12352 if test $ac_delim_n = $ac_delim_num; then
12353 break
12354 elif $ac_last_try; then
12355 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12356 else
12357 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12358 fi
12359 done
12360 rm -f conf$$subs.sh
12361
12362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12363 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12364 _ACEOF
12365 sed -n '
12366 h
12367 s/^/S["/; s/!.*/"]=/
12368 p
12369 g
12370 s/^[^!]*!//
12371 :repl
12372 t repl
12373 s/'"$ac_delim"'$//
12374 t delim
12375 :nl
12376 h
12377 s/\(.\{148\}\)..*/\1/
12378 t more1
12379 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12380 p
12381 n
12382 b repl
12383 :more1
12384 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12385 p
12386 g
12387 s/.\{148\}//
12388 t nl
12389 :delim
12390 h
12391 s/\(.\{148\}\)..*/\1/
12392 t more2
12393 s/["\\]/\\&/g; s/^/"/; s/$/"/
12394 p
12395 b
12396 :more2
12397 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12398 p
12399 g
12400 s/.\{148\}//
12401 t delim
12402 ' <conf$$subs.awk | sed '
12403 /^[^""]/{
12404 N
12405 s/\n//
12406 }
12407 ' >>$CONFIG_STATUS || ac_write_fail=1
12408 rm -f conf$$subs.awk
12409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12410 _ACAWK
12411 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12412 for (key in S) S_is_set[key] = 1
12413 FS = ""
12414
12415 }
12416 {
12417 line = $ 0
12418 nfields = split(line, field, "@")
12419 substed = 0
12420 len = length(field[1])
12421 for (i = 2; i < nfields; i++) {
12422 key = field[i]
12423 keylen = length(key)
12424 if (S_is_set[key]) {
12425 value = S[key]
12426 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12427 len += length(value) + length(field[++i])
12428 substed = 1
12429 } else
12430 len += 1 + keylen
12431 }
12432
12433 print line
12434 }
12435
12436 _ACAWK
12437 _ACEOF
12438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12439 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12440 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12441 else
12442 cat
12443 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12444 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12445 _ACEOF
12446
12447 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12448 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12449 # trailing colons and then remove the whole line if VPATH becomes empty
12450 # (actually we leave an empty line to preserve line numbers).
12451 if test "x$srcdir" = x.; then
12452 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12453 h
12454 s///
12455 s/^/:/
12456 s/[ ]*$/:/
12457 s/:\$(srcdir):/:/g
12458 s/:\${srcdir}:/:/g
12459 s/:@srcdir@:/:/g
12460 s/^:*//
12461 s/:*$//
12462 x
12463 s/\(=[ ]*\).*/\1/
12464 G
12465 s/\n//
12466 s/^[^=]*=[ ]*$//
12467 }'
12468 fi
12469
12470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12471 fi # test -n "$CONFIG_FILES"
12472
12473 # Set up the scripts for CONFIG_HEADERS section.
12474 # No need to generate them if there are no CONFIG_HEADERS.
12475 # This happens for instance with `./config.status Makefile'.
12476 if test -n "$CONFIG_HEADERS"; then
12477 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12478 BEGIN {
12479 _ACEOF
12480
12481 # Transform confdefs.h into an awk script `defines.awk', embedded as
12482 # here-document in config.status, that substitutes the proper values into
12483 # config.h.in to produce config.h.
12484
12485 # Create a delimiter string that does not exist in confdefs.h, to ease
12486 # handling of long lines.
12487 ac_delim='%!_!# '
12488 for ac_last_try in false false :; do
12489 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12490 if test -z "$ac_tt"; then
12491 break
12492 elif $ac_last_try; then
12493 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12494 else
12495 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12496 fi
12497 done
12498
12499 # For the awk script, D is an array of macro values keyed by name,
12500 # likewise P contains macro parameters if any. Preserve backslash
12501 # newline sequences.
12502
12503 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12504 sed -n '
12505 s/.\{148\}/&'"$ac_delim"'/g
12506 t rset
12507 :rset
12508 s/^[ ]*#[ ]*define[ ][ ]*/ /
12509 t def
12510 d
12511 :def
12512 s/\\$//
12513 t bsnl
12514 s/["\\]/\\&/g
12515 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12516 D["\1"]=" \3"/p
12517 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12518 d
12519 :bsnl
12520 s/["\\]/\\&/g
12521 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12522 D["\1"]=" \3\\\\\\n"\\/p
12523 t cont
12524 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12525 t cont
12526 d
12527 :cont
12528 n
12529 s/.\{148\}/&'"$ac_delim"'/g
12530 t clear
12531 :clear
12532 s/\\$//
12533 t bsnlc
12534 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12535 d
12536 :bsnlc
12537 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12538 b cont
12539 ' <confdefs.h | sed '
12540 s/'"$ac_delim"'/"\\\
12541 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12542
12543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12544 for (key in D) D_is_set[key] = 1
12545 FS = ""
12546 }
12547 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12548 line = \$ 0
12549 split(line, arg, " ")
12550 if (arg[1] == "#") {
12551 defundef = arg[2]
12552 mac1 = arg[3]
12553 } else {
12554 defundef = substr(arg[1], 2)
12555 mac1 = arg[2]
12556 }
12557 split(mac1, mac2, "(") #)
12558 macro = mac2[1]
12559 prefix = substr(line, 1, index(line, defundef) - 1)
12560 if (D_is_set[macro]) {
12561 # Preserve the white space surrounding the "#".
12562 print prefix "define", macro P[macro] D[macro]
12563 next
12564 } else {
12565 # Replace #undef with comments. This is necessary, for example,
12566 # in the case of _POSIX_SOURCE, which is predefined and required
12567 # on some systems where configure will not decide to define it.
12568 if (defundef == "undef") {
12569 print "/*", prefix defundef, macro, "*/"
12570 next
12571 }
12572 }
12573 }
12574 { print }
12575 _ACAWK
12576 _ACEOF
12577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12578 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12579 fi # test -n "$CONFIG_HEADERS"
12580
12581
12582 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12583 shift
12584 for ac_tag
12585 do
12586 case $ac_tag in
12587 :[FHLC]) ac_mode=$ac_tag; continue;;
12588 esac
12589 case $ac_mode$ac_tag in
12590 :[FHL]*:*);;
12591 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12592 :[FH]-) ac_tag=-:-;;
12593 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12594 esac
12595 ac_save_IFS=$IFS
12596 IFS=:
12597 set x $ac_tag
12598 IFS=$ac_save_IFS
12599 shift
12600 ac_file=$1
12601 shift
12602
12603 case $ac_mode in
12604 :L) ac_source=$1;;
12605 :[FH])
12606 ac_file_inputs=
12607 for ac_f
12608 do
12609 case $ac_f in
12610 -) ac_f="$ac_tmp/stdin";;
12611 *) # Look for the file first in the build tree, then in the source tree
12612 # (if the path is not absolute). The absolute path cannot be DOS-style,
12613 # because $ac_f cannot contain `:'.
12614 test -f "$ac_f" ||
12615 case $ac_f in
12616 [\\/$]*) false;;
12617 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12618 esac ||
12619 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12620 esac
12621 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12622 as_fn_append ac_file_inputs " '$ac_f'"
12623 done
12624
12625 # Let's still pretend it is `configure' which instantiates (i.e., don't
12626 # use $as_me), people would be surprised to read:
12627 # /* config.h. Generated by config.status. */
12628 configure_input='Generated from '`
12629 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12630 `' by configure.'
12631 if test x"$ac_file" != x-; then
12632 configure_input="$ac_file. $configure_input"
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12634 $as_echo "$as_me: creating $ac_file" >&6;}
12635 fi
12636 # Neutralize special characters interpreted by sed in replacement strings.
12637 case $configure_input in #(
12638 *\&* | *\|* | *\\* )
12639 ac_sed_conf_input=`$as_echo "$configure_input" |
12640 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12641 *) ac_sed_conf_input=$configure_input;;
12642 esac
12643
12644 case $ac_tag in
12645 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12646 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12647 esac
12648 ;;
12649 esac
12650
12651 ac_dir=`$as_dirname -- "$ac_file" ||
12652 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12653 X"$ac_file" : 'X\(//\)[^/]' \| \
12654 X"$ac_file" : 'X\(//\)$' \| \
12655 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12656 $as_echo X"$ac_file" |
12657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12658 s//\1/
12659 q
12660 }
12661 /^X\(\/\/\)[^/].*/{
12662 s//\1/
12663 q
12664 }
12665 /^X\(\/\/\)$/{
12666 s//\1/
12667 q
12668 }
12669 /^X\(\/\).*/{
12670 s//\1/
12671 q
12672 }
12673 s/.*/./; q'`
12674 as_dir="$ac_dir"; as_fn_mkdir_p
12675 ac_builddir=.
12676
12677 case "$ac_dir" in
12678 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12679 *)
12680 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12681 # A ".." for each directory in $ac_dir_suffix.
12682 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12683 case $ac_top_builddir_sub in
12684 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12685 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12686 esac ;;
12687 esac
12688 ac_abs_top_builddir=$ac_pwd
12689 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12690 # for backward compatibility:
12691 ac_top_builddir=$ac_top_build_prefix
12692
12693 case $srcdir in
12694 .) # We are building in place.
12695 ac_srcdir=.
12696 ac_top_srcdir=$ac_top_builddir_sub
12697 ac_abs_top_srcdir=$ac_pwd ;;
12698 [\\/]* | ?:[\\/]* ) # Absolute name.
12699 ac_srcdir=$srcdir$ac_dir_suffix;
12700 ac_top_srcdir=$srcdir
12701 ac_abs_top_srcdir=$srcdir ;;
12702 *) # Relative name.
12703 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12704 ac_top_srcdir=$ac_top_build_prefix$srcdir
12705 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12706 esac
12707 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12708
12709
12710 case $ac_mode in
12711 :F)
12712 #
12713 # CONFIG_FILE
12714 #
12715
12716 case $INSTALL in
12717 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12718 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12719 esac
12720 ac_MKDIR_P=$MKDIR_P
12721 case $MKDIR_P in
12722 [\\/$]* | ?:[\\/]* ) ;;
12723 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12724 esac
12725 _ACEOF
12726
12727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12728 # If the template does not know about datarootdir, expand it.
12729 # FIXME: This hack should be removed a few years after 2.60.
12730 ac_datarootdir_hack=; ac_datarootdir_seen=
12731 ac_sed_dataroot='
12732 /datarootdir/ {
12733 p
12734 q
12735 }
12736 /@datadir@/p
12737 /@docdir@/p
12738 /@infodir@/p
12739 /@localedir@/p
12740 /@mandir@/p'
12741 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12742 *datarootdir*) ac_datarootdir_seen=yes;;
12743 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12745 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12746 _ACEOF
12747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12748 ac_datarootdir_hack='
12749 s&@datadir@&$datadir&g
12750 s&@docdir@&$docdir&g
12751 s&@infodir@&$infodir&g
12752 s&@localedir@&$localedir&g
12753 s&@mandir@&$mandir&g
12754 s&\\\${datarootdir}&$datarootdir&g' ;;
12755 esac
12756 _ACEOF
12757
12758 # Neutralize VPATH when `$srcdir' = `.'.
12759 # Shell code in configure.ac might set extrasub.
12760 # FIXME: do we really want to maintain this feature?
12761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12762 ac_sed_extra="$ac_vpsub
12763 $extrasub
12764 _ACEOF
12765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12766 :t
12767 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12768 s|@configure_input@|$ac_sed_conf_input|;t t
12769 s&@top_builddir@&$ac_top_builddir_sub&;t t
12770 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12771 s&@srcdir@&$ac_srcdir&;t t
12772 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12773 s&@top_srcdir@&$ac_top_srcdir&;t t
12774 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12775 s&@builddir@&$ac_builddir&;t t
12776 s&@abs_builddir@&$ac_abs_builddir&;t t
12777 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12778 s&@INSTALL@&$ac_INSTALL&;t t
12779 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12780 $ac_datarootdir_hack
12781 "
12782 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12783 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12784
12785 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12786 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12787 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12788 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12790 which seems to be undefined. Please make sure it is defined" >&5
12791 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12792 which seems to be undefined. Please make sure it is defined" >&2;}
12793
12794 rm -f "$ac_tmp/stdin"
12795 case $ac_file in
12796 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12797 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12798 esac \
12799 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12800 ;;
12801 :H)
12802 #
12803 # CONFIG_HEADER
12804 #
12805 if test x"$ac_file" != x-; then
12806 {
12807 $as_echo "/* $configure_input */" \
12808 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12809 } >"$ac_tmp/config.h" \
12810 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12811 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12813 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12814 else
12815 rm -f "$ac_file"
12816 mv "$ac_tmp/config.h" "$ac_file" \
12817 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12818 fi
12819 else
12820 $as_echo "/* $configure_input */" \
12821 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12822 || as_fn_error $? "could not create -" "$LINENO" 5
12823 fi
12824 # Compute "$ac_file"'s index in $config_headers.
12825 _am_arg="$ac_file"
12826 _am_stamp_count=1
12827 for _am_header in $config_headers :; do
12828 case $_am_header in
12829 $_am_arg | $_am_arg:* )
12830 break ;;
12831 * )
12832 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12833 esac
12834 done
12835 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12836 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12837 X"$_am_arg" : 'X\(//\)[^/]' \| \
12838 X"$_am_arg" : 'X\(//\)$' \| \
12839 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12840 $as_echo X"$_am_arg" |
12841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12842 s//\1/
12843 q
12844 }
12845 /^X\(\/\/\)[^/].*/{
12846 s//\1/
12847 q
12848 }
12849 /^X\(\/\/\)$/{
12850 s//\1/
12851 q
12852 }
12853 /^X\(\/\).*/{
12854 s//\1/
12855 q
12856 }
12857 s/.*/./; q'`/stamp-h$_am_stamp_count
12858 ;;
12859
12860 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12861 $as_echo "$as_me: executing $ac_file commands" >&6;}
12862 ;;
12863 esac
12864
12865
12866 case $ac_file$ac_mode in
12867 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12868 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12869 # are listed without --file. Let's play safe and only enable the eval
12870 # if we detect the quoting.
12871 case $CONFIG_FILES in
12872 *\'*) eval set x "$CONFIG_FILES" ;;
12873 *) set x $CONFIG_FILES ;;
12874 esac
12875 shift
12876 for mf
12877 do
12878 # Strip MF so we end up with the name of the file.
12879 mf=`echo "$mf" | sed -e 's/:.*$//'`
12880 # Check whether this is an Automake generated Makefile or not.
12881 # We used to match only the files named `Makefile.in', but
12882 # some people rename them; so instead we look at the file content.
12883 # Grep'ing the first line is not enough: some people post-process
12884 # each Makefile.in and add a new line on top of each file to say so.
12885 # Grep'ing the whole file is not good either: AIX grep has a line
12886 # limit of 2048, but all sed's we know have understand at least 4000.
12887 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12888 dirpart=`$as_dirname -- "$mf" ||
12889 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12890 X"$mf" : 'X\(//\)[^/]' \| \
12891 X"$mf" : 'X\(//\)$' \| \
12892 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12893 $as_echo X"$mf" |
12894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12895 s//\1/
12896 q
12897 }
12898 /^X\(\/\/\)[^/].*/{
12899 s//\1/
12900 q
12901 }
12902 /^X\(\/\/\)$/{
12903 s//\1/
12904 q
12905 }
12906 /^X\(\/\).*/{
12907 s//\1/
12908 q
12909 }
12910 s/.*/./; q'`
12911 else
12912 continue
12913 fi
12914 # Extract the definition of DEPDIR, am__include, and am__quote
12915 # from the Makefile without running `make'.
12916 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12917 test -z "$DEPDIR" && continue
12918 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12919 test -z "am__include" && continue
12920 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12921 # When using ansi2knr, U may be empty or an underscore; expand it
12922 U=`sed -n 's/^U = //p' < "$mf"`
12923 # Find all dependency output files, they are included files with
12924 # $(DEPDIR) in their names. We invoke sed twice because it is the
12925 # simplest approach to changing $(DEPDIR) to its actual value in the
12926 # expansion.
12927 for file in `sed -n "
12928 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12929 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12930 # Make sure the directory exists.
12931 test -f "$dirpart/$file" && continue
12932 fdir=`$as_dirname -- "$file" ||
12933 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12934 X"$file" : 'X\(//\)[^/]' \| \
12935 X"$file" : 'X\(//\)$' \| \
12936 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12937 $as_echo X"$file" |
12938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12939 s//\1/
12940 q
12941 }
12942 /^X\(\/\/\)[^/].*/{
12943 s//\1/
12944 q
12945 }
12946 /^X\(\/\/\)$/{
12947 s//\1/
12948 q
12949 }
12950 /^X\(\/\).*/{
12951 s//\1/
12952 q
12953 }
12954 s/.*/./; q'`
12955 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12956 # echo "creating $dirpart/$file"
12957 echo '# dummy' > "$dirpart/$file"
12958 done
12959 done
12960 }
12961 ;;
12962 "libtool":C)
12963
12964 # See if we are running on zsh, and set the options which allow our
12965 # commands through without removal of \ escapes.
12966 if test -n "${ZSH_VERSION+set}" ; then
12967 setopt NO_GLOB_SUBST
12968 fi
12969
12970 cfgfile="${ofile}T"
12971 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12972 $RM "$cfgfile"
12973
12974 cat <<_LT_EOF >> "$cfgfile"
12975 #! $SHELL
12976
12977 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12978 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12979 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12980 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12981 #
12982 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12983 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
12984 # Inc.
12985 # Written by Gordon Matzigkeit, 1996
12986 #
12987 # This file is part of GNU Libtool.
12988 #
12989 # GNU Libtool is free software; you can redistribute it and/or
12990 # modify it under the terms of the GNU General Public License as
12991 # published by the Free Software Foundation; either version 2 of
12992 # the License, or (at your option) any later version.
12993 #
12994 # As a special exception to the GNU General Public License,
12995 # if you distribute this file as part of a program or library that
12996 # is built using GNU Libtool, you may include this file under the
12997 # same distribution terms that you use for the rest of that program.
12998 #
12999 # GNU Libtool is distributed in the hope that it will be useful,
13000 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13001 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13002 # GNU General Public License for more details.
13003 #
13004 # You should have received a copy of the GNU General Public License
13005 # along with GNU Libtool; see the file COPYING. If not, a copy
13006 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13007 # obtained by writing to the Free Software Foundation, Inc.,
13008 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13009
13010
13011 # The names of the tagged configurations supported by this script.
13012 available_tags=""
13013
13014 # ### BEGIN LIBTOOL CONFIG
13015
13016 # Whether or not to build static libraries.
13017 build_old_libs=$enable_static
13018
13019 # Which release of libtool.m4 was used?
13020 macro_version=$macro_version
13021 macro_revision=$macro_revision
13022
13023 # Whether or not to build shared libraries.
13024 build_libtool_libs=$enable_shared
13025
13026 # What type of objects to build.
13027 pic_mode=$pic_mode
13028
13029 # Whether or not to optimize for fast installation.
13030 fast_install=$enable_fast_install
13031
13032 # Shell to use when invoking shell scripts.
13033 SHELL=$lt_SHELL
13034
13035 # An echo program that protects backslashes.
13036 ECHO=$lt_ECHO
13037
13038 # The host system.
13039 host_alias=$host_alias
13040 host=$host
13041 host_os=$host_os
13042
13043 # The build system.
13044 build_alias=$build_alias
13045 build=$build
13046 build_os=$build_os
13047
13048 # A sed program that does not truncate output.
13049 SED=$lt_SED
13050
13051 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13052 Xsed="\$SED -e 1s/^X//"
13053
13054 # A grep program that handles long lines.
13055 GREP=$lt_GREP
13056
13057 # An ERE matcher.
13058 EGREP=$lt_EGREP
13059
13060 # A literal string matcher.
13061 FGREP=$lt_FGREP
13062
13063 # A BSD- or MS-compatible name lister.
13064 NM=$lt_NM
13065
13066 # Whether we need soft or hard links.
13067 LN_S=$lt_LN_S
13068
13069 # What is the maximum length of a command?
13070 max_cmd_len=$max_cmd_len
13071
13072 # Object file suffix (normally "o").
13073 objext=$ac_objext
13074
13075 # Executable file suffix (normally "").
13076 exeext=$exeext
13077
13078 # whether the shell understands "unset".
13079 lt_unset=$lt_unset
13080
13081 # turn spaces into newlines.
13082 SP2NL=$lt_lt_SP2NL
13083
13084 # turn newlines into spaces.
13085 NL2SP=$lt_lt_NL2SP
13086
13087 # An object symbol dumper.
13088 OBJDUMP=$lt_OBJDUMP
13089
13090 # Method to check whether dependent libraries are shared objects.
13091 deplibs_check_method=$lt_deplibs_check_method
13092
13093 # Command to use when deplibs_check_method == "file_magic".
13094 file_magic_cmd=$lt_file_magic_cmd
13095
13096 # The archiver.
13097 AR=$lt_AR
13098 AR_FLAGS=$lt_AR_FLAGS
13099
13100 # A symbol stripping program.
13101 STRIP=$lt_STRIP
13102
13103 # Commands used to install an old-style archive.
13104 RANLIB=$lt_RANLIB
13105 old_postinstall_cmds=$lt_old_postinstall_cmds
13106 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13107
13108 # Whether to use a lock for old archive extraction.
13109 lock_old_archive_extraction=$lock_old_archive_extraction
13110
13111 # A C compiler.
13112 LTCC=$lt_CC
13113
13114 # LTCC compiler flags.
13115 LTCFLAGS=$lt_CFLAGS
13116
13117 # Take the output of nm and produce a listing of raw symbols and C names.
13118 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13119
13120 # Transform the output of nm in a proper C declaration.
13121 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13122
13123 # Transform the output of nm in a C name address pair.
13124 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13125
13126 # Transform the output of nm in a C name address pair when lib prefix is needed.
13127 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13128
13129 # The name of the directory that contains temporary libtool files.
13130 objdir=$objdir
13131
13132 # Used to examine libraries when file_magic_cmd begins with "file".
13133 MAGIC_CMD=$MAGIC_CMD
13134
13135 # Must we lock files when doing compilation?
13136 need_locks=$lt_need_locks
13137
13138 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13139 DSYMUTIL=$lt_DSYMUTIL
13140
13141 # Tool to change global to local symbols on Mac OS X.
13142 NMEDIT=$lt_NMEDIT
13143
13144 # Tool to manipulate fat objects and archives on Mac OS X.
13145 LIPO=$lt_LIPO
13146
13147 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13148 OTOOL=$lt_OTOOL
13149
13150 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13151 OTOOL64=$lt_OTOOL64
13152
13153 # Old archive suffix (normally "a").
13154 libext=$libext
13155
13156 # Shared library suffix (normally ".so").
13157 shrext_cmds=$lt_shrext_cmds
13158
13159 # The commands to extract the exported symbol list from a shared archive.
13160 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13161
13162 # Variables whose values should be saved in libtool wrapper scripts and
13163 # restored at link time.
13164 variables_saved_for_relink=$lt_variables_saved_for_relink
13165
13166 # Do we need the "lib" prefix for modules?
13167 need_lib_prefix=$need_lib_prefix
13168
13169 # Do we need a version for libraries?
13170 need_version=$need_version
13171
13172 # Library versioning type.
13173 version_type=$version_type
13174
13175 # Shared library runtime path variable.
13176 runpath_var=$runpath_var
13177
13178 # Shared library path variable.
13179 shlibpath_var=$shlibpath_var
13180
13181 # Is shlibpath searched before the hard-coded library search path?
13182 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13183
13184 # Format of library name prefix.
13185 libname_spec=$lt_libname_spec
13186
13187 # List of archive names. First name is the real one, the rest are links.
13188 # The last name is the one that the linker finds with -lNAME
13189 library_names_spec=$lt_library_names_spec
13190
13191 # The coded name of the library, if different from the real name.
13192 soname_spec=$lt_soname_spec
13193
13194 # Permission mode override for installation of shared libraries.
13195 install_override_mode=$lt_install_override_mode
13196
13197 # Command to use after installation of a shared archive.
13198 postinstall_cmds=$lt_postinstall_cmds
13199
13200 # Command to use after uninstallation of a shared archive.
13201 postuninstall_cmds=$lt_postuninstall_cmds
13202
13203 # Commands used to finish a libtool library installation in a directory.
13204 finish_cmds=$lt_finish_cmds
13205
13206 # As "finish_cmds", except a single script fragment to be evaled but
13207 # not shown.
13208 finish_eval=$lt_finish_eval
13209
13210 # Whether we should hardcode library paths into libraries.
13211 hardcode_into_libs=$hardcode_into_libs
13212
13213 # Compile-time system search path for libraries.
13214 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13215
13216 # Run-time system search path for libraries.
13217 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13218
13219 # Whether dlopen is supported.
13220 dlopen_support=$enable_dlopen
13221
13222 # Whether dlopen of programs is supported.
13223 dlopen_self=$enable_dlopen_self
13224
13225 # Whether dlopen of statically linked programs is supported.
13226 dlopen_self_static=$enable_dlopen_self_static
13227
13228 # Commands to strip libraries.
13229 old_striplib=$lt_old_striplib
13230 striplib=$lt_striplib
13231
13232
13233 # The linker used to build libraries.
13234 LD=$lt_LD
13235
13236 # How to create reloadable object files.
13237 reload_flag=$lt_reload_flag
13238 reload_cmds=$lt_reload_cmds
13239
13240 # Commands used to build an old-style archive.
13241 old_archive_cmds=$lt_old_archive_cmds
13242
13243 # A language specific compiler.
13244 CC=$lt_compiler
13245
13246 # Is the compiler the GNU compiler?
13247 with_gcc=$GCC
13248
13249 # Compiler flag to turn off builtin functions.
13250 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13251
13252 # How to pass a linker flag through the compiler.
13253 wl=$lt_lt_prog_compiler_wl
13254
13255 # Additional compiler flags for building library objects.
13256 pic_flag=$lt_lt_prog_compiler_pic
13257
13258 # Compiler flag to prevent dynamic linking.
13259 link_static_flag=$lt_lt_prog_compiler_static
13260
13261 # Does compiler simultaneously support -c and -o options?
13262 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13263
13264 # Whether or not to add -lc for building shared libraries.
13265 build_libtool_need_lc=$archive_cmds_need_lc
13266
13267 # Whether or not to disallow shared libs when runtime libs are static.
13268 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13269
13270 # Compiler flag to allow reflexive dlopens.
13271 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13272
13273 # Compiler flag to generate shared objects directly from archives.
13274 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13275
13276 # Whether the compiler copes with passing no objects directly.
13277 compiler_needs_object=$lt_compiler_needs_object
13278
13279 # Create an old-style archive from a shared archive.
13280 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13281
13282 # Create a temporary old-style archive to link instead of a shared archive.
13283 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13284
13285 # Commands used to build a shared archive.
13286 archive_cmds=$lt_archive_cmds
13287 archive_expsym_cmds=$lt_archive_expsym_cmds
13288
13289 # Commands used to build a loadable module if different from building
13290 # a shared archive.
13291 module_cmds=$lt_module_cmds
13292 module_expsym_cmds=$lt_module_expsym_cmds
13293
13294 # Whether we are building with GNU ld or not.
13295 with_gnu_ld=$lt_with_gnu_ld
13296
13297 # Flag that allows shared libraries with undefined symbols to be built.
13298 allow_undefined_flag=$lt_allow_undefined_flag
13299
13300 # Flag that enforces no undefined symbols.
13301 no_undefined_flag=$lt_no_undefined_flag
13302
13303 # Flag to hardcode \$libdir into a binary during linking.
13304 # This must work even if \$libdir does not exist
13305 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13306
13307 # If ld is used when linking, flag to hardcode \$libdir into a binary
13308 # during linking. This must work even if \$libdir does not exist.
13309 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13310
13311 # Whether we need a single "-rpath" flag with a separated argument.
13312 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13313
13314 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13315 # DIR into the resulting binary.
13316 hardcode_direct=$hardcode_direct
13317
13318 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13319 # DIR into the resulting binary and the resulting library dependency is
13320 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13321 # library is relocated.
13322 hardcode_direct_absolute=$hardcode_direct_absolute
13323
13324 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13325 # into the resulting binary.
13326 hardcode_minus_L=$hardcode_minus_L
13327
13328 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13329 # into the resulting binary.
13330 hardcode_shlibpath_var=$hardcode_shlibpath_var
13331
13332 # Set to "yes" if building a shared library automatically hardcodes DIR
13333 # into the library and all subsequent libraries and executables linked
13334 # against it.
13335 hardcode_automatic=$hardcode_automatic
13336
13337 # Set to yes if linker adds runtime paths of dependent libraries
13338 # to runtime path list.
13339 inherit_rpath=$inherit_rpath
13340
13341 # Whether libtool must link a program against all its dependency libraries.
13342 link_all_deplibs=$link_all_deplibs
13343
13344 # Fix the shell variable \$srcfile for the compiler.
13345 fix_srcfile_path=$lt_fix_srcfile_path
13346
13347 # Set to "yes" if exported symbols are required.
13348 always_export_symbols=$always_export_symbols
13349
13350 # The commands to list exported symbols.
13351 export_symbols_cmds=$lt_export_symbols_cmds
13352
13353 # Symbols that should not be listed in the preloaded symbols.
13354 exclude_expsyms=$lt_exclude_expsyms
13355
13356 # Symbols that must always be exported.
13357 include_expsyms=$lt_include_expsyms
13358
13359 # Commands necessary for linking programs (against libraries) with templates.
13360 prelink_cmds=$lt_prelink_cmds
13361
13362 # Specify filename containing input files.
13363 file_list_spec=$lt_file_list_spec
13364
13365 # How to hardcode a shared library path into an executable.
13366 hardcode_action=$hardcode_action
13367
13368 # ### END LIBTOOL CONFIG
13369
13370 _LT_EOF
13371
13372 case $host_os in
13373 aix3*)
13374 cat <<\_LT_EOF >> "$cfgfile"
13375 # AIX sometimes has problems with the GCC collect2 program. For some
13376 # reason, if we set the COLLECT_NAMES environment variable, the problems
13377 # vanish in a puff of smoke.
13378 if test "X${COLLECT_NAMES+set}" != Xset; then
13379 COLLECT_NAMES=
13380 export COLLECT_NAMES
13381 fi
13382 _LT_EOF
13383 ;;
13384 esac
13385
13386
13387 ltmain="$ac_aux_dir/ltmain.sh"
13388
13389
13390 # We use sed instead of cat because bash on DJGPP gets confused if
13391 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13392 # text mode, it properly converts lines to CR/LF. This bash problem
13393 # is reportedly fixed, but why not run on old versions too?
13394 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13395 || (rm -f "$cfgfile"; exit 1)
13396
13397 case $xsi_shell in
13398 yes)
13399 cat << \_LT_EOF >> "$cfgfile"
13400
13401 # func_dirname file append nondir_replacement
13402 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13403 # otherwise set result to NONDIR_REPLACEMENT.
13404 func_dirname ()
13405 {
13406 case ${1} in
13407 */*) func_dirname_result="${1%/*}${2}" ;;
13408 * ) func_dirname_result="${3}" ;;
13409 esac
13410 }
13411
13412 # func_basename file
13413 func_basename ()
13414 {
13415 func_basename_result="${1##*/}"
13416 }
13417
13418 # func_dirname_and_basename file append nondir_replacement
13419 # perform func_basename and func_dirname in a single function
13420 # call:
13421 # dirname: Compute the dirname of FILE. If nonempty,
13422 # add APPEND to the result, otherwise set result
13423 # to NONDIR_REPLACEMENT.
13424 # value returned in "$func_dirname_result"
13425 # basename: Compute filename of FILE.
13426 # value retuned in "$func_basename_result"
13427 # Implementation must be kept synchronized with func_dirname
13428 # and func_basename. For efficiency, we do not delegate to
13429 # those functions but instead duplicate the functionality here.
13430 func_dirname_and_basename ()
13431 {
13432 case ${1} in
13433 */*) func_dirname_result="${1%/*}${2}" ;;
13434 * ) func_dirname_result="${3}" ;;
13435 esac
13436 func_basename_result="${1##*/}"
13437 }
13438
13439 # func_stripname prefix suffix name
13440 # strip PREFIX and SUFFIX off of NAME.
13441 # PREFIX and SUFFIX must not contain globbing or regex special
13442 # characters, hashes, percent signs, but SUFFIX may contain a leading
13443 # dot (in which case that matches only a dot).
13444 func_stripname ()
13445 {
13446 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13447 # positional parameters, so assign one to ordinary parameter first.
13448 func_stripname_result=${3}
13449 func_stripname_result=${func_stripname_result#"${1}"}
13450 func_stripname_result=${func_stripname_result%"${2}"}
13451 }
13452
13453 # func_opt_split
13454 func_opt_split ()
13455 {
13456 func_opt_split_opt=${1%%=*}
13457 func_opt_split_arg=${1#*=}
13458 }
13459
13460 # func_lo2o object
13461 func_lo2o ()
13462 {
13463 case ${1} in
13464 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13465 *) func_lo2o_result=${1} ;;
13466 esac
13467 }
13468
13469 # func_xform libobj-or-source
13470 func_xform ()
13471 {
13472 func_xform_result=${1%.*}.lo
13473 }
13474
13475 # func_arith arithmetic-term...
13476 func_arith ()
13477 {
13478 func_arith_result=$(( $* ))
13479 }
13480
13481 # func_len string
13482 # STRING may not start with a hyphen.
13483 func_len ()
13484 {
13485 func_len_result=${#1}
13486 }
13487
13488 _LT_EOF
13489 ;;
13490 *) # Bourne compatible functions.
13491 cat << \_LT_EOF >> "$cfgfile"
13492
13493 # func_dirname file append nondir_replacement
13494 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13495 # otherwise set result to NONDIR_REPLACEMENT.
13496 func_dirname ()
13497 {
13498 # Extract subdirectory from the argument.
13499 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13500 if test "X$func_dirname_result" = "X${1}"; then
13501 func_dirname_result="${3}"
13502 else
13503 func_dirname_result="$func_dirname_result${2}"
13504 fi
13505 }
13506
13507 # func_basename file
13508 func_basename ()
13509 {
13510 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13511 }
13512
13513
13514 # func_stripname prefix suffix name
13515 # strip PREFIX and SUFFIX off of NAME.
13516 # PREFIX and SUFFIX must not contain globbing or regex special
13517 # characters, hashes, percent signs, but SUFFIX may contain a leading
13518 # dot (in which case that matches only a dot).
13519 # func_strip_suffix prefix name
13520 func_stripname ()
13521 {
13522 case ${2} in
13523 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13524 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13525 esac
13526 }
13527
13528 # sed scripts:
13529 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13530 my_sed_long_arg='1s/^-[^=]*=//'
13531
13532 # func_opt_split
13533 func_opt_split ()
13534 {
13535 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13536 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13537 }
13538
13539 # func_lo2o object
13540 func_lo2o ()
13541 {
13542 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13543 }
13544
13545 # func_xform libobj-or-source
13546 func_xform ()
13547 {
13548 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13549 }
13550
13551 # func_arith arithmetic-term...
13552 func_arith ()
13553 {
13554 func_arith_result=`expr "$@"`
13555 }
13556
13557 # func_len string
13558 # STRING may not start with a hyphen.
13559 func_len ()
13560 {
13561 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13562 }
13563
13564 _LT_EOF
13565 esac
13566
13567 case $lt_shell_append in
13568 yes)
13569 cat << \_LT_EOF >> "$cfgfile"
13570
13571 # func_append var value
13572 # Append VALUE to the end of shell variable VAR.
13573 func_append ()
13574 {
13575 eval "$1+=\$2"
13576 }
13577 _LT_EOF
13578 ;;
13579 *)
13580 cat << \_LT_EOF >> "$cfgfile"
13581
13582 # func_append var value
13583 # Append VALUE to the end of shell variable VAR.
13584 func_append ()
13585 {
13586 eval "$1=\$$1\$2"
13587 }
13588
13589 _LT_EOF
13590 ;;
13591 esac
13592
13593
13594 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13595 || (rm -f "$cfgfile"; exit 1)
13596
13597 mv -f "$cfgfile" "$ofile" ||
13598 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13599 chmod +x "$ofile"
13600
13601 ;;
13602
13603 esac
13604 done # for ac_tag
13605
13606
13607 as_fn_exit 0
13608 _ACEOF
13609 ac_clean_files=$ac_clean_files_save
13610
13611 test $ac_write_fail = 0 ||
13612 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13613
13614
13615 # configure is writing to config.log, and then calls config.status.
13616 # config.status does its own redirection, appending to config.log.
13617 # Unfortunately, on DOS this fails, as config.log is still kept open
13618 # by configure, so config.status won't be able to write to it; its
13619 # output is simply discarded. So we exec the FD to /dev/null,
13620 # effectively closing config.log, so it can be properly (re)opened and
13621 # appended to by config.status. When coming back to configure, we
13622 # need to make the FD available again.
13623 if test "$no_create" != yes; then
13624 ac_cs_success=:
13625 ac_config_status_args=
13626 test "$silent" = yes &&
13627 ac_config_status_args="$ac_config_status_args --quiet"
13628 exec 5>/dev/null
13629 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13630 exec 5>>config.log
13631 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13632 # would make configure fail if this is the last instruction.
13633 $ac_cs_success || as_fn_exit 1
13634 fi
13635 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13637 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13638 fi
13639
13640