configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXt 1.0.9.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255 fi
256 exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274 { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283 return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291 set +e
292 as_fn_set_status $1
293 exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302 case $as_dir in #(
303 -*) as_dir=./$as_dir;;
304 esac
305 test -d "$as_dir" || eval $as_mkdir_p || {
306 as_dirs=
307 while :; do
308 case $as_dir in #(
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310 *) as_qdir=$as_dir;;
311 esac
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)[^/].*/{
324 s//\1/
325 q
326 }
327 /^X\(\/\/\)$/{
328 s//\1/
329 q
330 }
331 /^X\(\/\).*/{
332 s//\1/
333 q
334 }
335 s/.*/./; q'`
336 test -d "$as_dir" && break
337 done
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
351 {
352 eval $1+=\$2
353 }'
354 else
355 as_fn_append ()
356 {
357 eval $1=\$$1\$2
358 }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367 eval 'as_fn_arith ()
368 {
369 as_val=$(( $* ))
370 }'
371 else
372 as_fn_arith ()
373 {
374 as_val=`expr "$@" || test $? -eq 1`
375 }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386 as_status=$1; test $as_status -eq 0 && as_status=1
387 if test "$4"; then
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 fi
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
397 as_expr=expr
398 else
399 as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403 as_basename=basename
404 else
405 as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409 as_dirname=dirname
410 else
411 as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\/\)$/{
424 s//\1/
425 q
426 }
427 /^X\/\(\/\).*/{
428 s//\1/
429 q
430 }
431 s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 sed -n '
447 p
448 /[$]LINENO/=
449 ' <$as_myself |
450 sed '
451 s/[$]LINENO.*/&-/
452 t lineno
453 b
454 :lineno
455 N
456 :loop
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 t loop
459 s/-\n.*//
460 ' >$as_me.lineno &&
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
467 . "./$as_me.lineno"
468 # Exit status is that of the last command.
469 exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 xy) ECHO_C='\c';;
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
479 ECHO_T=' ';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
488 else
489 rm -f conf$$.dir
490 mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s='ln -s'
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s=ln
503 else
504 as_ln_s='cp -p'
505 fi
506 else
507 as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520 as_test_x='test -x'
521 else
522 if ls -dL / >/dev/null 2>&1; then
523 as_ls_L_option=L
524 else
525 as_ls_L_option=
526 fi
527 as_test_x='
528 eval sh -c '\''
529 if test -d "$1"; then
530 test -d "$1/.";
531 else
532 case $1 in #(
533 -*)set "./$1";;
534 esac;
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
537 '\'' sh
538 '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='libXt'
573 PACKAGE_TARNAME='libXt'
574 PACKAGE_VERSION='1.0.9'
575 PACKAGE_STRING='libXt 1.0.9'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577 PACKAGE_URL=''
578
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 # include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 # include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 XTMALLOC_ZERO_CFLAGS
620 XMALLOC_ZERO_CFLAGS
621 MALLOC_ZERO_CFLAGS
622 STRINGSABIOPTIONS
623 appdefaultdir
624 XFILESEARCHPATHDEFAULT
625 XT_LIBS
626 XT_CFLAGS
627 LDFLAGS_FOR_BUILD
628 CFLAGS_FOR_BUILD
629 CC_FOR_BUILD
630 OTOOL64
631 OTOOL
632 LIPO
633 NMEDIT
634 DSYMUTIL
635 RANLIB
636 AR
637 OBJDUMP
638 LN_S
639 NM
640 ac_ct_DUMPBIN
641 DUMPBIN
642 LD
643 FGREP
644 LIBTOOL
645 AM_BACKSLASH
646 AM_DEFAULT_VERBOSITY
647 MAN_SUBSTS
648 XORG_MAN_PAGE
649 ADMIN_MAN_DIR
650 DRIVER_MAN_DIR
651 MISC_MAN_DIR
652 FILE_MAN_DIR
653 LIB_MAN_DIR
654 APP_MAN_DIR
655 ADMIN_MAN_SUFFIX
656 DRIVER_MAN_SUFFIX
657 MISC_MAN_SUFFIX
658 FILE_MAN_SUFFIX
659 LIB_MAN_SUFFIX
660 APP_MAN_SUFFIX
661 SED
662 host_os
663 host_vendor
664 host_cpu
665 host
666 build_os
667 build_vendor
668 build_cpu
669 build
670 INSTALL_CMD
671 PKG_CONFIG
672 CHANGELOG_CMD
673 CWARNFLAGS
674 EGREP
675 GREP
676 CPP
677 am__fastdepCC_FALSE
678 am__fastdepCC_TRUE
679 CCDEPMODE
680 AMDEPBACKSLASH
681 AMDEP_FALSE
682 AMDEP_TRUE
683 am__quote
684 am__include
685 DEPDIR
686 OBJEXT
687 EXEEXT
688 ac_ct_CC
689 CPPFLAGS
690 LDFLAGS
691 CFLAGS
692 CC
693 MAINT
694 MAINTAINER_MODE_FALSE
695 MAINTAINER_MODE_TRUE
696 am__untar
697 am__tar
698 AMTAR
699 am__leading_dot
700 SET_MAKE
701 AWK
702 mkdir_p
703 MKDIR_P
704 INSTALL_STRIP_PROGRAM
705 STRIP
706 install_sh
707 MAKEINFO
708 AUTOHEADER
709 AUTOMAKE
710 AUTOCONF
711 ACLOCAL
712 VERSION
713 PACKAGE
714 CYGPATH_W
715 am__isrc
716 INSTALL_DATA
717 INSTALL_SCRIPT
718 INSTALL_PROGRAM
719 target_alias
720 host_alias
721 build_alias
722 LIBS
723 ECHO_T
724 ECHO_N
725 ECHO_C
726 DEFS
727 mandir
728 localedir
729 libdir
730 psdir
731 pdfdir
732 dvidir
733 htmldir
734 infodir
735 docdir
736 oldincludedir
737 includedir
738 localstatedir
739 sharedstatedir
740 sysconfdir
741 datadir
742 datarootdir
743 libexecdir
744 sbindir
745 bindir
746 program_transform_name
747 prefix
748 exec_prefix
749 PACKAGE_URL
750 PACKAGE_BUGREPORT
751 PACKAGE_STRING
752 PACKAGE_VERSION
753 PACKAGE_TARNAME
754 PACKAGE_NAME
755 PATH_SEPARATOR
756 SHELL'
757 ac_subst_files=''
758 ac_user_opts='
759 enable_option_checking
760 enable_maintainer_mode
761 enable_dependency_tracking
762 enable_strict_compilation
763 enable_silent_rules
764 enable_shared
765 enable_static
766 with_pic
767 enable_fast_install
768 with_gnu_ld
769 enable_libtool_lock
770 enable_xkb
771 with_xfile_search_path
772 with_appdefaultdir
773 enable_malloc0returnsnull
774 '
775 ac_precious_vars='build_alias
776 host_alias
777 target_alias
778 CC
779 CFLAGS
780 LDFLAGS
781 LIBS
782 CPPFLAGS
783 CPP
784 PKG_CONFIG
785 XT_CFLAGS
786 XT_LIBS'
787
788
789 # Initialize some variables set by options.
790 ac_init_help=
791 ac_init_version=false
792 ac_unrecognized_opts=
793 ac_unrecognized_sep=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
796 cache_file=/dev/null
797 exec_prefix=NONE
798 no_create=
799 no_recursion=
800 prefix=NONE
801 program_prefix=NONE
802 program_suffix=NONE
803 program_transform_name=s,x,x,
804 silent=
805 site=
806 srcdir=
807 verbose=
808 x_includes=NONE
809 x_libraries=NONE
810
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
829 htmldir='${docdir}'
830 dvidir='${docdir}'
831 pdfdir='${docdir}'
832 psdir='${docdir}'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
836
837 ac_prev=
838 ac_dashdash=
839 for ac_option
840 do
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
844 ac_prev=
845 continue
846 fi
847
848 case $ac_option in
849 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 *=) ac_optarg= ;;
851 *) ac_optarg=yes ;;
852 esac
853
854 # Accept the important Cygnus configure options, so we can diagnose typos.
855
856 case $ac_dashdash$ac_option in
857 --)
858 ac_dashdash=yes ;;
859
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 ac_prev=bindir ;;
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 bindir=$ac_optarg ;;
864
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
869
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
876
877 --config-cache | -C)
878 cache_file=config.cache ;;
879
880 -datadir | --datadir | --datadi | --datad)
881 ac_prev=datadir ;;
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
884
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
891
892 -disable-* | --disable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error $? "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
900 *"
901 "enable_$ac_useropt"
902 "*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=no ;;
907
908 -docdir | --docdir | --docdi | --doc | --do)
909 ac_prev=docdir ;;
910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911 docdir=$ac_optarg ;;
912
913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 ac_prev=dvidir ;;
915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916 dvidir=$ac_optarg ;;
917
918 -enable-* | --enable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=\$ac_optarg ;;
933
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
941 exec_prefix=$ac_optarg ;;
942
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
945 with_gas=yes ;;
946
947 -help | --help | --hel | --he | -h)
948 ac_init_help=long ;;
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
953
954 -host | --host | --hos | --ho)
955 ac_prev=host_alias ;;
956 -host=* | --host=* | --hos=* | --ho=*)
957 host_alias=$ac_optarg ;;
958
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 ac_prev=htmldir ;;
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 | --ht=*)
963 htmldir=$ac_optarg ;;
964
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
970 includedir=$ac_optarg ;;
971
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 ac_prev=infodir ;;
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975 infodir=$ac_optarg ;;
976
977 -libdir | --libdir | --libdi | --libd)
978 ac_prev=libdir ;;
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 libdir=$ac_optarg ;;
981
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
987 libexecdir=$ac_optarg ;;
988
989 -localedir | --localedir | --localedi | --localed | --locale)
990 ac_prev=localedir ;;
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
993
994 -localstatedir | --localstatedir | --localstatedi | --localstated \
995 | --localstate | --localstat | --localsta | --localst | --locals)
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999 localstatedir=$ac_optarg ;;
1000
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 ac_prev=mandir ;;
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004 mandir=$ac_optarg ;;
1005
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1008 with_fp=no ;;
1009
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011 | --no-cr | --no-c | -n)
1012 no_create=yes ;;
1013
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 no_recursion=yes ;;
1017
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025 oldincludedir=$ac_optarg ;;
1026
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 ac_prev=prefix ;;
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030 prefix=$ac_optarg ;;
1031
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037 program_prefix=$ac_optarg ;;
1038
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044 program_suffix=$ac_optarg ;;
1045
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
1061 program_transform_name=$ac_optarg ;;
1062
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 ac_prev=pdfdir ;;
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1067
1068 -psdir | --psdir | --psdi | --psd | --ps)
1069 ac_prev=psdir ;;
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 psdir=$ac_optarg ;;
1072
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 silent=yes ;;
1076
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 ac_prev=sbindir ;;
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 | --sbi=* | --sb=*)
1081 sbindir=$ac_optarg ;;
1082
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1086 | --sha | --sh)
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 | --sha=* | --sh=*)
1092 sharedstatedir=$ac_optarg ;;
1093
1094 -site | --site | --sit)
1095 ac_prev=site ;;
1096 -site=* | --site=* | --sit=*)
1097 site=$ac_optarg ;;
1098
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 ac_prev=srcdir ;;
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102 srcdir=$ac_optarg ;;
1103
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109 sysconfdir=$ac_optarg ;;
1110
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
1112 ac_prev=target_alias ;;
1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114 target_alias=$ac_optarg ;;
1115
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 verbose=yes ;;
1118
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
1121
1122 -with-* | --with-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1130 *"
1131 "with_$ac_useropt"
1132 "*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=\$ac_optarg ;;
1137
1138 -without-* | --without-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=no ;;
1153
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1157
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1164
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1171
1172 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173 Try \`$0 --help' for more information"
1174 ;;
1175
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 case $ac_envvar in #(
1180 '' | [0-9]* | *[!_$as_cr_alnum]* )
1181 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182 esac
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1185
1186 *)
1187 # FIXME: should be removed in autoconf 3.0.
1188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192 ;;
1193
1194 esac
1195 done
1196
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 as_fn_error $? "missing argument to $ac_option"
1200 fi
1201
1202 if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1204 no) ;;
1205 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207 esac
1208 fi
1209
1210 # Check all directory arguments for consistency.
1211 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
1215 do
1216 eval ac_val=\$$ac_var
1217 # Remove trailing slashes.
1218 case $ac_val in
1219 */ )
1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\$ac_val;;
1222 esac
1223 # Be sure to have absolute directory names.
1224 case $ac_val in
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 esac
1228 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229 done
1230
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1234 build=$build_alias
1235 host=$host_alias
1236 target=$target_alias
1237
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1243 If a cross compiler is detected then cross compile mode will be used" >&2
1244 elif test "x$build_alias" != "x$host_alias"; then
1245 cross_compiling=yes
1246 fi
1247 fi
1248
1249 ac_tool_prefix=
1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251
1252 test "$silent" = yes && exec 6>/dev/null
1253
1254
1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256 ac_ls_di=`ls -di .` &&
1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258 as_fn_error $? "working directory cannot be determined"
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 as_fn_error $? "pwd does not report name of working directory"
1261
1262
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
1266 # Try the directory containing this script, then the parent directory.
1267 ac_confdir=`$as_dirname -- "$as_myself" ||
1268 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$as_myself" : 'X\(//\)[^/]' \| \
1270 X"$as_myself" : 'X\(//\)$' \| \
1271 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272 $as_echo X"$as_myself" |
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)[^/].*/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)$/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\).*/{
1286 s//\1/
1287 q
1288 }
1289 s/.*/./; q'`
1290 srcdir=$ac_confdir
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 srcdir=..
1293 fi
1294 else
1295 ac_srcdir_defaulted=no
1296 fi
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1300 fi
1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 ac_abs_confdir=`(
1303 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1304 pwd)`
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 srcdir=.
1308 fi
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1312 case $srcdir in
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 esac
1315 for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 done
1321
1322 #
1323 # Report the --help message.
1324 #
1325 if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1328 cat <<_ACEOF
1329 \`configure' configures libXt 1.0.9 to adapt to many kinds of systems.
1330
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1332
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE. See below for descriptions of some of the useful variables.
1335
1336 Defaults for the options are specified in brackets.
1337
1338 Configuration:
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking ...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1348
1349 Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
1351 [$ac_default_prefix]
1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1353 [PREFIX]
1354
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1359
1360 For better control, use the options below.
1361
1362 Fine tuning of the installation directories:
1363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/libXt]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
1382 _ACEOF
1383
1384 cat <<\_ACEOF
1385
1386 Program names:
1387 --program-prefix=PREFIX prepend PREFIX to installed program names
1388 --program-suffix=SUFFIX append SUFFIX to installed program names
1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1390
1391 System types:
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 _ACEOF
1395 fi
1396
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of libXt 1.0.9:";;
1400 esac
1401 cat <<\_ACEOF
1402
1403 Optional Features:
1404 --disable-option-checking ignore unrecognized --enable/--with options
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --enable-maintainer-mode enable make rules and dependencies not useful
1408 (and sometimes confusing) to the casual installer
1409 --disable-dependency-tracking speeds up one-time build
1410 --enable-dependency-tracking do not reject slow dependency extractors
1411 --enable-strict-compilation
1412 Enable all warnings from compiler and make them
1413 errors (default: disabled)
1414 --enable-silent-rules less verbose build output (undo: `make V=1')
1415 --disable-silent-rules verbose build output (undo: `make V=0')
1416 --enable-shared[=PKGS] build shared libraries [default=yes]
1417 --enable-static[=PKGS] build static libraries [default=yes]
1418 --enable-fast-install[=PKGS]
1419 optimize for fast installation [default=yes]
1420 --disable-libtool-lock avoid locking (might break parallel builds)
1421 --disable-xkb Disable XKB support
1422 --enable-malloc0returnsnull
1423 malloc(0) returns NULL (default: auto)
1424
1425 Optional Packages:
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1428 --with-pic try to use only PIC/non-PIC objects [default=use
1429 both]
1430 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1431 --with-xfile-search-path=<path>
1432 Set path to search for app-defaults and other files
1433 --with-appdefaultdir=<path>
1434 Set app-default directory (default:
1435 ${datadir}/X11/app-defaults)
1436
1437 Some influential environment variables:
1438 CC C compiler command
1439 CFLAGS C compiler flags
1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1441 nonstandard directory <lib dir>
1442 LIBS libraries to pass to the linker, e.g. -l<library>
1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444 you have headers in a nonstandard directory <include dir>
1445 CPP C preprocessor
1446 PKG_CONFIG path to pkg-config utility
1447 XT_CFLAGS C compiler flags for XT, overriding pkg-config
1448 XT_LIBS linker flags for XT, overriding pkg-config
1449
1450 Use these variables to override the choices made by `configure' or to help
1451 it to find libraries and programs with nonstandard names/locations.
1452
1453 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1454 _ACEOF
1455 ac_status=$?
1456 fi
1457
1458 if test "$ac_init_help" = "recursive"; then
1459 # If there are subdirs, report their specific --help.
1460 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461 test -d "$ac_dir" ||
1462 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1463 continue
1464 ac_builddir=.
1465
1466 case "$ac_dir" in
1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *)
1469 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1470 # A ".." for each directory in $ac_dir_suffix.
1471 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1472 case $ac_top_builddir_sub in
1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475 esac ;;
1476 esac
1477 ac_abs_top_builddir=$ac_pwd
1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479 # for backward compatibility:
1480 ac_top_builddir=$ac_top_build_prefix
1481
1482 case $srcdir in
1483 .) # We are building in place.
1484 ac_srcdir=.
1485 ac_top_srcdir=$ac_top_builddir_sub
1486 ac_abs_top_srcdir=$ac_pwd ;;
1487 [\\/]* | ?:[\\/]* ) # Absolute name.
1488 ac_srcdir=$srcdir$ac_dir_suffix;
1489 ac_top_srcdir=$srcdir
1490 ac_abs_top_srcdir=$srcdir ;;
1491 *) # Relative name.
1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493 ac_top_srcdir=$ac_top_build_prefix$srcdir
1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495 esac
1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497
1498 cd "$ac_dir" || { ac_status=$?; continue; }
1499 # Check for guested configure.
1500 if test -f "$ac_srcdir/configure.gnu"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503 elif test -f "$ac_srcdir/configure"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure" --help=recursive
1506 else
1507 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508 fi || ac_status=$?
1509 cd "$ac_pwd" || { ac_status=$?; break; }
1510 done
1511 fi
1512
1513 test -n "$ac_init_help" && exit $ac_status
1514 if $ac_init_version; then
1515 cat <<\_ACEOF
1516 libXt configure 1.0.9
1517 generated by GNU Autoconf 2.68
1518
1519 Copyright (C) 2010 Free Software Foundation, Inc.
1520 This configure script is free software; the Free Software Foundation
1521 gives unlimited permission to copy, distribute and modify it.
1522 _ACEOF
1523 exit
1524 fi
1525
1526 ## ------------------------ ##
1527 ## Autoconf initialization. ##
1528 ## ------------------------ ##
1529
1530 # ac_fn_c_try_compile LINENO
1531 # --------------------------
1532 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1533 ac_fn_c_try_compile ()
1534 {
1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536 rm -f conftest.$ac_objext
1537 if { { ac_try="$ac_compile"
1538 case "(($ac_try" in
1539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540 *) ac_try_echo=$ac_try;;
1541 esac
1542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543 $as_echo "$ac_try_echo"; } >&5
1544 (eval "$ac_compile") 2>conftest.err
1545 ac_status=$?
1546 if test -s conftest.err; then
1547 grep -v '^ *+' conftest.err >conftest.er1
1548 cat conftest.er1 >&5
1549 mv -f conftest.er1 conftest.err
1550 fi
1551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552 test $ac_status = 0; } && {
1553 test -z "$ac_c_werror_flag" ||
1554 test ! -s conftest.err
1555 } && test -s conftest.$ac_objext; then :
1556 ac_retval=0
1557 else
1558 $as_echo "$as_me: failed program was:" >&5
1559 sed 's/^/| /' conftest.$ac_ext >&5
1560
1561 ac_retval=1
1562 fi
1563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564 as_fn_set_status $ac_retval
1565
1566 } # ac_fn_c_try_compile
1567
1568 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1569 # ---------------------------------------------
1570 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1571 # accordingly.
1572 ac_fn_c_check_decl ()
1573 {
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 as_decl_name=`echo $2|sed 's/ *(.*//'`
1576 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1578 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1579 if eval \${$3+:} false; then :
1580 $as_echo_n "(cached) " >&6
1581 else
1582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1583 /* end confdefs.h. */
1584 $4
1585 int
1586 main ()
1587 {
1588 #ifndef $as_decl_name
1589 #ifdef __cplusplus
1590 (void) $as_decl_use;
1591 #else
1592 (void) $as_decl_name;
1593 #endif
1594 #endif
1595
1596 ;
1597 return 0;
1598 }
1599 _ACEOF
1600 if ac_fn_c_try_compile "$LINENO"; then :
1601 eval "$3=yes"
1602 else
1603 eval "$3=no"
1604 fi
1605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1606 fi
1607 eval ac_res=\$$3
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1609 $as_echo "$ac_res" >&6; }
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611
1612 } # ac_fn_c_check_decl
1613
1614 # ac_fn_c_try_cpp LINENO
1615 # ----------------------
1616 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1617 ac_fn_c_try_cpp ()
1618 {
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 if { { ac_try="$ac_cpp conftest.$ac_ext"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1633 fi
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } > conftest.i && {
1636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 }; then :
1639 ac_retval=0
1640 else
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1643
1644 ac_retval=1
1645 fi
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647 as_fn_set_status $ac_retval
1648
1649 } # ac_fn_c_try_cpp
1650
1651 # ac_fn_c_try_run LINENO
1652 # ----------------------
1653 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1654 # that executables *can* be run.
1655 ac_fn_c_try_run ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { { ac_try="$ac_link"
1659 case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_link") 2>&5
1666 ac_status=$?
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1669 { { case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_try") 2>&5
1676 ac_status=$?
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; }; }; then :
1679 ac_retval=0
1680 else
1681 $as_echo "$as_me: program exited with status $ac_status" >&5
1682 $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1684
1685 ac_retval=$ac_status
1686 fi
1687 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
1690
1691 } # ac_fn_c_try_run
1692
1693 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1694 # -------------------------------------------------------
1695 # Tests whether HEADER exists and can be compiled using the include files in
1696 # INCLUDES, setting the cache variable VAR accordingly.
1697 ac_fn_c_check_header_compile ()
1698 {
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701 $as_echo_n "checking for $2... " >&6; }
1702 if eval \${$3+:} false; then :
1703 $as_echo_n "(cached) " >&6
1704 else
1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h. */
1707 $4
1708 #include <$2>
1709 _ACEOF
1710 if ac_fn_c_try_compile "$LINENO"; then :
1711 eval "$3=yes"
1712 else
1713 eval "$3=no"
1714 fi
1715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1716 fi
1717 eval ac_res=\$$3
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719 $as_echo "$ac_res" >&6; }
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721
1722 } # ac_fn_c_check_header_compile
1723
1724 # ac_fn_c_try_link LINENO
1725 # -----------------------
1726 # Try to link conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_c_try_link ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext conftest$ac_exeext
1731 if { { ac_try="$ac_link"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_link") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1744 fi
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest$ac_exeext && {
1750 test "$cross_compiling" = yes ||
1751 $as_test_x conftest$ac_exeext
1752 }; then :
1753 ac_retval=0
1754 else
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1757
1758 ac_retval=1
1759 fi
1760 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1761 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1762 # interfere with the next link command; also delete a directory that is
1763 # left behind by Apple's compiler. We do this before executing the actions.
1764 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 as_fn_set_status $ac_retval
1767
1768 } # ac_fn_c_try_link
1769
1770 # ac_fn_c_check_func LINENO FUNC VAR
1771 # ----------------------------------
1772 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1773 ac_fn_c_check_func ()
1774 {
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777 $as_echo_n "checking for $2... " >&6; }
1778 if eval \${$3+:} false; then :
1779 $as_echo_n "(cached) " >&6
1780 else
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1783 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1785 #define $2 innocuous_$2
1786
1787 /* System header to define __stub macros and hopefully few prototypes,
1788 which can conflict with char $2 (); below.
1789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1790 <limits.h> exists even on freestanding compilers. */
1791
1792 #ifdef __STDC__
1793 # include <limits.h>
1794 #else
1795 # include <assert.h>
1796 #endif
1797
1798 #undef $2
1799
1800 /* Override any GCC internal prototype to avoid an error.
1801 Use char because int might match the return type of a GCC
1802 builtin and then its argument prototype would still apply. */
1803 #ifdef __cplusplus
1804 extern "C"
1805 #endif
1806 char $2 ();
1807 /* The GNU C library defines this for functions which it implements
1808 to always fail with ENOSYS. Some functions are actually named
1809 something starting with __ and the normal name is an alias. */
1810 #if defined __stub_$2 || defined __stub___$2
1811 choke me
1812 #endif
1813
1814 int
1815 main ()
1816 {
1817 return $2 ();
1818 ;
1819 return 0;
1820 }
1821 _ACEOF
1822 if ac_fn_c_try_link "$LINENO"; then :
1823 eval "$3=yes"
1824 else
1825 eval "$3=no"
1826 fi
1827 rm -f core conftest.err conftest.$ac_objext \
1828 conftest$ac_exeext conftest.$ac_ext
1829 fi
1830 eval ac_res=\$$3
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834
1835 } # ac_fn_c_check_func
1836
1837 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1838 # -------------------------------------------------------
1839 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1840 # the include files in INCLUDES and setting the cache variable VAR
1841 # accordingly.
1842 ac_fn_c_check_header_mongrel ()
1843 {
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 if eval \${$3+:} false; then :
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval \${$3+:} false; then :
1849 $as_echo_n "(cached) " >&6
1850 fi
1851 eval ac_res=\$$3
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853 $as_echo "$ac_res" >&6; }
1854 else
1855 # Is the header compilable?
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1857 $as_echo_n "checking $2 usability... " >&6; }
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1860 $4
1861 #include <$2>
1862 _ACEOF
1863 if ac_fn_c_try_compile "$LINENO"; then :
1864 ac_header_compiler=yes
1865 else
1866 ac_header_compiler=no
1867 fi
1868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1870 $as_echo "$ac_header_compiler" >&6; }
1871
1872 # Is the header present?
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1874 $as_echo_n "checking $2 presence... " >&6; }
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1877 #include <$2>
1878 _ACEOF
1879 if ac_fn_c_try_cpp "$LINENO"; then :
1880 ac_header_preproc=yes
1881 else
1882 ac_header_preproc=no
1883 fi
1884 rm -f conftest.err conftest.i conftest.$ac_ext
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1886 $as_echo "$ac_header_preproc" >&6; }
1887
1888 # So? What about this header?
1889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1890 yes:no: )
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1892 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1894 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1895 ;;
1896 no:yes:* )
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1898 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1900 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1902 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1904 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1906 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1907 ( $as_echo "## ---------------------------------------------------------------------- ##
1908 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1909 ## ---------------------------------------------------------------------- ##"
1910 ) | sed "s/^/$as_me: WARNING: /" >&2
1911 ;;
1912 esac
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914 $as_echo_n "checking for $2... " >&6; }
1915 if eval \${$3+:} false; then :
1916 $as_echo_n "(cached) " >&6
1917 else
1918 eval "$3=\$ac_header_compiler"
1919 fi
1920 eval ac_res=\$$3
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1923 fi
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926 } # ac_fn_c_check_header_mongrel
1927 cat >config.log <<_ACEOF
1928 This file contains any messages produced by compilers while
1929 running configure, to aid debugging if configure makes a mistake.
1930
1931 It was created by libXt $as_me 1.0.9, which was
1932 generated by GNU Autoconf 2.68. Invocation command line was
1933
1934 $ $0 $@
1935
1936 _ACEOF
1937 exec 5>>config.log
1938 {
1939 cat <<_ASUNAME
1940 ## --------- ##
1941 ## Platform. ##
1942 ## --------- ##
1943
1944 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1945 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1946 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1947 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1948 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1949
1950 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1951 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1952
1953 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1954 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1955 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1956 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1957 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1958 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1959 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1960
1961 _ASUNAME
1962
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1965 do
1966 IFS=$as_save_IFS
1967 test -z "$as_dir" && as_dir=.
1968 $as_echo "PATH: $as_dir"
1969 done
1970 IFS=$as_save_IFS
1971
1972 } >&5
1973
1974 cat >&5 <<_ACEOF
1975
1976
1977 ## ----------- ##
1978 ## Core tests. ##
1979 ## ----------- ##
1980
1981 _ACEOF
1982
1983
1984 # Keep a trace of the command line.
1985 # Strip out --no-create and --no-recursion so they do not pile up.
1986 # Strip out --silent because we don't want to record it for future runs.
1987 # Also quote any args containing shell meta-characters.
1988 # Make two passes to allow for proper duplicate-argument suppression.
1989 ac_configure_args=
1990 ac_configure_args0=
1991 ac_configure_args1=
1992 ac_must_keep_next=false
1993 for ac_pass in 1 2
1994 do
1995 for ac_arg
1996 do
1997 case $ac_arg in
1998 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1999 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2000 | -silent | --silent | --silen | --sile | --sil)
2001 continue ;;
2002 *\'*)
2003 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2004 esac
2005 case $ac_pass in
2006 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2007 2)
2008 as_fn_append ac_configure_args1 " '$ac_arg'"
2009 if test $ac_must_keep_next = true; then
2010 ac_must_keep_next=false # Got value, back to normal.
2011 else
2012 case $ac_arg in
2013 *=* | --config-cache | -C | -disable-* | --disable-* \
2014 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2015 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2016 | -with-* | --with-* | -without-* | --without-* | --x)
2017 case "$ac_configure_args0 " in
2018 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2019 esac
2020 ;;
2021 -* ) ac_must_keep_next=true ;;
2022 esac
2023 fi
2024 as_fn_append ac_configure_args " '$ac_arg'"
2025 ;;
2026 esac
2027 done
2028 done
2029 { ac_configure_args0=; unset ac_configure_args0;}
2030 { ac_configure_args1=; unset ac_configure_args1;}
2031
2032 # When interrupted or exit'd, cleanup temporary files, and complete
2033 # config.log. We remove comments because anyway the quotes in there
2034 # would cause problems or look ugly.
2035 # WARNING: Use '\'' to represent an apostrophe within the trap.
2036 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2037 trap 'exit_status=$?
2038 # Save into config.log some information that might help in debugging.
2039 {
2040 echo
2041
2042 $as_echo "## ---------------- ##
2043 ## Cache variables. ##
2044 ## ---------------- ##"
2045 echo
2046 # The following way of writing the cache mishandles newlines in values,
2047 (
2048 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2049 eval ac_val=\$$ac_var
2050 case $ac_val in #(
2051 *${as_nl}*)
2052 case $ac_var in #(
2053 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2054 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2055 esac
2056 case $ac_var in #(
2057 _ | IFS | as_nl) ;; #(
2058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2059 *) { eval $ac_var=; unset $ac_var;} ;;
2060 esac ;;
2061 esac
2062 done
2063 (set) 2>&1 |
2064 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2065 *${as_nl}ac_space=\ *)
2066 sed -n \
2067 "s/'\''/'\''\\\\'\'''\''/g;
2068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2069 ;; #(
2070 *)
2071 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2072 ;;
2073 esac |
2074 sort
2075 )
2076 echo
2077
2078 $as_echo "## ----------------- ##
2079 ## Output variables. ##
2080 ## ----------------- ##"
2081 echo
2082 for ac_var in $ac_subst_vars
2083 do
2084 eval ac_val=\$$ac_var
2085 case $ac_val in
2086 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2087 esac
2088 $as_echo "$ac_var='\''$ac_val'\''"
2089 done | sort
2090 echo
2091
2092 if test -n "$ac_subst_files"; then
2093 $as_echo "## ------------------- ##
2094 ## File substitutions. ##
2095 ## ------------------- ##"
2096 echo
2097 for ac_var in $ac_subst_files
2098 do
2099 eval ac_val=\$$ac_var
2100 case $ac_val in
2101 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2102 esac
2103 $as_echo "$ac_var='\''$ac_val'\''"
2104 done | sort
2105 echo
2106 fi
2107
2108 if test -s confdefs.h; then
2109 $as_echo "## ----------- ##
2110 ## confdefs.h. ##
2111 ## ----------- ##"
2112 echo
2113 cat confdefs.h
2114 echo
2115 fi
2116 test "$ac_signal" != 0 &&
2117 $as_echo "$as_me: caught signal $ac_signal"
2118 $as_echo "$as_me: exit $exit_status"
2119 } >&5
2120 rm -f core *.core core.conftest.* &&
2121 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2122 exit $exit_status
2123 ' 0
2124 for ac_signal in 1 2 13 15; do
2125 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2126 done
2127 ac_signal=0
2128
2129 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2130 rm -f -r conftest* confdefs.h
2131
2132 $as_echo "/* confdefs.h */" > confdefs.h
2133
2134 # Predefined preprocessor variables.
2135
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_NAME "$PACKAGE_NAME"
2138 _ACEOF
2139
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2142 _ACEOF
2143
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2146 _ACEOF
2147
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_STRING "$PACKAGE_STRING"
2150 _ACEOF
2151
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2154 _ACEOF
2155
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_URL "$PACKAGE_URL"
2158 _ACEOF
2159
2160
2161 # Let the site file select an alternate cache file if it wants to.
2162 # Prefer an explicitly selected file to automatically selected ones.
2163 ac_site_file1=NONE
2164 ac_site_file2=NONE
2165 if test -n "$CONFIG_SITE"; then
2166 # We do not want a PATH search for config.site.
2167 case $CONFIG_SITE in #((
2168 -*) ac_site_file1=./$CONFIG_SITE;;
2169 */*) ac_site_file1=$CONFIG_SITE;;
2170 *) ac_site_file1=./$CONFIG_SITE;;
2171 esac
2172 elif test "x$prefix" != xNONE; then
2173 ac_site_file1=$prefix/share/config.site
2174 ac_site_file2=$prefix/etc/config.site
2175 else
2176 ac_site_file1=$ac_default_prefix/share/config.site
2177 ac_site_file2=$ac_default_prefix/etc/config.site
2178 fi
2179 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2180 do
2181 test "x$ac_site_file" = xNONE && continue
2182 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2184 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2185 sed 's/^/| /' "$ac_site_file" >&5
2186 . "$ac_site_file" \
2187 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2189 as_fn_error $? "failed to load site script $ac_site_file
2190 See \`config.log' for more details" "$LINENO" 5; }
2191 fi
2192 done
2193
2194 if test -r "$cache_file"; then
2195 # Some versions of bash will fail to source /dev/null (special files
2196 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2197 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2199 $as_echo "$as_me: loading cache $cache_file" >&6;}
2200 case $cache_file in
2201 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2202 *) . "./$cache_file";;
2203 esac
2204 fi
2205 else
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2207 $as_echo "$as_me: creating cache $cache_file" >&6;}
2208 >$cache_file
2209 fi
2210
2211 # Check that the precious variables saved in the cache have kept the same
2212 # value.
2213 ac_cache_corrupted=false
2214 for ac_var in $ac_precious_vars; do
2215 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2216 eval ac_new_set=\$ac_env_${ac_var}_set
2217 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2218 eval ac_new_val=\$ac_env_${ac_var}_value
2219 case $ac_old_set,$ac_new_set in
2220 set,)
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2222 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2223 ac_cache_corrupted=: ;;
2224 ,set)
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2226 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2227 ac_cache_corrupted=: ;;
2228 ,);;
2229 *)
2230 if test "x$ac_old_val" != "x$ac_new_val"; then
2231 # differences in whitespace do not lead to failure.
2232 ac_old_val_w=`echo x $ac_old_val`
2233 ac_new_val_w=`echo x $ac_new_val`
2234 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2236 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2237 ac_cache_corrupted=:
2238 else
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2240 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2241 eval $ac_var=\$ac_old_val
2242 fi
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2244 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2246 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2247 fi;;
2248 esac
2249 # Pass precious variables to config.status.
2250 if test "$ac_new_set" = set; then
2251 case $ac_new_val in
2252 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2253 *) ac_arg=$ac_var=$ac_new_val ;;
2254 esac
2255 case " $ac_configure_args " in
2256 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2257 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2258 esac
2259 fi
2260 done
2261 if $ac_cache_corrupted; then
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2265 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2266 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2267 fi
2268 ## -------------------- ##
2269 ## Main body of script. ##
2270 ## -------------------- ##
2271
2272 ac_ext=c
2273 ac_cpp='$CPP $CPPFLAGS'
2274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2277
2278
2279
2280 am__api_version='1.11'
2281
2282 ac_aux_dir=
2283 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2284 if test -f "$ac_dir/install-sh"; then
2285 ac_aux_dir=$ac_dir
2286 ac_install_sh="$ac_aux_dir/install-sh -c"
2287 break
2288 elif test -f "$ac_dir/install.sh"; then
2289 ac_aux_dir=$ac_dir
2290 ac_install_sh="$ac_aux_dir/install.sh -c"
2291 break
2292 elif test -f "$ac_dir/shtool"; then
2293 ac_aux_dir=$ac_dir
2294 ac_install_sh="$ac_aux_dir/shtool install -c"
2295 break
2296 fi
2297 done
2298 if test -z "$ac_aux_dir"; then
2299 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2300 fi
2301
2302 # These three variables are undocumented and unsupported,
2303 # and are intended to be withdrawn in a future Autoconf release.
2304 # They can cause serious problems if a builder's source tree is in a directory
2305 # whose full name contains unusual characters.
2306 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2307 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2308 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2309
2310
2311 # Find a good install program. We prefer a C program (faster),
2312 # so one script is as good as another. But avoid the broken or
2313 # incompatible versions:
2314 # SysV /etc/install, /usr/sbin/install
2315 # SunOS /usr/etc/install
2316 # IRIX /sbin/install
2317 # AIX /bin/install
2318 # AmigaOS /C/install, which installs bootblocks on floppy discs
2319 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2320 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2321 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2322 # OS/2's system install, which has a completely different semantic
2323 # ./install, which can be erroneously created by make from ./install.sh.
2324 # Reject install programs that cannot install multiple files.
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2326 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2327 if test -z "$INSTALL"; then
2328 if ${ac_cv_path_install+:} false; then :
2329 $as_echo_n "(cached) " >&6
2330 else
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 for as_dir in $PATH
2333 do
2334 IFS=$as_save_IFS
2335 test -z "$as_dir" && as_dir=.
2336 # Account for people who put trailing slashes in PATH elements.
2337 case $as_dir/ in #((
2338 ./ | .// | /[cC]/* | \
2339 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2340 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2341 /usr/ucb/* ) ;;
2342 *)
2343 # OSF1 and SCO ODT 3.0 have their own names for install.
2344 # Don't use installbsd from OSF since it installs stuff as root
2345 # by default.
2346 for ac_prog in ginstall scoinst install; do
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2349 if test $ac_prog = install &&
2350 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2351 # AIX install. It has an incompatible calling convention.
2352 :
2353 elif test $ac_prog = install &&
2354 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2355 # program-specific install script used by HP pwplus--don't use.
2356 :
2357 else
2358 rm -rf conftest.one conftest.two conftest.dir
2359 echo one > conftest.one
2360 echo two > conftest.two
2361 mkdir conftest.dir
2362 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2363 test -s conftest.one && test -s conftest.two &&
2364 test -s conftest.dir/conftest.one &&
2365 test -s conftest.dir/conftest.two
2366 then
2367 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2368 break 3
2369 fi
2370 fi
2371 fi
2372 done
2373 done
2374 ;;
2375 esac
2376
2377 done
2378 IFS=$as_save_IFS
2379
2380 rm -rf conftest.one conftest.two conftest.dir
2381
2382 fi
2383 if test "${ac_cv_path_install+set}" = set; then
2384 INSTALL=$ac_cv_path_install
2385 else
2386 # As a last resort, use the slow shell script. Don't cache a
2387 # value for INSTALL within a source directory, because that will
2388 # break other packages using the cache if that directory is
2389 # removed, or if the value is a relative name.
2390 INSTALL=$ac_install_sh
2391 fi
2392 fi
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2394 $as_echo "$INSTALL" >&6; }
2395
2396 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2397 # It thinks the first close brace ends the variable substitution.
2398 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2399
2400 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2401
2402 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2403
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2405 $as_echo_n "checking whether build environment is sane... " >&6; }
2406 # Just in case
2407 sleep 1
2408 echo timestamp > conftest.file
2409 # Reject unsafe characters in $srcdir or the absolute working directory
2410 # name. Accept space and tab only in the latter.
2411 am_lf='
2412 '
2413 case `pwd` in
2414 *[\\\"\#\$\&\'\`$am_lf]*)
2415 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2416 esac
2417 case $srcdir in
2418 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2419 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2420 esac
2421
2422 # Do `set' in a subshell so we don't clobber the current shell's
2423 # arguments. Must try -L first in case configure is actually a
2424 # symlink; some systems play weird games with the mod time of symlinks
2425 # (eg FreeBSD returns the mod time of the symlink's containing
2426 # directory).
2427 if (
2428 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2429 if test "$*" = "X"; then
2430 # -L didn't work.
2431 set X `ls -t "$srcdir/configure" conftest.file`
2432 fi
2433 rm -f conftest.file
2434 if test "$*" != "X $srcdir/configure conftest.file" \
2435 && test "$*" != "X conftest.file $srcdir/configure"; then
2436
2437 # If neither matched, then we have a broken ls. This can happen
2438 # if, for instance, CONFIG_SHELL is bash and it inherits a
2439 # broken ls alias from the environment. This has actually
2440 # happened. Such a system could not be considered "sane".
2441 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2442 alias in your environment" "$LINENO" 5
2443 fi
2444
2445 test "$2" = conftest.file
2446 )
2447 then
2448 # Ok.
2449 :
2450 else
2451 as_fn_error $? "newly created file is older than distributed files!
2452 Check your system clock" "$LINENO" 5
2453 fi
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2455 $as_echo "yes" >&6; }
2456 test "$program_prefix" != NONE &&
2457 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2458 # Use a double $ so make ignores it.
2459 test "$program_suffix" != NONE &&
2460 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2461 # Double any \ or $.
2462 # By default was `s,x,x', remove it if useless.
2463 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2464 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2465
2466 # expand $ac_aux_dir to an absolute path
2467 am_aux_dir=`cd $ac_aux_dir && pwd`
2468
2469 if test x"${MISSING+set}" != xset; then
2470 case $am_aux_dir in
2471 *\ * | *\ *)
2472 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2473 *)
2474 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2475 esac
2476 fi
2477 # Use eval to expand $SHELL
2478 if eval "$MISSING --run true"; then
2479 am_missing_run="$MISSING --run "
2480 else
2481 am_missing_run=
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2483 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2484 fi
2485
2486 if test x"${install_sh}" != xset; then
2487 case $am_aux_dir in
2488 *\ * | *\ *)
2489 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2490 *)
2491 install_sh="\${SHELL} $am_aux_dir/install-sh"
2492 esac
2493 fi
2494
2495 # Installed binaries are usually stripped using `strip' when the user
2496 # run `make install-strip'. However `strip' might not be the right
2497 # tool to use in cross-compilation environments, therefore Automake
2498 # will honor the `STRIP' environment variable to overrule this program.
2499 if test "$cross_compiling" != no; then
2500 if test -n "$ac_tool_prefix"; then
2501 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2502 set dummy ${ac_tool_prefix}strip; ac_word=$2
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2504 $as_echo_n "checking for $ac_word... " >&6; }
2505 if ${ac_cv_prog_STRIP+:} false; then :
2506 $as_echo_n "(cached) " >&6
2507 else
2508 if test -n "$STRIP"; then
2509 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2510 else
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2513 do
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2518 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2520 break 2
2521 fi
2522 done
2523 done
2524 IFS=$as_save_IFS
2525
2526 fi
2527 fi
2528 STRIP=$ac_cv_prog_STRIP
2529 if test -n "$STRIP"; then
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2531 $as_echo "$STRIP" >&6; }
2532 else
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2534 $as_echo "no" >&6; }
2535 fi
2536
2537
2538 fi
2539 if test -z "$ac_cv_prog_STRIP"; then
2540 ac_ct_STRIP=$STRIP
2541 # Extract the first word of "strip", so it can be a program name with args.
2542 set dummy strip; ac_word=$2
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2544 $as_echo_n "checking for $ac_word... " >&6; }
2545 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2546 $as_echo_n "(cached) " >&6
2547 else
2548 if test -n "$ac_ct_STRIP"; then
2549 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2550 else
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 for as_dir in $PATH
2553 do
2554 IFS=$as_save_IFS
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2558 ac_cv_prog_ac_ct_STRIP="strip"
2559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 break 2
2561 fi
2562 done
2563 done
2564 IFS=$as_save_IFS
2565
2566 fi
2567 fi
2568 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2569 if test -n "$ac_ct_STRIP"; then
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2571 $as_echo "$ac_ct_STRIP" >&6; }
2572 else
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2574 $as_echo "no" >&6; }
2575 fi
2576
2577 if test "x$ac_ct_STRIP" = x; then
2578 STRIP=":"
2579 else
2580 case $cross_compiling:$ac_tool_warned in
2581 yes:)
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2584 ac_tool_warned=yes ;;
2585 esac
2586 STRIP=$ac_ct_STRIP
2587 fi
2588 else
2589 STRIP="$ac_cv_prog_STRIP"
2590 fi
2591
2592 fi
2593 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2594
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2596 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2597 if test -z "$MKDIR_P"; then
2598 if ${ac_cv_path_mkdir+:} false; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2603 do
2604 IFS=$as_save_IFS
2605 test -z "$as_dir" && as_dir=.
2606 for ac_prog in mkdir gmkdir; do
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2609 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2610 'mkdir (GNU coreutils) '* | \
2611 'mkdir (coreutils) '* | \
2612 'mkdir (fileutils) '4.1*)
2613 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2614 break 3;;
2615 esac
2616 done
2617 done
2618 done
2619 IFS=$as_save_IFS
2620
2621 fi
2622
2623 test -d ./--version && rmdir ./--version
2624 if test "${ac_cv_path_mkdir+set}" = set; then
2625 MKDIR_P="$ac_cv_path_mkdir -p"
2626 else
2627 # As a last resort, use the slow shell script. Don't cache a
2628 # value for MKDIR_P within a source directory, because that will
2629 # break other packages using the cache if that directory is
2630 # removed, or if the value is a relative name.
2631 MKDIR_P="$ac_install_sh -d"
2632 fi
2633 fi
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2635 $as_echo "$MKDIR_P" >&6; }
2636
2637 mkdir_p="$MKDIR_P"
2638 case $mkdir_p in
2639 [\\/$]* | ?:[\\/]*) ;;
2640 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2641 esac
2642
2643 for ac_prog in gawk mawk nawk awk
2644 do
2645 # Extract the first word of "$ac_prog", so it can be a program name with args.
2646 set dummy $ac_prog; ac_word=$2
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648 $as_echo_n "checking for $ac_word... " >&6; }
2649 if ${ac_cv_prog_AWK+:} false; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 if test -n "$AWK"; then
2653 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2654 else
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 for as_dir in $PATH
2657 do
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2662 ac_cv_prog_AWK="$ac_prog"
2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 break 2
2665 fi
2666 done
2667 done
2668 IFS=$as_save_IFS
2669
2670 fi
2671 fi
2672 AWK=$ac_cv_prog_AWK
2673 if test -n "$AWK"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2675 $as_echo "$AWK" >&6; }
2676 else
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678 $as_echo "no" >&6; }
2679 fi
2680
2681
2682 test -n "$AWK" && break
2683 done
2684
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2686 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2687 set x ${MAKE-make}
2688 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2689 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2690 $as_echo_n "(cached) " >&6
2691 else
2692 cat >conftest.make <<\_ACEOF
2693 SHELL = /bin/sh
2694 all:
2695 @echo '@@@%%%=$(MAKE)=@@@%%%'
2696 _ACEOF
2697 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2698 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2699 *@@@%%%=?*=@@@%%%*)
2700 eval ac_cv_prog_make_${ac_make}_set=yes;;
2701 *)
2702 eval ac_cv_prog_make_${ac_make}_set=no;;
2703 esac
2704 rm -f conftest.make
2705 fi
2706 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2708 $as_echo "yes" >&6; }
2709 SET_MAKE=
2710 else
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712 $as_echo "no" >&6; }
2713 SET_MAKE="MAKE=${MAKE-make}"
2714 fi
2715
2716 rm -rf .tst 2>/dev/null
2717 mkdir .tst 2>/dev/null
2718 if test -d .tst; then
2719 am__leading_dot=.
2720 else
2721 am__leading_dot=_
2722 fi
2723 rmdir .tst 2>/dev/null
2724
2725 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2726 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2727 # is not polluted with repeated "-I."
2728 am__isrc=' -I$(srcdir)'
2729 # test to see if srcdir already configured
2730 if test -f $srcdir/config.status; then
2731 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2732 fi
2733 fi
2734
2735 # test whether we have cygpath
2736 if test -z "$CYGPATH_W"; then
2737 if (cygpath --version) >/dev/null 2>/dev/null; then
2738 CYGPATH_W='cygpath -w'
2739 else
2740 CYGPATH_W=echo
2741 fi
2742 fi
2743
2744
2745 # Define the identity of the package.
2746 PACKAGE='libXt'
2747 VERSION='1.0.9'
2748
2749
2750 cat >>confdefs.h <<_ACEOF
2751 #define PACKAGE "$PACKAGE"
2752 _ACEOF
2753
2754
2755 cat >>confdefs.h <<_ACEOF
2756 #define VERSION "$VERSION"
2757 _ACEOF
2758
2759 # Some tools Automake needs.
2760
2761 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2762
2763
2764 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2765
2766
2767 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2768
2769
2770 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2771
2772
2773 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2774
2775 # We need awk for the "check" target. The system "awk" is bad on
2776 # some platforms.
2777 # Always define AMTAR for backward compatibility.
2778
2779 AMTAR=${AMTAR-"${am_missing_run}tar"}
2780
2781 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2782
2783
2784
2785
2786
2787
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2789 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2790 # Check whether --enable-maintainer-mode was given.
2791 if test "${enable_maintainer_mode+set}" = set; then :
2792 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2793 else
2794 USE_MAINTAINER_MODE=no
2795 fi
2796
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2798 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2799 if test $USE_MAINTAINER_MODE = yes; then
2800 MAINTAINER_MODE_TRUE=
2801 MAINTAINER_MODE_FALSE='#'
2802 else
2803 MAINTAINER_MODE_TRUE='#'
2804 MAINTAINER_MODE_FALSE=
2805 fi
2806
2807 MAINT=$MAINTAINER_MODE_TRUE
2808
2809
2810
2811 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823 DEPDIR="${am__leading_dot}deps"
2824
2825 ac_config_commands="$ac_config_commands depfiles"
2826
2827
2828 am_make=${MAKE-make}
2829 cat > confinc << 'END'
2830 am__doit:
2831 @echo this is the am__doit target
2832 .PHONY: am__doit
2833 END
2834 # If we don't find an include directive, just comment out the code.
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2836 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2837 am__include="#"
2838 am__quote=
2839 _am_result=none
2840 # First try GNU make style include.
2841 echo "include confinc" > confmf
2842 # Ignore all kinds of additional output from `make'.
2843 case `$am_make -s -f confmf 2> /dev/null` in #(
2844 *the\ am__doit\ target*)
2845 am__include=include
2846 am__quote=
2847 _am_result=GNU
2848 ;;
2849 esac
2850 # Now try BSD make style include.
2851 if test "$am__include" = "#"; then
2852 echo '.include "confinc"' > confmf
2853 case `$am_make -s -f confmf 2> /dev/null` in #(
2854 *the\ am__doit\ target*)
2855 am__include=.include
2856 am__quote="\""
2857 _am_result=BSD
2858 ;;
2859 esac
2860 fi
2861
2862
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2864 $as_echo "$_am_result" >&6; }
2865 rm -f confinc confmf
2866
2867 # Check whether --enable-dependency-tracking was given.
2868 if test "${enable_dependency_tracking+set}" = set; then :
2869 enableval=$enable_dependency_tracking;
2870 fi
2871
2872 if test "x$enable_dependency_tracking" != xno; then
2873 am_depcomp="$ac_aux_dir/depcomp"
2874 AMDEPBACKSLASH='\'
2875 fi
2876 if test "x$enable_dependency_tracking" != xno; then
2877 AMDEP_TRUE=
2878 AMDEP_FALSE='#'
2879 else
2880 AMDEP_TRUE='#'
2881 AMDEP_FALSE=
2882 fi
2883
2884
2885 ac_ext=c
2886 ac_cpp='$CPP $CPPFLAGS'
2887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890 if test -n "$ac_tool_prefix"; then
2891 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2892 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 $as_echo_n "checking for $ac_word... " >&6; }
2895 if ${ac_cv_prog_CC+:} false; then :
2896 $as_echo_n "(cached) " >&6
2897 else
2898 if test -n "$CC"; then
2899 ac_cv_prog_CC="$CC" # Let the user override the test.
2900 else
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH
2903 do
2904 IFS=$as_save_IFS
2905 test -z "$as_dir" && as_dir=.
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2908 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 break 2
2911 fi
2912 done
2913 done
2914 IFS=$as_save_IFS
2915
2916 fi
2917 fi
2918 CC=$ac_cv_prog_CC
2919 if test -n "$CC"; then
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2921 $as_echo "$CC" >&6; }
2922 else
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924 $as_echo "no" >&6; }
2925 fi
2926
2927
2928 fi
2929 if test -z "$ac_cv_prog_CC"; then
2930 ac_ct_CC=$CC
2931 # Extract the first word of "gcc", so it can be a program name with args.
2932 set dummy gcc; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2936 $as_echo_n "(cached) " >&6
2937 else
2938 if test -n "$ac_ct_CC"; then
2939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2943 do
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948 ac_cv_prog_ac_ct_CC="gcc"
2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 break 2
2951 fi
2952 done
2953 done
2954 IFS=$as_save_IFS
2955
2956 fi
2957 fi
2958 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2959 if test -n "$ac_ct_CC"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2961 $as_echo "$ac_ct_CC" >&6; }
2962 else
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2965 fi
2966
2967 if test "x$ac_ct_CC" = x; then
2968 CC=""
2969 else
2970 case $cross_compiling:$ac_tool_warned in
2971 yes:)
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2974 ac_tool_warned=yes ;;
2975 esac
2976 CC=$ac_ct_CC
2977 fi
2978 else
2979 CC="$ac_cv_prog_CC"
2980 fi
2981
2982 if test -z "$CC"; then
2983 if test -n "$ac_tool_prefix"; then
2984 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2985 set dummy ${ac_tool_prefix}cc; ac_word=$2
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if ${ac_cv_prog_CC+:} false; then :
2989 $as_echo_n "(cached) " >&6
2990 else
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC="$CC" # Let the user override the test.
2993 else
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 for as_dir in $PATH
2996 do
2997 IFS=$as_save_IFS
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3001 ac_cv_prog_CC="${ac_tool_prefix}cc"
3002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 break 2
3004 fi
3005 done
3006 done
3007 IFS=$as_save_IFS
3008
3009 fi
3010 fi
3011 CC=$ac_cv_prog_CC
3012 if test -n "$CC"; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3014 $as_echo "$CC" >&6; }
3015 else
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3018 fi
3019
3020
3021 fi
3022 fi
3023 if test -z "$CC"; then
3024 # Extract the first word of "cc", so it can be a program name with args.
3025 set dummy cc; ac_word=$2
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027 $as_echo_n "checking for $ac_word... " >&6; }
3028 if ${ac_cv_prog_CC+:} false; then :
3029 $as_echo_n "(cached) " >&6
3030 else
3031 if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3033 else
3034 ac_prog_rejected=no
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3043 ac_prog_rejected=yes
3044 continue
3045 fi
3046 ac_cv_prog_CC="cc"
3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 break 2
3049 fi
3050 done
3051 done
3052 IFS=$as_save_IFS
3053
3054 if test $ac_prog_rejected = yes; then
3055 # We found a bogon in the path, so make sure we never use it.
3056 set dummy $ac_cv_prog_CC
3057 shift
3058 if test $# != 0; then
3059 # We chose a different compiler from the bogus one.
3060 # However, it has the same basename, so the bogon will be chosen
3061 # first if we set CC to just the basename; use the full file name.
3062 shift
3063 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3064 fi
3065 fi
3066 fi
3067 fi
3068 CC=$ac_cv_prog_CC
3069 if test -n "$CC"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3071 $as_echo "$CC" >&6; }
3072 else
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3075 fi
3076
3077
3078 fi
3079 if test -z "$CC"; then
3080 if test -n "$ac_tool_prefix"; then
3081 for ac_prog in cl.exe
3082 do
3083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3084 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086 $as_echo_n "checking for $ac_word... " >&6; }
3087 if ${ac_cv_prog_CC+:} false; then :
3088 $as_echo_n "(cached) " >&6
3089 else
3090 if test -n "$CC"; then
3091 ac_cv_prog_CC="$CC" # Let the user override the test.
3092 else
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH
3095 do
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3100 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 break 2
3103 fi
3104 done
3105 done
3106 IFS=$as_save_IFS
3107
3108 fi
3109 fi
3110 CC=$ac_cv_prog_CC
3111 if test -n "$CC"; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3113 $as_echo "$CC" >&6; }
3114 else
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3117 fi
3118
3119
3120 test -n "$CC" && break
3121 done
3122 fi
3123 if test -z "$CC"; then
3124 ac_ct_CC=$CC
3125 for ac_prog in cl.exe
3126 do
3127 # Extract the first word of "$ac_prog", so it can be a program name with args.
3128 set dummy $ac_prog; ac_word=$2
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130 $as_echo_n "checking for $ac_word... " >&6; }
3131 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3132 $as_echo_n "(cached) " >&6
3133 else
3134 if test -n "$ac_ct_CC"; then
3135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3136 else
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH
3139 do
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3144 ac_cv_prog_ac_ct_CC="$ac_prog"
3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 break 2
3147 fi
3148 done
3149 done
3150 IFS=$as_save_IFS
3151
3152 fi
3153 fi
3154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3155 if test -n "$ac_ct_CC"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3157 $as_echo "$ac_ct_CC" >&6; }
3158 else
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 $as_echo "no" >&6; }
3161 fi
3162
3163
3164 test -n "$ac_ct_CC" && break
3165 done
3166
3167 if test "x$ac_ct_CC" = x; then
3168 CC=""
3169 else
3170 case $cross_compiling:$ac_tool_warned in
3171 yes:)
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3174 ac_tool_warned=yes ;;
3175 esac
3176 CC=$ac_ct_CC
3177 fi
3178 fi
3179
3180 fi
3181
3182
3183 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185 as_fn_error $? "no acceptable C compiler found in \$PATH
3186 See \`config.log' for more details" "$LINENO" 5; }
3187
3188 # Provide some information about the compiler.
3189 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3190 set X $ac_compile
3191 ac_compiler=$2
3192 for ac_option in --version -v -V -qversion; do
3193 { { ac_try="$ac_compiler $ac_option >&5"
3194 case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197 esac
3198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199 $as_echo "$ac_try_echo"; } >&5
3200 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3201 ac_status=$?
3202 if test -s conftest.err; then
3203 sed '10a\
3204 ... rest of stderr output deleted ...
3205 10q' conftest.err >conftest.er1
3206 cat conftest.er1 >&5
3207 fi
3208 rm -f conftest.er1 conftest.err
3209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210 test $ac_status = 0; }
3211 done
3212
3213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3214 /* end confdefs.h. */
3215
3216 int
3217 main ()
3218 {
3219
3220 ;
3221 return 0;
3222 }
3223 _ACEOF
3224 ac_clean_files_save=$ac_clean_files
3225 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3226 # Try to create an executable without -o first, disregard a.out.
3227 # It will help us diagnose broken compilers, and finding out an intuition
3228 # of exeext.
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3230 $as_echo_n "checking whether the C compiler works... " >&6; }
3231 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3232
3233 # The possible output files:
3234 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3235
3236 ac_rmfiles=
3237 for ac_file in $ac_files
3238 do
3239 case $ac_file in
3240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3241 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3242 esac
3243 done
3244 rm -f $ac_rmfiles
3245
3246 if { { ac_try="$ac_link_default"
3247 case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250 esac
3251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252 $as_echo "$ac_try_echo"; } >&5
3253 (eval "$ac_link_default") 2>&5
3254 ac_status=$?
3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }; then :
3257 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3258 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3259 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3260 # so that the user can short-circuit this test for compilers unknown to
3261 # Autoconf.
3262 for ac_file in $ac_files ''
3263 do
3264 test -f "$ac_file" || continue
3265 case $ac_file in
3266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3267 ;;
3268 [ab].out )
3269 # We found the default executable, but exeext='' is most
3270 # certainly right.
3271 break;;
3272 *.* )
3273 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3274 then :; else
3275 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3276 fi
3277 # We set ac_cv_exeext here because the later test for it is not
3278 # safe: cross compilers may not add the suffix if given an `-o'
3279 # argument, so we may need to know it at that point already.
3280 # Even if this section looks crufty: it has the advantage of
3281 # actually working.
3282 break;;
3283 * )
3284 break;;
3285 esac
3286 done
3287 test "$ac_cv_exeext" = no && ac_cv_exeext=
3288
3289 else
3290 ac_file=''
3291 fi
3292 if test -z "$ac_file"; then :
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3295 $as_echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300 as_fn_error 77 "C compiler cannot create executables
3301 See \`config.log' for more details" "$LINENO" 5; }
3302 else
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3304 $as_echo "yes" >&6; }
3305 fi
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3307 $as_echo_n "checking for C compiler default output file name... " >&6; }
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3309 $as_echo "$ac_file" >&6; }
3310 ac_exeext=$ac_cv_exeext
3311
3312 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3313 ac_clean_files=$ac_clean_files_save
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3315 $as_echo_n "checking for suffix of executables... " >&6; }
3316 if { { ac_try="$ac_link"
3317 case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320 esac
3321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322 $as_echo "$ac_try_echo"; } >&5
3323 (eval "$ac_link") 2>&5
3324 ac_status=$?
3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }; then :
3327 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3328 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3329 # work properly (i.e., refer to `conftest.exe'), while it won't with
3330 # `rm'.
3331 for ac_file in conftest.exe conftest conftest.*; do
3332 test -f "$ac_file" || continue
3333 case $ac_file in
3334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3335 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3336 break;;
3337 * ) break;;
3338 esac
3339 done
3340 else
3341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3344 See \`config.log' for more details" "$LINENO" 5; }
3345 fi
3346 rm -f conftest conftest$ac_cv_exeext
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3348 $as_echo "$ac_cv_exeext" >&6; }
3349
3350 rm -f conftest.$ac_ext
3351 EXEEXT=$ac_cv_exeext
3352 ac_exeext=$EXEEXT
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3355 #include <stdio.h>
3356 int
3357 main ()
3358 {
3359 FILE *f = fopen ("conftest.out", "w");
3360 return ferror (f) || fclose (f) != 0;
3361
3362 ;
3363 return 0;
3364 }
3365 _ACEOF
3366 ac_clean_files="$ac_clean_files conftest.out"
3367 # Check that the compiler produces executables we can run. If not, either
3368 # the compiler is broken, or we cross compile.
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3370 $as_echo_n "checking whether we are cross compiling... " >&6; }
3371 if test "$cross_compiling" != yes; then
3372 { { ac_try="$ac_link"
3373 case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376 esac
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_link") 2>&5
3380 ac_status=$?
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }
3383 if { ac_try='./conftest$ac_cv_exeext'
3384 { { case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387 esac
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_try") 2>&5
3391 ac_status=$?
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }; }; then
3394 cross_compiling=no
3395 else
3396 if test "$cross_compiling" = maybe; then
3397 cross_compiling=yes
3398 else
3399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401 as_fn_error $? "cannot run C compiled programs.
3402 If you meant to cross compile, use \`--host'.
3403 See \`config.log' for more details" "$LINENO" 5; }
3404 fi
3405 fi
3406 fi
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3408 $as_echo "$cross_compiling" >&6; }
3409
3410 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3411 ac_clean_files=$ac_clean_files_save
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3413 $as_echo_n "checking for suffix of object files... " >&6; }
3414 if ${ac_cv_objext+:} false; then :
3415 $as_echo_n "(cached) " >&6
3416 else
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3419
3420 int
3421 main ()
3422 {
3423
3424 ;
3425 return 0;
3426 }
3427 _ACEOF
3428 rm -f conftest.o conftest.obj
3429 if { { ac_try="$ac_compile"
3430 case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433 esac
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436 (eval "$ac_compile") 2>&5
3437 ac_status=$?
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }; then :
3440 for ac_file in conftest.o conftest.obj conftest.*; do
3441 test -f "$ac_file" || continue;
3442 case $ac_file in
3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3444 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3445 break;;
3446 esac
3447 done
3448 else
3449 $as_echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 as_fn_error $? "cannot compute suffix of object files: cannot compile
3455 See \`config.log' for more details" "$LINENO" 5; }
3456 fi
3457 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3458 fi
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3460 $as_echo "$ac_cv_objext" >&6; }
3461 OBJEXT=$ac_cv_objext
3462 ac_objext=$OBJEXT
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3464 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3465 if ${ac_cv_c_compiler_gnu+:} false; then :
3466 $as_echo_n "(cached) " >&6
3467 else
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3470
3471 int
3472 main ()
3473 {
3474 #ifndef __GNUC__
3475 choke me
3476 #endif
3477
3478 ;
3479 return 0;
3480 }
3481 _ACEOF
3482 if ac_fn_c_try_compile "$LINENO"; then :
3483 ac_compiler_gnu=yes
3484 else
3485 ac_compiler_gnu=no
3486 fi
3487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3488 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3489
3490 fi
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3492 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3493 if test $ac_compiler_gnu = yes; then
3494 GCC=yes
3495 else
3496 GCC=
3497 fi
3498 ac_test_CFLAGS=${CFLAGS+set}
3499 ac_save_CFLAGS=$CFLAGS
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3501 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3502 if ${ac_cv_prog_cc_g+:} false; then :
3503 $as_echo_n "(cached) " >&6
3504 else
3505 ac_save_c_werror_flag=$ac_c_werror_flag
3506 ac_c_werror_flag=yes
3507 ac_cv_prog_cc_g=no
3508 CFLAGS="-g"
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3511
3512 int
3513 main ()
3514 {
3515
3516 ;
3517 return 0;
3518 }
3519 _ACEOF
3520 if ac_fn_c_try_compile "$LINENO"; then :
3521 ac_cv_prog_cc_g=yes
3522 else
3523 CFLAGS=""
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3526
3527 int
3528 main ()
3529 {
3530
3531 ;
3532 return 0;
3533 }
3534 _ACEOF
3535 if ac_fn_c_try_compile "$LINENO"; then :
3536
3537 else
3538 ac_c_werror_flag=$ac_save_c_werror_flag
3539 CFLAGS="-g"
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3542
3543 int
3544 main ()
3545 {
3546
3547 ;
3548 return 0;
3549 }
3550 _ACEOF
3551 if ac_fn_c_try_compile "$LINENO"; then :
3552 ac_cv_prog_cc_g=yes
3553 fi
3554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 fi
3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557 fi
3558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559 ac_c_werror_flag=$ac_save_c_werror_flag
3560 fi
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3562 $as_echo "$ac_cv_prog_cc_g" >&6; }
3563 if test "$ac_test_CFLAGS" = set; then
3564 CFLAGS=$ac_save_CFLAGS
3565 elif test $ac_cv_prog_cc_g = yes; then
3566 if test "$GCC" = yes; then
3567 CFLAGS="-g -O2"
3568 else
3569 CFLAGS="-g"
3570 fi
3571 else
3572 if test "$GCC" = yes; then
3573 CFLAGS="-O2"
3574 else
3575 CFLAGS=
3576 fi
3577 fi
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3579 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3580 if ${ac_cv_prog_cc_c89+:} false; then :
3581 $as_echo_n "(cached) " >&6
3582 else
3583 ac_cv_prog_cc_c89=no
3584 ac_save_CC=$CC
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3587 #include <stdarg.h>
3588 #include <stdio.h>
3589 #include <sys/types.h>
3590 #include <sys/stat.h>
3591 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3592 struct buf { int x; };
3593 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3594 static char *e (p, i)
3595 char **p;
3596 int i;
3597 {
3598 return p[i];
3599 }
3600 static char *f (char * (*g) (char **, int), char **p, ...)
3601 {
3602 char *s;
3603 va_list v;
3604 va_start (v,p);
3605 s = g (p, va_arg (v,int));
3606 va_end (v);
3607 return s;
3608 }
3609
3610 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3611 function prototypes and stuff, but not '\xHH' hex character constants.
3612 These don't provoke an error unfortunately, instead are silently treated
3613 as 'x'. The following induces an error, until -std is added to get
3614 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3615 array size at least. It's necessary to write '\x00'==0 to get something
3616 that's true only with -std. */
3617 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3618
3619 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3620 inside strings and character constants. */
3621 #define FOO(x) 'x'
3622 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3623
3624 int test (int i, double x);
3625 struct s1 {int (*f) (int a);};
3626 struct s2 {int (*f) (double a);};
3627 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3628 int argc;
3629 char **argv;
3630 int
3631 main ()
3632 {
3633 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3634 ;
3635 return 0;
3636 }
3637 _ACEOF
3638 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3639 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3640 do
3641 CC="$ac_save_CC $ac_arg"
3642 if ac_fn_c_try_compile "$LINENO"; then :
3643 ac_cv_prog_cc_c89=$ac_arg
3644 fi
3645 rm -f core conftest.err conftest.$ac_objext
3646 test "x$ac_cv_prog_cc_c89" != "xno" && break
3647 done
3648 rm -f conftest.$ac_ext
3649 CC=$ac_save_CC
3650
3651 fi
3652 # AC_CACHE_VAL
3653 case "x$ac_cv_prog_cc_c89" in
3654 x)
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3656 $as_echo "none needed" >&6; } ;;
3657 xno)
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3659 $as_echo "unsupported" >&6; } ;;
3660 *)
3661 CC="$CC $ac_cv_prog_cc_c89"
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3663 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3664 esac
3665 if test "x$ac_cv_prog_cc_c89" != xno; then :
3666
3667 fi
3668
3669 ac_ext=c
3670 ac_cpp='$CPP $CPPFLAGS'
3671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3674
3675 depcc="$CC" am_compiler_list=
3676
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3678 $as_echo_n "checking dependency style of $depcc... " >&6; }
3679 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3683 # We make a subdir and do the tests there. Otherwise we can end up
3684 # making bogus files that we don't know about and never remove. For
3685 # instance it was reported that on HP-UX the gcc test will end up
3686 # making a dummy file named `D' -- because `-MD' means `put the output
3687 # in D'.
3688 mkdir conftest.dir
3689 # Copy depcomp to subdir because otherwise we won't find it if we're
3690 # using a relative directory.
3691 cp "$am_depcomp" conftest.dir
3692 cd conftest.dir
3693 # We will build objects and dependencies in a subdirectory because
3694 # it helps to detect inapplicable dependency modes. For instance
3695 # both Tru64's cc and ICC support -MD to output dependencies as a
3696 # side effect of compilation, but ICC will put the dependencies in
3697 # the current directory while Tru64 will put them in the object
3698 # directory.
3699 mkdir sub
3700
3701 am_cv_CC_dependencies_compiler_type=none
3702 if test "$am_compiler_list" = ""; then
3703 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3704 fi
3705 am__universal=false
3706 case " $depcc " in #(
3707 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3708 esac
3709
3710 for depmode in $am_compiler_list; do
3711 # Setup a source with many dependencies, because some compilers
3712 # like to wrap large dependency lists on column 80 (with \), and
3713 # we should not choose a depcomp mode which is confused by this.
3714 #
3715 # We need to recreate these files for each test, as the compiler may
3716 # overwrite some of them when testing with obscure command lines.
3717 # This happens at least with the AIX C compiler.
3718 : > sub/conftest.c
3719 for i in 1 2 3 4 5 6; do
3720 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3721 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3722 # Solaris 8's {/usr,}/bin/sh.
3723 touch sub/conftst$i.h
3724 done
3725 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3726
3727 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3728 # mode. It turns out that the SunPro C++ compiler does not properly
3729 # handle `-M -o', and we need to detect this. Also, some Intel
3730 # versions had trouble with output in subdirs
3731 am__obj=sub/conftest.${OBJEXT-o}
3732 am__minus_obj="-o $am__obj"
3733 case $depmode in
3734 gcc)
3735 # This depmode causes a compiler race in universal mode.
3736 test "$am__universal" = false || continue
3737 ;;
3738 nosideeffect)
3739 # after this tag, mechanisms are not by side-effect, so they'll
3740 # only be used when explicitly requested
3741 if test "x$enable_dependency_tracking" = xyes; then
3742 continue
3743 else
3744 break
3745 fi
3746 ;;
3747 msvisualcpp | msvcmsys)
3748 # This compiler won't grok `-c -o', but also, the minuso test has
3749 # not run yet. These depmodes are late enough in the game, and
3750 # so weak that their functioning should not be impacted.
3751 am__obj=conftest.${OBJEXT-o}
3752 am__minus_obj=
3753 ;;
3754 none) break ;;
3755 esac
3756 if depmode=$depmode \
3757 source=sub/conftest.c object=$am__obj \
3758 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3759 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3760 >/dev/null 2>conftest.err &&
3761 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3762 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3763 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3764 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3765 # icc doesn't choke on unknown options, it will just issue warnings
3766 # or remarks (even with -Werror). So we grep stderr for any message
3767 # that says an option was ignored or not supported.
3768 # When given -MP, icc 7.0 and 7.1 complain thusly:
3769 # icc: Command line warning: ignoring option '-M'; no argument required
3770 # The diagnosis changed in icc 8.0:
3771 # icc: Command line remark: option '-MP' not supported
3772 if (grep 'ignoring option' conftest.err ||
3773 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3774 am_cv_CC_dependencies_compiler_type=$depmode
3775 break
3776 fi
3777 fi
3778 done
3779
3780 cd ..
3781 rm -rf conftest.dir
3782 else
3783 am_cv_CC_dependencies_compiler_type=none
3784 fi
3785
3786 fi
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3788 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3789 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3790
3791 if
3792 test "x$enable_dependency_tracking" != xno \
3793 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3794 am__fastdepCC_TRUE=
3795 am__fastdepCC_FALSE='#'
3796 else
3797 am__fastdepCC_TRUE='#'
3798 am__fastdepCC_FALSE=
3799 fi
3800
3801
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3803 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3804 if ${ac_cv_prog_cc_c99+:} false; then :
3805 $as_echo_n "(cached) " >&6
3806 else
3807 ac_cv_prog_cc_c99=no
3808 ac_save_CC=$CC
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3811 #include <stdarg.h>
3812 #include <stdbool.h>
3813 #include <stdlib.h>
3814 #include <wchar.h>
3815 #include <stdio.h>
3816
3817 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3818 #define debug(...) fprintf (stderr, __VA_ARGS__)
3819 #define showlist(...) puts (#__VA_ARGS__)
3820 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3821 static void
3822 test_varargs_macros (void)
3823 {
3824 int x = 1234;
3825 int y = 5678;
3826 debug ("Flag");
3827 debug ("X = %d\n", x);
3828 showlist (The first, second, and third items.);
3829 report (x>y, "x is %d but y is %d", x, y);
3830 }
3831
3832 // Check long long types.
3833 #define BIG64 18446744073709551615ull
3834 #define BIG32 4294967295ul
3835 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3836 #if !BIG_OK
3837 your preprocessor is broken;
3838 #endif
3839 #if BIG_OK
3840 #else
3841 your preprocessor is broken;
3842 #endif
3843 static long long int bignum = -9223372036854775807LL;
3844 static unsigned long long int ubignum = BIG64;
3845
3846 struct incomplete_array
3847 {
3848 int datasize;
3849 double data[];
3850 };
3851
3852 struct named_init {
3853 int number;
3854 const wchar_t *name;
3855 double average;
3856 };
3857
3858 typedef const char *ccp;
3859
3860 static inline int
3861 test_restrict (ccp restrict text)
3862 {
3863 // See if C++-style comments work.
3864 // Iterate through items via the restricted pointer.
3865 // Also check for declarations in for loops.
3866 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3867 continue;
3868 return 0;
3869 }
3870
3871 // Check varargs and va_copy.
3872 static void
3873 test_varargs (const char *format, ...)
3874 {
3875 va_list args;
3876 va_start (args, format);
3877 va_list args_copy;
3878 va_copy (args_copy, args);
3879
3880 const char *str;
3881 int number;
3882 float fnumber;
3883
3884 while (*format)
3885 {
3886 switch (*format++)
3887 {
3888 case 's': // string
3889 str = va_arg (args_copy, const char *);
3890 break;
3891 case 'd': // int
3892 number = va_arg (args_copy, int);
3893 break;
3894 case 'f': // float
3895 fnumber = va_arg (args_copy, double);
3896 break;
3897 default:
3898 break;
3899 }
3900 }
3901 va_end (args_copy);
3902 va_end (args);
3903 }
3904
3905 int
3906 main ()
3907 {
3908
3909 // Check bool.
3910 _Bool success = false;
3911
3912 // Check restrict.
3913 if (test_restrict ("String literal") == 0)
3914 success = true;
3915 char *restrict newvar = "Another string";
3916
3917 // Check varargs.
3918 test_varargs ("s, d' f .", "string", 65, 34.234);
3919 test_varargs_macros ();
3920
3921 // Check flexible array members.
3922 struct incomplete_array *ia =
3923 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3924 ia->datasize = 10;
3925 for (int i = 0; i < ia->datasize; ++i)
3926 ia->data[i] = i * 1.234;
3927
3928 // Check named initializers.
3929 struct named_init ni = {
3930 .number = 34,
3931 .name = L"Test wide string",
3932 .average = 543.34343,
3933 };
3934
3935 ni.number = 58;
3936
3937 int dynamic_array[ni.number];
3938 dynamic_array[ni.number - 1] = 543;
3939
3940 // work around unused variable warnings
3941 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3942 || dynamic_array[ni.number - 1] != 543);
3943
3944 ;
3945 return 0;
3946 }
3947 _ACEOF
3948 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3949 do
3950 CC="$ac_save_CC $ac_arg"
3951 if ac_fn_c_try_compile "$LINENO"; then :
3952 ac_cv_prog_cc_c99=$ac_arg
3953 fi
3954 rm -f core conftest.err conftest.$ac_objext
3955 test "x$ac_cv_prog_cc_c99" != "xno" && break
3956 done
3957 rm -f conftest.$ac_ext
3958 CC=$ac_save_CC
3959
3960 fi
3961 # AC_CACHE_VAL
3962 case "x$ac_cv_prog_cc_c99" in
3963 x)
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3965 $as_echo "none needed" >&6; } ;;
3966 xno)
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3968 $as_echo "unsupported" >&6; } ;;
3969 *)
3970 CC="$CC $ac_cv_prog_cc_c99"
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3972 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3973 esac
3974 if test "x$ac_cv_prog_cc_c99" != xno; then :
3975
3976 fi
3977
3978
3979
3980 ac_ext=c
3981 ac_cpp='$CPP $CPPFLAGS'
3982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3986 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3987 # On Suns, sometimes $CPP names a directory.
3988 if test -n "$CPP" && test -d "$CPP"; then
3989 CPP=
3990 fi
3991 if test -z "$CPP"; then
3992 if ${ac_cv_prog_CPP+:} false; then :
3993 $as_echo_n "(cached) " >&6
3994 else
3995 # Double quotes because CPP needs to be expanded
3996 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3997 do
3998 ac_preproc_ok=false
3999 for ac_c_preproc_warn_flag in '' yes
4000 do
4001 # Use a header file that comes with gcc, so configuring glibc
4002 # with a fresh cross-compiler works.
4003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4004 # <limits.h> exists even on freestanding compilers.
4005 # On the NeXT, cc -E runs the code through the compiler's parser,
4006 # not just through cpp. "Syntax error" is here to catch this case.
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4009 #ifdef __STDC__
4010 # include <limits.h>
4011 #else
4012 # include <assert.h>
4013 #endif
4014 Syntax error
4015 _ACEOF
4016 if ac_fn_c_try_cpp "$LINENO"; then :
4017
4018 else
4019 # Broken: fails on valid input.
4020 continue
4021 fi
4022 rm -f conftest.err conftest.i conftest.$ac_ext
4023
4024 # OK, works on sane cases. Now check whether nonexistent headers
4025 # can be detected and how.
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4028 #include <ac_nonexistent.h>
4029 _ACEOF
4030 if ac_fn_c_try_cpp "$LINENO"; then :
4031 # Broken: success on invalid input.
4032 continue
4033 else
4034 # Passes both tests.
4035 ac_preproc_ok=:
4036 break
4037 fi
4038 rm -f conftest.err conftest.i conftest.$ac_ext
4039
4040 done
4041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4042 rm -f conftest.i conftest.err conftest.$ac_ext
4043 if $ac_preproc_ok; then :
4044 break
4045 fi
4046
4047 done
4048 ac_cv_prog_CPP=$CPP
4049
4050 fi
4051 CPP=$ac_cv_prog_CPP
4052 else
4053 ac_cv_prog_CPP=$CPP
4054 fi
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4056 $as_echo "$CPP" >&6; }
4057 ac_preproc_ok=false
4058 for ac_c_preproc_warn_flag in '' yes
4059 do
4060 # Use a header file that comes with gcc, so configuring glibc
4061 # with a fresh cross-compiler works.
4062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4063 # <limits.h> exists even on freestanding compilers.
4064 # On the NeXT, cc -E runs the code through the compiler's parser,
4065 # not just through cpp. "Syntax error" is here to catch this case.
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4068 #ifdef __STDC__
4069 # include <limits.h>
4070 #else
4071 # include <assert.h>
4072 #endif
4073 Syntax error
4074 _ACEOF
4075 if ac_fn_c_try_cpp "$LINENO"; then :
4076
4077 else
4078 # Broken: fails on valid input.
4079 continue
4080 fi
4081 rm -f conftest.err conftest.i conftest.$ac_ext
4082
4083 # OK, works on sane cases. Now check whether nonexistent headers
4084 # can be detected and how.
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4087 #include <ac_nonexistent.h>
4088 _ACEOF
4089 if ac_fn_c_try_cpp "$LINENO"; then :
4090 # Broken: success on invalid input.
4091 continue
4092 else
4093 # Passes both tests.
4094 ac_preproc_ok=:
4095 break
4096 fi
4097 rm -f conftest.err conftest.i conftest.$ac_ext
4098
4099 done
4100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4101 rm -f conftest.i conftest.err conftest.$ac_ext
4102 if $ac_preproc_ok; then :
4103
4104 else
4105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4107 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4108 See \`config.log' for more details" "$LINENO" 5; }
4109 fi
4110
4111 ac_ext=c
4112 ac_cpp='$CPP $CPPFLAGS'
4113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4116
4117
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4119 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4120 if ${ac_cv_path_GREP+:} false; then :
4121 $as_echo_n "(cached) " >&6
4122 else
4123 if test -z "$GREP"; then
4124 ac_path_GREP_found=false
4125 # Loop through the user's path and test for each of PROGNAME-LIST
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4128 do
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
4131 for ac_prog in grep ggrep; do
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4134 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4135 # Check for GNU ac_path_GREP and select it if it is found.
4136 # Check for GNU $ac_path_GREP
4137 case `"$ac_path_GREP" --version 2>&1` in
4138 *GNU*)
4139 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4140 *)
4141 ac_count=0
4142 $as_echo_n 0123456789 >"conftest.in"
4143 while :
4144 do
4145 cat "conftest.in" "conftest.in" >"conftest.tmp"
4146 mv "conftest.tmp" "conftest.in"
4147 cp "conftest.in" "conftest.nl"
4148 $as_echo 'GREP' >> "conftest.nl"
4149 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4150 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4151 as_fn_arith $ac_count + 1 && ac_count=$as_val
4152 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4153 # Best one so far, save it but keep looking for a better one
4154 ac_cv_path_GREP="$ac_path_GREP"
4155 ac_path_GREP_max=$ac_count
4156 fi
4157 # 10*(2^10) chars as input seems more than enough
4158 test $ac_count -gt 10 && break
4159 done
4160 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4161 esac
4162
4163 $ac_path_GREP_found && break 3
4164 done
4165 done
4166 done
4167 IFS=$as_save_IFS
4168 if test -z "$ac_cv_path_GREP"; then
4169 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4170 fi
4171 else
4172 ac_cv_path_GREP=$GREP
4173 fi
4174
4175 fi
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4177 $as_echo "$ac_cv_path_GREP" >&6; }
4178 GREP="$ac_cv_path_GREP"
4179
4180
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4182 $as_echo_n "checking for egrep... " >&6; }
4183 if ${ac_cv_path_EGREP+:} false; then :
4184 $as_echo_n "(cached) " >&6
4185 else
4186 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4187 then ac_cv_path_EGREP="$GREP -E"
4188 else
4189 if test -z "$EGREP"; then
4190 ac_path_EGREP_found=false
4191 # Loop through the user's path and test for each of PROGNAME-LIST
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4194 do
4195 IFS=$as_save_IFS
4196 test -z "$as_dir" && as_dir=.
4197 for ac_prog in egrep; do
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4200 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4201 # Check for GNU ac_path_EGREP and select it if it is found.
4202 # Check for GNU $ac_path_EGREP
4203 case `"$ac_path_EGREP" --version 2>&1` in
4204 *GNU*)
4205 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4206 *)
4207 ac_count=0
4208 $as_echo_n 0123456789 >"conftest.in"
4209 while :
4210 do
4211 cat "conftest.in" "conftest.in" >"conftest.tmp"
4212 mv "conftest.tmp" "conftest.in"
4213 cp "conftest.in" "conftest.nl"
4214 $as_echo 'EGREP' >> "conftest.nl"
4215 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4216 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4217 as_fn_arith $ac_count + 1 && ac_count=$as_val
4218 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4219 # Best one so far, save it but keep looking for a better one
4220 ac_cv_path_EGREP="$ac_path_EGREP"
4221 ac_path_EGREP_max=$ac_count
4222 fi
4223 # 10*(2^10) chars as input seems more than enough
4224 test $ac_count -gt 10 && break
4225 done
4226 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4227 esac
4228
4229 $ac_path_EGREP_found && break 3
4230 done
4231 done
4232 done
4233 IFS=$as_save_IFS
4234 if test -z "$ac_cv_path_EGREP"; then
4235 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4236 fi
4237 else
4238 ac_cv_path_EGREP=$EGREP
4239 fi
4240
4241 fi
4242 fi
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4244 $as_echo "$ac_cv_path_EGREP" >&6; }
4245 EGREP="$ac_cv_path_EGREP"
4246
4247
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4249 $as_echo_n "checking for ANSI C header files... " >&6; }
4250 if ${ac_cv_header_stdc+:} false; then :
4251 $as_echo_n "(cached) " >&6
4252 else
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4255 #include <stdlib.h>
4256 #include <stdarg.h>
4257 #include <string.h>
4258 #include <float.h>
4259
4260 int
4261 main ()
4262 {
4263
4264 ;
4265 return 0;
4266 }
4267 _ACEOF
4268 if ac_fn_c_try_compile "$LINENO"; then :
4269 ac_cv_header_stdc=yes
4270 else
4271 ac_cv_header_stdc=no
4272 fi
4273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4274
4275 if test $ac_cv_header_stdc = yes; then
4276 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4279 #include <string.h>
4280
4281 _ACEOF
4282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4283 $EGREP "memchr" >/dev/null 2>&1; then :
4284
4285 else
4286 ac_cv_header_stdc=no
4287 fi
4288 rm -f conftest*
4289
4290 fi
4291
4292 if test $ac_cv_header_stdc = yes; then
4293 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296 #include <stdlib.h>
4297
4298 _ACEOF
4299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4300 $EGREP "free" >/dev/null 2>&1; then :
4301
4302 else
4303 ac_cv_header_stdc=no
4304 fi
4305 rm -f conftest*
4306
4307 fi
4308
4309 if test $ac_cv_header_stdc = yes; then
4310 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4311 if test "$cross_compiling" = yes; then :
4312 :
4313 else
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4316 #include <ctype.h>
4317 #include <stdlib.h>
4318 #if ((' ' & 0x0FF) == 0x020)
4319 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4320 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4321 #else
4322 # define ISLOWER(c) \
4323 (('a' <= (c) && (c) <= 'i') \
4324 || ('j' <= (c) && (c) <= 'r') \
4325 || ('s' <= (c) && (c) <= 'z'))
4326 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4327 #endif
4328
4329 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4330 int
4331 main ()
4332 {
4333 int i;
4334 for (i = 0; i < 256; i++)
4335 if (XOR (islower (i), ISLOWER (i))
4336 || toupper (i) != TOUPPER (i))
4337 return 2;
4338 return 0;
4339 }
4340 _ACEOF
4341 if ac_fn_c_try_run "$LINENO"; then :
4342
4343 else
4344 ac_cv_header_stdc=no
4345 fi
4346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4347 conftest.$ac_objext conftest.beam conftest.$ac_ext
4348 fi
4349
4350 fi
4351 fi
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4353 $as_echo "$ac_cv_header_stdc" >&6; }
4354 if test $ac_cv_header_stdc = yes; then
4355
4356 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4357
4358 fi
4359
4360 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4361 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4362 inttypes.h stdint.h unistd.h
4363 do :
4364 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4365 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4366 "
4367 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4368 cat >>confdefs.h <<_ACEOF
4369 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4370 _ACEOF
4371
4372 fi
4373
4374 done
4375
4376
4377
4378
4379 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4380 if test -n "$ac_tool_prefix"; then
4381 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4382 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4384 $as_echo_n "checking for $ac_word... " >&6; }
4385 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4386 $as_echo_n "(cached) " >&6
4387 else
4388 case $PKG_CONFIG in
4389 [\\/]* | ?:[\\/]*)
4390 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4391 ;;
4392 *)
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4395 do
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4400 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 break 2
4403 fi
4404 done
4405 done
4406 IFS=$as_save_IFS
4407
4408 ;;
4409 esac
4410 fi
4411 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4412 if test -n "$PKG_CONFIG"; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4414 $as_echo "$PKG_CONFIG" >&6; }
4415 else
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4418 fi
4419
4420
4421 fi
4422 if test -z "$ac_cv_path_PKG_CONFIG"; then
4423 ac_pt_PKG_CONFIG=$PKG_CONFIG
4424 # Extract the first word of "pkg-config", so it can be a program name with args.
4425 set dummy pkg-config; ac_word=$2
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4427 $as_echo_n "checking for $ac_word... " >&6; }
4428 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4429 $as_echo_n "(cached) " >&6
4430 else
4431 case $ac_pt_PKG_CONFIG in
4432 [\\/]* | ?:[\\/]*)
4433 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4434 ;;
4435 *)
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4438 do
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4443 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 break 2
4446 fi
4447 done
4448 done
4449 IFS=$as_save_IFS
4450
4451 ;;
4452 esac
4453 fi
4454 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4455 if test -n "$ac_pt_PKG_CONFIG"; then
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4457 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4458 else
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460 $as_echo "no" >&6; }
4461 fi
4462
4463 if test "x$ac_pt_PKG_CONFIG" = x; then
4464 PKG_CONFIG=""
4465 else
4466 case $cross_compiling:$ac_tool_warned in
4467 yes:)
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4470 ac_tool_warned=yes ;;
4471 esac
4472 PKG_CONFIG=$ac_pt_PKG_CONFIG
4473 fi
4474 else
4475 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4476 fi
4477
4478 fi
4479 if test -n "$PKG_CONFIG"; then
4480 _pkg_min_version=0.9.0
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4482 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4483 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4485 $as_echo "yes" >&6; }
4486 else
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4489 PKG_CONFIG=""
4490 fi
4491
4492 fi
4493 # Make sure we can run config.sub.
4494 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4495 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4496
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4498 $as_echo_n "checking build system type... " >&6; }
4499 if ${ac_cv_build+:} false; then :
4500 $as_echo_n "(cached) " >&6
4501 else
4502 ac_build_alias=$build_alias
4503 test "x$ac_build_alias" = x &&
4504 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4505 test "x$ac_build_alias" = x &&
4506 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4507 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4508 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4509
4510 fi
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4512 $as_echo "$ac_cv_build" >&6; }
4513 case $ac_cv_build in
4514 *-*-*) ;;
4515 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4516 esac
4517 build=$ac_cv_build
4518 ac_save_IFS=$IFS; IFS='-'
4519 set x $ac_cv_build
4520 shift
4521 build_cpu=$1
4522 build_vendor=$2
4523 shift; shift
4524 # Remember, the first character of IFS is used to create $*,
4525 # except with old shells:
4526 build_os=$*
4527 IFS=$ac_save_IFS
4528 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4529
4530
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4532 $as_echo_n "checking host system type... " >&6; }
4533 if ${ac_cv_host+:} false; then :
4534 $as_echo_n "(cached) " >&6
4535 else
4536 if test "x$host_alias" = x; then
4537 ac_cv_host=$ac_cv_build
4538 else
4539 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4540 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4541 fi
4542
4543 fi
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4545 $as_echo "$ac_cv_host" >&6; }
4546 case $ac_cv_host in
4547 *-*-*) ;;
4548 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4549 esac
4550 host=$ac_cv_host
4551 ac_save_IFS=$IFS; IFS='-'
4552 set x $ac_cv_host
4553 shift
4554 host_cpu=$1
4555 host_vendor=$2
4556 shift; shift
4557 # Remember, the first character of IFS is used to create $*,
4558 # except with old shells:
4559 host_os=$*
4560 IFS=$ac_save_IFS
4561 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4562
4563
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4565 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4566 if ${ac_cv_path_SED+:} false; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4570 for ac_i in 1 2 3 4 5 6 7; do
4571 ac_script="$ac_script$as_nl$ac_script"
4572 done
4573 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4574 { ac_script=; unset ac_script;}
4575 if test -z "$SED"; then
4576 ac_path_SED_found=false
4577 # Loop through the user's path and test for each of PROGNAME-LIST
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4580 do
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_prog in sed gsed; do
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4586 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4587 # Check for GNU ac_path_SED and select it if it is found.
4588 # Check for GNU $ac_path_SED
4589 case `"$ac_path_SED" --version 2>&1` in
4590 *GNU*)
4591 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4592 *)
4593 ac_count=0
4594 $as_echo_n 0123456789 >"conftest.in"
4595 while :
4596 do
4597 cat "conftest.in" "conftest.in" >"conftest.tmp"
4598 mv "conftest.tmp" "conftest.in"
4599 cp "conftest.in" "conftest.nl"
4600 $as_echo '' >> "conftest.nl"
4601 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4603 as_fn_arith $ac_count + 1 && ac_count=$as_val
4604 if test $ac_count -gt ${ac_path_SED_max-0}; then
4605 # Best one so far, save it but keep looking for a better one
4606 ac_cv_path_SED="$ac_path_SED"
4607 ac_path_SED_max=$ac_count
4608 fi
4609 # 10*(2^10) chars as input seems more than enough
4610 test $ac_count -gt 10 && break
4611 done
4612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4613 esac
4614
4615 $ac_path_SED_found && break 3
4616 done
4617 done
4618 done
4619 IFS=$as_save_IFS
4620 if test -z "$ac_cv_path_SED"; then
4621 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4622 fi
4623 else
4624 ac_cv_path_SED=$SED
4625 fi
4626
4627 fi
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4629 $as_echo "$ac_cv_path_SED" >&6; }
4630 SED="$ac_cv_path_SED"
4631 rm -f conftest.sed
4632
4633
4634
4635
4636
4637 if test "x$GCC" = xyes ; then
4638 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4639 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4640 -Wbad-function-cast -Wformat=2"
4641 case `$CC -dumpversion` in
4642 3.4.* | 4.*)
4643 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4644 ;;
4645 esac
4646 else
4647 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4648 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4649 SUNCC="yes"
4650 else
4651 SUNCC="no"
4652 fi
4653
4654 if test "x$SUNCC" = "xyes"; then
4655 CWARNFLAGS="-v"
4656 fi
4657 fi
4658
4659
4660
4661 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4662
4663
4664
4665 # Check whether --enable-strict-compilation was given.
4666 if test "${enable_strict_compilation+set}" = set; then :
4667 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4668 else
4669 STRICT_COMPILE=no
4670 fi
4671
4672 if test "x$STRICT_COMPILE" = "xyes"; then
4673 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4674 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4675 SUNCC="yes"
4676 else
4677 SUNCC="no"
4678 fi
4679
4680 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4681 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4682 INTELCC="yes"
4683 else
4684 INTELCC="no"
4685 fi
4686
4687 if test "x$GCC" = xyes ; then
4688 STRICT_CFLAGS="-pedantic -Werror"
4689 elif test "x$SUNCC" = "xyes"; then
4690 STRICT_CFLAGS="-errwarn"
4691 elif test "x$INTELCC" = "xyes"; then
4692 STRICT_CFLAGS="-Werror"
4693 fi
4694 fi
4695 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4696
4697
4698
4699
4700 cat >>confdefs.h <<_ACEOF
4701 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4702 _ACEOF
4703
4704 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4705 if test "x$PVM" = "x"; then
4706 PVM="0"
4707 fi
4708
4709 cat >>confdefs.h <<_ACEOF
4710 #define PACKAGE_VERSION_MINOR $PVM
4711 _ACEOF
4712
4713 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4714 if test "x$PVP" = "x"; then
4715 PVP="0"
4716 fi
4717
4718 cat >>confdefs.h <<_ACEOF
4719 #define PACKAGE_VERSION_PATCHLEVEL $PVP
4720 _ACEOF
4721
4722
4723
4724 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4725 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4726 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4727 echo 'git directory not found: installing possibly empty changelog.' >&2)"
4728
4729
4730
4731
4732 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4733 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4734 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4735 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4736 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4737
4738
4739
4740
4741
4742
4743 if test x$APP_MAN_SUFFIX = x ; then
4744 APP_MAN_SUFFIX=1
4745 fi
4746 if test x$APP_MAN_DIR = x ; then
4747 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4748 fi
4749
4750 if test x$LIB_MAN_SUFFIX = x ; then
4751 LIB_MAN_SUFFIX=3
4752 fi
4753 if test x$LIB_MAN_DIR = x ; then
4754 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4755 fi
4756
4757 if test x$FILE_MAN_SUFFIX = x ; then
4758 case $host_os in
4759 solaris*) FILE_MAN_SUFFIX=4 ;;
4760 *) FILE_MAN_SUFFIX=5 ;;
4761 esac
4762 fi
4763 if test x$FILE_MAN_DIR = x ; then
4764 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4765 fi
4766
4767 if test x$MISC_MAN_SUFFIX = x ; then
4768 case $host_os in
4769 solaris*) MISC_MAN_SUFFIX=5 ;;
4770 *) MISC_MAN_SUFFIX=7 ;;
4771 esac
4772 fi
4773 if test x$MISC_MAN_DIR = x ; then
4774 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4775 fi
4776
4777 if test x$DRIVER_MAN_SUFFIX = x ; then
4778 case $host_os in
4779 solaris*) DRIVER_MAN_SUFFIX=7 ;;
4780 *) DRIVER_MAN_SUFFIX=4 ;;
4781 esac
4782 fi
4783 if test x$DRIVER_MAN_DIR = x ; then
4784 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4785 fi
4786
4787 if test x$ADMIN_MAN_SUFFIX = x ; then
4788 case $host_os in
4789 solaris*) ADMIN_MAN_SUFFIX=1m ;;
4790 *) ADMIN_MAN_SUFFIX=8 ;;
4791 esac
4792 fi
4793 if test x$ADMIN_MAN_DIR = x ; then
4794 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4795 fi
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811 XORG_MAN_PAGE="X Version 11"
4812
4813 MAN_SUBSTS="\
4814 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4815 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4816 -e 's|__xservername__|Xorg|g' \
4817 -e 's|__xconfigfile__|xorg.conf|g' \
4818 -e 's|__projectroot__|\$(prefix)|g' \
4819 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
4820 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4821 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4822 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4823 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4824 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4825 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4826
4827
4828
4829 # Check whether --enable-silent-rules was given.
4830 if test "${enable_silent_rules+set}" = set; then :
4831 enableval=$enable_silent_rules;
4832 fi
4833
4834 case $enable_silent_rules in
4835 yes) AM_DEFAULT_VERBOSITY=0;;
4836 no) AM_DEFAULT_VERBOSITY=1;;
4837 *) AM_DEFAULT_VERBOSITY=0;;
4838 esac
4839 AM_BACKSLASH='\'
4840
4841
4842 ac_config_headers="$ac_config_headers config.h"
4843
4844
4845 # Check for progs
4846 ac_ext=c
4847 ac_cpp='$CPP $CPPFLAGS'
4848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4851 if test -n "$ac_tool_prefix"; then
4852 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4853 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if ${ac_cv_prog_CC+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 if test -n "$CC"; then
4860 ac_cv_prog_CC="$CC" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4864 do
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4872 fi
4873 done
4874 done
4875 IFS=$as_save_IFS
4876
4877 fi
4878 fi
4879 CC=$ac_cv_prog_CC
4880 if test -n "$CC"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4882 $as_echo "$CC" >&6; }
4883 else
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4886 fi
4887
4888
4889 fi
4890 if test -z "$ac_cv_prog_CC"; then
4891 ac_ct_CC=$CC
4892 # Extract the first word of "gcc", so it can be a program name with args.
4893 set dummy gcc; ac_word=$2
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4897 $as_echo_n "(cached) " >&6
4898 else
4899 if test -n "$ac_ct_CC"; then
4900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4901 else
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4904 do
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4909 ac_cv_prog_ac_ct_CC="gcc"
4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 break 2
4912 fi
4913 done
4914 done
4915 IFS=$as_save_IFS
4916
4917 fi
4918 fi
4919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4920 if test -n "$ac_ct_CC"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4922 $as_echo "$ac_ct_CC" >&6; }
4923 else
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4926 fi
4927
4928 if test "x$ac_ct_CC" = x; then
4929 CC=""
4930 else
4931 case $cross_compiling:$ac_tool_warned in
4932 yes:)
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4935 ac_tool_warned=yes ;;
4936 esac
4937 CC=$ac_ct_CC
4938 fi
4939 else
4940 CC="$ac_cv_prog_CC"
4941 fi
4942
4943 if test -z "$CC"; then
4944 if test -n "$ac_tool_prefix"; then
4945 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4946 set dummy ${ac_tool_prefix}cc; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if ${ac_cv_prog_CC+:} false; then :
4950 $as_echo_n "(cached) " >&6
4951 else
4952 if test -n "$CC"; then
4953 ac_cv_prog_CC="$CC" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4957 do
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_CC="${ac_tool_prefix}cc"
4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4965 fi
4966 done
4967 done
4968 IFS=$as_save_IFS
4969
4970 fi
4971 fi
4972 CC=$ac_cv_prog_CC
4973 if test -n "$CC"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4975 $as_echo "$CC" >&6; }
4976 else
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4979 fi
4980
4981
4982 fi
4983 fi
4984 if test -z "$CC"; then
4985 # Extract the first word of "cc", so it can be a program name with args.
4986 set dummy cc; ac_word=$2
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4988 $as_echo_n "checking for $ac_word... " >&6; }
4989 if ${ac_cv_prog_CC+:} false; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 if test -n "$CC"; then
4993 ac_cv_prog_CC="$CC" # Let the user override the test.
4994 else
4995 ac_prog_rejected=no
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4998 do
4999 IFS=$as_save_IFS
5000 test -z "$as_dir" && as_dir=.
5001 for ac_exec_ext in '' $ac_executable_extensions; do
5002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5003 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5004 ac_prog_rejected=yes
5005 continue
5006 fi
5007 ac_cv_prog_CC="cc"
5008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 break 2
5010 fi
5011 done
5012 done
5013 IFS=$as_save_IFS
5014
5015 if test $ac_prog_rejected = yes; then
5016 # We found a bogon in the path, so make sure we never use it.
5017 set dummy $ac_cv_prog_CC
5018 shift
5019 if test $# != 0; then
5020 # We chose a different compiler from the bogus one.
5021 # However, it has the same basename, so the bogon will be chosen
5022 # first if we set CC to just the basename; use the full file name.
5023 shift
5024 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5025 fi
5026 fi
5027 fi
5028 fi
5029 CC=$ac_cv_prog_CC
5030 if test -n "$CC"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5032 $as_echo "$CC" >&6; }
5033 else
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5036 fi
5037
5038
5039 fi
5040 if test -z "$CC"; then
5041 if test -n "$ac_tool_prefix"; then
5042 for ac_prog in cl.exe
5043 do
5044 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5045 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if ${ac_cv_prog_CC+:} false; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 if test -n "$CC"; then
5052 ac_cv_prog_CC="$CC" # Let the user override the test.
5053 else
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5056 do
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5064 fi
5065 done
5066 done
5067 IFS=$as_save_IFS
5068
5069 fi
5070 fi
5071 CC=$ac_cv_prog_CC
5072 if test -n "$CC"; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5074 $as_echo "$CC" >&6; }
5075 else
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5078 fi
5079
5080
5081 test -n "$CC" && break
5082 done
5083 fi
5084 if test -z "$CC"; then
5085 ac_ct_CC=$CC
5086 for ac_prog in cl.exe
5087 do
5088 # Extract the first word of "$ac_prog", so it can be a program name with args.
5089 set dummy $ac_prog; ac_word=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5093 $as_echo_n "(cached) " >&6
5094 else
5095 if test -n "$ac_ct_CC"; then
5096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5097 else
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH
5100 do
5101 IFS=$as_save_IFS
5102 test -z "$as_dir" && as_dir=.
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5105 ac_cv_prog_ac_ct_CC="$ac_prog"
5106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5107 break 2
5108 fi
5109 done
5110 done
5111 IFS=$as_save_IFS
5112
5113 fi
5114 fi
5115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5116 if test -n "$ac_ct_CC"; then
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5118 $as_echo "$ac_ct_CC" >&6; }
5119 else
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121 $as_echo "no" >&6; }
5122 fi
5123
5124
5125 test -n "$ac_ct_CC" && break
5126 done
5127
5128 if test "x$ac_ct_CC" = x; then
5129 CC=""
5130 else
5131 case $cross_compiling:$ac_tool_warned in
5132 yes:)
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5135 ac_tool_warned=yes ;;
5136 esac
5137 CC=$ac_ct_CC
5138 fi
5139 fi
5140
5141 fi
5142
5143
5144 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5146 as_fn_error $? "no acceptable C compiler found in \$PATH
5147 See \`config.log' for more details" "$LINENO" 5; }
5148
5149 # Provide some information about the compiler.
5150 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5151 set X $ac_compile
5152 ac_compiler=$2
5153 for ac_option in --version -v -V -qversion; do
5154 { { ac_try="$ac_compiler $ac_option >&5"
5155 case "(($ac_try" in
5156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5157 *) ac_try_echo=$ac_try;;
5158 esac
5159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5160 $as_echo "$ac_try_echo"; } >&5
5161 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5162 ac_status=$?
5163 if test -s conftest.err; then
5164 sed '10a\
5165 ... rest of stderr output deleted ...
5166 10q' conftest.err >conftest.er1
5167 cat conftest.er1 >&5
5168 fi
5169 rm -f conftest.er1 conftest.err
5170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5171 test $ac_status = 0; }
5172 done
5173
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5175 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5176 if ${ac_cv_c_compiler_gnu+:} false; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5181
5182 int
5183 main ()
5184 {
5185 #ifndef __GNUC__
5186 choke me
5187 #endif
5188
5189 ;
5190 return 0;
5191 }
5192 _ACEOF
5193 if ac_fn_c_try_compile "$LINENO"; then :
5194 ac_compiler_gnu=yes
5195 else
5196 ac_compiler_gnu=no
5197 fi
5198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5199 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5200
5201 fi
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5203 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5204 if test $ac_compiler_gnu = yes; then
5205 GCC=yes
5206 else
5207 GCC=
5208 fi
5209 ac_test_CFLAGS=${CFLAGS+set}
5210 ac_save_CFLAGS=$CFLAGS
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5212 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5213 if ${ac_cv_prog_cc_g+:} false; then :
5214 $as_echo_n "(cached) " >&6
5215 else
5216 ac_save_c_werror_flag=$ac_c_werror_flag
5217 ac_c_werror_flag=yes
5218 ac_cv_prog_cc_g=no
5219 CFLAGS="-g"
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221 /* end confdefs.h. */
5222
5223 int
5224 main ()
5225 {
5226
5227 ;
5228 return 0;
5229 }
5230 _ACEOF
5231 if ac_fn_c_try_compile "$LINENO"; then :
5232 ac_cv_prog_cc_g=yes
5233 else
5234 CFLAGS=""
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5237
5238 int
5239 main ()
5240 {
5241
5242 ;
5243 return 0;
5244 }
5245 _ACEOF
5246 if ac_fn_c_try_compile "$LINENO"; then :
5247
5248 else
5249 ac_c_werror_flag=$ac_save_c_werror_flag
5250 CFLAGS="-g"
5251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h. */
5253
5254 int
5255 main ()
5256 {
5257
5258 ;
5259 return 0;
5260 }
5261 _ACEOF
5262 if ac_fn_c_try_compile "$LINENO"; then :
5263 ac_cv_prog_cc_g=yes
5264 fi
5265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5266 fi
5267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268 fi
5269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5270 ac_c_werror_flag=$ac_save_c_werror_flag
5271 fi
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5273 $as_echo "$ac_cv_prog_cc_g" >&6; }
5274 if test "$ac_test_CFLAGS" = set; then
5275 CFLAGS=$ac_save_CFLAGS
5276 elif test $ac_cv_prog_cc_g = yes; then
5277 if test "$GCC" = yes; then
5278 CFLAGS="-g -O2"
5279 else
5280 CFLAGS="-g"
5281 fi
5282 else
5283 if test "$GCC" = yes; then
5284 CFLAGS="-O2"
5285 else
5286 CFLAGS=
5287 fi
5288 fi
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5290 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5291 if ${ac_cv_prog_cc_c89+:} false; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 ac_cv_prog_cc_c89=no
5295 ac_save_CC=$CC
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5298 #include <stdarg.h>
5299 #include <stdio.h>
5300 #include <sys/types.h>
5301 #include <sys/stat.h>
5302 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5303 struct buf { int x; };
5304 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5305 static char *e (p, i)
5306 char **p;
5307 int i;
5308 {
5309 return p[i];
5310 }
5311 static char *f (char * (*g) (char **, int), char **p, ...)
5312 {
5313 char *s;
5314 va_list v;
5315 va_start (v,p);
5316 s = g (p, va_arg (v,int));
5317 va_end (v);
5318 return s;
5319 }
5320
5321 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5322 function prototypes and stuff, but not '\xHH' hex character constants.
5323 These don't provoke an error unfortunately, instead are silently treated
5324 as 'x'. The following induces an error, until -std is added to get
5325 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5326 array size at least. It's necessary to write '\x00'==0 to get something
5327 that's true only with -std. */
5328 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5329
5330 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5331 inside strings and character constants. */
5332 #define FOO(x) 'x'
5333 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5334
5335 int test (int i, double x);
5336 struct s1 {int (*f) (int a);};
5337 struct s2 {int (*f) (double a);};
5338 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5339 int argc;
5340 char **argv;
5341 int
5342 main ()
5343 {
5344 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5345 ;
5346 return 0;
5347 }
5348 _ACEOF
5349 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5350 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5351 do
5352 CC="$ac_save_CC $ac_arg"
5353 if ac_fn_c_try_compile "$LINENO"; then :
5354 ac_cv_prog_cc_c89=$ac_arg
5355 fi
5356 rm -f core conftest.err conftest.$ac_objext
5357 test "x$ac_cv_prog_cc_c89" != "xno" && break
5358 done
5359 rm -f conftest.$ac_ext
5360 CC=$ac_save_CC
5361
5362 fi
5363 # AC_CACHE_VAL
5364 case "x$ac_cv_prog_cc_c89" in
5365 x)
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5367 $as_echo "none needed" >&6; } ;;
5368 xno)
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5370 $as_echo "unsupported" >&6; } ;;
5371 *)
5372 CC="$CC $ac_cv_prog_cc_c89"
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5374 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5375 esac
5376 if test "x$ac_cv_prog_cc_c89" != xno; then :
5377
5378 fi
5379
5380 ac_ext=c
5381 ac_cpp='$CPP $CPPFLAGS'
5382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5385
5386 depcc="$CC" am_compiler_list=
5387
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5389 $as_echo_n "checking dependency style of $depcc... " >&6; }
5390 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5394 # We make a subdir and do the tests there. Otherwise we can end up
5395 # making bogus files that we don't know about and never remove. For
5396 # instance it was reported that on HP-UX the gcc test will end up
5397 # making a dummy file named `D' -- because `-MD' means `put the output
5398 # in D'.
5399 mkdir conftest.dir
5400 # Copy depcomp to subdir because otherwise we won't find it if we're
5401 # using a relative directory.
5402 cp "$am_depcomp" conftest.dir
5403 cd conftest.dir
5404 # We will build objects and dependencies in a subdirectory because
5405 # it helps to detect inapplicable dependency modes. For instance
5406 # both Tru64's cc and ICC support -MD to output dependencies as a
5407 # side effect of compilation, but ICC will put the dependencies in
5408 # the current directory while Tru64 will put them in the object
5409 # directory.
5410 mkdir sub
5411
5412 am_cv_CC_dependencies_compiler_type=none
5413 if test "$am_compiler_list" = ""; then
5414 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5415 fi
5416 am__universal=false
5417 case " $depcc " in #(
5418 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5419 esac
5420
5421 for depmode in $am_compiler_list; do
5422 # Setup a source with many dependencies, because some compilers
5423 # like to wrap large dependency lists on column 80 (with \), and
5424 # we should not choose a depcomp mode which is confused by this.
5425 #
5426 # We need to recreate these files for each test, as the compiler may
5427 # overwrite some of them when testing with obscure command lines.
5428 # This happens at least with the AIX C compiler.
5429 : > sub/conftest.c
5430 for i in 1 2 3 4 5 6; do
5431 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5432 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5433 # Solaris 8's {/usr,}/bin/sh.
5434 touch sub/conftst$i.h
5435 done
5436 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5437
5438 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5439 # mode. It turns out that the SunPro C++ compiler does not properly
5440 # handle `-M -o', and we need to detect this. Also, some Intel
5441 # versions had trouble with output in subdirs
5442 am__obj=sub/conftest.${OBJEXT-o}
5443 am__minus_obj="-o $am__obj"
5444 case $depmode in
5445 gcc)
5446 # This depmode causes a compiler race in universal mode.
5447 test "$am__universal" = false || continue
5448 ;;
5449 nosideeffect)
5450 # after this tag, mechanisms are not by side-effect, so they'll
5451 # only be used when explicitly requested
5452 if test "x$enable_dependency_tracking" = xyes; then
5453 continue
5454 else
5455 break
5456 fi
5457 ;;
5458 msvisualcpp | msvcmsys)
5459 # This compiler won't grok `-c -o', but also, the minuso test has
5460 # not run yet. These depmodes are late enough in the game, and
5461 # so weak that their functioning should not be impacted.
5462 am__obj=conftest.${OBJEXT-o}
5463 am__minus_obj=
5464 ;;
5465 none) break ;;
5466 esac
5467 if depmode=$depmode \
5468 source=sub/conftest.c object=$am__obj \
5469 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5470 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5471 >/dev/null 2>conftest.err &&
5472 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5473 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5474 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5475 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5476 # icc doesn't choke on unknown options, it will just issue warnings
5477 # or remarks (even with -Werror). So we grep stderr for any message
5478 # that says an option was ignored or not supported.
5479 # When given -MP, icc 7.0 and 7.1 complain thusly:
5480 # icc: Command line warning: ignoring option '-M'; no argument required
5481 # The diagnosis changed in icc 8.0:
5482 # icc: Command line remark: option '-MP' not supported
5483 if (grep 'ignoring option' conftest.err ||
5484 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5485 am_cv_CC_dependencies_compiler_type=$depmode
5486 break
5487 fi
5488 fi
5489 done
5490
5491 cd ..
5492 rm -rf conftest.dir
5493 else
5494 am_cv_CC_dependencies_compiler_type=none
5495 fi
5496
5497 fi
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5499 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5500 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5501
5502 if
5503 test "x$enable_dependency_tracking" != xno \
5504 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5505 am__fastdepCC_TRUE=
5506 am__fastdepCC_FALSE='#'
5507 else
5508 am__fastdepCC_TRUE='#'
5509 am__fastdepCC_FALSE=
5510 fi
5511
5512
5513 case `pwd` in
5514 *\ * | *\ *)
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5516 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5517 esac
5518
5519
5520
5521 macro_version='2.2.10'
5522 macro_revision='1.3175'
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536 ltmain="$ac_aux_dir/ltmain.sh"
5537
5538 # Backslashify metacharacters that are still active within
5539 # double-quoted strings.
5540 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5541
5542 # Same as above, but do not quote variable references.
5543 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5544
5545 # Sed substitution to delay expansion of an escaped shell variable in a
5546 # double_quote_subst'ed string.
5547 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5548
5549 # Sed substitution to delay expansion of an escaped single quote.
5550 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5551
5552 # Sed substitution to avoid accidental globbing in evaled expressions
5553 no_glob_subst='s/\*/\\\*/g'
5554
5555 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5556 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5557 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5558
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5560 $as_echo_n "checking how to print strings... " >&6; }
5561 # Test print first, because it will be a builtin if present.
5562 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5563 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5564 ECHO='print -r --'
5565 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5566 ECHO='printf %s\n'
5567 else
5568 # Use this function as a fallback that always works.
5569 func_fallback_echo ()
5570 {
5571 eval 'cat <<_LTECHO_EOF
5572 $1
5573 _LTECHO_EOF'
5574 }
5575 ECHO='func_fallback_echo'
5576 fi
5577
5578 # func_echo_all arg...
5579 # Invoke $ECHO with all args, space-separated.
5580 func_echo_all ()
5581 {
5582 $ECHO ""
5583 }
5584
5585 case "$ECHO" in
5586 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5587 $as_echo "printf" >&6; } ;;
5588 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5589 $as_echo "print -r" >&6; } ;;
5590 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5591 $as_echo "cat" >&6; } ;;
5592 esac
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5608 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5609 if ${ac_cv_path_SED+:} false; then :
5610 $as_echo_n "(cached) " >&6
5611 else
5612 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5613 for ac_i in 1 2 3 4 5 6 7; do
5614 ac_script="$ac_script$as_nl$ac_script"
5615 done
5616 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5617 { ac_script=; unset ac_script;}
5618 if test -z "$SED"; then
5619 ac_path_SED_found=false
5620 # Loop through the user's path and test for each of PROGNAME-LIST
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH
5623 do
5624 IFS=$as_save_IFS
5625 test -z "$as_dir" && as_dir=.
5626 for ac_prog in sed gsed; do
5627 for ac_exec_ext in '' $ac_executable_extensions; do
5628 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5629 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5630 # Check for GNU ac_path_SED and select it if it is found.
5631 # Check for GNU $ac_path_SED
5632 case `"$ac_path_SED" --version 2>&1` in
5633 *GNU*)
5634 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5635 *)
5636 ac_count=0
5637 $as_echo_n 0123456789 >"conftest.in"
5638 while :
5639 do
5640 cat "conftest.in" "conftest.in" >"conftest.tmp"
5641 mv "conftest.tmp" "conftest.in"
5642 cp "conftest.in" "conftest.nl"
5643 $as_echo '' >> "conftest.nl"
5644 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5645 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5646 as_fn_arith $ac_count + 1 && ac_count=$as_val
5647 if test $ac_count -gt ${ac_path_SED_max-0}; then
5648 # Best one so far, save it but keep looking for a better one
5649 ac_cv_path_SED="$ac_path_SED"
5650 ac_path_SED_max=$ac_count
5651 fi
5652 # 10*(2^10) chars as input seems more than enough
5653 test $ac_count -gt 10 && break
5654 done
5655 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5656 esac
5657
5658 $ac_path_SED_found && break 3
5659 done
5660 done
5661 done
5662 IFS=$as_save_IFS
5663 if test -z "$ac_cv_path_SED"; then
5664 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5665 fi
5666 else
5667 ac_cv_path_SED=$SED
5668 fi
5669
5670 fi
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5672 $as_echo "$ac_cv_path_SED" >&6; }
5673 SED="$ac_cv_path_SED"
5674 rm -f conftest.sed
5675
5676 test -z "$SED" && SED=sed
5677 Xsed="$SED -e 1s/^X//"
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5690 $as_echo_n "checking for fgrep... " >&6; }
5691 if ${ac_cv_path_FGREP+:} false; then :
5692 $as_echo_n "(cached) " >&6
5693 else
5694 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5695 then ac_cv_path_FGREP="$GREP -F"
5696 else
5697 if test -z "$FGREP"; then
5698 ac_path_FGREP_found=false
5699 # Loop through the user's path and test for each of PROGNAME-LIST
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5702 do
5703 IFS=$as_save_IFS
5704 test -z "$as_dir" && as_dir=.
5705 for ac_prog in fgrep; do
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5708 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5709 # Check for GNU ac_path_FGREP and select it if it is found.
5710 # Check for GNU $ac_path_FGREP
5711 case `"$ac_path_FGREP" --version 2>&1` in
5712 *GNU*)
5713 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5714 *)
5715 ac_count=0
5716 $as_echo_n 0123456789 >"conftest.in"
5717 while :
5718 do
5719 cat "conftest.in" "conftest.in" >"conftest.tmp"
5720 mv "conftest.tmp" "conftest.in"
5721 cp "conftest.in" "conftest.nl"
5722 $as_echo 'FGREP' >> "conftest.nl"
5723 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5724 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5725 as_fn_arith $ac_count + 1 && ac_count=$as_val
5726 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5727 # Best one so far, save it but keep looking for a better one
5728 ac_cv_path_FGREP="$ac_path_FGREP"
5729 ac_path_FGREP_max=$ac_count
5730 fi
5731 # 10*(2^10) chars as input seems more than enough
5732 test $ac_count -gt 10 && break
5733 done
5734 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5735 esac
5736
5737 $ac_path_FGREP_found && break 3
5738 done
5739 done
5740 done
5741 IFS=$as_save_IFS
5742 if test -z "$ac_cv_path_FGREP"; then
5743 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5744 fi
5745 else
5746 ac_cv_path_FGREP=$FGREP
5747 fi
5748
5749 fi
5750 fi
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5752 $as_echo "$ac_cv_path_FGREP" >&6; }
5753 FGREP="$ac_cv_path_FGREP"
5754
5755
5756 test -z "$GREP" && GREP=grep
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776 # Check whether --with-gnu-ld was given.
5777 if test "${with_gnu_ld+set}" = set; then :
5778 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5779 else
5780 with_gnu_ld=no
5781 fi
5782
5783 ac_prog=ld
5784 if test "$GCC" = yes; then
5785 # Check if gcc -print-prog-name=ld gives a path.
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5787 $as_echo_n "checking for ld used by $CC... " >&6; }
5788 case $host in
5789 *-*-mingw*)
5790 # gcc leaves a trailing carriage return which upsets mingw
5791 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5792 *)
5793 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5794 esac
5795 case $ac_prog in
5796 # Accept absolute paths.
5797 [\\/]* | ?:[\\/]*)
5798 re_direlt='/[^/][^/]*/\.\./'
5799 # Canonicalize the pathname of ld
5800 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5801 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5802 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5803 done
5804 test -z "$LD" && LD="$ac_prog"
5805 ;;
5806 "")
5807 # If it fails, then pretend we aren't using GCC.
5808 ac_prog=ld
5809 ;;
5810 *)
5811 # If it is relative, then search for the first ld in PATH.
5812 with_gnu_ld=unknown
5813 ;;
5814 esac
5815 elif test "$with_gnu_ld" = yes; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5817 $as_echo_n "checking for GNU ld... " >&6; }
5818 else
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5820 $as_echo_n "checking for non-GNU ld... " >&6; }
5821 fi
5822 if ${lt_cv_path_LD+:} false; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 if test -z "$LD"; then
5826 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5827 for ac_dir in $PATH; do
5828 IFS="$lt_save_ifs"
5829 test -z "$ac_dir" && ac_dir=.
5830 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5831 lt_cv_path_LD="$ac_dir/$ac_prog"
5832 # Check to see if the program is GNU ld. I'd rather use --version,
5833 # but apparently some variants of GNU ld only accept -v.
5834 # Break only if it was the GNU/non-GNU ld that we prefer.
5835 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5836 *GNU* | *'with BFD'*)
5837 test "$with_gnu_ld" != no && break
5838 ;;
5839 *)
5840 test "$with_gnu_ld" != yes && break
5841 ;;
5842 esac
5843 fi
5844 done
5845 IFS="$lt_save_ifs"
5846 else
5847 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5848 fi
5849 fi
5850
5851 LD="$lt_cv_path_LD"
5852 if test -n "$LD"; then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5854 $as_echo "$LD" >&6; }
5855 else
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857 $as_echo "no" >&6; }
5858 fi
5859 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5861 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5862 if ${lt_cv_prog_gnu_ld+:} false; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5866 case `$LD -v 2>&1 </dev/null` in
5867 *GNU* | *'with BFD'*)
5868 lt_cv_prog_gnu_ld=yes
5869 ;;
5870 *)
5871 lt_cv_prog_gnu_ld=no
5872 ;;
5873 esac
5874 fi
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5876 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5877 with_gnu_ld=$lt_cv_prog_gnu_ld
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5888 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5889 if ${lt_cv_path_NM+:} false; then :
5890 $as_echo_n "(cached) " >&6
5891 else
5892 if test -n "$NM"; then
5893 # Let the user override the test.
5894 lt_cv_path_NM="$NM"
5895 else
5896 lt_nm_to_check="${ac_tool_prefix}nm"
5897 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5898 lt_nm_to_check="$lt_nm_to_check nm"
5899 fi
5900 for lt_tmp_nm in $lt_nm_to_check; do
5901 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5902 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5903 IFS="$lt_save_ifs"
5904 test -z "$ac_dir" && ac_dir=.
5905 tmp_nm="$ac_dir/$lt_tmp_nm"
5906 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5907 # Check to see if the nm accepts a BSD-compat flag.
5908 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5909 # nm: unknown option "B" ignored
5910 # Tru64's nm complains that /dev/null is an invalid object file
5911 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5912 */dev/null* | *'Invalid file or object type'*)
5913 lt_cv_path_NM="$tmp_nm -B"
5914 break
5915 ;;
5916 *)
5917 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5918 */dev/null*)
5919 lt_cv_path_NM="$tmp_nm -p"
5920 break
5921 ;;
5922 *)
5923 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5924 continue # so that we can try to find one that supports BSD flags
5925 ;;
5926 esac
5927 ;;
5928 esac
5929 fi
5930 done
5931 IFS="$lt_save_ifs"
5932 done
5933 : ${lt_cv_path_NM=no}
5934 fi
5935 fi
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5937 $as_echo "$lt_cv_path_NM" >&6; }
5938 if test "$lt_cv_path_NM" != "no"; then
5939 NM="$lt_cv_path_NM"
5940 else
5941 # Didn't find any BSD compatible name lister, look for dumpbin.
5942 if test -n "$DUMPBIN"; then :
5943 # Let the user override the test.
5944 else
5945 if test -n "$ac_tool_prefix"; then
5946 for ac_prog in dumpbin "link -dump"
5947 do
5948 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5949 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951 $as_echo_n "checking for $ac_word... " >&6; }
5952 if ${ac_cv_prog_DUMPBIN+:} false; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 if test -n "$DUMPBIN"; then
5956 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5957 else
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in $PATH
5960 do
5961 IFS=$as_save_IFS
5962 test -z "$as_dir" && as_dir=.
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5965 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5967 break 2
5968 fi
5969 done
5970 done
5971 IFS=$as_save_IFS
5972
5973 fi
5974 fi
5975 DUMPBIN=$ac_cv_prog_DUMPBIN
5976 if test -n "$DUMPBIN"; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5978 $as_echo "$DUMPBIN" >&6; }
5979 else
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5982 fi
5983
5984
5985 test -n "$DUMPBIN" && break
5986 done
5987 fi
5988 if test -z "$DUMPBIN"; then
5989 ac_ct_DUMPBIN=$DUMPBIN
5990 for ac_prog in dumpbin "link -dump"
5991 do
5992 # Extract the first word of "$ac_prog", so it can be a program name with args.
5993 set dummy $ac_prog; ac_word=$2
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5995 $as_echo_n "checking for $ac_word... " >&6; }
5996 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5997 $as_echo_n "(cached) " >&6
5998 else
5999 if test -n "$ac_ct_DUMPBIN"; then
6000 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6001 else
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 for as_dir in $PATH
6004 do
6005 IFS=$as_save_IFS
6006 test -z "$as_dir" && as_dir=.
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6009 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6011 break 2
6012 fi
6013 done
6014 done
6015 IFS=$as_save_IFS
6016
6017 fi
6018 fi
6019 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6020 if test -n "$ac_ct_DUMPBIN"; then
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6022 $as_echo "$ac_ct_DUMPBIN" >&6; }
6023 else
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025 $as_echo "no" >&6; }
6026 fi
6027
6028
6029 test -n "$ac_ct_DUMPBIN" && break
6030 done
6031
6032 if test "x$ac_ct_DUMPBIN" = x; then
6033 DUMPBIN=":"
6034 else
6035 case $cross_compiling:$ac_tool_warned in
6036 yes:)
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6039 ac_tool_warned=yes ;;
6040 esac
6041 DUMPBIN=$ac_ct_DUMPBIN
6042 fi
6043 fi
6044
6045 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6046 *COFF*)
6047 DUMPBIN="$DUMPBIN -symbols"
6048 ;;
6049 *)
6050 DUMPBIN=:
6051 ;;
6052 esac
6053 fi
6054
6055 if test "$DUMPBIN" != ":"; then
6056 NM="$DUMPBIN"
6057 fi
6058 fi
6059 test -z "$NM" && NM=nm
6060
6061
6062
6063
6064
6065
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6067 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6068 if ${lt_cv_nm_interface+:} false; then :
6069 $as_echo_n "(cached) " >&6
6070 else
6071 lt_cv_nm_interface="BSD nm"
6072 echo "int some_variable = 0;" > conftest.$ac_ext
6073 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6074 (eval "$ac_compile" 2>conftest.err)
6075 cat conftest.err >&5
6076 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6077 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6078 cat conftest.err >&5
6079 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6080 cat conftest.out >&5
6081 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6082 lt_cv_nm_interface="MS dumpbin"
6083 fi
6084 rm -f conftest*
6085 fi
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6087 $as_echo "$lt_cv_nm_interface" >&6; }
6088
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6090 $as_echo_n "checking whether ln -s works... " >&6; }
6091 LN_S=$as_ln_s
6092 if test "$LN_S" = "ln -s"; then
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6094 $as_echo "yes" >&6; }
6095 else
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6097 $as_echo "no, using $LN_S" >&6; }
6098 fi
6099
6100 # find the maximum length of command line arguments
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6102 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6103 if ${lt_cv_sys_max_cmd_len+:} false; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6106 i=0
6107 teststring="ABCD"
6108
6109 case $build_os in
6110 msdosdjgpp*)
6111 # On DJGPP, this test can blow up pretty badly due to problems in libc
6112 # (any single argument exceeding 2000 bytes causes a buffer overrun
6113 # during glob expansion). Even if it were fixed, the result of this
6114 # check would be larger than it should be.
6115 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6116 ;;
6117
6118 gnu*)
6119 # Under GNU Hurd, this test is not required because there is
6120 # no limit to the length of command line arguments.
6121 # Libtool will interpret -1 as no limit whatsoever
6122 lt_cv_sys_max_cmd_len=-1;
6123 ;;
6124
6125 cygwin* | mingw* | cegcc*)
6126 # On Win9x/ME, this test blows up -- it succeeds, but takes
6127 # about 5 minutes as the teststring grows exponentially.
6128 # Worse, since 9x/ME are not pre-emptively multitasking,
6129 # you end up with a "frozen" computer, even though with patience
6130 # the test eventually succeeds (with a max line length of 256k).
6131 # Instead, let's just punt: use the minimum linelength reported by
6132 # all of the supported platforms: 8192 (on NT/2K/XP).
6133 lt_cv_sys_max_cmd_len=8192;
6134 ;;
6135
6136 mint*)
6137 # On MiNT this can take a long time and run out of memory.
6138 lt_cv_sys_max_cmd_len=8192;
6139 ;;
6140
6141 amigaos*)
6142 # On AmigaOS with pdksh, this test takes hours, literally.
6143 # So we just punt and use a minimum line length of 8192.
6144 lt_cv_sys_max_cmd_len=8192;
6145 ;;
6146
6147 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6148 # This has been around since 386BSD, at least. Likely further.
6149 if test -x /sbin/sysctl; then
6150 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6151 elif test -x /usr/sbin/sysctl; then
6152 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6153 else
6154 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6155 fi
6156 # And add a safety zone
6157 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6158 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6159 ;;
6160
6161 interix*)
6162 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6163 lt_cv_sys_max_cmd_len=196608
6164 ;;
6165
6166 osf*)
6167 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6168 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6169 # nice to cause kernel panics so lets avoid the loop below.
6170 # First set a reasonable default.
6171 lt_cv_sys_max_cmd_len=16384
6172 #
6173 if test -x /sbin/sysconfig; then
6174 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6175 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6176 esac
6177 fi
6178 ;;
6179 sco3.2v5*)
6180 lt_cv_sys_max_cmd_len=102400
6181 ;;
6182 sysv5* | sco5v6* | sysv4.2uw2*)
6183 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6184 if test -n "$kargmax"; then
6185 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6186 else
6187 lt_cv_sys_max_cmd_len=32768
6188 fi
6189 ;;
6190 *)
6191 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6192 if test -n "$lt_cv_sys_max_cmd_len"; then
6193 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6194 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6195 else
6196 # Make teststring a little bigger before we do anything with it.
6197 # a 1K string should be a reasonable start.
6198 for i in 1 2 3 4 5 6 7 8 ; do
6199 teststring=$teststring$teststring
6200 done
6201 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6202 # If test is not a shell built-in, we'll probably end up computing a
6203 # maximum length that is only half of the actual maximum length, but
6204 # we can't tell.
6205 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6206 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6207 test $i != 17 # 1/2 MB should be enough
6208 do
6209 i=`expr $i + 1`
6210 teststring=$teststring$teststring
6211 done
6212 # Only check the string length outside the loop.
6213 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6214 teststring=
6215 # Add a significant safety factor because C++ compilers can tack on
6216 # massive amounts of additional arguments before passing them to the
6217 # linker. It appears as though 1/2 is a usable value.
6218 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6219 fi
6220 ;;
6221 esac
6222
6223 fi
6224
6225 if test -n $lt_cv_sys_max_cmd_len ; then
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6227 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6228 else
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6230 $as_echo "none" >&6; }
6231 fi
6232 max_cmd_len=$lt_cv_sys_max_cmd_len
6233
6234
6235
6236
6237
6238
6239 : ${CP="cp -f"}
6240 : ${MV="mv -f"}
6241 : ${RM="rm -f"}
6242
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6244 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6245 # Try some XSI features
6246 xsi_shell=no
6247 ( _lt_dummy="a/b/c"
6248 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6249 = c,a/b,, \
6250 && eval 'test $(( 1 + 1 )) -eq 2 \
6251 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6252 && xsi_shell=yes
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6254 $as_echo "$xsi_shell" >&6; }
6255
6256
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6258 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6259 lt_shell_append=no
6260 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6261 >/dev/null 2>&1 \
6262 && lt_shell_append=yes
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6264 $as_echo "$lt_shell_append" >&6; }
6265
6266
6267 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6268 lt_unset=unset
6269 else
6270 lt_unset=false
6271 fi
6272
6273
6274
6275
6276
6277 # test EBCDIC or ASCII
6278 case `echo X|tr X '\101'` in
6279 A) # ASCII based system
6280 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6281 lt_SP2NL='tr \040 \012'
6282 lt_NL2SP='tr \015\012 \040\040'
6283 ;;
6284 *) # EBCDIC based system
6285 lt_SP2NL='tr \100 \n'
6286 lt_NL2SP='tr \r\n \100\100'
6287 ;;
6288 esac
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6299 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6300 if ${lt_cv_ld_reload_flag+:} false; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303 lt_cv_ld_reload_flag='-r'
6304 fi
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6306 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6307 reload_flag=$lt_cv_ld_reload_flag
6308 case $reload_flag in
6309 "" | " "*) ;;
6310 *) reload_flag=" $reload_flag" ;;
6311 esac
6312 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6313 case $host_os in
6314 darwin*)
6315 if test "$GCC" = yes; then
6316 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6317 else
6318 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6319 fi
6320 ;;
6321 esac
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331 if test -n "$ac_tool_prefix"; then
6332 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6333 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335 $as_echo_n "checking for $ac_word... " >&6; }
6336 if ${ac_cv_prog_OBJDUMP+:} false; then :
6337 $as_echo_n "(cached) " >&6
6338 else
6339 if test -n "$OBJDUMP"; then
6340 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6341 else
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6344 do
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6349 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 break 2
6352 fi
6353 done
6354 done
6355 IFS=$as_save_IFS
6356
6357 fi
6358 fi
6359 OBJDUMP=$ac_cv_prog_OBJDUMP
6360 if test -n "$OBJDUMP"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6362 $as_echo "$OBJDUMP" >&6; }
6363 else
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6366 fi
6367
6368
6369 fi
6370 if test -z "$ac_cv_prog_OBJDUMP"; then
6371 ac_ct_OBJDUMP=$OBJDUMP
6372 # Extract the first word of "objdump", so it can be a program name with args.
6373 set dummy objdump; ac_word=$2
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375 $as_echo_n "checking for $ac_word... " >&6; }
6376 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6377 $as_echo_n "(cached) " >&6
6378 else
6379 if test -n "$ac_ct_OBJDUMP"; then
6380 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6381 else
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6384 do
6385 IFS=$as_save_IFS
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6389 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 break 2
6392 fi
6393 done
6394 done
6395 IFS=$as_save_IFS
6396
6397 fi
6398 fi
6399 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6400 if test -n "$ac_ct_OBJDUMP"; then
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6402 $as_echo "$ac_ct_OBJDUMP" >&6; }
6403 else
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405 $as_echo "no" >&6; }
6406 fi
6407
6408 if test "x$ac_ct_OBJDUMP" = x; then
6409 OBJDUMP="false"
6410 else
6411 case $cross_compiling:$ac_tool_warned in
6412 yes:)
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6415 ac_tool_warned=yes ;;
6416 esac
6417 OBJDUMP=$ac_ct_OBJDUMP
6418 fi
6419 else
6420 OBJDUMP="$ac_cv_prog_OBJDUMP"
6421 fi
6422
6423 test -z "$OBJDUMP" && OBJDUMP=objdump
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6434 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6435 if ${lt_cv_deplibs_check_method+:} false; then :
6436 $as_echo_n "(cached) " >&6
6437 else
6438 lt_cv_file_magic_cmd='$MAGIC_CMD'
6439 lt_cv_file_magic_test_file=
6440 lt_cv_deplibs_check_method='unknown'
6441 # Need to set the preceding variable on all platforms that support
6442 # interlibrary dependencies.
6443 # 'none' -- dependencies not supported.
6444 # `unknown' -- same as none, but documents that we really don't know.
6445 # 'pass_all' -- all dependencies passed with no checks.
6446 # 'test_compile' -- check by making test program.
6447 # 'file_magic [[regex]]' -- check by looking for files in library path
6448 # which responds to the $file_magic_cmd with a given extended regex.
6449 # If you have `file' or equivalent on your system and you're not sure
6450 # whether `pass_all' will *always* work, you probably want this one.
6451
6452 case $host_os in
6453 aix[4-9]*)
6454 lt_cv_deplibs_check_method=pass_all
6455 ;;
6456
6457 beos*)
6458 lt_cv_deplibs_check_method=pass_all
6459 ;;
6460
6461 bsdi[45]*)
6462 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6463 lt_cv_file_magic_cmd='/usr/bin/file -L'
6464 lt_cv_file_magic_test_file=/shlib/libc.so
6465 ;;
6466
6467 cygwin*)
6468 # func_win32_libid is a shell function defined in ltmain.sh
6469 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6470 lt_cv_file_magic_cmd='func_win32_libid'
6471 ;;
6472
6473 mingw* | pw32*)
6474 # Base MSYS/MinGW do not provide the 'file' command needed by
6475 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6476 # unless we find 'file', for example because we are cross-compiling.
6477 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6478 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6479 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6480 lt_cv_file_magic_cmd='func_win32_libid'
6481 else
6482 # Keep this pattern in sync with the one in func_win32_libid.
6483 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6484 lt_cv_file_magic_cmd='$OBJDUMP -f'
6485 fi
6486 ;;
6487
6488 cegcc*)
6489 # use the weaker test based on 'objdump'. See mingw*.
6490 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6491 lt_cv_file_magic_cmd='$OBJDUMP -f'
6492 ;;
6493
6494 darwin* | rhapsody*)
6495 lt_cv_deplibs_check_method=pass_all
6496 ;;
6497
6498 freebsd* | dragonfly*)
6499 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6500 case $host_cpu in
6501 i*86 )
6502 # Not sure whether the presence of OpenBSD here was a mistake.
6503 # Let's accept both of them until this is cleared up.
6504 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6505 lt_cv_file_magic_cmd=/usr/bin/file
6506 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6507 ;;
6508 esac
6509 else
6510 lt_cv_deplibs_check_method=pass_all
6511 fi
6512 ;;
6513
6514 gnu*)
6515 lt_cv_deplibs_check_method=pass_all
6516 ;;
6517
6518 haiku*)
6519 lt_cv_deplibs_check_method=pass_all
6520 ;;
6521
6522 hpux10.20* | hpux11*)
6523 lt_cv_file_magic_cmd=/usr/bin/file
6524 case $host_cpu in
6525 ia64*)
6526 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6527 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6528 ;;
6529 hppa*64*)
6530 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]'
6531 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6532 ;;
6533 *)
6534 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6535 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6536 ;;
6537 esac
6538 ;;
6539
6540 interix[3-9]*)
6541 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6542 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6543 ;;
6544
6545 irix5* | irix6* | nonstopux*)
6546 case $LD in
6547 *-32|*"-32 ") libmagic=32-bit;;
6548 *-n32|*"-n32 ") libmagic=N32;;
6549 *-64|*"-64 ") libmagic=64-bit;;
6550 *) libmagic=never-match;;
6551 esac
6552 lt_cv_deplibs_check_method=pass_all
6553 ;;
6554
6555 # This must be Linux ELF.
6556 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6557 lt_cv_deplibs_check_method=pass_all
6558 ;;
6559
6560 netbsd*)
6561 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6563 else
6564 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6565 fi
6566 ;;
6567
6568 newos6*)
6569 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6570 lt_cv_file_magic_cmd=/usr/bin/file
6571 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6572 ;;
6573
6574 *nto* | *qnx*)
6575 lt_cv_deplibs_check_method=pass_all
6576 ;;
6577
6578 openbsd*)
6579 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6581 else
6582 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6583 fi
6584 ;;
6585
6586 osf3* | osf4* | osf5*)
6587 lt_cv_deplibs_check_method=pass_all
6588 ;;
6589
6590 rdos*)
6591 lt_cv_deplibs_check_method=pass_all
6592 ;;
6593
6594 solaris*)
6595 lt_cv_deplibs_check_method=pass_all
6596 ;;
6597
6598 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6599 lt_cv_deplibs_check_method=pass_all
6600 ;;
6601
6602 sysv4 | sysv4.3*)
6603 case $host_vendor in
6604 motorola)
6605 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]'
6606 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6607 ;;
6608 ncr)
6609 lt_cv_deplibs_check_method=pass_all
6610 ;;
6611 sequent)
6612 lt_cv_file_magic_cmd='/bin/file'
6613 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6614 ;;
6615 sni)
6616 lt_cv_file_magic_cmd='/bin/file'
6617 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6618 lt_cv_file_magic_test_file=/lib/libc.so
6619 ;;
6620 siemens)
6621 lt_cv_deplibs_check_method=pass_all
6622 ;;
6623 pc)
6624 lt_cv_deplibs_check_method=pass_all
6625 ;;
6626 esac
6627 ;;
6628
6629 tpf*)
6630 lt_cv_deplibs_check_method=pass_all
6631 ;;
6632 esac
6633
6634 fi
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6636 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6637 file_magic_cmd=$lt_cv_file_magic_cmd
6638 deplibs_check_method=$lt_cv_deplibs_check_method
6639 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652 if test -n "$ac_tool_prefix"; then
6653 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6654 set dummy ${ac_tool_prefix}ar; ac_word=$2
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656 $as_echo_n "checking for $ac_word... " >&6; }
6657 if ${ac_cv_prog_AR+:} false; then :
6658 $as_echo_n "(cached) " >&6
6659 else
6660 if test -n "$AR"; then
6661 ac_cv_prog_AR="$AR" # Let the user override the test.
6662 else
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6665 do
6666 IFS=$as_save_IFS
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670 ac_cv_prog_AR="${ac_tool_prefix}ar"
6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 break 2
6673 fi
6674 done
6675 done
6676 IFS=$as_save_IFS
6677
6678 fi
6679 fi
6680 AR=$ac_cv_prog_AR
6681 if test -n "$AR"; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6683 $as_echo "$AR" >&6; }
6684 else
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 $as_echo "no" >&6; }
6687 fi
6688
6689
6690 fi
6691 if test -z "$ac_cv_prog_AR"; then
6692 ac_ct_AR=$AR
6693 # Extract the first word of "ar", so it can be a program name with args.
6694 set dummy ar; ac_word=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6698 $as_echo_n "(cached) " >&6
6699 else
6700 if test -n "$ac_ct_AR"; then
6701 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6702 else
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 for as_dir in $PATH
6705 do
6706 IFS=$as_save_IFS
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6710 ac_cv_prog_ac_ct_AR="ar"
6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 break 2
6713 fi
6714 done
6715 done
6716 IFS=$as_save_IFS
6717
6718 fi
6719 fi
6720 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6721 if test -n "$ac_ct_AR"; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6723 $as_echo "$ac_ct_AR" >&6; }
6724 else
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 $as_echo "no" >&6; }
6727 fi
6728
6729 if test "x$ac_ct_AR" = x; then
6730 AR="false"
6731 else
6732 case $cross_compiling:$ac_tool_warned in
6733 yes:)
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6736 ac_tool_warned=yes ;;
6737 esac
6738 AR=$ac_ct_AR
6739 fi
6740 else
6741 AR="$ac_cv_prog_AR"
6742 fi
6743
6744 test -z "$AR" && AR=ar
6745 test -z "$AR_FLAGS" && AR_FLAGS=cru
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757 if test -n "$ac_tool_prefix"; then
6758 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6759 set dummy ${ac_tool_prefix}strip; ac_word=$2
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if ${ac_cv_prog_STRIP+:} false; then :
6763 $as_echo_n "(cached) " >&6
6764 else
6765 if test -n "$STRIP"; then
6766 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771 IFS=$as_save_IFS
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 break 2
6778 fi
6779 done
6780 done
6781 IFS=$as_save_IFS
6782
6783 fi
6784 fi
6785 STRIP=$ac_cv_prog_STRIP
6786 if test -n "$STRIP"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6788 $as_echo "$STRIP" >&6; }
6789 else
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6792 fi
6793
6794
6795 fi
6796 if test -z "$ac_cv_prog_STRIP"; then
6797 ac_ct_STRIP=$STRIP
6798 # Extract the first word of "strip", so it can be a program name with args.
6799 set dummy strip; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 if test -n "$ac_ct_STRIP"; then
6806 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_prog_ac_ct_STRIP="strip"
6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 break 2
6818 fi
6819 done
6820 done
6821 IFS=$as_save_IFS
6822
6823 fi
6824 fi
6825 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6826 if test -n "$ac_ct_STRIP"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6828 $as_echo "$ac_ct_STRIP" >&6; }
6829 else
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6832 fi
6833
6834 if test "x$ac_ct_STRIP" = x; then
6835 STRIP=":"
6836 else
6837 case $cross_compiling:$ac_tool_warned in
6838 yes:)
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6841 ac_tool_warned=yes ;;
6842 esac
6843 STRIP=$ac_ct_STRIP
6844 fi
6845 else
6846 STRIP="$ac_cv_prog_STRIP"
6847 fi
6848
6849 test -z "$STRIP" && STRIP=:
6850
6851
6852
6853
6854
6855
6856 if test -n "$ac_tool_prefix"; then
6857 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6858 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860 $as_echo_n "checking for $ac_word... " >&6; }
6861 if ${ac_cv_prog_RANLIB+:} false; then :
6862 $as_echo_n "(cached) " >&6
6863 else
6864 if test -n "$RANLIB"; then
6865 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6866 else
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6869 do
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6874 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 break 2
6877 fi
6878 done
6879 done
6880 IFS=$as_save_IFS
6881
6882 fi
6883 fi
6884 RANLIB=$ac_cv_prog_RANLIB
6885 if test -n "$RANLIB"; then
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6887 $as_echo "$RANLIB" >&6; }
6888 else
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 $as_echo "no" >&6; }
6891 fi
6892
6893
6894 fi
6895 if test -z "$ac_cv_prog_RANLIB"; then
6896 ac_ct_RANLIB=$RANLIB
6897 # Extract the first word of "ranlib", so it can be a program name with args.
6898 set dummy ranlib; ac_word=$2
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6900 $as_echo_n "checking for $ac_word... " >&6; }
6901 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6902 $as_echo_n "(cached) " >&6
6903 else
6904 if test -n "$ac_ct_RANLIB"; then
6905 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6906 else
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 for as_dir in $PATH
6909 do
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6914 ac_cv_prog_ac_ct_RANLIB="ranlib"
6915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 break 2
6917 fi
6918 done
6919 done
6920 IFS=$as_save_IFS
6921
6922 fi
6923 fi
6924 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6925 if test -n "$ac_ct_RANLIB"; then
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6927 $as_echo "$ac_ct_RANLIB" >&6; }
6928 else
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930 $as_echo "no" >&6; }
6931 fi
6932
6933 if test "x$ac_ct_RANLIB" = x; then
6934 RANLIB=":"
6935 else
6936 case $cross_compiling:$ac_tool_warned in
6937 yes:)
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6940 ac_tool_warned=yes ;;
6941 esac
6942 RANLIB=$ac_ct_RANLIB
6943 fi
6944 else
6945 RANLIB="$ac_cv_prog_RANLIB"
6946 fi
6947
6948 test -z "$RANLIB" && RANLIB=:
6949
6950
6951
6952
6953
6954
6955 # Determine commands to create old-style static archives.
6956 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6957 old_postinstall_cmds='chmod 644 $oldlib'
6958 old_postuninstall_cmds=
6959
6960 if test -n "$RANLIB"; then
6961 case $host_os in
6962 openbsd*)
6963 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6964 ;;
6965 *)
6966 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6967 ;;
6968 esac
6969 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6970 fi
6971
6972 case $host_os in
6973 darwin*)
6974 lock_old_archive_extraction=yes ;;
6975 *)
6976 lock_old_archive_extraction=no ;;
6977 esac
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017 # If no C compiler was specified, use CC.
7018 LTCC=${LTCC-"$CC"}
7019
7020 # If no C compiler flags were specified, use CFLAGS.
7021 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7022
7023 # Allow CC to be a program name with arguments.
7024 compiler=$CC
7025
7026
7027 # Check for command to grab the raw symbol name followed by C symbol from nm.
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7029 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7030 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7031 $as_echo_n "(cached) " >&6
7032 else
7033
7034 # These are sane defaults that work on at least a few old systems.
7035 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7036
7037 # Character class describing NM global symbol codes.
7038 symcode='[BCDEGRST]'
7039
7040 # Regexp to match symbols that can be accessed directly from C.
7041 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7042
7043 # Define system-specific variables.
7044 case $host_os in
7045 aix*)
7046 symcode='[BCDT]'
7047 ;;
7048 cygwin* | mingw* | pw32* | cegcc*)
7049 symcode='[ABCDGISTW]'
7050 ;;
7051 hpux*)
7052 if test "$host_cpu" = ia64; then
7053 symcode='[ABCDEGRST]'
7054 fi
7055 ;;
7056 irix* | nonstopux*)
7057 symcode='[BCDEGRST]'
7058 ;;
7059 osf*)
7060 symcode='[BCDEGQRST]'
7061 ;;
7062 solaris*)
7063 symcode='[BDRT]'
7064 ;;
7065 sco3.2v5*)
7066 symcode='[DT]'
7067 ;;
7068 sysv4.2uw2*)
7069 symcode='[DT]'
7070 ;;
7071 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7072 symcode='[ABDT]'
7073 ;;
7074 sysv4)
7075 symcode='[DFNSTU]'
7076 ;;
7077 esac
7078
7079 # If we're using GNU nm, then use its standard symbol codes.
7080 case `$NM -V 2>&1` in
7081 *GNU* | *'with BFD'*)
7082 symcode='[ABCDGIRSTW]' ;;
7083 esac
7084
7085 # Transform an extracted symbol line into a proper C declaration.
7086 # Some systems (esp. on ia64) link data and code symbols differently,
7087 # so use this general approach.
7088 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7089
7090 # Transform an extracted symbol line into symbol name and symbol address
7091 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7092 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'"
7093
7094 # Handle CRLF in mingw tool chain
7095 opt_cr=
7096 case $build_os in
7097 mingw*)
7098 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7099 ;;
7100 esac
7101
7102 # Try without a prefix underscore, then with it.
7103 for ac_symprfx in "" "_"; do
7104
7105 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7106 symxfrm="\\1 $ac_symprfx\\2 \\2"
7107
7108 # Write the raw and C identifiers.
7109 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7110 # Fake it for dumpbin and say T for any non-static function
7111 # and D for any global variable.
7112 # Also find C++ and __fastcall symbols from MSVC++,
7113 # which start with @ or ?.
7114 lt_cv_sys_global_symbol_pipe="$AWK '"\
7115 " {last_section=section; section=\$ 3};"\
7116 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7117 " \$ 0!~/External *\|/{next};"\
7118 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7119 " {if(hide[section]) next};"\
7120 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7121 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7122 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7123 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7124 " ' prfx=^$ac_symprfx"
7125 else
7126 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7127 fi
7128
7129 # Check to see that the pipe works correctly.
7130 pipe_works=no
7131
7132 rm -f conftest*
7133 cat > conftest.$ac_ext <<_LT_EOF
7134 #ifdef __cplusplus
7135 extern "C" {
7136 #endif
7137 char nm_test_var;
7138 void nm_test_func(void);
7139 void nm_test_func(void){}
7140 #ifdef __cplusplus
7141 }
7142 #endif
7143 int main(){nm_test_var='a';nm_test_func();return(0);}
7144 _LT_EOF
7145
7146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7147 (eval $ac_compile) 2>&5
7148 ac_status=$?
7149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7150 test $ac_status = 0; }; then
7151 # Now try to grab the symbols.
7152 nlist=conftest.nm
7153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7154 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7155 ac_status=$?
7156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7157 test $ac_status = 0; } && test -s "$nlist"; then
7158 # Try sorting and uniquifying the output.
7159 if sort "$nlist" | uniq > "$nlist"T; then
7160 mv -f "$nlist"T "$nlist"
7161 else
7162 rm -f "$nlist"T
7163 fi
7164
7165 # Make sure that we snagged all the symbols we need.
7166 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7167 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7168 cat <<_LT_EOF > conftest.$ac_ext
7169 #ifdef __cplusplus
7170 extern "C" {
7171 #endif
7172
7173 _LT_EOF
7174 # Now generate the symbol file.
7175 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7176
7177 cat <<_LT_EOF >> conftest.$ac_ext
7178
7179 /* The mapping between symbol names and symbols. */
7180 const struct {
7181 const char *name;
7182 void *address;
7183 }
7184 lt__PROGRAM__LTX_preloaded_symbols[] =
7185 {
7186 { "@PROGRAM@", (void *) 0 },
7187 _LT_EOF
7188 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7189 cat <<\_LT_EOF >> conftest.$ac_ext
7190 {0, (void *) 0}
7191 };
7192
7193 /* This works around a problem in FreeBSD linker */
7194 #ifdef FREEBSD_WORKAROUND
7195 static const void *lt_preloaded_setup() {
7196 return lt__PROGRAM__LTX_preloaded_symbols;
7197 }
7198 #endif
7199
7200 #ifdef __cplusplus
7201 }
7202 #endif
7203 _LT_EOF
7204 # Now try linking the two files.
7205 mv conftest.$ac_objext conftstm.$ac_objext
7206 lt_save_LIBS="$LIBS"
7207 lt_save_CFLAGS="$CFLAGS"
7208 LIBS="conftstm.$ac_objext"
7209 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7211 (eval $ac_link) 2>&5
7212 ac_status=$?
7213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7214 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7215 pipe_works=yes
7216 fi
7217 LIBS="$lt_save_LIBS"
7218 CFLAGS="$lt_save_CFLAGS"
7219 else
7220 echo "cannot find nm_test_func in $nlist" >&5
7221 fi
7222 else
7223 echo "cannot find nm_test_var in $nlist" >&5
7224 fi
7225 else
7226 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7227 fi
7228 else
7229 echo "$progname: failed program was:" >&5
7230 cat conftest.$ac_ext >&5
7231 fi
7232 rm -rf conftest* conftst*
7233
7234 # Do not use the global_symbol_pipe unless it works.
7235 if test "$pipe_works" = yes; then
7236 break
7237 else
7238 lt_cv_sys_global_symbol_pipe=
7239 fi
7240 done
7241
7242 fi
7243
7244 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7245 lt_cv_sys_global_symbol_to_cdecl=
7246 fi
7247 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7249 $as_echo "failed" >&6; }
7250 else
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7252 $as_echo "ok" >&6; }
7253 fi
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276 # Check whether --enable-libtool-lock was given.
7277 if test "${enable_libtool_lock+set}" = set; then :
7278 enableval=$enable_libtool_lock;
7279 fi
7280
7281 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7282
7283 # Some flags need to be propagated to the compiler or linker for good
7284 # libtool support.
7285 case $host in
7286 ia64-*-hpux*)
7287 # Find out which ABI we are using.
7288 echo 'int i;' > conftest.$ac_ext
7289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7290 (eval $ac_compile) 2>&5
7291 ac_status=$?
7292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7293 test $ac_status = 0; }; then
7294 case `/usr/bin/file conftest.$ac_objext` in
7295 *ELF-32*)
7296 HPUX_IA64_MODE="32"
7297 ;;
7298 *ELF-64*)
7299 HPUX_IA64_MODE="64"
7300 ;;
7301 esac
7302 fi
7303 rm -rf conftest*
7304 ;;
7305 *-*-irix6*)
7306 # Find out which ABI we are using.
7307 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7309 (eval $ac_compile) 2>&5
7310 ac_status=$?
7311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7312 test $ac_status = 0; }; then
7313 if test "$lt_cv_prog_gnu_ld" = yes; then
7314 case `/usr/bin/file conftest.$ac_objext` in
7315 *32-bit*)
7316 LD="${LD-ld} -melf32bsmip"
7317 ;;
7318 *N32*)
7319 LD="${LD-ld} -melf32bmipn32"
7320 ;;
7321 *64-bit*)
7322 LD="${LD-ld} -melf64bmip"
7323 ;;
7324 esac
7325 else
7326 case `/usr/bin/file conftest.$ac_objext` in
7327 *32-bit*)
7328 LD="${LD-ld} -32"
7329 ;;
7330 *N32*)
7331 LD="${LD-ld} -n32"
7332 ;;
7333 *64-bit*)
7334 LD="${LD-ld} -64"
7335 ;;
7336 esac
7337 fi
7338 fi
7339 rm -rf conftest*
7340 ;;
7341
7342 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7343 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7344 # Find out which ABI we are using.
7345 echo 'int i;' > conftest.$ac_ext
7346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7347 (eval $ac_compile) 2>&5
7348 ac_status=$?
7349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7350 test $ac_status = 0; }; then
7351 case `/usr/bin/file conftest.o` in
7352 *32-bit*)
7353 case $host in
7354 x86_64-*kfreebsd*-gnu)
7355 LD="${LD-ld} -m elf_i386_fbsd"
7356 ;;
7357 x86_64-*linux*)
7358 LD="${LD-ld} -m elf_i386"
7359 ;;
7360 ppc64-*linux*|powerpc64-*linux*)
7361 LD="${LD-ld} -m elf32ppclinux"
7362 ;;
7363 s390x-*linux*)
7364 LD="${LD-ld} -m elf_s390"
7365 ;;
7366 sparc64-*linux*)
7367 LD="${LD-ld} -m elf32_sparc"
7368 ;;
7369 esac
7370 ;;
7371 *64-bit*)
7372 case $host in
7373 x86_64-*kfreebsd*-gnu)
7374 LD="${LD-ld} -m elf_x86_64_fbsd"
7375 ;;
7376 x86_64-*linux*)
7377 LD="${LD-ld} -m elf_x86_64"
7378 ;;
7379 ppc*-*linux*|powerpc*-*linux*)
7380 LD="${LD-ld} -m elf64ppc"
7381 ;;
7382 s390*-*linux*|s390*-*tpf*)
7383 LD="${LD-ld} -m elf64_s390"
7384 ;;
7385 sparc*-*linux*)
7386 LD="${LD-ld} -m elf64_sparc"
7387 ;;
7388 esac
7389 ;;
7390 esac
7391 fi
7392 rm -rf conftest*
7393 ;;
7394
7395 *-*-sco3.2v5*)
7396 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7397 SAVE_CFLAGS="$CFLAGS"
7398 CFLAGS="$CFLAGS -belf"
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7400 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7401 if ${lt_cv_cc_needs_belf+:} false; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 ac_ext=c
7405 ac_cpp='$CPP $CPPFLAGS'
7406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7409
7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h. */
7412
7413 int
7414 main ()
7415 {
7416
7417 ;
7418 return 0;
7419 }
7420 _ACEOF
7421 if ac_fn_c_try_link "$LINENO"; then :
7422 lt_cv_cc_needs_belf=yes
7423 else
7424 lt_cv_cc_needs_belf=no
7425 fi
7426 rm -f core conftest.err conftest.$ac_objext \
7427 conftest$ac_exeext conftest.$ac_ext
7428 ac_ext=c
7429 ac_cpp='$CPP $CPPFLAGS'
7430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7433
7434 fi
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7436 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7437 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7438 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7439 CFLAGS="$SAVE_CFLAGS"
7440 fi
7441 ;;
7442 sparc*-*solaris*)
7443 # Find out which ABI we are using.
7444 echo 'int i;' > conftest.$ac_ext
7445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7446 (eval $ac_compile) 2>&5
7447 ac_status=$?
7448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7449 test $ac_status = 0; }; then
7450 case `/usr/bin/file conftest.o` in
7451 *64-bit*)
7452 case $lt_cv_prog_gnu_ld in
7453 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7454 *)
7455 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7456 LD="${LD-ld} -64"
7457 fi
7458 ;;
7459 esac
7460 ;;
7461 esac
7462 fi
7463 rm -rf conftest*
7464 ;;
7465 esac
7466
7467 need_locks="$enable_libtool_lock"
7468
7469
7470 case $host_os in
7471 rhapsody* | darwin*)
7472 if test -n "$ac_tool_prefix"; then
7473 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7474 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476 $as_echo_n "checking for $ac_word... " >&6; }
7477 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7478 $as_echo_n "(cached) " >&6
7479 else
7480 if test -n "$DSYMUTIL"; then
7481 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7482 else
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 for as_dir in $PATH
7485 do
7486 IFS=$as_save_IFS
7487 test -z "$as_dir" && as_dir=.
7488 for ac_exec_ext in '' $ac_executable_extensions; do
7489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7490 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7492 break 2
7493 fi
7494 done
7495 done
7496 IFS=$as_save_IFS
7497
7498 fi
7499 fi
7500 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7501 if test -n "$DSYMUTIL"; then
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7503 $as_echo "$DSYMUTIL" >&6; }
7504 else
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506 $as_echo "no" >&6; }
7507 fi
7508
7509
7510 fi
7511 if test -z "$ac_cv_prog_DSYMUTIL"; then
7512 ac_ct_DSYMUTIL=$DSYMUTIL
7513 # Extract the first word of "dsymutil", so it can be a program name with args.
7514 set dummy dsymutil; ac_word=$2
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7516 $as_echo_n "checking for $ac_word... " >&6; }
7517 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7518 $as_echo_n "(cached) " >&6
7519 else
7520 if test -n "$ac_ct_DSYMUTIL"; then
7521 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7522 else
7523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 for as_dir in $PATH
7525 do
7526 IFS=$as_save_IFS
7527 test -z "$as_dir" && as_dir=.
7528 for ac_exec_ext in '' $ac_executable_extensions; do
7529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7530 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7532 break 2
7533 fi
7534 done
7535 done
7536 IFS=$as_save_IFS
7537
7538 fi
7539 fi
7540 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7541 if test -n "$ac_ct_DSYMUTIL"; then
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7543 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7544 else
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7546 $as_echo "no" >&6; }
7547 fi
7548
7549 if test "x$ac_ct_DSYMUTIL" = x; then
7550 DSYMUTIL=":"
7551 else
7552 case $cross_compiling:$ac_tool_warned in
7553 yes:)
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7556 ac_tool_warned=yes ;;
7557 esac
7558 DSYMUTIL=$ac_ct_DSYMUTIL
7559 fi
7560 else
7561 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7562 fi
7563
7564 if test -n "$ac_tool_prefix"; then
7565 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7566 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568 $as_echo_n "checking for $ac_word... " >&6; }
7569 if ${ac_cv_prog_NMEDIT+:} false; then :
7570 $as_echo_n "(cached) " >&6
7571 else
7572 if test -n "$NMEDIT"; then
7573 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7574 else
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 for as_dir in $PATH
7577 do
7578 IFS=$as_save_IFS
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7582 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 break 2
7585 fi
7586 done
7587 done
7588 IFS=$as_save_IFS
7589
7590 fi
7591 fi
7592 NMEDIT=$ac_cv_prog_NMEDIT
7593 if test -n "$NMEDIT"; then
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7595 $as_echo "$NMEDIT" >&6; }
7596 else
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598 $as_echo "no" >&6; }
7599 fi
7600
7601
7602 fi
7603 if test -z "$ac_cv_prog_NMEDIT"; then
7604 ac_ct_NMEDIT=$NMEDIT
7605 # Extract the first word of "nmedit", so it can be a program name with args.
7606 set dummy nmedit; ac_word=$2
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7608 $as_echo_n "checking for $ac_word... " >&6; }
7609 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7610 $as_echo_n "(cached) " >&6
7611 else
7612 if test -n "$ac_ct_NMEDIT"; then
7613 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7614 else
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 for as_dir in $PATH
7617 do
7618 IFS=$as_save_IFS
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7622 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 break 2
7625 fi
7626 done
7627 done
7628 IFS=$as_save_IFS
7629
7630 fi
7631 fi
7632 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7633 if test -n "$ac_ct_NMEDIT"; then
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7635 $as_echo "$ac_ct_NMEDIT" >&6; }
7636 else
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7638 $as_echo "no" >&6; }
7639 fi
7640
7641 if test "x$ac_ct_NMEDIT" = x; then
7642 NMEDIT=":"
7643 else
7644 case $cross_compiling:$ac_tool_warned in
7645 yes:)
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7648 ac_tool_warned=yes ;;
7649 esac
7650 NMEDIT=$ac_ct_NMEDIT
7651 fi
7652 else
7653 NMEDIT="$ac_cv_prog_NMEDIT"
7654 fi
7655
7656 if test -n "$ac_tool_prefix"; then
7657 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7658 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660 $as_echo_n "checking for $ac_word... " >&6; }
7661 if ${ac_cv_prog_LIPO+:} false; then :
7662 $as_echo_n "(cached) " >&6
7663 else
7664 if test -n "$LIPO"; then
7665 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7666 else
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 for as_dir in $PATH
7669 do
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7674 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 break 2
7677 fi
7678 done
7679 done
7680 IFS=$as_save_IFS
7681
7682 fi
7683 fi
7684 LIPO=$ac_cv_prog_LIPO
7685 if test -n "$LIPO"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7687 $as_echo "$LIPO" >&6; }
7688 else
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7691 fi
7692
7693
7694 fi
7695 if test -z "$ac_cv_prog_LIPO"; then
7696 ac_ct_LIPO=$LIPO
7697 # Extract the first word of "lipo", so it can be a program name with args.
7698 set dummy lipo; ac_word=$2
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700 $as_echo_n "checking for $ac_word... " >&6; }
7701 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7704 if test -n "$ac_ct_LIPO"; then
7705 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7706 else
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 for as_dir in $PATH
7709 do
7710 IFS=$as_save_IFS
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7714 ac_cv_prog_ac_ct_LIPO="lipo"
7715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 break 2
7717 fi
7718 done
7719 done
7720 IFS=$as_save_IFS
7721
7722 fi
7723 fi
7724 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7725 if test -n "$ac_ct_LIPO"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7727 $as_echo "$ac_ct_LIPO" >&6; }
7728 else
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730 $as_echo "no" >&6; }
7731 fi
7732
7733 if test "x$ac_ct_LIPO" = x; then
7734 LIPO=":"
7735 else
7736 case $cross_compiling:$ac_tool_warned in
7737 yes:)
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7740 ac_tool_warned=yes ;;
7741 esac
7742 LIPO=$ac_ct_LIPO
7743 fi
7744 else
7745 LIPO="$ac_cv_prog_LIPO"
7746 fi
7747
7748 if test -n "$ac_tool_prefix"; then
7749 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7750 set dummy ${ac_tool_prefix}otool; ac_word=$2
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752 $as_echo_n "checking for $ac_word... " >&6; }
7753 if ${ac_cv_prog_OTOOL+:} false; then :
7754 $as_echo_n "(cached) " >&6
7755 else
7756 if test -n "$OTOOL"; then
7757 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7758 else
7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 for as_dir in $PATH
7761 do
7762 IFS=$as_save_IFS
7763 test -z "$as_dir" && as_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
7765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7766 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 break 2
7769 fi
7770 done
7771 done
7772 IFS=$as_save_IFS
7773
7774 fi
7775 fi
7776 OTOOL=$ac_cv_prog_OTOOL
7777 if test -n "$OTOOL"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7779 $as_echo "$OTOOL" >&6; }
7780 else
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782 $as_echo "no" >&6; }
7783 fi
7784
7785
7786 fi
7787 if test -z "$ac_cv_prog_OTOOL"; then
7788 ac_ct_OTOOL=$OTOOL
7789 # Extract the first word of "otool", so it can be a program name with args.
7790 set dummy otool; ac_word=$2
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792 $as_echo_n "checking for $ac_word... " >&6; }
7793 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7794 $as_echo_n "(cached) " >&6
7795 else
7796 if test -n "$ac_ct_OTOOL"; then
7797 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7798 else
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800 for as_dir in $PATH
7801 do
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7806 ac_cv_prog_ac_ct_OTOOL="otool"
7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 break 2
7809 fi
7810 done
7811 done
7812 IFS=$as_save_IFS
7813
7814 fi
7815 fi
7816 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7817 if test -n "$ac_ct_OTOOL"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7819 $as_echo "$ac_ct_OTOOL" >&6; }
7820 else
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7823 fi
7824
7825 if test "x$ac_ct_OTOOL" = x; then
7826 OTOOL=":"
7827 else
7828 case $cross_compiling:$ac_tool_warned in
7829 yes:)
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7832 ac_tool_warned=yes ;;
7833 esac
7834 OTOOL=$ac_ct_OTOOL
7835 fi
7836 else
7837 OTOOL="$ac_cv_prog_OTOOL"
7838 fi
7839
7840 if test -n "$ac_tool_prefix"; then
7841 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7842 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844 $as_echo_n "checking for $ac_word... " >&6; }
7845 if ${ac_cv_prog_OTOOL64+:} false; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 if test -n "$OTOOL64"; then
7849 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7850 else
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7853 do
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7858 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 break 2
7861 fi
7862 done
7863 done
7864 IFS=$as_save_IFS
7865
7866 fi
7867 fi
7868 OTOOL64=$ac_cv_prog_OTOOL64
7869 if test -n "$OTOOL64"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7871 $as_echo "$OTOOL64" >&6; }
7872 else
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7875 fi
7876
7877
7878 fi
7879 if test -z "$ac_cv_prog_OTOOL64"; then
7880 ac_ct_OTOOL64=$OTOOL64
7881 # Extract the first word of "otool64", so it can be a program name with args.
7882 set dummy otool64; ac_word=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 if test -n "$ac_ct_OTOOL64"; then
7889 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7890 else
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 for as_dir in $PATH
7893 do
7894 IFS=$as_save_IFS
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7898 ac_cv_prog_ac_ct_OTOOL64="otool64"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900 break 2
7901 fi
7902 done
7903 done
7904 IFS=$as_save_IFS
7905
7906 fi
7907 fi
7908 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7909 if test -n "$ac_ct_OTOOL64"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7911 $as_echo "$ac_ct_OTOOL64" >&6; }
7912 else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7915 fi
7916
7917 if test "x$ac_ct_OTOOL64" = x; then
7918 OTOOL64=":"
7919 else
7920 case $cross_compiling:$ac_tool_warned in
7921 yes:)
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7924 ac_tool_warned=yes ;;
7925 esac
7926 OTOOL64=$ac_ct_OTOOL64
7927 fi
7928 else
7929 OTOOL64="$ac_cv_prog_OTOOL64"
7930 fi
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7959 $as_echo_n "checking for -single_module linker flag... " >&6; }
7960 if ${lt_cv_apple_cc_single_mod+:} false; then :
7961 $as_echo_n "(cached) " >&6
7962 else
7963 lt_cv_apple_cc_single_mod=no
7964 if test -z "${LT_MULTI_MODULE}"; then
7965 # By default we will add the -single_module flag. You can override
7966 # by either setting the environment variable LT_MULTI_MODULE
7967 # non-empty at configure time, or by adding -multi_module to the
7968 # link flags.
7969 rm -rf libconftest.dylib*
7970 echo "int foo(void){return 1;}" > conftest.c
7971 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7972 -dynamiclib -Wl,-single_module conftest.c" >&5
7973 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7974 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7975 _lt_result=$?
7976 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7977 lt_cv_apple_cc_single_mod=yes
7978 else
7979 cat conftest.err >&5
7980 fi
7981 rm -rf libconftest.dylib*
7982 rm -f conftest.*
7983 fi
7984 fi
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7986 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7988 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7989 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7990 $as_echo_n "(cached) " >&6
7991 else
7992 lt_cv_ld_exported_symbols_list=no
7993 save_LDFLAGS=$LDFLAGS
7994 echo "_main" > conftest.sym
7995 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997 /* end confdefs.h. */
7998
7999 int
8000 main ()
8001 {
8002
8003 ;
8004 return 0;
8005 }
8006 _ACEOF
8007 if ac_fn_c_try_link "$LINENO"; then :
8008 lt_cv_ld_exported_symbols_list=yes
8009 else
8010 lt_cv_ld_exported_symbols_list=no
8011 fi
8012 rm -f core conftest.err conftest.$ac_objext \
8013 conftest$ac_exeext conftest.$ac_ext
8014 LDFLAGS="$save_LDFLAGS"
8015
8016 fi
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8018 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8020 $as_echo_n "checking for -force_load linker flag... " >&6; }
8021 if ${lt_cv_ld_force_load+:} false; then :
8022 $as_echo_n "(cached) " >&6
8023 else
8024 lt_cv_ld_force_load=no
8025 cat > conftest.c << _LT_EOF
8026 int forced_loaded() { return 2;}
8027 _LT_EOF
8028 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8029 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8030 echo "$AR cru libconftest.a conftest.o" >&5
8031 $AR cru libconftest.a conftest.o 2>&5
8032 echo "$RANLIB libconftest.a" >&5
8033 $RANLIB libconftest.a 2>&5
8034 cat > conftest.c << _LT_EOF
8035 int main() { return 0;}
8036 _LT_EOF
8037 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8038 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8039 _lt_result=$?
8040 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8041 lt_cv_ld_force_load=yes
8042 else
8043 cat conftest.err >&5
8044 fi
8045 rm -f conftest.err libconftest.a conftest conftest.c
8046 rm -rf conftest.dSYM
8047
8048 fi
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8050 $as_echo "$lt_cv_ld_force_load" >&6; }
8051 case $host_os in
8052 rhapsody* | darwin1.[012])
8053 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8054 darwin1.*)
8055 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8056 darwin*) # darwin 5.x on
8057 # if running on 10.5 or later, the deployment target defaults
8058 # to the OS version, if on x86, and 10.4, the deployment
8059 # target defaults to 10.4. Don't you love it?
8060 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8061 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8062 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8063 10.[012]*)
8064 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8065 10.*)
8066 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8067 esac
8068 ;;
8069 esac
8070 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8071 _lt_dar_single_mod='$single_module'
8072 fi
8073 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8074 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8075 else
8076 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8077 fi
8078 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8079 _lt_dsymutil='~$DSYMUTIL $lib || :'
8080 else
8081 _lt_dsymutil=
8082 fi
8083 ;;
8084 esac
8085
8086 for ac_header in dlfcn.h
8087 do :
8088 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8089 "
8090 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8091 cat >>confdefs.h <<_ACEOF
8092 #define HAVE_DLFCN_H 1
8093 _ACEOF
8094
8095 fi
8096
8097 done
8098
8099
8100
8101
8102
8103 # Set options
8104
8105
8106
8107 enable_dlopen=no
8108
8109
8110 enable_win32_dll=no
8111
8112
8113 # Check whether --enable-shared was given.
8114 if test "${enable_shared+set}" = set; then :
8115 enableval=$enable_shared; p=${PACKAGE-default}
8116 case $enableval in
8117 yes) enable_shared=yes ;;
8118 no) enable_shared=no ;;
8119 *)
8120 enable_shared=no
8121 # Look at the argument we got. We use all the common list separators.
8122 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8123 for pkg in $enableval; do
8124 IFS="$lt_save_ifs"
8125 if test "X$pkg" = "X$p"; then
8126 enable_shared=yes
8127 fi
8128 done
8129 IFS="$lt_save_ifs"
8130 ;;
8131 esac
8132 else
8133 enable_shared=yes
8134 fi
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144 # Check whether --enable-static was given.
8145 if test "${enable_static+set}" = set; then :
8146 enableval=$enable_static; p=${PACKAGE-default}
8147 case $enableval in
8148 yes) enable_static=yes ;;
8149 no) enable_static=no ;;
8150 *)
8151 enable_static=no
8152 # Look at the argument we got. We use all the common list separators.
8153 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8154 for pkg in $enableval; do
8155 IFS="$lt_save_ifs"
8156 if test "X$pkg" = "X$p"; then
8157 enable_static=yes
8158 fi
8159 done
8160 IFS="$lt_save_ifs"
8161 ;;
8162 esac
8163 else
8164 enable_static=yes
8165 fi
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176 # Check whether --with-pic was given.
8177 if test "${with_pic+set}" = set; then :
8178 withval=$with_pic; pic_mode="$withval"
8179 else
8180 pic_mode=default
8181 fi
8182
8183
8184 test -z "$pic_mode" && pic_mode=default
8185
8186
8187
8188
8189
8190
8191
8192 # Check whether --enable-fast-install was given.
8193 if test "${enable_fast_install+set}" = set; then :
8194 enableval=$enable_fast_install; p=${PACKAGE-default}
8195 case $enableval in
8196 yes) enable_fast_install=yes ;;
8197 no) enable_fast_install=no ;;
8198 *)
8199 enable_fast_install=no
8200 # Look at the argument we got. We use all the common list separators.
8201 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8202 for pkg in $enableval; do
8203 IFS="$lt_save_ifs"
8204 if test "X$pkg" = "X$p"; then
8205 enable_fast_install=yes
8206 fi
8207 done
8208 IFS="$lt_save_ifs"
8209 ;;
8210 esac
8211 else
8212 enable_fast_install=yes
8213 fi
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225 # This can be used to rebuild libtool when needed
8226 LIBTOOL_DEPS="$ltmain"
8227
8228 # Always use our own libtool.
8229 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256 test -z "$LN_S" && LN_S="ln -s"
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271 if test -n "${ZSH_VERSION+set}" ; then
8272 setopt NO_GLOB_SUBST
8273 fi
8274
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8276 $as_echo_n "checking for objdir... " >&6; }
8277 if ${lt_cv_objdir+:} false; then :
8278 $as_echo_n "(cached) " >&6
8279 else
8280 rm -f .libs 2>/dev/null
8281 mkdir .libs 2>/dev/null
8282 if test -d .libs; then
8283 lt_cv_objdir=.libs
8284 else
8285 # MS-DOS does not allow filenames that begin with a dot.
8286 lt_cv_objdir=_libs
8287 fi
8288 rmdir .libs 2>/dev/null
8289 fi
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8291 $as_echo "$lt_cv_objdir" >&6; }
8292 objdir=$lt_cv_objdir
8293
8294
8295
8296
8297
8298 cat >>confdefs.h <<_ACEOF
8299 #define LT_OBJDIR "$lt_cv_objdir/"
8300 _ACEOF
8301
8302
8303
8304
8305 case $host_os in
8306 aix3*)
8307 # AIX sometimes has problems with the GCC collect2 program. For some
8308 # reason, if we set the COLLECT_NAMES environment variable, the problems
8309 # vanish in a puff of smoke.
8310 if test "X${COLLECT_NAMES+set}" != Xset; then
8311 COLLECT_NAMES=
8312 export COLLECT_NAMES
8313 fi
8314 ;;
8315 esac
8316
8317 # Global variables:
8318 ofile=libtool
8319 can_build_shared=yes
8320
8321 # All known linkers require a `.a' archive for static linking (except MSVC,
8322 # which needs '.lib').
8323 libext=a
8324
8325 with_gnu_ld="$lt_cv_prog_gnu_ld"
8326
8327 old_CC="$CC"
8328 old_CFLAGS="$CFLAGS"
8329
8330 # Set sane defaults for various variables
8331 test -z "$CC" && CC=cc
8332 test -z "$LTCC" && LTCC=$CC
8333 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8334 test -z "$LD" && LD=ld
8335 test -z "$ac_objext" && ac_objext=o
8336
8337 for cc_temp in $compiler""; do
8338 case $cc_temp in
8339 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8340 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8341 \-*) ;;
8342 *) break;;
8343 esac
8344 done
8345 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8346
8347
8348 # Only perform the check for file, if the check method requires it
8349 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8350 case $deplibs_check_method in
8351 file_magic*)
8352 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8354 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8355 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8356 $as_echo_n "(cached) " >&6
8357 else
8358 case $MAGIC_CMD in
8359 [\\/*] | ?:[\\/]*)
8360 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8361 ;;
8362 *)
8363 lt_save_MAGIC_CMD="$MAGIC_CMD"
8364 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8365 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8366 for ac_dir in $ac_dummy; do
8367 IFS="$lt_save_ifs"
8368 test -z "$ac_dir" && ac_dir=.
8369 if test -f $ac_dir/${ac_tool_prefix}file; then
8370 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8371 if test -n "$file_magic_test_file"; then
8372 case $deplibs_check_method in
8373 "file_magic "*)
8374 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8375 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8376 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8377 $EGREP "$file_magic_regex" > /dev/null; then
8378 :
8379 else
8380 cat <<_LT_EOF 1>&2
8381
8382 *** Warning: the command libtool uses to detect shared libraries,
8383 *** $file_magic_cmd, produces output that libtool cannot recognize.
8384 *** The result is that libtool may fail to recognize shared libraries
8385 *** as such. This will affect the creation of libtool libraries that
8386 *** depend on shared libraries, but programs linked with such libtool
8387 *** libraries will work regardless of this problem. Nevertheless, you
8388 *** may want to report the problem to your system manager and/or to
8389 *** bug-libtool@gnu.org
8390
8391 _LT_EOF
8392 fi ;;
8393 esac
8394 fi
8395 break
8396 fi
8397 done
8398 IFS="$lt_save_ifs"
8399 MAGIC_CMD="$lt_save_MAGIC_CMD"
8400 ;;
8401 esac
8402 fi
8403
8404 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8405 if test -n "$MAGIC_CMD"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8407 $as_echo "$MAGIC_CMD" >&6; }
8408 else
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8411 fi
8412
8413
8414
8415
8416
8417 if test -z "$lt_cv_path_MAGIC_CMD"; then
8418 if test -n "$ac_tool_prefix"; then
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8420 $as_echo_n "checking for file... " >&6; }
8421 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8422 $as_echo_n "(cached) " >&6
8423 else
8424 case $MAGIC_CMD in
8425 [\\/*] | ?:[\\/]*)
8426 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8427 ;;
8428 *)
8429 lt_save_MAGIC_CMD="$MAGIC_CMD"
8430 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8431 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8432 for ac_dir in $ac_dummy; do
8433 IFS="$lt_save_ifs"
8434 test -z "$ac_dir" && ac_dir=.
8435 if test -f $ac_dir/file; then
8436 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8437 if test -n "$file_magic_test_file"; then
8438 case $deplibs_check_method in
8439 "file_magic "*)
8440 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8441 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8442 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8443 $EGREP "$file_magic_regex" > /dev/null; then
8444 :
8445 else
8446 cat <<_LT_EOF 1>&2
8447
8448 *** Warning: the command libtool uses to detect shared libraries,
8449 *** $file_magic_cmd, produces output that libtool cannot recognize.
8450 *** The result is that libtool may fail to recognize shared libraries
8451 *** as such. This will affect the creation of libtool libraries that
8452 *** depend on shared libraries, but programs linked with such libtool
8453 *** libraries will work regardless of this problem. Nevertheless, you
8454 *** may want to report the problem to your system manager and/or to
8455 *** bug-libtool@gnu.org
8456
8457 _LT_EOF
8458 fi ;;
8459 esac
8460 fi
8461 break
8462 fi
8463 done
8464 IFS="$lt_save_ifs"
8465 MAGIC_CMD="$lt_save_MAGIC_CMD"
8466 ;;
8467 esac
8468 fi
8469
8470 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8471 if test -n "$MAGIC_CMD"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8473 $as_echo "$MAGIC_CMD" >&6; }
8474 else
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476 $as_echo "no" >&6; }
8477 fi
8478
8479
8480 else
8481 MAGIC_CMD=:
8482 fi
8483 fi
8484
8485 fi
8486 ;;
8487 esac
8488
8489 # Use C for the default configuration in the libtool script
8490
8491 lt_save_CC="$CC"
8492 ac_ext=c
8493 ac_cpp='$CPP $CPPFLAGS'
8494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8497
8498
8499 # Source file extension for C test sources.
8500 ac_ext=c
8501
8502 # Object file extension for compiled C test sources.
8503 objext=o
8504 objext=$objext
8505
8506 # Code to be used in simple compile tests
8507 lt_simple_compile_test_code="int some_variable = 0;"
8508
8509 # Code to be used in simple link tests
8510 lt_simple_link_test_code='int main(){return(0);}'
8511
8512
8513
8514
8515
8516
8517
8518 # If no C compiler was specified, use CC.
8519 LTCC=${LTCC-"$CC"}
8520
8521 # If no C compiler flags were specified, use CFLAGS.
8522 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8523
8524 # Allow CC to be a program name with arguments.
8525 compiler=$CC
8526
8527 # Save the default compiler, since it gets overwritten when the other
8528 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8529 compiler_DEFAULT=$CC
8530
8531 # save warnings/boilerplate of simple test code
8532 ac_outfile=conftest.$ac_objext
8533 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8534 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8535 _lt_compiler_boilerplate=`cat conftest.err`
8536 $RM conftest*
8537
8538 ac_outfile=conftest.$ac_objext
8539 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8540 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8541 _lt_linker_boilerplate=`cat conftest.err`
8542 $RM -r conftest*
8543
8544
8545 if test -n "$compiler"; then
8546
8547 lt_prog_compiler_no_builtin_flag=
8548
8549 if test "$GCC" = yes; then
8550 case $cc_basename in
8551 nvcc*)
8552 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8553 *)
8554 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8555 esac
8556
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8558 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8559 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8560 $as_echo_n "(cached) " >&6
8561 else
8562 lt_cv_prog_compiler_rtti_exceptions=no
8563 ac_outfile=conftest.$ac_objext
8564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8565 lt_compiler_flag="-fno-rtti -fno-exceptions"
8566 # Insert the option either (1) after the last *FLAGS variable, or
8567 # (2) before a word containing "conftest.", or (3) at the end.
8568 # Note that $ac_compile itself does not contain backslashes and begins
8569 # with a dollar sign (not a hyphen), so the echo should work correctly.
8570 # The option is referenced via a variable to avoid confusing sed.
8571 lt_compile=`echo "$ac_compile" | $SED \
8572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8574 -e 's:$: $lt_compiler_flag:'`
8575 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8576 (eval "$lt_compile" 2>conftest.err)
8577 ac_status=$?
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 if (exit $ac_status) && test -s "$ac_outfile"; then
8581 # The compiler can only warn and ignore the option if not recognized
8582 # So say no if there are warnings other than the usual output.
8583 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8584 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8585 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8586 lt_cv_prog_compiler_rtti_exceptions=yes
8587 fi
8588 fi
8589 $RM conftest*
8590
8591 fi
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8593 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8594
8595 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8596 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8597 else
8598 :
8599 fi
8600
8601 fi
8602
8603
8604
8605
8606
8607
8608 lt_prog_compiler_wl=
8609 lt_prog_compiler_pic=
8610 lt_prog_compiler_static=
8611
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8613 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8614
8615 if test "$GCC" = yes; then
8616 lt_prog_compiler_wl='-Wl,'
8617 lt_prog_compiler_static='-static'
8618
8619 case $host_os in
8620 aix*)
8621 # All AIX code is PIC.
8622 if test "$host_cpu" = ia64; then
8623 # AIX 5 now supports IA64 processor
8624 lt_prog_compiler_static='-Bstatic'
8625 fi
8626 ;;
8627
8628 amigaos*)
8629 case $host_cpu in
8630 powerpc)
8631 # see comment about AmigaOS4 .so support
8632 lt_prog_compiler_pic='-fPIC'
8633 ;;
8634 m68k)
8635 # FIXME: we need at least 68020 code to build shared libraries, but
8636 # adding the `-m68020' flag to GCC prevents building anything better,
8637 # like `-m68040'.
8638 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8639 ;;
8640 esac
8641 ;;
8642
8643 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8644 # PIC is the default for these OSes.
8645 ;;
8646
8647 mingw* | cygwin* | pw32* | os2* | cegcc*)
8648 # This hack is so that the source file can tell whether it is being
8649 # built for inclusion in a dll (and should export symbols for example).
8650 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8651 # (--disable-auto-import) libraries
8652 lt_prog_compiler_pic='-DDLL_EXPORT'
8653 ;;
8654
8655 darwin* | rhapsody*)
8656 # PIC is the default on this platform
8657 # Common symbols not allowed in MH_DYLIB files
8658 lt_prog_compiler_pic='-fno-common'
8659 ;;
8660
8661 haiku*)
8662 # PIC is the default for Haiku.
8663 # The "-static" flag exists, but is broken.
8664 lt_prog_compiler_static=
8665 ;;
8666
8667 hpux*)
8668 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8669 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8670 # sets the default TLS model and affects inlining.
8671 case $host_cpu in
8672 hppa*64*)
8673 # +Z the default
8674 ;;
8675 *)
8676 lt_prog_compiler_pic='-fPIC'
8677 ;;
8678 esac
8679 ;;
8680
8681 interix[3-9]*)
8682 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8683 # Instead, we relocate shared libraries at runtime.
8684 ;;
8685
8686 msdosdjgpp*)
8687 # Just because we use GCC doesn't mean we suddenly get shared libraries
8688 # on systems that don't support them.
8689 lt_prog_compiler_can_build_shared=no
8690 enable_shared=no
8691 ;;
8692
8693 *nto* | *qnx*)
8694 # QNX uses GNU C++, but need to define -shared option too, otherwise
8695 # it will coredump.
8696 lt_prog_compiler_pic='-fPIC -shared'
8697 ;;
8698
8699 sysv4*MP*)
8700 if test -d /usr/nec; then
8701 lt_prog_compiler_pic=-Kconform_pic
8702 fi
8703 ;;
8704
8705 *)
8706 lt_prog_compiler_pic='-fPIC'
8707 ;;
8708 esac
8709
8710 case $cc_basename in
8711 nvcc*) # Cuda Compiler Driver 2.2
8712 lt_prog_compiler_wl='-Xlinker '
8713 lt_prog_compiler_pic='-Xcompiler -fPIC'
8714 ;;
8715 esac
8716 else
8717 # PORTME Check for flag to pass linker flags through the system compiler.
8718 case $host_os in
8719 aix*)
8720 lt_prog_compiler_wl='-Wl,'
8721 if test "$host_cpu" = ia64; then
8722 # AIX 5 now supports IA64 processor
8723 lt_prog_compiler_static='-Bstatic'
8724 else
8725 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8726 fi
8727 ;;
8728
8729 mingw* | cygwin* | pw32* | os2* | cegcc*)
8730 # This hack is so that the source file can tell whether it is being
8731 # built for inclusion in a dll (and should export symbols for example).
8732 lt_prog_compiler_pic='-DDLL_EXPORT'
8733 ;;
8734
8735 hpux9* | hpux10* | hpux11*)
8736 lt_prog_compiler_wl='-Wl,'
8737 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8738 # not for PA HP-UX.
8739 case $host_cpu in
8740 hppa*64*|ia64*)
8741 # +Z the default
8742 ;;
8743 *)
8744 lt_prog_compiler_pic='+Z'
8745 ;;
8746 esac
8747 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8748 lt_prog_compiler_static='${wl}-a ${wl}archive'
8749 ;;
8750
8751 irix5* | irix6* | nonstopux*)
8752 lt_prog_compiler_wl='-Wl,'
8753 # PIC (with -KPIC) is the default.
8754 lt_prog_compiler_static='-non_shared'
8755 ;;
8756
8757 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8758 case $cc_basename in
8759 # old Intel for x86_64 which still supported -KPIC.
8760 ecc*)
8761 lt_prog_compiler_wl='-Wl,'
8762 lt_prog_compiler_pic='-KPIC'
8763 lt_prog_compiler_static='-static'
8764 ;;
8765 # icc used to be incompatible with GCC.
8766 # ICC 10 doesn't accept -KPIC any more.
8767 icc* | ifort*)
8768 lt_prog_compiler_wl='-Wl,'
8769 lt_prog_compiler_pic='-fPIC'
8770 lt_prog_compiler_static='-static'
8771 ;;
8772 # Lahey Fortran 8.1.
8773 lf95*)
8774 lt_prog_compiler_wl='-Wl,'
8775 lt_prog_compiler_pic='--shared'
8776 lt_prog_compiler_static='--static'
8777 ;;
8778 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8779 # Portland Group compilers (*not* the Pentium gcc compiler,
8780 # which looks to be a dead project)
8781 lt_prog_compiler_wl='-Wl,'
8782 lt_prog_compiler_pic='-fpic'
8783 lt_prog_compiler_static='-Bstatic'
8784 ;;
8785 ccc*)
8786 lt_prog_compiler_wl='-Wl,'
8787 # All Alpha code is PIC.
8788 lt_prog_compiler_static='-non_shared'
8789 ;;
8790 xl* | bgxl* | bgf* | mpixl*)
8791 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8792 lt_prog_compiler_wl='-Wl,'
8793 lt_prog_compiler_pic='-qpic'
8794 lt_prog_compiler_static='-qstaticlink'
8795 ;;
8796 *)
8797 case `$CC -V 2>&1 | sed 5q` in
8798 *Sun\ F* | *Sun*Fortran*)
8799 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8800 lt_prog_compiler_pic='-KPIC'
8801 lt_prog_compiler_static='-Bstatic'
8802 lt_prog_compiler_wl=''
8803 ;;
8804 *Sun\ C*)
8805 # Sun C 5.9
8806 lt_prog_compiler_pic='-KPIC'
8807 lt_prog_compiler_static='-Bstatic'
8808 lt_prog_compiler_wl='-Wl,'
8809 ;;
8810 esac
8811 ;;
8812 esac
8813 ;;
8814
8815 newsos6)
8816 lt_prog_compiler_pic='-KPIC'
8817 lt_prog_compiler_static='-Bstatic'
8818 ;;
8819
8820 *nto* | *qnx*)
8821 # QNX uses GNU C++, but need to define -shared option too, otherwise
8822 # it will coredump.
8823 lt_prog_compiler_pic='-fPIC -shared'
8824 ;;
8825
8826 osf3* | osf4* | osf5*)
8827 lt_prog_compiler_wl='-Wl,'
8828 # All OSF/1 code is PIC.
8829 lt_prog_compiler_static='-non_shared'
8830 ;;
8831
8832 rdos*)
8833 lt_prog_compiler_static='-non_shared'
8834 ;;
8835
8836 solaris*)
8837 lt_prog_compiler_pic='-KPIC'
8838 lt_prog_compiler_static='-Bstatic'
8839 case $cc_basename in
8840 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8841 lt_prog_compiler_wl='-Qoption ld ';;
8842 *)
8843 lt_prog_compiler_wl='-Wl,';;
8844 esac
8845 ;;
8846
8847 sunos4*)
8848 lt_prog_compiler_wl='-Qoption ld '
8849 lt_prog_compiler_pic='-PIC'
8850 lt_prog_compiler_static='-Bstatic'
8851 ;;
8852
8853 sysv4 | sysv4.2uw2* | sysv4.3*)
8854 lt_prog_compiler_wl='-Wl,'
8855 lt_prog_compiler_pic='-KPIC'
8856 lt_prog_compiler_static='-Bstatic'
8857 ;;
8858
8859 sysv4*MP*)
8860 if test -d /usr/nec ;then
8861 lt_prog_compiler_pic='-Kconform_pic'
8862 lt_prog_compiler_static='-Bstatic'
8863 fi
8864 ;;
8865
8866 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8867 lt_prog_compiler_wl='-Wl,'
8868 lt_prog_compiler_pic='-KPIC'
8869 lt_prog_compiler_static='-Bstatic'
8870 ;;
8871
8872 unicos*)
8873 lt_prog_compiler_wl='-Wl,'
8874 lt_prog_compiler_can_build_shared=no
8875 ;;
8876
8877 uts4*)
8878 lt_prog_compiler_pic='-pic'
8879 lt_prog_compiler_static='-Bstatic'
8880 ;;
8881
8882 *)
8883 lt_prog_compiler_can_build_shared=no
8884 ;;
8885 esac
8886 fi
8887
8888 case $host_os in
8889 # For platforms which do not support PIC, -DPIC is meaningless:
8890 *djgpp*)
8891 lt_prog_compiler_pic=
8892 ;;
8893 *)
8894 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8895 ;;
8896 esac
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8898 $as_echo "$lt_prog_compiler_pic" >&6; }
8899
8900
8901
8902
8903
8904
8905 #
8906 # Check to make sure the PIC flag actually works.
8907 #
8908 if test -n "$lt_prog_compiler_pic"; then
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8910 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8911 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8912 $as_echo_n "(cached) " >&6
8913 else
8914 lt_cv_prog_compiler_pic_works=no
8915 ac_outfile=conftest.$ac_objext
8916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8917 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8918 # Insert the option either (1) after the last *FLAGS variable, or
8919 # (2) before a word containing "conftest.", or (3) at the end.
8920 # Note that $ac_compile itself does not contain backslashes and begins
8921 # with a dollar sign (not a hyphen), so the echo should work correctly.
8922 # The option is referenced via a variable to avoid confusing sed.
8923 lt_compile=`echo "$ac_compile" | $SED \
8924 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8925 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8926 -e 's:$: $lt_compiler_flag:'`
8927 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8928 (eval "$lt_compile" 2>conftest.err)
8929 ac_status=$?
8930 cat conftest.err >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 if (exit $ac_status) && test -s "$ac_outfile"; then
8933 # The compiler can only warn and ignore the option if not recognized
8934 # So say no if there are warnings other than the usual output.
8935 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8936 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8937 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8938 lt_cv_prog_compiler_pic_works=yes
8939 fi
8940 fi
8941 $RM conftest*
8942
8943 fi
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8945 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8946
8947 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8948 case $lt_prog_compiler_pic in
8949 "" | " "*) ;;
8950 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8951 esac
8952 else
8953 lt_prog_compiler_pic=
8954 lt_prog_compiler_can_build_shared=no
8955 fi
8956
8957 fi
8958
8959
8960
8961
8962
8963
8964 #
8965 # Check to make sure the static flag actually works.
8966 #
8967 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8969 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8970 if ${lt_cv_prog_compiler_static_works+:} false; then :
8971 $as_echo_n "(cached) " >&6
8972 else
8973 lt_cv_prog_compiler_static_works=no
8974 save_LDFLAGS="$LDFLAGS"
8975 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8976 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8977 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8978 # The linker can only warn and ignore the option if not recognized
8979 # So say no if there are warnings
8980 if test -s conftest.err; then
8981 # Append any errors to the config.log.
8982 cat conftest.err 1>&5
8983 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8985 if diff conftest.exp conftest.er2 >/dev/null; then
8986 lt_cv_prog_compiler_static_works=yes
8987 fi
8988 else
8989 lt_cv_prog_compiler_static_works=yes
8990 fi
8991 fi
8992 $RM -r conftest*
8993 LDFLAGS="$save_LDFLAGS"
8994
8995 fi
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8997 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8998
8999 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9000 :
9001 else
9002 lt_prog_compiler_static=
9003 fi
9004
9005
9006
9007
9008
9009
9010
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9012 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9013 if ${lt_cv_prog_compiler_c_o+:} false; then :
9014 $as_echo_n "(cached) " >&6
9015 else
9016 lt_cv_prog_compiler_c_o=no
9017 $RM -r conftest 2>/dev/null
9018 mkdir conftest
9019 cd conftest
9020 mkdir out
9021 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9022
9023 lt_compiler_flag="-o out/conftest2.$ac_objext"
9024 # Insert the option either (1) after the last *FLAGS variable, or
9025 # (2) before a word containing "conftest.", or (3) at the end.
9026 # Note that $ac_compile itself does not contain backslashes and begins
9027 # with a dollar sign (not a hyphen), so the echo should work correctly.
9028 lt_compile=`echo "$ac_compile" | $SED \
9029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9031 -e 's:$: $lt_compiler_flag:'`
9032 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9033 (eval "$lt_compile" 2>out/conftest.err)
9034 ac_status=$?
9035 cat out/conftest.err >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9038 then
9039 # The compiler can only warn and ignore the option if not recognized
9040 # So say no if there are warnings
9041 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9042 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9043 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9044 lt_cv_prog_compiler_c_o=yes
9045 fi
9046 fi
9047 chmod u+w . 2>&5
9048 $RM conftest*
9049 # SGI C++ compiler will create directory out/ii_files/ for
9050 # template instantiation
9051 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9052 $RM out/* && rmdir out
9053 cd ..
9054 $RM -r conftest
9055 $RM conftest*
9056
9057 fi
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9059 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9060
9061
9062
9063
9064
9065
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9067 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9068 if ${lt_cv_prog_compiler_c_o+:} false; then :
9069 $as_echo_n "(cached) " >&6
9070 else
9071 lt_cv_prog_compiler_c_o=no
9072 $RM -r conftest 2>/dev/null
9073 mkdir conftest
9074 cd conftest
9075 mkdir out
9076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9077
9078 lt_compiler_flag="-o out/conftest2.$ac_objext"
9079 # Insert the option either (1) after the last *FLAGS variable, or
9080 # (2) before a word containing "conftest.", or (3) at the end.
9081 # Note that $ac_compile itself does not contain backslashes and begins
9082 # with a dollar sign (not a hyphen), so the echo should work correctly.
9083 lt_compile=`echo "$ac_compile" | $SED \
9084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9086 -e 's:$: $lt_compiler_flag:'`
9087 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9088 (eval "$lt_compile" 2>out/conftest.err)
9089 ac_status=$?
9090 cat out/conftest.err >&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9093 then
9094 # The compiler can only warn and ignore the option if not recognized
9095 # So say no if there are warnings
9096 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9097 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9098 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9099 lt_cv_prog_compiler_c_o=yes
9100 fi
9101 fi
9102 chmod u+w . 2>&5
9103 $RM conftest*
9104 # SGI C++ compiler will create directory out/ii_files/ for
9105 # template instantiation
9106 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9107 $RM out/* && rmdir out
9108 cd ..
9109 $RM -r conftest
9110 $RM conftest*
9111
9112 fi
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9114 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9115
9116
9117
9118
9119 hard_links="nottested"
9120 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9121 # do not overwrite the value of need_locks provided by the user
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9123 $as_echo_n "checking if we can lock with hard links... " >&6; }
9124 hard_links=yes
9125 $RM conftest*
9126 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9127 touch conftest.a
9128 ln conftest.a conftest.b 2>&5 || hard_links=no
9129 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9131 $as_echo "$hard_links" >&6; }
9132 if test "$hard_links" = no; then
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9134 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9135 need_locks=warn
9136 fi
9137 else
9138 need_locks=no
9139 fi
9140
9141
9142
9143
9144
9145
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9147 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9148
9149 runpath_var=
9150 allow_undefined_flag=
9151 always_export_symbols=no
9152 archive_cmds=
9153 archive_expsym_cmds=
9154 compiler_needs_object=no
9155 enable_shared_with_static_runtimes=no
9156 export_dynamic_flag_spec=
9157 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9158 hardcode_automatic=no
9159 hardcode_direct=no
9160 hardcode_direct_absolute=no
9161 hardcode_libdir_flag_spec=
9162 hardcode_libdir_flag_spec_ld=
9163 hardcode_libdir_separator=
9164 hardcode_minus_L=no
9165 hardcode_shlibpath_var=unsupported
9166 inherit_rpath=no
9167 link_all_deplibs=unknown
9168 module_cmds=
9169 module_expsym_cmds=
9170 old_archive_from_new_cmds=
9171 old_archive_from_expsyms_cmds=
9172 thread_safe_flag_spec=
9173 whole_archive_flag_spec=
9174 # include_expsyms should be a list of space-separated symbols to be *always*
9175 # included in the symbol list
9176 include_expsyms=
9177 # exclude_expsyms can be an extended regexp of symbols to exclude
9178 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9179 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9180 # as well as any symbol that contains `d'.
9181 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9182 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9183 # platforms (ab)use it in PIC code, but their linkers get confused if
9184 # the symbol is explicitly referenced. Since portable code cannot
9185 # rely on this symbol name, it's probably fine to never include it in
9186 # preloaded symbol tables.
9187 # Exclude shared library initialization/finalization symbols.
9188 extract_expsyms_cmds=
9189
9190 case $host_os in
9191 cygwin* | mingw* | pw32* | cegcc*)
9192 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9193 # When not using gcc, we currently assume that we are using
9194 # Microsoft Visual C++.
9195 if test "$GCC" != yes; then
9196 with_gnu_ld=no
9197 fi
9198 ;;
9199 interix*)
9200 # we just hope/assume this is gcc and not c89 (= MSVC++)
9201 with_gnu_ld=yes
9202 ;;
9203 openbsd*)
9204 with_gnu_ld=no
9205 ;;
9206 esac
9207
9208 ld_shlibs=yes
9209
9210 # On some targets, GNU ld is compatible enough with the native linker
9211 # that we're better off using the native interface for both.
9212 lt_use_gnu_ld_interface=no
9213 if test "$with_gnu_ld" = yes; then
9214 case $host_os in
9215 aix*)
9216 # The AIX port of GNU ld has always aspired to compatibility
9217 # with the native linker. However, as the warning in the GNU ld
9218 # block says, versions before 2.19.5* couldn't really create working
9219 # shared libraries, regardless of the interface used.
9220 case `$LD -v 2>&1` in
9221 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9222 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9223 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9224 *)
9225 lt_use_gnu_ld_interface=yes
9226 ;;
9227 esac
9228 ;;
9229 *)
9230 lt_use_gnu_ld_interface=yes
9231 ;;
9232 esac
9233 fi
9234
9235 if test "$lt_use_gnu_ld_interface" = yes; then
9236 # If archive_cmds runs LD, not CC, wlarc should be empty
9237 wlarc='${wl}'
9238
9239 # Set some defaults for GNU ld with shared library support. These
9240 # are reset later if shared libraries are not supported. Putting them
9241 # here allows them to be overridden if necessary.
9242 runpath_var=LD_RUN_PATH
9243 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9244 export_dynamic_flag_spec='${wl}--export-dynamic'
9245 # ancient GNU ld didn't support --whole-archive et. al.
9246 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9247 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9248 else
9249 whole_archive_flag_spec=
9250 fi
9251 supports_anon_versioning=no
9252 case `$LD -v 2>&1` in
9253 *GNU\ gold*) supports_anon_versioning=yes ;;
9254 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9255 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9256 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9257 *\ 2.11.*) ;; # other 2.11 versions
9258 *) supports_anon_versioning=yes ;;
9259 esac
9260
9261 # See if GNU ld supports shared libraries.
9262 case $host_os in
9263 aix[3-9]*)
9264 # On AIX/PPC, the GNU linker is very broken
9265 if test "$host_cpu" != ia64; then
9266 ld_shlibs=no
9267 cat <<_LT_EOF 1>&2
9268
9269 *** Warning: the GNU linker, at least up to release 2.19, is reported
9270 *** to be unable to reliably create shared libraries on AIX.
9271 *** Therefore, libtool is disabling shared libraries support. If you
9272 *** really care for shared libraries, you may want to install binutils
9273 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9274 *** You will then need to restart the configuration process.
9275
9276 _LT_EOF
9277 fi
9278 ;;
9279
9280 amigaos*)
9281 case $host_cpu in
9282 powerpc)
9283 # see comment about AmigaOS4 .so support
9284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9285 archive_expsym_cmds=''
9286 ;;
9287 m68k)
9288 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)'
9289 hardcode_libdir_flag_spec='-L$libdir'
9290 hardcode_minus_L=yes
9291 ;;
9292 esac
9293 ;;
9294
9295 beos*)
9296 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9297 allow_undefined_flag=unsupported
9298 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9299 # support --undefined. This deserves some investigation. FIXME
9300 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9301 else
9302 ld_shlibs=no
9303 fi
9304 ;;
9305
9306 cygwin* | mingw* | pw32* | cegcc*)
9307 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9308 # as there is no search path for DLLs.
9309 hardcode_libdir_flag_spec='-L$libdir'
9310 export_dynamic_flag_spec='${wl}--export-all-symbols'
9311 allow_undefined_flag=unsupported
9312 always_export_symbols=no
9313 enable_shared_with_static_runtimes=yes
9314 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9315
9316 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9317 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9318 # If the export-symbols file already is a .def file (1st line
9319 # is EXPORTS), use it as is; otherwise, prepend...
9320 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9321 cp $export_symbols $output_objdir/$soname.def;
9322 else
9323 echo EXPORTS > $output_objdir/$soname.def;
9324 cat $export_symbols >> $output_objdir/$soname.def;
9325 fi~
9326 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9327 else
9328 ld_shlibs=no
9329 fi
9330 ;;
9331
9332 haiku*)
9333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9334 link_all_deplibs=yes
9335 ;;
9336
9337 interix[3-9]*)
9338 hardcode_direct=no
9339 hardcode_shlibpath_var=no
9340 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9341 export_dynamic_flag_spec='${wl}-E'
9342 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9343 # Instead, shared libraries are loaded at an image base (0x10000000 by
9344 # default) and relocated if they conflict, which is a slow very memory
9345 # consuming and fragmenting process. To avoid this, we pick a random,
9346 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9347 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9348 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9349 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'
9350 ;;
9351
9352 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9353 tmp_diet=no
9354 if test "$host_os" = linux-dietlibc; then
9355 case $cc_basename in
9356 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9357 esac
9358 fi
9359 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9360 && test "$tmp_diet" = no
9361 then
9362 tmp_addflag=
9363 tmp_sharedflag='-shared'
9364 case $cc_basename,$host_cpu in
9365 pgcc*) # Portland Group C compiler
9366 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'
9367 tmp_addflag=' $pic_flag'
9368 ;;
9369 pgf77* | pgf90* | pgf95* | pgfortran*)
9370 # Portland Group f77 and f90 compilers
9371 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'
9372 tmp_addflag=' $pic_flag -Mnomain' ;;
9373 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9374 tmp_addflag=' -i_dynamic' ;;
9375 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9376 tmp_addflag=' -i_dynamic -nofor_main' ;;
9377 ifc* | ifort*) # Intel Fortran compiler
9378 tmp_addflag=' -nofor_main' ;;
9379 lf95*) # Lahey Fortran 8.1
9380 whole_archive_flag_spec=
9381 tmp_sharedflag='--shared' ;;
9382 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9383 tmp_sharedflag='-qmkshrobj'
9384 tmp_addflag= ;;
9385 nvcc*) # Cuda Compiler Driver 2.2
9386 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'
9387 compiler_needs_object=yes
9388 ;;
9389 esac
9390 case `$CC -V 2>&1 | sed 5q` in
9391 *Sun\ C*) # Sun C 5.9
9392 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'
9393 compiler_needs_object=yes
9394 tmp_sharedflag='-G' ;;
9395 *Sun\ F*) # Sun Fortran 8.3
9396 tmp_sharedflag='-G' ;;
9397 esac
9398 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9399
9400 if test "x$supports_anon_versioning" = xyes; then
9401 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9402 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9403 echo "local: *; };" >> $output_objdir/$libname.ver~
9404 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9405 fi
9406
9407 case $cc_basename in
9408 xlf* | bgf* | bgxlf* | mpixlf*)
9409 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9410 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9411 hardcode_libdir_flag_spec=
9412 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9413 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9414 if test "x$supports_anon_versioning" = xyes; then
9415 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9416 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9417 echo "local: *; };" >> $output_objdir/$libname.ver~
9418 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9419 fi
9420 ;;
9421 esac
9422 else
9423 ld_shlibs=no
9424 fi
9425 ;;
9426
9427 netbsd*)
9428 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9429 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9430 wlarc=
9431 else
9432 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9433 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9434 fi
9435 ;;
9436
9437 solaris*)
9438 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9439 ld_shlibs=no
9440 cat <<_LT_EOF 1>&2
9441
9442 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9443 *** create shared libraries on Solaris systems. Therefore, libtool
9444 *** is disabling shared libraries support. We urge you to upgrade GNU
9445 *** binutils to release 2.9.1 or newer. Another option is to modify
9446 *** your PATH or compiler configuration so that the native linker is
9447 *** used, and then restart.
9448
9449 _LT_EOF
9450 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9452 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9453 else
9454 ld_shlibs=no
9455 fi
9456 ;;
9457
9458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9459 case `$LD -v 2>&1` in
9460 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9461 ld_shlibs=no
9462 cat <<_LT_EOF 1>&2
9463
9464 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9465 *** reliably create shared libraries on SCO systems. Therefore, libtool
9466 *** is disabling shared libraries support. We urge you to upgrade GNU
9467 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9468 *** your PATH or compiler configuration so that the native linker is
9469 *** used, and then restart.
9470
9471 _LT_EOF
9472 ;;
9473 *)
9474 # For security reasons, it is highly recommended that you always
9475 # use absolute paths for naming shared libraries, and exclude the
9476 # DT_RUNPATH tag from executables and libraries. But doing so
9477 # requires that you compile everything twice, which is a pain.
9478 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9479 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9481 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9482 else
9483 ld_shlibs=no
9484 fi
9485 ;;
9486 esac
9487 ;;
9488
9489 sunos4*)
9490 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9491 wlarc=
9492 hardcode_direct=yes
9493 hardcode_shlibpath_var=no
9494 ;;
9495
9496 *)
9497 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9499 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9500 else
9501 ld_shlibs=no
9502 fi
9503 ;;
9504 esac
9505
9506 if test "$ld_shlibs" = no; then
9507 runpath_var=
9508 hardcode_libdir_flag_spec=
9509 export_dynamic_flag_spec=
9510 whole_archive_flag_spec=
9511 fi
9512 else
9513 # PORTME fill in a description of your system's linker (not GNU ld)
9514 case $host_os in
9515 aix3*)
9516 allow_undefined_flag=unsupported
9517 always_export_symbols=yes
9518 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'
9519 # Note: this linker hardcodes the directories in LIBPATH if there
9520 # are no directories specified by -L.
9521 hardcode_minus_L=yes
9522 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9523 # Neither direct hardcoding nor static linking is supported with a
9524 # broken collect2.
9525 hardcode_direct=unsupported
9526 fi
9527 ;;
9528
9529 aix[4-9]*)
9530 if test "$host_cpu" = ia64; then
9531 # On IA64, the linker does run time linking by default, so we don't
9532 # have to do anything special.
9533 aix_use_runtimelinking=no
9534 exp_sym_flag='-Bexport'
9535 no_entry_flag=""
9536 else
9537 # If we're using GNU nm, then we don't want the "-C" option.
9538 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9539 # Also, AIX nm treats weak defined symbols like other global
9540 # defined symbols, whereas GNU nm marks them as "W".
9541 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9542 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'
9543 else
9544 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'
9545 fi
9546 aix_use_runtimelinking=no
9547
9548 # Test if we are trying to use run time linking or normal
9549 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9550 # need to do runtime linking.
9551 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9552 for ld_flag in $LDFLAGS; do
9553 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9554 aix_use_runtimelinking=yes
9555 break
9556 fi
9557 done
9558 ;;
9559 esac
9560
9561 exp_sym_flag='-bexport'
9562 no_entry_flag='-bnoentry'
9563 fi
9564
9565 # When large executables or shared objects are built, AIX ld can
9566 # have problems creating the table of contents. If linking a library
9567 # or program results in "error TOC overflow" add -mminimal-toc to
9568 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9569 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9570
9571 archive_cmds=''
9572 hardcode_direct=yes
9573 hardcode_direct_absolute=yes
9574 hardcode_libdir_separator=':'
9575 link_all_deplibs=yes
9576 file_list_spec='${wl}-f,'
9577
9578 if test "$GCC" = yes; then
9579 case $host_os in aix4.[012]|aix4.[012].*)
9580 # We only want to do this on AIX 4.2 and lower, the check
9581 # below for broken collect2 doesn't work under 4.3+
9582 collect2name=`${CC} -print-prog-name=collect2`
9583 if test -f "$collect2name" &&
9584 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9585 then
9586 # We have reworked collect2
9587 :
9588 else
9589 # We have old collect2
9590 hardcode_direct=unsupported
9591 # It fails to find uninstalled libraries when the uninstalled
9592 # path is not listed in the libpath. Setting hardcode_minus_L
9593 # to unsupported forces relinking
9594 hardcode_minus_L=yes
9595 hardcode_libdir_flag_spec='-L$libdir'
9596 hardcode_libdir_separator=
9597 fi
9598 ;;
9599 esac
9600 shared_flag='-shared'
9601 if test "$aix_use_runtimelinking" = yes; then
9602 shared_flag="$shared_flag "'${wl}-G'
9603 fi
9604 else
9605 # not using gcc
9606 if test "$host_cpu" = ia64; then
9607 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9608 # chokes on -Wl,-G. The following line is correct:
9609 shared_flag='-G'
9610 else
9611 if test "$aix_use_runtimelinking" = yes; then
9612 shared_flag='${wl}-G'
9613 else
9614 shared_flag='${wl}-bM:SRE'
9615 fi
9616 fi
9617 fi
9618
9619 export_dynamic_flag_spec='${wl}-bexpall'
9620 # It seems that -bexpall does not export symbols beginning with
9621 # underscore (_), so it is better to generate a list of symbols to export.
9622 always_export_symbols=yes
9623 if test "$aix_use_runtimelinking" = yes; then
9624 # Warning - without using the other runtime loading flags (-brtl),
9625 # -berok will link without error, but may produce a broken library.
9626 allow_undefined_flag='-berok'
9627 # Determine the default libpath from the value encoded in an
9628 # empty executable.
9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h. */
9631
9632 int
9633 main ()
9634 {
9635
9636 ;
9637 return 0;
9638 }
9639 _ACEOF
9640 if ac_fn_c_try_link "$LINENO"; then :
9641
9642 lt_aix_libpath_sed='
9643 /Import File Strings/,/^$/ {
9644 /^0/ {
9645 s/^0 *\(.*\)$/\1/
9646 p
9647 }
9648 }'
9649 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9650 # Check for a 64-bit object if we didn't find anything.
9651 if test -z "$aix_libpath"; then
9652 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9653 fi
9654 fi
9655 rm -f core conftest.err conftest.$ac_objext \
9656 conftest$ac_exeext conftest.$ac_ext
9657 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9658
9659 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9660 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"
9661 else
9662 if test "$host_cpu" = ia64; then
9663 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9664 allow_undefined_flag="-z nodefs"
9665 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"
9666 else
9667 # Determine the default libpath from the value encoded in an
9668 # empty executable.
9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9671
9672 int
9673 main ()
9674 {
9675
9676 ;
9677 return 0;
9678 }
9679 _ACEOF
9680 if ac_fn_c_try_link "$LINENO"; then :
9681
9682 lt_aix_libpath_sed='
9683 /Import File Strings/,/^$/ {
9684 /^0/ {
9685 s/^0 *\(.*\)$/\1/
9686 p
9687 }
9688 }'
9689 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9690 # Check for a 64-bit object if we didn't find anything.
9691 if test -z "$aix_libpath"; then
9692 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9693 fi
9694 fi
9695 rm -f core conftest.err conftest.$ac_objext \
9696 conftest$ac_exeext conftest.$ac_ext
9697 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9698
9699 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9700 # Warning - without using the other run time loading flags,
9701 # -berok will link without error, but may produce a broken library.
9702 no_undefined_flag=' ${wl}-bernotok'
9703 allow_undefined_flag=' ${wl}-berok'
9704 if test "$with_gnu_ld" = yes; then
9705 # We only use this code for GNU lds that support --whole-archive.
9706 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9707 else
9708 # Exported symbols can be pulled into shared objects from archives
9709 whole_archive_flag_spec='$convenience'
9710 fi
9711 archive_cmds_need_lc=yes
9712 # This is similar to how AIX traditionally builds its shared libraries.
9713 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'
9714 fi
9715 fi
9716 ;;
9717
9718 amigaos*)
9719 case $host_cpu in
9720 powerpc)
9721 # see comment about AmigaOS4 .so support
9722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9723 archive_expsym_cmds=''
9724 ;;
9725 m68k)
9726 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)'
9727 hardcode_libdir_flag_spec='-L$libdir'
9728 hardcode_minus_L=yes
9729 ;;
9730 esac
9731 ;;
9732
9733 bsdi[45]*)
9734 export_dynamic_flag_spec=-rdynamic
9735 ;;
9736
9737 cygwin* | mingw* | pw32* | cegcc*)
9738 # When not using gcc, we currently assume that we are using
9739 # Microsoft Visual C++.
9740 # hardcode_libdir_flag_spec is actually meaningless, as there is
9741 # no search path for DLLs.
9742 hardcode_libdir_flag_spec=' '
9743 allow_undefined_flag=unsupported
9744 # Tell ltmain to make .lib files, not .a files.
9745 libext=lib
9746 # Tell ltmain to make .dll files, not .so files.
9747 shrext_cmds=".dll"
9748 # FIXME: Setting linknames here is a bad hack.
9749 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9750 # The linker will automatically build a .lib file if we build a DLL.
9751 old_archive_from_new_cmds='true'
9752 # FIXME: Should let the user specify the lib program.
9753 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9754 fix_srcfile_path='`cygpath -w "$srcfile"`'
9755 enable_shared_with_static_runtimes=yes
9756 ;;
9757
9758 darwin* | rhapsody*)
9759
9760
9761 archive_cmds_need_lc=no
9762 hardcode_direct=no
9763 hardcode_automatic=yes
9764 hardcode_shlibpath_var=unsupported
9765 if test "$lt_cv_ld_force_load" = "yes"; then
9766 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\"`'
9767 else
9768 whole_archive_flag_spec=''
9769 fi
9770 link_all_deplibs=yes
9771 allow_undefined_flag="$_lt_dar_allow_undefined"
9772 case $cc_basename in
9773 ifort*) _lt_dar_can_shared=yes ;;
9774 *) _lt_dar_can_shared=$GCC ;;
9775 esac
9776 if test "$_lt_dar_can_shared" = "yes"; then
9777 output_verbose_link_cmd=func_echo_all
9778 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9779 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9780 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}"
9781 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}"
9782
9783 else
9784 ld_shlibs=no
9785 fi
9786
9787 ;;
9788
9789 dgux*)
9790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9791 hardcode_libdir_flag_spec='-L$libdir'
9792 hardcode_shlibpath_var=no
9793 ;;
9794
9795 freebsd1*)
9796 ld_shlibs=no
9797 ;;
9798
9799 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9800 # support. Future versions do this automatically, but an explicit c++rt0.o
9801 # does not break anything, and helps significantly (at the cost of a little
9802 # extra space).
9803 freebsd2.2*)
9804 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9805 hardcode_libdir_flag_spec='-R$libdir'
9806 hardcode_direct=yes
9807 hardcode_shlibpath_var=no
9808 ;;
9809
9810 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9811 freebsd2*)
9812 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9813 hardcode_direct=yes
9814 hardcode_minus_L=yes
9815 hardcode_shlibpath_var=no
9816 ;;
9817
9818 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9819 freebsd* | dragonfly*)
9820 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9821 hardcode_libdir_flag_spec='-R$libdir'
9822 hardcode_direct=yes
9823 hardcode_shlibpath_var=no
9824 ;;
9825
9826 hpux9*)
9827 if test "$GCC" = yes; then
9828 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9829 else
9830 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'
9831 fi
9832 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9833 hardcode_libdir_separator=:
9834 hardcode_direct=yes
9835
9836 # hardcode_minus_L: Not really in the search PATH,
9837 # but as the default location of the library.
9838 hardcode_minus_L=yes
9839 export_dynamic_flag_spec='${wl}-E'
9840 ;;
9841
9842 hpux10*)
9843 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9844 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9845 else
9846 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9847 fi
9848 if test "$with_gnu_ld" = no; then
9849 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9850 hardcode_libdir_flag_spec_ld='+b $libdir'
9851 hardcode_libdir_separator=:
9852 hardcode_direct=yes
9853 hardcode_direct_absolute=yes
9854 export_dynamic_flag_spec='${wl}-E'
9855 # hardcode_minus_L: Not really in the search PATH,
9856 # but as the default location of the library.
9857 hardcode_minus_L=yes
9858 fi
9859 ;;
9860
9861 hpux11*)
9862 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9863 case $host_cpu in
9864 hppa*64*)
9865 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9866 ;;
9867 ia64*)
9868 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9869 ;;
9870 *)
9871 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9872 ;;
9873 esac
9874 else
9875 case $host_cpu in
9876 hppa*64*)
9877 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9878 ;;
9879 ia64*)
9880 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9881 ;;
9882 *)
9883
9884 # Older versions of the 11.00 compiler do not understand -b yet
9885 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9887 $as_echo_n "checking if $CC understands -b... " >&6; }
9888 if ${lt_cv_prog_compiler__b+:} false; then :
9889 $as_echo_n "(cached) " >&6
9890 else
9891 lt_cv_prog_compiler__b=no
9892 save_LDFLAGS="$LDFLAGS"
9893 LDFLAGS="$LDFLAGS -b"
9894 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9895 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9896 # The linker can only warn and ignore the option if not recognized
9897 # So say no if there are warnings
9898 if test -s conftest.err; then
9899 # Append any errors to the config.log.
9900 cat conftest.err 1>&5
9901 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9902 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9903 if diff conftest.exp conftest.er2 >/dev/null; then
9904 lt_cv_prog_compiler__b=yes
9905 fi
9906 else
9907 lt_cv_prog_compiler__b=yes
9908 fi
9909 fi
9910 $RM -r conftest*
9911 LDFLAGS="$save_LDFLAGS"
9912
9913 fi
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9915 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9916
9917 if test x"$lt_cv_prog_compiler__b" = xyes; then
9918 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9919 else
9920 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9921 fi
9922
9923 ;;
9924 esac
9925 fi
9926 if test "$with_gnu_ld" = no; then
9927 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9928 hardcode_libdir_separator=:
9929
9930 case $host_cpu in
9931 hppa*64*|ia64*)
9932 hardcode_direct=no
9933 hardcode_shlibpath_var=no
9934 ;;
9935 *)
9936 hardcode_direct=yes
9937 hardcode_direct_absolute=yes
9938 export_dynamic_flag_spec='${wl}-E'
9939
9940 # hardcode_minus_L: Not really in the search PATH,
9941 # but as the default location of the library.
9942 hardcode_minus_L=yes
9943 ;;
9944 esac
9945 fi
9946 ;;
9947
9948 irix5* | irix6* | nonstopux*)
9949 if test "$GCC" = yes; then
9950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9951 # Try to use the -exported_symbol ld option, if it does not
9952 # work, assume that -exports_file does not work either and
9953 # implicitly export all symbols.
9954 save_LDFLAGS="$LDFLAGS"
9955 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957 /* end confdefs.h. */
9958 int foo(void) {}
9959 _ACEOF
9960 if ac_fn_c_try_link "$LINENO"; then :
9961 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9962
9963 fi
9964 rm -f core conftest.err conftest.$ac_objext \
9965 conftest$ac_exeext conftest.$ac_ext
9966 LDFLAGS="$save_LDFLAGS"
9967 else
9968 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'
9969 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'
9970 fi
9971 archive_cmds_need_lc='no'
9972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9973 hardcode_libdir_separator=:
9974 inherit_rpath=yes
9975 link_all_deplibs=yes
9976 ;;
9977
9978 netbsd*)
9979 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9980 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9981 else
9982 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9983 fi
9984 hardcode_libdir_flag_spec='-R$libdir'
9985 hardcode_direct=yes
9986 hardcode_shlibpath_var=no
9987 ;;
9988
9989 newsos6)
9990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9991 hardcode_direct=yes
9992 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9993 hardcode_libdir_separator=:
9994 hardcode_shlibpath_var=no
9995 ;;
9996
9997 *nto* | *qnx*)
9998 ;;
9999
10000 openbsd*)
10001 if test -f /usr/libexec/ld.so; then
10002 hardcode_direct=yes
10003 hardcode_shlibpath_var=no
10004 hardcode_direct_absolute=yes
10005 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10006 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10007 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10008 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10009 export_dynamic_flag_spec='${wl}-E'
10010 else
10011 case $host_os in
10012 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10013 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10014 hardcode_libdir_flag_spec='-R$libdir'
10015 ;;
10016 *)
10017 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10018 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10019 ;;
10020 esac
10021 fi
10022 else
10023 ld_shlibs=no
10024 fi
10025 ;;
10026
10027 os2*)
10028 hardcode_libdir_flag_spec='-L$libdir'
10029 hardcode_minus_L=yes
10030 allow_undefined_flag=unsupported
10031 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'
10032 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10033 ;;
10034
10035 osf3*)
10036 if test "$GCC" = yes; then
10037 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10038 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'
10039 else
10040 allow_undefined_flag=' -expect_unresolved \*'
10041 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'
10042 fi
10043 archive_cmds_need_lc='no'
10044 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10045 hardcode_libdir_separator=:
10046 ;;
10047
10048 osf4* | osf5*) # as osf3* with the addition of -msym flag
10049 if test "$GCC" = yes; then
10050 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10051 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10052 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10053 else
10054 allow_undefined_flag=' -expect_unresolved \*'
10055 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'
10056 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~
10057 $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'
10058
10059 # Both c and cxx compiler support -rpath directly
10060 hardcode_libdir_flag_spec='-rpath $libdir'
10061 fi
10062 archive_cmds_need_lc='no'
10063 hardcode_libdir_separator=:
10064 ;;
10065
10066 solaris*)
10067 no_undefined_flag=' -z defs'
10068 if test "$GCC" = yes; then
10069 wlarc='${wl}'
10070 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10071 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10072 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10073 else
10074 case `$CC -V 2>&1` in
10075 *"Compilers 5.0"*)
10076 wlarc=''
10077 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10078 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10079 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10080 ;;
10081 *)
10082 wlarc='${wl}'
10083 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10084 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10085 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10086 ;;
10087 esac
10088 fi
10089 hardcode_libdir_flag_spec='-R$libdir'
10090 hardcode_shlibpath_var=no
10091 case $host_os in
10092 solaris2.[0-5] | solaris2.[0-5].*) ;;
10093 *)
10094 # The compiler driver will combine and reorder linker options,
10095 # but understands `-z linker_flag'. GCC discards it without `$wl',
10096 # but is careful enough not to reorder.
10097 # Supported since Solaris 2.6 (maybe 2.5.1?)
10098 if test "$GCC" = yes; then
10099 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10100 else
10101 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10102 fi
10103 ;;
10104 esac
10105 link_all_deplibs=yes
10106 ;;
10107
10108 sunos4*)
10109 if test "x$host_vendor" = xsequent; then
10110 # Use $CC to link under sequent, because it throws in some extra .o
10111 # files that make .init and .fini sections work.
10112 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10113 else
10114 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10115 fi
10116 hardcode_libdir_flag_spec='-L$libdir'
10117 hardcode_direct=yes
10118 hardcode_minus_L=yes
10119 hardcode_shlibpath_var=no
10120 ;;
10121
10122 sysv4)
10123 case $host_vendor in
10124 sni)
10125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10126 hardcode_direct=yes # is this really true???
10127 ;;
10128 siemens)
10129 ## LD is ld it makes a PLAMLIB
10130 ## CC just makes a GrossModule.
10131 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10132 reload_cmds='$CC -r -o $output$reload_objs'
10133 hardcode_direct=no
10134 ;;
10135 motorola)
10136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10137 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10138 ;;
10139 esac
10140 runpath_var='LD_RUN_PATH'
10141 hardcode_shlibpath_var=no
10142 ;;
10143
10144 sysv4.3*)
10145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10146 hardcode_shlibpath_var=no
10147 export_dynamic_flag_spec='-Bexport'
10148 ;;
10149
10150 sysv4*MP*)
10151 if test -d /usr/nec; then
10152 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10153 hardcode_shlibpath_var=no
10154 runpath_var=LD_RUN_PATH
10155 hardcode_runpath_var=yes
10156 ld_shlibs=yes
10157 fi
10158 ;;
10159
10160 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10161 no_undefined_flag='${wl}-z,text'
10162 archive_cmds_need_lc=no
10163 hardcode_shlibpath_var=no
10164 runpath_var='LD_RUN_PATH'
10165
10166 if test "$GCC" = yes; then
10167 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10168 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10169 else
10170 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10171 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10172 fi
10173 ;;
10174
10175 sysv5* | sco3.2v5* | sco5v6*)
10176 # Note: We can NOT use -z defs as we might desire, because we do not
10177 # link with -lc, and that would cause any symbols used from libc to
10178 # always be unresolved, which means just about no library would
10179 # ever link correctly. If we're not using GNU ld we use -z text
10180 # though, which does catch some bad symbols but isn't as heavy-handed
10181 # as -z defs.
10182 no_undefined_flag='${wl}-z,text'
10183 allow_undefined_flag='${wl}-z,nodefs'
10184 archive_cmds_need_lc=no
10185 hardcode_shlibpath_var=no
10186 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10187 hardcode_libdir_separator=':'
10188 link_all_deplibs=yes
10189 export_dynamic_flag_spec='${wl}-Bexport'
10190 runpath_var='LD_RUN_PATH'
10191
10192 if test "$GCC" = yes; then
10193 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10194 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10195 else
10196 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10197 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10198 fi
10199 ;;
10200
10201 uts4*)
10202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10203 hardcode_libdir_flag_spec='-L$libdir'
10204 hardcode_shlibpath_var=no
10205 ;;
10206
10207 *)
10208 ld_shlibs=no
10209 ;;
10210 esac
10211
10212 if test x$host_vendor = xsni; then
10213 case $host in
10214 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10215 export_dynamic_flag_spec='${wl}-Blargedynsym'
10216 ;;
10217 esac
10218 fi
10219 fi
10220
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10222 $as_echo "$ld_shlibs" >&6; }
10223 test "$ld_shlibs" = no && can_build_shared=no
10224
10225 with_gnu_ld=$with_gnu_ld
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241 #
10242 # Do we need to explicitly link libc?
10243 #
10244 case "x$archive_cmds_need_lc" in
10245 x|xyes)
10246 # Assume -lc should be added
10247 archive_cmds_need_lc=yes
10248
10249 if test "$enable_shared" = yes && test "$GCC" = yes; then
10250 case $archive_cmds in
10251 *'~'*)
10252 # FIXME: we may have to deal with multi-command sequences.
10253 ;;
10254 '$CC '*)
10255 # Test whether the compiler implicitly links with -lc since on some
10256 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10257 # to ld, don't add -lc before -lgcc.
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10259 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10260 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10261 $as_echo_n "(cached) " >&6
10262 else
10263 $RM conftest*
10264 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10265
10266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10267 (eval $ac_compile) 2>&5
10268 ac_status=$?
10269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10270 test $ac_status = 0; } 2>conftest.err; then
10271 soname=conftest
10272 lib=conftest
10273 libobjs=conftest.$ac_objext
10274 deplibs=
10275 wl=$lt_prog_compiler_wl
10276 pic_flag=$lt_prog_compiler_pic
10277 compiler_flags=-v
10278 linker_flags=-v
10279 verstring=
10280 output_objdir=.
10281 libname=conftest
10282 lt_save_allow_undefined_flag=$allow_undefined_flag
10283 allow_undefined_flag=
10284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10285 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10286 ac_status=$?
10287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10288 test $ac_status = 0; }
10289 then
10290 lt_cv_archive_cmds_need_lc=no
10291 else
10292 lt_cv_archive_cmds_need_lc=yes
10293 fi
10294 allow_undefined_flag=$lt_save_allow_undefined_flag
10295 else
10296 cat conftest.err 1>&5
10297 fi
10298 $RM conftest*
10299
10300 fi
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10302 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10303 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10304 ;;
10305 esac
10306 fi
10307 ;;
10308 esac
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10467 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10468
10469 if test "$GCC" = yes; then
10470 case $host_os in
10471 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10472 *) lt_awk_arg="/^libraries:/" ;;
10473 esac
10474 case $host_os in
10475 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10476 *) lt_sed_strip_eq="s,=/,/,g" ;;
10477 esac
10478 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10479 case $lt_search_path_spec in
10480 *\;*)
10481 # if the path contains ";" then we assume it to be the separator
10482 # otherwise default to the standard path separator (i.e. ":") - it is
10483 # assumed that no part of a normal pathname contains ";" but that should
10484 # okay in the real world where ";" in dirpaths is itself problematic.
10485 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10486 ;;
10487 *)
10488 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10489 ;;
10490 esac
10491 # Ok, now we have the path, separated by spaces, we can step through it
10492 # and add multilib dir if necessary.
10493 lt_tmp_lt_search_path_spec=
10494 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10495 for lt_sys_path in $lt_search_path_spec; do
10496 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10497 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10498 else
10499 test -d "$lt_sys_path" && \
10500 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10501 fi
10502 done
10503 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10504 BEGIN {RS=" "; FS="/|\n";} {
10505 lt_foo="";
10506 lt_count=0;
10507 for (lt_i = NF; lt_i > 0; lt_i--) {
10508 if ($lt_i != "" && $lt_i != ".") {
10509 if ($lt_i == "..") {
10510 lt_count++;
10511 } else {
10512 if (lt_count == 0) {
10513 lt_foo="/" $lt_i lt_foo;
10514 } else {
10515 lt_count--;
10516 }
10517 }
10518 }
10519 }
10520 if (lt_foo != "") { lt_freq[lt_foo]++; }
10521 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10522 }'`
10523 # AWK program above erroneously prepends '/' to C:/dos/paths
10524 # for these hosts.
10525 case $host_os in
10526 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10527 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10528 esac
10529 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10530 else
10531 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10532 fi
10533 library_names_spec=
10534 libname_spec='lib$name'
10535 soname_spec=
10536 shrext_cmds=".so"
10537 postinstall_cmds=
10538 postuninstall_cmds=
10539 finish_cmds=
10540 finish_eval=
10541 shlibpath_var=
10542 shlibpath_overrides_runpath=unknown
10543 version_type=none
10544 dynamic_linker="$host_os ld.so"
10545 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10546 need_lib_prefix=unknown
10547 hardcode_into_libs=no
10548
10549 # when you set need_version to no, make sure it does not cause -set_version
10550 # flags to be left without arguments
10551 need_version=unknown
10552
10553 case $host_os in
10554 aix3*)
10555 version_type=linux
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10557 shlibpath_var=LIBPATH
10558
10559 # AIX 3 has no versioning support, so we append a major version to the name.
10560 soname_spec='${libname}${release}${shared_ext}$major'
10561 ;;
10562
10563 aix[4-9]*)
10564 version_type=linux
10565 need_lib_prefix=no
10566 need_version=no
10567 hardcode_into_libs=yes
10568 if test "$host_cpu" = ia64; then
10569 # AIX 5 supports IA64
10570 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10571 shlibpath_var=LD_LIBRARY_PATH
10572 else
10573 # With GCC up to 2.95.x, collect2 would create an import file
10574 # for dependence libraries. The import file would start with
10575 # the line `#! .'. This would cause the generated library to
10576 # depend on `.', always an invalid library. This was fixed in
10577 # development snapshots of GCC prior to 3.0.
10578 case $host_os in
10579 aix4 | aix4.[01] | aix4.[01].*)
10580 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10581 echo ' yes '
10582 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10583 :
10584 else
10585 can_build_shared=no
10586 fi
10587 ;;
10588 esac
10589 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10590 # soname into executable. Probably we can add versioning support to
10591 # collect2, so additional links can be useful in future.
10592 if test "$aix_use_runtimelinking" = yes; then
10593 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10594 # instead of lib<name>.a to let people know that these are not
10595 # typical AIX shared libraries.
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597 else
10598 # We preserve .a as extension for shared libraries through AIX4.2
10599 # and later when we are not doing run time linking.
10600 library_names_spec='${libname}${release}.a $libname.a'
10601 soname_spec='${libname}${release}${shared_ext}$major'
10602 fi
10603 shlibpath_var=LIBPATH
10604 fi
10605 ;;
10606
10607 amigaos*)
10608 case $host_cpu in
10609 powerpc)
10610 # Since July 2007 AmigaOS4 officially supports .so libraries.
10611 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613 ;;
10614 m68k)
10615 library_names_spec='$libname.ixlibrary $libname.a'
10616 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10617 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'
10618 ;;
10619 esac
10620 ;;
10621
10622 beos*)
10623 library_names_spec='${libname}${shared_ext}'
10624 dynamic_linker="$host_os ld.so"
10625 shlibpath_var=LIBRARY_PATH
10626 ;;
10627
10628 bsdi[45]*)
10629 version_type=linux
10630 need_version=no
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10632 soname_spec='${libname}${release}${shared_ext}$major'
10633 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10634 shlibpath_var=LD_LIBRARY_PATH
10635 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10636 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10637 # the default ld.so.conf also contains /usr/contrib/lib and
10638 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10639 # libtool to hard-code these into programs
10640 ;;
10641
10642 cygwin* | mingw* | pw32* | cegcc*)
10643 version_type=windows
10644 shrext_cmds=".dll"
10645 need_version=no
10646 need_lib_prefix=no
10647
10648 case $GCC,$host_os in
10649 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10650 library_names_spec='$libname.dll.a'
10651 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10652 postinstall_cmds='base_file=`basename \${file}`~
10653 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10654 dldir=$destdir/`dirname \$dlpath`~
10655 test -d \$dldir || mkdir -p \$dldir~
10656 $install_prog $dir/$dlname \$dldir/$dlname~
10657 chmod a+x \$dldir/$dlname~
10658 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10659 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10660 fi'
10661 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10662 dlpath=$dir/\$dldll~
10663 $RM \$dlpath'
10664 shlibpath_overrides_runpath=yes
10665
10666 case $host_os in
10667 cygwin*)
10668 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10669 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10670
10671 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10672 ;;
10673 mingw* | cegcc*)
10674 # MinGW DLLs use traditional 'lib' prefix
10675 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10676 ;;
10677 pw32*)
10678 # pw32 DLLs use 'pw' prefix rather than 'lib'
10679 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10680 ;;
10681 esac
10682 ;;
10683
10684 *)
10685 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10686 ;;
10687 esac
10688 dynamic_linker='Win32 ld.exe'
10689 # FIXME: first we should search . and the directory the executable is in
10690 shlibpath_var=PATH
10691 ;;
10692
10693 darwin* | rhapsody*)
10694 dynamic_linker="$host_os dyld"
10695 version_type=darwin
10696 need_lib_prefix=no
10697 need_version=no
10698 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10699 soname_spec='${libname}${release}${major}$shared_ext'
10700 shlibpath_overrides_runpath=yes
10701 shlibpath_var=DYLD_LIBRARY_PATH
10702 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10703
10704 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10705 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10706 ;;
10707
10708 dgux*)
10709 version_type=linux
10710 need_lib_prefix=no
10711 need_version=no
10712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10713 soname_spec='${libname}${release}${shared_ext}$major'
10714 shlibpath_var=LD_LIBRARY_PATH
10715 ;;
10716
10717 freebsd1*)
10718 dynamic_linker=no
10719 ;;
10720
10721 freebsd* | dragonfly*)
10722 # DragonFly does not have aout. When/if they implement a new
10723 # versioning mechanism, adjust this.
10724 if test -x /usr/bin/objformat; then
10725 objformat=`/usr/bin/objformat`
10726 else
10727 case $host_os in
10728 freebsd[123]*) objformat=aout ;;
10729 *) objformat=elf ;;
10730 esac
10731 fi
10732 version_type=freebsd-$objformat
10733 case $version_type in
10734 freebsd-elf*)
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10736 need_version=no
10737 need_lib_prefix=no
10738 ;;
10739 freebsd-*)
10740 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10741 need_version=yes
10742 ;;
10743 esac
10744 shlibpath_var=LD_LIBRARY_PATH
10745 case $host_os in
10746 freebsd2*)
10747 shlibpath_overrides_runpath=yes
10748 ;;
10749 freebsd3.[01]* | freebsdelf3.[01]*)
10750 shlibpath_overrides_runpath=yes
10751 hardcode_into_libs=yes
10752 ;;
10753 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10754 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10755 shlibpath_overrides_runpath=no
10756 hardcode_into_libs=yes
10757 ;;
10758 *) # from 4.6 on, and DragonFly
10759 shlibpath_overrides_runpath=yes
10760 hardcode_into_libs=yes
10761 ;;
10762 esac
10763 ;;
10764
10765 gnu*)
10766 version_type=linux
10767 need_lib_prefix=no
10768 need_version=no
10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10770 soname_spec='${libname}${release}${shared_ext}$major'
10771 shlibpath_var=LD_LIBRARY_PATH
10772 hardcode_into_libs=yes
10773 ;;
10774
10775 haiku*)
10776 version_type=linux
10777 need_lib_prefix=no
10778 need_version=no
10779 dynamic_linker="$host_os runtime_loader"
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10781 soname_spec='${libname}${release}${shared_ext}$major'
10782 shlibpath_var=LIBRARY_PATH
10783 shlibpath_overrides_runpath=yes
10784 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10785 hardcode_into_libs=yes
10786 ;;
10787
10788 hpux9* | hpux10* | hpux11*)
10789 # Give a soname corresponding to the major version so that dld.sl refuses to
10790 # link against other versions.
10791 version_type=sunos
10792 need_lib_prefix=no
10793 need_version=no
10794 case $host_cpu in
10795 ia64*)
10796 shrext_cmds='.so'
10797 hardcode_into_libs=yes
10798 dynamic_linker="$host_os dld.so"
10799 shlibpath_var=LD_LIBRARY_PATH
10800 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10802 soname_spec='${libname}${release}${shared_ext}$major'
10803 if test "X$HPUX_IA64_MODE" = X32; then
10804 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10805 else
10806 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10807 fi
10808 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10809 ;;
10810 hppa*64*)
10811 shrext_cmds='.sl'
10812 hardcode_into_libs=yes
10813 dynamic_linker="$host_os dld.sl"
10814 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10815 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10817 soname_spec='${libname}${release}${shared_ext}$major'
10818 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10819 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10820 ;;
10821 *)
10822 shrext_cmds='.sl'
10823 dynamic_linker="$host_os dld.sl"
10824 shlibpath_var=SHLIB_PATH
10825 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10827 soname_spec='${libname}${release}${shared_ext}$major'
10828 ;;
10829 esac
10830 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10831 postinstall_cmds='chmod 555 $lib'
10832 # or fails outright, so override atomically:
10833 install_override_mode=555
10834 ;;
10835
10836 interix[3-9]*)
10837 version_type=linux
10838 need_lib_prefix=no
10839 need_version=no
10840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10841 soname_spec='${libname}${release}${shared_ext}$major'
10842 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10843 shlibpath_var=LD_LIBRARY_PATH
10844 shlibpath_overrides_runpath=no
10845 hardcode_into_libs=yes
10846 ;;
10847
10848 irix5* | irix6* | nonstopux*)
10849 case $host_os in
10850 nonstopux*) version_type=nonstopux ;;
10851 *)
10852 if test "$lt_cv_prog_gnu_ld" = yes; then
10853 version_type=linux
10854 else
10855 version_type=irix
10856 fi ;;
10857 esac
10858 need_lib_prefix=no
10859 need_version=no
10860 soname_spec='${libname}${release}${shared_ext}$major'
10861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10862 case $host_os in
10863 irix5* | nonstopux*)
10864 libsuff= shlibsuff=
10865 ;;
10866 *)
10867 case $LD in # libtool.m4 will add one of these switches to LD
10868 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10869 libsuff= shlibsuff= libmagic=32-bit;;
10870 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10871 libsuff=32 shlibsuff=N32 libmagic=N32;;
10872 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10873 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10874 *) libsuff= shlibsuff= libmagic=never-match;;
10875 esac
10876 ;;
10877 esac
10878 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10879 shlibpath_overrides_runpath=no
10880 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10881 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10882 hardcode_into_libs=yes
10883 ;;
10884
10885 # No shared lib support for Linux oldld, aout, or coff.
10886 linux*oldld* | linux*aout* | linux*coff*)
10887 dynamic_linker=no
10888 ;;
10889
10890 # This must be Linux ELF.
10891 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10892 version_type=linux
10893 need_lib_prefix=no
10894 need_version=no
10895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10896 soname_spec='${libname}${release}${shared_ext}$major'
10897 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10898 shlibpath_var=LD_LIBRARY_PATH
10899 shlibpath_overrides_runpath=no
10900
10901 # Some binutils ld are patched to set DT_RUNPATH
10902 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10903 $as_echo_n "(cached) " >&6
10904 else
10905 lt_cv_shlibpath_overrides_runpath=no
10906 save_LDFLAGS=$LDFLAGS
10907 save_libdir=$libdir
10908 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10909 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911 /* end confdefs.h. */
10912
10913 int
10914 main ()
10915 {
10916
10917 ;
10918 return 0;
10919 }
10920 _ACEOF
10921 if ac_fn_c_try_link "$LINENO"; then :
10922 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10923 lt_cv_shlibpath_overrides_runpath=yes
10924 fi
10925 fi
10926 rm -f core conftest.err conftest.$ac_objext \
10927 conftest$ac_exeext conftest.$ac_ext
10928 LDFLAGS=$save_LDFLAGS
10929 libdir=$save_libdir
10930
10931 fi
10932
10933 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10934
10935 # This implies no fast_install, which is unacceptable.
10936 # Some rework will be needed to allow for fast_install
10937 # before this can be enabled.
10938 hardcode_into_libs=yes
10939
10940 # Append ld.so.conf contents to the search path
10941 if test -f /etc/ld.so.conf; then
10942 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' ' '`
10943 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10944 fi
10945
10946 # We used to test for /lib/ld.so.1 and disable shared libraries on
10947 # powerpc, because MkLinux only supported shared libraries with the
10948 # GNU dynamic linker. Since this was broken with cross compilers,
10949 # most powerpc-linux boxes support dynamic linking these days and
10950 # people can always --disable-shared, the test was removed, and we
10951 # assume the GNU/Linux dynamic linker is in use.
10952 dynamic_linker='GNU/Linux ld.so'
10953 ;;
10954
10955 netbsd*)
10956 version_type=sunos
10957 need_lib_prefix=no
10958 need_version=no
10959 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10962 dynamic_linker='NetBSD (a.out) ld.so'
10963 else
10964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10965 soname_spec='${libname}${release}${shared_ext}$major'
10966 dynamic_linker='NetBSD ld.elf_so'
10967 fi
10968 shlibpath_var=LD_LIBRARY_PATH
10969 shlibpath_overrides_runpath=yes
10970 hardcode_into_libs=yes
10971 ;;
10972
10973 newsos6)
10974 version_type=linux
10975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10976 shlibpath_var=LD_LIBRARY_PATH
10977 shlibpath_overrides_runpath=yes
10978 ;;
10979
10980 *nto* | *qnx*)
10981 version_type=qnx
10982 need_lib_prefix=no
10983 need_version=no
10984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10985 soname_spec='${libname}${release}${shared_ext}$major'
10986 shlibpath_var=LD_LIBRARY_PATH
10987 shlibpath_overrides_runpath=no
10988 hardcode_into_libs=yes
10989 dynamic_linker='ldqnx.so'
10990 ;;
10991
10992 openbsd*)
10993 version_type=sunos
10994 sys_lib_dlsearch_path_spec="/usr/lib"
10995 need_lib_prefix=no
10996 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10997 case $host_os in
10998 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10999 *) need_version=no ;;
11000 esac
11001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11003 shlibpath_var=LD_LIBRARY_PATH
11004 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11005 case $host_os in
11006 openbsd2.[89] | openbsd2.[89].*)
11007 shlibpath_overrides_runpath=no
11008 ;;
11009 *)
11010 shlibpath_overrides_runpath=yes
11011 ;;
11012 esac
11013 else
11014 shlibpath_overrides_runpath=yes
11015 fi
11016 ;;
11017
11018 os2*)
11019 libname_spec='$name'
11020 shrext_cmds=".dll"
11021 need_lib_prefix=no
11022 library_names_spec='$libname${shared_ext} $libname.a'
11023 dynamic_linker='OS/2 ld.exe'
11024 shlibpath_var=LIBPATH
11025 ;;
11026
11027 osf3* | osf4* | osf5*)
11028 version_type=osf
11029 need_lib_prefix=no
11030 need_version=no
11031 soname_spec='${libname}${release}${shared_ext}$major'
11032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11033 shlibpath_var=LD_LIBRARY_PATH
11034 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11035 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11036 ;;
11037
11038 rdos*)
11039 dynamic_linker=no
11040 ;;
11041
11042 solaris*)
11043 version_type=linux
11044 need_lib_prefix=no
11045 need_version=no
11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047 soname_spec='${libname}${release}${shared_ext}$major'
11048 shlibpath_var=LD_LIBRARY_PATH
11049 shlibpath_overrides_runpath=yes
11050 hardcode_into_libs=yes
11051 # ldd complains unless libraries are executable
11052 postinstall_cmds='chmod +x $lib'
11053 ;;
11054
11055 sunos4*)
11056 version_type=sunos
11057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11058 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11059 shlibpath_var=LD_LIBRARY_PATH
11060 shlibpath_overrides_runpath=yes
11061 if test "$with_gnu_ld" = yes; then
11062 need_lib_prefix=no
11063 fi
11064 need_version=yes
11065 ;;
11066
11067 sysv4 | sysv4.3*)
11068 version_type=linux
11069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11070 soname_spec='${libname}${release}${shared_ext}$major'
11071 shlibpath_var=LD_LIBRARY_PATH
11072 case $host_vendor in
11073 sni)
11074 shlibpath_overrides_runpath=no
11075 need_lib_prefix=no
11076 runpath_var=LD_RUN_PATH
11077 ;;
11078 siemens)
11079 need_lib_prefix=no
11080 ;;
11081 motorola)
11082 need_lib_prefix=no
11083 need_version=no
11084 shlibpath_overrides_runpath=no
11085 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11086 ;;
11087 esac
11088 ;;
11089
11090 sysv4*MP*)
11091 if test -d /usr/nec ;then
11092 version_type=linux
11093 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11094 soname_spec='$libname${shared_ext}.$major'
11095 shlibpath_var=LD_LIBRARY_PATH
11096 fi
11097 ;;
11098
11099 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11100 version_type=freebsd-elf
11101 need_lib_prefix=no
11102 need_version=no
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11104 soname_spec='${libname}${release}${shared_ext}$major'
11105 shlibpath_var=LD_LIBRARY_PATH
11106 shlibpath_overrides_runpath=yes
11107 hardcode_into_libs=yes
11108 if test "$with_gnu_ld" = yes; then
11109 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11110 else
11111 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11112 case $host_os in
11113 sco3.2v5*)
11114 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11115 ;;
11116 esac
11117 fi
11118 sys_lib_dlsearch_path_spec='/usr/lib'
11119 ;;
11120
11121 tpf*)
11122 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11123 version_type=linux
11124 need_lib_prefix=no
11125 need_version=no
11126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11127 shlibpath_var=LD_LIBRARY_PATH
11128 shlibpath_overrides_runpath=no
11129 hardcode_into_libs=yes
11130 ;;
11131
11132 uts4*)
11133 version_type=linux
11134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11135 soname_spec='${libname}${release}${shared_ext}$major'
11136 shlibpath_var=LD_LIBRARY_PATH
11137 ;;
11138
11139 *)
11140 dynamic_linker=no
11141 ;;
11142 esac
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11144 $as_echo "$dynamic_linker" >&6; }
11145 test "$dynamic_linker" = no && can_build_shared=no
11146
11147 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11148 if test "$GCC" = yes; then
11149 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11150 fi
11151
11152 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11153 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11154 fi
11155 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11156 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11157 fi
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11251 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11252 hardcode_action=
11253 if test -n "$hardcode_libdir_flag_spec" ||
11254 test -n "$runpath_var" ||
11255 test "X$hardcode_automatic" = "Xyes" ; then
11256
11257 # We can hardcode non-existent directories.
11258 if test "$hardcode_direct" != no &&
11259 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11260 # have to relink, otherwise we might link with an installed library
11261 # when we should be linking with a yet-to-be-installed one
11262 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11263 test "$hardcode_minus_L" != no; then
11264 # Linking always hardcodes the temporary library directory.
11265 hardcode_action=relink
11266 else
11267 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11268 hardcode_action=immediate
11269 fi
11270 else
11271 # We cannot hardcode anything, or else we can only hardcode existing
11272 # directories.
11273 hardcode_action=unsupported
11274 fi
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11276 $as_echo "$hardcode_action" >&6; }
11277
11278 if test "$hardcode_action" = relink ||
11279 test "$inherit_rpath" = yes; then
11280 # Fast installation is not supported
11281 enable_fast_install=no
11282 elif test "$shlibpath_overrides_runpath" = yes ||
11283 test "$enable_shared" = no; then
11284 # Fast installation is not necessary
11285 enable_fast_install=needless
11286 fi
11287
11288
11289
11290
11291
11292
11293 if test "x$enable_dlopen" != xyes; then
11294 enable_dlopen=unknown
11295 enable_dlopen_self=unknown
11296 enable_dlopen_self_static=unknown
11297 else
11298 lt_cv_dlopen=no
11299 lt_cv_dlopen_libs=
11300
11301 case $host_os in
11302 beos*)
11303 lt_cv_dlopen="load_add_on"
11304 lt_cv_dlopen_libs=
11305 lt_cv_dlopen_self=yes
11306 ;;
11307
11308 mingw* | pw32* | cegcc*)
11309 lt_cv_dlopen="LoadLibrary"
11310 lt_cv_dlopen_libs=
11311 ;;
11312
11313 cygwin*)
11314 lt_cv_dlopen="dlopen"
11315 lt_cv_dlopen_libs=
11316 ;;
11317
11318 darwin*)
11319 # if libdl is installed we need to link against it
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11321 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11322 if ${ac_cv_lib_dl_dlopen+:} false; then :
11323 $as_echo_n "(cached) " >&6
11324 else
11325 ac_check_lib_save_LIBS=$LIBS
11326 LIBS="-ldl $LIBS"
11327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11328 /* end confdefs.h. */
11329
11330 /* Override any GCC internal prototype to avoid an error.
11331 Use char because int might match the return type of a GCC
11332 builtin and then its argument prototype would still apply. */
11333 #ifdef __cplusplus
11334 extern "C"
11335 #endif
11336 char dlopen ();
11337 int
11338 main ()
11339 {
11340 return dlopen ();
11341 ;
11342 return 0;
11343 }
11344 _ACEOF
11345 if ac_fn_c_try_link "$LINENO"; then :
11346 ac_cv_lib_dl_dlopen=yes
11347 else
11348 ac_cv_lib_dl_dlopen=no
11349 fi
11350 rm -f core conftest.err conftest.$ac_objext \
11351 conftest$ac_exeext conftest.$ac_ext
11352 LIBS=$ac_check_lib_save_LIBS
11353 fi
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11355 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11356 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11357 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11358 else
11359
11360 lt_cv_dlopen="dyld"
11361 lt_cv_dlopen_libs=
11362 lt_cv_dlopen_self=yes
11363
11364 fi
11365
11366 ;;
11367
11368 *)
11369 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11370 if test "x$ac_cv_func_shl_load" = xyes; then :
11371 lt_cv_dlopen="shl_load"
11372 else
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11374 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11375 if ${ac_cv_lib_dld_shl_load+:} false; then :
11376 $as_echo_n "(cached) " >&6
11377 else
11378 ac_check_lib_save_LIBS=$LIBS
11379 LIBS="-ldld $LIBS"
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11382
11383 /* Override any GCC internal prototype to avoid an error.
11384 Use char because int might match the return type of a GCC
11385 builtin and then its argument prototype would still apply. */
11386 #ifdef __cplusplus
11387 extern "C"
11388 #endif
11389 char shl_load ();
11390 int
11391 main ()
11392 {
11393 return shl_load ();
11394 ;
11395 return 0;
11396 }
11397 _ACEOF
11398 if ac_fn_c_try_link "$LINENO"; then :
11399 ac_cv_lib_dld_shl_load=yes
11400 else
11401 ac_cv_lib_dld_shl_load=no
11402 fi
11403 rm -f core conftest.err conftest.$ac_objext \
11404 conftest$ac_exeext conftest.$ac_ext
11405 LIBS=$ac_check_lib_save_LIBS
11406 fi
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11408 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11409 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11410 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11411 else
11412 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11413 if test "x$ac_cv_func_dlopen" = xyes; then :
11414 lt_cv_dlopen="dlopen"
11415 else
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11417 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11418 if ${ac_cv_lib_dl_dlopen+:} false; then :
11419 $as_echo_n "(cached) " >&6
11420 else
11421 ac_check_lib_save_LIBS=$LIBS
11422 LIBS="-ldl $LIBS"
11423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11424 /* end confdefs.h. */
11425
11426 /* Override any GCC internal prototype to avoid an error.
11427 Use char because int might match the return type of a GCC
11428 builtin and then its argument prototype would still apply. */
11429 #ifdef __cplusplus
11430 extern "C"
11431 #endif
11432 char dlopen ();
11433 int
11434 main ()
11435 {
11436 return dlopen ();
11437 ;
11438 return 0;
11439 }
11440 _ACEOF
11441 if ac_fn_c_try_link "$LINENO"; then :
11442 ac_cv_lib_dl_dlopen=yes
11443 else
11444 ac_cv_lib_dl_dlopen=no
11445 fi
11446 rm -f core conftest.err conftest.$ac_objext \
11447 conftest$ac_exeext conftest.$ac_ext
11448 LIBS=$ac_check_lib_save_LIBS
11449 fi
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11451 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11452 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11453 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11454 else
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11456 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11457 if ${ac_cv_lib_svld_dlopen+:} false; then :
11458 $as_echo_n "(cached) " >&6
11459 else
11460 ac_check_lib_save_LIBS=$LIBS
11461 LIBS="-lsvld $LIBS"
11462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11464
11465 /* Override any GCC internal prototype to avoid an error.
11466 Use char because int might match the return type of a GCC
11467 builtin and then its argument prototype would still apply. */
11468 #ifdef __cplusplus
11469 extern "C"
11470 #endif
11471 char dlopen ();
11472 int
11473 main ()
11474 {
11475 return dlopen ();
11476 ;
11477 return 0;
11478 }
11479 _ACEOF
11480 if ac_fn_c_try_link "$LINENO"; then :
11481 ac_cv_lib_svld_dlopen=yes
11482 else
11483 ac_cv_lib_svld_dlopen=no
11484 fi
11485 rm -f core conftest.err conftest.$ac_objext \
11486 conftest$ac_exeext conftest.$ac_ext
11487 LIBS=$ac_check_lib_save_LIBS
11488 fi
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11490 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11491 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11492 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11493 else
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11495 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11496 if ${ac_cv_lib_dld_dld_link+:} false; then :
11497 $as_echo_n "(cached) " >&6
11498 else
11499 ac_check_lib_save_LIBS=$LIBS
11500 LIBS="-ldld $LIBS"
11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502 /* end confdefs.h. */
11503
11504 /* Override any GCC internal prototype to avoid an error.
11505 Use char because int might match the return type of a GCC
11506 builtin and then its argument prototype would still apply. */
11507 #ifdef __cplusplus
11508 extern "C"
11509 #endif
11510 char dld_link ();
11511 int
11512 main ()
11513 {
11514 return dld_link ();
11515 ;
11516 return 0;
11517 }
11518 _ACEOF
11519 if ac_fn_c_try_link "$LINENO"; then :
11520 ac_cv_lib_dld_dld_link=yes
11521 else
11522 ac_cv_lib_dld_dld_link=no
11523 fi
11524 rm -f core conftest.err conftest.$ac_objext \
11525 conftest$ac_exeext conftest.$ac_ext
11526 LIBS=$ac_check_lib_save_LIBS
11527 fi
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11529 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11530 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11531 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11532 fi
11533
11534
11535 fi
11536
11537
11538 fi
11539
11540
11541 fi
11542
11543
11544 fi
11545
11546
11547 fi
11548
11549 ;;
11550 esac
11551
11552 if test "x$lt_cv_dlopen" != xno; then
11553 enable_dlopen=yes
11554 else
11555 enable_dlopen=no
11556 fi
11557
11558 case $lt_cv_dlopen in
11559 dlopen)
11560 save_CPPFLAGS="$CPPFLAGS"
11561 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11562
11563 save_LDFLAGS="$LDFLAGS"
11564 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11565
11566 save_LIBS="$LIBS"
11567 LIBS="$lt_cv_dlopen_libs $LIBS"
11568
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11570 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11571 if ${lt_cv_dlopen_self+:} false; then :
11572 $as_echo_n "(cached) " >&6
11573 else
11574 if test "$cross_compiling" = yes; then :
11575 lt_cv_dlopen_self=cross
11576 else
11577 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11578 lt_status=$lt_dlunknown
11579 cat > conftest.$ac_ext <<_LT_EOF
11580 #line $LINENO "configure"
11581 #include "confdefs.h"
11582
11583 #if HAVE_DLFCN_H
11584 #include <dlfcn.h>
11585 #endif
11586
11587 #include <stdio.h>
11588
11589 #ifdef RTLD_GLOBAL
11590 # define LT_DLGLOBAL RTLD_GLOBAL
11591 #else
11592 # ifdef DL_GLOBAL
11593 # define LT_DLGLOBAL DL_GLOBAL
11594 # else
11595 # define LT_DLGLOBAL 0
11596 # endif
11597 #endif
11598
11599 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11600 find out it does not work in some platform. */
11601 #ifndef LT_DLLAZY_OR_NOW
11602 # ifdef RTLD_LAZY
11603 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11604 # else
11605 # ifdef DL_LAZY
11606 # define LT_DLLAZY_OR_NOW DL_LAZY
11607 # else
11608 # ifdef RTLD_NOW
11609 # define LT_DLLAZY_OR_NOW RTLD_NOW
11610 # else
11611 # ifdef DL_NOW
11612 # define LT_DLLAZY_OR_NOW DL_NOW
11613 # else
11614 # define LT_DLLAZY_OR_NOW 0
11615 # endif
11616 # endif
11617 # endif
11618 # endif
11619 #endif
11620
11621 /* When -fvisbility=hidden is used, assume the code has been annotated
11622 correspondingly for the symbols needed. */
11623 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11624 void fnord () __attribute__((visibility("default")));
11625 #endif
11626
11627 void fnord () { int i=42; }
11628 int main ()
11629 {
11630 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11631 int status = $lt_dlunknown;
11632
11633 if (self)
11634 {
11635 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11636 else
11637 {
11638 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11639 else puts (dlerror ());
11640 }
11641 /* dlclose (self); */
11642 }
11643 else
11644 puts (dlerror ());
11645
11646 return status;
11647 }
11648 _LT_EOF
11649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11650 (eval $ac_link) 2>&5
11651 ac_status=$?
11652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11653 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11654 (./conftest; exit; ) >&5 2>/dev/null
11655 lt_status=$?
11656 case x$lt_status in
11657 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11658 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11659 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11660 esac
11661 else :
11662 # compilation failed
11663 lt_cv_dlopen_self=no
11664 fi
11665 fi
11666 rm -fr conftest*
11667
11668
11669 fi
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11671 $as_echo "$lt_cv_dlopen_self" >&6; }
11672
11673 if test "x$lt_cv_dlopen_self" = xyes; then
11674 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11676 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11677 if ${lt_cv_dlopen_self_static+:} false; then :
11678 $as_echo_n "(cached) " >&6
11679 else
11680 if test "$cross_compiling" = yes; then :
11681 lt_cv_dlopen_self_static=cross
11682 else
11683 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11684 lt_status=$lt_dlunknown
11685 cat > conftest.$ac_ext <<_LT_EOF
11686 #line $LINENO "configure"
11687 #include "confdefs.h"
11688
11689 #if HAVE_DLFCN_H
11690 #include <dlfcn.h>
11691 #endif
11692
11693 #include <stdio.h>
11694
11695 #ifdef RTLD_GLOBAL
11696 # define LT_DLGLOBAL RTLD_GLOBAL
11697 #else
11698 # ifdef DL_GLOBAL
11699 # define LT_DLGLOBAL DL_GLOBAL
11700 # else
11701 # define LT_DLGLOBAL 0
11702 # endif
11703 #endif
11704
11705 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11706 find out it does not work in some platform. */
11707 #ifndef LT_DLLAZY_OR_NOW
11708 # ifdef RTLD_LAZY
11709 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11710 # else
11711 # ifdef DL_LAZY
11712 # define LT_DLLAZY_OR_NOW DL_LAZY
11713 # else
11714 # ifdef RTLD_NOW
11715 # define LT_DLLAZY_OR_NOW RTLD_NOW
11716 # else
11717 # ifdef DL_NOW
11718 # define LT_DLLAZY_OR_NOW DL_NOW
11719 # else
11720 # define LT_DLLAZY_OR_NOW 0
11721 # endif
11722 # endif
11723 # endif
11724 # endif
11725 #endif
11726
11727 /* When -fvisbility=hidden is used, assume the code has been annotated
11728 correspondingly for the symbols needed. */
11729 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11730 void fnord () __attribute__((visibility("default")));
11731 #endif
11732
11733 void fnord () { int i=42; }
11734 int main ()
11735 {
11736 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11737 int status = $lt_dlunknown;
11738
11739 if (self)
11740 {
11741 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11742 else
11743 {
11744 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11745 else puts (dlerror ());
11746 }
11747 /* dlclose (self); */
11748 }
11749 else
11750 puts (dlerror ());
11751
11752 return status;
11753 }
11754 _LT_EOF
11755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11756 (eval $ac_link) 2>&5
11757 ac_status=$?
11758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11759 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11760 (./conftest; exit; ) >&5 2>/dev/null
11761 lt_status=$?
11762 case x$lt_status in
11763 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11764 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11765 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11766 esac
11767 else :
11768 # compilation failed
11769 lt_cv_dlopen_self_static=no
11770 fi
11771 fi
11772 rm -fr conftest*
11773
11774
11775 fi
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11777 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11778 fi
11779
11780 CPPFLAGS="$save_CPPFLAGS"
11781 LDFLAGS="$save_LDFLAGS"
11782 LIBS="$save_LIBS"
11783 ;;
11784 esac
11785
11786 case $lt_cv_dlopen_self in
11787 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11788 *) enable_dlopen_self=unknown ;;
11789 esac
11790
11791 case $lt_cv_dlopen_self_static in
11792 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11793 *) enable_dlopen_self_static=unknown ;;
11794 esac
11795 fi
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813 striplib=
11814 old_striplib=
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11816 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11817 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11818 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11819 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11821 $as_echo "yes" >&6; }
11822 else
11823 # FIXME - insert some real tests, host_os isn't really good enough
11824 case $host_os in
11825 darwin*)
11826 if test -n "$STRIP" ; then
11827 striplib="$STRIP -x"
11828 old_striplib="$STRIP -S"
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11830 $as_echo "yes" >&6; }
11831 else
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11833 $as_echo "no" >&6; }
11834 fi
11835 ;;
11836 *)
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838 $as_echo "no" >&6; }
11839 ;;
11840 esac
11841 fi
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854 # Report which library types will actually be built
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11856 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11858 $as_echo "$can_build_shared" >&6; }
11859
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11861 $as_echo_n "checking whether to build shared libraries... " >&6; }
11862 test "$can_build_shared" = "no" && enable_shared=no
11863
11864 # On AIX, shared libraries and static libraries use the same namespace, and
11865 # are all built from PIC.
11866 case $host_os in
11867 aix3*)
11868 test "$enable_shared" = yes && enable_static=no
11869 if test -n "$RANLIB"; then
11870 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11871 postinstall_cmds='$RANLIB $lib'
11872 fi
11873 ;;
11874
11875 aix[4-9]*)
11876 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11877 test "$enable_shared" = yes && enable_static=no
11878 fi
11879 ;;
11880 esac
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11882 $as_echo "$enable_shared" >&6; }
11883
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11885 $as_echo_n "checking whether to build static libraries... " >&6; }
11886 # Make sure either enable_shared or enable_static is yes.
11887 test "$enable_shared" = yes || enable_static=yes
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11889 $as_echo "$enable_static" >&6; }
11890
11891
11892
11893
11894 fi
11895 ac_ext=c
11896 ac_cpp='$CPP $CPPFLAGS'
11897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11900
11901 CC="$lt_save_CC"
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915 ac_config_commands="$ac_config_commands libtool"
11916
11917
11918
11919
11920 # Only expand once:
11921
11922
11923 if test "x$CC" != xcc; then
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11925 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11926 else
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11928 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11929 fi
11930 set dummy $CC; ac_cc=`$as_echo "$2" |
11931 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11932 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11933 $as_echo_n "(cached) " >&6
11934 else
11935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11936 /* end confdefs.h. */
11937
11938 int
11939 main ()
11940 {
11941
11942 ;
11943 return 0;
11944 }
11945 _ACEOF
11946 # Make sure it works both with $CC and with simple cc.
11947 # We do the test twice because some compilers refuse to overwrite an
11948 # existing .o file with -o, though they will create one.
11949 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11950 rm -f conftest2.*
11951 if { { case "(($ac_try" in
11952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953 *) ac_try_echo=$ac_try;;
11954 esac
11955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11956 $as_echo "$ac_try_echo"; } >&5
11957 (eval "$ac_try") 2>&5
11958 ac_status=$?
11959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11960 test $ac_status = 0; } &&
11961 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11963 *) ac_try_echo=$ac_try;;
11964 esac
11965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11966 $as_echo "$ac_try_echo"; } >&5
11967 (eval "$ac_try") 2>&5
11968 ac_status=$?
11969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11970 test $ac_status = 0; };
11971 then
11972 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11973 if test "x$CC" != xcc; then
11974 # Test first that cc exists at all.
11975 if { ac_try='cc -c conftest.$ac_ext >&5'
11976 { { case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11979 esac
11980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11981 $as_echo "$ac_try_echo"; } >&5
11982 (eval "$ac_try") 2>&5
11983 ac_status=$?
11984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11985 test $ac_status = 0; }; }; then
11986 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11987 rm -f conftest2.*
11988 if { { case "(($ac_try" in
11989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990 *) ac_try_echo=$ac_try;;
11991 esac
11992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11993 $as_echo "$ac_try_echo"; } >&5
11994 (eval "$ac_try") 2>&5
11995 ac_status=$?
11996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11997 test $ac_status = 0; } &&
11998 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12001 esac
12002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12003 $as_echo "$ac_try_echo"; } >&5
12004 (eval "$ac_try") 2>&5
12005 ac_status=$?
12006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12007 test $ac_status = 0; };
12008 then
12009 # cc works too.
12010 :
12011 else
12012 # cc exists but doesn't like -o.
12013 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12014 fi
12015 fi
12016 fi
12017 else
12018 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12019 fi
12020 rm -f core conftest*
12021
12022 fi
12023 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12025 $as_echo "yes" >&6; }
12026 else
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028 $as_echo "no" >&6; }
12029
12030 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12031
12032 fi
12033
12034 # FIXME: we rely on the cache variable name because
12035 # there is no other way.
12036 set dummy $CC
12037 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12038 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12039 if test "$am_t" != yes; then
12040 # Losing compiler, so override with the script.
12041 # FIXME: It is wrong to rewrite CC.
12042 # But if we don't then we get into trouble of one sort or another.
12043 # A longer-term fix would be to have automake use am__CC in this case,
12044 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12045 CC="$am_aux_dir/compile $CC"
12046 fi
12047
12048
12049
12050 if test x"$CC_FOR_BUILD" = x; then
12051 if test x"$cross_compiling" = xyes; then
12052 for ac_prog in gcc cc
12053 do
12054 # Extract the first word of "$ac_prog", so it can be a program name with args.
12055 set dummy $ac_prog; ac_word=$2
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12057 $as_echo_n "checking for $ac_word... " >&6; }
12058 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
12059 $as_echo_n "(cached) " >&6
12060 else
12061 if test -n "$CC_FOR_BUILD"; then
12062 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
12063 else
12064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12065 for as_dir in $PATH
12066 do
12067 IFS=$as_save_IFS
12068 test -z "$as_dir" && as_dir=.
12069 for ac_exec_ext in '' $ac_executable_extensions; do
12070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12071 ac_cv_prog_CC_FOR_BUILD="$ac_prog"
12072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12073 break 2
12074 fi
12075 done
12076 done
12077 IFS=$as_save_IFS
12078
12079 fi
12080 fi
12081 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
12082 if test -n "$CC_FOR_BUILD"; then
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
12084 $as_echo "$CC_FOR_BUILD" >&6; }
12085 else
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12087 $as_echo "no" >&6; }
12088 fi
12089
12090
12091 test -n "$CC_FOR_BUILD" && break
12092 done
12093
12094 else
12095 CC_FOR_BUILD="$CC"
12096 fi
12097 fi
12098
12099 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
12100
12101 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
12102
12103
12104
12105 pkg_failed=no
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XT" >&5
12107 $as_echo_n "checking for XT... " >&6; }
12108
12109 if test -n "$XT_CFLAGS"; then
12110 pkg_cv_XT_CFLAGS="$XT_CFLAGS"
12111 elif test -n "$PKG_CONFIG"; then
12112 if test -n "$PKG_CONFIG" && \
12113 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice x11 xproto kbproto\""; } >&5
12114 ($PKG_CONFIG --exists --print-errors "sm ice x11 xproto kbproto") 2>&5
12115 ac_status=$?
12116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12117 test $ac_status = 0; }; then
12118 pkg_cv_XT_CFLAGS=`$PKG_CONFIG --cflags "sm ice x11 xproto kbproto" 2>/dev/null`
12119 else
12120 pkg_failed=yes
12121 fi
12122 else
12123 pkg_failed=untried
12124 fi
12125 if test -n "$XT_LIBS"; then
12126 pkg_cv_XT_LIBS="$XT_LIBS"
12127 elif test -n "$PKG_CONFIG"; then
12128 if test -n "$PKG_CONFIG" && \
12129 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice x11 xproto kbproto\""; } >&5
12130 ($PKG_CONFIG --exists --print-errors "sm ice x11 xproto kbproto") 2>&5
12131 ac_status=$?
12132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12133 test $ac_status = 0; }; then
12134 pkg_cv_XT_LIBS=`$PKG_CONFIG --libs "sm ice x11 xproto kbproto" 2>/dev/null`
12135 else
12136 pkg_failed=yes
12137 fi
12138 else
12139 pkg_failed=untried
12140 fi
12141
12142
12143
12144 if test $pkg_failed = yes; then
12145
12146 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12147 _pkg_short_errors_supported=yes
12148 else
12149 _pkg_short_errors_supported=no
12150 fi
12151 if test $_pkg_short_errors_supported = yes; then
12152 XT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sm ice x11 xproto kbproto" 2>&1`
12153 else
12154 XT_PKG_ERRORS=`$PKG_CONFIG --print-errors "sm ice x11 xproto kbproto" 2>&1`
12155 fi
12156 # Put the nasty error message in config.log where it belongs
12157 echo "$XT_PKG_ERRORS" >&5
12158
12159 as_fn_error $? "Package requirements (sm ice x11 xproto kbproto) were not met:
12160
12161 $XT_PKG_ERRORS
12162
12163 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12164 installed software in a non-standard prefix.
12165
12166 Alternatively, you may set the environment variables XT_CFLAGS
12167 and XT_LIBS to avoid the need to call pkg-config.
12168 See the pkg-config man page for more details.
12169 " "$LINENO" 5
12170 elif test $pkg_failed = untried; then
12171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12173 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12174 is in your PATH or set the PKG_CONFIG environment variable to the full
12175 path to pkg-config.
12176
12177 Alternatively, you may set the environment variables XT_CFLAGS
12178 and XT_LIBS to avoid the need to call pkg-config.
12179 See the pkg-config man page for more details.
12180
12181 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12182 See \`config.log' for more details" "$LINENO" 5; }
12183 else
12184 XT_CFLAGS=$pkg_cv_XT_CFLAGS
12185 XT_LIBS=$pkg_cv_XT_LIBS
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12187 $as_echo "yes" >&6; }
12188 :
12189 fi
12190
12191 # Needed for including Xalloca.h
12192 ac_fn_c_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
12193 if test "x$ac_cv_header_alloca_h" = xyes; then :
12194
12195 $as_echo "#define INCLUDE_ALLOCA_H 1" >>confdefs.h
12196
12197 fi
12198
12199
12200
12201 # Map function checks to old Imake #defines
12202 case $host_os in
12203 # darwin has poll() but can't be used to poll character devices (atleast through SnowLeopard)
12204 darwin*) ;;
12205 *)
12206 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
12207 if test "x$ac_cv_func_poll" = xyes; then :
12208
12209 $as_echo "#define USE_POLL 1" >>confdefs.h
12210
12211 fi
12212
12213 ;;
12214 esac
12215 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
12216 if test "x$ac_cv_func_snprintf" = xyes; then :
12217
12218 $as_echo "#define USE_SNPRINTF 1" >>confdefs.h
12219
12220 fi
12221
12222
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
12224 $as_echo_n "checking for main in -lws2_32... " >&6; }
12225 if ${ac_cv_lib_ws2_32_main+:} false; then :
12226 $as_echo_n "(cached) " >&6
12227 else
12228 ac_check_lib_save_LIBS=$LIBS
12229 LIBS="-lws2_32 $LIBS"
12230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h. */
12232
12233
12234 int
12235 main ()
12236 {
12237 return main ();
12238 ;
12239 return 0;
12240 }
12241 _ACEOF
12242 if ac_fn_c_try_link "$LINENO"; then :
12243 ac_cv_lib_ws2_32_main=yes
12244 else
12245 ac_cv_lib_ws2_32_main=no
12246 fi
12247 rm -f core conftest.err conftest.$ac_objext \
12248 conftest$ac_exeext conftest.$ac_ext
12249 LIBS=$ac_check_lib_save_LIBS
12250 fi
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
12252 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
12253 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
12254 cat >>confdefs.h <<_ACEOF
12255 #define HAVE_LIBWS2_32 1
12256 _ACEOF
12257
12258 LIBS="-lws2_32 $LIBS"
12259
12260 fi
12261 ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
12262
12263
12264 # Options
12265 # Check whether --enable-xkb was given.
12266 if test "${enable_xkb+set}" = set; then :
12267 enableval=$enable_xkb; XKB="$enableval"
12268 else
12269 XKB="yes"
12270 fi
12271
12272 if test "x$XKB" = "xyes" ; then
12273
12274 $as_echo "#define XKB 1" >>confdefs.h
12275
12276 fi
12277
12278 # Replaces XFileSearchPathDefault from Imake configs
12279 XFILESEARCHPATHDEFAULT='$(sysconfdir)/X11/%L/%T/%N%C%S:$(sysconfdir)/X11/%l/%T/%N%C%S:$(sysconfdir)/X11/%T/%N%C%S:$(sysconfdir)/X11/%L/%T/%N%S:$(sysconfdir)/X11/%l/%T/%N%S:$(sysconfdir)/X11/%T/%N%S:$(datadir)/X11/%L/%T/%N%C%S:$(datadir)/X11/%l/%T/%N%C%S:$(datadir)/X11/%T/%N%C%S:$(datadir)/X11/%L/%T/%N%S:$(datadir)/X11/%l/%T/%N%S:$(datadir)/X11/%T/%N%S:$(libdir)/X11/%L/%T/%N%C%S:$(libdir)/X11/%l/%T/%N%C%S:$(libdir)/X11/%T/%N%C%S:$(libdir)/X11/%L/%T/%N%S:$(libdir)/X11/%l/%T/%N%S:$(libdir)/X11/%T/%N%S'
12280
12281
12282 # Check whether --with-xfile-search-path was given.
12283 if test "${with_xfile_search_path+set}" = set; then :
12284 withval=$with_xfile_search_path; XFILESEARCHPATHDEFAULT="$withval"
12285 fi
12286
12287
12288
12289
12290 # Check whether --with-appdefaultdir was given.
12291 if test "${with_appdefaultdir+set}" = set; then :
12292 withval=$with_appdefaultdir; appdefaultdir="$withval"
12293 else
12294 appdefaultdir=${datadir}/X11/app-defaults
12295 fi
12296
12297
12298 prefix_NONE=
12299 exec_prefix_NONE=
12300 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
12301 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
12302 eval ax_define_dir="\"$appdefaultdir\""
12303 eval ax_define_dir="\"$ax_define_dir\""
12304 appdefaultdir="$ax_define_dir"
12305
12306
12307 cat >>confdefs.h <<_ACEOF
12308 #define appdefaultdir "$ax_define_dir"
12309 _ACEOF
12310
12311 test "$prefix_NONE" && prefix=NONE
12312 test "$exec_prefix_NONE" && exec_prefix=NONE
12313
12314
12315 # Replacement for Imake ToolkitStringsABIOptions, controls string tables
12316 # generated by util/string.list in StringDefs.h & Shell.h
12317 case $host_os in
12318 solaris*)
12319 # Solaris uses -intelabi even on SPARC
12320 STRINGSABIOPTIONS="-intelabi -solarisabinames"
12321 ;;
12322 sco* | svr4*)
12323 case $host_cpu in
12324 i*86) STRINGSABIOPTIONS="-intelabi" ;;
12325 *) STRINGSABIOPTIONS="" ;;
12326 esac
12327 ;;
12328 esac
12329
12330
12331 case $host_os in
12332 darwin*)
12333 OS_CFLAGS="-Wl,-flat_namespace"
12334 ;;
12335 *)
12336 OS_CFLAGS=
12337 ;;
12338 esac
12339
12340 XT_CFLAGS="$XT_CFLAGS $OS_CFLAGS"
12341
12342
12343 # Check whether --enable-malloc0returnsnull was given.
12344 if test "${enable_malloc0returnsnull+set}" = set; then :
12345 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
12346 else
12347 MALLOC_ZERO_RETURNS_NULL=auto
12348 fi
12349
12350
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
12352 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
12353 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
12354 if test "$cross_compiling" = yes; then :
12355 MALLOC_ZERO_RETURNS_NULL=yes
12356 else
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h. */
12359
12360 char *malloc();
12361 char *realloc();
12362 char *calloc();
12363 main() {
12364 char *m0, *r0, *c0, *p;
12365 m0 = malloc(0);
12366 p = malloc(10);
12367 r0 = realloc(p,0);
12368 c0 = calloc(0);
12369 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
12370 }
12371 _ACEOF
12372 if ac_fn_c_try_run "$LINENO"; then :
12373 MALLOC_ZERO_RETURNS_NULL=yes
12374 else
12375 MALLOC_ZERO_RETURNS_NULL=no
12376 fi
12377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12378 conftest.$ac_objext conftest.beam conftest.$ac_ext
12379 fi
12380
12381 fi
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
12383 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
12384
12385 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
12386 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
12387 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
12388 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
12389 else
12390 MALLOC_ZERO_CFLAGS=""
12391 XMALLOC_ZERO_CFLAGS=""
12392 XTMALLOC_ZERO_CFLAGS=""
12393 fi
12394
12395
12396
12397
12398
12399
12400 ac_config_files="$ac_config_files Makefile src/Makefile util/Makefile include/Makefile man/Makefile specs/Makefile xt.pc"
12401
12402 cat >confcache <<\_ACEOF
12403 # This file is a shell script that caches the results of configure
12404 # tests run on this system so they can be shared between configure
12405 # scripts and configure runs, see configure's option --config-cache.
12406 # It is not useful on other systems. If it contains results you don't
12407 # want to keep, you may remove or edit it.
12408 #
12409 # config.status only pays attention to the cache file if you give it
12410 # the --recheck option to rerun configure.
12411 #
12412 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12413 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12414 # following values.
12415
12416 _ACEOF
12417
12418 # The following way of writing the cache mishandles newlines in values,
12419 # but we know of no workaround that is simple, portable, and efficient.
12420 # So, we kill variables containing newlines.
12421 # Ultrix sh set writes to stderr and can't be redirected directly,
12422 # and sets the high bit in the cache file unless we assign to the vars.
12423 (
12424 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12425 eval ac_val=\$$ac_var
12426 case $ac_val in #(
12427 *${as_nl}*)
12428 case $ac_var in #(
12429 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12430 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12431 esac
12432 case $ac_var in #(
12433 _ | IFS | as_nl) ;; #(
12434 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12435 *) { eval $ac_var=; unset $ac_var;} ;;
12436 esac ;;
12437 esac
12438 done
12439
12440 (set) 2>&1 |
12441 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12442 *${as_nl}ac_space=\ *)
12443 # `set' does not quote correctly, so add quotes: double-quote
12444 # substitution turns \\\\ into \\, and sed turns \\ into \.
12445 sed -n \
12446 "s/'/'\\\\''/g;
12447 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12448 ;; #(
12449 *)
12450 # `set' quotes correctly as required by POSIX, so do not add quotes.
12451 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12452 ;;
12453 esac |
12454 sort
12455 ) |
12456 sed '
12457 /^ac_cv_env_/b end
12458 t clear
12459 :clear
12460 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12461 t end
12462 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12463 :end' >>confcache
12464 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12465 if test -w "$cache_file"; then
12466 if test "x$cache_file" != "x/dev/null"; then
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12468 $as_echo "$as_me: updating cache $cache_file" >&6;}
12469 if test ! -f "$cache_file" || test -h "$cache_file"; then
12470 cat confcache >"$cache_file"
12471 else
12472 case $cache_file in #(
12473 */* | ?:*)
12474 mv -f confcache "$cache_file"$$ &&
12475 mv -f "$cache_file"$$ "$cache_file" ;; #(
12476 *)
12477 mv -f confcache "$cache_file" ;;
12478 esac
12479 fi
12480 fi
12481 else
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12483 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12484 fi
12485 fi
12486 rm -f confcache
12487
12488 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12489 # Let make expand exec_prefix.
12490 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12491
12492 DEFS=-DHAVE_CONFIG_H
12493
12494 ac_libobjs=
12495 ac_ltlibobjs=
12496 U=
12497 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12498 # 1. Remove the extension, and $U if already installed.
12499 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12500 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12501 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12502 # will be set to the directory where LIBOBJS objects are built.
12503 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12504 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12505 done
12506 LIBOBJS=$ac_libobjs
12507
12508 LTLIBOBJS=$ac_ltlibobjs
12509
12510
12511 if test -n "$EXEEXT"; then
12512 am__EXEEXT_TRUE=
12513 am__EXEEXT_FALSE='#'
12514 else
12515 am__EXEEXT_TRUE='#'
12516 am__EXEEXT_FALSE=
12517 fi
12518
12519 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12520 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12522 fi
12523 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12524 as_fn_error $? "conditional \"AMDEP\" was never defined.
12525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12526 fi
12527 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12528 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12530 fi
12531 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12532 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12534 fi
12535
12536 : "${CONFIG_STATUS=./config.status}"
12537 ac_write_fail=0
12538 ac_clean_files_save=$ac_clean_files
12539 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12541 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12542 as_write_fail=0
12543 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12544 #! $SHELL
12545 # Generated by $as_me.
12546 # Run this file to recreate the current configuration.
12547 # Compiler output produced by configure, useful for debugging
12548 # configure, is in config.log if it exists.
12549
12550 debug=false
12551 ac_cs_recheck=false
12552 ac_cs_silent=false
12553
12554 SHELL=\${CONFIG_SHELL-$SHELL}
12555 export SHELL
12556 _ASEOF
12557 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12558 ## -------------------- ##
12559 ## M4sh Initialization. ##
12560 ## -------------------- ##
12561
12562 # Be more Bourne compatible
12563 DUALCASE=1; export DUALCASE # for MKS sh
12564 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12565 emulate sh
12566 NULLCMD=:
12567 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12568 # is contrary to our usage. Disable this feature.
12569 alias -g '${1+"$@"}'='"$@"'
12570 setopt NO_GLOB_SUBST
12571 else
12572 case `(set -o) 2>/dev/null` in #(
12573 *posix*) :
12574 set -o posix ;; #(
12575 *) :
12576 ;;
12577 esac
12578 fi
12579
12580
12581 as_nl='
12582 '
12583 export as_nl
12584 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12585 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12586 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12587 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12588 # Prefer a ksh shell builtin over an external printf program on Solaris,
12589 # but without wasting forks for bash or zsh.
12590 if test -z "$BASH_VERSION$ZSH_VERSION" \
12591 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12592 as_echo='print -r --'
12593 as_echo_n='print -rn --'
12594 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12595 as_echo='printf %s\n'
12596 as_echo_n='printf %s'
12597 else
12598 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12599 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12600 as_echo_n='/usr/ucb/echo -n'
12601 else
12602 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12603 as_echo_n_body='eval
12604 arg=$1;
12605 case $arg in #(
12606 *"$as_nl"*)
12607 expr "X$arg" : "X\\(.*\\)$as_nl";
12608 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12609 esac;
12610 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12611 '
12612 export as_echo_n_body
12613 as_echo_n='sh -c $as_echo_n_body as_echo'
12614 fi
12615 export as_echo_body
12616 as_echo='sh -c $as_echo_body as_echo'
12617 fi
12618
12619 # The user is always right.
12620 if test "${PATH_SEPARATOR+set}" != set; then
12621 PATH_SEPARATOR=:
12622 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12623 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12624 PATH_SEPARATOR=';'
12625 }
12626 fi
12627
12628
12629 # IFS
12630 # We need space, tab and new line, in precisely that order. Quoting is
12631 # there to prevent editors from complaining about space-tab.
12632 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12633 # splitting by setting IFS to empty value.)
12634 IFS=" "" $as_nl"
12635
12636 # Find who we are. Look in the path if we contain no directory separator.
12637 as_myself=
12638 case $0 in #((
12639 *[\\/]* ) as_myself=$0 ;;
12640 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12641 for as_dir in $PATH
12642 do
12643 IFS=$as_save_IFS
12644 test -z "$as_dir" && as_dir=.
12645 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12646 done
12647 IFS=$as_save_IFS
12648
12649 ;;
12650 esac
12651 # We did not find ourselves, most probably we were run as `sh COMMAND'
12652 # in which case we are not to be found in the path.
12653 if test "x$as_myself" = x; then
12654 as_myself=$0
12655 fi
12656 if test ! -f "$as_myself"; then
12657 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12658 exit 1
12659 fi
12660
12661 # Unset variables that we do not need and which cause bugs (e.g. in
12662 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12663 # suppresses any "Segmentation fault" message there. '((' could
12664 # trigger a bug in pdksh 5.2.14.
12665 for as_var in BASH_ENV ENV MAIL MAILPATH
12666 do eval test x\${$as_var+set} = xset \
12667 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12668 done
12669 PS1='$ '
12670 PS2='> '
12671 PS4='+ '
12672
12673 # NLS nuisances.
12674 LC_ALL=C
12675 export LC_ALL
12676 LANGUAGE=C
12677 export LANGUAGE
12678
12679 # CDPATH.
12680 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12681
12682
12683 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12684 # ----------------------------------------
12685 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12686 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12687 # script with STATUS, using 1 if that was 0.
12688 as_fn_error ()
12689 {
12690 as_status=$1; test $as_status -eq 0 && as_status=1
12691 if test "$4"; then
12692 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12693 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12694 fi
12695 $as_echo "$as_me: error: $2" >&2
12696 as_fn_exit $as_status
12697 } # as_fn_error
12698
12699
12700 # as_fn_set_status STATUS
12701 # -----------------------
12702 # Set $? to STATUS, without forking.
12703 as_fn_set_status ()
12704 {
12705 return $1
12706 } # as_fn_set_status
12707
12708 # as_fn_exit STATUS
12709 # -----------------
12710 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12711 as_fn_exit ()
12712 {
12713 set +e
12714 as_fn_set_status $1
12715 exit $1
12716 } # as_fn_exit
12717
12718 # as_fn_unset VAR
12719 # ---------------
12720 # Portably unset VAR.
12721 as_fn_unset ()
12722 {
12723 { eval $1=; unset $1;}
12724 }
12725 as_unset=as_fn_unset
12726 # as_fn_append VAR VALUE
12727 # ----------------------
12728 # Append the text in VALUE to the end of the definition contained in VAR. Take
12729 # advantage of any shell optimizations that allow amortized linear growth over
12730 # repeated appends, instead of the typical quadratic growth present in naive
12731 # implementations.
12732 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12733 eval 'as_fn_append ()
12734 {
12735 eval $1+=\$2
12736 }'
12737 else
12738 as_fn_append ()
12739 {
12740 eval $1=\$$1\$2
12741 }
12742 fi # as_fn_append
12743
12744 # as_fn_arith ARG...
12745 # ------------------
12746 # Perform arithmetic evaluation on the ARGs, and store the result in the
12747 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12748 # must be portable across $(()) and expr.
12749 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12750 eval 'as_fn_arith ()
12751 {
12752 as_val=$(( $* ))
12753 }'
12754 else
12755 as_fn_arith ()
12756 {
12757 as_val=`expr "$@" || test $? -eq 1`
12758 }
12759 fi # as_fn_arith
12760
12761
12762 if expr a : '\(a\)' >/dev/null 2>&1 &&
12763 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12764 as_expr=expr
12765 else
12766 as_expr=false
12767 fi
12768
12769 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12770 as_basename=basename
12771 else
12772 as_basename=false
12773 fi
12774
12775 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12776 as_dirname=dirname
12777 else
12778 as_dirname=false
12779 fi
12780
12781 as_me=`$as_basename -- "$0" ||
12782 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12783 X"$0" : 'X\(//\)$' \| \
12784 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12785 $as_echo X/"$0" |
12786 sed '/^.*\/\([^/][^/]*\)\/*$/{
12787 s//\1/
12788 q
12789 }
12790 /^X\/\(\/\/\)$/{
12791 s//\1/
12792 q
12793 }
12794 /^X\/\(\/\).*/{
12795 s//\1/
12796 q
12797 }
12798 s/.*/./; q'`
12799
12800 # Avoid depending upon Character Ranges.
12801 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12802 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12803 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12804 as_cr_digits='0123456789'
12805 as_cr_alnum=$as_cr_Letters$as_cr_digits
12806
12807 ECHO_C= ECHO_N= ECHO_T=
12808 case `echo -n x` in #(((((
12809 -n*)
12810 case `echo 'xy\c'` in
12811 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12812 xy) ECHO_C='\c';;
12813 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12814 ECHO_T=' ';;
12815 esac;;
12816 *)
12817 ECHO_N='-n';;
12818 esac
12819
12820 rm -f conf$$ conf$$.exe conf$$.file
12821 if test -d conf$$.dir; then
12822 rm -f conf$$.dir/conf$$.file
12823 else
12824 rm -f conf$$.dir
12825 mkdir conf$$.dir 2>/dev/null
12826 fi
12827 if (echo >conf$$.file) 2>/dev/null; then
12828 if ln -s conf$$.file conf$$ 2>/dev/null; then
12829 as_ln_s='ln -s'
12830 # ... but there are two gotchas:
12831 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12832 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12833 # In both cases, we have to default to `cp -p'.
12834 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12835 as_ln_s='cp -p'
12836 elif ln conf$$.file conf$$ 2>/dev/null; then
12837 as_ln_s=ln
12838 else
12839 as_ln_s='cp -p'
12840 fi
12841 else
12842 as_ln_s='cp -p'
12843 fi
12844 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12845 rmdir conf$$.dir 2>/dev/null
12846
12847
12848 # as_fn_mkdir_p
12849 # -------------
12850 # Create "$as_dir" as a directory, including parents if necessary.
12851 as_fn_mkdir_p ()
12852 {
12853
12854 case $as_dir in #(
12855 -*) as_dir=./$as_dir;;
12856 esac
12857 test -d "$as_dir" || eval $as_mkdir_p || {
12858 as_dirs=
12859 while :; do
12860 case $as_dir in #(
12861 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12862 *) as_qdir=$as_dir;;
12863 esac
12864 as_dirs="'$as_qdir' $as_dirs"
12865 as_dir=`$as_dirname -- "$as_dir" ||
12866 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12867 X"$as_dir" : 'X\(//\)[^/]' \| \
12868 X"$as_dir" : 'X\(//\)$' \| \
12869 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12870 $as_echo X"$as_dir" |
12871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12872 s//\1/
12873 q
12874 }
12875 /^X\(\/\/\)[^/].*/{
12876 s//\1/
12877 q
12878 }
12879 /^X\(\/\/\)$/{
12880 s//\1/
12881 q
12882 }
12883 /^X\(\/\).*/{
12884 s//\1/
12885 q
12886 }
12887 s/.*/./; q'`
12888 test -d "$as_dir" && break
12889 done
12890 test -z "$as_dirs" || eval "mkdir $as_dirs"
12891 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12892
12893
12894 } # as_fn_mkdir_p
12895 if mkdir -p . 2>/dev/null; then
12896 as_mkdir_p='mkdir -p "$as_dir"'
12897 else
12898 test -d ./-p && rmdir ./-p
12899 as_mkdir_p=false
12900 fi
12901
12902 if test -x / >/dev/null 2>&1; then
12903 as_test_x='test -x'
12904 else
12905 if ls -dL / >/dev/null 2>&1; then
12906 as_ls_L_option=L
12907 else
12908 as_ls_L_option=
12909 fi
12910 as_test_x='
12911 eval sh -c '\''
12912 if test -d "$1"; then
12913 test -d "$1/.";
12914 else
12915 case $1 in #(
12916 -*)set "./$1";;
12917 esac;
12918 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12919 ???[sx]*):;;*)false;;esac;fi
12920 '\'' sh
12921 '
12922 fi
12923 as_executable_p=$as_test_x
12924
12925 # Sed expression to map a string onto a valid CPP name.
12926 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12927
12928 # Sed expression to map a string onto a valid variable name.
12929 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12930
12931
12932 exec 6>&1
12933 ## ----------------------------------- ##
12934 ## Main body of $CONFIG_STATUS script. ##
12935 ## ----------------------------------- ##
12936 _ASEOF
12937 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12938
12939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12940 # Save the log message, to keep $0 and so on meaningful, and to
12941 # report actual input values of CONFIG_FILES etc. instead of their
12942 # values after options handling.
12943 ac_log="
12944 This file was extended by libXt $as_me 1.0.9, which was
12945 generated by GNU Autoconf 2.68. Invocation command line was
12946
12947 CONFIG_FILES = $CONFIG_FILES
12948 CONFIG_HEADERS = $CONFIG_HEADERS
12949 CONFIG_LINKS = $CONFIG_LINKS
12950 CONFIG_COMMANDS = $CONFIG_COMMANDS
12951 $ $0 $@
12952
12953 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12954 "
12955
12956 _ACEOF
12957
12958 case $ac_config_files in *"
12959 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12960 esac
12961
12962 case $ac_config_headers in *"
12963 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12964 esac
12965
12966
12967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12968 # Files that config.status was made for.
12969 config_files="$ac_config_files"
12970 config_headers="$ac_config_headers"
12971 config_commands="$ac_config_commands"
12972
12973 _ACEOF
12974
12975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12976 ac_cs_usage="\
12977 \`$as_me' instantiates files and other configuration actions
12978 from templates according to the current configuration. Unless the files
12979 and actions are specified as TAGs, all are instantiated by default.
12980
12981 Usage: $0 [OPTION]... [TAG]...
12982
12983 -h, --help print this help, then exit
12984 -V, --version print version number and configuration settings, then exit
12985 --config print configuration, then exit
12986 -q, --quiet, --silent
12987 do not print progress messages
12988 -d, --debug don't remove temporary files
12989 --recheck update $as_me by reconfiguring in the same conditions
12990 --file=FILE[:TEMPLATE]
12991 instantiate the configuration file FILE
12992 --header=FILE[:TEMPLATE]
12993 instantiate the configuration header FILE
12994
12995 Configuration files:
12996 $config_files
12997
12998 Configuration headers:
12999 $config_headers
13000
13001 Configuration commands:
13002 $config_commands
13003
13004 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
13005
13006 _ACEOF
13007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13008 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13009 ac_cs_version="\\
13010 libXt config.status 1.0.9
13011 configured by $0, generated by GNU Autoconf 2.68,
13012 with options \\"\$ac_cs_config\\"
13013
13014 Copyright (C) 2010 Free Software Foundation, Inc.
13015 This config.status script is free software; the Free Software Foundation
13016 gives unlimited permission to copy, distribute and modify it."
13017
13018 ac_pwd='$ac_pwd'
13019 srcdir='$srcdir'
13020 INSTALL='$INSTALL'
13021 MKDIR_P='$MKDIR_P'
13022 AWK='$AWK'
13023 test -n "\$AWK" || AWK=awk
13024 _ACEOF
13025
13026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13027 # The default lists apply if the user does not specify any file.
13028 ac_need_defaults=:
13029 while test $# != 0
13030 do
13031 case $1 in
13032 --*=?*)
13033 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13034 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13035 ac_shift=:
13036 ;;
13037 --*=)
13038 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13039 ac_optarg=
13040 ac_shift=:
13041 ;;
13042 *)
13043 ac_option=$1
13044 ac_optarg=$2
13045 ac_shift=shift
13046 ;;
13047 esac
13048
13049 case $ac_option in
13050 # Handling of the options.
13051 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13052 ac_cs_recheck=: ;;
13053 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13054 $as_echo "$ac_cs_version"; exit ;;
13055 --config | --confi | --conf | --con | --co | --c )
13056 $as_echo "$ac_cs_config"; exit ;;
13057 --debug | --debu | --deb | --de | --d | -d )
13058 debug=: ;;
13059 --file | --fil | --fi | --f )
13060 $ac_shift
13061 case $ac_optarg in
13062 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13063 '') as_fn_error $? "missing file argument" ;;
13064 esac
13065 as_fn_append CONFIG_FILES " '$ac_optarg'"
13066 ac_need_defaults=false;;
13067 --header | --heade | --head | --hea )
13068 $ac_shift
13069 case $ac_optarg in
13070 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13071 esac
13072 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13073 ac_need_defaults=false;;
13074 --he | --h)
13075 # Conflict between --help and --header
13076 as_fn_error $? "ambiguous option: \`$1'
13077 Try \`$0 --help' for more information.";;
13078 --help | --hel | -h )
13079 $as_echo "$ac_cs_usage"; exit ;;
13080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13081 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13082 ac_cs_silent=: ;;
13083
13084 # This is an error.
13085 -*) as_fn_error $? "unrecognized option: \`$1'
13086 Try \`$0 --help' for more information." ;;
13087
13088 *) as_fn_append ac_config_targets " $1"
13089 ac_need_defaults=false ;;
13090
13091 esac
13092 shift
13093 done
13094
13095 ac_configure_extra_args=
13096
13097 if $ac_cs_silent; then
13098 exec 6>/dev/null
13099 ac_configure_extra_args="$ac_configure_extra_args --silent"
13100 fi
13101
13102 _ACEOF
13103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13104 if \$ac_cs_recheck; then
13105 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13106 shift
13107 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13108 CONFIG_SHELL='$SHELL'
13109 export CONFIG_SHELL
13110 exec "\$@"
13111 fi
13112
13113 _ACEOF
13114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13115 exec 5>>config.log
13116 {
13117 echo
13118 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13119 ## Running $as_me. ##
13120 _ASBOX
13121 $as_echo "$ac_log"
13122 } >&5
13123
13124 _ACEOF
13125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13126 #
13127 # INIT-COMMANDS
13128 #
13129 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13130
13131
13132 # The HP-UX ksh and POSIX shell print the target directory to stdout
13133 # if CDPATH is set.
13134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13135
13136 sed_quote_subst='$sed_quote_subst'
13137 double_quote_subst='$double_quote_subst'
13138 delay_variable_subst='$delay_variable_subst'
13139 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13140 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13141 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13142 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13143 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13144 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13145 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13146 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13147 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13148 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13149 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13150 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13151 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13152 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13153 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13154 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13155 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13156 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13157 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13158 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13159 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13160 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13161 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13162 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13163 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13164 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13165 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13166 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13167 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13168 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13169 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13170 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13171 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13172 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13173 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13174 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13175 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13176 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13177 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13178 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13179 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13180 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13181 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13182 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13183 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13184 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13185 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13186 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13187 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"`'
13188 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13189 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13190 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13191 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13192 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13193 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13194 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13195 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13196 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13197 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13198 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13199 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13200 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13201 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13202 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13203 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13204 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13205 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13206 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13207 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13208 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13209 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13210 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13211 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13212 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13213 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13214 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13215 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13216 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13217 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13218 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13219 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13220 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13221 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13222 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13223 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13224 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13225 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13226 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13227 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13228 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13229 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13230 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13231 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13232 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13233 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13234 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13235 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13236 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13237 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13238 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13239 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13240 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13241 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13242 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13243 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13244 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13245 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13246 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13247 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13248 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13249 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13250 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13251 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13252 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13253 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13254 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13255 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13256 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13257 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13258 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13259
13260 LTCC='$LTCC'
13261 LTCFLAGS='$LTCFLAGS'
13262 compiler='$compiler_DEFAULT'
13263
13264 # A function that is used when there is no print builtin or printf.
13265 func_fallback_echo ()
13266 {
13267 eval 'cat <<_LTECHO_EOF
13268 \$1
13269 _LTECHO_EOF'
13270 }
13271
13272 # Quote evaled strings.
13273 for var in SHELL \
13274 ECHO \
13275 SED \
13276 GREP \
13277 EGREP \
13278 FGREP \
13279 LD \
13280 NM \
13281 LN_S \
13282 lt_SP2NL \
13283 lt_NL2SP \
13284 reload_flag \
13285 OBJDUMP \
13286 deplibs_check_method \
13287 file_magic_cmd \
13288 AR \
13289 AR_FLAGS \
13290 STRIP \
13291 RANLIB \
13292 CC \
13293 CFLAGS \
13294 compiler \
13295 lt_cv_sys_global_symbol_pipe \
13296 lt_cv_sys_global_symbol_to_cdecl \
13297 lt_cv_sys_global_symbol_to_c_name_address \
13298 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13299 lt_prog_compiler_no_builtin_flag \
13300 lt_prog_compiler_wl \
13301 lt_prog_compiler_pic \
13302 lt_prog_compiler_static \
13303 lt_cv_prog_compiler_c_o \
13304 need_locks \
13305 DSYMUTIL \
13306 NMEDIT \
13307 LIPO \
13308 OTOOL \
13309 OTOOL64 \
13310 shrext_cmds \
13311 export_dynamic_flag_spec \
13312 whole_archive_flag_spec \
13313 compiler_needs_object \
13314 with_gnu_ld \
13315 allow_undefined_flag \
13316 no_undefined_flag \
13317 hardcode_libdir_flag_spec \
13318 hardcode_libdir_flag_spec_ld \
13319 hardcode_libdir_separator \
13320 fix_srcfile_path \
13321 exclude_expsyms \
13322 include_expsyms \
13323 file_list_spec \
13324 variables_saved_for_relink \
13325 libname_spec \
13326 library_names_spec \
13327 soname_spec \
13328 install_override_mode \
13329 finish_eval \
13330 old_striplib \
13331 striplib; do
13332 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13333 *[\\\\\\\`\\"\\\$]*)
13334 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13335 ;;
13336 *)
13337 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13338 ;;
13339 esac
13340 done
13341
13342 # Double-quote double-evaled strings.
13343 for var in reload_cmds \
13344 old_postinstall_cmds \
13345 old_postuninstall_cmds \
13346 old_archive_cmds \
13347 extract_expsyms_cmds \
13348 old_archive_from_new_cmds \
13349 old_archive_from_expsyms_cmds \
13350 archive_cmds \
13351 archive_expsym_cmds \
13352 module_cmds \
13353 module_expsym_cmds \
13354 export_symbols_cmds \
13355 prelink_cmds \
13356 postinstall_cmds \
13357 postuninstall_cmds \
13358 finish_cmds \
13359 sys_lib_search_path_spec \
13360 sys_lib_dlsearch_path_spec; do
13361 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13362 *[\\\\\\\`\\"\\\$]*)
13363 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13364 ;;
13365 *)
13366 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13367 ;;
13368 esac
13369 done
13370
13371 ac_aux_dir='$ac_aux_dir'
13372 xsi_shell='$xsi_shell'
13373 lt_shell_append='$lt_shell_append'
13374
13375 # See if we are running on zsh, and set the options which allow our
13376 # commands through without removal of \ escapes INIT.
13377 if test -n "\${ZSH_VERSION+set}" ; then
13378 setopt NO_GLOB_SUBST
13379 fi
13380
13381
13382 PACKAGE='$PACKAGE'
13383 VERSION='$VERSION'
13384 TIMESTAMP='$TIMESTAMP'
13385 RM='$RM'
13386 ofile='$ofile'
13387
13388
13389
13390
13391 _ACEOF
13392
13393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13394
13395 # Handling of arguments.
13396 for ac_config_target in $ac_config_targets
13397 do
13398 case $ac_config_target in
13399 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13400 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13401 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13402 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13403 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13404 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
13405 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13406 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13407 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
13408 "xt.pc") CONFIG_FILES="$CONFIG_FILES xt.pc" ;;
13409
13410 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13411 esac
13412 done
13413
13414
13415 # If the user did not use the arguments to specify the items to instantiate,
13416 # then the envvar interface is used. Set only those that are not.
13417 # We use the long form for the default assignment because of an extremely
13418 # bizarre bug on SunOS 4.1.3.
13419 if $ac_need_defaults; then
13420 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13421 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13422 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13423 fi
13424
13425 # Have a temporary directory for convenience. Make it in the build tree
13426 # simply because there is no reason against having it here, and in addition,
13427 # creating and moving files from /tmp can sometimes cause problems.
13428 # Hook for its removal unless debugging.
13429 # Note that there is a small window in which the directory will not be cleaned:
13430 # after its creation but before its name has been assigned to `$tmp'.
13431 $debug ||
13432 {
13433 tmp= ac_tmp=
13434 trap 'exit_status=$?
13435 : "${ac_tmp:=$tmp}"
13436 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13437 ' 0
13438 trap 'as_fn_exit 1' 1 2 13 15
13439 }
13440 # Create a (secure) tmp directory for tmp files.
13441
13442 {
13443 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13444 test -d "$tmp"
13445 } ||
13446 {
13447 tmp=./conf$$-$RANDOM
13448 (umask 077 && mkdir "$tmp")
13449 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13450 ac_tmp=$tmp
13451
13452 # Set up the scripts for CONFIG_FILES section.
13453 # No need to generate them if there are no CONFIG_FILES.
13454 # This happens for instance with `./config.status config.h'.
13455 if test -n "$CONFIG_FILES"; then
13456
13457
13458 ac_cr=`echo X | tr X '\015'`
13459 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13460 # But we know of no other shell where ac_cr would be empty at this
13461 # point, so we can use a bashism as a fallback.
13462 if test "x$ac_cr" = x; then
13463 eval ac_cr=\$\'\\r\'
13464 fi
13465 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13466 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13467 ac_cs_awk_cr='\\r'
13468 else
13469 ac_cs_awk_cr=$ac_cr
13470 fi
13471
13472 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13473 _ACEOF
13474
13475
13476 {
13477 echo "cat >conf$$subs.awk <<_ACEOF" &&
13478 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13479 echo "_ACEOF"
13480 } >conf$$subs.sh ||
13481 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13482 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13483 ac_delim='%!_!# '
13484 for ac_last_try in false false false false false :; do
13485 . ./conf$$subs.sh ||
13486 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13487
13488 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13489 if test $ac_delim_n = $ac_delim_num; then
13490 break
13491 elif $ac_last_try; then
13492 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13493 else
13494 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13495 fi
13496 done
13497 rm -f conf$$subs.sh
13498
13499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13500 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13501 _ACEOF
13502 sed -n '
13503 h
13504 s/^/S["/; s/!.*/"]=/
13505 p
13506 g
13507 s/^[^!]*!//
13508 :repl
13509 t repl
13510 s/'"$ac_delim"'$//
13511 t delim
13512 :nl
13513 h
13514 s/\(.\{148\}\)..*/\1/
13515 t more1
13516 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13517 p
13518 n
13519 b repl
13520 :more1
13521 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13522 p
13523 g
13524 s/.\{148\}//
13525 t nl
13526 :delim
13527 h
13528 s/\(.\{148\}\)..*/\1/
13529 t more2
13530 s/["\\]/\\&/g; s/^/"/; s/$/"/
13531 p
13532 b
13533 :more2
13534 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13535 p
13536 g
13537 s/.\{148\}//
13538 t delim
13539 ' <conf$$subs.awk | sed '
13540 /^[^""]/{
13541 N
13542 s/\n//
13543 }
13544 ' >>$CONFIG_STATUS || ac_write_fail=1
13545 rm -f conf$$subs.awk
13546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13547 _ACAWK
13548 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13549 for (key in S) S_is_set[key] = 1
13550 FS = ""
13551
13552 }
13553 {
13554 line = $ 0
13555 nfields = split(line, field, "@")
13556 substed = 0
13557 len = length(field[1])
13558 for (i = 2; i < nfields; i++) {
13559 key = field[i]
13560 keylen = length(key)
13561 if (S_is_set[key]) {
13562 value = S[key]
13563 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13564 len += length(value) + length(field[++i])
13565 substed = 1
13566 } else
13567 len += 1 + keylen
13568 }
13569
13570 print line
13571 }
13572
13573 _ACAWK
13574 _ACEOF
13575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13576 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13577 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13578 else
13579 cat
13580 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13581 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13582 _ACEOF
13583
13584 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13585 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13586 # trailing colons and then remove the whole line if VPATH becomes empty
13587 # (actually we leave an empty line to preserve line numbers).
13588 if test "x$srcdir" = x.; then
13589 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13590 h
13591 s///
13592 s/^/:/
13593 s/[ ]*$/:/
13594 s/:\$(srcdir):/:/g
13595 s/:\${srcdir}:/:/g
13596 s/:@srcdir@:/:/g
13597 s/^:*//
13598 s/:*$//
13599 x
13600 s/\(=[ ]*\).*/\1/
13601 G
13602 s/\n//
13603 s/^[^=]*=[ ]*$//
13604 }'
13605 fi
13606
13607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13608 fi # test -n "$CONFIG_FILES"
13609
13610 # Set up the scripts for CONFIG_HEADERS section.
13611 # No need to generate them if there are no CONFIG_HEADERS.
13612 # This happens for instance with `./config.status Makefile'.
13613 if test -n "$CONFIG_HEADERS"; then
13614 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13615 BEGIN {
13616 _ACEOF
13617
13618 # Transform confdefs.h into an awk script `defines.awk', embedded as
13619 # here-document in config.status, that substitutes the proper values into
13620 # config.h.in to produce config.h.
13621
13622 # Create a delimiter string that does not exist in confdefs.h, to ease
13623 # handling of long lines.
13624 ac_delim='%!_!# '
13625 for ac_last_try in false false :; do
13626 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13627 if test -z "$ac_tt"; then
13628 break
13629 elif $ac_last_try; then
13630 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13631 else
13632 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13633 fi
13634 done
13635
13636 # For the awk script, D is an array of macro values keyed by name,
13637 # likewise P contains macro parameters if any. Preserve backslash
13638 # newline sequences.
13639
13640 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13641 sed -n '
13642 s/.\{148\}/&'"$ac_delim"'/g
13643 t rset
13644 :rset
13645 s/^[ ]*#[ ]*define[ ][ ]*/ /
13646 t def
13647 d
13648 :def
13649 s/\\$//
13650 t bsnl
13651 s/["\\]/\\&/g
13652 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13653 D["\1"]=" \3"/p
13654 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13655 d
13656 :bsnl
13657 s/["\\]/\\&/g
13658 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13659 D["\1"]=" \3\\\\\\n"\\/p
13660 t cont
13661 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13662 t cont
13663 d
13664 :cont
13665 n
13666 s/.\{148\}/&'"$ac_delim"'/g
13667 t clear
13668 :clear
13669 s/\\$//
13670 t bsnlc
13671 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13672 d
13673 :bsnlc
13674 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13675 b cont
13676 ' <confdefs.h | sed '
13677 s/'"$ac_delim"'/"\\\
13678 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13679
13680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13681 for (key in D) D_is_set[key] = 1
13682 FS = ""
13683 }
13684 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13685 line = \$ 0
13686 split(line, arg, " ")
13687 if (arg[1] == "#") {
13688 defundef = arg[2]
13689 mac1 = arg[3]
13690 } else {
13691 defundef = substr(arg[1], 2)
13692 mac1 = arg[2]
13693 }
13694 split(mac1, mac2, "(") #)
13695 macro = mac2[1]
13696 prefix = substr(line, 1, index(line, defundef) - 1)
13697 if (D_is_set[macro]) {
13698 # Preserve the white space surrounding the "#".
13699 print prefix "define", macro P[macro] D[macro]
13700 next
13701 } else {
13702 # Replace #undef with comments. This is necessary, for example,
13703 # in the case of _POSIX_SOURCE, which is predefined and required
13704 # on some systems where configure will not decide to define it.
13705 if (defundef == "undef") {
13706 print "/*", prefix defundef, macro, "*/"
13707 next
13708 }
13709 }
13710 }
13711 { print }
13712 _ACAWK
13713 _ACEOF
13714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13715 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13716 fi # test -n "$CONFIG_HEADERS"
13717
13718
13719 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13720 shift
13721 for ac_tag
13722 do
13723 case $ac_tag in
13724 :[FHLC]) ac_mode=$ac_tag; continue;;
13725 esac
13726 case $ac_mode$ac_tag in
13727 :[FHL]*:*);;
13728 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13729 :[FH]-) ac_tag=-:-;;
13730 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13731 esac
13732 ac_save_IFS=$IFS
13733 IFS=:
13734 set x $ac_tag
13735 IFS=$ac_save_IFS
13736 shift
13737 ac_file=$1
13738 shift
13739
13740 case $ac_mode in
13741 :L) ac_source=$1;;
13742 :[FH])
13743 ac_file_inputs=
13744 for ac_f
13745 do
13746 case $ac_f in
13747 -) ac_f="$ac_tmp/stdin";;
13748 *) # Look for the file first in the build tree, then in the source tree
13749 # (if the path is not absolute). The absolute path cannot be DOS-style,
13750 # because $ac_f cannot contain `:'.
13751 test -f "$ac_f" ||
13752 case $ac_f in
13753 [\\/$]*) false;;
13754 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13755 esac ||
13756 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13757 esac
13758 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13759 as_fn_append ac_file_inputs " '$ac_f'"
13760 done
13761
13762 # Let's still pretend it is `configure' which instantiates (i.e., don't
13763 # use $as_me), people would be surprised to read:
13764 # /* config.h. Generated by config.status. */
13765 configure_input='Generated from '`
13766 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13767 `' by configure.'
13768 if test x"$ac_file" != x-; then
13769 configure_input="$ac_file. $configure_input"
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13771 $as_echo "$as_me: creating $ac_file" >&6;}
13772 fi
13773 # Neutralize special characters interpreted by sed in replacement strings.
13774 case $configure_input in #(
13775 *\&* | *\|* | *\\* )
13776 ac_sed_conf_input=`$as_echo "$configure_input" |
13777 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13778 *) ac_sed_conf_input=$configure_input;;
13779 esac
13780
13781 case $ac_tag in
13782 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13783 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13784 esac
13785 ;;
13786 esac
13787
13788 ac_dir=`$as_dirname -- "$ac_file" ||
13789 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13790 X"$ac_file" : 'X\(//\)[^/]' \| \
13791 X"$ac_file" : 'X\(//\)$' \| \
13792 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13793 $as_echo X"$ac_file" |
13794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13795 s//\1/
13796 q
13797 }
13798 /^X\(\/\/\)[^/].*/{
13799 s//\1/
13800 q
13801 }
13802 /^X\(\/\/\)$/{
13803 s//\1/
13804 q
13805 }
13806 /^X\(\/\).*/{
13807 s//\1/
13808 q
13809 }
13810 s/.*/./; q'`
13811 as_dir="$ac_dir"; as_fn_mkdir_p
13812 ac_builddir=.
13813
13814 case "$ac_dir" in
13815 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13816 *)
13817 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13818 # A ".." for each directory in $ac_dir_suffix.
13819 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13820 case $ac_top_builddir_sub in
13821 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13822 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13823 esac ;;
13824 esac
13825 ac_abs_top_builddir=$ac_pwd
13826 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13827 # for backward compatibility:
13828 ac_top_builddir=$ac_top_build_prefix
13829
13830 case $srcdir in
13831 .) # We are building in place.
13832 ac_srcdir=.
13833 ac_top_srcdir=$ac_top_builddir_sub
13834 ac_abs_top_srcdir=$ac_pwd ;;
13835 [\\/]* | ?:[\\/]* ) # Absolute name.
13836 ac_srcdir=$srcdir$ac_dir_suffix;
13837 ac_top_srcdir=$srcdir
13838 ac_abs_top_srcdir=$srcdir ;;
13839 *) # Relative name.
13840 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13841 ac_top_srcdir=$ac_top_build_prefix$srcdir
13842 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13843 esac
13844 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13845
13846
13847 case $ac_mode in
13848 :F)
13849 #
13850 # CONFIG_FILE
13851 #
13852
13853 case $INSTALL in
13854 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13855 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13856 esac
13857 ac_MKDIR_P=$MKDIR_P
13858 case $MKDIR_P in
13859 [\\/$]* | ?:[\\/]* ) ;;
13860 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13861 esac
13862 _ACEOF
13863
13864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13865 # If the template does not know about datarootdir, expand it.
13866 # FIXME: This hack should be removed a few years after 2.60.
13867 ac_datarootdir_hack=; ac_datarootdir_seen=
13868 ac_sed_dataroot='
13869 /datarootdir/ {
13870 p
13871 q
13872 }
13873 /@datadir@/p
13874 /@docdir@/p
13875 /@infodir@/p
13876 /@localedir@/p
13877 /@mandir@/p'
13878 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13879 *datarootdir*) ac_datarootdir_seen=yes;;
13880 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13882 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13883 _ACEOF
13884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13885 ac_datarootdir_hack='
13886 s&@datadir@&$datadir&g
13887 s&@docdir@&$docdir&g
13888 s&@infodir@&$infodir&g
13889 s&@localedir@&$localedir&g
13890 s&@mandir@&$mandir&g
13891 s&\\\${datarootdir}&$datarootdir&g' ;;
13892 esac
13893 _ACEOF
13894
13895 # Neutralize VPATH when `$srcdir' = `.'.
13896 # Shell code in configure.ac might set extrasub.
13897 # FIXME: do we really want to maintain this feature?
13898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13899 ac_sed_extra="$ac_vpsub
13900 $extrasub
13901 _ACEOF
13902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13903 :t
13904 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13905 s|@configure_input@|$ac_sed_conf_input|;t t
13906 s&@top_builddir@&$ac_top_builddir_sub&;t t
13907 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13908 s&@srcdir@&$ac_srcdir&;t t
13909 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13910 s&@top_srcdir@&$ac_top_srcdir&;t t
13911 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13912 s&@builddir@&$ac_builddir&;t t
13913 s&@abs_builddir@&$ac_abs_builddir&;t t
13914 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13915 s&@INSTALL@&$ac_INSTALL&;t t
13916 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13917 $ac_datarootdir_hack
13918 "
13919 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13920 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13921
13922 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13923 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13924 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13925 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13927 which seems to be undefined. Please make sure it is defined" >&5
13928 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13929 which seems to be undefined. Please make sure it is defined" >&2;}
13930
13931 rm -f "$ac_tmp/stdin"
13932 case $ac_file in
13933 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13934 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13935 esac \
13936 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13937 ;;
13938 :H)
13939 #
13940 # CONFIG_HEADER
13941 #
13942 if test x"$ac_file" != x-; then
13943 {
13944 $as_echo "/* $configure_input */" \
13945 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13946 } >"$ac_tmp/config.h" \
13947 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13948 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13950 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13951 else
13952 rm -f "$ac_file"
13953 mv "$ac_tmp/config.h" "$ac_file" \
13954 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13955 fi
13956 else
13957 $as_echo "/* $configure_input */" \
13958 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13959 || as_fn_error $? "could not create -" "$LINENO" 5
13960 fi
13961 # Compute "$ac_file"'s index in $config_headers.
13962 _am_arg="$ac_file"
13963 _am_stamp_count=1
13964 for _am_header in $config_headers :; do
13965 case $_am_header in
13966 $_am_arg | $_am_arg:* )
13967 break ;;
13968 * )
13969 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13970 esac
13971 done
13972 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13973 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13974 X"$_am_arg" : 'X\(//\)[^/]' \| \
13975 X"$_am_arg" : 'X\(//\)$' \| \
13976 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13977 $as_echo X"$_am_arg" |
13978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13979 s//\1/
13980 q
13981 }
13982 /^X\(\/\/\)[^/].*/{
13983 s//\1/
13984 q
13985 }
13986 /^X\(\/\/\)$/{
13987 s//\1/
13988 q
13989 }
13990 /^X\(\/\).*/{
13991 s//\1/
13992 q
13993 }
13994 s/.*/./; q'`/stamp-h$_am_stamp_count
13995 ;;
13996
13997 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13998 $as_echo "$as_me: executing $ac_file commands" >&6;}
13999 ;;
14000 esac
14001
14002
14003 case $ac_file$ac_mode in
14004 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14005 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14006 # are listed without --file. Let's play safe and only enable the eval
14007 # if we detect the quoting.
14008 case $CONFIG_FILES in
14009 *\'*) eval set x "$CONFIG_FILES" ;;
14010 *) set x $CONFIG_FILES ;;
14011 esac
14012 shift
14013 for mf
14014 do
14015 # Strip MF so we end up with the name of the file.
14016 mf=`echo "$mf" | sed -e 's/:.*$//'`
14017 # Check whether this is an Automake generated Makefile or not.
14018 # We used to match only the files named `Makefile.in', but
14019 # some people rename them; so instead we look at the file content.
14020 # Grep'ing the first line is not enough: some people post-process
14021 # each Makefile.in and add a new line on top of each file to say so.
14022 # Grep'ing the whole file is not good either: AIX grep has a line
14023 # limit of 2048, but all sed's we know have understand at least 4000.
14024 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14025 dirpart=`$as_dirname -- "$mf" ||
14026 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14027 X"$mf" : 'X\(//\)[^/]' \| \
14028 X"$mf" : 'X\(//\)$' \| \
14029 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14030 $as_echo X"$mf" |
14031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14032 s//\1/
14033 q
14034 }
14035 /^X\(\/\/\)[^/].*/{
14036 s//\1/
14037 q
14038 }
14039 /^X\(\/\/\)$/{
14040 s//\1/
14041 q
14042 }
14043 /^X\(\/\).*/{
14044 s//\1/
14045 q
14046 }
14047 s/.*/./; q'`
14048 else
14049 continue
14050 fi
14051 # Extract the definition of DEPDIR, am__include, and am__quote
14052 # from the Makefile without running `make'.
14053 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14054 test -z "$DEPDIR" && continue
14055 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14056 test -z "am__include" && continue
14057 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14058 # When using ansi2knr, U may be empty or an underscore; expand it
14059 U=`sed -n 's/^U = //p' < "$mf"`
14060 # Find all dependency output files, they are included files with
14061 # $(DEPDIR) in their names. We invoke sed twice because it is the
14062 # simplest approach to changing $(DEPDIR) to its actual value in the
14063 # expansion.
14064 for file in `sed -n "
14065 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14066 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14067 # Make sure the directory exists.
14068 test -f "$dirpart/$file" && continue
14069 fdir=`$as_dirname -- "$file" ||
14070 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14071 X"$file" : 'X\(//\)[^/]' \| \
14072 X"$file" : 'X\(//\)$' \| \
14073 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14074 $as_echo X"$file" |
14075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14076 s//\1/
14077 q
14078 }
14079 /^X\(\/\/\)[^/].*/{
14080 s//\1/
14081 q
14082 }
14083 /^X\(\/\/\)$/{
14084 s//\1/
14085 q
14086 }
14087 /^X\(\/\).*/{
14088 s//\1/
14089 q
14090 }
14091 s/.*/./; q'`
14092 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14093 # echo "creating $dirpart/$file"
14094 echo '# dummy' > "$dirpart/$file"
14095 done
14096 done
14097 }
14098 ;;
14099 "libtool":C)
14100
14101 # See if we are running on zsh, and set the options which allow our
14102 # commands through without removal of \ escapes.
14103 if test -n "${ZSH_VERSION+set}" ; then
14104 setopt NO_GLOB_SUBST
14105 fi
14106
14107 cfgfile="${ofile}T"
14108 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14109 $RM "$cfgfile"
14110
14111 cat <<_LT_EOF >> "$cfgfile"
14112 #! $SHELL
14113
14114 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14115 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14116 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14117 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14118 #
14119 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14120 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14121 # Inc.
14122 # Written by Gordon Matzigkeit, 1996
14123 #
14124 # This file is part of GNU Libtool.
14125 #
14126 # GNU Libtool is free software; you can redistribute it and/or
14127 # modify it under the terms of the GNU General Public License as
14128 # published by the Free Software Foundation; either version 2 of
14129 # the License, or (at your option) any later version.
14130 #
14131 # As a special exception to the GNU General Public License,
14132 # if you distribute this file as part of a program or library that
14133 # is built using GNU Libtool, you may include this file under the
14134 # same distribution terms that you use for the rest of that program.
14135 #
14136 # GNU Libtool is distributed in the hope that it will be useful,
14137 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14138 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14139 # GNU General Public License for more details.
14140 #
14141 # You should have received a copy of the GNU General Public License
14142 # along with GNU Libtool; see the file COPYING. If not, a copy
14143 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14144 # obtained by writing to the Free Software Foundation, Inc.,
14145 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14146
14147
14148 # The names of the tagged configurations supported by this script.
14149 available_tags=""
14150
14151 # ### BEGIN LIBTOOL CONFIG
14152
14153 # Which release of libtool.m4 was used?
14154 macro_version=$macro_version
14155 macro_revision=$macro_revision
14156
14157 # Whether or not to build shared libraries.
14158 build_libtool_libs=$enable_shared
14159
14160 # Whether or not to build static libraries.
14161 build_old_libs=$enable_static
14162
14163 # What type of objects to build.
14164 pic_mode=$pic_mode
14165
14166 # Whether or not to optimize for fast installation.
14167 fast_install=$enable_fast_install
14168
14169 # Shell to use when invoking shell scripts.
14170 SHELL=$lt_SHELL
14171
14172 # An echo program that protects backslashes.
14173 ECHO=$lt_ECHO
14174
14175 # The host system.
14176 host_alias=$host_alias
14177 host=$host
14178 host_os=$host_os
14179
14180 # The build system.
14181 build_alias=$build_alias
14182 build=$build
14183 build_os=$build_os
14184
14185 # A sed program that does not truncate output.
14186 SED=$lt_SED
14187
14188 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14189 Xsed="\$SED -e 1s/^X//"
14190
14191 # A grep program that handles long lines.
14192 GREP=$lt_GREP
14193
14194 # An ERE matcher.
14195 EGREP=$lt_EGREP
14196
14197 # A literal string matcher.
14198 FGREP=$lt_FGREP
14199
14200 # A BSD- or MS-compatible name lister.
14201 NM=$lt_NM
14202
14203 # Whether we need soft or hard links.
14204 LN_S=$lt_LN_S
14205
14206 # What is the maximum length of a command?
14207 max_cmd_len=$max_cmd_len
14208
14209 # Object file suffix (normally "o").
14210 objext=$ac_objext
14211
14212 # Executable file suffix (normally "").
14213 exeext=$exeext
14214
14215 # whether the shell understands "unset".
14216 lt_unset=$lt_unset
14217
14218 # turn spaces into newlines.
14219 SP2NL=$lt_lt_SP2NL
14220
14221 # turn newlines into spaces.
14222 NL2SP=$lt_lt_NL2SP
14223
14224 # An object symbol dumper.
14225 OBJDUMP=$lt_OBJDUMP
14226
14227 # Method to check whether dependent libraries are shared objects.
14228 deplibs_check_method=$lt_deplibs_check_method
14229
14230 # Command to use when deplibs_check_method == "file_magic".
14231 file_magic_cmd=$lt_file_magic_cmd
14232
14233 # The archiver.
14234 AR=$lt_AR
14235 AR_FLAGS=$lt_AR_FLAGS
14236
14237 # A symbol stripping program.
14238 STRIP=$lt_STRIP
14239
14240 # Commands used to install an old-style archive.
14241 RANLIB=$lt_RANLIB
14242 old_postinstall_cmds=$lt_old_postinstall_cmds
14243 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14244
14245 # Whether to use a lock for old archive extraction.
14246 lock_old_archive_extraction=$lock_old_archive_extraction
14247
14248 # A C compiler.
14249 LTCC=$lt_CC
14250
14251 # LTCC compiler flags.
14252 LTCFLAGS=$lt_CFLAGS
14253
14254 # Take the output of nm and produce a listing of raw symbols and C names.
14255 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14256
14257 # Transform the output of nm in a proper C declaration.
14258 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14259
14260 # Transform the output of nm in a C name address pair.
14261 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14262
14263 # Transform the output of nm in a C name address pair when lib prefix is needed.
14264 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14265
14266 # The name of the directory that contains temporary libtool files.
14267 objdir=$objdir
14268
14269 # Used to examine libraries when file_magic_cmd begins with "file".
14270 MAGIC_CMD=$MAGIC_CMD
14271
14272 # Must we lock files when doing compilation?
14273 need_locks=$lt_need_locks
14274
14275 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14276 DSYMUTIL=$lt_DSYMUTIL
14277
14278 # Tool to change global to local symbols on Mac OS X.
14279 NMEDIT=$lt_NMEDIT
14280
14281 # Tool to manipulate fat objects and archives on Mac OS X.
14282 LIPO=$lt_LIPO
14283
14284 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14285 OTOOL=$lt_OTOOL
14286
14287 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14288 OTOOL64=$lt_OTOOL64
14289
14290 # Old archive suffix (normally "a").
14291 libext=$libext
14292
14293 # Shared library suffix (normally ".so").
14294 shrext_cmds=$lt_shrext_cmds
14295
14296 # The commands to extract the exported symbol list from a shared archive.
14297 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14298
14299 # Variables whose values should be saved in libtool wrapper scripts and
14300 # restored at link time.
14301 variables_saved_for_relink=$lt_variables_saved_for_relink
14302
14303 # Do we need the "lib" prefix for modules?
14304 need_lib_prefix=$need_lib_prefix
14305
14306 # Do we need a version for libraries?
14307 need_version=$need_version
14308
14309 # Library versioning type.
14310 version_type=$version_type
14311
14312 # Shared library runtime path variable.
14313 runpath_var=$runpath_var
14314
14315 # Shared library path variable.
14316 shlibpath_var=$shlibpath_var
14317
14318 # Is shlibpath searched before the hard-coded library search path?
14319 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14320
14321 # Format of library name prefix.
14322 libname_spec=$lt_libname_spec
14323
14324 # List of archive names. First name is the real one, the rest are links.
14325 # The last name is the one that the linker finds with -lNAME
14326 library_names_spec=$lt_library_names_spec
14327
14328 # The coded name of the library, if different from the real name.
14329 soname_spec=$lt_soname_spec
14330
14331 # Permission mode override for installation of shared libraries.
14332 install_override_mode=$lt_install_override_mode
14333
14334 # Command to use after installation of a shared archive.
14335 postinstall_cmds=$lt_postinstall_cmds
14336
14337 # Command to use after uninstallation of a shared archive.
14338 postuninstall_cmds=$lt_postuninstall_cmds
14339
14340 # Commands used to finish a libtool library installation in a directory.
14341 finish_cmds=$lt_finish_cmds
14342
14343 # As "finish_cmds", except a single script fragment to be evaled but
14344 # not shown.
14345 finish_eval=$lt_finish_eval
14346
14347 # Whether we should hardcode library paths into libraries.
14348 hardcode_into_libs=$hardcode_into_libs
14349
14350 # Compile-time system search path for libraries.
14351 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14352
14353 # Run-time system search path for libraries.
14354 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14355
14356 # Whether dlopen is supported.
14357 dlopen_support=$enable_dlopen
14358
14359 # Whether dlopen of programs is supported.
14360 dlopen_self=$enable_dlopen_self
14361
14362 # Whether dlopen of statically linked programs is supported.
14363 dlopen_self_static=$enable_dlopen_self_static
14364
14365 # Commands to strip libraries.
14366 old_striplib=$lt_old_striplib
14367 striplib=$lt_striplib
14368
14369
14370 # The linker used to build libraries.
14371 LD=$lt_LD
14372
14373 # How to create reloadable object files.
14374 reload_flag=$lt_reload_flag
14375 reload_cmds=$lt_reload_cmds
14376
14377 # Commands used to build an old-style archive.
14378 old_archive_cmds=$lt_old_archive_cmds
14379
14380 # A language specific compiler.
14381 CC=$lt_compiler
14382
14383 # Is the compiler the GNU compiler?
14384 with_gcc=$GCC
14385
14386 # Compiler flag to turn off builtin functions.
14387 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14388
14389 # How to pass a linker flag through the compiler.
14390 wl=$lt_lt_prog_compiler_wl
14391
14392 # Additional compiler flags for building library objects.
14393 pic_flag=$lt_lt_prog_compiler_pic
14394
14395 # Compiler flag to prevent dynamic linking.
14396 link_static_flag=$lt_lt_prog_compiler_static
14397
14398 # Does compiler simultaneously support -c and -o options?
14399 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14400
14401 # Whether or not to add -lc for building shared libraries.
14402 build_libtool_need_lc=$archive_cmds_need_lc
14403
14404 # Whether or not to disallow shared libs when runtime libs are static.
14405 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14406
14407 # Compiler flag to allow reflexive dlopens.
14408 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14409
14410 # Compiler flag to generate shared objects directly from archives.
14411 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14412
14413 # Whether the compiler copes with passing no objects directly.
14414 compiler_needs_object=$lt_compiler_needs_object
14415
14416 # Create an old-style archive from a shared archive.
14417 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14418
14419 # Create a temporary old-style archive to link instead of a shared archive.
14420 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14421
14422 # Commands used to build a shared archive.
14423 archive_cmds=$lt_archive_cmds
14424 archive_expsym_cmds=$lt_archive_expsym_cmds
14425
14426 # Commands used to build a loadable module if different from building
14427 # a shared archive.
14428 module_cmds=$lt_module_cmds
14429 module_expsym_cmds=$lt_module_expsym_cmds
14430
14431 # Whether we are building with GNU ld or not.
14432 with_gnu_ld=$lt_with_gnu_ld
14433
14434 # Flag that allows shared libraries with undefined symbols to be built.
14435 allow_undefined_flag=$lt_allow_undefined_flag
14436
14437 # Flag that enforces no undefined symbols.
14438 no_undefined_flag=$lt_no_undefined_flag
14439
14440 # Flag to hardcode \$libdir into a binary during linking.
14441 # This must work even if \$libdir does not exist
14442 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14443
14444 # If ld is used when linking, flag to hardcode \$libdir into a binary
14445 # during linking. This must work even if \$libdir does not exist.
14446 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14447
14448 # Whether we need a single "-rpath" flag with a separated argument.
14449 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14450
14451 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14452 # DIR into the resulting binary.
14453 hardcode_direct=$hardcode_direct
14454
14455 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14456 # DIR into the resulting binary and the resulting library dependency is
14457 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14458 # library is relocated.
14459 hardcode_direct_absolute=$hardcode_direct_absolute
14460
14461 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14462 # into the resulting binary.
14463 hardcode_minus_L=$hardcode_minus_L
14464
14465 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14466 # into the resulting binary.
14467 hardcode_shlibpath_var=$hardcode_shlibpath_var
14468
14469 # Set to "yes" if building a shared library automatically hardcodes DIR
14470 # into the library and all subsequent libraries and executables linked
14471 # against it.
14472 hardcode_automatic=$hardcode_automatic
14473
14474 # Set to yes if linker adds runtime paths of dependent libraries
14475 # to runtime path list.
14476 inherit_rpath=$inherit_rpath
14477
14478 # Whether libtool must link a program against all its dependency libraries.
14479 link_all_deplibs=$link_all_deplibs
14480
14481 # Fix the shell variable \$srcfile for the compiler.
14482 fix_srcfile_path=$lt_fix_srcfile_path
14483
14484 # Set to "yes" if exported symbols are required.
14485 always_export_symbols=$always_export_symbols
14486
14487 # The commands to list exported symbols.
14488 export_symbols_cmds=$lt_export_symbols_cmds
14489
14490 # Symbols that should not be listed in the preloaded symbols.
14491 exclude_expsyms=$lt_exclude_expsyms
14492
14493 # Symbols that must always be exported.
14494 include_expsyms=$lt_include_expsyms
14495
14496 # Commands necessary for linking programs (against libraries) with templates.
14497 prelink_cmds=$lt_prelink_cmds
14498
14499 # Specify filename containing input files.
14500 file_list_spec=$lt_file_list_spec
14501
14502 # How to hardcode a shared library path into an executable.
14503 hardcode_action=$hardcode_action
14504
14505 # ### END LIBTOOL CONFIG
14506
14507 _LT_EOF
14508
14509 case $host_os in
14510 aix3*)
14511 cat <<\_LT_EOF >> "$cfgfile"
14512 # AIX sometimes has problems with the GCC collect2 program. For some
14513 # reason, if we set the COLLECT_NAMES environment variable, the problems
14514 # vanish in a puff of smoke.
14515 if test "X${COLLECT_NAMES+set}" != Xset; then
14516 COLLECT_NAMES=
14517 export COLLECT_NAMES
14518 fi
14519 _LT_EOF
14520 ;;
14521 esac
14522
14523
14524 ltmain="$ac_aux_dir/ltmain.sh"
14525
14526
14527 # We use sed instead of cat because bash on DJGPP gets confused if
14528 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14529 # text mode, it properly converts lines to CR/LF. This bash problem
14530 # is reportedly fixed, but why not run on old versions too?
14531 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14532 || (rm -f "$cfgfile"; exit 1)
14533
14534 case $xsi_shell in
14535 yes)
14536 cat << \_LT_EOF >> "$cfgfile"
14537
14538 # func_dirname file append nondir_replacement
14539 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14540 # otherwise set result to NONDIR_REPLACEMENT.
14541 func_dirname ()
14542 {
14543 case ${1} in
14544 */*) func_dirname_result="${1%/*}${2}" ;;
14545 * ) func_dirname_result="${3}" ;;
14546 esac
14547 }
14548
14549 # func_basename file
14550 func_basename ()
14551 {
14552 func_basename_result="${1##*/}"
14553 }
14554
14555 # func_dirname_and_basename file append nondir_replacement
14556 # perform func_basename and func_dirname in a single function
14557 # call:
14558 # dirname: Compute the dirname of FILE. If nonempty,
14559 # add APPEND to the result, otherwise set result
14560 # to NONDIR_REPLACEMENT.
14561 # value returned in "$func_dirname_result"
14562 # basename: Compute filename of FILE.
14563 # value retuned in "$func_basename_result"
14564 # Implementation must be kept synchronized with func_dirname
14565 # and func_basename. For efficiency, we do not delegate to
14566 # those functions but instead duplicate the functionality here.
14567 func_dirname_and_basename ()
14568 {
14569 case ${1} in
14570 */*) func_dirname_result="${1%/*}${2}" ;;
14571 * ) func_dirname_result="${3}" ;;
14572 esac
14573 func_basename_result="${1##*/}"
14574 }
14575
14576 # func_stripname prefix suffix name
14577 # strip PREFIX and SUFFIX off of NAME.
14578 # PREFIX and SUFFIX must not contain globbing or regex special
14579 # characters, hashes, percent signs, but SUFFIX may contain a leading
14580 # dot (in which case that matches only a dot).
14581 func_stripname ()
14582 {
14583 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14584 # positional parameters, so assign one to ordinary parameter first.
14585 func_stripname_result=${3}
14586 func_stripname_result=${func_stripname_result#"${1}"}
14587 func_stripname_result=${func_stripname_result%"${2}"}
14588 }
14589
14590 # func_opt_split
14591 func_opt_split ()
14592 {
14593 func_opt_split_opt=${1%%=*}
14594 func_opt_split_arg=${1#*=}
14595 }
14596
14597 # func_lo2o object
14598 func_lo2o ()
14599 {
14600 case ${1} in
14601 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14602 *) func_lo2o_result=${1} ;;
14603 esac
14604 }
14605
14606 # func_xform libobj-or-source
14607 func_xform ()
14608 {
14609 func_xform_result=${1%.*}.lo
14610 }
14611
14612 # func_arith arithmetic-term...
14613 func_arith ()
14614 {
14615 func_arith_result=$(( $* ))
14616 }
14617
14618 # func_len string
14619 # STRING may not start with a hyphen.
14620 func_len ()
14621 {
14622 func_len_result=${#1}
14623 }
14624
14625 _LT_EOF
14626 ;;
14627 *) # Bourne compatible functions.
14628 cat << \_LT_EOF >> "$cfgfile"
14629
14630 # func_dirname file append nondir_replacement
14631 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14632 # otherwise set result to NONDIR_REPLACEMENT.
14633 func_dirname ()
14634 {
14635 # Extract subdirectory from the argument.
14636 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14637 if test "X$func_dirname_result" = "X${1}"; then
14638 func_dirname_result="${3}"
14639 else
14640 func_dirname_result="$func_dirname_result${2}"
14641 fi
14642 }
14643
14644 # func_basename file
14645 func_basename ()
14646 {
14647 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14648 }
14649
14650
14651 # func_stripname prefix suffix name
14652 # strip PREFIX and SUFFIX off of NAME.
14653 # PREFIX and SUFFIX must not contain globbing or regex special
14654 # characters, hashes, percent signs, but SUFFIX may contain a leading
14655 # dot (in which case that matches only a dot).
14656 # func_strip_suffix prefix name
14657 func_stripname ()
14658 {
14659 case ${2} in
14660 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14661 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14662 esac
14663 }
14664
14665 # sed scripts:
14666 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14667 my_sed_long_arg='1s/^-[^=]*=//'
14668
14669 # func_opt_split
14670 func_opt_split ()
14671 {
14672 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14673 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14674 }
14675
14676 # func_lo2o object
14677 func_lo2o ()
14678 {
14679 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14680 }
14681
14682 # func_xform libobj-or-source
14683 func_xform ()
14684 {
14685 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14686 }
14687
14688 # func_arith arithmetic-term...
14689 func_arith ()
14690 {
14691 func_arith_result=`expr "$@"`
14692 }
14693
14694 # func_len string
14695 # STRING may not start with a hyphen.
14696 func_len ()
14697 {
14698 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14699 }
14700
14701 _LT_EOF
14702 esac
14703
14704 case $lt_shell_append in
14705 yes)
14706 cat << \_LT_EOF >> "$cfgfile"
14707
14708 # func_append var value
14709 # Append VALUE to the end of shell variable VAR.
14710 func_append ()
14711 {
14712 eval "$1+=\$2"
14713 }
14714 _LT_EOF
14715 ;;
14716 *)
14717 cat << \_LT_EOF >> "$cfgfile"
14718
14719 # func_append var value
14720 # Append VALUE to the end of shell variable VAR.
14721 func_append ()
14722 {
14723 eval "$1=\$$1\$2"
14724 }
14725
14726 _LT_EOF
14727 ;;
14728 esac
14729
14730
14731 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14732 || (rm -f "$cfgfile"; exit 1)
14733
14734 mv -f "$cfgfile" "$ofile" ||
14735 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14736 chmod +x "$ofile"
14737
14738 ;;
14739
14740 esac
14741 done # for ac_tag
14742
14743
14744 as_fn_exit 0
14745 _ACEOF
14746 ac_clean_files=$ac_clean_files_save
14747
14748 test $ac_write_fail = 0 ||
14749 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14750
14751
14752 # configure is writing to config.log, and then calls config.status.
14753 # config.status does its own redirection, appending to config.log.
14754 # Unfortunately, on DOS this fails, as config.log is still kept open
14755 # by configure, so config.status won't be able to write to it; its
14756 # output is simply discarded. So we exec the FD to /dev/null,
14757 # effectively closing config.log, so it can be properly (re)opened and
14758 # appended to by config.status. When coming back to configure, we
14759 # need to make the FD available again.
14760 if test "$no_create" != yes; then
14761 ac_cs_success=:
14762 ac_config_status_args=
14763 test "$silent" = yes &&
14764 ac_config_status_args="$ac_config_status_args --quiet"
14765 exec 5>/dev/null
14766 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14767 exec 5>>config.log
14768 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14769 # would make configure fail if this is the last instruction.
14770 $ac_cs_success || as_fn_exit 1
14771 fi
14772 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14774 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14775 fi
14776
14777