Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for startup-notification 0.12.
4 #
5 # Report bugs to <http://www.freedesktop.org/Software/startup-notification>.
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 [email protected] and
250 $0: http://www.freedesktop.org/Software/startup-notification
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='startup-notification'
573 PACKAGE_TARNAME='startup-notification'
574 PACKAGE_VERSION='0.12'
575 PACKAGE_STRING='startup-notification 0.12'
576 PACKAGE_BUGREPORT='http://www.freedesktop.org/Software/startup-notification'
577 PACKAGE_URL=''
578
579 ac_unique_file="libsn/sn-launchee.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 LIBSN_LIBS
621 LIBSN_CFLAGS
622 x11_xcb_LIBS
623 x11_xcb_CFLAGS
624 xcb_event_LIBS
625 xcb_event_CFLAGS
626 xcb_aux_LIBS
627 xcb_aux_CFLAGS
628 xcb_LIBS
629 xcb_CFLAGS
630 PKG_CONFIG_LIBDIR
631 PKG_CONFIG_PATH
632 PKG_CONFIG
633 X_EXTRA_LIBS
634 X_LIBS
635 X_PRE_LIBS
636 X_CFLAGS
637 XMKMF
638 OTOOL64
639 OTOOL
640 LIPO
641 NMEDIT
642 DSYMUTIL
643 MANIFEST_TOOL
644 RANLIB
645 ac_ct_AR
646 AR
647 LN_S
648 NM
649 ac_ct_DUMPBIN
650 DUMPBIN
651 LD
652 FGREP
653 SED
654 LIBTOOL
655 OBJDUMP
656 DLLTOOL
657 AS
658 host_os
659 host_vendor
660 host_cpu
661 host
662 build_os
663 build_vendor
664 build_cpu
665 build
666 EGREP
667 GREP
668 CPP
669 am__fastdepCC_FALSE
670 am__fastdepCC_TRUE
671 CCDEPMODE
672 AMDEPBACKSLASH
673 AMDEP_FALSE
674 AMDEP_TRUE
675 am__quote
676 am__include
677 DEPDIR
678 OBJEXT
679 EXEEXT
680 ac_ct_CC
681 CPPFLAGS
682 LDFLAGS
683 CFLAGS
684 CC
685 MAINT
686 MAINTAINER_MODE_FALSE
687 MAINTAINER_MODE_TRUE
688 ACLOCAL_AMFLAGS
689 am__untar
690 am__tar
691 AMTAR
692 am__leading_dot
693 SET_MAKE
694 AWK
695 mkdir_p
696 MKDIR_P
697 INSTALL_STRIP_PROGRAM
698 STRIP
699 install_sh
700 MAKEINFO
701 AUTOHEADER
702 AUTOMAKE
703 AUTOCONF
704 ACLOCAL
705 VERSION
706 PACKAGE
707 CYGPATH_W
708 am__isrc
709 INSTALL_DATA
710 INSTALL_SCRIPT
711 INSTALL_PROGRAM
712 target_alias
713 host_alias
714 build_alias
715 LIBS
716 ECHO_T
717 ECHO_N
718 ECHO_C
719 DEFS
720 mandir
721 localedir
722 libdir
723 psdir
724 pdfdir
725 dvidir
726 htmldir
727 infodir
728 docdir
729 oldincludedir
730 includedir
731 localstatedir
732 sharedstatedir
733 sysconfdir
734 datadir
735 datarootdir
736 libexecdir
737 sbindir
738 bindir
739 program_transform_name
740 prefix
741 exec_prefix
742 PACKAGE_URL
743 PACKAGE_BUGREPORT
744 PACKAGE_STRING
745 PACKAGE_VERSION
746 PACKAGE_TARNAME
747 PACKAGE_NAME
748 PATH_SEPARATOR
749 SHELL'
750 ac_subst_files=''
751 ac_user_opts='
752 enable_option_checking
753 enable_maintainer_mode
754 enable_dependency_tracking
755 enable_shared
756 enable_static
757 with_pic
758 enable_fast_install
759 with_gnu_ld
760 with_sysroot
761 enable_libtool_lock
762 with_x
763 '
764 ac_precious_vars='build_alias
765 host_alias
766 target_alias
767 CC
768 CFLAGS
769 LDFLAGS
770 LIBS
771 CPPFLAGS
772 CPP
773 XMKMF
774 PKG_CONFIG
775 PKG_CONFIG_PATH
776 PKG_CONFIG_LIBDIR
777 xcb_CFLAGS
778 xcb_LIBS
779 xcb_aux_CFLAGS
780 xcb_aux_LIBS
781 xcb_event_CFLAGS
782 xcb_event_LIBS
783 x11_xcb_CFLAGS
784 x11_xcb_LIBS'
785
786
787 # Initialize some variables set by options.
788 ac_init_help=
789 ac_init_version=false
790 ac_unrecognized_opts=
791 ac_unrecognized_sep=
792 # The variables have the same names as the options, with
793 # dashes changed to underlines.
794 cache_file=/dev/null
795 exec_prefix=NONE
796 no_create=
797 no_recursion=
798 prefix=NONE
799 program_prefix=NONE
800 program_suffix=NONE
801 program_transform_name=s,x,x,
802 silent=
803 site=
804 srcdir=
805 verbose=
806 x_includes=NONE
807 x_libraries=NONE
808
809 # Installation directory options.
810 # These are left unexpanded so users can "make install exec_prefix=/foo"
811 # and all the variables that are supposed to be based on exec_prefix
812 # by default will actually change.
813 # Use braces instead of parens because sh, perl, etc. also accept them.
814 # (The list follows the same order as the GNU Coding Standards.)
815 bindir='${exec_prefix}/bin'
816 sbindir='${exec_prefix}/sbin'
817 libexecdir='${exec_prefix}/libexec'
818 datarootdir='${prefix}/share'
819 datadir='${datarootdir}'
820 sysconfdir='${prefix}/etc'
821 sharedstatedir='${prefix}/com'
822 localstatedir='${prefix}/var'
823 includedir='${prefix}/include'
824 oldincludedir='/usr/include'
825 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826 infodir='${datarootdir}/info'
827 htmldir='${docdir}'
828 dvidir='${docdir}'
829 pdfdir='${docdir}'
830 psdir='${docdir}'
831 libdir='${exec_prefix}/lib'
832 localedir='${datarootdir}/locale'
833 mandir='${datarootdir}/man'
834
835 ac_prev=
836 ac_dashdash=
837 for ac_option
838 do
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\$ac_option
842 ac_prev=
843 continue
844 fi
845
846 case $ac_option in
847 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 *=) ac_optarg= ;;
849 *) ac_optarg=yes ;;
850 esac
851
852 # Accept the important Cygnus configure options, so we can diagnose typos.
853
854 case $ac_dashdash$ac_option in
855 --)
856 ac_dashdash=yes ;;
857
858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
859 ac_prev=bindir ;;
860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861 bindir=$ac_optarg ;;
862
863 -build | --build | --buil | --bui | --bu)
864 ac_prev=build_alias ;;
865 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866 build_alias=$ac_optarg ;;
867
868 -cache-file | --cache-file | --cache-fil | --cache-fi \
869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870 ac_prev=cache_file ;;
871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873 cache_file=$ac_optarg ;;
874
875 --config-cache | -C)
876 cache_file=config.cache ;;
877
878 -datadir | --datadir | --datadi | --datad)
879 ac_prev=datadir ;;
880 -datadir=* | --datadir=* | --datadi=* | --datad=*)
881 datadir=$ac_optarg ;;
882
883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884 | --dataroo | --dataro | --datar)
885 ac_prev=datarootdir ;;
886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888 datarootdir=$ac_optarg ;;
889
890 -disable-* | --disable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error $? "invalid feature name: $ac_useropt"
895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
898 *"
899 "enable_$ac_useropt"
900 "*) ;;
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
903 esac
904 eval enable_$ac_useropt=no ;;
905
906 -docdir | --docdir | --docdi | --doc | --do)
907 ac_prev=docdir ;;
908 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 docdir=$ac_optarg ;;
910
911 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912 ac_prev=dvidir ;;
913 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 dvidir=$ac_optarg ;;
915
916 -enable-* | --enable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error $? "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
924 *"
925 "enable_$ac_useropt"
926 "*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
929 esac
930 eval enable_$ac_useropt=\$ac_optarg ;;
931
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev=exec_prefix ;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
939 exec_prefix=$ac_optarg ;;
940
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
943 with_gas=yes ;;
944
945 -help | --help | --hel | --he | -h)
946 ac_init_help=long ;;
947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948 ac_init_help=recursive ;;
949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950 ac_init_help=short ;;
951
952 -host | --host | --hos | --ho)
953 ac_prev=host_alias ;;
954 -host=* | --host=* | --hos=* | --ho=*)
955 host_alias=$ac_optarg ;;
956
957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958 ac_prev=htmldir ;;
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960 | --ht=*)
961 htmldir=$ac_optarg ;;
962
963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev=includedir ;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
968 includedir=$ac_optarg ;;
969
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
971 ac_prev=infodir ;;
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973 infodir=$ac_optarg ;;
974
975 -libdir | --libdir | --libdi | --libd)
976 ac_prev=libdir ;;
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
978 libdir=$ac_optarg ;;
979
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev=libexecdir ;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
985 libexecdir=$ac_optarg ;;
986
987 -localedir | --localedir | --localedi | --localed | --locale)
988 ac_prev=localedir ;;
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
991
992 -localstatedir | --localstatedir | --localstatedi | --localstated \
993 | --localstate | --localstat | --localsta | --localst | --locals)
994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997 localstatedir=$ac_optarg ;;
998
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000 ac_prev=mandir ;;
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002 mandir=$ac_optarg ;;
1003
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1006 with_fp=no ;;
1007
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n)
1010 no_create=yes ;;
1011
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 no_recursion=yes ;;
1015
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev=oldincludedir ;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023 oldincludedir=$ac_optarg ;;
1024
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026 ac_prev=prefix ;;
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028 prefix=$ac_optarg ;;
1029
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev=program_prefix ;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035 program_prefix=$ac_optarg ;;
1036
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev=program_suffix ;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042 program_suffix=$ac_optarg ;;
1043
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev=program_transform_name ;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
1059 program_transform_name=$ac_optarg ;;
1060
1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062 ac_prev=pdfdir ;;
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir=$ac_optarg ;;
1065
1066 -psdir | --psdir | --psdi | --psd | --ps)
1067 ac_prev=psdir ;;
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069 psdir=$ac_optarg ;;
1070
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1073 silent=yes ;;
1074
1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076 ac_prev=sbindir ;;
1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078 | --sbi=* | --sb=*)
1079 sbindir=$ac_optarg ;;
1080
1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083 | --sharedst | --shareds | --shared | --share | --shar \
1084 | --sha | --sh)
1085 ac_prev=sharedstatedir ;;
1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089 | --sha=* | --sh=*)
1090 sharedstatedir=$ac_optarg ;;
1091
1092 -site | --site | --sit)
1093 ac_prev=site ;;
1094 -site=* | --site=* | --sit=*)
1095 site=$ac_optarg ;;
1096
1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098 ac_prev=srcdir ;;
1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100 srcdir=$ac_optarg ;;
1101
1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103 | --syscon | --sysco | --sysc | --sys | --sy)
1104 ac_prev=sysconfdir ;;
1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107 sysconfdir=$ac_optarg ;;
1108
1109 -target | --target | --targe | --targ | --tar | --ta | --t)
1110 ac_prev=target_alias ;;
1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112 target_alias=$ac_optarg ;;
1113
1114 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115 verbose=yes ;;
1116
1117 -version | --version | --versio | --versi | --vers | -V)
1118 ac_init_version=: ;;
1119
1120 -with-* | --with-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1128 *"
1129 "with_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval with_$ac_useropt=\$ac_optarg ;;
1135
1136 -without-* | --without-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1144 *"
1145 "with_$ac_useropt"
1146 "*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=no ;;
1151
1152 --x)
1153 # Obsolete; use --with-x.
1154 with_x=yes ;;
1155
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1162
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1169
1170 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1171 Try \`$0 --help' for more information"
1172 ;;
1173
1174 *=*)
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
1177 case $ac_envvar in #(
1178 '' | [0-9]* | *[!_$as_cr_alnum]* )
1179 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1180 esac
1181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1183
1184 *)
1185 # FIXME: should be removed in autoconf 3.0.
1186 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1190 ;;
1191
1192 esac
1193 done
1194
1195 if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197 as_fn_error $? "missing argument to $ac_option"
1198 fi
1199
1200 if test -n "$ac_unrecognized_opts"; then
1201 case $enable_option_checking in
1202 no) ;;
1203 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1204 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1205 esac
1206 fi
1207
1208 # Check all directory arguments for consistency.
1209 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir
1213 do
1214 eval ac_val=\$$ac_var
1215 # Remove trailing slashes.
1216 case $ac_val in
1217 */ )
1218 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1219 eval $ac_var=\$ac_val;;
1220 esac
1221 # Be sure to have absolute directory names.
1222 case $ac_val in
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 esac
1226 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1227 done
1228
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1232 build=$build_alias
1233 host=$host_alias
1234 target=$target_alias
1235
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
1240 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1241 If a cross compiler is detected then cross compile mode will be used" >&2
1242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1244 fi
1245 fi
1246
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250 test "$silent" = yes && exec 6>/dev/null
1251
1252
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 as_fn_error $? "working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 as_fn_error $? "pwd does not report name of working directory"
1259
1260
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)[^/].*/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\).*/{
1284 s//\1/
1285 q
1286 }
1287 s/.*/./; q'`
1288 srcdir=$ac_confdir
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 srcdir=..
1291 fi
1292 else
1293 ac_srcdir_defaulted=no
1294 fi
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298 fi
1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 ac_abs_confdir=`(
1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302 pwd)`
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 srcdir=.
1306 fi
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1310 case $srcdir in
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 esac
1313 for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 done
1319
1320 #
1321 # Report the --help message.
1322 #
1323 if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1326 cat <<_ACEOF
1327 \`configure' configures startup-notification 0.12 to adapt to many kinds of systems.
1328
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE. See below for descriptions of some of the useful variables.
1333
1334 Defaults for the options are specified in brackets.
1335
1336 Configuration:
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking ...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346
1347 Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 [PREFIX]
1352
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1357
1358 For better control, use the options below.
1359
1360 Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root
1376 [DATAROOTDIR/doc/startup-notification]
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
1381 _ACEOF
1382
1383 cat <<\_ACEOF
1384
1385 Program names:
1386 --program-prefix=PREFIX prepend PREFIX to installed program names
1387 --program-suffix=SUFFIX append SUFFIX to installed program names
1388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1389
1390 X features:
1391 --x-includes=DIR X include files are in DIR
1392 --x-libraries=DIR X library files are in DIR
1393
1394 System types:
1395 --build=BUILD configure for building on BUILD [guessed]
1396 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1397 _ACEOF
1398 fi
1399
1400 if test -n "$ac_init_help"; then
1401 case $ac_init_help in
1402 short | recursive ) echo "Configuration of startup-notification 0.12:";;
1403 esac
1404 cat <<\_ACEOF
1405
1406 Optional Features:
1407 --disable-option-checking ignore unrecognized --enable/--with options
1408 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1409 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1410 --enable-maintainer-mode enable make rules and dependencies not useful
1411 (and sometimes confusing) to the casual installer
1412 --disable-dependency-tracking speeds up one-time build
1413 --enable-dependency-tracking do not reject slow dependency extractors
1414 --enable-shared[=PKGS] build shared libraries [default=yes]
1415 --enable-static[=PKGS] build static libraries [default=yes]
1416 --enable-fast-install[=PKGS]
1417 optimize for fast installation [default=yes]
1418 --disable-libtool-lock avoid locking (might break parallel builds)
1419
1420 Optional Packages:
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-pic try to use only PIC/non-PIC objects [default=use
1424 both]
1425 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1426 --with-sysroot=DIR Search for dependent libraries within DIR
1427 (or the compiler's sysroot if not specified).
1428 --with-x use the X Window System
1429
1430 Some influential environment variables:
1431 CC C compiler command
1432 CFLAGS C compiler flags
1433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1434 nonstandard directory <lib dir>
1435 LIBS libraries to pass to the linker, e.g. -l<library>
1436 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1437 you have headers in a nonstandard directory <include dir>
1438 CPP C preprocessor
1439 XMKMF Path to xmkmf, Makefile generator for X Window System
1440 PKG_CONFIG path to pkg-config utility
1441 PKG_CONFIG_PATH
1442 directories to add to pkg-config's search path
1443 PKG_CONFIG_LIBDIR
1444 path overriding pkg-config's built-in search path
1445 xcb_CFLAGS C compiler flags for xcb, overriding pkg-config
1446 xcb_LIBS linker flags for xcb, overriding pkg-config
1447 xcb_aux_CFLAGS
1448 C compiler flags for xcb_aux, overriding pkg-config
1449 xcb_aux_LIBS
1450 linker flags for xcb_aux, overriding pkg-config
1451 xcb_event_CFLAGS
1452 C compiler flags for xcb_event, overriding pkg-config
1453 xcb_event_LIBS
1454 linker flags for xcb_event, overriding pkg-config
1455 x11_xcb_CFLAGS
1456 C compiler flags for x11_xcb, overriding pkg-config
1457 x11_xcb_LIBS
1458 linker flags for x11_xcb, overriding pkg-config
1459
1460 Use these variables to override the choices made by `configure' or to help
1461 it to find libraries and programs with nonstandard names/locations.
1462
1463 Report bugs to <http://www.freedesktop.org/Software/startup-notification>.
1464 _ACEOF
1465 ac_status=$?
1466 fi
1467
1468 if test "$ac_init_help" = "recursive"; then
1469 # If there are subdirs, report their specific --help.
1470 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1471 test -d "$ac_dir" ||
1472 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1473 continue
1474 ac_builddir=.
1475
1476 case "$ac_dir" in
1477 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 *)
1479 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1480 # A ".." for each directory in $ac_dir_suffix.
1481 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1482 case $ac_top_builddir_sub in
1483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1485 esac ;;
1486 esac
1487 ac_abs_top_builddir=$ac_pwd
1488 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1489 # for backward compatibility:
1490 ac_top_builddir=$ac_top_build_prefix
1491
1492 case $srcdir in
1493 .) # We are building in place.
1494 ac_srcdir=.
1495 ac_top_srcdir=$ac_top_builddir_sub
1496 ac_abs_top_srcdir=$ac_pwd ;;
1497 [\\/]* | ?:[\\/]* ) # Absolute name.
1498 ac_srcdir=$srcdir$ac_dir_suffix;
1499 ac_top_srcdir=$srcdir
1500 ac_abs_top_srcdir=$srcdir ;;
1501 *) # Relative name.
1502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1503 ac_top_srcdir=$ac_top_build_prefix$srcdir
1504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1505 esac
1506 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507
1508 cd "$ac_dir" || { ac_status=$?; continue; }
1509 # Check for guested configure.
1510 if test -f "$ac_srcdir/configure.gnu"; then
1511 echo &&
1512 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1513 elif test -f "$ac_srcdir/configure"; then
1514 echo &&
1515 $SHELL "$ac_srcdir/configure" --help=recursive
1516 else
1517 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1518 fi || ac_status=$?
1519 cd "$ac_pwd" || { ac_status=$?; break; }
1520 done
1521 fi
1522
1523 test -n "$ac_init_help" && exit $ac_status
1524 if $ac_init_version; then
1525 cat <<\_ACEOF
1526 startup-notification configure 0.12
1527 generated by GNU Autoconf 2.68
1528
1529 Copyright (C) 2010 Free Software Foundation, Inc.
1530 This configure script is free software; the Free Software Foundation
1531 gives unlimited permission to copy, distribute and modify it.
1532 _ACEOF
1533 exit
1534 fi
1535
1536 ## ------------------------ ##
1537 ## Autoconf initialization. ##
1538 ## ------------------------ ##
1539
1540 # ac_fn_c_try_compile LINENO
1541 # --------------------------
1542 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1543 ac_fn_c_try_compile ()
1544 {
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 rm -f conftest.$ac_objext
1547 if { { ac_try="$ac_compile"
1548 case "(($ac_try" in
1549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550 *) ac_try_echo=$ac_try;;
1551 esac
1552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553 $as_echo "$ac_try_echo"; } >&5
1554 (eval "$ac_compile") 2>conftest.err
1555 ac_status=$?
1556 if test -s conftest.err; then
1557 grep -v '^ *+' conftest.err >conftest.er1
1558 cat conftest.er1 >&5
1559 mv -f conftest.er1 conftest.err
1560 fi
1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; } && {
1563 test -z "$ac_c_werror_flag" ||
1564 test ! -s conftest.err
1565 } && test -s conftest.$ac_objext; then :
1566 ac_retval=0
1567 else
1568 $as_echo "$as_me: failed program was:" >&5
1569 sed 's/^/| /' conftest.$ac_ext >&5
1570
1571 ac_retval=1
1572 fi
1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574 as_fn_set_status $ac_retval
1575
1576 } # ac_fn_c_try_compile
1577
1578 # ac_fn_c_try_link LINENO
1579 # -----------------------
1580 # Try to link conftest.$ac_ext, and return whether this succeeded.
1581 ac_fn_c_try_link ()
1582 {
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 rm -f conftest.$ac_objext conftest$ac_exeext
1585 if { { ac_try="$ac_link"
1586 case "(($ac_try" in
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1589 esac
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_link") 2>conftest.err
1593 ac_status=$?
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1598 fi
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } && {
1601 test -z "$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 } && test -s conftest$ac_exeext && {
1604 test "$cross_compiling" = yes ||
1605 $as_test_x conftest$ac_exeext
1606 }; then :
1607 ac_retval=0
1608 else
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1611
1612 ac_retval=1
1613 fi
1614 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1615 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1616 # interfere with the next link command; also delete a directory that is
1617 # left behind by Apple's compiler. We do this before executing the actions.
1618 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620 as_fn_set_status $ac_retval
1621
1622 } # ac_fn_c_try_link
1623
1624 # ac_fn_c_try_cpp LINENO
1625 # ----------------------
1626 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_cpp ()
1628 {
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 if { { ac_try="$ac_cpp conftest.$ac_ext"
1631 case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1643 fi
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } > conftest.i && {
1646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 }; then :
1649 ac_retval=0
1650 else
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=1
1655 fi
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1658
1659 } # ac_fn_c_try_cpp
1660
1661 # ac_fn_c_try_run LINENO
1662 # ----------------------
1663 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1664 # that executables *can* be run.
1665 ac_fn_c_try_run ()
1666 {
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 if { { ac_try="$ac_link"
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_link") 2>&5
1676 ac_status=$?
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1679 { { case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_try") 2>&5
1686 ac_status=$?
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; }; }; then :
1689 ac_retval=0
1690 else
1691 $as_echo "$as_me: program exited with status $ac_status" >&5
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=$ac_status
1696 fi
1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1700
1701 } # ac_fn_c_try_run
1702
1703 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1704 # -------------------------------------------------------
1705 # Tests whether HEADER exists and can be compiled using the include files in
1706 # INCLUDES, setting the cache variable VAR accordingly.
1707 ac_fn_c_check_header_compile ()
1708 {
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1714 else
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1717 $4
1718 #include <$2>
1719 _ACEOF
1720 if ac_fn_c_try_compile "$LINENO"; then :
1721 eval "$3=yes"
1722 else
1723 eval "$3=no"
1724 fi
1725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1726 fi
1727 eval ac_res=\$$3
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731
1732 } # ac_fn_c_check_header_compile
1733
1734 # ac_fn_c_check_func LINENO FUNC VAR
1735 # ----------------------------------
1736 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1737 ac_fn_c_check_func ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if eval \${$3+:} false; then :
1743 $as_echo_n "(cached) " >&6
1744 else
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1747 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1749 #define $2 innocuous_$2
1750
1751 /* System header to define __stub macros and hopefully few prototypes,
1752 which can conflict with char $2 (); below.
1753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1754 <limits.h> exists even on freestanding compilers. */
1755
1756 #ifdef __STDC__
1757 # include <limits.h>
1758 #else
1759 # include <assert.h>
1760 #endif
1761
1762 #undef $2
1763
1764 /* Override any GCC internal prototype to avoid an error.
1765 Use char because int might match the return type of a GCC
1766 builtin and then its argument prototype would still apply. */
1767 #ifdef __cplusplus
1768 extern "C"
1769 #endif
1770 char $2 ();
1771 /* The GNU C library defines this for functions which it implements
1772 to always fail with ENOSYS. Some functions are actually named
1773 something starting with __ and the normal name is an alias. */
1774 #if defined __stub_$2 || defined __stub___$2
1775 choke me
1776 #endif
1777
1778 int
1779 main ()
1780 {
1781 return $2 ();
1782 ;
1783 return 0;
1784 }
1785 _ACEOF
1786 if ac_fn_c_try_link "$LINENO"; then :
1787 eval "$3=yes"
1788 else
1789 eval "$3=no"
1790 fi
1791 rm -f core conftest.err conftest.$ac_objext \
1792 conftest$ac_exeext conftest.$ac_ext
1793 fi
1794 eval ac_res=\$$3
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796 $as_echo "$ac_res" >&6; }
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798
1799 } # ac_fn_c_check_func
1800
1801 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1802 # -------------------------------------------------------
1803 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1804 # the include files in INCLUDES and setting the cache variable VAR
1805 # accordingly.
1806 ac_fn_c_check_header_mongrel ()
1807 {
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 if eval \${$3+:} false; then :
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 $as_echo_n "checking for $2... " >&6; }
1812 if eval \${$3+:} false; then :
1813 $as_echo_n "(cached) " >&6
1814 fi
1815 eval ac_res=\$$3
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818 else
1819 # Is the header compilable?
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1821 $as_echo_n "checking $2 usability... " >&6; }
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1824 $4
1825 #include <$2>
1826 _ACEOF
1827 if ac_fn_c_try_compile "$LINENO"; then :
1828 ac_header_compiler=yes
1829 else
1830 ac_header_compiler=no
1831 fi
1832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1834 $as_echo "$ac_header_compiler" >&6; }
1835
1836 # Is the header present?
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1838 $as_echo_n "checking $2 presence... " >&6; }
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1841 #include <$2>
1842 _ACEOF
1843 if ac_fn_c_try_cpp "$LINENO"; then :
1844 ac_header_preproc=yes
1845 else
1846 ac_header_preproc=no
1847 fi
1848 rm -f conftest.err conftest.i conftest.$ac_ext
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1850 $as_echo "$ac_header_preproc" >&6; }
1851
1852 # So? What about this header?
1853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1854 yes:no: )
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1856 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859 ;;
1860 no:yes:* )
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1862 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1864 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1866 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1868 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1870 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1871 ( $as_echo "## ----------------------------------------------------------------------- ##
1872 ## Report this to http://www.freedesktop.org/Software/startup-notification ##
1873 ## ----------------------------------------------------------------------- ##"
1874 ) | sed "s/^/$as_me: WARNING: /" >&2
1875 ;;
1876 esac
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if eval \${$3+:} false; then :
1880 $as_echo_n "(cached) " >&6
1881 else
1882 eval "$3=\$ac_header_compiler"
1883 fi
1884 eval ac_res=\$$3
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887 fi
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890 } # ac_fn_c_check_header_mongrel
1891 cat >config.log <<_ACEOF
1892 This file contains any messages produced by compilers while
1893 running configure, to aid debugging if configure makes a mistake.
1894
1895 It was created by startup-notification $as_me 0.12, which was
1896 generated by GNU Autoconf 2.68. Invocation command line was
1897
1898 $ $0 $@
1899
1900 _ACEOF
1901 exec 5>>config.log
1902 {
1903 cat <<_ASUNAME
1904 ## --------- ##
1905 ## Platform. ##
1906 ## --------- ##
1907
1908 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1909 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1910 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1911 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1912 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1913
1914 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1915 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1916
1917 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1918 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1919 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1920 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1921 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1922 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1923 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1924
1925 _ASUNAME
1926
1927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 for as_dir in $PATH
1929 do
1930 IFS=$as_save_IFS
1931 test -z "$as_dir" && as_dir=.
1932 $as_echo "PATH: $as_dir"
1933 done
1934 IFS=$as_save_IFS
1935
1936 } >&5
1937
1938 cat >&5 <<_ACEOF
1939
1940
1941 ## ----------- ##
1942 ## Core tests. ##
1943 ## ----------- ##
1944
1945 _ACEOF
1946
1947
1948 # Keep a trace of the command line.
1949 # Strip out --no-create and --no-recursion so they do not pile up.
1950 # Strip out --silent because we don't want to record it for future runs.
1951 # Also quote any args containing shell meta-characters.
1952 # Make two passes to allow for proper duplicate-argument suppression.
1953 ac_configure_args=
1954 ac_configure_args0=
1955 ac_configure_args1=
1956 ac_must_keep_next=false
1957 for ac_pass in 1 2
1958 do
1959 for ac_arg
1960 do
1961 case $ac_arg in
1962 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1963 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1964 | -silent | --silent | --silen | --sile | --sil)
1965 continue ;;
1966 *\'*)
1967 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1968 esac
1969 case $ac_pass in
1970 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1971 2)
1972 as_fn_append ac_configure_args1 " '$ac_arg'"
1973 if test $ac_must_keep_next = true; then
1974 ac_must_keep_next=false # Got value, back to normal.
1975 else
1976 case $ac_arg in
1977 *=* | --config-cache | -C | -disable-* | --disable-* \
1978 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1979 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1980 | -with-* | --with-* | -without-* | --without-* | --x)
1981 case "$ac_configure_args0 " in
1982 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1983 esac
1984 ;;
1985 -* ) ac_must_keep_next=true ;;
1986 esac
1987 fi
1988 as_fn_append ac_configure_args " '$ac_arg'"
1989 ;;
1990 esac
1991 done
1992 done
1993 { ac_configure_args0=; unset ac_configure_args0;}
1994 { ac_configure_args1=; unset ac_configure_args1;}
1995
1996 # When interrupted or exit'd, cleanup temporary files, and complete
1997 # config.log. We remove comments because anyway the quotes in there
1998 # would cause problems or look ugly.
1999 # WARNING: Use '\'' to represent an apostrophe within the trap.
2000 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2001 trap 'exit_status=$?
2002 # Save into config.log some information that might help in debugging.
2003 {
2004 echo
2005
2006 $as_echo "## ---------------- ##
2007 ## Cache variables. ##
2008 ## ---------------- ##"
2009 echo
2010 # The following way of writing the cache mishandles newlines in values,
2011 (
2012 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2013 eval ac_val=\$$ac_var
2014 case $ac_val in #(
2015 *${as_nl}*)
2016 case $ac_var in #(
2017 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2018 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2019 esac
2020 case $ac_var in #(
2021 _ | IFS | as_nl) ;; #(
2022 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2023 *) { eval $ac_var=; unset $ac_var;} ;;
2024 esac ;;
2025 esac
2026 done
2027 (set) 2>&1 |
2028 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2029 *${as_nl}ac_space=\ *)
2030 sed -n \
2031 "s/'\''/'\''\\\\'\'''\''/g;
2032 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2033 ;; #(
2034 *)
2035 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2036 ;;
2037 esac |
2038 sort
2039 )
2040 echo
2041
2042 $as_echo "## ----------------- ##
2043 ## Output variables. ##
2044 ## ----------------- ##"
2045 echo
2046 for ac_var in $ac_subst_vars
2047 do
2048 eval ac_val=\$$ac_var
2049 case $ac_val in
2050 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2051 esac
2052 $as_echo "$ac_var='\''$ac_val'\''"
2053 done | sort
2054 echo
2055
2056 if test -n "$ac_subst_files"; then
2057 $as_echo "## ------------------- ##
2058 ## File substitutions. ##
2059 ## ------------------- ##"
2060 echo
2061 for ac_var in $ac_subst_files
2062 do
2063 eval ac_val=\$$ac_var
2064 case $ac_val in
2065 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2066 esac
2067 $as_echo "$ac_var='\''$ac_val'\''"
2068 done | sort
2069 echo
2070 fi
2071
2072 if test -s confdefs.h; then
2073 $as_echo "## ----------- ##
2074 ## confdefs.h. ##
2075 ## ----------- ##"
2076 echo
2077 cat confdefs.h
2078 echo
2079 fi
2080 test "$ac_signal" != 0 &&
2081 $as_echo "$as_me: caught signal $ac_signal"
2082 $as_echo "$as_me: exit $exit_status"
2083 } >&5
2084 rm -f core *.core core.conftest.* &&
2085 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2086 exit $exit_status
2087 ' 0
2088 for ac_signal in 1 2 13 15; do
2089 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2090 done
2091 ac_signal=0
2092
2093 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2094 rm -f -r conftest* confdefs.h
2095
2096 $as_echo "/* confdefs.h */" > confdefs.h
2097
2098 # Predefined preprocessor variables.
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_NAME "$PACKAGE_NAME"
2102 _ACEOF
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2106 _ACEOF
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2110 _ACEOF
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_STRING "$PACKAGE_STRING"
2114 _ACEOF
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2118 _ACEOF
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_URL "$PACKAGE_URL"
2122 _ACEOF
2123
2124
2125 # Let the site file select an alternate cache file if it wants to.
2126 # Prefer an explicitly selected file to automatically selected ones.
2127 ac_site_file1=NONE
2128 ac_site_file2=NONE
2129 if test -n "$CONFIG_SITE"; then
2130 # We do not want a PATH search for config.site.
2131 case $CONFIG_SITE in #((
2132 -*) ac_site_file1=./$CONFIG_SITE;;
2133 */*) ac_site_file1=$CONFIG_SITE;;
2134 *) ac_site_file1=./$CONFIG_SITE;;
2135 esac
2136 elif test "x$prefix" != xNONE; then
2137 ac_site_file1=$prefix/share/config.site
2138 ac_site_file2=$prefix/etc/config.site
2139 else
2140 ac_site_file1=$ac_default_prefix/share/config.site
2141 ac_site_file2=$ac_default_prefix/etc/config.site
2142 fi
2143 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2144 do
2145 test "x$ac_site_file" = xNONE && continue
2146 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2148 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2149 sed 's/^/| /' "$ac_site_file" >&5
2150 . "$ac_site_file" \
2151 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2153 as_fn_error $? "failed to load site script $ac_site_file
2154 See \`config.log' for more details" "$LINENO" 5; }
2155 fi
2156 done
2157
2158 if test -r "$cache_file"; then
2159 # Some versions of bash will fail to source /dev/null (special files
2160 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2161 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2163 $as_echo "$as_me: loading cache $cache_file" >&6;}
2164 case $cache_file in
2165 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2166 *) . "./$cache_file";;
2167 esac
2168 fi
2169 else
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2171 $as_echo "$as_me: creating cache $cache_file" >&6;}
2172 >$cache_file
2173 fi
2174
2175 # Check that the precious variables saved in the cache have kept the same
2176 # value.
2177 ac_cache_corrupted=false
2178 for ac_var in $ac_precious_vars; do
2179 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2180 eval ac_new_set=\$ac_env_${ac_var}_set
2181 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2182 eval ac_new_val=\$ac_env_${ac_var}_value
2183 case $ac_old_set,$ac_new_set in
2184 set,)
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2186 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2187 ac_cache_corrupted=: ;;
2188 ,set)
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2190 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2191 ac_cache_corrupted=: ;;
2192 ,);;
2193 *)
2194 if test "x$ac_old_val" != "x$ac_new_val"; then
2195 # differences in whitespace do not lead to failure.
2196 ac_old_val_w=`echo x $ac_old_val`
2197 ac_new_val_w=`echo x $ac_new_val`
2198 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2200 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2201 ac_cache_corrupted=:
2202 else
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2204 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2205 eval $ac_var=\$ac_old_val
2206 fi
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2208 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2210 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2211 fi;;
2212 esac
2213 # Pass precious variables to config.status.
2214 if test "$ac_new_set" = set; then
2215 case $ac_new_val in
2216 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2217 *) ac_arg=$ac_var=$ac_new_val ;;
2218 esac
2219 case " $ac_configure_args " in
2220 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2221 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2222 esac
2223 fi
2224 done
2225 if $ac_cache_corrupted; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2229 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2230 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2231 fi
2232 ## -------------------- ##
2233 ## Main body of script. ##
2234 ## -------------------- ##
2235
2236 ac_ext=c
2237 ac_cpp='$CPP $CPPFLAGS'
2238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2241
2242
2243
2244
2245 am__api_version='1.11'
2246
2247 ac_aux_dir=
2248 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2249 if test -f "$ac_dir/install-sh"; then
2250 ac_aux_dir=$ac_dir
2251 ac_install_sh="$ac_aux_dir/install-sh -c"
2252 break
2253 elif test -f "$ac_dir/install.sh"; then
2254 ac_aux_dir=$ac_dir
2255 ac_install_sh="$ac_aux_dir/install.sh -c"
2256 break
2257 elif test -f "$ac_dir/shtool"; then
2258 ac_aux_dir=$ac_dir
2259 ac_install_sh="$ac_aux_dir/shtool install -c"
2260 break
2261 fi
2262 done
2263 if test -z "$ac_aux_dir"; then
2264 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2265 fi
2266
2267 # These three variables are undocumented and unsupported,
2268 # and are intended to be withdrawn in a future Autoconf release.
2269 # They can cause serious problems if a builder's source tree is in a directory
2270 # whose full name contains unusual characters.
2271 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2272 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2273 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2274
2275
2276 # Find a good install program. We prefer a C program (faster),
2277 # so one script is as good as another. But avoid the broken or
2278 # incompatible versions:
2279 # SysV /etc/install, /usr/sbin/install
2280 # SunOS /usr/etc/install
2281 # IRIX /sbin/install
2282 # AIX /bin/install
2283 # AmigaOS /C/install, which installs bootblocks on floppy discs
2284 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2285 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2286 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2287 # OS/2's system install, which has a completely different semantic
2288 # ./install, which can be erroneously created by make from ./install.sh.
2289 # Reject install programs that cannot install multiple files.
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2291 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2292 if test -z "$INSTALL"; then
2293 if ${ac_cv_path_install+:} false; then :
2294 $as_echo_n "(cached) " >&6
2295 else
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 for as_dir in $PATH
2298 do
2299 IFS=$as_save_IFS
2300 test -z "$as_dir" && as_dir=.
2301 # Account for people who put trailing slashes in PATH elements.
2302 case $as_dir/ in #((
2303 ./ | .// | /[cC]/* | \
2304 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2305 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2306 /usr/ucb/* ) ;;
2307 *)
2308 # OSF1 and SCO ODT 3.0 have their own names for install.
2309 # Don't use installbsd from OSF since it installs stuff as root
2310 # by default.
2311 for ac_prog in ginstall scoinst install; do
2312 for ac_exec_ext in '' $ac_executable_extensions; do
2313 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2314 if test $ac_prog = install &&
2315 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2316 # AIX install. It has an incompatible calling convention.
2317 :
2318 elif test $ac_prog = install &&
2319 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2320 # program-specific install script used by HP pwplus--don't use.
2321 :
2322 else
2323 rm -rf conftest.one conftest.two conftest.dir
2324 echo one > conftest.one
2325 echo two > conftest.two
2326 mkdir conftest.dir
2327 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2328 test -s conftest.one && test -s conftest.two &&
2329 test -s conftest.dir/conftest.one &&
2330 test -s conftest.dir/conftest.two
2331 then
2332 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2333 break 3
2334 fi
2335 fi
2336 fi
2337 done
2338 done
2339 ;;
2340 esac
2341
2342 done
2343 IFS=$as_save_IFS
2344
2345 rm -rf conftest.one conftest.two conftest.dir
2346
2347 fi
2348 if test "${ac_cv_path_install+set}" = set; then
2349 INSTALL=$ac_cv_path_install
2350 else
2351 # As a last resort, use the slow shell script. Don't cache a
2352 # value for INSTALL within a source directory, because that will
2353 # break other packages using the cache if that directory is
2354 # removed, or if the value is a relative name.
2355 INSTALL=$ac_install_sh
2356 fi
2357 fi
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2359 $as_echo "$INSTALL" >&6; }
2360
2361 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2362 # It thinks the first close brace ends the variable substitution.
2363 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2364
2365 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2366
2367 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2368
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2370 $as_echo_n "checking whether build environment is sane... " >&6; }
2371 # Just in case
2372 sleep 1
2373 echo timestamp > conftest.file
2374 # Reject unsafe characters in $srcdir or the absolute working directory
2375 # name. Accept space and tab only in the latter.
2376 am_lf='
2377 '
2378 case `pwd` in
2379 *[\\\"\#\$\&\'\`$am_lf]*)
2380 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2381 esac
2382 case $srcdir in
2383 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2384 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2385 esac
2386
2387 # Do `set' in a subshell so we don't clobber the current shell's
2388 # arguments. Must try -L first in case configure is actually a
2389 # symlink; some systems play weird games with the mod time of symlinks
2390 # (eg FreeBSD returns the mod time of the symlink's containing
2391 # directory).
2392 if (
2393 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2394 if test "$*" = "X"; then
2395 # -L didn't work.
2396 set X `ls -t "$srcdir/configure" conftest.file`
2397 fi
2398 rm -f conftest.file
2399 if test "$*" != "X $srcdir/configure conftest.file" \
2400 && test "$*" != "X conftest.file $srcdir/configure"; then
2401
2402 # If neither matched, then we have a broken ls. This can happen
2403 # if, for instance, CONFIG_SHELL is bash and it inherits a
2404 # broken ls alias from the environment. This has actually
2405 # happened. Such a system could not be considered "sane".
2406 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2407 alias in your environment" "$LINENO" 5
2408 fi
2409
2410 test "$2" = conftest.file
2411 )
2412 then
2413 # Ok.
2414 :
2415 else
2416 as_fn_error $? "newly created file is older than distributed files!
2417 Check your system clock" "$LINENO" 5
2418 fi
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2420 $as_echo "yes" >&6; }
2421 test "$program_prefix" != NONE &&
2422 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2423 # Use a double $ so make ignores it.
2424 test "$program_suffix" != NONE &&
2425 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2426 # Double any \ or $.
2427 # By default was `s,x,x', remove it if useless.
2428 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2429 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2430
2431 # expand $ac_aux_dir to an absolute path
2432 am_aux_dir=`cd $ac_aux_dir && pwd`
2433
2434 if test x"${MISSING+set}" != xset; then
2435 case $am_aux_dir in
2436 *\ * | *\ *)
2437 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2438 *)
2439 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2440 esac
2441 fi
2442 # Use eval to expand $SHELL
2443 if eval "$MISSING --run true"; then
2444 am_missing_run="$MISSING --run "
2445 else
2446 am_missing_run=
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2448 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2449 fi
2450
2451 if test x"${install_sh}" != xset; then
2452 case $am_aux_dir in
2453 *\ * | *\ *)
2454 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2455 *)
2456 install_sh="\${SHELL} $am_aux_dir/install-sh"
2457 esac
2458 fi
2459
2460 # Installed binaries are usually stripped using `strip' when the user
2461 # run `make install-strip'. However `strip' might not be the right
2462 # tool to use in cross-compilation environments, therefore Automake
2463 # will honor the `STRIP' environment variable to overrule this program.
2464 if test "$cross_compiling" != no; then
2465 if test -n "$ac_tool_prefix"; then
2466 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2467 set dummy ${ac_tool_prefix}strip; ac_word=$2
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2469 $as_echo_n "checking for $ac_word... " >&6; }
2470 if ${ac_cv_prog_STRIP+:} false; then :
2471 $as_echo_n "(cached) " >&6
2472 else
2473 if test -n "$STRIP"; then
2474 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2475 else
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH
2478 do
2479 IFS=$as_save_IFS
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2483 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 break 2
2486 fi
2487 done
2488 done
2489 IFS=$as_save_IFS
2490
2491 fi
2492 fi
2493 STRIP=$ac_cv_prog_STRIP
2494 if test -n "$STRIP"; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2496 $as_echo "$STRIP" >&6; }
2497 else
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2499 $as_echo "no" >&6; }
2500 fi
2501
2502
2503 fi
2504 if test -z "$ac_cv_prog_STRIP"; then
2505 ac_ct_STRIP=$STRIP
2506 # Extract the first word of "strip", so it can be a program name with args.
2507 set dummy strip; ac_word=$2
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2509 $as_echo_n "checking for $ac_word... " >&6; }
2510 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2511 $as_echo_n "(cached) " >&6
2512 else
2513 if test -n "$ac_ct_STRIP"; then
2514 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2515 else
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH
2518 do
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523 ac_cv_prog_ac_ct_STRIP="strip"
2524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 break 2
2526 fi
2527 done
2528 done
2529 IFS=$as_save_IFS
2530
2531 fi
2532 fi
2533 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2534 if test -n "$ac_ct_STRIP"; then
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2536 $as_echo "$ac_ct_STRIP" >&6; }
2537 else
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2539 $as_echo "no" >&6; }
2540 fi
2541
2542 if test "x$ac_ct_STRIP" = x; then
2543 STRIP=":"
2544 else
2545 case $cross_compiling:$ac_tool_warned in
2546 yes:)
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2549 ac_tool_warned=yes ;;
2550 esac
2551 STRIP=$ac_ct_STRIP
2552 fi
2553 else
2554 STRIP="$ac_cv_prog_STRIP"
2555 fi
2556
2557 fi
2558 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2559
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2561 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2562 if test -z "$MKDIR_P"; then
2563 if ${ac_cv_path_mkdir+:} false; then :
2564 $as_echo_n "(cached) " >&6
2565 else
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2568 do
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 for ac_prog in mkdir gmkdir; do
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2574 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2575 'mkdir (GNU coreutils) '* | \
2576 'mkdir (coreutils) '* | \
2577 'mkdir (fileutils) '4.1*)
2578 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2579 break 3;;
2580 esac
2581 done
2582 done
2583 done
2584 IFS=$as_save_IFS
2585
2586 fi
2587
2588 test -d ./--version && rmdir ./--version
2589 if test "${ac_cv_path_mkdir+set}" = set; then
2590 MKDIR_P="$ac_cv_path_mkdir -p"
2591 else
2592 # As a last resort, use the slow shell script. Don't cache a
2593 # value for MKDIR_P within a source directory, because that will
2594 # break other packages using the cache if that directory is
2595 # removed, or if the value is a relative name.
2596 MKDIR_P="$ac_install_sh -d"
2597 fi
2598 fi
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2600 $as_echo "$MKDIR_P" >&6; }
2601
2602 mkdir_p="$MKDIR_P"
2603 case $mkdir_p in
2604 [\\/$]* | ?:[\\/]*) ;;
2605 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2606 esac
2607
2608 for ac_prog in gawk mawk nawk awk
2609 do
2610 # Extract the first word of "$ac_prog", so it can be a program name with args.
2611 set dummy $ac_prog; ac_word=$2
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2613 $as_echo_n "checking for $ac_word... " >&6; }
2614 if ${ac_cv_prog_AWK+:} false; then :
2615 $as_echo_n "(cached) " >&6
2616 else
2617 if test -n "$AWK"; then
2618 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2622 do
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627 ac_cv_prog_AWK="$ac_prog"
2628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 break 2
2630 fi
2631 done
2632 done
2633 IFS=$as_save_IFS
2634
2635 fi
2636 fi
2637 AWK=$ac_cv_prog_AWK
2638 if test -n "$AWK"; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2640 $as_echo "$AWK" >&6; }
2641 else
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2643 $as_echo "no" >&6; }
2644 fi
2645
2646
2647 test -n "$AWK" && break
2648 done
2649
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2651 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2652 set x ${MAKE-make}
2653 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2654 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2655 $as_echo_n "(cached) " >&6
2656 else
2657 cat >conftest.make <<\_ACEOF
2658 SHELL = /bin/sh
2659 all:
2660 @echo '@@@%%%=$(MAKE)=@@@%%%'
2661 _ACEOF
2662 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2663 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2664 *@@@%%%=?*=@@@%%%*)
2665 eval ac_cv_prog_make_${ac_make}_set=yes;;
2666 *)
2667 eval ac_cv_prog_make_${ac_make}_set=no;;
2668 esac
2669 rm -f conftest.make
2670 fi
2671 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2673 $as_echo "yes" >&6; }
2674 SET_MAKE=
2675 else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2678 SET_MAKE="MAKE=${MAKE-make}"
2679 fi
2680
2681 rm -rf .tst 2>/dev/null
2682 mkdir .tst 2>/dev/null
2683 if test -d .tst; then
2684 am__leading_dot=.
2685 else
2686 am__leading_dot=_
2687 fi
2688 rmdir .tst 2>/dev/null
2689
2690 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2691 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2692 # is not polluted with repeated "-I."
2693 am__isrc=' -I$(srcdir)'
2694 # test to see if srcdir already configured
2695 if test -f $srcdir/config.status; then
2696 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2697 fi
2698 fi
2699
2700 # test whether we have cygpath
2701 if test -z "$CYGPATH_W"; then
2702 if (cygpath --version) >/dev/null 2>/dev/null; then
2703 CYGPATH_W='cygpath -w'
2704 else
2705 CYGPATH_W=echo
2706 fi
2707 fi
2708
2709
2710 # Define the identity of the package.
2711 PACKAGE='startup-notification'
2712 VERSION='0.12'
2713
2714
2715 cat >>confdefs.h <<_ACEOF
2716 #define PACKAGE "$PACKAGE"
2717 _ACEOF
2718
2719
2720 cat >>confdefs.h <<_ACEOF
2721 #define VERSION "$VERSION"
2722 _ACEOF
2723
2724 # Some tools Automake needs.
2725
2726 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2727
2728
2729 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2730
2731
2732 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2733
2734
2735 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2736
2737
2738 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2739
2740 # We need awk for the "check" target. The system "awk" is bad on
2741 # some platforms.
2742 # Always define AMTAR for backward compatibility.
2743
2744 AMTAR=${AMTAR-"${am_missing_run}tar"}
2745
2746 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2747
2748
2749
2750
2751
2752 ac_config_headers="$ac_config_headers config.h"
2753
2754
2755 # Honor aclocal flags
2756 ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
2757
2758
2759
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2761 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2762 # Check whether --enable-maintainer-mode was given.
2763 if test "${enable_maintainer_mode+set}" = set; then :
2764 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2765 else
2766 USE_MAINTAINER_MODE=no
2767 fi
2768
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2770 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2771 if test $USE_MAINTAINER_MODE = yes; then
2772 MAINTAINER_MODE_TRUE=
2773 MAINTAINER_MODE_FALSE='#'
2774 else
2775 MAINTAINER_MODE_TRUE='#'
2776 MAINTAINER_MODE_FALSE=
2777 fi
2778
2779 MAINT=$MAINTAINER_MODE_TRUE
2780
2781
2782
2783 ac_ext=c
2784 ac_cpp='$CPP $CPPFLAGS'
2785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2788 if test -n "$ac_tool_prefix"; then
2789 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2790 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792 $as_echo_n "checking for $ac_word... " >&6; }
2793 if ${ac_cv_prog_CC+:} false; then :
2794 $as_echo_n "(cached) " >&6
2795 else
2796 if test -n "$CC"; then
2797 ac_cv_prog_CC="$CC" # Let the user override the test.
2798 else
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 for as_dir in $PATH
2801 do
2802 IFS=$as_save_IFS
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2806 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 break 2
2809 fi
2810 done
2811 done
2812 IFS=$as_save_IFS
2813
2814 fi
2815 fi
2816 CC=$ac_cv_prog_CC
2817 if test -n "$CC"; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2819 $as_echo "$CC" >&6; }
2820 else
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2823 fi
2824
2825
2826 fi
2827 if test -z "$ac_cv_prog_CC"; then
2828 ac_ct_CC=$CC
2829 # Extract the first word of "gcc", so it can be a program name with args.
2830 set dummy gcc; ac_word=$2
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 $as_echo_n "checking for $ac_word... " >&6; }
2833 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 if test -n "$ac_ct_CC"; then
2837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2846 ac_cv_prog_ac_ct_CC="gcc"
2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 break 2
2849 fi
2850 done
2851 done
2852 IFS=$as_save_IFS
2853
2854 fi
2855 fi
2856 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2857 if test -n "$ac_ct_CC"; then
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2859 $as_echo "$ac_ct_CC" >&6; }
2860 else
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 $as_echo "no" >&6; }
2863 fi
2864
2865 if test "x$ac_ct_CC" = x; then
2866 CC=""
2867 else
2868 case $cross_compiling:$ac_tool_warned in
2869 yes:)
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2872 ac_tool_warned=yes ;;
2873 esac
2874 CC=$ac_ct_CC
2875 fi
2876 else
2877 CC="$ac_cv_prog_CC"
2878 fi
2879
2880 if test -z "$CC"; then
2881 if test -n "$ac_tool_prefix"; then
2882 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2883 set dummy ${ac_tool_prefix}cc; ac_word=$2
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if ${ac_cv_prog_CC+:} false; then :
2887 $as_echo_n "(cached) " >&6
2888 else
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2894 do
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899 ac_cv_prog_CC="${ac_tool_prefix}cc"
2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2902 fi
2903 done
2904 done
2905 IFS=$as_save_IFS
2906
2907 fi
2908 fi
2909 CC=$ac_cv_prog_CC
2910 if test -n "$CC"; then
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2912 $as_echo "$CC" >&6; }
2913 else
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 $as_echo "no" >&6; }
2916 fi
2917
2918
2919 fi
2920 fi
2921 if test -z "$CC"; then
2922 # Extract the first word of "cc", so it can be a program name with args.
2923 set dummy cc; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if ${ac_cv_prog_CC+:} false; then :
2927 $as_echo_n "(cached) " >&6
2928 else
2929 if test -n "$CC"; then
2930 ac_cv_prog_CC="$CC" # Let the user override the test.
2931 else
2932 ac_prog_rejected=no
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2935 do
2936 IFS=$as_save_IFS
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2941 ac_prog_rejected=yes
2942 continue
2943 fi
2944 ac_cv_prog_CC="cc"
2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 break 2
2947 fi
2948 done
2949 done
2950 IFS=$as_save_IFS
2951
2952 if test $ac_prog_rejected = yes; then
2953 # We found a bogon in the path, so make sure we never use it.
2954 set dummy $ac_cv_prog_CC
2955 shift
2956 if test $# != 0; then
2957 # We chose a different compiler from the bogus one.
2958 # However, it has the same basename, so the bogon will be chosen
2959 # first if we set CC to just the basename; use the full file name.
2960 shift
2961 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2962 fi
2963 fi
2964 fi
2965 fi
2966 CC=$ac_cv_prog_CC
2967 if test -n "$CC"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2969 $as_echo "$CC" >&6; }
2970 else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2973 fi
2974
2975
2976 fi
2977 if test -z "$CC"; then
2978 if test -n "$ac_tool_prefix"; then
2979 for ac_prog in cl.exe
2980 do
2981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2982 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if ${ac_cv_prog_CC+:} false; then :
2986 $as_echo_n "(cached) " >&6
2987 else
2988 if test -n "$CC"; then
2989 ac_cv_prog_CC="$CC" # Let the user override the test.
2990 else
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2993 do
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2998 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 break 2
3001 fi
3002 done
3003 done
3004 IFS=$as_save_IFS
3005
3006 fi
3007 fi
3008 CC=$ac_cv_prog_CC
3009 if test -n "$CC"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3011 $as_echo "$CC" >&6; }
3012 else
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 $as_echo "no" >&6; }
3015 fi
3016
3017
3018 test -n "$CC" && break
3019 done
3020 fi
3021 if test -z "$CC"; then
3022 ac_ct_CC=$CC
3023 for ac_prog in cl.exe
3024 do
3025 # Extract the first word of "$ac_prog", so it can be a program name with args.
3026 set dummy $ac_prog; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3030 $as_echo_n "(cached) " >&6
3031 else
3032 if test -n "$ac_ct_CC"; then
3033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3034 else
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 ac_cv_prog_ac_ct_CC="$ac_prog"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046 done
3047 done
3048 IFS=$as_save_IFS
3049
3050 fi
3051 fi
3052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3053 if test -n "$ac_ct_CC"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3055 $as_echo "$ac_ct_CC" >&6; }
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3059 fi
3060
3061
3062 test -n "$ac_ct_CC" && break
3063 done
3064
3065 if test "x$ac_ct_CC" = x; then
3066 CC=""
3067 else
3068 case $cross_compiling:$ac_tool_warned in
3069 yes:)
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3072 ac_tool_warned=yes ;;
3073 esac
3074 CC=$ac_ct_CC
3075 fi
3076 fi
3077
3078 fi
3079
3080
3081 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083 as_fn_error $? "no acceptable C compiler found in \$PATH
3084 See \`config.log' for more details" "$LINENO" 5; }
3085
3086 # Provide some information about the compiler.
3087 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3088 set X $ac_compile
3089 ac_compiler=$2
3090 for ac_option in --version -v -V -qversion; do
3091 { { ac_try="$ac_compiler $ac_option >&5"
3092 case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095 esac
3096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3097 $as_echo "$ac_try_echo"; } >&5
3098 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3099 ac_status=$?
3100 if test -s conftest.err; then
3101 sed '10a\
3102 ... rest of stderr output deleted ...
3103 10q' conftest.err >conftest.er1
3104 cat conftest.er1 >&5
3105 fi
3106 rm -f conftest.er1 conftest.err
3107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3108 test $ac_status = 0; }
3109 done
3110
3111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3112 /* end confdefs.h. */
3113
3114 int
3115 main ()
3116 {
3117
3118 ;
3119 return 0;
3120 }
3121 _ACEOF
3122 ac_clean_files_save=$ac_clean_files
3123 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3124 # Try to create an executable without -o first, disregard a.out.
3125 # It will help us diagnose broken compilers, and finding out an intuition
3126 # of exeext.
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3128 $as_echo_n "checking whether the C compiler works... " >&6; }
3129 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3130
3131 # The possible output files:
3132 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3133
3134 ac_rmfiles=
3135 for ac_file in $ac_files
3136 do
3137 case $ac_file in
3138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3139 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3140 esac
3141 done
3142 rm -f $ac_rmfiles
3143
3144 if { { ac_try="$ac_link_default"
3145 case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148 esac
3149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3150 $as_echo "$ac_try_echo"; } >&5
3151 (eval "$ac_link_default") 2>&5
3152 ac_status=$?
3153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3154 test $ac_status = 0; }; then :
3155 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3156 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3157 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3158 # so that the user can short-circuit this test for compilers unknown to
3159 # Autoconf.
3160 for ac_file in $ac_files ''
3161 do
3162 test -f "$ac_file" || continue
3163 case $ac_file in
3164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3165 ;;
3166 [ab].out )
3167 # We found the default executable, but exeext='' is most
3168 # certainly right.
3169 break;;
3170 *.* )
3171 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3172 then :; else
3173 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3174 fi
3175 # We set ac_cv_exeext here because the later test for it is not
3176 # safe: cross compilers may not add the suffix if given an `-o'
3177 # argument, so we may need to know it at that point already.
3178 # Even if this section looks crufty: it has the advantage of
3179 # actually working.
3180 break;;
3181 * )
3182 break;;
3183 esac
3184 done
3185 test "$ac_cv_exeext" = no && ac_cv_exeext=
3186
3187 else
3188 ac_file=''
3189 fi
3190 if test -z "$ac_file"; then :
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3193 $as_echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3198 as_fn_error 77 "C compiler cannot create executables
3199 See \`config.log' for more details" "$LINENO" 5; }
3200 else
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3202 $as_echo "yes" >&6; }
3203 fi
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3205 $as_echo_n "checking for C compiler default output file name... " >&6; }
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3207 $as_echo "$ac_file" >&6; }
3208 ac_exeext=$ac_cv_exeext
3209
3210 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3211 ac_clean_files=$ac_clean_files_save
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3213 $as_echo_n "checking for suffix of executables... " >&6; }
3214 if { { ac_try="$ac_link"
3215 case "(($ac_try" in
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3218 esac
3219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220 $as_echo "$ac_try_echo"; } >&5
3221 (eval "$ac_link") 2>&5
3222 ac_status=$?
3223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3224 test $ac_status = 0; }; then :
3225 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3226 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3227 # work properly (i.e., refer to `conftest.exe'), while it won't with
3228 # `rm'.
3229 for ac_file in conftest.exe conftest conftest.*; do
3230 test -f "$ac_file" || continue
3231 case $ac_file in
3232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3233 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3234 break;;
3235 * ) break;;
3236 esac
3237 done
3238 else
3239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3241 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3242 See \`config.log' for more details" "$LINENO" 5; }
3243 fi
3244 rm -f conftest conftest$ac_cv_exeext
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3246 $as_echo "$ac_cv_exeext" >&6; }
3247
3248 rm -f conftest.$ac_ext
3249 EXEEXT=$ac_cv_exeext
3250 ac_exeext=$EXEEXT
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h. */
3253 #include <stdio.h>
3254 int
3255 main ()
3256 {
3257 FILE *f = fopen ("conftest.out", "w");
3258 return ferror (f) || fclose (f) != 0;
3259
3260 ;
3261 return 0;
3262 }
3263 _ACEOF
3264 ac_clean_files="$ac_clean_files conftest.out"
3265 # Check that the compiler produces executables we can run. If not, either
3266 # the compiler is broken, or we cross compile.
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3268 $as_echo_n "checking whether we are cross compiling... " >&6; }
3269 if test "$cross_compiling" != yes; then
3270 { { ac_try="$ac_link"
3271 case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274 esac
3275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276 $as_echo "$ac_try_echo"; } >&5
3277 (eval "$ac_link") 2>&5
3278 ac_status=$?
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }
3281 if { ac_try='./conftest$ac_cv_exeext'
3282 { { case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285 esac
3286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3287 $as_echo "$ac_try_echo"; } >&5
3288 (eval "$ac_try") 2>&5
3289 ac_status=$?
3290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3291 test $ac_status = 0; }; }; then
3292 cross_compiling=no
3293 else
3294 if test "$cross_compiling" = maybe; then
3295 cross_compiling=yes
3296 else
3297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299 as_fn_error $? "cannot run C compiled programs.
3300 If you meant to cross compile, use \`--host'.
3301 See \`config.log' for more details" "$LINENO" 5; }
3302 fi
3303 fi
3304 fi
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3306 $as_echo "$cross_compiling" >&6; }
3307
3308 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3309 ac_clean_files=$ac_clean_files_save
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3311 $as_echo_n "checking for suffix of object files... " >&6; }
3312 if ${ac_cv_objext+:} false; then :
3313 $as_echo_n "(cached) " >&6
3314 else
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h. */
3317
3318 int
3319 main ()
3320 {
3321
3322 ;
3323 return 0;
3324 }
3325 _ACEOF
3326 rm -f conftest.o conftest.obj
3327 if { { ac_try="$ac_compile"
3328 case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331 esac
3332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333 $as_echo "$ac_try_echo"; } >&5
3334 (eval "$ac_compile") 2>&5
3335 ac_status=$?
3336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337 test $ac_status = 0; }; then :
3338 for ac_file in conftest.o conftest.obj conftest.*; do
3339 test -f "$ac_file" || continue;
3340 case $ac_file in
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3342 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3343 break;;
3344 esac
3345 done
3346 else
3347 $as_echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3349
3350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3352 as_fn_error $? "cannot compute suffix of object files: cannot compile
3353 See \`config.log' for more details" "$LINENO" 5; }
3354 fi
3355 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3356 fi
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3358 $as_echo "$ac_cv_objext" >&6; }
3359 OBJEXT=$ac_cv_objext
3360 ac_objext=$OBJEXT
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3362 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3363 if ${ac_cv_c_compiler_gnu+:} false; then :
3364 $as_echo_n "(cached) " >&6
3365 else
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3368
3369 int
3370 main ()
3371 {
3372 #ifndef __GNUC__
3373 choke me
3374 #endif
3375
3376 ;
3377 return 0;
3378 }
3379 _ACEOF
3380 if ac_fn_c_try_compile "$LINENO"; then :
3381 ac_compiler_gnu=yes
3382 else
3383 ac_compiler_gnu=no
3384 fi
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3387
3388 fi
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3390 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3391 if test $ac_compiler_gnu = yes; then
3392 GCC=yes
3393 else
3394 GCC=
3395 fi
3396 ac_test_CFLAGS=${CFLAGS+set}
3397 ac_save_CFLAGS=$CFLAGS
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3399 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3400 if ${ac_cv_prog_cc_g+:} false; then :
3401 $as_echo_n "(cached) " >&6
3402 else
3403 ac_save_c_werror_flag=$ac_c_werror_flag
3404 ac_c_werror_flag=yes
3405 ac_cv_prog_cc_g=no
3406 CFLAGS="-g"
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3409
3410 int
3411 main ()
3412 {
3413
3414 ;
3415 return 0;
3416 }
3417 _ACEOF
3418 if ac_fn_c_try_compile "$LINENO"; then :
3419 ac_cv_prog_cc_g=yes
3420 else
3421 CFLAGS=""
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3424
3425 int
3426 main ()
3427 {
3428
3429 ;
3430 return 0;
3431 }
3432 _ACEOF
3433 if ac_fn_c_try_compile "$LINENO"; then :
3434
3435 else
3436 ac_c_werror_flag=$ac_save_c_werror_flag
3437 CFLAGS="-g"
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3440
3441 int
3442 main ()
3443 {
3444
3445 ;
3446 return 0;
3447 }
3448 _ACEOF
3449 if ac_fn_c_try_compile "$LINENO"; then :
3450 ac_cv_prog_cc_g=yes
3451 fi
3452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453 fi
3454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455 fi
3456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457 ac_c_werror_flag=$ac_save_c_werror_flag
3458 fi
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3460 $as_echo "$ac_cv_prog_cc_g" >&6; }
3461 if test "$ac_test_CFLAGS" = set; then
3462 CFLAGS=$ac_save_CFLAGS
3463 elif test $ac_cv_prog_cc_g = yes; then
3464 if test "$GCC" = yes; then
3465 CFLAGS="-g -O2"
3466 else
3467 CFLAGS="-g"
3468 fi
3469 else
3470 if test "$GCC" = yes; then
3471 CFLAGS="-O2"
3472 else
3473 CFLAGS=
3474 fi
3475 fi
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3477 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3478 if ${ac_cv_prog_cc_c89+:} false; then :
3479 $as_echo_n "(cached) " >&6
3480 else
3481 ac_cv_prog_cc_c89=no
3482 ac_save_CC=$CC
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3485 #include <stdarg.h>
3486 #include <stdio.h>
3487 #include <sys/types.h>
3488 #include <sys/stat.h>
3489 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3490 struct buf { int x; };
3491 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3492 static char *e (p, i)
3493 char **p;
3494 int i;
3495 {
3496 return p[i];
3497 }
3498 static char *f (char * (*g) (char **, int), char **p, ...)
3499 {
3500 char *s;
3501 va_list v;
3502 va_start (v,p);
3503 s = g (p, va_arg (v,int));
3504 va_end (v);
3505 return s;
3506 }
3507
3508 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3509 function prototypes and stuff, but not '\xHH' hex character constants.
3510 These don't provoke an error unfortunately, instead are silently treated
3511 as 'x'. The following induces an error, until -std is added to get
3512 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3513 array size at least. It's necessary to write '\x00'==0 to get something
3514 that's true only with -std. */
3515 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3516
3517 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3518 inside strings and character constants. */
3519 #define FOO(x) 'x'
3520 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3521
3522 int test (int i, double x);
3523 struct s1 {int (*f) (int a);};
3524 struct s2 {int (*f) (double a);};
3525 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3526 int argc;
3527 char **argv;
3528 int
3529 main ()
3530 {
3531 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3532 ;
3533 return 0;
3534 }
3535 _ACEOF
3536 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3537 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3538 do
3539 CC="$ac_save_CC $ac_arg"
3540 if ac_fn_c_try_compile "$LINENO"; then :
3541 ac_cv_prog_cc_c89=$ac_arg
3542 fi
3543 rm -f core conftest.err conftest.$ac_objext
3544 test "x$ac_cv_prog_cc_c89" != "xno" && break
3545 done
3546 rm -f conftest.$ac_ext
3547 CC=$ac_save_CC
3548
3549 fi
3550 # AC_CACHE_VAL
3551 case "x$ac_cv_prog_cc_c89" in
3552 x)
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3554 $as_echo "none needed" >&6; } ;;
3555 xno)
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3557 $as_echo "unsupported" >&6; } ;;
3558 *)
3559 CC="$CC $ac_cv_prog_cc_c89"
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3561 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3562 esac
3563 if test "x$ac_cv_prog_cc_c89" != xno; then :
3564
3565 fi
3566
3567 ac_ext=c
3568 ac_cpp='$CPP $CPPFLAGS'
3569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572 DEPDIR="${am__leading_dot}deps"
3573
3574 ac_config_commands="$ac_config_commands depfiles"
3575
3576
3577 am_make=${MAKE-make}
3578 cat > confinc << 'END'
3579 am__doit:
3580 @echo this is the am__doit target
3581 .PHONY: am__doit
3582 END
3583 # If we don't find an include directive, just comment out the code.
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3585 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3586 am__include="#"
3587 am__quote=
3588 _am_result=none
3589 # First try GNU make style include.
3590 echo "include confinc" > confmf
3591 # Ignore all kinds of additional output from `make'.
3592 case `$am_make -s -f confmf 2> /dev/null` in #(
3593 *the\ am__doit\ target*)
3594 am__include=include
3595 am__quote=
3596 _am_result=GNU
3597 ;;
3598 esac
3599 # Now try BSD make style include.
3600 if test "$am__include" = "#"; then
3601 echo '.include "confinc"' > confmf
3602 case `$am_make -s -f confmf 2> /dev/null` in #(
3603 *the\ am__doit\ target*)
3604 am__include=.include
3605 am__quote="\""
3606 _am_result=BSD
3607 ;;
3608 esac
3609 fi
3610
3611
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3613 $as_echo "$_am_result" >&6; }
3614 rm -f confinc confmf
3615
3616 # Check whether --enable-dependency-tracking was given.
3617 if test "${enable_dependency_tracking+set}" = set; then :
3618 enableval=$enable_dependency_tracking;
3619 fi
3620
3621 if test "x$enable_dependency_tracking" != xno; then
3622 am_depcomp="$ac_aux_dir/depcomp"
3623 AMDEPBACKSLASH='\'
3624 fi
3625 if test "x$enable_dependency_tracking" != xno; then
3626 AMDEP_TRUE=
3627 AMDEP_FALSE='#'
3628 else
3629 AMDEP_TRUE='#'
3630 AMDEP_FALSE=
3631 fi
3632
3633
3634
3635 depcc="$CC" am_compiler_list=
3636
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3638 $as_echo_n "checking dependency style of $depcc... " >&6; }
3639 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3640 $as_echo_n "(cached) " >&6
3641 else
3642 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3643 # We make a subdir and do the tests there. Otherwise we can end up
3644 # making bogus files that we don't know about and never remove. For
3645 # instance it was reported that on HP-UX the gcc test will end up
3646 # making a dummy file named `D' -- because `-MD' means `put the output
3647 # in D'.
3648 mkdir conftest.dir
3649 # Copy depcomp to subdir because otherwise we won't find it if we're
3650 # using a relative directory.
3651 cp "$am_depcomp" conftest.dir
3652 cd conftest.dir
3653 # We will build objects and dependencies in a subdirectory because
3654 # it helps to detect inapplicable dependency modes. For instance
3655 # both Tru64's cc and ICC support -MD to output dependencies as a
3656 # side effect of compilation, but ICC will put the dependencies in
3657 # the current directory while Tru64 will put them in the object
3658 # directory.
3659 mkdir sub
3660
3661 am_cv_CC_dependencies_compiler_type=none
3662 if test "$am_compiler_list" = ""; then
3663 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3664 fi
3665 am__universal=false
3666 case " $depcc " in #(
3667 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3668 esac
3669
3670 for depmode in $am_compiler_list; do
3671 # Setup a source with many dependencies, because some compilers
3672 # like to wrap large dependency lists on column 80 (with \), and
3673 # we should not choose a depcomp mode which is confused by this.
3674 #
3675 # We need to recreate these files for each test, as the compiler may
3676 # overwrite some of them when testing with obscure command lines.
3677 # This happens at least with the AIX C compiler.
3678 : > sub/conftest.c
3679 for i in 1 2 3 4 5 6; do
3680 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3681 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3682 # Solaris 8's {/usr,}/bin/sh.
3683 touch sub/conftst$i.h
3684 done
3685 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3686
3687 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3688 # mode. It turns out that the SunPro C++ compiler does not properly
3689 # handle `-M -o', and we need to detect this. Also, some Intel
3690 # versions had trouble with output in subdirs
3691 am__obj=sub/conftest.${OBJEXT-o}
3692 am__minus_obj="-o $am__obj"
3693 case $depmode in
3694 gcc)
3695 # This depmode causes a compiler race in universal mode.
3696 test "$am__universal" = false || continue
3697 ;;
3698 nosideeffect)
3699 # after this tag, mechanisms are not by side-effect, so they'll
3700 # only be used when explicitly requested
3701 if test "x$enable_dependency_tracking" = xyes; then
3702 continue
3703 else
3704 break
3705 fi
3706 ;;
3707 msvisualcpp | msvcmsys)
3708 # This compiler won't grok `-c -o', but also, the minuso test has
3709 # not run yet. These depmodes are late enough in the game, and
3710 # so weak that their functioning should not be impacted.
3711 am__obj=conftest.${OBJEXT-o}
3712 am__minus_obj=
3713 ;;
3714 none) break ;;
3715 esac
3716 if depmode=$depmode \
3717 source=sub/conftest.c object=$am__obj \
3718 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3719 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3720 >/dev/null 2>conftest.err &&
3721 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3722 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3723 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3724 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3725 # icc doesn't choke on unknown options, it will just issue warnings
3726 # or remarks (even with -Werror). So we grep stderr for any message
3727 # that says an option was ignored or not supported.
3728 # When given -MP, icc 7.0 and 7.1 complain thusly:
3729 # icc: Command line warning: ignoring option '-M'; no argument required
3730 # The diagnosis changed in icc 8.0:
3731 # icc: Command line remark: option '-MP' not supported
3732 if (grep 'ignoring option' conftest.err ||
3733 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3734 am_cv_CC_dependencies_compiler_type=$depmode
3735 break
3736 fi
3737 fi
3738 done
3739
3740 cd ..
3741 rm -rf conftest.dir
3742 else
3743 am_cv_CC_dependencies_compiler_type=none
3744 fi
3745
3746 fi
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3748 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3749 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3750
3751 if
3752 test "x$enable_dependency_tracking" != xno \
3753 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3754 am__fastdepCC_TRUE=
3755 am__fastdepCC_FALSE='#'
3756 else
3757 am__fastdepCC_TRUE='#'
3758 am__fastdepCC_FALSE=
3759 fi
3760
3761
3762
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3764 $as_echo_n "checking for library containing strerror... " >&6; }
3765 if ${ac_cv_search_strerror+:} false; then :
3766 $as_echo_n "(cached) " >&6
3767 else
3768 ac_func_search_save_LIBS=$LIBS
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3771
3772 /* Override any GCC internal prototype to avoid an error.
3773 Use char because int might match the return type of a GCC
3774 builtin and then its argument prototype would still apply. */
3775 #ifdef __cplusplus
3776 extern "C"
3777 #endif
3778 char strerror ();
3779 int
3780 main ()
3781 {
3782 return strerror ();
3783 ;
3784 return 0;
3785 }
3786 _ACEOF
3787 for ac_lib in '' cposix; do
3788 if test -z "$ac_lib"; then
3789 ac_res="none required"
3790 else
3791 ac_res=-l$ac_lib
3792 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3793 fi
3794 if ac_fn_c_try_link "$LINENO"; then :
3795 ac_cv_search_strerror=$ac_res
3796 fi
3797 rm -f core conftest.err conftest.$ac_objext \
3798 conftest$ac_exeext
3799 if ${ac_cv_search_strerror+:} false; then :
3800 break
3801 fi
3802 done
3803 if ${ac_cv_search_strerror+:} false; then :
3804
3805 else
3806 ac_cv_search_strerror=no
3807 fi
3808 rm conftest.$ac_ext
3809 LIBS=$ac_func_search_save_LIBS
3810 fi
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3812 $as_echo "$ac_cv_search_strerror" >&6; }
3813 ac_res=$ac_cv_search_strerror
3814 if test "$ac_res" != no; then :
3815 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3816
3817 fi
3818
3819 ac_ext=c
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3825 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3826 # On Suns, sometimes $CPP names a directory.
3827 if test -n "$CPP" && test -d "$CPP"; then
3828 CPP=
3829 fi
3830 if test -z "$CPP"; then
3831 if ${ac_cv_prog_CPP+:} false; then :
3832 $as_echo_n "(cached) " >&6
3833 else
3834 # Double quotes because CPP needs to be expanded
3835 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3836 do
3837 ac_preproc_ok=false
3838 for ac_c_preproc_warn_flag in '' yes
3839 do
3840 # Use a header file that comes with gcc, so configuring glibc
3841 # with a fresh cross-compiler works.
3842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3843 # <limits.h> exists even on freestanding compilers.
3844 # On the NeXT, cc -E runs the code through the compiler's parser,
3845 # not just through cpp. "Syntax error" is here to catch this case.
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3848 #ifdef __STDC__
3849 # include <limits.h>
3850 #else
3851 # include <assert.h>
3852 #endif
3853 Syntax error
3854 _ACEOF
3855 if ac_fn_c_try_cpp "$LINENO"; then :
3856
3857 else
3858 # Broken: fails on valid input.
3859 continue
3860 fi
3861 rm -f conftest.err conftest.i conftest.$ac_ext
3862
3863 # OK, works on sane cases. Now check whether nonexistent headers
3864 # can be detected and how.
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3867 #include <ac_nonexistent.h>
3868 _ACEOF
3869 if ac_fn_c_try_cpp "$LINENO"; then :
3870 # Broken: success on invalid input.
3871 continue
3872 else
3873 # Passes both tests.
3874 ac_preproc_ok=:
3875 break
3876 fi
3877 rm -f conftest.err conftest.i conftest.$ac_ext
3878
3879 done
3880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3881 rm -f conftest.i conftest.err conftest.$ac_ext
3882 if $ac_preproc_ok; then :
3883 break
3884 fi
3885
3886 done
3887 ac_cv_prog_CPP=$CPP
3888
3889 fi
3890 CPP=$ac_cv_prog_CPP
3891 else
3892 ac_cv_prog_CPP=$CPP
3893 fi
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3895 $as_echo "$CPP" >&6; }
3896 ac_preproc_ok=false
3897 for ac_c_preproc_warn_flag in '' yes
3898 do
3899 # Use a header file that comes with gcc, so configuring glibc
3900 # with a fresh cross-compiler works.
3901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3902 # <limits.h> exists even on freestanding compilers.
3903 # On the NeXT, cc -E runs the code through the compiler's parser,
3904 # not just through cpp. "Syntax error" is here to catch this case.
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3907 #ifdef __STDC__
3908 # include <limits.h>
3909 #else
3910 # include <assert.h>
3911 #endif
3912 Syntax error
3913 _ACEOF
3914 if ac_fn_c_try_cpp "$LINENO"; then :
3915
3916 else
3917 # Broken: fails on valid input.
3918 continue
3919 fi
3920 rm -f conftest.err conftest.i conftest.$ac_ext
3921
3922 # OK, works on sane cases. Now check whether nonexistent headers
3923 # can be detected and how.
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3926 #include <ac_nonexistent.h>
3927 _ACEOF
3928 if ac_fn_c_try_cpp "$LINENO"; then :
3929 # Broken: success on invalid input.
3930 continue
3931 else
3932 # Passes both tests.
3933 ac_preproc_ok=:
3934 break
3935 fi
3936 rm -f conftest.err conftest.i conftest.$ac_ext
3937
3938 done
3939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3940 rm -f conftest.i conftest.err conftest.$ac_ext
3941 if $ac_preproc_ok; then :
3942
3943 else
3944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3946 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3947 See \`config.log' for more details" "$LINENO" 5; }
3948 fi
3949
3950 ac_ext=c
3951 ac_cpp='$CPP $CPPFLAGS'
3952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955
3956
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3958 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3959 if ${ac_cv_path_GREP+:} false; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3962 if test -z "$GREP"; then
3963 ac_path_GREP_found=false
3964 # Loop through the user's path and test for each of PROGNAME-LIST
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3967 do
3968 IFS=$as_save_IFS
3969 test -z "$as_dir" && as_dir=.
3970 for ac_prog in grep ggrep; do
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3973 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3974 # Check for GNU ac_path_GREP and select it if it is found.
3975 # Check for GNU $ac_path_GREP
3976 case `"$ac_path_GREP" --version 2>&1` in
3977 *GNU*)
3978 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3979 *)
3980 ac_count=0
3981 $as_echo_n 0123456789 >"conftest.in"
3982 while :
3983 do
3984 cat "conftest.in" "conftest.in" >"conftest.tmp"
3985 mv "conftest.tmp" "conftest.in"
3986 cp "conftest.in" "conftest.nl"
3987 $as_echo 'GREP' >> "conftest.nl"
3988 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3990 as_fn_arith $ac_count + 1 && ac_count=$as_val
3991 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3992 # Best one so far, save it but keep looking for a better one
3993 ac_cv_path_GREP="$ac_path_GREP"
3994 ac_path_GREP_max=$ac_count
3995 fi
3996 # 10*(2^10) chars as input seems more than enough
3997 test $ac_count -gt 10 && break
3998 done
3999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4000 esac
4001
4002 $ac_path_GREP_found && break 3
4003 done
4004 done
4005 done
4006 IFS=$as_save_IFS
4007 if test -z "$ac_cv_path_GREP"; then
4008 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4009 fi
4010 else
4011 ac_cv_path_GREP=$GREP
4012 fi
4013
4014 fi
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4016 $as_echo "$ac_cv_path_GREP" >&6; }
4017 GREP="$ac_cv_path_GREP"
4018
4019
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4021 $as_echo_n "checking for egrep... " >&6; }
4022 if ${ac_cv_path_EGREP+:} false; then :
4023 $as_echo_n "(cached) " >&6
4024 else
4025 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4026 then ac_cv_path_EGREP="$GREP -E"
4027 else
4028 if test -z "$EGREP"; then
4029 ac_path_EGREP_found=false
4030 # Loop through the user's path and test for each of PROGNAME-LIST
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4033 do
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
4036 for ac_prog in egrep; do
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4039 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4040 # Check for GNU ac_path_EGREP and select it if it is found.
4041 # Check for GNU $ac_path_EGREP
4042 case `"$ac_path_EGREP" --version 2>&1` in
4043 *GNU*)
4044 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4045 *)
4046 ac_count=0
4047 $as_echo_n 0123456789 >"conftest.in"
4048 while :
4049 do
4050 cat "conftest.in" "conftest.in" >"conftest.tmp"
4051 mv "conftest.tmp" "conftest.in"
4052 cp "conftest.in" "conftest.nl"
4053 $as_echo 'EGREP' >> "conftest.nl"
4054 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4056 as_fn_arith $ac_count + 1 && ac_count=$as_val
4057 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4058 # Best one so far, save it but keep looking for a better one
4059 ac_cv_path_EGREP="$ac_path_EGREP"
4060 ac_path_EGREP_max=$ac_count
4061 fi
4062 # 10*(2^10) chars as input seems more than enough
4063 test $ac_count -gt 10 && break
4064 done
4065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4066 esac
4067
4068 $ac_path_EGREP_found && break 3
4069 done
4070 done
4071 done
4072 IFS=$as_save_IFS
4073 if test -z "$ac_cv_path_EGREP"; then
4074 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4075 fi
4076 else
4077 ac_cv_path_EGREP=$EGREP
4078 fi
4079
4080 fi
4081 fi
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4083 $as_echo "$ac_cv_path_EGREP" >&6; }
4084 EGREP="$ac_cv_path_EGREP"
4085
4086
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4088 $as_echo_n "checking for ANSI C header files... " >&6; }
4089 if ${ac_cv_header_stdc+:} false; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4094 #include <stdlib.h>
4095 #include <stdarg.h>
4096 #include <string.h>
4097 #include <float.h>
4098
4099 int
4100 main ()
4101 {
4102
4103 ;
4104 return 0;
4105 }
4106 _ACEOF
4107 if ac_fn_c_try_compile "$LINENO"; then :
4108 ac_cv_header_stdc=yes
4109 else
4110 ac_cv_header_stdc=no
4111 fi
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113
4114 if test $ac_cv_header_stdc = yes; then
4115 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4118 #include <string.h>
4119
4120 _ACEOF
4121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4122 $EGREP "memchr" >/dev/null 2>&1; then :
4123
4124 else
4125 ac_cv_header_stdc=no
4126 fi
4127 rm -f conftest*
4128
4129 fi
4130
4131 if test $ac_cv_header_stdc = yes; then
4132 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4135 #include <stdlib.h>
4136
4137 _ACEOF
4138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4139 $EGREP "free" >/dev/null 2>&1; then :
4140
4141 else
4142 ac_cv_header_stdc=no
4143 fi
4144 rm -f conftest*
4145
4146 fi
4147
4148 if test $ac_cv_header_stdc = yes; then
4149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4150 if test "$cross_compiling" = yes; then :
4151 :
4152 else
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155 #include <ctype.h>
4156 #include <stdlib.h>
4157 #if ((' ' & 0x0FF) == 0x020)
4158 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4159 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4160 #else
4161 # define ISLOWER(c) \
4162 (('a' <= (c) && (c) <= 'i') \
4163 || ('j' <= (c) && (c) <= 'r') \
4164 || ('s' <= (c) && (c) <= 'z'))
4165 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4166 #endif
4167
4168 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4169 int
4170 main ()
4171 {
4172 int i;
4173 for (i = 0; i < 256; i++)
4174 if (XOR (islower (i), ISLOWER (i))
4175 || toupper (i) != TOUPPER (i))
4176 return 2;
4177 return 0;
4178 }
4179 _ACEOF
4180 if ac_fn_c_try_run "$LINENO"; then :
4181
4182 else
4183 ac_cv_header_stdc=no
4184 fi
4185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4186 conftest.$ac_objext conftest.beam conftest.$ac_ext
4187 fi
4188
4189 fi
4190 fi
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4192 $as_echo "$ac_cv_header_stdc" >&6; }
4193 if test $ac_cv_header_stdc = yes; then
4194
4195 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4196
4197 fi
4198
4199 # Make sure we can run config.sub.
4200 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4201 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4202
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4204 $as_echo_n "checking build system type... " >&6; }
4205 if ${ac_cv_build+:} false; then :
4206 $as_echo_n "(cached) " >&6
4207 else
4208 ac_build_alias=$build_alias
4209 test "x$ac_build_alias" = x &&
4210 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4211 test "x$ac_build_alias" = x &&
4212 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4213 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4214 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4215
4216 fi
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4218 $as_echo "$ac_cv_build" >&6; }
4219 case $ac_cv_build in
4220 *-*-*) ;;
4221 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4222 esac
4223 build=$ac_cv_build
4224 ac_save_IFS=$IFS; IFS='-'
4225 set x $ac_cv_build
4226 shift
4227 build_cpu=$1
4228 build_vendor=$2
4229 shift; shift
4230 # Remember, the first character of IFS is used to create $*,
4231 # except with old shells:
4232 build_os=$*
4233 IFS=$ac_save_IFS
4234 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4235
4236
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4238 $as_echo_n "checking host system type... " >&6; }
4239 if ${ac_cv_host+:} false; then :
4240 $as_echo_n "(cached) " >&6
4241 else
4242 if test "x$host_alias" = x; then
4243 ac_cv_host=$ac_cv_build
4244 else
4245 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4246 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4247 fi
4248
4249 fi
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4251 $as_echo "$ac_cv_host" >&6; }
4252 case $ac_cv_host in
4253 *-*-*) ;;
4254 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4255 esac
4256 host=$ac_cv_host
4257 ac_save_IFS=$IFS; IFS='-'
4258 set x $ac_cv_host
4259 shift
4260 host_cpu=$1
4261 host_vendor=$2
4262 shift; shift
4263 # Remember, the first character of IFS is used to create $*,
4264 # except with old shells:
4265 host_os=$*
4266 IFS=$ac_save_IFS
4267 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4268
4269
4270 enable_win32_dll=yes
4271
4272 case $host in
4273 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4274 if test -n "$ac_tool_prefix"; then
4275 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4276 set dummy ${ac_tool_prefix}as; ac_word=$2
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4278 $as_echo_n "checking for $ac_word... " >&6; }
4279 if ${ac_cv_prog_AS+:} false; then :
4280 $as_echo_n "(cached) " >&6
4281 else
4282 if test -n "$AS"; then
4283 ac_cv_prog_AS="$AS" # Let the user override the test.
4284 else
4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 for as_dir in $PATH
4287 do
4288 IFS=$as_save_IFS
4289 test -z "$as_dir" && as_dir=.
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4292 ac_cv_prog_AS="${ac_tool_prefix}as"
4293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 break 2
4295 fi
4296 done
4297 done
4298 IFS=$as_save_IFS
4299
4300 fi
4301 fi
4302 AS=$ac_cv_prog_AS
4303 if test -n "$AS"; then
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4305 $as_echo "$AS" >&6; }
4306 else
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4308 $as_echo "no" >&6; }
4309 fi
4310
4311
4312 fi
4313 if test -z "$ac_cv_prog_AS"; then
4314 ac_ct_AS=$AS
4315 # Extract the first word of "as", so it can be a program name with args.
4316 set dummy as; ac_word=$2
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318 $as_echo_n "checking for $ac_word... " >&6; }
4319 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4320 $as_echo_n "(cached) " >&6
4321 else
4322 if test -n "$ac_ct_AS"; then
4323 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4327 do
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4332 ac_cv_prog_ac_ct_AS="as"
4333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4335 fi
4336 done
4337 done
4338 IFS=$as_save_IFS
4339
4340 fi
4341 fi
4342 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4343 if test -n "$ac_ct_AS"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4345 $as_echo "$ac_ct_AS" >&6; }
4346 else
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4349 fi
4350
4351 if test "x$ac_ct_AS" = x; then
4352 AS="false"
4353 else
4354 case $cross_compiling:$ac_tool_warned in
4355 yes:)
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4358 ac_tool_warned=yes ;;
4359 esac
4360 AS=$ac_ct_AS
4361 fi
4362 else
4363 AS="$ac_cv_prog_AS"
4364 fi
4365
4366 if test -n "$ac_tool_prefix"; then
4367 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4368 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4370 $as_echo_n "checking for $ac_word... " >&6; }
4371 if ${ac_cv_prog_DLLTOOL+:} false; then :
4372 $as_echo_n "(cached) " >&6
4373 else
4374 if test -n "$DLLTOOL"; then
4375 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4376 else
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH
4379 do
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4384 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 break 2
4387 fi
4388 done
4389 done
4390 IFS=$as_save_IFS
4391
4392 fi
4393 fi
4394 DLLTOOL=$ac_cv_prog_DLLTOOL
4395 if test -n "$DLLTOOL"; then
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4397 $as_echo "$DLLTOOL" >&6; }
4398 else
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400 $as_echo "no" >&6; }
4401 fi
4402
4403
4404 fi
4405 if test -z "$ac_cv_prog_DLLTOOL"; then
4406 ac_ct_DLLTOOL=$DLLTOOL
4407 # Extract the first word of "dlltool", so it can be a program name with args.
4408 set dummy dlltool; ac_word=$2
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4410 $as_echo_n "checking for $ac_word... " >&6; }
4411 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4412 $as_echo_n "(cached) " >&6
4413 else
4414 if test -n "$ac_ct_DLLTOOL"; then
4415 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4416 else
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4424 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 break 2
4427 fi
4428 done
4429 done
4430 IFS=$as_save_IFS
4431
4432 fi
4433 fi
4434 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4435 if test -n "$ac_ct_DLLTOOL"; then
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4437 $as_echo "$ac_ct_DLLTOOL" >&6; }
4438 else
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4440 $as_echo "no" >&6; }
4441 fi
4442
4443 if test "x$ac_ct_DLLTOOL" = x; then
4444 DLLTOOL="false"
4445 else
4446 case $cross_compiling:$ac_tool_warned in
4447 yes:)
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4450 ac_tool_warned=yes ;;
4451 esac
4452 DLLTOOL=$ac_ct_DLLTOOL
4453 fi
4454 else
4455 DLLTOOL="$ac_cv_prog_DLLTOOL"
4456 fi
4457
4458 if test -n "$ac_tool_prefix"; then
4459 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4460 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4462 $as_echo_n "checking for $ac_word... " >&6; }
4463 if ${ac_cv_prog_OBJDUMP+:} false; then :
4464 $as_echo_n "(cached) " >&6
4465 else
4466 if test -n "$OBJDUMP"; then
4467 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4468 else
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 for as_dir in $PATH
4471 do
4472 IFS=$as_save_IFS
4473 test -z "$as_dir" && as_dir=.
4474 for ac_exec_ext in '' $ac_executable_extensions; do
4475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4476 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4478 break 2
4479 fi
4480 done
4481 done
4482 IFS=$as_save_IFS
4483
4484 fi
4485 fi
4486 OBJDUMP=$ac_cv_prog_OBJDUMP
4487 if test -n "$OBJDUMP"; then
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4489 $as_echo "$OBJDUMP" >&6; }
4490 else
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492 $as_echo "no" >&6; }
4493 fi
4494
4495
4496 fi
4497 if test -z "$ac_cv_prog_OBJDUMP"; then
4498 ac_ct_OBJDUMP=$OBJDUMP
4499 # Extract the first word of "objdump", so it can be a program name with args.
4500 set dummy objdump; ac_word=$2
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4502 $as_echo_n "checking for $ac_word... " >&6; }
4503 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4504 $as_echo_n "(cached) " >&6
4505 else
4506 if test -n "$ac_ct_OBJDUMP"; then
4507 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4508 else
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH
4511 do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4516 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 break 2
4519 fi
4520 done
4521 done
4522 IFS=$as_save_IFS
4523
4524 fi
4525 fi
4526 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4527 if test -n "$ac_ct_OBJDUMP"; then
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4529 $as_echo "$ac_ct_OBJDUMP" >&6; }
4530 else
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532 $as_echo "no" >&6; }
4533 fi
4534
4535 if test "x$ac_ct_OBJDUMP" = x; then
4536 OBJDUMP="false"
4537 else
4538 case $cross_compiling:$ac_tool_warned in
4539 yes:)
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4542 ac_tool_warned=yes ;;
4543 esac
4544 OBJDUMP=$ac_ct_OBJDUMP
4545 fi
4546 else
4547 OBJDUMP="$ac_cv_prog_OBJDUMP"
4548 fi
4549
4550 ;;
4551 esac
4552
4553 test -z "$AS" && AS=as
4554
4555
4556
4557
4558
4559 test -z "$DLLTOOL" && DLLTOOL=dlltool
4560
4561
4562
4563
4564
4565 test -z "$OBJDUMP" && OBJDUMP=objdump
4566
4567
4568
4569
4570
4571
4572
4573 case `pwd` in
4574 *\ * | *\ *)
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4576 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4577 esac
4578
4579
4580
4581 macro_version='2.4'
4582 macro_revision='1.3293'
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596 ltmain="$ac_aux_dir/ltmain.sh"
4597
4598 # Backslashify metacharacters that are still active within
4599 # double-quoted strings.
4600 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4601
4602 # Same as above, but do not quote variable references.
4603 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4604
4605 # Sed substitution to delay expansion of an escaped shell variable in a
4606 # double_quote_subst'ed string.
4607 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4608
4609 # Sed substitution to delay expansion of an escaped single quote.
4610 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4611
4612 # Sed substitution to avoid accidental globbing in evaled expressions
4613 no_glob_subst='s/\*/\\\*/g'
4614
4615 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4616 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4617 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4618
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4620 $as_echo_n "checking how to print strings... " >&6; }
4621 # Test print first, because it will be a builtin if present.
4622 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4623 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4624 ECHO='print -r --'
4625 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4626 ECHO='printf %s\n'
4627 else
4628 # Use this function as a fallback that always works.
4629 func_fallback_echo ()
4630 {
4631 eval 'cat <<_LTECHO_EOF
4632 $1
4633 _LTECHO_EOF'
4634 }
4635 ECHO='func_fallback_echo'
4636 fi
4637
4638 # func_echo_all arg...
4639 # Invoke $ECHO with all args, space-separated.
4640 func_echo_all ()
4641 {
4642 $ECHO ""
4643 }
4644
4645 case "$ECHO" in
4646 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4647 $as_echo "printf" >&6; } ;;
4648 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4649 $as_echo "print -r" >&6; } ;;
4650 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4651 $as_echo "cat" >&6; } ;;
4652 esac
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4668 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4669 if ${ac_cv_path_SED+:} false; then :
4670 $as_echo_n "(cached) " >&6
4671 else
4672 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4673 for ac_i in 1 2 3 4 5 6 7; do
4674 ac_script="$ac_script$as_nl$ac_script"
4675 done
4676 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4677 { ac_script=; unset ac_script;}
4678 if test -z "$SED"; then
4679 ac_path_SED_found=false
4680 # Loop through the user's path and test for each of PROGNAME-LIST
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH
4683 do
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_prog in sed gsed; do
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4689 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4690 # Check for GNU ac_path_SED and select it if it is found.
4691 # Check for GNU $ac_path_SED
4692 case `"$ac_path_SED" --version 2>&1` in
4693 *GNU*)
4694 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4695 *)
4696 ac_count=0
4697 $as_echo_n 0123456789 >"conftest.in"
4698 while :
4699 do
4700 cat "conftest.in" "conftest.in" >"conftest.tmp"
4701 mv "conftest.tmp" "conftest.in"
4702 cp "conftest.in" "conftest.nl"
4703 $as_echo '' >> "conftest.nl"
4704 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4705 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4706 as_fn_arith $ac_count + 1 && ac_count=$as_val
4707 if test $ac_count -gt ${ac_path_SED_max-0}; then
4708 # Best one so far, save it but keep looking for a better one
4709 ac_cv_path_SED="$ac_path_SED"
4710 ac_path_SED_max=$ac_count
4711 fi
4712 # 10*(2^10) chars as input seems more than enough
4713 test $ac_count -gt 10 && break
4714 done
4715 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4716 esac
4717
4718 $ac_path_SED_found && break 3
4719 done
4720 done
4721 done
4722 IFS=$as_save_IFS
4723 if test -z "$ac_cv_path_SED"; then
4724 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4725 fi
4726 else
4727 ac_cv_path_SED=$SED
4728 fi
4729
4730 fi
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4732 $as_echo "$ac_cv_path_SED" >&6; }
4733 SED="$ac_cv_path_SED"
4734 rm -f conftest.sed
4735
4736 test -z "$SED" && SED=sed
4737 Xsed="$SED -e 1s/^X//"
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4750 $as_echo_n "checking for fgrep... " >&6; }
4751 if ${ac_cv_path_FGREP+:} false; then :
4752 $as_echo_n "(cached) " >&6
4753 else
4754 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4755 then ac_cv_path_FGREP="$GREP -F"
4756 else
4757 if test -z "$FGREP"; then
4758 ac_path_FGREP_found=false
4759 # Loop through the user's path and test for each of PROGNAME-LIST
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4762 do
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
4765 for ac_prog in fgrep; do
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4768 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4769 # Check for GNU ac_path_FGREP and select it if it is found.
4770 # Check for GNU $ac_path_FGREP
4771 case `"$ac_path_FGREP" --version 2>&1` in
4772 *GNU*)
4773 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4774 *)
4775 ac_count=0
4776 $as_echo_n 0123456789 >"conftest.in"
4777 while :
4778 do
4779 cat "conftest.in" "conftest.in" >"conftest.tmp"
4780 mv "conftest.tmp" "conftest.in"
4781 cp "conftest.in" "conftest.nl"
4782 $as_echo 'FGREP' >> "conftest.nl"
4783 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4784 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4785 as_fn_arith $ac_count + 1 && ac_count=$as_val
4786 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4787 # Best one so far, save it but keep looking for a better one
4788 ac_cv_path_FGREP="$ac_path_FGREP"
4789 ac_path_FGREP_max=$ac_count
4790 fi
4791 # 10*(2^10) chars as input seems more than enough
4792 test $ac_count -gt 10 && break
4793 done
4794 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4795 esac
4796
4797 $ac_path_FGREP_found && break 3
4798 done
4799 done
4800 done
4801 IFS=$as_save_IFS
4802 if test -z "$ac_cv_path_FGREP"; then
4803 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4804 fi
4805 else
4806 ac_cv_path_FGREP=$FGREP
4807 fi
4808
4809 fi
4810 fi
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4812 $as_echo "$ac_cv_path_FGREP" >&6; }
4813 FGREP="$ac_cv_path_FGREP"
4814
4815
4816 test -z "$GREP" && GREP=grep
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836 # Check whether --with-gnu-ld was given.
4837 if test "${with_gnu_ld+set}" = set; then :
4838 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4839 else
4840 with_gnu_ld=no
4841 fi
4842
4843 ac_prog=ld
4844 if test "$GCC" = yes; then
4845 # Check if gcc -print-prog-name=ld gives a path.
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4847 $as_echo_n "checking for ld used by $CC... " >&6; }
4848 case $host in
4849 *-*-mingw*)
4850 # gcc leaves a trailing carriage return which upsets mingw
4851 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4852 *)
4853 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4854 esac
4855 case $ac_prog in
4856 # Accept absolute paths.
4857 [\\/]* | ?:[\\/]*)
4858 re_direlt='/[^/][^/]*/\.\./'
4859 # Canonicalize the pathname of ld
4860 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4861 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4862 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4863 done
4864 test -z "$LD" && LD="$ac_prog"
4865 ;;
4866 "")
4867 # If it fails, then pretend we aren't using GCC.
4868 ac_prog=ld
4869 ;;
4870 *)
4871 # If it is relative, then search for the first ld in PATH.
4872 with_gnu_ld=unknown
4873 ;;
4874 esac
4875 elif test "$with_gnu_ld" = yes; then
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4877 $as_echo_n "checking for GNU ld... " >&6; }
4878 else
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4880 $as_echo_n "checking for non-GNU ld... " >&6; }
4881 fi
4882 if ${lt_cv_path_LD+:} false; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 if test -z "$LD"; then
4886 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4887 for ac_dir in $PATH; do
4888 IFS="$lt_save_ifs"
4889 test -z "$ac_dir" && ac_dir=.
4890 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4891 lt_cv_path_LD="$ac_dir/$ac_prog"
4892 # Check to see if the program is GNU ld. I'd rather use --version,
4893 # but apparently some variants of GNU ld only accept -v.
4894 # Break only if it was the GNU/non-GNU ld that we prefer.
4895 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4896 *GNU* | *'with BFD'*)
4897 test "$with_gnu_ld" != no && break
4898 ;;
4899 *)
4900 test "$with_gnu_ld" != yes && break
4901 ;;
4902 esac
4903 fi
4904 done
4905 IFS="$lt_save_ifs"
4906 else
4907 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4908 fi
4909 fi
4910
4911 LD="$lt_cv_path_LD"
4912 if test -n "$LD"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4914 $as_echo "$LD" >&6; }
4915 else
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4918 fi
4919 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4921 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4922 if ${lt_cv_prog_gnu_ld+:} false; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4926 case `$LD -v 2>&1 </dev/null` in
4927 *GNU* | *'with BFD'*)
4928 lt_cv_prog_gnu_ld=yes
4929 ;;
4930 *)
4931 lt_cv_prog_gnu_ld=no
4932 ;;
4933 esac
4934 fi
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4936 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4937 with_gnu_ld=$lt_cv_prog_gnu_ld
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4948 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4949 if ${lt_cv_path_NM+:} false; then :
4950 $as_echo_n "(cached) " >&6
4951 else
4952 if test -n "$NM"; then
4953 # Let the user override the test.
4954 lt_cv_path_NM="$NM"
4955 else
4956 lt_nm_to_check="${ac_tool_prefix}nm"
4957 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4958 lt_nm_to_check="$lt_nm_to_check nm"
4959 fi
4960 for lt_tmp_nm in $lt_nm_to_check; do
4961 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4962 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4963 IFS="$lt_save_ifs"
4964 test -z "$ac_dir" && ac_dir=.
4965 tmp_nm="$ac_dir/$lt_tmp_nm"
4966 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4967 # Check to see if the nm accepts a BSD-compat flag.
4968 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4969 # nm: unknown option "B" ignored
4970 # Tru64's nm complains that /dev/null is an invalid object file
4971 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4972 */dev/null* | *'Invalid file or object type'*)
4973 lt_cv_path_NM="$tmp_nm -B"
4974 break
4975 ;;
4976 *)
4977 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4978 */dev/null*)
4979 lt_cv_path_NM="$tmp_nm -p"
4980 break
4981 ;;
4982 *)
4983 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4984 continue # so that we can try to find one that supports BSD flags
4985 ;;
4986 esac
4987 ;;
4988 esac
4989 fi
4990 done
4991 IFS="$lt_save_ifs"
4992 done
4993 : ${lt_cv_path_NM=no}
4994 fi
4995 fi
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4997 $as_echo "$lt_cv_path_NM" >&6; }
4998 if test "$lt_cv_path_NM" != "no"; then
4999 NM="$lt_cv_path_NM"
5000 else
5001 # Didn't find any BSD compatible name lister, look for dumpbin.
5002 if test -n "$DUMPBIN"; then :
5003 # Let the user override the test.
5004 else
5005 if test -n "$ac_tool_prefix"; then
5006 for ac_prog in dumpbin "link -dump"
5007 do
5008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5009 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011 $as_echo_n "checking for $ac_word... " >&6; }
5012 if ${ac_cv_prog_DUMPBIN+:} false; then :
5013 $as_echo_n "(cached) " >&6
5014 else
5015 if test -n "$DUMPBIN"; then
5016 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5017 else
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5020 do
5021 IFS=$as_save_IFS
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5025 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 break 2
5028 fi
5029 done
5030 done
5031 IFS=$as_save_IFS
5032
5033 fi
5034 fi
5035 DUMPBIN=$ac_cv_prog_DUMPBIN
5036 if test -n "$DUMPBIN"; then
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5038 $as_echo "$DUMPBIN" >&6; }
5039 else
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041 $as_echo "no" >&6; }
5042 fi
5043
5044
5045 test -n "$DUMPBIN" && break
5046 done
5047 fi
5048 if test -z "$DUMPBIN"; then
5049 ac_ct_DUMPBIN=$DUMPBIN
5050 for ac_prog in dumpbin "link -dump"
5051 do
5052 # Extract the first word of "$ac_prog", so it can be a program name with args.
5053 set dummy $ac_prog; ac_word=$2
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055 $as_echo_n "checking for $ac_word... " >&6; }
5056 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059 if test -n "$ac_ct_DUMPBIN"; then
5060 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5061 else
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 for as_dir in $PATH
5064 do
5065 IFS=$as_save_IFS
5066 test -z "$as_dir" && as_dir=.
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5069 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 break 2
5072 fi
5073 done
5074 done
5075 IFS=$as_save_IFS
5076
5077 fi
5078 fi
5079 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5080 if test -n "$ac_ct_DUMPBIN"; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5082 $as_echo "$ac_ct_DUMPBIN" >&6; }
5083 else
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085 $as_echo "no" >&6; }
5086 fi
5087
5088
5089 test -n "$ac_ct_DUMPBIN" && break
5090 done
5091
5092 if test "x$ac_ct_DUMPBIN" = x; then
5093 DUMPBIN=":"
5094 else
5095 case $cross_compiling:$ac_tool_warned in
5096 yes:)
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5099 ac_tool_warned=yes ;;
5100 esac
5101 DUMPBIN=$ac_ct_DUMPBIN
5102 fi
5103 fi
5104
5105 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5106 *COFF*)
5107 DUMPBIN="$DUMPBIN -symbols"
5108 ;;
5109 *)
5110 DUMPBIN=:
5111 ;;
5112 esac
5113 fi
5114
5115 if test "$DUMPBIN" != ":"; then
5116 NM="$DUMPBIN"
5117 fi
5118 fi
5119 test -z "$NM" && NM=nm
5120
5121
5122
5123
5124
5125
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5127 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5128 if ${lt_cv_nm_interface+:} false; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 lt_cv_nm_interface="BSD nm"
5132 echo "int some_variable = 0;" > conftest.$ac_ext
5133 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5134 (eval "$ac_compile" 2>conftest.err)
5135 cat conftest.err >&5
5136 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5137 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5138 cat conftest.err >&5
5139 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5140 cat conftest.out >&5
5141 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5142 lt_cv_nm_interface="MS dumpbin"
5143 fi
5144 rm -f conftest*
5145 fi
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5147 $as_echo "$lt_cv_nm_interface" >&6; }
5148
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5150 $as_echo_n "checking whether ln -s works... " >&6; }
5151 LN_S=$as_ln_s
5152 if test "$LN_S" = "ln -s"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5154 $as_echo "yes" >&6; }
5155 else
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5157 $as_echo "no, using $LN_S" >&6; }
5158 fi
5159
5160 # find the maximum length of command line arguments
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5162 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5163 if ${lt_cv_sys_max_cmd_len+:} false; then :
5164 $as_echo_n "(cached) " >&6
5165 else
5166 i=0
5167 teststring="ABCD"
5168
5169 case $build_os in
5170 msdosdjgpp*)
5171 # On DJGPP, this test can blow up pretty badly due to problems in libc
5172 # (any single argument exceeding 2000 bytes causes a buffer overrun
5173 # during glob expansion). Even if it were fixed, the result of this
5174 # check would be larger than it should be.
5175 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5176 ;;
5177
5178 gnu*)
5179 # Under GNU Hurd, this test is not required because there is
5180 # no limit to the length of command line arguments.
5181 # Libtool will interpret -1 as no limit whatsoever
5182 lt_cv_sys_max_cmd_len=-1;
5183 ;;
5184
5185 cygwin* | mingw* | cegcc*)
5186 # On Win9x/ME, this test blows up -- it succeeds, but takes
5187 # about 5 minutes as the teststring grows exponentially.
5188 # Worse, since 9x/ME are not pre-emptively multitasking,
5189 # you end up with a "frozen" computer, even though with patience
5190 # the test eventually succeeds (with a max line length of 256k).
5191 # Instead, let's just punt: use the minimum linelength reported by
5192 # all of the supported platforms: 8192 (on NT/2K/XP).
5193 lt_cv_sys_max_cmd_len=8192;
5194 ;;
5195
5196 mint*)
5197 # On MiNT this can take a long time and run out of memory.
5198 lt_cv_sys_max_cmd_len=8192;
5199 ;;
5200
5201 amigaos*)
5202 # On AmigaOS with pdksh, this test takes hours, literally.
5203 # So we just punt and use a minimum line length of 8192.
5204 lt_cv_sys_max_cmd_len=8192;
5205 ;;
5206
5207 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5208 # This has been around since 386BSD, at least. Likely further.
5209 if test -x /sbin/sysctl; then
5210 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5211 elif test -x /usr/sbin/sysctl; then
5212 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5213 else
5214 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5215 fi
5216 # And add a safety zone
5217 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5218 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5219 ;;
5220
5221 interix*)
5222 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5223 lt_cv_sys_max_cmd_len=196608
5224 ;;
5225
5226 osf*)
5227 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5228 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5229 # nice to cause kernel panics so lets avoid the loop below.
5230 # First set a reasonable default.
5231 lt_cv_sys_max_cmd_len=16384
5232 #
5233 if test -x /sbin/sysconfig; then
5234 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5235 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5236 esac
5237 fi
5238 ;;
5239 sco3.2v5*)
5240 lt_cv_sys_max_cmd_len=102400
5241 ;;
5242 sysv5* | sco5v6* | sysv4.2uw2*)
5243 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5244 if test -n "$kargmax"; then
5245 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5246 else
5247 lt_cv_sys_max_cmd_len=32768
5248 fi
5249 ;;
5250 *)
5251 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5252 if test -n "$lt_cv_sys_max_cmd_len"; then
5253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5254 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5255 else
5256 # Make teststring a little bigger before we do anything with it.
5257 # a 1K string should be a reasonable start.
5258 for i in 1 2 3 4 5 6 7 8 ; do
5259 teststring=$teststring$teststring
5260 done
5261 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5262 # If test is not a shell built-in, we'll probably end up computing a
5263 # maximum length that is only half of the actual maximum length, but
5264 # we can't tell.
5265 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5266 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5267 test $i != 17 # 1/2 MB should be enough
5268 do
5269 i=`expr $i + 1`
5270 teststring=$teststring$teststring
5271 done
5272 # Only check the string length outside the loop.
5273 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5274 teststring=
5275 # Add a significant safety factor because C++ compilers can tack on
5276 # massive amounts of additional arguments before passing them to the
5277 # linker. It appears as though 1/2 is a usable value.
5278 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5279 fi
5280 ;;
5281 esac
5282
5283 fi
5284
5285 if test -n $lt_cv_sys_max_cmd_len ; then
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5287 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5288 else
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5290 $as_echo "none" >&6; }
5291 fi
5292 max_cmd_len=$lt_cv_sys_max_cmd_len
5293
5294
5295
5296
5297
5298
5299 : ${CP="cp -f"}
5300 : ${MV="mv -f"}
5301 : ${RM="rm -f"}
5302
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5304 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5305 # Try some XSI features
5306 xsi_shell=no
5307 ( _lt_dummy="a/b/c"
5308 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5309 = c,a/b,b/c, \
5310 && eval 'test $(( 1 + 1 )) -eq 2 \
5311 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5312 && xsi_shell=yes
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5314 $as_echo "$xsi_shell" >&6; }
5315
5316
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5318 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5319 lt_shell_append=no
5320 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5321 >/dev/null 2>&1 \
5322 && lt_shell_append=yes
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5324 $as_echo "$lt_shell_append" >&6; }
5325
5326
5327 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5328 lt_unset=unset
5329 else
5330 lt_unset=false
5331 fi
5332
5333
5334
5335
5336
5337 # test EBCDIC or ASCII
5338 case `echo X|tr X '\101'` in
5339 A) # ASCII based system
5340 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5341 lt_SP2NL='tr \040 \012'
5342 lt_NL2SP='tr \015\012 \040\040'
5343 ;;
5344 *) # EBCDIC based system
5345 lt_SP2NL='tr \100 \n'
5346 lt_NL2SP='tr \r\n \100\100'
5347 ;;
5348 esac
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5359 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5360 if ${lt_cv_to_host_file_cmd+:} false; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 case $host in
5364 *-*-mingw* )
5365 case $build in
5366 *-*-mingw* ) # actually msys
5367 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5368 ;;
5369 *-*-cygwin* )
5370 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5371 ;;
5372 * ) # otherwise, assume *nix
5373 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5374 ;;
5375 esac
5376 ;;
5377 *-*-cygwin* )
5378 case $build in
5379 *-*-mingw* ) # actually msys
5380 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5381 ;;
5382 *-*-cygwin* )
5383 lt_cv_to_host_file_cmd=func_convert_file_noop
5384 ;;
5385 * ) # otherwise, assume *nix
5386 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5387 ;;
5388 esac
5389 ;;
5390 * ) # unhandled hosts (and "normal" native builds)
5391 lt_cv_to_host_file_cmd=func_convert_file_noop
5392 ;;
5393 esac
5394
5395 fi
5396
5397 to_host_file_cmd=$lt_cv_to_host_file_cmd
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5399 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5400
5401
5402
5403
5404
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5406 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5407 if ${lt_cv_to_tool_file_cmd+:} false; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 #assume ordinary cross tools, or native build.
5411 lt_cv_to_tool_file_cmd=func_convert_file_noop
5412 case $host in
5413 *-*-mingw* )
5414 case $build in
5415 *-*-mingw* ) # actually msys
5416 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5417 ;;
5418 esac
5419 ;;
5420 esac
5421
5422 fi
5423
5424 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5426 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5427
5428
5429
5430
5431
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5433 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5434 if ${lt_cv_ld_reload_flag+:} false; then :
5435 $as_echo_n "(cached) " >&6
5436 else
5437 lt_cv_ld_reload_flag='-r'
5438 fi
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5440 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5441 reload_flag=$lt_cv_ld_reload_flag
5442 case $reload_flag in
5443 "" | " "*) ;;
5444 *) reload_flag=" $reload_flag" ;;
5445 esac
5446 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5447 case $host_os in
5448 cygwin* | mingw* | pw32* | cegcc*)
5449 if test "$GCC" != yes; then
5450 reload_cmds=false
5451 fi
5452 ;;
5453 darwin*)
5454 if test "$GCC" = yes; then
5455 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5456 else
5457 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5458 fi
5459 ;;
5460 esac
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470 if test -n "$ac_tool_prefix"; then
5471 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5472 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_prog_OBJDUMP+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 if test -n "$OBJDUMP"; then
5479 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5480 else
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH
5483 do
5484 IFS=$as_save_IFS
5485 test -z "$as_dir" && as_dir=.
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5488 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 break 2
5491 fi
5492 done
5493 done
5494 IFS=$as_save_IFS
5495
5496 fi
5497 fi
5498 OBJDUMP=$ac_cv_prog_OBJDUMP
5499 if test -n "$OBJDUMP"; then
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5501 $as_echo "$OBJDUMP" >&6; }
5502 else
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5505 fi
5506
5507
5508 fi
5509 if test -z "$ac_cv_prog_OBJDUMP"; then
5510 ac_ct_OBJDUMP=$OBJDUMP
5511 # Extract the first word of "objdump", so it can be a program name with args.
5512 set dummy objdump; ac_word=$2
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514 $as_echo_n "checking for $ac_word... " >&6; }
5515 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5516 $as_echo_n "(cached) " >&6
5517 else
5518 if test -n "$ac_ct_OBJDUMP"; then
5519 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5520 else
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 for as_dir in $PATH
5523 do
5524 IFS=$as_save_IFS
5525 test -z "$as_dir" && as_dir=.
5526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5528 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 break 2
5531 fi
5532 done
5533 done
5534 IFS=$as_save_IFS
5535
5536 fi
5537 fi
5538 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5539 if test -n "$ac_ct_OBJDUMP"; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5541 $as_echo "$ac_ct_OBJDUMP" >&6; }
5542 else
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5545 fi
5546
5547 if test "x$ac_ct_OBJDUMP" = x; then
5548 OBJDUMP="false"
5549 else
5550 case $cross_compiling:$ac_tool_warned in
5551 yes:)
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5554 ac_tool_warned=yes ;;
5555 esac
5556 OBJDUMP=$ac_ct_OBJDUMP
5557 fi
5558 else
5559 OBJDUMP="$ac_cv_prog_OBJDUMP"
5560 fi
5561
5562 test -z "$OBJDUMP" && OBJDUMP=objdump
5563
5564
5565
5566
5567
5568
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5570 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5571 if ${lt_cv_deplibs_check_method+:} false; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 lt_cv_file_magic_cmd='$MAGIC_CMD'
5575 lt_cv_file_magic_test_file=
5576 lt_cv_deplibs_check_method='unknown'
5577 # Need to set the preceding variable on all platforms that support
5578 # interlibrary dependencies.
5579 # 'none' -- dependencies not supported.
5580 # `unknown' -- same as none, but documents that we really don't know.
5581 # 'pass_all' -- all dependencies passed with no checks.
5582 # 'test_compile' -- check by making test program.
5583 # 'file_magic [[regex]]' -- check by looking for files in library path
5584 # which responds to the $file_magic_cmd with a given extended regex.
5585 # If you have `file' or equivalent on your system and you're not sure
5586 # whether `pass_all' will *always* work, you probably want this one.
5587
5588 case $host_os in
5589 aix[4-9]*)
5590 lt_cv_deplibs_check_method=pass_all
5591 ;;
5592
5593 beos*)
5594 lt_cv_deplibs_check_method=pass_all
5595 ;;
5596
5597 bsdi[45]*)
5598 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5599 lt_cv_file_magic_cmd='/usr/bin/file -L'
5600 lt_cv_file_magic_test_file=/shlib/libc.so
5601 ;;
5602
5603 cygwin*)
5604 # func_win32_libid is a shell function defined in ltmain.sh
5605 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5606 lt_cv_file_magic_cmd='func_win32_libid'
5607 ;;
5608
5609 mingw* | pw32*)
5610 # Base MSYS/MinGW do not provide the 'file' command needed by
5611 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5612 # unless we find 'file', for example because we are cross-compiling.
5613 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5614 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5615 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5616 lt_cv_file_magic_cmd='func_win32_libid'
5617 else
5618 # Keep this pattern in sync with the one in func_win32_libid.
5619 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5620 lt_cv_file_magic_cmd='$OBJDUMP -f'
5621 fi
5622 ;;
5623
5624 cegcc*)
5625 # use the weaker test based on 'objdump'. See mingw*.
5626 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5627 lt_cv_file_magic_cmd='$OBJDUMP -f'
5628 ;;
5629
5630 darwin* | rhapsody*)
5631 lt_cv_deplibs_check_method=pass_all
5632 ;;
5633
5634 freebsd* | dragonfly*)
5635 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5636 case $host_cpu in
5637 i*86 )
5638 # Not sure whether the presence of OpenBSD here was a mistake.
5639 # Let's accept both of them until this is cleared up.
5640 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5641 lt_cv_file_magic_cmd=/usr/bin/file
5642 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5643 ;;
5644 esac
5645 else
5646 lt_cv_deplibs_check_method=pass_all
5647 fi
5648 ;;
5649
5650 gnu*)
5651 lt_cv_deplibs_check_method=pass_all
5652 ;;
5653
5654 haiku*)
5655 lt_cv_deplibs_check_method=pass_all
5656 ;;
5657
5658 hpux10.20* | hpux11*)
5659 lt_cv_file_magic_cmd=/usr/bin/file
5660 case $host_cpu in
5661 ia64*)
5662 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5663 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5664 ;;
5665 hppa*64*)
5666 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]'
5667 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5668 ;;
5669 *)
5670 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5671 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5672 ;;
5673 esac
5674 ;;
5675
5676 interix[3-9]*)
5677 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5678 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5679 ;;
5680
5681 irix5* | irix6* | nonstopux*)
5682 case $LD in
5683 *-32|*"-32 ") libmagic=32-bit;;
5684 *-n32|*"-n32 ") libmagic=N32;;
5685 *-64|*"-64 ") libmagic=64-bit;;
5686 *) libmagic=never-match;;
5687 esac
5688 lt_cv_deplibs_check_method=pass_all
5689 ;;
5690
5691 # This must be Linux ELF.
5692 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5693 lt_cv_deplibs_check_method=pass_all
5694 ;;
5695
5696 netbsd* | netbsdelf*-gnu)
5697 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5699 else
5700 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5701 fi
5702 ;;
5703
5704 newos6*)
5705 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5706 lt_cv_file_magic_cmd=/usr/bin/file
5707 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5708 ;;
5709
5710 *nto* | *qnx*)
5711 lt_cv_deplibs_check_method=pass_all
5712 ;;
5713
5714 openbsd*)
5715 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5716 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5717 else
5718 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5719 fi
5720 ;;
5721
5722 osf3* | osf4* | osf5*)
5723 lt_cv_deplibs_check_method=pass_all
5724 ;;
5725
5726 rdos*)
5727 lt_cv_deplibs_check_method=pass_all
5728 ;;
5729
5730 solaris*)
5731 lt_cv_deplibs_check_method=pass_all
5732 ;;
5733
5734 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5735 lt_cv_deplibs_check_method=pass_all
5736 ;;
5737
5738 sysv4 | sysv4.3*)
5739 case $host_vendor in
5740 motorola)
5741 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]'
5742 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5743 ;;
5744 ncr)
5745 lt_cv_deplibs_check_method=pass_all
5746 ;;
5747 sequent)
5748 lt_cv_file_magic_cmd='/bin/file'
5749 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5750 ;;
5751 sni)
5752 lt_cv_file_magic_cmd='/bin/file'
5753 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5754 lt_cv_file_magic_test_file=/lib/libc.so
5755 ;;
5756 siemens)
5757 lt_cv_deplibs_check_method=pass_all
5758 ;;
5759 pc)
5760 lt_cv_deplibs_check_method=pass_all
5761 ;;
5762 esac
5763 ;;
5764
5765 tpf*)
5766 lt_cv_deplibs_check_method=pass_all
5767 ;;
5768 esac
5769
5770 fi
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5772 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5773
5774 file_magic_glob=
5775 want_nocaseglob=no
5776 if test "$build" = "$host"; then
5777 case $host_os in
5778 mingw* | pw32*)
5779 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5780 want_nocaseglob=yes
5781 else
5782 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5783 fi
5784 ;;
5785 esac
5786 fi
5787
5788 file_magic_cmd=$lt_cv_file_magic_cmd
5789 deplibs_check_method=$lt_cv_deplibs_check_method
5790 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813 if test -n "$ac_tool_prefix"; then
5814 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5815 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817 $as_echo_n "checking for $ac_word... " >&6; }
5818 if ${ac_cv_prog_DLLTOOL+:} false; then :
5819 $as_echo_n "(cached) " >&6
5820 else
5821 if test -n "$DLLTOOL"; then
5822 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5823 else
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5826 do
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5831 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 break 2
5834 fi
5835 done
5836 done
5837 IFS=$as_save_IFS
5838
5839 fi
5840 fi
5841 DLLTOOL=$ac_cv_prog_DLLTOOL
5842 if test -n "$DLLTOOL"; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5844 $as_echo "$DLLTOOL" >&6; }
5845 else
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847 $as_echo "no" >&6; }
5848 fi
5849
5850
5851 fi
5852 if test -z "$ac_cv_prog_DLLTOOL"; then
5853 ac_ct_DLLTOOL=$DLLTOOL
5854 # Extract the first word of "dlltool", so it can be a program name with args.
5855 set dummy dlltool; ac_word=$2
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5857 $as_echo_n "checking for $ac_word... " >&6; }
5858 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 if test -n "$ac_ct_DLLTOOL"; then
5862 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5863 else
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH
5866 do
5867 IFS=$as_save_IFS
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5871 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 break 2
5874 fi
5875 done
5876 done
5877 IFS=$as_save_IFS
5878
5879 fi
5880 fi
5881 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5882 if test -n "$ac_ct_DLLTOOL"; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5884 $as_echo "$ac_ct_DLLTOOL" >&6; }
5885 else
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887 $as_echo "no" >&6; }
5888 fi
5889
5890 if test "x$ac_ct_DLLTOOL" = x; then
5891 DLLTOOL="false"
5892 else
5893 case $cross_compiling:$ac_tool_warned in
5894 yes:)
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5897 ac_tool_warned=yes ;;
5898 esac
5899 DLLTOOL=$ac_ct_DLLTOOL
5900 fi
5901 else
5902 DLLTOOL="$ac_cv_prog_DLLTOOL"
5903 fi
5904
5905 test -z "$DLLTOOL" && DLLTOOL=dlltool
5906
5907
5908
5909
5910
5911
5912
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5914 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5915 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5916 $as_echo_n "(cached) " >&6
5917 else
5918 lt_cv_sharedlib_from_linklib_cmd='unknown'
5919
5920 case $host_os in
5921 cygwin* | mingw* | pw32* | cegcc*)
5922 # two different shell functions defined in ltmain.sh
5923 # decide which to use based on capabilities of $DLLTOOL
5924 case `$DLLTOOL --help 2>&1` in
5925 *--identify-strict*)
5926 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5927 ;;
5928 *)
5929 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5930 ;;
5931 esac
5932 ;;
5933 *)
5934 # fallback: assume linklib IS sharedlib
5935 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5936 ;;
5937 esac
5938
5939 fi
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5941 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5942 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5943 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5944
5945
5946
5947
5948
5949
5950
5951 if test -n "$ac_tool_prefix"; then
5952 for ac_prog in ar
5953 do
5954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957 $as_echo_n "checking for $ac_word... " >&6; }
5958 if ${ac_cv_prog_AR+:} false; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 if test -n "$AR"; then
5962 ac_cv_prog_AR="$AR" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5966 do
5967 IFS=$as_save_IFS
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5971 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 break 2
5974 fi
5975 done
5976 done
5977 IFS=$as_save_IFS
5978
5979 fi
5980 fi
5981 AR=$ac_cv_prog_AR
5982 if test -n "$AR"; then
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5984 $as_echo "$AR" >&6; }
5985 else
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 $as_echo "no" >&6; }
5988 fi
5989
5990
5991 test -n "$AR" && break
5992 done
5993 fi
5994 if test -z "$AR"; then
5995 ac_ct_AR=$AR
5996 for ac_prog in ar
5997 do
5998 # Extract the first word of "$ac_prog", so it can be a program name with args.
5999 set dummy $ac_prog; ac_word=$2
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6001 $as_echo_n "checking for $ac_word... " >&6; }
6002 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6003 $as_echo_n "(cached) " >&6
6004 else
6005 if test -n "$ac_ct_AR"; then
6006 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6007 else
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH
6010 do
6011 IFS=$as_save_IFS
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015 ac_cv_prog_ac_ct_AR="$ac_prog"
6016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6017 break 2
6018 fi
6019 done
6020 done
6021 IFS=$as_save_IFS
6022
6023 fi
6024 fi
6025 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6026 if test -n "$ac_ct_AR"; then
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6028 $as_echo "$ac_ct_AR" >&6; }
6029 else
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031 $as_echo "no" >&6; }
6032 fi
6033
6034
6035 test -n "$ac_ct_AR" && break
6036 done
6037
6038 if test "x$ac_ct_AR" = x; then
6039 AR="false"
6040 else
6041 case $cross_compiling:$ac_tool_warned in
6042 yes:)
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6045 ac_tool_warned=yes ;;
6046 esac
6047 AR=$ac_ct_AR
6048 fi
6049 fi
6050
6051 : ${AR=ar}
6052 : ${AR_FLAGS=cru}
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6065 $as_echo_n "checking for archiver @FILE support... " >&6; }
6066 if ${lt_cv_ar_at_file+:} false; then :
6067 $as_echo_n "(cached) " >&6
6068 else
6069 lt_cv_ar_at_file=no
6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6072
6073 int
6074 main ()
6075 {
6076
6077 ;
6078 return 0;
6079 }
6080 _ACEOF
6081 if ac_fn_c_try_compile "$LINENO"; then :
6082 echo conftest.$ac_objext > conftest.lst
6083 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6085 (eval $lt_ar_try) 2>&5
6086 ac_status=$?
6087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6088 test $ac_status = 0; }
6089 if test "$ac_status" -eq 0; then
6090 # Ensure the archiver fails upon bogus file names.
6091 rm -f conftest.$ac_objext libconftest.a
6092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6093 (eval $lt_ar_try) 2>&5
6094 ac_status=$?
6095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6096 test $ac_status = 0; }
6097 if test "$ac_status" -ne 0; then
6098 lt_cv_ar_at_file=@
6099 fi
6100 fi
6101 rm -f conftest.* libconftest.a
6102
6103 fi
6104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6105
6106 fi
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6108 $as_echo "$lt_cv_ar_at_file" >&6; }
6109
6110 if test "x$lt_cv_ar_at_file" = xno; then
6111 archiver_list_spec=
6112 else
6113 archiver_list_spec=$lt_cv_ar_at_file
6114 fi
6115
6116
6117
6118
6119
6120
6121
6122 if test -n "$ac_tool_prefix"; then
6123 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6124 set dummy ${ac_tool_prefix}strip; ac_word=$2
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126 $as_echo_n "checking for $ac_word... " >&6; }
6127 if ${ac_cv_prog_STRIP+:} false; then :
6128 $as_echo_n "(cached) " >&6
6129 else
6130 if test -n "$STRIP"; then
6131 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6132 else
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134 for as_dir in $PATH
6135 do
6136 IFS=$as_save_IFS
6137 test -z "$as_dir" && as_dir=.
6138 for ac_exec_ext in '' $ac_executable_extensions; do
6139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6140 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 break 2
6143 fi
6144 done
6145 done
6146 IFS=$as_save_IFS
6147
6148 fi
6149 fi
6150 STRIP=$ac_cv_prog_STRIP
6151 if test -n "$STRIP"; then
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6153 $as_echo "$STRIP" >&6; }
6154 else
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6156 $as_echo "no" >&6; }
6157 fi
6158
6159
6160 fi
6161 if test -z "$ac_cv_prog_STRIP"; then
6162 ac_ct_STRIP=$STRIP
6163 # Extract the first word of "strip", so it can be a program name with args.
6164 set dummy strip; ac_word=$2
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6166 $as_echo_n "checking for $ac_word... " >&6; }
6167 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6168 $as_echo_n "(cached) " >&6
6169 else
6170 if test -n "$ac_ct_STRIP"; then
6171 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6172 else
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH
6175 do
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6180 ac_cv_prog_ac_ct_STRIP="strip"
6181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6182 break 2
6183 fi
6184 done
6185 done
6186 IFS=$as_save_IFS
6187
6188 fi
6189 fi
6190 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6191 if test -n "$ac_ct_STRIP"; then
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6193 $as_echo "$ac_ct_STRIP" >&6; }
6194 else
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6196 $as_echo "no" >&6; }
6197 fi
6198
6199 if test "x$ac_ct_STRIP" = x; then
6200 STRIP=":"
6201 else
6202 case $cross_compiling:$ac_tool_warned in
6203 yes:)
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6206 ac_tool_warned=yes ;;
6207 esac
6208 STRIP=$ac_ct_STRIP
6209 fi
6210 else
6211 STRIP="$ac_cv_prog_STRIP"
6212 fi
6213
6214 test -z "$STRIP" && STRIP=:
6215
6216
6217
6218
6219
6220
6221 if test -n "$ac_tool_prefix"; then
6222 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6223 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225 $as_echo_n "checking for $ac_word... " >&6; }
6226 if ${ac_cv_prog_RANLIB+:} false; then :
6227 $as_echo_n "(cached) " >&6
6228 else
6229 if test -n "$RANLIB"; then
6230 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6231 else
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH
6234 do
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 break 2
6242 fi
6243 done
6244 done
6245 IFS=$as_save_IFS
6246
6247 fi
6248 fi
6249 RANLIB=$ac_cv_prog_RANLIB
6250 if test -n "$RANLIB"; then
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6252 $as_echo "$RANLIB" >&6; }
6253 else
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6256 fi
6257
6258
6259 fi
6260 if test -z "$ac_cv_prog_RANLIB"; then
6261 ac_ct_RANLIB=$RANLIB
6262 # Extract the first word of "ranlib", so it can be a program name with args.
6263 set dummy ranlib; ac_word=$2
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6265 $as_echo_n "checking for $ac_word... " >&6; }
6266 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6267 $as_echo_n "(cached) " >&6
6268 else
6269 if test -n "$ac_ct_RANLIB"; then
6270 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6271 else
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 for as_dir in $PATH
6274 do
6275 IFS=$as_save_IFS
6276 test -z "$as_dir" && as_dir=.
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6279 ac_cv_prog_ac_ct_RANLIB="ranlib"
6280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 break 2
6282 fi
6283 done
6284 done
6285 IFS=$as_save_IFS
6286
6287 fi
6288 fi
6289 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6290 if test -n "$ac_ct_RANLIB"; then
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6292 $as_echo "$ac_ct_RANLIB" >&6; }
6293 else
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6295 $as_echo "no" >&6; }
6296 fi
6297
6298 if test "x$ac_ct_RANLIB" = x; then
6299 RANLIB=":"
6300 else
6301 case $cross_compiling:$ac_tool_warned in
6302 yes:)
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6305 ac_tool_warned=yes ;;
6306 esac
6307 RANLIB=$ac_ct_RANLIB
6308 fi
6309 else
6310 RANLIB="$ac_cv_prog_RANLIB"
6311 fi
6312
6313 test -z "$RANLIB" && RANLIB=:
6314
6315
6316
6317
6318
6319
6320 # Determine commands to create old-style static archives.
6321 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6322 old_postinstall_cmds='chmod 644 $oldlib'
6323 old_postuninstall_cmds=
6324
6325 if test -n "$RANLIB"; then
6326 case $host_os in
6327 openbsd*)
6328 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6329 ;;
6330 *)
6331 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6332 ;;
6333 esac
6334 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6335 fi
6336
6337 case $host_os in
6338 darwin*)
6339 lock_old_archive_extraction=yes ;;
6340 *)
6341 lock_old_archive_extraction=no ;;
6342 esac
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382 # If no C compiler was specified, use CC.
6383 LTCC=${LTCC-"$CC"}
6384
6385 # If no C compiler flags were specified, use CFLAGS.
6386 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6387
6388 # Allow CC to be a program name with arguments.
6389 compiler=$CC
6390
6391
6392 # Check for command to grab the raw symbol name followed by C symbol from nm.
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6394 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6395 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6396 $as_echo_n "(cached) " >&6
6397 else
6398
6399 # These are sane defaults that work on at least a few old systems.
6400 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6401
6402 # Character class describing NM global symbol codes.
6403 symcode='[BCDEGRST]'
6404
6405 # Regexp to match symbols that can be accessed directly from C.
6406 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6407
6408 # Define system-specific variables.
6409 case $host_os in
6410 aix*)
6411 symcode='[BCDT]'
6412 ;;
6413 cygwin* | mingw* | pw32* | cegcc*)
6414 symcode='[ABCDGISTW]'
6415 ;;
6416 hpux*)
6417 if test "$host_cpu" = ia64; then
6418 symcode='[ABCDEGRST]'
6419 fi
6420 ;;
6421 irix* | nonstopux*)
6422 symcode='[BCDEGRST]'
6423 ;;
6424 osf*)
6425 symcode='[BCDEGQRST]'
6426 ;;
6427 solaris*)
6428 symcode='[BDRT]'
6429 ;;
6430 sco3.2v5*)
6431 symcode='[DT]'
6432 ;;
6433 sysv4.2uw2*)
6434 symcode='[DT]'
6435 ;;
6436 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6437 symcode='[ABDT]'
6438 ;;
6439 sysv4)
6440 symcode='[DFNSTU]'
6441 ;;
6442 esac
6443
6444 # If we're using GNU nm, then use its standard symbol codes.
6445 case `$NM -V 2>&1` in
6446 *GNU* | *'with BFD'*)
6447 symcode='[ABCDGIRSTW]' ;;
6448 esac
6449
6450 # Transform an extracted symbol line into a proper C declaration.
6451 # Some systems (esp. on ia64) link data and code symbols differently,
6452 # so use this general approach.
6453 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6454
6455 # Transform an extracted symbol line into symbol name and symbol address
6456 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6457 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'"
6458
6459 # Handle CRLF in mingw tool chain
6460 opt_cr=
6461 case $build_os in
6462 mingw*)
6463 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6464 ;;
6465 esac
6466
6467 # Try without a prefix underscore, then with it.
6468 for ac_symprfx in "" "_"; do
6469
6470 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6471 symxfrm="\\1 $ac_symprfx\\2 \\2"
6472
6473 # Write the raw and C identifiers.
6474 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6475 # Fake it for dumpbin and say T for any non-static function
6476 # and D for any global variable.
6477 # Also find C++ and __fastcall symbols from MSVC++,
6478 # which start with @ or ?.
6479 lt_cv_sys_global_symbol_pipe="$AWK '"\
6480 " {last_section=section; section=\$ 3};"\
6481 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6482 " \$ 0!~/External *\|/{next};"\
6483 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6484 " {if(hide[section]) next};"\
6485 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6486 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6487 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6488 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6489 " ' prfx=^$ac_symprfx"
6490 else
6491 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6492 fi
6493 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6494
6495 # Check to see that the pipe works correctly.
6496 pipe_works=no
6497
6498 rm -f conftest*
6499 cat > conftest.$ac_ext <<_LT_EOF
6500 #ifdef __cplusplus
6501 extern "C" {
6502 #endif
6503 char nm_test_var;
6504 void nm_test_func(void);
6505 void nm_test_func(void){}
6506 #ifdef __cplusplus
6507 }
6508 #endif
6509 int main(){nm_test_var='a';nm_test_func();return(0);}
6510 _LT_EOF
6511
6512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6513 (eval $ac_compile) 2>&5
6514 ac_status=$?
6515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6516 test $ac_status = 0; }; then
6517 # Now try to grab the symbols.
6518 nlist=conftest.nm
6519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6520 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6521 ac_status=$?
6522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6523 test $ac_status = 0; } && test -s "$nlist"; then
6524 # Try sorting and uniquifying the output.
6525 if sort "$nlist" | uniq > "$nlist"T; then
6526 mv -f "$nlist"T "$nlist"
6527 else
6528 rm -f "$nlist"T
6529 fi
6530
6531 # Make sure that we snagged all the symbols we need.
6532 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6533 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6534 cat <<_LT_EOF > conftest.$ac_ext
6535 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6536 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6537 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6538 relocations are performed -- see ld's documentation on pseudo-relocs. */
6539 # define LT_DLSYM_CONST
6540 #elif defined(__osf__)
6541 /* This system does not cope well with relocations in const data. */
6542 # define LT_DLSYM_CONST
6543 #else
6544 # define LT_DLSYM_CONST const
6545 #endif
6546
6547 #ifdef __cplusplus
6548 extern "C" {
6549 #endif
6550
6551 _LT_EOF
6552 # Now generate the symbol file.
6553 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6554
6555 cat <<_LT_EOF >> conftest.$ac_ext
6556
6557 /* The mapping between symbol names and symbols. */
6558 LT_DLSYM_CONST struct {
6559 const char *name;
6560 void *address;
6561 }
6562 lt__PROGRAM__LTX_preloaded_symbols[] =
6563 {
6564 { "@PROGRAM@", (void *) 0 },
6565 _LT_EOF
6566 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6567 cat <<\_LT_EOF >> conftest.$ac_ext
6568 {0, (void *) 0}
6569 };
6570
6571 /* This works around a problem in FreeBSD linker */
6572 #ifdef FREEBSD_WORKAROUND
6573 static const void *lt_preloaded_setup() {
6574 return lt__PROGRAM__LTX_preloaded_symbols;
6575 }
6576 #endif
6577
6578 #ifdef __cplusplus
6579 }
6580 #endif
6581 _LT_EOF
6582 # Now try linking the two files.
6583 mv conftest.$ac_objext conftstm.$ac_objext
6584 lt_globsym_save_LIBS=$LIBS
6585 lt_globsym_save_CFLAGS=$CFLAGS
6586 LIBS="conftstm.$ac_objext"
6587 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6589 (eval $ac_link) 2>&5
6590 ac_status=$?
6591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6592 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6593 pipe_works=yes
6594 fi
6595 LIBS=$lt_globsym_save_LIBS
6596 CFLAGS=$lt_globsym_save_CFLAGS
6597 else
6598 echo "cannot find nm_test_func in $nlist" >&5
6599 fi
6600 else
6601 echo "cannot find nm_test_var in $nlist" >&5
6602 fi
6603 else
6604 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6605 fi
6606 else
6607 echo "$progname: failed program was:" >&5
6608 cat conftest.$ac_ext >&5
6609 fi
6610 rm -rf conftest* conftst*
6611
6612 # Do not use the global_symbol_pipe unless it works.
6613 if test "$pipe_works" = yes; then
6614 break
6615 else
6616 lt_cv_sys_global_symbol_pipe=
6617 fi
6618 done
6619
6620 fi
6621
6622 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6623 lt_cv_sys_global_symbol_to_cdecl=
6624 fi
6625 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6627 $as_echo "failed" >&6; }
6628 else
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6630 $as_echo "ok" >&6; }
6631 fi
6632
6633 # Response file support.
6634 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6635 nm_file_list_spec='@'
6636 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6637 nm_file_list_spec='@'
6638 fi
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6667 $as_echo_n "checking for sysroot... " >&6; }
6668
6669 # Check whether --with-sysroot was given.
6670 if test "${with_sysroot+set}" = set; then :
6671 withval=$with_sysroot;
6672 else
6673 with_sysroot=no
6674 fi
6675
6676
6677 lt_sysroot=
6678 case ${with_sysroot} in #(
6679 yes)
6680 if test "$GCC" = yes; then
6681 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6682 fi
6683 ;; #(
6684 /*)
6685 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6686 ;; #(
6687 no|'')
6688 ;; #(
6689 *)
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6691 $as_echo "${with_sysroot}" >&6; }
6692 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6693 ;;
6694 esac
6695
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6697 $as_echo "${lt_sysroot:-no}" >&6; }
6698
6699
6700
6701
6702
6703 # Check whether --enable-libtool-lock was given.
6704 if test "${enable_libtool_lock+set}" = set; then :
6705 enableval=$enable_libtool_lock;
6706 fi
6707
6708 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6709
6710 # Some flags need to be propagated to the compiler or linker for good
6711 # libtool support.
6712 case $host in
6713 ia64-*-hpux*)
6714 # Find out which ABI we are using.
6715 echo 'int i;' > conftest.$ac_ext
6716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6717 (eval $ac_compile) 2>&5
6718 ac_status=$?
6719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6720 test $ac_status = 0; }; then
6721 case `/usr/bin/file conftest.$ac_objext` in
6722 *ELF-32*)
6723 HPUX_IA64_MODE="32"
6724 ;;
6725 *ELF-64*)
6726 HPUX_IA64_MODE="64"
6727 ;;
6728 esac
6729 fi
6730 rm -rf conftest*
6731 ;;
6732 *-*-irix6*)
6733 # Find out which ABI we are using.
6734 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6736 (eval $ac_compile) 2>&5
6737 ac_status=$?
6738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6739 test $ac_status = 0; }; then
6740 if test "$lt_cv_prog_gnu_ld" = yes; then
6741 case `/usr/bin/file conftest.$ac_objext` in
6742 *32-bit*)
6743 LD="${LD-ld} -melf32bsmip"
6744 ;;
6745 *N32*)
6746 LD="${LD-ld} -melf32bmipn32"
6747 ;;
6748 *64-bit*)
6749 LD="${LD-ld} -melf64bmip"
6750 ;;
6751 esac
6752 else
6753 case `/usr/bin/file conftest.$ac_objext` in
6754 *32-bit*)
6755 LD="${LD-ld} -32"
6756 ;;
6757 *N32*)
6758 LD="${LD-ld} -n32"
6759 ;;
6760 *64-bit*)
6761 LD="${LD-ld} -64"
6762 ;;
6763 esac
6764 fi
6765 fi
6766 rm -rf conftest*
6767 ;;
6768
6769 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6770 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6771 # Find out which ABI we are using.
6772 echo 'int i;' > conftest.$ac_ext
6773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6774 (eval $ac_compile) 2>&5
6775 ac_status=$?
6776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6777 test $ac_status = 0; }; then
6778 case `/usr/bin/file conftest.o` in
6779 *32-bit*)
6780 case $host in
6781 x86_64-*kfreebsd*-gnu)
6782 LD="${LD-ld} -m elf_i386_fbsd"
6783 ;;
6784 x86_64-*linux*)
6785 LD="${LD-ld} -m elf_i386"
6786 ;;
6787 ppc64-*linux*|powerpc64-*linux*)
6788 LD="${LD-ld} -m elf32ppclinux"
6789 ;;
6790 s390x-*linux*)
6791 LD="${LD-ld} -m elf_s390"
6792 ;;
6793 sparc64-*linux*)
6794 LD="${LD-ld} -m elf32_sparc"
6795 ;;
6796 esac
6797 ;;
6798 *64-bit*)
6799 case $host in
6800 x86_64-*kfreebsd*-gnu)
6801 LD="${LD-ld} -m elf_x86_64_fbsd"
6802 ;;
6803 x86_64-*linux*)
6804 LD="${LD-ld} -m elf_x86_64"
6805 ;;
6806 ppc*-*linux*|powerpc*-*linux*)
6807 LD="${LD-ld} -m elf64ppc"
6808 ;;
6809 s390*-*linux*|s390*-*tpf*)
6810 LD="${LD-ld} -m elf64_s390"
6811 ;;
6812 sparc*-*linux*)
6813 LD="${LD-ld} -m elf64_sparc"
6814 ;;
6815 esac
6816 ;;
6817 esac
6818 fi
6819 rm -rf conftest*
6820 ;;
6821
6822 *-*-sco3.2v5*)
6823 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6824 SAVE_CFLAGS="$CFLAGS"
6825 CFLAGS="$CFLAGS -belf"
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6827 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6828 if ${lt_cv_cc_needs_belf+:} false; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831 ac_ext=c
6832 ac_cpp='$CPP $CPPFLAGS'
6833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6836
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6839
6840 int
6841 main ()
6842 {
6843
6844 ;
6845 return 0;
6846 }
6847 _ACEOF
6848 if ac_fn_c_try_link "$LINENO"; then :
6849 lt_cv_cc_needs_belf=yes
6850 else
6851 lt_cv_cc_needs_belf=no
6852 fi
6853 rm -f core conftest.err conftest.$ac_objext \
6854 conftest$ac_exeext conftest.$ac_ext
6855 ac_ext=c
6856 ac_cpp='$CPP $CPPFLAGS'
6857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6860
6861 fi
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6863 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6864 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6865 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6866 CFLAGS="$SAVE_CFLAGS"
6867 fi
6868 ;;
6869 sparc*-*solaris*)
6870 # Find out which ABI we are using.
6871 echo 'int i;' > conftest.$ac_ext
6872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6873 (eval $ac_compile) 2>&5
6874 ac_status=$?
6875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6876 test $ac_status = 0; }; then
6877 case `/usr/bin/file conftest.o` in
6878 *64-bit*)
6879 case $lt_cv_prog_gnu_ld in
6880 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6881 *)
6882 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6883 LD="${LD-ld} -64"
6884 fi
6885 ;;
6886 esac
6887 ;;
6888 esac
6889 fi
6890 rm -rf conftest*
6891 ;;
6892 esac
6893
6894 need_locks="$enable_libtool_lock"
6895
6896 if test -n "$ac_tool_prefix"; then
6897 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6898 set dummy ${ac_tool_prefix}mt; 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_MANIFEST_TOOL+:} false; then :
6902 $as_echo_n "(cached) " >&6
6903 else
6904 if test -n "$MANIFEST_TOOL"; then
6905 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # 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_MANIFEST_TOOL="${ac_tool_prefix}mt"
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 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6925 if test -n "$MANIFEST_TOOL"; then
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6927 $as_echo "$MANIFEST_TOOL" >&6; }
6928 else
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930 $as_echo "no" >&6; }
6931 fi
6932
6933
6934 fi
6935 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6936 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6937 # Extract the first word of "mt", so it can be a program name with args.
6938 set dummy mt; ac_word=$2
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6940 $as_echo_n "checking for $ac_word... " >&6; }
6941 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6942 $as_echo_n "(cached) " >&6
6943 else
6944 if test -n "$ac_ct_MANIFEST_TOOL"; then
6945 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6946 else
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 for as_dir in $PATH
6949 do
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6954 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 break 2
6957 fi
6958 done
6959 done
6960 IFS=$as_save_IFS
6961
6962 fi
6963 fi
6964 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6965 if test -n "$ac_ct_MANIFEST_TOOL"; then
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6967 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6968 else
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970 $as_echo "no" >&6; }
6971 fi
6972
6973 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6974 MANIFEST_TOOL=":"
6975 else
6976 case $cross_compiling:$ac_tool_warned in
6977 yes:)
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6980 ac_tool_warned=yes ;;
6981 esac
6982 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6983 fi
6984 else
6985 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6986 fi
6987
6988 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6990 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6991 if ${lt_cv_path_mainfest_tool+:} false; then :
6992 $as_echo_n "(cached) " >&6
6993 else
6994 lt_cv_path_mainfest_tool=no
6995 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6996 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6997 cat conftest.err >&5
6998 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6999 lt_cv_path_mainfest_tool=yes
7000 fi
7001 rm -f conftest*
7002 fi
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7004 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7005 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7006 MANIFEST_TOOL=:
7007 fi
7008
7009
7010
7011
7012
7013
7014 case $host_os in
7015 rhapsody* | darwin*)
7016 if test -n "$ac_tool_prefix"; then
7017 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7018 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020 $as_echo_n "checking for $ac_word... " >&6; }
7021 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7022 $as_echo_n "(cached) " >&6
7023 else
7024 if test -n "$DSYMUTIL"; then
7025 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7026 else
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7029 do
7030 IFS=$as_save_IFS
7031 test -z "$as_dir" && as_dir=.
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7034 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036 break 2
7037 fi
7038 done
7039 done
7040 IFS=$as_save_IFS
7041
7042 fi
7043 fi
7044 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7045 if test -n "$DSYMUTIL"; then
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7047 $as_echo "$DSYMUTIL" >&6; }
7048 else
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 $as_echo "no" >&6; }
7051 fi
7052
7053
7054 fi
7055 if test -z "$ac_cv_prog_DSYMUTIL"; then
7056 ac_ct_DSYMUTIL=$DSYMUTIL
7057 # Extract the first word of "dsymutil", so it can be a program name with args.
7058 set dummy dsymutil; ac_word=$2
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7060 $as_echo_n "checking for $ac_word... " >&6; }
7061 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7062 $as_echo_n "(cached) " >&6
7063 else
7064 if test -n "$ac_ct_DSYMUTIL"; then
7065 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7066 else
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 for as_dir in $PATH
7069 do
7070 IFS=$as_save_IFS
7071 test -z "$as_dir" && as_dir=.
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7074 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7076 break 2
7077 fi
7078 done
7079 done
7080 IFS=$as_save_IFS
7081
7082 fi
7083 fi
7084 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7085 if test -n "$ac_ct_DSYMUTIL"; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7087 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7088 else
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090 $as_echo "no" >&6; }
7091 fi
7092
7093 if test "x$ac_ct_DSYMUTIL" = x; then
7094 DSYMUTIL=":"
7095 else
7096 case $cross_compiling:$ac_tool_warned in
7097 yes:)
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7100 ac_tool_warned=yes ;;
7101 esac
7102 DSYMUTIL=$ac_ct_DSYMUTIL
7103 fi
7104 else
7105 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7106 fi
7107
7108 if test -n "$ac_tool_prefix"; then
7109 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7110 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112 $as_echo_n "checking for $ac_word... " >&6; }
7113 if ${ac_cv_prog_NMEDIT+:} false; then :
7114 $as_echo_n "(cached) " >&6
7115 else
7116 if test -n "$NMEDIT"; then
7117 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7118 else
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 for as_dir in $PATH
7121 do
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7126 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 break 2
7129 fi
7130 done
7131 done
7132 IFS=$as_save_IFS
7133
7134 fi
7135 fi
7136 NMEDIT=$ac_cv_prog_NMEDIT
7137 if test -n "$NMEDIT"; then
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7139 $as_echo "$NMEDIT" >&6; }
7140 else
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142 $as_echo "no" >&6; }
7143 fi
7144
7145
7146 fi
7147 if test -z "$ac_cv_prog_NMEDIT"; then
7148 ac_ct_NMEDIT=$NMEDIT
7149 # Extract the first word of "nmedit", so it can be a program name with args.
7150 set dummy nmedit; ac_word=$2
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7152 $as_echo_n "checking for $ac_word... " >&6; }
7153 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7154 $as_echo_n "(cached) " >&6
7155 else
7156 if test -n "$ac_ct_NMEDIT"; then
7157 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7158 else
7159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160 for as_dir in $PATH
7161 do
7162 IFS=$as_save_IFS
7163 test -z "$as_dir" && as_dir=.
7164 for ac_exec_ext in '' $ac_executable_extensions; do
7165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7166 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 break 2
7169 fi
7170 done
7171 done
7172 IFS=$as_save_IFS
7173
7174 fi
7175 fi
7176 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7177 if test -n "$ac_ct_NMEDIT"; then
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7179 $as_echo "$ac_ct_NMEDIT" >&6; }
7180 else
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182 $as_echo "no" >&6; }
7183 fi
7184
7185 if test "x$ac_ct_NMEDIT" = x; then
7186 NMEDIT=":"
7187 else
7188 case $cross_compiling:$ac_tool_warned in
7189 yes:)
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7192 ac_tool_warned=yes ;;
7193 esac
7194 NMEDIT=$ac_ct_NMEDIT
7195 fi
7196 else
7197 NMEDIT="$ac_cv_prog_NMEDIT"
7198 fi
7199
7200 if test -n "$ac_tool_prefix"; then
7201 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7202 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204 $as_echo_n "checking for $ac_word... " >&6; }
7205 if ${ac_cv_prog_LIPO+:} false; then :
7206 $as_echo_n "(cached) " >&6
7207 else
7208 if test -n "$LIPO"; then
7209 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7210 else
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212 for as_dir in $PATH
7213 do
7214 IFS=$as_save_IFS
7215 test -z "$as_dir" && as_dir=.
7216 for ac_exec_ext in '' $ac_executable_extensions; do
7217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7218 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7220 break 2
7221 fi
7222 done
7223 done
7224 IFS=$as_save_IFS
7225
7226 fi
7227 fi
7228 LIPO=$ac_cv_prog_LIPO
7229 if test -n "$LIPO"; then
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7231 $as_echo "$LIPO" >&6; }
7232 else
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234 $as_echo "no" >&6; }
7235 fi
7236
7237
7238 fi
7239 if test -z "$ac_cv_prog_LIPO"; then
7240 ac_ct_LIPO=$LIPO
7241 # Extract the first word of "lipo", so it can be a program name with args.
7242 set dummy lipo; ac_word=$2
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244 $as_echo_n "checking for $ac_word... " >&6; }
7245 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7246 $as_echo_n "(cached) " >&6
7247 else
7248 if test -n "$ac_ct_LIPO"; then
7249 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7250 else
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 for as_dir in $PATH
7253 do
7254 IFS=$as_save_IFS
7255 test -z "$as_dir" && as_dir=.
7256 for ac_exec_ext in '' $ac_executable_extensions; do
7257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7258 ac_cv_prog_ac_ct_LIPO="lipo"
7259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7260 break 2
7261 fi
7262 done
7263 done
7264 IFS=$as_save_IFS
7265
7266 fi
7267 fi
7268 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7269 if test -n "$ac_ct_LIPO"; then
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7271 $as_echo "$ac_ct_LIPO" >&6; }
7272 else
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274 $as_echo "no" >&6; }
7275 fi
7276
7277 if test "x$ac_ct_LIPO" = x; then
7278 LIPO=":"
7279 else
7280 case $cross_compiling:$ac_tool_warned in
7281 yes:)
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7284 ac_tool_warned=yes ;;
7285 esac
7286 LIPO=$ac_ct_LIPO
7287 fi
7288 else
7289 LIPO="$ac_cv_prog_LIPO"
7290 fi
7291
7292 if test -n "$ac_tool_prefix"; then
7293 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7294 set dummy ${ac_tool_prefix}otool; ac_word=$2
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296 $as_echo_n "checking for $ac_word... " >&6; }
7297 if ${ac_cv_prog_OTOOL+:} false; then :
7298 $as_echo_n "(cached) " >&6
7299 else
7300 if test -n "$OTOOL"; then
7301 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7302 else
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7305 do
7306 IFS=$as_save_IFS
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7310 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 break 2
7313 fi
7314 done
7315 done
7316 IFS=$as_save_IFS
7317
7318 fi
7319 fi
7320 OTOOL=$ac_cv_prog_OTOOL
7321 if test -n "$OTOOL"; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7323 $as_echo "$OTOOL" >&6; }
7324 else
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7327 fi
7328
7329
7330 fi
7331 if test -z "$ac_cv_prog_OTOOL"; then
7332 ac_ct_OTOOL=$OTOOL
7333 # Extract the first word of "otool", so it can be a program name with args.
7334 set dummy otool; ac_word=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7338 $as_echo_n "(cached) " >&6
7339 else
7340 if test -n "$ac_ct_OTOOL"; then
7341 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7342 else
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7345 do
7346 IFS=$as_save_IFS
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7350 ac_cv_prog_ac_ct_OTOOL="otool"
7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 break 2
7353 fi
7354 done
7355 done
7356 IFS=$as_save_IFS
7357
7358 fi
7359 fi
7360 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7361 if test -n "$ac_ct_OTOOL"; then
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7363 $as_echo "$ac_ct_OTOOL" >&6; }
7364 else
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7367 fi
7368
7369 if test "x$ac_ct_OTOOL" = x; then
7370 OTOOL=":"
7371 else
7372 case $cross_compiling:$ac_tool_warned in
7373 yes:)
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7376 ac_tool_warned=yes ;;
7377 esac
7378 OTOOL=$ac_ct_OTOOL
7379 fi
7380 else
7381 OTOOL="$ac_cv_prog_OTOOL"
7382 fi
7383
7384 if test -n "$ac_tool_prefix"; then
7385 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7386 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388 $as_echo_n "checking for $ac_word... " >&6; }
7389 if ${ac_cv_prog_OTOOL64+:} false; then :
7390 $as_echo_n "(cached) " >&6
7391 else
7392 if test -n "$OTOOL64"; then
7393 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7394 else
7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 for as_dir in $PATH
7397 do
7398 IFS=$as_save_IFS
7399 test -z "$as_dir" && as_dir=.
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7402 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 break 2
7405 fi
7406 done
7407 done
7408 IFS=$as_save_IFS
7409
7410 fi
7411 fi
7412 OTOOL64=$ac_cv_prog_OTOOL64
7413 if test -n "$OTOOL64"; then
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7415 $as_echo "$OTOOL64" >&6; }
7416 else
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418 $as_echo "no" >&6; }
7419 fi
7420
7421
7422 fi
7423 if test -z "$ac_cv_prog_OTOOL64"; then
7424 ac_ct_OTOOL64=$OTOOL64
7425 # Extract the first word of "otool64", so it can be a program name with args.
7426 set dummy otool64; ac_word=$2
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 $as_echo_n "checking for $ac_word... " >&6; }
7429 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7430 $as_echo_n "(cached) " >&6
7431 else
7432 if test -n "$ac_ct_OTOOL64"; then
7433 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7434 else
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7437 do
7438 IFS=$as_save_IFS
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7442 ac_cv_prog_ac_ct_OTOOL64="otool64"
7443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 break 2
7445 fi
7446 done
7447 done
7448 IFS=$as_save_IFS
7449
7450 fi
7451 fi
7452 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7453 if test -n "$ac_ct_OTOOL64"; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7455 $as_echo "$ac_ct_OTOOL64" >&6; }
7456 else
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7459 fi
7460
7461 if test "x$ac_ct_OTOOL64" = x; then
7462 OTOOL64=":"
7463 else
7464 case $cross_compiling:$ac_tool_warned in
7465 yes:)
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7468 ac_tool_warned=yes ;;
7469 esac
7470 OTOOL64=$ac_ct_OTOOL64
7471 fi
7472 else
7473 OTOOL64="$ac_cv_prog_OTOOL64"
7474 fi
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7503 $as_echo_n "checking for -single_module linker flag... " >&6; }
7504 if ${lt_cv_apple_cc_single_mod+:} false; then :
7505 $as_echo_n "(cached) " >&6
7506 else
7507 lt_cv_apple_cc_single_mod=no
7508 if test -z "${LT_MULTI_MODULE}"; then
7509 # By default we will add the -single_module flag. You can override
7510 # by either setting the environment variable LT_MULTI_MODULE
7511 # non-empty at configure time, or by adding -multi_module to the
7512 # link flags.
7513 rm -rf libconftest.dylib*
7514 echo "int foo(void){return 1;}" > conftest.c
7515 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7516 -dynamiclib -Wl,-single_module conftest.c" >&5
7517 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7518 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7519 _lt_result=$?
7520 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7521 lt_cv_apple_cc_single_mod=yes
7522 else
7523 cat conftest.err >&5
7524 fi
7525 rm -rf libconftest.dylib*
7526 rm -f conftest.*
7527 fi
7528 fi
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7530 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7532 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7533 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7534 $as_echo_n "(cached) " >&6
7535 else
7536 lt_cv_ld_exported_symbols_list=no
7537 save_LDFLAGS=$LDFLAGS
7538 echo "_main" > conftest.sym
7539 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541 /* end confdefs.h. */
7542
7543 int
7544 main ()
7545 {
7546
7547 ;
7548 return 0;
7549 }
7550 _ACEOF
7551 if ac_fn_c_try_link "$LINENO"; then :
7552 lt_cv_ld_exported_symbols_list=yes
7553 else
7554 lt_cv_ld_exported_symbols_list=no
7555 fi
7556 rm -f core conftest.err conftest.$ac_objext \
7557 conftest$ac_exeext conftest.$ac_ext
7558 LDFLAGS="$save_LDFLAGS"
7559
7560 fi
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7562 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7564 $as_echo_n "checking for -force_load linker flag... " >&6; }
7565 if ${lt_cv_ld_force_load+:} false; then :
7566 $as_echo_n "(cached) " >&6
7567 else
7568 lt_cv_ld_force_load=no
7569 cat > conftest.c << _LT_EOF
7570 int forced_loaded() { return 2;}
7571 _LT_EOF
7572 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7573 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7574 echo "$AR cru libconftest.a conftest.o" >&5
7575 $AR cru libconftest.a conftest.o 2>&5
7576 echo "$RANLIB libconftest.a" >&5
7577 $RANLIB libconftest.a 2>&5
7578 cat > conftest.c << _LT_EOF
7579 int main() { return 0;}
7580 _LT_EOF
7581 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7582 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7583 _lt_result=$?
7584 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7585 lt_cv_ld_force_load=yes
7586 else
7587 cat conftest.err >&5
7588 fi
7589 rm -f conftest.err libconftest.a conftest conftest.c
7590 rm -rf conftest.dSYM
7591
7592 fi
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7594 $as_echo "$lt_cv_ld_force_load" >&6; }
7595 case $host_os in
7596 rhapsody* | darwin1.[012])
7597 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7598 darwin1.*)
7599 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7600 darwin*) # darwin 5.x on
7601 # if running on 10.5 or later, the deployment target defaults
7602 # to the OS version, if on x86, and 10.4, the deployment
7603 # target defaults to 10.4. Don't you love it?
7604 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7605 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7606 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7607 10.[012]*)
7608 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7609 10.*)
7610 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7611 esac
7612 ;;
7613 esac
7614 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7615 _lt_dar_single_mod='$single_module'
7616 fi
7617 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7618 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7619 else
7620 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7621 fi
7622 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7623 _lt_dsymutil='~$DSYMUTIL $lib || :'
7624 else
7625 _lt_dsymutil=
7626 fi
7627 ;;
7628 esac
7629
7630 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7631 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7632 inttypes.h stdint.h unistd.h
7633 do :
7634 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7635 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7636 "
7637 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7638 cat >>confdefs.h <<_ACEOF
7639 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7640 _ACEOF
7641
7642 fi
7643
7644 done
7645
7646
7647 for ac_header in dlfcn.h
7648 do :
7649 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7650 "
7651 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7652 cat >>confdefs.h <<_ACEOF
7653 #define HAVE_DLFCN_H 1
7654 _ACEOF
7655
7656 fi
7657
7658 done
7659
7660
7661
7662
7663
7664 # Set options
7665
7666
7667
7668 enable_dlopen=no
7669
7670
7671
7672 # Check whether --enable-shared was given.
7673 if test "${enable_shared+set}" = set; then :
7674 enableval=$enable_shared; p=${PACKAGE-default}
7675 case $enableval in
7676 yes) enable_shared=yes ;;
7677 no) enable_shared=no ;;
7678 *)
7679 enable_shared=no
7680 # Look at the argument we got. We use all the common list separators.
7681 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7682 for pkg in $enableval; do
7683 IFS="$lt_save_ifs"
7684 if test "X$pkg" = "X$p"; then
7685 enable_shared=yes
7686 fi
7687 done
7688 IFS="$lt_save_ifs"
7689 ;;
7690 esac
7691 else
7692 enable_shared=yes
7693 fi
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703 # Check whether --enable-static was given.
7704 if test "${enable_static+set}" = set; then :
7705 enableval=$enable_static; p=${PACKAGE-default}
7706 case $enableval in
7707 yes) enable_static=yes ;;
7708 no) enable_static=no ;;
7709 *)
7710 enable_static=no
7711 # Look at the argument we got. We use all the common list separators.
7712 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7713 for pkg in $enableval; do
7714 IFS="$lt_save_ifs"
7715 if test "X$pkg" = "X$p"; then
7716 enable_static=yes
7717 fi
7718 done
7719 IFS="$lt_save_ifs"
7720 ;;
7721 esac
7722 else
7723 enable_static=yes
7724 fi
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735 # Check whether --with-pic was given.
7736 if test "${with_pic+set}" = set; then :
7737 withval=$with_pic; pic_mode="$withval"
7738 else
7739 pic_mode=default
7740 fi
7741
7742
7743 test -z "$pic_mode" && pic_mode=default
7744
7745
7746
7747
7748
7749
7750
7751 # Check whether --enable-fast-install was given.
7752 if test "${enable_fast_install+set}" = set; then :
7753 enableval=$enable_fast_install; p=${PACKAGE-default}
7754 case $enableval in
7755 yes) enable_fast_install=yes ;;
7756 no) enable_fast_install=no ;;
7757 *)
7758 enable_fast_install=no
7759 # Look at the argument we got. We use all the common list separators.
7760 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7761 for pkg in $enableval; do
7762 IFS="$lt_save_ifs"
7763 if test "X$pkg" = "X$p"; then
7764 enable_fast_install=yes
7765 fi
7766 done
7767 IFS="$lt_save_ifs"
7768 ;;
7769 esac
7770 else
7771 enable_fast_install=yes
7772 fi
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784 # This can be used to rebuild libtool when needed
7785 LIBTOOL_DEPS="$ltmain"
7786
7787 # Always use our own libtool.
7788 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815 test -z "$LN_S" && LN_S="ln -s"
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830 if test -n "${ZSH_VERSION+set}" ; then
7831 setopt NO_GLOB_SUBST
7832 fi
7833
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7835 $as_echo_n "checking for objdir... " >&6; }
7836 if ${lt_cv_objdir+:} false; then :
7837 $as_echo_n "(cached) " >&6
7838 else
7839 rm -f .libs 2>/dev/null
7840 mkdir .libs 2>/dev/null
7841 if test -d .libs; then
7842 lt_cv_objdir=.libs
7843 else
7844 # MS-DOS does not allow filenames that begin with a dot.
7845 lt_cv_objdir=_libs
7846 fi
7847 rmdir .libs 2>/dev/null
7848 fi
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7850 $as_echo "$lt_cv_objdir" >&6; }
7851 objdir=$lt_cv_objdir
7852
7853
7854
7855
7856
7857 cat >>confdefs.h <<_ACEOF
7858 #define LT_OBJDIR "$lt_cv_objdir/"
7859 _ACEOF
7860
7861
7862
7863
7864 case $host_os in
7865 aix3*)
7866 # AIX sometimes has problems with the GCC collect2 program. For some
7867 # reason, if we set the COLLECT_NAMES environment variable, the problems
7868 # vanish in a puff of smoke.
7869 if test "X${COLLECT_NAMES+set}" != Xset; then
7870 COLLECT_NAMES=
7871 export COLLECT_NAMES
7872 fi
7873 ;;
7874 esac
7875
7876 # Global variables:
7877 ofile=libtool
7878 can_build_shared=yes
7879
7880 # All known linkers require a `.a' archive for static linking (except MSVC,
7881 # which needs '.lib').
7882 libext=a
7883
7884 with_gnu_ld="$lt_cv_prog_gnu_ld"
7885
7886 old_CC="$CC"
7887 old_CFLAGS="$CFLAGS"
7888
7889 # Set sane defaults for various variables
7890 test -z "$CC" && CC=cc
7891 test -z "$LTCC" && LTCC=$CC
7892 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7893 test -z "$LD" && LD=ld
7894 test -z "$ac_objext" && ac_objext=o
7895
7896 for cc_temp in $compiler""; do
7897 case $cc_temp in
7898 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7899 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7900 \-*) ;;
7901 *) break;;
7902 esac
7903 done
7904 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7905
7906
7907 # Only perform the check for file, if the check method requires it
7908 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7909 case $deplibs_check_method in
7910 file_magic*)
7911 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7913 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7914 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7915 $as_echo_n "(cached) " >&6
7916 else
7917 case $MAGIC_CMD in
7918 [\\/*] | ?:[\\/]*)
7919 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7920 ;;
7921 *)
7922 lt_save_MAGIC_CMD="$MAGIC_CMD"
7923 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7924 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7925 for ac_dir in $ac_dummy; do
7926 IFS="$lt_save_ifs"
7927 test -z "$ac_dir" && ac_dir=.
7928 if test -f $ac_dir/${ac_tool_prefix}file; then
7929 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7930 if test -n "$file_magic_test_file"; then
7931 case $deplibs_check_method in
7932 "file_magic "*)
7933 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7934 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7935 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7936 $EGREP "$file_magic_regex" > /dev/null; then
7937 :
7938 else
7939 cat <<_LT_EOF 1>&2
7940
7941 *** Warning: the command libtool uses to detect shared libraries,
7942 *** $file_magic_cmd, produces output that libtool cannot recognize.
7943 *** The result is that libtool may fail to recognize shared libraries
7944 *** as such. This will affect the creation of libtool libraries that
7945 *** depend on shared libraries, but programs linked with such libtool
7946 *** libraries will work regardless of this problem. Nevertheless, you
7947 *** may want to report the problem to your system manager and/or to
7948 *** [email protected]
7949
7950 _LT_EOF
7951 fi ;;
7952 esac
7953 fi
7954 break
7955 fi
7956 done
7957 IFS="$lt_save_ifs"
7958 MAGIC_CMD="$lt_save_MAGIC_CMD"
7959 ;;
7960 esac
7961 fi
7962
7963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7964 if test -n "$MAGIC_CMD"; then
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7966 $as_echo "$MAGIC_CMD" >&6; }
7967 else
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7969 $as_echo "no" >&6; }
7970 fi
7971
7972
7973
7974
7975
7976 if test -z "$lt_cv_path_MAGIC_CMD"; then
7977 if test -n "$ac_tool_prefix"; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7979 $as_echo_n "checking for file... " >&6; }
7980 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7981 $as_echo_n "(cached) " >&6
7982 else
7983 case $MAGIC_CMD in
7984 [\\/*] | ?:[\\/]*)
7985 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7986 ;;
7987 *)
7988 lt_save_MAGIC_CMD="$MAGIC_CMD"
7989 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7990 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7991 for ac_dir in $ac_dummy; do
7992 IFS="$lt_save_ifs"
7993 test -z "$ac_dir" && ac_dir=.
7994 if test -f $ac_dir/file; then
7995 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7996 if test -n "$file_magic_test_file"; then
7997 case $deplibs_check_method in
7998 "file_magic "*)
7999 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8000 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8001 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8002 $EGREP "$file_magic_regex" > /dev/null; then
8003 :
8004 else
8005 cat <<_LT_EOF 1>&2
8006
8007 *** Warning: the command libtool uses to detect shared libraries,
8008 *** $file_magic_cmd, produces output that libtool cannot recognize.
8009 *** The result is that libtool may fail to recognize shared libraries
8010 *** as such. This will affect the creation of libtool libraries that
8011 *** depend on shared libraries, but programs linked with such libtool
8012 *** libraries will work regardless of this problem. Nevertheless, you
8013 *** may want to report the problem to your system manager and/or to
8014 *** [email protected]
8015
8016 _LT_EOF
8017 fi ;;
8018 esac
8019 fi
8020 break
8021 fi
8022 done
8023 IFS="$lt_save_ifs"
8024 MAGIC_CMD="$lt_save_MAGIC_CMD"
8025 ;;
8026 esac
8027 fi
8028
8029 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8030 if test -n "$MAGIC_CMD"; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8032 $as_echo "$MAGIC_CMD" >&6; }
8033 else
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035 $as_echo "no" >&6; }
8036 fi
8037
8038
8039 else
8040 MAGIC_CMD=:
8041 fi
8042 fi
8043
8044 fi
8045 ;;
8046 esac
8047
8048 # Use C for the default configuration in the libtool script
8049
8050 lt_save_CC="$CC"
8051 ac_ext=c
8052 ac_cpp='$CPP $CPPFLAGS'
8053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8056
8057
8058 # Source file extension for C test sources.
8059 ac_ext=c
8060
8061 # Object file extension for compiled C test sources.
8062 objext=o
8063 objext=$objext
8064
8065 # Code to be used in simple compile tests
8066 lt_simple_compile_test_code="int some_variable = 0;"
8067
8068 # Code to be used in simple link tests
8069 lt_simple_link_test_code='int main(){return(0);}'
8070
8071
8072
8073
8074
8075
8076
8077 # If no C compiler was specified, use CC.
8078 LTCC=${LTCC-"$CC"}
8079
8080 # If no C compiler flags were specified, use CFLAGS.
8081 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8082
8083 # Allow CC to be a program name with arguments.
8084 compiler=$CC
8085
8086 # Save the default compiler, since it gets overwritten when the other
8087 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8088 compiler_DEFAULT=$CC
8089
8090 # save warnings/boilerplate of simple test code
8091 ac_outfile=conftest.$ac_objext
8092 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8093 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8094 _lt_compiler_boilerplate=`cat conftest.err`
8095 $RM conftest*
8096
8097 ac_outfile=conftest.$ac_objext
8098 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8099 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8100 _lt_linker_boilerplate=`cat conftest.err`
8101 $RM -r conftest*
8102
8103
8104 if test -n "$compiler"; then
8105
8106 lt_prog_compiler_no_builtin_flag=
8107
8108 if test "$GCC" = yes; then
8109 case $cc_basename in
8110 nvcc*)
8111 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8112 *)
8113 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8114 esac
8115
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8117 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8118 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8119 $as_echo_n "(cached) " >&6
8120 else
8121 lt_cv_prog_compiler_rtti_exceptions=no
8122 ac_outfile=conftest.$ac_objext
8123 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8124 lt_compiler_flag="-fno-rtti -fno-exceptions"
8125 # Insert the option either (1) after the last *FLAGS variable, or
8126 # (2) before a word containing "conftest.", or (3) at the end.
8127 # Note that $ac_compile itself does not contain backslashes and begins
8128 # with a dollar sign (not a hyphen), so the echo should work correctly.
8129 # The option is referenced via a variable to avoid confusing sed.
8130 lt_compile=`echo "$ac_compile" | $SED \
8131 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8132 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8133 -e 's:$: $lt_compiler_flag:'`
8134 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8135 (eval "$lt_compile" 2>conftest.err)
8136 ac_status=$?
8137 cat conftest.err >&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 if (exit $ac_status) && test -s "$ac_outfile"; then
8140 # The compiler can only warn and ignore the option if not recognized
8141 # So say no if there are warnings other than the usual output.
8142 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8143 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8144 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8145 lt_cv_prog_compiler_rtti_exceptions=yes
8146 fi
8147 fi
8148 $RM conftest*
8149
8150 fi
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8152 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8153
8154 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8155 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8156 else
8157 :
8158 fi
8159
8160 fi
8161
8162
8163
8164
8165
8166
8167 lt_prog_compiler_wl=
8168 lt_prog_compiler_pic=
8169 lt_prog_compiler_static=
8170
8171
8172 if test "$GCC" = yes; then
8173 lt_prog_compiler_wl='-Wl,'
8174 lt_prog_compiler_static='-static'
8175
8176 case $host_os in
8177 aix*)
8178 # All AIX code is PIC.
8179 if test "$host_cpu" = ia64; then
8180 # AIX 5 now supports IA64 processor
8181 lt_prog_compiler_static='-Bstatic'
8182 fi
8183 ;;
8184
8185 amigaos*)
8186 case $host_cpu in
8187 powerpc)
8188 # see comment about AmigaOS4 .so support
8189 lt_prog_compiler_pic='-fPIC'
8190 ;;
8191 m68k)
8192 # FIXME: we need at least 68020 code to build shared libraries, but
8193 # adding the `-m68020' flag to GCC prevents building anything better,
8194 # like `-m68040'.
8195 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8196 ;;
8197 esac
8198 ;;
8199
8200 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8201 # PIC is the default for these OSes.
8202 ;;
8203
8204 mingw* | cygwin* | pw32* | os2* | cegcc*)
8205 # This hack is so that the source file can tell whether it is being
8206 # built for inclusion in a dll (and should export symbols for example).
8207 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8208 # (--disable-auto-import) libraries
8209 lt_prog_compiler_pic='-DDLL_EXPORT'
8210 ;;
8211
8212 darwin* | rhapsody*)
8213 # PIC is the default on this platform
8214 # Common symbols not allowed in MH_DYLIB files
8215 lt_prog_compiler_pic='-fno-common'
8216 ;;
8217
8218 haiku*)
8219 # PIC is the default for Haiku.
8220 # The "-static" flag exists, but is broken.
8221 lt_prog_compiler_static=
8222 ;;
8223
8224 hpux*)
8225 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8226 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8227 # sets the default TLS model and affects inlining.
8228 case $host_cpu in
8229 hppa*64*)
8230 # +Z the default
8231 ;;
8232 *)
8233 lt_prog_compiler_pic='-fPIC'
8234 ;;
8235 esac
8236 ;;
8237
8238 interix[3-9]*)
8239 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8240 # Instead, we relocate shared libraries at runtime.
8241 ;;
8242
8243 msdosdjgpp*)
8244 # Just because we use GCC doesn't mean we suddenly get shared libraries
8245 # on systems that don't support them.
8246 lt_prog_compiler_can_build_shared=no
8247 enable_shared=no
8248 ;;
8249
8250 *nto* | *qnx*)
8251 # QNX uses GNU C++, but need to define -shared option too, otherwise
8252 # it will coredump.
8253 lt_prog_compiler_pic='-fPIC -shared'
8254 ;;
8255
8256 sysv4*MP*)
8257 if test -d /usr/nec; then
8258 lt_prog_compiler_pic=-Kconform_pic
8259 fi
8260 ;;
8261
8262 *)
8263 lt_prog_compiler_pic='-fPIC'
8264 ;;
8265 esac
8266
8267 case $cc_basename in
8268 nvcc*) # Cuda Compiler Driver 2.2
8269 lt_prog_compiler_wl='-Xlinker '
8270 lt_prog_compiler_pic='-Xcompiler -fPIC'
8271 ;;
8272 esac
8273 else
8274 # PORTME Check for flag to pass linker flags through the system compiler.
8275 case $host_os in
8276 aix*)
8277 lt_prog_compiler_wl='-Wl,'
8278 if test "$host_cpu" = ia64; then
8279 # AIX 5 now supports IA64 processor
8280 lt_prog_compiler_static='-Bstatic'
8281 else
8282 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8283 fi
8284 ;;
8285
8286 mingw* | cygwin* | pw32* | os2* | cegcc*)
8287 # This hack is so that the source file can tell whether it is being
8288 # built for inclusion in a dll (and should export symbols for example).
8289 lt_prog_compiler_pic='-DDLL_EXPORT'
8290 ;;
8291
8292 hpux9* | hpux10* | hpux11*)
8293 lt_prog_compiler_wl='-Wl,'
8294 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8295 # not for PA HP-UX.
8296 case $host_cpu in
8297 hppa*64*|ia64*)
8298 # +Z the default
8299 ;;
8300 *)
8301 lt_prog_compiler_pic='+Z'
8302 ;;
8303 esac
8304 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8305 lt_prog_compiler_static='${wl}-a ${wl}archive'
8306 ;;
8307
8308 irix5* | irix6* | nonstopux*)
8309 lt_prog_compiler_wl='-Wl,'
8310 # PIC (with -KPIC) is the default.
8311 lt_prog_compiler_static='-non_shared'
8312 ;;
8313
8314 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8315 case $cc_basename in
8316 # old Intel for x86_64 which still supported -KPIC.
8317 ecc*)
8318 lt_prog_compiler_wl='-Wl,'
8319 lt_prog_compiler_pic='-KPIC'
8320 lt_prog_compiler_static='-static'
8321 ;;
8322 # icc used to be incompatible with GCC.
8323 # ICC 10 doesn't accept -KPIC any more.
8324 icc* | ifort*)
8325 lt_prog_compiler_wl='-Wl,'
8326 lt_prog_compiler_pic='-fPIC'
8327 lt_prog_compiler_static='-static'
8328 ;;
8329 # Lahey Fortran 8.1.
8330 lf95*)
8331 lt_prog_compiler_wl='-Wl,'
8332 lt_prog_compiler_pic='--shared'
8333 lt_prog_compiler_static='--static'
8334 ;;
8335 nagfor*)
8336 # NAG Fortran compiler
8337 lt_prog_compiler_wl='-Wl,-Wl,,'
8338 lt_prog_compiler_pic='-PIC'
8339 lt_prog_compiler_static='-Bstatic'
8340 ;;
8341 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8342 # Portland Group compilers (*not* the Pentium gcc compiler,
8343 # which looks to be a dead project)
8344 lt_prog_compiler_wl='-Wl,'
8345 lt_prog_compiler_pic='-fpic'
8346 lt_prog_compiler_static='-Bstatic'
8347 ;;
8348 ccc*)
8349 lt_prog_compiler_wl='-Wl,'
8350 # All Alpha code is PIC.
8351 lt_prog_compiler_static='-non_shared'
8352 ;;
8353 xl* | bgxl* | bgf* | mpixl*)
8354 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8355 lt_prog_compiler_wl='-Wl,'
8356 lt_prog_compiler_pic='-qpic'
8357 lt_prog_compiler_static='-qstaticlink'
8358 ;;
8359 *)
8360 case `$CC -V 2>&1 | sed 5q` in
8361 *Sun\ F* | *Sun*Fortran*)
8362 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8363 lt_prog_compiler_pic='-KPIC'
8364 lt_prog_compiler_static='-Bstatic'
8365 lt_prog_compiler_wl=''
8366 ;;
8367 *Sun\ C*)
8368 # Sun C 5.9
8369 lt_prog_compiler_pic='-KPIC'
8370 lt_prog_compiler_static='-Bstatic'
8371 lt_prog_compiler_wl='-Wl,'
8372 ;;
8373 esac
8374 ;;
8375 esac
8376 ;;
8377
8378 newsos6)
8379 lt_prog_compiler_pic='-KPIC'
8380 lt_prog_compiler_static='-Bstatic'
8381 ;;
8382
8383 *nto* | *qnx*)
8384 # QNX uses GNU C++, but need to define -shared option too, otherwise
8385 # it will coredump.
8386 lt_prog_compiler_pic='-fPIC -shared'
8387 ;;
8388
8389 osf3* | osf4* | osf5*)
8390 lt_prog_compiler_wl='-Wl,'
8391 # All OSF/1 code is PIC.
8392 lt_prog_compiler_static='-non_shared'
8393 ;;
8394
8395 rdos*)
8396 lt_prog_compiler_static='-non_shared'
8397 ;;
8398
8399 solaris*)
8400 lt_prog_compiler_pic='-KPIC'
8401 lt_prog_compiler_static='-Bstatic'
8402 case $cc_basename in
8403 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8404 lt_prog_compiler_wl='-Qoption ld ';;
8405 *)
8406 lt_prog_compiler_wl='-Wl,';;
8407 esac
8408 ;;
8409
8410 sunos4*)
8411 lt_prog_compiler_wl='-Qoption ld '
8412 lt_prog_compiler_pic='-PIC'
8413 lt_prog_compiler_static='-Bstatic'
8414 ;;
8415
8416 sysv4 | sysv4.2uw2* | sysv4.3*)
8417 lt_prog_compiler_wl='-Wl,'
8418 lt_prog_compiler_pic='-KPIC'
8419 lt_prog_compiler_static='-Bstatic'
8420 ;;
8421
8422 sysv4*MP*)
8423 if test -d /usr/nec ;then
8424 lt_prog_compiler_pic='-Kconform_pic'
8425 lt_prog_compiler_static='-Bstatic'
8426 fi
8427 ;;
8428
8429 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8430 lt_prog_compiler_wl='-Wl,'
8431 lt_prog_compiler_pic='-KPIC'
8432 lt_prog_compiler_static='-Bstatic'
8433 ;;
8434
8435 unicos*)
8436 lt_prog_compiler_wl='-Wl,'
8437 lt_prog_compiler_can_build_shared=no
8438 ;;
8439
8440 uts4*)
8441 lt_prog_compiler_pic='-pic'
8442 lt_prog_compiler_static='-Bstatic'
8443 ;;
8444
8445 *)
8446 lt_prog_compiler_can_build_shared=no
8447 ;;
8448 esac
8449 fi
8450
8451 case $host_os in
8452 # For platforms which do not support PIC, -DPIC is meaningless:
8453 *djgpp*)
8454 lt_prog_compiler_pic=
8455 ;;
8456 *)
8457 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8458 ;;
8459 esac
8460
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8462 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8463 if ${lt_cv_prog_compiler_pic+:} false; then :
8464 $as_echo_n "(cached) " >&6
8465 else
8466 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8467 fi
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8469 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8470 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8471
8472 #
8473 # Check to make sure the PIC flag actually works.
8474 #
8475 if test -n "$lt_prog_compiler_pic"; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8477 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8478 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8479 $as_echo_n "(cached) " >&6
8480 else
8481 lt_cv_prog_compiler_pic_works=no
8482 ac_outfile=conftest.$ac_objext
8483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8484 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8485 # Insert the option either (1) after the last *FLAGS variable, or
8486 # (2) before a word containing "conftest.", or (3) at the end.
8487 # Note that $ac_compile itself does not contain backslashes and begins
8488 # with a dollar sign (not a hyphen), so the echo should work correctly.
8489 # The option is referenced via a variable to avoid confusing sed.
8490 lt_compile=`echo "$ac_compile" | $SED \
8491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8493 -e 's:$: $lt_compiler_flag:'`
8494 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8495 (eval "$lt_compile" 2>conftest.err)
8496 ac_status=$?
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 if (exit $ac_status) && test -s "$ac_outfile"; then
8500 # The compiler can only warn and ignore the option if not recognized
8501 # So say no if there are warnings other than the usual output.
8502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8504 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8505 lt_cv_prog_compiler_pic_works=yes
8506 fi
8507 fi
8508 $RM conftest*
8509
8510 fi
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8512 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8513
8514 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8515 case $lt_prog_compiler_pic in
8516 "" | " "*) ;;
8517 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8518 esac
8519 else
8520 lt_prog_compiler_pic=
8521 lt_prog_compiler_can_build_shared=no
8522 fi
8523
8524 fi
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536 #
8537 # Check to make sure the static flag actually works.
8538 #
8539 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8541 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8542 if ${lt_cv_prog_compiler_static_works+:} false; then :
8543 $as_echo_n "(cached) " >&6
8544 else
8545 lt_cv_prog_compiler_static_works=no
8546 save_LDFLAGS="$LDFLAGS"
8547 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8548 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8549 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8550 # The linker can only warn and ignore the option if not recognized
8551 # So say no if there are warnings
8552 if test -s conftest.err; then
8553 # Append any errors to the config.log.
8554 cat conftest.err 1>&5
8555 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8556 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8557 if diff conftest.exp conftest.er2 >/dev/null; then
8558 lt_cv_prog_compiler_static_works=yes
8559 fi
8560 else
8561 lt_cv_prog_compiler_static_works=yes
8562 fi
8563 fi
8564 $RM -r conftest*
8565 LDFLAGS="$save_LDFLAGS"
8566
8567 fi
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8569 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8570
8571 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8572 :
8573 else
8574 lt_prog_compiler_static=
8575 fi
8576
8577
8578
8579
8580
8581
8582
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8584 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8585 if ${lt_cv_prog_compiler_c_o+:} false; then :
8586 $as_echo_n "(cached) " >&6
8587 else
8588 lt_cv_prog_compiler_c_o=no
8589 $RM -r conftest 2>/dev/null
8590 mkdir conftest
8591 cd conftest
8592 mkdir out
8593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8594
8595 lt_compiler_flag="-o out/conftest2.$ac_objext"
8596 # Insert the option either (1) after the last *FLAGS variable, or
8597 # (2) before a word containing "conftest.", or (3) at the end.
8598 # Note that $ac_compile itself does not contain backslashes and begins
8599 # with a dollar sign (not a hyphen), so the echo should work correctly.
8600 lt_compile=`echo "$ac_compile" | $SED \
8601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8603 -e 's:$: $lt_compiler_flag:'`
8604 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8605 (eval "$lt_compile" 2>out/conftest.err)
8606 ac_status=$?
8607 cat out/conftest.err >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8610 then
8611 # The compiler can only warn and ignore the option if not recognized
8612 # So say no if there are warnings
8613 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8614 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8615 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8616 lt_cv_prog_compiler_c_o=yes
8617 fi
8618 fi
8619 chmod u+w . 2>&5
8620 $RM conftest*
8621 # SGI C++ compiler will create directory out/ii_files/ for
8622 # template instantiation
8623 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8624 $RM out/* && rmdir out
8625 cd ..
8626 $RM -r conftest
8627 $RM conftest*
8628
8629 fi
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8631 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8632
8633
8634
8635
8636
8637
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8639 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8640 if ${lt_cv_prog_compiler_c_o+:} false; then :
8641 $as_echo_n "(cached) " >&6
8642 else
8643 lt_cv_prog_compiler_c_o=no
8644 $RM -r conftest 2>/dev/null
8645 mkdir conftest
8646 cd conftest
8647 mkdir out
8648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8649
8650 lt_compiler_flag="-o out/conftest2.$ac_objext"
8651 # Insert the option either (1) after the last *FLAGS variable, or
8652 # (2) before a word containing "conftest.", or (3) at the end.
8653 # Note that $ac_compile itself does not contain backslashes and begins
8654 # with a dollar sign (not a hyphen), so the echo should work correctly.
8655 lt_compile=`echo "$ac_compile" | $SED \
8656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8658 -e 's:$: $lt_compiler_flag:'`
8659 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8660 (eval "$lt_compile" 2>out/conftest.err)
8661 ac_status=$?
8662 cat out/conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8665 then
8666 # The compiler can only warn and ignore the option if not recognized
8667 # So say no if there are warnings
8668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8669 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8670 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8671 lt_cv_prog_compiler_c_o=yes
8672 fi
8673 fi
8674 chmod u+w . 2>&5
8675 $RM conftest*
8676 # SGI C++ compiler will create directory out/ii_files/ for
8677 # template instantiation
8678 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8679 $RM out/* && rmdir out
8680 cd ..
8681 $RM -r conftest
8682 $RM conftest*
8683
8684 fi
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8686 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8687
8688
8689
8690
8691 hard_links="nottested"
8692 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8693 # do not overwrite the value of need_locks provided by the user
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8695 $as_echo_n "checking if we can lock with hard links... " >&6; }
8696 hard_links=yes
8697 $RM conftest*
8698 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8699 touch conftest.a
8700 ln conftest.a conftest.b 2>&5 || hard_links=no
8701 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8703 $as_echo "$hard_links" >&6; }
8704 if test "$hard_links" = no; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8706 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8707 need_locks=warn
8708 fi
8709 else
8710 need_locks=no
8711 fi
8712
8713
8714
8715
8716
8717
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8719 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8720
8721 runpath_var=
8722 allow_undefined_flag=
8723 always_export_symbols=no
8724 archive_cmds=
8725 archive_expsym_cmds=
8726 compiler_needs_object=no
8727 enable_shared_with_static_runtimes=no
8728 export_dynamic_flag_spec=
8729 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8730 hardcode_automatic=no
8731 hardcode_direct=no
8732 hardcode_direct_absolute=no
8733 hardcode_libdir_flag_spec=
8734 hardcode_libdir_flag_spec_ld=
8735 hardcode_libdir_separator=
8736 hardcode_minus_L=no
8737 hardcode_shlibpath_var=unsupported
8738 inherit_rpath=no
8739 link_all_deplibs=unknown
8740 module_cmds=
8741 module_expsym_cmds=
8742 old_archive_from_new_cmds=
8743 old_archive_from_expsyms_cmds=
8744 thread_safe_flag_spec=
8745 whole_archive_flag_spec=
8746 # include_expsyms should be a list of space-separated symbols to be *always*
8747 # included in the symbol list
8748 include_expsyms=
8749 # exclude_expsyms can be an extended regexp of symbols to exclude
8750 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8751 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8752 # as well as any symbol that contains `d'.
8753 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8754 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8755 # platforms (ab)use it in PIC code, but their linkers get confused if
8756 # the symbol is explicitly referenced. Since portable code cannot
8757 # rely on this symbol name, it's probably fine to never include it in
8758 # preloaded symbol tables.
8759 # Exclude shared library initialization/finalization symbols.
8760 extract_expsyms_cmds=
8761
8762 case $host_os in
8763 cygwin* | mingw* | pw32* | cegcc*)
8764 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8765 # When not using gcc, we currently assume that we are using
8766 # Microsoft Visual C++.
8767 if test "$GCC" != yes; then
8768 with_gnu_ld=no
8769 fi
8770 ;;
8771 interix*)
8772 # we just hope/assume this is gcc and not c89 (= MSVC++)
8773 with_gnu_ld=yes
8774 ;;
8775 openbsd*)
8776 with_gnu_ld=no
8777 ;;
8778 linux* | k*bsd*-gnu | gnu*)
8779 link_all_deplibs=no
8780 ;;
8781 esac
8782
8783 ld_shlibs=yes
8784
8785 # On some targets, GNU ld is compatible enough with the native linker
8786 # that we're better off using the native interface for both.
8787 lt_use_gnu_ld_interface=no
8788 if test "$with_gnu_ld" = yes; then
8789 case $host_os in
8790 aix*)
8791 # The AIX port of GNU ld has always aspired to compatibility
8792 # with the native linker. However, as the warning in the GNU ld
8793 # block says, versions before 2.19.5* couldn't really create working
8794 # shared libraries, regardless of the interface used.
8795 case `$LD -v 2>&1` in
8796 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8797 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8798 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8799 *)
8800 lt_use_gnu_ld_interface=yes
8801 ;;
8802 esac
8803 ;;
8804 *)
8805 lt_use_gnu_ld_interface=yes
8806 ;;
8807 esac
8808 fi
8809
8810 if test "$lt_use_gnu_ld_interface" = yes; then
8811 # If archive_cmds runs LD, not CC, wlarc should be empty
8812 wlarc='${wl}'
8813
8814 # Set some defaults for GNU ld with shared library support. These
8815 # are reset later if shared libraries are not supported. Putting them
8816 # here allows them to be overridden if necessary.
8817 runpath_var=LD_RUN_PATH
8818 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8819 export_dynamic_flag_spec='${wl}--export-dynamic'
8820 # ancient GNU ld didn't support --whole-archive et. al.
8821 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8822 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8823 else
8824 whole_archive_flag_spec=
8825 fi
8826 supports_anon_versioning=no
8827 case `$LD -v 2>&1` in
8828 *GNU\ gold*) supports_anon_versioning=yes ;;
8829 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8830 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8831 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8832 *\ 2.11.*) ;; # other 2.11 versions
8833 *) supports_anon_versioning=yes ;;
8834 esac
8835
8836 # See if GNU ld supports shared libraries.
8837 case $host_os in
8838 aix[3-9]*)
8839 # On AIX/PPC, the GNU linker is very broken
8840 if test "$host_cpu" != ia64; then
8841 ld_shlibs=no
8842 cat <<_LT_EOF 1>&2
8843
8844 *** Warning: the GNU linker, at least up to release 2.19, is reported
8845 *** to be unable to reliably create shared libraries on AIX.
8846 *** Therefore, libtool is disabling shared libraries support. If you
8847 *** really care for shared libraries, you may want to install binutils
8848 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8849 *** You will then need to restart the configuration process.
8850
8851 _LT_EOF
8852 fi
8853 ;;
8854
8855 amigaos*)
8856 case $host_cpu in
8857 powerpc)
8858 # see comment about AmigaOS4 .so support
8859 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8860 archive_expsym_cmds=''
8861 ;;
8862 m68k)
8863 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)'
8864 hardcode_libdir_flag_spec='-L$libdir'
8865 hardcode_minus_L=yes
8866 ;;
8867 esac
8868 ;;
8869
8870 beos*)
8871 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8872 allow_undefined_flag=unsupported
8873 # Joseph Beckenbach <[email protected]> says some releases of gcc
8874 # support --undefined. This deserves some investigation. FIXME
8875 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8876 else
8877 ld_shlibs=no
8878 fi
8879 ;;
8880
8881 cygwin* | mingw* | pw32* | cegcc*)
8882 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8883 # as there is no search path for DLLs.
8884 hardcode_libdir_flag_spec='-L$libdir'
8885 export_dynamic_flag_spec='${wl}--export-all-symbols'
8886 allow_undefined_flag=unsupported
8887 always_export_symbols=no
8888 enable_shared_with_static_runtimes=yes
8889 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8890 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8891
8892 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8893 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8894 # If the export-symbols file already is a .def file (1st line
8895 # is EXPORTS), use it as is; otherwise, prepend...
8896 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8897 cp $export_symbols $output_objdir/$soname.def;
8898 else
8899 echo EXPORTS > $output_objdir/$soname.def;
8900 cat $export_symbols >> $output_objdir/$soname.def;
8901 fi~
8902 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8903 else
8904 ld_shlibs=no
8905 fi
8906 ;;
8907
8908 haiku*)
8909 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8910 link_all_deplibs=yes
8911 ;;
8912
8913 interix[3-9]*)
8914 hardcode_direct=no
8915 hardcode_shlibpath_var=no
8916 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8917 export_dynamic_flag_spec='${wl}-E'
8918 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8919 # Instead, shared libraries are loaded at an image base (0x10000000 by
8920 # default) and relocated if they conflict, which is a slow very memory
8921 # consuming and fragmenting process. To avoid this, we pick a random,
8922 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8923 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8924 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8925 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'
8926 ;;
8927
8928 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8929 tmp_diet=no
8930 if test "$host_os" = linux-dietlibc; then
8931 case $cc_basename in
8932 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8933 esac
8934 fi
8935 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8936 && test "$tmp_diet" = no
8937 then
8938 tmp_addflag=' $pic_flag'
8939 tmp_sharedflag='-shared'
8940 case $cc_basename,$host_cpu in
8941 pgcc*) # Portland Group C compiler
8942 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'
8943 tmp_addflag=' $pic_flag'
8944 ;;
8945 pgf77* | pgf90* | pgf95* | pgfortran*)
8946 # Portland Group f77 and f90 compilers
8947 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'
8948 tmp_addflag=' $pic_flag -Mnomain' ;;
8949 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8950 tmp_addflag=' -i_dynamic' ;;
8951 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8952 tmp_addflag=' -i_dynamic -nofor_main' ;;
8953 ifc* | ifort*) # Intel Fortran compiler
8954 tmp_addflag=' -nofor_main' ;;
8955 lf95*) # Lahey Fortran 8.1
8956 whole_archive_flag_spec=
8957 tmp_sharedflag='--shared' ;;
8958 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8959 tmp_sharedflag='-qmkshrobj'
8960 tmp_addflag= ;;
8961 nvcc*) # Cuda Compiler Driver 2.2
8962 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'
8963 compiler_needs_object=yes
8964 ;;
8965 esac
8966 case `$CC -V 2>&1 | sed 5q` in
8967 *Sun\ C*) # Sun C 5.9
8968 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'
8969 compiler_needs_object=yes
8970 tmp_sharedflag='-G' ;;
8971 *Sun\ F*) # Sun Fortran 8.3
8972 tmp_sharedflag='-G' ;;
8973 esac
8974 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8975
8976 if test "x$supports_anon_versioning" = xyes; then
8977 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8978 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8979 echo "local: *; };" >> $output_objdir/$libname.ver~
8980 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8981 fi
8982
8983 case $cc_basename in
8984 xlf* | bgf* | bgxlf* | mpixlf*)
8985 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8986 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8987 hardcode_libdir_flag_spec=
8988 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8989 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8990 if test "x$supports_anon_versioning" = xyes; then
8991 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8992 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8993 echo "local: *; };" >> $output_objdir/$libname.ver~
8994 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8995 fi
8996 ;;
8997 esac
8998 else
8999 ld_shlibs=no
9000 fi
9001 ;;
9002
9003 netbsd* | netbsdelf*-gnu)
9004 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9005 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9006 wlarc=
9007 else
9008 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9009 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9010 fi
9011 ;;
9012
9013 solaris*)
9014 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9015 ld_shlibs=no
9016 cat <<_LT_EOF 1>&2
9017
9018 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9019 *** create shared libraries on Solaris systems. Therefore, libtool
9020 *** is disabling shared libraries support. We urge you to upgrade GNU
9021 *** binutils to release 2.9.1 or newer. Another option is to modify
9022 *** your PATH or compiler configuration so that the native linker is
9023 *** used, and then restart.
9024
9025 _LT_EOF
9026 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9027 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9028 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9029 else
9030 ld_shlibs=no
9031 fi
9032 ;;
9033
9034 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9035 case `$LD -v 2>&1` in
9036 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9037 ld_shlibs=no
9038 cat <<_LT_EOF 1>&2
9039
9040 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9041 *** reliably create shared libraries on SCO systems. Therefore, libtool
9042 *** is disabling shared libraries support. We urge you to upgrade GNU
9043 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9044 *** your PATH or compiler configuration so that the native linker is
9045 *** used, and then restart.
9046
9047 _LT_EOF
9048 ;;
9049 *)
9050 # For security reasons, it is highly recommended that you always
9051 # use absolute paths for naming shared libraries, and exclude the
9052 # DT_RUNPATH tag from executables and libraries. But doing so
9053 # requires that you compile everything twice, which is a pain.
9054 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9055 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9057 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9058 else
9059 ld_shlibs=no
9060 fi
9061 ;;
9062 esac
9063 ;;
9064
9065 sunos4*)
9066 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9067 wlarc=
9068 hardcode_direct=yes
9069 hardcode_shlibpath_var=no
9070 ;;
9071
9072 *)
9073 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9074 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9075 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9076 else
9077 ld_shlibs=no
9078 fi
9079 ;;
9080 esac
9081
9082 if test "$ld_shlibs" = no; then
9083 runpath_var=
9084 hardcode_libdir_flag_spec=
9085 export_dynamic_flag_spec=
9086 whole_archive_flag_spec=
9087 fi
9088 else
9089 # PORTME fill in a description of your system's linker (not GNU ld)
9090 case $host_os in
9091 aix3*)
9092 allow_undefined_flag=unsupported
9093 always_export_symbols=yes
9094 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'
9095 # Note: this linker hardcodes the directories in LIBPATH if there
9096 # are no directories specified by -L.
9097 hardcode_minus_L=yes
9098 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9099 # Neither direct hardcoding nor static linking is supported with a
9100 # broken collect2.
9101 hardcode_direct=unsupported
9102 fi
9103 ;;
9104
9105 aix[4-9]*)
9106 if test "$host_cpu" = ia64; then
9107 # On IA64, the linker does run time linking by default, so we don't
9108 # have to do anything special.
9109 aix_use_runtimelinking=no
9110 exp_sym_flag='-Bexport'
9111 no_entry_flag=""
9112 else
9113 # If we're using GNU nm, then we don't want the "-C" option.
9114 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9115 # Also, AIX nm treats weak defined symbols like other global
9116 # defined symbols, whereas GNU nm marks them as "W".
9117 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9118 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'
9119 else
9120 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'
9121 fi
9122 aix_use_runtimelinking=no
9123
9124 # Test if we are trying to use run time linking or normal
9125 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9126 # need to do runtime linking.
9127 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9128 for ld_flag in $LDFLAGS; do
9129 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9130 aix_use_runtimelinking=yes
9131 break
9132 fi
9133 done
9134 ;;
9135 esac
9136
9137 exp_sym_flag='-bexport'
9138 no_entry_flag='-bnoentry'
9139 fi
9140
9141 # When large executables or shared objects are built, AIX ld can
9142 # have problems creating the table of contents. If linking a library
9143 # or program results in "error TOC overflow" add -mminimal-toc to
9144 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9145 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9146
9147 archive_cmds=''
9148 hardcode_direct=yes
9149 hardcode_direct_absolute=yes
9150 hardcode_libdir_separator=':'
9151 link_all_deplibs=yes
9152 file_list_spec='${wl}-f,'
9153
9154 if test "$GCC" = yes; then
9155 case $host_os in aix4.[012]|aix4.[012].*)
9156 # We only want to do this on AIX 4.2 and lower, the check
9157 # below for broken collect2 doesn't work under 4.3+
9158 collect2name=`${CC} -print-prog-name=collect2`
9159 if test -f "$collect2name" &&
9160 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9161 then
9162 # We have reworked collect2
9163 :
9164 else
9165 # We have old collect2
9166 hardcode_direct=unsupported
9167 # It fails to find uninstalled libraries when the uninstalled
9168 # path is not listed in the libpath. Setting hardcode_minus_L
9169 # to unsupported forces relinking
9170 hardcode_minus_L=yes
9171 hardcode_libdir_flag_spec='-L$libdir'
9172 hardcode_libdir_separator=
9173 fi
9174 ;;
9175 esac
9176 shared_flag='-shared'
9177 if test "$aix_use_runtimelinking" = yes; then
9178 shared_flag="$shared_flag "'${wl}-G'
9179 fi
9180 link_all_deplibs=no
9181 else
9182 # not using gcc
9183 if test "$host_cpu" = ia64; then
9184 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9185 # chokes on -Wl,-G. The following line is correct:
9186 shared_flag='-G'
9187 else
9188 if test "$aix_use_runtimelinking" = yes; then
9189 shared_flag='${wl}-G'
9190 else
9191 shared_flag='${wl}-bM:SRE'
9192 fi
9193 fi
9194 fi
9195
9196 export_dynamic_flag_spec='${wl}-bexpall'
9197 # It seems that -bexpall does not export symbols beginning with
9198 # underscore (_), so it is better to generate a list of symbols to export.
9199 always_export_symbols=yes
9200 if test "$aix_use_runtimelinking" = yes; then
9201 # Warning - without using the other runtime loading flags (-brtl),
9202 # -berok will link without error, but may produce a broken library.
9203 allow_undefined_flag='-berok'
9204 # Determine the default libpath from the value encoded in an
9205 # empty executable.
9206 if test "${lt_cv_aix_libpath+set}" = set; then
9207 aix_libpath=$lt_cv_aix_libpath
9208 else
9209 if ${lt_cv_aix_libpath_+:} false; then :
9210 $as_echo_n "(cached) " >&6
9211 else
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9214
9215 int
9216 main ()
9217 {
9218
9219 ;
9220 return 0;
9221 }
9222 _ACEOF
9223 if ac_fn_c_try_link "$LINENO"; then :
9224
9225 lt_aix_libpath_sed='
9226 /Import File Strings/,/^$/ {
9227 /^0/ {
9228 s/^0 *\([^ ]*\) *$/\1/
9229 p
9230 }
9231 }'
9232 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9233 # Check for a 64-bit object if we didn't find anything.
9234 if test -z "$lt_cv_aix_libpath_"; then
9235 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9236 fi
9237 fi
9238 rm -f core conftest.err conftest.$ac_objext \
9239 conftest$ac_exeext conftest.$ac_ext
9240 if test -z "$lt_cv_aix_libpath_"; then
9241 lt_cv_aix_libpath_="/usr/lib:/lib"
9242 fi
9243
9244 fi
9245
9246 aix_libpath=$lt_cv_aix_libpath_
9247 fi
9248
9249 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9250 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"
9251 else
9252 if test "$host_cpu" = ia64; then
9253 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9254 allow_undefined_flag="-z nodefs"
9255 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"
9256 else
9257 # Determine the default libpath from the value encoded in an
9258 # empty executable.
9259 if test "${lt_cv_aix_libpath+set}" = set; then
9260 aix_libpath=$lt_cv_aix_libpath
9261 else
9262 if ${lt_cv_aix_libpath_+:} false; then :
9263 $as_echo_n "(cached) " >&6
9264 else
9265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9266 /* end confdefs.h. */
9267
9268 int
9269 main ()
9270 {
9271
9272 ;
9273 return 0;
9274 }
9275 _ACEOF
9276 if ac_fn_c_try_link "$LINENO"; then :
9277
9278 lt_aix_libpath_sed='
9279 /Import File Strings/,/^$/ {
9280 /^0/ {
9281 s/^0 *\([^ ]*\) *$/\1/
9282 p
9283 }
9284 }'
9285 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9286 # Check for a 64-bit object if we didn't find anything.
9287 if test -z "$lt_cv_aix_libpath_"; then
9288 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9289 fi
9290 fi
9291 rm -f core conftest.err conftest.$ac_objext \
9292 conftest$ac_exeext conftest.$ac_ext
9293 if test -z "$lt_cv_aix_libpath_"; then
9294 lt_cv_aix_libpath_="/usr/lib:/lib"
9295 fi
9296
9297 fi
9298
9299 aix_libpath=$lt_cv_aix_libpath_
9300 fi
9301
9302 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9303 # Warning - without using the other run time loading flags,
9304 # -berok will link without error, but may produce a broken library.
9305 no_undefined_flag=' ${wl}-bernotok'
9306 allow_undefined_flag=' ${wl}-berok'
9307 if test "$with_gnu_ld" = yes; then
9308 # We only use this code for GNU lds that support --whole-archive.
9309 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9310 else
9311 # Exported symbols can be pulled into shared objects from archives
9312 whole_archive_flag_spec='$convenience'
9313 fi
9314 archive_cmds_need_lc=yes
9315 # This is similar to how AIX traditionally builds its shared libraries.
9316 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'
9317 fi
9318 fi
9319 ;;
9320
9321 amigaos*)
9322 case $host_cpu in
9323 powerpc)
9324 # see comment about AmigaOS4 .so support
9325 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9326 archive_expsym_cmds=''
9327 ;;
9328 m68k)
9329 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)'
9330 hardcode_libdir_flag_spec='-L$libdir'
9331 hardcode_minus_L=yes
9332 ;;
9333 esac
9334 ;;
9335
9336 bsdi[45]*)
9337 export_dynamic_flag_spec=-rdynamic
9338 ;;
9339
9340 cygwin* | mingw* | pw32* | cegcc*)
9341 # When not using gcc, we currently assume that we are using
9342 # Microsoft Visual C++.
9343 # hardcode_libdir_flag_spec is actually meaningless, as there is
9344 # no search path for DLLs.
9345 case $cc_basename in
9346 cl*)
9347 # Native MSVC
9348 hardcode_libdir_flag_spec=' '
9349 allow_undefined_flag=unsupported
9350 always_export_symbols=yes
9351 file_list_spec='@'
9352 # Tell ltmain to make .lib files, not .a files.
9353 libext=lib
9354 # Tell ltmain to make .dll files, not .so files.
9355 shrext_cmds=".dll"
9356 # FIXME: Setting linknames here is a bad hack.
9357 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9358 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9359 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9360 else
9361 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9362 fi~
9363 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9364 linknames='
9365 # The linker will not automatically build a static lib if we build a DLL.
9366 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9367 enable_shared_with_static_runtimes=yes
9368 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9369 # Don't use ranlib
9370 old_postinstall_cmds='chmod 644 $oldlib'
9371 postlink_cmds='lt_outputfile="@OUTPUT@"~
9372 lt_tool_outputfile="@TOOL_OUTPUT@"~
9373 case $lt_outputfile in
9374 *.exe|*.EXE) ;;
9375 *)
9376 lt_outputfile="$lt_outputfile.exe"
9377 lt_tool_outputfile="$lt_tool_outputfile.exe"
9378 ;;
9379 esac~
9380 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9381 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9382 $RM "$lt_outputfile.manifest";
9383 fi'
9384 ;;
9385 *)
9386 # Assume MSVC wrapper
9387 hardcode_libdir_flag_spec=' '
9388 allow_undefined_flag=unsupported
9389 # Tell ltmain to make .lib files, not .a files.
9390 libext=lib
9391 # Tell ltmain to make .dll files, not .so files.
9392 shrext_cmds=".dll"
9393 # FIXME: Setting linknames here is a bad hack.
9394 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9395 # The linker will automatically build a .lib file if we build a DLL.
9396 old_archive_from_new_cmds='true'
9397 # FIXME: Should let the user specify the lib program.
9398 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9399 enable_shared_with_static_runtimes=yes
9400 ;;
9401 esac
9402 ;;
9403
9404 darwin* | rhapsody*)
9405
9406
9407 archive_cmds_need_lc=no
9408 hardcode_direct=no
9409 hardcode_automatic=yes
9410 hardcode_shlibpath_var=unsupported
9411 if test "$lt_cv_ld_force_load" = "yes"; then
9412 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\"`'
9413 else
9414 whole_archive_flag_spec=''
9415 fi
9416 link_all_deplibs=yes
9417 allow_undefined_flag="$_lt_dar_allow_undefined"
9418 case $cc_basename in
9419 ifort*) _lt_dar_can_shared=yes ;;
9420 *) _lt_dar_can_shared=$GCC ;;
9421 esac
9422 if test "$_lt_dar_can_shared" = "yes"; then
9423 output_verbose_link_cmd=func_echo_all
9424 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9425 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9426 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}"
9427 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}"
9428
9429 else
9430 ld_shlibs=no
9431 fi
9432
9433 ;;
9434
9435 dgux*)
9436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9437 hardcode_libdir_flag_spec='-L$libdir'
9438 hardcode_shlibpath_var=no
9439 ;;
9440
9441 freebsd1*)
9442 ld_shlibs=no
9443 ;;
9444
9445 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9446 # support. Future versions do this automatically, but an explicit c++rt0.o
9447 # does not break anything, and helps significantly (at the cost of a little
9448 # extra space).
9449 freebsd2.2*)
9450 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9451 hardcode_libdir_flag_spec='-R$libdir'
9452 hardcode_direct=yes
9453 hardcode_shlibpath_var=no
9454 ;;
9455
9456 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9457 freebsd2*)
9458 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9459 hardcode_direct=yes
9460 hardcode_minus_L=yes
9461 hardcode_shlibpath_var=no
9462 ;;
9463
9464 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9465 freebsd* | dragonfly*)
9466 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9467 hardcode_libdir_flag_spec='-R$libdir'
9468 hardcode_direct=yes
9469 hardcode_shlibpath_var=no
9470 ;;
9471
9472 hpux9*)
9473 if test "$GCC" = yes; then
9474 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9475 else
9476 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'
9477 fi
9478 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9479 hardcode_libdir_separator=:
9480 hardcode_direct=yes
9481
9482 # hardcode_minus_L: Not really in the search PATH,
9483 # but as the default location of the library.
9484 hardcode_minus_L=yes
9485 export_dynamic_flag_spec='${wl}-E'
9486 ;;
9487
9488 hpux10*)
9489 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9490 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9491 else
9492 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9493 fi
9494 if test "$with_gnu_ld" = no; then
9495 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9496 hardcode_libdir_flag_spec_ld='+b $libdir'
9497 hardcode_libdir_separator=:
9498 hardcode_direct=yes
9499 hardcode_direct_absolute=yes
9500 export_dynamic_flag_spec='${wl}-E'
9501 # hardcode_minus_L: Not really in the search PATH,
9502 # but as the default location of the library.
9503 hardcode_minus_L=yes
9504 fi
9505 ;;
9506
9507 hpux11*)
9508 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9509 case $host_cpu in
9510 hppa*64*)
9511 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9512 ;;
9513 ia64*)
9514 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9515 ;;
9516 *)
9517 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9518 ;;
9519 esac
9520 else
9521 case $host_cpu in
9522 hppa*64*)
9523 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9524 ;;
9525 ia64*)
9526 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9527 ;;
9528 *)
9529
9530 # Older versions of the 11.00 compiler do not understand -b yet
9531 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9533 $as_echo_n "checking if $CC understands -b... " >&6; }
9534 if ${lt_cv_prog_compiler__b+:} false; then :
9535 $as_echo_n "(cached) " >&6
9536 else
9537 lt_cv_prog_compiler__b=no
9538 save_LDFLAGS="$LDFLAGS"
9539 LDFLAGS="$LDFLAGS -b"
9540 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9541 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9542 # The linker can only warn and ignore the option if not recognized
9543 # So say no if there are warnings
9544 if test -s conftest.err; then
9545 # Append any errors to the config.log.
9546 cat conftest.err 1>&5
9547 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9548 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9549 if diff conftest.exp conftest.er2 >/dev/null; then
9550 lt_cv_prog_compiler__b=yes
9551 fi
9552 else
9553 lt_cv_prog_compiler__b=yes
9554 fi
9555 fi
9556 $RM -r conftest*
9557 LDFLAGS="$save_LDFLAGS"
9558
9559 fi
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9561 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9562
9563 if test x"$lt_cv_prog_compiler__b" = xyes; then
9564 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9565 else
9566 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9567 fi
9568
9569 ;;
9570 esac
9571 fi
9572 if test "$with_gnu_ld" = no; then
9573 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9574 hardcode_libdir_separator=:
9575
9576 case $host_cpu in
9577 hppa*64*|ia64*)
9578 hardcode_direct=no
9579 hardcode_shlibpath_var=no
9580 ;;
9581 *)
9582 hardcode_direct=yes
9583 hardcode_direct_absolute=yes
9584 export_dynamic_flag_spec='${wl}-E'
9585
9586 # hardcode_minus_L: Not really in the search PATH,
9587 # but as the default location of the library.
9588 hardcode_minus_L=yes
9589 ;;
9590 esac
9591 fi
9592 ;;
9593
9594 irix5* | irix6* | nonstopux*)
9595 if test "$GCC" = yes; then
9596 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9597 # Try to use the -exported_symbol ld option, if it does not
9598 # work, assume that -exports_file does not work either and
9599 # implicitly export all symbols.
9600 # This should be the same for all languages, so no per-tag cache variable.
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9602 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9603 if ${lt_cv_irix_exported_symbol+:} false; then :
9604 $as_echo_n "(cached) " >&6
9605 else
9606 save_LDFLAGS="$LDFLAGS"
9607 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9609 /* end confdefs.h. */
9610 int foo (void) { return 0; }
9611 _ACEOF
9612 if ac_fn_c_try_link "$LINENO"; then :
9613 lt_cv_irix_exported_symbol=yes
9614 else
9615 lt_cv_irix_exported_symbol=no
9616 fi
9617 rm -f core conftest.err conftest.$ac_objext \
9618 conftest$ac_exeext conftest.$ac_ext
9619 LDFLAGS="$save_LDFLAGS"
9620 fi
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9622 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9623 if test "$lt_cv_irix_exported_symbol" = yes; then
9624 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9625 fi
9626 else
9627 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'
9628 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'
9629 fi
9630 archive_cmds_need_lc='no'
9631 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9632 hardcode_libdir_separator=:
9633 inherit_rpath=yes
9634 link_all_deplibs=yes
9635 ;;
9636
9637 netbsd* | netbsdelf*-gnu)
9638 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9639 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9640 else
9641 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9642 fi
9643 hardcode_libdir_flag_spec='-R$libdir'
9644 hardcode_direct=yes
9645 hardcode_shlibpath_var=no
9646 ;;
9647
9648 newsos6)
9649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9650 hardcode_direct=yes
9651 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9652 hardcode_libdir_separator=:
9653 hardcode_shlibpath_var=no
9654 ;;
9655
9656 *nto* | *qnx*)
9657 ;;
9658
9659 openbsd*)
9660 if test -f /usr/libexec/ld.so; then
9661 hardcode_direct=yes
9662 hardcode_shlibpath_var=no
9663 hardcode_direct_absolute=yes
9664 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9665 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9666 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9667 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9668 export_dynamic_flag_spec='${wl}-E'
9669 else
9670 case $host_os in
9671 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9672 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9673 hardcode_libdir_flag_spec='-R$libdir'
9674 ;;
9675 *)
9676 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9677 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9678 ;;
9679 esac
9680 fi
9681 else
9682 ld_shlibs=no
9683 fi
9684 ;;
9685
9686 os2*)
9687 hardcode_libdir_flag_spec='-L$libdir'
9688 hardcode_minus_L=yes
9689 allow_undefined_flag=unsupported
9690 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'
9691 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9692 ;;
9693
9694 osf3*)
9695 if test "$GCC" = yes; then
9696 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9697 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'
9698 else
9699 allow_undefined_flag=' -expect_unresolved \*'
9700 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'
9701 fi
9702 archive_cmds_need_lc='no'
9703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9704 hardcode_libdir_separator=:
9705 ;;
9706
9707 osf4* | osf5*) # as osf3* with the addition of -msym flag
9708 if test "$GCC" = yes; then
9709 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9710 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9711 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9712 else
9713 allow_undefined_flag=' -expect_unresolved \*'
9714 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'
9715 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~
9716 $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'
9717
9718 # Both c and cxx compiler support -rpath directly
9719 hardcode_libdir_flag_spec='-rpath $libdir'
9720 fi
9721 archive_cmds_need_lc='no'
9722 hardcode_libdir_separator=:
9723 ;;
9724
9725 solaris*)
9726 no_undefined_flag=' -z defs'
9727 if test "$GCC" = yes; then
9728 wlarc='${wl}'
9729 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9730 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9731 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9732 else
9733 case `$CC -V 2>&1` in
9734 *"Compilers 5.0"*)
9735 wlarc=''
9736 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9737 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9738 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9739 ;;
9740 *)
9741 wlarc='${wl}'
9742 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9743 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9744 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9745 ;;
9746 esac
9747 fi
9748 hardcode_libdir_flag_spec='-R$libdir'
9749 hardcode_shlibpath_var=no
9750 case $host_os in
9751 solaris2.[0-5] | solaris2.[0-5].*) ;;
9752 *)
9753 # The compiler driver will combine and reorder linker options,
9754 # but understands `-z linker_flag'. GCC discards it without `$wl',
9755 # but is careful enough not to reorder.
9756 # Supported since Solaris 2.6 (maybe 2.5.1?)
9757 if test "$GCC" = yes; then
9758 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9759 else
9760 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9761 fi
9762 ;;
9763 esac
9764 link_all_deplibs=yes
9765 ;;
9766
9767 sunos4*)
9768 if test "x$host_vendor" = xsequent; then
9769 # Use $CC to link under sequent, because it throws in some extra .o
9770 # files that make .init and .fini sections work.
9771 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9772 else
9773 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9774 fi
9775 hardcode_libdir_flag_spec='-L$libdir'
9776 hardcode_direct=yes
9777 hardcode_minus_L=yes
9778 hardcode_shlibpath_var=no
9779 ;;
9780
9781 sysv4)
9782 case $host_vendor in
9783 sni)
9784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9785 hardcode_direct=yes # is this really true???
9786 ;;
9787 siemens)
9788 ## LD is ld it makes a PLAMLIB
9789 ## CC just makes a GrossModule.
9790 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9791 reload_cmds='$CC -r -o $output$reload_objs'
9792 hardcode_direct=no
9793 ;;
9794 motorola)
9795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9796 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9797 ;;
9798 esac
9799 runpath_var='LD_RUN_PATH'
9800 hardcode_shlibpath_var=no
9801 ;;
9802
9803 sysv4.3*)
9804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9805 hardcode_shlibpath_var=no
9806 export_dynamic_flag_spec='-Bexport'
9807 ;;
9808
9809 sysv4*MP*)
9810 if test -d /usr/nec; then
9811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9812 hardcode_shlibpath_var=no
9813 runpath_var=LD_RUN_PATH
9814 hardcode_runpath_var=yes
9815 ld_shlibs=yes
9816 fi
9817 ;;
9818
9819 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9820 no_undefined_flag='${wl}-z,text'
9821 archive_cmds_need_lc=no
9822 hardcode_shlibpath_var=no
9823 runpath_var='LD_RUN_PATH'
9824
9825 if test "$GCC" = yes; then
9826 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9827 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9828 else
9829 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9830 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9831 fi
9832 ;;
9833
9834 sysv5* | sco3.2v5* | sco5v6*)
9835 # Note: We can NOT use -z defs as we might desire, because we do not
9836 # link with -lc, and that would cause any symbols used from libc to
9837 # always be unresolved, which means just about no library would
9838 # ever link correctly. If we're not using GNU ld we use -z text
9839 # though, which does catch some bad symbols but isn't as heavy-handed
9840 # as -z defs.
9841 no_undefined_flag='${wl}-z,text'
9842 allow_undefined_flag='${wl}-z,nodefs'
9843 archive_cmds_need_lc=no
9844 hardcode_shlibpath_var=no
9845 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9846 hardcode_libdir_separator=':'
9847 link_all_deplibs=yes
9848 export_dynamic_flag_spec='${wl}-Bexport'
9849 runpath_var='LD_RUN_PATH'
9850
9851 if test "$GCC" = yes; then
9852 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9853 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9854 else
9855 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9856 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9857 fi
9858 ;;
9859
9860 uts4*)
9861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9862 hardcode_libdir_flag_spec='-L$libdir'
9863 hardcode_shlibpath_var=no
9864 ;;
9865
9866 *)
9867 ld_shlibs=no
9868 ;;
9869 esac
9870
9871 if test x$host_vendor = xsni; then
9872 case $host in
9873 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9874 export_dynamic_flag_spec='${wl}-Blargedynsym'
9875 ;;
9876 esac
9877 fi
9878 fi
9879
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9881 $as_echo "$ld_shlibs" >&6; }
9882 test "$ld_shlibs" = no && can_build_shared=no
9883
9884 with_gnu_ld=$with_gnu_ld
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900 #
9901 # Do we need to explicitly link libc?
9902 #
9903 case "x$archive_cmds_need_lc" in
9904 x|xyes)
9905 # Assume -lc should be added
9906 archive_cmds_need_lc=yes
9907
9908 if test "$enable_shared" = yes && test "$GCC" = yes; then
9909 case $archive_cmds in
9910 *'~'*)
9911 # FIXME: we may have to deal with multi-command sequences.
9912 ;;
9913 '$CC '*)
9914 # Test whether the compiler implicitly links with -lc since on some
9915 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9916 # to ld, don't add -lc before -lgcc.
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9918 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9919 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9920 $as_echo_n "(cached) " >&6
9921 else
9922 $RM conftest*
9923 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9924
9925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9926 (eval $ac_compile) 2>&5
9927 ac_status=$?
9928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9929 test $ac_status = 0; } 2>conftest.err; then
9930 soname=conftest
9931 lib=conftest
9932 libobjs=conftest.$ac_objext
9933 deplibs=
9934 wl=$lt_prog_compiler_wl
9935 pic_flag=$lt_prog_compiler_pic
9936 compiler_flags=-v
9937 linker_flags=-v
9938 verstring=
9939 output_objdir=.
9940 libname=conftest
9941 lt_save_allow_undefined_flag=$allow_undefined_flag
9942 allow_undefined_flag=
9943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9944 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9945 ac_status=$?
9946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9947 test $ac_status = 0; }
9948 then
9949 lt_cv_archive_cmds_need_lc=no
9950 else
9951 lt_cv_archive_cmds_need_lc=yes
9952 fi
9953 allow_undefined_flag=$lt_save_allow_undefined_flag
9954 else
9955 cat conftest.err 1>&5
9956 fi
9957 $RM conftest*
9958
9959 fi
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9961 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9962 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9963 ;;
9964 esac
9965 fi
9966 ;;
9967 esac
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10126 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10127
10128 if test "$GCC" = yes; then
10129 case $host_os in
10130 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10131 *) lt_awk_arg="/^libraries:/" ;;
10132 esac
10133 case $host_os in
10134 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10135 *) lt_sed_strip_eq="s,=/,/,g" ;;
10136 esac
10137 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10138 case $lt_search_path_spec in
10139 *\;*)
10140 # if the path contains ";" then we assume it to be the separator
10141 # otherwise default to the standard path separator (i.e. ":") - it is
10142 # assumed that no part of a normal pathname contains ";" but that should
10143 # okay in the real world where ";" in dirpaths is itself problematic.
10144 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10145 ;;
10146 *)
10147 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10148 ;;
10149 esac
10150 # Ok, now we have the path, separated by spaces, we can step through it
10151 # and add multilib dir if necessary.
10152 lt_tmp_lt_search_path_spec=
10153 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10154 for lt_sys_path in $lt_search_path_spec; do
10155 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10156 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10157 else
10158 test -d "$lt_sys_path" && \
10159 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10160 fi
10161 done
10162 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10163 BEGIN {RS=" "; FS="/|\n";} {
10164 lt_foo="";
10165 lt_count=0;
10166 for (lt_i = NF; lt_i > 0; lt_i--) {
10167 if ($lt_i != "" && $lt_i != ".") {
10168 if ($lt_i == "..") {
10169 lt_count++;
10170 } else {
10171 if (lt_count == 0) {
10172 lt_foo="/" $lt_i lt_foo;
10173 } else {
10174 lt_count--;
10175 }
10176 }
10177 }
10178 }
10179 if (lt_foo != "") { lt_freq[lt_foo]++; }
10180 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10181 }'`
10182 # AWK program above erroneously prepends '/' to C:/dos/paths
10183 # for these hosts.
10184 case $host_os in
10185 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10186 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10187 esac
10188 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10189 else
10190 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10191 fi
10192 library_names_spec=
10193 libname_spec='lib$name'
10194 soname_spec=
10195 shrext_cmds=".so"
10196 postinstall_cmds=
10197 postuninstall_cmds=
10198 finish_cmds=
10199 finish_eval=
10200 shlibpath_var=
10201 shlibpath_overrides_runpath=unknown
10202 version_type=none
10203 dynamic_linker="$host_os ld.so"
10204 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10205 need_lib_prefix=unknown
10206 hardcode_into_libs=no
10207
10208 # when you set need_version to no, make sure it does not cause -set_version
10209 # flags to be left without arguments
10210 need_version=unknown
10211
10212 case $host_os in
10213 aix3*)
10214 version_type=linux
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10216 shlibpath_var=LIBPATH
10217
10218 # AIX 3 has no versioning support, so we append a major version to the name.
10219 soname_spec='${libname}${release}${shared_ext}$major'
10220 ;;
10221
10222 aix[4-9]*)
10223 version_type=linux
10224 need_lib_prefix=no
10225 need_version=no
10226 hardcode_into_libs=yes
10227 if test "$host_cpu" = ia64; then
10228 # AIX 5 supports IA64
10229 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10230 shlibpath_var=LD_LIBRARY_PATH
10231 else
10232 # With GCC up to 2.95.x, collect2 would create an import file
10233 # for dependence libraries. The import file would start with
10234 # the line `#! .'. This would cause the generated library to
10235 # depend on `.', always an invalid library. This was fixed in
10236 # development snapshots of GCC prior to 3.0.
10237 case $host_os in
10238 aix4 | aix4.[01] | aix4.[01].*)
10239 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10240 echo ' yes '
10241 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10242 :
10243 else
10244 can_build_shared=no
10245 fi
10246 ;;
10247 esac
10248 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10249 # soname into executable. Probably we can add versioning support to
10250 # collect2, so additional links can be useful in future.
10251 if test "$aix_use_runtimelinking" = yes; then
10252 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10253 # instead of lib<name>.a to let people know that these are not
10254 # typical AIX shared libraries.
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10256 else
10257 # We preserve .a as extension for shared libraries through AIX4.2
10258 # and later when we are not doing run time linking.
10259 library_names_spec='${libname}${release}.a $libname.a'
10260 soname_spec='${libname}${release}${shared_ext}$major'
10261 fi
10262 shlibpath_var=LIBPATH
10263 fi
10264 ;;
10265
10266 amigaos*)
10267 case $host_cpu in
10268 powerpc)
10269 # Since July 2007 AmigaOS4 officially supports .so libraries.
10270 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10272 ;;
10273 m68k)
10274 library_names_spec='$libname.ixlibrary $libname.a'
10275 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10276 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'
10277 ;;
10278 esac
10279 ;;
10280
10281 beos*)
10282 library_names_spec='${libname}${shared_ext}'
10283 dynamic_linker="$host_os ld.so"
10284 shlibpath_var=LIBRARY_PATH
10285 ;;
10286
10287 bsdi[45]*)
10288 version_type=linux
10289 need_version=no
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10291 soname_spec='${libname}${release}${shared_ext}$major'
10292 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10293 shlibpath_var=LD_LIBRARY_PATH
10294 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10295 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10296 # the default ld.so.conf also contains /usr/contrib/lib and
10297 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10298 # libtool to hard-code these into programs
10299 ;;
10300
10301 cygwin* | mingw* | pw32* | cegcc*)
10302 version_type=windows
10303 shrext_cmds=".dll"
10304 need_version=no
10305 need_lib_prefix=no
10306
10307 case $GCC,$cc_basename in
10308 yes,*)
10309 # gcc
10310 library_names_spec='$libname.dll.a'
10311 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10312 postinstall_cmds='base_file=`basename \${file}`~
10313 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10314 dldir=$destdir/`dirname \$dlpath`~
10315 test -d \$dldir || mkdir -p \$dldir~
10316 $install_prog $dir/$dlname \$dldir/$dlname~
10317 chmod a+x \$dldir/$dlname~
10318 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10319 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10320 fi'
10321 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10322 dlpath=$dir/\$dldll~
10323 $RM \$dlpath'
10324 shlibpath_overrides_runpath=yes
10325
10326 case $host_os in
10327 cygwin*)
10328 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10329 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10330
10331 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10332 ;;
10333 mingw* | cegcc*)
10334 # MinGW DLLs use traditional 'lib' prefix
10335 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10336 ;;
10337 pw32*)
10338 # pw32 DLLs use 'pw' prefix rather than 'lib'
10339 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10340 ;;
10341 esac
10342 dynamic_linker='Win32 ld.exe'
10343 ;;
10344
10345 *,cl*)
10346 # Native MSVC
10347 libname_spec='$name'
10348 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10349 library_names_spec='${libname}.dll.lib'
10350
10351 case $build_os in
10352 mingw*)
10353 sys_lib_search_path_spec=
10354 lt_save_ifs=$IFS
10355 IFS=';'
10356 for lt_path in $LIB
10357 do
10358 IFS=$lt_save_ifs
10359 # Let DOS variable expansion print the short 8.3 style file name.
10360 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10361 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10362 done
10363 IFS=$lt_save_ifs
10364 # Convert to MSYS style.
10365 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10366 ;;
10367 cygwin*)
10368 # Convert to unix form, then to dos form, then back to unix form
10369 # but this time dos style (no spaces!) so that the unix form looks
10370 # like /cygdrive/c/PROGRA~1:/cygdr...
10371 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10372 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10373 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10374 ;;
10375 *)
10376 sys_lib_search_path_spec="$LIB"
10377 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10378 # It is most probably a Windows format PATH.
10379 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10380 else
10381 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10382 fi
10383 # FIXME: find the short name or the path components, as spaces are
10384 # common. (e.g. "Program Files" -> "PROGRA~1")
10385 ;;
10386 esac
10387
10388 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10389 postinstall_cmds='base_file=`basename \${file}`~
10390 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10391 dldir=$destdir/`dirname \$dlpath`~
10392 test -d \$dldir || mkdir -p \$dldir~
10393 $install_prog $dir/$dlname \$dldir/$dlname'
10394 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10395 dlpath=$dir/\$dldll~
10396 $RM \$dlpath'
10397 shlibpath_overrides_runpath=yes
10398 dynamic_linker='Win32 link.exe'
10399 ;;
10400
10401 *)
10402 # Assume MSVC wrapper
10403 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10404 dynamic_linker='Win32 ld.exe'
10405 ;;
10406 esac
10407 # FIXME: first we should search . and the directory the executable is in
10408 shlibpath_var=PATH
10409 ;;
10410
10411 darwin* | rhapsody*)
10412 dynamic_linker="$host_os dyld"
10413 version_type=darwin
10414 need_lib_prefix=no
10415 need_version=no
10416 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10417 soname_spec='${libname}${release}${major}$shared_ext'
10418 shlibpath_overrides_runpath=yes
10419 shlibpath_var=DYLD_LIBRARY_PATH
10420 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10421
10422 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10423 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10424 ;;
10425
10426 dgux*)
10427 version_type=linux
10428 need_lib_prefix=no
10429 need_version=no
10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10431 soname_spec='${libname}${release}${shared_ext}$major'
10432 shlibpath_var=LD_LIBRARY_PATH
10433 ;;
10434
10435 freebsd1*)
10436 dynamic_linker=no
10437 ;;
10438
10439 freebsd* | dragonfly*)
10440 # DragonFly does not have aout. When/if they implement a new
10441 # versioning mechanism, adjust this.
10442 if test -x /usr/bin/objformat; then
10443 objformat=`/usr/bin/objformat`
10444 else
10445 case $host_os in
10446 freebsd[123]*) objformat=aout ;;
10447 *) objformat=elf ;;
10448 esac
10449 fi
10450 version_type=freebsd-$objformat
10451 case $version_type in
10452 freebsd-elf*)
10453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10454 need_version=no
10455 need_lib_prefix=no
10456 ;;
10457 freebsd-*)
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10459 need_version=yes
10460 ;;
10461 esac
10462 shlibpath_var=LD_LIBRARY_PATH
10463 case $host_os in
10464 freebsd2*)
10465 shlibpath_overrides_runpath=yes
10466 ;;
10467 freebsd3.[01]* | freebsdelf3.[01]*)
10468 shlibpath_overrides_runpath=yes
10469 hardcode_into_libs=yes
10470 ;;
10471 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10472 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10473 shlibpath_overrides_runpath=no
10474 hardcode_into_libs=yes
10475 ;;
10476 *) # from 4.6 on, and DragonFly
10477 shlibpath_overrides_runpath=yes
10478 hardcode_into_libs=yes
10479 ;;
10480 esac
10481 ;;
10482
10483 gnu*)
10484 version_type=linux
10485 need_lib_prefix=no
10486 need_version=no
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10488 soname_spec='${libname}${release}${shared_ext}$major'
10489 shlibpath_var=LD_LIBRARY_PATH
10490 shlibpath_overrides_runpath=no
10491 hardcode_into_libs=yes
10492 ;;
10493
10494 haiku*)
10495 version_type=linux
10496 need_lib_prefix=no
10497 need_version=no
10498 dynamic_linker="$host_os runtime_loader"
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10500 soname_spec='${libname}${release}${shared_ext}$major'
10501 shlibpath_var=LIBRARY_PATH
10502 shlibpath_overrides_runpath=yes
10503 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10504 hardcode_into_libs=yes
10505 ;;
10506
10507 hpux9* | hpux10* | hpux11*)
10508 # Give a soname corresponding to the major version so that dld.sl refuses to
10509 # link against other versions.
10510 version_type=sunos
10511 need_lib_prefix=no
10512 need_version=no
10513 case $host_cpu in
10514 ia64*)
10515 shrext_cmds='.so'
10516 hardcode_into_libs=yes
10517 dynamic_linker="$host_os dld.so"
10518 shlibpath_var=LD_LIBRARY_PATH
10519 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10521 soname_spec='${libname}${release}${shared_ext}$major'
10522 if test "X$HPUX_IA64_MODE" = X32; then
10523 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10524 else
10525 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10526 fi
10527 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10528 ;;
10529 hppa*64*)
10530 shrext_cmds='.sl'
10531 hardcode_into_libs=yes
10532 dynamic_linker="$host_os dld.sl"
10533 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10534 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10536 soname_spec='${libname}${release}${shared_ext}$major'
10537 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10539 ;;
10540 *)
10541 shrext_cmds='.sl'
10542 dynamic_linker="$host_os dld.sl"
10543 shlibpath_var=SHLIB_PATH
10544 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10546 soname_spec='${libname}${release}${shared_ext}$major'
10547 ;;
10548 esac
10549 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10550 postinstall_cmds='chmod 555 $lib'
10551 # or fails outright, so override atomically:
10552 install_override_mode=555
10553 ;;
10554
10555 interix[3-9]*)
10556 version_type=linux
10557 need_lib_prefix=no
10558 need_version=no
10559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10560 soname_spec='${libname}${release}${shared_ext}$major'
10561 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10562 shlibpath_var=LD_LIBRARY_PATH
10563 shlibpath_overrides_runpath=no
10564 hardcode_into_libs=yes
10565 ;;
10566
10567 irix5* | irix6* | nonstopux*)
10568 case $host_os in
10569 nonstopux*) version_type=nonstopux ;;
10570 *)
10571 if test "$lt_cv_prog_gnu_ld" = yes; then
10572 version_type=linux
10573 else
10574 version_type=irix
10575 fi ;;
10576 esac
10577 need_lib_prefix=no
10578 need_version=no
10579 soname_spec='${libname}${release}${shared_ext}$major'
10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10581 case $host_os in
10582 irix5* | nonstopux*)
10583 libsuff= shlibsuff=
10584 ;;
10585 *)
10586 case $LD in # libtool.m4 will add one of these switches to LD
10587 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10588 libsuff= shlibsuff= libmagic=32-bit;;
10589 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10590 libsuff=32 shlibsuff=N32 libmagic=N32;;
10591 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10592 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10593 *) libsuff= shlibsuff= libmagic=never-match;;
10594 esac
10595 ;;
10596 esac
10597 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10598 shlibpath_overrides_runpath=no
10599 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10600 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10601 hardcode_into_libs=yes
10602 ;;
10603
10604 # No shared lib support for Linux oldld, aout, or coff.
10605 linux*oldld* | linux*aout* | linux*coff*)
10606 dynamic_linker=no
10607 ;;
10608
10609 # This must be Linux ELF.
10610 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10611 version_type=linux
10612 need_lib_prefix=no
10613 need_version=no
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10615 soname_spec='${libname}${release}${shared_ext}$major'
10616 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10617 shlibpath_var=LD_LIBRARY_PATH
10618 shlibpath_overrides_runpath=no
10619
10620 # Some binutils ld are patched to set DT_RUNPATH
10621 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10622 $as_echo_n "(cached) " >&6
10623 else
10624 lt_cv_shlibpath_overrides_runpath=no
10625 save_LDFLAGS=$LDFLAGS
10626 save_libdir=$libdir
10627 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10628 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10631
10632 int
10633 main ()
10634 {
10635
10636 ;
10637 return 0;
10638 }
10639 _ACEOF
10640 if ac_fn_c_try_link "$LINENO"; then :
10641 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10642 lt_cv_shlibpath_overrides_runpath=yes
10643 fi
10644 fi
10645 rm -f core conftest.err conftest.$ac_objext \
10646 conftest$ac_exeext conftest.$ac_ext
10647 LDFLAGS=$save_LDFLAGS
10648 libdir=$save_libdir
10649
10650 fi
10651
10652 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10653
10654 # This implies no fast_install, which is unacceptable.
10655 # Some rework will be needed to allow for fast_install
10656 # before this can be enabled.
10657 hardcode_into_libs=yes
10658
10659 # Append ld.so.conf contents to the search path
10660 if test -f /etc/ld.so.conf; then
10661 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' ' '`
10662 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10663 fi
10664
10665 # We used to test for /lib/ld.so.1 and disable shared libraries on
10666 # powerpc, because MkLinux only supported shared libraries with the
10667 # GNU dynamic linker. Since this was broken with cross compilers,
10668 # most powerpc-linux boxes support dynamic linking these days and
10669 # people can always --disable-shared, the test was removed, and we
10670 # assume the GNU/Linux dynamic linker is in use.
10671 dynamic_linker='GNU/Linux ld.so'
10672 ;;
10673
10674 netbsdelf*-gnu)
10675 version_type=linux
10676 need_lib_prefix=no
10677 need_version=no
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10679 soname_spec='${libname}${release}${shared_ext}$major'
10680 shlibpath_var=LD_LIBRARY_PATH
10681 shlibpath_overrides_runpath=no
10682 hardcode_into_libs=yes
10683 dynamic_linker='NetBSD ld.elf_so'
10684 ;;
10685
10686 netbsd*)
10687 version_type=sunos
10688 need_lib_prefix=no
10689 need_version=no
10690 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10693 dynamic_linker='NetBSD (a.out) ld.so'
10694 else
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10696 soname_spec='${libname}${release}${shared_ext}$major'
10697 dynamic_linker='NetBSD ld.elf_so'
10698 fi
10699 shlibpath_var=LD_LIBRARY_PATH
10700 shlibpath_overrides_runpath=yes
10701 hardcode_into_libs=yes
10702 ;;
10703
10704 newsos6)
10705 version_type=linux
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707 shlibpath_var=LD_LIBRARY_PATH
10708 shlibpath_overrides_runpath=yes
10709 ;;
10710
10711 *nto* | *qnx*)
10712 version_type=qnx
10713 need_lib_prefix=no
10714 need_version=no
10715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716 soname_spec='${libname}${release}${shared_ext}$major'
10717 shlibpath_var=LD_LIBRARY_PATH
10718 shlibpath_overrides_runpath=no
10719 hardcode_into_libs=yes
10720 dynamic_linker='ldqnx.so'
10721 ;;
10722
10723 openbsd*)
10724 version_type=sunos
10725 sys_lib_dlsearch_path_spec="/usr/lib"
10726 need_lib_prefix=no
10727 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10728 case $host_os in
10729 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10730 *) need_version=no ;;
10731 esac
10732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10734 shlibpath_var=LD_LIBRARY_PATH
10735 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10736 case $host_os in
10737 openbsd2.[89] | openbsd2.[89].*)
10738 shlibpath_overrides_runpath=no
10739 ;;
10740 *)
10741 shlibpath_overrides_runpath=yes
10742 ;;
10743 esac
10744 else
10745 shlibpath_overrides_runpath=yes
10746 fi
10747 ;;
10748
10749 os2*)
10750 libname_spec='$name'
10751 shrext_cmds=".dll"
10752 need_lib_prefix=no
10753 library_names_spec='$libname${shared_ext} $libname.a'
10754 dynamic_linker='OS/2 ld.exe'
10755 shlibpath_var=LIBPATH
10756 ;;
10757
10758 osf3* | osf4* | osf5*)
10759 version_type=osf
10760 need_lib_prefix=no
10761 need_version=no
10762 soname_spec='${libname}${release}${shared_ext}$major'
10763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10764 shlibpath_var=LD_LIBRARY_PATH
10765 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10766 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10767 ;;
10768
10769 rdos*)
10770 dynamic_linker=no
10771 ;;
10772
10773 solaris*)
10774 version_type=linux
10775 need_lib_prefix=no
10776 need_version=no
10777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10778 soname_spec='${libname}${release}${shared_ext}$major'
10779 shlibpath_var=LD_LIBRARY_PATH
10780 shlibpath_overrides_runpath=yes
10781 hardcode_into_libs=yes
10782 # ldd complains unless libraries are executable
10783 postinstall_cmds='chmod +x $lib'
10784 ;;
10785
10786 sunos4*)
10787 version_type=sunos
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10789 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10790 shlibpath_var=LD_LIBRARY_PATH
10791 shlibpath_overrides_runpath=yes
10792 if test "$with_gnu_ld" = yes; then
10793 need_lib_prefix=no
10794 fi
10795 need_version=yes
10796 ;;
10797
10798 sysv4 | sysv4.3*)
10799 version_type=linux
10800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10801 soname_spec='${libname}${release}${shared_ext}$major'
10802 shlibpath_var=LD_LIBRARY_PATH
10803 case $host_vendor in
10804 sni)
10805 shlibpath_overrides_runpath=no
10806 need_lib_prefix=no
10807 runpath_var=LD_RUN_PATH
10808 ;;
10809 siemens)
10810 need_lib_prefix=no
10811 ;;
10812 motorola)
10813 need_lib_prefix=no
10814 need_version=no
10815 shlibpath_overrides_runpath=no
10816 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10817 ;;
10818 esac
10819 ;;
10820
10821 sysv4*MP*)
10822 if test -d /usr/nec ;then
10823 version_type=linux
10824 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10825 soname_spec='$libname${shared_ext}.$major'
10826 shlibpath_var=LD_LIBRARY_PATH
10827 fi
10828 ;;
10829
10830 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10831 version_type=freebsd-elf
10832 need_lib_prefix=no
10833 need_version=no
10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10835 soname_spec='${libname}${release}${shared_ext}$major'
10836 shlibpath_var=LD_LIBRARY_PATH
10837 shlibpath_overrides_runpath=yes
10838 hardcode_into_libs=yes
10839 if test "$with_gnu_ld" = yes; then
10840 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10841 else
10842 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10843 case $host_os in
10844 sco3.2v5*)
10845 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10846 ;;
10847 esac
10848 fi
10849 sys_lib_dlsearch_path_spec='/usr/lib'
10850 ;;
10851
10852 tpf*)
10853 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10854 version_type=linux
10855 need_lib_prefix=no
10856 need_version=no
10857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10858 shlibpath_var=LD_LIBRARY_PATH
10859 shlibpath_overrides_runpath=no
10860 hardcode_into_libs=yes
10861 ;;
10862
10863 uts4*)
10864 version_type=linux
10865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10866 soname_spec='${libname}${release}${shared_ext}$major'
10867 shlibpath_var=LD_LIBRARY_PATH
10868 ;;
10869
10870 *)
10871 dynamic_linker=no
10872 ;;
10873 esac
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10875 $as_echo "$dynamic_linker" >&6; }
10876 test "$dynamic_linker" = no && can_build_shared=no
10877
10878 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10879 if test "$GCC" = yes; then
10880 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10881 fi
10882
10883 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10884 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10885 fi
10886 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10887 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10888 fi
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10982 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10983 hardcode_action=
10984 if test -n "$hardcode_libdir_flag_spec" ||
10985 test -n "$runpath_var" ||
10986 test "X$hardcode_automatic" = "Xyes" ; then
10987
10988 # We can hardcode non-existent directories.
10989 if test "$hardcode_direct" != no &&
10990 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10991 # have to relink, otherwise we might link with an installed library
10992 # when we should be linking with a yet-to-be-installed one
10993 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10994 test "$hardcode_minus_L" != no; then
10995 # Linking always hardcodes the temporary library directory.
10996 hardcode_action=relink
10997 else
10998 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10999 hardcode_action=immediate
11000 fi
11001 else
11002 # We cannot hardcode anything, or else we can only hardcode existing
11003 # directories.
11004 hardcode_action=unsupported
11005 fi
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11007 $as_echo "$hardcode_action" >&6; }
11008
11009 if test "$hardcode_action" = relink ||
11010 test "$inherit_rpath" = yes; then
11011 # Fast installation is not supported
11012 enable_fast_install=no
11013 elif test "$shlibpath_overrides_runpath" = yes ||
11014 test "$enable_shared" = no; then
11015 # Fast installation is not necessary
11016 enable_fast_install=needless
11017 fi
11018
11019
11020
11021
11022
11023
11024 if test "x$enable_dlopen" != xyes; then
11025 enable_dlopen=unknown
11026 enable_dlopen_self=unknown
11027 enable_dlopen_self_static=unknown
11028 else
11029 lt_cv_dlopen=no
11030 lt_cv_dlopen_libs=
11031
11032 case $host_os in
11033 beos*)
11034 lt_cv_dlopen="load_add_on"
11035 lt_cv_dlopen_libs=
11036 lt_cv_dlopen_self=yes
11037 ;;
11038
11039 mingw* | pw32* | cegcc*)
11040 lt_cv_dlopen="LoadLibrary"
11041 lt_cv_dlopen_libs=
11042 ;;
11043
11044 cygwin*)
11045 lt_cv_dlopen="dlopen"
11046 lt_cv_dlopen_libs=
11047 ;;
11048
11049 darwin*)
11050 # if libdl is installed we need to link against it
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11052 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11053 if ${ac_cv_lib_dl_dlopen+:} false; then :
11054 $as_echo_n "(cached) " >&6
11055 else
11056 ac_check_lib_save_LIBS=$LIBS
11057 LIBS="-ldl $LIBS"
11058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11059 /* end confdefs.h. */
11060
11061 /* Override any GCC internal prototype to avoid an error.
11062 Use char because int might match the return type of a GCC
11063 builtin and then its argument prototype would still apply. */
11064 #ifdef __cplusplus
11065 extern "C"
11066 #endif
11067 char dlopen ();
11068 int
11069 main ()
11070 {
11071 return dlopen ();
11072 ;
11073 return 0;
11074 }
11075 _ACEOF
11076 if ac_fn_c_try_link "$LINENO"; then :
11077 ac_cv_lib_dl_dlopen=yes
11078 else
11079 ac_cv_lib_dl_dlopen=no
11080 fi
11081 rm -f core conftest.err conftest.$ac_objext \
11082 conftest$ac_exeext conftest.$ac_ext
11083 LIBS=$ac_check_lib_save_LIBS
11084 fi
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11086 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11087 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11088 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11089 else
11090
11091 lt_cv_dlopen="dyld"
11092 lt_cv_dlopen_libs=
11093 lt_cv_dlopen_self=yes
11094
11095 fi
11096
11097 ;;
11098
11099 *)
11100 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11101 if test "x$ac_cv_func_shl_load" = xyes; then :
11102 lt_cv_dlopen="shl_load"
11103 else
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11105 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11106 if ${ac_cv_lib_dld_shl_load+:} false; then :
11107 $as_echo_n "(cached) " >&6
11108 else
11109 ac_check_lib_save_LIBS=$LIBS
11110 LIBS="-ldld $LIBS"
11111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112 /* end confdefs.h. */
11113
11114 /* Override any GCC internal prototype to avoid an error.
11115 Use char because int might match the return type of a GCC
11116 builtin and then its argument prototype would still apply. */
11117 #ifdef __cplusplus
11118 extern "C"
11119 #endif
11120 char shl_load ();
11121 int
11122 main ()
11123 {
11124 return shl_load ();
11125 ;
11126 return 0;
11127 }
11128 _ACEOF
11129 if ac_fn_c_try_link "$LINENO"; then :
11130 ac_cv_lib_dld_shl_load=yes
11131 else
11132 ac_cv_lib_dld_shl_load=no
11133 fi
11134 rm -f core conftest.err conftest.$ac_objext \
11135 conftest$ac_exeext conftest.$ac_ext
11136 LIBS=$ac_check_lib_save_LIBS
11137 fi
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11139 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11140 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11141 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11142 else
11143 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11144 if test "x$ac_cv_func_dlopen" = xyes; then :
11145 lt_cv_dlopen="dlopen"
11146 else
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11148 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11149 if ${ac_cv_lib_dl_dlopen+:} false; then :
11150 $as_echo_n "(cached) " >&6
11151 else
11152 ac_check_lib_save_LIBS=$LIBS
11153 LIBS="-ldl $LIBS"
11154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155 /* end confdefs.h. */
11156
11157 /* Override any GCC internal prototype to avoid an error.
11158 Use char because int might match the return type of a GCC
11159 builtin and then its argument prototype would still apply. */
11160 #ifdef __cplusplus
11161 extern "C"
11162 #endif
11163 char dlopen ();
11164 int
11165 main ()
11166 {
11167 return dlopen ();
11168 ;
11169 return 0;
11170 }
11171 _ACEOF
11172 if ac_fn_c_try_link "$LINENO"; then :
11173 ac_cv_lib_dl_dlopen=yes
11174 else
11175 ac_cv_lib_dl_dlopen=no
11176 fi
11177 rm -f core conftest.err conftest.$ac_objext \
11178 conftest$ac_exeext conftest.$ac_ext
11179 LIBS=$ac_check_lib_save_LIBS
11180 fi
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11182 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11183 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11184 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11185 else
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11187 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11188 if ${ac_cv_lib_svld_dlopen+:} false; then :
11189 $as_echo_n "(cached) " >&6
11190 else
11191 ac_check_lib_save_LIBS=$LIBS
11192 LIBS="-lsvld $LIBS"
11193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11194 /* end confdefs.h. */
11195
11196 /* Override any GCC internal prototype to avoid an error.
11197 Use char because int might match the return type of a GCC
11198 builtin and then its argument prototype would still apply. */
11199 #ifdef __cplusplus
11200 extern "C"
11201 #endif
11202 char dlopen ();
11203 int
11204 main ()
11205 {
11206 return dlopen ();
11207 ;
11208 return 0;
11209 }
11210 _ACEOF
11211 if ac_fn_c_try_link "$LINENO"; then :
11212 ac_cv_lib_svld_dlopen=yes
11213 else
11214 ac_cv_lib_svld_dlopen=no
11215 fi
11216 rm -f core conftest.err conftest.$ac_objext \
11217 conftest$ac_exeext conftest.$ac_ext
11218 LIBS=$ac_check_lib_save_LIBS
11219 fi
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11221 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11222 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11223 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11224 else
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11226 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11227 if ${ac_cv_lib_dld_dld_link+:} false; then :
11228 $as_echo_n "(cached) " >&6
11229 else
11230 ac_check_lib_save_LIBS=$LIBS
11231 LIBS="-ldld $LIBS"
11232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11233 /* end confdefs.h. */
11234
11235 /* Override any GCC internal prototype to avoid an error.
11236 Use char because int might match the return type of a GCC
11237 builtin and then its argument prototype would still apply. */
11238 #ifdef __cplusplus
11239 extern "C"
11240 #endif
11241 char dld_link ();
11242 int
11243 main ()
11244 {
11245 return dld_link ();
11246 ;
11247 return 0;
11248 }
11249 _ACEOF
11250 if ac_fn_c_try_link "$LINENO"; then :
11251 ac_cv_lib_dld_dld_link=yes
11252 else
11253 ac_cv_lib_dld_dld_link=no
11254 fi
11255 rm -f core conftest.err conftest.$ac_objext \
11256 conftest$ac_exeext conftest.$ac_ext
11257 LIBS=$ac_check_lib_save_LIBS
11258 fi
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11260 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11261 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11262 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11263 fi
11264
11265
11266 fi
11267
11268
11269 fi
11270
11271
11272 fi
11273
11274
11275 fi
11276
11277
11278 fi
11279
11280 ;;
11281 esac
11282
11283 if test "x$lt_cv_dlopen" != xno; then
11284 enable_dlopen=yes
11285 else
11286 enable_dlopen=no
11287 fi
11288
11289 case $lt_cv_dlopen in
11290 dlopen)
11291 save_CPPFLAGS="$CPPFLAGS"
11292 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11293
11294 save_LDFLAGS="$LDFLAGS"
11295 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11296
11297 save_LIBS="$LIBS"
11298 LIBS="$lt_cv_dlopen_libs $LIBS"
11299
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11301 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11302 if ${lt_cv_dlopen_self+:} false; then :
11303 $as_echo_n "(cached) " >&6
11304 else
11305 if test "$cross_compiling" = yes; then :
11306 lt_cv_dlopen_self=cross
11307 else
11308 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11309 lt_status=$lt_dlunknown
11310 cat > conftest.$ac_ext <<_LT_EOF
11311 #line $LINENO "configure"
11312 #include "confdefs.h"
11313
11314 #if HAVE_DLFCN_H
11315 #include <dlfcn.h>
11316 #endif
11317
11318 #include <stdio.h>
11319
11320 #ifdef RTLD_GLOBAL
11321 # define LT_DLGLOBAL RTLD_GLOBAL
11322 #else
11323 # ifdef DL_GLOBAL
11324 # define LT_DLGLOBAL DL_GLOBAL
11325 # else
11326 # define LT_DLGLOBAL 0
11327 # endif
11328 #endif
11329
11330 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11331 find out it does not work in some platform. */
11332 #ifndef LT_DLLAZY_OR_NOW
11333 # ifdef RTLD_LAZY
11334 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11335 # else
11336 # ifdef DL_LAZY
11337 # define LT_DLLAZY_OR_NOW DL_LAZY
11338 # else
11339 # ifdef RTLD_NOW
11340 # define LT_DLLAZY_OR_NOW RTLD_NOW
11341 # else
11342 # ifdef DL_NOW
11343 # define LT_DLLAZY_OR_NOW DL_NOW
11344 # else
11345 # define LT_DLLAZY_OR_NOW 0
11346 # endif
11347 # endif
11348 # endif
11349 # endif
11350 #endif
11351
11352 /* When -fvisbility=hidden is used, assume the code has been annotated
11353 correspondingly for the symbols needed. */
11354 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11355 int fnord () __attribute__((visibility("default")));
11356 #endif
11357
11358 int fnord () { return 42; }
11359 int main ()
11360 {
11361 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11362 int status = $lt_dlunknown;
11363
11364 if (self)
11365 {
11366 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11367 else
11368 {
11369 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11370 else puts (dlerror ());
11371 }
11372 /* dlclose (self); */
11373 }
11374 else
11375 puts (dlerror ());
11376
11377 return status;
11378 }
11379 _LT_EOF
11380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11381 (eval $ac_link) 2>&5
11382 ac_status=$?
11383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11384 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11385 (./conftest; exit; ) >&5 2>/dev/null
11386 lt_status=$?
11387 case x$lt_status in
11388 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11389 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11390 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11391 esac
11392 else :
11393 # compilation failed
11394 lt_cv_dlopen_self=no
11395 fi
11396 fi
11397 rm -fr conftest*
11398
11399
11400 fi
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11402 $as_echo "$lt_cv_dlopen_self" >&6; }
11403
11404 if test "x$lt_cv_dlopen_self" = xyes; then
11405 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11407 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11408 if ${lt_cv_dlopen_self_static+:} false; then :
11409 $as_echo_n "(cached) " >&6
11410 else
11411 if test "$cross_compiling" = yes; then :
11412 lt_cv_dlopen_self_static=cross
11413 else
11414 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11415 lt_status=$lt_dlunknown
11416 cat > conftest.$ac_ext <<_LT_EOF
11417 #line $LINENO "configure"
11418 #include "confdefs.h"
11419
11420 #if HAVE_DLFCN_H
11421 #include <dlfcn.h>
11422 #endif
11423
11424 #include <stdio.h>
11425
11426 #ifdef RTLD_GLOBAL
11427 # define LT_DLGLOBAL RTLD_GLOBAL
11428 #else
11429 # ifdef DL_GLOBAL
11430 # define LT_DLGLOBAL DL_GLOBAL
11431 # else
11432 # define LT_DLGLOBAL 0
11433 # endif
11434 #endif
11435
11436 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11437 find out it does not work in some platform. */
11438 #ifndef LT_DLLAZY_OR_NOW
11439 # ifdef RTLD_LAZY
11440 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11441 # else
11442 # ifdef DL_LAZY
11443 # define LT_DLLAZY_OR_NOW DL_LAZY
11444 # else
11445 # ifdef RTLD_NOW
11446 # define LT_DLLAZY_OR_NOW RTLD_NOW
11447 # else
11448 # ifdef DL_NOW
11449 # define LT_DLLAZY_OR_NOW DL_NOW
11450 # else
11451 # define LT_DLLAZY_OR_NOW 0
11452 # endif
11453 # endif
11454 # endif
11455 # endif
11456 #endif
11457
11458 /* When -fvisbility=hidden is used, assume the code has been annotated
11459 correspondingly for the symbols needed. */
11460 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11461 int fnord () __attribute__((visibility("default")));
11462 #endif
11463
11464 int fnord () { return 42; }
11465 int main ()
11466 {
11467 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11468 int status = $lt_dlunknown;
11469
11470 if (self)
11471 {
11472 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11473 else
11474 {
11475 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11476 else puts (dlerror ());
11477 }
11478 /* dlclose (self); */
11479 }
11480 else
11481 puts (dlerror ());
11482
11483 return status;
11484 }
11485 _LT_EOF
11486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11487 (eval $ac_link) 2>&5
11488 ac_status=$?
11489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11490 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11491 (./conftest; exit; ) >&5 2>/dev/null
11492 lt_status=$?
11493 case x$lt_status in
11494 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11495 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11496 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11497 esac
11498 else :
11499 # compilation failed
11500 lt_cv_dlopen_self_static=no
11501 fi
11502 fi
11503 rm -fr conftest*
11504
11505
11506 fi
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11508 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11509 fi
11510
11511 CPPFLAGS="$save_CPPFLAGS"
11512 LDFLAGS="$save_LDFLAGS"
11513 LIBS="$save_LIBS"
11514 ;;
11515 esac
11516
11517 case $lt_cv_dlopen_self in
11518 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11519 *) enable_dlopen_self=unknown ;;
11520 esac
11521
11522 case $lt_cv_dlopen_self_static in
11523 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11524 *) enable_dlopen_self_static=unknown ;;
11525 esac
11526 fi
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544 striplib=
11545 old_striplib=
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11547 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11548 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11549 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11550 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11552 $as_echo "yes" >&6; }
11553 else
11554 # FIXME - insert some real tests, host_os isn't really good enough
11555 case $host_os in
11556 darwin*)
11557 if test -n "$STRIP" ; then
11558 striplib="$STRIP -x"
11559 old_striplib="$STRIP -S"
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11561 $as_echo "yes" >&6; }
11562 else
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11564 $as_echo "no" >&6; }
11565 fi
11566 ;;
11567 *)
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569 $as_echo "no" >&6; }
11570 ;;
11571 esac
11572 fi
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585 # Report which library types will actually be built
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11587 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11589 $as_echo "$can_build_shared" >&6; }
11590
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11592 $as_echo_n "checking whether to build shared libraries... " >&6; }
11593 test "$can_build_shared" = "no" && enable_shared=no
11594
11595 # On AIX, shared libraries and static libraries use the same namespace, and
11596 # are all built from PIC.
11597 case $host_os in
11598 aix3*)
11599 test "$enable_shared" = yes && enable_static=no
11600 if test -n "$RANLIB"; then
11601 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11602 postinstall_cmds='$RANLIB $lib'
11603 fi
11604 ;;
11605
11606 aix[4-9]*)
11607 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11608 test "$enable_shared" = yes && enable_static=no
11609 fi
11610 ;;
11611 esac
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11613 $as_echo "$enable_shared" >&6; }
11614
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11616 $as_echo_n "checking whether to build static libraries... " >&6; }
11617 # Make sure either enable_shared or enable_static is yes.
11618 test "$enable_shared" = yes || enable_static=yes
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11620 $as_echo "$enable_static" >&6; }
11621
11622
11623
11624
11625 fi
11626 ac_ext=c
11627 ac_cpp='$CPP $CPPFLAGS'
11628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11631
11632 CC="$lt_save_CC"
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646 ac_config_commands="$ac_config_commands libtool"
11647
11648
11649
11650
11651 # Only expand once:
11652
11653
11654
11655 if test "x$GCC" = "xyes"; then
11656 case " $CFLAGS " in
11657 *[\ \ ]-Wall[\ \ ]*) ;;
11658 *) CFLAGS="$CFLAGS -Wall" ;;
11659 esac
11660 fi
11661
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11663 $as_echo_n "checking for X... " >&6; }
11664
11665
11666 # Check whether --with-x was given.
11667 if test "${with_x+set}" = set; then :
11668 withval=$with_x;
11669 fi
11670
11671 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11672 if test "x$with_x" = xno; then
11673 # The user explicitly disabled X.
11674 have_x=disabled
11675 else
11676 case $x_includes,$x_libraries in #(
11677 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
11678 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
11679 $as_echo_n "(cached) " >&6
11680 else
11681 # One or both of the vars are not set, and there is no cached value.
11682 ac_x_includes=no ac_x_libraries=no
11683 rm -f -r conftest.dir
11684 if mkdir conftest.dir; then
11685 cd conftest.dir
11686 cat >Imakefile <<'_ACEOF'
11687 incroot:
11688 @echo incroot='${INCROOT}'
11689 usrlibdir:
11690 @echo usrlibdir='${USRLIBDIR}'
11691 libdir:
11692 @echo libdir='${LIBDIR}'
11693 _ACEOF
11694 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11695 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11696 for ac_var in incroot usrlibdir libdir; do
11697 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11698 done
11699 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11700 for ac_extension in a so sl dylib la dll; do
11701 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11702 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11703 ac_im_usrlibdir=$ac_im_libdir; break
11704 fi
11705 done
11706 # Screen out bogus values from the imake configuration. They are
11707 # bogus both because they are the default anyway, and because
11708 # using them would break gcc on systems where it needs fixed includes.
11709 case $ac_im_incroot in
11710 /usr/include) ac_x_includes= ;;
11711 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11712 esac
11713 case $ac_im_usrlibdir in
11714 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
11715 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11716 esac
11717 fi
11718 cd ..
11719 rm -f -r conftest.dir
11720 fi
11721
11722 # Standard set of common directories for X headers.
11723 # Check X11 before X11Rn because it is often a symlink to the current release.
11724 ac_x_header_dirs='
11725 /usr/X11/include
11726 /usr/X11R7/include
11727 /usr/X11R6/include
11728 /usr/X11R5/include
11729 /usr/X11R4/include
11730
11731 /usr/include/X11
11732 /usr/include/X11R7
11733 /usr/include/X11R6
11734 /usr/include/X11R5
11735 /usr/include/X11R4
11736
11737 /usr/local/X11/include
11738 /usr/local/X11R7/include
11739 /usr/local/X11R6/include
11740 /usr/local/X11R5/include
11741 /usr/local/X11R4/include
11742
11743 /usr/local/include/X11
11744 /usr/local/include/X11R7
11745 /usr/local/include/X11R6
11746 /usr/local/include/X11R5
11747 /usr/local/include/X11R4
11748
11749 /usr/X386/include
11750 /usr/x386/include
11751 /usr/XFree86/include/X11
11752
11753 /usr/include
11754 /usr/local/include
11755 /usr/unsupported/include
11756 /usr/athena/include
11757 /usr/local/x11r5/include
11758 /usr/lpp/Xamples/include
11759
11760 /usr/openwin/include
11761 /usr/openwin/share/include'
11762
11763 if test "$ac_x_includes" = no; then
11764 # Guess where to find include files, by looking for Xlib.h.
11765 # First, try using that file with no special directory specified.
11766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11767 /* end confdefs.h. */
11768 #include <X11/Xlib.h>
11769 _ACEOF
11770 if ac_fn_c_try_cpp "$LINENO"; then :
11771 # We can compile using X headers with no special include directory.
11772 ac_x_includes=
11773 else
11774 for ac_dir in $ac_x_header_dirs; do
11775 if test -r "$ac_dir/X11/Xlib.h"; then
11776 ac_x_includes=$ac_dir
11777 break
11778 fi
11779 done
11780 fi
11781 rm -f conftest.err conftest.i conftest.$ac_ext
11782 fi # $ac_x_includes = no
11783
11784 if test "$ac_x_libraries" = no; then
11785 # Check for the libraries.
11786 # See if we find them without any special options.
11787 # Don't add to $LIBS permanently.
11788 ac_save_LIBS=$LIBS
11789 LIBS="-lX11 $LIBS"
11790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11791 /* end confdefs.h. */
11792 #include <X11/Xlib.h>
11793 int
11794 main ()
11795 {
11796 XrmInitialize ()
11797 ;
11798 return 0;
11799 }
11800 _ACEOF
11801 if ac_fn_c_try_link "$LINENO"; then :
11802 LIBS=$ac_save_LIBS
11803 # We can link X programs with no special library path.
11804 ac_x_libraries=
11805 else
11806 LIBS=$ac_save_LIBS
11807 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11808 do
11809 # Don't even attempt the hair of trying to link an X program!
11810 for ac_extension in a so sl dylib la dll; do
11811 if test -r "$ac_dir/libX11.$ac_extension"; then
11812 ac_x_libraries=$ac_dir
11813 break 2
11814 fi
11815 done
11816 done
11817 fi
11818 rm -f core conftest.err conftest.$ac_objext \
11819 conftest$ac_exeext conftest.$ac_ext
11820 fi # $ac_x_libraries = no
11821
11822 case $ac_x_includes,$ac_x_libraries in #(
11823 no,* | *,no | *\'*)
11824 # Didn't find X, or a directory has "'" in its name.
11825 ac_cv_have_x="have_x=no";; #(
11826 *)
11827 # Record where we found X for the cache.
11828 ac_cv_have_x="have_x=yes\
11829 ac_x_includes='$ac_x_includes'\
11830 ac_x_libraries='$ac_x_libraries'"
11831 esac
11832 fi
11833 ;; #(
11834 *) have_x=yes;;
11835 esac
11836 eval "$ac_cv_have_x"
11837 fi # $with_x != no
11838
11839 if test "$have_x" != yes; then
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
11841 $as_echo "$have_x" >&6; }
11842 no_x=yes
11843 else
11844 # If each of the values was on the command line, it overrides each guess.
11845 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11846 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11847 # Update the cache value to reflect the command line values.
11848 ac_cv_have_x="have_x=yes\
11849 ac_x_includes='$x_includes'\
11850 ac_x_libraries='$x_libraries'"
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
11852 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
11853 fi
11854
11855 if test "$no_x" = yes; then
11856 # Not all programs may use this symbol, but it does not hurt to define it.
11857
11858 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
11859
11860 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11861 else
11862 if test -n "$x_includes"; then
11863 X_CFLAGS="$X_CFLAGS -I$x_includes"
11864 fi
11865
11866 # It would also be nice to do this for all -L options, not just this one.
11867 if test -n "$x_libraries"; then
11868 X_LIBS="$X_LIBS -L$x_libraries"
11869 # For Solaris; some versions of Sun CC require a space after -R and
11870 # others require no space. Words are not sufficient . . . .
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
11872 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
11873 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
11874 ac_xsave_c_werror_flag=$ac_c_werror_flag
11875 ac_c_werror_flag=yes
11876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11877 /* end confdefs.h. */
11878
11879 int
11880 main ()
11881 {
11882
11883 ;
11884 return 0;
11885 }
11886 _ACEOF
11887 if ac_fn_c_try_link "$LINENO"; then :
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889 $as_echo "no" >&6; }
11890 X_LIBS="$X_LIBS -R$x_libraries"
11891 else
11892 LIBS="$ac_xsave_LIBS -R $x_libraries"
11893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11894 /* end confdefs.h. */
11895
11896 int
11897 main ()
11898 {
11899
11900 ;
11901 return 0;
11902 }
11903 _ACEOF
11904 if ac_fn_c_try_link "$LINENO"; then :
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11906 $as_echo "yes" >&6; }
11907 X_LIBS="$X_LIBS -R $x_libraries"
11908 else
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
11910 $as_echo "neither works" >&6; }
11911 fi
11912 rm -f core conftest.err conftest.$ac_objext \
11913 conftest$ac_exeext conftest.$ac_ext
11914 fi
11915 rm -f core conftest.err conftest.$ac_objext \
11916 conftest$ac_exeext conftest.$ac_ext
11917 ac_c_werror_flag=$ac_xsave_c_werror_flag
11918 LIBS=$ac_xsave_LIBS
11919 fi
11920
11921 # Check for system-dependent libraries X programs must link with.
11922 # Do this before checking for the system-independent R6 libraries
11923 # (-lICE), since we may need -lsocket or whatever for X linking.
11924
11925 if test "$ISC" = yes; then
11926 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11927 else
11928 # Martyn Johnson says this is needed for Ultrix, if the X
11929 # libraries were built with DECnet support. And Karl Berry says
11930 # the Alpha needs dnet_stub (dnet does not exist).
11931 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
11932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933 /* end confdefs.h. */
11934
11935 /* Override any GCC internal prototype to avoid an error.
11936 Use char because int might match the return type of a GCC
11937 builtin and then its argument prototype would still apply. */
11938 #ifdef __cplusplus
11939 extern "C"
11940 #endif
11941 char XOpenDisplay ();
11942 int
11943 main ()
11944 {
11945 return XOpenDisplay ();
11946 ;
11947 return 0;
11948 }
11949 _ACEOF
11950 if ac_fn_c_try_link "$LINENO"; then :
11951
11952 else
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
11954 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
11955 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
11956 $as_echo_n "(cached) " >&6
11957 else
11958 ac_check_lib_save_LIBS=$LIBS
11959 LIBS="-ldnet $LIBS"
11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h. */
11962
11963 /* Override any GCC internal prototype to avoid an error.
11964 Use char because int might match the return type of a GCC
11965 builtin and then its argument prototype would still apply. */
11966 #ifdef __cplusplus
11967 extern "C"
11968 #endif
11969 char dnet_ntoa ();
11970 int
11971 main ()
11972 {
11973 return dnet_ntoa ();
11974 ;
11975 return 0;
11976 }
11977 _ACEOF
11978 if ac_fn_c_try_link "$LINENO"; then :
11979 ac_cv_lib_dnet_dnet_ntoa=yes
11980 else
11981 ac_cv_lib_dnet_dnet_ntoa=no
11982 fi
11983 rm -f core conftest.err conftest.$ac_objext \
11984 conftest$ac_exeext conftest.$ac_ext
11985 LIBS=$ac_check_lib_save_LIBS
11986 fi
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11988 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11989 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
11990 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11991 fi
11992
11993 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
11995 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
11996 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
11997 $as_echo_n "(cached) " >&6
11998 else
11999 ac_check_lib_save_LIBS=$LIBS
12000 LIBS="-ldnet_stub $LIBS"
12001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002 /* end confdefs.h. */
12003
12004 /* Override any GCC internal prototype to avoid an error.
12005 Use char because int might match the return type of a GCC
12006 builtin and then its argument prototype would still apply. */
12007 #ifdef __cplusplus
12008 extern "C"
12009 #endif
12010 char dnet_ntoa ();
12011 int
12012 main ()
12013 {
12014 return dnet_ntoa ();
12015 ;
12016 return 0;
12017 }
12018 _ACEOF
12019 if ac_fn_c_try_link "$LINENO"; then :
12020 ac_cv_lib_dnet_stub_dnet_ntoa=yes
12021 else
12022 ac_cv_lib_dnet_stub_dnet_ntoa=no
12023 fi
12024 rm -f core conftest.err conftest.$ac_objext \
12025 conftest$ac_exeext conftest.$ac_ext
12026 LIBS=$ac_check_lib_save_LIBS
12027 fi
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12029 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
12030 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
12031 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12032 fi
12033
12034 fi
12035 fi
12036 rm -f core conftest.err conftest.$ac_objext \
12037 conftest$ac_exeext conftest.$ac_ext
12038 LIBS="$ac_xsave_LIBS"
12039
12040 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
12041 # to get the SysV transport functions.
12042 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12043 # needs -lnsl.
12044 # The nsl library prevents programs from opening the X display
12045 # on Irix 5.2, according to T.E. Dickey.
12046 # The functions gethostbyname, getservbyname, and inet_addr are
12047 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12048 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
12049 if test "x$ac_cv_func_gethostbyname" = xyes; then :
12050
12051 fi
12052
12053 if test $ac_cv_func_gethostbyname = no; then
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12055 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12056 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
12057 $as_echo_n "(cached) " >&6
12058 else
12059 ac_check_lib_save_LIBS=$LIBS
12060 LIBS="-lnsl $LIBS"
12061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12062 /* end confdefs.h. */
12063
12064 /* Override any GCC internal prototype to avoid an error.
12065 Use char because int might match the return type of a GCC
12066 builtin and then its argument prototype would still apply. */
12067 #ifdef __cplusplus
12068 extern "C"
12069 #endif
12070 char gethostbyname ();
12071 int
12072 main ()
12073 {
12074 return gethostbyname ();
12075 ;
12076 return 0;
12077 }
12078 _ACEOF
12079 if ac_fn_c_try_link "$LINENO"; then :
12080 ac_cv_lib_nsl_gethostbyname=yes
12081 else
12082 ac_cv_lib_nsl_gethostbyname=no
12083 fi
12084 rm -f core conftest.err conftest.$ac_objext \
12085 conftest$ac_exeext conftest.$ac_ext
12086 LIBS=$ac_check_lib_save_LIBS
12087 fi
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12089 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12090 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
12091 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12092 fi
12093
12094 if test $ac_cv_lib_nsl_gethostbyname = no; then
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
12096 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
12097 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
12098 $as_echo_n "(cached) " >&6
12099 else
12100 ac_check_lib_save_LIBS=$LIBS
12101 LIBS="-lbsd $LIBS"
12102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12103 /* end confdefs.h. */
12104
12105 /* Override any GCC internal prototype to avoid an error.
12106 Use char because int might match the return type of a GCC
12107 builtin and then its argument prototype would still apply. */
12108 #ifdef __cplusplus
12109 extern "C"
12110 #endif
12111 char gethostbyname ();
12112 int
12113 main ()
12114 {
12115 return gethostbyname ();
12116 ;
12117 return 0;
12118 }
12119 _ACEOF
12120 if ac_fn_c_try_link "$LINENO"; then :
12121 ac_cv_lib_bsd_gethostbyname=yes
12122 else
12123 ac_cv_lib_bsd_gethostbyname=no
12124 fi
12125 rm -f core conftest.err conftest.$ac_objext \
12126 conftest$ac_exeext conftest.$ac_ext
12127 LIBS=$ac_check_lib_save_LIBS
12128 fi
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
12130 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
12131 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
12132 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12133 fi
12134
12135 fi
12136 fi
12137
12138 # [email protected] says without -lsocket,
12139 # socket/setsockopt and other routines are undefined under SCO ODT
12140 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12141 # on later versions), says Simon Leinen: it contains gethostby*
12142 # variants that don't use the name server (or something). -lsocket
12143 # must be given before -lnsl if both are needed. We assume that
12144 # if connect needs -lnsl, so does gethostbyname.
12145 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
12146 if test "x$ac_cv_func_connect" = xyes; then :
12147
12148 fi
12149
12150 if test $ac_cv_func_connect = no; then
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
12152 $as_echo_n "checking for connect in -lsocket... " >&6; }
12153 if ${ac_cv_lib_socket_connect+:} false; then :
12154 $as_echo_n "(cached) " >&6
12155 else
12156 ac_check_lib_save_LIBS=$LIBS
12157 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12159 /* end confdefs.h. */
12160
12161 /* Override any GCC internal prototype to avoid an error.
12162 Use char because int might match the return type of a GCC
12163 builtin and then its argument prototype would still apply. */
12164 #ifdef __cplusplus
12165 extern "C"
12166 #endif
12167 char connect ();
12168 int
12169 main ()
12170 {
12171 return connect ();
12172 ;
12173 return 0;
12174 }
12175 _ACEOF
12176 if ac_fn_c_try_link "$LINENO"; then :
12177 ac_cv_lib_socket_connect=yes
12178 else
12179 ac_cv_lib_socket_connect=no
12180 fi
12181 rm -f core conftest.err conftest.$ac_objext \
12182 conftest$ac_exeext conftest.$ac_ext
12183 LIBS=$ac_check_lib_save_LIBS
12184 fi
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
12186 $as_echo "$ac_cv_lib_socket_connect" >&6; }
12187 if test "x$ac_cv_lib_socket_connect" = xyes; then :
12188 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12189 fi
12190
12191 fi
12192
12193 # Guillermo Gomez says -lposix is necessary on A/UX.
12194 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
12195 if test "x$ac_cv_func_remove" = xyes; then :
12196
12197 fi
12198
12199 if test $ac_cv_func_remove = no; then
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
12201 $as_echo_n "checking for remove in -lposix... " >&6; }
12202 if ${ac_cv_lib_posix_remove+:} false; then :
12203 $as_echo_n "(cached) " >&6
12204 else
12205 ac_check_lib_save_LIBS=$LIBS
12206 LIBS="-lposix $LIBS"
12207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12208 /* end confdefs.h. */
12209
12210 /* Override any GCC internal prototype to avoid an error.
12211 Use char because int might match the return type of a GCC
12212 builtin and then its argument prototype would still apply. */
12213 #ifdef __cplusplus
12214 extern "C"
12215 #endif
12216 char remove ();
12217 int
12218 main ()
12219 {
12220 return remove ();
12221 ;
12222 return 0;
12223 }
12224 _ACEOF
12225 if ac_fn_c_try_link "$LINENO"; then :
12226 ac_cv_lib_posix_remove=yes
12227 else
12228 ac_cv_lib_posix_remove=no
12229 fi
12230 rm -f core conftest.err conftest.$ac_objext \
12231 conftest$ac_exeext conftest.$ac_ext
12232 LIBS=$ac_check_lib_save_LIBS
12233 fi
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
12235 $as_echo "$ac_cv_lib_posix_remove" >&6; }
12236 if test "x$ac_cv_lib_posix_remove" = xyes; then :
12237 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12238 fi
12239
12240 fi
12241
12242 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12243 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
12244 if test "x$ac_cv_func_shmat" = xyes; then :
12245
12246 fi
12247
12248 if test $ac_cv_func_shmat = no; then
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
12250 $as_echo_n "checking for shmat in -lipc... " >&6; }
12251 if ${ac_cv_lib_ipc_shmat+:} false; then :
12252 $as_echo_n "(cached) " >&6
12253 else
12254 ac_check_lib_save_LIBS=$LIBS
12255 LIBS="-lipc $LIBS"
12256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12257 /* end confdefs.h. */
12258
12259 /* Override any GCC internal prototype to avoid an error.
12260 Use char because int might match the return type of a GCC
12261 builtin and then its argument prototype would still apply. */
12262 #ifdef __cplusplus
12263 extern "C"
12264 #endif
12265 char shmat ();
12266 int
12267 main ()
12268 {
12269 return shmat ();
12270 ;
12271 return 0;
12272 }
12273 _ACEOF
12274 if ac_fn_c_try_link "$LINENO"; then :
12275 ac_cv_lib_ipc_shmat=yes
12276 else
12277 ac_cv_lib_ipc_shmat=no
12278 fi
12279 rm -f core conftest.err conftest.$ac_objext \
12280 conftest$ac_exeext conftest.$ac_ext
12281 LIBS=$ac_check_lib_save_LIBS
12282 fi
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
12284 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
12285 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
12286 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12287 fi
12288
12289 fi
12290 fi
12291
12292 # Check for libraries that X11R6 Xt/Xaw programs need.
12293 ac_save_LDFLAGS=$LDFLAGS
12294 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12295 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12296 # check for ICE first), but we must link in the order -lSM -lICE or
12297 # we get undefined symbols. So assume we have SM if we have ICE.
12298 # These have to be linked with before -lX11, unlike the other
12299 # libraries we check for below, so use a different variable.
12300 # John Interrante, Karl Berry
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
12302 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
12303 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
12304 $as_echo_n "(cached) " >&6
12305 else
12306 ac_check_lib_save_LIBS=$LIBS
12307 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12309 /* end confdefs.h. */
12310
12311 /* Override any GCC internal prototype to avoid an error.
12312 Use char because int might match the return type of a GCC
12313 builtin and then its argument prototype would still apply. */
12314 #ifdef __cplusplus
12315 extern "C"
12316 #endif
12317 char IceConnectionNumber ();
12318 int
12319 main ()
12320 {
12321 return IceConnectionNumber ();
12322 ;
12323 return 0;
12324 }
12325 _ACEOF
12326 if ac_fn_c_try_link "$LINENO"; then :
12327 ac_cv_lib_ICE_IceConnectionNumber=yes
12328 else
12329 ac_cv_lib_ICE_IceConnectionNumber=no
12330 fi
12331 rm -f core conftest.err conftest.$ac_objext \
12332 conftest$ac_exeext conftest.$ac_ext
12333 LIBS=$ac_check_lib_save_LIBS
12334 fi
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12336 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
12337 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
12338 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12339 fi
12340
12341 LDFLAGS=$ac_save_LDFLAGS
12342
12343 fi
12344
12345
12346 if test x$no_x = xyes ; then
12347 as_fn_error $? "X11 development libraries/headers not found" "$LINENO" 5
12348 fi
12349
12350
12351 SANE_MALLOC_PROTOS=no
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc() and friends prototypes are sn-util.h compatible" >&5
12353 $as_echo_n "checking if malloc() and friends prototypes are sn-util.h compatible... " >&6; }
12354 lf_save_CFLAGS=$CFLAGS
12355 if test "x$GCC" = "xyes"; then
12356 CFLAGS="$CFLAGS -Werror"
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h. */
12359 #include <stdlib.h>
12360 int
12361 main ()
12362 {
12363
12364 void* (*my_calloc_p) (size_t, size_t) = calloc;
12365 void* (*my_malloc_p) (size_t) = malloc;
12366 void (*my_free_p) (void*) = free;
12367 void* (*my_realloc_p) (void*, size_t) = realloc;
12368 my_calloc_p = 0;
12369 my_malloc_p = 0;
12370 my_free_p = 0;
12371 my_realloc_p = 0;
12372
12373 ;
12374 return 0;
12375 }
12376 _ACEOF
12377 if ac_fn_c_try_compile "$LINENO"; then :
12378
12379 $as_echo "#define SANE_MALLOC_PROTOS 1" >>confdefs.h
12380
12381 SANE_MALLOC_PROTOS=yes
12382 fi
12383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12384 fi
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SANE_MALLOC_PROTOS" >&5
12386 $as_echo "$SANE_MALLOC_PROTOS" >&6; }
12387 CFLAGS=$lf_save_CFLAGS
12388
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realloc (NULL,) will work" >&5
12390 $as_echo_n "checking whether realloc (NULL,) will work... " >&6; }
12391 if ${lf_cv_sane_realloc+:} false; then :
12392 $as_echo_n "(cached) " >&6
12393 else
12394
12395 if test "$cross_compiling" = yes; then :
12396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12398 as_fn_error $? "cannot run test program while cross compiling
12399 See \`config.log' for more details" "$LINENO" 5; }
12400 else
12401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12402 /* end confdefs.h. */
12403
12404 #include <stdlib.h>
12405 int main() {
12406 return realloc (0, sizeof (int)) == 0;
12407 }
12408 _ACEOF
12409 if ac_fn_c_try_run "$LINENO"; then :
12410 lf_cv_sane_realloc=yes
12411 else
12412 lf_cv_sane_realloc=no
12413 fi
12414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12415 conftest.$ac_objext conftest.beam conftest.$ac_ext
12416 fi
12417
12418
12419 fi
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lf_cv_sane_realloc" >&5
12421 $as_echo "$lf_cv_sane_realloc" >&6; }
12422 if test x$lf_cv_sane_realloc = xyes; then
12423
12424 $as_echo "#define REALLOC_0_WORKS 1" >>confdefs.h
12425
12426 fi
12427
12428 ## try definining HAVE_BACKTRACE
12429 for ac_header in execinfo.h
12430 do :
12431 ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
12432 if test "x$ac_cv_header_execinfo_h" = xyes; then :
12433 cat >>confdefs.h <<_ACEOF
12434 #define HAVE_EXECINFO_H 1
12435 _ACEOF
12436 for ac_func in backtrace
12437 do :
12438 ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
12439 if test "x$ac_cv_func_backtrace" = xyes; then :
12440 cat >>confdefs.h <<_ACEOF
12441 #define HAVE_BACKTRACE 1
12442 _ACEOF
12443
12444 fi
12445 done
12446
12447 fi
12448
12449 done
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12460 if test -n "$ac_tool_prefix"; then
12461 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12462 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12464 $as_echo_n "checking for $ac_word... " >&6; }
12465 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12466 $as_echo_n "(cached) " >&6
12467 else
12468 case $PKG_CONFIG in
12469 [\\/]* | ?:[\\/]*)
12470 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12471 ;;
12472 *)
12473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12474 for as_dir in $PATH
12475 do
12476 IFS=$as_save_IFS
12477 test -z "$as_dir" && as_dir=.
12478 for ac_exec_ext in '' $ac_executable_extensions; do
12479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12480 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12482 break 2
12483 fi
12484 done
12485 done
12486 IFS=$as_save_IFS
12487
12488 ;;
12489 esac
12490 fi
12491 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12492 if test -n "$PKG_CONFIG"; then
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12494 $as_echo "$PKG_CONFIG" >&6; }
12495 else
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12497 $as_echo "no" >&6; }
12498 fi
12499
12500
12501 fi
12502 if test -z "$ac_cv_path_PKG_CONFIG"; then
12503 ac_pt_PKG_CONFIG=$PKG_CONFIG
12504 # Extract the first word of "pkg-config", so it can be a program name with args.
12505 set dummy pkg-config; ac_word=$2
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12507 $as_echo_n "checking for $ac_word... " >&6; }
12508 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12509 $as_echo_n "(cached) " >&6
12510 else
12511 case $ac_pt_PKG_CONFIG in
12512 [\\/]* | ?:[\\/]*)
12513 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12514 ;;
12515 *)
12516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12517 for as_dir in $PATH
12518 do
12519 IFS=$as_save_IFS
12520 test -z "$as_dir" && as_dir=.
12521 for ac_exec_ext in '' $ac_executable_extensions; do
12522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12523 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12525 break 2
12526 fi
12527 done
12528 done
12529 IFS=$as_save_IFS
12530
12531 ;;
12532 esac
12533 fi
12534 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12535 if test -n "$ac_pt_PKG_CONFIG"; then
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12537 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12538 else
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12540 $as_echo "no" >&6; }
12541 fi
12542
12543 if test "x$ac_pt_PKG_CONFIG" = x; then
12544 PKG_CONFIG=""
12545 else
12546 case $cross_compiling:$ac_tool_warned in
12547 yes:)
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12550 ac_tool_warned=yes ;;
12551 esac
12552 PKG_CONFIG=$ac_pt_PKG_CONFIG
12553 fi
12554 else
12555 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12556 fi
12557
12558 fi
12559 if test -n "$PKG_CONFIG"; then
12560 _pkg_min_version=0.9.0
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12562 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12563 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12565 $as_echo "yes" >&6; }
12566 else
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12568 $as_echo "no" >&6; }
12569 PKG_CONFIG=""
12570 fi
12571 fi
12572
12573 pkg_failed=no
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xcb" >&5
12575 $as_echo_n "checking for xcb... " >&6; }
12576
12577 if test -n "$xcb_CFLAGS"; then
12578 pkg_cv_xcb_CFLAGS="$xcb_CFLAGS"
12579 elif test -n "$PKG_CONFIG"; then
12580 if test -n "$PKG_CONFIG" && \
12581 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6\""; } >&5
12582 ($PKG_CONFIG --exists --print-errors "xcb >= 1.6") 2>&5
12583 ac_status=$?
12584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12585 test $ac_status = 0; }; then
12586 pkg_cv_xcb_CFLAGS=`$PKG_CONFIG --cflags "xcb >= 1.6" 2>/dev/null`
12587 test "x$?" != "x0" && pkg_failed=yes
12588 else
12589 pkg_failed=yes
12590 fi
12591 else
12592 pkg_failed=untried
12593 fi
12594 if test -n "$xcb_LIBS"; then
12595 pkg_cv_xcb_LIBS="$xcb_LIBS"
12596 elif test -n "$PKG_CONFIG"; then
12597 if test -n "$PKG_CONFIG" && \
12598 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6\""; } >&5
12599 ($PKG_CONFIG --exists --print-errors "xcb >= 1.6") 2>&5
12600 ac_status=$?
12601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12602 test $ac_status = 0; }; then
12603 pkg_cv_xcb_LIBS=`$PKG_CONFIG --libs "xcb >= 1.6" 2>/dev/null`
12604 test "x$?" != "x0" && pkg_failed=yes
12605 else
12606 pkg_failed=yes
12607 fi
12608 else
12609 pkg_failed=untried
12610 fi
12611
12612
12613
12614 if test $pkg_failed = yes; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12616 $as_echo "no" >&6; }
12617
12618 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12619 _pkg_short_errors_supported=yes
12620 else
12621 _pkg_short_errors_supported=no
12622 fi
12623 if test $_pkg_short_errors_supported = yes; then
12624 xcb_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb >= 1.6" 2>&1`
12625 else
12626 xcb_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb >= 1.6" 2>&1`
12627 fi
12628 # Put the nasty error message in config.log where it belongs
12629 echo "$xcb_PKG_ERRORS" >&5
12630
12631 as_fn_error $? "Cannot find xcb" "$LINENO" 5
12632 elif test $pkg_failed = untried; then
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12635 as_fn_error $? "Cannot find xcb" "$LINENO" 5
12636 else
12637 xcb_CFLAGS=$pkg_cv_xcb_CFLAGS
12638 xcb_LIBS=$pkg_cv_xcb_LIBS
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12640 $as_echo "yes" >&6; }
12641
12642 fi
12643
12644 pkg_failed=no
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xcb_aux" >&5
12646 $as_echo_n "checking for xcb_aux... " >&6; }
12647
12648 if test -n "$xcb_aux_CFLAGS"; then
12649 pkg_cv_xcb_aux_CFLAGS="$xcb_aux_CFLAGS"
12650 elif test -n "$PKG_CONFIG"; then
12651 if test -n "$PKG_CONFIG" && \
12652 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-aux\""; } >&5
12653 ($PKG_CONFIG --exists --print-errors "xcb-aux") 2>&5
12654 ac_status=$?
12655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12656 test $ac_status = 0; }; then
12657 pkg_cv_xcb_aux_CFLAGS=`$PKG_CONFIG --cflags "xcb-aux" 2>/dev/null`
12658 test "x$?" != "x0" && pkg_failed=yes
12659 else
12660 pkg_failed=yes
12661 fi
12662 else
12663 pkg_failed=untried
12664 fi
12665 if test -n "$xcb_aux_LIBS"; then
12666 pkg_cv_xcb_aux_LIBS="$xcb_aux_LIBS"
12667 elif test -n "$PKG_CONFIG"; then
12668 if test -n "$PKG_CONFIG" && \
12669 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-aux\""; } >&5
12670 ($PKG_CONFIG --exists --print-errors "xcb-aux") 2>&5
12671 ac_status=$?
12672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12673 test $ac_status = 0; }; then
12674 pkg_cv_xcb_aux_LIBS=`$PKG_CONFIG --libs "xcb-aux" 2>/dev/null`
12675 test "x$?" != "x0" && pkg_failed=yes
12676 else
12677 pkg_failed=yes
12678 fi
12679 else
12680 pkg_failed=untried
12681 fi
12682
12683
12684
12685 if test $pkg_failed = yes; then
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12687 $as_echo "no" >&6; }
12688
12689 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12690 _pkg_short_errors_supported=yes
12691 else
12692 _pkg_short_errors_supported=no
12693 fi
12694 if test $_pkg_short_errors_supported = yes; then
12695 xcb_aux_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-aux" 2>&1`
12696 else
12697 xcb_aux_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-aux" 2>&1`
12698 fi
12699 # Put the nasty error message in config.log where it belongs
12700 echo "$xcb_aux_PKG_ERRORS" >&5
12701
12702 as_fn_error $? "Cannot find xcb-aux" "$LINENO" 5
12703 elif test $pkg_failed = untried; then
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705 $as_echo "no" >&6; }
12706 as_fn_error $? "Cannot find xcb-aux" "$LINENO" 5
12707 else
12708 xcb_aux_CFLAGS=$pkg_cv_xcb_aux_CFLAGS
12709 xcb_aux_LIBS=$pkg_cv_xcb_aux_LIBS
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12711 $as_echo "yes" >&6; }
12712
12713 fi
12714
12715 pkg_failed=no
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xcb_event" >&5
12717 $as_echo_n "checking for xcb_event... " >&6; }
12718
12719 if test -n "$xcb_event_CFLAGS"; then
12720 pkg_cv_xcb_event_CFLAGS="$xcb_event_CFLAGS"
12721 elif test -n "$PKG_CONFIG"; then
12722 if test -n "$PKG_CONFIG" && \
12723 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-event\""; } >&5
12724 ($PKG_CONFIG --exists --print-errors "xcb-event") 2>&5
12725 ac_status=$?
12726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12727 test $ac_status = 0; }; then
12728 pkg_cv_xcb_event_CFLAGS=`$PKG_CONFIG --cflags "xcb-event" 2>/dev/null`
12729 test "x$?" != "x0" && pkg_failed=yes
12730 else
12731 pkg_failed=yes
12732 fi
12733 else
12734 pkg_failed=untried
12735 fi
12736 if test -n "$xcb_event_LIBS"; then
12737 pkg_cv_xcb_event_LIBS="$xcb_event_LIBS"
12738 elif test -n "$PKG_CONFIG"; then
12739 if test -n "$PKG_CONFIG" && \
12740 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-event\""; } >&5
12741 ($PKG_CONFIG --exists --print-errors "xcb-event") 2>&5
12742 ac_status=$?
12743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12744 test $ac_status = 0; }; then
12745 pkg_cv_xcb_event_LIBS=`$PKG_CONFIG --libs "xcb-event" 2>/dev/null`
12746 test "x$?" != "x0" && pkg_failed=yes
12747 else
12748 pkg_failed=yes
12749 fi
12750 else
12751 pkg_failed=untried
12752 fi
12753
12754
12755
12756 if test $pkg_failed = yes; then
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12758 $as_echo "no" >&6; }
12759
12760 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12761 _pkg_short_errors_supported=yes
12762 else
12763 _pkg_short_errors_supported=no
12764 fi
12765 if test $_pkg_short_errors_supported = yes; then
12766 xcb_event_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-event" 2>&1`
12767 else
12768 xcb_event_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-event" 2>&1`
12769 fi
12770 # Put the nasty error message in config.log where it belongs
12771 echo "$xcb_event_PKG_ERRORS" >&5
12772
12773 as_fn_error $? "Cannot find xcb-event" "$LINENO" 5
12774 elif test $pkg_failed = untried; then
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12776 $as_echo "no" >&6; }
12777 as_fn_error $? "Cannot find xcb-event" "$LINENO" 5
12778 else
12779 xcb_event_CFLAGS=$pkg_cv_xcb_event_CFLAGS
12780 xcb_event_LIBS=$pkg_cv_xcb_event_LIBS
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12782 $as_echo "yes" >&6; }
12783
12784 fi
12785
12786 pkg_failed=no
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x11_xcb" >&5
12788 $as_echo_n "checking for x11_xcb... " >&6; }
12789
12790 if test -n "$x11_xcb_CFLAGS"; then
12791 pkg_cv_x11_xcb_CFLAGS="$x11_xcb_CFLAGS"
12792 elif test -n "$PKG_CONFIG"; then
12793 if test -n "$PKG_CONFIG" && \
12794 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb\""; } >&5
12795 ($PKG_CONFIG --exists --print-errors "x11-xcb") 2>&5
12796 ac_status=$?
12797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12798 test $ac_status = 0; }; then
12799 pkg_cv_x11_xcb_CFLAGS=`$PKG_CONFIG --cflags "x11-xcb" 2>/dev/null`
12800 test "x$?" != "x0" && pkg_failed=yes
12801 else
12802 pkg_failed=yes
12803 fi
12804 else
12805 pkg_failed=untried
12806 fi
12807 if test -n "$x11_xcb_LIBS"; then
12808 pkg_cv_x11_xcb_LIBS="$x11_xcb_LIBS"
12809 elif test -n "$PKG_CONFIG"; then
12810 if test -n "$PKG_CONFIG" && \
12811 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb\""; } >&5
12812 ($PKG_CONFIG --exists --print-errors "x11-xcb") 2>&5
12813 ac_status=$?
12814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12815 test $ac_status = 0; }; then
12816 pkg_cv_x11_xcb_LIBS=`$PKG_CONFIG --libs "x11-xcb" 2>/dev/null`
12817 test "x$?" != "x0" && pkg_failed=yes
12818 else
12819 pkg_failed=yes
12820 fi
12821 else
12822 pkg_failed=untried
12823 fi
12824
12825
12826
12827 if test $pkg_failed = yes; then
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12829 $as_echo "no" >&6; }
12830
12831 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12832 _pkg_short_errors_supported=yes
12833 else
12834 _pkg_short_errors_supported=no
12835 fi
12836 if test $_pkg_short_errors_supported = yes; then
12837 x11_xcb_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11-xcb" 2>&1`
12838 else
12839 x11_xcb_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11-xcb" 2>&1`
12840 fi
12841 # Put the nasty error message in config.log where it belongs
12842 echo "$x11_xcb_PKG_ERRORS" >&5
12843
12844 as_fn_error $? "Cannot find x11-xcb" "$LINENO" 5
12845 elif test $pkg_failed = untried; then
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847 $as_echo "no" >&6; }
12848 as_fn_error $? "Cannot find x11-xcb" "$LINENO" 5
12849 else
12850 x11_xcb_CFLAGS=$pkg_cv_x11_xcb_CFLAGS
12851 x11_xcb_LIBS=$pkg_cv_x11_xcb_LIBS
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12853 $as_echo "yes" >&6; }
12854
12855 fi
12856
12857 LIBSN_CFLAGS="$xcb_CFLAGS $xcb_aux_CFLAGS $xcb_event_CFLAGS $x11_xcb_CFLAGS"
12858 LIBSN_LIBS="$xcb_LIBS $xcb_aux_LIBS $x11_xcb_LIBS"
12859
12860
12861
12862 ac_config_files="$ac_config_files Makefile libsn/Makefile test/Makefile doc/Makefile libstartup-notification-1.0.pc"
12863
12864
12865 cat >confcache <<\_ACEOF
12866 # This file is a shell script that caches the results of configure
12867 # tests run on this system so they can be shared between configure
12868 # scripts and configure runs, see configure's option --config-cache.
12869 # It is not useful on other systems. If it contains results you don't
12870 # want to keep, you may remove or edit it.
12871 #
12872 # config.status only pays attention to the cache file if you give it
12873 # the --recheck option to rerun configure.
12874 #
12875 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12876 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12877 # following values.
12878
12879 _ACEOF
12880
12881 # The following way of writing the cache mishandles newlines in values,
12882 # but we know of no workaround that is simple, portable, and efficient.
12883 # So, we kill variables containing newlines.
12884 # Ultrix sh set writes to stderr and can't be redirected directly,
12885 # and sets the high bit in the cache file unless we assign to the vars.
12886 (
12887 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12888 eval ac_val=\$$ac_var
12889 case $ac_val in #(
12890 *${as_nl}*)
12891 case $ac_var in #(
12892 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12893 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12894 esac
12895 case $ac_var in #(
12896 _ | IFS | as_nl) ;; #(
12897 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12898 *) { eval $ac_var=; unset $ac_var;} ;;
12899 esac ;;
12900 esac
12901 done
12902
12903 (set) 2>&1 |
12904 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12905 *${as_nl}ac_space=\ *)
12906 # `set' does not quote correctly, so add quotes: double-quote
12907 # substitution turns \\\\ into \\, and sed turns \\ into \.
12908 sed -n \
12909 "s/'/'\\\\''/g;
12910 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12911 ;; #(
12912 *)
12913 # `set' quotes correctly as required by POSIX, so do not add quotes.
12914 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12915 ;;
12916 esac |
12917 sort
12918 ) |
12919 sed '
12920 /^ac_cv_env_/b end
12921 t clear
12922 :clear
12923 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12924 t end
12925 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12926 :end' >>confcache
12927 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12928 if test -w "$cache_file"; then
12929 if test "x$cache_file" != "x/dev/null"; then
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12931 $as_echo "$as_me: updating cache $cache_file" >&6;}
12932 if test ! -f "$cache_file" || test -h "$cache_file"; then
12933 cat confcache >"$cache_file"
12934 else
12935 case $cache_file in #(
12936 */* | ?:*)
12937 mv -f confcache "$cache_file"$$ &&
12938 mv -f "$cache_file"$$ "$cache_file" ;; #(
12939 *)
12940 mv -f confcache "$cache_file" ;;
12941 esac
12942 fi
12943 fi
12944 else
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12946 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12947 fi
12948 fi
12949 rm -f confcache
12950
12951 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12952 # Let make expand exec_prefix.
12953 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12954
12955 DEFS=-DHAVE_CONFIG_H
12956
12957 ac_libobjs=
12958 ac_ltlibobjs=
12959 U=
12960 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12961 # 1. Remove the extension, and $U if already installed.
12962 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12963 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12964 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12965 # will be set to the directory where LIBOBJS objects are built.
12966 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12967 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12968 done
12969 LIBOBJS=$ac_libobjs
12970
12971 LTLIBOBJS=$ac_ltlibobjs
12972
12973
12974 if test -n "$EXEEXT"; then
12975 am__EXEEXT_TRUE=
12976 am__EXEEXT_FALSE='#'
12977 else
12978 am__EXEEXT_TRUE='#'
12979 am__EXEEXT_FALSE=
12980 fi
12981
12982 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12983 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12985 fi
12986 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12987 as_fn_error $? "conditional \"AMDEP\" was never defined.
12988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12989 fi
12990 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12991 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12993 fi
12994
12995 : "${CONFIG_STATUS=./config.status}"
12996 ac_write_fail=0
12997 ac_clean_files_save=$ac_clean_files
12998 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13000 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13001 as_write_fail=0
13002 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13003 #! $SHELL
13004 # Generated by $as_me.
13005 # Run this file to recreate the current configuration.
13006 # Compiler output produced by configure, useful for debugging
13007 # configure, is in config.log if it exists.
13008
13009 debug=false
13010 ac_cs_recheck=false
13011 ac_cs_silent=false
13012
13013 SHELL=\${CONFIG_SHELL-$SHELL}
13014 export SHELL
13015 _ASEOF
13016 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13017 ## -------------------- ##
13018 ## M4sh Initialization. ##
13019 ## -------------------- ##
13020
13021 # Be more Bourne compatible
13022 DUALCASE=1; export DUALCASE # for MKS sh
13023 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13024 emulate sh
13025 NULLCMD=:
13026 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13027 # is contrary to our usage. Disable this feature.
13028 alias -g '${1+"$@"}'='"$@"'
13029 setopt NO_GLOB_SUBST
13030 else
13031 case `(set -o) 2>/dev/null` in #(
13032 *posix*) :
13033 set -o posix ;; #(
13034 *) :
13035 ;;
13036 esac
13037 fi
13038
13039
13040 as_nl='
13041 '
13042 export as_nl
13043 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13044 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13045 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13046 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13047 # Prefer a ksh shell builtin over an external printf program on Solaris,
13048 # but without wasting forks for bash or zsh.
13049 if test -z "$BASH_VERSION$ZSH_VERSION" \
13050 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13051 as_echo='print -r --'
13052 as_echo_n='print -rn --'
13053 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13054 as_echo='printf %s\n'
13055 as_echo_n='printf %s'
13056 else
13057 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13058 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13059 as_echo_n='/usr/ucb/echo -n'
13060 else
13061 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13062 as_echo_n_body='eval
13063 arg=$1;
13064 case $arg in #(
13065 *"$as_nl"*)
13066 expr "X$arg" : "X\\(.*\\)$as_nl";
13067 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13068 esac;
13069 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13070 '
13071 export as_echo_n_body
13072 as_echo_n='sh -c $as_echo_n_body as_echo'
13073 fi
13074 export as_echo_body
13075 as_echo='sh -c $as_echo_body as_echo'
13076 fi
13077
13078 # The user is always right.
13079 if test "${PATH_SEPARATOR+set}" != set; then
13080 PATH_SEPARATOR=:
13081 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13082 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13083 PATH_SEPARATOR=';'
13084 }
13085 fi
13086
13087
13088 # IFS
13089 # We need space, tab and new line, in precisely that order. Quoting is
13090 # there to prevent editors from complaining about space-tab.
13091 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13092 # splitting by setting IFS to empty value.)
13093 IFS=" "" $as_nl"
13094
13095 # Find who we are. Look in the path if we contain no directory separator.
13096 as_myself=
13097 case $0 in #((
13098 *[\\/]* ) as_myself=$0 ;;
13099 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13100 for as_dir in $PATH
13101 do
13102 IFS=$as_save_IFS
13103 test -z "$as_dir" && as_dir=.
13104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13105 done
13106 IFS=$as_save_IFS
13107
13108 ;;
13109 esac
13110 # We did not find ourselves, most probably we were run as `sh COMMAND'
13111 # in which case we are not to be found in the path.
13112 if test "x$as_myself" = x; then
13113 as_myself=$0
13114 fi
13115 if test ! -f "$as_myself"; then
13116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13117 exit 1
13118 fi
13119
13120 # Unset variables that we do not need and which cause bugs (e.g. in
13121 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13122 # suppresses any "Segmentation fault" message there. '((' could
13123 # trigger a bug in pdksh 5.2.14.
13124 for as_var in BASH_ENV ENV MAIL MAILPATH
13125 do eval test x\${$as_var+set} = xset \
13126 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13127 done
13128 PS1='$ '
13129 PS2='> '
13130 PS4='+ '
13131
13132 # NLS nuisances.
13133 LC_ALL=C
13134 export LC_ALL
13135 LANGUAGE=C
13136 export LANGUAGE
13137
13138 # CDPATH.
13139 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13140
13141
13142 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13143 # ----------------------------------------
13144 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13145 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13146 # script with STATUS, using 1 if that was 0.
13147 as_fn_error ()
13148 {
13149 as_status=$1; test $as_status -eq 0 && as_status=1
13150 if test "$4"; then
13151 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13152 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13153 fi
13154 $as_echo "$as_me: error: $2" >&2
13155 as_fn_exit $as_status
13156 } # as_fn_error
13157
13158
13159 # as_fn_set_status STATUS
13160 # -----------------------
13161 # Set $? to STATUS, without forking.
13162 as_fn_set_status ()
13163 {
13164 return $1
13165 } # as_fn_set_status
13166
13167 # as_fn_exit STATUS
13168 # -----------------
13169 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13170 as_fn_exit ()
13171 {
13172 set +e
13173 as_fn_set_status $1
13174 exit $1
13175 } # as_fn_exit
13176
13177 # as_fn_unset VAR
13178 # ---------------
13179 # Portably unset VAR.
13180 as_fn_unset ()
13181 {
13182 { eval $1=; unset $1;}
13183 }
13184 as_unset=as_fn_unset
13185 # as_fn_append VAR VALUE
13186 # ----------------------
13187 # Append the text in VALUE to the end of the definition contained in VAR. Take
13188 # advantage of any shell optimizations that allow amortized linear growth over
13189 # repeated appends, instead of the typical quadratic growth present in naive
13190 # implementations.
13191 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13192 eval 'as_fn_append ()
13193 {
13194 eval $1+=\$2
13195 }'
13196 else
13197 as_fn_append ()
13198 {
13199 eval $1=\$$1\$2
13200 }
13201 fi # as_fn_append
13202
13203 # as_fn_arith ARG...
13204 # ------------------
13205 # Perform arithmetic evaluation on the ARGs, and store the result in the
13206 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13207 # must be portable across $(()) and expr.
13208 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13209 eval 'as_fn_arith ()
13210 {
13211 as_val=$(( $* ))
13212 }'
13213 else
13214 as_fn_arith ()
13215 {
13216 as_val=`expr "$@" || test $? -eq 1`
13217 }
13218 fi # as_fn_arith
13219
13220
13221 if expr a : '\(a\)' >/dev/null 2>&1 &&
13222 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13223 as_expr=expr
13224 else
13225 as_expr=false
13226 fi
13227
13228 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13229 as_basename=basename
13230 else
13231 as_basename=false
13232 fi
13233
13234 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13235 as_dirname=dirname
13236 else
13237 as_dirname=false
13238 fi
13239
13240 as_me=`$as_basename -- "$0" ||
13241 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13242 X"$0" : 'X\(//\)$' \| \
13243 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13244 $as_echo X/"$0" |
13245 sed '/^.*\/\([^/][^/]*\)\/*$/{
13246 s//\1/
13247 q
13248 }
13249 /^X\/\(\/\/\)$/{
13250 s//\1/
13251 q
13252 }
13253 /^X\/\(\/\).*/{
13254 s//\1/
13255 q
13256 }
13257 s/.*/./; q'`
13258
13259 # Avoid depending upon Character Ranges.
13260 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13261 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13262 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13263 as_cr_digits='0123456789'
13264 as_cr_alnum=$as_cr_Letters$as_cr_digits
13265
13266 ECHO_C= ECHO_N= ECHO_T=
13267 case `echo -n x` in #(((((
13268 -n*)
13269 case `echo 'xy\c'` in
13270 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13271 xy) ECHO_C='\c';;
13272 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13273 ECHO_T=' ';;
13274 esac;;
13275 *)
13276 ECHO_N='-n';;
13277 esac
13278
13279 rm -f conf$$ conf$$.exe conf$$.file
13280 if test -d conf$$.dir; then
13281 rm -f conf$$.dir/conf$$.file
13282 else
13283 rm -f conf$$.dir
13284 mkdir conf$$.dir 2>/dev/null
13285 fi
13286 if (echo >conf$$.file) 2>/dev/null; then
13287 if ln -s conf$$.file conf$$ 2>/dev/null; then
13288 as_ln_s='ln -s'
13289 # ... but there are two gotchas:
13290 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13291 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13292 # In both cases, we have to default to `cp -p'.
13293 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13294 as_ln_s='cp -p'
13295 elif ln conf$$.file conf$$ 2>/dev/null; then
13296 as_ln_s=ln
13297 else
13298 as_ln_s='cp -p'
13299 fi
13300 else
13301 as_ln_s='cp -p'
13302 fi
13303 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13304 rmdir conf$$.dir 2>/dev/null
13305
13306
13307 # as_fn_mkdir_p
13308 # -------------
13309 # Create "$as_dir" as a directory, including parents if necessary.
13310 as_fn_mkdir_p ()
13311 {
13312
13313 case $as_dir in #(
13314 -*) as_dir=./$as_dir;;
13315 esac
13316 test -d "$as_dir" || eval $as_mkdir_p || {
13317 as_dirs=
13318 while :; do
13319 case $as_dir in #(
13320 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13321 *) as_qdir=$as_dir;;
13322 esac
13323 as_dirs="'$as_qdir' $as_dirs"
13324 as_dir=`$as_dirname -- "$as_dir" ||
13325 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13326 X"$as_dir" : 'X\(//\)[^/]' \| \
13327 X"$as_dir" : 'X\(//\)$' \| \
13328 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13329 $as_echo X"$as_dir" |
13330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13331 s//\1/
13332 q
13333 }
13334 /^X\(\/\/\)[^/].*/{
13335 s//\1/
13336 q
13337 }
13338 /^X\(\/\/\)$/{
13339 s//\1/
13340 q
13341 }
13342 /^X\(\/\).*/{
13343 s//\1/
13344 q
13345 }
13346 s/.*/./; q'`
13347 test -d "$as_dir" && break
13348 done
13349 test -z "$as_dirs" || eval "mkdir $as_dirs"
13350 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13351
13352
13353 } # as_fn_mkdir_p
13354 if mkdir -p . 2>/dev/null; then
13355 as_mkdir_p='mkdir -p "$as_dir"'
13356 else
13357 test -d ./-p && rmdir ./-p
13358 as_mkdir_p=false
13359 fi
13360
13361 if test -x / >/dev/null 2>&1; then
13362 as_test_x='test -x'
13363 else
13364 if ls -dL / >/dev/null 2>&1; then
13365 as_ls_L_option=L
13366 else
13367 as_ls_L_option=
13368 fi
13369 as_test_x='
13370 eval sh -c '\''
13371 if test -d "$1"; then
13372 test -d "$1/.";
13373 else
13374 case $1 in #(
13375 -*)set "./$1";;
13376 esac;
13377 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13378 ???[sx]*):;;*)false;;esac;fi
13379 '\'' sh
13380 '
13381 fi
13382 as_executable_p=$as_test_x
13383
13384 # Sed expression to map a string onto a valid CPP name.
13385 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13386
13387 # Sed expression to map a string onto a valid variable name.
13388 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13389
13390
13391 exec 6>&1
13392 ## ----------------------------------- ##
13393 ## Main body of $CONFIG_STATUS script. ##
13394 ## ----------------------------------- ##
13395 _ASEOF
13396 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13397
13398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13399 # Save the log message, to keep $0 and so on meaningful, and to
13400 # report actual input values of CONFIG_FILES etc. instead of their
13401 # values after options handling.
13402 ac_log="
13403 This file was extended by startup-notification $as_me 0.12, which was
13404 generated by GNU Autoconf 2.68. Invocation command line was
13405
13406 CONFIG_FILES = $CONFIG_FILES
13407 CONFIG_HEADERS = $CONFIG_HEADERS
13408 CONFIG_LINKS = $CONFIG_LINKS
13409 CONFIG_COMMANDS = $CONFIG_COMMANDS
13410 $ $0 $@
13411
13412 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13413 "
13414
13415 _ACEOF
13416
13417 case $ac_config_files in *"
13418 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13419 esac
13420
13421 case $ac_config_headers in *"
13422 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13423 esac
13424
13425
13426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13427 # Files that config.status was made for.
13428 config_files="$ac_config_files"
13429 config_headers="$ac_config_headers"
13430 config_commands="$ac_config_commands"
13431
13432 _ACEOF
13433
13434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13435 ac_cs_usage="\
13436 \`$as_me' instantiates files and other configuration actions
13437 from templates according to the current configuration. Unless the files
13438 and actions are specified as TAGs, all are instantiated by default.
13439
13440 Usage: $0 [OPTION]... [TAG]...
13441
13442 -h, --help print this help, then exit
13443 -V, --version print version number and configuration settings, then exit
13444 --config print configuration, then exit
13445 -q, --quiet, --silent
13446 do not print progress messages
13447 -d, --debug don't remove temporary files
13448 --recheck update $as_me by reconfiguring in the same conditions
13449 --file=FILE[:TEMPLATE]
13450 instantiate the configuration file FILE
13451 --header=FILE[:TEMPLATE]
13452 instantiate the configuration header FILE
13453
13454 Configuration files:
13455 $config_files
13456
13457 Configuration headers:
13458 $config_headers
13459
13460 Configuration commands:
13461 $config_commands
13462
13463 Report bugs to <http://www.freedesktop.org/Software/startup-notification>."
13464
13465 _ACEOF
13466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13467 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13468 ac_cs_version="\\
13469 startup-notification config.status 0.12
13470 configured by $0, generated by GNU Autoconf 2.68,
13471 with options \\"\$ac_cs_config\\"
13472
13473 Copyright (C) 2010 Free Software Foundation, Inc.
13474 This config.status script is free software; the Free Software Foundation
13475 gives unlimited permission to copy, distribute and modify it."
13476
13477 ac_pwd='$ac_pwd'
13478 srcdir='$srcdir'
13479 INSTALL='$INSTALL'
13480 MKDIR_P='$MKDIR_P'
13481 AWK='$AWK'
13482 test -n "\$AWK" || AWK=awk
13483 _ACEOF
13484
13485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13486 # The default lists apply if the user does not specify any file.
13487 ac_need_defaults=:
13488 while test $# != 0
13489 do
13490 case $1 in
13491 --*=?*)
13492 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13493 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13494 ac_shift=:
13495 ;;
13496 --*=)
13497 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13498 ac_optarg=
13499 ac_shift=:
13500 ;;
13501 *)
13502 ac_option=$1
13503 ac_optarg=$2
13504 ac_shift=shift
13505 ;;
13506 esac
13507
13508 case $ac_option in
13509 # Handling of the options.
13510 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13511 ac_cs_recheck=: ;;
13512 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13513 $as_echo "$ac_cs_version"; exit ;;
13514 --config | --confi | --conf | --con | --co | --c )
13515 $as_echo "$ac_cs_config"; exit ;;
13516 --debug | --debu | --deb | --de | --d | -d )
13517 debug=: ;;
13518 --file | --fil | --fi | --f )
13519 $ac_shift
13520 case $ac_optarg in
13521 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13522 '') as_fn_error $? "missing file argument" ;;
13523 esac
13524 as_fn_append CONFIG_FILES " '$ac_optarg'"
13525 ac_need_defaults=false;;
13526 --header | --heade | --head | --hea )
13527 $ac_shift
13528 case $ac_optarg in
13529 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13530 esac
13531 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13532 ac_need_defaults=false;;
13533 --he | --h)
13534 # Conflict between --help and --header
13535 as_fn_error $? "ambiguous option: \`$1'
13536 Try \`$0 --help' for more information.";;
13537 --help | --hel | -h )
13538 $as_echo "$ac_cs_usage"; exit ;;
13539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13540 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13541 ac_cs_silent=: ;;
13542
13543 # This is an error.
13544 -*) as_fn_error $? "unrecognized option: \`$1'
13545 Try \`$0 --help' for more information." ;;
13546
13547 *) as_fn_append ac_config_targets " $1"
13548 ac_need_defaults=false ;;
13549
13550 esac
13551 shift
13552 done
13553
13554 ac_configure_extra_args=
13555
13556 if $ac_cs_silent; then
13557 exec 6>/dev/null
13558 ac_configure_extra_args="$ac_configure_extra_args --silent"
13559 fi
13560
13561 _ACEOF
13562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13563 if \$ac_cs_recheck; then
13564 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13565 shift
13566 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13567 CONFIG_SHELL='$SHELL'
13568 export CONFIG_SHELL
13569 exec "\$@"
13570 fi
13571
13572 _ACEOF
13573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13574 exec 5>>config.log
13575 {
13576 echo
13577 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13578 ## Running $as_me. ##
13579 _ASBOX
13580 $as_echo "$ac_log"
13581 } >&5
13582
13583 _ACEOF
13584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13585 #
13586 # INIT-COMMANDS
13587 #
13588 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13589
13590
13591 # The HP-UX ksh and POSIX shell print the target directory to stdout
13592 # if CDPATH is set.
13593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13594
13595 sed_quote_subst='$sed_quote_subst'
13596 double_quote_subst='$double_quote_subst'
13597 delay_variable_subst='$delay_variable_subst'
13598 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13599 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13600 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13601 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13602 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13603 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13604 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13605 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13606 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13607 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13608 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13609 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13610 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13611 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13612 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13613 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13614 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13615 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13616 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13617 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13618 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13619 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13620 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13621 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13622 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13623 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13624 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13625 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13626 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13627 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13628 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13629 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13630 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13631 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13632 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13633 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13634 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13635 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13636 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13637 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13638 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13639 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13640 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13641 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13642 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13643 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13644 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13645 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13646 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13647 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13648 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13649 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13650 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13651 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13652 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13653 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13654 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"`'
13655 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13656 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13657 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13658 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13659 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13660 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13661 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13662 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13663 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13664 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13665 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13666 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13667 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13668 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13669 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13670 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13671 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13672 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13673 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13674 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13675 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13676 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13677 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13678 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13679 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13680 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13681 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13682 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13683 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13684 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13685 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13686 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13687 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13688 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13689 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13690 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13691 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13692 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13693 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13694 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13695 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13696 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13697 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13698 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13699 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13700 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13701 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13702 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13703 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13704 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13705 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13706 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13707 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13708 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13709 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13710 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13711 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13712 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13713 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13714 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13715 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13716 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13717 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13718 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13719 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13720 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13721 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13722 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13723 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13724 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13725 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13726 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13727 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13728 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13729
13730 LTCC='$LTCC'
13731 LTCFLAGS='$LTCFLAGS'
13732 compiler='$compiler_DEFAULT'
13733
13734 # A function that is used when there is no print builtin or printf.
13735 func_fallback_echo ()
13736 {
13737 eval 'cat <<_LTECHO_EOF
13738 \$1
13739 _LTECHO_EOF'
13740 }
13741
13742 # Quote evaled strings.
13743 for var in AS \
13744 DLLTOOL \
13745 OBJDUMP \
13746 SHELL \
13747 ECHO \
13748 SED \
13749 GREP \
13750 EGREP \
13751 FGREP \
13752 LD \
13753 NM \
13754 LN_S \
13755 lt_SP2NL \
13756 lt_NL2SP \
13757 reload_flag \
13758 deplibs_check_method \
13759 file_magic_cmd \
13760 file_magic_glob \
13761 want_nocaseglob \
13762 sharedlib_from_linklib_cmd \
13763 AR \
13764 AR_FLAGS \
13765 archiver_list_spec \
13766 STRIP \
13767 RANLIB \
13768 CC \
13769 CFLAGS \
13770 compiler \
13771 lt_cv_sys_global_symbol_pipe \
13772 lt_cv_sys_global_symbol_to_cdecl \
13773 lt_cv_sys_global_symbol_to_c_name_address \
13774 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13775 nm_file_list_spec \
13776 lt_prog_compiler_no_builtin_flag \
13777 lt_prog_compiler_pic \
13778 lt_prog_compiler_wl \
13779 lt_prog_compiler_static \
13780 lt_cv_prog_compiler_c_o \
13781 need_locks \
13782 MANIFEST_TOOL \
13783 DSYMUTIL \
13784 NMEDIT \
13785 LIPO \
13786 OTOOL \
13787 OTOOL64 \
13788 shrext_cmds \
13789 export_dynamic_flag_spec \
13790 whole_archive_flag_spec \
13791 compiler_needs_object \
13792 with_gnu_ld \
13793 allow_undefined_flag \
13794 no_undefined_flag \
13795 hardcode_libdir_flag_spec \
13796 hardcode_libdir_flag_spec_ld \
13797 hardcode_libdir_separator \
13798 exclude_expsyms \
13799 include_expsyms \
13800 file_list_spec \
13801 variables_saved_for_relink \
13802 libname_spec \
13803 library_names_spec \
13804 soname_spec \
13805 install_override_mode \
13806 finish_eval \
13807 old_striplib \
13808 striplib; do
13809 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13810 *[\\\\\\\`\\"\\\$]*)
13811 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13812 ;;
13813 *)
13814 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13815 ;;
13816 esac
13817 done
13818
13819 # Double-quote double-evaled strings.
13820 for var in reload_cmds \
13821 old_postinstall_cmds \
13822 old_postuninstall_cmds \
13823 old_archive_cmds \
13824 extract_expsyms_cmds \
13825 old_archive_from_new_cmds \
13826 old_archive_from_expsyms_cmds \
13827 archive_cmds \
13828 archive_expsym_cmds \
13829 module_cmds \
13830 module_expsym_cmds \
13831 export_symbols_cmds \
13832 prelink_cmds \
13833 postlink_cmds \
13834 postinstall_cmds \
13835 postuninstall_cmds \
13836 finish_cmds \
13837 sys_lib_search_path_spec \
13838 sys_lib_dlsearch_path_spec; do
13839 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13840 *[\\\\\\\`\\"\\\$]*)
13841 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13842 ;;
13843 *)
13844 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13845 ;;
13846 esac
13847 done
13848
13849 ac_aux_dir='$ac_aux_dir'
13850 xsi_shell='$xsi_shell'
13851 lt_shell_append='$lt_shell_append'
13852
13853 # See if we are running on zsh, and set the options which allow our
13854 # commands through without removal of \ escapes INIT.
13855 if test -n "\${ZSH_VERSION+set}" ; then
13856 setopt NO_GLOB_SUBST
13857 fi
13858
13859
13860 PACKAGE='$PACKAGE'
13861 VERSION='$VERSION'
13862 TIMESTAMP='$TIMESTAMP'
13863 RM='$RM'
13864 ofile='$ofile'
13865
13866
13867
13868
13869 _ACEOF
13870
13871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13872
13873 # Handling of arguments.
13874 for ac_config_target in $ac_config_targets
13875 do
13876 case $ac_config_target in
13877 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13878 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13879 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13880 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13881 "libsn/Makefile") CONFIG_FILES="$CONFIG_FILES libsn/Makefile" ;;
13882 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
13883 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13884 "libstartup-notification-1.0.pc") CONFIG_FILES="$CONFIG_FILES libstartup-notification-1.0.pc" ;;
13885
13886 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13887 esac
13888 done
13889
13890
13891 # If the user did not use the arguments to specify the items to instantiate,
13892 # then the envvar interface is used. Set only those that are not.
13893 # We use the long form for the default assignment because of an extremely
13894 # bizarre bug on SunOS 4.1.3.
13895 if $ac_need_defaults; then
13896 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13897 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13898 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13899 fi
13900
13901 # Have a temporary directory for convenience. Make it in the build tree
13902 # simply because there is no reason against having it here, and in addition,
13903 # creating and moving files from /tmp can sometimes cause problems.
13904 # Hook for its removal unless debugging.
13905 # Note that there is a small window in which the directory will not be cleaned:
13906 # after its creation but before its name has been assigned to `$tmp'.
13907 $debug ||
13908 {
13909 tmp= ac_tmp=
13910 trap 'exit_status=$?
13911 : "${ac_tmp:=$tmp}"
13912 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13913 ' 0
13914 trap 'as_fn_exit 1' 1 2 13 15
13915 }
13916 # Create a (secure) tmp directory for tmp files.
13917
13918 {
13919 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13920 test -d "$tmp"
13921 } ||
13922 {
13923 tmp=./conf$$-$RANDOM
13924 (umask 077 && mkdir "$tmp")
13925 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13926 ac_tmp=$tmp
13927
13928 # Set up the scripts for CONFIG_FILES section.
13929 # No need to generate them if there are no CONFIG_FILES.
13930 # This happens for instance with `./config.status config.h'.
13931 if test -n "$CONFIG_FILES"; then
13932
13933
13934 ac_cr=`echo X | tr X '\015'`
13935 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13936 # But we know of no other shell where ac_cr would be empty at this
13937 # point, so we can use a bashism as a fallback.
13938 if test "x$ac_cr" = x; then
13939 eval ac_cr=\$\'\\r\'
13940 fi
13941 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13942 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13943 ac_cs_awk_cr='\\r'
13944 else
13945 ac_cs_awk_cr=$ac_cr
13946 fi
13947
13948 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13949 _ACEOF
13950
13951
13952 {
13953 echo "cat >conf$$subs.awk <<_ACEOF" &&
13954 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13955 echo "_ACEOF"
13956 } >conf$$subs.sh ||
13957 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13958 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13959 ac_delim='%!_!# '
13960 for ac_last_try in false false false false false :; do
13961 . ./conf$$subs.sh ||
13962 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13963
13964 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13965 if test $ac_delim_n = $ac_delim_num; then
13966 break
13967 elif $ac_last_try; then
13968 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13969 else
13970 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13971 fi
13972 done
13973 rm -f conf$$subs.sh
13974
13975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13976 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13977 _ACEOF
13978 sed -n '
13979 h
13980 s/^/S["/; s/!.*/"]=/
13981 p
13982 g
13983 s/^[^!]*!//
13984 :repl
13985 t repl
13986 s/'"$ac_delim"'$//
13987 t delim
13988 :nl
13989 h
13990 s/\(.\{148\}\)..*/\1/
13991 t more1
13992 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13993 p
13994 n
13995 b repl
13996 :more1
13997 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13998 p
13999 g
14000 s/.\{148\}//
14001 t nl
14002 :delim
14003 h
14004 s/\(.\{148\}\)..*/\1/
14005 t more2
14006 s/["\\]/\\&/g; s/^/"/; s/$/"/
14007 p
14008 b
14009 :more2
14010 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14011 p
14012 g
14013 s/.\{148\}//
14014 t delim
14015 ' <conf$$subs.awk | sed '
14016 /^[^""]/{
14017 N
14018 s/\n//
14019 }
14020 ' >>$CONFIG_STATUS || ac_write_fail=1
14021 rm -f conf$$subs.awk
14022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14023 _ACAWK
14024 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14025 for (key in S) S_is_set[key] = 1
14026 FS = ""
14027
14028 }
14029 {
14030 line = $ 0
14031 nfields = split(line, field, "@")
14032 substed = 0
14033 len = length(field[1])
14034 for (i = 2; i < nfields; i++) {
14035 key = field[i]
14036 keylen = length(key)
14037 if (S_is_set[key]) {
14038 value = S[key]
14039 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14040 len += length(value) + length(field[++i])
14041 substed = 1
14042 } else
14043 len += 1 + keylen
14044 }
14045
14046 print line
14047 }
14048
14049 _ACAWK
14050 _ACEOF
14051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14052 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14053 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14054 else
14055 cat
14056 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14057 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14058 _ACEOF
14059
14060 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14061 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14062 # trailing colons and then remove the whole line if VPATH becomes empty
14063 # (actually we leave an empty line to preserve line numbers).
14064 if test "x$srcdir" = x.; then
14065 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14066 h
14067 s///
14068 s/^/:/
14069 s/[ ]*$/:/
14070 s/:\$(srcdir):/:/g
14071 s/:\${srcdir}:/:/g
14072 s/:@srcdir@:/:/g
14073 s/^:*//
14074 s/:*$//
14075 x
14076 s/\(=[ ]*\).*/\1/
14077 G
14078 s/\n//
14079 s/^[^=]*=[ ]*$//
14080 }'
14081 fi
14082
14083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14084 fi # test -n "$CONFIG_FILES"
14085
14086 # Set up the scripts for CONFIG_HEADERS section.
14087 # No need to generate them if there are no CONFIG_HEADERS.
14088 # This happens for instance with `./config.status Makefile'.
14089 if test -n "$CONFIG_HEADERS"; then
14090 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14091 BEGIN {
14092 _ACEOF
14093
14094 # Transform confdefs.h into an awk script `defines.awk', embedded as
14095 # here-document in config.status, that substitutes the proper values into
14096 # config.h.in to produce config.h.
14097
14098 # Create a delimiter string that does not exist in confdefs.h, to ease
14099 # handling of long lines.
14100 ac_delim='%!_!# '
14101 for ac_last_try in false false :; do
14102 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14103 if test -z "$ac_tt"; then
14104 break
14105 elif $ac_last_try; then
14106 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14107 else
14108 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14109 fi
14110 done
14111
14112 # For the awk script, D is an array of macro values keyed by name,
14113 # likewise P contains macro parameters if any. Preserve backslash
14114 # newline sequences.
14115
14116 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14117 sed -n '
14118 s/.\{148\}/&'"$ac_delim"'/g
14119 t rset
14120 :rset
14121 s/^[ ]*#[ ]*define[ ][ ]*/ /
14122 t def
14123 d
14124 :def
14125 s/\\$//
14126 t bsnl
14127 s/["\\]/\\&/g
14128 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14129 D["\1"]=" \3"/p
14130 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14131 d
14132 :bsnl
14133 s/["\\]/\\&/g
14134 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14135 D["\1"]=" \3\\\\\\n"\\/p
14136 t cont
14137 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14138 t cont
14139 d
14140 :cont
14141 n
14142 s/.\{148\}/&'"$ac_delim"'/g
14143 t clear
14144 :clear
14145 s/\\$//
14146 t bsnlc
14147 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14148 d
14149 :bsnlc
14150 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14151 b cont
14152 ' <confdefs.h | sed '
14153 s/'"$ac_delim"'/"\\\
14154 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14155
14156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14157 for (key in D) D_is_set[key] = 1
14158 FS = ""
14159 }
14160 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14161 line = \$ 0
14162 split(line, arg, " ")
14163 if (arg[1] == "#") {
14164 defundef = arg[2]
14165 mac1 = arg[3]
14166 } else {
14167 defundef = substr(arg[1], 2)
14168 mac1 = arg[2]
14169 }
14170 split(mac1, mac2, "(") #)
14171 macro = mac2[1]
14172 prefix = substr(line, 1, index(line, defundef) - 1)
14173 if (D_is_set[macro]) {
14174 # Preserve the white space surrounding the "#".
14175 print prefix "define", macro P[macro] D[macro]
14176 next
14177 } else {
14178 # Replace #undef with comments. This is necessary, for example,
14179 # in the case of _POSIX_SOURCE, which is predefined and required
14180 # on some systems where configure will not decide to define it.
14181 if (defundef == "undef") {
14182 print "/*", prefix defundef, macro, "*/"
14183 next
14184 }
14185 }
14186 }
14187 { print }
14188 _ACAWK
14189 _ACEOF
14190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14191 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14192 fi # test -n "$CONFIG_HEADERS"
14193
14194
14195 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14196 shift
14197 for ac_tag
14198 do
14199 case $ac_tag in
14200 :[FHLC]) ac_mode=$ac_tag; continue;;
14201 esac
14202 case $ac_mode$ac_tag in
14203 :[FHL]*:*);;
14204 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14205 :[FH]-) ac_tag=-:-;;
14206 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14207 esac
14208 ac_save_IFS=$IFS
14209 IFS=:
14210 set x $ac_tag
14211 IFS=$ac_save_IFS
14212 shift
14213 ac_file=$1
14214 shift
14215
14216 case $ac_mode in
14217 :L) ac_source=$1;;
14218 :[FH])
14219 ac_file_inputs=
14220 for ac_f
14221 do
14222 case $ac_f in
14223 -) ac_f="$ac_tmp/stdin";;
14224 *) # Look for the file first in the build tree, then in the source tree
14225 # (if the path is not absolute). The absolute path cannot be DOS-style,
14226 # because $ac_f cannot contain `:'.
14227 test -f "$ac_f" ||
14228 case $ac_f in
14229 [\\/$]*) false;;
14230 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14231 esac ||
14232 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14233 esac
14234 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14235 as_fn_append ac_file_inputs " '$ac_f'"
14236 done
14237
14238 # Let's still pretend it is `configure' which instantiates (i.e., don't
14239 # use $as_me), people would be surprised to read:
14240 # /* config.h. Generated by config.status. */
14241 configure_input='Generated from '`
14242 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14243 `' by configure.'
14244 if test x"$ac_file" != x-; then
14245 configure_input="$ac_file. $configure_input"
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14247 $as_echo "$as_me: creating $ac_file" >&6;}
14248 fi
14249 # Neutralize special characters interpreted by sed in replacement strings.
14250 case $configure_input in #(
14251 *\&* | *\|* | *\\* )
14252 ac_sed_conf_input=`$as_echo "$configure_input" |
14253 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14254 *) ac_sed_conf_input=$configure_input;;
14255 esac
14256
14257 case $ac_tag in
14258 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14259 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14260 esac
14261 ;;
14262 esac
14263
14264 ac_dir=`$as_dirname -- "$ac_file" ||
14265 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14266 X"$ac_file" : 'X\(//\)[^/]' \| \
14267 X"$ac_file" : 'X\(//\)$' \| \
14268 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14269 $as_echo X"$ac_file" |
14270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14271 s//\1/
14272 q
14273 }
14274 /^X\(\/\/\)[^/].*/{
14275 s//\1/
14276 q
14277 }
14278 /^X\(\/\/\)$/{
14279 s//\1/
14280 q
14281 }
14282 /^X\(\/\).*/{
14283 s//\1/
14284 q
14285 }
14286 s/.*/./; q'`
14287 as_dir="$ac_dir"; as_fn_mkdir_p
14288 ac_builddir=.
14289
14290 case "$ac_dir" in
14291 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14292 *)
14293 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14294 # A ".." for each directory in $ac_dir_suffix.
14295 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14296 case $ac_top_builddir_sub in
14297 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14298 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14299 esac ;;
14300 esac
14301 ac_abs_top_builddir=$ac_pwd
14302 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14303 # for backward compatibility:
14304 ac_top_builddir=$ac_top_build_prefix
14305
14306 case $srcdir in
14307 .) # We are building in place.
14308 ac_srcdir=.
14309 ac_top_srcdir=$ac_top_builddir_sub
14310 ac_abs_top_srcdir=$ac_pwd ;;
14311 [\\/]* | ?:[\\/]* ) # Absolute name.
14312 ac_srcdir=$srcdir$ac_dir_suffix;
14313 ac_top_srcdir=$srcdir
14314 ac_abs_top_srcdir=$srcdir ;;
14315 *) # Relative name.
14316 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14317 ac_top_srcdir=$ac_top_build_prefix$srcdir
14318 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14319 esac
14320 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14321
14322
14323 case $ac_mode in
14324 :F)
14325 #
14326 # CONFIG_FILE
14327 #
14328
14329 case $INSTALL in
14330 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14331 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14332 esac
14333 ac_MKDIR_P=$MKDIR_P
14334 case $MKDIR_P in
14335 [\\/$]* | ?:[\\/]* ) ;;
14336 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14337 esac
14338 _ACEOF
14339
14340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14341 # If the template does not know about datarootdir, expand it.
14342 # FIXME: This hack should be removed a few years after 2.60.
14343 ac_datarootdir_hack=; ac_datarootdir_seen=
14344 ac_sed_dataroot='
14345 /datarootdir/ {
14346 p
14347 q
14348 }
14349 /@datadir@/p
14350 /@docdir@/p
14351 /@infodir@/p
14352 /@localedir@/p
14353 /@mandir@/p'
14354 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14355 *datarootdir*) ac_datarootdir_seen=yes;;
14356 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14358 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14359 _ACEOF
14360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14361 ac_datarootdir_hack='
14362 s&@datadir@&$datadir&g
14363 s&@docdir@&$docdir&g
14364 s&@infodir@&$infodir&g
14365 s&@localedir@&$localedir&g
14366 s&@mandir@&$mandir&g
14367 s&\\\${datarootdir}&$datarootdir&g' ;;
14368 esac
14369 _ACEOF
14370
14371 # Neutralize VPATH when `$srcdir' = `.'.
14372 # Shell code in configure.ac might set extrasub.
14373 # FIXME: do we really want to maintain this feature?
14374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14375 ac_sed_extra="$ac_vpsub
14376 $extrasub
14377 _ACEOF
14378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14379 :t
14380 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14381 s|@configure_input@|$ac_sed_conf_input|;t t
14382 s&@top_builddir@&$ac_top_builddir_sub&;t t
14383 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14384 s&@srcdir@&$ac_srcdir&;t t
14385 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14386 s&@top_srcdir@&$ac_top_srcdir&;t t
14387 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14388 s&@builddir@&$ac_builddir&;t t
14389 s&@abs_builddir@&$ac_abs_builddir&;t t
14390 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14391 s&@INSTALL@&$ac_INSTALL&;t t
14392 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14393 $ac_datarootdir_hack
14394 "
14395 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14396 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14397
14398 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14399 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14400 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14401 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14403 which seems to be undefined. Please make sure it is defined" >&5
14404 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14405 which seems to be undefined. Please make sure it is defined" >&2;}
14406
14407 rm -f "$ac_tmp/stdin"
14408 case $ac_file in
14409 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14410 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14411 esac \
14412 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14413 ;;
14414 :H)
14415 #
14416 # CONFIG_HEADER
14417 #
14418 if test x"$ac_file" != x-; then
14419 {
14420 $as_echo "/* $configure_input */" \
14421 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14422 } >"$ac_tmp/config.h" \
14423 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14424 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14426 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14427 else
14428 rm -f "$ac_file"
14429 mv "$ac_tmp/config.h" "$ac_file" \
14430 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14431 fi
14432 else
14433 $as_echo "/* $configure_input */" \
14434 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14435 || as_fn_error $? "could not create -" "$LINENO" 5
14436 fi
14437 # Compute "$ac_file"'s index in $config_headers.
14438 _am_arg="$ac_file"
14439 _am_stamp_count=1
14440 for _am_header in $config_headers :; do
14441 case $_am_header in
14442 $_am_arg | $_am_arg:* )
14443 break ;;
14444 * )
14445 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14446 esac
14447 done
14448 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14449 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14450 X"$_am_arg" : 'X\(//\)[^/]' \| \
14451 X"$_am_arg" : 'X\(//\)$' \| \
14452 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14453 $as_echo X"$_am_arg" |
14454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14455 s//\1/
14456 q
14457 }
14458 /^X\(\/\/\)[^/].*/{
14459 s//\1/
14460 q
14461 }
14462 /^X\(\/\/\)$/{
14463 s//\1/
14464 q
14465 }
14466 /^X\(\/\).*/{
14467 s//\1/
14468 q
14469 }
14470 s/.*/./; q'`/stamp-h$_am_stamp_count
14471 ;;
14472
14473 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14474 $as_echo "$as_me: executing $ac_file commands" >&6;}
14475 ;;
14476 esac
14477
14478
14479 case $ac_file$ac_mode in
14480 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14481 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14482 # are listed without --file. Let's play safe and only enable the eval
14483 # if we detect the quoting.
14484 case $CONFIG_FILES in
14485 *\'*) eval set x "$CONFIG_FILES" ;;
14486 *) set x $CONFIG_FILES ;;
14487 esac
14488 shift
14489 for mf
14490 do
14491 # Strip MF so we end up with the name of the file.
14492 mf=`echo "$mf" | sed -e 's/:.*$//'`
14493 # Check whether this is an Automake generated Makefile or not.
14494 # We used to match only the files named `Makefile.in', but
14495 # some people rename them; so instead we look at the file content.
14496 # Grep'ing the first line is not enough: some people post-process
14497 # each Makefile.in and add a new line on top of each file to say so.
14498 # Grep'ing the whole file is not good either: AIX grep has a line
14499 # limit of 2048, but all sed's we know have understand at least 4000.
14500 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14501 dirpart=`$as_dirname -- "$mf" ||
14502 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14503 X"$mf" : 'X\(//\)[^/]' \| \
14504 X"$mf" : 'X\(//\)$' \| \
14505 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14506 $as_echo X"$mf" |
14507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14508 s//\1/
14509 q
14510 }
14511 /^X\(\/\/\)[^/].*/{
14512 s//\1/
14513 q
14514 }
14515 /^X\(\/\/\)$/{
14516 s//\1/
14517 q
14518 }
14519 /^X\(\/\).*/{
14520 s//\1/
14521 q
14522 }
14523 s/.*/./; q'`
14524 else
14525 continue
14526 fi
14527 # Extract the definition of DEPDIR, am__include, and am__quote
14528 # from the Makefile without running `make'.
14529 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14530 test -z "$DEPDIR" && continue
14531 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14532 test -z "am__include" && continue
14533 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14534 # When using ansi2knr, U may be empty or an underscore; expand it
14535 U=`sed -n 's/^U = //p' < "$mf"`
14536 # Find all dependency output files, they are included files with
14537 # $(DEPDIR) in their names. We invoke sed twice because it is the
14538 # simplest approach to changing $(DEPDIR) to its actual value in the
14539 # expansion.
14540 for file in `sed -n "
14541 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14542 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14543 # Make sure the directory exists.
14544 test -f "$dirpart/$file" && continue
14545 fdir=`$as_dirname -- "$file" ||
14546 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14547 X"$file" : 'X\(//\)[^/]' \| \
14548 X"$file" : 'X\(//\)$' \| \
14549 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14550 $as_echo X"$file" |
14551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14552 s//\1/
14553 q
14554 }
14555 /^X\(\/\/\)[^/].*/{
14556 s//\1/
14557 q
14558 }
14559 /^X\(\/\/\)$/{
14560 s//\1/
14561 q
14562 }
14563 /^X\(\/\).*/{
14564 s//\1/
14565 q
14566 }
14567 s/.*/./; q'`
14568 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14569 # echo "creating $dirpart/$file"
14570 echo '# dummy' > "$dirpart/$file"
14571 done
14572 done
14573 }
14574 ;;
14575 "libtool":C)
14576
14577 # See if we are running on zsh, and set the options which allow our
14578 # commands through without removal of \ escapes.
14579 if test -n "${ZSH_VERSION+set}" ; then
14580 setopt NO_GLOB_SUBST
14581 fi
14582
14583 cfgfile="${ofile}T"
14584 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14585 $RM "$cfgfile"
14586
14587 cat <<_LT_EOF >> "$cfgfile"
14588 #! $SHELL
14589
14590 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14591 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14592 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14593 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14594 #
14595 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14596 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14597 # Inc.
14598 # Written by Gordon Matzigkeit, 1996
14599 #
14600 # This file is part of GNU Libtool.
14601 #
14602 # GNU Libtool is free software; you can redistribute it and/or
14603 # modify it under the terms of the GNU General Public License as
14604 # published by the Free Software Foundation; either version 2 of
14605 # the License, or (at your option) any later version.
14606 #
14607 # As a special exception to the GNU General Public License,
14608 # if you distribute this file as part of a program or library that
14609 # is built using GNU Libtool, you may include this file under the
14610 # same distribution terms that you use for the rest of that program.
14611 #
14612 # GNU Libtool is distributed in the hope that it will be useful,
14613 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14614 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14615 # GNU General Public License for more details.
14616 #
14617 # You should have received a copy of the GNU General Public License
14618 # along with GNU Libtool; see the file COPYING. If not, a copy
14619 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14620 # obtained by writing to the Free Software Foundation, Inc.,
14621 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14622
14623
14624 # The names of the tagged configurations supported by this script.
14625 available_tags=""
14626
14627 # ### BEGIN LIBTOOL CONFIG
14628
14629 # Assembler program.
14630 AS=$lt_AS
14631
14632 # DLL creation program.
14633 DLLTOOL=$lt_DLLTOOL
14634
14635 # Object dumper program.
14636 OBJDUMP=$lt_OBJDUMP
14637
14638 # Which release of libtool.m4 was used?
14639 macro_version=$macro_version
14640 macro_revision=$macro_revision
14641
14642 # Whether or not to build shared libraries.
14643 build_libtool_libs=$enable_shared
14644
14645 # Whether or not to build static libraries.
14646 build_old_libs=$enable_static
14647
14648 # What type of objects to build.
14649 pic_mode=$pic_mode
14650
14651 # Whether or not to optimize for fast installation.
14652 fast_install=$enable_fast_install
14653
14654 # Shell to use when invoking shell scripts.
14655 SHELL=$lt_SHELL
14656
14657 # An echo program that protects backslashes.
14658 ECHO=$lt_ECHO
14659
14660 # The host system.
14661 host_alias=$host_alias
14662 host=$host
14663 host_os=$host_os
14664
14665 # The build system.
14666 build_alias=$build_alias
14667 build=$build
14668 build_os=$build_os
14669
14670 # A sed program that does not truncate output.
14671 SED=$lt_SED
14672
14673 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14674 Xsed="\$SED -e 1s/^X//"
14675
14676 # A grep program that handles long lines.
14677 GREP=$lt_GREP
14678
14679 # An ERE matcher.
14680 EGREP=$lt_EGREP
14681
14682 # A literal string matcher.
14683 FGREP=$lt_FGREP
14684
14685 # A BSD- or MS-compatible name lister.
14686 NM=$lt_NM
14687
14688 # Whether we need soft or hard links.
14689 LN_S=$lt_LN_S
14690
14691 # What is the maximum length of a command?
14692 max_cmd_len=$max_cmd_len
14693
14694 # Object file suffix (normally "o").
14695 objext=$ac_objext
14696
14697 # Executable file suffix (normally "").
14698 exeext=$exeext
14699
14700 # whether the shell understands "unset".
14701 lt_unset=$lt_unset
14702
14703 # turn spaces into newlines.
14704 SP2NL=$lt_lt_SP2NL
14705
14706 # turn newlines into spaces.
14707 NL2SP=$lt_lt_NL2SP
14708
14709 # convert \$build file names to \$host format.
14710 to_host_file_cmd=$lt_cv_to_host_file_cmd
14711
14712 # convert \$build files to toolchain format.
14713 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14714
14715 # Method to check whether dependent libraries are shared objects.
14716 deplibs_check_method=$lt_deplibs_check_method
14717
14718 # Command to use when deplibs_check_method = "file_magic".
14719 file_magic_cmd=$lt_file_magic_cmd
14720
14721 # How to find potential files when deplibs_check_method = "file_magic".
14722 file_magic_glob=$lt_file_magic_glob
14723
14724 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14725 want_nocaseglob=$lt_want_nocaseglob
14726
14727 # Command to associate shared and link libraries.
14728 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14729
14730 # The archiver.
14731 AR=$lt_AR
14732
14733 # Flags to create an archive.
14734 AR_FLAGS=$lt_AR_FLAGS
14735
14736 # How to feed a file listing to the archiver.
14737 archiver_list_spec=$lt_archiver_list_spec
14738
14739 # A symbol stripping program.
14740 STRIP=$lt_STRIP
14741
14742 # Commands used to install an old-style archive.
14743 RANLIB=$lt_RANLIB
14744 old_postinstall_cmds=$lt_old_postinstall_cmds
14745 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14746
14747 # Whether to use a lock for old archive extraction.
14748 lock_old_archive_extraction=$lock_old_archive_extraction
14749
14750 # A C compiler.
14751 LTCC=$lt_CC
14752
14753 # LTCC compiler flags.
14754 LTCFLAGS=$lt_CFLAGS
14755
14756 # Take the output of nm and produce a listing of raw symbols and C names.
14757 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14758
14759 # Transform the output of nm in a proper C declaration.
14760 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14761
14762 # Transform the output of nm in a C name address pair.
14763 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14764
14765 # Transform the output of nm in a C name address pair when lib prefix is needed.
14766 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14767
14768 # Specify filename containing input files for \$NM.
14769 nm_file_list_spec=$lt_nm_file_list_spec
14770
14771 # The root where to search for dependent libraries,and in which our libraries should be installed.
14772 lt_sysroot=$lt_sysroot
14773
14774 # The name of the directory that contains temporary libtool files.
14775 objdir=$objdir
14776
14777 # Used to examine libraries when file_magic_cmd begins with "file".
14778 MAGIC_CMD=$MAGIC_CMD
14779
14780 # Must we lock files when doing compilation?
14781 need_locks=$lt_need_locks
14782
14783 # Manifest tool.
14784 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14785
14786 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14787 DSYMUTIL=$lt_DSYMUTIL
14788
14789 # Tool to change global to local symbols on Mac OS X.
14790 NMEDIT=$lt_NMEDIT
14791
14792 # Tool to manipulate fat objects and archives on Mac OS X.
14793 LIPO=$lt_LIPO
14794
14795 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14796 OTOOL=$lt_OTOOL
14797
14798 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14799 OTOOL64=$lt_OTOOL64
14800
14801 # Old archive suffix (normally "a").
14802 libext=$libext
14803
14804 # Shared library suffix (normally ".so").
14805 shrext_cmds=$lt_shrext_cmds
14806
14807 # The commands to extract the exported symbol list from a shared archive.
14808 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14809
14810 # Variables whose values should be saved in libtool wrapper scripts and
14811 # restored at link time.
14812 variables_saved_for_relink=$lt_variables_saved_for_relink
14813
14814 # Do we need the "lib" prefix for modules?
14815 need_lib_prefix=$need_lib_prefix
14816
14817 # Do we need a version for libraries?
14818 need_version=$need_version
14819
14820 # Library versioning type.
14821 version_type=$version_type
14822
14823 # Shared library runtime path variable.
14824 runpath_var=$runpath_var
14825
14826 # Shared library path variable.
14827 shlibpath_var=$shlibpath_var
14828
14829 # Is shlibpath searched before the hard-coded library search path?
14830 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14831
14832 # Format of library name prefix.
14833 libname_spec=$lt_libname_spec
14834
14835 # List of archive names. First name is the real one, the rest are links.
14836 # The last name is the one that the linker finds with -lNAME
14837 library_names_spec=$lt_library_names_spec
14838
14839 # The coded name of the library, if different from the real name.
14840 soname_spec=$lt_soname_spec
14841
14842 # Permission mode override for installation of shared libraries.
14843 install_override_mode=$lt_install_override_mode
14844
14845 # Command to use after installation of a shared archive.
14846 postinstall_cmds=$lt_postinstall_cmds
14847
14848 # Command to use after uninstallation of a shared archive.
14849 postuninstall_cmds=$lt_postuninstall_cmds
14850
14851 # Commands used to finish a libtool library installation in a directory.
14852 finish_cmds=$lt_finish_cmds
14853
14854 # As "finish_cmds", except a single script fragment to be evaled but
14855 # not shown.
14856 finish_eval=$lt_finish_eval
14857
14858 # Whether we should hardcode library paths into libraries.
14859 hardcode_into_libs=$hardcode_into_libs
14860
14861 # Compile-time system search path for libraries.
14862 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14863
14864 # Run-time system search path for libraries.
14865 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14866
14867 # Whether dlopen is supported.
14868 dlopen_support=$enable_dlopen
14869
14870 # Whether dlopen of programs is supported.
14871 dlopen_self=$enable_dlopen_self
14872
14873 # Whether dlopen of statically linked programs is supported.
14874 dlopen_self_static=$enable_dlopen_self_static
14875
14876 # Commands to strip libraries.
14877 old_striplib=$lt_old_striplib
14878 striplib=$lt_striplib
14879
14880
14881 # The linker used to build libraries.
14882 LD=$lt_LD
14883
14884 # How to create reloadable object files.
14885 reload_flag=$lt_reload_flag
14886 reload_cmds=$lt_reload_cmds
14887
14888 # Commands used to build an old-style archive.
14889 old_archive_cmds=$lt_old_archive_cmds
14890
14891 # A language specific compiler.
14892 CC=$lt_compiler
14893
14894 # Is the compiler the GNU compiler?
14895 with_gcc=$GCC
14896
14897 # Compiler flag to turn off builtin functions.
14898 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14899
14900 # Additional compiler flags for building library objects.
14901 pic_flag=$lt_lt_prog_compiler_pic
14902
14903 # How to pass a linker flag through the compiler.
14904 wl=$lt_lt_prog_compiler_wl
14905
14906 # Compiler flag to prevent dynamic linking.
14907 link_static_flag=$lt_lt_prog_compiler_static
14908
14909 # Does compiler simultaneously support -c and -o options?
14910 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14911
14912 # Whether or not to add -lc for building shared libraries.
14913 build_libtool_need_lc=$archive_cmds_need_lc
14914
14915 # Whether or not to disallow shared libs when runtime libs are static.
14916 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14917
14918 # Compiler flag to allow reflexive dlopens.
14919 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14920
14921 # Compiler flag to generate shared objects directly from archives.
14922 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14923
14924 # Whether the compiler copes with passing no objects directly.
14925 compiler_needs_object=$lt_compiler_needs_object
14926
14927 # Create an old-style archive from a shared archive.
14928 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14929
14930 # Create a temporary old-style archive to link instead of a shared archive.
14931 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14932
14933 # Commands used to build a shared archive.
14934 archive_cmds=$lt_archive_cmds
14935 archive_expsym_cmds=$lt_archive_expsym_cmds
14936
14937 # Commands used to build a loadable module if different from building
14938 # a shared archive.
14939 module_cmds=$lt_module_cmds
14940 module_expsym_cmds=$lt_module_expsym_cmds
14941
14942 # Whether we are building with GNU ld or not.
14943 with_gnu_ld=$lt_with_gnu_ld
14944
14945 # Flag that allows shared libraries with undefined symbols to be built.
14946 allow_undefined_flag=$lt_allow_undefined_flag
14947
14948 # Flag that enforces no undefined symbols.
14949 no_undefined_flag=$lt_no_undefined_flag
14950
14951 # Flag to hardcode \$libdir into a binary during linking.
14952 # This must work even if \$libdir does not exist
14953 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14954
14955 # If ld is used when linking, flag to hardcode \$libdir into a binary
14956 # during linking. This must work even if \$libdir does not exist.
14957 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14958
14959 # Whether we need a single "-rpath" flag with a separated argument.
14960 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14961
14962 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14963 # DIR into the resulting binary.
14964 hardcode_direct=$hardcode_direct
14965
14966 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14967 # DIR into the resulting binary and the resulting library dependency is
14968 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14969 # library is relocated.
14970 hardcode_direct_absolute=$hardcode_direct_absolute
14971
14972 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14973 # into the resulting binary.
14974 hardcode_minus_L=$hardcode_minus_L
14975
14976 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14977 # into the resulting binary.
14978 hardcode_shlibpath_var=$hardcode_shlibpath_var
14979
14980 # Set to "yes" if building a shared library automatically hardcodes DIR
14981 # into the library and all subsequent libraries and executables linked
14982 # against it.
14983 hardcode_automatic=$hardcode_automatic
14984
14985 # Set to yes if linker adds runtime paths of dependent libraries
14986 # to runtime path list.
14987 inherit_rpath=$inherit_rpath
14988
14989 # Whether libtool must link a program against all its dependency libraries.
14990 link_all_deplibs=$link_all_deplibs
14991
14992 # Set to "yes" if exported symbols are required.
14993 always_export_symbols=$always_export_symbols
14994
14995 # The commands to list exported symbols.
14996 export_symbols_cmds=$lt_export_symbols_cmds
14997
14998 # Symbols that should not be listed in the preloaded symbols.
14999 exclude_expsyms=$lt_exclude_expsyms
15000
15001 # Symbols that must always be exported.
15002 include_expsyms=$lt_include_expsyms
15003
15004 # Commands necessary for linking programs (against libraries) with templates.
15005 prelink_cmds=$lt_prelink_cmds
15006
15007 # Commands necessary for finishing linking programs.
15008 postlink_cmds=$lt_postlink_cmds
15009
15010 # Specify filename containing input files.
15011 file_list_spec=$lt_file_list_spec
15012
15013 # How to hardcode a shared library path into an executable.
15014 hardcode_action=$hardcode_action
15015
15016 # ### END LIBTOOL CONFIG
15017
15018 _LT_EOF
15019
15020 case $host_os in
15021 aix3*)
15022 cat <<\_LT_EOF >> "$cfgfile"
15023 # AIX sometimes has problems with the GCC collect2 program. For some
15024 # reason, if we set the COLLECT_NAMES environment variable, the problems
15025 # vanish in a puff of smoke.
15026 if test "X${COLLECT_NAMES+set}" != Xset; then
15027 COLLECT_NAMES=
15028 export COLLECT_NAMES
15029 fi
15030 _LT_EOF
15031 ;;
15032 esac
15033
15034
15035 ltmain="$ac_aux_dir/ltmain.sh"
15036
15037
15038 # We use sed instead of cat because bash on DJGPP gets confused if
15039 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15040 # text mode, it properly converts lines to CR/LF. This bash problem
15041 # is reportedly fixed, but why not run on old versions too?
15042 sed '$q' "$ltmain" >> "$cfgfile" \
15043 || (rm -f "$cfgfile"; exit 1)
15044
15045 if test x"$xsi_shell" = xyes; then
15046 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15047 func_dirname ()\
15048 {\
15049 \ case ${1} in\
15050 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15051 \ * ) func_dirname_result="${3}" ;;\
15052 \ esac\
15053 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15054 && mv -f "$cfgfile.tmp" "$cfgfile" \
15055 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15056 test 0 -eq $? || _lt_function_replace_fail=:
15057
15058
15059 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15060 func_basename ()\
15061 {\
15062 \ func_basename_result="${1##*/}"\
15063 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15064 && mv -f "$cfgfile.tmp" "$cfgfile" \
15065 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15066 test 0 -eq $? || _lt_function_replace_fail=:
15067
15068
15069 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15070 func_dirname_and_basename ()\
15071 {\
15072 \ case ${1} in\
15073 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15074 \ * ) func_dirname_result="${3}" ;;\
15075 \ esac\
15076 \ func_basename_result="${1##*/}"\
15077 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15078 && mv -f "$cfgfile.tmp" "$cfgfile" \
15079 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15080 test 0 -eq $? || _lt_function_replace_fail=:
15081
15082
15083 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15084 func_stripname ()\
15085 {\
15086 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15087 \ # positional parameters, so assign one to ordinary parameter first.\
15088 \ func_stripname_result=${3}\
15089 \ func_stripname_result=${func_stripname_result#"${1}"}\
15090 \ func_stripname_result=${func_stripname_result%"${2}"}\
15091 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15092 && mv -f "$cfgfile.tmp" "$cfgfile" \
15093 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15094 test 0 -eq $? || _lt_function_replace_fail=:
15095
15096
15097 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15098 func_split_long_opt ()\
15099 {\
15100 \ func_split_long_opt_name=${1%%=*}\
15101 \ func_split_long_opt_arg=${1#*=}\
15102 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15103 && mv -f "$cfgfile.tmp" "$cfgfile" \
15104 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15105 test 0 -eq $? || _lt_function_replace_fail=:
15106
15107
15108 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15109 func_split_short_opt ()\
15110 {\
15111 \ func_split_short_opt_arg=${1#??}\
15112 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15113 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15114 && mv -f "$cfgfile.tmp" "$cfgfile" \
15115 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15116 test 0 -eq $? || _lt_function_replace_fail=:
15117
15118
15119 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15120 func_lo2o ()\
15121 {\
15122 \ case ${1} in\
15123 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15124 \ *) func_lo2o_result=${1} ;;\
15125 \ esac\
15126 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15127 && mv -f "$cfgfile.tmp" "$cfgfile" \
15128 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15129 test 0 -eq $? || _lt_function_replace_fail=:
15130
15131
15132 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15133 func_xform ()\
15134 {\
15135 func_xform_result=${1%.*}.lo\
15136 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15137 && mv -f "$cfgfile.tmp" "$cfgfile" \
15138 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15139 test 0 -eq $? || _lt_function_replace_fail=:
15140
15141
15142 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15143 func_arith ()\
15144 {\
15145 func_arith_result=$(( $* ))\
15146 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15147 && mv -f "$cfgfile.tmp" "$cfgfile" \
15148 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15149 test 0 -eq $? || _lt_function_replace_fail=:
15150
15151
15152 sed -e '/^func_len ()$/,/^} # func_len /c\
15153 func_len ()\
15154 {\
15155 func_len_result=${#1}\
15156 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15157 && mv -f "$cfgfile.tmp" "$cfgfile" \
15158 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15159 test 0 -eq $? || _lt_function_replace_fail=:
15160
15161 fi
15162
15163 if test x"$lt_shell_append" = xyes; then
15164 sed -e '/^func_append ()$/,/^} # func_append /c\
15165 func_append ()\
15166 {\
15167 eval "${1}+=\\${2}"\
15168 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15169 && mv -f "$cfgfile.tmp" "$cfgfile" \
15170 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15171 test 0 -eq $? || _lt_function_replace_fail=:
15172
15173
15174 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15175 func_append_quoted ()\
15176 {\
15177 \ func_quote_for_eval "${2}"\
15178 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15179 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15180 && mv -f "$cfgfile.tmp" "$cfgfile" \
15181 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15182 test 0 -eq $? || _lt_function_replace_fail=:
15183
15184
15185 # Save a `func_append' function call where possible by direct use of '+='
15186 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15187 && mv -f "$cfgfile.tmp" "$cfgfile" \
15188 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15189 test 0 -eq $? || _lt_function_replace_fail=:
15190 else
15191 # Save a `func_append' function call even when '+=' is not available
15192 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15193 && mv -f "$cfgfile.tmp" "$cfgfile" \
15194 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15195 test 0 -eq $? || _lt_function_replace_fail=:
15196 fi
15197
15198 if test x"$_lt_function_replace_fail" = x":"; then
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15200 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15201 fi
15202
15203
15204 mv -f "$cfgfile" "$ofile" ||
15205 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15206 chmod +x "$ofile"
15207
15208 ;;
15209
15210 esac
15211 done # for ac_tag
15212
15213
15214 as_fn_exit 0
15215 _ACEOF
15216 ac_clean_files=$ac_clean_files_save
15217
15218 test $ac_write_fail = 0 ||
15219 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15220
15221
15222 # configure is writing to config.log, and then calls config.status.
15223 # config.status does its own redirection, appending to config.log.
15224 # Unfortunately, on DOS this fails, as config.log is still kept open
15225 # by configure, so config.status won't be able to write to it; its
15226 # output is simply discarded. So we exec the FD to /dev/null,
15227 # effectively closing config.log, so it can be properly (re)opened and
15228 # appended to by config.status. When coming back to configure, we
15229 # need to make the FD available again.
15230 if test "$no_create" != yes; then
15231 ac_cs_success=:
15232 ac_config_status_args=
15233 test "$silent" = yes &&
15234 ac_config_status_args="$ac_config_status_args --quiet"
15235 exec 5>/dev/null
15236 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15237 exec 5>>config.log
15238 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15239 # would make configure fail if this is the last instruction.
15240 $ac_cs_success || as_fn_exit 1
15241 fi
15242 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15244 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15245 fi
15246