configure revision 1.1.1.3 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXxf86misc 1.0.3.
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 test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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='libXxf86misc'
573 PACKAGE_TARNAME='libXxf86misc'
574 PACKAGE_VERSION='1.0.3'
575 PACKAGE_STRING='libXxf86misc 1.0.3'
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 XTMALLOC_ZERO_CFLAGS
621 XMALLOC_ZERO_CFLAGS
622 MALLOC_ZERO_CFLAGS
623 XXF86MISC_LIBS
624 XXF86MISC_CFLAGS
625 OTOOL64
626 OTOOL
627 LIPO
628 NMEDIT
629 DSYMUTIL
630 RANLIB
631 AR
632 OBJDUMP
633 LN_S
634 NM
635 ac_ct_DUMPBIN
636 DUMPBIN
637 LD
638 FGREP
639 LIBTOOL
640 AM_BACKSLASH
641 AM_DEFAULT_VERBOSITY
642 MAN_SUBSTS
643 XORG_MAN_PAGE
644 ADMIN_MAN_DIR
645 DRIVER_MAN_DIR
646 MISC_MAN_DIR
647 FILE_MAN_DIR
648 LIB_MAN_DIR
649 APP_MAN_DIR
650 ADMIN_MAN_SUFFIX
651 DRIVER_MAN_SUFFIX
652 MISC_MAN_SUFFIX
653 FILE_MAN_SUFFIX
654 LIB_MAN_SUFFIX
655 APP_MAN_SUFFIX
656 SED
657 host_os
658 host_vendor
659 host_cpu
660 host
661 build_os
662 build_vendor
663 build_cpu
664 build
665 INSTALL_CMD
666 PKG_CONFIG
667 CHANGELOG_CMD
668 CWARNFLAGS
669 EGREP
670 GREP
671 CPP
672 am__fastdepCC_FALSE
673 am__fastdepCC_TRUE
674 CCDEPMODE
675 AMDEPBACKSLASH
676 AMDEP_FALSE
677 AMDEP_TRUE
678 am__quote
679 am__include
680 DEPDIR
681 OBJEXT
682 EXEEXT
683 ac_ct_CC
684 CPPFLAGS
685 LDFLAGS
686 CFLAGS
687 CC
688 MAINT
689 MAINTAINER_MODE_FALSE
690 MAINTAINER_MODE_TRUE
691 am__untar
692 am__tar
693 AMTAR
694 am__leading_dot
695 SET_MAKE
696 AWK
697 mkdir_p
698 MKDIR_P
699 INSTALL_STRIP_PROGRAM
700 STRIP
701 install_sh
702 MAKEINFO
703 AUTOHEADER
704 AUTOMAKE
705 AUTOCONF
706 ACLOCAL
707 VERSION
708 PACKAGE
709 CYGPATH_W
710 am__isrc
711 INSTALL_DATA
712 INSTALL_SCRIPT
713 INSTALL_PROGRAM
714 target_alias
715 host_alias
716 build_alias
717 LIBS
718 ECHO_T
719 ECHO_N
720 ECHO_C
721 DEFS
722 mandir
723 localedir
724 libdir
725 psdir
726 pdfdir
727 dvidir
728 htmldir
729 infodir
730 docdir
731 oldincludedir
732 includedir
733 localstatedir
734 sharedstatedir
735 sysconfdir
736 datadir
737 datarootdir
738 libexecdir
739 sbindir
740 bindir
741 program_transform_name
742 prefix
743 exec_prefix
744 PACKAGE_URL
745 PACKAGE_BUGREPORT
746 PACKAGE_STRING
747 PACKAGE_VERSION
748 PACKAGE_TARNAME
749 PACKAGE_NAME
750 PATH_SEPARATOR
751 SHELL'
752 ac_subst_files=''
753 ac_user_opts='
754 enable_option_checking
755 enable_maintainer_mode
756 enable_dependency_tracking
757 enable_strict_compilation
758 enable_silent_rules
759 enable_shared
760 enable_static
761 with_pic
762 enable_fast_install
763 with_gnu_ld
764 enable_libtool_lock
765 enable_malloc0returnsnull
766 '
767 ac_precious_vars='build_alias
768 host_alias
769 target_alias
770 CC
771 CFLAGS
772 LDFLAGS
773 LIBS
774 CPPFLAGS
775 CPP
776 PKG_CONFIG
777 XXF86MISC_CFLAGS
778 XXF86MISC_LIBS'
779
780
781 # Initialize some variables set by options.
782 ac_init_help=
783 ac_init_version=false
784 ac_unrecognized_opts=
785 ac_unrecognized_sep=
786 # The variables have the same names as the options, with
787 # dashes changed to underlines.
788 cache_file=/dev/null
789 exec_prefix=NONE
790 no_create=
791 no_recursion=
792 prefix=NONE
793 program_prefix=NONE
794 program_suffix=NONE
795 program_transform_name=s,x,x,
796 silent=
797 site=
798 srcdir=
799 verbose=
800 x_includes=NONE
801 x_libraries=NONE
802
803 # Installation directory options.
804 # These are left unexpanded so users can "make install exec_prefix=/foo"
805 # and all the variables that are supposed to be based on exec_prefix
806 # by default will actually change.
807 # Use braces instead of parens because sh, perl, etc. also accept them.
808 # (The list follows the same order as the GNU Coding Standards.)
809 bindir='${exec_prefix}/bin'
810 sbindir='${exec_prefix}/sbin'
811 libexecdir='${exec_prefix}/libexec'
812 datarootdir='${prefix}/share'
813 datadir='${datarootdir}'
814 sysconfdir='${prefix}/etc'
815 sharedstatedir='${prefix}/com'
816 localstatedir='${prefix}/var'
817 includedir='${prefix}/include'
818 oldincludedir='/usr/include'
819 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
820 infodir='${datarootdir}/info'
821 htmldir='${docdir}'
822 dvidir='${docdir}'
823 pdfdir='${docdir}'
824 psdir='${docdir}'
825 libdir='${exec_prefix}/lib'
826 localedir='${datarootdir}/locale'
827 mandir='${datarootdir}/man'
828
829 ac_prev=
830 ac_dashdash=
831 for ac_option
832 do
833 # If the previous option needs an argument, assign it.
834 if test -n "$ac_prev"; then
835 eval $ac_prev=\$ac_option
836 ac_prev=
837 continue
838 fi
839
840 case $ac_option in
841 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842 *=) ac_optarg= ;;
843 *) ac_optarg=yes ;;
844 esac
845
846 # Accept the important Cygnus configure options, so we can diagnose typos.
847
848 case $ac_dashdash$ac_option in
849 --)
850 ac_dashdash=yes ;;
851
852 -bindir | --bindir | --bindi | --bind | --bin | --bi)
853 ac_prev=bindir ;;
854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855 bindir=$ac_optarg ;;
856
857 -build | --build | --buil | --bui | --bu)
858 ac_prev=build_alias ;;
859 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860 build_alias=$ac_optarg ;;
861
862 -cache-file | --cache-file | --cache-fil | --cache-fi \
863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864 ac_prev=cache_file ;;
865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867 cache_file=$ac_optarg ;;
868
869 --config-cache | -C)
870 cache_file=config.cache ;;
871
872 -datadir | --datadir | --datadi | --datad)
873 ac_prev=datadir ;;
874 -datadir=* | --datadir=* | --datadi=* | --datad=*)
875 datadir=$ac_optarg ;;
876
877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878 | --dataroo | --dataro | --datar)
879 ac_prev=datarootdir ;;
880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882 datarootdir=$ac_optarg ;;
883
884 -disable-* | --disable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error $? "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
892 *"
893 "enable_$ac_useropt"
894 "*) ;;
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
897 esac
898 eval enable_$ac_useropt=no ;;
899
900 -docdir | --docdir | --docdi | --doc | --do)
901 ac_prev=docdir ;;
902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903 docdir=$ac_optarg ;;
904
905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906 ac_prev=dvidir ;;
907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908 dvidir=$ac_optarg ;;
909
910 -enable-* | --enable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error $? "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
918 *"
919 "enable_$ac_useropt"
920 "*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
923 esac
924 eval enable_$ac_useropt=\$ac_optarg ;;
925
926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928 | --exec | --exe | --ex)
929 ac_prev=exec_prefix ;;
930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932 | --exec=* | --exe=* | --ex=*)
933 exec_prefix=$ac_optarg ;;
934
935 -gas | --gas | --ga | --g)
936 # Obsolete; use --with-gas.
937 with_gas=yes ;;
938
939 -help | --help | --hel | --he | -h)
940 ac_init_help=long ;;
941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942 ac_init_help=recursive ;;
943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944 ac_init_help=short ;;
945
946 -host | --host | --hos | --ho)
947 ac_prev=host_alias ;;
948 -host=* | --host=* | --hos=* | --ho=*)
949 host_alias=$ac_optarg ;;
950
951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952 ac_prev=htmldir ;;
953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954 | --ht=*)
955 htmldir=$ac_optarg ;;
956
957 -includedir | --includedir | --includedi | --included | --include \
958 | --includ | --inclu | --incl | --inc)
959 ac_prev=includedir ;;
960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961 | --includ=* | --inclu=* | --incl=* | --inc=*)
962 includedir=$ac_optarg ;;
963
964 -infodir | --infodir | --infodi | --infod | --info | --inf)
965 ac_prev=infodir ;;
966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967 infodir=$ac_optarg ;;
968
969 -libdir | --libdir | --libdi | --libd)
970 ac_prev=libdir ;;
971 -libdir=* | --libdir=* | --libdi=* | --libd=*)
972 libdir=$ac_optarg ;;
973
974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975 | --libexe | --libex | --libe)
976 ac_prev=libexecdir ;;
977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978 | --libexe=* | --libex=* | --libe=*)
979 libexecdir=$ac_optarg ;;
980
981 -localedir | --localedir | --localedi | --localed | --locale)
982 ac_prev=localedir ;;
983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984 localedir=$ac_optarg ;;
985
986 -localstatedir | --localstatedir | --localstatedi | --localstated \
987 | --localstate | --localstat | --localsta | --localst | --locals)
988 ac_prev=localstatedir ;;
989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991 localstatedir=$ac_optarg ;;
992
993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994 ac_prev=mandir ;;
995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 mandir=$ac_optarg ;;
997
998 -nfp | --nfp | --nf)
999 # Obsolete; use --without-fp.
1000 with_fp=no ;;
1001
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003 | --no-cr | --no-c | -n)
1004 no_create=yes ;;
1005
1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008 no_recursion=yes ;;
1009
1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012 | --oldin | --oldi | --old | --ol | --o)
1013 ac_prev=oldincludedir ;;
1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017 oldincludedir=$ac_optarg ;;
1018
1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020 ac_prev=prefix ;;
1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022 prefix=$ac_optarg ;;
1023
1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025 | --program-pre | --program-pr | --program-p)
1026 ac_prev=program_prefix ;;
1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029 program_prefix=$ac_optarg ;;
1030
1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032 | --program-suf | --program-su | --program-s)
1033 ac_prev=program_suffix ;;
1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036 program_suffix=$ac_optarg ;;
1037
1038 -program-transform-name | --program-transform-name \
1039 | --program-transform-nam | --program-transform-na \
1040 | --program-transform-n | --program-transform- \
1041 | --program-transform | --program-transfor \
1042 | --program-transfo | --program-transf \
1043 | --program-trans | --program-tran \
1044 | --progr-tra | --program-tr | --program-t)
1045 ac_prev=program_transform_name ;;
1046 -program-transform-name=* | --program-transform-name=* \
1047 | --program-transform-nam=* | --program-transform-na=* \
1048 | --program-transform-n=* | --program-transform-=* \
1049 | --program-transform=* | --program-transfor=* \
1050 | --program-transfo=* | --program-transf=* \
1051 | --program-trans=* | --program-tran=* \
1052 | --progr-tra=* | --program-tr=* | --program-t=*)
1053 program_transform_name=$ac_optarg ;;
1054
1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056 ac_prev=pdfdir ;;
1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058 pdfdir=$ac_optarg ;;
1059
1060 -psdir | --psdir | --psdi | --psd | --ps)
1061 ac_prev=psdir ;;
1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063 psdir=$ac_optarg ;;
1064
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 silent=yes ;;
1068
1069 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070 ac_prev=sbindir ;;
1071 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072 | --sbi=* | --sb=*)
1073 sbindir=$ac_optarg ;;
1074
1075 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077 | --sharedst | --shareds | --shared | --share | --shar \
1078 | --sha | --sh)
1079 ac_prev=sharedstatedir ;;
1080 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083 | --sha=* | --sh=*)
1084 sharedstatedir=$ac_optarg ;;
1085
1086 -site | --site | --sit)
1087 ac_prev=site ;;
1088 -site=* | --site=* | --sit=*)
1089 site=$ac_optarg ;;
1090
1091 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092 ac_prev=srcdir ;;
1093 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094 srcdir=$ac_optarg ;;
1095
1096 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097 | --syscon | --sysco | --sysc | --sys | --sy)
1098 ac_prev=sysconfdir ;;
1099 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101 sysconfdir=$ac_optarg ;;
1102
1103 -target | --target | --targe | --targ | --tar | --ta | --t)
1104 ac_prev=target_alias ;;
1105 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106 target_alias=$ac_optarg ;;
1107
1108 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109 verbose=yes ;;
1110
1111 -version | --version | --versio | --versi | --vers | -V)
1112 ac_init_version=: ;;
1113
1114 -with-* | --with-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error $? "invalid package name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1122 *"
1123 "with_$ac_useropt"
1124 "*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1127 esac
1128 eval with_$ac_useropt=\$ac_optarg ;;
1129
1130 -without-* | --without-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error $? "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1138 *"
1139 "with_$ac_useropt"
1140 "*) ;;
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1143 esac
1144 eval with_$ac_useropt=no ;;
1145
1146 --x)
1147 # Obsolete; use --with-x.
1148 with_x=yes ;;
1149
1150 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151 | --x-incl | --x-inc | --x-in | --x-i)
1152 ac_prev=x_includes ;;
1153 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155 x_includes=$ac_optarg ;;
1156
1157 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159 ac_prev=x_libraries ;;
1160 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162 x_libraries=$ac_optarg ;;
1163
1164 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1165 Try \`$0 --help' for more information"
1166 ;;
1167
1168 *=*)
1169 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170 # Reject names that are not valid shell variable names.
1171 case $ac_envvar in #(
1172 '' | [0-9]* | *[!_$as_cr_alnum]* )
1173 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1174 esac
1175 eval $ac_envvar=\$ac_optarg
1176 export $ac_envvar ;;
1177
1178 *)
1179 # FIXME: should be removed in autoconf 3.0.
1180 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1184 ;;
1185
1186 esac
1187 done
1188
1189 if test -n "$ac_prev"; then
1190 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191 as_fn_error $? "missing argument to $ac_option"
1192 fi
1193
1194 if test -n "$ac_unrecognized_opts"; then
1195 case $enable_option_checking in
1196 no) ;;
1197 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1198 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199 esac
1200 fi
1201
1202 # Check all directory arguments for consistency.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1207 do
1208 eval ac_val=\$$ac_var
1209 # Remove trailing slashes.
1210 case $ac_val in
1211 */ )
1212 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213 eval $ac_var=\$ac_val;;
1214 esac
1215 # Be sure to have absolute directory names.
1216 case $ac_val in
1217 [\\/$]* | ?:[\\/]* ) continue;;
1218 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219 esac
1220 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1221 done
1222
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1226 build=$build_alias
1227 host=$host_alias
1228 target=$target_alias
1229
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232 if test "x$build_alias" = x; then
1233 cross_compiling=maybe
1234 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1235 If a cross compiler is detected then cross compile mode will be used" >&2
1236 elif test "x$build_alias" != "x$host_alias"; then
1237 cross_compiling=yes
1238 fi
1239 fi
1240
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244 test "$silent" = yes && exec 6>/dev/null
1245
1246
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error $? "working directory cannot be determined"
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error $? "pwd does not report name of working directory"
1253
1254
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 $as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\).*/{
1278 s//\1/
1279 q
1280 }
1281 s/.*/./; q'`
1282 srcdir=$ac_confdir
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 srcdir=..
1285 fi
1286 else
1287 ac_srcdir_defaulted=no
1288 fi
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1292 fi
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1296 pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300 fi
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1313
1314 #
1315 # Report the --help message.
1316 #
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
1321 \`configure' configures libXxf86misc 1.0.3 to adapt to many kinds of systems.
1322
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328 Defaults for the options are specified in brackets.
1329
1330 Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking ...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 [PREFIX]
1346
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1351
1352 For better control, use the options below.
1353
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/libXxf86misc]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1374 _ACEOF
1375
1376 cat <<\_ACEOF
1377
1378 Program names:
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1382
1383 System types:
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1386 _ACEOF
1387 fi
1388
1389 if test -n "$ac_init_help"; then
1390 case $ac_init_help in
1391 short | recursive ) echo "Configuration of libXxf86misc 1.0.3:";;
1392 esac
1393 cat <<\_ACEOF
1394
1395 Optional Features:
1396 --disable-option-checking ignore unrecognized --enable/--with options
1397 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1398 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1399 --enable-maintainer-mode enable make rules and dependencies not useful
1400 (and sometimes confusing) to the casual installer
1401 --disable-dependency-tracking speeds up one-time build
1402 --enable-dependency-tracking do not reject slow dependency extractors
1403 --enable-strict-compilation
1404 Enable all warnings from compiler and make them
1405 errors (default: disabled)
1406 --enable-silent-rules less verbose build output (undo: `make V=1')
1407 --disable-silent-rules verbose build output (undo: `make V=0')
1408 --enable-shared[=PKGS] build shared libraries [default=yes]
1409 --enable-static[=PKGS] build static libraries [default=yes]
1410 --enable-fast-install[=PKGS]
1411 optimize for fast installation [default=yes]
1412 --disable-libtool-lock avoid locking (might break parallel builds)
1413 --enable-malloc0returnsnull
1414 malloc(0) returns NULL (default: auto)
1415
1416 Optional Packages:
1417 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1418 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1419 --with-pic try to use only PIC/non-PIC objects [default=use
1420 both]
1421 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1422
1423 Some influential environment variables:
1424 CC C compiler command
1425 CFLAGS C compiler flags
1426 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1427 nonstandard directory <lib dir>
1428 LIBS libraries to pass to the linker, e.g. -l<library>
1429 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1430 you have headers in a nonstandard directory <include dir>
1431 CPP C preprocessor
1432 PKG_CONFIG path to pkg-config utility
1433 XXF86MISC_CFLAGS
1434 C compiler flags for XXF86MISC, overriding pkg-config
1435 XXF86MISC_LIBS
1436 linker flags for XXF86MISC, overriding pkg-config
1437
1438 Use these variables to override the choices made by `configure' or to help
1439 it to find libraries and programs with nonstandard names/locations.
1440
1441 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1442 _ACEOF
1443 ac_status=$?
1444 fi
1445
1446 if test "$ac_init_help" = "recursive"; then
1447 # If there are subdirs, report their specific --help.
1448 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1449 test -d "$ac_dir" ||
1450 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1451 continue
1452 ac_builddir=.
1453
1454 case "$ac_dir" in
1455 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 *)
1457 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1458 # A ".." for each directory in $ac_dir_suffix.
1459 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1460 case $ac_top_builddir_sub in
1461 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463 esac ;;
1464 esac
1465 ac_abs_top_builddir=$ac_pwd
1466 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1467 # for backward compatibility:
1468 ac_top_builddir=$ac_top_build_prefix
1469
1470 case $srcdir in
1471 .) # We are building in place.
1472 ac_srcdir=.
1473 ac_top_srcdir=$ac_top_builddir_sub
1474 ac_abs_top_srcdir=$ac_pwd ;;
1475 [\\/]* | ?:[\\/]* ) # Absolute name.
1476 ac_srcdir=$srcdir$ac_dir_suffix;
1477 ac_top_srcdir=$srcdir
1478 ac_abs_top_srcdir=$srcdir ;;
1479 *) # Relative name.
1480 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1481 ac_top_srcdir=$ac_top_build_prefix$srcdir
1482 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1483 esac
1484 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1485
1486 cd "$ac_dir" || { ac_status=$?; continue; }
1487 # Check for guested configure.
1488 if test -f "$ac_srcdir/configure.gnu"; then
1489 echo &&
1490 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1491 elif test -f "$ac_srcdir/configure"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure" --help=recursive
1494 else
1495 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1496 fi || ac_status=$?
1497 cd "$ac_pwd" || { ac_status=$?; break; }
1498 done
1499 fi
1500
1501 test -n "$ac_init_help" && exit $ac_status
1502 if $ac_init_version; then
1503 cat <<\_ACEOF
1504 libXxf86misc configure 1.0.3
1505 generated by GNU Autoconf 2.68
1506
1507 Copyright (C) 2010 Free Software Foundation, Inc.
1508 This configure script is free software; the Free Software Foundation
1509 gives unlimited permission to copy, distribute and modify it.
1510 _ACEOF
1511 exit
1512 fi
1513
1514 ## ------------------------ ##
1515 ## Autoconf initialization. ##
1516 ## ------------------------ ##
1517
1518 # ac_fn_c_try_compile LINENO
1519 # --------------------------
1520 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1521 ac_fn_c_try_compile ()
1522 {
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 rm -f conftest.$ac_objext
1525 if { { ac_try="$ac_compile"
1526 case "(($ac_try" in
1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528 *) ac_try_echo=$ac_try;;
1529 esac
1530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531 $as_echo "$ac_try_echo"; } >&5
1532 (eval "$ac_compile") 2>conftest.err
1533 ac_status=$?
1534 if test -s conftest.err; then
1535 grep -v '^ *+' conftest.err >conftest.er1
1536 cat conftest.er1 >&5
1537 mv -f conftest.er1 conftest.err
1538 fi
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; } && {
1541 test -z "$ac_c_werror_flag" ||
1542 test ! -s conftest.err
1543 } && test -s conftest.$ac_objext; then :
1544 ac_retval=0
1545 else
1546 $as_echo "$as_me: failed program was:" >&5
1547 sed 's/^/| /' conftest.$ac_ext >&5
1548
1549 ac_retval=1
1550 fi
1551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1552 as_fn_set_status $ac_retval
1553
1554 } # ac_fn_c_try_compile
1555
1556 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1557 # ---------------------------------------------
1558 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1559 # accordingly.
1560 ac_fn_c_check_decl ()
1561 {
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 as_decl_name=`echo $2|sed 's/ *(.*//'`
1564 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1566 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1567 if eval \${$3+:} false; then :
1568 $as_echo_n "(cached) " >&6
1569 else
1570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1571 /* end confdefs.h. */
1572 $4
1573 int
1574 main ()
1575 {
1576 #ifndef $as_decl_name
1577 #ifdef __cplusplus
1578 (void) $as_decl_use;
1579 #else
1580 (void) $as_decl_name;
1581 #endif
1582 #endif
1583
1584 ;
1585 return 0;
1586 }
1587 _ACEOF
1588 if ac_fn_c_try_compile "$LINENO"; then :
1589 eval "$3=yes"
1590 else
1591 eval "$3=no"
1592 fi
1593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1594 fi
1595 eval ac_res=\$$3
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1597 $as_echo "$ac_res" >&6; }
1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599
1600 } # ac_fn_c_check_decl
1601
1602 # ac_fn_c_try_cpp LINENO
1603 # ----------------------
1604 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_cpp ()
1606 {
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 if { { ac_try="$ac_cpp conftest.$ac_ext"
1609 case "(($ac_try" in
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1616 ac_status=$?
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1621 fi
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } > conftest.i && {
1624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1626 }; then :
1627 ac_retval=0
1628 else
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1631
1632 ac_retval=1
1633 fi
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635 as_fn_set_status $ac_retval
1636
1637 } # ac_fn_c_try_cpp
1638
1639 # ac_fn_c_try_run LINENO
1640 # ----------------------
1641 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1642 # that executables *can* be run.
1643 ac_fn_c_try_run ()
1644 {
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 if { { ac_try="$ac_link"
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_link") 2>&5
1654 ac_status=$?
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1657 { { case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_try") 2>&5
1664 ac_status=$?
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; }; }; then :
1667 ac_retval=0
1668 else
1669 $as_echo "$as_me: program exited with status $ac_status" >&5
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1672
1673 ac_retval=$ac_status
1674 fi
1675 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677 as_fn_set_status $ac_retval
1678
1679 } # ac_fn_c_try_run
1680
1681 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1682 # -------------------------------------------------------
1683 # Tests whether HEADER exists and can be compiled using the include files in
1684 # INCLUDES, setting the cache variable VAR accordingly.
1685 ac_fn_c_check_header_compile ()
1686 {
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1689 $as_echo_n "checking for $2... " >&6; }
1690 if eval \${$3+:} false; then :
1691 $as_echo_n "(cached) " >&6
1692 else
1693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1694 /* end confdefs.h. */
1695 $4
1696 #include <$2>
1697 _ACEOF
1698 if ac_fn_c_try_compile "$LINENO"; then :
1699 eval "$3=yes"
1700 else
1701 eval "$3=no"
1702 fi
1703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1704 fi
1705 eval ac_res=\$$3
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1707 $as_echo "$ac_res" >&6; }
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709
1710 } # ac_fn_c_check_header_compile
1711
1712 # ac_fn_c_try_link LINENO
1713 # -----------------------
1714 # Try to link conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_link ()
1716 {
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext conftest$ac_exeext
1719 if { { ac_try="$ac_link"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_link") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1732 fi
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest$ac_exeext && {
1738 test "$cross_compiling" = yes ||
1739 $as_test_x conftest$ac_exeext
1740 }; then :
1741 ac_retval=0
1742 else
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1745
1746 ac_retval=1
1747 fi
1748 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1749 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1750 # interfere with the next link command; also delete a directory that is
1751 # left behind by Apple's compiler. We do this before executing the actions.
1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 as_fn_set_status $ac_retval
1755
1756 } # ac_fn_c_try_link
1757
1758 # ac_fn_c_check_func LINENO FUNC VAR
1759 # ----------------------------------
1760 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1761 ac_fn_c_check_func ()
1762 {
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if eval \${$3+:} false; then :
1767 $as_echo_n "(cached) " >&6
1768 else
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1771 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1773 #define $2 innocuous_$2
1774
1775 /* System header to define __stub macros and hopefully few prototypes,
1776 which can conflict with char $2 (); below.
1777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1778 <limits.h> exists even on freestanding compilers. */
1779
1780 #ifdef __STDC__
1781 # include <limits.h>
1782 #else
1783 # include <assert.h>
1784 #endif
1785
1786 #undef $2
1787
1788 /* Override any GCC internal prototype to avoid an error.
1789 Use char because int might match the return type of a GCC
1790 builtin and then its argument prototype would still apply. */
1791 #ifdef __cplusplus
1792 extern "C"
1793 #endif
1794 char $2 ();
1795 /* The GNU C library defines this for functions which it implements
1796 to always fail with ENOSYS. Some functions are actually named
1797 something starting with __ and the normal name is an alias. */
1798 #if defined __stub_$2 || defined __stub___$2
1799 choke me
1800 #endif
1801
1802 int
1803 main ()
1804 {
1805 return $2 ();
1806 ;
1807 return 0;
1808 }
1809 _ACEOF
1810 if ac_fn_c_try_link "$LINENO"; then :
1811 eval "$3=yes"
1812 else
1813 eval "$3=no"
1814 fi
1815 rm -f core conftest.err conftest.$ac_objext \
1816 conftest$ac_exeext conftest.$ac_ext
1817 fi
1818 eval ac_res=\$$3
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822
1823 } # ac_fn_c_check_func
1824 cat >config.log <<_ACEOF
1825 This file contains any messages produced by compilers while
1826 running configure, to aid debugging if configure makes a mistake.
1827
1828 It was created by libXxf86misc $as_me 1.0.3, which was
1829 generated by GNU Autoconf 2.68. Invocation command line was
1830
1831 $ $0 $@
1832
1833 _ACEOF
1834 exec 5>>config.log
1835 {
1836 cat <<_ASUNAME
1837 ## --------- ##
1838 ## Platform. ##
1839 ## --------- ##
1840
1841 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1842 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1843 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1844 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1845 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1846
1847 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1848 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1849
1850 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1851 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1852 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1853 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1854 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1855 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1856 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1857
1858 _ASUNAME
1859
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1862 do
1863 IFS=$as_save_IFS
1864 test -z "$as_dir" && as_dir=.
1865 $as_echo "PATH: $as_dir"
1866 done
1867 IFS=$as_save_IFS
1868
1869 } >&5
1870
1871 cat >&5 <<_ACEOF
1872
1873
1874 ## ----------- ##
1875 ## Core tests. ##
1876 ## ----------- ##
1877
1878 _ACEOF
1879
1880
1881 # Keep a trace of the command line.
1882 # Strip out --no-create and --no-recursion so they do not pile up.
1883 # Strip out --silent because we don't want to record it for future runs.
1884 # Also quote any args containing shell meta-characters.
1885 # Make two passes to allow for proper duplicate-argument suppression.
1886 ac_configure_args=
1887 ac_configure_args0=
1888 ac_configure_args1=
1889 ac_must_keep_next=false
1890 for ac_pass in 1 2
1891 do
1892 for ac_arg
1893 do
1894 case $ac_arg in
1895 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1896 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1897 | -silent | --silent | --silen | --sile | --sil)
1898 continue ;;
1899 *\'*)
1900 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1901 esac
1902 case $ac_pass in
1903 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1904 2)
1905 as_fn_append ac_configure_args1 " '$ac_arg'"
1906 if test $ac_must_keep_next = true; then
1907 ac_must_keep_next=false # Got value, back to normal.
1908 else
1909 case $ac_arg in
1910 *=* | --config-cache | -C | -disable-* | --disable-* \
1911 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1912 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1913 | -with-* | --with-* | -without-* | --without-* | --x)
1914 case "$ac_configure_args0 " in
1915 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1916 esac
1917 ;;
1918 -* ) ac_must_keep_next=true ;;
1919 esac
1920 fi
1921 as_fn_append ac_configure_args " '$ac_arg'"
1922 ;;
1923 esac
1924 done
1925 done
1926 { ac_configure_args0=; unset ac_configure_args0;}
1927 { ac_configure_args1=; unset ac_configure_args1;}
1928
1929 # When interrupted or exit'd, cleanup temporary files, and complete
1930 # config.log. We remove comments because anyway the quotes in there
1931 # would cause problems or look ugly.
1932 # WARNING: Use '\'' to represent an apostrophe within the trap.
1933 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1934 trap 'exit_status=$?
1935 # Save into config.log some information that might help in debugging.
1936 {
1937 echo
1938
1939 $as_echo "## ---------------- ##
1940 ## Cache variables. ##
1941 ## ---------------- ##"
1942 echo
1943 # The following way of writing the cache mishandles newlines in values,
1944 (
1945 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1946 eval ac_val=\$$ac_var
1947 case $ac_val in #(
1948 *${as_nl}*)
1949 case $ac_var in #(
1950 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1951 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1952 esac
1953 case $ac_var in #(
1954 _ | IFS | as_nl) ;; #(
1955 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1956 *) { eval $ac_var=; unset $ac_var;} ;;
1957 esac ;;
1958 esac
1959 done
1960 (set) 2>&1 |
1961 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1962 *${as_nl}ac_space=\ *)
1963 sed -n \
1964 "s/'\''/'\''\\\\'\'''\''/g;
1965 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1966 ;; #(
1967 *)
1968 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1969 ;;
1970 esac |
1971 sort
1972 )
1973 echo
1974
1975 $as_echo "## ----------------- ##
1976 ## Output variables. ##
1977 ## ----------------- ##"
1978 echo
1979 for ac_var in $ac_subst_vars
1980 do
1981 eval ac_val=\$$ac_var
1982 case $ac_val in
1983 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1984 esac
1985 $as_echo "$ac_var='\''$ac_val'\''"
1986 done | sort
1987 echo
1988
1989 if test -n "$ac_subst_files"; then
1990 $as_echo "## ------------------- ##
1991 ## File substitutions. ##
1992 ## ------------------- ##"
1993 echo
1994 for ac_var in $ac_subst_files
1995 do
1996 eval ac_val=\$$ac_var
1997 case $ac_val in
1998 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1999 esac
2000 $as_echo "$ac_var='\''$ac_val'\''"
2001 done | sort
2002 echo
2003 fi
2004
2005 if test -s confdefs.h; then
2006 $as_echo "## ----------- ##
2007 ## confdefs.h. ##
2008 ## ----------- ##"
2009 echo
2010 cat confdefs.h
2011 echo
2012 fi
2013 test "$ac_signal" != 0 &&
2014 $as_echo "$as_me: caught signal $ac_signal"
2015 $as_echo "$as_me: exit $exit_status"
2016 } >&5
2017 rm -f core *.core core.conftest.* &&
2018 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2019 exit $exit_status
2020 ' 0
2021 for ac_signal in 1 2 13 15; do
2022 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2023 done
2024 ac_signal=0
2025
2026 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2027 rm -f -r conftest* confdefs.h
2028
2029 $as_echo "/* confdefs.h */" > confdefs.h
2030
2031 # Predefined preprocessor variables.
2032
2033 cat >>confdefs.h <<_ACEOF
2034 #define PACKAGE_NAME "$PACKAGE_NAME"
2035 _ACEOF
2036
2037 cat >>confdefs.h <<_ACEOF
2038 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2039 _ACEOF
2040
2041 cat >>confdefs.h <<_ACEOF
2042 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2043 _ACEOF
2044
2045 cat >>confdefs.h <<_ACEOF
2046 #define PACKAGE_STRING "$PACKAGE_STRING"
2047 _ACEOF
2048
2049 cat >>confdefs.h <<_ACEOF
2050 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2051 _ACEOF
2052
2053 cat >>confdefs.h <<_ACEOF
2054 #define PACKAGE_URL "$PACKAGE_URL"
2055 _ACEOF
2056
2057
2058 # Let the site file select an alternate cache file if it wants to.
2059 # Prefer an explicitly selected file to automatically selected ones.
2060 ac_site_file1=NONE
2061 ac_site_file2=NONE
2062 if test -n "$CONFIG_SITE"; then
2063 # We do not want a PATH search for config.site.
2064 case $CONFIG_SITE in #((
2065 -*) ac_site_file1=./$CONFIG_SITE;;
2066 */*) ac_site_file1=$CONFIG_SITE;;
2067 *) ac_site_file1=./$CONFIG_SITE;;
2068 esac
2069 elif test "x$prefix" != xNONE; then
2070 ac_site_file1=$prefix/share/config.site
2071 ac_site_file2=$prefix/etc/config.site
2072 else
2073 ac_site_file1=$ac_default_prefix/share/config.site
2074 ac_site_file2=$ac_default_prefix/etc/config.site
2075 fi
2076 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2077 do
2078 test "x$ac_site_file" = xNONE && continue
2079 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2081 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2082 sed 's/^/| /' "$ac_site_file" >&5
2083 . "$ac_site_file" \
2084 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2086 as_fn_error $? "failed to load site script $ac_site_file
2087 See \`config.log' for more details" "$LINENO" 5; }
2088 fi
2089 done
2090
2091 if test -r "$cache_file"; then
2092 # Some versions of bash will fail to source /dev/null (special files
2093 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2094 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2096 $as_echo "$as_me: loading cache $cache_file" >&6;}
2097 case $cache_file in
2098 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2099 *) . "./$cache_file";;
2100 esac
2101 fi
2102 else
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2104 $as_echo "$as_me: creating cache $cache_file" >&6;}
2105 >$cache_file
2106 fi
2107
2108 # Check that the precious variables saved in the cache have kept the same
2109 # value.
2110 ac_cache_corrupted=false
2111 for ac_var in $ac_precious_vars; do
2112 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2113 eval ac_new_set=\$ac_env_${ac_var}_set
2114 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2115 eval ac_new_val=\$ac_env_${ac_var}_value
2116 case $ac_old_set,$ac_new_set in
2117 set,)
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2119 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2120 ac_cache_corrupted=: ;;
2121 ,set)
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2123 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2124 ac_cache_corrupted=: ;;
2125 ,);;
2126 *)
2127 if test "x$ac_old_val" != "x$ac_new_val"; then
2128 # differences in whitespace do not lead to failure.
2129 ac_old_val_w=`echo x $ac_old_val`
2130 ac_new_val_w=`echo x $ac_new_val`
2131 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2133 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2134 ac_cache_corrupted=:
2135 else
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2137 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2138 eval $ac_var=\$ac_old_val
2139 fi
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2141 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2143 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2144 fi;;
2145 esac
2146 # Pass precious variables to config.status.
2147 if test "$ac_new_set" = set; then
2148 case $ac_new_val in
2149 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2150 *) ac_arg=$ac_var=$ac_new_val ;;
2151 esac
2152 case " $ac_configure_args " in
2153 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2154 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2155 esac
2156 fi
2157 done
2158 if $ac_cache_corrupted; then
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2162 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2163 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2164 fi
2165 ## -------------------- ##
2166 ## Main body of script. ##
2167 ## -------------------- ##
2168
2169 ac_ext=c
2170 ac_cpp='$CPP $CPPFLAGS'
2171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2174
2175
2176
2177 ac_config_headers="$ac_config_headers src/config.h"
2178
2179
2180 # Initialize Automake
2181 am__api_version='1.11'
2182
2183 ac_aux_dir=
2184 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2185 if test -f "$ac_dir/install-sh"; then
2186 ac_aux_dir=$ac_dir
2187 ac_install_sh="$ac_aux_dir/install-sh -c"
2188 break
2189 elif test -f "$ac_dir/install.sh"; then
2190 ac_aux_dir=$ac_dir
2191 ac_install_sh="$ac_aux_dir/install.sh -c"
2192 break
2193 elif test -f "$ac_dir/shtool"; then
2194 ac_aux_dir=$ac_dir
2195 ac_install_sh="$ac_aux_dir/shtool install -c"
2196 break
2197 fi
2198 done
2199 if test -z "$ac_aux_dir"; then
2200 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2201 fi
2202
2203 # These three variables are undocumented and unsupported,
2204 # and are intended to be withdrawn in a future Autoconf release.
2205 # They can cause serious problems if a builder's source tree is in a directory
2206 # whose full name contains unusual characters.
2207 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2208 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2209 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2210
2211
2212 # Find a good install program. We prefer a C program (faster),
2213 # so one script is as good as another. But avoid the broken or
2214 # incompatible versions:
2215 # SysV /etc/install, /usr/sbin/install
2216 # SunOS /usr/etc/install
2217 # IRIX /sbin/install
2218 # AIX /bin/install
2219 # AmigaOS /C/install, which installs bootblocks on floppy discs
2220 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2221 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2222 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2223 # OS/2's system install, which has a completely different semantic
2224 # ./install, which can be erroneously created by make from ./install.sh.
2225 # Reject install programs that cannot install multiple files.
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2227 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2228 if test -z "$INSTALL"; then
2229 if ${ac_cv_path_install+:} false; then :
2230 $as_echo_n "(cached) " >&6
2231 else
2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233 for as_dir in $PATH
2234 do
2235 IFS=$as_save_IFS
2236 test -z "$as_dir" && as_dir=.
2237 # Account for people who put trailing slashes in PATH elements.
2238 case $as_dir/ in #((
2239 ./ | .// | /[cC]/* | \
2240 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2241 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2242 /usr/ucb/* ) ;;
2243 *)
2244 # OSF1 and SCO ODT 3.0 have their own names for install.
2245 # Don't use installbsd from OSF since it installs stuff as root
2246 # by default.
2247 for ac_prog in ginstall scoinst install; do
2248 for ac_exec_ext in '' $ac_executable_extensions; do
2249 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2250 if test $ac_prog = install &&
2251 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2252 # AIX install. It has an incompatible calling convention.
2253 :
2254 elif test $ac_prog = install &&
2255 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2256 # program-specific install script used by HP pwplus--don't use.
2257 :
2258 else
2259 rm -rf conftest.one conftest.two conftest.dir
2260 echo one > conftest.one
2261 echo two > conftest.two
2262 mkdir conftest.dir
2263 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2264 test -s conftest.one && test -s conftest.two &&
2265 test -s conftest.dir/conftest.one &&
2266 test -s conftest.dir/conftest.two
2267 then
2268 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2269 break 3
2270 fi
2271 fi
2272 fi
2273 done
2274 done
2275 ;;
2276 esac
2277
2278 done
2279 IFS=$as_save_IFS
2280
2281 rm -rf conftest.one conftest.two conftest.dir
2282
2283 fi
2284 if test "${ac_cv_path_install+set}" = set; then
2285 INSTALL=$ac_cv_path_install
2286 else
2287 # As a last resort, use the slow shell script. Don't cache a
2288 # value for INSTALL within a source directory, because that will
2289 # break other packages using the cache if that directory is
2290 # removed, or if the value is a relative name.
2291 INSTALL=$ac_install_sh
2292 fi
2293 fi
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2295 $as_echo "$INSTALL" >&6; }
2296
2297 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2298 # It thinks the first close brace ends the variable substitution.
2299 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2300
2301 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2302
2303 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2304
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2306 $as_echo_n "checking whether build environment is sane... " >&6; }
2307 # Just in case
2308 sleep 1
2309 echo timestamp > conftest.file
2310 # Reject unsafe characters in $srcdir or the absolute working directory
2311 # name. Accept space and tab only in the latter.
2312 am_lf='
2313 '
2314 case `pwd` in
2315 *[\\\"\#\$\&\'\`$am_lf]*)
2316 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2317 esac
2318 case $srcdir in
2319 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2320 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2321 esac
2322
2323 # Do `set' in a subshell so we don't clobber the current shell's
2324 # arguments. Must try -L first in case configure is actually a
2325 # symlink; some systems play weird games with the mod time of symlinks
2326 # (eg FreeBSD returns the mod time of the symlink's containing
2327 # directory).
2328 if (
2329 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2330 if test "$*" = "X"; then
2331 # -L didn't work.
2332 set X `ls -t "$srcdir/configure" conftest.file`
2333 fi
2334 rm -f conftest.file
2335 if test "$*" != "X $srcdir/configure conftest.file" \
2336 && test "$*" != "X conftest.file $srcdir/configure"; then
2337
2338 # If neither matched, then we have a broken ls. This can happen
2339 # if, for instance, CONFIG_SHELL is bash and it inherits a
2340 # broken ls alias from the environment. This has actually
2341 # happened. Such a system could not be considered "sane".
2342 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2343 alias in your environment" "$LINENO" 5
2344 fi
2345
2346 test "$2" = conftest.file
2347 )
2348 then
2349 # Ok.
2350 :
2351 else
2352 as_fn_error $? "newly created file is older than distributed files!
2353 Check your system clock" "$LINENO" 5
2354 fi
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2356 $as_echo "yes" >&6; }
2357 test "$program_prefix" != NONE &&
2358 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2359 # Use a double $ so make ignores it.
2360 test "$program_suffix" != NONE &&
2361 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2362 # Double any \ or $.
2363 # By default was `s,x,x', remove it if useless.
2364 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2365 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2366
2367 # expand $ac_aux_dir to an absolute path
2368 am_aux_dir=`cd $ac_aux_dir && pwd`
2369
2370 if test x"${MISSING+set}" != xset; then
2371 case $am_aux_dir in
2372 *\ * | *\ *)
2373 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2374 *)
2375 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2376 esac
2377 fi
2378 # Use eval to expand $SHELL
2379 if eval "$MISSING --run true"; then
2380 am_missing_run="$MISSING --run "
2381 else
2382 am_missing_run=
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2384 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2385 fi
2386
2387 if test x"${install_sh}" != xset; then
2388 case $am_aux_dir in
2389 *\ * | *\ *)
2390 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2391 *)
2392 install_sh="\${SHELL} $am_aux_dir/install-sh"
2393 esac
2394 fi
2395
2396 # Installed binaries are usually stripped using `strip' when the user
2397 # run `make install-strip'. However `strip' might not be the right
2398 # tool to use in cross-compilation environments, therefore Automake
2399 # will honor the `STRIP' environment variable to overrule this program.
2400 if test "$cross_compiling" != no; then
2401 if test -n "$ac_tool_prefix"; then
2402 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2403 set dummy ${ac_tool_prefix}strip; ac_word=$2
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2405 $as_echo_n "checking for $ac_word... " >&6; }
2406 if ${ac_cv_prog_STRIP+:} false; then :
2407 $as_echo_n "(cached) " >&6
2408 else
2409 if test -n "$STRIP"; then
2410 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2411 else
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 for as_dir in $PATH
2414 do
2415 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
2417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2419 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2421 break 2
2422 fi
2423 done
2424 done
2425 IFS=$as_save_IFS
2426
2427 fi
2428 fi
2429 STRIP=$ac_cv_prog_STRIP
2430 if test -n "$STRIP"; then
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2432 $as_echo "$STRIP" >&6; }
2433 else
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2435 $as_echo "no" >&6; }
2436 fi
2437
2438
2439 fi
2440 if test -z "$ac_cv_prog_STRIP"; then
2441 ac_ct_STRIP=$STRIP
2442 # Extract the first word of "strip", so it can be a program name with args.
2443 set dummy strip; ac_word=$2
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2445 $as_echo_n "checking for $ac_word... " >&6; }
2446 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2447 $as_echo_n "(cached) " >&6
2448 else
2449 if test -n "$ac_ct_STRIP"; then
2450 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2454 do
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2459 ac_cv_prog_ac_ct_STRIP="strip"
2460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 break 2
2462 fi
2463 done
2464 done
2465 IFS=$as_save_IFS
2466
2467 fi
2468 fi
2469 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2470 if test -n "$ac_ct_STRIP"; then
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2472 $as_echo "$ac_ct_STRIP" >&6; }
2473 else
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2475 $as_echo "no" >&6; }
2476 fi
2477
2478 if test "x$ac_ct_STRIP" = x; then
2479 STRIP=":"
2480 else
2481 case $cross_compiling:$ac_tool_warned in
2482 yes:)
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2485 ac_tool_warned=yes ;;
2486 esac
2487 STRIP=$ac_ct_STRIP
2488 fi
2489 else
2490 STRIP="$ac_cv_prog_STRIP"
2491 fi
2492
2493 fi
2494 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2495
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2497 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2498 if test -z "$MKDIR_P"; then
2499 if ${ac_cv_path_mkdir+:} false; then :
2500 $as_echo_n "(cached) " >&6
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2504 do
2505 IFS=$as_save_IFS
2506 test -z "$as_dir" && as_dir=.
2507 for ac_prog in mkdir gmkdir; do
2508 for ac_exec_ext in '' $ac_executable_extensions; do
2509 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2510 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2511 'mkdir (GNU coreutils) '* | \
2512 'mkdir (coreutils) '* | \
2513 'mkdir (fileutils) '4.1*)
2514 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2515 break 3;;
2516 esac
2517 done
2518 done
2519 done
2520 IFS=$as_save_IFS
2521
2522 fi
2523
2524 test -d ./--version && rmdir ./--version
2525 if test "${ac_cv_path_mkdir+set}" = set; then
2526 MKDIR_P="$ac_cv_path_mkdir -p"
2527 else
2528 # As a last resort, use the slow shell script. Don't cache a
2529 # value for MKDIR_P within a source directory, because that will
2530 # break other packages using the cache if that directory is
2531 # removed, or if the value is a relative name.
2532 MKDIR_P="$ac_install_sh -d"
2533 fi
2534 fi
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2536 $as_echo "$MKDIR_P" >&6; }
2537
2538 mkdir_p="$MKDIR_P"
2539 case $mkdir_p in
2540 [\\/$]* | ?:[\\/]*) ;;
2541 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2542 esac
2543
2544 for ac_prog in gawk mawk nawk awk
2545 do
2546 # Extract the first word of "$ac_prog", so it can be a program name with args.
2547 set dummy $ac_prog; ac_word=$2
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2549 $as_echo_n "checking for $ac_word... " >&6; }
2550 if ${ac_cv_prog_AWK+:} false; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 if test -n "$AWK"; then
2554 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2555 else
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 for as_dir in $PATH
2558 do
2559 IFS=$as_save_IFS
2560 test -z "$as_dir" && as_dir=.
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2563 ac_cv_prog_AWK="$ac_prog"
2564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 break 2
2566 fi
2567 done
2568 done
2569 IFS=$as_save_IFS
2570
2571 fi
2572 fi
2573 AWK=$ac_cv_prog_AWK
2574 if test -n "$AWK"; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2576 $as_echo "$AWK" >&6; }
2577 else
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2579 $as_echo "no" >&6; }
2580 fi
2581
2582
2583 test -n "$AWK" && break
2584 done
2585
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2587 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2588 set x ${MAKE-make}
2589 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2590 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2591 $as_echo_n "(cached) " >&6
2592 else
2593 cat >conftest.make <<\_ACEOF
2594 SHELL = /bin/sh
2595 all:
2596 @echo '@@@%%%=$(MAKE)=@@@%%%'
2597 _ACEOF
2598 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2599 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2600 *@@@%%%=?*=@@@%%%*)
2601 eval ac_cv_prog_make_${ac_make}_set=yes;;
2602 *)
2603 eval ac_cv_prog_make_${ac_make}_set=no;;
2604 esac
2605 rm -f conftest.make
2606 fi
2607 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2609 $as_echo "yes" >&6; }
2610 SET_MAKE=
2611 else
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2613 $as_echo "no" >&6; }
2614 SET_MAKE="MAKE=${MAKE-make}"
2615 fi
2616
2617 rm -rf .tst 2>/dev/null
2618 mkdir .tst 2>/dev/null
2619 if test -d .tst; then
2620 am__leading_dot=.
2621 else
2622 am__leading_dot=_
2623 fi
2624 rmdir .tst 2>/dev/null
2625
2626 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2627 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2628 # is not polluted with repeated "-I."
2629 am__isrc=' -I$(srcdir)'
2630 # test to see if srcdir already configured
2631 if test -f $srcdir/config.status; then
2632 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2633 fi
2634 fi
2635
2636 # test whether we have cygpath
2637 if test -z "$CYGPATH_W"; then
2638 if (cygpath --version) >/dev/null 2>/dev/null; then
2639 CYGPATH_W='cygpath -w'
2640 else
2641 CYGPATH_W=echo
2642 fi
2643 fi
2644
2645
2646 # Define the identity of the package.
2647 PACKAGE='libXxf86misc'
2648 VERSION='1.0.3'
2649
2650
2651 cat >>confdefs.h <<_ACEOF
2652 #define PACKAGE "$PACKAGE"
2653 _ACEOF
2654
2655
2656 cat >>confdefs.h <<_ACEOF
2657 #define VERSION "$VERSION"
2658 _ACEOF
2659
2660 # Some tools Automake needs.
2661
2662 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2663
2664
2665 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2666
2667
2668 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2669
2670
2671 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2672
2673
2674 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2675
2676 # We need awk for the "check" target. The system "awk" is bad on
2677 # some platforms.
2678 # Always define AMTAR for backward compatibility.
2679
2680 AMTAR=${AMTAR-"${am_missing_run}tar"}
2681
2682 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2683
2684
2685
2686
2687
2688
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2690 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2691 # Check whether --enable-maintainer-mode was given.
2692 if test "${enable_maintainer_mode+set}" = set; then :
2693 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2694 else
2695 USE_MAINTAINER_MODE=no
2696 fi
2697
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2699 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2700 if test $USE_MAINTAINER_MODE = yes; then
2701 MAINTAINER_MODE_TRUE=
2702 MAINTAINER_MODE_FALSE='#'
2703 else
2704 MAINTAINER_MODE_TRUE='#'
2705 MAINTAINER_MODE_FALSE=
2706 fi
2707
2708 MAINT=$MAINTAINER_MODE_TRUE
2709
2710
2711
2712 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724 DEPDIR="${am__leading_dot}deps"
2725
2726 ac_config_commands="$ac_config_commands depfiles"
2727
2728
2729 am_make=${MAKE-make}
2730 cat > confinc << 'END'
2731 am__doit:
2732 @echo this is the am__doit target
2733 .PHONY: am__doit
2734 END
2735 # If we don't find an include directive, just comment out the code.
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2737 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2738 am__include="#"
2739 am__quote=
2740 _am_result=none
2741 # First try GNU make style include.
2742 echo "include confinc" > confmf
2743 # Ignore all kinds of additional output from `make'.
2744 case `$am_make -s -f confmf 2> /dev/null` in #(
2745 *the\ am__doit\ target*)
2746 am__include=include
2747 am__quote=
2748 _am_result=GNU
2749 ;;
2750 esac
2751 # Now try BSD make style include.
2752 if test "$am__include" = "#"; then
2753 echo '.include "confinc"' > confmf
2754 case `$am_make -s -f confmf 2> /dev/null` in #(
2755 *the\ am__doit\ target*)
2756 am__include=.include
2757 am__quote="\""
2758 _am_result=BSD
2759 ;;
2760 esac
2761 fi
2762
2763
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2765 $as_echo "$_am_result" >&6; }
2766 rm -f confinc confmf
2767
2768 # Check whether --enable-dependency-tracking was given.
2769 if test "${enable_dependency_tracking+set}" = set; then :
2770 enableval=$enable_dependency_tracking;
2771 fi
2772
2773 if test "x$enable_dependency_tracking" != xno; then
2774 am_depcomp="$ac_aux_dir/depcomp"
2775 AMDEPBACKSLASH='\'
2776 fi
2777 if test "x$enable_dependency_tracking" != xno; then
2778 AMDEP_TRUE=
2779 AMDEP_FALSE='#'
2780 else
2781 AMDEP_TRUE='#'
2782 AMDEP_FALSE=
2783 fi
2784
2785
2786 ac_ext=c
2787 ac_cpp='$CPP $CPPFLAGS'
2788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2791 if test -n "$ac_tool_prefix"; then
2792 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2793 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795 $as_echo_n "checking for $ac_word... " >&6; }
2796 if ${ac_cv_prog_CC+:} false; then :
2797 $as_echo_n "(cached) " >&6
2798 else
2799 if test -n "$CC"; then
2800 ac_cv_prog_CC="$CC" # Let the user override the test.
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2804 do
2805 IFS=$as_save_IFS
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2809 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 break 2
2812 fi
2813 done
2814 done
2815 IFS=$as_save_IFS
2816
2817 fi
2818 fi
2819 CC=$ac_cv_prog_CC
2820 if test -n "$CC"; then
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2822 $as_echo "$CC" >&6; }
2823 else
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2826 fi
2827
2828
2829 fi
2830 if test -z "$ac_cv_prog_CC"; then
2831 ac_ct_CC=$CC
2832 # Extract the first word of "gcc", so it can be a program name with args.
2833 set dummy gcc; ac_word=$2
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835 $as_echo_n "checking for $ac_word... " >&6; }
2836 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2837 $as_echo_n "(cached) " >&6
2838 else
2839 if test -n "$ac_ct_CC"; then
2840 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2841 else
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH
2844 do
2845 IFS=$as_save_IFS
2846 test -z "$as_dir" && as_dir=.
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2849 ac_cv_prog_ac_ct_CC="gcc"
2850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 break 2
2852 fi
2853 done
2854 done
2855 IFS=$as_save_IFS
2856
2857 fi
2858 fi
2859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2860 if test -n "$ac_ct_CC"; then
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2862 $as_echo "$ac_ct_CC" >&6; }
2863 else
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 $as_echo "no" >&6; }
2866 fi
2867
2868 if test "x$ac_ct_CC" = x; then
2869 CC=""
2870 else
2871 case $cross_compiling:$ac_tool_warned in
2872 yes:)
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2875 ac_tool_warned=yes ;;
2876 esac
2877 CC=$ac_ct_CC
2878 fi
2879 else
2880 CC="$ac_cv_prog_CC"
2881 fi
2882
2883 if test -z "$CC"; then
2884 if test -n "$ac_tool_prefix"; then
2885 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2886 set dummy ${ac_tool_prefix}cc; ac_word=$2
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if ${ac_cv_prog_CC+:} false; then :
2890 $as_echo_n "(cached) " >&6
2891 else
2892 if test -n "$CC"; then
2893 ac_cv_prog_CC="$CC" # Let the user override the test.
2894 else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2897 do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902 ac_cv_prog_CC="${ac_tool_prefix}cc"
2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2905 fi
2906 done
2907 done
2908 IFS=$as_save_IFS
2909
2910 fi
2911 fi
2912 CC=$ac_cv_prog_CC
2913 if test -n "$CC"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2915 $as_echo "$CC" >&6; }
2916 else
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 $as_echo "no" >&6; }
2919 fi
2920
2921
2922 fi
2923 fi
2924 if test -z "$CC"; then
2925 # Extract the first word of "cc", so it can be a program name with args.
2926 set dummy cc; ac_word=$2
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928 $as_echo_n "checking for $ac_word... " >&6; }
2929 if ${ac_cv_prog_CC+:} false; then :
2930 $as_echo_n "(cached) " >&6
2931 else
2932 if test -n "$CC"; then
2933 ac_cv_prog_CC="$CC" # Let the user override the test.
2934 else
2935 ac_prog_rejected=no
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH
2938 do
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2943 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2944 ac_prog_rejected=yes
2945 continue
2946 fi
2947 ac_cv_prog_CC="cc"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2950 fi
2951 done
2952 done
2953 IFS=$as_save_IFS
2954
2955 if test $ac_prog_rejected = yes; then
2956 # We found a bogon in the path, so make sure we never use it.
2957 set dummy $ac_cv_prog_CC
2958 shift
2959 if test $# != 0; then
2960 # We chose a different compiler from the bogus one.
2961 # However, it has the same basename, so the bogon will be chosen
2962 # first if we set CC to just the basename; use the full file name.
2963 shift
2964 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2965 fi
2966 fi
2967 fi
2968 fi
2969 CC=$ac_cv_prog_CC
2970 if test -n "$CC"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2972 $as_echo "$CC" >&6; }
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2976 fi
2977
2978
2979 fi
2980 if test -z "$CC"; then
2981 if test -n "$ac_tool_prefix"; then
2982 for ac_prog in cl.exe
2983 do
2984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2985 set dummy $ac_tool_prefix$ac_prog; 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$ac_prog"
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 test -n "$CC" && break
3022 done
3023 fi
3024 if test -z "$CC"; then
3025 ac_ct_CC=$CC
3026 for ac_prog in cl.exe
3027 do
3028 # Extract the first word of "$ac_prog", so it can be a program name with args.
3029 set dummy $ac_prog; ac_word=$2
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3033 $as_echo_n "(cached) " >&6
3034 else
3035 if test -n "$ac_ct_CC"; then
3036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045 ac_cv_prog_ac_ct_CC="$ac_prog"
3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 break 2
3048 fi
3049 done
3050 done
3051 IFS=$as_save_IFS
3052
3053 fi
3054 fi
3055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3056 if test -n "$ac_ct_CC"; then
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3058 $as_echo "$ac_ct_CC" >&6; }
3059 else
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 $as_echo "no" >&6; }
3062 fi
3063
3064
3065 test -n "$ac_ct_CC" && break
3066 done
3067
3068 if test "x$ac_ct_CC" = x; then
3069 CC=""
3070 else
3071 case $cross_compiling:$ac_tool_warned in
3072 yes:)
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3075 ac_tool_warned=yes ;;
3076 esac
3077 CC=$ac_ct_CC
3078 fi
3079 fi
3080
3081 fi
3082
3083
3084 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086 as_fn_error $? "no acceptable C compiler found in \$PATH
3087 See \`config.log' for more details" "$LINENO" 5; }
3088
3089 # Provide some information about the compiler.
3090 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3091 set X $ac_compile
3092 ac_compiler=$2
3093 for ac_option in --version -v -V -qversion; do
3094 { { ac_try="$ac_compiler $ac_option >&5"
3095 case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098 esac
3099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3100 $as_echo "$ac_try_echo"; } >&5
3101 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3102 ac_status=$?
3103 if test -s conftest.err; then
3104 sed '10a\
3105 ... rest of stderr output deleted ...
3106 10q' conftest.err >conftest.er1
3107 cat conftest.er1 >&5
3108 fi
3109 rm -f conftest.er1 conftest.err
3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111 test $ac_status = 0; }
3112 done
3113
3114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3115 /* end confdefs.h. */
3116
3117 int
3118 main ()
3119 {
3120
3121 ;
3122 return 0;
3123 }
3124 _ACEOF
3125 ac_clean_files_save=$ac_clean_files
3126 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3127 # Try to create an executable without -o first, disregard a.out.
3128 # It will help us diagnose broken compilers, and finding out an intuition
3129 # of exeext.
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3131 $as_echo_n "checking whether the C compiler works... " >&6; }
3132 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3133
3134 # The possible output files:
3135 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3136
3137 ac_rmfiles=
3138 for ac_file in $ac_files
3139 do
3140 case $ac_file in
3141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3142 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3143 esac
3144 done
3145 rm -f $ac_rmfiles
3146
3147 if { { ac_try="$ac_link_default"
3148 case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151 esac
3152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3153 $as_echo "$ac_try_echo"; } >&5
3154 (eval "$ac_link_default") 2>&5
3155 ac_status=$?
3156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3157 test $ac_status = 0; }; then :
3158 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3159 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3160 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3161 # so that the user can short-circuit this test for compilers unknown to
3162 # Autoconf.
3163 for ac_file in $ac_files ''
3164 do
3165 test -f "$ac_file" || continue
3166 case $ac_file in
3167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3168 ;;
3169 [ab].out )
3170 # We found the default executable, but exeext='' is most
3171 # certainly right.
3172 break;;
3173 *.* )
3174 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3175 then :; else
3176 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3177 fi
3178 # We set ac_cv_exeext here because the later test for it is not
3179 # safe: cross compilers may not add the suffix if given an `-o'
3180 # argument, so we may need to know it at that point already.
3181 # Even if this section looks crufty: it has the advantage of
3182 # actually working.
3183 break;;
3184 * )
3185 break;;
3186 esac
3187 done
3188 test "$ac_cv_exeext" = no && ac_cv_exeext=
3189
3190 else
3191 ac_file=''
3192 fi
3193 if test -z "$ac_file"; then :
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195 $as_echo "no" >&6; }
3196 $as_echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3198
3199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3201 as_fn_error 77 "C compiler cannot create executables
3202 See \`config.log' for more details" "$LINENO" 5; }
3203 else
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3205 $as_echo "yes" >&6; }
3206 fi
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3208 $as_echo_n "checking for C compiler default output file name... " >&6; }
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3210 $as_echo "$ac_file" >&6; }
3211 ac_exeext=$ac_cv_exeext
3212
3213 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3214 ac_clean_files=$ac_clean_files_save
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3216 $as_echo_n "checking for suffix of executables... " >&6; }
3217 if { { ac_try="$ac_link"
3218 case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221 esac
3222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3223 $as_echo "$ac_try_echo"; } >&5
3224 (eval "$ac_link") 2>&5
3225 ac_status=$?
3226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227 test $ac_status = 0; }; then :
3228 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3229 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3230 # work properly (i.e., refer to `conftest.exe'), while it won't with
3231 # `rm'.
3232 for ac_file in conftest.exe conftest conftest.*; do
3233 test -f "$ac_file" || continue
3234 case $ac_file in
3235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3236 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3237 break;;
3238 * ) break;;
3239 esac
3240 done
3241 else
3242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3244 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3245 See \`config.log' for more details" "$LINENO" 5; }
3246 fi
3247 rm -f conftest conftest$ac_cv_exeext
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3249 $as_echo "$ac_cv_exeext" >&6; }
3250
3251 rm -f conftest.$ac_ext
3252 EXEEXT=$ac_cv_exeext
3253 ac_exeext=$EXEEXT
3254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255 /* end confdefs.h. */
3256 #include <stdio.h>
3257 int
3258 main ()
3259 {
3260 FILE *f = fopen ("conftest.out", "w");
3261 return ferror (f) || fclose (f) != 0;
3262
3263 ;
3264 return 0;
3265 }
3266 _ACEOF
3267 ac_clean_files="$ac_clean_files conftest.out"
3268 # Check that the compiler produces executables we can run. If not, either
3269 # the compiler is broken, or we cross compile.
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3271 $as_echo_n "checking whether we are cross compiling... " >&6; }
3272 if test "$cross_compiling" != yes; then
3273 { { ac_try="$ac_link"
3274 case "(($ac_try" in
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3277 esac
3278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279 $as_echo "$ac_try_echo"; } >&5
3280 (eval "$ac_link") 2>&5
3281 ac_status=$?
3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283 test $ac_status = 0; }
3284 if { ac_try='./conftest$ac_cv_exeext'
3285 { { case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288 esac
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291 (eval "$ac_try") 2>&5
3292 ac_status=$?
3293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294 test $ac_status = 0; }; }; then
3295 cross_compiling=no
3296 else
3297 if test "$cross_compiling" = maybe; then
3298 cross_compiling=yes
3299 else
3300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3302 as_fn_error $? "cannot run C compiled programs.
3303 If you meant to cross compile, use \`--host'.
3304 See \`config.log' for more details" "$LINENO" 5; }
3305 fi
3306 fi
3307 fi
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3309 $as_echo "$cross_compiling" >&6; }
3310
3311 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3312 ac_clean_files=$ac_clean_files_save
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3314 $as_echo_n "checking for suffix of object files... " >&6; }
3315 if ${ac_cv_objext+:} false; then :
3316 $as_echo_n "(cached) " >&6
3317 else
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h. */
3320
3321 int
3322 main ()
3323 {
3324
3325 ;
3326 return 0;
3327 }
3328 _ACEOF
3329 rm -f conftest.o conftest.obj
3330 if { { ac_try="$ac_compile"
3331 case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334 esac
3335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336 $as_echo "$ac_try_echo"; } >&5
3337 (eval "$ac_compile") 2>&5
3338 ac_status=$?
3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340 test $ac_status = 0; }; then :
3341 for ac_file in conftest.o conftest.obj conftest.*; do
3342 test -f "$ac_file" || continue;
3343 case $ac_file in
3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3345 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3346 break;;
3347 esac
3348 done
3349 else
3350 $as_echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3352
3353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 as_fn_error $? "cannot compute suffix of object files: cannot compile
3356 See \`config.log' for more details" "$LINENO" 5; }
3357 fi
3358 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3359 fi
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3361 $as_echo "$ac_cv_objext" >&6; }
3362 OBJEXT=$ac_cv_objext
3363 ac_objext=$OBJEXT
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3365 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3366 if ${ac_cv_c_compiler_gnu+:} false; then :
3367 $as_echo_n "(cached) " >&6
3368 else
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h. */
3371
3372 int
3373 main ()
3374 {
3375 #ifndef __GNUC__
3376 choke me
3377 #endif
3378
3379 ;
3380 return 0;
3381 }
3382 _ACEOF
3383 if ac_fn_c_try_compile "$LINENO"; then :
3384 ac_compiler_gnu=yes
3385 else
3386 ac_compiler_gnu=no
3387 fi
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3390
3391 fi
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3393 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3394 if test $ac_compiler_gnu = yes; then
3395 GCC=yes
3396 else
3397 GCC=
3398 fi
3399 ac_test_CFLAGS=${CFLAGS+set}
3400 ac_save_CFLAGS=$CFLAGS
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3402 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3403 if ${ac_cv_prog_cc_g+:} false; then :
3404 $as_echo_n "(cached) " >&6
3405 else
3406 ac_save_c_werror_flag=$ac_c_werror_flag
3407 ac_c_werror_flag=yes
3408 ac_cv_prog_cc_g=no
3409 CFLAGS="-g"
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3412
3413 int
3414 main ()
3415 {
3416
3417 ;
3418 return 0;
3419 }
3420 _ACEOF
3421 if ac_fn_c_try_compile "$LINENO"; then :
3422 ac_cv_prog_cc_g=yes
3423 else
3424 CFLAGS=""
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h. */
3427
3428 int
3429 main ()
3430 {
3431
3432 ;
3433 return 0;
3434 }
3435 _ACEOF
3436 if ac_fn_c_try_compile "$LINENO"; then :
3437
3438 else
3439 ac_c_werror_flag=$ac_save_c_werror_flag
3440 CFLAGS="-g"
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h. */
3443
3444 int
3445 main ()
3446 {
3447
3448 ;
3449 return 0;
3450 }
3451 _ACEOF
3452 if ac_fn_c_try_compile "$LINENO"; then :
3453 ac_cv_prog_cc_g=yes
3454 fi
3455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3456 fi
3457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3458 fi
3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460 ac_c_werror_flag=$ac_save_c_werror_flag
3461 fi
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3463 $as_echo "$ac_cv_prog_cc_g" >&6; }
3464 if test "$ac_test_CFLAGS" = set; then
3465 CFLAGS=$ac_save_CFLAGS
3466 elif test $ac_cv_prog_cc_g = yes; then
3467 if test "$GCC" = yes; then
3468 CFLAGS="-g -O2"
3469 else
3470 CFLAGS="-g"
3471 fi
3472 else
3473 if test "$GCC" = yes; then
3474 CFLAGS="-O2"
3475 else
3476 CFLAGS=
3477 fi
3478 fi
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3480 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3481 if ${ac_cv_prog_cc_c89+:} false; then :
3482 $as_echo_n "(cached) " >&6
3483 else
3484 ac_cv_prog_cc_c89=no
3485 ac_save_CC=$CC
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3488 #include <stdarg.h>
3489 #include <stdio.h>
3490 #include <sys/types.h>
3491 #include <sys/stat.h>
3492 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3493 struct buf { int x; };
3494 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3495 static char *e (p, i)
3496 char **p;
3497 int i;
3498 {
3499 return p[i];
3500 }
3501 static char *f (char * (*g) (char **, int), char **p, ...)
3502 {
3503 char *s;
3504 va_list v;
3505 va_start (v,p);
3506 s = g (p, va_arg (v,int));
3507 va_end (v);
3508 return s;
3509 }
3510
3511 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3512 function prototypes and stuff, but not '\xHH' hex character constants.
3513 These don't provoke an error unfortunately, instead are silently treated
3514 as 'x'. The following induces an error, until -std is added to get
3515 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3516 array size at least. It's necessary to write '\x00'==0 to get something
3517 that's true only with -std. */
3518 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3519
3520 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3521 inside strings and character constants. */
3522 #define FOO(x) 'x'
3523 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3524
3525 int test (int i, double x);
3526 struct s1 {int (*f) (int a);};
3527 struct s2 {int (*f) (double a);};
3528 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3529 int argc;
3530 char **argv;
3531 int
3532 main ()
3533 {
3534 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3535 ;
3536 return 0;
3537 }
3538 _ACEOF
3539 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3540 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3541 do
3542 CC="$ac_save_CC $ac_arg"
3543 if ac_fn_c_try_compile "$LINENO"; then :
3544 ac_cv_prog_cc_c89=$ac_arg
3545 fi
3546 rm -f core conftest.err conftest.$ac_objext
3547 test "x$ac_cv_prog_cc_c89" != "xno" && break
3548 done
3549 rm -f conftest.$ac_ext
3550 CC=$ac_save_CC
3551
3552 fi
3553 # AC_CACHE_VAL
3554 case "x$ac_cv_prog_cc_c89" in
3555 x)
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3557 $as_echo "none needed" >&6; } ;;
3558 xno)
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3560 $as_echo "unsupported" >&6; } ;;
3561 *)
3562 CC="$CC $ac_cv_prog_cc_c89"
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3564 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3565 esac
3566 if test "x$ac_cv_prog_cc_c89" != xno; then :
3567
3568 fi
3569
3570 ac_ext=c
3571 ac_cpp='$CPP $CPPFLAGS'
3572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575
3576 depcc="$CC" am_compiler_list=
3577
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3579 $as_echo_n "checking dependency style of $depcc... " >&6; }
3580 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3581 $as_echo_n "(cached) " >&6
3582 else
3583 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3584 # We make a subdir and do the tests there. Otherwise we can end up
3585 # making bogus files that we don't know about and never remove. For
3586 # instance it was reported that on HP-UX the gcc test will end up
3587 # making a dummy file named `D' -- because `-MD' means `put the output
3588 # in D'.
3589 mkdir conftest.dir
3590 # Copy depcomp to subdir because otherwise we won't find it if we're
3591 # using a relative directory.
3592 cp "$am_depcomp" conftest.dir
3593 cd conftest.dir
3594 # We will build objects and dependencies in a subdirectory because
3595 # it helps to detect inapplicable dependency modes. For instance
3596 # both Tru64's cc and ICC support -MD to output dependencies as a
3597 # side effect of compilation, but ICC will put the dependencies in
3598 # the current directory while Tru64 will put them in the object
3599 # directory.
3600 mkdir sub
3601
3602 am_cv_CC_dependencies_compiler_type=none
3603 if test "$am_compiler_list" = ""; then
3604 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3605 fi
3606 am__universal=false
3607 case " $depcc " in #(
3608 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3609 esac
3610
3611 for depmode in $am_compiler_list; do
3612 # Setup a source with many dependencies, because some compilers
3613 # like to wrap large dependency lists on column 80 (with \), and
3614 # we should not choose a depcomp mode which is confused by this.
3615 #
3616 # We need to recreate these files for each test, as the compiler may
3617 # overwrite some of them when testing with obscure command lines.
3618 # This happens at least with the AIX C compiler.
3619 : > sub/conftest.c
3620 for i in 1 2 3 4 5 6; do
3621 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3622 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3623 # Solaris 8's {/usr,}/bin/sh.
3624 touch sub/conftst$i.h
3625 done
3626 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3627
3628 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3629 # mode. It turns out that the SunPro C++ compiler does not properly
3630 # handle `-M -o', and we need to detect this. Also, some Intel
3631 # versions had trouble with output in subdirs
3632 am__obj=sub/conftest.${OBJEXT-o}
3633 am__minus_obj="-o $am__obj"
3634 case $depmode in
3635 gcc)
3636 # This depmode causes a compiler race in universal mode.
3637 test "$am__universal" = false || continue
3638 ;;
3639 nosideeffect)
3640 # after this tag, mechanisms are not by side-effect, so they'll
3641 # only be used when explicitly requested
3642 if test "x$enable_dependency_tracking" = xyes; then
3643 continue
3644 else
3645 break
3646 fi
3647 ;;
3648 msvisualcpp | msvcmsys)
3649 # This compiler won't grok `-c -o', but also, the minuso test has
3650 # not run yet. These depmodes are late enough in the game, and
3651 # so weak that their functioning should not be impacted.
3652 am__obj=conftest.${OBJEXT-o}
3653 am__minus_obj=
3654 ;;
3655 none) break ;;
3656 esac
3657 if depmode=$depmode \
3658 source=sub/conftest.c object=$am__obj \
3659 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3660 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3661 >/dev/null 2>conftest.err &&
3662 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3663 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3664 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3665 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3666 # icc doesn't choke on unknown options, it will just issue warnings
3667 # or remarks (even with -Werror). So we grep stderr for any message
3668 # that says an option was ignored or not supported.
3669 # When given -MP, icc 7.0 and 7.1 complain thusly:
3670 # icc: Command line warning: ignoring option '-M'; no argument required
3671 # The diagnosis changed in icc 8.0:
3672 # icc: Command line remark: option '-MP' not supported
3673 if (grep 'ignoring option' conftest.err ||
3674 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3675 am_cv_CC_dependencies_compiler_type=$depmode
3676 break
3677 fi
3678 fi
3679 done
3680
3681 cd ..
3682 rm -rf conftest.dir
3683 else
3684 am_cv_CC_dependencies_compiler_type=none
3685 fi
3686
3687 fi
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3689 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3690 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3691
3692 if
3693 test "x$enable_dependency_tracking" != xno \
3694 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3695 am__fastdepCC_TRUE=
3696 am__fastdepCC_FALSE='#'
3697 else
3698 am__fastdepCC_TRUE='#'
3699 am__fastdepCC_FALSE=
3700 fi
3701
3702
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3704 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3705 if ${ac_cv_prog_cc_c99+:} false; then :
3706 $as_echo_n "(cached) " >&6
3707 else
3708 ac_cv_prog_cc_c99=no
3709 ac_save_CC=$CC
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3712 #include <stdarg.h>
3713 #include <stdbool.h>
3714 #include <stdlib.h>
3715 #include <wchar.h>
3716 #include <stdio.h>
3717
3718 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3719 #define debug(...) fprintf (stderr, __VA_ARGS__)
3720 #define showlist(...) puts (#__VA_ARGS__)
3721 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3722 static void
3723 test_varargs_macros (void)
3724 {
3725 int x = 1234;
3726 int y = 5678;
3727 debug ("Flag");
3728 debug ("X = %d\n", x);
3729 showlist (The first, second, and third items.);
3730 report (x>y, "x is %d but y is %d", x, y);
3731 }
3732
3733 // Check long long types.
3734 #define BIG64 18446744073709551615ull
3735 #define BIG32 4294967295ul
3736 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3737 #if !BIG_OK
3738 your preprocessor is broken;
3739 #endif
3740 #if BIG_OK
3741 #else
3742 your preprocessor is broken;
3743 #endif
3744 static long long int bignum = -9223372036854775807LL;
3745 static unsigned long long int ubignum = BIG64;
3746
3747 struct incomplete_array
3748 {
3749 int datasize;
3750 double data[];
3751 };
3752
3753 struct named_init {
3754 int number;
3755 const wchar_t *name;
3756 double average;
3757 };
3758
3759 typedef const char *ccp;
3760
3761 static inline int
3762 test_restrict (ccp restrict text)
3763 {
3764 // See if C++-style comments work.
3765 // Iterate through items via the restricted pointer.
3766 // Also check for declarations in for loops.
3767 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3768 continue;
3769 return 0;
3770 }
3771
3772 // Check varargs and va_copy.
3773 static void
3774 test_varargs (const char *format, ...)
3775 {
3776 va_list args;
3777 va_start (args, format);
3778 va_list args_copy;
3779 va_copy (args_copy, args);
3780
3781 const char *str;
3782 int number;
3783 float fnumber;
3784
3785 while (*format)
3786 {
3787 switch (*format++)
3788 {
3789 case 's': // string
3790 str = va_arg (args_copy, const char *);
3791 break;
3792 case 'd': // int
3793 number = va_arg (args_copy, int);
3794 break;
3795 case 'f': // float
3796 fnumber = va_arg (args_copy, double);
3797 break;
3798 default:
3799 break;
3800 }
3801 }
3802 va_end (args_copy);
3803 va_end (args);
3804 }
3805
3806 int
3807 main ()
3808 {
3809
3810 // Check bool.
3811 _Bool success = false;
3812
3813 // Check restrict.
3814 if (test_restrict ("String literal") == 0)
3815 success = true;
3816 char *restrict newvar = "Another string";
3817
3818 // Check varargs.
3819 test_varargs ("s, d' f .", "string", 65, 34.234);
3820 test_varargs_macros ();
3821
3822 // Check flexible array members.
3823 struct incomplete_array *ia =
3824 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3825 ia->datasize = 10;
3826 for (int i = 0; i < ia->datasize; ++i)
3827 ia->data[i] = i * 1.234;
3828
3829 // Check named initializers.
3830 struct named_init ni = {
3831 .number = 34,
3832 .name = L"Test wide string",
3833 .average = 543.34343,
3834 };
3835
3836 ni.number = 58;
3837
3838 int dynamic_array[ni.number];
3839 dynamic_array[ni.number - 1] = 543;
3840
3841 // work around unused variable warnings
3842 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3843 || dynamic_array[ni.number - 1] != 543);
3844
3845 ;
3846 return 0;
3847 }
3848 _ACEOF
3849 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3850 do
3851 CC="$ac_save_CC $ac_arg"
3852 if ac_fn_c_try_compile "$LINENO"; then :
3853 ac_cv_prog_cc_c99=$ac_arg
3854 fi
3855 rm -f core conftest.err conftest.$ac_objext
3856 test "x$ac_cv_prog_cc_c99" != "xno" && break
3857 done
3858 rm -f conftest.$ac_ext
3859 CC=$ac_save_CC
3860
3861 fi
3862 # AC_CACHE_VAL
3863 case "x$ac_cv_prog_cc_c99" in
3864 x)
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3866 $as_echo "none needed" >&6; } ;;
3867 xno)
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3869 $as_echo "unsupported" >&6; } ;;
3870 *)
3871 CC="$CC $ac_cv_prog_cc_c99"
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3873 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3874 esac
3875 if test "x$ac_cv_prog_cc_c99" != xno; then :
3876
3877 fi
3878
3879
3880
3881 ac_ext=c
3882 ac_cpp='$CPP $CPPFLAGS'
3883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3887 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3888 # On Suns, sometimes $CPP names a directory.
3889 if test -n "$CPP" && test -d "$CPP"; then
3890 CPP=
3891 fi
3892 if test -z "$CPP"; then
3893 if ${ac_cv_prog_CPP+:} false; then :
3894 $as_echo_n "(cached) " >&6
3895 else
3896 # Double quotes because CPP needs to be expanded
3897 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3898 do
3899 ac_preproc_ok=false
3900 for ac_c_preproc_warn_flag in '' yes
3901 do
3902 # Use a header file that comes with gcc, so configuring glibc
3903 # with a fresh cross-compiler works.
3904 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3905 # <limits.h> exists even on freestanding compilers.
3906 # On the NeXT, cc -E runs the code through the compiler's parser,
3907 # not just through cpp. "Syntax error" is here to catch this case.
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h. */
3910 #ifdef __STDC__
3911 # include <limits.h>
3912 #else
3913 # include <assert.h>
3914 #endif
3915 Syntax error
3916 _ACEOF
3917 if ac_fn_c_try_cpp "$LINENO"; then :
3918
3919 else
3920 # Broken: fails on valid input.
3921 continue
3922 fi
3923 rm -f conftest.err conftest.i conftest.$ac_ext
3924
3925 # OK, works on sane cases. Now check whether nonexistent headers
3926 # can be detected and how.
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3929 #include <ac_nonexistent.h>
3930 _ACEOF
3931 if ac_fn_c_try_cpp "$LINENO"; then :
3932 # Broken: success on invalid input.
3933 continue
3934 else
3935 # Passes both tests.
3936 ac_preproc_ok=:
3937 break
3938 fi
3939 rm -f conftest.err conftest.i conftest.$ac_ext
3940
3941 done
3942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3943 rm -f conftest.i conftest.err conftest.$ac_ext
3944 if $ac_preproc_ok; then :
3945 break
3946 fi
3947
3948 done
3949 ac_cv_prog_CPP=$CPP
3950
3951 fi
3952 CPP=$ac_cv_prog_CPP
3953 else
3954 ac_cv_prog_CPP=$CPP
3955 fi
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3957 $as_echo "$CPP" >&6; }
3958 ac_preproc_ok=false
3959 for ac_c_preproc_warn_flag in '' yes
3960 do
3961 # Use a header file that comes with gcc, so configuring glibc
3962 # with a fresh cross-compiler works.
3963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3964 # <limits.h> exists even on freestanding compilers.
3965 # On the NeXT, cc -E runs the code through the compiler's parser,
3966 # not just through cpp. "Syntax error" is here to catch this case.
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3969 #ifdef __STDC__
3970 # include <limits.h>
3971 #else
3972 # include <assert.h>
3973 #endif
3974 Syntax error
3975 _ACEOF
3976 if ac_fn_c_try_cpp "$LINENO"; then :
3977
3978 else
3979 # Broken: fails on valid input.
3980 continue
3981 fi
3982 rm -f conftest.err conftest.i conftest.$ac_ext
3983
3984 # OK, works on sane cases. Now check whether nonexistent headers
3985 # can be detected and how.
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3988 #include <ac_nonexistent.h>
3989 _ACEOF
3990 if ac_fn_c_try_cpp "$LINENO"; then :
3991 # Broken: success on invalid input.
3992 continue
3993 else
3994 # Passes both tests.
3995 ac_preproc_ok=:
3996 break
3997 fi
3998 rm -f conftest.err conftest.i conftest.$ac_ext
3999
4000 done
4001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4002 rm -f conftest.i conftest.err conftest.$ac_ext
4003 if $ac_preproc_ok; then :
4004
4005 else
4006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4008 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4009 See \`config.log' for more details" "$LINENO" 5; }
4010 fi
4011
4012 ac_ext=c
4013 ac_cpp='$CPP $CPPFLAGS'
4014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4017
4018
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4020 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4021 if ${ac_cv_path_GREP+:} false; then :
4022 $as_echo_n "(cached) " >&6
4023 else
4024 if test -z "$GREP"; then
4025 ac_path_GREP_found=false
4026 # Loop through the user's path and test for each of PROGNAME-LIST
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4029 do
4030 IFS=$as_save_IFS
4031 test -z "$as_dir" && as_dir=.
4032 for ac_prog in grep ggrep; do
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4035 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4036 # Check for GNU ac_path_GREP and select it if it is found.
4037 # Check for GNU $ac_path_GREP
4038 case `"$ac_path_GREP" --version 2>&1` in
4039 *GNU*)
4040 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4041 *)
4042 ac_count=0
4043 $as_echo_n 0123456789 >"conftest.in"
4044 while :
4045 do
4046 cat "conftest.in" "conftest.in" >"conftest.tmp"
4047 mv "conftest.tmp" "conftest.in"
4048 cp "conftest.in" "conftest.nl"
4049 $as_echo 'GREP' >> "conftest.nl"
4050 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4051 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4052 as_fn_arith $ac_count + 1 && ac_count=$as_val
4053 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4054 # Best one so far, save it but keep looking for a better one
4055 ac_cv_path_GREP="$ac_path_GREP"
4056 ac_path_GREP_max=$ac_count
4057 fi
4058 # 10*(2^10) chars as input seems more than enough
4059 test $ac_count -gt 10 && break
4060 done
4061 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4062 esac
4063
4064 $ac_path_GREP_found && break 3
4065 done
4066 done
4067 done
4068 IFS=$as_save_IFS
4069 if test -z "$ac_cv_path_GREP"; then
4070 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4071 fi
4072 else
4073 ac_cv_path_GREP=$GREP
4074 fi
4075
4076 fi
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4078 $as_echo "$ac_cv_path_GREP" >&6; }
4079 GREP="$ac_cv_path_GREP"
4080
4081
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4083 $as_echo_n "checking for egrep... " >&6; }
4084 if ${ac_cv_path_EGREP+:} false; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4088 then ac_cv_path_EGREP="$GREP -E"
4089 else
4090 if test -z "$EGREP"; then
4091 ac_path_EGREP_found=false
4092 # Loop through the user's path and test for each of PROGNAME-LIST
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4095 do
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
4098 for ac_prog in egrep; do
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4101 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4102 # Check for GNU ac_path_EGREP and select it if it is found.
4103 # Check for GNU $ac_path_EGREP
4104 case `"$ac_path_EGREP" --version 2>&1` in
4105 *GNU*)
4106 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4107 *)
4108 ac_count=0
4109 $as_echo_n 0123456789 >"conftest.in"
4110 while :
4111 do
4112 cat "conftest.in" "conftest.in" >"conftest.tmp"
4113 mv "conftest.tmp" "conftest.in"
4114 cp "conftest.in" "conftest.nl"
4115 $as_echo 'EGREP' >> "conftest.nl"
4116 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4117 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4118 as_fn_arith $ac_count + 1 && ac_count=$as_val
4119 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4120 # Best one so far, save it but keep looking for a better one
4121 ac_cv_path_EGREP="$ac_path_EGREP"
4122 ac_path_EGREP_max=$ac_count
4123 fi
4124 # 10*(2^10) chars as input seems more than enough
4125 test $ac_count -gt 10 && break
4126 done
4127 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4128 esac
4129
4130 $ac_path_EGREP_found && break 3
4131 done
4132 done
4133 done
4134 IFS=$as_save_IFS
4135 if test -z "$ac_cv_path_EGREP"; then
4136 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4137 fi
4138 else
4139 ac_cv_path_EGREP=$EGREP
4140 fi
4141
4142 fi
4143 fi
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4145 $as_echo "$ac_cv_path_EGREP" >&6; }
4146 EGREP="$ac_cv_path_EGREP"
4147
4148
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4150 $as_echo_n "checking for ANSI C header files... " >&6; }
4151 if ${ac_cv_header_stdc+:} false; then :
4152 $as_echo_n "(cached) " >&6
4153 else
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4156 #include <stdlib.h>
4157 #include <stdarg.h>
4158 #include <string.h>
4159 #include <float.h>
4160
4161 int
4162 main ()
4163 {
4164
4165 ;
4166 return 0;
4167 }
4168 _ACEOF
4169 if ac_fn_c_try_compile "$LINENO"; then :
4170 ac_cv_header_stdc=yes
4171 else
4172 ac_cv_header_stdc=no
4173 fi
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175
4176 if test $ac_cv_header_stdc = yes; then
4177 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4180 #include <string.h>
4181
4182 _ACEOF
4183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4184 $EGREP "memchr" >/dev/null 2>&1; then :
4185
4186 else
4187 ac_cv_header_stdc=no
4188 fi
4189 rm -f conftest*
4190
4191 fi
4192
4193 if test $ac_cv_header_stdc = yes; then
4194 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4197 #include <stdlib.h>
4198
4199 _ACEOF
4200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4201 $EGREP "free" >/dev/null 2>&1; then :
4202
4203 else
4204 ac_cv_header_stdc=no
4205 fi
4206 rm -f conftest*
4207
4208 fi
4209
4210 if test $ac_cv_header_stdc = yes; then
4211 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4212 if test "$cross_compiling" = yes; then :
4213 :
4214 else
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4217 #include <ctype.h>
4218 #include <stdlib.h>
4219 #if ((' ' & 0x0FF) == 0x020)
4220 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4221 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4222 #else
4223 # define ISLOWER(c) \
4224 (('a' <= (c) && (c) <= 'i') \
4225 || ('j' <= (c) && (c) <= 'r') \
4226 || ('s' <= (c) && (c) <= 'z'))
4227 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4228 #endif
4229
4230 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4231 int
4232 main ()
4233 {
4234 int i;
4235 for (i = 0; i < 256; i++)
4236 if (XOR (islower (i), ISLOWER (i))
4237 || toupper (i) != TOUPPER (i))
4238 return 2;
4239 return 0;
4240 }
4241 _ACEOF
4242 if ac_fn_c_try_run "$LINENO"; then :
4243
4244 else
4245 ac_cv_header_stdc=no
4246 fi
4247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4248 conftest.$ac_objext conftest.beam conftest.$ac_ext
4249 fi
4250
4251 fi
4252 fi
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4254 $as_echo "$ac_cv_header_stdc" >&6; }
4255 if test $ac_cv_header_stdc = yes; then
4256
4257 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4258
4259 fi
4260
4261 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4262 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4263 inttypes.h stdint.h unistd.h
4264 do :
4265 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4266 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4267 "
4268 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4269 cat >>confdefs.h <<_ACEOF
4270 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4271 _ACEOF
4272
4273 fi
4274
4275 done
4276
4277
4278
4279
4280 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4281 if test -n "$ac_tool_prefix"; then
4282 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4283 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 case $PKG_CONFIG in
4290 [\\/]* | ?:[\\/]*)
4291 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4292 ;;
4293 *)
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH
4296 do
4297 IFS=$as_save_IFS
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4301 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 break 2
4304 fi
4305 done
4306 done
4307 IFS=$as_save_IFS
4308
4309 ;;
4310 esac
4311 fi
4312 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4313 if test -n "$PKG_CONFIG"; then
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4315 $as_echo "$PKG_CONFIG" >&6; }
4316 else
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318 $as_echo "no" >&6; }
4319 fi
4320
4321
4322 fi
4323 if test -z "$ac_cv_path_PKG_CONFIG"; then
4324 ac_pt_PKG_CONFIG=$PKG_CONFIG
4325 # Extract the first word of "pkg-config", so it can be a program name with args.
4326 set dummy pkg-config; ac_word=$2
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328 $as_echo_n "checking for $ac_word... " >&6; }
4329 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4330 $as_echo_n "(cached) " >&6
4331 else
4332 case $ac_pt_PKG_CONFIG in
4333 [\\/]* | ?:[\\/]*)
4334 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4335 ;;
4336 *)
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 for as_dir in $PATH
4339 do
4340 IFS=$as_save_IFS
4341 test -z "$as_dir" && as_dir=.
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4344 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4346 break 2
4347 fi
4348 done
4349 done
4350 IFS=$as_save_IFS
4351
4352 ;;
4353 esac
4354 fi
4355 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4356 if test -n "$ac_pt_PKG_CONFIG"; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4358 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4359 else
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4362 fi
4363
4364 if test "x$ac_pt_PKG_CONFIG" = x; then
4365 PKG_CONFIG=""
4366 else
4367 case $cross_compiling:$ac_tool_warned in
4368 yes:)
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4371 ac_tool_warned=yes ;;
4372 esac
4373 PKG_CONFIG=$ac_pt_PKG_CONFIG
4374 fi
4375 else
4376 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4377 fi
4378
4379 fi
4380 if test -n "$PKG_CONFIG"; then
4381 _pkg_min_version=0.9.0
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4383 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4384 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4386 $as_echo "yes" >&6; }
4387 else
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389 $as_echo "no" >&6; }
4390 PKG_CONFIG=""
4391 fi
4392
4393 fi
4394 # Make sure we can run config.sub.
4395 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4396 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4397
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4399 $as_echo_n "checking build system type... " >&6; }
4400 if ${ac_cv_build+:} false; then :
4401 $as_echo_n "(cached) " >&6
4402 else
4403 ac_build_alias=$build_alias
4404 test "x$ac_build_alias" = x &&
4405 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4406 test "x$ac_build_alias" = x &&
4407 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4408 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4409 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4410
4411 fi
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4413 $as_echo "$ac_cv_build" >&6; }
4414 case $ac_cv_build in
4415 *-*-*) ;;
4416 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4417 esac
4418 build=$ac_cv_build
4419 ac_save_IFS=$IFS; IFS='-'
4420 set x $ac_cv_build
4421 shift
4422 build_cpu=$1
4423 build_vendor=$2
4424 shift; shift
4425 # Remember, the first character of IFS is used to create $*,
4426 # except with old shells:
4427 build_os=$*
4428 IFS=$ac_save_IFS
4429 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4430
4431
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4433 $as_echo_n "checking host system type... " >&6; }
4434 if ${ac_cv_host+:} false; then :
4435 $as_echo_n "(cached) " >&6
4436 else
4437 if test "x$host_alias" = x; then
4438 ac_cv_host=$ac_cv_build
4439 else
4440 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4441 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4442 fi
4443
4444 fi
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4446 $as_echo "$ac_cv_host" >&6; }
4447 case $ac_cv_host in
4448 *-*-*) ;;
4449 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4450 esac
4451 host=$ac_cv_host
4452 ac_save_IFS=$IFS; IFS='-'
4453 set x $ac_cv_host
4454 shift
4455 host_cpu=$1
4456 host_vendor=$2
4457 shift; shift
4458 # Remember, the first character of IFS is used to create $*,
4459 # except with old shells:
4460 host_os=$*
4461 IFS=$ac_save_IFS
4462 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4463
4464
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4466 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4467 if ${ac_cv_path_SED+:} false; then :
4468 $as_echo_n "(cached) " >&6
4469 else
4470 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4471 for ac_i in 1 2 3 4 5 6 7; do
4472 ac_script="$ac_script$as_nl$ac_script"
4473 done
4474 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4475 { ac_script=; unset ac_script;}
4476 if test -z "$SED"; then
4477 ac_path_SED_found=false
4478 # Loop through the user's path and test for each of PROGNAME-LIST
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in $PATH
4481 do
4482 IFS=$as_save_IFS
4483 test -z "$as_dir" && as_dir=.
4484 for ac_prog in sed gsed; do
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4487 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4488 # Check for GNU ac_path_SED and select it if it is found.
4489 # Check for GNU $ac_path_SED
4490 case `"$ac_path_SED" --version 2>&1` in
4491 *GNU*)
4492 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4493 *)
4494 ac_count=0
4495 $as_echo_n 0123456789 >"conftest.in"
4496 while :
4497 do
4498 cat "conftest.in" "conftest.in" >"conftest.tmp"
4499 mv "conftest.tmp" "conftest.in"
4500 cp "conftest.in" "conftest.nl"
4501 $as_echo '' >> "conftest.nl"
4502 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4504 as_fn_arith $ac_count + 1 && ac_count=$as_val
4505 if test $ac_count -gt ${ac_path_SED_max-0}; then
4506 # Best one so far, save it but keep looking for a better one
4507 ac_cv_path_SED="$ac_path_SED"
4508 ac_path_SED_max=$ac_count
4509 fi
4510 # 10*(2^10) chars as input seems more than enough
4511 test $ac_count -gt 10 && break
4512 done
4513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4514 esac
4515
4516 $ac_path_SED_found && break 3
4517 done
4518 done
4519 done
4520 IFS=$as_save_IFS
4521 if test -z "$ac_cv_path_SED"; then
4522 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4523 fi
4524 else
4525 ac_cv_path_SED=$SED
4526 fi
4527
4528 fi
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4530 $as_echo "$ac_cv_path_SED" >&6; }
4531 SED="$ac_cv_path_SED"
4532 rm -f conftest.sed
4533
4534
4535
4536
4537
4538 if test "x$GCC" = xyes ; then
4539 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4540 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4541 -Wbad-function-cast -Wformat=2"
4542 case `$CC -dumpversion` in
4543 3.4.* | 4.*)
4544 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4545 ;;
4546 esac
4547 else
4548 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4549 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4550 SUNCC="yes"
4551 else
4552 SUNCC="no"
4553 fi
4554
4555 if test "x$SUNCC" = "xyes"; then
4556 CWARNFLAGS="-v"
4557 fi
4558 fi
4559
4560
4561
4562 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4563
4564
4565
4566 # Check whether --enable-strict-compilation was given.
4567 if test "${enable_strict_compilation+set}" = set; then :
4568 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4569 else
4570 STRICT_COMPILE=no
4571 fi
4572
4573 if test "x$STRICT_COMPILE" = "xyes"; then
4574 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4575 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4576 SUNCC="yes"
4577 else
4578 SUNCC="no"
4579 fi
4580
4581 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4582 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4583 INTELCC="yes"
4584 else
4585 INTELCC="no"
4586 fi
4587
4588 if test "x$GCC" = xyes ; then
4589 STRICT_CFLAGS="-pedantic -Werror"
4590 elif test "x$SUNCC" = "xyes"; then
4591 STRICT_CFLAGS="-errwarn"
4592 elif test "x$INTELCC" = "xyes"; then
4593 STRICT_CFLAGS="-Werror"
4594 fi
4595 fi
4596 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4597
4598
4599
4600
4601 cat >>confdefs.h <<_ACEOF
4602 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4603 _ACEOF
4604
4605 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4606 if test "x$PVM" = "x"; then
4607 PVM="0"
4608 fi
4609
4610 cat >>confdefs.h <<_ACEOF
4611 #define PACKAGE_VERSION_MINOR $PVM
4612 _ACEOF
4613
4614 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4615 if test "x$PVP" = "x"; then
4616 PVP="0"
4617 fi
4618
4619 cat >>confdefs.h <<_ACEOF
4620 #define PACKAGE_VERSION_PATCHLEVEL $PVP
4621 _ACEOF
4622
4623
4624
4625 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4626 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4627 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4628 echo 'git directory not found: installing possibly empty changelog.' >&2)"
4629
4630
4631
4632
4633 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4634 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4635 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4636 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4637 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4638
4639
4640
4641
4642
4643
4644 if test x$APP_MAN_SUFFIX = x ; then
4645 APP_MAN_SUFFIX=1
4646 fi
4647 if test x$APP_MAN_DIR = x ; then
4648 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4649 fi
4650
4651 if test x$LIB_MAN_SUFFIX = x ; then
4652 LIB_MAN_SUFFIX=3
4653 fi
4654 if test x$LIB_MAN_DIR = x ; then
4655 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4656 fi
4657
4658 if test x$FILE_MAN_SUFFIX = x ; then
4659 case $host_os in
4660 solaris*) FILE_MAN_SUFFIX=4 ;;
4661 *) FILE_MAN_SUFFIX=5 ;;
4662 esac
4663 fi
4664 if test x$FILE_MAN_DIR = x ; then
4665 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4666 fi
4667
4668 if test x$MISC_MAN_SUFFIX = x ; then
4669 case $host_os in
4670 solaris*) MISC_MAN_SUFFIX=5 ;;
4671 *) MISC_MAN_SUFFIX=7 ;;
4672 esac
4673 fi
4674 if test x$MISC_MAN_DIR = x ; then
4675 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4676 fi
4677
4678 if test x$DRIVER_MAN_SUFFIX = x ; then
4679 case $host_os in
4680 solaris*) DRIVER_MAN_SUFFIX=7 ;;
4681 *) DRIVER_MAN_SUFFIX=4 ;;
4682 esac
4683 fi
4684 if test x$DRIVER_MAN_DIR = x ; then
4685 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4686 fi
4687
4688 if test x$ADMIN_MAN_SUFFIX = x ; then
4689 case $host_os in
4690 solaris*) ADMIN_MAN_SUFFIX=1m ;;
4691 *) ADMIN_MAN_SUFFIX=8 ;;
4692 esac
4693 fi
4694 if test x$ADMIN_MAN_DIR = x ; then
4695 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4696 fi
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712 XORG_MAN_PAGE="X Version 11"
4713
4714 MAN_SUBSTS="\
4715 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4716 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4717 -e 's|__xservername__|Xorg|g' \
4718 -e 's|__xconfigfile__|xorg.conf|g' \
4719 -e 's|__projectroot__|\$(prefix)|g' \
4720 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
4721 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4722 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4723 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4724 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4725 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4726 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4727
4728
4729
4730 # Check whether --enable-silent-rules was given.
4731 if test "${enable_silent_rules+set}" = set; then :
4732 enableval=$enable_silent_rules;
4733 fi
4734
4735 case $enable_silent_rules in
4736 yes) AM_DEFAULT_VERBOSITY=0;;
4737 no) AM_DEFAULT_VERBOSITY=1;;
4738 *) AM_DEFAULT_VERBOSITY=0;;
4739 esac
4740 AM_BACKSLASH='\'
4741
4742
4743
4744 # Check for progs
4745 case `pwd` in
4746 *\ * | *\ *)
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4748 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4749 esac
4750
4751
4752
4753 macro_version='2.2.10'
4754 macro_revision='1.3175'
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768 ltmain="$ac_aux_dir/ltmain.sh"
4769
4770 # Backslashify metacharacters that are still active within
4771 # double-quoted strings.
4772 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4773
4774 # Same as above, but do not quote variable references.
4775 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4776
4777 # Sed substitution to delay expansion of an escaped shell variable in a
4778 # double_quote_subst'ed string.
4779 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4780
4781 # Sed substitution to delay expansion of an escaped single quote.
4782 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4783
4784 # Sed substitution to avoid accidental globbing in evaled expressions
4785 no_glob_subst='s/\*/\\\*/g'
4786
4787 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4788 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4789 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4790
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4792 $as_echo_n "checking how to print strings... " >&6; }
4793 # Test print first, because it will be a builtin if present.
4794 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4795 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4796 ECHO='print -r --'
4797 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4798 ECHO='printf %s\n'
4799 else
4800 # Use this function as a fallback that always works.
4801 func_fallback_echo ()
4802 {
4803 eval 'cat <<_LTECHO_EOF
4804 $1
4805 _LTECHO_EOF'
4806 }
4807 ECHO='func_fallback_echo'
4808 fi
4809
4810 # func_echo_all arg...
4811 # Invoke $ECHO with all args, space-separated.
4812 func_echo_all ()
4813 {
4814 $ECHO ""
4815 }
4816
4817 case "$ECHO" in
4818 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4819 $as_echo "printf" >&6; } ;;
4820 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4821 $as_echo "print -r" >&6; } ;;
4822 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4823 $as_echo "cat" >&6; } ;;
4824 esac
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4840 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4841 if ${ac_cv_path_SED+:} false; then :
4842 $as_echo_n "(cached) " >&6
4843 else
4844 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4845 for ac_i in 1 2 3 4 5 6 7; do
4846 ac_script="$ac_script$as_nl$ac_script"
4847 done
4848 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4849 { ac_script=; unset ac_script;}
4850 if test -z "$SED"; then
4851 ac_path_SED_found=false
4852 # Loop through the user's path and test for each of PROGNAME-LIST
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH
4855 do
4856 IFS=$as_save_IFS
4857 test -z "$as_dir" && as_dir=.
4858 for ac_prog in sed gsed; do
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4861 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4862 # Check for GNU ac_path_SED and select it if it is found.
4863 # Check for GNU $ac_path_SED
4864 case `"$ac_path_SED" --version 2>&1` in
4865 *GNU*)
4866 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4867 *)
4868 ac_count=0
4869 $as_echo_n 0123456789 >"conftest.in"
4870 while :
4871 do
4872 cat "conftest.in" "conftest.in" >"conftest.tmp"
4873 mv "conftest.tmp" "conftest.in"
4874 cp "conftest.in" "conftest.nl"
4875 $as_echo '' >> "conftest.nl"
4876 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4877 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4878 as_fn_arith $ac_count + 1 && ac_count=$as_val
4879 if test $ac_count -gt ${ac_path_SED_max-0}; then
4880 # Best one so far, save it but keep looking for a better one
4881 ac_cv_path_SED="$ac_path_SED"
4882 ac_path_SED_max=$ac_count
4883 fi
4884 # 10*(2^10) chars as input seems more than enough
4885 test $ac_count -gt 10 && break
4886 done
4887 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4888 esac
4889
4890 $ac_path_SED_found && break 3
4891 done
4892 done
4893 done
4894 IFS=$as_save_IFS
4895 if test -z "$ac_cv_path_SED"; then
4896 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4897 fi
4898 else
4899 ac_cv_path_SED=$SED
4900 fi
4901
4902 fi
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4904 $as_echo "$ac_cv_path_SED" >&6; }
4905 SED="$ac_cv_path_SED"
4906 rm -f conftest.sed
4907
4908 test -z "$SED" && SED=sed
4909 Xsed="$SED -e 1s/^X//"
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4922 $as_echo_n "checking for fgrep... " >&6; }
4923 if ${ac_cv_path_FGREP+:} false; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4927 then ac_cv_path_FGREP="$GREP -F"
4928 else
4929 if test -z "$FGREP"; then
4930 ac_path_FGREP_found=false
4931 # Loop through the user's path and test for each of PROGNAME-LIST
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4934 do
4935 IFS=$as_save_IFS
4936 test -z "$as_dir" && as_dir=.
4937 for ac_prog in fgrep; do
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4940 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4941 # Check for GNU ac_path_FGREP and select it if it is found.
4942 # Check for GNU $ac_path_FGREP
4943 case `"$ac_path_FGREP" --version 2>&1` in
4944 *GNU*)
4945 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4946 *)
4947 ac_count=0
4948 $as_echo_n 0123456789 >"conftest.in"
4949 while :
4950 do
4951 cat "conftest.in" "conftest.in" >"conftest.tmp"
4952 mv "conftest.tmp" "conftest.in"
4953 cp "conftest.in" "conftest.nl"
4954 $as_echo 'FGREP' >> "conftest.nl"
4955 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4956 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4957 as_fn_arith $ac_count + 1 && ac_count=$as_val
4958 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4959 # Best one so far, save it but keep looking for a better one
4960 ac_cv_path_FGREP="$ac_path_FGREP"
4961 ac_path_FGREP_max=$ac_count
4962 fi
4963 # 10*(2^10) chars as input seems more than enough
4964 test $ac_count -gt 10 && break
4965 done
4966 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4967 esac
4968
4969 $ac_path_FGREP_found && break 3
4970 done
4971 done
4972 done
4973 IFS=$as_save_IFS
4974 if test -z "$ac_cv_path_FGREP"; then
4975 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4976 fi
4977 else
4978 ac_cv_path_FGREP=$FGREP
4979 fi
4980
4981 fi
4982 fi
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4984 $as_echo "$ac_cv_path_FGREP" >&6; }
4985 FGREP="$ac_cv_path_FGREP"
4986
4987
4988 test -z "$GREP" && GREP=grep
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008 # Check whether --with-gnu-ld was given.
5009 if test "${with_gnu_ld+set}" = set; then :
5010 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5011 else
5012 with_gnu_ld=no
5013 fi
5014
5015 ac_prog=ld
5016 if test "$GCC" = yes; then
5017 # Check if gcc -print-prog-name=ld gives a path.
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5019 $as_echo_n "checking for ld used by $CC... " >&6; }
5020 case $host in
5021 *-*-mingw*)
5022 # gcc leaves a trailing carriage return which upsets mingw
5023 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5024 *)
5025 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5026 esac
5027 case $ac_prog in
5028 # Accept absolute paths.
5029 [\\/]* | ?:[\\/]*)
5030 re_direlt='/[^/][^/]*/\.\./'
5031 # Canonicalize the pathname of ld
5032 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5033 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5034 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5035 done
5036 test -z "$LD" && LD="$ac_prog"
5037 ;;
5038 "")
5039 # If it fails, then pretend we aren't using GCC.
5040 ac_prog=ld
5041 ;;
5042 *)
5043 # If it is relative, then search for the first ld in PATH.
5044 with_gnu_ld=unknown
5045 ;;
5046 esac
5047 elif test "$with_gnu_ld" = yes; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5049 $as_echo_n "checking for GNU ld... " >&6; }
5050 else
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5052 $as_echo_n "checking for non-GNU ld... " >&6; }
5053 fi
5054 if ${lt_cv_path_LD+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 if test -z "$LD"; then
5058 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5059 for ac_dir in $PATH; do
5060 IFS="$lt_save_ifs"
5061 test -z "$ac_dir" && ac_dir=.
5062 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5063 lt_cv_path_LD="$ac_dir/$ac_prog"
5064 # Check to see if the program is GNU ld. I'd rather use --version,
5065 # but apparently some variants of GNU ld only accept -v.
5066 # Break only if it was the GNU/non-GNU ld that we prefer.
5067 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5068 *GNU* | *'with BFD'*)
5069 test "$with_gnu_ld" != no && break
5070 ;;
5071 *)
5072 test "$with_gnu_ld" != yes && break
5073 ;;
5074 esac
5075 fi
5076 done
5077 IFS="$lt_save_ifs"
5078 else
5079 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5080 fi
5081 fi
5082
5083 LD="$lt_cv_path_LD"
5084 if test -n "$LD"; then
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5086 $as_echo "$LD" >&6; }
5087 else
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }
5090 fi
5091 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5093 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5094 if ${lt_cv_prog_gnu_ld+:} false; then :
5095 $as_echo_n "(cached) " >&6
5096 else
5097 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5098 case `$LD -v 2>&1 </dev/null` in
5099 *GNU* | *'with BFD'*)
5100 lt_cv_prog_gnu_ld=yes
5101 ;;
5102 *)
5103 lt_cv_prog_gnu_ld=no
5104 ;;
5105 esac
5106 fi
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5108 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5109 with_gnu_ld=$lt_cv_prog_gnu_ld
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5120 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5121 if ${lt_cv_path_NM+:} false; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 if test -n "$NM"; then
5125 # Let the user override the test.
5126 lt_cv_path_NM="$NM"
5127 else
5128 lt_nm_to_check="${ac_tool_prefix}nm"
5129 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5130 lt_nm_to_check="$lt_nm_to_check nm"
5131 fi
5132 for lt_tmp_nm in $lt_nm_to_check; do
5133 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5134 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5135 IFS="$lt_save_ifs"
5136 test -z "$ac_dir" && ac_dir=.
5137 tmp_nm="$ac_dir/$lt_tmp_nm"
5138 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5139 # Check to see if the nm accepts a BSD-compat flag.
5140 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5141 # nm: unknown option "B" ignored
5142 # Tru64's nm complains that /dev/null is an invalid object file
5143 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5144 */dev/null* | *'Invalid file or object type'*)
5145 lt_cv_path_NM="$tmp_nm -B"
5146 break
5147 ;;
5148 *)
5149 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5150 */dev/null*)
5151 lt_cv_path_NM="$tmp_nm -p"
5152 break
5153 ;;
5154 *)
5155 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5156 continue # so that we can try to find one that supports BSD flags
5157 ;;
5158 esac
5159 ;;
5160 esac
5161 fi
5162 done
5163 IFS="$lt_save_ifs"
5164 done
5165 : ${lt_cv_path_NM=no}
5166 fi
5167 fi
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5169 $as_echo "$lt_cv_path_NM" >&6; }
5170 if test "$lt_cv_path_NM" != "no"; then
5171 NM="$lt_cv_path_NM"
5172 else
5173 # Didn't find any BSD compatible name lister, look for dumpbin.
5174 if test -n "$DUMPBIN"; then :
5175 # Let the user override the test.
5176 else
5177 if test -n "$ac_tool_prefix"; then
5178 for ac_prog in dumpbin "link -dump"
5179 do
5180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if ${ac_cv_prog_DUMPBIN+:} false; then :
5185 $as_echo_n "(cached) " >&6
5186 else
5187 if test -n "$DUMPBIN"; then
5188 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5189 else
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5192 do
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5197 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 break 2
5200 fi
5201 done
5202 done
5203 IFS=$as_save_IFS
5204
5205 fi
5206 fi
5207 DUMPBIN=$ac_cv_prog_DUMPBIN
5208 if test -n "$DUMPBIN"; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5210 $as_echo "$DUMPBIN" >&6; }
5211 else
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5214 fi
5215
5216
5217 test -n "$DUMPBIN" && break
5218 done
5219 fi
5220 if test -z "$DUMPBIN"; then
5221 ac_ct_DUMPBIN=$DUMPBIN
5222 for ac_prog in dumpbin "link -dump"
5223 do
5224 # Extract the first word of "$ac_prog", so it can be a program name with args.
5225 set dummy $ac_prog; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 if test -n "$ac_ct_DUMPBIN"; then
5232 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5233 else
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5236 do
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 break 2
5244 fi
5245 done
5246 done
5247 IFS=$as_save_IFS
5248
5249 fi
5250 fi
5251 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5252 if test -n "$ac_ct_DUMPBIN"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5254 $as_echo "$ac_ct_DUMPBIN" >&6; }
5255 else
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5258 fi
5259
5260
5261 test -n "$ac_ct_DUMPBIN" && break
5262 done
5263
5264 if test "x$ac_ct_DUMPBIN" = x; then
5265 DUMPBIN=":"
5266 else
5267 case $cross_compiling:$ac_tool_warned in
5268 yes:)
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5271 ac_tool_warned=yes ;;
5272 esac
5273 DUMPBIN=$ac_ct_DUMPBIN
5274 fi
5275 fi
5276
5277 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5278 *COFF*)
5279 DUMPBIN="$DUMPBIN -symbols"
5280 ;;
5281 *)
5282 DUMPBIN=:
5283 ;;
5284 esac
5285 fi
5286
5287 if test "$DUMPBIN" != ":"; then
5288 NM="$DUMPBIN"
5289 fi
5290 fi
5291 test -z "$NM" && NM=nm
5292
5293
5294
5295
5296
5297
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5299 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5300 if ${lt_cv_nm_interface+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 lt_cv_nm_interface="BSD nm"
5304 echo "int some_variable = 0;" > conftest.$ac_ext
5305 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5306 (eval "$ac_compile" 2>conftest.err)
5307 cat conftest.err >&5
5308 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5309 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5310 cat conftest.err >&5
5311 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5312 cat conftest.out >&5
5313 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5314 lt_cv_nm_interface="MS dumpbin"
5315 fi
5316 rm -f conftest*
5317 fi
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5319 $as_echo "$lt_cv_nm_interface" >&6; }
5320
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5322 $as_echo_n "checking whether ln -s works... " >&6; }
5323 LN_S=$as_ln_s
5324 if test "$LN_S" = "ln -s"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5326 $as_echo "yes" >&6; }
5327 else
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5329 $as_echo "no, using $LN_S" >&6; }
5330 fi
5331
5332 # find the maximum length of command line arguments
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5334 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5335 if ${lt_cv_sys_max_cmd_len+:} false; then :
5336 $as_echo_n "(cached) " >&6
5337 else
5338 i=0
5339 teststring="ABCD"
5340
5341 case $build_os in
5342 msdosdjgpp*)
5343 # On DJGPP, this test can blow up pretty badly due to problems in libc
5344 # (any single argument exceeding 2000 bytes causes a buffer overrun
5345 # during glob expansion). Even if it were fixed, the result of this
5346 # check would be larger than it should be.
5347 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5348 ;;
5349
5350 gnu*)
5351 # Under GNU Hurd, this test is not required because there is
5352 # no limit to the length of command line arguments.
5353 # Libtool will interpret -1 as no limit whatsoever
5354 lt_cv_sys_max_cmd_len=-1;
5355 ;;
5356
5357 cygwin* | mingw* | cegcc*)
5358 # On Win9x/ME, this test blows up -- it succeeds, but takes
5359 # about 5 minutes as the teststring grows exponentially.
5360 # Worse, since 9x/ME are not pre-emptively multitasking,
5361 # you end up with a "frozen" computer, even though with patience
5362 # the test eventually succeeds (with a max line length of 256k).
5363 # Instead, let's just punt: use the minimum linelength reported by
5364 # all of the supported platforms: 8192 (on NT/2K/XP).
5365 lt_cv_sys_max_cmd_len=8192;
5366 ;;
5367
5368 mint*)
5369 # On MiNT this can take a long time and run out of memory.
5370 lt_cv_sys_max_cmd_len=8192;
5371 ;;
5372
5373 amigaos*)
5374 # On AmigaOS with pdksh, this test takes hours, literally.
5375 # So we just punt and use a minimum line length of 8192.
5376 lt_cv_sys_max_cmd_len=8192;
5377 ;;
5378
5379 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5380 # This has been around since 386BSD, at least. Likely further.
5381 if test -x /sbin/sysctl; then
5382 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5383 elif test -x /usr/sbin/sysctl; then
5384 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5385 else
5386 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5387 fi
5388 # And add a safety zone
5389 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5390 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5391 ;;
5392
5393 interix*)
5394 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5395 lt_cv_sys_max_cmd_len=196608
5396 ;;
5397
5398 osf*)
5399 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5400 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5401 # nice to cause kernel panics so lets avoid the loop below.
5402 # First set a reasonable default.
5403 lt_cv_sys_max_cmd_len=16384
5404 #
5405 if test -x /sbin/sysconfig; then
5406 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5407 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5408 esac
5409 fi
5410 ;;
5411 sco3.2v5*)
5412 lt_cv_sys_max_cmd_len=102400
5413 ;;
5414 sysv5* | sco5v6* | sysv4.2uw2*)
5415 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5416 if test -n "$kargmax"; then
5417 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5418 else
5419 lt_cv_sys_max_cmd_len=32768
5420 fi
5421 ;;
5422 *)
5423 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5424 if test -n "$lt_cv_sys_max_cmd_len"; then
5425 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5426 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5427 else
5428 # Make teststring a little bigger before we do anything with it.
5429 # a 1K string should be a reasonable start.
5430 for i in 1 2 3 4 5 6 7 8 ; do
5431 teststring=$teststring$teststring
5432 done
5433 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5434 # If test is not a shell built-in, we'll probably end up computing a
5435 # maximum length that is only half of the actual maximum length, but
5436 # we can't tell.
5437 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5438 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5439 test $i != 17 # 1/2 MB should be enough
5440 do
5441 i=`expr $i + 1`
5442 teststring=$teststring$teststring
5443 done
5444 # Only check the string length outside the loop.
5445 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5446 teststring=
5447 # Add a significant safety factor because C++ compilers can tack on
5448 # massive amounts of additional arguments before passing them to the
5449 # linker. It appears as though 1/2 is a usable value.
5450 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5451 fi
5452 ;;
5453 esac
5454
5455 fi
5456
5457 if test -n $lt_cv_sys_max_cmd_len ; then
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5459 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5460 else
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5462 $as_echo "none" >&6; }
5463 fi
5464 max_cmd_len=$lt_cv_sys_max_cmd_len
5465
5466
5467
5468
5469
5470
5471 : ${CP="cp -f"}
5472 : ${MV="mv -f"}
5473 : ${RM="rm -f"}
5474
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5476 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5477 # Try some XSI features
5478 xsi_shell=no
5479 ( _lt_dummy="a/b/c"
5480 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5481 = c,a/b,, \
5482 && eval 'test $(( 1 + 1 )) -eq 2 \
5483 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5484 && xsi_shell=yes
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5486 $as_echo "$xsi_shell" >&6; }
5487
5488
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5490 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5491 lt_shell_append=no
5492 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5493 >/dev/null 2>&1 \
5494 && lt_shell_append=yes
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5496 $as_echo "$lt_shell_append" >&6; }
5497
5498
5499 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5500 lt_unset=unset
5501 else
5502 lt_unset=false
5503 fi
5504
5505
5506
5507
5508
5509 # test EBCDIC or ASCII
5510 case `echo X|tr X '\101'` in
5511 A) # ASCII based system
5512 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5513 lt_SP2NL='tr \040 \012'
5514 lt_NL2SP='tr \015\012 \040\040'
5515 ;;
5516 *) # EBCDIC based system
5517 lt_SP2NL='tr \100 \n'
5518 lt_NL2SP='tr \r\n \100\100'
5519 ;;
5520 esac
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5531 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5532 if ${lt_cv_ld_reload_flag+:} false; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 lt_cv_ld_reload_flag='-r'
5536 fi
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5538 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5539 reload_flag=$lt_cv_ld_reload_flag
5540 case $reload_flag in
5541 "" | " "*) ;;
5542 *) reload_flag=" $reload_flag" ;;
5543 esac
5544 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5545 case $host_os in
5546 darwin*)
5547 if test "$GCC" = yes; then
5548 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5549 else
5550 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5551 fi
5552 ;;
5553 esac
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563 if test -n "$ac_tool_prefix"; then
5564 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5565 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if ${ac_cv_prog_OBJDUMP+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 if test -n "$OBJDUMP"; then
5572 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5573 else
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5576 do
5577 IFS=$as_save_IFS
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5581 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 break 2
5584 fi
5585 done
5586 done
5587 IFS=$as_save_IFS
5588
5589 fi
5590 fi
5591 OBJDUMP=$ac_cv_prog_OBJDUMP
5592 if test -n "$OBJDUMP"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5594 $as_echo "$OBJDUMP" >&6; }
5595 else
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5598 fi
5599
5600
5601 fi
5602 if test -z "$ac_cv_prog_OBJDUMP"; then
5603 ac_ct_OBJDUMP=$OBJDUMP
5604 # Extract the first word of "objdump", so it can be a program name with args.
5605 set dummy objdump; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 if test -n "$ac_ct_OBJDUMP"; then
5612 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5613 else
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH
5616 do
5617 IFS=$as_save_IFS
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5621 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 break 2
5624 fi
5625 done
5626 done
5627 IFS=$as_save_IFS
5628
5629 fi
5630 fi
5631 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5632 if test -n "$ac_ct_OBJDUMP"; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5634 $as_echo "$ac_ct_OBJDUMP" >&6; }
5635 else
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5638 fi
5639
5640 if test "x$ac_ct_OBJDUMP" = x; then
5641 OBJDUMP="false"
5642 else
5643 case $cross_compiling:$ac_tool_warned in
5644 yes:)
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5647 ac_tool_warned=yes ;;
5648 esac
5649 OBJDUMP=$ac_ct_OBJDUMP
5650 fi
5651 else
5652 OBJDUMP="$ac_cv_prog_OBJDUMP"
5653 fi
5654
5655 test -z "$OBJDUMP" && OBJDUMP=objdump
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5666 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5667 if ${lt_cv_deplibs_check_method+:} false; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 lt_cv_file_magic_cmd='$MAGIC_CMD'
5671 lt_cv_file_magic_test_file=
5672 lt_cv_deplibs_check_method='unknown'
5673 # Need to set the preceding variable on all platforms that support
5674 # interlibrary dependencies.
5675 # 'none' -- dependencies not supported.
5676 # `unknown' -- same as none, but documents that we really don't know.
5677 # 'pass_all' -- all dependencies passed with no checks.
5678 # 'test_compile' -- check by making test program.
5679 # 'file_magic [[regex]]' -- check by looking for files in library path
5680 # which responds to the $file_magic_cmd with a given extended regex.
5681 # If you have `file' or equivalent on your system and you're not sure
5682 # whether `pass_all' will *always* work, you probably want this one.
5683
5684 case $host_os in
5685 aix[4-9]*)
5686 lt_cv_deplibs_check_method=pass_all
5687 ;;
5688
5689 beos*)
5690 lt_cv_deplibs_check_method=pass_all
5691 ;;
5692
5693 bsdi[45]*)
5694 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5695 lt_cv_file_magic_cmd='/usr/bin/file -L'
5696 lt_cv_file_magic_test_file=/shlib/libc.so
5697 ;;
5698
5699 cygwin*)
5700 # func_win32_libid is a shell function defined in ltmain.sh
5701 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5702 lt_cv_file_magic_cmd='func_win32_libid'
5703 ;;
5704
5705 mingw* | pw32*)
5706 # Base MSYS/MinGW do not provide the 'file' command needed by
5707 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5708 # unless we find 'file', for example because we are cross-compiling.
5709 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5710 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5711 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5712 lt_cv_file_magic_cmd='func_win32_libid'
5713 else
5714 # Keep this pattern in sync with the one in func_win32_libid.
5715 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5716 lt_cv_file_magic_cmd='$OBJDUMP -f'
5717 fi
5718 ;;
5719
5720 cegcc*)
5721 # use the weaker test based on 'objdump'. See mingw*.
5722 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5723 lt_cv_file_magic_cmd='$OBJDUMP -f'
5724 ;;
5725
5726 darwin* | rhapsody*)
5727 lt_cv_deplibs_check_method=pass_all
5728 ;;
5729
5730 freebsd* | dragonfly*)
5731 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5732 case $host_cpu in
5733 i*86 )
5734 # Not sure whether the presence of OpenBSD here was a mistake.
5735 # Let's accept both of them until this is cleared up.
5736 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5737 lt_cv_file_magic_cmd=/usr/bin/file
5738 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5739 ;;
5740 esac
5741 else
5742 lt_cv_deplibs_check_method=pass_all
5743 fi
5744 ;;
5745
5746 gnu*)
5747 lt_cv_deplibs_check_method=pass_all
5748 ;;
5749
5750 haiku*)
5751 lt_cv_deplibs_check_method=pass_all
5752 ;;
5753
5754 hpux10.20* | hpux11*)
5755 lt_cv_file_magic_cmd=/usr/bin/file
5756 case $host_cpu in
5757 ia64*)
5758 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5759 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5760 ;;
5761 hppa*64*)
5762 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]'
5763 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5764 ;;
5765 *)
5766 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5767 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5768 ;;
5769 esac
5770 ;;
5771
5772 interix[3-9]*)
5773 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5775 ;;
5776
5777 irix5* | irix6* | nonstopux*)
5778 case $LD in
5779 *-32|*"-32 ") libmagic=32-bit;;
5780 *-n32|*"-n32 ") libmagic=N32;;
5781 *-64|*"-64 ") libmagic=64-bit;;
5782 *) libmagic=never-match;;
5783 esac
5784 lt_cv_deplibs_check_method=pass_all
5785 ;;
5786
5787 # This must be Linux ELF.
5788 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5789 lt_cv_deplibs_check_method=pass_all
5790 ;;
5791
5792 netbsd*)
5793 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5795 else
5796 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5797 fi
5798 ;;
5799
5800 newos6*)
5801 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5802 lt_cv_file_magic_cmd=/usr/bin/file
5803 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5804 ;;
5805
5806 *nto* | *qnx*)
5807 lt_cv_deplibs_check_method=pass_all
5808 ;;
5809
5810 openbsd*)
5811 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5813 else
5814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5815 fi
5816 ;;
5817
5818 osf3* | osf4* | osf5*)
5819 lt_cv_deplibs_check_method=pass_all
5820 ;;
5821
5822 rdos*)
5823 lt_cv_deplibs_check_method=pass_all
5824 ;;
5825
5826 solaris*)
5827 lt_cv_deplibs_check_method=pass_all
5828 ;;
5829
5830 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5831 lt_cv_deplibs_check_method=pass_all
5832 ;;
5833
5834 sysv4 | sysv4.3*)
5835 case $host_vendor in
5836 motorola)
5837 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]'
5838 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5839 ;;
5840 ncr)
5841 lt_cv_deplibs_check_method=pass_all
5842 ;;
5843 sequent)
5844 lt_cv_file_magic_cmd='/bin/file'
5845 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5846 ;;
5847 sni)
5848 lt_cv_file_magic_cmd='/bin/file'
5849 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5850 lt_cv_file_magic_test_file=/lib/libc.so
5851 ;;
5852 siemens)
5853 lt_cv_deplibs_check_method=pass_all
5854 ;;
5855 pc)
5856 lt_cv_deplibs_check_method=pass_all
5857 ;;
5858 esac
5859 ;;
5860
5861 tpf*)
5862 lt_cv_deplibs_check_method=pass_all
5863 ;;
5864 esac
5865
5866 fi
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5868 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5869 file_magic_cmd=$lt_cv_file_magic_cmd
5870 deplibs_check_method=$lt_cv_deplibs_check_method
5871 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884 if test -n "$ac_tool_prefix"; then
5885 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5886 set dummy ${ac_tool_prefix}ar; ac_word=$2
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888 $as_echo_n "checking for $ac_word... " >&6; }
5889 if ${ac_cv_prog_AR+:} false; then :
5890 $as_echo_n "(cached) " >&6
5891 else
5892 if test -n "$AR"; then
5893 ac_cv_prog_AR="$AR" # Let the user override the test.
5894 else
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5897 do
5898 IFS=$as_save_IFS
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902 ac_cv_prog_AR="${ac_tool_prefix}ar"
5903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 break 2
5905 fi
5906 done
5907 done
5908 IFS=$as_save_IFS
5909
5910 fi
5911 fi
5912 AR=$ac_cv_prog_AR
5913 if test -n "$AR"; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5915 $as_echo "$AR" >&6; }
5916 else
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918 $as_echo "no" >&6; }
5919 fi
5920
5921
5922 fi
5923 if test -z "$ac_cv_prog_AR"; then
5924 ac_ct_AR=$AR
5925 # Extract the first word of "ar", so it can be a program name with args.
5926 set dummy ar; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5932 if test -n "$ac_ct_AR"; then
5933 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938 IFS=$as_save_IFS
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942 ac_cv_prog_ac_ct_AR="ar"
5943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 break 2
5945 fi
5946 done
5947 done
5948 IFS=$as_save_IFS
5949
5950 fi
5951 fi
5952 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5953 if test -n "$ac_ct_AR"; then
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5955 $as_echo "$ac_ct_AR" >&6; }
5956 else
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5959 fi
5960
5961 if test "x$ac_ct_AR" = x; then
5962 AR="false"
5963 else
5964 case $cross_compiling:$ac_tool_warned in
5965 yes:)
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5968 ac_tool_warned=yes ;;
5969 esac
5970 AR=$ac_ct_AR
5971 fi
5972 else
5973 AR="$ac_cv_prog_AR"
5974 fi
5975
5976 test -z "$AR" && AR=ar
5977 test -z "$AR_FLAGS" && AR_FLAGS=cru
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989 if test -n "$ac_tool_prefix"; then
5990 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5991 set dummy ${ac_tool_prefix}strip; ac_word=$2
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5993 $as_echo_n "checking for $ac_word... " >&6; }
5994 if ${ac_cv_prog_STRIP+:} false; then :
5995 $as_echo_n "(cached) " >&6
5996 else
5997 if test -n "$STRIP"; then
5998 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5999 else
6000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 for as_dir in $PATH
6002 do
6003 IFS=$as_save_IFS
6004 test -z "$as_dir" && as_dir=.
6005 for ac_exec_ext in '' $ac_executable_extensions; do
6006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6007 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6009 break 2
6010 fi
6011 done
6012 done
6013 IFS=$as_save_IFS
6014
6015 fi
6016 fi
6017 STRIP=$ac_cv_prog_STRIP
6018 if test -n "$STRIP"; then
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6020 $as_echo "$STRIP" >&6; }
6021 else
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023 $as_echo "no" >&6; }
6024 fi
6025
6026
6027 fi
6028 if test -z "$ac_cv_prog_STRIP"; then
6029 ac_ct_STRIP=$STRIP
6030 # Extract the first word of "strip", so it can be a program name with args.
6031 set dummy strip; ac_word=$2
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6033 $as_echo_n "checking for $ac_word... " >&6; }
6034 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6035 $as_echo_n "(cached) " >&6
6036 else
6037 if test -n "$ac_ct_STRIP"; then
6038 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6039 else
6040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041 for as_dir in $PATH
6042 do
6043 IFS=$as_save_IFS
6044 test -z "$as_dir" && as_dir=.
6045 for ac_exec_ext in '' $ac_executable_extensions; do
6046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6047 ac_cv_prog_ac_ct_STRIP="strip"
6048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6049 break 2
6050 fi
6051 done
6052 done
6053 IFS=$as_save_IFS
6054
6055 fi
6056 fi
6057 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6058 if test -n "$ac_ct_STRIP"; then
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6060 $as_echo "$ac_ct_STRIP" >&6; }
6061 else
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063 $as_echo "no" >&6; }
6064 fi
6065
6066 if test "x$ac_ct_STRIP" = x; then
6067 STRIP=":"
6068 else
6069 case $cross_compiling:$ac_tool_warned in
6070 yes:)
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6073 ac_tool_warned=yes ;;
6074 esac
6075 STRIP=$ac_ct_STRIP
6076 fi
6077 else
6078 STRIP="$ac_cv_prog_STRIP"
6079 fi
6080
6081 test -z "$STRIP" && STRIP=:
6082
6083
6084
6085
6086
6087
6088 if test -n "$ac_tool_prefix"; then
6089 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6090 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6092 $as_echo_n "checking for $ac_word... " >&6; }
6093 if ${ac_cv_prog_RANLIB+:} false; then :
6094 $as_echo_n "(cached) " >&6
6095 else
6096 if test -n "$RANLIB"; then
6097 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6098 else
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH
6101 do
6102 IFS=$as_save_IFS
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6106 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6108 break 2
6109 fi
6110 done
6111 done
6112 IFS=$as_save_IFS
6113
6114 fi
6115 fi
6116 RANLIB=$ac_cv_prog_RANLIB
6117 if test -n "$RANLIB"; then
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6119 $as_echo "$RANLIB" >&6; }
6120 else
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6122 $as_echo "no" >&6; }
6123 fi
6124
6125
6126 fi
6127 if test -z "$ac_cv_prog_RANLIB"; then
6128 ac_ct_RANLIB=$RANLIB
6129 # Extract the first word of "ranlib", so it can be a program name with args.
6130 set dummy ranlib; ac_word=$2
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6132 $as_echo_n "checking for $ac_word... " >&6; }
6133 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6134 $as_echo_n "(cached) " >&6
6135 else
6136 if test -n "$ac_ct_RANLIB"; then
6137 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6138 else
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 for as_dir in $PATH
6141 do
6142 IFS=$as_save_IFS
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6146 ac_cv_prog_ac_ct_RANLIB="ranlib"
6147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6148 break 2
6149 fi
6150 done
6151 done
6152 IFS=$as_save_IFS
6153
6154 fi
6155 fi
6156 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6157 if test -n "$ac_ct_RANLIB"; then
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6159 $as_echo "$ac_ct_RANLIB" >&6; }
6160 else
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6162 $as_echo "no" >&6; }
6163 fi
6164
6165 if test "x$ac_ct_RANLIB" = x; then
6166 RANLIB=":"
6167 else
6168 case $cross_compiling:$ac_tool_warned in
6169 yes:)
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6172 ac_tool_warned=yes ;;
6173 esac
6174 RANLIB=$ac_ct_RANLIB
6175 fi
6176 else
6177 RANLIB="$ac_cv_prog_RANLIB"
6178 fi
6179
6180 test -z "$RANLIB" && RANLIB=:
6181
6182
6183
6184
6185
6186
6187 # Determine commands to create old-style static archives.
6188 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6189 old_postinstall_cmds='chmod 644 $oldlib'
6190 old_postuninstall_cmds=
6191
6192 if test -n "$RANLIB"; then
6193 case $host_os in
6194 openbsd*)
6195 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6196 ;;
6197 *)
6198 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6199 ;;
6200 esac
6201 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6202 fi
6203
6204 case $host_os in
6205 darwin*)
6206 lock_old_archive_extraction=yes ;;
6207 *)
6208 lock_old_archive_extraction=no ;;
6209 esac
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249 # If no C compiler was specified, use CC.
6250 LTCC=${LTCC-"$CC"}
6251
6252 # If no C compiler flags were specified, use CFLAGS.
6253 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6254
6255 # Allow CC to be a program name with arguments.
6256 compiler=$CC
6257
6258
6259 # Check for command to grab the raw symbol name followed by C symbol from nm.
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6261 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6262 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6263 $as_echo_n "(cached) " >&6
6264 else
6265
6266 # These are sane defaults that work on at least a few old systems.
6267 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6268
6269 # Character class describing NM global symbol codes.
6270 symcode='[BCDEGRST]'
6271
6272 # Regexp to match symbols that can be accessed directly from C.
6273 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6274
6275 # Define system-specific variables.
6276 case $host_os in
6277 aix*)
6278 symcode='[BCDT]'
6279 ;;
6280 cygwin* | mingw* | pw32* | cegcc*)
6281 symcode='[ABCDGISTW]'
6282 ;;
6283 hpux*)
6284 if test "$host_cpu" = ia64; then
6285 symcode='[ABCDEGRST]'
6286 fi
6287 ;;
6288 irix* | nonstopux*)
6289 symcode='[BCDEGRST]'
6290 ;;
6291 osf*)
6292 symcode='[BCDEGQRST]'
6293 ;;
6294 solaris*)
6295 symcode='[BDRT]'
6296 ;;
6297 sco3.2v5*)
6298 symcode='[DT]'
6299 ;;
6300 sysv4.2uw2*)
6301 symcode='[DT]'
6302 ;;
6303 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6304 symcode='[ABDT]'
6305 ;;
6306 sysv4)
6307 symcode='[DFNSTU]'
6308 ;;
6309 esac
6310
6311 # If we're using GNU nm, then use its standard symbol codes.
6312 case `$NM -V 2>&1` in
6313 *GNU* | *'with BFD'*)
6314 symcode='[ABCDGIRSTW]' ;;
6315 esac
6316
6317 # Transform an extracted symbol line into a proper C declaration.
6318 # Some systems (esp. on ia64) link data and code symbols differently,
6319 # so use this general approach.
6320 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6321
6322 # Transform an extracted symbol line into symbol name and symbol address
6323 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6324 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'"
6325
6326 # Handle CRLF in mingw tool chain
6327 opt_cr=
6328 case $build_os in
6329 mingw*)
6330 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6331 ;;
6332 esac
6333
6334 # Try without a prefix underscore, then with it.
6335 for ac_symprfx in "" "_"; do
6336
6337 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6338 symxfrm="\\1 $ac_symprfx\\2 \\2"
6339
6340 # Write the raw and C identifiers.
6341 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6342 # Fake it for dumpbin and say T for any non-static function
6343 # and D for any global variable.
6344 # Also find C++ and __fastcall symbols from MSVC++,
6345 # which start with @ or ?.
6346 lt_cv_sys_global_symbol_pipe="$AWK '"\
6347 " {last_section=section; section=\$ 3};"\
6348 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6349 " \$ 0!~/External *\|/{next};"\
6350 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6351 " {if(hide[section]) next};"\
6352 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6353 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6354 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6355 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6356 " ' prfx=^$ac_symprfx"
6357 else
6358 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6359 fi
6360
6361 # Check to see that the pipe works correctly.
6362 pipe_works=no
6363
6364 rm -f conftest*
6365 cat > conftest.$ac_ext <<_LT_EOF
6366 #ifdef __cplusplus
6367 extern "C" {
6368 #endif
6369 char nm_test_var;
6370 void nm_test_func(void);
6371 void nm_test_func(void){}
6372 #ifdef __cplusplus
6373 }
6374 #endif
6375 int main(){nm_test_var='a';nm_test_func();return(0);}
6376 _LT_EOF
6377
6378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6379 (eval $ac_compile) 2>&5
6380 ac_status=$?
6381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6382 test $ac_status = 0; }; then
6383 # Now try to grab the symbols.
6384 nlist=conftest.nm
6385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6386 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6387 ac_status=$?
6388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6389 test $ac_status = 0; } && test -s "$nlist"; then
6390 # Try sorting and uniquifying the output.
6391 if sort "$nlist" | uniq > "$nlist"T; then
6392 mv -f "$nlist"T "$nlist"
6393 else
6394 rm -f "$nlist"T
6395 fi
6396
6397 # Make sure that we snagged all the symbols we need.
6398 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6399 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6400 cat <<_LT_EOF > conftest.$ac_ext
6401 #ifdef __cplusplus
6402 extern "C" {
6403 #endif
6404
6405 _LT_EOF
6406 # Now generate the symbol file.
6407 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6408
6409 cat <<_LT_EOF >> conftest.$ac_ext
6410
6411 /* The mapping between symbol names and symbols. */
6412 const struct {
6413 const char *name;
6414 void *address;
6415 }
6416 lt__PROGRAM__LTX_preloaded_symbols[] =
6417 {
6418 { "@PROGRAM@", (void *) 0 },
6419 _LT_EOF
6420 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6421 cat <<\_LT_EOF >> conftest.$ac_ext
6422 {0, (void *) 0}
6423 };
6424
6425 /* This works around a problem in FreeBSD linker */
6426 #ifdef FREEBSD_WORKAROUND
6427 static const void *lt_preloaded_setup() {
6428 return lt__PROGRAM__LTX_preloaded_symbols;
6429 }
6430 #endif
6431
6432 #ifdef __cplusplus
6433 }
6434 #endif
6435 _LT_EOF
6436 # Now try linking the two files.
6437 mv conftest.$ac_objext conftstm.$ac_objext
6438 lt_save_LIBS="$LIBS"
6439 lt_save_CFLAGS="$CFLAGS"
6440 LIBS="conftstm.$ac_objext"
6441 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6443 (eval $ac_link) 2>&5
6444 ac_status=$?
6445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6446 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6447 pipe_works=yes
6448 fi
6449 LIBS="$lt_save_LIBS"
6450 CFLAGS="$lt_save_CFLAGS"
6451 else
6452 echo "cannot find nm_test_func in $nlist" >&5
6453 fi
6454 else
6455 echo "cannot find nm_test_var in $nlist" >&5
6456 fi
6457 else
6458 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6459 fi
6460 else
6461 echo "$progname: failed program was:" >&5
6462 cat conftest.$ac_ext >&5
6463 fi
6464 rm -rf conftest* conftst*
6465
6466 # Do not use the global_symbol_pipe unless it works.
6467 if test "$pipe_works" = yes; then
6468 break
6469 else
6470 lt_cv_sys_global_symbol_pipe=
6471 fi
6472 done
6473
6474 fi
6475
6476 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6477 lt_cv_sys_global_symbol_to_cdecl=
6478 fi
6479 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6481 $as_echo "failed" >&6; }
6482 else
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6484 $as_echo "ok" >&6; }
6485 fi
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508 # Check whether --enable-libtool-lock was given.
6509 if test "${enable_libtool_lock+set}" = set; then :
6510 enableval=$enable_libtool_lock;
6511 fi
6512
6513 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6514
6515 # Some flags need to be propagated to the compiler or linker for good
6516 # libtool support.
6517 case $host in
6518 ia64-*-hpux*)
6519 # Find out which ABI we are using.
6520 echo 'int i;' > conftest.$ac_ext
6521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6522 (eval $ac_compile) 2>&5
6523 ac_status=$?
6524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6525 test $ac_status = 0; }; then
6526 case `/usr/bin/file conftest.$ac_objext` in
6527 *ELF-32*)
6528 HPUX_IA64_MODE="32"
6529 ;;
6530 *ELF-64*)
6531 HPUX_IA64_MODE="64"
6532 ;;
6533 esac
6534 fi
6535 rm -rf conftest*
6536 ;;
6537 *-*-irix6*)
6538 # Find out which ABI we are using.
6539 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6541 (eval $ac_compile) 2>&5
6542 ac_status=$?
6543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6544 test $ac_status = 0; }; then
6545 if test "$lt_cv_prog_gnu_ld" = yes; then
6546 case `/usr/bin/file conftest.$ac_objext` in
6547 *32-bit*)
6548 LD="${LD-ld} -melf32bsmip"
6549 ;;
6550 *N32*)
6551 LD="${LD-ld} -melf32bmipn32"
6552 ;;
6553 *64-bit*)
6554 LD="${LD-ld} -melf64bmip"
6555 ;;
6556 esac
6557 else
6558 case `/usr/bin/file conftest.$ac_objext` in
6559 *32-bit*)
6560 LD="${LD-ld} -32"
6561 ;;
6562 *N32*)
6563 LD="${LD-ld} -n32"
6564 ;;
6565 *64-bit*)
6566 LD="${LD-ld} -64"
6567 ;;
6568 esac
6569 fi
6570 fi
6571 rm -rf conftest*
6572 ;;
6573
6574 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6575 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6576 # Find out which ABI we are using.
6577 echo 'int i;' > conftest.$ac_ext
6578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6579 (eval $ac_compile) 2>&5
6580 ac_status=$?
6581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6582 test $ac_status = 0; }; then
6583 case `/usr/bin/file conftest.o` in
6584 *32-bit*)
6585 case $host in
6586 x86_64-*kfreebsd*-gnu)
6587 LD="${LD-ld} -m elf_i386_fbsd"
6588 ;;
6589 x86_64-*linux*)
6590 LD="${LD-ld} -m elf_i386"
6591 ;;
6592 ppc64-*linux*|powerpc64-*linux*)
6593 LD="${LD-ld} -m elf32ppclinux"
6594 ;;
6595 s390x-*linux*)
6596 LD="${LD-ld} -m elf_s390"
6597 ;;
6598 sparc64-*linux*)
6599 LD="${LD-ld} -m elf32_sparc"
6600 ;;
6601 esac
6602 ;;
6603 *64-bit*)
6604 case $host in
6605 x86_64-*kfreebsd*-gnu)
6606 LD="${LD-ld} -m elf_x86_64_fbsd"
6607 ;;
6608 x86_64-*linux*)
6609 LD="${LD-ld} -m elf_x86_64"
6610 ;;
6611 ppc*-*linux*|powerpc*-*linux*)
6612 LD="${LD-ld} -m elf64ppc"
6613 ;;
6614 s390*-*linux*|s390*-*tpf*)
6615 LD="${LD-ld} -m elf64_s390"
6616 ;;
6617 sparc*-*linux*)
6618 LD="${LD-ld} -m elf64_sparc"
6619 ;;
6620 esac
6621 ;;
6622 esac
6623 fi
6624 rm -rf conftest*
6625 ;;
6626
6627 *-*-sco3.2v5*)
6628 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6629 SAVE_CFLAGS="$CFLAGS"
6630 CFLAGS="$CFLAGS -belf"
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6632 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6633 if ${lt_cv_cc_needs_belf+:} false; then :
6634 $as_echo_n "(cached) " >&6
6635 else
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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6644
6645 int
6646 main ()
6647 {
6648
6649 ;
6650 return 0;
6651 }
6652 _ACEOF
6653 if ac_fn_c_try_link "$LINENO"; then :
6654 lt_cv_cc_needs_belf=yes
6655 else
6656 lt_cv_cc_needs_belf=no
6657 fi
6658 rm -f core conftest.err conftest.$ac_objext \
6659 conftest$ac_exeext conftest.$ac_ext
6660 ac_ext=c
6661 ac_cpp='$CPP $CPPFLAGS'
6662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6665
6666 fi
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6668 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6669 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6670 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6671 CFLAGS="$SAVE_CFLAGS"
6672 fi
6673 ;;
6674 sparc*-*solaris*)
6675 # Find out which ABI we are using.
6676 echo 'int i;' > conftest.$ac_ext
6677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6678 (eval $ac_compile) 2>&5
6679 ac_status=$?
6680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6681 test $ac_status = 0; }; then
6682 case `/usr/bin/file conftest.o` in
6683 *64-bit*)
6684 case $lt_cv_prog_gnu_ld in
6685 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6686 *)
6687 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6688 LD="${LD-ld} -64"
6689 fi
6690 ;;
6691 esac
6692 ;;
6693 esac
6694 fi
6695 rm -rf conftest*
6696 ;;
6697 esac
6698
6699 need_locks="$enable_libtool_lock"
6700
6701
6702 case $host_os in
6703 rhapsody* | darwin*)
6704 if test -n "$ac_tool_prefix"; then
6705 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6706 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708 $as_echo_n "checking for $ac_word... " >&6; }
6709 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6710 $as_echo_n "(cached) " >&6
6711 else
6712 if test -n "$DSYMUTIL"; then
6713 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6714 else
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 for as_dir in $PATH
6717 do
6718 IFS=$as_save_IFS
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6722 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 break 2
6725 fi
6726 done
6727 done
6728 IFS=$as_save_IFS
6729
6730 fi
6731 fi
6732 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6733 if test -n "$DSYMUTIL"; then
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6735 $as_echo "$DSYMUTIL" >&6; }
6736 else
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738 $as_echo "no" >&6; }
6739 fi
6740
6741
6742 fi
6743 if test -z "$ac_cv_prog_DSYMUTIL"; then
6744 ac_ct_DSYMUTIL=$DSYMUTIL
6745 # Extract the first word of "dsymutil", so it can be a program name with args.
6746 set dummy dsymutil; ac_word=$2
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748 $as_echo_n "checking for $ac_word... " >&6; }
6749 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6750 $as_echo_n "(cached) " >&6
6751 else
6752 if test -n "$ac_ct_DSYMUTIL"; then
6753 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6754 else
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 for as_dir in $PATH
6757 do
6758 IFS=$as_save_IFS
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6762 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 break 2
6765 fi
6766 done
6767 done
6768 IFS=$as_save_IFS
6769
6770 fi
6771 fi
6772 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6773 if test -n "$ac_ct_DSYMUTIL"; then
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6775 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6776 else
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778 $as_echo "no" >&6; }
6779 fi
6780
6781 if test "x$ac_ct_DSYMUTIL" = x; then
6782 DSYMUTIL=":"
6783 else
6784 case $cross_compiling:$ac_tool_warned in
6785 yes:)
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6788 ac_tool_warned=yes ;;
6789 esac
6790 DSYMUTIL=$ac_ct_DSYMUTIL
6791 fi
6792 else
6793 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6794 fi
6795
6796 if test -n "$ac_tool_prefix"; then
6797 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6798 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800 $as_echo_n "checking for $ac_word... " >&6; }
6801 if ${ac_cv_prog_NMEDIT+:} false; then :
6802 $as_echo_n "(cached) " >&6
6803 else
6804 if test -n "$NMEDIT"; then
6805 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6806 else
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 for as_dir in $PATH
6809 do
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6814 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6817 fi
6818 done
6819 done
6820 IFS=$as_save_IFS
6821
6822 fi
6823 fi
6824 NMEDIT=$ac_cv_prog_NMEDIT
6825 if test -n "$NMEDIT"; then
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6827 $as_echo "$NMEDIT" >&6; }
6828 else
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830 $as_echo "no" >&6; }
6831 fi
6832
6833
6834 fi
6835 if test -z "$ac_cv_prog_NMEDIT"; then
6836 ac_ct_NMEDIT=$NMEDIT
6837 # Extract the first word of "nmedit", so it can be a program name with args.
6838 set dummy nmedit; ac_word=$2
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840 $as_echo_n "checking for $ac_word... " >&6; }
6841 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6842 $as_echo_n "(cached) " >&6
6843 else
6844 if test -n "$ac_ct_NMEDIT"; then
6845 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6846 else
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 for as_dir in $PATH
6849 do
6850 IFS=$as_save_IFS
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6854 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 break 2
6857 fi
6858 done
6859 done
6860 IFS=$as_save_IFS
6861
6862 fi
6863 fi
6864 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6865 if test -n "$ac_ct_NMEDIT"; then
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6867 $as_echo "$ac_ct_NMEDIT" >&6; }
6868 else
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870 $as_echo "no" >&6; }
6871 fi
6872
6873 if test "x$ac_ct_NMEDIT" = x; then
6874 NMEDIT=":"
6875 else
6876 case $cross_compiling:$ac_tool_warned in
6877 yes:)
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6880 ac_tool_warned=yes ;;
6881 esac
6882 NMEDIT=$ac_ct_NMEDIT
6883 fi
6884 else
6885 NMEDIT="$ac_cv_prog_NMEDIT"
6886 fi
6887
6888 if test -n "$ac_tool_prefix"; then
6889 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6890 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892 $as_echo_n "checking for $ac_word... " >&6; }
6893 if ${ac_cv_prog_LIPO+:} false; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 if test -n "$LIPO"; then
6897 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6898 else
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6901 do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6906 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6909 fi
6910 done
6911 done
6912 IFS=$as_save_IFS
6913
6914 fi
6915 fi
6916 LIPO=$ac_cv_prog_LIPO
6917 if test -n "$LIPO"; then
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6919 $as_echo "$LIPO" >&6; }
6920 else
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922 $as_echo "no" >&6; }
6923 fi
6924
6925
6926 fi
6927 if test -z "$ac_cv_prog_LIPO"; then
6928 ac_ct_LIPO=$LIPO
6929 # Extract the first word of "lipo", so it can be a program name with args.
6930 set dummy lipo; ac_word=$2
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 $as_echo_n "checking for $ac_word... " >&6; }
6933 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 if test -n "$ac_ct_LIPO"; then
6937 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6938 else
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in $PATH
6941 do
6942 IFS=$as_save_IFS
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6946 ac_cv_prog_ac_ct_LIPO="lipo"
6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 break 2
6949 fi
6950 done
6951 done
6952 IFS=$as_save_IFS
6953
6954 fi
6955 fi
6956 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6957 if test -n "$ac_ct_LIPO"; then
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6959 $as_echo "$ac_ct_LIPO" >&6; }
6960 else
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962 $as_echo "no" >&6; }
6963 fi
6964
6965 if test "x$ac_ct_LIPO" = x; then
6966 LIPO=":"
6967 else
6968 case $cross_compiling:$ac_tool_warned in
6969 yes:)
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6972 ac_tool_warned=yes ;;
6973 esac
6974 LIPO=$ac_ct_LIPO
6975 fi
6976 else
6977 LIPO="$ac_cv_prog_LIPO"
6978 fi
6979
6980 if test -n "$ac_tool_prefix"; then
6981 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6982 set dummy ${ac_tool_prefix}otool; ac_word=$2
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984 $as_echo_n "checking for $ac_word... " >&6; }
6985 if ${ac_cv_prog_OTOOL+:} false; then :
6986 $as_echo_n "(cached) " >&6
6987 else
6988 if test -n "$OTOOL"; then
6989 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6990 else
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 for as_dir in $PATH
6993 do
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6998 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 break 2
7001 fi
7002 done
7003 done
7004 IFS=$as_save_IFS
7005
7006 fi
7007 fi
7008 OTOOL=$ac_cv_prog_OTOOL
7009 if test -n "$OTOOL"; then
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7011 $as_echo "$OTOOL" >&6; }
7012 else
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014 $as_echo "no" >&6; }
7015 fi
7016
7017
7018 fi
7019 if test -z "$ac_cv_prog_OTOOL"; then
7020 ac_ct_OTOOL=$OTOOL
7021 # Extract the first word of "otool", so it can be a program name with args.
7022 set dummy otool; ac_word=$2
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024 $as_echo_n "checking for $ac_word... " >&6; }
7025 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7026 $as_echo_n "(cached) " >&6
7027 else
7028 if test -n "$ac_ct_OTOOL"; then
7029 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7030 else
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 for as_dir in $PATH
7033 do
7034 IFS=$as_save_IFS
7035 test -z "$as_dir" && as_dir=.
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7038 ac_cv_prog_ac_ct_OTOOL="otool"
7039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040 break 2
7041 fi
7042 done
7043 done
7044 IFS=$as_save_IFS
7045
7046 fi
7047 fi
7048 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7049 if test -n "$ac_ct_OTOOL"; then
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7051 $as_echo "$ac_ct_OTOOL" >&6; }
7052 else
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054 $as_echo "no" >&6; }
7055 fi
7056
7057 if test "x$ac_ct_OTOOL" = x; then
7058 OTOOL=":"
7059 else
7060 case $cross_compiling:$ac_tool_warned in
7061 yes:)
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7064 ac_tool_warned=yes ;;
7065 esac
7066 OTOOL=$ac_ct_OTOOL
7067 fi
7068 else
7069 OTOOL="$ac_cv_prog_OTOOL"
7070 fi
7071
7072 if test -n "$ac_tool_prefix"; then
7073 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7074 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076 $as_echo_n "checking for $ac_word... " >&6; }
7077 if ${ac_cv_prog_OTOOL64+:} false; then :
7078 $as_echo_n "(cached) " >&6
7079 else
7080 if test -n "$OTOOL64"; then
7081 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7082 else
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 for as_dir in $PATH
7085 do
7086 IFS=$as_save_IFS
7087 test -z "$as_dir" && as_dir=.
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7090 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 break 2
7093 fi
7094 done
7095 done
7096 IFS=$as_save_IFS
7097
7098 fi
7099 fi
7100 OTOOL64=$ac_cv_prog_OTOOL64
7101 if test -n "$OTOOL64"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7103 $as_echo "$OTOOL64" >&6; }
7104 else
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106 $as_echo "no" >&6; }
7107 fi
7108
7109
7110 fi
7111 if test -z "$ac_cv_prog_OTOOL64"; then
7112 ac_ct_OTOOL64=$OTOOL64
7113 # Extract the first word of "otool64", so it can be a program name with args.
7114 set dummy otool64; ac_word=$2
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7116 $as_echo_n "checking for $ac_word... " >&6; }
7117 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7118 $as_echo_n "(cached) " >&6
7119 else
7120 if test -n "$ac_ct_OTOOL64"; then
7121 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7122 else
7123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 for as_dir in $PATH
7125 do
7126 IFS=$as_save_IFS
7127 test -z "$as_dir" && as_dir=.
7128 for ac_exec_ext in '' $ac_executable_extensions; do
7129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7130 ac_cv_prog_ac_ct_OTOOL64="otool64"
7131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 break 2
7133 fi
7134 done
7135 done
7136 IFS=$as_save_IFS
7137
7138 fi
7139 fi
7140 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7141 if test -n "$ac_ct_OTOOL64"; then
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7143 $as_echo "$ac_ct_OTOOL64" >&6; }
7144 else
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146 $as_echo "no" >&6; }
7147 fi
7148
7149 if test "x$ac_ct_OTOOL64" = x; then
7150 OTOOL64=":"
7151 else
7152 case $cross_compiling:$ac_tool_warned in
7153 yes:)
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7156 ac_tool_warned=yes ;;
7157 esac
7158 OTOOL64=$ac_ct_OTOOL64
7159 fi
7160 else
7161 OTOOL64="$ac_cv_prog_OTOOL64"
7162 fi
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7191 $as_echo_n "checking for -single_module linker flag... " >&6; }
7192 if ${lt_cv_apple_cc_single_mod+:} false; then :
7193 $as_echo_n "(cached) " >&6
7194 else
7195 lt_cv_apple_cc_single_mod=no
7196 if test -z "${LT_MULTI_MODULE}"; then
7197 # By default we will add the -single_module flag. You can override
7198 # by either setting the environment variable LT_MULTI_MODULE
7199 # non-empty at configure time, or by adding -multi_module to the
7200 # link flags.
7201 rm -rf libconftest.dylib*
7202 echo "int foo(void){return 1;}" > conftest.c
7203 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7204 -dynamiclib -Wl,-single_module conftest.c" >&5
7205 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7206 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7207 _lt_result=$?
7208 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7209 lt_cv_apple_cc_single_mod=yes
7210 else
7211 cat conftest.err >&5
7212 fi
7213 rm -rf libconftest.dylib*
7214 rm -f conftest.*
7215 fi
7216 fi
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7218 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7220 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7221 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7222 $as_echo_n "(cached) " >&6
7223 else
7224 lt_cv_ld_exported_symbols_list=no
7225 save_LDFLAGS=$LDFLAGS
7226 echo "_main" > conftest.sym
7227 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7230
7231 int
7232 main ()
7233 {
7234
7235 ;
7236 return 0;
7237 }
7238 _ACEOF
7239 if ac_fn_c_try_link "$LINENO"; then :
7240 lt_cv_ld_exported_symbols_list=yes
7241 else
7242 lt_cv_ld_exported_symbols_list=no
7243 fi
7244 rm -f core conftest.err conftest.$ac_objext \
7245 conftest$ac_exeext conftest.$ac_ext
7246 LDFLAGS="$save_LDFLAGS"
7247
7248 fi
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7250 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7252 $as_echo_n "checking for -force_load linker flag... " >&6; }
7253 if ${lt_cv_ld_force_load+:} false; then :
7254 $as_echo_n "(cached) " >&6
7255 else
7256 lt_cv_ld_force_load=no
7257 cat > conftest.c << _LT_EOF
7258 int forced_loaded() { return 2;}
7259 _LT_EOF
7260 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7261 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7262 echo "$AR cru libconftest.a conftest.o" >&5
7263 $AR cru libconftest.a conftest.o 2>&5
7264 echo "$RANLIB libconftest.a" >&5
7265 $RANLIB libconftest.a 2>&5
7266 cat > conftest.c << _LT_EOF
7267 int main() { return 0;}
7268 _LT_EOF
7269 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7270 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7271 _lt_result=$?
7272 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7273 lt_cv_ld_force_load=yes
7274 else
7275 cat conftest.err >&5
7276 fi
7277 rm -f conftest.err libconftest.a conftest conftest.c
7278 rm -rf conftest.dSYM
7279
7280 fi
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7282 $as_echo "$lt_cv_ld_force_load" >&6; }
7283 case $host_os in
7284 rhapsody* | darwin1.[012])
7285 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7286 darwin1.*)
7287 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7288 darwin*) # darwin 5.x on
7289 # if running on 10.5 or later, the deployment target defaults
7290 # to the OS version, if on x86, and 10.4, the deployment
7291 # target defaults to 10.4. Don't you love it?
7292 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7293 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7294 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7295 10.[012]*)
7296 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7297 10.*)
7298 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7299 esac
7300 ;;
7301 esac
7302 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7303 _lt_dar_single_mod='$single_module'
7304 fi
7305 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7306 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7307 else
7308 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7309 fi
7310 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7311 _lt_dsymutil='~$DSYMUTIL $lib || :'
7312 else
7313 _lt_dsymutil=
7314 fi
7315 ;;
7316 esac
7317
7318 for ac_header in dlfcn.h
7319 do :
7320 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7321 "
7322 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7323 cat >>confdefs.h <<_ACEOF
7324 #define HAVE_DLFCN_H 1
7325 _ACEOF
7326
7327 fi
7328
7329 done
7330
7331
7332
7333
7334
7335 # Set options
7336
7337
7338
7339 enable_dlopen=no
7340
7341
7342 enable_win32_dll=no
7343
7344
7345 # Check whether --enable-shared was given.
7346 if test "${enable_shared+set}" = set; then :
7347 enableval=$enable_shared; p=${PACKAGE-default}
7348 case $enableval in
7349 yes) enable_shared=yes ;;
7350 no) enable_shared=no ;;
7351 *)
7352 enable_shared=no
7353 # Look at the argument we got. We use all the common list separators.
7354 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7355 for pkg in $enableval; do
7356 IFS="$lt_save_ifs"
7357 if test "X$pkg" = "X$p"; then
7358 enable_shared=yes
7359 fi
7360 done
7361 IFS="$lt_save_ifs"
7362 ;;
7363 esac
7364 else
7365 enable_shared=yes
7366 fi
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376 # Check whether --enable-static was given.
7377 if test "${enable_static+set}" = set; then :
7378 enableval=$enable_static; p=${PACKAGE-default}
7379 case $enableval in
7380 yes) enable_static=yes ;;
7381 no) enable_static=no ;;
7382 *)
7383 enable_static=no
7384 # Look at the argument we got. We use all the common list separators.
7385 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7386 for pkg in $enableval; do
7387 IFS="$lt_save_ifs"
7388 if test "X$pkg" = "X$p"; then
7389 enable_static=yes
7390 fi
7391 done
7392 IFS="$lt_save_ifs"
7393 ;;
7394 esac
7395 else
7396 enable_static=yes
7397 fi
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408 # Check whether --with-pic was given.
7409 if test "${with_pic+set}" = set; then :
7410 withval=$with_pic; pic_mode="$withval"
7411 else
7412 pic_mode=default
7413 fi
7414
7415
7416 test -z "$pic_mode" && pic_mode=default
7417
7418
7419
7420
7421
7422
7423
7424 # Check whether --enable-fast-install was given.
7425 if test "${enable_fast_install+set}" = set; then :
7426 enableval=$enable_fast_install; p=${PACKAGE-default}
7427 case $enableval in
7428 yes) enable_fast_install=yes ;;
7429 no) enable_fast_install=no ;;
7430 *)
7431 enable_fast_install=no
7432 # Look at the argument we got. We use all the common list separators.
7433 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7434 for pkg in $enableval; do
7435 IFS="$lt_save_ifs"
7436 if test "X$pkg" = "X$p"; then
7437 enable_fast_install=yes
7438 fi
7439 done
7440 IFS="$lt_save_ifs"
7441 ;;
7442 esac
7443 else
7444 enable_fast_install=yes
7445 fi
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457 # This can be used to rebuild libtool when needed
7458 LIBTOOL_DEPS="$ltmain"
7459
7460 # Always use our own libtool.
7461 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488 test -z "$LN_S" && LN_S="ln -s"
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503 if test -n "${ZSH_VERSION+set}" ; then
7504 setopt NO_GLOB_SUBST
7505 fi
7506
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7508 $as_echo_n "checking for objdir... " >&6; }
7509 if ${lt_cv_objdir+:} false; then :
7510 $as_echo_n "(cached) " >&6
7511 else
7512 rm -f .libs 2>/dev/null
7513 mkdir .libs 2>/dev/null
7514 if test -d .libs; then
7515 lt_cv_objdir=.libs
7516 else
7517 # MS-DOS does not allow filenames that begin with a dot.
7518 lt_cv_objdir=_libs
7519 fi
7520 rmdir .libs 2>/dev/null
7521 fi
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7523 $as_echo "$lt_cv_objdir" >&6; }
7524 objdir=$lt_cv_objdir
7525
7526
7527
7528
7529
7530 cat >>confdefs.h <<_ACEOF
7531 #define LT_OBJDIR "$lt_cv_objdir/"
7532 _ACEOF
7533
7534
7535
7536
7537 case $host_os in
7538 aix3*)
7539 # AIX sometimes has problems with the GCC collect2 program. For some
7540 # reason, if we set the COLLECT_NAMES environment variable, the problems
7541 # vanish in a puff of smoke.
7542 if test "X${COLLECT_NAMES+set}" != Xset; then
7543 COLLECT_NAMES=
7544 export COLLECT_NAMES
7545 fi
7546 ;;
7547 esac
7548
7549 # Global variables:
7550 ofile=libtool
7551 can_build_shared=yes
7552
7553 # All known linkers require a `.a' archive for static linking (except MSVC,
7554 # which needs '.lib').
7555 libext=a
7556
7557 with_gnu_ld="$lt_cv_prog_gnu_ld"
7558
7559 old_CC="$CC"
7560 old_CFLAGS="$CFLAGS"
7561
7562 # Set sane defaults for various variables
7563 test -z "$CC" && CC=cc
7564 test -z "$LTCC" && LTCC=$CC
7565 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7566 test -z "$LD" && LD=ld
7567 test -z "$ac_objext" && ac_objext=o
7568
7569 for cc_temp in $compiler""; do
7570 case $cc_temp in
7571 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7572 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7573 \-*) ;;
7574 *) break;;
7575 esac
7576 done
7577 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7578
7579
7580 # Only perform the check for file, if the check method requires it
7581 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7582 case $deplibs_check_method in
7583 file_magic*)
7584 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7586 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7587 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7588 $as_echo_n "(cached) " >&6
7589 else
7590 case $MAGIC_CMD in
7591 [\\/*] | ?:[\\/]*)
7592 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7593 ;;
7594 *)
7595 lt_save_MAGIC_CMD="$MAGIC_CMD"
7596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7597 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7598 for ac_dir in $ac_dummy; do
7599 IFS="$lt_save_ifs"
7600 test -z "$ac_dir" && ac_dir=.
7601 if test -f $ac_dir/${ac_tool_prefix}file; then
7602 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7603 if test -n "$file_magic_test_file"; then
7604 case $deplibs_check_method in
7605 "file_magic "*)
7606 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7607 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7608 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7609 $EGREP "$file_magic_regex" > /dev/null; then
7610 :
7611 else
7612 cat <<_LT_EOF 1>&2
7613
7614 *** Warning: the command libtool uses to detect shared libraries,
7615 *** $file_magic_cmd, produces output that libtool cannot recognize.
7616 *** The result is that libtool may fail to recognize shared libraries
7617 *** as such. This will affect the creation of libtool libraries that
7618 *** depend on shared libraries, but programs linked with such libtool
7619 *** libraries will work regardless of this problem. Nevertheless, you
7620 *** may want to report the problem to your system manager and/or to
7621 *** bug-libtool@gnu.org
7622
7623 _LT_EOF
7624 fi ;;
7625 esac
7626 fi
7627 break
7628 fi
7629 done
7630 IFS="$lt_save_ifs"
7631 MAGIC_CMD="$lt_save_MAGIC_CMD"
7632 ;;
7633 esac
7634 fi
7635
7636 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7637 if test -n "$MAGIC_CMD"; then
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7639 $as_echo "$MAGIC_CMD" >&6; }
7640 else
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642 $as_echo "no" >&6; }
7643 fi
7644
7645
7646
7647
7648
7649 if test -z "$lt_cv_path_MAGIC_CMD"; then
7650 if test -n "$ac_tool_prefix"; then
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7652 $as_echo_n "checking for file... " >&6; }
7653 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7654 $as_echo_n "(cached) " >&6
7655 else
7656 case $MAGIC_CMD in
7657 [\\/*] | ?:[\\/]*)
7658 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7659 ;;
7660 *)
7661 lt_save_MAGIC_CMD="$MAGIC_CMD"
7662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7663 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7664 for ac_dir in $ac_dummy; do
7665 IFS="$lt_save_ifs"
7666 test -z "$ac_dir" && ac_dir=.
7667 if test -f $ac_dir/file; then
7668 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7669 if test -n "$file_magic_test_file"; then
7670 case $deplibs_check_method in
7671 "file_magic "*)
7672 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7673 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7674 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7675 $EGREP "$file_magic_regex" > /dev/null; then
7676 :
7677 else
7678 cat <<_LT_EOF 1>&2
7679
7680 *** Warning: the command libtool uses to detect shared libraries,
7681 *** $file_magic_cmd, produces output that libtool cannot recognize.
7682 *** The result is that libtool may fail to recognize shared libraries
7683 *** as such. This will affect the creation of libtool libraries that
7684 *** depend on shared libraries, but programs linked with such libtool
7685 *** libraries will work regardless of this problem. Nevertheless, you
7686 *** may want to report the problem to your system manager and/or to
7687 *** bug-libtool@gnu.org
7688
7689 _LT_EOF
7690 fi ;;
7691 esac
7692 fi
7693 break
7694 fi
7695 done
7696 IFS="$lt_save_ifs"
7697 MAGIC_CMD="$lt_save_MAGIC_CMD"
7698 ;;
7699 esac
7700 fi
7701
7702 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7703 if test -n "$MAGIC_CMD"; then
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7705 $as_echo "$MAGIC_CMD" >&6; }
7706 else
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7709 fi
7710
7711
7712 else
7713 MAGIC_CMD=:
7714 fi
7715 fi
7716
7717 fi
7718 ;;
7719 esac
7720
7721 # Use C for the default configuration in the libtool script
7722
7723 lt_save_CC="$CC"
7724 ac_ext=c
7725 ac_cpp='$CPP $CPPFLAGS'
7726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7729
7730
7731 # Source file extension for C test sources.
7732 ac_ext=c
7733
7734 # Object file extension for compiled C test sources.
7735 objext=o
7736 objext=$objext
7737
7738 # Code to be used in simple compile tests
7739 lt_simple_compile_test_code="int some_variable = 0;"
7740
7741 # Code to be used in simple link tests
7742 lt_simple_link_test_code='int main(){return(0);}'
7743
7744
7745
7746
7747
7748
7749
7750 # If no C compiler was specified, use CC.
7751 LTCC=${LTCC-"$CC"}
7752
7753 # If no C compiler flags were specified, use CFLAGS.
7754 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7755
7756 # Allow CC to be a program name with arguments.
7757 compiler=$CC
7758
7759 # Save the default compiler, since it gets overwritten when the other
7760 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7761 compiler_DEFAULT=$CC
7762
7763 # save warnings/boilerplate of simple test code
7764 ac_outfile=conftest.$ac_objext
7765 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7766 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7767 _lt_compiler_boilerplate=`cat conftest.err`
7768 $RM conftest*
7769
7770 ac_outfile=conftest.$ac_objext
7771 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7772 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7773 _lt_linker_boilerplate=`cat conftest.err`
7774 $RM -r conftest*
7775
7776
7777 if test -n "$compiler"; then
7778
7779 lt_prog_compiler_no_builtin_flag=
7780
7781 if test "$GCC" = yes; then
7782 case $cc_basename in
7783 nvcc*)
7784 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7785 *)
7786 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7787 esac
7788
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7790 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7791 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7792 $as_echo_n "(cached) " >&6
7793 else
7794 lt_cv_prog_compiler_rtti_exceptions=no
7795 ac_outfile=conftest.$ac_objext
7796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7797 lt_compiler_flag="-fno-rtti -fno-exceptions"
7798 # Insert the option either (1) after the last *FLAGS variable, or
7799 # (2) before a word containing "conftest.", or (3) at the end.
7800 # Note that $ac_compile itself does not contain backslashes and begins
7801 # with a dollar sign (not a hyphen), so the echo should work correctly.
7802 # The option is referenced via a variable to avoid confusing sed.
7803 lt_compile=`echo "$ac_compile" | $SED \
7804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7806 -e 's:$: $lt_compiler_flag:'`
7807 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7808 (eval "$lt_compile" 2>conftest.err)
7809 ac_status=$?
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 if (exit $ac_status) && test -s "$ac_outfile"; then
7813 # The compiler can only warn and ignore the option if not recognized
7814 # So say no if there are warnings other than the usual output.
7815 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7816 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7817 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7818 lt_cv_prog_compiler_rtti_exceptions=yes
7819 fi
7820 fi
7821 $RM conftest*
7822
7823 fi
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7825 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7826
7827 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7828 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7829 else
7830 :
7831 fi
7832
7833 fi
7834
7835
7836
7837
7838
7839
7840 lt_prog_compiler_wl=
7841 lt_prog_compiler_pic=
7842 lt_prog_compiler_static=
7843
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7845 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7846
7847 if test "$GCC" = yes; then
7848 lt_prog_compiler_wl='-Wl,'
7849 lt_prog_compiler_static='-static'
7850
7851 case $host_os in
7852 aix*)
7853 # All AIX code is PIC.
7854 if test "$host_cpu" = ia64; then
7855 # AIX 5 now supports IA64 processor
7856 lt_prog_compiler_static='-Bstatic'
7857 fi
7858 ;;
7859
7860 amigaos*)
7861 case $host_cpu in
7862 powerpc)
7863 # see comment about AmigaOS4 .so support
7864 lt_prog_compiler_pic='-fPIC'
7865 ;;
7866 m68k)
7867 # FIXME: we need at least 68020 code to build shared libraries, but
7868 # adding the `-m68020' flag to GCC prevents building anything better,
7869 # like `-m68040'.
7870 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7871 ;;
7872 esac
7873 ;;
7874
7875 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7876 # PIC is the default for these OSes.
7877 ;;
7878
7879 mingw* | cygwin* | pw32* | os2* | cegcc*)
7880 # This hack is so that the source file can tell whether it is being
7881 # built for inclusion in a dll (and should export symbols for example).
7882 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7883 # (--disable-auto-import) libraries
7884 lt_prog_compiler_pic='-DDLL_EXPORT'
7885 ;;
7886
7887 darwin* | rhapsody*)
7888 # PIC is the default on this platform
7889 # Common symbols not allowed in MH_DYLIB files
7890 lt_prog_compiler_pic='-fno-common'
7891 ;;
7892
7893 haiku*)
7894 # PIC is the default for Haiku.
7895 # The "-static" flag exists, but is broken.
7896 lt_prog_compiler_static=
7897 ;;
7898
7899 hpux*)
7900 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7901 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7902 # sets the default TLS model and affects inlining.
7903 case $host_cpu in
7904 hppa*64*)
7905 # +Z the default
7906 ;;
7907 *)
7908 lt_prog_compiler_pic='-fPIC'
7909 ;;
7910 esac
7911 ;;
7912
7913 interix[3-9]*)
7914 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7915 # Instead, we relocate shared libraries at runtime.
7916 ;;
7917
7918 msdosdjgpp*)
7919 # Just because we use GCC doesn't mean we suddenly get shared libraries
7920 # on systems that don't support them.
7921 lt_prog_compiler_can_build_shared=no
7922 enable_shared=no
7923 ;;
7924
7925 *nto* | *qnx*)
7926 # QNX uses GNU C++, but need to define -shared option too, otherwise
7927 # it will coredump.
7928 lt_prog_compiler_pic='-fPIC -shared'
7929 ;;
7930
7931 sysv4*MP*)
7932 if test -d /usr/nec; then
7933 lt_prog_compiler_pic=-Kconform_pic
7934 fi
7935 ;;
7936
7937 *)
7938 lt_prog_compiler_pic='-fPIC'
7939 ;;
7940 esac
7941
7942 case $cc_basename in
7943 nvcc*) # Cuda Compiler Driver 2.2
7944 lt_prog_compiler_wl='-Xlinker '
7945 lt_prog_compiler_pic='-Xcompiler -fPIC'
7946 ;;
7947 esac
7948 else
7949 # PORTME Check for flag to pass linker flags through the system compiler.
7950 case $host_os in
7951 aix*)
7952 lt_prog_compiler_wl='-Wl,'
7953 if test "$host_cpu" = ia64; then
7954 # AIX 5 now supports IA64 processor
7955 lt_prog_compiler_static='-Bstatic'
7956 else
7957 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7958 fi
7959 ;;
7960
7961 mingw* | cygwin* | pw32* | os2* | cegcc*)
7962 # This hack is so that the source file can tell whether it is being
7963 # built for inclusion in a dll (and should export symbols for example).
7964 lt_prog_compiler_pic='-DDLL_EXPORT'
7965 ;;
7966
7967 hpux9* | hpux10* | hpux11*)
7968 lt_prog_compiler_wl='-Wl,'
7969 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7970 # not for PA HP-UX.
7971 case $host_cpu in
7972 hppa*64*|ia64*)
7973 # +Z the default
7974 ;;
7975 *)
7976 lt_prog_compiler_pic='+Z'
7977 ;;
7978 esac
7979 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7980 lt_prog_compiler_static='${wl}-a ${wl}archive'
7981 ;;
7982
7983 irix5* | irix6* | nonstopux*)
7984 lt_prog_compiler_wl='-Wl,'
7985 # PIC (with -KPIC) is the default.
7986 lt_prog_compiler_static='-non_shared'
7987 ;;
7988
7989 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7990 case $cc_basename in
7991 # old Intel for x86_64 which still supported -KPIC.
7992 ecc*)
7993 lt_prog_compiler_wl='-Wl,'
7994 lt_prog_compiler_pic='-KPIC'
7995 lt_prog_compiler_static='-static'
7996 ;;
7997 # icc used to be incompatible with GCC.
7998 # ICC 10 doesn't accept -KPIC any more.
7999 icc* | ifort*)
8000 lt_prog_compiler_wl='-Wl,'
8001 lt_prog_compiler_pic='-fPIC'
8002 lt_prog_compiler_static='-static'
8003 ;;
8004 # Lahey Fortran 8.1.
8005 lf95*)
8006 lt_prog_compiler_wl='-Wl,'
8007 lt_prog_compiler_pic='--shared'
8008 lt_prog_compiler_static='--static'
8009 ;;
8010 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8011 # Portland Group compilers (*not* the Pentium gcc compiler,
8012 # which looks to be a dead project)
8013 lt_prog_compiler_wl='-Wl,'
8014 lt_prog_compiler_pic='-fpic'
8015 lt_prog_compiler_static='-Bstatic'
8016 ;;
8017 ccc*)
8018 lt_prog_compiler_wl='-Wl,'
8019 # All Alpha code is PIC.
8020 lt_prog_compiler_static='-non_shared'
8021 ;;
8022 xl* | bgxl* | bgf* | mpixl*)
8023 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8024 lt_prog_compiler_wl='-Wl,'
8025 lt_prog_compiler_pic='-qpic'
8026 lt_prog_compiler_static='-qstaticlink'
8027 ;;
8028 *)
8029 case `$CC -V 2>&1 | sed 5q` in
8030 *Sun\ F* | *Sun*Fortran*)
8031 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8032 lt_prog_compiler_pic='-KPIC'
8033 lt_prog_compiler_static='-Bstatic'
8034 lt_prog_compiler_wl=''
8035 ;;
8036 *Sun\ C*)
8037 # Sun C 5.9
8038 lt_prog_compiler_pic='-KPIC'
8039 lt_prog_compiler_static='-Bstatic'
8040 lt_prog_compiler_wl='-Wl,'
8041 ;;
8042 esac
8043 ;;
8044 esac
8045 ;;
8046
8047 newsos6)
8048 lt_prog_compiler_pic='-KPIC'
8049 lt_prog_compiler_static='-Bstatic'
8050 ;;
8051
8052 *nto* | *qnx*)
8053 # QNX uses GNU C++, but need to define -shared option too, otherwise
8054 # it will coredump.
8055 lt_prog_compiler_pic='-fPIC -shared'
8056 ;;
8057
8058 osf3* | osf4* | osf5*)
8059 lt_prog_compiler_wl='-Wl,'
8060 # All OSF/1 code is PIC.
8061 lt_prog_compiler_static='-non_shared'
8062 ;;
8063
8064 rdos*)
8065 lt_prog_compiler_static='-non_shared'
8066 ;;
8067
8068 solaris*)
8069 lt_prog_compiler_pic='-KPIC'
8070 lt_prog_compiler_static='-Bstatic'
8071 case $cc_basename in
8072 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8073 lt_prog_compiler_wl='-Qoption ld ';;
8074 *)
8075 lt_prog_compiler_wl='-Wl,';;
8076 esac
8077 ;;
8078
8079 sunos4*)
8080 lt_prog_compiler_wl='-Qoption ld '
8081 lt_prog_compiler_pic='-PIC'
8082 lt_prog_compiler_static='-Bstatic'
8083 ;;
8084
8085 sysv4 | sysv4.2uw2* | sysv4.3*)
8086 lt_prog_compiler_wl='-Wl,'
8087 lt_prog_compiler_pic='-KPIC'
8088 lt_prog_compiler_static='-Bstatic'
8089 ;;
8090
8091 sysv4*MP*)
8092 if test -d /usr/nec ;then
8093 lt_prog_compiler_pic='-Kconform_pic'
8094 lt_prog_compiler_static='-Bstatic'
8095 fi
8096 ;;
8097
8098 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8099 lt_prog_compiler_wl='-Wl,'
8100 lt_prog_compiler_pic='-KPIC'
8101 lt_prog_compiler_static='-Bstatic'
8102 ;;
8103
8104 unicos*)
8105 lt_prog_compiler_wl='-Wl,'
8106 lt_prog_compiler_can_build_shared=no
8107 ;;
8108
8109 uts4*)
8110 lt_prog_compiler_pic='-pic'
8111 lt_prog_compiler_static='-Bstatic'
8112 ;;
8113
8114 *)
8115 lt_prog_compiler_can_build_shared=no
8116 ;;
8117 esac
8118 fi
8119
8120 case $host_os in
8121 # For platforms which do not support PIC, -DPIC is meaningless:
8122 *djgpp*)
8123 lt_prog_compiler_pic=
8124 ;;
8125 *)
8126 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8127 ;;
8128 esac
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8130 $as_echo "$lt_prog_compiler_pic" >&6; }
8131
8132
8133
8134
8135
8136
8137 #
8138 # Check to make sure the PIC flag actually works.
8139 #
8140 if test -n "$lt_prog_compiler_pic"; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8142 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8143 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8144 $as_echo_n "(cached) " >&6
8145 else
8146 lt_cv_prog_compiler_pic_works=no
8147 ac_outfile=conftest.$ac_objext
8148 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8149 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8150 # Insert the option either (1) after the last *FLAGS variable, or
8151 # (2) before a word containing "conftest.", or (3) at the end.
8152 # Note that $ac_compile itself does not contain backslashes and begins
8153 # with a dollar sign (not a hyphen), so the echo should work correctly.
8154 # The option is referenced via a variable to avoid confusing sed.
8155 lt_compile=`echo "$ac_compile" | $SED \
8156 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8157 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8158 -e 's:$: $lt_compiler_flag:'`
8159 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8160 (eval "$lt_compile" 2>conftest.err)
8161 ac_status=$?
8162 cat conftest.err >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 if (exit $ac_status) && test -s "$ac_outfile"; then
8165 # The compiler can only warn and ignore the option if not recognized
8166 # So say no if there are warnings other than the usual output.
8167 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8168 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8169 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8170 lt_cv_prog_compiler_pic_works=yes
8171 fi
8172 fi
8173 $RM conftest*
8174
8175 fi
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8177 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8178
8179 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8180 case $lt_prog_compiler_pic in
8181 "" | " "*) ;;
8182 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8183 esac
8184 else
8185 lt_prog_compiler_pic=
8186 lt_prog_compiler_can_build_shared=no
8187 fi
8188
8189 fi
8190
8191
8192
8193
8194
8195
8196 #
8197 # Check to make sure the static flag actually works.
8198 #
8199 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8201 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8202 if ${lt_cv_prog_compiler_static_works+:} false; then :
8203 $as_echo_n "(cached) " >&6
8204 else
8205 lt_cv_prog_compiler_static_works=no
8206 save_LDFLAGS="$LDFLAGS"
8207 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8208 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8209 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8210 # The linker can only warn and ignore the option if not recognized
8211 # So say no if there are warnings
8212 if test -s conftest.err; then
8213 # Append any errors to the config.log.
8214 cat conftest.err 1>&5
8215 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8216 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8217 if diff conftest.exp conftest.er2 >/dev/null; then
8218 lt_cv_prog_compiler_static_works=yes
8219 fi
8220 else
8221 lt_cv_prog_compiler_static_works=yes
8222 fi
8223 fi
8224 $RM -r conftest*
8225 LDFLAGS="$save_LDFLAGS"
8226
8227 fi
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8229 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8230
8231 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8232 :
8233 else
8234 lt_prog_compiler_static=
8235 fi
8236
8237
8238
8239
8240
8241
8242
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8244 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8245 if ${lt_cv_prog_compiler_c_o+:} false; then :
8246 $as_echo_n "(cached) " >&6
8247 else
8248 lt_cv_prog_compiler_c_o=no
8249 $RM -r conftest 2>/dev/null
8250 mkdir conftest
8251 cd conftest
8252 mkdir out
8253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8254
8255 lt_compiler_flag="-o out/conftest2.$ac_objext"
8256 # Insert the option either (1) after the last *FLAGS variable, or
8257 # (2) before a word containing "conftest.", or (3) at the end.
8258 # Note that $ac_compile itself does not contain backslashes and begins
8259 # with a dollar sign (not a hyphen), so the echo should work correctly.
8260 lt_compile=`echo "$ac_compile" | $SED \
8261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8263 -e 's:$: $lt_compiler_flag:'`
8264 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8265 (eval "$lt_compile" 2>out/conftest.err)
8266 ac_status=$?
8267 cat out/conftest.err >&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8270 then
8271 # The compiler can only warn and ignore the option if not recognized
8272 # So say no if there are warnings
8273 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8274 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8275 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8276 lt_cv_prog_compiler_c_o=yes
8277 fi
8278 fi
8279 chmod u+w . 2>&5
8280 $RM conftest*
8281 # SGI C++ compiler will create directory out/ii_files/ for
8282 # template instantiation
8283 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8284 $RM out/* && rmdir out
8285 cd ..
8286 $RM -r conftest
8287 $RM conftest*
8288
8289 fi
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8291 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8292
8293
8294
8295
8296
8297
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8299 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8300 if ${lt_cv_prog_compiler_c_o+:} false; then :
8301 $as_echo_n "(cached) " >&6
8302 else
8303 lt_cv_prog_compiler_c_o=no
8304 $RM -r conftest 2>/dev/null
8305 mkdir conftest
8306 cd conftest
8307 mkdir out
8308 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8309
8310 lt_compiler_flag="-o out/conftest2.$ac_objext"
8311 # Insert the option either (1) after the last *FLAGS variable, or
8312 # (2) before a word containing "conftest.", or (3) at the end.
8313 # Note that $ac_compile itself does not contain backslashes and begins
8314 # with a dollar sign (not a hyphen), so the echo should work correctly.
8315 lt_compile=`echo "$ac_compile" | $SED \
8316 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8317 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8318 -e 's:$: $lt_compiler_flag:'`
8319 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8320 (eval "$lt_compile" 2>out/conftest.err)
8321 ac_status=$?
8322 cat out/conftest.err >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8325 then
8326 # The compiler can only warn and ignore the option if not recognized
8327 # So say no if there are warnings
8328 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8329 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8330 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8331 lt_cv_prog_compiler_c_o=yes
8332 fi
8333 fi
8334 chmod u+w . 2>&5
8335 $RM conftest*
8336 # SGI C++ compiler will create directory out/ii_files/ for
8337 # template instantiation
8338 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8339 $RM out/* && rmdir out
8340 cd ..
8341 $RM -r conftest
8342 $RM conftest*
8343
8344 fi
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8346 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8347
8348
8349
8350
8351 hard_links="nottested"
8352 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8353 # do not overwrite the value of need_locks provided by the user
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8355 $as_echo_n "checking if we can lock with hard links... " >&6; }
8356 hard_links=yes
8357 $RM conftest*
8358 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8359 touch conftest.a
8360 ln conftest.a conftest.b 2>&5 || hard_links=no
8361 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8363 $as_echo "$hard_links" >&6; }
8364 if test "$hard_links" = no; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8366 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8367 need_locks=warn
8368 fi
8369 else
8370 need_locks=no
8371 fi
8372
8373
8374
8375
8376
8377
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8379 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8380
8381 runpath_var=
8382 allow_undefined_flag=
8383 always_export_symbols=no
8384 archive_cmds=
8385 archive_expsym_cmds=
8386 compiler_needs_object=no
8387 enable_shared_with_static_runtimes=no
8388 export_dynamic_flag_spec=
8389 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8390 hardcode_automatic=no
8391 hardcode_direct=no
8392 hardcode_direct_absolute=no
8393 hardcode_libdir_flag_spec=
8394 hardcode_libdir_flag_spec_ld=
8395 hardcode_libdir_separator=
8396 hardcode_minus_L=no
8397 hardcode_shlibpath_var=unsupported
8398 inherit_rpath=no
8399 link_all_deplibs=unknown
8400 module_cmds=
8401 module_expsym_cmds=
8402 old_archive_from_new_cmds=
8403 old_archive_from_expsyms_cmds=
8404 thread_safe_flag_spec=
8405 whole_archive_flag_spec=
8406 # include_expsyms should be a list of space-separated symbols to be *always*
8407 # included in the symbol list
8408 include_expsyms=
8409 # exclude_expsyms can be an extended regexp of symbols to exclude
8410 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8411 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8412 # as well as any symbol that contains `d'.
8413 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8414 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8415 # platforms (ab)use it in PIC code, but their linkers get confused if
8416 # the symbol is explicitly referenced. Since portable code cannot
8417 # rely on this symbol name, it's probably fine to never include it in
8418 # preloaded symbol tables.
8419 # Exclude shared library initialization/finalization symbols.
8420 extract_expsyms_cmds=
8421
8422 case $host_os in
8423 cygwin* | mingw* | pw32* | cegcc*)
8424 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8425 # When not using gcc, we currently assume that we are using
8426 # Microsoft Visual C++.
8427 if test "$GCC" != yes; then
8428 with_gnu_ld=no
8429 fi
8430 ;;
8431 interix*)
8432 # we just hope/assume this is gcc and not c89 (= MSVC++)
8433 with_gnu_ld=yes
8434 ;;
8435 openbsd*)
8436 with_gnu_ld=no
8437 ;;
8438 esac
8439
8440 ld_shlibs=yes
8441
8442 # On some targets, GNU ld is compatible enough with the native linker
8443 # that we're better off using the native interface for both.
8444 lt_use_gnu_ld_interface=no
8445 if test "$with_gnu_ld" = yes; then
8446 case $host_os in
8447 aix*)
8448 # The AIX port of GNU ld has always aspired to compatibility
8449 # with the native linker. However, as the warning in the GNU ld
8450 # block says, versions before 2.19.5* couldn't really create working
8451 # shared libraries, regardless of the interface used.
8452 case `$LD -v 2>&1` in
8453 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8454 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8455 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8456 *)
8457 lt_use_gnu_ld_interface=yes
8458 ;;
8459 esac
8460 ;;
8461 *)
8462 lt_use_gnu_ld_interface=yes
8463 ;;
8464 esac
8465 fi
8466
8467 if test "$lt_use_gnu_ld_interface" = yes; then
8468 # If archive_cmds runs LD, not CC, wlarc should be empty
8469 wlarc='${wl}'
8470
8471 # Set some defaults for GNU ld with shared library support. These
8472 # are reset later if shared libraries are not supported. Putting them
8473 # here allows them to be overridden if necessary.
8474 runpath_var=LD_RUN_PATH
8475 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8476 export_dynamic_flag_spec='${wl}--export-dynamic'
8477 # ancient GNU ld didn't support --whole-archive et. al.
8478 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8479 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8480 else
8481 whole_archive_flag_spec=
8482 fi
8483 supports_anon_versioning=no
8484 case `$LD -v 2>&1` in
8485 *GNU\ gold*) supports_anon_versioning=yes ;;
8486 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8487 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8488 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8489 *\ 2.11.*) ;; # other 2.11 versions
8490 *) supports_anon_versioning=yes ;;
8491 esac
8492
8493 # See if GNU ld supports shared libraries.
8494 case $host_os in
8495 aix[3-9]*)
8496 # On AIX/PPC, the GNU linker is very broken
8497 if test "$host_cpu" != ia64; then
8498 ld_shlibs=no
8499 cat <<_LT_EOF 1>&2
8500
8501 *** Warning: the GNU linker, at least up to release 2.19, is reported
8502 *** to be unable to reliably create shared libraries on AIX.
8503 *** Therefore, libtool is disabling shared libraries support. If you
8504 *** really care for shared libraries, you may want to install binutils
8505 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8506 *** You will then need to restart the configuration process.
8507
8508 _LT_EOF
8509 fi
8510 ;;
8511
8512 amigaos*)
8513 case $host_cpu in
8514 powerpc)
8515 # see comment about AmigaOS4 .so support
8516 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8517 archive_expsym_cmds=''
8518 ;;
8519 m68k)
8520 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)'
8521 hardcode_libdir_flag_spec='-L$libdir'
8522 hardcode_minus_L=yes
8523 ;;
8524 esac
8525 ;;
8526
8527 beos*)
8528 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8529 allow_undefined_flag=unsupported
8530 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8531 # support --undefined. This deserves some investigation. FIXME
8532 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8533 else
8534 ld_shlibs=no
8535 fi
8536 ;;
8537
8538 cygwin* | mingw* | pw32* | cegcc*)
8539 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8540 # as there is no search path for DLLs.
8541 hardcode_libdir_flag_spec='-L$libdir'
8542 export_dynamic_flag_spec='${wl}--export-all-symbols'
8543 allow_undefined_flag=unsupported
8544 always_export_symbols=no
8545 enable_shared_with_static_runtimes=yes
8546 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8547
8548 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8550 # If the export-symbols file already is a .def file (1st line
8551 # is EXPORTS), use it as is; otherwise, prepend...
8552 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8553 cp $export_symbols $output_objdir/$soname.def;
8554 else
8555 echo EXPORTS > $output_objdir/$soname.def;
8556 cat $export_symbols >> $output_objdir/$soname.def;
8557 fi~
8558 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8559 else
8560 ld_shlibs=no
8561 fi
8562 ;;
8563
8564 haiku*)
8565 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8566 link_all_deplibs=yes
8567 ;;
8568
8569 interix[3-9]*)
8570 hardcode_direct=no
8571 hardcode_shlibpath_var=no
8572 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8573 export_dynamic_flag_spec='${wl}-E'
8574 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8575 # Instead, shared libraries are loaded at an image base (0x10000000 by
8576 # default) and relocated if they conflict, which is a slow very memory
8577 # consuming and fragmenting process. To avoid this, we pick a random,
8578 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8579 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8580 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8581 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'
8582 ;;
8583
8584 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8585 tmp_diet=no
8586 if test "$host_os" = linux-dietlibc; then
8587 case $cc_basename in
8588 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8589 esac
8590 fi
8591 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8592 && test "$tmp_diet" = no
8593 then
8594 tmp_addflag=
8595 tmp_sharedflag='-shared'
8596 case $cc_basename,$host_cpu in
8597 pgcc*) # Portland Group C compiler
8598 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'
8599 tmp_addflag=' $pic_flag'
8600 ;;
8601 pgf77* | pgf90* | pgf95* | pgfortran*)
8602 # Portland Group f77 and f90 compilers
8603 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'
8604 tmp_addflag=' $pic_flag -Mnomain' ;;
8605 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8606 tmp_addflag=' -i_dynamic' ;;
8607 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8608 tmp_addflag=' -i_dynamic -nofor_main' ;;
8609 ifc* | ifort*) # Intel Fortran compiler
8610 tmp_addflag=' -nofor_main' ;;
8611 lf95*) # Lahey Fortran 8.1
8612 whole_archive_flag_spec=
8613 tmp_sharedflag='--shared' ;;
8614 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8615 tmp_sharedflag='-qmkshrobj'
8616 tmp_addflag= ;;
8617 nvcc*) # Cuda Compiler Driver 2.2
8618 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'
8619 compiler_needs_object=yes
8620 ;;
8621 esac
8622 case `$CC -V 2>&1 | sed 5q` in
8623 *Sun\ C*) # Sun C 5.9
8624 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'
8625 compiler_needs_object=yes
8626 tmp_sharedflag='-G' ;;
8627 *Sun\ F*) # Sun Fortran 8.3
8628 tmp_sharedflag='-G' ;;
8629 esac
8630 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8631
8632 if test "x$supports_anon_versioning" = xyes; then
8633 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8634 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8635 echo "local: *; };" >> $output_objdir/$libname.ver~
8636 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8637 fi
8638
8639 case $cc_basename in
8640 xlf* | bgf* | bgxlf* | mpixlf*)
8641 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8642 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8643 hardcode_libdir_flag_spec=
8644 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8645 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8646 if test "x$supports_anon_versioning" = xyes; then
8647 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8648 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8649 echo "local: *; };" >> $output_objdir/$libname.ver~
8650 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8651 fi
8652 ;;
8653 esac
8654 else
8655 ld_shlibs=no
8656 fi
8657 ;;
8658
8659 netbsd*)
8660 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8661 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8662 wlarc=
8663 else
8664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8665 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8666 fi
8667 ;;
8668
8669 solaris*)
8670 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8671 ld_shlibs=no
8672 cat <<_LT_EOF 1>&2
8673
8674 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8675 *** create shared libraries on Solaris systems. Therefore, libtool
8676 *** is disabling shared libraries support. We urge you to upgrade GNU
8677 *** binutils to release 2.9.1 or newer. Another option is to modify
8678 *** your PATH or compiler configuration so that the native linker is
8679 *** used, and then restart.
8680
8681 _LT_EOF
8682 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8683 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8684 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8685 else
8686 ld_shlibs=no
8687 fi
8688 ;;
8689
8690 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8691 case `$LD -v 2>&1` in
8692 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8693 ld_shlibs=no
8694 cat <<_LT_EOF 1>&2
8695
8696 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8697 *** reliably create shared libraries on SCO systems. Therefore, libtool
8698 *** is disabling shared libraries support. We urge you to upgrade GNU
8699 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8700 *** your PATH or compiler configuration so that the native linker is
8701 *** used, and then restart.
8702
8703 _LT_EOF
8704 ;;
8705 *)
8706 # For security reasons, it is highly recommended that you always
8707 # use absolute paths for naming shared libraries, and exclude the
8708 # DT_RUNPATH tag from executables and libraries. But doing so
8709 # requires that you compile everything twice, which is a pain.
8710 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8711 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8713 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8714 else
8715 ld_shlibs=no
8716 fi
8717 ;;
8718 esac
8719 ;;
8720
8721 sunos4*)
8722 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8723 wlarc=
8724 hardcode_direct=yes
8725 hardcode_shlibpath_var=no
8726 ;;
8727
8728 *)
8729 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8731 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8732 else
8733 ld_shlibs=no
8734 fi
8735 ;;
8736 esac
8737
8738 if test "$ld_shlibs" = no; then
8739 runpath_var=
8740 hardcode_libdir_flag_spec=
8741 export_dynamic_flag_spec=
8742 whole_archive_flag_spec=
8743 fi
8744 else
8745 # PORTME fill in a description of your system's linker (not GNU ld)
8746 case $host_os in
8747 aix3*)
8748 allow_undefined_flag=unsupported
8749 always_export_symbols=yes
8750 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'
8751 # Note: this linker hardcodes the directories in LIBPATH if there
8752 # are no directories specified by -L.
8753 hardcode_minus_L=yes
8754 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8755 # Neither direct hardcoding nor static linking is supported with a
8756 # broken collect2.
8757 hardcode_direct=unsupported
8758 fi
8759 ;;
8760
8761 aix[4-9]*)
8762 if test "$host_cpu" = ia64; then
8763 # On IA64, the linker does run time linking by default, so we don't
8764 # have to do anything special.
8765 aix_use_runtimelinking=no
8766 exp_sym_flag='-Bexport'
8767 no_entry_flag=""
8768 else
8769 # If we're using GNU nm, then we don't want the "-C" option.
8770 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8771 # Also, AIX nm treats weak defined symbols like other global
8772 # defined symbols, whereas GNU nm marks them as "W".
8773 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8774 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'
8775 else
8776 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'
8777 fi
8778 aix_use_runtimelinking=no
8779
8780 # Test if we are trying to use run time linking or normal
8781 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8782 # need to do runtime linking.
8783 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8784 for ld_flag in $LDFLAGS; do
8785 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8786 aix_use_runtimelinking=yes
8787 break
8788 fi
8789 done
8790 ;;
8791 esac
8792
8793 exp_sym_flag='-bexport'
8794 no_entry_flag='-bnoentry'
8795 fi
8796
8797 # When large executables or shared objects are built, AIX ld can
8798 # have problems creating the table of contents. If linking a library
8799 # or program results in "error TOC overflow" add -mminimal-toc to
8800 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8801 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8802
8803 archive_cmds=''
8804 hardcode_direct=yes
8805 hardcode_direct_absolute=yes
8806 hardcode_libdir_separator=':'
8807 link_all_deplibs=yes
8808 file_list_spec='${wl}-f,'
8809
8810 if test "$GCC" = yes; then
8811 case $host_os in aix4.[012]|aix4.[012].*)
8812 # We only want to do this on AIX 4.2 and lower, the check
8813 # below for broken collect2 doesn't work under 4.3+
8814 collect2name=`${CC} -print-prog-name=collect2`
8815 if test -f "$collect2name" &&
8816 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8817 then
8818 # We have reworked collect2
8819 :
8820 else
8821 # We have old collect2
8822 hardcode_direct=unsupported
8823 # It fails to find uninstalled libraries when the uninstalled
8824 # path is not listed in the libpath. Setting hardcode_minus_L
8825 # to unsupported forces relinking
8826 hardcode_minus_L=yes
8827 hardcode_libdir_flag_spec='-L$libdir'
8828 hardcode_libdir_separator=
8829 fi
8830 ;;
8831 esac
8832 shared_flag='-shared'
8833 if test "$aix_use_runtimelinking" = yes; then
8834 shared_flag="$shared_flag "'${wl}-G'
8835 fi
8836 else
8837 # not using gcc
8838 if test "$host_cpu" = ia64; then
8839 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8840 # chokes on -Wl,-G. The following line is correct:
8841 shared_flag='-G'
8842 else
8843 if test "$aix_use_runtimelinking" = yes; then
8844 shared_flag='${wl}-G'
8845 else
8846 shared_flag='${wl}-bM:SRE'
8847 fi
8848 fi
8849 fi
8850
8851 export_dynamic_flag_spec='${wl}-bexpall'
8852 # It seems that -bexpall does not export symbols beginning with
8853 # underscore (_), so it is better to generate a list of symbols to export.
8854 always_export_symbols=yes
8855 if test "$aix_use_runtimelinking" = yes; then
8856 # Warning - without using the other runtime loading flags (-brtl),
8857 # -berok will link without error, but may produce a broken library.
8858 allow_undefined_flag='-berok'
8859 # Determine the default libpath from the value encoded in an
8860 # empty executable.
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8863
8864 int
8865 main ()
8866 {
8867
8868 ;
8869 return 0;
8870 }
8871 _ACEOF
8872 if ac_fn_c_try_link "$LINENO"; then :
8873
8874 lt_aix_libpath_sed='
8875 /Import File Strings/,/^$/ {
8876 /^0/ {
8877 s/^0 *\(.*\)$/\1/
8878 p
8879 }
8880 }'
8881 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8882 # Check for a 64-bit object if we didn't find anything.
8883 if test -z "$aix_libpath"; then
8884 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8885 fi
8886 fi
8887 rm -f core conftest.err conftest.$ac_objext \
8888 conftest$ac_exeext conftest.$ac_ext
8889 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8890
8891 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8892 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"
8893 else
8894 if test "$host_cpu" = ia64; then
8895 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8896 allow_undefined_flag="-z nodefs"
8897 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"
8898 else
8899 # Determine the default libpath from the value encoded in an
8900 # empty executable.
8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h. */
8903
8904 int
8905 main ()
8906 {
8907
8908 ;
8909 return 0;
8910 }
8911 _ACEOF
8912 if ac_fn_c_try_link "$LINENO"; then :
8913
8914 lt_aix_libpath_sed='
8915 /Import File Strings/,/^$/ {
8916 /^0/ {
8917 s/^0 *\(.*\)$/\1/
8918 p
8919 }
8920 }'
8921 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8922 # Check for a 64-bit object if we didn't find anything.
8923 if test -z "$aix_libpath"; then
8924 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8925 fi
8926 fi
8927 rm -f core conftest.err conftest.$ac_objext \
8928 conftest$ac_exeext conftest.$ac_ext
8929 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8930
8931 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8932 # Warning - without using the other run time loading flags,
8933 # -berok will link without error, but may produce a broken library.
8934 no_undefined_flag=' ${wl}-bernotok'
8935 allow_undefined_flag=' ${wl}-berok'
8936 if test "$with_gnu_ld" = yes; then
8937 # We only use this code for GNU lds that support --whole-archive.
8938 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8939 else
8940 # Exported symbols can be pulled into shared objects from archives
8941 whole_archive_flag_spec='$convenience'
8942 fi
8943 archive_cmds_need_lc=yes
8944 # This is similar to how AIX traditionally builds its shared libraries.
8945 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'
8946 fi
8947 fi
8948 ;;
8949
8950 amigaos*)
8951 case $host_cpu in
8952 powerpc)
8953 # see comment about AmigaOS4 .so support
8954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8955 archive_expsym_cmds=''
8956 ;;
8957 m68k)
8958 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)'
8959 hardcode_libdir_flag_spec='-L$libdir'
8960 hardcode_minus_L=yes
8961 ;;
8962 esac
8963 ;;
8964
8965 bsdi[45]*)
8966 export_dynamic_flag_spec=-rdynamic
8967 ;;
8968
8969 cygwin* | mingw* | pw32* | cegcc*)
8970 # When not using gcc, we currently assume that we are using
8971 # Microsoft Visual C++.
8972 # hardcode_libdir_flag_spec is actually meaningless, as there is
8973 # no search path for DLLs.
8974 hardcode_libdir_flag_spec=' '
8975 allow_undefined_flag=unsupported
8976 # Tell ltmain to make .lib files, not .a files.
8977 libext=lib
8978 # Tell ltmain to make .dll files, not .so files.
8979 shrext_cmds=".dll"
8980 # FIXME: Setting linknames here is a bad hack.
8981 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8982 # The linker will automatically build a .lib file if we build a DLL.
8983 old_archive_from_new_cmds='true'
8984 # FIXME: Should let the user specify the lib program.
8985 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8986 fix_srcfile_path='`cygpath -w "$srcfile"`'
8987 enable_shared_with_static_runtimes=yes
8988 ;;
8989
8990 darwin* | rhapsody*)
8991
8992
8993 archive_cmds_need_lc=no
8994 hardcode_direct=no
8995 hardcode_automatic=yes
8996 hardcode_shlibpath_var=unsupported
8997 if test "$lt_cv_ld_force_load" = "yes"; then
8998 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\"`'
8999 else
9000 whole_archive_flag_spec=''
9001 fi
9002 link_all_deplibs=yes
9003 allow_undefined_flag="$_lt_dar_allow_undefined"
9004 case $cc_basename in
9005 ifort*) _lt_dar_can_shared=yes ;;
9006 *) _lt_dar_can_shared=$GCC ;;
9007 esac
9008 if test "$_lt_dar_can_shared" = "yes"; then
9009 output_verbose_link_cmd=func_echo_all
9010 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9011 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9012 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}"
9013 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}"
9014
9015 else
9016 ld_shlibs=no
9017 fi
9018
9019 ;;
9020
9021 dgux*)
9022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9023 hardcode_libdir_flag_spec='-L$libdir'
9024 hardcode_shlibpath_var=no
9025 ;;
9026
9027 freebsd1*)
9028 ld_shlibs=no
9029 ;;
9030
9031 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9032 # support. Future versions do this automatically, but an explicit c++rt0.o
9033 # does not break anything, and helps significantly (at the cost of a little
9034 # extra space).
9035 freebsd2.2*)
9036 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9037 hardcode_libdir_flag_spec='-R$libdir'
9038 hardcode_direct=yes
9039 hardcode_shlibpath_var=no
9040 ;;
9041
9042 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9043 freebsd2*)
9044 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9045 hardcode_direct=yes
9046 hardcode_minus_L=yes
9047 hardcode_shlibpath_var=no
9048 ;;
9049
9050 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9051 freebsd* | dragonfly*)
9052 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9053 hardcode_libdir_flag_spec='-R$libdir'
9054 hardcode_direct=yes
9055 hardcode_shlibpath_var=no
9056 ;;
9057
9058 hpux9*)
9059 if test "$GCC" = yes; then
9060 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'
9061 else
9062 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'
9063 fi
9064 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9065 hardcode_libdir_separator=:
9066 hardcode_direct=yes
9067
9068 # hardcode_minus_L: Not really in the search PATH,
9069 # but as the default location of the library.
9070 hardcode_minus_L=yes
9071 export_dynamic_flag_spec='${wl}-E'
9072 ;;
9073
9074 hpux10*)
9075 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9076 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9077 else
9078 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9079 fi
9080 if test "$with_gnu_ld" = no; then
9081 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9082 hardcode_libdir_flag_spec_ld='+b $libdir'
9083 hardcode_libdir_separator=:
9084 hardcode_direct=yes
9085 hardcode_direct_absolute=yes
9086 export_dynamic_flag_spec='${wl}-E'
9087 # hardcode_minus_L: Not really in the search PATH,
9088 # but as the default location of the library.
9089 hardcode_minus_L=yes
9090 fi
9091 ;;
9092
9093 hpux11*)
9094 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9095 case $host_cpu in
9096 hppa*64*)
9097 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9098 ;;
9099 ia64*)
9100 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9101 ;;
9102 *)
9103 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9104 ;;
9105 esac
9106 else
9107 case $host_cpu in
9108 hppa*64*)
9109 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9110 ;;
9111 ia64*)
9112 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9113 ;;
9114 *)
9115
9116 # Older versions of the 11.00 compiler do not understand -b yet
9117 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9119 $as_echo_n "checking if $CC understands -b... " >&6; }
9120 if ${lt_cv_prog_compiler__b+:} false; then :
9121 $as_echo_n "(cached) " >&6
9122 else
9123 lt_cv_prog_compiler__b=no
9124 save_LDFLAGS="$LDFLAGS"
9125 LDFLAGS="$LDFLAGS -b"
9126 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9127 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9128 # The linker can only warn and ignore the option if not recognized
9129 # So say no if there are warnings
9130 if test -s conftest.err; then
9131 # Append any errors to the config.log.
9132 cat conftest.err 1>&5
9133 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9134 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9135 if diff conftest.exp conftest.er2 >/dev/null; then
9136 lt_cv_prog_compiler__b=yes
9137 fi
9138 else
9139 lt_cv_prog_compiler__b=yes
9140 fi
9141 fi
9142 $RM -r conftest*
9143 LDFLAGS="$save_LDFLAGS"
9144
9145 fi
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9147 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9148
9149 if test x"$lt_cv_prog_compiler__b" = xyes; then
9150 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9151 else
9152 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9153 fi
9154
9155 ;;
9156 esac
9157 fi
9158 if test "$with_gnu_ld" = no; then
9159 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9160 hardcode_libdir_separator=:
9161
9162 case $host_cpu in
9163 hppa*64*|ia64*)
9164 hardcode_direct=no
9165 hardcode_shlibpath_var=no
9166 ;;
9167 *)
9168 hardcode_direct=yes
9169 hardcode_direct_absolute=yes
9170 export_dynamic_flag_spec='${wl}-E'
9171
9172 # hardcode_minus_L: Not really in the search PATH,
9173 # but as the default location of the library.
9174 hardcode_minus_L=yes
9175 ;;
9176 esac
9177 fi
9178 ;;
9179
9180 irix5* | irix6* | nonstopux*)
9181 if test "$GCC" = yes; then
9182 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'
9183 # Try to use the -exported_symbol ld option, if it does not
9184 # work, assume that -exports_file does not work either and
9185 # implicitly export all symbols.
9186 save_LDFLAGS="$LDFLAGS"
9187 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189 /* end confdefs.h. */
9190 int foo(void) {}
9191 _ACEOF
9192 if ac_fn_c_try_link "$LINENO"; then :
9193 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'
9194
9195 fi
9196 rm -f core conftest.err conftest.$ac_objext \
9197 conftest$ac_exeext conftest.$ac_ext
9198 LDFLAGS="$save_LDFLAGS"
9199 else
9200 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'
9201 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'
9202 fi
9203 archive_cmds_need_lc='no'
9204 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9205 hardcode_libdir_separator=:
9206 inherit_rpath=yes
9207 link_all_deplibs=yes
9208 ;;
9209
9210 netbsd*)
9211 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9212 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9213 else
9214 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9215 fi
9216 hardcode_libdir_flag_spec='-R$libdir'
9217 hardcode_direct=yes
9218 hardcode_shlibpath_var=no
9219 ;;
9220
9221 newsos6)
9222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9223 hardcode_direct=yes
9224 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9225 hardcode_libdir_separator=:
9226 hardcode_shlibpath_var=no
9227 ;;
9228
9229 *nto* | *qnx*)
9230 ;;
9231
9232 openbsd*)
9233 if test -f /usr/libexec/ld.so; then
9234 hardcode_direct=yes
9235 hardcode_shlibpath_var=no
9236 hardcode_direct_absolute=yes
9237 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9238 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9239 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9240 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9241 export_dynamic_flag_spec='${wl}-E'
9242 else
9243 case $host_os in
9244 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9245 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9246 hardcode_libdir_flag_spec='-R$libdir'
9247 ;;
9248 *)
9249 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9250 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9251 ;;
9252 esac
9253 fi
9254 else
9255 ld_shlibs=no
9256 fi
9257 ;;
9258
9259 os2*)
9260 hardcode_libdir_flag_spec='-L$libdir'
9261 hardcode_minus_L=yes
9262 allow_undefined_flag=unsupported
9263 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'
9264 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9265 ;;
9266
9267 osf3*)
9268 if test "$GCC" = yes; then
9269 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9270 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'
9271 else
9272 allow_undefined_flag=' -expect_unresolved \*'
9273 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'
9274 fi
9275 archive_cmds_need_lc='no'
9276 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9277 hardcode_libdir_separator=:
9278 ;;
9279
9280 osf4* | osf5*) # as osf3* with the addition of -msym flag
9281 if test "$GCC" = yes; then
9282 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9283 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'
9284 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9285 else
9286 allow_undefined_flag=' -expect_unresolved \*'
9287 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'
9288 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~
9289 $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'
9290
9291 # Both c and cxx compiler support -rpath directly
9292 hardcode_libdir_flag_spec='-rpath $libdir'
9293 fi
9294 archive_cmds_need_lc='no'
9295 hardcode_libdir_separator=:
9296 ;;
9297
9298 solaris*)
9299 no_undefined_flag=' -z defs'
9300 if test "$GCC" = yes; then
9301 wlarc='${wl}'
9302 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9303 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9304 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9305 else
9306 case `$CC -V 2>&1` in
9307 *"Compilers 5.0"*)
9308 wlarc=''
9309 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9310 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9311 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9312 ;;
9313 *)
9314 wlarc='${wl}'
9315 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9316 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9317 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9318 ;;
9319 esac
9320 fi
9321 hardcode_libdir_flag_spec='-R$libdir'
9322 hardcode_shlibpath_var=no
9323 case $host_os in
9324 solaris2.[0-5] | solaris2.[0-5].*) ;;
9325 *)
9326 # The compiler driver will combine and reorder linker options,
9327 # but understands `-z linker_flag'. GCC discards it without `$wl',
9328 # but is careful enough not to reorder.
9329 # Supported since Solaris 2.6 (maybe 2.5.1?)
9330 if test "$GCC" = yes; then
9331 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9332 else
9333 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9334 fi
9335 ;;
9336 esac
9337 link_all_deplibs=yes
9338 ;;
9339
9340 sunos4*)
9341 if test "x$host_vendor" = xsequent; then
9342 # Use $CC to link under sequent, because it throws in some extra .o
9343 # files that make .init and .fini sections work.
9344 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9345 else
9346 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9347 fi
9348 hardcode_libdir_flag_spec='-L$libdir'
9349 hardcode_direct=yes
9350 hardcode_minus_L=yes
9351 hardcode_shlibpath_var=no
9352 ;;
9353
9354 sysv4)
9355 case $host_vendor in
9356 sni)
9357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9358 hardcode_direct=yes # is this really true???
9359 ;;
9360 siemens)
9361 ## LD is ld it makes a PLAMLIB
9362 ## CC just makes a GrossModule.
9363 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9364 reload_cmds='$CC -r -o $output$reload_objs'
9365 hardcode_direct=no
9366 ;;
9367 motorola)
9368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9369 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9370 ;;
9371 esac
9372 runpath_var='LD_RUN_PATH'
9373 hardcode_shlibpath_var=no
9374 ;;
9375
9376 sysv4.3*)
9377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9378 hardcode_shlibpath_var=no
9379 export_dynamic_flag_spec='-Bexport'
9380 ;;
9381
9382 sysv4*MP*)
9383 if test -d /usr/nec; then
9384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9385 hardcode_shlibpath_var=no
9386 runpath_var=LD_RUN_PATH
9387 hardcode_runpath_var=yes
9388 ld_shlibs=yes
9389 fi
9390 ;;
9391
9392 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9393 no_undefined_flag='${wl}-z,text'
9394 archive_cmds_need_lc=no
9395 hardcode_shlibpath_var=no
9396 runpath_var='LD_RUN_PATH'
9397
9398 if test "$GCC" = yes; then
9399 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9400 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9401 else
9402 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9403 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9404 fi
9405 ;;
9406
9407 sysv5* | sco3.2v5* | sco5v6*)
9408 # Note: We can NOT use -z defs as we might desire, because we do not
9409 # link with -lc, and that would cause any symbols used from libc to
9410 # always be unresolved, which means just about no library would
9411 # ever link correctly. If we're not using GNU ld we use -z text
9412 # though, which does catch some bad symbols but isn't as heavy-handed
9413 # as -z defs.
9414 no_undefined_flag='${wl}-z,text'
9415 allow_undefined_flag='${wl}-z,nodefs'
9416 archive_cmds_need_lc=no
9417 hardcode_shlibpath_var=no
9418 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9419 hardcode_libdir_separator=':'
9420 link_all_deplibs=yes
9421 export_dynamic_flag_spec='${wl}-Bexport'
9422 runpath_var='LD_RUN_PATH'
9423
9424 if test "$GCC" = yes; then
9425 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9426 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9427 else
9428 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9429 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9430 fi
9431 ;;
9432
9433 uts4*)
9434 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9435 hardcode_libdir_flag_spec='-L$libdir'
9436 hardcode_shlibpath_var=no
9437 ;;
9438
9439 *)
9440 ld_shlibs=no
9441 ;;
9442 esac
9443
9444 if test x$host_vendor = xsni; then
9445 case $host in
9446 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9447 export_dynamic_flag_spec='${wl}-Blargedynsym'
9448 ;;
9449 esac
9450 fi
9451 fi
9452
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9454 $as_echo "$ld_shlibs" >&6; }
9455 test "$ld_shlibs" = no && can_build_shared=no
9456
9457 with_gnu_ld=$with_gnu_ld
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473 #
9474 # Do we need to explicitly link libc?
9475 #
9476 case "x$archive_cmds_need_lc" in
9477 x|xyes)
9478 # Assume -lc should be added
9479 archive_cmds_need_lc=yes
9480
9481 if test "$enable_shared" = yes && test "$GCC" = yes; then
9482 case $archive_cmds in
9483 *'~'*)
9484 # FIXME: we may have to deal with multi-command sequences.
9485 ;;
9486 '$CC '*)
9487 # Test whether the compiler implicitly links with -lc since on some
9488 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9489 # to ld, don't add -lc before -lgcc.
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9491 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9492 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9493 $as_echo_n "(cached) " >&6
9494 else
9495 $RM conftest*
9496 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9497
9498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9499 (eval $ac_compile) 2>&5
9500 ac_status=$?
9501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9502 test $ac_status = 0; } 2>conftest.err; then
9503 soname=conftest
9504 lib=conftest
9505 libobjs=conftest.$ac_objext
9506 deplibs=
9507 wl=$lt_prog_compiler_wl
9508 pic_flag=$lt_prog_compiler_pic
9509 compiler_flags=-v
9510 linker_flags=-v
9511 verstring=
9512 output_objdir=.
9513 libname=conftest
9514 lt_save_allow_undefined_flag=$allow_undefined_flag
9515 allow_undefined_flag=
9516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9517 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9518 ac_status=$?
9519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9520 test $ac_status = 0; }
9521 then
9522 lt_cv_archive_cmds_need_lc=no
9523 else
9524 lt_cv_archive_cmds_need_lc=yes
9525 fi
9526 allow_undefined_flag=$lt_save_allow_undefined_flag
9527 else
9528 cat conftest.err 1>&5
9529 fi
9530 $RM conftest*
9531
9532 fi
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9534 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9535 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9536 ;;
9537 esac
9538 fi
9539 ;;
9540 esac
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9699 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9700
9701 if test "$GCC" = yes; then
9702 case $host_os in
9703 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9704 *) lt_awk_arg="/^libraries:/" ;;
9705 esac
9706 case $host_os in
9707 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9708 *) lt_sed_strip_eq="s,=/,/,g" ;;
9709 esac
9710 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9711 case $lt_search_path_spec in
9712 *\;*)
9713 # if the path contains ";" then we assume it to be the separator
9714 # otherwise default to the standard path separator (i.e. ":") - it is
9715 # assumed that no part of a normal pathname contains ";" but that should
9716 # okay in the real world where ";" in dirpaths is itself problematic.
9717 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9718 ;;
9719 *)
9720 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9721 ;;
9722 esac
9723 # Ok, now we have the path, separated by spaces, we can step through it
9724 # and add multilib dir if necessary.
9725 lt_tmp_lt_search_path_spec=
9726 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9727 for lt_sys_path in $lt_search_path_spec; do
9728 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9729 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9730 else
9731 test -d "$lt_sys_path" && \
9732 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9733 fi
9734 done
9735 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9736 BEGIN {RS=" "; FS="/|\n";} {
9737 lt_foo="";
9738 lt_count=0;
9739 for (lt_i = NF; lt_i > 0; lt_i--) {
9740 if ($lt_i != "" && $lt_i != ".") {
9741 if ($lt_i == "..") {
9742 lt_count++;
9743 } else {
9744 if (lt_count == 0) {
9745 lt_foo="/" $lt_i lt_foo;
9746 } else {
9747 lt_count--;
9748 }
9749 }
9750 }
9751 }
9752 if (lt_foo != "") { lt_freq[lt_foo]++; }
9753 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9754 }'`
9755 # AWK program above erroneously prepends '/' to C:/dos/paths
9756 # for these hosts.
9757 case $host_os in
9758 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9759 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9760 esac
9761 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9762 else
9763 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9764 fi
9765 library_names_spec=
9766 libname_spec='lib$name'
9767 soname_spec=
9768 shrext_cmds=".so"
9769 postinstall_cmds=
9770 postuninstall_cmds=
9771 finish_cmds=
9772 finish_eval=
9773 shlibpath_var=
9774 shlibpath_overrides_runpath=unknown
9775 version_type=none
9776 dynamic_linker="$host_os ld.so"
9777 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9778 need_lib_prefix=unknown
9779 hardcode_into_libs=no
9780
9781 # when you set need_version to no, make sure it does not cause -set_version
9782 # flags to be left without arguments
9783 need_version=unknown
9784
9785 case $host_os in
9786 aix3*)
9787 version_type=linux
9788 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9789 shlibpath_var=LIBPATH
9790
9791 # AIX 3 has no versioning support, so we append a major version to the name.
9792 soname_spec='${libname}${release}${shared_ext}$major'
9793 ;;
9794
9795 aix[4-9]*)
9796 version_type=linux
9797 need_lib_prefix=no
9798 need_version=no
9799 hardcode_into_libs=yes
9800 if test "$host_cpu" = ia64; then
9801 # AIX 5 supports IA64
9802 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9803 shlibpath_var=LD_LIBRARY_PATH
9804 else
9805 # With GCC up to 2.95.x, collect2 would create an import file
9806 # for dependence libraries. The import file would start with
9807 # the line `#! .'. This would cause the generated library to
9808 # depend on `.', always an invalid library. This was fixed in
9809 # development snapshots of GCC prior to 3.0.
9810 case $host_os in
9811 aix4 | aix4.[01] | aix4.[01].*)
9812 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9813 echo ' yes '
9814 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9815 :
9816 else
9817 can_build_shared=no
9818 fi
9819 ;;
9820 esac
9821 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9822 # soname into executable. Probably we can add versioning support to
9823 # collect2, so additional links can be useful in future.
9824 if test "$aix_use_runtimelinking" = yes; then
9825 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9826 # instead of lib<name>.a to let people know that these are not
9827 # typical AIX shared libraries.
9828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9829 else
9830 # We preserve .a as extension for shared libraries through AIX4.2
9831 # and later when we are not doing run time linking.
9832 library_names_spec='${libname}${release}.a $libname.a'
9833 soname_spec='${libname}${release}${shared_ext}$major'
9834 fi
9835 shlibpath_var=LIBPATH
9836 fi
9837 ;;
9838
9839 amigaos*)
9840 case $host_cpu in
9841 powerpc)
9842 # Since July 2007 AmigaOS4 officially supports .so libraries.
9843 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9845 ;;
9846 m68k)
9847 library_names_spec='$libname.ixlibrary $libname.a'
9848 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9849 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'
9850 ;;
9851 esac
9852 ;;
9853
9854 beos*)
9855 library_names_spec='${libname}${shared_ext}'
9856 dynamic_linker="$host_os ld.so"
9857 shlibpath_var=LIBRARY_PATH
9858 ;;
9859
9860 bsdi[45]*)
9861 version_type=linux
9862 need_version=no
9863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9864 soname_spec='${libname}${release}${shared_ext}$major'
9865 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9866 shlibpath_var=LD_LIBRARY_PATH
9867 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9868 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9869 # the default ld.so.conf also contains /usr/contrib/lib and
9870 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9871 # libtool to hard-code these into programs
9872 ;;
9873
9874 cygwin* | mingw* | pw32* | cegcc*)
9875 version_type=windows
9876 shrext_cmds=".dll"
9877 need_version=no
9878 need_lib_prefix=no
9879
9880 case $GCC,$host_os in
9881 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9882 library_names_spec='$libname.dll.a'
9883 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9884 postinstall_cmds='base_file=`basename \${file}`~
9885 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9886 dldir=$destdir/`dirname \$dlpath`~
9887 test -d \$dldir || mkdir -p \$dldir~
9888 $install_prog $dir/$dlname \$dldir/$dlname~
9889 chmod a+x \$dldir/$dlname~
9890 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9891 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9892 fi'
9893 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9894 dlpath=$dir/\$dldll~
9895 $RM \$dlpath'
9896 shlibpath_overrides_runpath=yes
9897
9898 case $host_os in
9899 cygwin*)
9900 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9901 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9902
9903 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9904 ;;
9905 mingw* | cegcc*)
9906 # MinGW DLLs use traditional 'lib' prefix
9907 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9908 ;;
9909 pw32*)
9910 # pw32 DLLs use 'pw' prefix rather than 'lib'
9911 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9912 ;;
9913 esac
9914 ;;
9915
9916 *)
9917 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9918 ;;
9919 esac
9920 dynamic_linker='Win32 ld.exe'
9921 # FIXME: first we should search . and the directory the executable is in
9922 shlibpath_var=PATH
9923 ;;
9924
9925 darwin* | rhapsody*)
9926 dynamic_linker="$host_os dyld"
9927 version_type=darwin
9928 need_lib_prefix=no
9929 need_version=no
9930 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9931 soname_spec='${libname}${release}${major}$shared_ext'
9932 shlibpath_overrides_runpath=yes
9933 shlibpath_var=DYLD_LIBRARY_PATH
9934 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9935
9936 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9937 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9938 ;;
9939
9940 dgux*)
9941 version_type=linux
9942 need_lib_prefix=no
9943 need_version=no
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9945 soname_spec='${libname}${release}${shared_ext}$major'
9946 shlibpath_var=LD_LIBRARY_PATH
9947 ;;
9948
9949 freebsd1*)
9950 dynamic_linker=no
9951 ;;
9952
9953 freebsd* | dragonfly*)
9954 # DragonFly does not have aout. When/if they implement a new
9955 # versioning mechanism, adjust this.
9956 if test -x /usr/bin/objformat; then
9957 objformat=`/usr/bin/objformat`
9958 else
9959 case $host_os in
9960 freebsd[123]*) objformat=aout ;;
9961 *) objformat=elf ;;
9962 esac
9963 fi
9964 version_type=freebsd-$objformat
9965 case $version_type in
9966 freebsd-elf*)
9967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9968 need_version=no
9969 need_lib_prefix=no
9970 ;;
9971 freebsd-*)
9972 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9973 need_version=yes
9974 ;;
9975 esac
9976 shlibpath_var=LD_LIBRARY_PATH
9977 case $host_os in
9978 freebsd2*)
9979 shlibpath_overrides_runpath=yes
9980 ;;
9981 freebsd3.[01]* | freebsdelf3.[01]*)
9982 shlibpath_overrides_runpath=yes
9983 hardcode_into_libs=yes
9984 ;;
9985 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9986 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9987 shlibpath_overrides_runpath=no
9988 hardcode_into_libs=yes
9989 ;;
9990 *) # from 4.6 on, and DragonFly
9991 shlibpath_overrides_runpath=yes
9992 hardcode_into_libs=yes
9993 ;;
9994 esac
9995 ;;
9996
9997 gnu*)
9998 version_type=linux
9999 need_lib_prefix=no
10000 need_version=no
10001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10002 soname_spec='${libname}${release}${shared_ext}$major'
10003 shlibpath_var=LD_LIBRARY_PATH
10004 hardcode_into_libs=yes
10005 ;;
10006
10007 haiku*)
10008 version_type=linux
10009 need_lib_prefix=no
10010 need_version=no
10011 dynamic_linker="$host_os runtime_loader"
10012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10013 soname_spec='${libname}${release}${shared_ext}$major'
10014 shlibpath_var=LIBRARY_PATH
10015 shlibpath_overrides_runpath=yes
10016 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10017 hardcode_into_libs=yes
10018 ;;
10019
10020 hpux9* | hpux10* | hpux11*)
10021 # Give a soname corresponding to the major version so that dld.sl refuses to
10022 # link against other versions.
10023 version_type=sunos
10024 need_lib_prefix=no
10025 need_version=no
10026 case $host_cpu in
10027 ia64*)
10028 shrext_cmds='.so'
10029 hardcode_into_libs=yes
10030 dynamic_linker="$host_os dld.so"
10031 shlibpath_var=LD_LIBRARY_PATH
10032 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10034 soname_spec='${libname}${release}${shared_ext}$major'
10035 if test "X$HPUX_IA64_MODE" = X32; then
10036 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10037 else
10038 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10039 fi
10040 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10041 ;;
10042 hppa*64*)
10043 shrext_cmds='.sl'
10044 hardcode_into_libs=yes
10045 dynamic_linker="$host_os dld.sl"
10046 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10047 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10049 soname_spec='${libname}${release}${shared_ext}$major'
10050 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10051 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10052 ;;
10053 *)
10054 shrext_cmds='.sl'
10055 dynamic_linker="$host_os dld.sl"
10056 shlibpath_var=SHLIB_PATH
10057 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10059 soname_spec='${libname}${release}${shared_ext}$major'
10060 ;;
10061 esac
10062 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10063 postinstall_cmds='chmod 555 $lib'
10064 # or fails outright, so override atomically:
10065 install_override_mode=555
10066 ;;
10067
10068 interix[3-9]*)
10069 version_type=linux
10070 need_lib_prefix=no
10071 need_version=no
10072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10073 soname_spec='${libname}${release}${shared_ext}$major'
10074 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10075 shlibpath_var=LD_LIBRARY_PATH
10076 shlibpath_overrides_runpath=no
10077 hardcode_into_libs=yes
10078 ;;
10079
10080 irix5* | irix6* | nonstopux*)
10081 case $host_os in
10082 nonstopux*) version_type=nonstopux ;;
10083 *)
10084 if test "$lt_cv_prog_gnu_ld" = yes; then
10085 version_type=linux
10086 else
10087 version_type=irix
10088 fi ;;
10089 esac
10090 need_lib_prefix=no
10091 need_version=no
10092 soname_spec='${libname}${release}${shared_ext}$major'
10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10094 case $host_os in
10095 irix5* | nonstopux*)
10096 libsuff= shlibsuff=
10097 ;;
10098 *)
10099 case $LD in # libtool.m4 will add one of these switches to LD
10100 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10101 libsuff= shlibsuff= libmagic=32-bit;;
10102 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10103 libsuff=32 shlibsuff=N32 libmagic=N32;;
10104 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10105 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10106 *) libsuff= shlibsuff= libmagic=never-match;;
10107 esac
10108 ;;
10109 esac
10110 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10111 shlibpath_overrides_runpath=no
10112 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10113 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10114 hardcode_into_libs=yes
10115 ;;
10116
10117 # No shared lib support for Linux oldld, aout, or coff.
10118 linux*oldld* | linux*aout* | linux*coff*)
10119 dynamic_linker=no
10120 ;;
10121
10122 # This must be Linux ELF.
10123 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10124 version_type=linux
10125 need_lib_prefix=no
10126 need_version=no
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128 soname_spec='${libname}${release}${shared_ext}$major'
10129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10130 shlibpath_var=LD_LIBRARY_PATH
10131 shlibpath_overrides_runpath=no
10132
10133 # Some binutils ld are patched to set DT_RUNPATH
10134 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10135 $as_echo_n "(cached) " >&6
10136 else
10137 lt_cv_shlibpath_overrides_runpath=no
10138 save_LDFLAGS=$LDFLAGS
10139 save_libdir=$libdir
10140 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10141 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10143 /* end confdefs.h. */
10144
10145 int
10146 main ()
10147 {
10148
10149 ;
10150 return 0;
10151 }
10152 _ACEOF
10153 if ac_fn_c_try_link "$LINENO"; then :
10154 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10155 lt_cv_shlibpath_overrides_runpath=yes
10156 fi
10157 fi
10158 rm -f core conftest.err conftest.$ac_objext \
10159 conftest$ac_exeext conftest.$ac_ext
10160 LDFLAGS=$save_LDFLAGS
10161 libdir=$save_libdir
10162
10163 fi
10164
10165 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10166
10167 # This implies no fast_install, which is unacceptable.
10168 # Some rework will be needed to allow for fast_install
10169 # before this can be enabled.
10170 hardcode_into_libs=yes
10171
10172 # Append ld.so.conf contents to the search path
10173 if test -f /etc/ld.so.conf; then
10174 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' ' '`
10175 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10176 fi
10177
10178 # We used to test for /lib/ld.so.1 and disable shared libraries on
10179 # powerpc, because MkLinux only supported shared libraries with the
10180 # GNU dynamic linker. Since this was broken with cross compilers,
10181 # most powerpc-linux boxes support dynamic linking these days and
10182 # people can always --disable-shared, the test was removed, and we
10183 # assume the GNU/Linux dynamic linker is in use.
10184 dynamic_linker='GNU/Linux ld.so'
10185 ;;
10186
10187 netbsd*)
10188 version_type=sunos
10189 need_lib_prefix=no
10190 need_version=no
10191 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10193 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10194 dynamic_linker='NetBSD (a.out) ld.so'
10195 else
10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10197 soname_spec='${libname}${release}${shared_ext}$major'
10198 dynamic_linker='NetBSD ld.elf_so'
10199 fi
10200 shlibpath_var=LD_LIBRARY_PATH
10201 shlibpath_overrides_runpath=yes
10202 hardcode_into_libs=yes
10203 ;;
10204
10205 newsos6)
10206 version_type=linux
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10208 shlibpath_var=LD_LIBRARY_PATH
10209 shlibpath_overrides_runpath=yes
10210 ;;
10211
10212 *nto* | *qnx*)
10213 version_type=qnx
10214 need_lib_prefix=no
10215 need_version=no
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217 soname_spec='${libname}${release}${shared_ext}$major'
10218 shlibpath_var=LD_LIBRARY_PATH
10219 shlibpath_overrides_runpath=no
10220 hardcode_into_libs=yes
10221 dynamic_linker='ldqnx.so'
10222 ;;
10223
10224 openbsd*)
10225 version_type=sunos
10226 sys_lib_dlsearch_path_spec="/usr/lib"
10227 need_lib_prefix=no
10228 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10229 case $host_os in
10230 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10231 *) need_version=no ;;
10232 esac
10233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10234 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10235 shlibpath_var=LD_LIBRARY_PATH
10236 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10237 case $host_os in
10238 openbsd2.[89] | openbsd2.[89].*)
10239 shlibpath_overrides_runpath=no
10240 ;;
10241 *)
10242 shlibpath_overrides_runpath=yes
10243 ;;
10244 esac
10245 else
10246 shlibpath_overrides_runpath=yes
10247 fi
10248 ;;
10249
10250 os2*)
10251 libname_spec='$name'
10252 shrext_cmds=".dll"
10253 need_lib_prefix=no
10254 library_names_spec='$libname${shared_ext} $libname.a'
10255 dynamic_linker='OS/2 ld.exe'
10256 shlibpath_var=LIBPATH
10257 ;;
10258
10259 osf3* | osf4* | osf5*)
10260 version_type=osf
10261 need_lib_prefix=no
10262 need_version=no
10263 soname_spec='${libname}${release}${shared_ext}$major'
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10265 shlibpath_var=LD_LIBRARY_PATH
10266 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10267 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10268 ;;
10269
10270 rdos*)
10271 dynamic_linker=no
10272 ;;
10273
10274 solaris*)
10275 version_type=linux
10276 need_lib_prefix=no
10277 need_version=no
10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10279 soname_spec='${libname}${release}${shared_ext}$major'
10280 shlibpath_var=LD_LIBRARY_PATH
10281 shlibpath_overrides_runpath=yes
10282 hardcode_into_libs=yes
10283 # ldd complains unless libraries are executable
10284 postinstall_cmds='chmod +x $lib'
10285 ;;
10286
10287 sunos4*)
10288 version_type=sunos
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10290 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10291 shlibpath_var=LD_LIBRARY_PATH
10292 shlibpath_overrides_runpath=yes
10293 if test "$with_gnu_ld" = yes; then
10294 need_lib_prefix=no
10295 fi
10296 need_version=yes
10297 ;;
10298
10299 sysv4 | sysv4.3*)
10300 version_type=linux
10301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10302 soname_spec='${libname}${release}${shared_ext}$major'
10303 shlibpath_var=LD_LIBRARY_PATH
10304 case $host_vendor in
10305 sni)
10306 shlibpath_overrides_runpath=no
10307 need_lib_prefix=no
10308 runpath_var=LD_RUN_PATH
10309 ;;
10310 siemens)
10311 need_lib_prefix=no
10312 ;;
10313 motorola)
10314 need_lib_prefix=no
10315 need_version=no
10316 shlibpath_overrides_runpath=no
10317 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10318 ;;
10319 esac
10320 ;;
10321
10322 sysv4*MP*)
10323 if test -d /usr/nec ;then
10324 version_type=linux
10325 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10326 soname_spec='$libname${shared_ext}.$major'
10327 shlibpath_var=LD_LIBRARY_PATH
10328 fi
10329 ;;
10330
10331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10332 version_type=freebsd-elf
10333 need_lib_prefix=no
10334 need_version=no
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10336 soname_spec='${libname}${release}${shared_ext}$major'
10337 shlibpath_var=LD_LIBRARY_PATH
10338 shlibpath_overrides_runpath=yes
10339 hardcode_into_libs=yes
10340 if test "$with_gnu_ld" = yes; then
10341 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10342 else
10343 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10344 case $host_os in
10345 sco3.2v5*)
10346 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10347 ;;
10348 esac
10349 fi
10350 sys_lib_dlsearch_path_spec='/usr/lib'
10351 ;;
10352
10353 tpf*)
10354 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10355 version_type=linux
10356 need_lib_prefix=no
10357 need_version=no
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359 shlibpath_var=LD_LIBRARY_PATH
10360 shlibpath_overrides_runpath=no
10361 hardcode_into_libs=yes
10362 ;;
10363
10364 uts4*)
10365 version_type=linux
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367 soname_spec='${libname}${release}${shared_ext}$major'
10368 shlibpath_var=LD_LIBRARY_PATH
10369 ;;
10370
10371 *)
10372 dynamic_linker=no
10373 ;;
10374 esac
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10376 $as_echo "$dynamic_linker" >&6; }
10377 test "$dynamic_linker" = no && can_build_shared=no
10378
10379 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10380 if test "$GCC" = yes; then
10381 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10382 fi
10383
10384 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10385 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10386 fi
10387 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10388 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10389 fi
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10483 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10484 hardcode_action=
10485 if test -n "$hardcode_libdir_flag_spec" ||
10486 test -n "$runpath_var" ||
10487 test "X$hardcode_automatic" = "Xyes" ; then
10488
10489 # We can hardcode non-existent directories.
10490 if test "$hardcode_direct" != no &&
10491 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10492 # have to relink, otherwise we might link with an installed library
10493 # when we should be linking with a yet-to-be-installed one
10494 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10495 test "$hardcode_minus_L" != no; then
10496 # Linking always hardcodes the temporary library directory.
10497 hardcode_action=relink
10498 else
10499 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10500 hardcode_action=immediate
10501 fi
10502 else
10503 # We cannot hardcode anything, or else we can only hardcode existing
10504 # directories.
10505 hardcode_action=unsupported
10506 fi
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10508 $as_echo "$hardcode_action" >&6; }
10509
10510 if test "$hardcode_action" = relink ||
10511 test "$inherit_rpath" = yes; then
10512 # Fast installation is not supported
10513 enable_fast_install=no
10514 elif test "$shlibpath_overrides_runpath" = yes ||
10515 test "$enable_shared" = no; then
10516 # Fast installation is not necessary
10517 enable_fast_install=needless
10518 fi
10519
10520
10521
10522
10523
10524
10525 if test "x$enable_dlopen" != xyes; then
10526 enable_dlopen=unknown
10527 enable_dlopen_self=unknown
10528 enable_dlopen_self_static=unknown
10529 else
10530 lt_cv_dlopen=no
10531 lt_cv_dlopen_libs=
10532
10533 case $host_os in
10534 beos*)
10535 lt_cv_dlopen="load_add_on"
10536 lt_cv_dlopen_libs=
10537 lt_cv_dlopen_self=yes
10538 ;;
10539
10540 mingw* | pw32* | cegcc*)
10541 lt_cv_dlopen="LoadLibrary"
10542 lt_cv_dlopen_libs=
10543 ;;
10544
10545 cygwin*)
10546 lt_cv_dlopen="dlopen"
10547 lt_cv_dlopen_libs=
10548 ;;
10549
10550 darwin*)
10551 # if libdl is installed we need to link against it
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10553 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10554 if ${ac_cv_lib_dl_dlopen+:} false; then :
10555 $as_echo_n "(cached) " >&6
10556 else
10557 ac_check_lib_save_LIBS=$LIBS
10558 LIBS="-ldl $LIBS"
10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10561
10562 /* Override any GCC internal prototype to avoid an error.
10563 Use char because int might match the return type of a GCC
10564 builtin and then its argument prototype would still apply. */
10565 #ifdef __cplusplus
10566 extern "C"
10567 #endif
10568 char dlopen ();
10569 int
10570 main ()
10571 {
10572 return dlopen ();
10573 ;
10574 return 0;
10575 }
10576 _ACEOF
10577 if ac_fn_c_try_link "$LINENO"; then :
10578 ac_cv_lib_dl_dlopen=yes
10579 else
10580 ac_cv_lib_dl_dlopen=no
10581 fi
10582 rm -f core conftest.err conftest.$ac_objext \
10583 conftest$ac_exeext conftest.$ac_ext
10584 LIBS=$ac_check_lib_save_LIBS
10585 fi
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10587 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10588 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10589 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10590 else
10591
10592 lt_cv_dlopen="dyld"
10593 lt_cv_dlopen_libs=
10594 lt_cv_dlopen_self=yes
10595
10596 fi
10597
10598 ;;
10599
10600 *)
10601 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10602 if test "x$ac_cv_func_shl_load" = xyes; then :
10603 lt_cv_dlopen="shl_load"
10604 else
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10606 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10607 if ${ac_cv_lib_dld_shl_load+:} false; then :
10608 $as_echo_n "(cached) " >&6
10609 else
10610 ac_check_lib_save_LIBS=$LIBS
10611 LIBS="-ldld $LIBS"
10612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10613 /* end confdefs.h. */
10614
10615 /* Override any GCC internal prototype to avoid an error.
10616 Use char because int might match the return type of a GCC
10617 builtin and then its argument prototype would still apply. */
10618 #ifdef __cplusplus
10619 extern "C"
10620 #endif
10621 char shl_load ();
10622 int
10623 main ()
10624 {
10625 return shl_load ();
10626 ;
10627 return 0;
10628 }
10629 _ACEOF
10630 if ac_fn_c_try_link "$LINENO"; then :
10631 ac_cv_lib_dld_shl_load=yes
10632 else
10633 ac_cv_lib_dld_shl_load=no
10634 fi
10635 rm -f core conftest.err conftest.$ac_objext \
10636 conftest$ac_exeext conftest.$ac_ext
10637 LIBS=$ac_check_lib_save_LIBS
10638 fi
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10640 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10641 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10642 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10643 else
10644 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10645 if test "x$ac_cv_func_dlopen" = xyes; then :
10646 lt_cv_dlopen="dlopen"
10647 else
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10649 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10650 if ${ac_cv_lib_dl_dlopen+:} false; then :
10651 $as_echo_n "(cached) " >&6
10652 else
10653 ac_check_lib_save_LIBS=$LIBS
10654 LIBS="-ldl $LIBS"
10655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h. */
10657
10658 /* Override any GCC internal prototype to avoid an error.
10659 Use char because int might match the return type of a GCC
10660 builtin and then its argument prototype would still apply. */
10661 #ifdef __cplusplus
10662 extern "C"
10663 #endif
10664 char dlopen ();
10665 int
10666 main ()
10667 {
10668 return dlopen ();
10669 ;
10670 return 0;
10671 }
10672 _ACEOF
10673 if ac_fn_c_try_link "$LINENO"; then :
10674 ac_cv_lib_dl_dlopen=yes
10675 else
10676 ac_cv_lib_dl_dlopen=no
10677 fi
10678 rm -f core conftest.err conftest.$ac_objext \
10679 conftest$ac_exeext conftest.$ac_ext
10680 LIBS=$ac_check_lib_save_LIBS
10681 fi
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10683 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10684 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10685 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10686 else
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10688 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10689 if ${ac_cv_lib_svld_dlopen+:} false; then :
10690 $as_echo_n "(cached) " >&6
10691 else
10692 ac_check_lib_save_LIBS=$LIBS
10693 LIBS="-lsvld $LIBS"
10694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695 /* end confdefs.h. */
10696
10697 /* Override any GCC internal prototype to avoid an error.
10698 Use char because int might match the return type of a GCC
10699 builtin and then its argument prototype would still apply. */
10700 #ifdef __cplusplus
10701 extern "C"
10702 #endif
10703 char dlopen ();
10704 int
10705 main ()
10706 {
10707 return dlopen ();
10708 ;
10709 return 0;
10710 }
10711 _ACEOF
10712 if ac_fn_c_try_link "$LINENO"; then :
10713 ac_cv_lib_svld_dlopen=yes
10714 else
10715 ac_cv_lib_svld_dlopen=no
10716 fi
10717 rm -f core conftest.err conftest.$ac_objext \
10718 conftest$ac_exeext conftest.$ac_ext
10719 LIBS=$ac_check_lib_save_LIBS
10720 fi
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10722 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10723 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10724 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10725 else
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10727 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10728 if ${ac_cv_lib_dld_dld_link+:} false; then :
10729 $as_echo_n "(cached) " >&6
10730 else
10731 ac_check_lib_save_LIBS=$LIBS
10732 LIBS="-ldld $LIBS"
10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10735
10736 /* Override any GCC internal prototype to avoid an error.
10737 Use char because int might match the return type of a GCC
10738 builtin and then its argument prototype would still apply. */
10739 #ifdef __cplusplus
10740 extern "C"
10741 #endif
10742 char dld_link ();
10743 int
10744 main ()
10745 {
10746 return dld_link ();
10747 ;
10748 return 0;
10749 }
10750 _ACEOF
10751 if ac_fn_c_try_link "$LINENO"; then :
10752 ac_cv_lib_dld_dld_link=yes
10753 else
10754 ac_cv_lib_dld_dld_link=no
10755 fi
10756 rm -f core conftest.err conftest.$ac_objext \
10757 conftest$ac_exeext conftest.$ac_ext
10758 LIBS=$ac_check_lib_save_LIBS
10759 fi
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10761 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10762 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10763 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10764 fi
10765
10766
10767 fi
10768
10769
10770 fi
10771
10772
10773 fi
10774
10775
10776 fi
10777
10778
10779 fi
10780
10781 ;;
10782 esac
10783
10784 if test "x$lt_cv_dlopen" != xno; then
10785 enable_dlopen=yes
10786 else
10787 enable_dlopen=no
10788 fi
10789
10790 case $lt_cv_dlopen in
10791 dlopen)
10792 save_CPPFLAGS="$CPPFLAGS"
10793 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10794
10795 save_LDFLAGS="$LDFLAGS"
10796 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10797
10798 save_LIBS="$LIBS"
10799 LIBS="$lt_cv_dlopen_libs $LIBS"
10800
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10802 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10803 if ${lt_cv_dlopen_self+:} false; then :
10804 $as_echo_n "(cached) " >&6
10805 else
10806 if test "$cross_compiling" = yes; then :
10807 lt_cv_dlopen_self=cross
10808 else
10809 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10810 lt_status=$lt_dlunknown
10811 cat > conftest.$ac_ext <<_LT_EOF
10812 #line $LINENO "configure"
10813 #include "confdefs.h"
10814
10815 #if HAVE_DLFCN_H
10816 #include <dlfcn.h>
10817 #endif
10818
10819 #include <stdio.h>
10820
10821 #ifdef RTLD_GLOBAL
10822 # define LT_DLGLOBAL RTLD_GLOBAL
10823 #else
10824 # ifdef DL_GLOBAL
10825 # define LT_DLGLOBAL DL_GLOBAL
10826 # else
10827 # define LT_DLGLOBAL 0
10828 # endif
10829 #endif
10830
10831 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10832 find out it does not work in some platform. */
10833 #ifndef LT_DLLAZY_OR_NOW
10834 # ifdef RTLD_LAZY
10835 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10836 # else
10837 # ifdef DL_LAZY
10838 # define LT_DLLAZY_OR_NOW DL_LAZY
10839 # else
10840 # ifdef RTLD_NOW
10841 # define LT_DLLAZY_OR_NOW RTLD_NOW
10842 # else
10843 # ifdef DL_NOW
10844 # define LT_DLLAZY_OR_NOW DL_NOW
10845 # else
10846 # define LT_DLLAZY_OR_NOW 0
10847 # endif
10848 # endif
10849 # endif
10850 # endif
10851 #endif
10852
10853 /* When -fvisbility=hidden is used, assume the code has been annotated
10854 correspondingly for the symbols needed. */
10855 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10856 void fnord () __attribute__((visibility("default")));
10857 #endif
10858
10859 void fnord () { int i=42; }
10860 int main ()
10861 {
10862 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10863 int status = $lt_dlunknown;
10864
10865 if (self)
10866 {
10867 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10868 else
10869 {
10870 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10871 else puts (dlerror ());
10872 }
10873 /* dlclose (self); */
10874 }
10875 else
10876 puts (dlerror ());
10877
10878 return status;
10879 }
10880 _LT_EOF
10881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10882 (eval $ac_link) 2>&5
10883 ac_status=$?
10884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10885 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10886 (./conftest; exit; ) >&5 2>/dev/null
10887 lt_status=$?
10888 case x$lt_status in
10889 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10890 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10891 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10892 esac
10893 else :
10894 # compilation failed
10895 lt_cv_dlopen_self=no
10896 fi
10897 fi
10898 rm -fr conftest*
10899
10900
10901 fi
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10903 $as_echo "$lt_cv_dlopen_self" >&6; }
10904
10905 if test "x$lt_cv_dlopen_self" = xyes; then
10906 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10908 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10909 if ${lt_cv_dlopen_self_static+:} false; then :
10910 $as_echo_n "(cached) " >&6
10911 else
10912 if test "$cross_compiling" = yes; then :
10913 lt_cv_dlopen_self_static=cross
10914 else
10915 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10916 lt_status=$lt_dlunknown
10917 cat > conftest.$ac_ext <<_LT_EOF
10918 #line $LINENO "configure"
10919 #include "confdefs.h"
10920
10921 #if HAVE_DLFCN_H
10922 #include <dlfcn.h>
10923 #endif
10924
10925 #include <stdio.h>
10926
10927 #ifdef RTLD_GLOBAL
10928 # define LT_DLGLOBAL RTLD_GLOBAL
10929 #else
10930 # ifdef DL_GLOBAL
10931 # define LT_DLGLOBAL DL_GLOBAL
10932 # else
10933 # define LT_DLGLOBAL 0
10934 # endif
10935 #endif
10936
10937 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10938 find out it does not work in some platform. */
10939 #ifndef LT_DLLAZY_OR_NOW
10940 # ifdef RTLD_LAZY
10941 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10942 # else
10943 # ifdef DL_LAZY
10944 # define LT_DLLAZY_OR_NOW DL_LAZY
10945 # else
10946 # ifdef RTLD_NOW
10947 # define LT_DLLAZY_OR_NOW RTLD_NOW
10948 # else
10949 # ifdef DL_NOW
10950 # define LT_DLLAZY_OR_NOW DL_NOW
10951 # else
10952 # define LT_DLLAZY_OR_NOW 0
10953 # endif
10954 # endif
10955 # endif
10956 # endif
10957 #endif
10958
10959 /* When -fvisbility=hidden is used, assume the code has been annotated
10960 correspondingly for the symbols needed. */
10961 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10962 void fnord () __attribute__((visibility("default")));
10963 #endif
10964
10965 void fnord () { int i=42; }
10966 int main ()
10967 {
10968 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10969 int status = $lt_dlunknown;
10970
10971 if (self)
10972 {
10973 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10974 else
10975 {
10976 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10977 else puts (dlerror ());
10978 }
10979 /* dlclose (self); */
10980 }
10981 else
10982 puts (dlerror ());
10983
10984 return status;
10985 }
10986 _LT_EOF
10987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10988 (eval $ac_link) 2>&5
10989 ac_status=$?
10990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10991 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10992 (./conftest; exit; ) >&5 2>/dev/null
10993 lt_status=$?
10994 case x$lt_status in
10995 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10996 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10997 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10998 esac
10999 else :
11000 # compilation failed
11001 lt_cv_dlopen_self_static=no
11002 fi
11003 fi
11004 rm -fr conftest*
11005
11006
11007 fi
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11009 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11010 fi
11011
11012 CPPFLAGS="$save_CPPFLAGS"
11013 LDFLAGS="$save_LDFLAGS"
11014 LIBS="$save_LIBS"
11015 ;;
11016 esac
11017
11018 case $lt_cv_dlopen_self in
11019 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11020 *) enable_dlopen_self=unknown ;;
11021 esac
11022
11023 case $lt_cv_dlopen_self_static in
11024 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11025 *) enable_dlopen_self_static=unknown ;;
11026 esac
11027 fi
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045 striplib=
11046 old_striplib=
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11048 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11049 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11050 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11051 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11053 $as_echo "yes" >&6; }
11054 else
11055 # FIXME - insert some real tests, host_os isn't really good enough
11056 case $host_os in
11057 darwin*)
11058 if test -n "$STRIP" ; then
11059 striplib="$STRIP -x"
11060 old_striplib="$STRIP -S"
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11062 $as_echo "yes" >&6; }
11063 else
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11065 $as_echo "no" >&6; }
11066 fi
11067 ;;
11068 *)
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11070 $as_echo "no" >&6; }
11071 ;;
11072 esac
11073 fi
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086 # Report which library types will actually be built
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11088 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11090 $as_echo "$can_build_shared" >&6; }
11091
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11093 $as_echo_n "checking whether to build shared libraries... " >&6; }
11094 test "$can_build_shared" = "no" && enable_shared=no
11095
11096 # On AIX, shared libraries and static libraries use the same namespace, and
11097 # are all built from PIC.
11098 case $host_os in
11099 aix3*)
11100 test "$enable_shared" = yes && enable_static=no
11101 if test -n "$RANLIB"; then
11102 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11103 postinstall_cmds='$RANLIB $lib'
11104 fi
11105 ;;
11106
11107 aix[4-9]*)
11108 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11109 test "$enable_shared" = yes && enable_static=no
11110 fi
11111 ;;
11112 esac
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11114 $as_echo "$enable_shared" >&6; }
11115
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11117 $as_echo_n "checking whether to build static libraries... " >&6; }
11118 # Make sure either enable_shared or enable_static is yes.
11119 test "$enable_shared" = yes || enable_static=yes
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11121 $as_echo "$enable_static" >&6; }
11122
11123
11124
11125
11126 fi
11127 ac_ext=c
11128 ac_cpp='$CPP $CPPFLAGS'
11129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11132
11133 CC="$lt_save_CC"
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147 ac_config_commands="$ac_config_commands libtool"
11148
11149
11150
11151
11152 # Only expand once:
11153
11154
11155
11156 # Checks for pkg-config packages
11157
11158 pkg_failed=no
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XXF86MISC" >&5
11160 $as_echo_n "checking for XXF86MISC... " >&6; }
11161
11162 if test -n "$XXF86MISC_CFLAGS"; then
11163 pkg_cv_XXF86MISC_CFLAGS="$XXF86MISC_CFLAGS"
11164 elif test -n "$PKG_CONFIG"; then
11165 if test -n "$PKG_CONFIG" && \
11166 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xext xf86miscproto\""; } >&5
11167 ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xext xf86miscproto") 2>&5
11168 ac_status=$?
11169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11170 test $ac_status = 0; }; then
11171 pkg_cv_XXF86MISC_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xextproto xext xf86miscproto" 2>/dev/null`
11172 else
11173 pkg_failed=yes
11174 fi
11175 else
11176 pkg_failed=untried
11177 fi
11178 if test -n "$XXF86MISC_LIBS"; then
11179 pkg_cv_XXF86MISC_LIBS="$XXF86MISC_LIBS"
11180 elif test -n "$PKG_CONFIG"; then
11181 if test -n "$PKG_CONFIG" && \
11182 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xext xf86miscproto\""; } >&5
11183 ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xext xf86miscproto") 2>&5
11184 ac_status=$?
11185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11186 test $ac_status = 0; }; then
11187 pkg_cv_XXF86MISC_LIBS=`$PKG_CONFIG --libs "xproto x11 xextproto xext xf86miscproto" 2>/dev/null`
11188 else
11189 pkg_failed=yes
11190 fi
11191 else
11192 pkg_failed=untried
11193 fi
11194
11195
11196
11197 if test $pkg_failed = yes; then
11198
11199 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11200 _pkg_short_errors_supported=yes
11201 else
11202 _pkg_short_errors_supported=no
11203 fi
11204 if test $_pkg_short_errors_supported = yes; then
11205 XXF86MISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto x11 xextproto xext xf86miscproto" 2>&1`
11206 else
11207 XXF86MISC_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto x11 xextproto xext xf86miscproto" 2>&1`
11208 fi
11209 # Put the nasty error message in config.log where it belongs
11210 echo "$XXF86MISC_PKG_ERRORS" >&5
11211
11212 as_fn_error $? "Package requirements (xproto x11 xextproto xext xf86miscproto) were not met:
11213
11214 $XXF86MISC_PKG_ERRORS
11215
11216 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11217 installed software in a non-standard prefix.
11218
11219 Alternatively, you may set the environment variables XXF86MISC_CFLAGS
11220 and XXF86MISC_LIBS to avoid the need to call pkg-config.
11221 See the pkg-config man page for more details.
11222 " "$LINENO" 5
11223 elif test $pkg_failed = untried; then
11224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11226 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11227 is in your PATH or set the PKG_CONFIG environment variable to the full
11228 path to pkg-config.
11229
11230 Alternatively, you may set the environment variables XXF86MISC_CFLAGS
11231 and XXF86MISC_LIBS to avoid the need to call pkg-config.
11232 See the pkg-config man page for more details.
11233
11234 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11235 See \`config.log' for more details" "$LINENO" 5; }
11236 else
11237 XXF86MISC_CFLAGS=$pkg_cv_XXF86MISC_CFLAGS
11238 XXF86MISC_LIBS=$pkg_cv_XXF86MISC_LIBS
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11240 $as_echo "yes" >&6; }
11241 :
11242 fi
11243
11244
11245 # Check whether --enable-malloc0returnsnull was given.
11246 if test "${enable_malloc0returnsnull+set}" = set; then :
11247 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
11248 else
11249 MALLOC_ZERO_RETURNS_NULL=auto
11250 fi
11251
11252
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
11254 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
11255 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
11256 if test "$cross_compiling" = yes; then :
11257 MALLOC_ZERO_RETURNS_NULL=yes
11258 else
11259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260 /* end confdefs.h. */
11261
11262 char *malloc();
11263 char *realloc();
11264 char *calloc();
11265 main() {
11266 char *m0, *r0, *c0, *p;
11267 m0 = malloc(0);
11268 p = malloc(10);
11269 r0 = realloc(p,0);
11270 c0 = calloc(0);
11271 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
11272 }
11273 _ACEOF
11274 if ac_fn_c_try_run "$LINENO"; then :
11275 MALLOC_ZERO_RETURNS_NULL=yes
11276 else
11277 MALLOC_ZERO_RETURNS_NULL=no
11278 fi
11279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11280 conftest.$ac_objext conftest.beam conftest.$ac_ext
11281 fi
11282
11283 fi
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
11285 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
11286
11287 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
11288 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
11289 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
11290 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
11291 else
11292 MALLOC_ZERO_CFLAGS=""
11293 XMALLOC_ZERO_CFLAGS=""
11294 XTMALLOC_ZERO_CFLAGS=""
11295 fi
11296
11297
11298
11299
11300
11301
11302 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xxf86misc.pc"
11303
11304 cat >confcache <<\_ACEOF
11305 # This file is a shell script that caches the results of configure
11306 # tests run on this system so they can be shared between configure
11307 # scripts and configure runs, see configure's option --config-cache.
11308 # It is not useful on other systems. If it contains results you don't
11309 # want to keep, you may remove or edit it.
11310 #
11311 # config.status only pays attention to the cache file if you give it
11312 # the --recheck option to rerun configure.
11313 #
11314 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11315 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11316 # following values.
11317
11318 _ACEOF
11319
11320 # The following way of writing the cache mishandles newlines in values,
11321 # but we know of no workaround that is simple, portable, and efficient.
11322 # So, we kill variables containing newlines.
11323 # Ultrix sh set writes to stderr and can't be redirected directly,
11324 # and sets the high bit in the cache file unless we assign to the vars.
11325 (
11326 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11327 eval ac_val=\$$ac_var
11328 case $ac_val in #(
11329 *${as_nl}*)
11330 case $ac_var in #(
11331 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11332 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11333 esac
11334 case $ac_var in #(
11335 _ | IFS | as_nl) ;; #(
11336 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11337 *) { eval $ac_var=; unset $ac_var;} ;;
11338 esac ;;
11339 esac
11340 done
11341
11342 (set) 2>&1 |
11343 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11344 *${as_nl}ac_space=\ *)
11345 # `set' does not quote correctly, so add quotes: double-quote
11346 # substitution turns \\\\ into \\, and sed turns \\ into \.
11347 sed -n \
11348 "s/'/'\\\\''/g;
11349 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11350 ;; #(
11351 *)
11352 # `set' quotes correctly as required by POSIX, so do not add quotes.
11353 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11354 ;;
11355 esac |
11356 sort
11357 ) |
11358 sed '
11359 /^ac_cv_env_/b end
11360 t clear
11361 :clear
11362 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11363 t end
11364 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11365 :end' >>confcache
11366 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11367 if test -w "$cache_file"; then
11368 if test "x$cache_file" != "x/dev/null"; then
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11370 $as_echo "$as_me: updating cache $cache_file" >&6;}
11371 if test ! -f "$cache_file" || test -h "$cache_file"; then
11372 cat confcache >"$cache_file"
11373 else
11374 case $cache_file in #(
11375 */* | ?:*)
11376 mv -f confcache "$cache_file"$$ &&
11377 mv -f "$cache_file"$$ "$cache_file" ;; #(
11378 *)
11379 mv -f confcache "$cache_file" ;;
11380 esac
11381 fi
11382 fi
11383 else
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11385 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11386 fi
11387 fi
11388 rm -f confcache
11389
11390 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11391 # Let make expand exec_prefix.
11392 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11393
11394 DEFS=-DHAVE_CONFIG_H
11395
11396 ac_libobjs=
11397 ac_ltlibobjs=
11398 U=
11399 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11400 # 1. Remove the extension, and $U if already installed.
11401 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11402 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11403 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11404 # will be set to the directory where LIBOBJS objects are built.
11405 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11406 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11407 done
11408 LIBOBJS=$ac_libobjs
11409
11410 LTLIBOBJS=$ac_ltlibobjs
11411
11412
11413 if test -n "$EXEEXT"; then
11414 am__EXEEXT_TRUE=
11415 am__EXEEXT_FALSE='#'
11416 else
11417 am__EXEEXT_TRUE='#'
11418 am__EXEEXT_FALSE=
11419 fi
11420
11421 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11422 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11423 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11424 fi
11425 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11426 as_fn_error $? "conditional \"AMDEP\" was never defined.
11427 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11428 fi
11429 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11430 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11431 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11432 fi
11433
11434 : "${CONFIG_STATUS=./config.status}"
11435 ac_write_fail=0
11436 ac_clean_files_save=$ac_clean_files
11437 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11439 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11440 as_write_fail=0
11441 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11442 #! $SHELL
11443 # Generated by $as_me.
11444 # Run this file to recreate the current configuration.
11445 # Compiler output produced by configure, useful for debugging
11446 # configure, is in config.log if it exists.
11447
11448 debug=false
11449 ac_cs_recheck=false
11450 ac_cs_silent=false
11451
11452 SHELL=\${CONFIG_SHELL-$SHELL}
11453 export SHELL
11454 _ASEOF
11455 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11456 ## -------------------- ##
11457 ## M4sh Initialization. ##
11458 ## -------------------- ##
11459
11460 # Be more Bourne compatible
11461 DUALCASE=1; export DUALCASE # for MKS sh
11462 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11463 emulate sh
11464 NULLCMD=:
11465 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11466 # is contrary to our usage. Disable this feature.
11467 alias -g '${1+"$@"}'='"$@"'
11468 setopt NO_GLOB_SUBST
11469 else
11470 case `(set -o) 2>/dev/null` in #(
11471 *posix*) :
11472 set -o posix ;; #(
11473 *) :
11474 ;;
11475 esac
11476 fi
11477
11478
11479 as_nl='
11480 '
11481 export as_nl
11482 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11483 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11484 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11485 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11486 # Prefer a ksh shell builtin over an external printf program on Solaris,
11487 # but without wasting forks for bash or zsh.
11488 if test -z "$BASH_VERSION$ZSH_VERSION" \
11489 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11490 as_echo='print -r --'
11491 as_echo_n='print -rn --'
11492 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11493 as_echo='printf %s\n'
11494 as_echo_n='printf %s'
11495 else
11496 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11497 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11498 as_echo_n='/usr/ucb/echo -n'
11499 else
11500 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11501 as_echo_n_body='eval
11502 arg=$1;
11503 case $arg in #(
11504 *"$as_nl"*)
11505 expr "X$arg" : "X\\(.*\\)$as_nl";
11506 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11507 esac;
11508 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11509 '
11510 export as_echo_n_body
11511 as_echo_n='sh -c $as_echo_n_body as_echo'
11512 fi
11513 export as_echo_body
11514 as_echo='sh -c $as_echo_body as_echo'
11515 fi
11516
11517 # The user is always right.
11518 if test "${PATH_SEPARATOR+set}" != set; then
11519 PATH_SEPARATOR=:
11520 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11521 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11522 PATH_SEPARATOR=';'
11523 }
11524 fi
11525
11526
11527 # IFS
11528 # We need space, tab and new line, in precisely that order. Quoting is
11529 # there to prevent editors from complaining about space-tab.
11530 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11531 # splitting by setting IFS to empty value.)
11532 IFS=" "" $as_nl"
11533
11534 # Find who we are. Look in the path if we contain no directory separator.
11535 as_myself=
11536 case $0 in #((
11537 *[\\/]* ) as_myself=$0 ;;
11538 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11539 for as_dir in $PATH
11540 do
11541 IFS=$as_save_IFS
11542 test -z "$as_dir" && as_dir=.
11543 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11544 done
11545 IFS=$as_save_IFS
11546
11547 ;;
11548 esac
11549 # We did not find ourselves, most probably we were run as `sh COMMAND'
11550 # in which case we are not to be found in the path.
11551 if test "x$as_myself" = x; then
11552 as_myself=$0
11553 fi
11554 if test ! -f "$as_myself"; then
11555 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11556 exit 1
11557 fi
11558
11559 # Unset variables that we do not need and which cause bugs (e.g. in
11560 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11561 # suppresses any "Segmentation fault" message there. '((' could
11562 # trigger a bug in pdksh 5.2.14.
11563 for as_var in BASH_ENV ENV MAIL MAILPATH
11564 do eval test x\${$as_var+set} = xset \
11565 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11566 done
11567 PS1='$ '
11568 PS2='> '
11569 PS4='+ '
11570
11571 # NLS nuisances.
11572 LC_ALL=C
11573 export LC_ALL
11574 LANGUAGE=C
11575 export LANGUAGE
11576
11577 # CDPATH.
11578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11579
11580
11581 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11582 # ----------------------------------------
11583 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11584 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11585 # script with STATUS, using 1 if that was 0.
11586 as_fn_error ()
11587 {
11588 as_status=$1; test $as_status -eq 0 && as_status=1
11589 if test "$4"; then
11590 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11591 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11592 fi
11593 $as_echo "$as_me: error: $2" >&2
11594 as_fn_exit $as_status
11595 } # as_fn_error
11596
11597
11598 # as_fn_set_status STATUS
11599 # -----------------------
11600 # Set $? to STATUS, without forking.
11601 as_fn_set_status ()
11602 {
11603 return $1
11604 } # as_fn_set_status
11605
11606 # as_fn_exit STATUS
11607 # -----------------
11608 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11609 as_fn_exit ()
11610 {
11611 set +e
11612 as_fn_set_status $1
11613 exit $1
11614 } # as_fn_exit
11615
11616 # as_fn_unset VAR
11617 # ---------------
11618 # Portably unset VAR.
11619 as_fn_unset ()
11620 {
11621 { eval $1=; unset $1;}
11622 }
11623 as_unset=as_fn_unset
11624 # as_fn_append VAR VALUE
11625 # ----------------------
11626 # Append the text in VALUE to the end of the definition contained in VAR. Take
11627 # advantage of any shell optimizations that allow amortized linear growth over
11628 # repeated appends, instead of the typical quadratic growth present in naive
11629 # implementations.
11630 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11631 eval 'as_fn_append ()
11632 {
11633 eval $1+=\$2
11634 }'
11635 else
11636 as_fn_append ()
11637 {
11638 eval $1=\$$1\$2
11639 }
11640 fi # as_fn_append
11641
11642 # as_fn_arith ARG...
11643 # ------------------
11644 # Perform arithmetic evaluation on the ARGs, and store the result in the
11645 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11646 # must be portable across $(()) and expr.
11647 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11648 eval 'as_fn_arith ()
11649 {
11650 as_val=$(( $* ))
11651 }'
11652 else
11653 as_fn_arith ()
11654 {
11655 as_val=`expr "$@" || test $? -eq 1`
11656 }
11657 fi # as_fn_arith
11658
11659
11660 if expr a : '\(a\)' >/dev/null 2>&1 &&
11661 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11662 as_expr=expr
11663 else
11664 as_expr=false
11665 fi
11666
11667 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11668 as_basename=basename
11669 else
11670 as_basename=false
11671 fi
11672
11673 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11674 as_dirname=dirname
11675 else
11676 as_dirname=false
11677 fi
11678
11679 as_me=`$as_basename -- "$0" ||
11680 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11681 X"$0" : 'X\(//\)$' \| \
11682 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11683 $as_echo X/"$0" |
11684 sed '/^.*\/\([^/][^/]*\)\/*$/{
11685 s//\1/
11686 q
11687 }
11688 /^X\/\(\/\/\)$/{
11689 s//\1/
11690 q
11691 }
11692 /^X\/\(\/\).*/{
11693 s//\1/
11694 q
11695 }
11696 s/.*/./; q'`
11697
11698 # Avoid depending upon Character Ranges.
11699 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11700 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11701 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11702 as_cr_digits='0123456789'
11703 as_cr_alnum=$as_cr_Letters$as_cr_digits
11704
11705 ECHO_C= ECHO_N= ECHO_T=
11706 case `echo -n x` in #(((((
11707 -n*)
11708 case `echo 'xy\c'` in
11709 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11710 xy) ECHO_C='\c';;
11711 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11712 ECHO_T=' ';;
11713 esac;;
11714 *)
11715 ECHO_N='-n';;
11716 esac
11717
11718 rm -f conf$$ conf$$.exe conf$$.file
11719 if test -d conf$$.dir; then
11720 rm -f conf$$.dir/conf$$.file
11721 else
11722 rm -f conf$$.dir
11723 mkdir conf$$.dir 2>/dev/null
11724 fi
11725 if (echo >conf$$.file) 2>/dev/null; then
11726 if ln -s conf$$.file conf$$ 2>/dev/null; then
11727 as_ln_s='ln -s'
11728 # ... but there are two gotchas:
11729 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11730 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11731 # In both cases, we have to default to `cp -p'.
11732 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11733 as_ln_s='cp -p'
11734 elif ln conf$$.file conf$$ 2>/dev/null; then
11735 as_ln_s=ln
11736 else
11737 as_ln_s='cp -p'
11738 fi
11739 else
11740 as_ln_s='cp -p'
11741 fi
11742 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11743 rmdir conf$$.dir 2>/dev/null
11744
11745
11746 # as_fn_mkdir_p
11747 # -------------
11748 # Create "$as_dir" as a directory, including parents if necessary.
11749 as_fn_mkdir_p ()
11750 {
11751
11752 case $as_dir in #(
11753 -*) as_dir=./$as_dir;;
11754 esac
11755 test -d "$as_dir" || eval $as_mkdir_p || {
11756 as_dirs=
11757 while :; do
11758 case $as_dir in #(
11759 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11760 *) as_qdir=$as_dir;;
11761 esac
11762 as_dirs="'$as_qdir' $as_dirs"
11763 as_dir=`$as_dirname -- "$as_dir" ||
11764 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11765 X"$as_dir" : 'X\(//\)[^/]' \| \
11766 X"$as_dir" : 'X\(//\)$' \| \
11767 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11768 $as_echo X"$as_dir" |
11769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11770 s//\1/
11771 q
11772 }
11773 /^X\(\/\/\)[^/].*/{
11774 s//\1/
11775 q
11776 }
11777 /^X\(\/\/\)$/{
11778 s//\1/
11779 q
11780 }
11781 /^X\(\/\).*/{
11782 s//\1/
11783 q
11784 }
11785 s/.*/./; q'`
11786 test -d "$as_dir" && break
11787 done
11788 test -z "$as_dirs" || eval "mkdir $as_dirs"
11789 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11790
11791
11792 } # as_fn_mkdir_p
11793 if mkdir -p . 2>/dev/null; then
11794 as_mkdir_p='mkdir -p "$as_dir"'
11795 else
11796 test -d ./-p && rmdir ./-p
11797 as_mkdir_p=false
11798 fi
11799
11800 if test -x / >/dev/null 2>&1; then
11801 as_test_x='test -x'
11802 else
11803 if ls -dL / >/dev/null 2>&1; then
11804 as_ls_L_option=L
11805 else
11806 as_ls_L_option=
11807 fi
11808 as_test_x='
11809 eval sh -c '\''
11810 if test -d "$1"; then
11811 test -d "$1/.";
11812 else
11813 case $1 in #(
11814 -*)set "./$1";;
11815 esac;
11816 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11817 ???[sx]*):;;*)false;;esac;fi
11818 '\'' sh
11819 '
11820 fi
11821 as_executable_p=$as_test_x
11822
11823 # Sed expression to map a string onto a valid CPP name.
11824 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11825
11826 # Sed expression to map a string onto a valid variable name.
11827 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11828
11829
11830 exec 6>&1
11831 ## ----------------------------------- ##
11832 ## Main body of $CONFIG_STATUS script. ##
11833 ## ----------------------------------- ##
11834 _ASEOF
11835 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11836
11837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11838 # Save the log message, to keep $0 and so on meaningful, and to
11839 # report actual input values of CONFIG_FILES etc. instead of their
11840 # values after options handling.
11841 ac_log="
11842 This file was extended by libXxf86misc $as_me 1.0.3, which was
11843 generated by GNU Autoconf 2.68. Invocation command line was
11844
11845 CONFIG_FILES = $CONFIG_FILES
11846 CONFIG_HEADERS = $CONFIG_HEADERS
11847 CONFIG_LINKS = $CONFIG_LINKS
11848 CONFIG_COMMANDS = $CONFIG_COMMANDS
11849 $ $0 $@
11850
11851 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11852 "
11853
11854 _ACEOF
11855
11856 case $ac_config_files in *"
11857 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11858 esac
11859
11860 case $ac_config_headers in *"
11861 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11862 esac
11863
11864
11865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11866 # Files that config.status was made for.
11867 config_files="$ac_config_files"
11868 config_headers="$ac_config_headers"
11869 config_commands="$ac_config_commands"
11870
11871 _ACEOF
11872
11873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11874 ac_cs_usage="\
11875 \`$as_me' instantiates files and other configuration actions
11876 from templates according to the current configuration. Unless the files
11877 and actions are specified as TAGs, all are instantiated by default.
11878
11879 Usage: $0 [OPTION]... [TAG]...
11880
11881 -h, --help print this help, then exit
11882 -V, --version print version number and configuration settings, then exit
11883 --config print configuration, then exit
11884 -q, --quiet, --silent
11885 do not print progress messages
11886 -d, --debug don't remove temporary files
11887 --recheck update $as_me by reconfiguring in the same conditions
11888 --file=FILE[:TEMPLATE]
11889 instantiate the configuration file FILE
11890 --header=FILE[:TEMPLATE]
11891 instantiate the configuration header FILE
11892
11893 Configuration files:
11894 $config_files
11895
11896 Configuration headers:
11897 $config_headers
11898
11899 Configuration commands:
11900 $config_commands
11901
11902 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11903
11904 _ACEOF
11905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11906 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11907 ac_cs_version="\\
11908 libXxf86misc config.status 1.0.3
11909 configured by $0, generated by GNU Autoconf 2.68,
11910 with options \\"\$ac_cs_config\\"
11911
11912 Copyright (C) 2010 Free Software Foundation, Inc.
11913 This config.status script is free software; the Free Software Foundation
11914 gives unlimited permission to copy, distribute and modify it."
11915
11916 ac_pwd='$ac_pwd'
11917 srcdir='$srcdir'
11918 INSTALL='$INSTALL'
11919 MKDIR_P='$MKDIR_P'
11920 AWK='$AWK'
11921 test -n "\$AWK" || AWK=awk
11922 _ACEOF
11923
11924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11925 # The default lists apply if the user does not specify any file.
11926 ac_need_defaults=:
11927 while test $# != 0
11928 do
11929 case $1 in
11930 --*=?*)
11931 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11932 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11933 ac_shift=:
11934 ;;
11935 --*=)
11936 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11937 ac_optarg=
11938 ac_shift=:
11939 ;;
11940 *)
11941 ac_option=$1
11942 ac_optarg=$2
11943 ac_shift=shift
11944 ;;
11945 esac
11946
11947 case $ac_option in
11948 # Handling of the options.
11949 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11950 ac_cs_recheck=: ;;
11951 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11952 $as_echo "$ac_cs_version"; exit ;;
11953 --config | --confi | --conf | --con | --co | --c )
11954 $as_echo "$ac_cs_config"; exit ;;
11955 --debug | --debu | --deb | --de | --d | -d )
11956 debug=: ;;
11957 --file | --fil | --fi | --f )
11958 $ac_shift
11959 case $ac_optarg in
11960 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11961 '') as_fn_error $? "missing file argument" ;;
11962 esac
11963 as_fn_append CONFIG_FILES " '$ac_optarg'"
11964 ac_need_defaults=false;;
11965 --header | --heade | --head | --hea )
11966 $ac_shift
11967 case $ac_optarg in
11968 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11969 esac
11970 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11971 ac_need_defaults=false;;
11972 --he | --h)
11973 # Conflict between --help and --header
11974 as_fn_error $? "ambiguous option: \`$1'
11975 Try \`$0 --help' for more information.";;
11976 --help | --hel | -h )
11977 $as_echo "$ac_cs_usage"; exit ;;
11978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11979 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11980 ac_cs_silent=: ;;
11981
11982 # This is an error.
11983 -*) as_fn_error $? "unrecognized option: \`$1'
11984 Try \`$0 --help' for more information." ;;
11985
11986 *) as_fn_append ac_config_targets " $1"
11987 ac_need_defaults=false ;;
11988
11989 esac
11990 shift
11991 done
11992
11993 ac_configure_extra_args=
11994
11995 if $ac_cs_silent; then
11996 exec 6>/dev/null
11997 ac_configure_extra_args="$ac_configure_extra_args --silent"
11998 fi
11999
12000 _ACEOF
12001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12002 if \$ac_cs_recheck; then
12003 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12004 shift
12005 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12006 CONFIG_SHELL='$SHELL'
12007 export CONFIG_SHELL
12008 exec "\$@"
12009 fi
12010
12011 _ACEOF
12012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12013 exec 5>>config.log
12014 {
12015 echo
12016 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12017 ## Running $as_me. ##
12018 _ASBOX
12019 $as_echo "$ac_log"
12020 } >&5
12021
12022 _ACEOF
12023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12024 #
12025 # INIT-COMMANDS
12026 #
12027 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12028
12029
12030 # The HP-UX ksh and POSIX shell print the target directory to stdout
12031 # if CDPATH is set.
12032 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12033
12034 sed_quote_subst='$sed_quote_subst'
12035 double_quote_subst='$double_quote_subst'
12036 delay_variable_subst='$delay_variable_subst'
12037 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12038 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12039 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12040 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12041 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12042 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12043 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12044 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12045 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12046 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12047 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12048 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12049 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12050 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12051 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12052 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12053 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12054 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12055 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12056 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12057 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12058 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12059 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12060 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12061 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12062 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12063 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12064 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12065 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12066 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12067 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12068 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12069 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12070 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12071 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12072 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12073 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12074 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12075 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12076 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12077 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12078 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12079 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12080 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12081 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12082 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12083 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12084 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12085 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"`'
12086 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12087 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12088 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12089 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12090 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12091 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12092 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12093 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12094 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12095 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12096 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12097 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12098 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12099 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12100 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12101 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12102 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12103 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12104 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12105 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12106 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12107 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12108 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12109 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12110 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12111 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12112 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12113 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12114 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12115 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12116 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12117 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12118 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12119 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12120 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12121 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12122 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12123 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12124 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12125 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12126 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12127 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12128 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12129 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12130 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12131 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12132 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12133 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12134 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12135 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12136 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12137 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12138 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12139 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12140 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12141 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12142 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12143 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12144 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12145 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12146 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12147 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12148 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12149 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12150 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12151 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12152 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12153 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12154 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12155 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12156 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12157
12158 LTCC='$LTCC'
12159 LTCFLAGS='$LTCFLAGS'
12160 compiler='$compiler_DEFAULT'
12161
12162 # A function that is used when there is no print builtin or printf.
12163 func_fallback_echo ()
12164 {
12165 eval 'cat <<_LTECHO_EOF
12166 \$1
12167 _LTECHO_EOF'
12168 }
12169
12170 # Quote evaled strings.
12171 for var in SHELL \
12172 ECHO \
12173 SED \
12174 GREP \
12175 EGREP \
12176 FGREP \
12177 LD \
12178 NM \
12179 LN_S \
12180 lt_SP2NL \
12181 lt_NL2SP \
12182 reload_flag \
12183 OBJDUMP \
12184 deplibs_check_method \
12185 file_magic_cmd \
12186 AR \
12187 AR_FLAGS \
12188 STRIP \
12189 RANLIB \
12190 CC \
12191 CFLAGS \
12192 compiler \
12193 lt_cv_sys_global_symbol_pipe \
12194 lt_cv_sys_global_symbol_to_cdecl \
12195 lt_cv_sys_global_symbol_to_c_name_address \
12196 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12197 lt_prog_compiler_no_builtin_flag \
12198 lt_prog_compiler_wl \
12199 lt_prog_compiler_pic \
12200 lt_prog_compiler_static \
12201 lt_cv_prog_compiler_c_o \
12202 need_locks \
12203 DSYMUTIL \
12204 NMEDIT \
12205 LIPO \
12206 OTOOL \
12207 OTOOL64 \
12208 shrext_cmds \
12209 export_dynamic_flag_spec \
12210 whole_archive_flag_spec \
12211 compiler_needs_object \
12212 with_gnu_ld \
12213 allow_undefined_flag \
12214 no_undefined_flag \
12215 hardcode_libdir_flag_spec \
12216 hardcode_libdir_flag_spec_ld \
12217 hardcode_libdir_separator \
12218 fix_srcfile_path \
12219 exclude_expsyms \
12220 include_expsyms \
12221 file_list_spec \
12222 variables_saved_for_relink \
12223 libname_spec \
12224 library_names_spec \
12225 soname_spec \
12226 install_override_mode \
12227 finish_eval \
12228 old_striplib \
12229 striplib; do
12230 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12231 *[\\\\\\\`\\"\\\$]*)
12232 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12233 ;;
12234 *)
12235 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12236 ;;
12237 esac
12238 done
12239
12240 # Double-quote double-evaled strings.
12241 for var in reload_cmds \
12242 old_postinstall_cmds \
12243 old_postuninstall_cmds \
12244 old_archive_cmds \
12245 extract_expsyms_cmds \
12246 old_archive_from_new_cmds \
12247 old_archive_from_expsyms_cmds \
12248 archive_cmds \
12249 archive_expsym_cmds \
12250 module_cmds \
12251 module_expsym_cmds \
12252 export_symbols_cmds \
12253 prelink_cmds \
12254 postinstall_cmds \
12255 postuninstall_cmds \
12256 finish_cmds \
12257 sys_lib_search_path_spec \
12258 sys_lib_dlsearch_path_spec; do
12259 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12260 *[\\\\\\\`\\"\\\$]*)
12261 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12262 ;;
12263 *)
12264 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12265 ;;
12266 esac
12267 done
12268
12269 ac_aux_dir='$ac_aux_dir'
12270 xsi_shell='$xsi_shell'
12271 lt_shell_append='$lt_shell_append'
12272
12273 # See if we are running on zsh, and set the options which allow our
12274 # commands through without removal of \ escapes INIT.
12275 if test -n "\${ZSH_VERSION+set}" ; then
12276 setopt NO_GLOB_SUBST
12277 fi
12278
12279
12280 PACKAGE='$PACKAGE'
12281 VERSION='$VERSION'
12282 TIMESTAMP='$TIMESTAMP'
12283 RM='$RM'
12284 ofile='$ofile'
12285
12286
12287
12288
12289 _ACEOF
12290
12291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12292
12293 # Handling of arguments.
12294 for ac_config_target in $ac_config_targets
12295 do
12296 case $ac_config_target in
12297 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
12298 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12299 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12300 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12301 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12302 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12303 "xxf86misc.pc") CONFIG_FILES="$CONFIG_FILES xxf86misc.pc" ;;
12304
12305 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12306 esac
12307 done
12308
12309
12310 # If the user did not use the arguments to specify the items to instantiate,
12311 # then the envvar interface is used. Set only those that are not.
12312 # We use the long form for the default assignment because of an extremely
12313 # bizarre bug on SunOS 4.1.3.
12314 if $ac_need_defaults; then
12315 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12316 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12317 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12318 fi
12319
12320 # Have a temporary directory for convenience. Make it in the build tree
12321 # simply because there is no reason against having it here, and in addition,
12322 # creating and moving files from /tmp can sometimes cause problems.
12323 # Hook for its removal unless debugging.
12324 # Note that there is a small window in which the directory will not be cleaned:
12325 # after its creation but before its name has been assigned to `$tmp'.
12326 $debug ||
12327 {
12328 tmp= ac_tmp=
12329 trap 'exit_status=$?
12330 : "${ac_tmp:=$tmp}"
12331 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12332 ' 0
12333 trap 'as_fn_exit 1' 1 2 13 15
12334 }
12335 # Create a (secure) tmp directory for tmp files.
12336
12337 {
12338 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12339 test -d "$tmp"
12340 } ||
12341 {
12342 tmp=./conf$$-$RANDOM
12343 (umask 077 && mkdir "$tmp")
12344 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12345 ac_tmp=$tmp
12346
12347 # Set up the scripts for CONFIG_FILES section.
12348 # No need to generate them if there are no CONFIG_FILES.
12349 # This happens for instance with `./config.status config.h'.
12350 if test -n "$CONFIG_FILES"; then
12351
12352
12353 ac_cr=`echo X | tr X '\015'`
12354 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12355 # But we know of no other shell where ac_cr would be empty at this
12356 # point, so we can use a bashism as a fallback.
12357 if test "x$ac_cr" = x; then
12358 eval ac_cr=\$\'\\r\'
12359 fi
12360 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12361 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12362 ac_cs_awk_cr='\\r'
12363 else
12364 ac_cs_awk_cr=$ac_cr
12365 fi
12366
12367 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12368 _ACEOF
12369
12370
12371 {
12372 echo "cat >conf$$subs.awk <<_ACEOF" &&
12373 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12374 echo "_ACEOF"
12375 } >conf$$subs.sh ||
12376 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12377 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12378 ac_delim='%!_!# '
12379 for ac_last_try in false false false false false :; do
12380 . ./conf$$subs.sh ||
12381 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12382
12383 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12384 if test $ac_delim_n = $ac_delim_num; then
12385 break
12386 elif $ac_last_try; then
12387 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12388 else
12389 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12390 fi
12391 done
12392 rm -f conf$$subs.sh
12393
12394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12395 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12396 _ACEOF
12397 sed -n '
12398 h
12399 s/^/S["/; s/!.*/"]=/
12400 p
12401 g
12402 s/^[^!]*!//
12403 :repl
12404 t repl
12405 s/'"$ac_delim"'$//
12406 t delim
12407 :nl
12408 h
12409 s/\(.\{148\}\)..*/\1/
12410 t more1
12411 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12412 p
12413 n
12414 b repl
12415 :more1
12416 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12417 p
12418 g
12419 s/.\{148\}//
12420 t nl
12421 :delim
12422 h
12423 s/\(.\{148\}\)..*/\1/
12424 t more2
12425 s/["\\]/\\&/g; s/^/"/; s/$/"/
12426 p
12427 b
12428 :more2
12429 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12430 p
12431 g
12432 s/.\{148\}//
12433 t delim
12434 ' <conf$$subs.awk | sed '
12435 /^[^""]/{
12436 N
12437 s/\n//
12438 }
12439 ' >>$CONFIG_STATUS || ac_write_fail=1
12440 rm -f conf$$subs.awk
12441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12442 _ACAWK
12443 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12444 for (key in S) S_is_set[key] = 1
12445 FS = ""
12446
12447 }
12448 {
12449 line = $ 0
12450 nfields = split(line, field, "@")
12451 substed = 0
12452 len = length(field[1])
12453 for (i = 2; i < nfields; i++) {
12454 key = field[i]
12455 keylen = length(key)
12456 if (S_is_set[key]) {
12457 value = S[key]
12458 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12459 len += length(value) + length(field[++i])
12460 substed = 1
12461 } else
12462 len += 1 + keylen
12463 }
12464
12465 print line
12466 }
12467
12468 _ACAWK
12469 _ACEOF
12470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12471 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12472 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12473 else
12474 cat
12475 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12476 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12477 _ACEOF
12478
12479 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12480 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12481 # trailing colons and then remove the whole line if VPATH becomes empty
12482 # (actually we leave an empty line to preserve line numbers).
12483 if test "x$srcdir" = x.; then
12484 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12485 h
12486 s///
12487 s/^/:/
12488 s/[ ]*$/:/
12489 s/:\$(srcdir):/:/g
12490 s/:\${srcdir}:/:/g
12491 s/:@srcdir@:/:/g
12492 s/^:*//
12493 s/:*$//
12494 x
12495 s/\(=[ ]*\).*/\1/
12496 G
12497 s/\n//
12498 s/^[^=]*=[ ]*$//
12499 }'
12500 fi
12501
12502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12503 fi # test -n "$CONFIG_FILES"
12504
12505 # Set up the scripts for CONFIG_HEADERS section.
12506 # No need to generate them if there are no CONFIG_HEADERS.
12507 # This happens for instance with `./config.status Makefile'.
12508 if test -n "$CONFIG_HEADERS"; then
12509 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12510 BEGIN {
12511 _ACEOF
12512
12513 # Transform confdefs.h into an awk script `defines.awk', embedded as
12514 # here-document in config.status, that substitutes the proper values into
12515 # config.h.in to produce config.h.
12516
12517 # Create a delimiter string that does not exist in confdefs.h, to ease
12518 # handling of long lines.
12519 ac_delim='%!_!# '
12520 for ac_last_try in false false :; do
12521 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12522 if test -z "$ac_tt"; then
12523 break
12524 elif $ac_last_try; then
12525 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12526 else
12527 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12528 fi
12529 done
12530
12531 # For the awk script, D is an array of macro values keyed by name,
12532 # likewise P contains macro parameters if any. Preserve backslash
12533 # newline sequences.
12534
12535 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12536 sed -n '
12537 s/.\{148\}/&'"$ac_delim"'/g
12538 t rset
12539 :rset
12540 s/^[ ]*#[ ]*define[ ][ ]*/ /
12541 t def
12542 d
12543 :def
12544 s/\\$//
12545 t bsnl
12546 s/["\\]/\\&/g
12547 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12548 D["\1"]=" \3"/p
12549 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12550 d
12551 :bsnl
12552 s/["\\]/\\&/g
12553 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12554 D["\1"]=" \3\\\\\\n"\\/p
12555 t cont
12556 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12557 t cont
12558 d
12559 :cont
12560 n
12561 s/.\{148\}/&'"$ac_delim"'/g
12562 t clear
12563 :clear
12564 s/\\$//
12565 t bsnlc
12566 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12567 d
12568 :bsnlc
12569 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12570 b cont
12571 ' <confdefs.h | sed '
12572 s/'"$ac_delim"'/"\\\
12573 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12574
12575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12576 for (key in D) D_is_set[key] = 1
12577 FS = ""
12578 }
12579 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12580 line = \$ 0
12581 split(line, arg, " ")
12582 if (arg[1] == "#") {
12583 defundef = arg[2]
12584 mac1 = arg[3]
12585 } else {
12586 defundef = substr(arg[1], 2)
12587 mac1 = arg[2]
12588 }
12589 split(mac1, mac2, "(") #)
12590 macro = mac2[1]
12591 prefix = substr(line, 1, index(line, defundef) - 1)
12592 if (D_is_set[macro]) {
12593 # Preserve the white space surrounding the "#".
12594 print prefix "define", macro P[macro] D[macro]
12595 next
12596 } else {
12597 # Replace #undef with comments. This is necessary, for example,
12598 # in the case of _POSIX_SOURCE, which is predefined and required
12599 # on some systems where configure will not decide to define it.
12600 if (defundef == "undef") {
12601 print "/*", prefix defundef, macro, "*/"
12602 next
12603 }
12604 }
12605 }
12606 { print }
12607 _ACAWK
12608 _ACEOF
12609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12610 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12611 fi # test -n "$CONFIG_HEADERS"
12612
12613
12614 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12615 shift
12616 for ac_tag
12617 do
12618 case $ac_tag in
12619 :[FHLC]) ac_mode=$ac_tag; continue;;
12620 esac
12621 case $ac_mode$ac_tag in
12622 :[FHL]*:*);;
12623 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12624 :[FH]-) ac_tag=-:-;;
12625 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12626 esac
12627 ac_save_IFS=$IFS
12628 IFS=:
12629 set x $ac_tag
12630 IFS=$ac_save_IFS
12631 shift
12632 ac_file=$1
12633 shift
12634
12635 case $ac_mode in
12636 :L) ac_source=$1;;
12637 :[FH])
12638 ac_file_inputs=
12639 for ac_f
12640 do
12641 case $ac_f in
12642 -) ac_f="$ac_tmp/stdin";;
12643 *) # Look for the file first in the build tree, then in the source tree
12644 # (if the path is not absolute). The absolute path cannot be DOS-style,
12645 # because $ac_f cannot contain `:'.
12646 test -f "$ac_f" ||
12647 case $ac_f in
12648 [\\/$]*) false;;
12649 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12650 esac ||
12651 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12652 esac
12653 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12654 as_fn_append ac_file_inputs " '$ac_f'"
12655 done
12656
12657 # Let's still pretend it is `configure' which instantiates (i.e., don't
12658 # use $as_me), people would be surprised to read:
12659 # /* config.h. Generated by config.status. */
12660 configure_input='Generated from '`
12661 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12662 `' by configure.'
12663 if test x"$ac_file" != x-; then
12664 configure_input="$ac_file. $configure_input"
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12666 $as_echo "$as_me: creating $ac_file" >&6;}
12667 fi
12668 # Neutralize special characters interpreted by sed in replacement strings.
12669 case $configure_input in #(
12670 *\&* | *\|* | *\\* )
12671 ac_sed_conf_input=`$as_echo "$configure_input" |
12672 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12673 *) ac_sed_conf_input=$configure_input;;
12674 esac
12675
12676 case $ac_tag in
12677 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12679 esac
12680 ;;
12681 esac
12682
12683 ac_dir=`$as_dirname -- "$ac_file" ||
12684 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12685 X"$ac_file" : 'X\(//\)[^/]' \| \
12686 X"$ac_file" : 'X\(//\)$' \| \
12687 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12688 $as_echo X"$ac_file" |
12689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12690 s//\1/
12691 q
12692 }
12693 /^X\(\/\/\)[^/].*/{
12694 s//\1/
12695 q
12696 }
12697 /^X\(\/\/\)$/{
12698 s//\1/
12699 q
12700 }
12701 /^X\(\/\).*/{
12702 s//\1/
12703 q
12704 }
12705 s/.*/./; q'`
12706 as_dir="$ac_dir"; as_fn_mkdir_p
12707 ac_builddir=.
12708
12709 case "$ac_dir" in
12710 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12711 *)
12712 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12713 # A ".." for each directory in $ac_dir_suffix.
12714 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12715 case $ac_top_builddir_sub in
12716 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12717 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12718 esac ;;
12719 esac
12720 ac_abs_top_builddir=$ac_pwd
12721 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12722 # for backward compatibility:
12723 ac_top_builddir=$ac_top_build_prefix
12724
12725 case $srcdir in
12726 .) # We are building in place.
12727 ac_srcdir=.
12728 ac_top_srcdir=$ac_top_builddir_sub
12729 ac_abs_top_srcdir=$ac_pwd ;;
12730 [\\/]* | ?:[\\/]* ) # Absolute name.
12731 ac_srcdir=$srcdir$ac_dir_suffix;
12732 ac_top_srcdir=$srcdir
12733 ac_abs_top_srcdir=$srcdir ;;
12734 *) # Relative name.
12735 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12736 ac_top_srcdir=$ac_top_build_prefix$srcdir
12737 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12738 esac
12739 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12740
12741
12742 case $ac_mode in
12743 :F)
12744 #
12745 # CONFIG_FILE
12746 #
12747
12748 case $INSTALL in
12749 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12750 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12751 esac
12752 ac_MKDIR_P=$MKDIR_P
12753 case $MKDIR_P in
12754 [\\/$]* | ?:[\\/]* ) ;;
12755 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12756 esac
12757 _ACEOF
12758
12759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12760 # If the template does not know about datarootdir, expand it.
12761 # FIXME: This hack should be removed a few years after 2.60.
12762 ac_datarootdir_hack=; ac_datarootdir_seen=
12763 ac_sed_dataroot='
12764 /datarootdir/ {
12765 p
12766 q
12767 }
12768 /@datadir@/p
12769 /@docdir@/p
12770 /@infodir@/p
12771 /@localedir@/p
12772 /@mandir@/p'
12773 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12774 *datarootdir*) ac_datarootdir_seen=yes;;
12775 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12777 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12778 _ACEOF
12779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12780 ac_datarootdir_hack='
12781 s&@datadir@&$datadir&g
12782 s&@docdir@&$docdir&g
12783 s&@infodir@&$infodir&g
12784 s&@localedir@&$localedir&g
12785 s&@mandir@&$mandir&g
12786 s&\\\${datarootdir}&$datarootdir&g' ;;
12787 esac
12788 _ACEOF
12789
12790 # Neutralize VPATH when `$srcdir' = `.'.
12791 # Shell code in configure.ac might set extrasub.
12792 # FIXME: do we really want to maintain this feature?
12793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12794 ac_sed_extra="$ac_vpsub
12795 $extrasub
12796 _ACEOF
12797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12798 :t
12799 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12800 s|@configure_input@|$ac_sed_conf_input|;t t
12801 s&@top_builddir@&$ac_top_builddir_sub&;t t
12802 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12803 s&@srcdir@&$ac_srcdir&;t t
12804 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12805 s&@top_srcdir@&$ac_top_srcdir&;t t
12806 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12807 s&@builddir@&$ac_builddir&;t t
12808 s&@abs_builddir@&$ac_abs_builddir&;t t
12809 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12810 s&@INSTALL@&$ac_INSTALL&;t t
12811 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12812 $ac_datarootdir_hack
12813 "
12814 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12815 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12816
12817 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12818 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12819 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12820 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12822 which seems to be undefined. Please make sure it is defined" >&5
12823 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12824 which seems to be undefined. Please make sure it is defined" >&2;}
12825
12826 rm -f "$ac_tmp/stdin"
12827 case $ac_file in
12828 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12829 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12830 esac \
12831 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12832 ;;
12833 :H)
12834 #
12835 # CONFIG_HEADER
12836 #
12837 if test x"$ac_file" != x-; then
12838 {
12839 $as_echo "/* $configure_input */" \
12840 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12841 } >"$ac_tmp/config.h" \
12842 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12843 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12845 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12846 else
12847 rm -f "$ac_file"
12848 mv "$ac_tmp/config.h" "$ac_file" \
12849 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12850 fi
12851 else
12852 $as_echo "/* $configure_input */" \
12853 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12854 || as_fn_error $? "could not create -" "$LINENO" 5
12855 fi
12856 # Compute "$ac_file"'s index in $config_headers.
12857 _am_arg="$ac_file"
12858 _am_stamp_count=1
12859 for _am_header in $config_headers :; do
12860 case $_am_header in
12861 $_am_arg | $_am_arg:* )
12862 break ;;
12863 * )
12864 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12865 esac
12866 done
12867 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12868 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12869 X"$_am_arg" : 'X\(//\)[^/]' \| \
12870 X"$_am_arg" : 'X\(//\)$' \| \
12871 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12872 $as_echo X"$_am_arg" |
12873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12874 s//\1/
12875 q
12876 }
12877 /^X\(\/\/\)[^/].*/{
12878 s//\1/
12879 q
12880 }
12881 /^X\(\/\/\)$/{
12882 s//\1/
12883 q
12884 }
12885 /^X\(\/\).*/{
12886 s//\1/
12887 q
12888 }
12889 s/.*/./; q'`/stamp-h$_am_stamp_count
12890 ;;
12891
12892 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12893 $as_echo "$as_me: executing $ac_file commands" >&6;}
12894 ;;
12895 esac
12896
12897
12898 case $ac_file$ac_mode in
12899 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12900 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12901 # are listed without --file. Let's play safe and only enable the eval
12902 # if we detect the quoting.
12903 case $CONFIG_FILES in
12904 *\'*) eval set x "$CONFIG_FILES" ;;
12905 *) set x $CONFIG_FILES ;;
12906 esac
12907 shift
12908 for mf
12909 do
12910 # Strip MF so we end up with the name of the file.
12911 mf=`echo "$mf" | sed -e 's/:.*$//'`
12912 # Check whether this is an Automake generated Makefile or not.
12913 # We used to match only the files named `Makefile.in', but
12914 # some people rename them; so instead we look at the file content.
12915 # Grep'ing the first line is not enough: some people post-process
12916 # each Makefile.in and add a new line on top of each file to say so.
12917 # Grep'ing the whole file is not good either: AIX grep has a line
12918 # limit of 2048, but all sed's we know have understand at least 4000.
12919 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12920 dirpart=`$as_dirname -- "$mf" ||
12921 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12922 X"$mf" : 'X\(//\)[^/]' \| \
12923 X"$mf" : 'X\(//\)$' \| \
12924 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12925 $as_echo X"$mf" |
12926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12927 s//\1/
12928 q
12929 }
12930 /^X\(\/\/\)[^/].*/{
12931 s//\1/
12932 q
12933 }
12934 /^X\(\/\/\)$/{
12935 s//\1/
12936 q
12937 }
12938 /^X\(\/\).*/{
12939 s//\1/
12940 q
12941 }
12942 s/.*/./; q'`
12943 else
12944 continue
12945 fi
12946 # Extract the definition of DEPDIR, am__include, and am__quote
12947 # from the Makefile without running `make'.
12948 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12949 test -z "$DEPDIR" && continue
12950 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12951 test -z "am__include" && continue
12952 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12953 # When using ansi2knr, U may be empty or an underscore; expand it
12954 U=`sed -n 's/^U = //p' < "$mf"`
12955 # Find all dependency output files, they are included files with
12956 # $(DEPDIR) in their names. We invoke sed twice because it is the
12957 # simplest approach to changing $(DEPDIR) to its actual value in the
12958 # expansion.
12959 for file in `sed -n "
12960 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12961 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12962 # Make sure the directory exists.
12963 test -f "$dirpart/$file" && continue
12964 fdir=`$as_dirname -- "$file" ||
12965 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12966 X"$file" : 'X\(//\)[^/]' \| \
12967 X"$file" : 'X\(//\)$' \| \
12968 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12969 $as_echo X"$file" |
12970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12971 s//\1/
12972 q
12973 }
12974 /^X\(\/\/\)[^/].*/{
12975 s//\1/
12976 q
12977 }
12978 /^X\(\/\/\)$/{
12979 s//\1/
12980 q
12981 }
12982 /^X\(\/\).*/{
12983 s//\1/
12984 q
12985 }
12986 s/.*/./; q'`
12987 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12988 # echo "creating $dirpart/$file"
12989 echo '# dummy' > "$dirpart/$file"
12990 done
12991 done
12992 }
12993 ;;
12994 "libtool":C)
12995
12996 # See if we are running on zsh, and set the options which allow our
12997 # commands through without removal of \ escapes.
12998 if test -n "${ZSH_VERSION+set}" ; then
12999 setopt NO_GLOB_SUBST
13000 fi
13001
13002 cfgfile="${ofile}T"
13003 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13004 $RM "$cfgfile"
13005
13006 cat <<_LT_EOF >> "$cfgfile"
13007 #! $SHELL
13008
13009 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13010 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13011 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13012 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13013 #
13014 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13015 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13016 # Inc.
13017 # Written by Gordon Matzigkeit, 1996
13018 #
13019 # This file is part of GNU Libtool.
13020 #
13021 # GNU Libtool is free software; you can redistribute it and/or
13022 # modify it under the terms of the GNU General Public License as
13023 # published by the Free Software Foundation; either version 2 of
13024 # the License, or (at your option) any later version.
13025 #
13026 # As a special exception to the GNU General Public License,
13027 # if you distribute this file as part of a program or library that
13028 # is built using GNU Libtool, you may include this file under the
13029 # same distribution terms that you use for the rest of that program.
13030 #
13031 # GNU Libtool is distributed in the hope that it will be useful,
13032 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13033 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13034 # GNU General Public License for more details.
13035 #
13036 # You should have received a copy of the GNU General Public License
13037 # along with GNU Libtool; see the file COPYING. If not, a copy
13038 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13039 # obtained by writing to the Free Software Foundation, Inc.,
13040 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13041
13042
13043 # The names of the tagged configurations supported by this script.
13044 available_tags=""
13045
13046 # ### BEGIN LIBTOOL CONFIG
13047
13048 # Which release of libtool.m4 was used?
13049 macro_version=$macro_version
13050 macro_revision=$macro_revision
13051
13052 # Whether or not to build shared libraries.
13053 build_libtool_libs=$enable_shared
13054
13055 # Whether or not to build static libraries.
13056 build_old_libs=$enable_static
13057
13058 # What type of objects to build.
13059 pic_mode=$pic_mode
13060
13061 # Whether or not to optimize for fast installation.
13062 fast_install=$enable_fast_install
13063
13064 # Shell to use when invoking shell scripts.
13065 SHELL=$lt_SHELL
13066
13067 # An echo program that protects backslashes.
13068 ECHO=$lt_ECHO
13069
13070 # The host system.
13071 host_alias=$host_alias
13072 host=$host
13073 host_os=$host_os
13074
13075 # The build system.
13076 build_alias=$build_alias
13077 build=$build
13078 build_os=$build_os
13079
13080 # A sed program that does not truncate output.
13081 SED=$lt_SED
13082
13083 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13084 Xsed="\$SED -e 1s/^X//"
13085
13086 # A grep program that handles long lines.
13087 GREP=$lt_GREP
13088
13089 # An ERE matcher.
13090 EGREP=$lt_EGREP
13091
13092 # A literal string matcher.
13093 FGREP=$lt_FGREP
13094
13095 # A BSD- or MS-compatible name lister.
13096 NM=$lt_NM
13097
13098 # Whether we need soft or hard links.
13099 LN_S=$lt_LN_S
13100
13101 # What is the maximum length of a command?
13102 max_cmd_len=$max_cmd_len
13103
13104 # Object file suffix (normally "o").
13105 objext=$ac_objext
13106
13107 # Executable file suffix (normally "").
13108 exeext=$exeext
13109
13110 # whether the shell understands "unset".
13111 lt_unset=$lt_unset
13112
13113 # turn spaces into newlines.
13114 SP2NL=$lt_lt_SP2NL
13115
13116 # turn newlines into spaces.
13117 NL2SP=$lt_lt_NL2SP
13118
13119 # An object symbol dumper.
13120 OBJDUMP=$lt_OBJDUMP
13121
13122 # Method to check whether dependent libraries are shared objects.
13123 deplibs_check_method=$lt_deplibs_check_method
13124
13125 # Command to use when deplibs_check_method == "file_magic".
13126 file_magic_cmd=$lt_file_magic_cmd
13127
13128 # The archiver.
13129 AR=$lt_AR
13130 AR_FLAGS=$lt_AR_FLAGS
13131
13132 # A symbol stripping program.
13133 STRIP=$lt_STRIP
13134
13135 # Commands used to install an old-style archive.
13136 RANLIB=$lt_RANLIB
13137 old_postinstall_cmds=$lt_old_postinstall_cmds
13138 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13139
13140 # Whether to use a lock for old archive extraction.
13141 lock_old_archive_extraction=$lock_old_archive_extraction
13142
13143 # A C compiler.
13144 LTCC=$lt_CC
13145
13146 # LTCC compiler flags.
13147 LTCFLAGS=$lt_CFLAGS
13148
13149 # Take the output of nm and produce a listing of raw symbols and C names.
13150 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13151
13152 # Transform the output of nm in a proper C declaration.
13153 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13154
13155 # Transform the output of nm in a C name address pair.
13156 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13157
13158 # Transform the output of nm in a C name address pair when lib prefix is needed.
13159 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13160
13161 # The name of the directory that contains temporary libtool files.
13162 objdir=$objdir
13163
13164 # Used to examine libraries when file_magic_cmd begins with "file".
13165 MAGIC_CMD=$MAGIC_CMD
13166
13167 # Must we lock files when doing compilation?
13168 need_locks=$lt_need_locks
13169
13170 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13171 DSYMUTIL=$lt_DSYMUTIL
13172
13173 # Tool to change global to local symbols on Mac OS X.
13174 NMEDIT=$lt_NMEDIT
13175
13176 # Tool to manipulate fat objects and archives on Mac OS X.
13177 LIPO=$lt_LIPO
13178
13179 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13180 OTOOL=$lt_OTOOL
13181
13182 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13183 OTOOL64=$lt_OTOOL64
13184
13185 # Old archive suffix (normally "a").
13186 libext=$libext
13187
13188 # Shared library suffix (normally ".so").
13189 shrext_cmds=$lt_shrext_cmds
13190
13191 # The commands to extract the exported symbol list from a shared archive.
13192 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13193
13194 # Variables whose values should be saved in libtool wrapper scripts and
13195 # restored at link time.
13196 variables_saved_for_relink=$lt_variables_saved_for_relink
13197
13198 # Do we need the "lib" prefix for modules?
13199 need_lib_prefix=$need_lib_prefix
13200
13201 # Do we need a version for libraries?
13202 need_version=$need_version
13203
13204 # Library versioning type.
13205 version_type=$version_type
13206
13207 # Shared library runtime path variable.
13208 runpath_var=$runpath_var
13209
13210 # Shared library path variable.
13211 shlibpath_var=$shlibpath_var
13212
13213 # Is shlibpath searched before the hard-coded library search path?
13214 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13215
13216 # Format of library name prefix.
13217 libname_spec=$lt_libname_spec
13218
13219 # List of archive names. First name is the real one, the rest are links.
13220 # The last name is the one that the linker finds with -lNAME
13221 library_names_spec=$lt_library_names_spec
13222
13223 # The coded name of the library, if different from the real name.
13224 soname_spec=$lt_soname_spec
13225
13226 # Permission mode override for installation of shared libraries.
13227 install_override_mode=$lt_install_override_mode
13228
13229 # Command to use after installation of a shared archive.
13230 postinstall_cmds=$lt_postinstall_cmds
13231
13232 # Command to use after uninstallation of a shared archive.
13233 postuninstall_cmds=$lt_postuninstall_cmds
13234
13235 # Commands used to finish a libtool library installation in a directory.
13236 finish_cmds=$lt_finish_cmds
13237
13238 # As "finish_cmds", except a single script fragment to be evaled but
13239 # not shown.
13240 finish_eval=$lt_finish_eval
13241
13242 # Whether we should hardcode library paths into libraries.
13243 hardcode_into_libs=$hardcode_into_libs
13244
13245 # Compile-time system search path for libraries.
13246 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13247
13248 # Run-time system search path for libraries.
13249 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13250
13251 # Whether dlopen is supported.
13252 dlopen_support=$enable_dlopen
13253
13254 # Whether dlopen of programs is supported.
13255 dlopen_self=$enable_dlopen_self
13256
13257 # Whether dlopen of statically linked programs is supported.
13258 dlopen_self_static=$enable_dlopen_self_static
13259
13260 # Commands to strip libraries.
13261 old_striplib=$lt_old_striplib
13262 striplib=$lt_striplib
13263
13264
13265 # The linker used to build libraries.
13266 LD=$lt_LD
13267
13268 # How to create reloadable object files.
13269 reload_flag=$lt_reload_flag
13270 reload_cmds=$lt_reload_cmds
13271
13272 # Commands used to build an old-style archive.
13273 old_archive_cmds=$lt_old_archive_cmds
13274
13275 # A language specific compiler.
13276 CC=$lt_compiler
13277
13278 # Is the compiler the GNU compiler?
13279 with_gcc=$GCC
13280
13281 # Compiler flag to turn off builtin functions.
13282 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13283
13284 # How to pass a linker flag through the compiler.
13285 wl=$lt_lt_prog_compiler_wl
13286
13287 # Additional compiler flags for building library objects.
13288 pic_flag=$lt_lt_prog_compiler_pic
13289
13290 # Compiler flag to prevent dynamic linking.
13291 link_static_flag=$lt_lt_prog_compiler_static
13292
13293 # Does compiler simultaneously support -c and -o options?
13294 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13295
13296 # Whether or not to add -lc for building shared libraries.
13297 build_libtool_need_lc=$archive_cmds_need_lc
13298
13299 # Whether or not to disallow shared libs when runtime libs are static.
13300 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13301
13302 # Compiler flag to allow reflexive dlopens.
13303 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13304
13305 # Compiler flag to generate shared objects directly from archives.
13306 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13307
13308 # Whether the compiler copes with passing no objects directly.
13309 compiler_needs_object=$lt_compiler_needs_object
13310
13311 # Create an old-style archive from a shared archive.
13312 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13313
13314 # Create a temporary old-style archive to link instead of a shared archive.
13315 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13316
13317 # Commands used to build a shared archive.
13318 archive_cmds=$lt_archive_cmds
13319 archive_expsym_cmds=$lt_archive_expsym_cmds
13320
13321 # Commands used to build a loadable module if different from building
13322 # a shared archive.
13323 module_cmds=$lt_module_cmds
13324 module_expsym_cmds=$lt_module_expsym_cmds
13325
13326 # Whether we are building with GNU ld or not.
13327 with_gnu_ld=$lt_with_gnu_ld
13328
13329 # Flag that allows shared libraries with undefined symbols to be built.
13330 allow_undefined_flag=$lt_allow_undefined_flag
13331
13332 # Flag that enforces no undefined symbols.
13333 no_undefined_flag=$lt_no_undefined_flag
13334
13335 # Flag to hardcode \$libdir into a binary during linking.
13336 # This must work even if \$libdir does not exist
13337 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13338
13339 # If ld is used when linking, flag to hardcode \$libdir into a binary
13340 # during linking. This must work even if \$libdir does not exist.
13341 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13342
13343 # Whether we need a single "-rpath" flag with a separated argument.
13344 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13345
13346 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13347 # DIR into the resulting binary.
13348 hardcode_direct=$hardcode_direct
13349
13350 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13351 # DIR into the resulting binary and the resulting library dependency is
13352 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13353 # library is relocated.
13354 hardcode_direct_absolute=$hardcode_direct_absolute
13355
13356 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13357 # into the resulting binary.
13358 hardcode_minus_L=$hardcode_minus_L
13359
13360 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13361 # into the resulting binary.
13362 hardcode_shlibpath_var=$hardcode_shlibpath_var
13363
13364 # Set to "yes" if building a shared library automatically hardcodes DIR
13365 # into the library and all subsequent libraries and executables linked
13366 # against it.
13367 hardcode_automatic=$hardcode_automatic
13368
13369 # Set to yes if linker adds runtime paths of dependent libraries
13370 # to runtime path list.
13371 inherit_rpath=$inherit_rpath
13372
13373 # Whether libtool must link a program against all its dependency libraries.
13374 link_all_deplibs=$link_all_deplibs
13375
13376 # Fix the shell variable \$srcfile for the compiler.
13377 fix_srcfile_path=$lt_fix_srcfile_path
13378
13379 # Set to "yes" if exported symbols are required.
13380 always_export_symbols=$always_export_symbols
13381
13382 # The commands to list exported symbols.
13383 export_symbols_cmds=$lt_export_symbols_cmds
13384
13385 # Symbols that should not be listed in the preloaded symbols.
13386 exclude_expsyms=$lt_exclude_expsyms
13387
13388 # Symbols that must always be exported.
13389 include_expsyms=$lt_include_expsyms
13390
13391 # Commands necessary for linking programs (against libraries) with templates.
13392 prelink_cmds=$lt_prelink_cmds
13393
13394 # Specify filename containing input files.
13395 file_list_spec=$lt_file_list_spec
13396
13397 # How to hardcode a shared library path into an executable.
13398 hardcode_action=$hardcode_action
13399
13400 # ### END LIBTOOL CONFIG
13401
13402 _LT_EOF
13403
13404 case $host_os in
13405 aix3*)
13406 cat <<\_LT_EOF >> "$cfgfile"
13407 # AIX sometimes has problems with the GCC collect2 program. For some
13408 # reason, if we set the COLLECT_NAMES environment variable, the problems
13409 # vanish in a puff of smoke.
13410 if test "X${COLLECT_NAMES+set}" != Xset; then
13411 COLLECT_NAMES=
13412 export COLLECT_NAMES
13413 fi
13414 _LT_EOF
13415 ;;
13416 esac
13417
13418
13419 ltmain="$ac_aux_dir/ltmain.sh"
13420
13421
13422 # We use sed instead of cat because bash on DJGPP gets confused if
13423 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13424 # text mode, it properly converts lines to CR/LF. This bash problem
13425 # is reportedly fixed, but why not run on old versions too?
13426 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13427 || (rm -f "$cfgfile"; exit 1)
13428
13429 case $xsi_shell in
13430 yes)
13431 cat << \_LT_EOF >> "$cfgfile"
13432
13433 # func_dirname file append nondir_replacement
13434 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13435 # otherwise set result to NONDIR_REPLACEMENT.
13436 func_dirname ()
13437 {
13438 case ${1} in
13439 */*) func_dirname_result="${1%/*}${2}" ;;
13440 * ) func_dirname_result="${3}" ;;
13441 esac
13442 }
13443
13444 # func_basename file
13445 func_basename ()
13446 {
13447 func_basename_result="${1##*/}"
13448 }
13449
13450 # func_dirname_and_basename file append nondir_replacement
13451 # perform func_basename and func_dirname in a single function
13452 # call:
13453 # dirname: Compute the dirname of FILE. If nonempty,
13454 # add APPEND to the result, otherwise set result
13455 # to NONDIR_REPLACEMENT.
13456 # value returned in "$func_dirname_result"
13457 # basename: Compute filename of FILE.
13458 # value retuned in "$func_basename_result"
13459 # Implementation must be kept synchronized with func_dirname
13460 # and func_basename. For efficiency, we do not delegate to
13461 # those functions but instead duplicate the functionality here.
13462 func_dirname_and_basename ()
13463 {
13464 case ${1} in
13465 */*) func_dirname_result="${1%/*}${2}" ;;
13466 * ) func_dirname_result="${3}" ;;
13467 esac
13468 func_basename_result="${1##*/}"
13469 }
13470
13471 # func_stripname prefix suffix name
13472 # strip PREFIX and SUFFIX off of NAME.
13473 # PREFIX and SUFFIX must not contain globbing or regex special
13474 # characters, hashes, percent signs, but SUFFIX may contain a leading
13475 # dot (in which case that matches only a dot).
13476 func_stripname ()
13477 {
13478 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13479 # positional parameters, so assign one to ordinary parameter first.
13480 func_stripname_result=${3}
13481 func_stripname_result=${func_stripname_result#"${1}"}
13482 func_stripname_result=${func_stripname_result%"${2}"}
13483 }
13484
13485 # func_opt_split
13486 func_opt_split ()
13487 {
13488 func_opt_split_opt=${1%%=*}
13489 func_opt_split_arg=${1#*=}
13490 }
13491
13492 # func_lo2o object
13493 func_lo2o ()
13494 {
13495 case ${1} in
13496 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13497 *) func_lo2o_result=${1} ;;
13498 esac
13499 }
13500
13501 # func_xform libobj-or-source
13502 func_xform ()
13503 {
13504 func_xform_result=${1%.*}.lo
13505 }
13506
13507 # func_arith arithmetic-term...
13508 func_arith ()
13509 {
13510 func_arith_result=$(( $* ))
13511 }
13512
13513 # func_len string
13514 # STRING may not start with a hyphen.
13515 func_len ()
13516 {
13517 func_len_result=${#1}
13518 }
13519
13520 _LT_EOF
13521 ;;
13522 *) # Bourne compatible functions.
13523 cat << \_LT_EOF >> "$cfgfile"
13524
13525 # func_dirname file append nondir_replacement
13526 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13527 # otherwise set result to NONDIR_REPLACEMENT.
13528 func_dirname ()
13529 {
13530 # Extract subdirectory from the argument.
13531 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13532 if test "X$func_dirname_result" = "X${1}"; then
13533 func_dirname_result="${3}"
13534 else
13535 func_dirname_result="$func_dirname_result${2}"
13536 fi
13537 }
13538
13539 # func_basename file
13540 func_basename ()
13541 {
13542 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13543 }
13544
13545
13546 # func_stripname prefix suffix name
13547 # strip PREFIX and SUFFIX off of NAME.
13548 # PREFIX and SUFFIX must not contain globbing or regex special
13549 # characters, hashes, percent signs, but SUFFIX may contain a leading
13550 # dot (in which case that matches only a dot).
13551 # func_strip_suffix prefix name
13552 func_stripname ()
13553 {
13554 case ${2} in
13555 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13556 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13557 esac
13558 }
13559
13560 # sed scripts:
13561 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13562 my_sed_long_arg='1s/^-[^=]*=//'
13563
13564 # func_opt_split
13565 func_opt_split ()
13566 {
13567 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13568 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13569 }
13570
13571 # func_lo2o object
13572 func_lo2o ()
13573 {
13574 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13575 }
13576
13577 # func_xform libobj-or-source
13578 func_xform ()
13579 {
13580 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13581 }
13582
13583 # func_arith arithmetic-term...
13584 func_arith ()
13585 {
13586 func_arith_result=`expr "$@"`
13587 }
13588
13589 # func_len string
13590 # STRING may not start with a hyphen.
13591 func_len ()
13592 {
13593 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13594 }
13595
13596 _LT_EOF
13597 esac
13598
13599 case $lt_shell_append in
13600 yes)
13601 cat << \_LT_EOF >> "$cfgfile"
13602
13603 # func_append var value
13604 # Append VALUE to the end of shell variable VAR.
13605 func_append ()
13606 {
13607 eval "$1+=\$2"
13608 }
13609 _LT_EOF
13610 ;;
13611 *)
13612 cat << \_LT_EOF >> "$cfgfile"
13613
13614 # func_append var value
13615 # Append VALUE to the end of shell variable VAR.
13616 func_append ()
13617 {
13618 eval "$1=\$$1\$2"
13619 }
13620
13621 _LT_EOF
13622 ;;
13623 esac
13624
13625
13626 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13627 || (rm -f "$cfgfile"; exit 1)
13628
13629 mv -f "$cfgfile" "$ofile" ||
13630 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13631 chmod +x "$ofile"
13632
13633 ;;
13634
13635 esac
13636 done # for ac_tag
13637
13638
13639 as_fn_exit 0
13640 _ACEOF
13641 ac_clean_files=$ac_clean_files_save
13642
13643 test $ac_write_fail = 0 ||
13644 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13645
13646
13647 # configure is writing to config.log, and then calls config.status.
13648 # config.status does its own redirection, appending to config.log.
13649 # Unfortunately, on DOS this fails, as config.log is still kept open
13650 # by configure, so config.status won't be able to write to it; its
13651 # output is simply discarded. So we exec the FD to /dev/null,
13652 # effectively closing config.log, so it can be properly (re)opened and
13653 # appended to by config.status. When coming back to configure, we
13654 # need to make the FD available again.
13655 if test "$no_create" != yes; then
13656 ac_cs_success=:
13657 ac_config_status_args=
13658 test "$silent" = yes &&
13659 ac_config_status_args="$ac_config_status_args --quiet"
13660 exec 5>/dev/null
13661 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13662 exec 5>>config.log
13663 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13664 # would make configure fail if this is the last instruction.
13665 $ac_cs_success || as_fn_exit 1
13666 fi
13667 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13669 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13670 fi
13671
13672