configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXcursor 1.1.12.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255 fi
256 exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274 { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283 return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291 set +e
292 as_fn_set_status $1
293 exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302 case $as_dir in #(
303 -*) as_dir=./$as_dir;;
304 esac
305 test -d "$as_dir" || eval $as_mkdir_p || {
306 as_dirs=
307 while :; do
308 case $as_dir in #(
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310 *) as_qdir=$as_dir;;
311 esac
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)[^/].*/{
324 s//\1/
325 q
326 }
327 /^X\(\/\/\)$/{
328 s//\1/
329 q
330 }
331 /^X\(\/\).*/{
332 s//\1/
333 q
334 }
335 s/.*/./; q'`
336 test -d "$as_dir" && break
337 done
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
351 {
352 eval $1+=\$2
353 }'
354 else
355 as_fn_append ()
356 {
357 eval $1=\$$1\$2
358 }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367 eval 'as_fn_arith ()
368 {
369 as_val=$(( $* ))
370 }'
371 else
372 as_fn_arith ()
373 {
374 as_val=`expr "$@" || test $? -eq 1`
375 }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386 as_status=$1; test $as_status -eq 0 && as_status=1
387 if test "$4"; then
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 fi
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
397 as_expr=expr
398 else
399 as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403 as_basename=basename
404 else
405 as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409 as_dirname=dirname
410 else
411 as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\/\)$/{
424 s//\1/
425 q
426 }
427 /^X\/\(\/\).*/{
428 s//\1/
429 q
430 }
431 s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 sed -n '
447 p
448 /[$]LINENO/=
449 ' <$as_myself |
450 sed '
451 s/[$]LINENO.*/&-/
452 t lineno
453 b
454 :lineno
455 N
456 :loop
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 t loop
459 s/-\n.*//
460 ' >$as_me.lineno &&
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
467 . "./$as_me.lineno"
468 # Exit status is that of the last command.
469 exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 xy) ECHO_C='\c';;
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
479 ECHO_T=' ';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
488 else
489 rm -f conf$$.dir
490 mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s='ln -s'
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s=ln
503 else
504 as_ln_s='cp -p'
505 fi
506 else
507 as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520 as_test_x='test -x'
521 else
522 if ls -dL / >/dev/null 2>&1; then
523 as_ls_L_option=L
524 else
525 as_ls_L_option=
526 fi
527 as_test_x='
528 eval sh -c '\''
529 if test -d "$1"; then
530 test -d "$1/.";
531 else
532 case $1 in #(
533 -*)set "./$1";;
534 esac;
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
537 '\'' sh
538 '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='libXcursor'
573 PACKAGE_TARNAME='libXcursor'
574 PACKAGE_VERSION='1.1.12'
575 PACKAGE_STRING='libXcursor 1.1.12'
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 LINT_FALSE
621 LINT_TRUE
622 LINT_FLAGS
623 LINT
624 XCURSOR_LIBS
625 XCURSOR_CFLAGS
626 XCURSORPATH
627 ICONDIR
628 AM_BACKSLASH
629 AM_DEFAULT_VERBOSITY
630 MAN_SUBSTS
631 XORG_MAN_PAGE
632 ADMIN_MAN_DIR
633 DRIVER_MAN_DIR
634 MISC_MAN_DIR
635 FILE_MAN_DIR
636 LIB_MAN_DIR
637 APP_MAN_DIR
638 ADMIN_MAN_SUFFIX
639 DRIVER_MAN_SUFFIX
640 MISC_MAN_SUFFIX
641 FILE_MAN_SUFFIX
642 LIB_MAN_SUFFIX
643 APP_MAN_SUFFIX
644 INSTALL_CMD
645 PKG_CONFIG
646 CHANGELOG_CMD
647 STRICT_CFLAGS
648 CWARNFLAGS
649 CPP
650 OTOOL64
651 OTOOL
652 LIPO
653 NMEDIT
654 DSYMUTIL
655 MANIFEST_TOOL
656 RANLIB
657 ac_ct_AR
658 AR
659 DLLTOOL
660 OBJDUMP
661 LN_S
662 NM
663 ac_ct_DUMPBIN
664 DUMPBIN
665 LD
666 FGREP
667 EGREP
668 GREP
669 SED
670 am__fastdepCC_FALSE
671 am__fastdepCC_TRUE
672 CCDEPMODE
673 AMDEPBACKSLASH
674 AMDEP_FALSE
675 AMDEP_TRUE
676 am__quote
677 am__include
678 DEPDIR
679 OBJEXT
680 EXEEXT
681 ac_ct_CC
682 CPPFLAGS
683 LDFLAGS
684 CFLAGS
685 CC
686 host_os
687 host_vendor
688 host_cpu
689 host
690 build_os
691 build_vendor
692 build_cpu
693 build
694 LIBTOOL
695 MAINT
696 MAINTAINER_MODE_FALSE
697 MAINTAINER_MODE_TRUE
698 am__untar
699 am__tar
700 AMTAR
701 am__leading_dot
702 SET_MAKE
703 AWK
704 mkdir_p
705 MKDIR_P
706 INSTALL_STRIP_PROGRAM
707 STRIP
708 install_sh
709 MAKEINFO
710 AUTOHEADER
711 AUTOMAKE
712 AUTOCONF
713 ACLOCAL
714 VERSION
715 PACKAGE
716 CYGPATH_W
717 am__isrc
718 INSTALL_DATA
719 INSTALL_SCRIPT
720 INSTALL_PROGRAM
721 target_alias
722 host_alias
723 build_alias
724 LIBS
725 ECHO_T
726 ECHO_N
727 ECHO_C
728 DEFS
729 mandir
730 localedir
731 libdir
732 psdir
733 pdfdir
734 dvidir
735 htmldir
736 infodir
737 docdir
738 oldincludedir
739 includedir
740 localstatedir
741 sharedstatedir
742 sysconfdir
743 datadir
744 datarootdir
745 libexecdir
746 sbindir
747 bindir
748 program_transform_name
749 prefix
750 exec_prefix
751 PACKAGE_URL
752 PACKAGE_BUGREPORT
753 PACKAGE_STRING
754 PACKAGE_VERSION
755 PACKAGE_TARNAME
756 PACKAGE_NAME
757 PATH_SEPARATOR
758 SHELL'
759 ac_subst_files=''
760 ac_user_opts='
761 enable_option_checking
762 enable_maintainer_mode
763 enable_shared
764 enable_static
765 with_pic
766 enable_fast_install
767 enable_dependency_tracking
768 with_gnu_ld
769 with_sysroot
770 enable_libtool_lock
771 enable_strict_compilation
772 enable_silent_rules
773 with_icondir
774 with_cursorpath
775 with_lint
776 '
777 ac_precious_vars='build_alias
778 host_alias
779 target_alias
780 CC
781 CFLAGS
782 LDFLAGS
783 LIBS
784 CPPFLAGS
785 CPP
786 PKG_CONFIG
787 XCURSOR_CFLAGS
788 XCURSOR_LIBS
789 LINT
790 LINT_FLAGS'
791
792
793 # Initialize some variables set by options.
794 ac_init_help=
795 ac_init_version=false
796 ac_unrecognized_opts=
797 ac_unrecognized_sep=
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
800 cache_file=/dev/null
801 exec_prefix=NONE
802 no_create=
803 no_recursion=
804 prefix=NONE
805 program_prefix=NONE
806 program_suffix=NONE
807 program_transform_name=s,x,x,
808 silent=
809 site=
810 srcdir=
811 verbose=
812 x_includes=NONE
813 x_libraries=NONE
814
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
840
841 ac_prev=
842 ac_dashdash=
843 for ac_option
844 do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
850 fi
851
852 case $ac_option in
853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *=) ac_optarg= ;;
855 *) ac_optarg=yes ;;
856 esac
857
858 # Accept the important Cygnus configure options, so we can diagnose typos.
859
860 case $ac_dashdash$ac_option in
861 --)
862 ac_dashdash=yes ;;
863
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 ac_prev=bindir ;;
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867 bindir=$ac_optarg ;;
868
869 -build | --build | --buil | --bui | --bu)
870 ac_prev=build_alias ;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias=$ac_optarg ;;
873
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file=$ac_optarg ;;
880
881 --config-cache | -C)
882 cache_file=config.cache ;;
883
884 -datadir | --datadir | --datadi | --datad)
885 ac_prev=datadir ;;
886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
887 datadir=$ac_optarg ;;
888
889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
895
896 -disable-* | --disable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 as_fn_error $? "invalid feature name: $ac_useropt"
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
904 *"
905 "enable_$ac_useropt"
906 "*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=no ;;
911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
921
922 -enable-* | --enable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=\$ac_optarg ;;
937
938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940 | --exec | --exe | --ex)
941 ac_prev=exec_prefix ;;
942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944 | --exec=* | --exe=* | --ex=*)
945 exec_prefix=$ac_optarg ;;
946
947 -gas | --gas | --ga | --g)
948 # Obsolete; use --with-gas.
949 with_gas=yes ;;
950
951 -help | --help | --hel | --he | -h)
952 ac_init_help=long ;;
953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954 ac_init_help=recursive ;;
955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956 ac_init_help=short ;;
957
958 -host | --host | --hos | --ho)
959 ac_prev=host_alias ;;
960 -host=* | --host=* | --hos=* | --ho=*)
961 host_alias=$ac_optarg ;;
962
963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 ac_prev=htmldir ;;
965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 | --ht=*)
967 htmldir=$ac_optarg ;;
968
969 -includedir | --includedir | --includedi | --included | --include \
970 | --includ | --inclu | --incl | --inc)
971 ac_prev=includedir ;;
972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973 | --includ=* | --inclu=* | --incl=* | --inc=*)
974 includedir=$ac_optarg ;;
975
976 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 ac_prev=infodir ;;
978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979 infodir=$ac_optarg ;;
980
981 -libdir | --libdir | --libdi | --libd)
982 ac_prev=libdir ;;
983 -libdir=* | --libdir=* | --libdi=* | --libd=*)
984 libdir=$ac_optarg ;;
985
986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987 | --libexe | --libex | --libe)
988 ac_prev=libexecdir ;;
989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990 | --libexe=* | --libex=* | --libe=*)
991 libexecdir=$ac_optarg ;;
992
993 -localedir | --localedir | --localedi | --localed | --locale)
994 ac_prev=localedir ;;
995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996 localedir=$ac_optarg ;;
997
998 -localstatedir | --localstatedir | --localstatedi | --localstated \
999 | --localstate | --localstat | --localsta | --localst | --locals)
1000 ac_prev=localstatedir ;;
1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003 localstatedir=$ac_optarg ;;
1004
1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 ac_prev=mandir ;;
1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008 mandir=$ac_optarg ;;
1009
1010 -nfp | --nfp | --nf)
1011 # Obsolete; use --without-fp.
1012 with_fp=no ;;
1013
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n)
1016 no_create=yes ;;
1017
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020 no_recursion=yes ;;
1021
1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024 | --oldin | --oldi | --old | --ol | --o)
1025 ac_prev=oldincludedir ;;
1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029 oldincludedir=$ac_optarg ;;
1030
1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 ac_prev=prefix ;;
1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034 prefix=$ac_optarg ;;
1035
1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037 | --program-pre | --program-pr | --program-p)
1038 ac_prev=program_prefix ;;
1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041 program_prefix=$ac_optarg ;;
1042
1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044 | --program-suf | --program-su | --program-s)
1045 ac_prev=program_suffix ;;
1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048 program_suffix=$ac_optarg ;;
1049
1050 -program-transform-name | --program-transform-name \
1051 | --program-transform-nam | --program-transform-na \
1052 | --program-transform-n | --program-transform- \
1053 | --program-transform | --program-transfor \
1054 | --program-transfo | --program-transf \
1055 | --program-trans | --program-tran \
1056 | --progr-tra | --program-tr | --program-t)
1057 ac_prev=program_transform_name ;;
1058 -program-transform-name=* | --program-transform-name=* \
1059 | --program-transform-nam=* | --program-transform-na=* \
1060 | --program-transform-n=* | --program-transform-=* \
1061 | --program-transform=* | --program-transfor=* \
1062 | --program-transfo=* | --program-transf=* \
1063 | --program-trans=* | --program-tran=* \
1064 | --progr-tra=* | --program-tr=* | --program-t=*)
1065 program_transform_name=$ac_optarg ;;
1066
1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 ac_prev=pdfdir ;;
1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070 pdfdir=$ac_optarg ;;
1071
1072 -psdir | --psdir | --psdi | --psd | --ps)
1073 ac_prev=psdir ;;
1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075 psdir=$ac_optarg ;;
1076
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 silent=yes ;;
1080
1081 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082 ac_prev=sbindir ;;
1083 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084 | --sbi=* | --sb=*)
1085 sbindir=$ac_optarg ;;
1086
1087 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089 | --sharedst | --shareds | --shared | --share | --shar \
1090 | --sha | --sh)
1091 ac_prev=sharedstatedir ;;
1092 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095 | --sha=* | --sh=*)
1096 sharedstatedir=$ac_optarg ;;
1097
1098 -site | --site | --sit)
1099 ac_prev=site ;;
1100 -site=* | --site=* | --sit=*)
1101 site=$ac_optarg ;;
1102
1103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104 ac_prev=srcdir ;;
1105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106 srcdir=$ac_optarg ;;
1107
1108 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109 | --syscon | --sysco | --sysc | --sys | --sy)
1110 ac_prev=sysconfdir ;;
1111 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113 sysconfdir=$ac_optarg ;;
1114
1115 -target | --target | --targe | --targ | --tar | --ta | --t)
1116 ac_prev=target_alias ;;
1117 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118 target_alias=$ac_optarg ;;
1119
1120 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1121 verbose=yes ;;
1122
1123 -version | --version | --versio | --versi | --vers | -V)
1124 ac_init_version=: ;;
1125
1126 -with-* | --with-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error $? "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1134 *"
1135 "with_$ac_useropt"
1136 "*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=\$ac_optarg ;;
1141
1142 -without-* | --without-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=no ;;
1157
1158 --x)
1159 # Obsolete; use --with-x.
1160 with_x=yes ;;
1161
1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163 | --x-incl | --x-inc | --x-in | --x-i)
1164 ac_prev=x_includes ;;
1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167 x_includes=$ac_optarg ;;
1168
1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171 ac_prev=x_libraries ;;
1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174 x_libraries=$ac_optarg ;;
1175
1176 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177 Try \`$0 --help' for more information"
1178 ;;
1179
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
1183 case $ac_envvar in #(
1184 '' | [0-9]* | *[!_$as_cr_alnum]* )
1185 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186 esac
1187 eval $ac_envvar=\$ac_optarg
1188 export $ac_envvar ;;
1189
1190 *)
1191 # FIXME: should be removed in autoconf 3.0.
1192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1196 ;;
1197
1198 esac
1199 done
1200
1201 if test -n "$ac_prev"; then
1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203 as_fn_error $? "missing argument to $ac_option"
1204 fi
1205
1206 if test -n "$ac_unrecognized_opts"; then
1207 case $enable_option_checking in
1208 no) ;;
1209 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211 esac
1212 fi
1213
1214 # Check all directory arguments for consistency.
1215 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
1219 do
1220 eval ac_val=\$$ac_var
1221 # Remove trailing slashes.
1222 case $ac_val in
1223 */ )
1224 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225 eval $ac_var=\$ac_val;;
1226 esac
1227 # Be sure to have absolute directory names.
1228 case $ac_val in
1229 [\\/$]* | ?:[\\/]* ) continue;;
1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231 esac
1232 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1233 done
1234
1235 # There might be people who depend on the old broken behavior: `$host'
1236 # used to hold the argument of --host etc.
1237 # FIXME: To remove some day.
1238 build=$build_alias
1239 host=$host_alias
1240 target=$target_alias
1241
1242 # FIXME: To remove some day.
1243 if test "x$host_alias" != x; then
1244 if test "x$build_alias" = x; then
1245 cross_compiling=maybe
1246 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1247 If a cross compiler is detected then cross compile mode will be used" >&2
1248 elif test "x$build_alias" != "x$host_alias"; then
1249 cross_compiling=yes
1250 fi
1251 fi
1252
1253 ac_tool_prefix=
1254 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255
1256 test "$silent" = yes && exec 6>/dev/null
1257
1258
1259 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1260 ac_ls_di=`ls -di .` &&
1261 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1262 as_fn_error $? "working directory cannot be determined"
1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264 as_fn_error $? "pwd does not report name of working directory"
1265
1266
1267 # Find the source files, if location was not specified.
1268 if test -z "$srcdir"; then
1269 ac_srcdir_defaulted=yes
1270 # Try the directory containing this script, then the parent directory.
1271 ac_confdir=`$as_dirname -- "$as_myself" ||
1272 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273 X"$as_myself" : 'X\(//\)[^/]' \| \
1274 X"$as_myself" : 'X\(//\)$' \| \
1275 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1276 $as_echo X"$as_myself" |
1277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)[^/].*/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\/\)$/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\).*/{
1290 s//\1/
1291 q
1292 }
1293 s/.*/./; q'`
1294 srcdir=$ac_confdir
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 srcdir=..
1297 fi
1298 else
1299 ac_srcdir_defaulted=no
1300 fi
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1303 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1304 fi
1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 ac_abs_confdir=`(
1307 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1308 pwd)`
1309 # When building in place, set srcdir=.
1310 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311 srcdir=.
1312 fi
1313 # Remove unnecessary trailing slashes from srcdir.
1314 # Double slashes in file names in object file debugging info
1315 # mess up M-x gdb in Emacs.
1316 case $srcdir in
1317 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 esac
1319 for ac_var in $ac_precious_vars; do
1320 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_env_${ac_var}_value=\$${ac_var}
1322 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324 done
1325
1326 #
1327 # Report the --help message.
1328 #
1329 if test "$ac_init_help" = "long"; then
1330 # Omit some internal or obsolete options to make the list less imposing.
1331 # This message is too long to be a string in the A/UX 3.1 sh.
1332 cat <<_ACEOF
1333 \`configure' configures libXcursor 1.1.12 to adapt to many kinds of systems.
1334
1335 Usage: $0 [OPTION]... [VAR=VALUE]...
1336
1337 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338 VAR=VALUE. See below for descriptions of some of the useful variables.
1339
1340 Defaults for the options are specified in brackets.
1341
1342 Configuration:
1343 -h, --help display this help and exit
1344 --help=short display options specific to this package
1345 --help=recursive display the short help of all the included packages
1346 -V, --version display version information and exit
1347 -q, --quiet, --silent do not print \`checking ...' messages
1348 --cache-file=FILE cache test results in FILE [disabled]
1349 -C, --config-cache alias for \`--cache-file=config.cache'
1350 -n, --no-create do not create output files
1351 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352
1353 Installation directories:
1354 --prefix=PREFIX install architecture-independent files in PREFIX
1355 [$ac_default_prefix]
1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1357 [PREFIX]
1358
1359 By default, \`make install' will install all the files in
1360 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1361 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362 for instance \`--prefix=\$HOME'.
1363
1364 For better control, use the options below.
1365
1366 Fine tuning of the installation directories:
1367 --bindir=DIR user executables [EPREFIX/bin]
1368 --sbindir=DIR system admin executables [EPREFIX/sbin]
1369 --libexecdir=DIR program executables [EPREFIX/libexec]
1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1373 --libdir=DIR object code libraries [EPREFIX/lib]
1374 --includedir=DIR C header files [PREFIX/include]
1375 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1378 --infodir=DIR info documentation [DATAROOTDIR/info]
1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1380 --mandir=DIR man documentation [DATAROOTDIR/man]
1381 --docdir=DIR documentation root [DATAROOTDIR/doc/libXcursor]
1382 --htmldir=DIR html documentation [DOCDIR]
1383 --dvidir=DIR dvi documentation [DOCDIR]
1384 --pdfdir=DIR pdf documentation [DOCDIR]
1385 --psdir=DIR ps documentation [DOCDIR]
1386 _ACEOF
1387
1388 cat <<\_ACEOF
1389
1390 Program names:
1391 --program-prefix=PREFIX prepend PREFIX to installed program names
1392 --program-suffix=SUFFIX append SUFFIX to installed program names
1393 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1394
1395 System types:
1396 --build=BUILD configure for building on BUILD [guessed]
1397 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1398 _ACEOF
1399 fi
1400
1401 if test -n "$ac_init_help"; then
1402 case $ac_init_help in
1403 short | recursive ) echo "Configuration of libXcursor 1.1.12:";;
1404 esac
1405 cat <<\_ACEOF
1406
1407 Optional Features:
1408 --disable-option-checking ignore unrecognized --enable/--with options
1409 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1410 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1411 --enable-maintainer-mode enable make rules and dependencies not useful
1412 (and sometimes confusing) to the casual installer
1413 --enable-shared[=PKGS] build shared libraries [default=yes]
1414 --enable-static[=PKGS] build static libraries [default=yes]
1415 --enable-fast-install[=PKGS]
1416 optimize for fast installation [default=yes]
1417 --disable-dependency-tracking speeds up one-time build
1418 --enable-dependency-tracking do not reject slow dependency extractors
1419 --disable-libtool-lock avoid locking (might break parallel builds)
1420 --enable-strict-compilation
1421 Enable all warnings from compiler and make them
1422 errors (default: disabled)
1423 --enable-silent-rules less verbose build output (undo: `make V=1')
1424 --disable-silent-rules verbose build output (undo: `make V=0')
1425
1426 Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-pic try to use only PIC/non-PIC objects [default=use
1430 both]
1431 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1432 --with-sysroot=DIR Search for dependent libraries within DIR
1433 (or the compiler's sysroot if not specified).
1434 --with-icondir=<path> Set default icon directory (default:
1435 ${datadir}/icons)
1436 --with-cursorpath=<paths>
1437 Set default search path for cursors
1438 --with-lint Use a lint-style source code checker (default:
1439 disabled)
1440
1441 Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 LIBS libraries to pass to the linker, e.g. -l<library>
1447 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1448 you have headers in a nonstandard directory <include dir>
1449 CPP C preprocessor
1450 PKG_CONFIG path to pkg-config utility
1451 XCURSOR_CFLAGS
1452 C compiler flags for XCURSOR, overriding pkg-config
1453 XCURSOR_LIBS
1454 linker flags for XCURSOR, overriding pkg-config
1455 LINT Path to a lint-style command
1456 LINT_FLAGS Flags for the lint-style command
1457
1458 Use these variables to override the choices made by `configure' or to help
1459 it to find libraries and programs with nonstandard names/locations.
1460
1461 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1462 _ACEOF
1463 ac_status=$?
1464 fi
1465
1466 if test "$ac_init_help" = "recursive"; then
1467 # If there are subdirs, report their specific --help.
1468 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1469 test -d "$ac_dir" ||
1470 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1471 continue
1472 ac_builddir=.
1473
1474 case "$ac_dir" in
1475 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *)
1477 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1478 # A ".." for each directory in $ac_dir_suffix.
1479 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1480 case $ac_top_builddir_sub in
1481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1483 esac ;;
1484 esac
1485 ac_abs_top_builddir=$ac_pwd
1486 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1487 # for backward compatibility:
1488 ac_top_builddir=$ac_top_build_prefix
1489
1490 case $srcdir in
1491 .) # We are building in place.
1492 ac_srcdir=.
1493 ac_top_srcdir=$ac_top_builddir_sub
1494 ac_abs_top_srcdir=$ac_pwd ;;
1495 [\\/]* | ?:[\\/]* ) # Absolute name.
1496 ac_srcdir=$srcdir$ac_dir_suffix;
1497 ac_top_srcdir=$srcdir
1498 ac_abs_top_srcdir=$srcdir ;;
1499 *) # Relative name.
1500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1501 ac_top_srcdir=$ac_top_build_prefix$srcdir
1502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1503 esac
1504 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505
1506 cd "$ac_dir" || { ac_status=$?; continue; }
1507 # Check for guested configure.
1508 if test -f "$ac_srcdir/configure.gnu"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1511 elif test -f "$ac_srcdir/configure"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure" --help=recursive
1514 else
1515 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1516 fi || ac_status=$?
1517 cd "$ac_pwd" || { ac_status=$?; break; }
1518 done
1519 fi
1520
1521 test -n "$ac_init_help" && exit $ac_status
1522 if $ac_init_version; then
1523 cat <<\_ACEOF
1524 libXcursor configure 1.1.12
1525 generated by GNU Autoconf 2.68
1526
1527 Copyright (C) 2010 Free Software Foundation, Inc.
1528 This configure script is free software; the Free Software Foundation
1529 gives unlimited permission to copy, distribute and modify it.
1530 _ACEOF
1531 exit
1532 fi
1533
1534 ## ------------------------ ##
1535 ## Autoconf initialization. ##
1536 ## ------------------------ ##
1537
1538 # ac_fn_c_try_compile LINENO
1539 # --------------------------
1540 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_c_try_compile ()
1542 {
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 rm -f conftest.$ac_objext
1545 if { { ac_try="$ac_compile"
1546 case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1549 esac
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_compile") 2>conftest.err
1553 ac_status=$?
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1558 fi
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } && {
1561 test -z "$ac_c_werror_flag" ||
1562 test ! -s conftest.err
1563 } && test -s conftest.$ac_objext; then :
1564 ac_retval=0
1565 else
1566 $as_echo "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
1568
1569 ac_retval=1
1570 fi
1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572 as_fn_set_status $ac_retval
1573
1574 } # ac_fn_c_try_compile
1575
1576 # ac_fn_c_try_link LINENO
1577 # -----------------------
1578 # Try to link conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_c_try_link ()
1580 {
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 rm -f conftest.$ac_objext conftest$ac_exeext
1583 if { { ac_try="$ac_link"
1584 case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587 esac
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_link") 2>conftest.err
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1596 fi
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } && {
1599 test -z "$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 } && test -s conftest$ac_exeext && {
1602 test "$cross_compiling" = yes ||
1603 $as_test_x conftest$ac_exeext
1604 }; then :
1605 ac_retval=0
1606 else
1607 $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1609
1610 ac_retval=1
1611 fi
1612 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1613 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1614 # interfere with the next link command; also delete a directory that is
1615 # left behind by Apple's compiler. We do this before executing the actions.
1616 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618 as_fn_set_status $ac_retval
1619
1620 } # ac_fn_c_try_link
1621
1622 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1623 # -------------------------------------------------------
1624 # Tests whether HEADER exists and can be compiled using the include files in
1625 # INCLUDES, setting the cache variable VAR accordingly.
1626 ac_fn_c_check_header_compile ()
1627 {
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1630 $as_echo_n "checking for $2... " >&6; }
1631 if eval \${$3+:} false; then :
1632 $as_echo_n "(cached) " >&6
1633 else
1634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635 /* end confdefs.h. */
1636 $4
1637 #include <$2>
1638 _ACEOF
1639 if ac_fn_c_try_compile "$LINENO"; then :
1640 eval "$3=yes"
1641 else
1642 eval "$3=no"
1643 fi
1644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1645 fi
1646 eval ac_res=\$$3
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648 $as_echo "$ac_res" >&6; }
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650
1651 } # ac_fn_c_check_header_compile
1652
1653 # ac_fn_c_try_cpp LINENO
1654 # ----------------------
1655 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1656 ac_fn_c_try_cpp ()
1657 {
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 if { { ac_try="$ac_cpp conftest.$ac_ext"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1667 ac_status=$?
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1672 fi
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } > conftest.i && {
1675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 }; then :
1678 ac_retval=0
1679 else
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_retval=1
1684 fi
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 as_fn_set_status $ac_retval
1687
1688 } # ac_fn_c_try_cpp
1689
1690 # ac_fn_c_try_run LINENO
1691 # ----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1693 # that executables *can* be run.
1694 ac_fn_c_try_run ()
1695 {
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if { { ac_try="$ac_link"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>&5
1705 ac_status=$?
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1708 { { case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_try") 2>&5
1715 ac_status=$?
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; }; }; then :
1718 ac_retval=0
1719 else
1720 $as_echo "$as_me: program exited with status $ac_status" >&5
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=$ac_status
1725 fi
1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 as_fn_set_status $ac_retval
1729
1730 } # ac_fn_c_try_run
1731
1732 # ac_fn_c_check_func LINENO FUNC VAR
1733 # ----------------------------------
1734 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1735 ac_fn_c_check_func ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741 $as_echo_n "(cached) " >&6
1742 else
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1745 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1747 #define $2 innocuous_$2
1748
1749 /* System header to define __stub macros and hopefully few prototypes,
1750 which can conflict with char $2 (); below.
1751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1752 <limits.h> exists even on freestanding compilers. */
1753
1754 #ifdef __STDC__
1755 # include <limits.h>
1756 #else
1757 # include <assert.h>
1758 #endif
1759
1760 #undef $2
1761
1762 /* Override any GCC internal prototype to avoid an error.
1763 Use char because int might match the return type of a GCC
1764 builtin and then its argument prototype would still apply. */
1765 #ifdef __cplusplus
1766 extern "C"
1767 #endif
1768 char $2 ();
1769 /* The GNU C library defines this for functions which it implements
1770 to always fail with ENOSYS. Some functions are actually named
1771 something starting with __ and the normal name is an alias. */
1772 #if defined __stub_$2 || defined __stub___$2
1773 choke me
1774 #endif
1775
1776 int
1777 main ()
1778 {
1779 return $2 ();
1780 ;
1781 return 0;
1782 }
1783 _ACEOF
1784 if ac_fn_c_try_link "$LINENO"; then :
1785 eval "$3=yes"
1786 else
1787 eval "$3=no"
1788 fi
1789 rm -f core conftest.err conftest.$ac_objext \
1790 conftest$ac_exeext conftest.$ac_ext
1791 fi
1792 eval ac_res=\$$3
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796
1797 } # ac_fn_c_check_func
1798
1799 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1800 # ---------------------------------------------
1801 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1802 # accordingly.
1803 ac_fn_c_check_decl ()
1804 {
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 as_decl_name=`echo $2|sed 's/ *(.*//'`
1807 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1809 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1810 if eval \${$3+:} false; then :
1811 $as_echo_n "(cached) " >&6
1812 else
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1815 $4
1816 int
1817 main ()
1818 {
1819 #ifndef $as_decl_name
1820 #ifdef __cplusplus
1821 (void) $as_decl_use;
1822 #else
1823 (void) $as_decl_name;
1824 #endif
1825 #endif
1826
1827 ;
1828 return 0;
1829 }
1830 _ACEOF
1831 if ac_fn_c_try_compile "$LINENO"; then :
1832 eval "$3=yes"
1833 else
1834 eval "$3=no"
1835 fi
1836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837 fi
1838 eval ac_res=\$$3
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842
1843 } # ac_fn_c_check_decl
1844 cat >config.log <<_ACEOF
1845 This file contains any messages produced by compilers while
1846 running configure, to aid debugging if configure makes a mistake.
1847
1848 It was created by libXcursor $as_me 1.1.12, which was
1849 generated by GNU Autoconf 2.68. Invocation command line was
1850
1851 $ $0 $@
1852
1853 _ACEOF
1854 exec 5>>config.log
1855 {
1856 cat <<_ASUNAME
1857 ## --------- ##
1858 ## Platform. ##
1859 ## --------- ##
1860
1861 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1862 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1863 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1864 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1865 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1866
1867 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1868 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1869
1870 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1871 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1872 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1873 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1874 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1875 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1876 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1877
1878 _ASUNAME
1879
1880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881 for as_dir in $PATH
1882 do
1883 IFS=$as_save_IFS
1884 test -z "$as_dir" && as_dir=.
1885 $as_echo "PATH: $as_dir"
1886 done
1887 IFS=$as_save_IFS
1888
1889 } >&5
1890
1891 cat >&5 <<_ACEOF
1892
1893
1894 ## ----------- ##
1895 ## Core tests. ##
1896 ## ----------- ##
1897
1898 _ACEOF
1899
1900
1901 # Keep a trace of the command line.
1902 # Strip out --no-create and --no-recursion so they do not pile up.
1903 # Strip out --silent because we don't want to record it for future runs.
1904 # Also quote any args containing shell meta-characters.
1905 # Make two passes to allow for proper duplicate-argument suppression.
1906 ac_configure_args=
1907 ac_configure_args0=
1908 ac_configure_args1=
1909 ac_must_keep_next=false
1910 for ac_pass in 1 2
1911 do
1912 for ac_arg
1913 do
1914 case $ac_arg in
1915 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1916 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1917 | -silent | --silent | --silen | --sile | --sil)
1918 continue ;;
1919 *\'*)
1920 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1921 esac
1922 case $ac_pass in
1923 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1924 2)
1925 as_fn_append ac_configure_args1 " '$ac_arg'"
1926 if test $ac_must_keep_next = true; then
1927 ac_must_keep_next=false # Got value, back to normal.
1928 else
1929 case $ac_arg in
1930 *=* | --config-cache | -C | -disable-* | --disable-* \
1931 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1932 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1933 | -with-* | --with-* | -without-* | --without-* | --x)
1934 case "$ac_configure_args0 " in
1935 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1936 esac
1937 ;;
1938 -* ) ac_must_keep_next=true ;;
1939 esac
1940 fi
1941 as_fn_append ac_configure_args " '$ac_arg'"
1942 ;;
1943 esac
1944 done
1945 done
1946 { ac_configure_args0=; unset ac_configure_args0;}
1947 { ac_configure_args1=; unset ac_configure_args1;}
1948
1949 # When interrupted or exit'd, cleanup temporary files, and complete
1950 # config.log. We remove comments because anyway the quotes in there
1951 # would cause problems or look ugly.
1952 # WARNING: Use '\'' to represent an apostrophe within the trap.
1953 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1954 trap 'exit_status=$?
1955 # Save into config.log some information that might help in debugging.
1956 {
1957 echo
1958
1959 $as_echo "## ---------------- ##
1960 ## Cache variables. ##
1961 ## ---------------- ##"
1962 echo
1963 # The following way of writing the cache mishandles newlines in values,
1964 (
1965 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1966 eval ac_val=\$$ac_var
1967 case $ac_val in #(
1968 *${as_nl}*)
1969 case $ac_var in #(
1970 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1971 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1972 esac
1973 case $ac_var in #(
1974 _ | IFS | as_nl) ;; #(
1975 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1976 *) { eval $ac_var=; unset $ac_var;} ;;
1977 esac ;;
1978 esac
1979 done
1980 (set) 2>&1 |
1981 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1982 *${as_nl}ac_space=\ *)
1983 sed -n \
1984 "s/'\''/'\''\\\\'\'''\''/g;
1985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1986 ;; #(
1987 *)
1988 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1989 ;;
1990 esac |
1991 sort
1992 )
1993 echo
1994
1995 $as_echo "## ----------------- ##
1996 ## Output variables. ##
1997 ## ----------------- ##"
1998 echo
1999 for ac_var in $ac_subst_vars
2000 do
2001 eval ac_val=\$$ac_var
2002 case $ac_val in
2003 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2004 esac
2005 $as_echo "$ac_var='\''$ac_val'\''"
2006 done | sort
2007 echo
2008
2009 if test -n "$ac_subst_files"; then
2010 $as_echo "## ------------------- ##
2011 ## File substitutions. ##
2012 ## ------------------- ##"
2013 echo
2014 for ac_var in $ac_subst_files
2015 do
2016 eval ac_val=\$$ac_var
2017 case $ac_val in
2018 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2019 esac
2020 $as_echo "$ac_var='\''$ac_val'\''"
2021 done | sort
2022 echo
2023 fi
2024
2025 if test -s confdefs.h; then
2026 $as_echo "## ----------- ##
2027 ## confdefs.h. ##
2028 ## ----------- ##"
2029 echo
2030 cat confdefs.h
2031 echo
2032 fi
2033 test "$ac_signal" != 0 &&
2034 $as_echo "$as_me: caught signal $ac_signal"
2035 $as_echo "$as_me: exit $exit_status"
2036 } >&5
2037 rm -f core *.core core.conftest.* &&
2038 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2039 exit $exit_status
2040 ' 0
2041 for ac_signal in 1 2 13 15; do
2042 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2043 done
2044 ac_signal=0
2045
2046 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2047 rm -f -r conftest* confdefs.h
2048
2049 $as_echo "/* confdefs.h */" > confdefs.h
2050
2051 # Predefined preprocessor variables.
2052
2053 cat >>confdefs.h <<_ACEOF
2054 #define PACKAGE_NAME "$PACKAGE_NAME"
2055 _ACEOF
2056
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2059 _ACEOF
2060
2061 cat >>confdefs.h <<_ACEOF
2062 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2063 _ACEOF
2064
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_STRING "$PACKAGE_STRING"
2067 _ACEOF
2068
2069 cat >>confdefs.h <<_ACEOF
2070 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2071 _ACEOF
2072
2073 cat >>confdefs.h <<_ACEOF
2074 #define PACKAGE_URL "$PACKAGE_URL"
2075 _ACEOF
2076
2077
2078 # Let the site file select an alternate cache file if it wants to.
2079 # Prefer an explicitly selected file to automatically selected ones.
2080 ac_site_file1=NONE
2081 ac_site_file2=NONE
2082 if test -n "$CONFIG_SITE"; then
2083 # We do not want a PATH search for config.site.
2084 case $CONFIG_SITE in #((
2085 -*) ac_site_file1=./$CONFIG_SITE;;
2086 */*) ac_site_file1=$CONFIG_SITE;;
2087 *) ac_site_file1=./$CONFIG_SITE;;
2088 esac
2089 elif test "x$prefix" != xNONE; then
2090 ac_site_file1=$prefix/share/config.site
2091 ac_site_file2=$prefix/etc/config.site
2092 else
2093 ac_site_file1=$ac_default_prefix/share/config.site
2094 ac_site_file2=$ac_default_prefix/etc/config.site
2095 fi
2096 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2097 do
2098 test "x$ac_site_file" = xNONE && continue
2099 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2101 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2102 sed 's/^/| /' "$ac_site_file" >&5
2103 . "$ac_site_file" \
2104 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2106 as_fn_error $? "failed to load site script $ac_site_file
2107 See \`config.log' for more details" "$LINENO" 5; }
2108 fi
2109 done
2110
2111 if test -r "$cache_file"; then
2112 # Some versions of bash will fail to source /dev/null (special files
2113 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2114 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2116 $as_echo "$as_me: loading cache $cache_file" >&6;}
2117 case $cache_file in
2118 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2119 *) . "./$cache_file";;
2120 esac
2121 fi
2122 else
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2124 $as_echo "$as_me: creating cache $cache_file" >&6;}
2125 >$cache_file
2126 fi
2127
2128 # Check that the precious variables saved in the cache have kept the same
2129 # value.
2130 ac_cache_corrupted=false
2131 for ac_var in $ac_precious_vars; do
2132 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2133 eval ac_new_set=\$ac_env_${ac_var}_set
2134 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2135 eval ac_new_val=\$ac_env_${ac_var}_value
2136 case $ac_old_set,$ac_new_set in
2137 set,)
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2139 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2140 ac_cache_corrupted=: ;;
2141 ,set)
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2143 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2144 ac_cache_corrupted=: ;;
2145 ,);;
2146 *)
2147 if test "x$ac_old_val" != "x$ac_new_val"; then
2148 # differences in whitespace do not lead to failure.
2149 ac_old_val_w=`echo x $ac_old_val`
2150 ac_new_val_w=`echo x $ac_new_val`
2151 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2153 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2154 ac_cache_corrupted=:
2155 else
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2157 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2158 eval $ac_var=\$ac_old_val
2159 fi
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2161 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2163 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2164 fi;;
2165 esac
2166 # Pass precious variables to config.status.
2167 if test "$ac_new_set" = set; then
2168 case $ac_new_val in
2169 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2170 *) ac_arg=$ac_var=$ac_new_val ;;
2171 esac
2172 case " $ac_configure_args " in
2173 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2174 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2175 esac
2176 fi
2177 done
2178 if $ac_cache_corrupted; then
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2182 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2183 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2184 fi
2185 ## -------------------- ##
2186 ## Main body of script. ##
2187 ## -------------------- ##
2188
2189 ac_ext=c
2190 ac_cpp='$CPP $CPPFLAGS'
2191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2194
2195
2196
2197 ac_config_headers="$ac_config_headers config.h"
2198
2199
2200 # Initialize Automake
2201 am__api_version='1.11'
2202
2203 ac_aux_dir=
2204 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2205 if test -f "$ac_dir/install-sh"; then
2206 ac_aux_dir=$ac_dir
2207 ac_install_sh="$ac_aux_dir/install-sh -c"
2208 break
2209 elif test -f "$ac_dir/install.sh"; then
2210 ac_aux_dir=$ac_dir
2211 ac_install_sh="$ac_aux_dir/install.sh -c"
2212 break
2213 elif test -f "$ac_dir/shtool"; then
2214 ac_aux_dir=$ac_dir
2215 ac_install_sh="$ac_aux_dir/shtool install -c"
2216 break
2217 fi
2218 done
2219 if test -z "$ac_aux_dir"; then
2220 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2221 fi
2222
2223 # These three variables are undocumented and unsupported,
2224 # and are intended to be withdrawn in a future Autoconf release.
2225 # They can cause serious problems if a builder's source tree is in a directory
2226 # whose full name contains unusual characters.
2227 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2228 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2229 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2230
2231
2232 # Find a good install program. We prefer a C program (faster),
2233 # so one script is as good as another. But avoid the broken or
2234 # incompatible versions:
2235 # SysV /etc/install, /usr/sbin/install
2236 # SunOS /usr/etc/install
2237 # IRIX /sbin/install
2238 # AIX /bin/install
2239 # AmigaOS /C/install, which installs bootblocks on floppy discs
2240 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2241 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2242 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2243 # OS/2's system install, which has a completely different semantic
2244 # ./install, which can be erroneously created by make from ./install.sh.
2245 # Reject install programs that cannot install multiple files.
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2247 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2248 if test -z "$INSTALL"; then
2249 if ${ac_cv_path_install+:} false; then :
2250 $as_echo_n "(cached) " >&6
2251 else
2252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253 for as_dir in $PATH
2254 do
2255 IFS=$as_save_IFS
2256 test -z "$as_dir" && as_dir=.
2257 # Account for people who put trailing slashes in PATH elements.
2258 case $as_dir/ in #((
2259 ./ | .// | /[cC]/* | \
2260 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2261 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2262 /usr/ucb/* ) ;;
2263 *)
2264 # OSF1 and SCO ODT 3.0 have their own names for install.
2265 # Don't use installbsd from OSF since it installs stuff as root
2266 # by default.
2267 for ac_prog in ginstall scoinst install; do
2268 for ac_exec_ext in '' $ac_executable_extensions; do
2269 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2270 if test $ac_prog = install &&
2271 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2272 # AIX install. It has an incompatible calling convention.
2273 :
2274 elif test $ac_prog = install &&
2275 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2276 # program-specific install script used by HP pwplus--don't use.
2277 :
2278 else
2279 rm -rf conftest.one conftest.two conftest.dir
2280 echo one > conftest.one
2281 echo two > conftest.two
2282 mkdir conftest.dir
2283 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2284 test -s conftest.one && test -s conftest.two &&
2285 test -s conftest.dir/conftest.one &&
2286 test -s conftest.dir/conftest.two
2287 then
2288 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2289 break 3
2290 fi
2291 fi
2292 fi
2293 done
2294 done
2295 ;;
2296 esac
2297
2298 done
2299 IFS=$as_save_IFS
2300
2301 rm -rf conftest.one conftest.two conftest.dir
2302
2303 fi
2304 if test "${ac_cv_path_install+set}" = set; then
2305 INSTALL=$ac_cv_path_install
2306 else
2307 # As a last resort, use the slow shell script. Don't cache a
2308 # value for INSTALL within a source directory, because that will
2309 # break other packages using the cache if that directory is
2310 # removed, or if the value is a relative name.
2311 INSTALL=$ac_install_sh
2312 fi
2313 fi
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2315 $as_echo "$INSTALL" >&6; }
2316
2317 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2318 # It thinks the first close brace ends the variable substitution.
2319 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2320
2321 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2322
2323 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2324
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2326 $as_echo_n "checking whether build environment is sane... " >&6; }
2327 # Just in case
2328 sleep 1
2329 echo timestamp > conftest.file
2330 # Reject unsafe characters in $srcdir or the absolute working directory
2331 # name. Accept space and tab only in the latter.
2332 am_lf='
2333 '
2334 case `pwd` in
2335 *[\\\"\#\$\&\'\`$am_lf]*)
2336 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2337 esac
2338 case $srcdir in
2339 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2340 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2341 esac
2342
2343 # Do `set' in a subshell so we don't clobber the current shell's
2344 # arguments. Must try -L first in case configure is actually a
2345 # symlink; some systems play weird games with the mod time of symlinks
2346 # (eg FreeBSD returns the mod time of the symlink's containing
2347 # directory).
2348 if (
2349 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2350 if test "$*" = "X"; then
2351 # -L didn't work.
2352 set X `ls -t "$srcdir/configure" conftest.file`
2353 fi
2354 rm -f conftest.file
2355 if test "$*" != "X $srcdir/configure conftest.file" \
2356 && test "$*" != "X conftest.file $srcdir/configure"; then
2357
2358 # If neither matched, then we have a broken ls. This can happen
2359 # if, for instance, CONFIG_SHELL is bash and it inherits a
2360 # broken ls alias from the environment. This has actually
2361 # happened. Such a system could not be considered "sane".
2362 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2363 alias in your environment" "$LINENO" 5
2364 fi
2365
2366 test "$2" = conftest.file
2367 )
2368 then
2369 # Ok.
2370 :
2371 else
2372 as_fn_error $? "newly created file is older than distributed files!
2373 Check your system clock" "$LINENO" 5
2374 fi
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2376 $as_echo "yes" >&6; }
2377 test "$program_prefix" != NONE &&
2378 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2379 # Use a double $ so make ignores it.
2380 test "$program_suffix" != NONE &&
2381 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2382 # Double any \ or $.
2383 # By default was `s,x,x', remove it if useless.
2384 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2385 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2386
2387 # expand $ac_aux_dir to an absolute path
2388 am_aux_dir=`cd $ac_aux_dir && pwd`
2389
2390 if test x"${MISSING+set}" != xset; then
2391 case $am_aux_dir in
2392 *\ * | *\ *)
2393 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2394 *)
2395 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2396 esac
2397 fi
2398 # Use eval to expand $SHELL
2399 if eval "$MISSING --run true"; then
2400 am_missing_run="$MISSING --run "
2401 else
2402 am_missing_run=
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2404 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2405 fi
2406
2407 if test x"${install_sh}" != xset; then
2408 case $am_aux_dir in
2409 *\ * | *\ *)
2410 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2411 *)
2412 install_sh="\${SHELL} $am_aux_dir/install-sh"
2413 esac
2414 fi
2415
2416 # Installed binaries are usually stripped using `strip' when the user
2417 # run `make install-strip'. However `strip' might not be the right
2418 # tool to use in cross-compilation environments, therefore Automake
2419 # will honor the `STRIP' environment variable to overrule this program.
2420 if test "$cross_compiling" != no; then
2421 if test -n "$ac_tool_prefix"; then
2422 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2423 set dummy ${ac_tool_prefix}strip; ac_word=$2
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2425 $as_echo_n "checking for $ac_word... " >&6; }
2426 if ${ac_cv_prog_STRIP+:} false; then :
2427 $as_echo_n "(cached) " >&6
2428 else
2429 if test -n "$STRIP"; then
2430 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2431 else
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH
2434 do
2435 IFS=$as_save_IFS
2436 test -z "$as_dir" && as_dir=.
2437 for ac_exec_ext in '' $ac_executable_extensions; do
2438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2439 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 break 2
2442 fi
2443 done
2444 done
2445 IFS=$as_save_IFS
2446
2447 fi
2448 fi
2449 STRIP=$ac_cv_prog_STRIP
2450 if test -n "$STRIP"; then
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2452 $as_echo "$STRIP" >&6; }
2453 else
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2455 $as_echo "no" >&6; }
2456 fi
2457
2458
2459 fi
2460 if test -z "$ac_cv_prog_STRIP"; then
2461 ac_ct_STRIP=$STRIP
2462 # Extract the first word of "strip", so it can be a program name with args.
2463 set dummy strip; ac_word=$2
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465 $as_echo_n "checking for $ac_word... " >&6; }
2466 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2467 $as_echo_n "(cached) " >&6
2468 else
2469 if test -n "$ac_ct_STRIP"; then
2470 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2479 ac_cv_prog_ac_ct_STRIP="strip"
2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 break 2
2482 fi
2483 done
2484 done
2485 IFS=$as_save_IFS
2486
2487 fi
2488 fi
2489 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2490 if test -n "$ac_ct_STRIP"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2492 $as_echo "$ac_ct_STRIP" >&6; }
2493 else
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495 $as_echo "no" >&6; }
2496 fi
2497
2498 if test "x$ac_ct_STRIP" = x; then
2499 STRIP=":"
2500 else
2501 case $cross_compiling:$ac_tool_warned in
2502 yes:)
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2505 ac_tool_warned=yes ;;
2506 esac
2507 STRIP=$ac_ct_STRIP
2508 fi
2509 else
2510 STRIP="$ac_cv_prog_STRIP"
2511 fi
2512
2513 fi
2514 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2515
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2517 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2518 if test -z "$MKDIR_P"; then
2519 if ${ac_cv_path_mkdir+:} false; then :
2520 $as_echo_n "(cached) " >&6
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2524 do
2525 IFS=$as_save_IFS
2526 test -z "$as_dir" && as_dir=.
2527 for ac_prog in mkdir gmkdir; do
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2530 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2531 'mkdir (GNU coreutils) '* | \
2532 'mkdir (coreutils) '* | \
2533 'mkdir (fileutils) '4.1*)
2534 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2535 break 3;;
2536 esac
2537 done
2538 done
2539 done
2540 IFS=$as_save_IFS
2541
2542 fi
2543
2544 test -d ./--version && rmdir ./--version
2545 if test "${ac_cv_path_mkdir+set}" = set; then
2546 MKDIR_P="$ac_cv_path_mkdir -p"
2547 else
2548 # As a last resort, use the slow shell script. Don't cache a
2549 # value for MKDIR_P within a source directory, because that will
2550 # break other packages using the cache if that directory is
2551 # removed, or if the value is a relative name.
2552 MKDIR_P="$ac_install_sh -d"
2553 fi
2554 fi
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2556 $as_echo "$MKDIR_P" >&6; }
2557
2558 mkdir_p="$MKDIR_P"
2559 case $mkdir_p in
2560 [\\/$]* | ?:[\\/]*) ;;
2561 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2562 esac
2563
2564 for ac_prog in gawk mawk nawk awk
2565 do
2566 # Extract the first word of "$ac_prog", so it can be a program name with args.
2567 set dummy $ac_prog; ac_word=$2
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2569 $as_echo_n "checking for $ac_word... " >&6; }
2570 if ${ac_cv_prog_AWK+:} false; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 if test -n "$AWK"; then
2574 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2575 else
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH
2578 do
2579 IFS=$as_save_IFS
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2583 ac_cv_prog_AWK="$ac_prog"
2584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 break 2
2586 fi
2587 done
2588 done
2589 IFS=$as_save_IFS
2590
2591 fi
2592 fi
2593 AWK=$ac_cv_prog_AWK
2594 if test -n "$AWK"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2596 $as_echo "$AWK" >&6; }
2597 else
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599 $as_echo "no" >&6; }
2600 fi
2601
2602
2603 test -n "$AWK" && break
2604 done
2605
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2607 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2608 set x ${MAKE-make}
2609 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2610 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2611 $as_echo_n "(cached) " >&6
2612 else
2613 cat >conftest.make <<\_ACEOF
2614 SHELL = /bin/sh
2615 all:
2616 @echo '@@@%%%=$(MAKE)=@@@%%%'
2617 _ACEOF
2618 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2619 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2620 *@@@%%%=?*=@@@%%%*)
2621 eval ac_cv_prog_make_${ac_make}_set=yes;;
2622 *)
2623 eval ac_cv_prog_make_${ac_make}_set=no;;
2624 esac
2625 rm -f conftest.make
2626 fi
2627 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2629 $as_echo "yes" >&6; }
2630 SET_MAKE=
2631 else
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633 $as_echo "no" >&6; }
2634 SET_MAKE="MAKE=${MAKE-make}"
2635 fi
2636
2637 rm -rf .tst 2>/dev/null
2638 mkdir .tst 2>/dev/null
2639 if test -d .tst; then
2640 am__leading_dot=.
2641 else
2642 am__leading_dot=_
2643 fi
2644 rmdir .tst 2>/dev/null
2645
2646 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2647 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2648 # is not polluted with repeated "-I."
2649 am__isrc=' -I$(srcdir)'
2650 # test to see if srcdir already configured
2651 if test -f $srcdir/config.status; then
2652 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2653 fi
2654 fi
2655
2656 # test whether we have cygpath
2657 if test -z "$CYGPATH_W"; then
2658 if (cygpath --version) >/dev/null 2>/dev/null; then
2659 CYGPATH_W='cygpath -w'
2660 else
2661 CYGPATH_W=echo
2662 fi
2663 fi
2664
2665
2666 # Define the identity of the package.
2667 PACKAGE='libXcursor'
2668 VERSION='1.1.12'
2669
2670
2671 cat >>confdefs.h <<_ACEOF
2672 #define PACKAGE "$PACKAGE"
2673 _ACEOF
2674
2675
2676 cat >>confdefs.h <<_ACEOF
2677 #define VERSION "$VERSION"
2678 _ACEOF
2679
2680 # Some tools Automake needs.
2681
2682 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2683
2684
2685 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2686
2687
2688 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2689
2690
2691 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2692
2693
2694 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2695
2696 # We need awk for the "check" target. The system "awk" is bad on
2697 # some platforms.
2698 # Always define AMTAR for backward compatibility.
2699
2700 AMTAR=${AMTAR-"${am_missing_run}tar"}
2701
2702 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2703
2704
2705
2706
2707
2708
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2710 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2711 # Check whether --enable-maintainer-mode was given.
2712 if test "${enable_maintainer_mode+set}" = set; then :
2713 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2714 else
2715 USE_MAINTAINER_MODE=no
2716 fi
2717
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2719 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2720 if test $USE_MAINTAINER_MODE = yes; then
2721 MAINTAINER_MODE_TRUE=
2722 MAINTAINER_MODE_FALSE='#'
2723 else
2724 MAINTAINER_MODE_TRUE='#'
2725 MAINTAINER_MODE_FALSE=
2726 fi
2727
2728 MAINT=$MAINTAINER_MODE_TRUE
2729
2730
2731
2732 # Initialize libtool
2733 case `pwd` in
2734 *\ * | *\ *)
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2736 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2737 esac
2738
2739
2740
2741 macro_version='2.4'
2742 macro_revision='1.3293'
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756 ltmain="$ac_aux_dir/ltmain.sh"
2757
2758 # Make sure we can run config.sub.
2759 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2760 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2761
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2763 $as_echo_n "checking build system type... " >&6; }
2764 if ${ac_cv_build+:} false; then :
2765 $as_echo_n "(cached) " >&6
2766 else
2767 ac_build_alias=$build_alias
2768 test "x$ac_build_alias" = x &&
2769 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2770 test "x$ac_build_alias" = x &&
2771 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2772 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2773 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2774
2775 fi
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2777 $as_echo "$ac_cv_build" >&6; }
2778 case $ac_cv_build in
2779 *-*-*) ;;
2780 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2781 esac
2782 build=$ac_cv_build
2783 ac_save_IFS=$IFS; IFS='-'
2784 set x $ac_cv_build
2785 shift
2786 build_cpu=$1
2787 build_vendor=$2
2788 shift; shift
2789 # Remember, the first character of IFS is used to create $*,
2790 # except with old shells:
2791 build_os=$*
2792 IFS=$ac_save_IFS
2793 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2794
2795
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2797 $as_echo_n "checking host system type... " >&6; }
2798 if ${ac_cv_host+:} false; then :
2799 $as_echo_n "(cached) " >&6
2800 else
2801 if test "x$host_alias" = x; then
2802 ac_cv_host=$ac_cv_build
2803 else
2804 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2805 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2806 fi
2807
2808 fi
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2810 $as_echo "$ac_cv_host" >&6; }
2811 case $ac_cv_host in
2812 *-*-*) ;;
2813 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2814 esac
2815 host=$ac_cv_host
2816 ac_save_IFS=$IFS; IFS='-'
2817 set x $ac_cv_host
2818 shift
2819 host_cpu=$1
2820 host_vendor=$2
2821 shift; shift
2822 # Remember, the first character of IFS is used to create $*,
2823 # except with old shells:
2824 host_os=$*
2825 IFS=$ac_save_IFS
2826 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2827
2828
2829 # Backslashify metacharacters that are still active within
2830 # double-quoted strings.
2831 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2832
2833 # Same as above, but do not quote variable references.
2834 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2835
2836 # Sed substitution to delay expansion of an escaped shell variable in a
2837 # double_quote_subst'ed string.
2838 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2839
2840 # Sed substitution to delay expansion of an escaped single quote.
2841 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2842
2843 # Sed substitution to avoid accidental globbing in evaled expressions
2844 no_glob_subst='s/\*/\\\*/g'
2845
2846 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2847 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2848 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2849
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2851 $as_echo_n "checking how to print strings... " >&6; }
2852 # Test print first, because it will be a builtin if present.
2853 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2854 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2855 ECHO='print -r --'
2856 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2857 ECHO='printf %s\n'
2858 else
2859 # Use this function as a fallback that always works.
2860 func_fallback_echo ()
2861 {
2862 eval 'cat <<_LTECHO_EOF
2863 $1
2864 _LTECHO_EOF'
2865 }
2866 ECHO='func_fallback_echo'
2867 fi
2868
2869 # func_echo_all arg...
2870 # Invoke $ECHO with all args, space-separated.
2871 func_echo_all ()
2872 {
2873 $ECHO ""
2874 }
2875
2876 case "$ECHO" in
2877 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2878 $as_echo "printf" >&6; } ;;
2879 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2880 $as_echo "print -r" >&6; } ;;
2881 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2882 $as_echo "cat" >&6; } ;;
2883 esac
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898 DEPDIR="${am__leading_dot}deps"
2899
2900 ac_config_commands="$ac_config_commands depfiles"
2901
2902
2903 am_make=${MAKE-make}
2904 cat > confinc << 'END'
2905 am__doit:
2906 @echo this is the am__doit target
2907 .PHONY: am__doit
2908 END
2909 # If we don't find an include directive, just comment out the code.
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2911 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2912 am__include="#"
2913 am__quote=
2914 _am_result=none
2915 # First try GNU make style include.
2916 echo "include confinc" > confmf
2917 # Ignore all kinds of additional output from `make'.
2918 case `$am_make -s -f confmf 2> /dev/null` in #(
2919 *the\ am__doit\ target*)
2920 am__include=include
2921 am__quote=
2922 _am_result=GNU
2923 ;;
2924 esac
2925 # Now try BSD make style include.
2926 if test "$am__include" = "#"; then
2927 echo '.include "confinc"' > confmf
2928 case `$am_make -s -f confmf 2> /dev/null` in #(
2929 *the\ am__doit\ target*)
2930 am__include=.include
2931 am__quote="\""
2932 _am_result=BSD
2933 ;;
2934 esac
2935 fi
2936
2937
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2939 $as_echo "$_am_result" >&6; }
2940 rm -f confinc confmf
2941
2942 # Check whether --enable-dependency-tracking was given.
2943 if test "${enable_dependency_tracking+set}" = set; then :
2944 enableval=$enable_dependency_tracking;
2945 fi
2946
2947 if test "x$enable_dependency_tracking" != xno; then
2948 am_depcomp="$ac_aux_dir/depcomp"
2949 AMDEPBACKSLASH='\'
2950 fi
2951 if test "x$enable_dependency_tracking" != xno; then
2952 AMDEP_TRUE=
2953 AMDEP_FALSE='#'
2954 else
2955 AMDEP_TRUE='#'
2956 AMDEP_FALSE=
2957 fi
2958
2959
2960 ac_ext=c
2961 ac_cpp='$CPP $CPPFLAGS'
2962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965 if test -n "$ac_tool_prefix"; then
2966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2967 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if ${ac_cv_prog_CC+:} false; then :
2971 $as_echo_n "(cached) " >&6
2972 else
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2978 do
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2986 fi
2987 done
2988 done
2989 IFS=$as_save_IFS
2990
2991 fi
2992 fi
2993 CC=$ac_cv_prog_CC
2994 if test -n "$CC"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2996 $as_echo "$CC" >&6; }
2997 else
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3000 fi
3001
3002
3003 fi
3004 if test -z "$ac_cv_prog_CC"; then
3005 ac_ct_CC=$CC
3006 # Extract the first word of "gcc", so it can be a program name with args.
3007 set dummy gcc; ac_word=$2
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3011 $as_echo_n "(cached) " >&6
3012 else
3013 if test -n "$ac_ct_CC"; then
3014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3018 do
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023 ac_cv_prog_ac_ct_CC="gcc"
3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 break 2
3026 fi
3027 done
3028 done
3029 IFS=$as_save_IFS
3030
3031 fi
3032 fi
3033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3034 if test -n "$ac_ct_CC"; then
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3036 $as_echo "$ac_ct_CC" >&6; }
3037 else
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3040 fi
3041
3042 if test "x$ac_ct_CC" = x; then
3043 CC=""
3044 else
3045 case $cross_compiling:$ac_tool_warned in
3046 yes:)
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3049 ac_tool_warned=yes ;;
3050 esac
3051 CC=$ac_ct_CC
3052 fi
3053 else
3054 CC="$ac_cv_prog_CC"
3055 fi
3056
3057 if test -z "$CC"; then
3058 if test -n "$ac_tool_prefix"; then
3059 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3060 set dummy ${ac_tool_prefix}cc; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if ${ac_cv_prog_CC+:} false; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 if test -n "$CC"; then
3067 ac_cv_prog_CC="$CC" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3071 do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076 ac_cv_prog_CC="${ac_tool_prefix}cc"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3079 fi
3080 done
3081 done
3082 IFS=$as_save_IFS
3083
3084 fi
3085 fi
3086 CC=$ac_cv_prog_CC
3087 if test -n "$CC"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3089 $as_echo "$CC" >&6; }
3090 else
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3093 fi
3094
3095
3096 fi
3097 fi
3098 if test -z "$CC"; then
3099 # Extract the first word of "cc", so it can be a program name with args.
3100 set dummy cc; ac_word=$2
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102 $as_echo_n "checking for $ac_word... " >&6; }
3103 if ${ac_cv_prog_CC+:} false; then :
3104 $as_echo_n "(cached) " >&6
3105 else
3106 if test -n "$CC"; then
3107 ac_cv_prog_CC="$CC" # Let the user override the test.
3108 else
3109 ac_prog_rejected=no
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3112 do
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3117 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3118 ac_prog_rejected=yes
3119 continue
3120 fi
3121 ac_cv_prog_CC="cc"
3122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3124 fi
3125 done
3126 done
3127 IFS=$as_save_IFS
3128
3129 if test $ac_prog_rejected = yes; then
3130 # We found a bogon in the path, so make sure we never use it.
3131 set dummy $ac_cv_prog_CC
3132 shift
3133 if test $# != 0; then
3134 # We chose a different compiler from the bogus one.
3135 # However, it has the same basename, so the bogon will be chosen
3136 # first if we set CC to just the basename; use the full file name.
3137 shift
3138 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3139 fi
3140 fi
3141 fi
3142 fi
3143 CC=$ac_cv_prog_CC
3144 if test -n "$CC"; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3146 $as_echo "$CC" >&6; }
3147 else
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3150 fi
3151
3152
3153 fi
3154 if test -z "$CC"; then
3155 if test -n "$ac_tool_prefix"; then
3156 for ac_prog in cl.exe
3157 do
3158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3159 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if ${ac_cv_prog_CC+:} false; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 if test -n "$CC"; then
3166 ac_cv_prog_CC="$CC" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3170 do
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3175 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3178 fi
3179 done
3180 done
3181 IFS=$as_save_IFS
3182
3183 fi
3184 fi
3185 CC=$ac_cv_prog_CC
3186 if test -n "$CC"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3188 $as_echo "$CC" >&6; }
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192 fi
3193
3194
3195 test -n "$CC" && break
3196 done
3197 fi
3198 if test -z "$CC"; then
3199 ac_ct_CC=$CC
3200 for ac_prog in cl.exe
3201 do
3202 # Extract the first word of "$ac_prog", so it can be a program name with args.
3203 set dummy $ac_prog; ac_word=$2
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205 $as_echo_n "checking for $ac_word... " >&6; }
3206 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3207 $as_echo_n "(cached) " >&6
3208 else
3209 if test -n "$ac_ct_CC"; then
3210 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3211 else
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH
3214 do
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3219 ac_cv_prog_ac_ct_CC="$ac_prog"
3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 break 2
3222 fi
3223 done
3224 done
3225 IFS=$as_save_IFS
3226
3227 fi
3228 fi
3229 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3230 if test -n "$ac_ct_CC"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3232 $as_echo "$ac_ct_CC" >&6; }
3233 else
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3236 fi
3237
3238
3239 test -n "$ac_ct_CC" && break
3240 done
3241
3242 if test "x$ac_ct_CC" = x; then
3243 CC=""
3244 else
3245 case $cross_compiling:$ac_tool_warned in
3246 yes:)
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3249 ac_tool_warned=yes ;;
3250 esac
3251 CC=$ac_ct_CC
3252 fi
3253 fi
3254
3255 fi
3256
3257
3258 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260 as_fn_error $? "no acceptable C compiler found in \$PATH
3261 See \`config.log' for more details" "$LINENO" 5; }
3262
3263 # Provide some information about the compiler.
3264 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3265 set X $ac_compile
3266 ac_compiler=$2
3267 for ac_option in --version -v -V -qversion; do
3268 { { ac_try="$ac_compiler $ac_option >&5"
3269 case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272 esac
3273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3274 $as_echo "$ac_try_echo"; } >&5
3275 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3276 ac_status=$?
3277 if test -s conftest.err; then
3278 sed '10a\
3279 ... rest of stderr output deleted ...
3280 10q' conftest.err >conftest.er1
3281 cat conftest.er1 >&5
3282 fi
3283 rm -f conftest.er1 conftest.err
3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285 test $ac_status = 0; }
3286 done
3287
3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289 /* end confdefs.h. */
3290
3291 int
3292 main ()
3293 {
3294
3295 ;
3296 return 0;
3297 }
3298 _ACEOF
3299 ac_clean_files_save=$ac_clean_files
3300 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3301 # Try to create an executable without -o first, disregard a.out.
3302 # It will help us diagnose broken compilers, and finding out an intuition
3303 # of exeext.
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3305 $as_echo_n "checking whether the C compiler works... " >&6; }
3306 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3307
3308 # The possible output files:
3309 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3310
3311 ac_rmfiles=
3312 for ac_file in $ac_files
3313 do
3314 case $ac_file in
3315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3316 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3317 esac
3318 done
3319 rm -f $ac_rmfiles
3320
3321 if { { ac_try="$ac_link_default"
3322 case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325 esac
3326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327 $as_echo "$ac_try_echo"; } >&5
3328 (eval "$ac_link_default") 2>&5
3329 ac_status=$?
3330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331 test $ac_status = 0; }; then :
3332 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3333 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3334 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3335 # so that the user can short-circuit this test for compilers unknown to
3336 # Autoconf.
3337 for ac_file in $ac_files ''
3338 do
3339 test -f "$ac_file" || continue
3340 case $ac_file in
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3342 ;;
3343 [ab].out )
3344 # We found the default executable, but exeext='' is most
3345 # certainly right.
3346 break;;
3347 *.* )
3348 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3349 then :; else
3350 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3351 fi
3352 # We set ac_cv_exeext here because the later test for it is not
3353 # safe: cross compilers may not add the suffix if given an `-o'
3354 # argument, so we may need to know it at that point already.
3355 # Even if this section looks crufty: it has the advantage of
3356 # actually working.
3357 break;;
3358 * )
3359 break;;
3360 esac
3361 done
3362 test "$ac_cv_exeext" = no && ac_cv_exeext=
3363
3364 else
3365 ac_file=''
3366 fi
3367 if test -z "$ac_file"; then :
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3370 $as_echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3372
3373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375 as_fn_error 77 "C compiler cannot create executables
3376 See \`config.log' for more details" "$LINENO" 5; }
3377 else
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3379 $as_echo "yes" >&6; }
3380 fi
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3382 $as_echo_n "checking for C compiler default output file name... " >&6; }
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3384 $as_echo "$ac_file" >&6; }
3385 ac_exeext=$ac_cv_exeext
3386
3387 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3388 ac_clean_files=$ac_clean_files_save
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3390 $as_echo_n "checking for suffix of executables... " >&6; }
3391 if { { ac_try="$ac_link"
3392 case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3395 esac
3396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397 $as_echo "$ac_try_echo"; } >&5
3398 (eval "$ac_link") 2>&5
3399 ac_status=$?
3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401 test $ac_status = 0; }; then :
3402 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3403 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3404 # work properly (i.e., refer to `conftest.exe'), while it won't with
3405 # `rm'.
3406 for ac_file in conftest.exe conftest conftest.*; do
3407 test -f "$ac_file" || continue
3408 case $ac_file in
3409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3410 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3411 break;;
3412 * ) break;;
3413 esac
3414 done
3415 else
3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3419 See \`config.log' for more details" "$LINENO" 5; }
3420 fi
3421 rm -f conftest conftest$ac_cv_exeext
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3423 $as_echo "$ac_cv_exeext" >&6; }
3424
3425 rm -f conftest.$ac_ext
3426 EXEEXT=$ac_cv_exeext
3427 ac_exeext=$EXEEXT
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3430 #include <stdio.h>
3431 int
3432 main ()
3433 {
3434 FILE *f = fopen ("conftest.out", "w");
3435 return ferror (f) || fclose (f) != 0;
3436
3437 ;
3438 return 0;
3439 }
3440 _ACEOF
3441 ac_clean_files="$ac_clean_files conftest.out"
3442 # Check that the compiler produces executables we can run. If not, either
3443 # the compiler is broken, or we cross compile.
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3445 $as_echo_n "checking whether we are cross compiling... " >&6; }
3446 if test "$cross_compiling" != yes; then
3447 { { ac_try="$ac_link"
3448 case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451 esac
3452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453 $as_echo "$ac_try_echo"; } >&5
3454 (eval "$ac_link") 2>&5
3455 ac_status=$?
3456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457 test $ac_status = 0; }
3458 if { ac_try='./conftest$ac_cv_exeext'
3459 { { case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3462 esac
3463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464 $as_echo "$ac_try_echo"; } >&5
3465 (eval "$ac_try") 2>&5
3466 ac_status=$?
3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468 test $ac_status = 0; }; }; then
3469 cross_compiling=no
3470 else
3471 if test "$cross_compiling" = maybe; then
3472 cross_compiling=yes
3473 else
3474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3476 as_fn_error $? "cannot run C compiled programs.
3477 If you meant to cross compile, use \`--host'.
3478 See \`config.log' for more details" "$LINENO" 5; }
3479 fi
3480 fi
3481 fi
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3483 $as_echo "$cross_compiling" >&6; }
3484
3485 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3486 ac_clean_files=$ac_clean_files_save
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3488 $as_echo_n "checking for suffix of object files... " >&6; }
3489 if ${ac_cv_objext+:} false; then :
3490 $as_echo_n "(cached) " >&6
3491 else
3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h. */
3494
3495 int
3496 main ()
3497 {
3498
3499 ;
3500 return 0;
3501 }
3502 _ACEOF
3503 rm -f conftest.o conftest.obj
3504 if { { ac_try="$ac_compile"
3505 case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3508 esac
3509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510 $as_echo "$ac_try_echo"; } >&5
3511 (eval "$ac_compile") 2>&5
3512 ac_status=$?
3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514 test $ac_status = 0; }; then :
3515 for ac_file in conftest.o conftest.obj conftest.*; do
3516 test -f "$ac_file" || continue;
3517 case $ac_file in
3518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3519 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3520 break;;
3521 esac
3522 done
3523 else
3524 $as_echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3526
3527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3529 as_fn_error $? "cannot compute suffix of object files: cannot compile
3530 See \`config.log' for more details" "$LINENO" 5; }
3531 fi
3532 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3533 fi
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3535 $as_echo "$ac_cv_objext" >&6; }
3536 OBJEXT=$ac_cv_objext
3537 ac_objext=$OBJEXT
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3539 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3540 if ${ac_cv_c_compiler_gnu+:} false; then :
3541 $as_echo_n "(cached) " >&6
3542 else
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3545
3546 int
3547 main ()
3548 {
3549 #ifndef __GNUC__
3550 choke me
3551 #endif
3552
3553 ;
3554 return 0;
3555 }
3556 _ACEOF
3557 if ac_fn_c_try_compile "$LINENO"; then :
3558 ac_compiler_gnu=yes
3559 else
3560 ac_compiler_gnu=no
3561 fi
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3564
3565 fi
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3567 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3568 if test $ac_compiler_gnu = yes; then
3569 GCC=yes
3570 else
3571 GCC=
3572 fi
3573 ac_test_CFLAGS=${CFLAGS+set}
3574 ac_save_CFLAGS=$CFLAGS
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3576 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3577 if ${ac_cv_prog_cc_g+:} false; then :
3578 $as_echo_n "(cached) " >&6
3579 else
3580 ac_save_c_werror_flag=$ac_c_werror_flag
3581 ac_c_werror_flag=yes
3582 ac_cv_prog_cc_g=no
3583 CFLAGS="-g"
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3586
3587 int
3588 main ()
3589 {
3590
3591 ;
3592 return 0;
3593 }
3594 _ACEOF
3595 if ac_fn_c_try_compile "$LINENO"; then :
3596 ac_cv_prog_cc_g=yes
3597 else
3598 CFLAGS=""
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3601
3602 int
3603 main ()
3604 {
3605
3606 ;
3607 return 0;
3608 }
3609 _ACEOF
3610 if ac_fn_c_try_compile "$LINENO"; then :
3611
3612 else
3613 ac_c_werror_flag=$ac_save_c_werror_flag
3614 CFLAGS="-g"
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h. */
3617
3618 int
3619 main ()
3620 {
3621
3622 ;
3623 return 0;
3624 }
3625 _ACEOF
3626 if ac_fn_c_try_compile "$LINENO"; then :
3627 ac_cv_prog_cc_g=yes
3628 fi
3629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 fi
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 fi
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 ac_c_werror_flag=$ac_save_c_werror_flag
3635 fi
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3637 $as_echo "$ac_cv_prog_cc_g" >&6; }
3638 if test "$ac_test_CFLAGS" = set; then
3639 CFLAGS=$ac_save_CFLAGS
3640 elif test $ac_cv_prog_cc_g = yes; then
3641 if test "$GCC" = yes; then
3642 CFLAGS="-g -O2"
3643 else
3644 CFLAGS="-g"
3645 fi
3646 else
3647 if test "$GCC" = yes; then
3648 CFLAGS="-O2"
3649 else
3650 CFLAGS=
3651 fi
3652 fi
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3654 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3655 if ${ac_cv_prog_cc_c89+:} false; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 ac_cv_prog_cc_c89=no
3659 ac_save_CC=$CC
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3662 #include <stdarg.h>
3663 #include <stdio.h>
3664 #include <sys/types.h>
3665 #include <sys/stat.h>
3666 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3667 struct buf { int x; };
3668 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3669 static char *e (p, i)
3670 char **p;
3671 int i;
3672 {
3673 return p[i];
3674 }
3675 static char *f (char * (*g) (char **, int), char **p, ...)
3676 {
3677 char *s;
3678 va_list v;
3679 va_start (v,p);
3680 s = g (p, va_arg (v,int));
3681 va_end (v);
3682 return s;
3683 }
3684
3685 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3686 function prototypes and stuff, but not '\xHH' hex character constants.
3687 These don't provoke an error unfortunately, instead are silently treated
3688 as 'x'. The following induces an error, until -std is added to get
3689 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3690 array size at least. It's necessary to write '\x00'==0 to get something
3691 that's true only with -std. */
3692 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3693
3694 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3695 inside strings and character constants. */
3696 #define FOO(x) 'x'
3697 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3698
3699 int test (int i, double x);
3700 struct s1 {int (*f) (int a);};
3701 struct s2 {int (*f) (double a);};
3702 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3703 int argc;
3704 char **argv;
3705 int
3706 main ()
3707 {
3708 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3709 ;
3710 return 0;
3711 }
3712 _ACEOF
3713 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3714 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3715 do
3716 CC="$ac_save_CC $ac_arg"
3717 if ac_fn_c_try_compile "$LINENO"; then :
3718 ac_cv_prog_cc_c89=$ac_arg
3719 fi
3720 rm -f core conftest.err conftest.$ac_objext
3721 test "x$ac_cv_prog_cc_c89" != "xno" && break
3722 done
3723 rm -f conftest.$ac_ext
3724 CC=$ac_save_CC
3725
3726 fi
3727 # AC_CACHE_VAL
3728 case "x$ac_cv_prog_cc_c89" in
3729 x)
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3731 $as_echo "none needed" >&6; } ;;
3732 xno)
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3734 $as_echo "unsupported" >&6; } ;;
3735 *)
3736 CC="$CC $ac_cv_prog_cc_c89"
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3738 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3739 esac
3740 if test "x$ac_cv_prog_cc_c89" != xno; then :
3741
3742 fi
3743
3744 ac_ext=c
3745 ac_cpp='$CPP $CPPFLAGS'
3746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3749
3750 depcc="$CC" am_compiler_list=
3751
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3753 $as_echo_n "checking dependency style of $depcc... " >&6; }
3754 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3755 $as_echo_n "(cached) " >&6
3756 else
3757 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3758 # We make a subdir and do the tests there. Otherwise we can end up
3759 # making bogus files that we don't know about and never remove. For
3760 # instance it was reported that on HP-UX the gcc test will end up
3761 # making a dummy file named `D' -- because `-MD' means `put the output
3762 # in D'.
3763 mkdir conftest.dir
3764 # Copy depcomp to subdir because otherwise we won't find it if we're
3765 # using a relative directory.
3766 cp "$am_depcomp" conftest.dir
3767 cd conftest.dir
3768 # We will build objects and dependencies in a subdirectory because
3769 # it helps to detect inapplicable dependency modes. For instance
3770 # both Tru64's cc and ICC support -MD to output dependencies as a
3771 # side effect of compilation, but ICC will put the dependencies in
3772 # the current directory while Tru64 will put them in the object
3773 # directory.
3774 mkdir sub
3775
3776 am_cv_CC_dependencies_compiler_type=none
3777 if test "$am_compiler_list" = ""; then
3778 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3779 fi
3780 am__universal=false
3781 case " $depcc " in #(
3782 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3783 esac
3784
3785 for depmode in $am_compiler_list; do
3786 # Setup a source with many dependencies, because some compilers
3787 # like to wrap large dependency lists on column 80 (with \), and
3788 # we should not choose a depcomp mode which is confused by this.
3789 #
3790 # We need to recreate these files for each test, as the compiler may
3791 # overwrite some of them when testing with obscure command lines.
3792 # This happens at least with the AIX C compiler.
3793 : > sub/conftest.c
3794 for i in 1 2 3 4 5 6; do
3795 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3796 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3797 # Solaris 8's {/usr,}/bin/sh.
3798 touch sub/conftst$i.h
3799 done
3800 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3801
3802 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3803 # mode. It turns out that the SunPro C++ compiler does not properly
3804 # handle `-M -o', and we need to detect this. Also, some Intel
3805 # versions had trouble with output in subdirs
3806 am__obj=sub/conftest.${OBJEXT-o}
3807 am__minus_obj="-o $am__obj"
3808 case $depmode in
3809 gcc)
3810 # This depmode causes a compiler race in universal mode.
3811 test "$am__universal" = false || continue
3812 ;;
3813 nosideeffect)
3814 # after this tag, mechanisms are not by side-effect, so they'll
3815 # only be used when explicitly requested
3816 if test "x$enable_dependency_tracking" = xyes; then
3817 continue
3818 else
3819 break
3820 fi
3821 ;;
3822 msvisualcpp | msvcmsys)
3823 # This compiler won't grok `-c -o', but also, the minuso test has
3824 # not run yet. These depmodes are late enough in the game, and
3825 # so weak that their functioning should not be impacted.
3826 am__obj=conftest.${OBJEXT-o}
3827 am__minus_obj=
3828 ;;
3829 none) break ;;
3830 esac
3831 if depmode=$depmode \
3832 source=sub/conftest.c object=$am__obj \
3833 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3834 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3835 >/dev/null 2>conftest.err &&
3836 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3837 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3838 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3839 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3840 # icc doesn't choke on unknown options, it will just issue warnings
3841 # or remarks (even with -Werror). So we grep stderr for any message
3842 # that says an option was ignored or not supported.
3843 # When given -MP, icc 7.0 and 7.1 complain thusly:
3844 # icc: Command line warning: ignoring option '-M'; no argument required
3845 # The diagnosis changed in icc 8.0:
3846 # icc: Command line remark: option '-MP' not supported
3847 if (grep 'ignoring option' conftest.err ||
3848 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3849 am_cv_CC_dependencies_compiler_type=$depmode
3850 break
3851 fi
3852 fi
3853 done
3854
3855 cd ..
3856 rm -rf conftest.dir
3857 else
3858 am_cv_CC_dependencies_compiler_type=none
3859 fi
3860
3861 fi
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3863 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3864 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3865
3866 if
3867 test "x$enable_dependency_tracking" != xno \
3868 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3869 am__fastdepCC_TRUE=
3870 am__fastdepCC_FALSE='#'
3871 else
3872 am__fastdepCC_TRUE='#'
3873 am__fastdepCC_FALSE=
3874 fi
3875
3876
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3878 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3879 if ${ac_cv_path_SED+:} false; then :
3880 $as_echo_n "(cached) " >&6
3881 else
3882 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3883 for ac_i in 1 2 3 4 5 6 7; do
3884 ac_script="$ac_script$as_nl$ac_script"
3885 done
3886 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3887 { ac_script=; unset ac_script;}
3888 if test -z "$SED"; then
3889 ac_path_SED_found=false
3890 # Loop through the user's path and test for each of PROGNAME-LIST
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3893 do
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_prog in sed gsed; do
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3899 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3900 # Check for GNU ac_path_SED and select it if it is found.
3901 # Check for GNU $ac_path_SED
3902 case `"$ac_path_SED" --version 2>&1` in
3903 *GNU*)
3904 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3905 *)
3906 ac_count=0
3907 $as_echo_n 0123456789 >"conftest.in"
3908 while :
3909 do
3910 cat "conftest.in" "conftest.in" >"conftest.tmp"
3911 mv "conftest.tmp" "conftest.in"
3912 cp "conftest.in" "conftest.nl"
3913 $as_echo '' >> "conftest.nl"
3914 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3915 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3916 as_fn_arith $ac_count + 1 && ac_count=$as_val
3917 if test $ac_count -gt ${ac_path_SED_max-0}; then
3918 # Best one so far, save it but keep looking for a better one
3919 ac_cv_path_SED="$ac_path_SED"
3920 ac_path_SED_max=$ac_count
3921 fi
3922 # 10*(2^10) chars as input seems more than enough
3923 test $ac_count -gt 10 && break
3924 done
3925 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3926 esac
3927
3928 $ac_path_SED_found && break 3
3929 done
3930 done
3931 done
3932 IFS=$as_save_IFS
3933 if test -z "$ac_cv_path_SED"; then
3934 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3935 fi
3936 else
3937 ac_cv_path_SED=$SED
3938 fi
3939
3940 fi
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3942 $as_echo "$ac_cv_path_SED" >&6; }
3943 SED="$ac_cv_path_SED"
3944 rm -f conftest.sed
3945
3946 test -z "$SED" && SED=sed
3947 Xsed="$SED -e 1s/^X//"
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3960 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3961 if ${ac_cv_path_GREP+:} false; then :
3962 $as_echo_n "(cached) " >&6
3963 else
3964 if test -z "$GREP"; then
3965 ac_path_GREP_found=false
3966 # Loop through the user's path and test for each of PROGNAME-LIST
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3969 do
3970 IFS=$as_save_IFS
3971 test -z "$as_dir" && as_dir=.
3972 for ac_prog in grep ggrep; do
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3975 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3976 # Check for GNU ac_path_GREP and select it if it is found.
3977 # Check for GNU $ac_path_GREP
3978 case `"$ac_path_GREP" --version 2>&1` in
3979 *GNU*)
3980 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3981 *)
3982 ac_count=0
3983 $as_echo_n 0123456789 >"conftest.in"
3984 while :
3985 do
3986 cat "conftest.in" "conftest.in" >"conftest.tmp"
3987 mv "conftest.tmp" "conftest.in"
3988 cp "conftest.in" "conftest.nl"
3989 $as_echo 'GREP' >> "conftest.nl"
3990 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3991 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3992 as_fn_arith $ac_count + 1 && ac_count=$as_val
3993 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3994 # Best one so far, save it but keep looking for a better one
3995 ac_cv_path_GREP="$ac_path_GREP"
3996 ac_path_GREP_max=$ac_count
3997 fi
3998 # 10*(2^10) chars as input seems more than enough
3999 test $ac_count -gt 10 && break
4000 done
4001 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4002 esac
4003
4004 $ac_path_GREP_found && break 3
4005 done
4006 done
4007 done
4008 IFS=$as_save_IFS
4009 if test -z "$ac_cv_path_GREP"; then
4010 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4011 fi
4012 else
4013 ac_cv_path_GREP=$GREP
4014 fi
4015
4016 fi
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4018 $as_echo "$ac_cv_path_GREP" >&6; }
4019 GREP="$ac_cv_path_GREP"
4020
4021
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4023 $as_echo_n "checking for egrep... " >&6; }
4024 if ${ac_cv_path_EGREP+:} false; then :
4025 $as_echo_n "(cached) " >&6
4026 else
4027 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4028 then ac_cv_path_EGREP="$GREP -E"
4029 else
4030 if test -z "$EGREP"; then
4031 ac_path_EGREP_found=false
4032 # Loop through the user's path and test for each of PROGNAME-LIST
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4035 do
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_prog in egrep; do
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4041 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4042 # Check for GNU ac_path_EGREP and select it if it is found.
4043 # Check for GNU $ac_path_EGREP
4044 case `"$ac_path_EGREP" --version 2>&1` in
4045 *GNU*)
4046 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4047 *)
4048 ac_count=0
4049 $as_echo_n 0123456789 >"conftest.in"
4050 while :
4051 do
4052 cat "conftest.in" "conftest.in" >"conftest.tmp"
4053 mv "conftest.tmp" "conftest.in"
4054 cp "conftest.in" "conftest.nl"
4055 $as_echo 'EGREP' >> "conftest.nl"
4056 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4058 as_fn_arith $ac_count + 1 && ac_count=$as_val
4059 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4060 # Best one so far, save it but keep looking for a better one
4061 ac_cv_path_EGREP="$ac_path_EGREP"
4062 ac_path_EGREP_max=$ac_count
4063 fi
4064 # 10*(2^10) chars as input seems more than enough
4065 test $ac_count -gt 10 && break
4066 done
4067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4068 esac
4069
4070 $ac_path_EGREP_found && break 3
4071 done
4072 done
4073 done
4074 IFS=$as_save_IFS
4075 if test -z "$ac_cv_path_EGREP"; then
4076 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4077 fi
4078 else
4079 ac_cv_path_EGREP=$EGREP
4080 fi
4081
4082 fi
4083 fi
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4085 $as_echo "$ac_cv_path_EGREP" >&6; }
4086 EGREP="$ac_cv_path_EGREP"
4087
4088
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4090 $as_echo_n "checking for fgrep... " >&6; }
4091 if ${ac_cv_path_FGREP+:} false; then :
4092 $as_echo_n "(cached) " >&6
4093 else
4094 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4095 then ac_cv_path_FGREP="$GREP -F"
4096 else
4097 if test -z "$FGREP"; then
4098 ac_path_FGREP_found=false
4099 # Loop through the user's path and test for each of PROGNAME-LIST
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4102 do
4103 IFS=$as_save_IFS
4104 test -z "$as_dir" && as_dir=.
4105 for ac_prog in fgrep; do
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4108 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4109 # Check for GNU ac_path_FGREP and select it if it is found.
4110 # Check for GNU $ac_path_FGREP
4111 case `"$ac_path_FGREP" --version 2>&1` in
4112 *GNU*)
4113 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4114 *)
4115 ac_count=0
4116 $as_echo_n 0123456789 >"conftest.in"
4117 while :
4118 do
4119 cat "conftest.in" "conftest.in" >"conftest.tmp"
4120 mv "conftest.tmp" "conftest.in"
4121 cp "conftest.in" "conftest.nl"
4122 $as_echo 'FGREP' >> "conftest.nl"
4123 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4125 as_fn_arith $ac_count + 1 && ac_count=$as_val
4126 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4127 # Best one so far, save it but keep looking for a better one
4128 ac_cv_path_FGREP="$ac_path_FGREP"
4129 ac_path_FGREP_max=$ac_count
4130 fi
4131 # 10*(2^10) chars as input seems more than enough
4132 test $ac_count -gt 10 && break
4133 done
4134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4135 esac
4136
4137 $ac_path_FGREP_found && break 3
4138 done
4139 done
4140 done
4141 IFS=$as_save_IFS
4142 if test -z "$ac_cv_path_FGREP"; then
4143 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4144 fi
4145 else
4146 ac_cv_path_FGREP=$FGREP
4147 fi
4148
4149 fi
4150 fi
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4152 $as_echo "$ac_cv_path_FGREP" >&6; }
4153 FGREP="$ac_cv_path_FGREP"
4154
4155
4156 test -z "$GREP" && GREP=grep
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176 # Check whether --with-gnu-ld was given.
4177 if test "${with_gnu_ld+set}" = set; then :
4178 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4179 else
4180 with_gnu_ld=no
4181 fi
4182
4183 ac_prog=ld
4184 if test "$GCC" = yes; then
4185 # Check if gcc -print-prog-name=ld gives a path.
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4187 $as_echo_n "checking for ld used by $CC... " >&6; }
4188 case $host in
4189 *-*-mingw*)
4190 # gcc leaves a trailing carriage return which upsets mingw
4191 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4192 *)
4193 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4194 esac
4195 case $ac_prog in
4196 # Accept absolute paths.
4197 [\\/]* | ?:[\\/]*)
4198 re_direlt='/[^/][^/]*/\.\./'
4199 # Canonicalize the pathname of ld
4200 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4201 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4202 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4203 done
4204 test -z "$LD" && LD="$ac_prog"
4205 ;;
4206 "")
4207 # If it fails, then pretend we aren't using GCC.
4208 ac_prog=ld
4209 ;;
4210 *)
4211 # If it is relative, then search for the first ld in PATH.
4212 with_gnu_ld=unknown
4213 ;;
4214 esac
4215 elif test "$with_gnu_ld" = yes; then
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4217 $as_echo_n "checking for GNU ld... " >&6; }
4218 else
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4220 $as_echo_n "checking for non-GNU ld... " >&6; }
4221 fi
4222 if ${lt_cv_path_LD+:} false; then :
4223 $as_echo_n "(cached) " >&6
4224 else
4225 if test -z "$LD"; then
4226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4227 for ac_dir in $PATH; do
4228 IFS="$lt_save_ifs"
4229 test -z "$ac_dir" && ac_dir=.
4230 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4231 lt_cv_path_LD="$ac_dir/$ac_prog"
4232 # Check to see if the program is GNU ld. I'd rather use --version,
4233 # but apparently some variants of GNU ld only accept -v.
4234 # Break only if it was the GNU/non-GNU ld that we prefer.
4235 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4236 *GNU* | *'with BFD'*)
4237 test "$with_gnu_ld" != no && break
4238 ;;
4239 *)
4240 test "$with_gnu_ld" != yes && break
4241 ;;
4242 esac
4243 fi
4244 done
4245 IFS="$lt_save_ifs"
4246 else
4247 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4248 fi
4249 fi
4250
4251 LD="$lt_cv_path_LD"
4252 if test -n "$LD"; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4254 $as_echo "$LD" >&6; }
4255 else
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4258 fi
4259 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4261 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4262 if ${lt_cv_prog_gnu_ld+:} false; then :
4263 $as_echo_n "(cached) " >&6
4264 else
4265 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4266 case `$LD -v 2>&1 </dev/null` in
4267 *GNU* | *'with BFD'*)
4268 lt_cv_prog_gnu_ld=yes
4269 ;;
4270 *)
4271 lt_cv_prog_gnu_ld=no
4272 ;;
4273 esac
4274 fi
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4276 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4277 with_gnu_ld=$lt_cv_prog_gnu_ld
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4288 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4289 if ${lt_cv_path_NM+:} false; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 if test -n "$NM"; then
4293 # Let the user override the test.
4294 lt_cv_path_NM="$NM"
4295 else
4296 lt_nm_to_check="${ac_tool_prefix}nm"
4297 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4298 lt_nm_to_check="$lt_nm_to_check nm"
4299 fi
4300 for lt_tmp_nm in $lt_nm_to_check; do
4301 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4302 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4303 IFS="$lt_save_ifs"
4304 test -z "$ac_dir" && ac_dir=.
4305 tmp_nm="$ac_dir/$lt_tmp_nm"
4306 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4307 # Check to see if the nm accepts a BSD-compat flag.
4308 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4309 # nm: unknown option "B" ignored
4310 # Tru64's nm complains that /dev/null is an invalid object file
4311 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4312 */dev/null* | *'Invalid file or object type'*)
4313 lt_cv_path_NM="$tmp_nm -B"
4314 break
4315 ;;
4316 *)
4317 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4318 */dev/null*)
4319 lt_cv_path_NM="$tmp_nm -p"
4320 break
4321 ;;
4322 *)
4323 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4324 continue # so that we can try to find one that supports BSD flags
4325 ;;
4326 esac
4327 ;;
4328 esac
4329 fi
4330 done
4331 IFS="$lt_save_ifs"
4332 done
4333 : ${lt_cv_path_NM=no}
4334 fi
4335 fi
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4337 $as_echo "$lt_cv_path_NM" >&6; }
4338 if test "$lt_cv_path_NM" != "no"; then
4339 NM="$lt_cv_path_NM"
4340 else
4341 # Didn't find any BSD compatible name lister, look for dumpbin.
4342 if test -n "$DUMPBIN"; then :
4343 # Let the user override the test.
4344 else
4345 if test -n "$ac_tool_prefix"; then
4346 for ac_prog in dumpbin "link -dump"
4347 do
4348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4351 $as_echo_n "checking for $ac_word... " >&6; }
4352 if ${ac_cv_prog_DUMPBIN+:} false; then :
4353 $as_echo_n "(cached) " >&6
4354 else
4355 if test -n "$DUMPBIN"; then
4356 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4357 else
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4360 do
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4365 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 break 2
4368 fi
4369 done
4370 done
4371 IFS=$as_save_IFS
4372
4373 fi
4374 fi
4375 DUMPBIN=$ac_cv_prog_DUMPBIN
4376 if test -n "$DUMPBIN"; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4378 $as_echo "$DUMPBIN" >&6; }
4379 else
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381 $as_echo "no" >&6; }
4382 fi
4383
4384
4385 test -n "$DUMPBIN" && break
4386 done
4387 fi
4388 if test -z "$DUMPBIN"; then
4389 ac_ct_DUMPBIN=$DUMPBIN
4390 for ac_prog in dumpbin "link -dump"
4391 do
4392 # Extract the first word of "$ac_prog", so it can be a program name with args.
4393 set dummy $ac_prog; ac_word=$2
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4395 $as_echo_n "checking for $ac_word... " >&6; }
4396 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4397 $as_echo_n "(cached) " >&6
4398 else
4399 if test -n "$ac_ct_DUMPBIN"; then
4400 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4401 else
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4404 do
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4409 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 break 2
4412 fi
4413 done
4414 done
4415 IFS=$as_save_IFS
4416
4417 fi
4418 fi
4419 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4420 if test -n "$ac_ct_DUMPBIN"; then
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4422 $as_echo "$ac_ct_DUMPBIN" >&6; }
4423 else
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4425 $as_echo "no" >&6; }
4426 fi
4427
4428
4429 test -n "$ac_ct_DUMPBIN" && break
4430 done
4431
4432 if test "x$ac_ct_DUMPBIN" = x; then
4433 DUMPBIN=":"
4434 else
4435 case $cross_compiling:$ac_tool_warned in
4436 yes:)
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4439 ac_tool_warned=yes ;;
4440 esac
4441 DUMPBIN=$ac_ct_DUMPBIN
4442 fi
4443 fi
4444
4445 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4446 *COFF*)
4447 DUMPBIN="$DUMPBIN -symbols"
4448 ;;
4449 *)
4450 DUMPBIN=:
4451 ;;
4452 esac
4453 fi
4454
4455 if test "$DUMPBIN" != ":"; then
4456 NM="$DUMPBIN"
4457 fi
4458 fi
4459 test -z "$NM" && NM=nm
4460
4461
4462
4463
4464
4465
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4467 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4468 if ${lt_cv_nm_interface+:} false; then :
4469 $as_echo_n "(cached) " >&6
4470 else
4471 lt_cv_nm_interface="BSD nm"
4472 echo "int some_variable = 0;" > conftest.$ac_ext
4473 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4474 (eval "$ac_compile" 2>conftest.err)
4475 cat conftest.err >&5
4476 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4477 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4478 cat conftest.err >&5
4479 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4480 cat conftest.out >&5
4481 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4482 lt_cv_nm_interface="MS dumpbin"
4483 fi
4484 rm -f conftest*
4485 fi
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4487 $as_echo "$lt_cv_nm_interface" >&6; }
4488
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4490 $as_echo_n "checking whether ln -s works... " >&6; }
4491 LN_S=$as_ln_s
4492 if test "$LN_S" = "ln -s"; then
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4494 $as_echo "yes" >&6; }
4495 else
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4497 $as_echo "no, using $LN_S" >&6; }
4498 fi
4499
4500 # find the maximum length of command line arguments
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4502 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4503 if ${lt_cv_sys_max_cmd_len+:} false; then :
4504 $as_echo_n "(cached) " >&6
4505 else
4506 i=0
4507 teststring="ABCD"
4508
4509 case $build_os in
4510 msdosdjgpp*)
4511 # On DJGPP, this test can blow up pretty badly due to problems in libc
4512 # (any single argument exceeding 2000 bytes causes a buffer overrun
4513 # during glob expansion). Even if it were fixed, the result of this
4514 # check would be larger than it should be.
4515 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4516 ;;
4517
4518 gnu*)
4519 # Under GNU Hurd, this test is not required because there is
4520 # no limit to the length of command line arguments.
4521 # Libtool will interpret -1 as no limit whatsoever
4522 lt_cv_sys_max_cmd_len=-1;
4523 ;;
4524
4525 cygwin* | mingw* | cegcc*)
4526 # On Win9x/ME, this test blows up -- it succeeds, but takes
4527 # about 5 minutes as the teststring grows exponentially.
4528 # Worse, since 9x/ME are not pre-emptively multitasking,
4529 # you end up with a "frozen" computer, even though with patience
4530 # the test eventually succeeds (with a max line length of 256k).
4531 # Instead, let's just punt: use the minimum linelength reported by
4532 # all of the supported platforms: 8192 (on NT/2K/XP).
4533 lt_cv_sys_max_cmd_len=8192;
4534 ;;
4535
4536 mint*)
4537 # On MiNT this can take a long time and run out of memory.
4538 lt_cv_sys_max_cmd_len=8192;
4539 ;;
4540
4541 amigaos*)
4542 # On AmigaOS with pdksh, this test takes hours, literally.
4543 # So we just punt and use a minimum line length of 8192.
4544 lt_cv_sys_max_cmd_len=8192;
4545 ;;
4546
4547 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4548 # This has been around since 386BSD, at least. Likely further.
4549 if test -x /sbin/sysctl; then
4550 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4551 elif test -x /usr/sbin/sysctl; then
4552 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4553 else
4554 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4555 fi
4556 # And add a safety zone
4557 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4558 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4559 ;;
4560
4561 interix*)
4562 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4563 lt_cv_sys_max_cmd_len=196608
4564 ;;
4565
4566 osf*)
4567 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4568 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4569 # nice to cause kernel panics so lets avoid the loop below.
4570 # First set a reasonable default.
4571 lt_cv_sys_max_cmd_len=16384
4572 #
4573 if test -x /sbin/sysconfig; then
4574 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4575 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4576 esac
4577 fi
4578 ;;
4579 sco3.2v5*)
4580 lt_cv_sys_max_cmd_len=102400
4581 ;;
4582 sysv5* | sco5v6* | sysv4.2uw2*)
4583 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4584 if test -n "$kargmax"; then
4585 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4586 else
4587 lt_cv_sys_max_cmd_len=32768
4588 fi
4589 ;;
4590 *)
4591 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4592 if test -n "$lt_cv_sys_max_cmd_len"; then
4593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4595 else
4596 # Make teststring a little bigger before we do anything with it.
4597 # a 1K string should be a reasonable start.
4598 for i in 1 2 3 4 5 6 7 8 ; do
4599 teststring=$teststring$teststring
4600 done
4601 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4602 # If test is not a shell built-in, we'll probably end up computing a
4603 # maximum length that is only half of the actual maximum length, but
4604 # we can't tell.
4605 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4606 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4607 test $i != 17 # 1/2 MB should be enough
4608 do
4609 i=`expr $i + 1`
4610 teststring=$teststring$teststring
4611 done
4612 # Only check the string length outside the loop.
4613 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4614 teststring=
4615 # Add a significant safety factor because C++ compilers can tack on
4616 # massive amounts of additional arguments before passing them to the
4617 # linker. It appears as though 1/2 is a usable value.
4618 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4619 fi
4620 ;;
4621 esac
4622
4623 fi
4624
4625 if test -n $lt_cv_sys_max_cmd_len ; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4627 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4628 else
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4630 $as_echo "none" >&6; }
4631 fi
4632 max_cmd_len=$lt_cv_sys_max_cmd_len
4633
4634
4635
4636
4637
4638
4639 : ${CP="cp -f"}
4640 : ${MV="mv -f"}
4641 : ${RM="rm -f"}
4642
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4644 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4645 # Try some XSI features
4646 xsi_shell=no
4647 ( _lt_dummy="a/b/c"
4648 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4649 = c,a/b,b/c, \
4650 && eval 'test $(( 1 + 1 )) -eq 2 \
4651 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4652 && xsi_shell=yes
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4654 $as_echo "$xsi_shell" >&6; }
4655
4656
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4658 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4659 lt_shell_append=no
4660 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4661 >/dev/null 2>&1 \
4662 && lt_shell_append=yes
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4664 $as_echo "$lt_shell_append" >&6; }
4665
4666
4667 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4668 lt_unset=unset
4669 else
4670 lt_unset=false
4671 fi
4672
4673
4674
4675
4676
4677 # test EBCDIC or ASCII
4678 case `echo X|tr X '\101'` in
4679 A) # ASCII based system
4680 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4681 lt_SP2NL='tr \040 \012'
4682 lt_NL2SP='tr \015\012 \040\040'
4683 ;;
4684 *) # EBCDIC based system
4685 lt_SP2NL='tr \100 \n'
4686 lt_NL2SP='tr \r\n \100\100'
4687 ;;
4688 esac
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4699 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4700 if ${lt_cv_to_host_file_cmd+:} false; then :
4701 $as_echo_n "(cached) " >&6
4702 else
4703 case $host in
4704 *-*-mingw* )
4705 case $build in
4706 *-*-mingw* ) # actually msys
4707 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4708 ;;
4709 *-*-cygwin* )
4710 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4711 ;;
4712 * ) # otherwise, assume *nix
4713 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4714 ;;
4715 esac
4716 ;;
4717 *-*-cygwin* )
4718 case $build in
4719 *-*-mingw* ) # actually msys
4720 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4721 ;;
4722 *-*-cygwin* )
4723 lt_cv_to_host_file_cmd=func_convert_file_noop
4724 ;;
4725 * ) # otherwise, assume *nix
4726 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4727 ;;
4728 esac
4729 ;;
4730 * ) # unhandled hosts (and "normal" native builds)
4731 lt_cv_to_host_file_cmd=func_convert_file_noop
4732 ;;
4733 esac
4734
4735 fi
4736
4737 to_host_file_cmd=$lt_cv_to_host_file_cmd
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4739 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4740
4741
4742
4743
4744
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4746 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4747 if ${lt_cv_to_tool_file_cmd+:} false; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4750 #assume ordinary cross tools, or native build.
4751 lt_cv_to_tool_file_cmd=func_convert_file_noop
4752 case $host in
4753 *-*-mingw* )
4754 case $build in
4755 *-*-mingw* ) # actually msys
4756 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4757 ;;
4758 esac
4759 ;;
4760 esac
4761
4762 fi
4763
4764 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4766 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4767
4768
4769
4770
4771
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4773 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4774 if ${lt_cv_ld_reload_flag+:} false; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 lt_cv_ld_reload_flag='-r'
4778 fi
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4780 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4781 reload_flag=$lt_cv_ld_reload_flag
4782 case $reload_flag in
4783 "" | " "*) ;;
4784 *) reload_flag=" $reload_flag" ;;
4785 esac
4786 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4787 case $host_os in
4788 cygwin* | mingw* | pw32* | cegcc*)
4789 if test "$GCC" != yes; then
4790 reload_cmds=false
4791 fi
4792 ;;
4793 darwin*)
4794 if test "$GCC" = yes; then
4795 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4796 else
4797 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4798 fi
4799 ;;
4800 esac
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810 if test -n "$ac_tool_prefix"; then
4811 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4812 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if ${ac_cv_prog_OBJDUMP+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 if test -n "$OBJDUMP"; then
4819 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4820 else
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4823 do
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 break 2
4831 fi
4832 done
4833 done
4834 IFS=$as_save_IFS
4835
4836 fi
4837 fi
4838 OBJDUMP=$ac_cv_prog_OBJDUMP
4839 if test -n "$OBJDUMP"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4841 $as_echo "$OBJDUMP" >&6; }
4842 else
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 $as_echo "no" >&6; }
4845 fi
4846
4847
4848 fi
4849 if test -z "$ac_cv_prog_OBJDUMP"; then
4850 ac_ct_OBJDUMP=$OBJDUMP
4851 # Extract the first word of "objdump", so it can be a program name with args.
4852 set dummy objdump; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 if test -n "$ac_ct_OBJDUMP"; then
4859 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4871 fi
4872 done
4873 done
4874 IFS=$as_save_IFS
4875
4876 fi
4877 fi
4878 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4879 if test -n "$ac_ct_OBJDUMP"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4881 $as_echo "$ac_ct_OBJDUMP" >&6; }
4882 else
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4885 fi
4886
4887 if test "x$ac_ct_OBJDUMP" = x; then
4888 OBJDUMP="false"
4889 else
4890 case $cross_compiling:$ac_tool_warned in
4891 yes:)
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4894 ac_tool_warned=yes ;;
4895 esac
4896 OBJDUMP=$ac_ct_OBJDUMP
4897 fi
4898 else
4899 OBJDUMP="$ac_cv_prog_OBJDUMP"
4900 fi
4901
4902 test -z "$OBJDUMP" && OBJDUMP=objdump
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4913 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4914 if ${lt_cv_deplibs_check_method+:} false; then :
4915 $as_echo_n "(cached) " >&6
4916 else
4917 lt_cv_file_magic_cmd='$MAGIC_CMD'
4918 lt_cv_file_magic_test_file=
4919 lt_cv_deplibs_check_method='unknown'
4920 # Need to set the preceding variable on all platforms that support
4921 # interlibrary dependencies.
4922 # 'none' -- dependencies not supported.
4923 # `unknown' -- same as none, but documents that we really don't know.
4924 # 'pass_all' -- all dependencies passed with no checks.
4925 # 'test_compile' -- check by making test program.
4926 # 'file_magic [[regex]]' -- check by looking for files in library path
4927 # which responds to the $file_magic_cmd with a given extended regex.
4928 # If you have `file' or equivalent on your system and you're not sure
4929 # whether `pass_all' will *always* work, you probably want this one.
4930
4931 case $host_os in
4932 aix[4-9]*)
4933 lt_cv_deplibs_check_method=pass_all
4934 ;;
4935
4936 beos*)
4937 lt_cv_deplibs_check_method=pass_all
4938 ;;
4939
4940 bsdi[45]*)
4941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4942 lt_cv_file_magic_cmd='/usr/bin/file -L'
4943 lt_cv_file_magic_test_file=/shlib/libc.so
4944 ;;
4945
4946 cygwin*)
4947 # func_win32_libid is a shell function defined in ltmain.sh
4948 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4949 lt_cv_file_magic_cmd='func_win32_libid'
4950 ;;
4951
4952 mingw* | pw32*)
4953 # Base MSYS/MinGW do not provide the 'file' command needed by
4954 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4955 # unless we find 'file', for example because we are cross-compiling.
4956 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4957 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4958 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4959 lt_cv_file_magic_cmd='func_win32_libid'
4960 else
4961 # Keep this pattern in sync with the one in func_win32_libid.
4962 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4963 lt_cv_file_magic_cmd='$OBJDUMP -f'
4964 fi
4965 ;;
4966
4967 cegcc*)
4968 # use the weaker test based on 'objdump'. See mingw*.
4969 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4970 lt_cv_file_magic_cmd='$OBJDUMP -f'
4971 ;;
4972
4973 darwin* | rhapsody*)
4974 lt_cv_deplibs_check_method=pass_all
4975 ;;
4976
4977 freebsd* | dragonfly*)
4978 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4979 case $host_cpu in
4980 i*86 )
4981 # Not sure whether the presence of OpenBSD here was a mistake.
4982 # Let's accept both of them until this is cleared up.
4983 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4984 lt_cv_file_magic_cmd=/usr/bin/file
4985 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4986 ;;
4987 esac
4988 else
4989 lt_cv_deplibs_check_method=pass_all
4990 fi
4991 ;;
4992
4993 gnu*)
4994 lt_cv_deplibs_check_method=pass_all
4995 ;;
4996
4997 haiku*)
4998 lt_cv_deplibs_check_method=pass_all
4999 ;;
5000
5001 hpux10.20* | hpux11*)
5002 lt_cv_file_magic_cmd=/usr/bin/file
5003 case $host_cpu in
5004 ia64*)
5005 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5006 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5007 ;;
5008 hppa*64*)
5009 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]'
5010 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5011 ;;
5012 *)
5013 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5014 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5015 ;;
5016 esac
5017 ;;
5018
5019 interix[3-9]*)
5020 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5021 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5022 ;;
5023
5024 irix5* | irix6* | nonstopux*)
5025 case $LD in
5026 *-32|*"-32 ") libmagic=32-bit;;
5027 *-n32|*"-n32 ") libmagic=N32;;
5028 *-64|*"-64 ") libmagic=64-bit;;
5029 *) libmagic=never-match;;
5030 esac
5031 lt_cv_deplibs_check_method=pass_all
5032 ;;
5033
5034 # This must be Linux ELF.
5035 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5036 lt_cv_deplibs_check_method=pass_all
5037 ;;
5038
5039 netbsd*)
5040 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5041 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5042 else
5043 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5044 fi
5045 ;;
5046
5047 newos6*)
5048 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5049 lt_cv_file_magic_cmd=/usr/bin/file
5050 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5051 ;;
5052
5053 *nto* | *qnx*)
5054 lt_cv_deplibs_check_method=pass_all
5055 ;;
5056
5057 openbsd*)
5058 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5059 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5060 else
5061 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5062 fi
5063 ;;
5064
5065 osf3* | osf4* | osf5*)
5066 lt_cv_deplibs_check_method=pass_all
5067 ;;
5068
5069 rdos*)
5070 lt_cv_deplibs_check_method=pass_all
5071 ;;
5072
5073 solaris*)
5074 lt_cv_deplibs_check_method=pass_all
5075 ;;
5076
5077 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5078 lt_cv_deplibs_check_method=pass_all
5079 ;;
5080
5081 sysv4 | sysv4.3*)
5082 case $host_vendor in
5083 motorola)
5084 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]'
5085 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5086 ;;
5087 ncr)
5088 lt_cv_deplibs_check_method=pass_all
5089 ;;
5090 sequent)
5091 lt_cv_file_magic_cmd='/bin/file'
5092 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5093 ;;
5094 sni)
5095 lt_cv_file_magic_cmd='/bin/file'
5096 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5097 lt_cv_file_magic_test_file=/lib/libc.so
5098 ;;
5099 siemens)
5100 lt_cv_deplibs_check_method=pass_all
5101 ;;
5102 pc)
5103 lt_cv_deplibs_check_method=pass_all
5104 ;;
5105 esac
5106 ;;
5107
5108 tpf*)
5109 lt_cv_deplibs_check_method=pass_all
5110 ;;
5111 esac
5112
5113 fi
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5115 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5116
5117 file_magic_glob=
5118 want_nocaseglob=no
5119 if test "$build" = "$host"; then
5120 case $host_os in
5121 mingw* | pw32*)
5122 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5123 want_nocaseglob=yes
5124 else
5125 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5126 fi
5127 ;;
5128 esac
5129 fi
5130
5131 file_magic_cmd=$lt_cv_file_magic_cmd
5132 deplibs_check_method=$lt_cv_deplibs_check_method
5133 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156 if test -n "$ac_tool_prefix"; then
5157 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5158 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160 $as_echo_n "checking for $ac_word... " >&6; }
5161 if ${ac_cv_prog_DLLTOOL+:} false; then :
5162 $as_echo_n "(cached) " >&6
5163 else
5164 if test -n "$DLLTOOL"; then
5165 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5166 else
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5169 do
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5174 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 break 2
5177 fi
5178 done
5179 done
5180 IFS=$as_save_IFS
5181
5182 fi
5183 fi
5184 DLLTOOL=$ac_cv_prog_DLLTOOL
5185 if test -n "$DLLTOOL"; then
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5187 $as_echo "$DLLTOOL" >&6; }
5188 else
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190 $as_echo "no" >&6; }
5191 fi
5192
5193
5194 fi
5195 if test -z "$ac_cv_prog_DLLTOOL"; then
5196 ac_ct_DLLTOOL=$DLLTOOL
5197 # Extract the first word of "dlltool", so it can be a program name with args.
5198 set dummy dlltool; ac_word=$2
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200 $as_echo_n "checking for $ac_word... " >&6; }
5201 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5202 $as_echo_n "(cached) " >&6
5203 else
5204 if test -n "$ac_ct_DLLTOOL"; then
5205 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5206 else
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 for as_dir in $PATH
5209 do
5210 IFS=$as_save_IFS
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5214 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 break 2
5217 fi
5218 done
5219 done
5220 IFS=$as_save_IFS
5221
5222 fi
5223 fi
5224 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5225 if test -n "$ac_ct_DLLTOOL"; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5227 $as_echo "$ac_ct_DLLTOOL" >&6; }
5228 else
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5231 fi
5232
5233 if test "x$ac_ct_DLLTOOL" = x; then
5234 DLLTOOL="false"
5235 else
5236 case $cross_compiling:$ac_tool_warned in
5237 yes:)
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5240 ac_tool_warned=yes ;;
5241 esac
5242 DLLTOOL=$ac_ct_DLLTOOL
5243 fi
5244 else
5245 DLLTOOL="$ac_cv_prog_DLLTOOL"
5246 fi
5247
5248 test -z "$DLLTOOL" && DLLTOOL=dlltool
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5260 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5261 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5262 $as_echo_n "(cached) " >&6
5263 else
5264 lt_cv_sharedlib_from_linklib_cmd='unknown'
5265
5266 case $host_os in
5267 cygwin* | mingw* | pw32* | cegcc*)
5268 # two different shell functions defined in ltmain.sh
5269 # decide which to use based on capabilities of $DLLTOOL
5270 case `$DLLTOOL --help 2>&1` in
5271 *--identify-strict*)
5272 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5273 ;;
5274 *)
5275 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5276 ;;
5277 esac
5278 ;;
5279 *)
5280 # fallback: assume linklib IS sharedlib
5281 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5282 ;;
5283 esac
5284
5285 fi
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5287 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5288 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5289 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5290
5291
5292
5293
5294
5295
5296
5297
5298 if test -n "$ac_tool_prefix"; then
5299 for ac_prog in ar
5300 do
5301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5302 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5304 $as_echo_n "checking for $ac_word... " >&6; }
5305 if ${ac_cv_prog_AR+:} false; then :
5306 $as_echo_n "(cached) " >&6
5307 else
5308 if test -n "$AR"; then
5309 ac_cv_prog_AR="$AR" # Let the user override the test.
5310 else
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $PATH
5313 do
5314 IFS=$as_save_IFS
5315 test -z "$as_dir" && as_dir=.
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5318 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 break 2
5321 fi
5322 done
5323 done
5324 IFS=$as_save_IFS
5325
5326 fi
5327 fi
5328 AR=$ac_cv_prog_AR
5329 if test -n "$AR"; then
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5331 $as_echo "$AR" >&6; }
5332 else
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334 $as_echo "no" >&6; }
5335 fi
5336
5337
5338 test -n "$AR" && break
5339 done
5340 fi
5341 if test -z "$AR"; then
5342 ac_ct_AR=$AR
5343 for ac_prog in ar
5344 do
5345 # Extract the first word of "$ac_prog", so it can be a program name with args.
5346 set dummy $ac_prog; ac_word=$2
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5348 $as_echo_n "checking for $ac_word... " >&6; }
5349 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5350 $as_echo_n "(cached) " >&6
5351 else
5352 if test -n "$ac_ct_AR"; then
5353 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5354 else
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5357 do
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362 ac_cv_prog_ac_ct_AR="$ac_prog"
5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 break 2
5365 fi
5366 done
5367 done
5368 IFS=$as_save_IFS
5369
5370 fi
5371 fi
5372 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5373 if test -n "$ac_ct_AR"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5375 $as_echo "$ac_ct_AR" >&6; }
5376 else
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5379 fi
5380
5381
5382 test -n "$ac_ct_AR" && break
5383 done
5384
5385 if test "x$ac_ct_AR" = x; then
5386 AR="false"
5387 else
5388 case $cross_compiling:$ac_tool_warned in
5389 yes:)
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5392 ac_tool_warned=yes ;;
5393 esac
5394 AR=$ac_ct_AR
5395 fi
5396 fi
5397
5398 : ${AR=ar}
5399 : ${AR_FLAGS=cru}
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5412 $as_echo_n "checking for archiver @FILE support... " >&6; }
5413 if ${lt_cv_ar_at_file+:} false; then :
5414 $as_echo_n "(cached) " >&6
5415 else
5416 lt_cv_ar_at_file=no
5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418 /* end confdefs.h. */
5419
5420 int
5421 main ()
5422 {
5423
5424 ;
5425 return 0;
5426 }
5427 _ACEOF
5428 if ac_fn_c_try_compile "$LINENO"; then :
5429 echo conftest.$ac_objext > conftest.lst
5430 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5432 (eval $lt_ar_try) 2>&5
5433 ac_status=$?
5434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5435 test $ac_status = 0; }
5436 if test "$ac_status" -eq 0; then
5437 # Ensure the archiver fails upon bogus file names.
5438 rm -f conftest.$ac_objext libconftest.a
5439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5440 (eval $lt_ar_try) 2>&5
5441 ac_status=$?
5442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5443 test $ac_status = 0; }
5444 if test "$ac_status" -ne 0; then
5445 lt_cv_ar_at_file=@
5446 fi
5447 fi
5448 rm -f conftest.* libconftest.a
5449
5450 fi
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452
5453 fi
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5455 $as_echo "$lt_cv_ar_at_file" >&6; }
5456
5457 if test "x$lt_cv_ar_at_file" = xno; then
5458 archiver_list_spec=
5459 else
5460 archiver_list_spec=$lt_cv_ar_at_file
5461 fi
5462
5463
5464
5465
5466
5467
5468
5469 if test -n "$ac_tool_prefix"; then
5470 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5471 set dummy ${ac_tool_prefix}strip; ac_word=$2
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5473 $as_echo_n "checking for $ac_word... " >&6; }
5474 if ${ac_cv_prog_STRIP+:} false; then :
5475 $as_echo_n "(cached) " >&6
5476 else
5477 if test -n "$STRIP"; then
5478 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5479 else
5480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 for as_dir in $PATH
5482 do
5483 IFS=$as_save_IFS
5484 test -z "$as_dir" && as_dir=.
5485 for ac_exec_ext in '' $ac_executable_extensions; do
5486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5487 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5489 break 2
5490 fi
5491 done
5492 done
5493 IFS=$as_save_IFS
5494
5495 fi
5496 fi
5497 STRIP=$ac_cv_prog_STRIP
5498 if test -n "$STRIP"; then
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5500 $as_echo "$STRIP" >&6; }
5501 else
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503 $as_echo "no" >&6; }
5504 fi
5505
5506
5507 fi
5508 if test -z "$ac_cv_prog_STRIP"; then
5509 ac_ct_STRIP=$STRIP
5510 # Extract the first word of "strip", so it can be a program name with args.
5511 set dummy strip; ac_word=$2
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5513 $as_echo_n "checking for $ac_word... " >&6; }
5514 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 if test -n "$ac_ct_STRIP"; then
5518 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5519 else
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 for as_dir in $PATH
5522 do
5523 IFS=$as_save_IFS
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5527 ac_cv_prog_ac_ct_STRIP="strip"
5528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 break 2
5530 fi
5531 done
5532 done
5533 IFS=$as_save_IFS
5534
5535 fi
5536 fi
5537 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5538 if test -n "$ac_ct_STRIP"; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5540 $as_echo "$ac_ct_STRIP" >&6; }
5541 else
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5544 fi
5545
5546 if test "x$ac_ct_STRIP" = x; then
5547 STRIP=":"
5548 else
5549 case $cross_compiling:$ac_tool_warned in
5550 yes:)
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5553 ac_tool_warned=yes ;;
5554 esac
5555 STRIP=$ac_ct_STRIP
5556 fi
5557 else
5558 STRIP="$ac_cv_prog_STRIP"
5559 fi
5560
5561 test -z "$STRIP" && STRIP=:
5562
5563
5564
5565
5566
5567
5568 if test -n "$ac_tool_prefix"; then
5569 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5570 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572 $as_echo_n "checking for $ac_word... " >&6; }
5573 if ${ac_cv_prog_RANLIB+:} false; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 if test -n "$RANLIB"; then
5577 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5578 else
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5581 do
5582 IFS=$as_save_IFS
5583 test -z "$as_dir" && as_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5586 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 break 2
5589 fi
5590 done
5591 done
5592 IFS=$as_save_IFS
5593
5594 fi
5595 fi
5596 RANLIB=$ac_cv_prog_RANLIB
5597 if test -n "$RANLIB"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5599 $as_echo "$RANLIB" >&6; }
5600 else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5603 fi
5604
5605
5606 fi
5607 if test -z "$ac_cv_prog_RANLIB"; then
5608 ac_ct_RANLIB=$RANLIB
5609 # Extract the first word of "ranlib", so it can be a program name with args.
5610 set dummy ranlib; ac_word=$2
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 if test -n "$ac_ct_RANLIB"; then
5617 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5618 else
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH
5621 do
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5626 ac_cv_prog_ac_ct_RANLIB="ranlib"
5627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5628 break 2
5629 fi
5630 done
5631 done
5632 IFS=$as_save_IFS
5633
5634 fi
5635 fi
5636 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5637 if test -n "$ac_ct_RANLIB"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5639 $as_echo "$ac_ct_RANLIB" >&6; }
5640 else
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }
5643 fi
5644
5645 if test "x$ac_ct_RANLIB" = x; then
5646 RANLIB=":"
5647 else
5648 case $cross_compiling:$ac_tool_warned in
5649 yes:)
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5652 ac_tool_warned=yes ;;
5653 esac
5654 RANLIB=$ac_ct_RANLIB
5655 fi
5656 else
5657 RANLIB="$ac_cv_prog_RANLIB"
5658 fi
5659
5660 test -z "$RANLIB" && RANLIB=:
5661
5662
5663
5664
5665
5666
5667 # Determine commands to create old-style static archives.
5668 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5669 old_postinstall_cmds='chmod 644 $oldlib'
5670 old_postuninstall_cmds=
5671
5672 if test -n "$RANLIB"; then
5673 case $host_os in
5674 openbsd*)
5675 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5676 ;;
5677 *)
5678 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5679 ;;
5680 esac
5681 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5682 fi
5683
5684 case $host_os in
5685 darwin*)
5686 lock_old_archive_extraction=yes ;;
5687 *)
5688 lock_old_archive_extraction=no ;;
5689 esac
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729 # If no C compiler was specified, use CC.
5730 LTCC=${LTCC-"$CC"}
5731
5732 # If no C compiler flags were specified, use CFLAGS.
5733 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5734
5735 # Allow CC to be a program name with arguments.
5736 compiler=$CC
5737
5738
5739 # Check for command to grab the raw symbol name followed by C symbol from nm.
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5741 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5742 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5743 $as_echo_n "(cached) " >&6
5744 else
5745
5746 # These are sane defaults that work on at least a few old systems.
5747 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5748
5749 # Character class describing NM global symbol codes.
5750 symcode='[BCDEGRST]'
5751
5752 # Regexp to match symbols that can be accessed directly from C.
5753 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5754
5755 # Define system-specific variables.
5756 case $host_os in
5757 aix*)
5758 symcode='[BCDT]'
5759 ;;
5760 cygwin* | mingw* | pw32* | cegcc*)
5761 symcode='[ABCDGISTW]'
5762 ;;
5763 hpux*)
5764 if test "$host_cpu" = ia64; then
5765 symcode='[ABCDEGRST]'
5766 fi
5767 ;;
5768 irix* | nonstopux*)
5769 symcode='[BCDEGRST]'
5770 ;;
5771 osf*)
5772 symcode='[BCDEGQRST]'
5773 ;;
5774 solaris*)
5775 symcode='[BDRT]'
5776 ;;
5777 sco3.2v5*)
5778 symcode='[DT]'
5779 ;;
5780 sysv4.2uw2*)
5781 symcode='[DT]'
5782 ;;
5783 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5784 symcode='[ABDT]'
5785 ;;
5786 sysv4)
5787 symcode='[DFNSTU]'
5788 ;;
5789 esac
5790
5791 # If we're using GNU nm, then use its standard symbol codes.
5792 case `$NM -V 2>&1` in
5793 *GNU* | *'with BFD'*)
5794 symcode='[ABCDGIRSTW]' ;;
5795 esac
5796
5797 # Transform an extracted symbol line into a proper C declaration.
5798 # Some systems (esp. on ia64) link data and code symbols differently,
5799 # so use this general approach.
5800 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5801
5802 # Transform an extracted symbol line into symbol name and symbol address
5803 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5804 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'"
5805
5806 # Handle CRLF in mingw tool chain
5807 opt_cr=
5808 case $build_os in
5809 mingw*)
5810 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5811 ;;
5812 esac
5813
5814 # Try without a prefix underscore, then with it.
5815 for ac_symprfx in "" "_"; do
5816
5817 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5818 symxfrm="\\1 $ac_symprfx\\2 \\2"
5819
5820 # Write the raw and C identifiers.
5821 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5822 # Fake it for dumpbin and say T for any non-static function
5823 # and D for any global variable.
5824 # Also find C++ and __fastcall symbols from MSVC++,
5825 # which start with @ or ?.
5826 lt_cv_sys_global_symbol_pipe="$AWK '"\
5827 " {last_section=section; section=\$ 3};"\
5828 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5829 " \$ 0!~/External *\|/{next};"\
5830 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5831 " {if(hide[section]) next};"\
5832 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5833 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5834 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5835 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5836 " ' prfx=^$ac_symprfx"
5837 else
5838 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5839 fi
5840 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5841
5842 # Check to see that the pipe works correctly.
5843 pipe_works=no
5844
5845 rm -f conftest*
5846 cat > conftest.$ac_ext <<_LT_EOF
5847 #ifdef __cplusplus
5848 extern "C" {
5849 #endif
5850 char nm_test_var;
5851 void nm_test_func(void);
5852 void nm_test_func(void){}
5853 #ifdef __cplusplus
5854 }
5855 #endif
5856 int main(){nm_test_var='a';nm_test_func();return(0);}
5857 _LT_EOF
5858
5859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5860 (eval $ac_compile) 2>&5
5861 ac_status=$?
5862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5863 test $ac_status = 0; }; then
5864 # Now try to grab the symbols.
5865 nlist=conftest.nm
5866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5867 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5868 ac_status=$?
5869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5870 test $ac_status = 0; } && test -s "$nlist"; then
5871 # Try sorting and uniquifying the output.
5872 if sort "$nlist" | uniq > "$nlist"T; then
5873 mv -f "$nlist"T "$nlist"
5874 else
5875 rm -f "$nlist"T
5876 fi
5877
5878 # Make sure that we snagged all the symbols we need.
5879 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5880 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5881 cat <<_LT_EOF > conftest.$ac_ext
5882 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5883 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5884 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5885 relocations are performed -- see ld's documentation on pseudo-relocs. */
5886 # define LT_DLSYM_CONST
5887 #elif defined(__osf__)
5888 /* This system does not cope well with relocations in const data. */
5889 # define LT_DLSYM_CONST
5890 #else
5891 # define LT_DLSYM_CONST const
5892 #endif
5893
5894 #ifdef __cplusplus
5895 extern "C" {
5896 #endif
5897
5898 _LT_EOF
5899 # Now generate the symbol file.
5900 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5901
5902 cat <<_LT_EOF >> conftest.$ac_ext
5903
5904 /* The mapping between symbol names and symbols. */
5905 LT_DLSYM_CONST struct {
5906 const char *name;
5907 void *address;
5908 }
5909 lt__PROGRAM__LTX_preloaded_symbols[] =
5910 {
5911 { "@PROGRAM@", (void *) 0 },
5912 _LT_EOF
5913 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5914 cat <<\_LT_EOF >> conftest.$ac_ext
5915 {0, (void *) 0}
5916 };
5917
5918 /* This works around a problem in FreeBSD linker */
5919 #ifdef FREEBSD_WORKAROUND
5920 static const void *lt_preloaded_setup() {
5921 return lt__PROGRAM__LTX_preloaded_symbols;
5922 }
5923 #endif
5924
5925 #ifdef __cplusplus
5926 }
5927 #endif
5928 _LT_EOF
5929 # Now try linking the two files.
5930 mv conftest.$ac_objext conftstm.$ac_objext
5931 lt_globsym_save_LIBS=$LIBS
5932 lt_globsym_save_CFLAGS=$CFLAGS
5933 LIBS="conftstm.$ac_objext"
5934 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5936 (eval $ac_link) 2>&5
5937 ac_status=$?
5938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5939 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5940 pipe_works=yes
5941 fi
5942 LIBS=$lt_globsym_save_LIBS
5943 CFLAGS=$lt_globsym_save_CFLAGS
5944 else
5945 echo "cannot find nm_test_func in $nlist" >&5
5946 fi
5947 else
5948 echo "cannot find nm_test_var in $nlist" >&5
5949 fi
5950 else
5951 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5952 fi
5953 else
5954 echo "$progname: failed program was:" >&5
5955 cat conftest.$ac_ext >&5
5956 fi
5957 rm -rf conftest* conftst*
5958
5959 # Do not use the global_symbol_pipe unless it works.
5960 if test "$pipe_works" = yes; then
5961 break
5962 else
5963 lt_cv_sys_global_symbol_pipe=
5964 fi
5965 done
5966
5967 fi
5968
5969 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5970 lt_cv_sys_global_symbol_to_cdecl=
5971 fi
5972 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5974 $as_echo "failed" >&6; }
5975 else
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5977 $as_echo "ok" >&6; }
5978 fi
5979
5980 # Response file support.
5981 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5982 nm_file_list_spec='@'
5983 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5984 nm_file_list_spec='@'
5985 fi
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6014 $as_echo_n "checking for sysroot... " >&6; }
6015
6016 # Check whether --with-sysroot was given.
6017 if test "${with_sysroot+set}" = set; then :
6018 withval=$with_sysroot;
6019 else
6020 with_sysroot=no
6021 fi
6022
6023
6024 lt_sysroot=
6025 case ${with_sysroot} in #(
6026 yes)
6027 if test "$GCC" = yes; then
6028 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6029 fi
6030 ;; #(
6031 /*)
6032 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6033 ;; #(
6034 no|'')
6035 ;; #(
6036 *)
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6038 $as_echo "${with_sysroot}" >&6; }
6039 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6040 ;;
6041 esac
6042
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6044 $as_echo "${lt_sysroot:-no}" >&6; }
6045
6046
6047
6048
6049
6050 # Check whether --enable-libtool-lock was given.
6051 if test "${enable_libtool_lock+set}" = set; then :
6052 enableval=$enable_libtool_lock;
6053 fi
6054
6055 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6056
6057 # Some flags need to be propagated to the compiler or linker for good
6058 # libtool support.
6059 case $host in
6060 ia64-*-hpux*)
6061 # Find out which ABI we are using.
6062 echo 'int i;' > conftest.$ac_ext
6063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6064 (eval $ac_compile) 2>&5
6065 ac_status=$?
6066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6067 test $ac_status = 0; }; then
6068 case `/usr/bin/file conftest.$ac_objext` in
6069 *ELF-32*)
6070 HPUX_IA64_MODE="32"
6071 ;;
6072 *ELF-64*)
6073 HPUX_IA64_MODE="64"
6074 ;;
6075 esac
6076 fi
6077 rm -rf conftest*
6078 ;;
6079 *-*-irix6*)
6080 # Find out which ABI we are using.
6081 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6083 (eval $ac_compile) 2>&5
6084 ac_status=$?
6085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6086 test $ac_status = 0; }; then
6087 if test "$lt_cv_prog_gnu_ld" = yes; then
6088 case `/usr/bin/file conftest.$ac_objext` in
6089 *32-bit*)
6090 LD="${LD-ld} -melf32bsmip"
6091 ;;
6092 *N32*)
6093 LD="${LD-ld} -melf32bmipn32"
6094 ;;
6095 *64-bit*)
6096 LD="${LD-ld} -melf64bmip"
6097 ;;
6098 esac
6099 else
6100 case `/usr/bin/file conftest.$ac_objext` in
6101 *32-bit*)
6102 LD="${LD-ld} -32"
6103 ;;
6104 *N32*)
6105 LD="${LD-ld} -n32"
6106 ;;
6107 *64-bit*)
6108 LD="${LD-ld} -64"
6109 ;;
6110 esac
6111 fi
6112 fi
6113 rm -rf conftest*
6114 ;;
6115
6116 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6117 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6118 # Find out which ABI we are using.
6119 echo 'int i;' > conftest.$ac_ext
6120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6121 (eval $ac_compile) 2>&5
6122 ac_status=$?
6123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6124 test $ac_status = 0; }; then
6125 case `/usr/bin/file conftest.o` in
6126 *32-bit*)
6127 case $host in
6128 x86_64-*kfreebsd*-gnu)
6129 LD="${LD-ld} -m elf_i386_fbsd"
6130 ;;
6131 x86_64-*linux*)
6132 LD="${LD-ld} -m elf_i386"
6133 ;;
6134 ppc64-*linux*|powerpc64-*linux*)
6135 LD="${LD-ld} -m elf32ppclinux"
6136 ;;
6137 s390x-*linux*)
6138 LD="${LD-ld} -m elf_s390"
6139 ;;
6140 sparc64-*linux*)
6141 LD="${LD-ld} -m elf32_sparc"
6142 ;;
6143 esac
6144 ;;
6145 *64-bit*)
6146 case $host in
6147 x86_64-*kfreebsd*-gnu)
6148 LD="${LD-ld} -m elf_x86_64_fbsd"
6149 ;;
6150 x86_64-*linux*)
6151 LD="${LD-ld} -m elf_x86_64"
6152 ;;
6153 ppc*-*linux*|powerpc*-*linux*)
6154 LD="${LD-ld} -m elf64ppc"
6155 ;;
6156 s390*-*linux*|s390*-*tpf*)
6157 LD="${LD-ld} -m elf64_s390"
6158 ;;
6159 sparc*-*linux*)
6160 LD="${LD-ld} -m elf64_sparc"
6161 ;;
6162 esac
6163 ;;
6164 esac
6165 fi
6166 rm -rf conftest*
6167 ;;
6168
6169 *-*-sco3.2v5*)
6170 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6171 SAVE_CFLAGS="$CFLAGS"
6172 CFLAGS="$CFLAGS -belf"
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6174 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6175 if ${lt_cv_cc_needs_belf+:} false; then :
6176 $as_echo_n "(cached) " >&6
6177 else
6178 ac_ext=c
6179 ac_cpp='$CPP $CPPFLAGS'
6180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6183
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6186
6187 int
6188 main ()
6189 {
6190
6191 ;
6192 return 0;
6193 }
6194 _ACEOF
6195 if ac_fn_c_try_link "$LINENO"; then :
6196 lt_cv_cc_needs_belf=yes
6197 else
6198 lt_cv_cc_needs_belf=no
6199 fi
6200 rm -f core conftest.err conftest.$ac_objext \
6201 conftest$ac_exeext conftest.$ac_ext
6202 ac_ext=c
6203 ac_cpp='$CPP $CPPFLAGS'
6204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6207
6208 fi
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6210 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6211 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6212 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6213 CFLAGS="$SAVE_CFLAGS"
6214 fi
6215 ;;
6216 sparc*-*solaris*)
6217 # Find out which ABI we are using.
6218 echo 'int i;' > conftest.$ac_ext
6219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6220 (eval $ac_compile) 2>&5
6221 ac_status=$?
6222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6223 test $ac_status = 0; }; then
6224 case `/usr/bin/file conftest.o` in
6225 *64-bit*)
6226 case $lt_cv_prog_gnu_ld in
6227 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6228 *)
6229 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6230 LD="${LD-ld} -64"
6231 fi
6232 ;;
6233 esac
6234 ;;
6235 esac
6236 fi
6237 rm -rf conftest*
6238 ;;
6239 esac
6240
6241 need_locks="$enable_libtool_lock"
6242
6243 if test -n "$ac_tool_prefix"; then
6244 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6245 set dummy ${ac_tool_prefix}mt; ac_word=$2
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247 $as_echo_n "checking for $ac_word... " >&6; }
6248 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6249 $as_echo_n "(cached) " >&6
6250 else
6251 if test -n "$MANIFEST_TOOL"; then
6252 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6253 else
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6256 do
6257 IFS=$as_save_IFS
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 break 2
6264 fi
6265 done
6266 done
6267 IFS=$as_save_IFS
6268
6269 fi
6270 fi
6271 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6272 if test -n "$MANIFEST_TOOL"; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6274 $as_echo "$MANIFEST_TOOL" >&6; }
6275 else
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277 $as_echo "no" >&6; }
6278 fi
6279
6280
6281 fi
6282 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6283 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6284 # Extract the first word of "mt", so it can be a program name with args.
6285 set dummy mt; ac_word=$2
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287 $as_echo_n "checking for $ac_word... " >&6; }
6288 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6289 $as_echo_n "(cached) " >&6
6290 else
6291 if test -n "$ac_ct_MANIFEST_TOOL"; then
6292 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6293 else
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 for as_dir in $PATH
6296 do
6297 IFS=$as_save_IFS
6298 test -z "$as_dir" && as_dir=.
6299 for ac_exec_ext in '' $ac_executable_extensions; do
6300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6301 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6303 break 2
6304 fi
6305 done
6306 done
6307 IFS=$as_save_IFS
6308
6309 fi
6310 fi
6311 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6312 if test -n "$ac_ct_MANIFEST_TOOL"; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6314 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6315 else
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317 $as_echo "no" >&6; }
6318 fi
6319
6320 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6321 MANIFEST_TOOL=":"
6322 else
6323 case $cross_compiling:$ac_tool_warned in
6324 yes:)
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6327 ac_tool_warned=yes ;;
6328 esac
6329 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6330 fi
6331 else
6332 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6333 fi
6334
6335 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6337 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6338 if ${lt_cv_path_mainfest_tool+:} false; then :
6339 $as_echo_n "(cached) " >&6
6340 else
6341 lt_cv_path_mainfest_tool=no
6342 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6343 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6344 cat conftest.err >&5
6345 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6346 lt_cv_path_mainfest_tool=yes
6347 fi
6348 rm -f conftest*
6349 fi
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6351 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6352 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6353 MANIFEST_TOOL=:
6354 fi
6355
6356
6357
6358
6359
6360
6361 case $host_os in
6362 rhapsody* | darwin*)
6363 if test -n "$ac_tool_prefix"; then
6364 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6365 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6367 $as_echo_n "checking for $ac_word... " >&6; }
6368 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6369 $as_echo_n "(cached) " >&6
6370 else
6371 if test -n "$DSYMUTIL"; then
6372 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6373 else
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 for as_dir in $PATH
6376 do
6377 IFS=$as_save_IFS
6378 test -z "$as_dir" && as_dir=.
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6381 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 break 2
6384 fi
6385 done
6386 done
6387 IFS=$as_save_IFS
6388
6389 fi
6390 fi
6391 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6392 if test -n "$DSYMUTIL"; then
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6394 $as_echo "$DSYMUTIL" >&6; }
6395 else
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397 $as_echo "no" >&6; }
6398 fi
6399
6400
6401 fi
6402 if test -z "$ac_cv_prog_DSYMUTIL"; then
6403 ac_ct_DSYMUTIL=$DSYMUTIL
6404 # Extract the first word of "dsymutil", so it can be a program name with args.
6405 set dummy dsymutil; ac_word=$2
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407 $as_echo_n "checking for $ac_word... " >&6; }
6408 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6409 $as_echo_n "(cached) " >&6
6410 else
6411 if test -n "$ac_ct_DSYMUTIL"; then
6412 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6413 else
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6416 do
6417 IFS=$as_save_IFS
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6421 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 break 2
6424 fi
6425 done
6426 done
6427 IFS=$as_save_IFS
6428
6429 fi
6430 fi
6431 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6432 if test -n "$ac_ct_DSYMUTIL"; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6434 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6435 else
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437 $as_echo "no" >&6; }
6438 fi
6439
6440 if test "x$ac_ct_DSYMUTIL" = x; then
6441 DSYMUTIL=":"
6442 else
6443 case $cross_compiling:$ac_tool_warned in
6444 yes:)
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6447 ac_tool_warned=yes ;;
6448 esac
6449 DSYMUTIL=$ac_ct_DSYMUTIL
6450 fi
6451 else
6452 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6453 fi
6454
6455 if test -n "$ac_tool_prefix"; then
6456 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6457 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459 $as_echo_n "checking for $ac_word... " >&6; }
6460 if ${ac_cv_prog_NMEDIT+:} false; then :
6461 $as_echo_n "(cached) " >&6
6462 else
6463 if test -n "$NMEDIT"; then
6464 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6468 do
6469 IFS=$as_save_IFS
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6473 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 break 2
6476 fi
6477 done
6478 done
6479 IFS=$as_save_IFS
6480
6481 fi
6482 fi
6483 NMEDIT=$ac_cv_prog_NMEDIT
6484 if test -n "$NMEDIT"; then
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6486 $as_echo "$NMEDIT" >&6; }
6487 else
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489 $as_echo "no" >&6; }
6490 fi
6491
6492
6493 fi
6494 if test -z "$ac_cv_prog_NMEDIT"; then
6495 ac_ct_NMEDIT=$NMEDIT
6496 # Extract the first word of "nmedit", so it can be a program name with args.
6497 set dummy nmedit; ac_word=$2
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499 $as_echo_n "checking for $ac_word... " >&6; }
6500 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503 if test -n "$ac_ct_NMEDIT"; then
6504 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6505 else
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 for as_dir in $PATH
6508 do
6509 IFS=$as_save_IFS
6510 test -z "$as_dir" && as_dir=.
6511 for ac_exec_ext in '' $ac_executable_extensions; do
6512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6513 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 break 2
6516 fi
6517 done
6518 done
6519 IFS=$as_save_IFS
6520
6521 fi
6522 fi
6523 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6524 if test -n "$ac_ct_NMEDIT"; then
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6526 $as_echo "$ac_ct_NMEDIT" >&6; }
6527 else
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529 $as_echo "no" >&6; }
6530 fi
6531
6532 if test "x$ac_ct_NMEDIT" = x; then
6533 NMEDIT=":"
6534 else
6535 case $cross_compiling:$ac_tool_warned in
6536 yes:)
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6539 ac_tool_warned=yes ;;
6540 esac
6541 NMEDIT=$ac_ct_NMEDIT
6542 fi
6543 else
6544 NMEDIT="$ac_cv_prog_NMEDIT"
6545 fi
6546
6547 if test -n "$ac_tool_prefix"; then
6548 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6549 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6551 $as_echo_n "checking for $ac_word... " >&6; }
6552 if ${ac_cv_prog_LIPO+:} false; then :
6553 $as_echo_n "(cached) " >&6
6554 else
6555 if test -n "$LIPO"; then
6556 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6557 else
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 for as_dir in $PATH
6560 do
6561 IFS=$as_save_IFS
6562 test -z "$as_dir" && as_dir=.
6563 for ac_exec_ext in '' $ac_executable_extensions; do
6564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6565 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 break 2
6568 fi
6569 done
6570 done
6571 IFS=$as_save_IFS
6572
6573 fi
6574 fi
6575 LIPO=$ac_cv_prog_LIPO
6576 if test -n "$LIPO"; then
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6578 $as_echo "$LIPO" >&6; }
6579 else
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581 $as_echo "no" >&6; }
6582 fi
6583
6584
6585 fi
6586 if test -z "$ac_cv_prog_LIPO"; then
6587 ac_ct_LIPO=$LIPO
6588 # Extract the first word of "lipo", so it can be a program name with args.
6589 set dummy lipo; ac_word=$2
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591 $as_echo_n "checking for $ac_word... " >&6; }
6592 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6593 $as_echo_n "(cached) " >&6
6594 else
6595 if test -n "$ac_ct_LIPO"; then
6596 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6597 else
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6600 do
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6605 ac_cv_prog_ac_ct_LIPO="lipo"
6606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 break 2
6608 fi
6609 done
6610 done
6611 IFS=$as_save_IFS
6612
6613 fi
6614 fi
6615 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6616 if test -n "$ac_ct_LIPO"; then
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6618 $as_echo "$ac_ct_LIPO" >&6; }
6619 else
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621 $as_echo "no" >&6; }
6622 fi
6623
6624 if test "x$ac_ct_LIPO" = x; then
6625 LIPO=":"
6626 else
6627 case $cross_compiling:$ac_tool_warned in
6628 yes:)
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6631 ac_tool_warned=yes ;;
6632 esac
6633 LIPO=$ac_ct_LIPO
6634 fi
6635 else
6636 LIPO="$ac_cv_prog_LIPO"
6637 fi
6638
6639 if test -n "$ac_tool_prefix"; then
6640 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6641 set dummy ${ac_tool_prefix}otool; ac_word=$2
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if ${ac_cv_prog_OTOOL+:} false; then :
6645 $as_echo_n "(cached) " >&6
6646 else
6647 if test -n "$OTOOL"; then
6648 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6649 else
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6652 do
6653 IFS=$as_save_IFS
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 break 2
6660 fi
6661 done
6662 done
6663 IFS=$as_save_IFS
6664
6665 fi
6666 fi
6667 OTOOL=$ac_cv_prog_OTOOL
6668 if test -n "$OTOOL"; then
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6670 $as_echo "$OTOOL" >&6; }
6671 else
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673 $as_echo "no" >&6; }
6674 fi
6675
6676
6677 fi
6678 if test -z "$ac_cv_prog_OTOOL"; then
6679 ac_ct_OTOOL=$OTOOL
6680 # Extract the first word of "otool", so it can be a program name with args.
6681 set dummy otool; ac_word=$2
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6685 $as_echo_n "(cached) " >&6
6686 else
6687 if test -n "$ac_ct_OTOOL"; then
6688 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6689 else
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6692 do
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697 ac_cv_prog_ac_ct_OTOOL="otool"
6698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 break 2
6700 fi
6701 done
6702 done
6703 IFS=$as_save_IFS
6704
6705 fi
6706 fi
6707 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6708 if test -n "$ac_ct_OTOOL"; then
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6710 $as_echo "$ac_ct_OTOOL" >&6; }
6711 else
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 $as_echo "no" >&6; }
6714 fi
6715
6716 if test "x$ac_ct_OTOOL" = x; then
6717 OTOOL=":"
6718 else
6719 case $cross_compiling:$ac_tool_warned in
6720 yes:)
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6723 ac_tool_warned=yes ;;
6724 esac
6725 OTOOL=$ac_ct_OTOOL
6726 fi
6727 else
6728 OTOOL="$ac_cv_prog_OTOOL"
6729 fi
6730
6731 if test -n "$ac_tool_prefix"; then
6732 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6733 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if ${ac_cv_prog_OTOOL64+:} false; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 if test -n "$OTOOL64"; then
6740 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6744 do
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6752 fi
6753 done
6754 done
6755 IFS=$as_save_IFS
6756
6757 fi
6758 fi
6759 OTOOL64=$ac_cv_prog_OTOOL64
6760 if test -n "$OTOOL64"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6762 $as_echo "$OTOOL64" >&6; }
6763 else
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 $as_echo "no" >&6; }
6766 fi
6767
6768
6769 fi
6770 if test -z "$ac_cv_prog_OTOOL64"; then
6771 ac_ct_OTOOL64=$OTOOL64
6772 # Extract the first word of "otool64", so it can be a program name with args.
6773 set dummy otool64; ac_word=$2
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779 if test -n "$ac_ct_OTOOL64"; then
6780 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6781 else
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6784 do
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789 ac_cv_prog_ac_ct_OTOOL64="otool64"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6792 fi
6793 done
6794 done
6795 IFS=$as_save_IFS
6796
6797 fi
6798 fi
6799 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6800 if test -n "$ac_ct_OTOOL64"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6802 $as_echo "$ac_ct_OTOOL64" >&6; }
6803 else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 $as_echo "no" >&6; }
6806 fi
6807
6808 if test "x$ac_ct_OTOOL64" = x; then
6809 OTOOL64=":"
6810 else
6811 case $cross_compiling:$ac_tool_warned in
6812 yes:)
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6815 ac_tool_warned=yes ;;
6816 esac
6817 OTOOL64=$ac_ct_OTOOL64
6818 fi
6819 else
6820 OTOOL64="$ac_cv_prog_OTOOL64"
6821 fi
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6850 $as_echo_n "checking for -single_module linker flag... " >&6; }
6851 if ${lt_cv_apple_cc_single_mod+:} false; then :
6852 $as_echo_n "(cached) " >&6
6853 else
6854 lt_cv_apple_cc_single_mod=no
6855 if test -z "${LT_MULTI_MODULE}"; then
6856 # By default we will add the -single_module flag. You can override
6857 # by either setting the environment variable LT_MULTI_MODULE
6858 # non-empty at configure time, or by adding -multi_module to the
6859 # link flags.
6860 rm -rf libconftest.dylib*
6861 echo "int foo(void){return 1;}" > conftest.c
6862 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6863 -dynamiclib -Wl,-single_module conftest.c" >&5
6864 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6865 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6866 _lt_result=$?
6867 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6868 lt_cv_apple_cc_single_mod=yes
6869 else
6870 cat conftest.err >&5
6871 fi
6872 rm -rf libconftest.dylib*
6873 rm -f conftest.*
6874 fi
6875 fi
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6877 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6879 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6880 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6881 $as_echo_n "(cached) " >&6
6882 else
6883 lt_cv_ld_exported_symbols_list=no
6884 save_LDFLAGS=$LDFLAGS
6885 echo "_main" > conftest.sym
6886 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888 /* end confdefs.h. */
6889
6890 int
6891 main ()
6892 {
6893
6894 ;
6895 return 0;
6896 }
6897 _ACEOF
6898 if ac_fn_c_try_link "$LINENO"; then :
6899 lt_cv_ld_exported_symbols_list=yes
6900 else
6901 lt_cv_ld_exported_symbols_list=no
6902 fi
6903 rm -f core conftest.err conftest.$ac_objext \
6904 conftest$ac_exeext conftest.$ac_ext
6905 LDFLAGS="$save_LDFLAGS"
6906
6907 fi
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6909 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6911 $as_echo_n "checking for -force_load linker flag... " >&6; }
6912 if ${lt_cv_ld_force_load+:} false; then :
6913 $as_echo_n "(cached) " >&6
6914 else
6915 lt_cv_ld_force_load=no
6916 cat > conftest.c << _LT_EOF
6917 int forced_loaded() { return 2;}
6918 _LT_EOF
6919 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6920 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6921 echo "$AR cru libconftest.a conftest.o" >&5
6922 $AR cru libconftest.a conftest.o 2>&5
6923 echo "$RANLIB libconftest.a" >&5
6924 $RANLIB libconftest.a 2>&5
6925 cat > conftest.c << _LT_EOF
6926 int main() { return 0;}
6927 _LT_EOF
6928 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6929 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6930 _lt_result=$?
6931 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6932 lt_cv_ld_force_load=yes
6933 else
6934 cat conftest.err >&5
6935 fi
6936 rm -f conftest.err libconftest.a conftest conftest.c
6937 rm -rf conftest.dSYM
6938
6939 fi
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6941 $as_echo "$lt_cv_ld_force_load" >&6; }
6942 case $host_os in
6943 rhapsody* | darwin1.[012])
6944 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6945 darwin1.*)
6946 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6947 darwin*) # darwin 5.x on
6948 # if running on 10.5 or later, the deployment target defaults
6949 # to the OS version, if on x86, and 10.4, the deployment
6950 # target defaults to 10.4. Don't you love it?
6951 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6952 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6953 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6954 10.[012]*)
6955 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6956 10.*)
6957 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6958 esac
6959 ;;
6960 esac
6961 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6962 _lt_dar_single_mod='$single_module'
6963 fi
6964 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6965 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6966 else
6967 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6968 fi
6969 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6970 _lt_dsymutil='~$DSYMUTIL $lib || :'
6971 else
6972 _lt_dsymutil=
6973 fi
6974 ;;
6975 esac
6976
6977 ac_ext=c
6978 ac_cpp='$CPP $CPPFLAGS'
6979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6983 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6984 # On Suns, sometimes $CPP names a directory.
6985 if test -n "$CPP" && test -d "$CPP"; then
6986 CPP=
6987 fi
6988 if test -z "$CPP"; then
6989 if ${ac_cv_prog_CPP+:} false; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 # Double quotes because CPP needs to be expanded
6993 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6994 do
6995 ac_preproc_ok=false
6996 for ac_c_preproc_warn_flag in '' yes
6997 do
6998 # Use a header file that comes with gcc, so configuring glibc
6999 # with a fresh cross-compiler works.
7000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7001 # <limits.h> exists even on freestanding compilers.
7002 # On the NeXT, cc -E runs the code through the compiler's parser,
7003 # not just through cpp. "Syntax error" is here to catch this case.
7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7006 #ifdef __STDC__
7007 # include <limits.h>
7008 #else
7009 # include <assert.h>
7010 #endif
7011 Syntax error
7012 _ACEOF
7013 if ac_fn_c_try_cpp "$LINENO"; then :
7014
7015 else
7016 # Broken: fails on valid input.
7017 continue
7018 fi
7019 rm -f conftest.err conftest.i conftest.$ac_ext
7020
7021 # OK, works on sane cases. Now check whether nonexistent headers
7022 # can be detected and how.
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7025 #include <ac_nonexistent.h>
7026 _ACEOF
7027 if ac_fn_c_try_cpp "$LINENO"; then :
7028 # Broken: success on invalid input.
7029 continue
7030 else
7031 # Passes both tests.
7032 ac_preproc_ok=:
7033 break
7034 fi
7035 rm -f conftest.err conftest.i conftest.$ac_ext
7036
7037 done
7038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7039 rm -f conftest.i conftest.err conftest.$ac_ext
7040 if $ac_preproc_ok; then :
7041 break
7042 fi
7043
7044 done
7045 ac_cv_prog_CPP=$CPP
7046
7047 fi
7048 CPP=$ac_cv_prog_CPP
7049 else
7050 ac_cv_prog_CPP=$CPP
7051 fi
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7053 $as_echo "$CPP" >&6; }
7054 ac_preproc_ok=false
7055 for ac_c_preproc_warn_flag in '' yes
7056 do
7057 # Use a header file that comes with gcc, so configuring glibc
7058 # with a fresh cross-compiler works.
7059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7060 # <limits.h> exists even on freestanding compilers.
7061 # On the NeXT, cc -E runs the code through the compiler's parser,
7062 # not just through cpp. "Syntax error" is here to catch this case.
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7065 #ifdef __STDC__
7066 # include <limits.h>
7067 #else
7068 # include <assert.h>
7069 #endif
7070 Syntax error
7071 _ACEOF
7072 if ac_fn_c_try_cpp "$LINENO"; then :
7073
7074 else
7075 # Broken: fails on valid input.
7076 continue
7077 fi
7078 rm -f conftest.err conftest.i conftest.$ac_ext
7079
7080 # OK, works on sane cases. Now check whether nonexistent headers
7081 # can be detected and how.
7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083 /* end confdefs.h. */
7084 #include <ac_nonexistent.h>
7085 _ACEOF
7086 if ac_fn_c_try_cpp "$LINENO"; then :
7087 # Broken: success on invalid input.
7088 continue
7089 else
7090 # Passes both tests.
7091 ac_preproc_ok=:
7092 break
7093 fi
7094 rm -f conftest.err conftest.i conftest.$ac_ext
7095
7096 done
7097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7098 rm -f conftest.i conftest.err conftest.$ac_ext
7099 if $ac_preproc_ok; then :
7100
7101 else
7102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7104 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7105 See \`config.log' for more details" "$LINENO" 5; }
7106 fi
7107
7108 ac_ext=c
7109 ac_cpp='$CPP $CPPFLAGS'
7110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7113
7114
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7116 $as_echo_n "checking for ANSI C header files... " >&6; }
7117 if ${ac_cv_header_stdc+:} false; then :
7118 $as_echo_n "(cached) " >&6
7119 else
7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121 /* end confdefs.h. */
7122 #include <stdlib.h>
7123 #include <stdarg.h>
7124 #include <string.h>
7125 #include <float.h>
7126
7127 int
7128 main ()
7129 {
7130
7131 ;
7132 return 0;
7133 }
7134 _ACEOF
7135 if ac_fn_c_try_compile "$LINENO"; then :
7136 ac_cv_header_stdc=yes
7137 else
7138 ac_cv_header_stdc=no
7139 fi
7140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7141
7142 if test $ac_cv_header_stdc = yes; then
7143 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7146 #include <string.h>
7147
7148 _ACEOF
7149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7150 $EGREP "memchr" >/dev/null 2>&1; then :
7151
7152 else
7153 ac_cv_header_stdc=no
7154 fi
7155 rm -f conftest*
7156
7157 fi
7158
7159 if test $ac_cv_header_stdc = yes; then
7160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7163 #include <stdlib.h>
7164
7165 _ACEOF
7166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7167 $EGREP "free" >/dev/null 2>&1; then :
7168
7169 else
7170 ac_cv_header_stdc=no
7171 fi
7172 rm -f conftest*
7173
7174 fi
7175
7176 if test $ac_cv_header_stdc = yes; then
7177 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7178 if test "$cross_compiling" = yes; then :
7179 :
7180 else
7181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7182 /* end confdefs.h. */
7183 #include <ctype.h>
7184 #include <stdlib.h>
7185 #if ((' ' & 0x0FF) == 0x020)
7186 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7187 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7188 #else
7189 # define ISLOWER(c) \
7190 (('a' <= (c) && (c) <= 'i') \
7191 || ('j' <= (c) && (c) <= 'r') \
7192 || ('s' <= (c) && (c) <= 'z'))
7193 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7194 #endif
7195
7196 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7197 int
7198 main ()
7199 {
7200 int i;
7201 for (i = 0; i < 256; i++)
7202 if (XOR (islower (i), ISLOWER (i))
7203 || toupper (i) != TOUPPER (i))
7204 return 2;
7205 return 0;
7206 }
7207 _ACEOF
7208 if ac_fn_c_try_run "$LINENO"; then :
7209
7210 else
7211 ac_cv_header_stdc=no
7212 fi
7213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7214 conftest.$ac_objext conftest.beam conftest.$ac_ext
7215 fi
7216
7217 fi
7218 fi
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7220 $as_echo "$ac_cv_header_stdc" >&6; }
7221 if test $ac_cv_header_stdc = yes; then
7222
7223 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7224
7225 fi
7226
7227 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7228 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7229 inttypes.h stdint.h unistd.h
7230 do :
7231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7232 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7233 "
7234 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7235 cat >>confdefs.h <<_ACEOF
7236 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7237 _ACEOF
7238
7239 fi
7240
7241 done
7242
7243
7244 for ac_header in dlfcn.h
7245 do :
7246 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7247 "
7248 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7249 cat >>confdefs.h <<_ACEOF
7250 #define HAVE_DLFCN_H 1
7251 _ACEOF
7252
7253 fi
7254
7255 done
7256
7257
7258
7259
7260
7261 # Set options
7262
7263
7264
7265 enable_dlopen=no
7266
7267
7268 enable_win32_dll=no
7269
7270
7271 # Check whether --enable-shared was given.
7272 if test "${enable_shared+set}" = set; then :
7273 enableval=$enable_shared; p=${PACKAGE-default}
7274 case $enableval in
7275 yes) enable_shared=yes ;;
7276 no) enable_shared=no ;;
7277 *)
7278 enable_shared=no
7279 # Look at the argument we got. We use all the common list separators.
7280 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7281 for pkg in $enableval; do
7282 IFS="$lt_save_ifs"
7283 if test "X$pkg" = "X$p"; then
7284 enable_shared=yes
7285 fi
7286 done
7287 IFS="$lt_save_ifs"
7288 ;;
7289 esac
7290 else
7291 enable_shared=yes
7292 fi
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302 # Check whether --enable-static was given.
7303 if test "${enable_static+set}" = set; then :
7304 enableval=$enable_static; p=${PACKAGE-default}
7305 case $enableval in
7306 yes) enable_static=yes ;;
7307 no) enable_static=no ;;
7308 *)
7309 enable_static=no
7310 # Look at the argument we got. We use all the common list separators.
7311 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7312 for pkg in $enableval; do
7313 IFS="$lt_save_ifs"
7314 if test "X$pkg" = "X$p"; then
7315 enable_static=yes
7316 fi
7317 done
7318 IFS="$lt_save_ifs"
7319 ;;
7320 esac
7321 else
7322 enable_static=yes
7323 fi
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334 # Check whether --with-pic was given.
7335 if test "${with_pic+set}" = set; then :
7336 withval=$with_pic; pic_mode="$withval"
7337 else
7338 pic_mode=default
7339 fi
7340
7341
7342 test -z "$pic_mode" && pic_mode=default
7343
7344
7345
7346
7347
7348
7349
7350 # Check whether --enable-fast-install was given.
7351 if test "${enable_fast_install+set}" = set; then :
7352 enableval=$enable_fast_install; p=${PACKAGE-default}
7353 case $enableval in
7354 yes) enable_fast_install=yes ;;
7355 no) enable_fast_install=no ;;
7356 *)
7357 enable_fast_install=no
7358 # Look at the argument we got. We use all the common list separators.
7359 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7360 for pkg in $enableval; do
7361 IFS="$lt_save_ifs"
7362 if test "X$pkg" = "X$p"; then
7363 enable_fast_install=yes
7364 fi
7365 done
7366 IFS="$lt_save_ifs"
7367 ;;
7368 esac
7369 else
7370 enable_fast_install=yes
7371 fi
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383 # This can be used to rebuild libtool when needed
7384 LIBTOOL_DEPS="$ltmain"
7385
7386 # Always use our own libtool.
7387 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414 test -z "$LN_S" && LN_S="ln -s"
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429 if test -n "${ZSH_VERSION+set}" ; then
7430 setopt NO_GLOB_SUBST
7431 fi
7432
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7434 $as_echo_n "checking for objdir... " >&6; }
7435 if ${lt_cv_objdir+:} false; then :
7436 $as_echo_n "(cached) " >&6
7437 else
7438 rm -f .libs 2>/dev/null
7439 mkdir .libs 2>/dev/null
7440 if test -d .libs; then
7441 lt_cv_objdir=.libs
7442 else
7443 # MS-DOS does not allow filenames that begin with a dot.
7444 lt_cv_objdir=_libs
7445 fi
7446 rmdir .libs 2>/dev/null
7447 fi
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7449 $as_echo "$lt_cv_objdir" >&6; }
7450 objdir=$lt_cv_objdir
7451
7452
7453
7454
7455
7456 cat >>confdefs.h <<_ACEOF
7457 #define LT_OBJDIR "$lt_cv_objdir/"
7458 _ACEOF
7459
7460
7461
7462
7463 case $host_os in
7464 aix3*)
7465 # AIX sometimes has problems with the GCC collect2 program. For some
7466 # reason, if we set the COLLECT_NAMES environment variable, the problems
7467 # vanish in a puff of smoke.
7468 if test "X${COLLECT_NAMES+set}" != Xset; then
7469 COLLECT_NAMES=
7470 export COLLECT_NAMES
7471 fi
7472 ;;
7473 esac
7474
7475 # Global variables:
7476 ofile=libtool
7477 can_build_shared=yes
7478
7479 # All known linkers require a `.a' archive for static linking (except MSVC,
7480 # which needs '.lib').
7481 libext=a
7482
7483 with_gnu_ld="$lt_cv_prog_gnu_ld"
7484
7485 old_CC="$CC"
7486 old_CFLAGS="$CFLAGS"
7487
7488 # Set sane defaults for various variables
7489 test -z "$CC" && CC=cc
7490 test -z "$LTCC" && LTCC=$CC
7491 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7492 test -z "$LD" && LD=ld
7493 test -z "$ac_objext" && ac_objext=o
7494
7495 for cc_temp in $compiler""; do
7496 case $cc_temp in
7497 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7498 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7499 \-*) ;;
7500 *) break;;
7501 esac
7502 done
7503 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7504
7505
7506 # Only perform the check for file, if the check method requires it
7507 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7508 case $deplibs_check_method in
7509 file_magic*)
7510 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7512 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7513 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 case $MAGIC_CMD in
7517 [\\/*] | ?:[\\/]*)
7518 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7519 ;;
7520 *)
7521 lt_save_MAGIC_CMD="$MAGIC_CMD"
7522 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7523 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7524 for ac_dir in $ac_dummy; do
7525 IFS="$lt_save_ifs"
7526 test -z "$ac_dir" && ac_dir=.
7527 if test -f $ac_dir/${ac_tool_prefix}file; then
7528 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7529 if test -n "$file_magic_test_file"; then
7530 case $deplibs_check_method in
7531 "file_magic "*)
7532 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7533 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7534 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7535 $EGREP "$file_magic_regex" > /dev/null; then
7536 :
7537 else
7538 cat <<_LT_EOF 1>&2
7539
7540 *** Warning: the command libtool uses to detect shared libraries,
7541 *** $file_magic_cmd, produces output that libtool cannot recognize.
7542 *** The result is that libtool may fail to recognize shared libraries
7543 *** as such. This will affect the creation of libtool libraries that
7544 *** depend on shared libraries, but programs linked with such libtool
7545 *** libraries will work regardless of this problem. Nevertheless, you
7546 *** may want to report the problem to your system manager and/or to
7547 *** bug-libtool@gnu.org
7548
7549 _LT_EOF
7550 fi ;;
7551 esac
7552 fi
7553 break
7554 fi
7555 done
7556 IFS="$lt_save_ifs"
7557 MAGIC_CMD="$lt_save_MAGIC_CMD"
7558 ;;
7559 esac
7560 fi
7561
7562 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7563 if test -n "$MAGIC_CMD"; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7565 $as_echo "$MAGIC_CMD" >&6; }
7566 else
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 $as_echo "no" >&6; }
7569 fi
7570
7571
7572
7573
7574
7575 if test -z "$lt_cv_path_MAGIC_CMD"; then
7576 if test -n "$ac_tool_prefix"; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7578 $as_echo_n "checking for file... " >&6; }
7579 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7580 $as_echo_n "(cached) " >&6
7581 else
7582 case $MAGIC_CMD in
7583 [\\/*] | ?:[\\/]*)
7584 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7585 ;;
7586 *)
7587 lt_save_MAGIC_CMD="$MAGIC_CMD"
7588 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7589 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7590 for ac_dir in $ac_dummy; do
7591 IFS="$lt_save_ifs"
7592 test -z "$ac_dir" && ac_dir=.
7593 if test -f $ac_dir/file; then
7594 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7595 if test -n "$file_magic_test_file"; then
7596 case $deplibs_check_method in
7597 "file_magic "*)
7598 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7599 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7600 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7601 $EGREP "$file_magic_regex" > /dev/null; then
7602 :
7603 else
7604 cat <<_LT_EOF 1>&2
7605
7606 *** Warning: the command libtool uses to detect shared libraries,
7607 *** $file_magic_cmd, produces output that libtool cannot recognize.
7608 *** The result is that libtool may fail to recognize shared libraries
7609 *** as such. This will affect the creation of libtool libraries that
7610 *** depend on shared libraries, but programs linked with such libtool
7611 *** libraries will work regardless of this problem. Nevertheless, you
7612 *** may want to report the problem to your system manager and/or to
7613 *** bug-libtool@gnu.org
7614
7615 _LT_EOF
7616 fi ;;
7617 esac
7618 fi
7619 break
7620 fi
7621 done
7622 IFS="$lt_save_ifs"
7623 MAGIC_CMD="$lt_save_MAGIC_CMD"
7624 ;;
7625 esac
7626 fi
7627
7628 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7629 if test -n "$MAGIC_CMD"; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7631 $as_echo "$MAGIC_CMD" >&6; }
7632 else
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7635 fi
7636
7637
7638 else
7639 MAGIC_CMD=:
7640 fi
7641 fi
7642
7643 fi
7644 ;;
7645 esac
7646
7647 # Use C for the default configuration in the libtool script
7648
7649 lt_save_CC="$CC"
7650 ac_ext=c
7651 ac_cpp='$CPP $CPPFLAGS'
7652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7655
7656
7657 # Source file extension for C test sources.
7658 ac_ext=c
7659
7660 # Object file extension for compiled C test sources.
7661 objext=o
7662 objext=$objext
7663
7664 # Code to be used in simple compile tests
7665 lt_simple_compile_test_code="int some_variable = 0;"
7666
7667 # Code to be used in simple link tests
7668 lt_simple_link_test_code='int main(){return(0);}'
7669
7670
7671
7672
7673
7674
7675
7676 # If no C compiler was specified, use CC.
7677 LTCC=${LTCC-"$CC"}
7678
7679 # If no C compiler flags were specified, use CFLAGS.
7680 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7681
7682 # Allow CC to be a program name with arguments.
7683 compiler=$CC
7684
7685 # Save the default compiler, since it gets overwritten when the other
7686 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7687 compiler_DEFAULT=$CC
7688
7689 # save warnings/boilerplate of simple test code
7690 ac_outfile=conftest.$ac_objext
7691 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7692 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7693 _lt_compiler_boilerplate=`cat conftest.err`
7694 $RM conftest*
7695
7696 ac_outfile=conftest.$ac_objext
7697 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7698 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7699 _lt_linker_boilerplate=`cat conftest.err`
7700 $RM -r conftest*
7701
7702
7703 if test -n "$compiler"; then
7704
7705 lt_prog_compiler_no_builtin_flag=
7706
7707 if test "$GCC" = yes; then
7708 case $cc_basename in
7709 nvcc*)
7710 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7711 *)
7712 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7713 esac
7714
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7716 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7717 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7718 $as_echo_n "(cached) " >&6
7719 else
7720 lt_cv_prog_compiler_rtti_exceptions=no
7721 ac_outfile=conftest.$ac_objext
7722 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7723 lt_compiler_flag="-fno-rtti -fno-exceptions"
7724 # Insert the option either (1) after the last *FLAGS variable, or
7725 # (2) before a word containing "conftest.", or (3) at the end.
7726 # Note that $ac_compile itself does not contain backslashes and begins
7727 # with a dollar sign (not a hyphen), so the echo should work correctly.
7728 # The option is referenced via a variable to avoid confusing sed.
7729 lt_compile=`echo "$ac_compile" | $SED \
7730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7732 -e 's:$: $lt_compiler_flag:'`
7733 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7734 (eval "$lt_compile" 2>conftest.err)
7735 ac_status=$?
7736 cat conftest.err >&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 if (exit $ac_status) && test -s "$ac_outfile"; then
7739 # The compiler can only warn and ignore the option if not recognized
7740 # So say no if there are warnings other than the usual output.
7741 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7742 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7743 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7744 lt_cv_prog_compiler_rtti_exceptions=yes
7745 fi
7746 fi
7747 $RM conftest*
7748
7749 fi
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7751 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7752
7753 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7754 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7755 else
7756 :
7757 fi
7758
7759 fi
7760
7761
7762
7763
7764
7765
7766 lt_prog_compiler_wl=
7767 lt_prog_compiler_pic=
7768 lt_prog_compiler_static=
7769
7770
7771 if test "$GCC" = yes; then
7772 lt_prog_compiler_wl='-Wl,'
7773 lt_prog_compiler_static='-static'
7774
7775 case $host_os in
7776 aix*)
7777 # All AIX code is PIC.
7778 if test "$host_cpu" = ia64; then
7779 # AIX 5 now supports IA64 processor
7780 lt_prog_compiler_static='-Bstatic'
7781 fi
7782 ;;
7783
7784 amigaos*)
7785 case $host_cpu in
7786 powerpc)
7787 # see comment about AmigaOS4 .so support
7788 lt_prog_compiler_pic='-fPIC'
7789 ;;
7790 m68k)
7791 # FIXME: we need at least 68020 code to build shared libraries, but
7792 # adding the `-m68020' flag to GCC prevents building anything better,
7793 # like `-m68040'.
7794 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7795 ;;
7796 esac
7797 ;;
7798
7799 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7800 # PIC is the default for these OSes.
7801 ;;
7802
7803 mingw* | cygwin* | pw32* | os2* | cegcc*)
7804 # This hack is so that the source file can tell whether it is being
7805 # built for inclusion in a dll (and should export symbols for example).
7806 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7807 # (--disable-auto-import) libraries
7808 lt_prog_compiler_pic='-DDLL_EXPORT'
7809 ;;
7810
7811 darwin* | rhapsody*)
7812 # PIC is the default on this platform
7813 # Common symbols not allowed in MH_DYLIB files
7814 lt_prog_compiler_pic='-fno-common'
7815 ;;
7816
7817 haiku*)
7818 # PIC is the default for Haiku.
7819 # The "-static" flag exists, but is broken.
7820 lt_prog_compiler_static=
7821 ;;
7822
7823 hpux*)
7824 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7825 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7826 # sets the default TLS model and affects inlining.
7827 case $host_cpu in
7828 hppa*64*)
7829 # +Z the default
7830 ;;
7831 *)
7832 lt_prog_compiler_pic='-fPIC'
7833 ;;
7834 esac
7835 ;;
7836
7837 interix[3-9]*)
7838 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7839 # Instead, we relocate shared libraries at runtime.
7840 ;;
7841
7842 msdosdjgpp*)
7843 # Just because we use GCC doesn't mean we suddenly get shared libraries
7844 # on systems that don't support them.
7845 lt_prog_compiler_can_build_shared=no
7846 enable_shared=no
7847 ;;
7848
7849 *nto* | *qnx*)
7850 # QNX uses GNU C++, but need to define -shared option too, otherwise
7851 # it will coredump.
7852 lt_prog_compiler_pic='-fPIC -shared'
7853 ;;
7854
7855 sysv4*MP*)
7856 if test -d /usr/nec; then
7857 lt_prog_compiler_pic=-Kconform_pic
7858 fi
7859 ;;
7860
7861 *)
7862 lt_prog_compiler_pic='-fPIC'
7863 ;;
7864 esac
7865
7866 case $cc_basename in
7867 nvcc*) # Cuda Compiler Driver 2.2
7868 lt_prog_compiler_wl='-Xlinker '
7869 lt_prog_compiler_pic='-Xcompiler -fPIC'
7870 ;;
7871 esac
7872 else
7873 # PORTME Check for flag to pass linker flags through the system compiler.
7874 case $host_os in
7875 aix*)
7876 lt_prog_compiler_wl='-Wl,'
7877 if test "$host_cpu" = ia64; then
7878 # AIX 5 now supports IA64 processor
7879 lt_prog_compiler_static='-Bstatic'
7880 else
7881 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7882 fi
7883 ;;
7884
7885 mingw* | cygwin* | pw32* | os2* | cegcc*)
7886 # This hack is so that the source file can tell whether it is being
7887 # built for inclusion in a dll (and should export symbols for example).
7888 lt_prog_compiler_pic='-DDLL_EXPORT'
7889 ;;
7890
7891 hpux9* | hpux10* | hpux11*)
7892 lt_prog_compiler_wl='-Wl,'
7893 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7894 # not for PA HP-UX.
7895 case $host_cpu in
7896 hppa*64*|ia64*)
7897 # +Z the default
7898 ;;
7899 *)
7900 lt_prog_compiler_pic='+Z'
7901 ;;
7902 esac
7903 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7904 lt_prog_compiler_static='${wl}-a ${wl}archive'
7905 ;;
7906
7907 irix5* | irix6* | nonstopux*)
7908 lt_prog_compiler_wl='-Wl,'
7909 # PIC (with -KPIC) is the default.
7910 lt_prog_compiler_static='-non_shared'
7911 ;;
7912
7913 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7914 case $cc_basename in
7915 # old Intel for x86_64 which still supported -KPIC.
7916 ecc*)
7917 lt_prog_compiler_wl='-Wl,'
7918 lt_prog_compiler_pic='-KPIC'
7919 lt_prog_compiler_static='-static'
7920 ;;
7921 # icc used to be incompatible with GCC.
7922 # ICC 10 doesn't accept -KPIC any more.
7923 icc* | ifort*)
7924 lt_prog_compiler_wl='-Wl,'
7925 lt_prog_compiler_pic='-fPIC'
7926 lt_prog_compiler_static='-static'
7927 ;;
7928 # Lahey Fortran 8.1.
7929 lf95*)
7930 lt_prog_compiler_wl='-Wl,'
7931 lt_prog_compiler_pic='--shared'
7932 lt_prog_compiler_static='--static'
7933 ;;
7934 nagfor*)
7935 # NAG Fortran compiler
7936 lt_prog_compiler_wl='-Wl,-Wl,,'
7937 lt_prog_compiler_pic='-PIC'
7938 lt_prog_compiler_static='-Bstatic'
7939 ;;
7940 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7941 # Portland Group compilers (*not* the Pentium gcc compiler,
7942 # which looks to be a dead project)
7943 lt_prog_compiler_wl='-Wl,'
7944 lt_prog_compiler_pic='-fpic'
7945 lt_prog_compiler_static='-Bstatic'
7946 ;;
7947 ccc*)
7948 lt_prog_compiler_wl='-Wl,'
7949 # All Alpha code is PIC.
7950 lt_prog_compiler_static='-non_shared'
7951 ;;
7952 xl* | bgxl* | bgf* | mpixl*)
7953 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7954 lt_prog_compiler_wl='-Wl,'
7955 lt_prog_compiler_pic='-qpic'
7956 lt_prog_compiler_static='-qstaticlink'
7957 ;;
7958 *)
7959 case `$CC -V 2>&1 | sed 5q` in
7960 *Sun\ F* | *Sun*Fortran*)
7961 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7962 lt_prog_compiler_pic='-KPIC'
7963 lt_prog_compiler_static='-Bstatic'
7964 lt_prog_compiler_wl=''
7965 ;;
7966 *Sun\ C*)
7967 # Sun C 5.9
7968 lt_prog_compiler_pic='-KPIC'
7969 lt_prog_compiler_static='-Bstatic'
7970 lt_prog_compiler_wl='-Wl,'
7971 ;;
7972 esac
7973 ;;
7974 esac
7975 ;;
7976
7977 newsos6)
7978 lt_prog_compiler_pic='-KPIC'
7979 lt_prog_compiler_static='-Bstatic'
7980 ;;
7981
7982 *nto* | *qnx*)
7983 # QNX uses GNU C++, but need to define -shared option too, otherwise
7984 # it will coredump.
7985 lt_prog_compiler_pic='-fPIC -shared'
7986 ;;
7987
7988 osf3* | osf4* | osf5*)
7989 lt_prog_compiler_wl='-Wl,'
7990 # All OSF/1 code is PIC.
7991 lt_prog_compiler_static='-non_shared'
7992 ;;
7993
7994 rdos*)
7995 lt_prog_compiler_static='-non_shared'
7996 ;;
7997
7998 solaris*)
7999 lt_prog_compiler_pic='-KPIC'
8000 lt_prog_compiler_static='-Bstatic'
8001 case $cc_basename in
8002 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8003 lt_prog_compiler_wl='-Qoption ld ';;
8004 *)
8005 lt_prog_compiler_wl='-Wl,';;
8006 esac
8007 ;;
8008
8009 sunos4*)
8010 lt_prog_compiler_wl='-Qoption ld '
8011 lt_prog_compiler_pic='-PIC'
8012 lt_prog_compiler_static='-Bstatic'
8013 ;;
8014
8015 sysv4 | sysv4.2uw2* | sysv4.3*)
8016 lt_prog_compiler_wl='-Wl,'
8017 lt_prog_compiler_pic='-KPIC'
8018 lt_prog_compiler_static='-Bstatic'
8019 ;;
8020
8021 sysv4*MP*)
8022 if test -d /usr/nec ;then
8023 lt_prog_compiler_pic='-Kconform_pic'
8024 lt_prog_compiler_static='-Bstatic'
8025 fi
8026 ;;
8027
8028 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8029 lt_prog_compiler_wl='-Wl,'
8030 lt_prog_compiler_pic='-KPIC'
8031 lt_prog_compiler_static='-Bstatic'
8032 ;;
8033
8034 unicos*)
8035 lt_prog_compiler_wl='-Wl,'
8036 lt_prog_compiler_can_build_shared=no
8037 ;;
8038
8039 uts4*)
8040 lt_prog_compiler_pic='-pic'
8041 lt_prog_compiler_static='-Bstatic'
8042 ;;
8043
8044 *)
8045 lt_prog_compiler_can_build_shared=no
8046 ;;
8047 esac
8048 fi
8049
8050 case $host_os in
8051 # For platforms which do not support PIC, -DPIC is meaningless:
8052 *djgpp*)
8053 lt_prog_compiler_pic=
8054 ;;
8055 *)
8056 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8057 ;;
8058 esac
8059
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8061 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8062 if ${lt_cv_prog_compiler_pic+:} false; then :
8063 $as_echo_n "(cached) " >&6
8064 else
8065 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8066 fi
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8068 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8069 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8070
8071 #
8072 # Check to make sure the PIC flag actually works.
8073 #
8074 if test -n "$lt_prog_compiler_pic"; then
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8076 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8077 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8080 lt_cv_prog_compiler_pic_works=no
8081 ac_outfile=conftest.$ac_objext
8082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8083 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8084 # Insert the option either (1) after the last *FLAGS variable, or
8085 # (2) before a word containing "conftest.", or (3) at the end.
8086 # Note that $ac_compile itself does not contain backslashes and begins
8087 # with a dollar sign (not a hyphen), so the echo should work correctly.
8088 # The option is referenced via a variable to avoid confusing sed.
8089 lt_compile=`echo "$ac_compile" | $SED \
8090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8092 -e 's:$: $lt_compiler_flag:'`
8093 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8094 (eval "$lt_compile" 2>conftest.err)
8095 ac_status=$?
8096 cat conftest.err >&5
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 if (exit $ac_status) && test -s "$ac_outfile"; then
8099 # The compiler can only warn and ignore the option if not recognized
8100 # So say no if there are warnings other than the usual output.
8101 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8102 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8103 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8104 lt_cv_prog_compiler_pic_works=yes
8105 fi
8106 fi
8107 $RM conftest*
8108
8109 fi
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8111 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8112
8113 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8114 case $lt_prog_compiler_pic in
8115 "" | " "*) ;;
8116 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8117 esac
8118 else
8119 lt_prog_compiler_pic=
8120 lt_prog_compiler_can_build_shared=no
8121 fi
8122
8123 fi
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135 #
8136 # Check to make sure the static flag actually works.
8137 #
8138 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8140 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8141 if ${lt_cv_prog_compiler_static_works+:} false; then :
8142 $as_echo_n "(cached) " >&6
8143 else
8144 lt_cv_prog_compiler_static_works=no
8145 save_LDFLAGS="$LDFLAGS"
8146 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8147 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8148 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8149 # The linker can only warn and ignore the option if not recognized
8150 # So say no if there are warnings
8151 if test -s conftest.err; then
8152 # Append any errors to the config.log.
8153 cat conftest.err 1>&5
8154 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8156 if diff conftest.exp conftest.er2 >/dev/null; then
8157 lt_cv_prog_compiler_static_works=yes
8158 fi
8159 else
8160 lt_cv_prog_compiler_static_works=yes
8161 fi
8162 fi
8163 $RM -r conftest*
8164 LDFLAGS="$save_LDFLAGS"
8165
8166 fi
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8168 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8169
8170 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8171 :
8172 else
8173 lt_prog_compiler_static=
8174 fi
8175
8176
8177
8178
8179
8180
8181
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8183 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8184 if ${lt_cv_prog_compiler_c_o+:} false; then :
8185 $as_echo_n "(cached) " >&6
8186 else
8187 lt_cv_prog_compiler_c_o=no
8188 $RM -r conftest 2>/dev/null
8189 mkdir conftest
8190 cd conftest
8191 mkdir out
8192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8193
8194 lt_compiler_flag="-o out/conftest2.$ac_objext"
8195 # Insert the option either (1) after the last *FLAGS variable, or
8196 # (2) before a word containing "conftest.", or (3) at the end.
8197 # Note that $ac_compile itself does not contain backslashes and begins
8198 # with a dollar sign (not a hyphen), so the echo should work correctly.
8199 lt_compile=`echo "$ac_compile" | $SED \
8200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8202 -e 's:$: $lt_compiler_flag:'`
8203 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8204 (eval "$lt_compile" 2>out/conftest.err)
8205 ac_status=$?
8206 cat out/conftest.err >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8209 then
8210 # The compiler can only warn and ignore the option if not recognized
8211 # So say no if there are warnings
8212 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8213 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8214 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8215 lt_cv_prog_compiler_c_o=yes
8216 fi
8217 fi
8218 chmod u+w . 2>&5
8219 $RM conftest*
8220 # SGI C++ compiler will create directory out/ii_files/ for
8221 # template instantiation
8222 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8223 $RM out/* && rmdir out
8224 cd ..
8225 $RM -r conftest
8226 $RM conftest*
8227
8228 fi
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8230 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8231
8232
8233
8234
8235
8236
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8238 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8239 if ${lt_cv_prog_compiler_c_o+:} false; then :
8240 $as_echo_n "(cached) " >&6
8241 else
8242 lt_cv_prog_compiler_c_o=no
8243 $RM -r conftest 2>/dev/null
8244 mkdir conftest
8245 cd conftest
8246 mkdir out
8247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8248
8249 lt_compiler_flag="-o out/conftest2.$ac_objext"
8250 # Insert the option either (1) after the last *FLAGS variable, or
8251 # (2) before a word containing "conftest.", or (3) at the end.
8252 # Note that $ac_compile itself does not contain backslashes and begins
8253 # with a dollar sign (not a hyphen), so the echo should work correctly.
8254 lt_compile=`echo "$ac_compile" | $SED \
8255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8257 -e 's:$: $lt_compiler_flag:'`
8258 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8259 (eval "$lt_compile" 2>out/conftest.err)
8260 ac_status=$?
8261 cat out/conftest.err >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8264 then
8265 # The compiler can only warn and ignore the option if not recognized
8266 # So say no if there are warnings
8267 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8268 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8269 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8270 lt_cv_prog_compiler_c_o=yes
8271 fi
8272 fi
8273 chmod u+w . 2>&5
8274 $RM conftest*
8275 # SGI C++ compiler will create directory out/ii_files/ for
8276 # template instantiation
8277 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8278 $RM out/* && rmdir out
8279 cd ..
8280 $RM -r conftest
8281 $RM conftest*
8282
8283 fi
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8285 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8286
8287
8288
8289
8290 hard_links="nottested"
8291 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8292 # do not overwrite the value of need_locks provided by the user
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8294 $as_echo_n "checking if we can lock with hard links... " >&6; }
8295 hard_links=yes
8296 $RM conftest*
8297 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8298 touch conftest.a
8299 ln conftest.a conftest.b 2>&5 || hard_links=no
8300 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8302 $as_echo "$hard_links" >&6; }
8303 if test "$hard_links" = no; then
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8305 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8306 need_locks=warn
8307 fi
8308 else
8309 need_locks=no
8310 fi
8311
8312
8313
8314
8315
8316
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8318 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8319
8320 runpath_var=
8321 allow_undefined_flag=
8322 always_export_symbols=no
8323 archive_cmds=
8324 archive_expsym_cmds=
8325 compiler_needs_object=no
8326 enable_shared_with_static_runtimes=no
8327 export_dynamic_flag_spec=
8328 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8329 hardcode_automatic=no
8330 hardcode_direct=no
8331 hardcode_direct_absolute=no
8332 hardcode_libdir_flag_spec=
8333 hardcode_libdir_flag_spec_ld=
8334 hardcode_libdir_separator=
8335 hardcode_minus_L=no
8336 hardcode_shlibpath_var=unsupported
8337 inherit_rpath=no
8338 link_all_deplibs=unknown
8339 module_cmds=
8340 module_expsym_cmds=
8341 old_archive_from_new_cmds=
8342 old_archive_from_expsyms_cmds=
8343 thread_safe_flag_spec=
8344 whole_archive_flag_spec=
8345 # include_expsyms should be a list of space-separated symbols to be *always*
8346 # included in the symbol list
8347 include_expsyms=
8348 # exclude_expsyms can be an extended regexp of symbols to exclude
8349 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8350 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8351 # as well as any symbol that contains `d'.
8352 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8353 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8354 # platforms (ab)use it in PIC code, but their linkers get confused if
8355 # the symbol is explicitly referenced. Since portable code cannot
8356 # rely on this symbol name, it's probably fine to never include it in
8357 # preloaded symbol tables.
8358 # Exclude shared library initialization/finalization symbols.
8359 extract_expsyms_cmds=
8360
8361 case $host_os in
8362 cygwin* | mingw* | pw32* | cegcc*)
8363 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8364 # When not using gcc, we currently assume that we are using
8365 # Microsoft Visual C++.
8366 if test "$GCC" != yes; then
8367 with_gnu_ld=no
8368 fi
8369 ;;
8370 interix*)
8371 # we just hope/assume this is gcc and not c89 (= MSVC++)
8372 with_gnu_ld=yes
8373 ;;
8374 openbsd*)
8375 with_gnu_ld=no
8376 ;;
8377 esac
8378
8379 ld_shlibs=yes
8380
8381 # On some targets, GNU ld is compatible enough with the native linker
8382 # that we're better off using the native interface for both.
8383 lt_use_gnu_ld_interface=no
8384 if test "$with_gnu_ld" = yes; then
8385 case $host_os in
8386 aix*)
8387 # The AIX port of GNU ld has always aspired to compatibility
8388 # with the native linker. However, as the warning in the GNU ld
8389 # block says, versions before 2.19.5* couldn't really create working
8390 # shared libraries, regardless of the interface used.
8391 case `$LD -v 2>&1` in
8392 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8393 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8394 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8395 *)
8396 lt_use_gnu_ld_interface=yes
8397 ;;
8398 esac
8399 ;;
8400 *)
8401 lt_use_gnu_ld_interface=yes
8402 ;;
8403 esac
8404 fi
8405
8406 if test "$lt_use_gnu_ld_interface" = yes; then
8407 # If archive_cmds runs LD, not CC, wlarc should be empty
8408 wlarc='${wl}'
8409
8410 # Set some defaults for GNU ld with shared library support. These
8411 # are reset later if shared libraries are not supported. Putting them
8412 # here allows them to be overridden if necessary.
8413 runpath_var=LD_RUN_PATH
8414 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8415 export_dynamic_flag_spec='${wl}--export-dynamic'
8416 # ancient GNU ld didn't support --whole-archive et. al.
8417 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8418 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8419 else
8420 whole_archive_flag_spec=
8421 fi
8422 supports_anon_versioning=no
8423 case `$LD -v 2>&1` in
8424 *GNU\ gold*) supports_anon_versioning=yes ;;
8425 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8426 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8427 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8428 *\ 2.11.*) ;; # other 2.11 versions
8429 *) supports_anon_versioning=yes ;;
8430 esac
8431
8432 # See if GNU ld supports shared libraries.
8433 case $host_os in
8434 aix[3-9]*)
8435 # On AIX/PPC, the GNU linker is very broken
8436 if test "$host_cpu" != ia64; then
8437 ld_shlibs=no
8438 cat <<_LT_EOF 1>&2
8439
8440 *** Warning: the GNU linker, at least up to release 2.19, is reported
8441 *** to be unable to reliably create shared libraries on AIX.
8442 *** Therefore, libtool is disabling shared libraries support. If you
8443 *** really care for shared libraries, you may want to install binutils
8444 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8445 *** You will then need to restart the configuration process.
8446
8447 _LT_EOF
8448 fi
8449 ;;
8450
8451 amigaos*)
8452 case $host_cpu in
8453 powerpc)
8454 # see comment about AmigaOS4 .so support
8455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8456 archive_expsym_cmds=''
8457 ;;
8458 m68k)
8459 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)'
8460 hardcode_libdir_flag_spec='-L$libdir'
8461 hardcode_minus_L=yes
8462 ;;
8463 esac
8464 ;;
8465
8466 beos*)
8467 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8468 allow_undefined_flag=unsupported
8469 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8470 # support --undefined. This deserves some investigation. FIXME
8471 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8472 else
8473 ld_shlibs=no
8474 fi
8475 ;;
8476
8477 cygwin* | mingw* | pw32* | cegcc*)
8478 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8479 # as there is no search path for DLLs.
8480 hardcode_libdir_flag_spec='-L$libdir'
8481 export_dynamic_flag_spec='${wl}--export-all-symbols'
8482 allow_undefined_flag=unsupported
8483 always_export_symbols=no
8484 enable_shared_with_static_runtimes=yes
8485 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8486 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8487
8488 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8489 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8490 # If the export-symbols file already is a .def file (1st line
8491 # is EXPORTS), use it as is; otherwise, prepend...
8492 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8493 cp $export_symbols $output_objdir/$soname.def;
8494 else
8495 echo EXPORTS > $output_objdir/$soname.def;
8496 cat $export_symbols >> $output_objdir/$soname.def;
8497 fi~
8498 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8499 else
8500 ld_shlibs=no
8501 fi
8502 ;;
8503
8504 haiku*)
8505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8506 link_all_deplibs=yes
8507 ;;
8508
8509 interix[3-9]*)
8510 hardcode_direct=no
8511 hardcode_shlibpath_var=no
8512 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8513 export_dynamic_flag_spec='${wl}-E'
8514 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8515 # Instead, shared libraries are loaded at an image base (0x10000000 by
8516 # default) and relocated if they conflict, which is a slow very memory
8517 # consuming and fragmenting process. To avoid this, we pick a random,
8518 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8519 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8520 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8521 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'
8522 ;;
8523
8524 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8525 tmp_diet=no
8526 if test "$host_os" = linux-dietlibc; then
8527 case $cc_basename in
8528 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8529 esac
8530 fi
8531 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8532 && test "$tmp_diet" = no
8533 then
8534 tmp_addflag=' $pic_flag'
8535 tmp_sharedflag='-shared'
8536 case $cc_basename,$host_cpu in
8537 pgcc*) # Portland Group C compiler
8538 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'
8539 tmp_addflag=' $pic_flag'
8540 ;;
8541 pgf77* | pgf90* | pgf95* | pgfortran*)
8542 # Portland Group f77 and f90 compilers
8543 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'
8544 tmp_addflag=' $pic_flag -Mnomain' ;;
8545 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8546 tmp_addflag=' -i_dynamic' ;;
8547 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8548 tmp_addflag=' -i_dynamic -nofor_main' ;;
8549 ifc* | ifort*) # Intel Fortran compiler
8550 tmp_addflag=' -nofor_main' ;;
8551 lf95*) # Lahey Fortran 8.1
8552 whole_archive_flag_spec=
8553 tmp_sharedflag='--shared' ;;
8554 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8555 tmp_sharedflag='-qmkshrobj'
8556 tmp_addflag= ;;
8557 nvcc*) # Cuda Compiler Driver 2.2
8558 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'
8559 compiler_needs_object=yes
8560 ;;
8561 esac
8562 case `$CC -V 2>&1 | sed 5q` in
8563 *Sun\ C*) # Sun C 5.9
8564 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'
8565 compiler_needs_object=yes
8566 tmp_sharedflag='-G' ;;
8567 *Sun\ F*) # Sun Fortran 8.3
8568 tmp_sharedflag='-G' ;;
8569 esac
8570 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8571
8572 if test "x$supports_anon_versioning" = xyes; then
8573 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8574 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8575 echo "local: *; };" >> $output_objdir/$libname.ver~
8576 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8577 fi
8578
8579 case $cc_basename in
8580 xlf* | bgf* | bgxlf* | mpixlf*)
8581 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8582 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8583 hardcode_libdir_flag_spec=
8584 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8585 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8586 if test "x$supports_anon_versioning" = xyes; then
8587 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8588 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8589 echo "local: *; };" >> $output_objdir/$libname.ver~
8590 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8591 fi
8592 ;;
8593 esac
8594 else
8595 ld_shlibs=no
8596 fi
8597 ;;
8598
8599 netbsd*)
8600 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8601 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8602 wlarc=
8603 else
8604 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8605 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8606 fi
8607 ;;
8608
8609 solaris*)
8610 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8611 ld_shlibs=no
8612 cat <<_LT_EOF 1>&2
8613
8614 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8615 *** create shared libraries on Solaris systems. Therefore, libtool
8616 *** is disabling shared libraries support. We urge you to upgrade GNU
8617 *** binutils to release 2.9.1 or newer. Another option is to modify
8618 *** your PATH or compiler configuration so that the native linker is
8619 *** used, and then restart.
8620
8621 _LT_EOF
8622 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8623 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8624 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8625 else
8626 ld_shlibs=no
8627 fi
8628 ;;
8629
8630 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8631 case `$LD -v 2>&1` in
8632 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8633 ld_shlibs=no
8634 cat <<_LT_EOF 1>&2
8635
8636 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8637 *** reliably create shared libraries on SCO systems. Therefore, libtool
8638 *** is disabling shared libraries support. We urge you to upgrade GNU
8639 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8640 *** your PATH or compiler configuration so that the native linker is
8641 *** used, and then restart.
8642
8643 _LT_EOF
8644 ;;
8645 *)
8646 # For security reasons, it is highly recommended that you always
8647 # use absolute paths for naming shared libraries, and exclude the
8648 # DT_RUNPATH tag from executables and libraries. But doing so
8649 # requires that you compile everything twice, which is a pain.
8650 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8651 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8653 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8654 else
8655 ld_shlibs=no
8656 fi
8657 ;;
8658 esac
8659 ;;
8660
8661 sunos4*)
8662 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8663 wlarc=
8664 hardcode_direct=yes
8665 hardcode_shlibpath_var=no
8666 ;;
8667
8668 *)
8669 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8670 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8671 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8672 else
8673 ld_shlibs=no
8674 fi
8675 ;;
8676 esac
8677
8678 if test "$ld_shlibs" = no; then
8679 runpath_var=
8680 hardcode_libdir_flag_spec=
8681 export_dynamic_flag_spec=
8682 whole_archive_flag_spec=
8683 fi
8684 else
8685 # PORTME fill in a description of your system's linker (not GNU ld)
8686 case $host_os in
8687 aix3*)
8688 allow_undefined_flag=unsupported
8689 always_export_symbols=yes
8690 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'
8691 # Note: this linker hardcodes the directories in LIBPATH if there
8692 # are no directories specified by -L.
8693 hardcode_minus_L=yes
8694 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8695 # Neither direct hardcoding nor static linking is supported with a
8696 # broken collect2.
8697 hardcode_direct=unsupported
8698 fi
8699 ;;
8700
8701 aix[4-9]*)
8702 if test "$host_cpu" = ia64; then
8703 # On IA64, the linker does run time linking by default, so we don't
8704 # have to do anything special.
8705 aix_use_runtimelinking=no
8706 exp_sym_flag='-Bexport'
8707 no_entry_flag=""
8708 else
8709 # If we're using GNU nm, then we don't want the "-C" option.
8710 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8711 # Also, AIX nm treats weak defined symbols like other global
8712 # defined symbols, whereas GNU nm marks them as "W".
8713 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8714 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'
8715 else
8716 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'
8717 fi
8718 aix_use_runtimelinking=no
8719
8720 # Test if we are trying to use run time linking or normal
8721 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8722 # need to do runtime linking.
8723 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8724 for ld_flag in $LDFLAGS; do
8725 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8726 aix_use_runtimelinking=yes
8727 break
8728 fi
8729 done
8730 ;;
8731 esac
8732
8733 exp_sym_flag='-bexport'
8734 no_entry_flag='-bnoentry'
8735 fi
8736
8737 # When large executables or shared objects are built, AIX ld can
8738 # have problems creating the table of contents. If linking a library
8739 # or program results in "error TOC overflow" add -mminimal-toc to
8740 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8741 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8742
8743 archive_cmds=''
8744 hardcode_direct=yes
8745 hardcode_direct_absolute=yes
8746 hardcode_libdir_separator=':'
8747 link_all_deplibs=yes
8748 file_list_spec='${wl}-f,'
8749
8750 if test "$GCC" = yes; then
8751 case $host_os in aix4.[012]|aix4.[012].*)
8752 # We only want to do this on AIX 4.2 and lower, the check
8753 # below for broken collect2 doesn't work under 4.3+
8754 collect2name=`${CC} -print-prog-name=collect2`
8755 if test -f "$collect2name" &&
8756 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8757 then
8758 # We have reworked collect2
8759 :
8760 else
8761 # We have old collect2
8762 hardcode_direct=unsupported
8763 # It fails to find uninstalled libraries when the uninstalled
8764 # path is not listed in the libpath. Setting hardcode_minus_L
8765 # to unsupported forces relinking
8766 hardcode_minus_L=yes
8767 hardcode_libdir_flag_spec='-L$libdir'
8768 hardcode_libdir_separator=
8769 fi
8770 ;;
8771 esac
8772 shared_flag='-shared'
8773 if test "$aix_use_runtimelinking" = yes; then
8774 shared_flag="$shared_flag "'${wl}-G'
8775 fi
8776 else
8777 # not using gcc
8778 if test "$host_cpu" = ia64; then
8779 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8780 # chokes on -Wl,-G. The following line is correct:
8781 shared_flag='-G'
8782 else
8783 if test "$aix_use_runtimelinking" = yes; then
8784 shared_flag='${wl}-G'
8785 else
8786 shared_flag='${wl}-bM:SRE'
8787 fi
8788 fi
8789 fi
8790
8791 export_dynamic_flag_spec='${wl}-bexpall'
8792 # It seems that -bexpall does not export symbols beginning with
8793 # underscore (_), so it is better to generate a list of symbols to export.
8794 always_export_symbols=yes
8795 if test "$aix_use_runtimelinking" = yes; then
8796 # Warning - without using the other runtime loading flags (-brtl),
8797 # -berok will link without error, but may produce a broken library.
8798 allow_undefined_flag='-berok'
8799 # Determine the default libpath from the value encoded in an
8800 # empty executable.
8801 if test "${lt_cv_aix_libpath+set}" = set; then
8802 aix_libpath=$lt_cv_aix_libpath
8803 else
8804 if ${lt_cv_aix_libpath_+:} false; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8808 /* end confdefs.h. */
8809
8810 int
8811 main ()
8812 {
8813
8814 ;
8815 return 0;
8816 }
8817 _ACEOF
8818 if ac_fn_c_try_link "$LINENO"; then :
8819
8820 lt_aix_libpath_sed='
8821 /Import File Strings/,/^$/ {
8822 /^0/ {
8823 s/^0 *\([^ ]*\) *$/\1/
8824 p
8825 }
8826 }'
8827 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8828 # Check for a 64-bit object if we didn't find anything.
8829 if test -z "$lt_cv_aix_libpath_"; then
8830 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8831 fi
8832 fi
8833 rm -f core conftest.err conftest.$ac_objext \
8834 conftest$ac_exeext conftest.$ac_ext
8835 if test -z "$lt_cv_aix_libpath_"; then
8836 lt_cv_aix_libpath_="/usr/lib:/lib"
8837 fi
8838
8839 fi
8840
8841 aix_libpath=$lt_cv_aix_libpath_
8842 fi
8843
8844 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8845 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"
8846 else
8847 if test "$host_cpu" = ia64; then
8848 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8849 allow_undefined_flag="-z nodefs"
8850 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"
8851 else
8852 # Determine the default libpath from the value encoded in an
8853 # empty executable.
8854 if test "${lt_cv_aix_libpath+set}" = set; then
8855 aix_libpath=$lt_cv_aix_libpath
8856 else
8857 if ${lt_cv_aix_libpath_+:} false; then :
8858 $as_echo_n "(cached) " >&6
8859 else
8860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h. */
8862
8863 int
8864 main ()
8865 {
8866
8867 ;
8868 return 0;
8869 }
8870 _ACEOF
8871 if ac_fn_c_try_link "$LINENO"; then :
8872
8873 lt_aix_libpath_sed='
8874 /Import File Strings/,/^$/ {
8875 /^0/ {
8876 s/^0 *\([^ ]*\) *$/\1/
8877 p
8878 }
8879 }'
8880 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8881 # Check for a 64-bit object if we didn't find anything.
8882 if test -z "$lt_cv_aix_libpath_"; then
8883 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8884 fi
8885 fi
8886 rm -f core conftest.err conftest.$ac_objext \
8887 conftest$ac_exeext conftest.$ac_ext
8888 if test -z "$lt_cv_aix_libpath_"; then
8889 lt_cv_aix_libpath_="/usr/lib:/lib"
8890 fi
8891
8892 fi
8893
8894 aix_libpath=$lt_cv_aix_libpath_
8895 fi
8896
8897 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8898 # Warning - without using the other run time loading flags,
8899 # -berok will link without error, but may produce a broken library.
8900 no_undefined_flag=' ${wl}-bernotok'
8901 allow_undefined_flag=' ${wl}-berok'
8902 if test "$with_gnu_ld" = yes; then
8903 # We only use this code for GNU lds that support --whole-archive.
8904 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8905 else
8906 # Exported symbols can be pulled into shared objects from archives
8907 whole_archive_flag_spec='$convenience'
8908 fi
8909 archive_cmds_need_lc=yes
8910 # This is similar to how AIX traditionally builds its shared libraries.
8911 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'
8912 fi
8913 fi
8914 ;;
8915
8916 amigaos*)
8917 case $host_cpu in
8918 powerpc)
8919 # see comment about AmigaOS4 .so support
8920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8921 archive_expsym_cmds=''
8922 ;;
8923 m68k)
8924 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)'
8925 hardcode_libdir_flag_spec='-L$libdir'
8926 hardcode_minus_L=yes
8927 ;;
8928 esac
8929 ;;
8930
8931 bsdi[45]*)
8932 export_dynamic_flag_spec=-rdynamic
8933 ;;
8934
8935 cygwin* | mingw* | pw32* | cegcc*)
8936 # When not using gcc, we currently assume that we are using
8937 # Microsoft Visual C++.
8938 # hardcode_libdir_flag_spec is actually meaningless, as there is
8939 # no search path for DLLs.
8940 case $cc_basename in
8941 cl*)
8942 # Native MSVC
8943 hardcode_libdir_flag_spec=' '
8944 allow_undefined_flag=unsupported
8945 always_export_symbols=yes
8946 file_list_spec='@'
8947 # Tell ltmain to make .lib files, not .a files.
8948 libext=lib
8949 # Tell ltmain to make .dll files, not .so files.
8950 shrext_cmds=".dll"
8951 # FIXME: Setting linknames here is a bad hack.
8952 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8953 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8954 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8955 else
8956 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8957 fi~
8958 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8959 linknames='
8960 # The linker will not automatically build a static lib if we build a DLL.
8961 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8962 enable_shared_with_static_runtimes=yes
8963 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8964 # Don't use ranlib
8965 old_postinstall_cmds='chmod 644 $oldlib'
8966 postlink_cmds='lt_outputfile="@OUTPUT@"~
8967 lt_tool_outputfile="@TOOL_OUTPUT@"~
8968 case $lt_outputfile in
8969 *.exe|*.EXE) ;;
8970 *)
8971 lt_outputfile="$lt_outputfile.exe"
8972 lt_tool_outputfile="$lt_tool_outputfile.exe"
8973 ;;
8974 esac~
8975 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8976 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8977 $RM "$lt_outputfile.manifest";
8978 fi'
8979 ;;
8980 *)
8981 # Assume MSVC wrapper
8982 hardcode_libdir_flag_spec=' '
8983 allow_undefined_flag=unsupported
8984 # Tell ltmain to make .lib files, not .a files.
8985 libext=lib
8986 # Tell ltmain to make .dll files, not .so files.
8987 shrext_cmds=".dll"
8988 # FIXME: Setting linknames here is a bad hack.
8989 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8990 # The linker will automatically build a .lib file if we build a DLL.
8991 old_archive_from_new_cmds='true'
8992 # FIXME: Should let the user specify the lib program.
8993 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8994 enable_shared_with_static_runtimes=yes
8995 ;;
8996 esac
8997 ;;
8998
8999 darwin* | rhapsody*)
9000
9001
9002 archive_cmds_need_lc=no
9003 hardcode_direct=no
9004 hardcode_automatic=yes
9005 hardcode_shlibpath_var=unsupported
9006 if test "$lt_cv_ld_force_load" = "yes"; then
9007 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\"`'
9008 else
9009 whole_archive_flag_spec=''
9010 fi
9011 link_all_deplibs=yes
9012 allow_undefined_flag="$_lt_dar_allow_undefined"
9013 case $cc_basename in
9014 ifort*) _lt_dar_can_shared=yes ;;
9015 *) _lt_dar_can_shared=$GCC ;;
9016 esac
9017 if test "$_lt_dar_can_shared" = "yes"; then
9018 output_verbose_link_cmd=func_echo_all
9019 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9020 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9021 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}"
9022 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}"
9023
9024 else
9025 ld_shlibs=no
9026 fi
9027
9028 ;;
9029
9030 dgux*)
9031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9032 hardcode_libdir_flag_spec='-L$libdir'
9033 hardcode_shlibpath_var=no
9034 ;;
9035
9036 freebsd1*)
9037 ld_shlibs=no
9038 ;;
9039
9040 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9041 # support. Future versions do this automatically, but an explicit c++rt0.o
9042 # does not break anything, and helps significantly (at the cost of a little
9043 # extra space).
9044 freebsd2.2*)
9045 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9046 hardcode_libdir_flag_spec='-R$libdir'
9047 hardcode_direct=yes
9048 hardcode_shlibpath_var=no
9049 ;;
9050
9051 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9052 freebsd2*)
9053 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9054 hardcode_direct=yes
9055 hardcode_minus_L=yes
9056 hardcode_shlibpath_var=no
9057 ;;
9058
9059 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9060 freebsd* | dragonfly*)
9061 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9062 hardcode_libdir_flag_spec='-R$libdir'
9063 hardcode_direct=yes
9064 hardcode_shlibpath_var=no
9065 ;;
9066
9067 hpux9*)
9068 if test "$GCC" = yes; then
9069 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9070 else
9071 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'
9072 fi
9073 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9074 hardcode_libdir_separator=:
9075 hardcode_direct=yes
9076
9077 # hardcode_minus_L: Not really in the search PATH,
9078 # but as the default location of the library.
9079 hardcode_minus_L=yes
9080 export_dynamic_flag_spec='${wl}-E'
9081 ;;
9082
9083 hpux10*)
9084 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9085 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9086 else
9087 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9088 fi
9089 if test "$with_gnu_ld" = no; then
9090 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9091 hardcode_libdir_flag_spec_ld='+b $libdir'
9092 hardcode_libdir_separator=:
9093 hardcode_direct=yes
9094 hardcode_direct_absolute=yes
9095 export_dynamic_flag_spec='${wl}-E'
9096 # hardcode_minus_L: Not really in the search PATH,
9097 # but as the default location of the library.
9098 hardcode_minus_L=yes
9099 fi
9100 ;;
9101
9102 hpux11*)
9103 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9104 case $host_cpu in
9105 hppa*64*)
9106 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9107 ;;
9108 ia64*)
9109 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9110 ;;
9111 *)
9112 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9113 ;;
9114 esac
9115 else
9116 case $host_cpu in
9117 hppa*64*)
9118 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9119 ;;
9120 ia64*)
9121 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9122 ;;
9123 *)
9124
9125 # Older versions of the 11.00 compiler do not understand -b yet
9126 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9128 $as_echo_n "checking if $CC understands -b... " >&6; }
9129 if ${lt_cv_prog_compiler__b+:} false; then :
9130 $as_echo_n "(cached) " >&6
9131 else
9132 lt_cv_prog_compiler__b=no
9133 save_LDFLAGS="$LDFLAGS"
9134 LDFLAGS="$LDFLAGS -b"
9135 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9136 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9137 # The linker can only warn and ignore the option if not recognized
9138 # So say no if there are warnings
9139 if test -s conftest.err; then
9140 # Append any errors to the config.log.
9141 cat conftest.err 1>&5
9142 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9143 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9144 if diff conftest.exp conftest.er2 >/dev/null; then
9145 lt_cv_prog_compiler__b=yes
9146 fi
9147 else
9148 lt_cv_prog_compiler__b=yes
9149 fi
9150 fi
9151 $RM -r conftest*
9152 LDFLAGS="$save_LDFLAGS"
9153
9154 fi
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9156 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9157
9158 if test x"$lt_cv_prog_compiler__b" = xyes; then
9159 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9160 else
9161 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9162 fi
9163
9164 ;;
9165 esac
9166 fi
9167 if test "$with_gnu_ld" = no; then
9168 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9169 hardcode_libdir_separator=:
9170
9171 case $host_cpu in
9172 hppa*64*|ia64*)
9173 hardcode_direct=no
9174 hardcode_shlibpath_var=no
9175 ;;
9176 *)
9177 hardcode_direct=yes
9178 hardcode_direct_absolute=yes
9179 export_dynamic_flag_spec='${wl}-E'
9180
9181 # hardcode_minus_L: Not really in the search PATH,
9182 # but as the default location of the library.
9183 hardcode_minus_L=yes
9184 ;;
9185 esac
9186 fi
9187 ;;
9188
9189 irix5* | irix6* | nonstopux*)
9190 if test "$GCC" = yes; then
9191 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9192 # Try to use the -exported_symbol ld option, if it does not
9193 # work, assume that -exports_file does not work either and
9194 # implicitly export all symbols.
9195 # This should be the same for all languages, so no per-tag cache variable.
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9197 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9198 if ${lt_cv_irix_exported_symbol+:} false; then :
9199 $as_echo_n "(cached) " >&6
9200 else
9201 save_LDFLAGS="$LDFLAGS"
9202 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204 /* end confdefs.h. */
9205 int foo (void) { return 0; }
9206 _ACEOF
9207 if ac_fn_c_try_link "$LINENO"; then :
9208 lt_cv_irix_exported_symbol=yes
9209 else
9210 lt_cv_irix_exported_symbol=no
9211 fi
9212 rm -f core conftest.err conftest.$ac_objext \
9213 conftest$ac_exeext conftest.$ac_ext
9214 LDFLAGS="$save_LDFLAGS"
9215 fi
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9217 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9218 if test "$lt_cv_irix_exported_symbol" = yes; then
9219 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9220 fi
9221 else
9222 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'
9223 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'
9224 fi
9225 archive_cmds_need_lc='no'
9226 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9227 hardcode_libdir_separator=:
9228 inherit_rpath=yes
9229 link_all_deplibs=yes
9230 ;;
9231
9232 netbsd*)
9233 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9234 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9235 else
9236 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9237 fi
9238 hardcode_libdir_flag_spec='-R$libdir'
9239 hardcode_direct=yes
9240 hardcode_shlibpath_var=no
9241 ;;
9242
9243 newsos6)
9244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9245 hardcode_direct=yes
9246 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9247 hardcode_libdir_separator=:
9248 hardcode_shlibpath_var=no
9249 ;;
9250
9251 *nto* | *qnx*)
9252 ;;
9253
9254 openbsd*)
9255 if test -f /usr/libexec/ld.so; then
9256 hardcode_direct=yes
9257 hardcode_shlibpath_var=no
9258 hardcode_direct_absolute=yes
9259 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9260 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9261 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9262 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9263 export_dynamic_flag_spec='${wl}-E'
9264 else
9265 case $host_os in
9266 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9267 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9268 hardcode_libdir_flag_spec='-R$libdir'
9269 ;;
9270 *)
9271 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9272 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9273 ;;
9274 esac
9275 fi
9276 else
9277 ld_shlibs=no
9278 fi
9279 ;;
9280
9281 os2*)
9282 hardcode_libdir_flag_spec='-L$libdir'
9283 hardcode_minus_L=yes
9284 allow_undefined_flag=unsupported
9285 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'
9286 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9287 ;;
9288
9289 osf3*)
9290 if test "$GCC" = yes; then
9291 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9292 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'
9293 else
9294 allow_undefined_flag=' -expect_unresolved \*'
9295 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'
9296 fi
9297 archive_cmds_need_lc='no'
9298 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9299 hardcode_libdir_separator=:
9300 ;;
9301
9302 osf4* | osf5*) # as osf3* with the addition of -msym flag
9303 if test "$GCC" = yes; then
9304 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9305 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9307 else
9308 allow_undefined_flag=' -expect_unresolved \*'
9309 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'
9310 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~
9311 $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'
9312
9313 # Both c and cxx compiler support -rpath directly
9314 hardcode_libdir_flag_spec='-rpath $libdir'
9315 fi
9316 archive_cmds_need_lc='no'
9317 hardcode_libdir_separator=:
9318 ;;
9319
9320 solaris*)
9321 no_undefined_flag=' -z defs'
9322 if test "$GCC" = yes; then
9323 wlarc='${wl}'
9324 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9325 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9326 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9327 else
9328 case `$CC -V 2>&1` in
9329 *"Compilers 5.0"*)
9330 wlarc=''
9331 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9332 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9333 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9334 ;;
9335 *)
9336 wlarc='${wl}'
9337 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9338 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9339 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9340 ;;
9341 esac
9342 fi
9343 hardcode_libdir_flag_spec='-R$libdir'
9344 hardcode_shlibpath_var=no
9345 case $host_os in
9346 solaris2.[0-5] | solaris2.[0-5].*) ;;
9347 *)
9348 # The compiler driver will combine and reorder linker options,
9349 # but understands `-z linker_flag'. GCC discards it without `$wl',
9350 # but is careful enough not to reorder.
9351 # Supported since Solaris 2.6 (maybe 2.5.1?)
9352 if test "$GCC" = yes; then
9353 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9354 else
9355 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9356 fi
9357 ;;
9358 esac
9359 link_all_deplibs=yes
9360 ;;
9361
9362 sunos4*)
9363 if test "x$host_vendor" = xsequent; then
9364 # Use $CC to link under sequent, because it throws in some extra .o
9365 # files that make .init and .fini sections work.
9366 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9367 else
9368 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9369 fi
9370 hardcode_libdir_flag_spec='-L$libdir'
9371 hardcode_direct=yes
9372 hardcode_minus_L=yes
9373 hardcode_shlibpath_var=no
9374 ;;
9375
9376 sysv4)
9377 case $host_vendor in
9378 sni)
9379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9380 hardcode_direct=yes # is this really true???
9381 ;;
9382 siemens)
9383 ## LD is ld it makes a PLAMLIB
9384 ## CC just makes a GrossModule.
9385 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9386 reload_cmds='$CC -r -o $output$reload_objs'
9387 hardcode_direct=no
9388 ;;
9389 motorola)
9390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9391 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9392 ;;
9393 esac
9394 runpath_var='LD_RUN_PATH'
9395 hardcode_shlibpath_var=no
9396 ;;
9397
9398 sysv4.3*)
9399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9400 hardcode_shlibpath_var=no
9401 export_dynamic_flag_spec='-Bexport'
9402 ;;
9403
9404 sysv4*MP*)
9405 if test -d /usr/nec; then
9406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9407 hardcode_shlibpath_var=no
9408 runpath_var=LD_RUN_PATH
9409 hardcode_runpath_var=yes
9410 ld_shlibs=yes
9411 fi
9412 ;;
9413
9414 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9415 no_undefined_flag='${wl}-z,text'
9416 archive_cmds_need_lc=no
9417 hardcode_shlibpath_var=no
9418 runpath_var='LD_RUN_PATH'
9419
9420 if test "$GCC" = yes; then
9421 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9422 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9423 else
9424 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9425 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9426 fi
9427 ;;
9428
9429 sysv5* | sco3.2v5* | sco5v6*)
9430 # Note: We can NOT use -z defs as we might desire, because we do not
9431 # link with -lc, and that would cause any symbols used from libc to
9432 # always be unresolved, which means just about no library would
9433 # ever link correctly. If we're not using GNU ld we use -z text
9434 # though, which does catch some bad symbols but isn't as heavy-handed
9435 # as -z defs.
9436 no_undefined_flag='${wl}-z,text'
9437 allow_undefined_flag='${wl}-z,nodefs'
9438 archive_cmds_need_lc=no
9439 hardcode_shlibpath_var=no
9440 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9441 hardcode_libdir_separator=':'
9442 link_all_deplibs=yes
9443 export_dynamic_flag_spec='${wl}-Bexport'
9444 runpath_var='LD_RUN_PATH'
9445
9446 if test "$GCC" = yes; then
9447 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9448 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9449 else
9450 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9451 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9452 fi
9453 ;;
9454
9455 uts4*)
9456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9457 hardcode_libdir_flag_spec='-L$libdir'
9458 hardcode_shlibpath_var=no
9459 ;;
9460
9461 *)
9462 ld_shlibs=no
9463 ;;
9464 esac
9465
9466 if test x$host_vendor = xsni; then
9467 case $host in
9468 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9469 export_dynamic_flag_spec='${wl}-Blargedynsym'
9470 ;;
9471 esac
9472 fi
9473 fi
9474
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9476 $as_echo "$ld_shlibs" >&6; }
9477 test "$ld_shlibs" = no && can_build_shared=no
9478
9479 with_gnu_ld=$with_gnu_ld
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495 #
9496 # Do we need to explicitly link libc?
9497 #
9498 case "x$archive_cmds_need_lc" in
9499 x|xyes)
9500 # Assume -lc should be added
9501 archive_cmds_need_lc=yes
9502
9503 if test "$enable_shared" = yes && test "$GCC" = yes; then
9504 case $archive_cmds in
9505 *'~'*)
9506 # FIXME: we may have to deal with multi-command sequences.
9507 ;;
9508 '$CC '*)
9509 # Test whether the compiler implicitly links with -lc since on some
9510 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9511 # to ld, don't add -lc before -lgcc.
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9513 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9514 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9515 $as_echo_n "(cached) " >&6
9516 else
9517 $RM conftest*
9518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9519
9520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9521 (eval $ac_compile) 2>&5
9522 ac_status=$?
9523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9524 test $ac_status = 0; } 2>conftest.err; then
9525 soname=conftest
9526 lib=conftest
9527 libobjs=conftest.$ac_objext
9528 deplibs=
9529 wl=$lt_prog_compiler_wl
9530 pic_flag=$lt_prog_compiler_pic
9531 compiler_flags=-v
9532 linker_flags=-v
9533 verstring=
9534 output_objdir=.
9535 libname=conftest
9536 lt_save_allow_undefined_flag=$allow_undefined_flag
9537 allow_undefined_flag=
9538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9539 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9540 ac_status=$?
9541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9542 test $ac_status = 0; }
9543 then
9544 lt_cv_archive_cmds_need_lc=no
9545 else
9546 lt_cv_archive_cmds_need_lc=yes
9547 fi
9548 allow_undefined_flag=$lt_save_allow_undefined_flag
9549 else
9550 cat conftest.err 1>&5
9551 fi
9552 $RM conftest*
9553
9554 fi
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9556 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9557 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9558 ;;
9559 esac
9560 fi
9561 ;;
9562 esac
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9721 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9722
9723 if test "$GCC" = yes; then
9724 case $host_os in
9725 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9726 *) lt_awk_arg="/^libraries:/" ;;
9727 esac
9728 case $host_os in
9729 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9730 *) lt_sed_strip_eq="s,=/,/,g" ;;
9731 esac
9732 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9733 case $lt_search_path_spec in
9734 *\;*)
9735 # if the path contains ";" then we assume it to be the separator
9736 # otherwise default to the standard path separator (i.e. ":") - it is
9737 # assumed that no part of a normal pathname contains ";" but that should
9738 # okay in the real world where ";" in dirpaths is itself problematic.
9739 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9740 ;;
9741 *)
9742 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9743 ;;
9744 esac
9745 # Ok, now we have the path, separated by spaces, we can step through it
9746 # and add multilib dir if necessary.
9747 lt_tmp_lt_search_path_spec=
9748 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9749 for lt_sys_path in $lt_search_path_spec; do
9750 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9751 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9752 else
9753 test -d "$lt_sys_path" && \
9754 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9755 fi
9756 done
9757 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9758 BEGIN {RS=" "; FS="/|\n";} {
9759 lt_foo="";
9760 lt_count=0;
9761 for (lt_i = NF; lt_i > 0; lt_i--) {
9762 if ($lt_i != "" && $lt_i != ".") {
9763 if ($lt_i == "..") {
9764 lt_count++;
9765 } else {
9766 if (lt_count == 0) {
9767 lt_foo="/" $lt_i lt_foo;
9768 } else {
9769 lt_count--;
9770 }
9771 }
9772 }
9773 }
9774 if (lt_foo != "") { lt_freq[lt_foo]++; }
9775 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9776 }'`
9777 # AWK program above erroneously prepends '/' to C:/dos/paths
9778 # for these hosts.
9779 case $host_os in
9780 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9781 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9782 esac
9783 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9784 else
9785 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9786 fi
9787 library_names_spec=
9788 libname_spec='lib$name'
9789 soname_spec=
9790 shrext_cmds=".so"
9791 postinstall_cmds=
9792 postuninstall_cmds=
9793 finish_cmds=
9794 finish_eval=
9795 shlibpath_var=
9796 shlibpath_overrides_runpath=unknown
9797 version_type=none
9798 dynamic_linker="$host_os ld.so"
9799 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9800 need_lib_prefix=unknown
9801 hardcode_into_libs=no
9802
9803 # when you set need_version to no, make sure it does not cause -set_version
9804 # flags to be left without arguments
9805 need_version=unknown
9806
9807 case $host_os in
9808 aix3*)
9809 version_type=linux
9810 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9811 shlibpath_var=LIBPATH
9812
9813 # AIX 3 has no versioning support, so we append a major version to the name.
9814 soname_spec='${libname}${release}${shared_ext}$major'
9815 ;;
9816
9817 aix[4-9]*)
9818 version_type=linux
9819 need_lib_prefix=no
9820 need_version=no
9821 hardcode_into_libs=yes
9822 if test "$host_cpu" = ia64; then
9823 # AIX 5 supports IA64
9824 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9825 shlibpath_var=LD_LIBRARY_PATH
9826 else
9827 # With GCC up to 2.95.x, collect2 would create an import file
9828 # for dependence libraries. The import file would start with
9829 # the line `#! .'. This would cause the generated library to
9830 # depend on `.', always an invalid library. This was fixed in
9831 # development snapshots of GCC prior to 3.0.
9832 case $host_os in
9833 aix4 | aix4.[01] | aix4.[01].*)
9834 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9835 echo ' yes '
9836 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9837 :
9838 else
9839 can_build_shared=no
9840 fi
9841 ;;
9842 esac
9843 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9844 # soname into executable. Probably we can add versioning support to
9845 # collect2, so additional links can be useful in future.
9846 if test "$aix_use_runtimelinking" = yes; then
9847 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9848 # instead of lib<name>.a to let people know that these are not
9849 # typical AIX shared libraries.
9850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9851 else
9852 # We preserve .a as extension for shared libraries through AIX4.2
9853 # and later when we are not doing run time linking.
9854 library_names_spec='${libname}${release}.a $libname.a'
9855 soname_spec='${libname}${release}${shared_ext}$major'
9856 fi
9857 shlibpath_var=LIBPATH
9858 fi
9859 ;;
9860
9861 amigaos*)
9862 case $host_cpu in
9863 powerpc)
9864 # Since July 2007 AmigaOS4 officially supports .so libraries.
9865 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9867 ;;
9868 m68k)
9869 library_names_spec='$libname.ixlibrary $libname.a'
9870 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9871 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'
9872 ;;
9873 esac
9874 ;;
9875
9876 beos*)
9877 library_names_spec='${libname}${shared_ext}'
9878 dynamic_linker="$host_os ld.so"
9879 shlibpath_var=LIBRARY_PATH
9880 ;;
9881
9882 bsdi[45]*)
9883 version_type=linux
9884 need_version=no
9885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9886 soname_spec='${libname}${release}${shared_ext}$major'
9887 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9888 shlibpath_var=LD_LIBRARY_PATH
9889 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9890 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9891 # the default ld.so.conf also contains /usr/contrib/lib and
9892 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9893 # libtool to hard-code these into programs
9894 ;;
9895
9896 cygwin* | mingw* | pw32* | cegcc*)
9897 version_type=windows
9898 shrext_cmds=".dll"
9899 need_version=no
9900 need_lib_prefix=no
9901
9902 case $GCC,$cc_basename in
9903 yes,*)
9904 # gcc
9905 library_names_spec='$libname.dll.a'
9906 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9907 postinstall_cmds='base_file=`basename \${file}`~
9908 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9909 dldir=$destdir/`dirname \$dlpath`~
9910 test -d \$dldir || mkdir -p \$dldir~
9911 $install_prog $dir/$dlname \$dldir/$dlname~
9912 chmod a+x \$dldir/$dlname~
9913 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9914 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9915 fi'
9916 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9917 dlpath=$dir/\$dldll~
9918 $RM \$dlpath'
9919 shlibpath_overrides_runpath=yes
9920
9921 case $host_os in
9922 cygwin*)
9923 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9924 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9925
9926 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9927 ;;
9928 mingw* | cegcc*)
9929 # MinGW DLLs use traditional 'lib' prefix
9930 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9931 ;;
9932 pw32*)
9933 # pw32 DLLs use 'pw' prefix rather than 'lib'
9934 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9935 ;;
9936 esac
9937 dynamic_linker='Win32 ld.exe'
9938 ;;
9939
9940 *,cl*)
9941 # Native MSVC
9942 libname_spec='$name'
9943 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9944 library_names_spec='${libname}.dll.lib'
9945
9946 case $build_os in
9947 mingw*)
9948 sys_lib_search_path_spec=
9949 lt_save_ifs=$IFS
9950 IFS=';'
9951 for lt_path in $LIB
9952 do
9953 IFS=$lt_save_ifs
9954 # Let DOS variable expansion print the short 8.3 style file name.
9955 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9956 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9957 done
9958 IFS=$lt_save_ifs
9959 # Convert to MSYS style.
9960 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9961 ;;
9962 cygwin*)
9963 # Convert to unix form, then to dos form, then back to unix form
9964 # but this time dos style (no spaces!) so that the unix form looks
9965 # like /cygdrive/c/PROGRA~1:/cygdr...
9966 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9967 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9968 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9969 ;;
9970 *)
9971 sys_lib_search_path_spec="$LIB"
9972 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9973 # It is most probably a Windows format PATH.
9974 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9975 else
9976 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9977 fi
9978 # FIXME: find the short name or the path components, as spaces are
9979 # common. (e.g. "Program Files" -> "PROGRA~1")
9980 ;;
9981 esac
9982
9983 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9984 postinstall_cmds='base_file=`basename \${file}`~
9985 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9986 dldir=$destdir/`dirname \$dlpath`~
9987 test -d \$dldir || mkdir -p \$dldir~
9988 $install_prog $dir/$dlname \$dldir/$dlname'
9989 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9990 dlpath=$dir/\$dldll~
9991 $RM \$dlpath'
9992 shlibpath_overrides_runpath=yes
9993 dynamic_linker='Win32 link.exe'
9994 ;;
9995
9996 *)
9997 # Assume MSVC wrapper
9998 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9999 dynamic_linker='Win32 ld.exe'
10000 ;;
10001 esac
10002 # FIXME: first we should search . and the directory the executable is in
10003 shlibpath_var=PATH
10004 ;;
10005
10006 darwin* | rhapsody*)
10007 dynamic_linker="$host_os dyld"
10008 version_type=darwin
10009 need_lib_prefix=no
10010 need_version=no
10011 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10012 soname_spec='${libname}${release}${major}$shared_ext'
10013 shlibpath_overrides_runpath=yes
10014 shlibpath_var=DYLD_LIBRARY_PATH
10015 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10016
10017 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10018 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10019 ;;
10020
10021 dgux*)
10022 version_type=linux
10023 need_lib_prefix=no
10024 need_version=no
10025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10026 soname_spec='${libname}${release}${shared_ext}$major'
10027 shlibpath_var=LD_LIBRARY_PATH
10028 ;;
10029
10030 freebsd1*)
10031 dynamic_linker=no
10032 ;;
10033
10034 freebsd* | dragonfly*)
10035 # DragonFly does not have aout. When/if they implement a new
10036 # versioning mechanism, adjust this.
10037 if test -x /usr/bin/objformat; then
10038 objformat=`/usr/bin/objformat`
10039 else
10040 case $host_os in
10041 freebsd[123]*) objformat=aout ;;
10042 *) objformat=elf ;;
10043 esac
10044 fi
10045 version_type=freebsd-$objformat
10046 case $version_type in
10047 freebsd-elf*)
10048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10049 need_version=no
10050 need_lib_prefix=no
10051 ;;
10052 freebsd-*)
10053 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10054 need_version=yes
10055 ;;
10056 esac
10057 shlibpath_var=LD_LIBRARY_PATH
10058 case $host_os in
10059 freebsd2*)
10060 shlibpath_overrides_runpath=yes
10061 ;;
10062 freebsd3.[01]* | freebsdelf3.[01]*)
10063 shlibpath_overrides_runpath=yes
10064 hardcode_into_libs=yes
10065 ;;
10066 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10067 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10068 shlibpath_overrides_runpath=no
10069 hardcode_into_libs=yes
10070 ;;
10071 *) # from 4.6 on, and DragonFly
10072 shlibpath_overrides_runpath=yes
10073 hardcode_into_libs=yes
10074 ;;
10075 esac
10076 ;;
10077
10078 gnu*)
10079 version_type=linux
10080 need_lib_prefix=no
10081 need_version=no
10082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10083 soname_spec='${libname}${release}${shared_ext}$major'
10084 shlibpath_var=LD_LIBRARY_PATH
10085 hardcode_into_libs=yes
10086 ;;
10087
10088 haiku*)
10089 version_type=linux
10090 need_lib_prefix=no
10091 need_version=no
10092 dynamic_linker="$host_os runtime_loader"
10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10094 soname_spec='${libname}${release}${shared_ext}$major'
10095 shlibpath_var=LIBRARY_PATH
10096 shlibpath_overrides_runpath=yes
10097 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10098 hardcode_into_libs=yes
10099 ;;
10100
10101 hpux9* | hpux10* | hpux11*)
10102 # Give a soname corresponding to the major version so that dld.sl refuses to
10103 # link against other versions.
10104 version_type=sunos
10105 need_lib_prefix=no
10106 need_version=no
10107 case $host_cpu in
10108 ia64*)
10109 shrext_cmds='.so'
10110 hardcode_into_libs=yes
10111 dynamic_linker="$host_os dld.so"
10112 shlibpath_var=LD_LIBRARY_PATH
10113 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10115 soname_spec='${libname}${release}${shared_ext}$major'
10116 if test "X$HPUX_IA64_MODE" = X32; then
10117 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10118 else
10119 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10120 fi
10121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10122 ;;
10123 hppa*64*)
10124 shrext_cmds='.sl'
10125 hardcode_into_libs=yes
10126 dynamic_linker="$host_os dld.sl"
10127 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10128 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130 soname_spec='${libname}${release}${shared_ext}$major'
10131 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10132 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10133 ;;
10134 *)
10135 shrext_cmds='.sl'
10136 dynamic_linker="$host_os dld.sl"
10137 shlibpath_var=SHLIB_PATH
10138 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140 soname_spec='${libname}${release}${shared_ext}$major'
10141 ;;
10142 esac
10143 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10144 postinstall_cmds='chmod 555 $lib'
10145 # or fails outright, so override atomically:
10146 install_override_mode=555
10147 ;;
10148
10149 interix[3-9]*)
10150 version_type=linux
10151 need_lib_prefix=no
10152 need_version=no
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10154 soname_spec='${libname}${release}${shared_ext}$major'
10155 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10156 shlibpath_var=LD_LIBRARY_PATH
10157 shlibpath_overrides_runpath=no
10158 hardcode_into_libs=yes
10159 ;;
10160
10161 irix5* | irix6* | nonstopux*)
10162 case $host_os in
10163 nonstopux*) version_type=nonstopux ;;
10164 *)
10165 if test "$lt_cv_prog_gnu_ld" = yes; then
10166 version_type=linux
10167 else
10168 version_type=irix
10169 fi ;;
10170 esac
10171 need_lib_prefix=no
10172 need_version=no
10173 soname_spec='${libname}${release}${shared_ext}$major'
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10175 case $host_os in
10176 irix5* | nonstopux*)
10177 libsuff= shlibsuff=
10178 ;;
10179 *)
10180 case $LD in # libtool.m4 will add one of these switches to LD
10181 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10182 libsuff= shlibsuff= libmagic=32-bit;;
10183 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10184 libsuff=32 shlibsuff=N32 libmagic=N32;;
10185 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10186 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10187 *) libsuff= shlibsuff= libmagic=never-match;;
10188 esac
10189 ;;
10190 esac
10191 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10192 shlibpath_overrides_runpath=no
10193 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10194 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10195 hardcode_into_libs=yes
10196 ;;
10197
10198 # No shared lib support for Linux oldld, aout, or coff.
10199 linux*oldld* | linux*aout* | linux*coff*)
10200 dynamic_linker=no
10201 ;;
10202
10203 # This must be Linux ELF.
10204 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10205 version_type=linux
10206 need_lib_prefix=no
10207 need_version=no
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10209 soname_spec='${libname}${release}${shared_ext}$major'
10210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10211 shlibpath_var=LD_LIBRARY_PATH
10212 shlibpath_overrides_runpath=no
10213
10214 # Some binutils ld are patched to set DT_RUNPATH
10215 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10216 $as_echo_n "(cached) " >&6
10217 else
10218 lt_cv_shlibpath_overrides_runpath=no
10219 save_LDFLAGS=$LDFLAGS
10220 save_libdir=$libdir
10221 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10222 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h. */
10225
10226 int
10227 main ()
10228 {
10229
10230 ;
10231 return 0;
10232 }
10233 _ACEOF
10234 if ac_fn_c_try_link "$LINENO"; then :
10235 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10236 lt_cv_shlibpath_overrides_runpath=yes
10237 fi
10238 fi
10239 rm -f core conftest.err conftest.$ac_objext \
10240 conftest$ac_exeext conftest.$ac_ext
10241 LDFLAGS=$save_LDFLAGS
10242 libdir=$save_libdir
10243
10244 fi
10245
10246 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10247
10248 # This implies no fast_install, which is unacceptable.
10249 # Some rework will be needed to allow for fast_install
10250 # before this can be enabled.
10251 hardcode_into_libs=yes
10252
10253 # Append ld.so.conf contents to the search path
10254 if test -f /etc/ld.so.conf; then
10255 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' ' '`
10256 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10257 fi
10258
10259 # We used to test for /lib/ld.so.1 and disable shared libraries on
10260 # powerpc, because MkLinux only supported shared libraries with the
10261 # GNU dynamic linker. Since this was broken with cross compilers,
10262 # most powerpc-linux boxes support dynamic linking these days and
10263 # people can always --disable-shared, the test was removed, and we
10264 # assume the GNU/Linux dynamic linker is in use.
10265 dynamic_linker='GNU/Linux ld.so'
10266 ;;
10267
10268 netbsd*)
10269 version_type=sunos
10270 need_lib_prefix=no
10271 need_version=no
10272 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10275 dynamic_linker='NetBSD (a.out) ld.so'
10276 else
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10278 soname_spec='${libname}${release}${shared_ext}$major'
10279 dynamic_linker='NetBSD ld.elf_so'
10280 fi
10281 shlibpath_var=LD_LIBRARY_PATH
10282 shlibpath_overrides_runpath=yes
10283 hardcode_into_libs=yes
10284 ;;
10285
10286 newsos6)
10287 version_type=linux
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289 shlibpath_var=LD_LIBRARY_PATH
10290 shlibpath_overrides_runpath=yes
10291 ;;
10292
10293 *nto* | *qnx*)
10294 version_type=qnx
10295 need_lib_prefix=no
10296 need_version=no
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10298 soname_spec='${libname}${release}${shared_ext}$major'
10299 shlibpath_var=LD_LIBRARY_PATH
10300 shlibpath_overrides_runpath=no
10301 hardcode_into_libs=yes
10302 dynamic_linker='ldqnx.so'
10303 ;;
10304
10305 openbsd*)
10306 version_type=sunos
10307 sys_lib_dlsearch_path_spec="/usr/lib"
10308 need_lib_prefix=no
10309 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10310 case $host_os in
10311 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10312 *) need_version=no ;;
10313 esac
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10316 shlibpath_var=LD_LIBRARY_PATH
10317 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10318 case $host_os in
10319 openbsd2.[89] | openbsd2.[89].*)
10320 shlibpath_overrides_runpath=no
10321 ;;
10322 *)
10323 shlibpath_overrides_runpath=yes
10324 ;;
10325 esac
10326 else
10327 shlibpath_overrides_runpath=yes
10328 fi
10329 ;;
10330
10331 os2*)
10332 libname_spec='$name'
10333 shrext_cmds=".dll"
10334 need_lib_prefix=no
10335 library_names_spec='$libname${shared_ext} $libname.a'
10336 dynamic_linker='OS/2 ld.exe'
10337 shlibpath_var=LIBPATH
10338 ;;
10339
10340 osf3* | osf4* | osf5*)
10341 version_type=osf
10342 need_lib_prefix=no
10343 need_version=no
10344 soname_spec='${libname}${release}${shared_ext}$major'
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346 shlibpath_var=LD_LIBRARY_PATH
10347 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10348 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10349 ;;
10350
10351 rdos*)
10352 dynamic_linker=no
10353 ;;
10354
10355 solaris*)
10356 version_type=linux
10357 need_lib_prefix=no
10358 need_version=no
10359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360 soname_spec='${libname}${release}${shared_ext}$major'
10361 shlibpath_var=LD_LIBRARY_PATH
10362 shlibpath_overrides_runpath=yes
10363 hardcode_into_libs=yes
10364 # ldd complains unless libraries are executable
10365 postinstall_cmds='chmod +x $lib'
10366 ;;
10367
10368 sunos4*)
10369 version_type=sunos
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10371 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 shlibpath_overrides_runpath=yes
10374 if test "$with_gnu_ld" = yes; then
10375 need_lib_prefix=no
10376 fi
10377 need_version=yes
10378 ;;
10379
10380 sysv4 | sysv4.3*)
10381 version_type=linux
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383 soname_spec='${libname}${release}${shared_ext}$major'
10384 shlibpath_var=LD_LIBRARY_PATH
10385 case $host_vendor in
10386 sni)
10387 shlibpath_overrides_runpath=no
10388 need_lib_prefix=no
10389 runpath_var=LD_RUN_PATH
10390 ;;
10391 siemens)
10392 need_lib_prefix=no
10393 ;;
10394 motorola)
10395 need_lib_prefix=no
10396 need_version=no
10397 shlibpath_overrides_runpath=no
10398 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10399 ;;
10400 esac
10401 ;;
10402
10403 sysv4*MP*)
10404 if test -d /usr/nec ;then
10405 version_type=linux
10406 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10407 soname_spec='$libname${shared_ext}.$major'
10408 shlibpath_var=LD_LIBRARY_PATH
10409 fi
10410 ;;
10411
10412 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10413 version_type=freebsd-elf
10414 need_lib_prefix=no
10415 need_version=no
10416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10417 soname_spec='${libname}${release}${shared_ext}$major'
10418 shlibpath_var=LD_LIBRARY_PATH
10419 shlibpath_overrides_runpath=yes
10420 hardcode_into_libs=yes
10421 if test "$with_gnu_ld" = yes; then
10422 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10423 else
10424 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10425 case $host_os in
10426 sco3.2v5*)
10427 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10428 ;;
10429 esac
10430 fi
10431 sys_lib_dlsearch_path_spec='/usr/lib'
10432 ;;
10433
10434 tpf*)
10435 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10436 version_type=linux
10437 need_lib_prefix=no
10438 need_version=no
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440 shlibpath_var=LD_LIBRARY_PATH
10441 shlibpath_overrides_runpath=no
10442 hardcode_into_libs=yes
10443 ;;
10444
10445 uts4*)
10446 version_type=linux
10447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448 soname_spec='${libname}${release}${shared_ext}$major'
10449 shlibpath_var=LD_LIBRARY_PATH
10450 ;;
10451
10452 *)
10453 dynamic_linker=no
10454 ;;
10455 esac
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10457 $as_echo "$dynamic_linker" >&6; }
10458 test "$dynamic_linker" = no && can_build_shared=no
10459
10460 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10461 if test "$GCC" = yes; then
10462 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10463 fi
10464
10465 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10466 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10467 fi
10468 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10469 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10470 fi
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10564 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10565 hardcode_action=
10566 if test -n "$hardcode_libdir_flag_spec" ||
10567 test -n "$runpath_var" ||
10568 test "X$hardcode_automatic" = "Xyes" ; then
10569
10570 # We can hardcode non-existent directories.
10571 if test "$hardcode_direct" != no &&
10572 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10573 # have to relink, otherwise we might link with an installed library
10574 # when we should be linking with a yet-to-be-installed one
10575 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10576 test "$hardcode_minus_L" != no; then
10577 # Linking always hardcodes the temporary library directory.
10578 hardcode_action=relink
10579 else
10580 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10581 hardcode_action=immediate
10582 fi
10583 else
10584 # We cannot hardcode anything, or else we can only hardcode existing
10585 # directories.
10586 hardcode_action=unsupported
10587 fi
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10589 $as_echo "$hardcode_action" >&6; }
10590
10591 if test "$hardcode_action" = relink ||
10592 test "$inherit_rpath" = yes; then
10593 # Fast installation is not supported
10594 enable_fast_install=no
10595 elif test "$shlibpath_overrides_runpath" = yes ||
10596 test "$enable_shared" = no; then
10597 # Fast installation is not necessary
10598 enable_fast_install=needless
10599 fi
10600
10601
10602
10603
10604
10605
10606 if test "x$enable_dlopen" != xyes; then
10607 enable_dlopen=unknown
10608 enable_dlopen_self=unknown
10609 enable_dlopen_self_static=unknown
10610 else
10611 lt_cv_dlopen=no
10612 lt_cv_dlopen_libs=
10613
10614 case $host_os in
10615 beos*)
10616 lt_cv_dlopen="load_add_on"
10617 lt_cv_dlopen_libs=
10618 lt_cv_dlopen_self=yes
10619 ;;
10620
10621 mingw* | pw32* | cegcc*)
10622 lt_cv_dlopen="LoadLibrary"
10623 lt_cv_dlopen_libs=
10624 ;;
10625
10626 cygwin*)
10627 lt_cv_dlopen="dlopen"
10628 lt_cv_dlopen_libs=
10629 ;;
10630
10631 darwin*)
10632 # if libdl is installed we need to link against it
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10634 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10635 if ${ac_cv_lib_dl_dlopen+:} false; then :
10636 $as_echo_n "(cached) " >&6
10637 else
10638 ac_check_lib_save_LIBS=$LIBS
10639 LIBS="-ldl $LIBS"
10640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10641 /* end confdefs.h. */
10642
10643 /* Override any GCC internal prototype to avoid an error.
10644 Use char because int might match the return type of a GCC
10645 builtin and then its argument prototype would still apply. */
10646 #ifdef __cplusplus
10647 extern "C"
10648 #endif
10649 char dlopen ();
10650 int
10651 main ()
10652 {
10653 return dlopen ();
10654 ;
10655 return 0;
10656 }
10657 _ACEOF
10658 if ac_fn_c_try_link "$LINENO"; then :
10659 ac_cv_lib_dl_dlopen=yes
10660 else
10661 ac_cv_lib_dl_dlopen=no
10662 fi
10663 rm -f core conftest.err conftest.$ac_objext \
10664 conftest$ac_exeext conftest.$ac_ext
10665 LIBS=$ac_check_lib_save_LIBS
10666 fi
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10668 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10669 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10670 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10671 else
10672
10673 lt_cv_dlopen="dyld"
10674 lt_cv_dlopen_libs=
10675 lt_cv_dlopen_self=yes
10676
10677 fi
10678
10679 ;;
10680
10681 *)
10682 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10683 if test "x$ac_cv_func_shl_load" = xyes; then :
10684 lt_cv_dlopen="shl_load"
10685 else
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10687 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10688 if ${ac_cv_lib_dld_shl_load+:} false; then :
10689 $as_echo_n "(cached) " >&6
10690 else
10691 ac_check_lib_save_LIBS=$LIBS
10692 LIBS="-ldld $LIBS"
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10695
10696 /* Override any GCC internal prototype to avoid an error.
10697 Use char because int might match the return type of a GCC
10698 builtin and then its argument prototype would still apply. */
10699 #ifdef __cplusplus
10700 extern "C"
10701 #endif
10702 char shl_load ();
10703 int
10704 main ()
10705 {
10706 return shl_load ();
10707 ;
10708 return 0;
10709 }
10710 _ACEOF
10711 if ac_fn_c_try_link "$LINENO"; then :
10712 ac_cv_lib_dld_shl_load=yes
10713 else
10714 ac_cv_lib_dld_shl_load=no
10715 fi
10716 rm -f core conftest.err conftest.$ac_objext \
10717 conftest$ac_exeext conftest.$ac_ext
10718 LIBS=$ac_check_lib_save_LIBS
10719 fi
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10721 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10722 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10723 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10724 else
10725 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10726 if test "x$ac_cv_func_dlopen" = xyes; then :
10727 lt_cv_dlopen="dlopen"
10728 else
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10730 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10731 if ${ac_cv_lib_dl_dlopen+:} false; then :
10732 $as_echo_n "(cached) " >&6
10733 else
10734 ac_check_lib_save_LIBS=$LIBS
10735 LIBS="-ldl $LIBS"
10736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737 /* end confdefs.h. */
10738
10739 /* Override any GCC internal prototype to avoid an error.
10740 Use char because int might match the return type of a GCC
10741 builtin and then its argument prototype would still apply. */
10742 #ifdef __cplusplus
10743 extern "C"
10744 #endif
10745 char dlopen ();
10746 int
10747 main ()
10748 {
10749 return dlopen ();
10750 ;
10751 return 0;
10752 }
10753 _ACEOF
10754 if ac_fn_c_try_link "$LINENO"; then :
10755 ac_cv_lib_dl_dlopen=yes
10756 else
10757 ac_cv_lib_dl_dlopen=no
10758 fi
10759 rm -f core conftest.err conftest.$ac_objext \
10760 conftest$ac_exeext conftest.$ac_ext
10761 LIBS=$ac_check_lib_save_LIBS
10762 fi
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10764 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10765 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10766 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10767 else
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10769 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10770 if ${ac_cv_lib_svld_dlopen+:} false; then :
10771 $as_echo_n "(cached) " >&6
10772 else
10773 ac_check_lib_save_LIBS=$LIBS
10774 LIBS="-lsvld $LIBS"
10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h. */
10777
10778 /* Override any GCC internal prototype to avoid an error.
10779 Use char because int might match the return type of a GCC
10780 builtin and then its argument prototype would still apply. */
10781 #ifdef __cplusplus
10782 extern "C"
10783 #endif
10784 char dlopen ();
10785 int
10786 main ()
10787 {
10788 return dlopen ();
10789 ;
10790 return 0;
10791 }
10792 _ACEOF
10793 if ac_fn_c_try_link "$LINENO"; then :
10794 ac_cv_lib_svld_dlopen=yes
10795 else
10796 ac_cv_lib_svld_dlopen=no
10797 fi
10798 rm -f core conftest.err conftest.$ac_objext \
10799 conftest$ac_exeext conftest.$ac_ext
10800 LIBS=$ac_check_lib_save_LIBS
10801 fi
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10803 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10804 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10805 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10806 else
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10808 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10809 if ${ac_cv_lib_dld_dld_link+:} false; then :
10810 $as_echo_n "(cached) " >&6
10811 else
10812 ac_check_lib_save_LIBS=$LIBS
10813 LIBS="-ldld $LIBS"
10814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h. */
10816
10817 /* Override any GCC internal prototype to avoid an error.
10818 Use char because int might match the return type of a GCC
10819 builtin and then its argument prototype would still apply. */
10820 #ifdef __cplusplus
10821 extern "C"
10822 #endif
10823 char dld_link ();
10824 int
10825 main ()
10826 {
10827 return dld_link ();
10828 ;
10829 return 0;
10830 }
10831 _ACEOF
10832 if ac_fn_c_try_link "$LINENO"; then :
10833 ac_cv_lib_dld_dld_link=yes
10834 else
10835 ac_cv_lib_dld_dld_link=no
10836 fi
10837 rm -f core conftest.err conftest.$ac_objext \
10838 conftest$ac_exeext conftest.$ac_ext
10839 LIBS=$ac_check_lib_save_LIBS
10840 fi
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10842 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10843 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10844 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10845 fi
10846
10847
10848 fi
10849
10850
10851 fi
10852
10853
10854 fi
10855
10856
10857 fi
10858
10859
10860 fi
10861
10862 ;;
10863 esac
10864
10865 if test "x$lt_cv_dlopen" != xno; then
10866 enable_dlopen=yes
10867 else
10868 enable_dlopen=no
10869 fi
10870
10871 case $lt_cv_dlopen in
10872 dlopen)
10873 save_CPPFLAGS="$CPPFLAGS"
10874 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10875
10876 save_LDFLAGS="$LDFLAGS"
10877 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10878
10879 save_LIBS="$LIBS"
10880 LIBS="$lt_cv_dlopen_libs $LIBS"
10881
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10883 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10884 if ${lt_cv_dlopen_self+:} false; then :
10885 $as_echo_n "(cached) " >&6
10886 else
10887 if test "$cross_compiling" = yes; then :
10888 lt_cv_dlopen_self=cross
10889 else
10890 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10891 lt_status=$lt_dlunknown
10892 cat > conftest.$ac_ext <<_LT_EOF
10893 #line $LINENO "configure"
10894 #include "confdefs.h"
10895
10896 #if HAVE_DLFCN_H
10897 #include <dlfcn.h>
10898 #endif
10899
10900 #include <stdio.h>
10901
10902 #ifdef RTLD_GLOBAL
10903 # define LT_DLGLOBAL RTLD_GLOBAL
10904 #else
10905 # ifdef DL_GLOBAL
10906 # define LT_DLGLOBAL DL_GLOBAL
10907 # else
10908 # define LT_DLGLOBAL 0
10909 # endif
10910 #endif
10911
10912 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10913 find out it does not work in some platform. */
10914 #ifndef LT_DLLAZY_OR_NOW
10915 # ifdef RTLD_LAZY
10916 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10917 # else
10918 # ifdef DL_LAZY
10919 # define LT_DLLAZY_OR_NOW DL_LAZY
10920 # else
10921 # ifdef RTLD_NOW
10922 # define LT_DLLAZY_OR_NOW RTLD_NOW
10923 # else
10924 # ifdef DL_NOW
10925 # define LT_DLLAZY_OR_NOW DL_NOW
10926 # else
10927 # define LT_DLLAZY_OR_NOW 0
10928 # endif
10929 # endif
10930 # endif
10931 # endif
10932 #endif
10933
10934 /* When -fvisbility=hidden is used, assume the code has been annotated
10935 correspondingly for the symbols needed. */
10936 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10937 int fnord () __attribute__((visibility("default")));
10938 #endif
10939
10940 int fnord () { return 42; }
10941 int main ()
10942 {
10943 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10944 int status = $lt_dlunknown;
10945
10946 if (self)
10947 {
10948 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10949 else
10950 {
10951 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10952 else puts (dlerror ());
10953 }
10954 /* dlclose (self); */
10955 }
10956 else
10957 puts (dlerror ());
10958
10959 return status;
10960 }
10961 _LT_EOF
10962 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10963 (eval $ac_link) 2>&5
10964 ac_status=$?
10965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10966 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10967 (./conftest; exit; ) >&5 2>/dev/null
10968 lt_status=$?
10969 case x$lt_status in
10970 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10971 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10972 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10973 esac
10974 else :
10975 # compilation failed
10976 lt_cv_dlopen_self=no
10977 fi
10978 fi
10979 rm -fr conftest*
10980
10981
10982 fi
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10984 $as_echo "$lt_cv_dlopen_self" >&6; }
10985
10986 if test "x$lt_cv_dlopen_self" = xyes; then
10987 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10989 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10990 if ${lt_cv_dlopen_self_static+:} false; then :
10991 $as_echo_n "(cached) " >&6
10992 else
10993 if test "$cross_compiling" = yes; then :
10994 lt_cv_dlopen_self_static=cross
10995 else
10996 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10997 lt_status=$lt_dlunknown
10998 cat > conftest.$ac_ext <<_LT_EOF
10999 #line $LINENO "configure"
11000 #include "confdefs.h"
11001
11002 #if HAVE_DLFCN_H
11003 #include <dlfcn.h>
11004 #endif
11005
11006 #include <stdio.h>
11007
11008 #ifdef RTLD_GLOBAL
11009 # define LT_DLGLOBAL RTLD_GLOBAL
11010 #else
11011 # ifdef DL_GLOBAL
11012 # define LT_DLGLOBAL DL_GLOBAL
11013 # else
11014 # define LT_DLGLOBAL 0
11015 # endif
11016 #endif
11017
11018 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11019 find out it does not work in some platform. */
11020 #ifndef LT_DLLAZY_OR_NOW
11021 # ifdef RTLD_LAZY
11022 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11023 # else
11024 # ifdef DL_LAZY
11025 # define LT_DLLAZY_OR_NOW DL_LAZY
11026 # else
11027 # ifdef RTLD_NOW
11028 # define LT_DLLAZY_OR_NOW RTLD_NOW
11029 # else
11030 # ifdef DL_NOW
11031 # define LT_DLLAZY_OR_NOW DL_NOW
11032 # else
11033 # define LT_DLLAZY_OR_NOW 0
11034 # endif
11035 # endif
11036 # endif
11037 # endif
11038 #endif
11039
11040 /* When -fvisbility=hidden is used, assume the code has been annotated
11041 correspondingly for the symbols needed. */
11042 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11043 int fnord () __attribute__((visibility("default")));
11044 #endif
11045
11046 int fnord () { return 42; }
11047 int main ()
11048 {
11049 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11050 int status = $lt_dlunknown;
11051
11052 if (self)
11053 {
11054 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11055 else
11056 {
11057 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11058 else puts (dlerror ());
11059 }
11060 /* dlclose (self); */
11061 }
11062 else
11063 puts (dlerror ());
11064
11065 return status;
11066 }
11067 _LT_EOF
11068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11069 (eval $ac_link) 2>&5
11070 ac_status=$?
11071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11072 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11073 (./conftest; exit; ) >&5 2>/dev/null
11074 lt_status=$?
11075 case x$lt_status in
11076 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11077 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11078 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11079 esac
11080 else :
11081 # compilation failed
11082 lt_cv_dlopen_self_static=no
11083 fi
11084 fi
11085 rm -fr conftest*
11086
11087
11088 fi
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11090 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11091 fi
11092
11093 CPPFLAGS="$save_CPPFLAGS"
11094 LDFLAGS="$save_LDFLAGS"
11095 LIBS="$save_LIBS"
11096 ;;
11097 esac
11098
11099 case $lt_cv_dlopen_self in
11100 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11101 *) enable_dlopen_self=unknown ;;
11102 esac
11103
11104 case $lt_cv_dlopen_self_static in
11105 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11106 *) enable_dlopen_self_static=unknown ;;
11107 esac
11108 fi
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126 striplib=
11127 old_striplib=
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11129 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11130 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11131 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11132 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11134 $as_echo "yes" >&6; }
11135 else
11136 # FIXME - insert some real tests, host_os isn't really good enough
11137 case $host_os in
11138 darwin*)
11139 if test -n "$STRIP" ; then
11140 striplib="$STRIP -x"
11141 old_striplib="$STRIP -S"
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11143 $as_echo "yes" >&6; }
11144 else
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146 $as_echo "no" >&6; }
11147 fi
11148 ;;
11149 *)
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11151 $as_echo "no" >&6; }
11152 ;;
11153 esac
11154 fi
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167 # Report which library types will actually be built
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11169 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11171 $as_echo "$can_build_shared" >&6; }
11172
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11174 $as_echo_n "checking whether to build shared libraries... " >&6; }
11175 test "$can_build_shared" = "no" && enable_shared=no
11176
11177 # On AIX, shared libraries and static libraries use the same namespace, and
11178 # are all built from PIC.
11179 case $host_os in
11180 aix3*)
11181 test "$enable_shared" = yes && enable_static=no
11182 if test -n "$RANLIB"; then
11183 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11184 postinstall_cmds='$RANLIB $lib'
11185 fi
11186 ;;
11187
11188 aix[4-9]*)
11189 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11190 test "$enable_shared" = yes && enable_static=no
11191 fi
11192 ;;
11193 esac
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11195 $as_echo "$enable_shared" >&6; }
11196
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11198 $as_echo_n "checking whether to build static libraries... " >&6; }
11199 # Make sure either enable_shared or enable_static is yes.
11200 test "$enable_shared" = yes || enable_static=yes
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11202 $as_echo "$enable_static" >&6; }
11203
11204
11205
11206
11207 fi
11208 ac_ext=c
11209 ac_cpp='$CPP $CPPFLAGS'
11210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11213
11214 CC="$lt_save_CC"
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228 ac_config_commands="$ac_config_commands libtool"
11229
11230
11231
11232
11233 # Only expand once:
11234
11235
11236
11237 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11250 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11251 if ${ac_cv_prog_cc_c99+:} false; then :
11252 $as_echo_n "(cached) " >&6
11253 else
11254 ac_cv_prog_cc_c99=no
11255 ac_save_CC=$CC
11256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11257 /* end confdefs.h. */
11258 #include <stdarg.h>
11259 #include <stdbool.h>
11260 #include <stdlib.h>
11261 #include <wchar.h>
11262 #include <stdio.h>
11263
11264 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11265 #define debug(...) fprintf (stderr, __VA_ARGS__)
11266 #define showlist(...) puts (#__VA_ARGS__)
11267 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11268 static void
11269 test_varargs_macros (void)
11270 {
11271 int x = 1234;
11272 int y = 5678;
11273 debug ("Flag");
11274 debug ("X = %d\n", x);
11275 showlist (The first, second, and third items.);
11276 report (x>y, "x is %d but y is %d", x, y);
11277 }
11278
11279 // Check long long types.
11280 #define BIG64 18446744073709551615ull
11281 #define BIG32 4294967295ul
11282 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11283 #if !BIG_OK
11284 your preprocessor is broken;
11285 #endif
11286 #if BIG_OK
11287 #else
11288 your preprocessor is broken;
11289 #endif
11290 static long long int bignum = -9223372036854775807LL;
11291 static unsigned long long int ubignum = BIG64;
11292
11293 struct incomplete_array
11294 {
11295 int datasize;
11296 double data[];
11297 };
11298
11299 struct named_init {
11300 int number;
11301 const wchar_t *name;
11302 double average;
11303 };
11304
11305 typedef const char *ccp;
11306
11307 static inline int
11308 test_restrict (ccp restrict text)
11309 {
11310 // See if C++-style comments work.
11311 // Iterate through items via the restricted pointer.
11312 // Also check for declarations in for loops.
11313 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11314 continue;
11315 return 0;
11316 }
11317
11318 // Check varargs and va_copy.
11319 static void
11320 test_varargs (const char *format, ...)
11321 {
11322 va_list args;
11323 va_start (args, format);
11324 va_list args_copy;
11325 va_copy (args_copy, args);
11326
11327 const char *str;
11328 int number;
11329 float fnumber;
11330
11331 while (*format)
11332 {
11333 switch (*format++)
11334 {
11335 case 's': // string
11336 str = va_arg (args_copy, const char *);
11337 break;
11338 case 'd': // int
11339 number = va_arg (args_copy, int);
11340 break;
11341 case 'f': // float
11342 fnumber = va_arg (args_copy, double);
11343 break;
11344 default:
11345 break;
11346 }
11347 }
11348 va_end (args_copy);
11349 va_end (args);
11350 }
11351
11352 int
11353 main ()
11354 {
11355
11356 // Check bool.
11357 _Bool success = false;
11358
11359 // Check restrict.
11360 if (test_restrict ("String literal") == 0)
11361 success = true;
11362 char *restrict newvar = "Another string";
11363
11364 // Check varargs.
11365 test_varargs ("s, d' f .", "string", 65, 34.234);
11366 test_varargs_macros ();
11367
11368 // Check flexible array members.
11369 struct incomplete_array *ia =
11370 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11371 ia->datasize = 10;
11372 for (int i = 0; i < ia->datasize; ++i)
11373 ia->data[i] = i * 1.234;
11374
11375 // Check named initializers.
11376 struct named_init ni = {
11377 .number = 34,
11378 .name = L"Test wide string",
11379 .average = 543.34343,
11380 };
11381
11382 ni.number = 58;
11383
11384 int dynamic_array[ni.number];
11385 dynamic_array[ni.number - 1] = 543;
11386
11387 // work around unused variable warnings
11388 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11389 || dynamic_array[ni.number - 1] != 543);
11390
11391 ;
11392 return 0;
11393 }
11394 _ACEOF
11395 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11396 do
11397 CC="$ac_save_CC $ac_arg"
11398 if ac_fn_c_try_compile "$LINENO"; then :
11399 ac_cv_prog_cc_c99=$ac_arg
11400 fi
11401 rm -f core conftest.err conftest.$ac_objext
11402 test "x$ac_cv_prog_cc_c99" != "xno" && break
11403 done
11404 rm -f conftest.$ac_ext
11405 CC=$ac_save_CC
11406
11407 fi
11408 # AC_CACHE_VAL
11409 case "x$ac_cv_prog_cc_c99" in
11410 x)
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11412 $as_echo "none needed" >&6; } ;;
11413 xno)
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11415 $as_echo "unsupported" >&6; } ;;
11416 *)
11417 CC="$CC $ac_cv_prog_cc_c99"
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11419 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11420 esac
11421 if test "x$ac_cv_prog_cc_c99" != xno; then :
11422
11423 fi
11424
11425
11426
11427
11428 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11429 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11430 CLANGCC="yes"
11431 else
11432 CLANGCC="no"
11433 fi
11434
11435 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11436 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11437 INTELCC="yes"
11438 else
11439 INTELCC="no"
11440 fi
11441
11442 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11443 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11444 SUNCC="yes"
11445 else
11446 SUNCC="no"
11447 fi
11448
11449
11450
11451
11452 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11453 if test -n "$ac_tool_prefix"; then
11454 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11455 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11457 $as_echo_n "checking for $ac_word... " >&6; }
11458 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461 case $PKG_CONFIG in
11462 [\\/]* | ?:[\\/]*)
11463 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11464 ;;
11465 *)
11466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467 for as_dir in $PATH
11468 do
11469 IFS=$as_save_IFS
11470 test -z "$as_dir" && as_dir=.
11471 for ac_exec_ext in '' $ac_executable_extensions; do
11472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11473 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11475 break 2
11476 fi
11477 done
11478 done
11479 IFS=$as_save_IFS
11480
11481 ;;
11482 esac
11483 fi
11484 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11485 if test -n "$PKG_CONFIG"; then
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11487 $as_echo "$PKG_CONFIG" >&6; }
11488 else
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11490 $as_echo "no" >&6; }
11491 fi
11492
11493
11494 fi
11495 if test -z "$ac_cv_path_PKG_CONFIG"; then
11496 ac_pt_PKG_CONFIG=$PKG_CONFIG
11497 # Extract the first word of "pkg-config", so it can be a program name with args.
11498 set dummy pkg-config; ac_word=$2
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11500 $as_echo_n "checking for $ac_word... " >&6; }
11501 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11502 $as_echo_n "(cached) " >&6
11503 else
11504 case $ac_pt_PKG_CONFIG in
11505 [\\/]* | ?:[\\/]*)
11506 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11507 ;;
11508 *)
11509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11510 for as_dir in $PATH
11511 do
11512 IFS=$as_save_IFS
11513 test -z "$as_dir" && as_dir=.
11514 for ac_exec_ext in '' $ac_executable_extensions; do
11515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11516 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11518 break 2
11519 fi
11520 done
11521 done
11522 IFS=$as_save_IFS
11523
11524 ;;
11525 esac
11526 fi
11527 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11528 if test -n "$ac_pt_PKG_CONFIG"; then
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11530 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11531 else
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11533 $as_echo "no" >&6; }
11534 fi
11535
11536 if test "x$ac_pt_PKG_CONFIG" = x; then
11537 PKG_CONFIG=""
11538 else
11539 case $cross_compiling:$ac_tool_warned in
11540 yes:)
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11543 ac_tool_warned=yes ;;
11544 esac
11545 PKG_CONFIG=$ac_pt_PKG_CONFIG
11546 fi
11547 else
11548 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11549 fi
11550
11551 fi
11552 if test -n "$PKG_CONFIG"; then
11553 _pkg_min_version=0.9.0
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11555 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11556 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11558 $as_echo "yes" >&6; }
11559 else
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11561 $as_echo "no" >&6; }
11562 PKG_CONFIG=""
11563 fi
11564
11565 fi
11566
11567
11568
11569
11570
11571 if test "x$GCC" = xyes ; then
11572 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
11573 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
11574 -Wbad-function-cast -Wformat=2"
11575 case `$CC -dumpversion` in
11576 3.4.* | 4.*)
11577 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
11578 ;;
11579 esac
11580 else
11581 if test "x$SUNCC" = "xyes"; then
11582 CWARNFLAGS="-v"
11583 fi
11584 fi
11585
11586
11587
11588 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
11589
11590
11591
11592
11593 # Check whether --enable-strict-compilation was given.
11594 if test "${enable_strict_compilation+set}" = set; then :
11595 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11596 else
11597 STRICT_COMPILE=no
11598 fi
11599
11600 if test "x$GCC" = xyes ; then
11601 STRICT_CFLAGS="-pedantic -Werror"
11602 # Add -Werror=attributes if supported (gcc 4.2 & later)
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11604 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
11605 save_CFLAGS="$CFLAGS"
11606 CFLAGS="$CFLAGS $STRICT_CFLAGS -Werror=attributes"
11607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11608 /* end confdefs.h. */
11609 return 0;
11610 _ACEOF
11611 if ac_fn_c_try_compile "$LINENO"; then :
11612 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11614 $as_echo "yes" >&6; }
11615 else
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617 $as_echo "no" >&6; }
11618 fi
11619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11620 CFLAGS="$save_CFLAGS"
11621 elif test "x$SUNCC" = "xyes"; then
11622 STRICT_CFLAGS="-errwarn"
11623 elif test "x$INTELCC" = "xyes"; then
11624 STRICT_CFLAGS="-Werror"
11625 fi
11626 if test "x$STRICT_COMPILE" = "xyes"; then
11627 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11628 fi
11629
11630
11631
11632
11633
11634 cat >>confdefs.h <<_ACEOF
11635 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11636 _ACEOF
11637
11638 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11639 if test "x$PVM" = "x"; then
11640 PVM="0"
11641 fi
11642
11643 cat >>confdefs.h <<_ACEOF
11644 #define PACKAGE_VERSION_MINOR $PVM
11645 _ACEOF
11646
11647 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11648 if test "x$PVP" = "x"; then
11649 PVP="0"
11650 fi
11651
11652 cat >>confdefs.h <<_ACEOF
11653 #define PACKAGE_VERSION_PATCHLEVEL $PVP
11654 _ACEOF
11655
11656
11657
11658 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
11659 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11660 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
11661 echo 'git directory not found: installing possibly empty changelog.' >&2)"
11662
11663
11664
11665
11666 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11667 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11668 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11669 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
11670 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
11671
11672
11673
11674
11675
11676
11677 if test x$APP_MAN_SUFFIX = x ; then
11678 APP_MAN_SUFFIX=1
11679 fi
11680 if test x$APP_MAN_DIR = x ; then
11681 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11682 fi
11683
11684 if test x$LIB_MAN_SUFFIX = x ; then
11685 LIB_MAN_SUFFIX=3
11686 fi
11687 if test x$LIB_MAN_DIR = x ; then
11688 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11689 fi
11690
11691 if test x$FILE_MAN_SUFFIX = x ; then
11692 case $host_os in
11693 solaris*) FILE_MAN_SUFFIX=4 ;;
11694 *) FILE_MAN_SUFFIX=5 ;;
11695 esac
11696 fi
11697 if test x$FILE_MAN_DIR = x ; then
11698 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11699 fi
11700
11701 if test x$MISC_MAN_SUFFIX = x ; then
11702 case $host_os in
11703 solaris*) MISC_MAN_SUFFIX=5 ;;
11704 *) MISC_MAN_SUFFIX=7 ;;
11705 esac
11706 fi
11707 if test x$MISC_MAN_DIR = x ; then
11708 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11709 fi
11710
11711 if test x$DRIVER_MAN_SUFFIX = x ; then
11712 case $host_os in
11713 solaris*) DRIVER_MAN_SUFFIX=7 ;;
11714 *) DRIVER_MAN_SUFFIX=4 ;;
11715 esac
11716 fi
11717 if test x$DRIVER_MAN_DIR = x ; then
11718 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11719 fi
11720
11721 if test x$ADMIN_MAN_SUFFIX = x ; then
11722 case $host_os in
11723 solaris*) ADMIN_MAN_SUFFIX=1m ;;
11724 *) ADMIN_MAN_SUFFIX=8 ;;
11725 esac
11726 fi
11727 if test x$ADMIN_MAN_DIR = x ; then
11728 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11729 fi
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745 XORG_MAN_PAGE="X Version 11"
11746
11747 MAN_SUBSTS="\
11748 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11749 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11750 -e 's|__xservername__|Xorg|g' \
11751 -e 's|__xconfigfile__|xorg.conf|g' \
11752 -e 's|__projectroot__|\$(prefix)|g' \
11753 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11754 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11755 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11756 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11757 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11758 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11759 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11760
11761
11762
11763 # Check whether --enable-silent-rules was given.
11764 if test "${enable_silent_rules+set}" = set; then :
11765 enableval=$enable_silent_rules;
11766 fi
11767
11768 case $enable_silent_rules in
11769 yes) AM_DEFAULT_VERBOSITY=0;;
11770 no) AM_DEFAULT_VERBOSITY=1;;
11771 *) AM_DEFAULT_VERBOSITY=0;;
11772 esac
11773 AM_BACKSLASH='\'
11774
11775
11776
11777
11778 # Check whether --with-icondir was given.
11779 if test "${with_icondir+set}" = set; then :
11780 withval=$with_icondir; ICONDIR="$withval"
11781 else
11782 ICONDIR=${datadir}/icons
11783 fi
11784
11785
11786
11787 DEF_CURSORPATH="~/.icons:${datadir}/icons:${datadir}/pixmaps"
11788 if test "x${ICONDIR}" != "x${datadir}/icons"; then
11789 DEF_CURSORPATH="${DEF_CURSORPATH}:${ICONDIR}"
11790 fi
11791
11792 # Check whether --with-cursorpath was given.
11793 if test "${with_cursorpath+set}" = set; then :
11794 withval=$with_cursorpath; XCURSORPATH="$withval"
11795 else
11796 XCURSORPATH=$DEF_CURSORPATH
11797 fi
11798
11799
11800
11801 # Obtain compiler/linker options for depedencies
11802
11803 pkg_failed=no
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCURSOR" >&5
11805 $as_echo_n "checking for XCURSOR... " >&6; }
11806
11807 if test -n "$XCURSOR_CFLAGS"; then
11808 pkg_cv_XCURSOR_CFLAGS="$XCURSOR_CFLAGS"
11809 elif test -n "$PKG_CONFIG"; then
11810 if test -n "$PKG_CONFIG" && \
11811 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 xfixes x11 fixesproto\""; } >&5
11812 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 xfixes x11 fixesproto") 2>&5
11813 ac_status=$?
11814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11815 test $ac_status = 0; }; then
11816 pkg_cv_XCURSOR_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.8.2 xfixes x11 fixesproto" 2>/dev/null`
11817 else
11818 pkg_failed=yes
11819 fi
11820 else
11821 pkg_failed=untried
11822 fi
11823 if test -n "$XCURSOR_LIBS"; then
11824 pkg_cv_XCURSOR_LIBS="$XCURSOR_LIBS"
11825 elif test -n "$PKG_CONFIG"; then
11826 if test -n "$PKG_CONFIG" && \
11827 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 xfixes x11 fixesproto\""; } >&5
11828 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 xfixes x11 fixesproto") 2>&5
11829 ac_status=$?
11830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11831 test $ac_status = 0; }; then
11832 pkg_cv_XCURSOR_LIBS=`$PKG_CONFIG --libs "xrender >= 0.8.2 xfixes x11 fixesproto" 2>/dev/null`
11833 else
11834 pkg_failed=yes
11835 fi
11836 else
11837 pkg_failed=untried
11838 fi
11839
11840
11841
11842 if test $pkg_failed = yes; then
11843
11844 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11845 _pkg_short_errors_supported=yes
11846 else
11847 _pkg_short_errors_supported=no
11848 fi
11849 if test $_pkg_short_errors_supported = yes; then
11850 XCURSOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrender >= 0.8.2 xfixes x11 fixesproto" 2>&1`
11851 else
11852 XCURSOR_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrender >= 0.8.2 xfixes x11 fixesproto" 2>&1`
11853 fi
11854 # Put the nasty error message in config.log where it belongs
11855 echo "$XCURSOR_PKG_ERRORS" >&5
11856
11857 as_fn_error $? "Package requirements (xrender >= 0.8.2 xfixes x11 fixesproto) were not met:
11858
11859 $XCURSOR_PKG_ERRORS
11860
11861 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11862 installed software in a non-standard prefix.
11863
11864 Alternatively, you may set the environment variables XCURSOR_CFLAGS
11865 and XCURSOR_LIBS to avoid the need to call pkg-config.
11866 See the pkg-config man page for more details.
11867 " "$LINENO" 5
11868 elif test $pkg_failed = untried; then
11869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11871 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11872 is in your PATH or set the PKG_CONFIG environment variable to the full
11873 path to pkg-config.
11874
11875 Alternatively, you may set the environment variables XCURSOR_CFLAGS
11876 and XCURSOR_LIBS to avoid the need to call pkg-config.
11877 See the pkg-config man page for more details.
11878
11879 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11880 See \`config.log' for more details" "$LINENO" 5; }
11881 else
11882 XCURSOR_CFLAGS=$pkg_cv_XCURSOR_CFLAGS
11883 XCURSOR_LIBS=$pkg_cv_XCURSOR_LIBS
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11885 $as_echo "yes" >&6; }
11886 :
11887 fi
11888
11889 $as_echo "#define HAVE_XFIXES 1" >>confdefs.h
11890
11891
11892 # Allow checking code with lint, sparse, etc.
11893
11894
11895
11896
11897
11898 # Check whether --with-lint was given.
11899 if test "${with_lint+set}" = set; then :
11900 withval=$with_lint; use_lint=$withval
11901 else
11902 use_lint=no
11903 fi
11904
11905
11906 # Obtain platform specific info like program name and options
11907 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
11908 case $host_os in
11909 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11910 lint_name=splint
11911 lint_options="-badflag"
11912 ;;
11913 *freebsd* | *netbsd*)
11914 lint_name=lint
11915 lint_options="-u -b"
11916 ;;
11917 *solaris*)
11918 lint_name=lint
11919 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11920 ;;
11921 esac
11922
11923 # Test for the presence of the program (either guessed by the code or spelled out by the user)
11924 if test "x$use_lint" = x"yes" ; then
11925 # Extract the first word of "$lint_name", so it can be a program name with args.
11926 set dummy $lint_name; ac_word=$2
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11928 $as_echo_n "checking for $ac_word... " >&6; }
11929 if ${ac_cv_path_LINT+:} false; then :
11930 $as_echo_n "(cached) " >&6
11931 else
11932 case $LINT in
11933 [\\/]* | ?:[\\/]*)
11934 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
11935 ;;
11936 *)
11937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11938 for as_dir in $PATH
11939 do
11940 IFS=$as_save_IFS
11941 test -z "$as_dir" && as_dir=.
11942 for ac_exec_ext in '' $ac_executable_extensions; do
11943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11944 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
11945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11946 break 2
11947 fi
11948 done
11949 done
11950 IFS=$as_save_IFS
11951
11952 ;;
11953 esac
11954 fi
11955 LINT=$ac_cv_path_LINT
11956 if test -n "$LINT"; then
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11958 $as_echo "$LINT" >&6; }
11959 else
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11961 $as_echo "no" >&6; }
11962 fi
11963
11964
11965 if test "x$LINT" = "x"; then
11966 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11967 fi
11968 elif test "x$use_lint" = x"no" ; then
11969 if test "x$LINT" != "x"; then
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
11971 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
11972 fi
11973 else
11974 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
11975 fi
11976
11977 # User supplied flags override default flags
11978 if test "x$LINT_FLAGS" != "x"; then
11979 lint_options=$LINT_FLAGS
11980 fi
11981
11982 LINT_FLAGS=$lint_options
11983
11984 if test "x$LINT" != x; then
11985 LINT_TRUE=
11986 LINT_FALSE='#'
11987 else
11988 LINT_TRUE='#'
11989 LINT_FALSE=
11990 fi
11991
11992
11993
11994
11995 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xcursor.pc"
11996
11997 cat >confcache <<\_ACEOF
11998 # This file is a shell script that caches the results of configure
11999 # tests run on this system so they can be shared between configure
12000 # scripts and configure runs, see configure's option --config-cache.
12001 # It is not useful on other systems. If it contains results you don't
12002 # want to keep, you may remove or edit it.
12003 #
12004 # config.status only pays attention to the cache file if you give it
12005 # the --recheck option to rerun configure.
12006 #
12007 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12008 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12009 # following values.
12010
12011 _ACEOF
12012
12013 # The following way of writing the cache mishandles newlines in values,
12014 # but we know of no workaround that is simple, portable, and efficient.
12015 # So, we kill variables containing newlines.
12016 # Ultrix sh set writes to stderr and can't be redirected directly,
12017 # and sets the high bit in the cache file unless we assign to the vars.
12018 (
12019 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12020 eval ac_val=\$$ac_var
12021 case $ac_val in #(
12022 *${as_nl}*)
12023 case $ac_var in #(
12024 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12025 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12026 esac
12027 case $ac_var in #(
12028 _ | IFS | as_nl) ;; #(
12029 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12030 *) { eval $ac_var=; unset $ac_var;} ;;
12031 esac ;;
12032 esac
12033 done
12034
12035 (set) 2>&1 |
12036 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12037 *${as_nl}ac_space=\ *)
12038 # `set' does not quote correctly, so add quotes: double-quote
12039 # substitution turns \\\\ into \\, and sed turns \\ into \.
12040 sed -n \
12041 "s/'/'\\\\''/g;
12042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12043 ;; #(
12044 *)
12045 # `set' quotes correctly as required by POSIX, so do not add quotes.
12046 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12047 ;;
12048 esac |
12049 sort
12050 ) |
12051 sed '
12052 /^ac_cv_env_/b end
12053 t clear
12054 :clear
12055 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12056 t end
12057 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12058 :end' >>confcache
12059 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12060 if test -w "$cache_file"; then
12061 if test "x$cache_file" != "x/dev/null"; then
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12063 $as_echo "$as_me: updating cache $cache_file" >&6;}
12064 if test ! -f "$cache_file" || test -h "$cache_file"; then
12065 cat confcache >"$cache_file"
12066 else
12067 case $cache_file in #(
12068 */* | ?:*)
12069 mv -f confcache "$cache_file"$$ &&
12070 mv -f "$cache_file"$$ "$cache_file" ;; #(
12071 *)
12072 mv -f confcache "$cache_file" ;;
12073 esac
12074 fi
12075 fi
12076 else
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12078 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12079 fi
12080 fi
12081 rm -f confcache
12082
12083 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12084 # Let make expand exec_prefix.
12085 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12086
12087 DEFS=-DHAVE_CONFIG_H
12088
12089 ac_libobjs=
12090 ac_ltlibobjs=
12091 U=
12092 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12093 # 1. Remove the extension, and $U if already installed.
12094 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12095 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12096 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12097 # will be set to the directory where LIBOBJS objects are built.
12098 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12099 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12100 done
12101 LIBOBJS=$ac_libobjs
12102
12103 LTLIBOBJS=$ac_ltlibobjs
12104
12105
12106 if test -n "$EXEEXT"; then
12107 am__EXEEXT_TRUE=
12108 am__EXEEXT_FALSE='#'
12109 else
12110 am__EXEEXT_TRUE='#'
12111 am__EXEEXT_FALSE=
12112 fi
12113
12114 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12115 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12117 fi
12118 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12119 as_fn_error $? "conditional \"AMDEP\" was never defined.
12120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12121 fi
12122 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12123 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12125 fi
12126 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12127 as_fn_error $? "conditional \"LINT\" was never defined.
12128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12129 fi
12130
12131 : "${CONFIG_STATUS=./config.status}"
12132 ac_write_fail=0
12133 ac_clean_files_save=$ac_clean_files
12134 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12136 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12137 as_write_fail=0
12138 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12139 #! $SHELL
12140 # Generated by $as_me.
12141 # Run this file to recreate the current configuration.
12142 # Compiler output produced by configure, useful for debugging
12143 # configure, is in config.log if it exists.
12144
12145 debug=false
12146 ac_cs_recheck=false
12147 ac_cs_silent=false
12148
12149 SHELL=\${CONFIG_SHELL-$SHELL}
12150 export SHELL
12151 _ASEOF
12152 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12153 ## -------------------- ##
12154 ## M4sh Initialization. ##
12155 ## -------------------- ##
12156
12157 # Be more Bourne compatible
12158 DUALCASE=1; export DUALCASE # for MKS sh
12159 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12160 emulate sh
12161 NULLCMD=:
12162 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12163 # is contrary to our usage. Disable this feature.
12164 alias -g '${1+"$@"}'='"$@"'
12165 setopt NO_GLOB_SUBST
12166 else
12167 case `(set -o) 2>/dev/null` in #(
12168 *posix*) :
12169 set -o posix ;; #(
12170 *) :
12171 ;;
12172 esac
12173 fi
12174
12175
12176 as_nl='
12177 '
12178 export as_nl
12179 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12180 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12181 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12182 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12183 # Prefer a ksh shell builtin over an external printf program on Solaris,
12184 # but without wasting forks for bash or zsh.
12185 if test -z "$BASH_VERSION$ZSH_VERSION" \
12186 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12187 as_echo='print -r --'
12188 as_echo_n='print -rn --'
12189 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12190 as_echo='printf %s\n'
12191 as_echo_n='printf %s'
12192 else
12193 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12194 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12195 as_echo_n='/usr/ucb/echo -n'
12196 else
12197 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12198 as_echo_n_body='eval
12199 arg=$1;
12200 case $arg in #(
12201 *"$as_nl"*)
12202 expr "X$arg" : "X\\(.*\\)$as_nl";
12203 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12204 esac;
12205 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12206 '
12207 export as_echo_n_body
12208 as_echo_n='sh -c $as_echo_n_body as_echo'
12209 fi
12210 export as_echo_body
12211 as_echo='sh -c $as_echo_body as_echo'
12212 fi
12213
12214 # The user is always right.
12215 if test "${PATH_SEPARATOR+set}" != set; then
12216 PATH_SEPARATOR=:
12217 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12218 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12219 PATH_SEPARATOR=';'
12220 }
12221 fi
12222
12223
12224 # IFS
12225 # We need space, tab and new line, in precisely that order. Quoting is
12226 # there to prevent editors from complaining about space-tab.
12227 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12228 # splitting by setting IFS to empty value.)
12229 IFS=" "" $as_nl"
12230
12231 # Find who we are. Look in the path if we contain no directory separator.
12232 as_myself=
12233 case $0 in #((
12234 *[\\/]* ) as_myself=$0 ;;
12235 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236 for as_dir in $PATH
12237 do
12238 IFS=$as_save_IFS
12239 test -z "$as_dir" && as_dir=.
12240 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12241 done
12242 IFS=$as_save_IFS
12243
12244 ;;
12245 esac
12246 # We did not find ourselves, most probably we were run as `sh COMMAND'
12247 # in which case we are not to be found in the path.
12248 if test "x$as_myself" = x; then
12249 as_myself=$0
12250 fi
12251 if test ! -f "$as_myself"; then
12252 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12253 exit 1
12254 fi
12255
12256 # Unset variables that we do not need and which cause bugs (e.g. in
12257 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12258 # suppresses any "Segmentation fault" message there. '((' could
12259 # trigger a bug in pdksh 5.2.14.
12260 for as_var in BASH_ENV ENV MAIL MAILPATH
12261 do eval test x\${$as_var+set} = xset \
12262 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12263 done
12264 PS1='$ '
12265 PS2='> '
12266 PS4='+ '
12267
12268 # NLS nuisances.
12269 LC_ALL=C
12270 export LC_ALL
12271 LANGUAGE=C
12272 export LANGUAGE
12273
12274 # CDPATH.
12275 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12276
12277
12278 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12279 # ----------------------------------------
12280 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12281 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12282 # script with STATUS, using 1 if that was 0.
12283 as_fn_error ()
12284 {
12285 as_status=$1; test $as_status -eq 0 && as_status=1
12286 if test "$4"; then
12287 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12288 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12289 fi
12290 $as_echo "$as_me: error: $2" >&2
12291 as_fn_exit $as_status
12292 } # as_fn_error
12293
12294
12295 # as_fn_set_status STATUS
12296 # -----------------------
12297 # Set $? to STATUS, without forking.
12298 as_fn_set_status ()
12299 {
12300 return $1
12301 } # as_fn_set_status
12302
12303 # as_fn_exit STATUS
12304 # -----------------
12305 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12306 as_fn_exit ()
12307 {
12308 set +e
12309 as_fn_set_status $1
12310 exit $1
12311 } # as_fn_exit
12312
12313 # as_fn_unset VAR
12314 # ---------------
12315 # Portably unset VAR.
12316 as_fn_unset ()
12317 {
12318 { eval $1=; unset $1;}
12319 }
12320 as_unset=as_fn_unset
12321 # as_fn_append VAR VALUE
12322 # ----------------------
12323 # Append the text in VALUE to the end of the definition contained in VAR. Take
12324 # advantage of any shell optimizations that allow amortized linear growth over
12325 # repeated appends, instead of the typical quadratic growth present in naive
12326 # implementations.
12327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12328 eval 'as_fn_append ()
12329 {
12330 eval $1+=\$2
12331 }'
12332 else
12333 as_fn_append ()
12334 {
12335 eval $1=\$$1\$2
12336 }
12337 fi # as_fn_append
12338
12339 # as_fn_arith ARG...
12340 # ------------------
12341 # Perform arithmetic evaluation on the ARGs, and store the result in the
12342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12343 # must be portable across $(()) and expr.
12344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12345 eval 'as_fn_arith ()
12346 {
12347 as_val=$(( $* ))
12348 }'
12349 else
12350 as_fn_arith ()
12351 {
12352 as_val=`expr "$@" || test $? -eq 1`
12353 }
12354 fi # as_fn_arith
12355
12356
12357 if expr a : '\(a\)' >/dev/null 2>&1 &&
12358 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12359 as_expr=expr
12360 else
12361 as_expr=false
12362 fi
12363
12364 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12365 as_basename=basename
12366 else
12367 as_basename=false
12368 fi
12369
12370 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12371 as_dirname=dirname
12372 else
12373 as_dirname=false
12374 fi
12375
12376 as_me=`$as_basename -- "$0" ||
12377 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12378 X"$0" : 'X\(//\)$' \| \
12379 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12380 $as_echo X/"$0" |
12381 sed '/^.*\/\([^/][^/]*\)\/*$/{
12382 s//\1/
12383 q
12384 }
12385 /^X\/\(\/\/\)$/{
12386 s//\1/
12387 q
12388 }
12389 /^X\/\(\/\).*/{
12390 s//\1/
12391 q
12392 }
12393 s/.*/./; q'`
12394
12395 # Avoid depending upon Character Ranges.
12396 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12397 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12398 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12399 as_cr_digits='0123456789'
12400 as_cr_alnum=$as_cr_Letters$as_cr_digits
12401
12402 ECHO_C= ECHO_N= ECHO_T=
12403 case `echo -n x` in #(((((
12404 -n*)
12405 case `echo 'xy\c'` in
12406 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12407 xy) ECHO_C='\c';;
12408 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12409 ECHO_T=' ';;
12410 esac;;
12411 *)
12412 ECHO_N='-n';;
12413 esac
12414
12415 rm -f conf$$ conf$$.exe conf$$.file
12416 if test -d conf$$.dir; then
12417 rm -f conf$$.dir/conf$$.file
12418 else
12419 rm -f conf$$.dir
12420 mkdir conf$$.dir 2>/dev/null
12421 fi
12422 if (echo >conf$$.file) 2>/dev/null; then
12423 if ln -s conf$$.file conf$$ 2>/dev/null; then
12424 as_ln_s='ln -s'
12425 # ... but there are two gotchas:
12426 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12427 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12428 # In both cases, we have to default to `cp -p'.
12429 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12430 as_ln_s='cp -p'
12431 elif ln conf$$.file conf$$ 2>/dev/null; then
12432 as_ln_s=ln
12433 else
12434 as_ln_s='cp -p'
12435 fi
12436 else
12437 as_ln_s='cp -p'
12438 fi
12439 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12440 rmdir conf$$.dir 2>/dev/null
12441
12442
12443 # as_fn_mkdir_p
12444 # -------------
12445 # Create "$as_dir" as a directory, including parents if necessary.
12446 as_fn_mkdir_p ()
12447 {
12448
12449 case $as_dir in #(
12450 -*) as_dir=./$as_dir;;
12451 esac
12452 test -d "$as_dir" || eval $as_mkdir_p || {
12453 as_dirs=
12454 while :; do
12455 case $as_dir in #(
12456 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12457 *) as_qdir=$as_dir;;
12458 esac
12459 as_dirs="'$as_qdir' $as_dirs"
12460 as_dir=`$as_dirname -- "$as_dir" ||
12461 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12462 X"$as_dir" : 'X\(//\)[^/]' \| \
12463 X"$as_dir" : 'X\(//\)$' \| \
12464 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12465 $as_echo X"$as_dir" |
12466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12467 s//\1/
12468 q
12469 }
12470 /^X\(\/\/\)[^/].*/{
12471 s//\1/
12472 q
12473 }
12474 /^X\(\/\/\)$/{
12475 s//\1/
12476 q
12477 }
12478 /^X\(\/\).*/{
12479 s//\1/
12480 q
12481 }
12482 s/.*/./; q'`
12483 test -d "$as_dir" && break
12484 done
12485 test -z "$as_dirs" || eval "mkdir $as_dirs"
12486 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12487
12488
12489 } # as_fn_mkdir_p
12490 if mkdir -p . 2>/dev/null; then
12491 as_mkdir_p='mkdir -p "$as_dir"'
12492 else
12493 test -d ./-p && rmdir ./-p
12494 as_mkdir_p=false
12495 fi
12496
12497 if test -x / >/dev/null 2>&1; then
12498 as_test_x='test -x'
12499 else
12500 if ls -dL / >/dev/null 2>&1; then
12501 as_ls_L_option=L
12502 else
12503 as_ls_L_option=
12504 fi
12505 as_test_x='
12506 eval sh -c '\''
12507 if test -d "$1"; then
12508 test -d "$1/.";
12509 else
12510 case $1 in #(
12511 -*)set "./$1";;
12512 esac;
12513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12514 ???[sx]*):;;*)false;;esac;fi
12515 '\'' sh
12516 '
12517 fi
12518 as_executable_p=$as_test_x
12519
12520 # Sed expression to map a string onto a valid CPP name.
12521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12522
12523 # Sed expression to map a string onto a valid variable name.
12524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12525
12526
12527 exec 6>&1
12528 ## ----------------------------------- ##
12529 ## Main body of $CONFIG_STATUS script. ##
12530 ## ----------------------------------- ##
12531 _ASEOF
12532 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12533
12534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12535 # Save the log message, to keep $0 and so on meaningful, and to
12536 # report actual input values of CONFIG_FILES etc. instead of their
12537 # values after options handling.
12538 ac_log="
12539 This file was extended by libXcursor $as_me 1.1.12, which was
12540 generated by GNU Autoconf 2.68. Invocation command line was
12541
12542 CONFIG_FILES = $CONFIG_FILES
12543 CONFIG_HEADERS = $CONFIG_HEADERS
12544 CONFIG_LINKS = $CONFIG_LINKS
12545 CONFIG_COMMANDS = $CONFIG_COMMANDS
12546 $ $0 $@
12547
12548 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12549 "
12550
12551 _ACEOF
12552
12553 case $ac_config_files in *"
12554 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12555 esac
12556
12557 case $ac_config_headers in *"
12558 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12559 esac
12560
12561
12562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12563 # Files that config.status was made for.
12564 config_files="$ac_config_files"
12565 config_headers="$ac_config_headers"
12566 config_commands="$ac_config_commands"
12567
12568 _ACEOF
12569
12570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12571 ac_cs_usage="\
12572 \`$as_me' instantiates files and other configuration actions
12573 from templates according to the current configuration. Unless the files
12574 and actions are specified as TAGs, all are instantiated by default.
12575
12576 Usage: $0 [OPTION]... [TAG]...
12577
12578 -h, --help print this help, then exit
12579 -V, --version print version number and configuration settings, then exit
12580 --config print configuration, then exit
12581 -q, --quiet, --silent
12582 do not print progress messages
12583 -d, --debug don't remove temporary files
12584 --recheck update $as_me by reconfiguring in the same conditions
12585 --file=FILE[:TEMPLATE]
12586 instantiate the configuration file FILE
12587 --header=FILE[:TEMPLATE]
12588 instantiate the configuration header FILE
12589
12590 Configuration files:
12591 $config_files
12592
12593 Configuration headers:
12594 $config_headers
12595
12596 Configuration commands:
12597 $config_commands
12598
12599 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12600
12601 _ACEOF
12602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12603 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12604 ac_cs_version="\\
12605 libXcursor config.status 1.1.12
12606 configured by $0, generated by GNU Autoconf 2.68,
12607 with options \\"\$ac_cs_config\\"
12608
12609 Copyright (C) 2010 Free Software Foundation, Inc.
12610 This config.status script is free software; the Free Software Foundation
12611 gives unlimited permission to copy, distribute and modify it."
12612
12613 ac_pwd='$ac_pwd'
12614 srcdir='$srcdir'
12615 INSTALL='$INSTALL'
12616 MKDIR_P='$MKDIR_P'
12617 AWK='$AWK'
12618 test -n "\$AWK" || AWK=awk
12619 _ACEOF
12620
12621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12622 # The default lists apply if the user does not specify any file.
12623 ac_need_defaults=:
12624 while test $# != 0
12625 do
12626 case $1 in
12627 --*=?*)
12628 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12629 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12630 ac_shift=:
12631 ;;
12632 --*=)
12633 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12634 ac_optarg=
12635 ac_shift=:
12636 ;;
12637 *)
12638 ac_option=$1
12639 ac_optarg=$2
12640 ac_shift=shift
12641 ;;
12642 esac
12643
12644 case $ac_option in
12645 # Handling of the options.
12646 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12647 ac_cs_recheck=: ;;
12648 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12649 $as_echo "$ac_cs_version"; exit ;;
12650 --config | --confi | --conf | --con | --co | --c )
12651 $as_echo "$ac_cs_config"; exit ;;
12652 --debug | --debu | --deb | --de | --d | -d )
12653 debug=: ;;
12654 --file | --fil | --fi | --f )
12655 $ac_shift
12656 case $ac_optarg in
12657 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12658 '') as_fn_error $? "missing file argument" ;;
12659 esac
12660 as_fn_append CONFIG_FILES " '$ac_optarg'"
12661 ac_need_defaults=false;;
12662 --header | --heade | --head | --hea )
12663 $ac_shift
12664 case $ac_optarg in
12665 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12666 esac
12667 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12668 ac_need_defaults=false;;
12669 --he | --h)
12670 # Conflict between --help and --header
12671 as_fn_error $? "ambiguous option: \`$1'
12672 Try \`$0 --help' for more information.";;
12673 --help | --hel | -h )
12674 $as_echo "$ac_cs_usage"; exit ;;
12675 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12676 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12677 ac_cs_silent=: ;;
12678
12679 # This is an error.
12680 -*) as_fn_error $? "unrecognized option: \`$1'
12681 Try \`$0 --help' for more information." ;;
12682
12683 *) as_fn_append ac_config_targets " $1"
12684 ac_need_defaults=false ;;
12685
12686 esac
12687 shift
12688 done
12689
12690 ac_configure_extra_args=
12691
12692 if $ac_cs_silent; then
12693 exec 6>/dev/null
12694 ac_configure_extra_args="$ac_configure_extra_args --silent"
12695 fi
12696
12697 _ACEOF
12698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12699 if \$ac_cs_recheck; then
12700 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12701 shift
12702 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12703 CONFIG_SHELL='$SHELL'
12704 export CONFIG_SHELL
12705 exec "\$@"
12706 fi
12707
12708 _ACEOF
12709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12710 exec 5>>config.log
12711 {
12712 echo
12713 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12714 ## Running $as_me. ##
12715 _ASBOX
12716 $as_echo "$ac_log"
12717 } >&5
12718
12719 _ACEOF
12720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12721 #
12722 # INIT-COMMANDS
12723 #
12724 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12725
12726
12727 # The HP-UX ksh and POSIX shell print the target directory to stdout
12728 # if CDPATH is set.
12729 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12730
12731 sed_quote_subst='$sed_quote_subst'
12732 double_quote_subst='$double_quote_subst'
12733 delay_variable_subst='$delay_variable_subst'
12734 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12735 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12736 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12737 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12738 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12739 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12740 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12741 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12742 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12743 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12744 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12745 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12746 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12747 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12748 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12749 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12750 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12751 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12752 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12753 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12754 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12755 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12756 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12757 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12758 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12759 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12760 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12761 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12762 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12763 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12764 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12765 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12766 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12767 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12768 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12769 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12770 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12771 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12772 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12773 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12774 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12775 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12776 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12777 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12778 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12779 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12780 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12781 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12782 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12783 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12784 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12785 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12786 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12787 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12788 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12789 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"`'
12790 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12791 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12792 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12793 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12794 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12795 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12796 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12797 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12798 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12799 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12800 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12801 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12802 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12803 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12804 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12805 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12806 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12807 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12808 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12809 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12810 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12811 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12812 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12813 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12814 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12815 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12816 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12817 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12818 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12819 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12820 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12821 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12822 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12823 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12824 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12825 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12826 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12827 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12828 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12829 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12830 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12831 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12832 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12833 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12834 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12835 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12836 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12837 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12838 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12839 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12840 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12841 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12842 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12843 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12844 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12845 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12846 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12847 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12848 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12849 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12850 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12851 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12852 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12853 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12854 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12855 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12856 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12857 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12858 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12859 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12860 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12861 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12862 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12863 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12864
12865 LTCC='$LTCC'
12866 LTCFLAGS='$LTCFLAGS'
12867 compiler='$compiler_DEFAULT'
12868
12869 # A function that is used when there is no print builtin or printf.
12870 func_fallback_echo ()
12871 {
12872 eval 'cat <<_LTECHO_EOF
12873 \$1
12874 _LTECHO_EOF'
12875 }
12876
12877 # Quote evaled strings.
12878 for var in SHELL \
12879 ECHO \
12880 SED \
12881 GREP \
12882 EGREP \
12883 FGREP \
12884 LD \
12885 NM \
12886 LN_S \
12887 lt_SP2NL \
12888 lt_NL2SP \
12889 reload_flag \
12890 OBJDUMP \
12891 deplibs_check_method \
12892 file_magic_cmd \
12893 file_magic_glob \
12894 want_nocaseglob \
12895 DLLTOOL \
12896 sharedlib_from_linklib_cmd \
12897 AR \
12898 AR_FLAGS \
12899 archiver_list_spec \
12900 STRIP \
12901 RANLIB \
12902 CC \
12903 CFLAGS \
12904 compiler \
12905 lt_cv_sys_global_symbol_pipe \
12906 lt_cv_sys_global_symbol_to_cdecl \
12907 lt_cv_sys_global_symbol_to_c_name_address \
12908 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12909 nm_file_list_spec \
12910 lt_prog_compiler_no_builtin_flag \
12911 lt_prog_compiler_pic \
12912 lt_prog_compiler_wl \
12913 lt_prog_compiler_static \
12914 lt_cv_prog_compiler_c_o \
12915 need_locks \
12916 MANIFEST_TOOL \
12917 DSYMUTIL \
12918 NMEDIT \
12919 LIPO \
12920 OTOOL \
12921 OTOOL64 \
12922 shrext_cmds \
12923 export_dynamic_flag_spec \
12924 whole_archive_flag_spec \
12925 compiler_needs_object \
12926 with_gnu_ld \
12927 allow_undefined_flag \
12928 no_undefined_flag \
12929 hardcode_libdir_flag_spec \
12930 hardcode_libdir_flag_spec_ld \
12931 hardcode_libdir_separator \
12932 exclude_expsyms \
12933 include_expsyms \
12934 file_list_spec \
12935 variables_saved_for_relink \
12936 libname_spec \
12937 library_names_spec \
12938 soname_spec \
12939 install_override_mode \
12940 finish_eval \
12941 old_striplib \
12942 striplib; do
12943 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12944 *[\\\\\\\`\\"\\\$]*)
12945 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12946 ;;
12947 *)
12948 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12949 ;;
12950 esac
12951 done
12952
12953 # Double-quote double-evaled strings.
12954 for var in reload_cmds \
12955 old_postinstall_cmds \
12956 old_postuninstall_cmds \
12957 old_archive_cmds \
12958 extract_expsyms_cmds \
12959 old_archive_from_new_cmds \
12960 old_archive_from_expsyms_cmds \
12961 archive_cmds \
12962 archive_expsym_cmds \
12963 module_cmds \
12964 module_expsym_cmds \
12965 export_symbols_cmds \
12966 prelink_cmds \
12967 postlink_cmds \
12968 postinstall_cmds \
12969 postuninstall_cmds \
12970 finish_cmds \
12971 sys_lib_search_path_spec \
12972 sys_lib_dlsearch_path_spec; do
12973 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12974 *[\\\\\\\`\\"\\\$]*)
12975 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12976 ;;
12977 *)
12978 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12979 ;;
12980 esac
12981 done
12982
12983 ac_aux_dir='$ac_aux_dir'
12984 xsi_shell='$xsi_shell'
12985 lt_shell_append='$lt_shell_append'
12986
12987 # See if we are running on zsh, and set the options which allow our
12988 # commands through without removal of \ escapes INIT.
12989 if test -n "\${ZSH_VERSION+set}" ; then
12990 setopt NO_GLOB_SUBST
12991 fi
12992
12993
12994 PACKAGE='$PACKAGE'
12995 VERSION='$VERSION'
12996 TIMESTAMP='$TIMESTAMP'
12997 RM='$RM'
12998 ofile='$ofile'
12999
13000
13001
13002
13003 _ACEOF
13004
13005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13006
13007 # Handling of arguments.
13008 for ac_config_target in $ac_config_targets
13009 do
13010 case $ac_config_target in
13011 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13012 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13013 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13014 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13015 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13016 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13017 "xcursor.pc") CONFIG_FILES="$CONFIG_FILES xcursor.pc" ;;
13018
13019 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13020 esac
13021 done
13022
13023
13024 # If the user did not use the arguments to specify the items to instantiate,
13025 # then the envvar interface is used. Set only those that are not.
13026 # We use the long form for the default assignment because of an extremely
13027 # bizarre bug on SunOS 4.1.3.
13028 if $ac_need_defaults; then
13029 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13030 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13031 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13032 fi
13033
13034 # Have a temporary directory for convenience. Make it in the build tree
13035 # simply because there is no reason against having it here, and in addition,
13036 # creating and moving files from /tmp can sometimes cause problems.
13037 # Hook for its removal unless debugging.
13038 # Note that there is a small window in which the directory will not be cleaned:
13039 # after its creation but before its name has been assigned to `$tmp'.
13040 $debug ||
13041 {
13042 tmp= ac_tmp=
13043 trap 'exit_status=$?
13044 : "${ac_tmp:=$tmp}"
13045 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13046 ' 0
13047 trap 'as_fn_exit 1' 1 2 13 15
13048 }
13049 # Create a (secure) tmp directory for tmp files.
13050
13051 {
13052 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13053 test -d "$tmp"
13054 } ||
13055 {
13056 tmp=./conf$$-$RANDOM
13057 (umask 077 && mkdir "$tmp")
13058 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13059 ac_tmp=$tmp
13060
13061 # Set up the scripts for CONFIG_FILES section.
13062 # No need to generate them if there are no CONFIG_FILES.
13063 # This happens for instance with `./config.status config.h'.
13064 if test -n "$CONFIG_FILES"; then
13065
13066
13067 ac_cr=`echo X | tr X '\015'`
13068 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13069 # But we know of no other shell where ac_cr would be empty at this
13070 # point, so we can use a bashism as a fallback.
13071 if test "x$ac_cr" = x; then
13072 eval ac_cr=\$\'\\r\'
13073 fi
13074 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13075 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13076 ac_cs_awk_cr='\\r'
13077 else
13078 ac_cs_awk_cr=$ac_cr
13079 fi
13080
13081 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13082 _ACEOF
13083
13084
13085 {
13086 echo "cat >conf$$subs.awk <<_ACEOF" &&
13087 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13088 echo "_ACEOF"
13089 } >conf$$subs.sh ||
13090 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13091 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13092 ac_delim='%!_!# '
13093 for ac_last_try in false false false false false :; do
13094 . ./conf$$subs.sh ||
13095 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13096
13097 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13098 if test $ac_delim_n = $ac_delim_num; then
13099 break
13100 elif $ac_last_try; then
13101 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13102 else
13103 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13104 fi
13105 done
13106 rm -f conf$$subs.sh
13107
13108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13109 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13110 _ACEOF
13111 sed -n '
13112 h
13113 s/^/S["/; s/!.*/"]=/
13114 p
13115 g
13116 s/^[^!]*!//
13117 :repl
13118 t repl
13119 s/'"$ac_delim"'$//
13120 t delim
13121 :nl
13122 h
13123 s/\(.\{148\}\)..*/\1/
13124 t more1
13125 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13126 p
13127 n
13128 b repl
13129 :more1
13130 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13131 p
13132 g
13133 s/.\{148\}//
13134 t nl
13135 :delim
13136 h
13137 s/\(.\{148\}\)..*/\1/
13138 t more2
13139 s/["\\]/\\&/g; s/^/"/; s/$/"/
13140 p
13141 b
13142 :more2
13143 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13144 p
13145 g
13146 s/.\{148\}//
13147 t delim
13148 ' <conf$$subs.awk | sed '
13149 /^[^""]/{
13150 N
13151 s/\n//
13152 }
13153 ' >>$CONFIG_STATUS || ac_write_fail=1
13154 rm -f conf$$subs.awk
13155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13156 _ACAWK
13157 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13158 for (key in S) S_is_set[key] = 1
13159 FS = ""
13160
13161 }
13162 {
13163 line = $ 0
13164 nfields = split(line, field, "@")
13165 substed = 0
13166 len = length(field[1])
13167 for (i = 2; i < nfields; i++) {
13168 key = field[i]
13169 keylen = length(key)
13170 if (S_is_set[key]) {
13171 value = S[key]
13172 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13173 len += length(value) + length(field[++i])
13174 substed = 1
13175 } else
13176 len += 1 + keylen
13177 }
13178
13179 print line
13180 }
13181
13182 _ACAWK
13183 _ACEOF
13184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13185 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13186 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13187 else
13188 cat
13189 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13190 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13191 _ACEOF
13192
13193 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13194 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13195 # trailing colons and then remove the whole line if VPATH becomes empty
13196 # (actually we leave an empty line to preserve line numbers).
13197 if test "x$srcdir" = x.; then
13198 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13199 h
13200 s///
13201 s/^/:/
13202 s/[ ]*$/:/
13203 s/:\$(srcdir):/:/g
13204 s/:\${srcdir}:/:/g
13205 s/:@srcdir@:/:/g
13206 s/^:*//
13207 s/:*$//
13208 x
13209 s/\(=[ ]*\).*/\1/
13210 G
13211 s/\n//
13212 s/^[^=]*=[ ]*$//
13213 }'
13214 fi
13215
13216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13217 fi # test -n "$CONFIG_FILES"
13218
13219 # Set up the scripts for CONFIG_HEADERS section.
13220 # No need to generate them if there are no CONFIG_HEADERS.
13221 # This happens for instance with `./config.status Makefile'.
13222 if test -n "$CONFIG_HEADERS"; then
13223 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13224 BEGIN {
13225 _ACEOF
13226
13227 # Transform confdefs.h into an awk script `defines.awk', embedded as
13228 # here-document in config.status, that substitutes the proper values into
13229 # config.h.in to produce config.h.
13230
13231 # Create a delimiter string that does not exist in confdefs.h, to ease
13232 # handling of long lines.
13233 ac_delim='%!_!# '
13234 for ac_last_try in false false :; do
13235 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13236 if test -z "$ac_tt"; then
13237 break
13238 elif $ac_last_try; then
13239 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13240 else
13241 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13242 fi
13243 done
13244
13245 # For the awk script, D is an array of macro values keyed by name,
13246 # likewise P contains macro parameters if any. Preserve backslash
13247 # newline sequences.
13248
13249 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13250 sed -n '
13251 s/.\{148\}/&'"$ac_delim"'/g
13252 t rset
13253 :rset
13254 s/^[ ]*#[ ]*define[ ][ ]*/ /
13255 t def
13256 d
13257 :def
13258 s/\\$//
13259 t bsnl
13260 s/["\\]/\\&/g
13261 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13262 D["\1"]=" \3"/p
13263 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13264 d
13265 :bsnl
13266 s/["\\]/\\&/g
13267 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13268 D["\1"]=" \3\\\\\\n"\\/p
13269 t cont
13270 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13271 t cont
13272 d
13273 :cont
13274 n
13275 s/.\{148\}/&'"$ac_delim"'/g
13276 t clear
13277 :clear
13278 s/\\$//
13279 t bsnlc
13280 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13281 d
13282 :bsnlc
13283 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13284 b cont
13285 ' <confdefs.h | sed '
13286 s/'"$ac_delim"'/"\\\
13287 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13288
13289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13290 for (key in D) D_is_set[key] = 1
13291 FS = ""
13292 }
13293 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13294 line = \$ 0
13295 split(line, arg, " ")
13296 if (arg[1] == "#") {
13297 defundef = arg[2]
13298 mac1 = arg[3]
13299 } else {
13300 defundef = substr(arg[1], 2)
13301 mac1 = arg[2]
13302 }
13303 split(mac1, mac2, "(") #)
13304 macro = mac2[1]
13305 prefix = substr(line, 1, index(line, defundef) - 1)
13306 if (D_is_set[macro]) {
13307 # Preserve the white space surrounding the "#".
13308 print prefix "define", macro P[macro] D[macro]
13309 next
13310 } else {
13311 # Replace #undef with comments. This is necessary, for example,
13312 # in the case of _POSIX_SOURCE, which is predefined and required
13313 # on some systems where configure will not decide to define it.
13314 if (defundef == "undef") {
13315 print "/*", prefix defundef, macro, "*/"
13316 next
13317 }
13318 }
13319 }
13320 { print }
13321 _ACAWK
13322 _ACEOF
13323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13324 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13325 fi # test -n "$CONFIG_HEADERS"
13326
13327
13328 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13329 shift
13330 for ac_tag
13331 do
13332 case $ac_tag in
13333 :[FHLC]) ac_mode=$ac_tag; continue;;
13334 esac
13335 case $ac_mode$ac_tag in
13336 :[FHL]*:*);;
13337 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13338 :[FH]-) ac_tag=-:-;;
13339 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13340 esac
13341 ac_save_IFS=$IFS
13342 IFS=:
13343 set x $ac_tag
13344 IFS=$ac_save_IFS
13345 shift
13346 ac_file=$1
13347 shift
13348
13349 case $ac_mode in
13350 :L) ac_source=$1;;
13351 :[FH])
13352 ac_file_inputs=
13353 for ac_f
13354 do
13355 case $ac_f in
13356 -) ac_f="$ac_tmp/stdin";;
13357 *) # Look for the file first in the build tree, then in the source tree
13358 # (if the path is not absolute). The absolute path cannot be DOS-style,
13359 # because $ac_f cannot contain `:'.
13360 test -f "$ac_f" ||
13361 case $ac_f in
13362 [\\/$]*) false;;
13363 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13364 esac ||
13365 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13366 esac
13367 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13368 as_fn_append ac_file_inputs " '$ac_f'"
13369 done
13370
13371 # Let's still pretend it is `configure' which instantiates (i.e., don't
13372 # use $as_me), people would be surprised to read:
13373 # /* config.h. Generated by config.status. */
13374 configure_input='Generated from '`
13375 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13376 `' by configure.'
13377 if test x"$ac_file" != x-; then
13378 configure_input="$ac_file. $configure_input"
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13380 $as_echo "$as_me: creating $ac_file" >&6;}
13381 fi
13382 # Neutralize special characters interpreted by sed in replacement strings.
13383 case $configure_input in #(
13384 *\&* | *\|* | *\\* )
13385 ac_sed_conf_input=`$as_echo "$configure_input" |
13386 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13387 *) ac_sed_conf_input=$configure_input;;
13388 esac
13389
13390 case $ac_tag in
13391 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13392 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13393 esac
13394 ;;
13395 esac
13396
13397 ac_dir=`$as_dirname -- "$ac_file" ||
13398 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13399 X"$ac_file" : 'X\(//\)[^/]' \| \
13400 X"$ac_file" : 'X\(//\)$' \| \
13401 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13402 $as_echo X"$ac_file" |
13403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13404 s//\1/
13405 q
13406 }
13407 /^X\(\/\/\)[^/].*/{
13408 s//\1/
13409 q
13410 }
13411 /^X\(\/\/\)$/{
13412 s//\1/
13413 q
13414 }
13415 /^X\(\/\).*/{
13416 s//\1/
13417 q
13418 }
13419 s/.*/./; q'`
13420 as_dir="$ac_dir"; as_fn_mkdir_p
13421 ac_builddir=.
13422
13423 case "$ac_dir" in
13424 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13425 *)
13426 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13427 # A ".." for each directory in $ac_dir_suffix.
13428 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13429 case $ac_top_builddir_sub in
13430 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13431 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13432 esac ;;
13433 esac
13434 ac_abs_top_builddir=$ac_pwd
13435 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13436 # for backward compatibility:
13437 ac_top_builddir=$ac_top_build_prefix
13438
13439 case $srcdir in
13440 .) # We are building in place.
13441 ac_srcdir=.
13442 ac_top_srcdir=$ac_top_builddir_sub
13443 ac_abs_top_srcdir=$ac_pwd ;;
13444 [\\/]* | ?:[\\/]* ) # Absolute name.
13445 ac_srcdir=$srcdir$ac_dir_suffix;
13446 ac_top_srcdir=$srcdir
13447 ac_abs_top_srcdir=$srcdir ;;
13448 *) # Relative name.
13449 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13450 ac_top_srcdir=$ac_top_build_prefix$srcdir
13451 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13452 esac
13453 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13454
13455
13456 case $ac_mode in
13457 :F)
13458 #
13459 # CONFIG_FILE
13460 #
13461
13462 case $INSTALL in
13463 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13464 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13465 esac
13466 ac_MKDIR_P=$MKDIR_P
13467 case $MKDIR_P in
13468 [\\/$]* | ?:[\\/]* ) ;;
13469 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13470 esac
13471 _ACEOF
13472
13473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13474 # If the template does not know about datarootdir, expand it.
13475 # FIXME: This hack should be removed a few years after 2.60.
13476 ac_datarootdir_hack=; ac_datarootdir_seen=
13477 ac_sed_dataroot='
13478 /datarootdir/ {
13479 p
13480 q
13481 }
13482 /@datadir@/p
13483 /@docdir@/p
13484 /@infodir@/p
13485 /@localedir@/p
13486 /@mandir@/p'
13487 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13488 *datarootdir*) ac_datarootdir_seen=yes;;
13489 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13491 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13492 _ACEOF
13493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13494 ac_datarootdir_hack='
13495 s&@datadir@&$datadir&g
13496 s&@docdir@&$docdir&g
13497 s&@infodir@&$infodir&g
13498 s&@localedir@&$localedir&g
13499 s&@mandir@&$mandir&g
13500 s&\\\${datarootdir}&$datarootdir&g' ;;
13501 esac
13502 _ACEOF
13503
13504 # Neutralize VPATH when `$srcdir' = `.'.
13505 # Shell code in configure.ac might set extrasub.
13506 # FIXME: do we really want to maintain this feature?
13507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13508 ac_sed_extra="$ac_vpsub
13509 $extrasub
13510 _ACEOF
13511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13512 :t
13513 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13514 s|@configure_input@|$ac_sed_conf_input|;t t
13515 s&@top_builddir@&$ac_top_builddir_sub&;t t
13516 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13517 s&@srcdir@&$ac_srcdir&;t t
13518 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13519 s&@top_srcdir@&$ac_top_srcdir&;t t
13520 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13521 s&@builddir@&$ac_builddir&;t t
13522 s&@abs_builddir@&$ac_abs_builddir&;t t
13523 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13524 s&@INSTALL@&$ac_INSTALL&;t t
13525 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13526 $ac_datarootdir_hack
13527 "
13528 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13529 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13530
13531 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13532 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13533 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13534 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13536 which seems to be undefined. Please make sure it is defined" >&5
13537 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13538 which seems to be undefined. Please make sure it is defined" >&2;}
13539
13540 rm -f "$ac_tmp/stdin"
13541 case $ac_file in
13542 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13543 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13544 esac \
13545 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13546 ;;
13547 :H)
13548 #
13549 # CONFIG_HEADER
13550 #
13551 if test x"$ac_file" != x-; then
13552 {
13553 $as_echo "/* $configure_input */" \
13554 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13555 } >"$ac_tmp/config.h" \
13556 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13557 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13559 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13560 else
13561 rm -f "$ac_file"
13562 mv "$ac_tmp/config.h" "$ac_file" \
13563 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13564 fi
13565 else
13566 $as_echo "/* $configure_input */" \
13567 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13568 || as_fn_error $? "could not create -" "$LINENO" 5
13569 fi
13570 # Compute "$ac_file"'s index in $config_headers.
13571 _am_arg="$ac_file"
13572 _am_stamp_count=1
13573 for _am_header in $config_headers :; do
13574 case $_am_header in
13575 $_am_arg | $_am_arg:* )
13576 break ;;
13577 * )
13578 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13579 esac
13580 done
13581 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13582 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13583 X"$_am_arg" : 'X\(//\)[^/]' \| \
13584 X"$_am_arg" : 'X\(//\)$' \| \
13585 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13586 $as_echo X"$_am_arg" |
13587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13588 s//\1/
13589 q
13590 }
13591 /^X\(\/\/\)[^/].*/{
13592 s//\1/
13593 q
13594 }
13595 /^X\(\/\/\)$/{
13596 s//\1/
13597 q
13598 }
13599 /^X\(\/\).*/{
13600 s//\1/
13601 q
13602 }
13603 s/.*/./; q'`/stamp-h$_am_stamp_count
13604 ;;
13605
13606 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13607 $as_echo "$as_me: executing $ac_file commands" >&6;}
13608 ;;
13609 esac
13610
13611
13612 case $ac_file$ac_mode in
13613 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13614 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13615 # are listed without --file. Let's play safe and only enable the eval
13616 # if we detect the quoting.
13617 case $CONFIG_FILES in
13618 *\'*) eval set x "$CONFIG_FILES" ;;
13619 *) set x $CONFIG_FILES ;;
13620 esac
13621 shift
13622 for mf
13623 do
13624 # Strip MF so we end up with the name of the file.
13625 mf=`echo "$mf" | sed -e 's/:.*$//'`
13626 # Check whether this is an Automake generated Makefile or not.
13627 # We used to match only the files named `Makefile.in', but
13628 # some people rename them; so instead we look at the file content.
13629 # Grep'ing the first line is not enough: some people post-process
13630 # each Makefile.in and add a new line on top of each file to say so.
13631 # Grep'ing the whole file is not good either: AIX grep has a line
13632 # limit of 2048, but all sed's we know have understand at least 4000.
13633 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13634 dirpart=`$as_dirname -- "$mf" ||
13635 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13636 X"$mf" : 'X\(//\)[^/]' \| \
13637 X"$mf" : 'X\(//\)$' \| \
13638 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13639 $as_echo X"$mf" |
13640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13641 s//\1/
13642 q
13643 }
13644 /^X\(\/\/\)[^/].*/{
13645 s//\1/
13646 q
13647 }
13648 /^X\(\/\/\)$/{
13649 s//\1/
13650 q
13651 }
13652 /^X\(\/\).*/{
13653 s//\1/
13654 q
13655 }
13656 s/.*/./; q'`
13657 else
13658 continue
13659 fi
13660 # Extract the definition of DEPDIR, am__include, and am__quote
13661 # from the Makefile without running `make'.
13662 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13663 test -z "$DEPDIR" && continue
13664 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13665 test -z "am__include" && continue
13666 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13667 # When using ansi2knr, U may be empty or an underscore; expand it
13668 U=`sed -n 's/^U = //p' < "$mf"`
13669 # Find all dependency output files, they are included files with
13670 # $(DEPDIR) in their names. We invoke sed twice because it is the
13671 # simplest approach to changing $(DEPDIR) to its actual value in the
13672 # expansion.
13673 for file in `sed -n "
13674 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13675 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13676 # Make sure the directory exists.
13677 test -f "$dirpart/$file" && continue
13678 fdir=`$as_dirname -- "$file" ||
13679 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13680 X"$file" : 'X\(//\)[^/]' \| \
13681 X"$file" : 'X\(//\)$' \| \
13682 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13683 $as_echo X"$file" |
13684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13685 s//\1/
13686 q
13687 }
13688 /^X\(\/\/\)[^/].*/{
13689 s//\1/
13690 q
13691 }
13692 /^X\(\/\/\)$/{
13693 s//\1/
13694 q
13695 }
13696 /^X\(\/\).*/{
13697 s//\1/
13698 q
13699 }
13700 s/.*/./; q'`
13701 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13702 # echo "creating $dirpart/$file"
13703 echo '# dummy' > "$dirpart/$file"
13704 done
13705 done
13706 }
13707 ;;
13708 "libtool":C)
13709
13710 # See if we are running on zsh, and set the options which allow our
13711 # commands through without removal of \ escapes.
13712 if test -n "${ZSH_VERSION+set}" ; then
13713 setopt NO_GLOB_SUBST
13714 fi
13715
13716 cfgfile="${ofile}T"
13717 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13718 $RM "$cfgfile"
13719
13720 cat <<_LT_EOF >> "$cfgfile"
13721 #! $SHELL
13722
13723 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13724 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13725 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13726 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13727 #
13728 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13729 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13730 # Inc.
13731 # Written by Gordon Matzigkeit, 1996
13732 #
13733 # This file is part of GNU Libtool.
13734 #
13735 # GNU Libtool is free software; you can redistribute it and/or
13736 # modify it under the terms of the GNU General Public License as
13737 # published by the Free Software Foundation; either version 2 of
13738 # the License, or (at your option) any later version.
13739 #
13740 # As a special exception to the GNU General Public License,
13741 # if you distribute this file as part of a program or library that
13742 # is built using GNU Libtool, you may include this file under the
13743 # same distribution terms that you use for the rest of that program.
13744 #
13745 # GNU Libtool is distributed in the hope that it will be useful,
13746 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13747 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13748 # GNU General Public License for more details.
13749 #
13750 # You should have received a copy of the GNU General Public License
13751 # along with GNU Libtool; see the file COPYING. If not, a copy
13752 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13753 # obtained by writing to the Free Software Foundation, Inc.,
13754 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13755
13756
13757 # The names of the tagged configurations supported by this script.
13758 available_tags=""
13759
13760 # ### BEGIN LIBTOOL CONFIG
13761
13762 # Which release of libtool.m4 was used?
13763 macro_version=$macro_version
13764 macro_revision=$macro_revision
13765
13766 # Whether or not to build shared libraries.
13767 build_libtool_libs=$enable_shared
13768
13769 # Whether or not to build static libraries.
13770 build_old_libs=$enable_static
13771
13772 # What type of objects to build.
13773 pic_mode=$pic_mode
13774
13775 # Whether or not to optimize for fast installation.
13776 fast_install=$enable_fast_install
13777
13778 # Shell to use when invoking shell scripts.
13779 SHELL=$lt_SHELL
13780
13781 # An echo program that protects backslashes.
13782 ECHO=$lt_ECHO
13783
13784 # The host system.
13785 host_alias=$host_alias
13786 host=$host
13787 host_os=$host_os
13788
13789 # The build system.
13790 build_alias=$build_alias
13791 build=$build
13792 build_os=$build_os
13793
13794 # A sed program that does not truncate output.
13795 SED=$lt_SED
13796
13797 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13798 Xsed="\$SED -e 1s/^X//"
13799
13800 # A grep program that handles long lines.
13801 GREP=$lt_GREP
13802
13803 # An ERE matcher.
13804 EGREP=$lt_EGREP
13805
13806 # A literal string matcher.
13807 FGREP=$lt_FGREP
13808
13809 # A BSD- or MS-compatible name lister.
13810 NM=$lt_NM
13811
13812 # Whether we need soft or hard links.
13813 LN_S=$lt_LN_S
13814
13815 # What is the maximum length of a command?
13816 max_cmd_len=$max_cmd_len
13817
13818 # Object file suffix (normally "o").
13819 objext=$ac_objext
13820
13821 # Executable file suffix (normally "").
13822 exeext=$exeext
13823
13824 # whether the shell understands "unset".
13825 lt_unset=$lt_unset
13826
13827 # turn spaces into newlines.
13828 SP2NL=$lt_lt_SP2NL
13829
13830 # turn newlines into spaces.
13831 NL2SP=$lt_lt_NL2SP
13832
13833 # convert \$build file names to \$host format.
13834 to_host_file_cmd=$lt_cv_to_host_file_cmd
13835
13836 # convert \$build files to toolchain format.
13837 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13838
13839 # An object symbol dumper.
13840 OBJDUMP=$lt_OBJDUMP
13841
13842 # Method to check whether dependent libraries are shared objects.
13843 deplibs_check_method=$lt_deplibs_check_method
13844
13845 # Command to use when deplibs_check_method = "file_magic".
13846 file_magic_cmd=$lt_file_magic_cmd
13847
13848 # How to find potential files when deplibs_check_method = "file_magic".
13849 file_magic_glob=$lt_file_magic_glob
13850
13851 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13852 want_nocaseglob=$lt_want_nocaseglob
13853
13854 # DLL creation program.
13855 DLLTOOL=$lt_DLLTOOL
13856
13857 # Command to associate shared and link libraries.
13858 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13859
13860 # The archiver.
13861 AR=$lt_AR
13862
13863 # Flags to create an archive.
13864 AR_FLAGS=$lt_AR_FLAGS
13865
13866 # How to feed a file listing to the archiver.
13867 archiver_list_spec=$lt_archiver_list_spec
13868
13869 # A symbol stripping program.
13870 STRIP=$lt_STRIP
13871
13872 # Commands used to install an old-style archive.
13873 RANLIB=$lt_RANLIB
13874 old_postinstall_cmds=$lt_old_postinstall_cmds
13875 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13876
13877 # Whether to use a lock for old archive extraction.
13878 lock_old_archive_extraction=$lock_old_archive_extraction
13879
13880 # A C compiler.
13881 LTCC=$lt_CC
13882
13883 # LTCC compiler flags.
13884 LTCFLAGS=$lt_CFLAGS
13885
13886 # Take the output of nm and produce a listing of raw symbols and C names.
13887 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13888
13889 # Transform the output of nm in a proper C declaration.
13890 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13891
13892 # Transform the output of nm in a C name address pair.
13893 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13894
13895 # Transform the output of nm in a C name address pair when lib prefix is needed.
13896 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13897
13898 # Specify filename containing input files for \$NM.
13899 nm_file_list_spec=$lt_nm_file_list_spec
13900
13901 # The root where to search for dependent libraries,and in which our libraries should be installed.
13902 lt_sysroot=$lt_sysroot
13903
13904 # The name of the directory that contains temporary libtool files.
13905 objdir=$objdir
13906
13907 # Used to examine libraries when file_magic_cmd begins with "file".
13908 MAGIC_CMD=$MAGIC_CMD
13909
13910 # Must we lock files when doing compilation?
13911 need_locks=$lt_need_locks
13912
13913 # Manifest tool.
13914 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13915
13916 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13917 DSYMUTIL=$lt_DSYMUTIL
13918
13919 # Tool to change global to local symbols on Mac OS X.
13920 NMEDIT=$lt_NMEDIT
13921
13922 # Tool to manipulate fat objects and archives on Mac OS X.
13923 LIPO=$lt_LIPO
13924
13925 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13926 OTOOL=$lt_OTOOL
13927
13928 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13929 OTOOL64=$lt_OTOOL64
13930
13931 # Old archive suffix (normally "a").
13932 libext=$libext
13933
13934 # Shared library suffix (normally ".so").
13935 shrext_cmds=$lt_shrext_cmds
13936
13937 # The commands to extract the exported symbol list from a shared archive.
13938 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13939
13940 # Variables whose values should be saved in libtool wrapper scripts and
13941 # restored at link time.
13942 variables_saved_for_relink=$lt_variables_saved_for_relink
13943
13944 # Do we need the "lib" prefix for modules?
13945 need_lib_prefix=$need_lib_prefix
13946
13947 # Do we need a version for libraries?
13948 need_version=$need_version
13949
13950 # Library versioning type.
13951 version_type=$version_type
13952
13953 # Shared library runtime path variable.
13954 runpath_var=$runpath_var
13955
13956 # Shared library path variable.
13957 shlibpath_var=$shlibpath_var
13958
13959 # Is shlibpath searched before the hard-coded library search path?
13960 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13961
13962 # Format of library name prefix.
13963 libname_spec=$lt_libname_spec
13964
13965 # List of archive names. First name is the real one, the rest are links.
13966 # The last name is the one that the linker finds with -lNAME
13967 library_names_spec=$lt_library_names_spec
13968
13969 # The coded name of the library, if different from the real name.
13970 soname_spec=$lt_soname_spec
13971
13972 # Permission mode override for installation of shared libraries.
13973 install_override_mode=$lt_install_override_mode
13974
13975 # Command to use after installation of a shared archive.
13976 postinstall_cmds=$lt_postinstall_cmds
13977
13978 # Command to use after uninstallation of a shared archive.
13979 postuninstall_cmds=$lt_postuninstall_cmds
13980
13981 # Commands used to finish a libtool library installation in a directory.
13982 finish_cmds=$lt_finish_cmds
13983
13984 # As "finish_cmds", except a single script fragment to be evaled but
13985 # not shown.
13986 finish_eval=$lt_finish_eval
13987
13988 # Whether we should hardcode library paths into libraries.
13989 hardcode_into_libs=$hardcode_into_libs
13990
13991 # Compile-time system search path for libraries.
13992 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13993
13994 # Run-time system search path for libraries.
13995 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13996
13997 # Whether dlopen is supported.
13998 dlopen_support=$enable_dlopen
13999
14000 # Whether dlopen of programs is supported.
14001 dlopen_self=$enable_dlopen_self
14002
14003 # Whether dlopen of statically linked programs is supported.
14004 dlopen_self_static=$enable_dlopen_self_static
14005
14006 # Commands to strip libraries.
14007 old_striplib=$lt_old_striplib
14008 striplib=$lt_striplib
14009
14010
14011 # The linker used to build libraries.
14012 LD=$lt_LD
14013
14014 # How to create reloadable object files.
14015 reload_flag=$lt_reload_flag
14016 reload_cmds=$lt_reload_cmds
14017
14018 # Commands used to build an old-style archive.
14019 old_archive_cmds=$lt_old_archive_cmds
14020
14021 # A language specific compiler.
14022 CC=$lt_compiler
14023
14024 # Is the compiler the GNU compiler?
14025 with_gcc=$GCC
14026
14027 # Compiler flag to turn off builtin functions.
14028 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14029
14030 # Additional compiler flags for building library objects.
14031 pic_flag=$lt_lt_prog_compiler_pic
14032
14033 # How to pass a linker flag through the compiler.
14034 wl=$lt_lt_prog_compiler_wl
14035
14036 # Compiler flag to prevent dynamic linking.
14037 link_static_flag=$lt_lt_prog_compiler_static
14038
14039 # Does compiler simultaneously support -c and -o options?
14040 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14041
14042 # Whether or not to add -lc for building shared libraries.
14043 build_libtool_need_lc=$archive_cmds_need_lc
14044
14045 # Whether or not to disallow shared libs when runtime libs are static.
14046 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14047
14048 # Compiler flag to allow reflexive dlopens.
14049 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14050
14051 # Compiler flag to generate shared objects directly from archives.
14052 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14053
14054 # Whether the compiler copes with passing no objects directly.
14055 compiler_needs_object=$lt_compiler_needs_object
14056
14057 # Create an old-style archive from a shared archive.
14058 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14059
14060 # Create a temporary old-style archive to link instead of a shared archive.
14061 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14062
14063 # Commands used to build a shared archive.
14064 archive_cmds=$lt_archive_cmds
14065 archive_expsym_cmds=$lt_archive_expsym_cmds
14066
14067 # Commands used to build a loadable module if different from building
14068 # a shared archive.
14069 module_cmds=$lt_module_cmds
14070 module_expsym_cmds=$lt_module_expsym_cmds
14071
14072 # Whether we are building with GNU ld or not.
14073 with_gnu_ld=$lt_with_gnu_ld
14074
14075 # Flag that allows shared libraries with undefined symbols to be built.
14076 allow_undefined_flag=$lt_allow_undefined_flag
14077
14078 # Flag that enforces no undefined symbols.
14079 no_undefined_flag=$lt_no_undefined_flag
14080
14081 # Flag to hardcode \$libdir into a binary during linking.
14082 # This must work even if \$libdir does not exist
14083 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14084
14085 # If ld is used when linking, flag to hardcode \$libdir into a binary
14086 # during linking. This must work even if \$libdir does not exist.
14087 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14088
14089 # Whether we need a single "-rpath" flag with a separated argument.
14090 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14091
14092 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14093 # DIR into the resulting binary.
14094 hardcode_direct=$hardcode_direct
14095
14096 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14097 # DIR into the resulting binary and the resulting library dependency is
14098 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14099 # library is relocated.
14100 hardcode_direct_absolute=$hardcode_direct_absolute
14101
14102 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14103 # into the resulting binary.
14104 hardcode_minus_L=$hardcode_minus_L
14105
14106 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14107 # into the resulting binary.
14108 hardcode_shlibpath_var=$hardcode_shlibpath_var
14109
14110 # Set to "yes" if building a shared library automatically hardcodes DIR
14111 # into the library and all subsequent libraries and executables linked
14112 # against it.
14113 hardcode_automatic=$hardcode_automatic
14114
14115 # Set to yes if linker adds runtime paths of dependent libraries
14116 # to runtime path list.
14117 inherit_rpath=$inherit_rpath
14118
14119 # Whether libtool must link a program against all its dependency libraries.
14120 link_all_deplibs=$link_all_deplibs
14121
14122 # Set to "yes" if exported symbols are required.
14123 always_export_symbols=$always_export_symbols
14124
14125 # The commands to list exported symbols.
14126 export_symbols_cmds=$lt_export_symbols_cmds
14127
14128 # Symbols that should not be listed in the preloaded symbols.
14129 exclude_expsyms=$lt_exclude_expsyms
14130
14131 # Symbols that must always be exported.
14132 include_expsyms=$lt_include_expsyms
14133
14134 # Commands necessary for linking programs (against libraries) with templates.
14135 prelink_cmds=$lt_prelink_cmds
14136
14137 # Commands necessary for finishing linking programs.
14138 postlink_cmds=$lt_postlink_cmds
14139
14140 # Specify filename containing input files.
14141 file_list_spec=$lt_file_list_spec
14142
14143 # How to hardcode a shared library path into an executable.
14144 hardcode_action=$hardcode_action
14145
14146 # ### END LIBTOOL CONFIG
14147
14148 _LT_EOF
14149
14150 case $host_os in
14151 aix3*)
14152 cat <<\_LT_EOF >> "$cfgfile"
14153 # AIX sometimes has problems with the GCC collect2 program. For some
14154 # reason, if we set the COLLECT_NAMES environment variable, the problems
14155 # vanish in a puff of smoke.
14156 if test "X${COLLECT_NAMES+set}" != Xset; then
14157 COLLECT_NAMES=
14158 export COLLECT_NAMES
14159 fi
14160 _LT_EOF
14161 ;;
14162 esac
14163
14164
14165 ltmain="$ac_aux_dir/ltmain.sh"
14166
14167
14168 # We use sed instead of cat because bash on DJGPP gets confused if
14169 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14170 # text mode, it properly converts lines to CR/LF. This bash problem
14171 # is reportedly fixed, but why not run on old versions too?
14172 sed '$q' "$ltmain" >> "$cfgfile" \
14173 || (rm -f "$cfgfile"; exit 1)
14174
14175 if test x"$xsi_shell" = xyes; then
14176 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14177 func_dirname ()\
14178 {\
14179 \ case ${1} in\
14180 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14181 \ * ) func_dirname_result="${3}" ;;\
14182 \ esac\
14183 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14184 && mv -f "$cfgfile.tmp" "$cfgfile" \
14185 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14186 test 0 -eq $? || _lt_function_replace_fail=:
14187
14188
14189 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14190 func_basename ()\
14191 {\
14192 \ func_basename_result="${1##*/}"\
14193 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14194 && mv -f "$cfgfile.tmp" "$cfgfile" \
14195 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14196 test 0 -eq $? || _lt_function_replace_fail=:
14197
14198
14199 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14200 func_dirname_and_basename ()\
14201 {\
14202 \ case ${1} in\
14203 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14204 \ * ) func_dirname_result="${3}" ;;\
14205 \ esac\
14206 \ func_basename_result="${1##*/}"\
14207 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14208 && mv -f "$cfgfile.tmp" "$cfgfile" \
14209 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14210 test 0 -eq $? || _lt_function_replace_fail=:
14211
14212
14213 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14214 func_stripname ()\
14215 {\
14216 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14217 \ # positional parameters, so assign one to ordinary parameter first.\
14218 \ func_stripname_result=${3}\
14219 \ func_stripname_result=${func_stripname_result#"${1}"}\
14220 \ func_stripname_result=${func_stripname_result%"${2}"}\
14221 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14222 && mv -f "$cfgfile.tmp" "$cfgfile" \
14223 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14224 test 0 -eq $? || _lt_function_replace_fail=:
14225
14226
14227 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14228 func_split_long_opt ()\
14229 {\
14230 \ func_split_long_opt_name=${1%%=*}\
14231 \ func_split_long_opt_arg=${1#*=}\
14232 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14233 && mv -f "$cfgfile.tmp" "$cfgfile" \
14234 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14235 test 0 -eq $? || _lt_function_replace_fail=:
14236
14237
14238 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14239 func_split_short_opt ()\
14240 {\
14241 \ func_split_short_opt_arg=${1#??}\
14242 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14243 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14244 && mv -f "$cfgfile.tmp" "$cfgfile" \
14245 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14246 test 0 -eq $? || _lt_function_replace_fail=:
14247
14248
14249 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14250 func_lo2o ()\
14251 {\
14252 \ case ${1} in\
14253 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14254 \ *) func_lo2o_result=${1} ;;\
14255 \ esac\
14256 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14257 && mv -f "$cfgfile.tmp" "$cfgfile" \
14258 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14259 test 0 -eq $? || _lt_function_replace_fail=:
14260
14261
14262 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14263 func_xform ()\
14264 {\
14265 func_xform_result=${1%.*}.lo\
14266 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14267 && mv -f "$cfgfile.tmp" "$cfgfile" \
14268 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14269 test 0 -eq $? || _lt_function_replace_fail=:
14270
14271
14272 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14273 func_arith ()\
14274 {\
14275 func_arith_result=$(( $* ))\
14276 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14277 && mv -f "$cfgfile.tmp" "$cfgfile" \
14278 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14279 test 0 -eq $? || _lt_function_replace_fail=:
14280
14281
14282 sed -e '/^func_len ()$/,/^} # func_len /c\
14283 func_len ()\
14284 {\
14285 func_len_result=${#1}\
14286 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14287 && mv -f "$cfgfile.tmp" "$cfgfile" \
14288 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14289 test 0 -eq $? || _lt_function_replace_fail=:
14290
14291 fi
14292
14293 if test x"$lt_shell_append" = xyes; then
14294 sed -e '/^func_append ()$/,/^} # func_append /c\
14295 func_append ()\
14296 {\
14297 eval "${1}+=\\${2}"\
14298 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14299 && mv -f "$cfgfile.tmp" "$cfgfile" \
14300 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14301 test 0 -eq $? || _lt_function_replace_fail=:
14302
14303
14304 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14305 func_append_quoted ()\
14306 {\
14307 \ func_quote_for_eval "${2}"\
14308 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14309 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14310 && mv -f "$cfgfile.tmp" "$cfgfile" \
14311 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14312 test 0 -eq $? || _lt_function_replace_fail=:
14313
14314
14315 # Save a `func_append' function call where possible by direct use of '+='
14316 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14317 && mv -f "$cfgfile.tmp" "$cfgfile" \
14318 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14319 test 0 -eq $? || _lt_function_replace_fail=:
14320 else
14321 # Save a `func_append' function call even when '+=' is not available
14322 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14323 && mv -f "$cfgfile.tmp" "$cfgfile" \
14324 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14325 test 0 -eq $? || _lt_function_replace_fail=:
14326 fi
14327
14328 if test x"$_lt_function_replace_fail" = x":"; then
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14330 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14331 fi
14332
14333
14334 mv -f "$cfgfile" "$ofile" ||
14335 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14336 chmod +x "$ofile"
14337
14338 ;;
14339
14340 esac
14341 done # for ac_tag
14342
14343
14344 as_fn_exit 0
14345 _ACEOF
14346 ac_clean_files=$ac_clean_files_save
14347
14348 test $ac_write_fail = 0 ||
14349 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14350
14351
14352 # configure is writing to config.log, and then calls config.status.
14353 # config.status does its own redirection, appending to config.log.
14354 # Unfortunately, on DOS this fails, as config.log is still kept open
14355 # by configure, so config.status won't be able to write to it; its
14356 # output is simply discarded. So we exec the FD to /dev/null,
14357 # effectively closing config.log, so it can be properly (re)opened and
14358 # appended to by config.status. When coming back to configure, we
14359 # need to make the FD available again.
14360 if test "$no_create" != yes; then
14361 ac_cs_success=:
14362 ac_config_status_args=
14363 test "$silent" = yes &&
14364 ac_config_status_args="$ac_config_status_args --quiet"
14365 exec 5>/dev/null
14366 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14367 exec 5>>config.log
14368 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14369 # would make configure fail if this is the last instruction.
14370 $ac_cs_success || as_fn_exit 1
14371 fi
14372 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14374 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14375 fi
14376
14377