configure revision 1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.66 for glw 8.0.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa>.
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 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152 esac
153 fi
154 "
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169 exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1"
185 if (eval "$as_required") 2>/dev/null; then :
186 as_have_required=yes
187 else
188 as_have_required=no
189 fi
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192 else
193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 as_found=false
195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196 do
197 IFS=$as_save_IFS
198 test -z "$as_dir" && as_dir=.
199 as_found=:
200 case $as_dir in #(
201 /*)
202 for as_base in sh bash ksh sh5; do
203 # Try only shells that exist, to save several forks.
204 as_shell=$as_dir/$as_base
205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 CONFIG_SHELL=$as_shell as_have_required=yes
208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 break 2
210 fi
211 fi
212 done;;
213 esac
214 as_found=false
215 done
216 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218 CONFIG_SHELL=$SHELL as_have_required=yes
219 fi; }
220 IFS=$as_save_IFS
221
222
223 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
246 $0: have one."
247 fi
248 exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266 { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275 return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283 set +e
284 as_fn_set_status $1
285 exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346 else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363 else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390 else
391 as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396 else
397 as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402 else
403 as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480 else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498 else
499 as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506 else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513 else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540 SHELL=${CONFIG_SHELL-/bin/sh}
541
542
543 test -n "$DJDIR" || exec 7<&0 </dev/null
544 exec 6>&1
545
546 # Name of the host.
547 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
548 # so uname gets run too.
549 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
550
551 #
552 # Initializations.
553 #
554 ac_default_prefix=/usr/local
555 ac_clean_files=
556 ac_config_libobj_dir=.
557 LIBOBJS=
558 cross_compiling=no
559 subdirs=
560 MFLAGS=
561 MAKEFLAGS=
562
563 # Identity of this package.
564 PACKAGE_NAME='glw'
565 PACKAGE_TARNAME='glw'
566 PACKAGE_VERSION='8.0.0'
567 PACKAGE_STRING='glw 8.0.0'
568 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa'
569 PACKAGE_URL=''
570
571 # Factoring default headers for most tests.
572 ac_includes_default="\
573 #include <stdio.h>
574 #ifdef HAVE_SYS_TYPES_H
575 # include <sys/types.h>
576 #endif
577 #ifdef HAVE_SYS_STAT_H
578 # include <sys/stat.h>
579 #endif
580 #ifdef STDC_HEADERS
581 # include <stdlib.h>
582 # include <stddef.h>
583 #else
584 # ifdef HAVE_STDLIB_H
585 # include <stdlib.h>
586 # endif
587 #endif
588 #ifdef HAVE_STRING_H
589 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
590 # include <memory.h>
591 # endif
592 # include <string.h>
593 #endif
594 #ifdef HAVE_STRINGS_H
595 # include <strings.h>
596 #endif
597 #ifdef HAVE_INTTYPES_H
598 # include <inttypes.h>
599 #endif
600 #ifdef HAVE_STDINT_H
601 # include <stdint.h>
602 #endif
603 #ifdef HAVE_UNISTD_H
604 # include <unistd.h>
605 #endif"
606
607 ac_subst_vars='am__EXEEXT_FALSE
608 am__EXEEXT_TRUE
609 LTLIBOBJS
610 LIBOBJS
611 X11_LIBS
612 X11_CFLAGS
613 GLW_PC_CFLAGS
614 GLW_PC_LIB_PRIV
615 MOTIF_CONFIG
616 GLW_LIBS
617 GLW_CFLAGS
618 GL_LIBS
619 GL_CFLAGS
620 ENABLE_MOTIF_FALSE
621 ENABLE_MOTIF_TRUE
622 PKG_CONFIG_LIBDIR
623 PKG_CONFIG_PATH
624 PKG_CONFIG
625 AM_BACKSLASH
626 AM_DEFAULT_VERBOSITY
627 OTOOL64
628 OTOOL
629 LIPO
630 NMEDIT
631 DSYMUTIL
632 RANLIB
633 AR
634 OBJDUMP
635 LN_S
636 NM
637 ac_ct_DUMPBIN
638 DUMPBIN
639 LD
640 FGREP
641 EGREP
642 GREP
643 SED
644 LIBTOOL
645 CPP
646 am__fastdepCC_FALSE
647 am__fastdepCC_TRUE
648 CCDEPMODE
649 AMDEPBACKSLASH
650 AMDEP_FALSE
651 AMDEP_TRUE
652 am__quote
653 am__include
654 DEPDIR
655 OBJEXT
656 EXEEXT
657 ac_ct_CC
658 CPPFLAGS
659 LDFLAGS
660 CFLAGS
661 CC
662 am__untar
663 am__tar
664 AMTAR
665 am__leading_dot
666 SET_MAKE
667 AWK
668 mkdir_p
669 MKDIR_P
670 INSTALL_STRIP_PROGRAM
671 STRIP
672 install_sh
673 MAKEINFO
674 AUTOHEADER
675 AUTOMAKE
676 AUTOCONF
677 ACLOCAL
678 VERSION
679 PACKAGE
680 CYGPATH_W
681 am__isrc
682 INSTALL_DATA
683 INSTALL_SCRIPT
684 INSTALL_PROGRAM
685 host_os
686 host_vendor
687 host_cpu
688 host
689 build_os
690 build_vendor
691 build_cpu
692 build
693 target_alias
694 host_alias
695 build_alias
696 LIBS
697 ECHO_T
698 ECHO_N
699 ECHO_C
700 DEFS
701 mandir
702 localedir
703 libdir
704 psdir
705 pdfdir
706 dvidir
707 htmldir
708 infodir
709 docdir
710 oldincludedir
711 includedir
712 localstatedir
713 sharedstatedir
714 sysconfdir
715 datadir
716 datarootdir
717 libexecdir
718 sbindir
719 bindir
720 program_transform_name
721 prefix
722 exec_prefix
723 PACKAGE_URL
724 PACKAGE_BUGREPORT
725 PACKAGE_STRING
726 PACKAGE_VERSION
727 PACKAGE_TARNAME
728 PACKAGE_NAME
729 PATH_SEPARATOR
730 SHELL'
731 ac_subst_files=''
732 ac_user_opts='
733 enable_option_checking
734 enable_dependency_tracking
735 enable_shared
736 enable_static
737 with_pic
738 enable_fast_install
739 with_gnu_ld
740 enable_libtool_lock
741 enable_silent_rules
742 enable_motif
743 '
744 ac_precious_vars='build_alias
745 host_alias
746 target_alias
747 CC
748 CFLAGS
749 LDFLAGS
750 LIBS
751 CPPFLAGS
752 CPP
753 PKG_CONFIG
754 PKG_CONFIG_PATH
755 PKG_CONFIG_LIBDIR
756 GL_CFLAGS
757 GL_LIBS
758 GLW_CFLAGS
759 GLW_LIBS
760 X11_CFLAGS
761 X11_LIBS'
762
763
764 # Initialize some variables set by options.
765 ac_init_help=
766 ac_init_version=false
767 ac_unrecognized_opts=
768 ac_unrecognized_sep=
769 # The variables have the same names as the options, with
770 # dashes changed to underlines.
771 cache_file=/dev/null
772 exec_prefix=NONE
773 no_create=
774 no_recursion=
775 prefix=NONE
776 program_prefix=NONE
777 program_suffix=NONE
778 program_transform_name=s,x,x,
779 silent=
780 site=
781 srcdir=
782 verbose=
783 x_includes=NONE
784 x_libraries=NONE
785
786 # Installation directory options.
787 # These are left unexpanded so users can "make install exec_prefix=/foo"
788 # and all the variables that are supposed to be based on exec_prefix
789 # by default will actually change.
790 # Use braces instead of parens because sh, perl, etc. also accept them.
791 # (The list follows the same order as the GNU Coding Standards.)
792 bindir='${exec_prefix}/bin'
793 sbindir='${exec_prefix}/sbin'
794 libexecdir='${exec_prefix}/libexec'
795 datarootdir='${prefix}/share'
796 datadir='${datarootdir}'
797 sysconfdir='${prefix}/etc'
798 sharedstatedir='${prefix}/com'
799 localstatedir='${prefix}/var'
800 includedir='${prefix}/include'
801 oldincludedir='/usr/include'
802 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
803 infodir='${datarootdir}/info'
804 htmldir='${docdir}'
805 dvidir='${docdir}'
806 pdfdir='${docdir}'
807 psdir='${docdir}'
808 libdir='${exec_prefix}/lib'
809 localedir='${datarootdir}/locale'
810 mandir='${datarootdir}/man'
811
812 ac_prev=
813 ac_dashdash=
814 for ac_option
815 do
816 # If the previous option needs an argument, assign it.
817 if test -n "$ac_prev"; then
818 eval $ac_prev=\$ac_option
819 ac_prev=
820 continue
821 fi
822
823 case $ac_option in
824 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825 *) ac_optarg=yes ;;
826 esac
827
828 # Accept the important Cygnus configure options, so we can diagnose typos.
829
830 case $ac_dashdash$ac_option in
831 --)
832 ac_dashdash=yes ;;
833
834 -bindir | --bindir | --bindi | --bind | --bin | --bi)
835 ac_prev=bindir ;;
836 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
837 bindir=$ac_optarg ;;
838
839 -build | --build | --buil | --bui | --bu)
840 ac_prev=build_alias ;;
841 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
842 build_alias=$ac_optarg ;;
843
844 -cache-file | --cache-file | --cache-fil | --cache-fi \
845 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
846 ac_prev=cache_file ;;
847 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
848 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
849 cache_file=$ac_optarg ;;
850
851 --config-cache | -C)
852 cache_file=config.cache ;;
853
854 -datadir | --datadir | --datadi | --datad)
855 ac_prev=datadir ;;
856 -datadir=* | --datadir=* | --datadi=* | --datad=*)
857 datadir=$ac_optarg ;;
858
859 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
860 | --dataroo | --dataro | --datar)
861 ac_prev=datarootdir ;;
862 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
863 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
864 datarootdir=$ac_optarg ;;
865
866 -disable-* | --disable-*)
867 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
868 # Reject names that are not valid shell variable names.
869 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
870 as_fn_error $? "invalid feature name: $ac_useropt"
871 ac_useropt_orig=$ac_useropt
872 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
873 case $ac_user_opts in
874 *"
875 "enable_$ac_useropt"
876 "*) ;;
877 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
878 ac_unrecognized_sep=', ';;
879 esac
880 eval enable_$ac_useropt=no ;;
881
882 -docdir | --docdir | --docdi | --doc | --do)
883 ac_prev=docdir ;;
884 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
885 docdir=$ac_optarg ;;
886
887 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
888 ac_prev=dvidir ;;
889 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
890 dvidir=$ac_optarg ;;
891
892 -enable-* | --enable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error $? "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
900 *"
901 "enable_$ac_useropt"
902 "*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=\$ac_optarg ;;
907
908 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910 | --exec | --exe | --ex)
911 ac_prev=exec_prefix ;;
912 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914 | --exec=* | --exe=* | --ex=*)
915 exec_prefix=$ac_optarg ;;
916
917 -gas | --gas | --ga | --g)
918 # Obsolete; use --with-gas.
919 with_gas=yes ;;
920
921 -help | --help | --hel | --he | -h)
922 ac_init_help=long ;;
923 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924 ac_init_help=recursive ;;
925 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926 ac_init_help=short ;;
927
928 -host | --host | --hos | --ho)
929 ac_prev=host_alias ;;
930 -host=* | --host=* | --hos=* | --ho=*)
931 host_alias=$ac_optarg ;;
932
933 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
934 ac_prev=htmldir ;;
935 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
936 | --ht=*)
937 htmldir=$ac_optarg ;;
938
939 -includedir | --includedir | --includedi | --included | --include \
940 | --includ | --inclu | --incl | --inc)
941 ac_prev=includedir ;;
942 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943 | --includ=* | --inclu=* | --incl=* | --inc=*)
944 includedir=$ac_optarg ;;
945
946 -infodir | --infodir | --infodi | --infod | --info | --inf)
947 ac_prev=infodir ;;
948 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949 infodir=$ac_optarg ;;
950
951 -libdir | --libdir | --libdi | --libd)
952 ac_prev=libdir ;;
953 -libdir=* | --libdir=* | --libdi=* | --libd=*)
954 libdir=$ac_optarg ;;
955
956 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957 | --libexe | --libex | --libe)
958 ac_prev=libexecdir ;;
959 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960 | --libexe=* | --libex=* | --libe=*)
961 libexecdir=$ac_optarg ;;
962
963 -localedir | --localedir | --localedi | --localed | --locale)
964 ac_prev=localedir ;;
965 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966 localedir=$ac_optarg ;;
967
968 -localstatedir | --localstatedir | --localstatedi | --localstated \
969 | --localstate | --localstat | --localsta | --localst | --locals)
970 ac_prev=localstatedir ;;
971 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973 localstatedir=$ac_optarg ;;
974
975 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
976 ac_prev=mandir ;;
977 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
978 mandir=$ac_optarg ;;
979
980 -nfp | --nfp | --nf)
981 # Obsolete; use --without-fp.
982 with_fp=no ;;
983
984 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985 | --no-cr | --no-c | -n)
986 no_create=yes ;;
987
988 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
990 no_recursion=yes ;;
991
992 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994 | --oldin | --oldi | --old | --ol | --o)
995 ac_prev=oldincludedir ;;
996 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999 oldincludedir=$ac_optarg ;;
1000
1001 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1002 ac_prev=prefix ;;
1003 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004 prefix=$ac_optarg ;;
1005
1006 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007 | --program-pre | --program-pr | --program-p)
1008 ac_prev=program_prefix ;;
1009 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011 program_prefix=$ac_optarg ;;
1012
1013 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014 | --program-suf | --program-su | --program-s)
1015 ac_prev=program_suffix ;;
1016 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018 program_suffix=$ac_optarg ;;
1019
1020 -program-transform-name | --program-transform-name \
1021 | --program-transform-nam | --program-transform-na \
1022 | --program-transform-n | --program-transform- \
1023 | --program-transform | --program-transfor \
1024 | --program-transfo | --program-transf \
1025 | --program-trans | --program-tran \
1026 | --progr-tra | --program-tr | --program-t)
1027 ac_prev=program_transform_name ;;
1028 -program-transform-name=* | --program-transform-name=* \
1029 | --program-transform-nam=* | --program-transform-na=* \
1030 | --program-transform-n=* | --program-transform-=* \
1031 | --program-transform=* | --program-transfor=* \
1032 | --program-transfo=* | --program-transf=* \
1033 | --program-trans=* | --program-tran=* \
1034 | --progr-tra=* | --program-tr=* | --program-t=*)
1035 program_transform_name=$ac_optarg ;;
1036
1037 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1038 ac_prev=pdfdir ;;
1039 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040 pdfdir=$ac_optarg ;;
1041
1042 -psdir | --psdir | --psdi | --psd | --ps)
1043 ac_prev=psdir ;;
1044 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1045 psdir=$ac_optarg ;;
1046
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1049 silent=yes ;;
1050
1051 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052 ac_prev=sbindir ;;
1053 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054 | --sbi=* | --sb=*)
1055 sbindir=$ac_optarg ;;
1056
1057 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059 | --sharedst | --shareds | --shared | --share | --shar \
1060 | --sha | --sh)
1061 ac_prev=sharedstatedir ;;
1062 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065 | --sha=* | --sh=*)
1066 sharedstatedir=$ac_optarg ;;
1067
1068 -site | --site | --sit)
1069 ac_prev=site ;;
1070 -site=* | --site=* | --sit=*)
1071 site=$ac_optarg ;;
1072
1073 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074 ac_prev=srcdir ;;
1075 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076 srcdir=$ac_optarg ;;
1077
1078 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079 | --syscon | --sysco | --sysc | --sys | --sy)
1080 ac_prev=sysconfdir ;;
1081 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083 sysconfdir=$ac_optarg ;;
1084
1085 -target | --target | --targe | --targ | --tar | --ta | --t)
1086 ac_prev=target_alias ;;
1087 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088 target_alias=$ac_optarg ;;
1089
1090 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1091 verbose=yes ;;
1092
1093 -version | --version | --versio | --versi | --vers | -V)
1094 ac_init_version=: ;;
1095
1096 -with-* | --with-*)
1097 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100 as_fn_error $? "invalid package name: $ac_useropt"
1101 ac_useropt_orig=$ac_useropt
1102 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1104 *"
1105 "with_$ac_useropt"
1106 "*) ;;
1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1108 ac_unrecognized_sep=', ';;
1109 esac
1110 eval with_$ac_useropt=\$ac_optarg ;;
1111
1112 -without-* | --without-*)
1113 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116 as_fn_error $? "invalid package name: $ac_useropt"
1117 ac_useropt_orig=$ac_useropt
1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1120 *"
1121 "with_$ac_useropt"
1122 "*) ;;
1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1124 ac_unrecognized_sep=', ';;
1125 esac
1126 eval with_$ac_useropt=no ;;
1127
1128 --x)
1129 # Obsolete; use --with-x.
1130 with_x=yes ;;
1131
1132 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1133 | --x-incl | --x-inc | --x-in | --x-i)
1134 ac_prev=x_includes ;;
1135 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1136 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1137 x_includes=$ac_optarg ;;
1138
1139 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1140 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1141 ac_prev=x_libraries ;;
1142 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1143 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1144 x_libraries=$ac_optarg ;;
1145
1146 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1147 Try \`$0 --help' for more information"
1148 ;;
1149
1150 *=*)
1151 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1152 # Reject names that are not valid shell variable names.
1153 case $ac_envvar in #(
1154 '' | [0-9]* | *[!_$as_cr_alnum]* )
1155 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1156 esac
1157 eval $ac_envvar=\$ac_optarg
1158 export $ac_envvar ;;
1159
1160 *)
1161 # FIXME: should be removed in autoconf 3.0.
1162 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1163 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1164 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1165 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1166 ;;
1167
1168 esac
1169 done
1170
1171 if test -n "$ac_prev"; then
1172 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1173 as_fn_error $? "missing argument to $ac_option"
1174 fi
1175
1176 if test -n "$ac_unrecognized_opts"; then
1177 case $enable_option_checking in
1178 no) ;;
1179 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1180 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1181 esac
1182 fi
1183
1184 # Check all directory arguments for consistency.
1185 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1186 datadir sysconfdir sharedstatedir localstatedir includedir \
1187 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1188 libdir localedir mandir
1189 do
1190 eval ac_val=\$$ac_var
1191 # Remove trailing slashes.
1192 case $ac_val in
1193 */ )
1194 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1195 eval $ac_var=\$ac_val;;
1196 esac
1197 # Be sure to have absolute directory names.
1198 case $ac_val in
1199 [\\/$]* | ?:[\\/]* ) continue;;
1200 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1201 esac
1202 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1203 done
1204
1205 # There might be people who depend on the old broken behavior: `$host'
1206 # used to hold the argument of --host etc.
1207 # FIXME: To remove some day.
1208 build=$build_alias
1209 host=$host_alias
1210 target=$target_alias
1211
1212 # FIXME: To remove some day.
1213 if test "x$host_alias" != x; then
1214 if test "x$build_alias" = x; then
1215 cross_compiling=maybe
1216 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1217 If a cross compiler is detected then cross compile mode will be used" >&2
1218 elif test "x$build_alias" != "x$host_alias"; then
1219 cross_compiling=yes
1220 fi
1221 fi
1222
1223 ac_tool_prefix=
1224 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1225
1226 test "$silent" = yes && exec 6>/dev/null
1227
1228
1229 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1230 ac_ls_di=`ls -di .` &&
1231 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1232 as_fn_error $? "working directory cannot be determined"
1233 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1234 as_fn_error $? "pwd does not report name of working directory"
1235
1236
1237 # Find the source files, if location was not specified.
1238 if test -z "$srcdir"; then
1239 ac_srcdir_defaulted=yes
1240 # Try the directory containing this script, then the parent directory.
1241 ac_confdir=`$as_dirname -- "$as_myself" ||
1242 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1243 X"$as_myself" : 'X\(//\)[^/]' \| \
1244 X"$as_myself" : 'X\(//\)$' \| \
1245 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1246 $as_echo X"$as_myself" |
1247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1248 s//\1/
1249 q
1250 }
1251 /^X\(\/\/\)[^/].*/{
1252 s//\1/
1253 q
1254 }
1255 /^X\(\/\/\)$/{
1256 s//\1/
1257 q
1258 }
1259 /^X\(\/\).*/{
1260 s//\1/
1261 q
1262 }
1263 s/.*/./; q'`
1264 srcdir=$ac_confdir
1265 if test ! -r "$srcdir/$ac_unique_file"; then
1266 srcdir=..
1267 fi
1268 else
1269 ac_srcdir_defaulted=no
1270 fi
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1272 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1273 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1274 fi
1275 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1276 ac_abs_confdir=`(
1277 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1278 pwd)`
1279 # When building in place, set srcdir=.
1280 if test "$ac_abs_confdir" = "$ac_pwd"; then
1281 srcdir=.
1282 fi
1283 # Remove unnecessary trailing slashes from srcdir.
1284 # Double slashes in file names in object file debugging info
1285 # mess up M-x gdb in Emacs.
1286 case $srcdir in
1287 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1288 esac
1289 for ac_var in $ac_precious_vars; do
1290 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_env_${ac_var}_value=\$${ac_var}
1292 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294 done
1295
1296 #
1297 # Report the --help message.
1298 #
1299 if test "$ac_init_help" = "long"; then
1300 # Omit some internal or obsolete options to make the list less imposing.
1301 # This message is too long to be a string in the A/UX 3.1 sh.
1302 cat <<_ACEOF
1303 \`configure' configures glw 8.0.0 to adapt to many kinds of systems.
1304
1305 Usage: $0 [OPTION]... [VAR=VALUE]...
1306
1307 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308 VAR=VALUE. See below for descriptions of some of the useful variables.
1309
1310 Defaults for the options are specified in brackets.
1311
1312 Configuration:
1313 -h, --help display this help and exit
1314 --help=short display options specific to this package
1315 --help=recursive display the short help of all the included packages
1316 -V, --version display version information and exit
1317 -q, --quiet, --silent do not print \`checking ...' messages
1318 --cache-file=FILE cache test results in FILE [disabled]
1319 -C, --config-cache alias for \`--cache-file=config.cache'
1320 -n, --no-create do not create output files
1321 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1322
1323 Installation directories:
1324 --prefix=PREFIX install architecture-independent files in PREFIX
1325 [$ac_default_prefix]
1326 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1327 [PREFIX]
1328
1329 By default, \`make install' will install all the files in
1330 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1331 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332 for instance \`--prefix=\$HOME'.
1333
1334 For better control, use the options below.
1335
1336 Fine tuning of the installation directories:
1337 --bindir=DIR user executables [EPREFIX/bin]
1338 --sbindir=DIR system admin executables [EPREFIX/sbin]
1339 --libexecdir=DIR program executables [EPREFIX/libexec]
1340 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1341 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1342 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1343 --libdir=DIR object code libraries [EPREFIX/lib]
1344 --includedir=DIR C header files [PREFIX/include]
1345 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1346 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1347 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1348 --infodir=DIR info documentation [DATAROOTDIR/info]
1349 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1350 --mandir=DIR man documentation [DATAROOTDIR/man]
1351 --docdir=DIR documentation root [DATAROOTDIR/doc/glw]
1352 --htmldir=DIR html documentation [DOCDIR]
1353 --dvidir=DIR dvi documentation [DOCDIR]
1354 --pdfdir=DIR pdf documentation [DOCDIR]
1355 --psdir=DIR ps documentation [DOCDIR]
1356 _ACEOF
1357
1358 cat <<\_ACEOF
1359
1360 Program names:
1361 --program-prefix=PREFIX prepend PREFIX to installed program names
1362 --program-suffix=SUFFIX append SUFFIX to installed program names
1363 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1364
1365 System types:
1366 --build=BUILD configure for building on BUILD [guessed]
1367 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1368 _ACEOF
1369 fi
1370
1371 if test -n "$ac_init_help"; then
1372 case $ac_init_help in
1373 short | recursive ) echo "Configuration of glw 8.0.0:";;
1374 esac
1375 cat <<\_ACEOF
1376
1377 Optional Features:
1378 --disable-option-checking ignore unrecognized --enable/--with options
1379 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1380 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1381 --disable-dependency-tracking speeds up one-time build
1382 --enable-dependency-tracking do not reject slow dependency extractors
1383 --enable-shared[=PKGS] build shared libraries [default=yes]
1384 --enable-static[=PKGS] build static libraries [default=yes]
1385 --enable-fast-install[=PKGS]
1386 optimize for fast installation [default=yes]
1387 --disable-libtool-lock avoid locking (might break parallel builds)
1388 --enable-silent-rules less verbose build output (undo: `make V=1')
1389 --disable-silent-rules verbose build output (undo: `make V=0')
1390 --enable-motif use Motif widgets [default=disabled]
1391
1392 Optional Packages:
1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1395 --with-pic try to use only PIC/non-PIC objects [default=use
1396 both]
1397 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1398
1399 Some influential environment variables:
1400 CC C compiler command
1401 CFLAGS C compiler flags
1402 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1403 nonstandard directory <lib dir>
1404 LIBS libraries to pass to the linker, e.g. -l<library>
1405 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1406 you have headers in a nonstandard directory <include dir>
1407 CPP C preprocessor
1408 PKG_CONFIG path to pkg-config utility
1409 PKG_CONFIG_PATH
1410 directories to add to pkg-config's search path
1411 PKG_CONFIG_LIBDIR
1412 path overriding pkg-config's built-in search path
1413 GL_CFLAGS C compiler flags for GL, overriding pkg-config
1414 GL_LIBS linker flags for GL, overriding pkg-config
1415 GLW_CFLAGS C compiler flags for GLW, overriding pkg-config
1416 GLW_LIBS linker flags for GLW, overriding pkg-config
1417 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1418 X11_LIBS linker flags for X11, overriding pkg-config
1419
1420 Use these variables to override the choices made by `configure' or to help
1421 it to find libraries and programs with nonstandard names/locations.
1422
1423 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa>.
1424 _ACEOF
1425 ac_status=$?
1426 fi
1427
1428 if test "$ac_init_help" = "recursive"; then
1429 # If there are subdirs, report their specific --help.
1430 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431 test -d "$ac_dir" ||
1432 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1433 continue
1434 ac_builddir=.
1435
1436 case "$ac_dir" in
1437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438 *)
1439 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440 # A ".." for each directory in $ac_dir_suffix.
1441 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442 case $ac_top_builddir_sub in
1443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445 esac ;;
1446 esac
1447 ac_abs_top_builddir=$ac_pwd
1448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449 # for backward compatibility:
1450 ac_top_builddir=$ac_top_build_prefix
1451
1452 case $srcdir in
1453 .) # We are building in place.
1454 ac_srcdir=.
1455 ac_top_srcdir=$ac_top_builddir_sub
1456 ac_abs_top_srcdir=$ac_pwd ;;
1457 [\\/]* | ?:[\\/]* ) # Absolute name.
1458 ac_srcdir=$srcdir$ac_dir_suffix;
1459 ac_top_srcdir=$srcdir
1460 ac_abs_top_srcdir=$srcdir ;;
1461 *) # Relative name.
1462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463 ac_top_srcdir=$ac_top_build_prefix$srcdir
1464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1465 esac
1466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1467
1468 cd "$ac_dir" || { ac_status=$?; continue; }
1469 # Check for guested configure.
1470 if test -f "$ac_srcdir/configure.gnu"; then
1471 echo &&
1472 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473 elif test -f "$ac_srcdir/configure"; then
1474 echo &&
1475 $SHELL "$ac_srcdir/configure" --help=recursive
1476 else
1477 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1478 fi || ac_status=$?
1479 cd "$ac_pwd" || { ac_status=$?; break; }
1480 done
1481 fi
1482
1483 test -n "$ac_init_help" && exit $ac_status
1484 if $ac_init_version; then
1485 cat <<\_ACEOF
1486 glw configure 8.0.0
1487 generated by GNU Autoconf 2.66
1488
1489 Copyright (C) 2010 Free Software Foundation, Inc.
1490 This configure script is free software; the Free Software Foundation
1491 gives unlimited permission to copy, distribute and modify it.
1492 _ACEOF
1493 exit
1494 fi
1495
1496 ## ------------------------ ##
1497 ## Autoconf initialization. ##
1498 ## ------------------------ ##
1499
1500 # ac_fn_c_try_compile LINENO
1501 # --------------------------
1502 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1503 ac_fn_c_try_compile ()
1504 {
1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506 rm -f conftest.$ac_objext
1507 if { { ac_try="$ac_compile"
1508 case "(($ac_try" in
1509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510 *) ac_try_echo=$ac_try;;
1511 esac
1512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513 $as_echo "$ac_try_echo"; } >&5
1514 (eval "$ac_compile") 2>conftest.err
1515 ac_status=$?
1516 if test -s conftest.err; then
1517 grep -v '^ *+' conftest.err >conftest.er1
1518 cat conftest.er1 >&5
1519 mv -f conftest.er1 conftest.err
1520 fi
1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522 test $ac_status = 0; } && {
1523 test -z "$ac_c_werror_flag" ||
1524 test ! -s conftest.err
1525 } && test -s conftest.$ac_objext; then :
1526 ac_retval=0
1527 else
1528 $as_echo "$as_me: failed program was:" >&5
1529 sed 's/^/| /' conftest.$ac_ext >&5
1530
1531 ac_retval=1
1532 fi
1533 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1534 as_fn_set_status $ac_retval
1535
1536 } # ac_fn_c_try_compile
1537
1538 # ac_fn_c_try_cpp LINENO
1539 # ----------------------
1540 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_c_try_cpp ()
1542 {
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 if { { ac_try="$ac_cpp conftest.$ac_ext"
1545 case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548 esac
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 $as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1557 fi
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } >/dev/null && {
1560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 }; then :
1563 ac_retval=0
1564 else
1565 $as_echo "$as_me: failed program was:" >&5
1566 sed 's/^/| /' conftest.$ac_ext >&5
1567
1568 ac_retval=1
1569 fi
1570 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1571 as_fn_set_status $ac_retval
1572
1573 } # ac_fn_c_try_cpp
1574
1575 # ac_fn_c_try_link LINENO
1576 # -----------------------
1577 # Try to link conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_c_try_link ()
1579 {
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 rm -f conftest.$ac_objext conftest$ac_exeext
1582 if { { ac_try="$ac_link"
1583 case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_link") 2>conftest.err
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1595 fi
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && {
1598 test -z "$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 } && test -s conftest$ac_exeext && {
1601 test "$cross_compiling" = yes ||
1602 $as_test_x conftest$ac_exeext
1603 }; then :
1604 ac_retval=0
1605 else
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1608
1609 ac_retval=1
1610 fi
1611 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1612 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1613 # interfere with the next link command; also delete a directory that is
1614 # left behind by Apple's compiler. We do this before executing the actions.
1615 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1616 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1617 as_fn_set_status $ac_retval
1618
1619 } # ac_fn_c_try_link
1620
1621 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1622 # -------------------------------------------------------
1623 # Tests whether HEADER exists and can be compiled using the include files in
1624 # INCLUDES, setting the cache variable VAR accordingly.
1625 ac_fn_c_check_header_compile ()
1626 {
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1629 $as_echo_n "checking for $2... " >&6; }
1630 if eval "test \"\${$3+set}\"" = set; then :
1631 $as_echo_n "(cached) " >&6
1632 else
1633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1634 /* end confdefs.h. */
1635 $4
1636 #include <$2>
1637 _ACEOF
1638 if ac_fn_c_try_compile "$LINENO"; then :
1639 eval "$3=yes"
1640 else
1641 eval "$3=no"
1642 fi
1643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1644 fi
1645 eval ac_res=\$$3
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1647 $as_echo "$ac_res" >&6; }
1648 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1649
1650 } # ac_fn_c_check_header_compile
1651
1652 # ac_fn_c_try_run LINENO
1653 # ----------------------
1654 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1655 # that executables *can* be run.
1656 ac_fn_c_try_run ()
1657 {
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 if { { ac_try="$ac_link"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_link") 2>&5
1667 ac_status=$?
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1670 { { case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_try") 2>&5
1677 ac_status=$?
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; }; }; then :
1680 ac_retval=0
1681 else
1682 $as_echo "$as_me: program exited with status $ac_status" >&5
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1685
1686 ac_retval=$ac_status
1687 fi
1688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1690 as_fn_set_status $ac_retval
1691
1692 } # ac_fn_c_try_run
1693
1694 # ac_fn_c_check_func LINENO FUNC VAR
1695 # ----------------------------------
1696 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1697 ac_fn_c_check_func ()
1698 {
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701 $as_echo_n "checking for $2... " >&6; }
1702 if eval "test \"\${$3+set}\"" = set; then :
1703 $as_echo_n "(cached) " >&6
1704 else
1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h. */
1707 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1709 #define $2 innocuous_$2
1710
1711 /* System header to define __stub macros and hopefully few prototypes,
1712 which can conflict with char $2 (); below.
1713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1714 <limits.h> exists even on freestanding compilers. */
1715
1716 #ifdef __STDC__
1717 # include <limits.h>
1718 #else
1719 # include <assert.h>
1720 #endif
1721
1722 #undef $2
1723
1724 /* Override any GCC internal prototype to avoid an error.
1725 Use char because int might match the return type of a GCC
1726 builtin and then its argument prototype would still apply. */
1727 #ifdef __cplusplus
1728 extern "C"
1729 #endif
1730 char $2 ();
1731 /* The GNU C library defines this for functions which it implements
1732 to always fail with ENOSYS. Some functions are actually named
1733 something starting with __ and the normal name is an alias. */
1734 #if defined __stub_$2 || defined __stub___$2
1735 choke me
1736 #endif
1737
1738 int
1739 main ()
1740 {
1741 return $2 ();
1742 ;
1743 return 0;
1744 }
1745 _ACEOF
1746 if ac_fn_c_try_link "$LINENO"; then :
1747 eval "$3=yes"
1748 else
1749 eval "$3=no"
1750 fi
1751 rm -f core conftest.err conftest.$ac_objext \
1752 conftest$ac_exeext conftest.$ac_ext
1753 fi
1754 eval ac_res=\$$3
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758
1759 } # ac_fn_c_check_func
1760
1761 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1762 # -------------------------------------------------------
1763 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1764 # the include files in INCLUDES and setting the cache variable VAR
1765 # accordingly.
1766 ac_fn_c_check_header_mongrel ()
1767 {
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if eval "test \"\${$3+set}\"" = set; then :
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771 $as_echo_n "checking for $2... " >&6; }
1772 if eval "test \"\${$3+set}\"" = set; then :
1773 $as_echo_n "(cached) " >&6
1774 fi
1775 eval ac_res=\$$3
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 $as_echo "$ac_res" >&6; }
1778 else
1779 # Is the header compilable?
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1781 $as_echo_n "checking $2 usability... " >&6; }
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1784 $4
1785 #include <$2>
1786 _ACEOF
1787 if ac_fn_c_try_compile "$LINENO"; then :
1788 ac_header_compiler=yes
1789 else
1790 ac_header_compiler=no
1791 fi
1792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1794 $as_echo "$ac_header_compiler" >&6; }
1795
1796 # Is the header present?
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1798 $as_echo_n "checking $2 presence... " >&6; }
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 #include <$2>
1802 _ACEOF
1803 if ac_fn_c_try_cpp "$LINENO"; then :
1804 ac_header_preproc=yes
1805 else
1806 ac_header_preproc=no
1807 fi
1808 rm -f conftest.err conftest.$ac_ext
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1810 $as_echo "$ac_header_preproc" >&6; }
1811
1812 # So? What about this header?
1813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1814 yes:no: )
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1816 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1818 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1819 ;;
1820 no:yes:* )
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1822 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1824 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1826 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1828 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1830 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1831 ( $as_echo "## ---------------------------------------------------------------------- ##
1832 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa ##
1833 ## ---------------------------------------------------------------------- ##"
1834 ) | sed "s/^/$as_me: WARNING: /" >&2
1835 ;;
1836 esac
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if eval "test \"\${$3+set}\"" = set; then :
1840 $as_echo_n "(cached) " >&6
1841 else
1842 eval "$3=\$ac_header_compiler"
1843 fi
1844 eval ac_res=\$$3
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 $as_echo "$ac_res" >&6; }
1847 fi
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849
1850 } # ac_fn_c_check_header_mongrel
1851
1852 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1853 # ---------------------------------------------
1854 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1855 # accordingly.
1856 ac_fn_c_check_decl ()
1857 {
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 as_decl_name=`echo $2|sed 's/ *(.*//'`
1860 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1862 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1863 if eval "test \"\${$3+set}\"" = set; then :
1864 $as_echo_n "(cached) " >&6
1865 else
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1868 $4
1869 int
1870 main ()
1871 {
1872 #ifndef $as_decl_name
1873 #ifdef __cplusplus
1874 (void) $as_decl_use;
1875 #else
1876 (void) $as_decl_name;
1877 #endif
1878 #endif
1879
1880 ;
1881 return 0;
1882 }
1883 _ACEOF
1884 if ac_fn_c_try_compile "$LINENO"; then :
1885 eval "$3=yes"
1886 else
1887 eval "$3=no"
1888 fi
1889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890 fi
1891 eval ac_res=\$$3
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1894 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1895
1896 } # ac_fn_c_check_decl
1897 cat >config.log <<_ACEOF
1898 This file contains any messages produced by compilers while
1899 running configure, to aid debugging if configure makes a mistake.
1900
1901 It was created by glw $as_me 8.0.0, which was
1902 generated by GNU Autoconf 2.66. Invocation command line was
1903
1904 $ $0 $@
1905
1906 _ACEOF
1907 exec 5>>config.log
1908 {
1909 cat <<_ASUNAME
1910 ## --------- ##
1911 ## Platform. ##
1912 ## --------- ##
1913
1914 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1915 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1916 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1917 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1918 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1919
1920 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1921 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1922
1923 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1924 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1925 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1926 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1927 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1928 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1929 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1930
1931 _ASUNAME
1932
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 for as_dir in $PATH
1935 do
1936 IFS=$as_save_IFS
1937 test -z "$as_dir" && as_dir=.
1938 $as_echo "PATH: $as_dir"
1939 done
1940 IFS=$as_save_IFS
1941
1942 } >&5
1943
1944 cat >&5 <<_ACEOF
1945
1946
1947 ## ----------- ##
1948 ## Core tests. ##
1949 ## ----------- ##
1950
1951 _ACEOF
1952
1953
1954 # Keep a trace of the command line.
1955 # Strip out --no-create and --no-recursion so they do not pile up.
1956 # Strip out --silent because we don't want to record it for future runs.
1957 # Also quote any args containing shell meta-characters.
1958 # Make two passes to allow for proper duplicate-argument suppression.
1959 ac_configure_args=
1960 ac_configure_args0=
1961 ac_configure_args1=
1962 ac_must_keep_next=false
1963 for ac_pass in 1 2
1964 do
1965 for ac_arg
1966 do
1967 case $ac_arg in
1968 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1969 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1970 | -silent | --silent | --silen | --sile | --sil)
1971 continue ;;
1972 *\'*)
1973 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1974 esac
1975 case $ac_pass in
1976 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1977 2)
1978 as_fn_append ac_configure_args1 " '$ac_arg'"
1979 if test $ac_must_keep_next = true; then
1980 ac_must_keep_next=false # Got value, back to normal.
1981 else
1982 case $ac_arg in
1983 *=* | --config-cache | -C | -disable-* | --disable-* \
1984 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1985 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1986 | -with-* | --with-* | -without-* | --without-* | --x)
1987 case "$ac_configure_args0 " in
1988 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1989 esac
1990 ;;
1991 -* ) ac_must_keep_next=true ;;
1992 esac
1993 fi
1994 as_fn_append ac_configure_args " '$ac_arg'"
1995 ;;
1996 esac
1997 done
1998 done
1999 { ac_configure_args0=; unset ac_configure_args0;}
2000 { ac_configure_args1=; unset ac_configure_args1;}
2001
2002 # When interrupted or exit'd, cleanup temporary files, and complete
2003 # config.log. We remove comments because anyway the quotes in there
2004 # would cause problems or look ugly.
2005 # WARNING: Use '\'' to represent an apostrophe within the trap.
2006 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2007 trap 'exit_status=$?
2008 # Save into config.log some information that might help in debugging.
2009 {
2010 echo
2011
2012 $as_echo "## ---------------- ##
2013 ## Cache variables. ##
2014 ## ---------------- ##"
2015 echo
2016 # The following way of writing the cache mishandles newlines in values,
2017 (
2018 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2019 eval ac_val=\$$ac_var
2020 case $ac_val in #(
2021 *${as_nl}*)
2022 case $ac_var in #(
2023 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2024 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2025 esac
2026 case $ac_var in #(
2027 _ | IFS | as_nl) ;; #(
2028 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2029 *) { eval $ac_var=; unset $ac_var;} ;;
2030 esac ;;
2031 esac
2032 done
2033 (set) 2>&1 |
2034 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2035 *${as_nl}ac_space=\ *)
2036 sed -n \
2037 "s/'\''/'\''\\\\'\'''\''/g;
2038 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2039 ;; #(
2040 *)
2041 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2042 ;;
2043 esac |
2044 sort
2045 )
2046 echo
2047
2048 $as_echo "## ----------------- ##
2049 ## Output variables. ##
2050 ## ----------------- ##"
2051 echo
2052 for ac_var in $ac_subst_vars
2053 do
2054 eval ac_val=\$$ac_var
2055 case $ac_val in
2056 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057 esac
2058 $as_echo "$ac_var='\''$ac_val'\''"
2059 done | sort
2060 echo
2061
2062 if test -n "$ac_subst_files"; then
2063 $as_echo "## ------------------- ##
2064 ## File substitutions. ##
2065 ## ------------------- ##"
2066 echo
2067 for ac_var in $ac_subst_files
2068 do
2069 eval ac_val=\$$ac_var
2070 case $ac_val in
2071 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072 esac
2073 $as_echo "$ac_var='\''$ac_val'\''"
2074 done | sort
2075 echo
2076 fi
2077
2078 if test -s confdefs.h; then
2079 $as_echo "## ----------- ##
2080 ## confdefs.h. ##
2081 ## ----------- ##"
2082 echo
2083 cat confdefs.h
2084 echo
2085 fi
2086 test "$ac_signal" != 0 &&
2087 $as_echo "$as_me: caught signal $ac_signal"
2088 $as_echo "$as_me: exit $exit_status"
2089 } >&5
2090 rm -f core *.core core.conftest.* &&
2091 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2092 exit $exit_status
2093 ' 0
2094 for ac_signal in 1 2 13 15; do
2095 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2096 done
2097 ac_signal=0
2098
2099 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2100 rm -f -r conftest* confdefs.h
2101
2102 $as_echo "/* confdefs.h */" > confdefs.h
2103
2104 # Predefined preprocessor variables.
2105
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_NAME "$PACKAGE_NAME"
2108 _ACEOF
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2112 _ACEOF
2113
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2116 _ACEOF
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_STRING "$PACKAGE_STRING"
2120 _ACEOF
2121
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2124 _ACEOF
2125
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_URL "$PACKAGE_URL"
2128 _ACEOF
2129
2130
2131 # Let the site file select an alternate cache file if it wants to.
2132 # Prefer an explicitly selected file to automatically selected ones.
2133 ac_site_file1=NONE
2134 ac_site_file2=NONE
2135 if test -n "$CONFIG_SITE"; then
2136 # We do not want a PATH search for config.site.
2137 case $CONFIG_SITE in #((
2138 -*) ac_site_file1=./$CONFIG_SITE;;
2139 */*) ac_site_file1=$CONFIG_SITE;;
2140 *) ac_site_file1=./$CONFIG_SITE;;
2141 esac
2142 elif test "x$prefix" != xNONE; then
2143 ac_site_file1=$prefix/share/config.site
2144 ac_site_file2=$prefix/etc/config.site
2145 else
2146 ac_site_file1=$ac_default_prefix/share/config.site
2147 ac_site_file2=$ac_default_prefix/etc/config.site
2148 fi
2149 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2150 do
2151 test "x$ac_site_file" = xNONE && continue
2152 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2154 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2155 sed 's/^/| /' "$ac_site_file" >&5
2156 . "$ac_site_file" \
2157 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2159 as_fn_error $? "failed to load site script $ac_site_file
2160 See \`config.log' for more details" "$LINENO" 5; }
2161 fi
2162 done
2163
2164 if test -r "$cache_file"; then
2165 # Some versions of bash will fail to source /dev/null (special files
2166 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2167 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2169 $as_echo "$as_me: loading cache $cache_file" >&6;}
2170 case $cache_file in
2171 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2172 *) . "./$cache_file";;
2173 esac
2174 fi
2175 else
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2177 $as_echo "$as_me: creating cache $cache_file" >&6;}
2178 >$cache_file
2179 fi
2180
2181 # Check that the precious variables saved in the cache have kept the same
2182 # value.
2183 ac_cache_corrupted=false
2184 for ac_var in $ac_precious_vars; do
2185 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2186 eval ac_new_set=\$ac_env_${ac_var}_set
2187 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2188 eval ac_new_val=\$ac_env_${ac_var}_value
2189 case $ac_old_set,$ac_new_set in
2190 set,)
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2192 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2193 ac_cache_corrupted=: ;;
2194 ,set)
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2196 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2197 ac_cache_corrupted=: ;;
2198 ,);;
2199 *)
2200 if test "x$ac_old_val" != "x$ac_new_val"; then
2201 # differences in whitespace do not lead to failure.
2202 ac_old_val_w=`echo x $ac_old_val`
2203 ac_new_val_w=`echo x $ac_new_val`
2204 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2206 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2207 ac_cache_corrupted=:
2208 else
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2210 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2211 eval $ac_var=\$ac_old_val
2212 fi
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2214 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2216 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2217 fi;;
2218 esac
2219 # Pass precious variables to config.status.
2220 if test "$ac_new_set" = set; then
2221 case $ac_new_val in
2222 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2223 *) ac_arg=$ac_var=$ac_new_val ;;
2224 esac
2225 case " $ac_configure_args " in
2226 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2227 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2228 esac
2229 fi
2230 done
2231 if $ac_cache_corrupted; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2235 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2236 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2237 fi
2238 ## -------------------- ##
2239 ## Main body of script. ##
2240 ## -------------------- ##
2241
2242 ac_ext=c
2243 ac_cpp='$CPP $CPPFLAGS'
2244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2247
2248
2249 ac_aux_dir=
2250 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2251 if test -f "$ac_dir/install-sh"; then
2252 ac_aux_dir=$ac_dir
2253 ac_install_sh="$ac_aux_dir/install-sh -c"
2254 break
2255 elif test -f "$ac_dir/install.sh"; then
2256 ac_aux_dir=$ac_dir
2257 ac_install_sh="$ac_aux_dir/install.sh -c"
2258 break
2259 elif test -f "$ac_dir/shtool"; then
2260 ac_aux_dir=$ac_dir
2261 ac_install_sh="$ac_aux_dir/shtool install -c"
2262 break
2263 fi
2264 done
2265 if test -z "$ac_aux_dir"; then
2266 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2267 fi
2268
2269 # These three variables are undocumented and unsupported,
2270 # and are intended to be withdrawn in a future Autoconf release.
2271 # They can cause serious problems if a builder's source tree is in a directory
2272 # whose full name contains unusual characters.
2273 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2274 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2275 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2276
2277
2278 # Make sure we can run config.sub.
2279 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2280 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2281
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2283 $as_echo_n "checking build system type... " >&6; }
2284 if test "${ac_cv_build+set}" = set; then :
2285 $as_echo_n "(cached) " >&6
2286 else
2287 ac_build_alias=$build_alias
2288 test "x$ac_build_alias" = x &&
2289 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2290 test "x$ac_build_alias" = x &&
2291 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2292 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2293 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2294
2295 fi
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2297 $as_echo "$ac_cv_build" >&6; }
2298 case $ac_cv_build in
2299 *-*-*) ;;
2300 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2301 esac
2302 build=$ac_cv_build
2303 ac_save_IFS=$IFS; IFS='-'
2304 set x $ac_cv_build
2305 shift
2306 build_cpu=$1
2307 build_vendor=$2
2308 shift; shift
2309 # Remember, the first character of IFS is used to create $*,
2310 # except with old shells:
2311 build_os=$*
2312 IFS=$ac_save_IFS
2313 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2314
2315
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2317 $as_echo_n "checking host system type... " >&6; }
2318 if test "${ac_cv_host+set}" = set; then :
2319 $as_echo_n "(cached) " >&6
2320 else
2321 if test "x$host_alias" = x; then
2322 ac_cv_host=$ac_cv_build
2323 else
2324 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2325 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2326 fi
2327
2328 fi
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2330 $as_echo "$ac_cv_host" >&6; }
2331 case $ac_cv_host in
2332 *-*-*) ;;
2333 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2334 esac
2335 host=$ac_cv_host
2336 ac_save_IFS=$IFS; IFS='-'
2337 set x $ac_cv_host
2338 shift
2339 host_cpu=$1
2340 host_vendor=$2
2341 shift; shift
2342 # Remember, the first character of IFS is used to create $*,
2343 # except with old shells:
2344 host_os=$*
2345 IFS=$ac_save_IFS
2346 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2347
2348
2349
2350 am__api_version='1.11'
2351
2352 # Find a good install program. We prefer a C program (faster),
2353 # so one script is as good as another. But avoid the broken or
2354 # incompatible versions:
2355 # SysV /etc/install, /usr/sbin/install
2356 # SunOS /usr/etc/install
2357 # IRIX /sbin/install
2358 # AIX /bin/install
2359 # AmigaOS /C/install, which installs bootblocks on floppy discs
2360 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2361 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2362 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2363 # OS/2's system install, which has a completely different semantic
2364 # ./install, which can be erroneously created by make from ./install.sh.
2365 # Reject install programs that cannot install multiple files.
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2367 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2368 if test -z "$INSTALL"; then
2369 if test "${ac_cv_path_install+set}" = set; then :
2370 $as_echo_n "(cached) " >&6
2371 else
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
2375 IFS=$as_save_IFS
2376 test -z "$as_dir" && as_dir=.
2377 # Account for people who put trailing slashes in PATH elements.
2378 case $as_dir/ in #((
2379 ./ | .// | /[cC]/* | \
2380 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2381 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2382 /usr/ucb/* ) ;;
2383 *)
2384 # OSF1 and SCO ODT 3.0 have their own names for install.
2385 # Don't use installbsd from OSF since it installs stuff as root
2386 # by default.
2387 for ac_prog in ginstall scoinst install; do
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2390 if test $ac_prog = install &&
2391 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2392 # AIX install. It has an incompatible calling convention.
2393 :
2394 elif test $ac_prog = install &&
2395 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2396 # program-specific install script used by HP pwplus--don't use.
2397 :
2398 else
2399 rm -rf conftest.one conftest.two conftest.dir
2400 echo one > conftest.one
2401 echo two > conftest.two
2402 mkdir conftest.dir
2403 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2404 test -s conftest.one && test -s conftest.two &&
2405 test -s conftest.dir/conftest.one &&
2406 test -s conftest.dir/conftest.two
2407 then
2408 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2409 break 3
2410 fi
2411 fi
2412 fi
2413 done
2414 done
2415 ;;
2416 esac
2417
2418 done
2419 IFS=$as_save_IFS
2420
2421 rm -rf conftest.one conftest.two conftest.dir
2422
2423 fi
2424 if test "${ac_cv_path_install+set}" = set; then
2425 INSTALL=$ac_cv_path_install
2426 else
2427 # As a last resort, use the slow shell script. Don't cache a
2428 # value for INSTALL within a source directory, because that will
2429 # break other packages using the cache if that directory is
2430 # removed, or if the value is a relative name.
2431 INSTALL=$ac_install_sh
2432 fi
2433 fi
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2435 $as_echo "$INSTALL" >&6; }
2436
2437 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2438 # It thinks the first close brace ends the variable substitution.
2439 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2440
2441 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2442
2443 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2444
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2446 $as_echo_n "checking whether build environment is sane... " >&6; }
2447 # Just in case
2448 sleep 1
2449 echo timestamp > conftest.file
2450 # Reject unsafe characters in $srcdir or the absolute working directory
2451 # name. Accept space and tab only in the latter.
2452 am_lf='
2453 '
2454 case `pwd` in
2455 *[\\\"\#\$\&\'\`$am_lf]*)
2456 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2457 esac
2458 case $srcdir in
2459 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2460 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2461 esac
2462
2463 # Do `set' in a subshell so we don't clobber the current shell's
2464 # arguments. Must try -L first in case configure is actually a
2465 # symlink; some systems play weird games with the mod time of symlinks
2466 # (eg FreeBSD returns the mod time of the symlink's containing
2467 # directory).
2468 if (
2469 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2470 if test "$*" = "X"; then
2471 # -L didn't work.
2472 set X `ls -t "$srcdir/configure" conftest.file`
2473 fi
2474 rm -f conftest.file
2475 if test "$*" != "X $srcdir/configure conftest.file" \
2476 && test "$*" != "X conftest.file $srcdir/configure"; then
2477
2478 # If neither matched, then we have a broken ls. This can happen
2479 # if, for instance, CONFIG_SHELL is bash and it inherits a
2480 # broken ls alias from the environment. This has actually
2481 # happened. Such a system could not be considered "sane".
2482 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2483 alias in your environment" "$LINENO" 5
2484 fi
2485
2486 test "$2" = conftest.file
2487 )
2488 then
2489 # Ok.
2490 :
2491 else
2492 as_fn_error $? "newly created file is older than distributed files!
2493 Check your system clock" "$LINENO" 5
2494 fi
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2496 $as_echo "yes" >&6; }
2497 test "$program_prefix" != NONE &&
2498 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2499 # Use a double $ so make ignores it.
2500 test "$program_suffix" != NONE &&
2501 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2502 # Double any \ or $.
2503 # By default was `s,x,x', remove it if useless.
2504 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2505 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2506
2507 # expand $ac_aux_dir to an absolute path
2508 am_aux_dir=`cd $ac_aux_dir && pwd`
2509
2510 if test x"${MISSING+set}" != xset; then
2511 case $am_aux_dir in
2512 *\ * | *\ *)
2513 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2514 *)
2515 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2516 esac
2517 fi
2518 # Use eval to expand $SHELL
2519 if eval "$MISSING --run true"; then
2520 am_missing_run="$MISSING --run "
2521 else
2522 am_missing_run=
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2524 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2525 fi
2526
2527 if test x"${install_sh}" != xset; then
2528 case $am_aux_dir in
2529 *\ * | *\ *)
2530 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2531 *)
2532 install_sh="\${SHELL} $am_aux_dir/install-sh"
2533 esac
2534 fi
2535
2536 # Installed binaries are usually stripped using `strip' when the user
2537 # run `make install-strip'. However `strip' might not be the right
2538 # tool to use in cross-compilation environments, therefore Automake
2539 # will honor the `STRIP' environment variable to overrule this program.
2540 if test "$cross_compiling" != no; then
2541 if test -n "$ac_tool_prefix"; then
2542 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2543 set dummy ${ac_tool_prefix}strip; ac_word=$2
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2545 $as_echo_n "checking for $ac_word... " >&6; }
2546 if test "${ac_cv_prog_STRIP+set}" = set; then :
2547 $as_echo_n "(cached) " >&6
2548 else
2549 if test -n "$STRIP"; then
2550 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2551 else
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH
2554 do
2555 IFS=$as_save_IFS
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2559 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 break 2
2562 fi
2563 done
2564 done
2565 IFS=$as_save_IFS
2566
2567 fi
2568 fi
2569 STRIP=$ac_cv_prog_STRIP
2570 if test -n "$STRIP"; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2572 $as_echo "$STRIP" >&6; }
2573 else
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2575 $as_echo "no" >&6; }
2576 fi
2577
2578
2579 fi
2580 if test -z "$ac_cv_prog_STRIP"; then
2581 ac_ct_STRIP=$STRIP
2582 # Extract the first word of "strip", so it can be a program name with args.
2583 set dummy strip; ac_word=$2
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2585 $as_echo_n "checking for $ac_word... " >&6; }
2586 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2587 $as_echo_n "(cached) " >&6
2588 else
2589 if test -n "$ac_ct_STRIP"; then
2590 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2591 else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2599 ac_cv_prog_ac_ct_STRIP="strip"
2600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 break 2
2602 fi
2603 done
2604 done
2605 IFS=$as_save_IFS
2606
2607 fi
2608 fi
2609 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2610 if test -n "$ac_ct_STRIP"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2612 $as_echo "$ac_ct_STRIP" >&6; }
2613 else
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2615 $as_echo "no" >&6; }
2616 fi
2617
2618 if test "x$ac_ct_STRIP" = x; then
2619 STRIP=":"
2620 else
2621 case $cross_compiling:$ac_tool_warned in
2622 yes:)
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2625 ac_tool_warned=yes ;;
2626 esac
2627 STRIP=$ac_ct_STRIP
2628 fi
2629 else
2630 STRIP="$ac_cv_prog_STRIP"
2631 fi
2632
2633 fi
2634 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2635
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2637 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2638 if test -z "$MKDIR_P"; then
2639 if test "${ac_cv_path_mkdir+set}" = set; then :
2640 $as_echo_n "(cached) " >&6
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2644 do
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 for ac_prog in mkdir gmkdir; do
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2650 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2651 'mkdir (GNU coreutils) '* | \
2652 'mkdir (coreutils) '* | \
2653 'mkdir (fileutils) '4.1*)
2654 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2655 break 3;;
2656 esac
2657 done
2658 done
2659 done
2660 IFS=$as_save_IFS
2661
2662 fi
2663
2664 test -d ./--version && rmdir ./--version
2665 if test "${ac_cv_path_mkdir+set}" = set; then
2666 MKDIR_P="$ac_cv_path_mkdir -p"
2667 else
2668 # As a last resort, use the slow shell script. Don't cache a
2669 # value for MKDIR_P within a source directory, because that will
2670 # break other packages using the cache if that directory is
2671 # removed, or if the value is a relative name.
2672 MKDIR_P="$ac_install_sh -d"
2673 fi
2674 fi
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2676 $as_echo "$MKDIR_P" >&6; }
2677
2678 mkdir_p="$MKDIR_P"
2679 case $mkdir_p in
2680 [\\/$]* | ?:[\\/]*) ;;
2681 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2682 esac
2683
2684 for ac_prog in gawk mawk nawk awk
2685 do
2686 # Extract the first word of "$ac_prog", so it can be a program name with args.
2687 set dummy $ac_prog; ac_word=$2
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689 $as_echo_n "checking for $ac_word... " >&6; }
2690 if test "${ac_cv_prog_AWK+set}" = set; then :
2691 $as_echo_n "(cached) " >&6
2692 else
2693 if test -n "$AWK"; then
2694 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2698 do
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2703 ac_cv_prog_AWK="$ac_prog"
2704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 break 2
2706 fi
2707 done
2708 done
2709 IFS=$as_save_IFS
2710
2711 fi
2712 fi
2713 AWK=$ac_cv_prog_AWK
2714 if test -n "$AWK"; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2716 $as_echo "$AWK" >&6; }
2717 else
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719 $as_echo "no" >&6; }
2720 fi
2721
2722
2723 test -n "$AWK" && break
2724 done
2725
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2727 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2728 set x ${MAKE-make}
2729 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2730 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2731 $as_echo_n "(cached) " >&6
2732 else
2733 cat >conftest.make <<\_ACEOF
2734 SHELL = /bin/sh
2735 all:
2736 @echo '@@@%%%=$(MAKE)=@@@%%%'
2737 _ACEOF
2738 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2739 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2740 *@@@%%%=?*=@@@%%%*)
2741 eval ac_cv_prog_make_${ac_make}_set=yes;;
2742 *)
2743 eval ac_cv_prog_make_${ac_make}_set=no;;
2744 esac
2745 rm -f conftest.make
2746 fi
2747 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2749 $as_echo "yes" >&6; }
2750 SET_MAKE=
2751 else
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 $as_echo "no" >&6; }
2754 SET_MAKE="MAKE=${MAKE-make}"
2755 fi
2756
2757 rm -rf .tst 2>/dev/null
2758 mkdir .tst 2>/dev/null
2759 if test -d .tst; then
2760 am__leading_dot=.
2761 else
2762 am__leading_dot=_
2763 fi
2764 rmdir .tst 2>/dev/null
2765
2766 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2767 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2768 # is not polluted with repeated "-I."
2769 am__isrc=' -I$(srcdir)'
2770 # test to see if srcdir already configured
2771 if test -f $srcdir/config.status; then
2772 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2773 fi
2774 fi
2775
2776 # test whether we have cygpath
2777 if test -z "$CYGPATH_W"; then
2778 if (cygpath --version) >/dev/null 2>/dev/null; then
2779 CYGPATH_W='cygpath -w'
2780 else
2781 CYGPATH_W=echo
2782 fi
2783 fi
2784
2785
2786 # Define the identity of the package.
2787 PACKAGE='glw'
2788 VERSION='8.0.0'
2789
2790
2791 cat >>confdefs.h <<_ACEOF
2792 #define PACKAGE "$PACKAGE"
2793 _ACEOF
2794
2795
2796 cat >>confdefs.h <<_ACEOF
2797 #define VERSION "$VERSION"
2798 _ACEOF
2799
2800 # Some tools Automake needs.
2801
2802 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2803
2804
2805 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2806
2807
2808 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2809
2810
2811 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2812
2813
2814 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2815
2816 # We need awk for the "check" target. The system "awk" is bad on
2817 # some platforms.
2818 # Always define AMTAR for backward compatibility.
2819
2820 AMTAR=${AMTAR-"${am_missing_run}tar"}
2821
2822 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2823
2824
2825
2826
2827
2828
2829 DEPDIR="${am__leading_dot}deps"
2830
2831 ac_config_commands="$ac_config_commands depfiles"
2832
2833
2834 am_make=${MAKE-make}
2835 cat > confinc << 'END'
2836 am__doit:
2837 @echo this is the am__doit target
2838 .PHONY: am__doit
2839 END
2840 # If we don't find an include directive, just comment out the code.
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2842 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2843 am__include="#"
2844 am__quote=
2845 _am_result=none
2846 # First try GNU make style include.
2847 echo "include confinc" > confmf
2848 # Ignore all kinds of additional output from `make'.
2849 case `$am_make -s -f confmf 2> /dev/null` in #(
2850 *the\ am__doit\ target*)
2851 am__include=include
2852 am__quote=
2853 _am_result=GNU
2854 ;;
2855 esac
2856 # Now try BSD make style include.
2857 if test "$am__include" = "#"; then
2858 echo '.include "confinc"' > confmf
2859 case `$am_make -s -f confmf 2> /dev/null` in #(
2860 *the\ am__doit\ target*)
2861 am__include=.include
2862 am__quote="\""
2863 _am_result=BSD
2864 ;;
2865 esac
2866 fi
2867
2868
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2870 $as_echo "$_am_result" >&6; }
2871 rm -f confinc confmf
2872
2873 # Check whether --enable-dependency-tracking was given.
2874 if test "${enable_dependency_tracking+set}" = set; then :
2875 enableval=$enable_dependency_tracking;
2876 fi
2877
2878 if test "x$enable_dependency_tracking" != xno; then
2879 am_depcomp="$ac_aux_dir/depcomp"
2880 AMDEPBACKSLASH='\'
2881 fi
2882 if test "x$enable_dependency_tracking" != xno; then
2883 AMDEP_TRUE=
2884 AMDEP_FALSE='#'
2885 else
2886 AMDEP_TRUE='#'
2887 AMDEP_FALSE=
2888 fi
2889
2890
2891 ac_ext=c
2892 ac_cpp='$CPP $CPPFLAGS'
2893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2896 if test -n "$ac_tool_prefix"; then
2897 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2898 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if test "${ac_cv_prog_CC+set}" = set; then :
2902 $as_echo_n "(cached) " >&6
2903 else
2904 if test -n "$CC"; then
2905 ac_cv_prog_CC="$CC" # Let the user override the test.
2906 else
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 for as_dir in $PATH
2909 do
2910 IFS=$as_save_IFS
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2914 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 break 2
2917 fi
2918 done
2919 done
2920 IFS=$as_save_IFS
2921
2922 fi
2923 fi
2924 CC=$ac_cv_prog_CC
2925 if test -n "$CC"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2927 $as_echo "$CC" >&6; }
2928 else
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2931 fi
2932
2933
2934 fi
2935 if test -z "$ac_cv_prog_CC"; then
2936 ac_ct_CC=$CC
2937 # Extract the first word of "gcc", so it can be a program name with args.
2938 set dummy gcc; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2942 $as_echo_n "(cached) " >&6
2943 else
2944 if test -n "$ac_ct_CC"; then
2945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2949 do
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954 ac_cv_prog_ac_ct_CC="gcc"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2957 fi
2958 done
2959 done
2960 IFS=$as_save_IFS
2961
2962 fi
2963 fi
2964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2965 if test -n "$ac_ct_CC"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2967 $as_echo "$ac_ct_CC" >&6; }
2968 else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2971 fi
2972
2973 if test "x$ac_ct_CC" = x; then
2974 CC=""
2975 else
2976 case $cross_compiling:$ac_tool_warned in
2977 yes:)
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2980 ac_tool_warned=yes ;;
2981 esac
2982 CC=$ac_ct_CC
2983 fi
2984 else
2985 CC="$ac_cv_prog_CC"
2986 fi
2987
2988 if test -z "$CC"; then
2989 if test -n "$ac_tool_prefix"; then
2990 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2991 set dummy ${ac_tool_prefix}cc; ac_word=$2
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 $as_echo_n "checking for $ac_word... " >&6; }
2994 if test "${ac_cv_prog_CC+set}" = set; then :
2995 $as_echo_n "(cached) " >&6
2996 else
2997 if test -n "$CC"; then
2998 ac_cv_prog_CC="$CC" # Let the user override the test.
2999 else
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH
3002 do
3003 IFS=$as_save_IFS
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007 ac_cv_prog_CC="${ac_tool_prefix}cc"
3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 break 2
3010 fi
3011 done
3012 done
3013 IFS=$as_save_IFS
3014
3015 fi
3016 fi
3017 CC=$ac_cv_prog_CC
3018 if test -n "$CC"; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3020 $as_echo "$CC" >&6; }
3021 else
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3024 fi
3025
3026
3027 fi
3028 fi
3029 if test -z "$CC"; then
3030 # Extract the first word of "cc", so it can be a program name with args.
3031 set dummy cc; ac_word=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if test "${ac_cv_prog_CC+set}" = set; then :
3035 $as_echo_n "(cached) " >&6
3036 else
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC="$CC" # Let the user override the test.
3039 else
3040 ac_prog_rejected=no
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 for as_dir in $PATH
3043 do
3044 IFS=$as_save_IFS
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3049 ac_prog_rejected=yes
3050 continue
3051 fi
3052 ac_cv_prog_CC="cc"
3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 break 2
3055 fi
3056 done
3057 done
3058 IFS=$as_save_IFS
3059
3060 if test $ac_prog_rejected = yes; then
3061 # We found a bogon in the path, so make sure we never use it.
3062 set dummy $ac_cv_prog_CC
3063 shift
3064 if test $# != 0; then
3065 # We chose a different compiler from the bogus one.
3066 # However, it has the same basename, so the bogon will be chosen
3067 # first if we set CC to just the basename; use the full file name.
3068 shift
3069 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3070 fi
3071 fi
3072 fi
3073 fi
3074 CC=$ac_cv_prog_CC
3075 if test -n "$CC"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3077 $as_echo "$CC" >&6; }
3078 else
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3081 fi
3082
3083
3084 fi
3085 if test -z "$CC"; then
3086 if test -n "$ac_tool_prefix"; then
3087 for ac_prog in cl.exe
3088 do
3089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if test "${ac_cv_prog_CC+set}" = set; then :
3094 $as_echo_n "(cached) " >&6
3095 else
3096 if test -n "$CC"; then
3097 ac_cv_prog_CC="$CC" # Let the user override the test.
3098 else
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3101 do
3102 IFS=$as_save_IFS
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 break 2
3109 fi
3110 done
3111 done
3112 IFS=$as_save_IFS
3113
3114 fi
3115 fi
3116 CC=$ac_cv_prog_CC
3117 if test -n "$CC"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3119 $as_echo "$CC" >&6; }
3120 else
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3123 fi
3124
3125
3126 test -n "$CC" && break
3127 done
3128 fi
3129 if test -z "$CC"; then
3130 ac_ct_CC=$CC
3131 for ac_prog in cl.exe
3132 do
3133 # Extract the first word of "$ac_prog", so it can be a program name with args.
3134 set dummy $ac_prog; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3138 $as_echo_n "(cached) " >&6
3139 else
3140 if test -n "$ac_ct_CC"; then
3141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3150 ac_cv_prog_ac_ct_CC="$ac_prog"
3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 break 2
3153 fi
3154 done
3155 done
3156 IFS=$as_save_IFS
3157
3158 fi
3159 fi
3160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3161 if test -n "$ac_ct_CC"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3163 $as_echo "$ac_ct_CC" >&6; }
3164 else
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3167 fi
3168
3169
3170 test -n "$ac_ct_CC" && break
3171 done
3172
3173 if test "x$ac_ct_CC" = x; then
3174 CC=""
3175 else
3176 case $cross_compiling:$ac_tool_warned in
3177 yes:)
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3180 ac_tool_warned=yes ;;
3181 esac
3182 CC=$ac_ct_CC
3183 fi
3184 fi
3185
3186 fi
3187
3188
3189 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191 as_fn_error $? "no acceptable C compiler found in \$PATH
3192 See \`config.log' for more details" "$LINENO" 5; }
3193
3194 # Provide some information about the compiler.
3195 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3196 set X $ac_compile
3197 ac_compiler=$2
3198 for ac_option in --version -v -V -qversion; do
3199 { { ac_try="$ac_compiler $ac_option >&5"
3200 case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203 esac
3204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3205 $as_echo "$ac_try_echo"; } >&5
3206 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3207 ac_status=$?
3208 if test -s conftest.err; then
3209 sed '10a\
3210 ... rest of stderr output deleted ...
3211 10q' conftest.err >conftest.er1
3212 cat conftest.er1 >&5
3213 fi
3214 rm -f conftest.er1 conftest.err
3215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3216 test $ac_status = 0; }
3217 done
3218
3219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220 /* end confdefs.h. */
3221
3222 int
3223 main ()
3224 {
3225
3226 ;
3227 return 0;
3228 }
3229 _ACEOF
3230 ac_clean_files_save=$ac_clean_files
3231 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3232 # Try to create an executable without -o first, disregard a.out.
3233 # It will help us diagnose broken compilers, and finding out an intuition
3234 # of exeext.
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3236 $as_echo_n "checking whether the C compiler works... " >&6; }
3237 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3238
3239 # The possible output files:
3240 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3241
3242 ac_rmfiles=
3243 for ac_file in $ac_files
3244 do
3245 case $ac_file in
3246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3247 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3248 esac
3249 done
3250 rm -f $ac_rmfiles
3251
3252 if { { ac_try="$ac_link_default"
3253 case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256 esac
3257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258 $as_echo "$ac_try_echo"; } >&5
3259 (eval "$ac_link_default") 2>&5
3260 ac_status=$?
3261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262 test $ac_status = 0; }; then :
3263 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3264 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3265 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3266 # so that the user can short-circuit this test for compilers unknown to
3267 # Autoconf.
3268 for ac_file in $ac_files ''
3269 do
3270 test -f "$ac_file" || continue
3271 case $ac_file in
3272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3273 ;;
3274 [ab].out )
3275 # We found the default executable, but exeext='' is most
3276 # certainly right.
3277 break;;
3278 *.* )
3279 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3280 then :; else
3281 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3282 fi
3283 # We set ac_cv_exeext here because the later test for it is not
3284 # safe: cross compilers may not add the suffix if given an `-o'
3285 # argument, so we may need to know it at that point already.
3286 # Even if this section looks crufty: it has the advantage of
3287 # actually working.
3288 break;;
3289 * )
3290 break;;
3291 esac
3292 done
3293 test "$ac_cv_exeext" = no && ac_cv_exeext=
3294
3295 else
3296 ac_file=''
3297 fi
3298 if test -z "$ac_file"; then :
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3301 $as_echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3303
3304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3306 as_fn_error 77 "C compiler cannot create executables
3307 See \`config.log' for more details" "$LINENO" 5; }
3308 else
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3310 $as_echo "yes" >&6; }
3311 fi
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3313 $as_echo_n "checking for C compiler default output file name... " >&6; }
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3315 $as_echo "$ac_file" >&6; }
3316 ac_exeext=$ac_cv_exeext
3317
3318 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3319 ac_clean_files=$ac_clean_files_save
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3321 $as_echo_n "checking for suffix of executables... " >&6; }
3322 if { { ac_try="$ac_link"
3323 case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326 esac
3327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328 $as_echo "$ac_try_echo"; } >&5
3329 (eval "$ac_link") 2>&5
3330 ac_status=$?
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }; then :
3333 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3334 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3335 # work properly (i.e., refer to `conftest.exe'), while it won't with
3336 # `rm'.
3337 for ac_file in conftest.exe conftest conftest.*; do
3338 test -f "$ac_file" || continue
3339 case $ac_file in
3340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3341 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3342 break;;
3343 * ) break;;
3344 esac
3345 done
3346 else
3347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3350 See \`config.log' for more details" "$LINENO" 5; }
3351 fi
3352 rm -f conftest conftest$ac_cv_exeext
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3354 $as_echo "$ac_cv_exeext" >&6; }
3355
3356 rm -f conftest.$ac_ext
3357 EXEEXT=$ac_cv_exeext
3358 ac_exeext=$EXEEXT
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h. */
3361 #include <stdio.h>
3362 int
3363 main ()
3364 {
3365 FILE *f = fopen ("conftest.out", "w");
3366 return ferror (f) || fclose (f) != 0;
3367
3368 ;
3369 return 0;
3370 }
3371 _ACEOF
3372 ac_clean_files="$ac_clean_files conftest.out"
3373 # Check that the compiler produces executables we can run. If not, either
3374 # the compiler is broken, or we cross compile.
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3376 $as_echo_n "checking whether we are cross compiling... " >&6; }
3377 if test "$cross_compiling" != yes; then
3378 { { ac_try="$ac_link"
3379 case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382 esac
3383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384 $as_echo "$ac_try_echo"; } >&5
3385 (eval "$ac_link") 2>&5
3386 ac_status=$?
3387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388 test $ac_status = 0; }
3389 if { ac_try='./conftest$ac_cv_exeext'
3390 { { case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393 esac
3394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395 $as_echo "$ac_try_echo"; } >&5
3396 (eval "$ac_try") 2>&5
3397 ac_status=$?
3398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399 test $ac_status = 0; }; }; then
3400 cross_compiling=no
3401 else
3402 if test "$cross_compiling" = maybe; then
3403 cross_compiling=yes
3404 else
3405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407 as_fn_error $? "cannot run C compiled programs.
3408 If you meant to cross compile, use \`--host'.
3409 See \`config.log' for more details" "$LINENO" 5; }
3410 fi
3411 fi
3412 fi
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3414 $as_echo "$cross_compiling" >&6; }
3415
3416 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3417 ac_clean_files=$ac_clean_files_save
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3419 $as_echo_n "checking for suffix of object files... " >&6; }
3420 if test "${ac_cv_objext+set}" = set; then :
3421 $as_echo_n "(cached) " >&6
3422 else
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h. */
3425
3426 int
3427 main ()
3428 {
3429
3430 ;
3431 return 0;
3432 }
3433 _ACEOF
3434 rm -f conftest.o conftest.obj
3435 if { { ac_try="$ac_compile"
3436 case "(($ac_try" in
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3439 esac
3440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441 $as_echo "$ac_try_echo"; } >&5
3442 (eval "$ac_compile") 2>&5
3443 ac_status=$?
3444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445 test $ac_status = 0; }; then :
3446 for ac_file in conftest.o conftest.obj conftest.*; do
3447 test -f "$ac_file" || continue;
3448 case $ac_file in
3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3450 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3451 break;;
3452 esac
3453 done
3454 else
3455 $as_echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3457
3458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3460 as_fn_error $? "cannot compute suffix of object files: cannot compile
3461 See \`config.log' for more details" "$LINENO" 5; }
3462 fi
3463 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3464 fi
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3466 $as_echo "$ac_cv_objext" >&6; }
3467 OBJEXT=$ac_cv_objext
3468 ac_objext=$OBJEXT
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3470 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3471 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3472 $as_echo_n "(cached) " >&6
3473 else
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3476
3477 int
3478 main ()
3479 {
3480 #ifndef __GNUC__
3481 choke me
3482 #endif
3483
3484 ;
3485 return 0;
3486 }
3487 _ACEOF
3488 if ac_fn_c_try_compile "$LINENO"; then :
3489 ac_compiler_gnu=yes
3490 else
3491 ac_compiler_gnu=no
3492 fi
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3495
3496 fi
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3498 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3499 if test $ac_compiler_gnu = yes; then
3500 GCC=yes
3501 else
3502 GCC=
3503 fi
3504 ac_test_CFLAGS=${CFLAGS+set}
3505 ac_save_CFLAGS=$CFLAGS
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3507 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3508 if test "${ac_cv_prog_cc_g+set}" = set; then :
3509 $as_echo_n "(cached) " >&6
3510 else
3511 ac_save_c_werror_flag=$ac_c_werror_flag
3512 ac_c_werror_flag=yes
3513 ac_cv_prog_cc_g=no
3514 CFLAGS="-g"
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3517
3518 int
3519 main ()
3520 {
3521
3522 ;
3523 return 0;
3524 }
3525 _ACEOF
3526 if ac_fn_c_try_compile "$LINENO"; then :
3527 ac_cv_prog_cc_g=yes
3528 else
3529 CFLAGS=""
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3532
3533 int
3534 main ()
3535 {
3536
3537 ;
3538 return 0;
3539 }
3540 _ACEOF
3541 if ac_fn_c_try_compile "$LINENO"; then :
3542
3543 else
3544 ac_c_werror_flag=$ac_save_c_werror_flag
3545 CFLAGS="-g"
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3548
3549 int
3550 main ()
3551 {
3552
3553 ;
3554 return 0;
3555 }
3556 _ACEOF
3557 if ac_fn_c_try_compile "$LINENO"; then :
3558 ac_cv_prog_cc_g=yes
3559 fi
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561 fi
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563 fi
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 ac_c_werror_flag=$ac_save_c_werror_flag
3566 fi
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3568 $as_echo "$ac_cv_prog_cc_g" >&6; }
3569 if test "$ac_test_CFLAGS" = set; then
3570 CFLAGS=$ac_save_CFLAGS
3571 elif test $ac_cv_prog_cc_g = yes; then
3572 if test "$GCC" = yes; then
3573 CFLAGS="-g -O2"
3574 else
3575 CFLAGS="-g"
3576 fi
3577 else
3578 if test "$GCC" = yes; then
3579 CFLAGS="-O2"
3580 else
3581 CFLAGS=
3582 fi
3583 fi
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3585 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3586 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3587 $as_echo_n "(cached) " >&6
3588 else
3589 ac_cv_prog_cc_c89=no
3590 ac_save_CC=$CC
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3593 #include <stdarg.h>
3594 #include <stdio.h>
3595 #include <sys/types.h>
3596 #include <sys/stat.h>
3597 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3598 struct buf { int x; };
3599 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3600 static char *e (p, i)
3601 char **p;
3602 int i;
3603 {
3604 return p[i];
3605 }
3606 static char *f (char * (*g) (char **, int), char **p, ...)
3607 {
3608 char *s;
3609 va_list v;
3610 va_start (v,p);
3611 s = g (p, va_arg (v,int));
3612 va_end (v);
3613 return s;
3614 }
3615
3616 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3617 function prototypes and stuff, but not '\xHH' hex character constants.
3618 These don't provoke an error unfortunately, instead are silently treated
3619 as 'x'. The following induces an error, until -std is added to get
3620 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3621 array size at least. It's necessary to write '\x00'==0 to get something
3622 that's true only with -std. */
3623 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3624
3625 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3626 inside strings and character constants. */
3627 #define FOO(x) 'x'
3628 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3629
3630 int test (int i, double x);
3631 struct s1 {int (*f) (int a);};
3632 struct s2 {int (*f) (double a);};
3633 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3634 int argc;
3635 char **argv;
3636 int
3637 main ()
3638 {
3639 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3640 ;
3641 return 0;
3642 }
3643 _ACEOF
3644 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3645 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3646 do
3647 CC="$ac_save_CC $ac_arg"
3648 if ac_fn_c_try_compile "$LINENO"; then :
3649 ac_cv_prog_cc_c89=$ac_arg
3650 fi
3651 rm -f core conftest.err conftest.$ac_objext
3652 test "x$ac_cv_prog_cc_c89" != "xno" && break
3653 done
3654 rm -f conftest.$ac_ext
3655 CC=$ac_save_CC
3656
3657 fi
3658 # AC_CACHE_VAL
3659 case "x$ac_cv_prog_cc_c89" in
3660 x)
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3662 $as_echo "none needed" >&6; } ;;
3663 xno)
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3665 $as_echo "unsupported" >&6; } ;;
3666 *)
3667 CC="$CC $ac_cv_prog_cc_c89"
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3669 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3670 esac
3671 if test "x$ac_cv_prog_cc_c89" != xno; then :
3672
3673 fi
3674
3675 ac_ext=c
3676 ac_cpp='$CPP $CPPFLAGS'
3677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680
3681 depcc="$CC" am_compiler_list=
3682
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3684 $as_echo_n "checking dependency style of $depcc... " >&6; }
3685 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3686 $as_echo_n "(cached) " >&6
3687 else
3688 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3689 # We make a subdir and do the tests there. Otherwise we can end up
3690 # making bogus files that we don't know about and never remove. For
3691 # instance it was reported that on HP-UX the gcc test will end up
3692 # making a dummy file named `D' -- because `-MD' means `put the output
3693 # in D'.
3694 mkdir conftest.dir
3695 # Copy depcomp to subdir because otherwise we won't find it if we're
3696 # using a relative directory.
3697 cp "$am_depcomp" conftest.dir
3698 cd conftest.dir
3699 # We will build objects and dependencies in a subdirectory because
3700 # it helps to detect inapplicable dependency modes. For instance
3701 # both Tru64's cc and ICC support -MD to output dependencies as a
3702 # side effect of compilation, but ICC will put the dependencies in
3703 # the current directory while Tru64 will put them in the object
3704 # directory.
3705 mkdir sub
3706
3707 am_cv_CC_dependencies_compiler_type=none
3708 if test "$am_compiler_list" = ""; then
3709 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3710 fi
3711 am__universal=false
3712 case " $depcc " in #(
3713 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3714 esac
3715
3716 for depmode in $am_compiler_list; do
3717 # Setup a source with many dependencies, because some compilers
3718 # like to wrap large dependency lists on column 80 (with \), and
3719 # we should not choose a depcomp mode which is confused by this.
3720 #
3721 # We need to recreate these files for each test, as the compiler may
3722 # overwrite some of them when testing with obscure command lines.
3723 # This happens at least with the AIX C compiler.
3724 : > sub/conftest.c
3725 for i in 1 2 3 4 5 6; do
3726 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3727 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3728 # Solaris 8's {/usr,}/bin/sh.
3729 touch sub/conftst$i.h
3730 done
3731 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3732
3733 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3734 # mode. It turns out that the SunPro C++ compiler does not properly
3735 # handle `-M -o', and we need to detect this. Also, some Intel
3736 # versions had trouble with output in subdirs
3737 am__obj=sub/conftest.${OBJEXT-o}
3738 am__minus_obj="-o $am__obj"
3739 case $depmode in
3740 gcc)
3741 # This depmode causes a compiler race in universal mode.
3742 test "$am__universal" = false || continue
3743 ;;
3744 nosideeffect)
3745 # after this tag, mechanisms are not by side-effect, so they'll
3746 # only be used when explicitly requested
3747 if test "x$enable_dependency_tracking" = xyes; then
3748 continue
3749 else
3750 break
3751 fi
3752 ;;
3753 msvisualcpp | msvcmsys)
3754 # This compiler won't grok `-c -o', but also, the minuso test has
3755 # not run yet. These depmodes are late enough in the game, and
3756 # so weak that their functioning should not be impacted.
3757 am__obj=conftest.${OBJEXT-o}
3758 am__minus_obj=
3759 ;;
3760 none) break ;;
3761 esac
3762 if depmode=$depmode \
3763 source=sub/conftest.c object=$am__obj \
3764 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3765 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3766 >/dev/null 2>conftest.err &&
3767 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3768 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3769 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3770 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3771 # icc doesn't choke on unknown options, it will just issue warnings
3772 # or remarks (even with -Werror). So we grep stderr for any message
3773 # that says an option was ignored or not supported.
3774 # When given -MP, icc 7.0 and 7.1 complain thusly:
3775 # icc: Command line warning: ignoring option '-M'; no argument required
3776 # The diagnosis changed in icc 8.0:
3777 # icc: Command line remark: option '-MP' not supported
3778 if (grep 'ignoring option' conftest.err ||
3779 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3780 am_cv_CC_dependencies_compiler_type=$depmode
3781 break
3782 fi
3783 fi
3784 done
3785
3786 cd ..
3787 rm -rf conftest.dir
3788 else
3789 am_cv_CC_dependencies_compiler_type=none
3790 fi
3791
3792 fi
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3794 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3795 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3796
3797 if
3798 test "x$enable_dependency_tracking" != xno \
3799 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3800 am__fastdepCC_TRUE=
3801 am__fastdepCC_FALSE='#'
3802 else
3803 am__fastdepCC_TRUE='#'
3804 am__fastdepCC_FALSE=
3805 fi
3806
3807
3808 ac_ext=c
3809 ac_cpp='$CPP $CPPFLAGS'
3810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3814 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3815 # On Suns, sometimes $CPP names a directory.
3816 if test -n "$CPP" && test -d "$CPP"; then
3817 CPP=
3818 fi
3819 if test -z "$CPP"; then
3820 if test "${ac_cv_prog_CPP+set}" = set; then :
3821 $as_echo_n "(cached) " >&6
3822 else
3823 # Double quotes because CPP needs to be expanded
3824 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3825 do
3826 ac_preproc_ok=false
3827 for ac_c_preproc_warn_flag in '' yes
3828 do
3829 # Use a header file that comes with gcc, so configuring glibc
3830 # with a fresh cross-compiler works.
3831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3832 # <limits.h> exists even on freestanding compilers.
3833 # On the NeXT, cc -E runs the code through the compiler's parser,
3834 # not just through cpp. "Syntax error" is here to catch this case.
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3837 #ifdef __STDC__
3838 # include <limits.h>
3839 #else
3840 # include <assert.h>
3841 #endif
3842 Syntax error
3843 _ACEOF
3844 if ac_fn_c_try_cpp "$LINENO"; then :
3845
3846 else
3847 # Broken: fails on valid input.
3848 continue
3849 fi
3850 rm -f conftest.err conftest.$ac_ext
3851
3852 # OK, works on sane cases. Now check whether nonexistent headers
3853 # can be detected and how.
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3856 #include <ac_nonexistent.h>
3857 _ACEOF
3858 if ac_fn_c_try_cpp "$LINENO"; then :
3859 # Broken: success on invalid input.
3860 continue
3861 else
3862 # Passes both tests.
3863 ac_preproc_ok=:
3864 break
3865 fi
3866 rm -f conftest.err conftest.$ac_ext
3867
3868 done
3869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3870 rm -f conftest.err conftest.$ac_ext
3871 if $ac_preproc_ok; then :
3872 break
3873 fi
3874
3875 done
3876 ac_cv_prog_CPP=$CPP
3877
3878 fi
3879 CPP=$ac_cv_prog_CPP
3880 else
3881 ac_cv_prog_CPP=$CPP
3882 fi
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3884 $as_echo "$CPP" >&6; }
3885 ac_preproc_ok=false
3886 for ac_c_preproc_warn_flag in '' yes
3887 do
3888 # Use a header file that comes with gcc, so configuring glibc
3889 # with a fresh cross-compiler works.
3890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3891 # <limits.h> exists even on freestanding compilers.
3892 # On the NeXT, cc -E runs the code through the compiler's parser,
3893 # not just through cpp. "Syntax error" is here to catch this case.
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3896 #ifdef __STDC__
3897 # include <limits.h>
3898 #else
3899 # include <assert.h>
3900 #endif
3901 Syntax error
3902 _ACEOF
3903 if ac_fn_c_try_cpp "$LINENO"; then :
3904
3905 else
3906 # Broken: fails on valid input.
3907 continue
3908 fi
3909 rm -f conftest.err conftest.$ac_ext
3910
3911 # OK, works on sane cases. Now check whether nonexistent headers
3912 # can be detected and how.
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3915 #include <ac_nonexistent.h>
3916 _ACEOF
3917 if ac_fn_c_try_cpp "$LINENO"; then :
3918 # Broken: success on invalid input.
3919 continue
3920 else
3921 # Passes both tests.
3922 ac_preproc_ok=:
3923 break
3924 fi
3925 rm -f conftest.err conftest.$ac_ext
3926
3927 done
3928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3929 rm -f conftest.err conftest.$ac_ext
3930 if $ac_preproc_ok; then :
3931
3932 else
3933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3935 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3936 See \`config.log' for more details" "$LINENO" 5; }
3937 fi
3938
3939 ac_ext=c
3940 ac_cpp='$CPP $CPPFLAGS'
3941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944
3945 ac_ext=c
3946 ac_cpp='$CPP $CPPFLAGS'
3947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3950 if test -n "$ac_tool_prefix"; then
3951 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3952 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3954 $as_echo_n "checking for $ac_word... " >&6; }
3955 if test "${ac_cv_prog_CC+set}" = set; then :
3956 $as_echo_n "(cached) " >&6
3957 else
3958 if test -n "$CC"; then
3959 ac_cv_prog_CC="$CC" # Let the user override the test.
3960 else
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3968 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3970 break 2
3971 fi
3972 done
3973 done
3974 IFS=$as_save_IFS
3975
3976 fi
3977 fi
3978 CC=$ac_cv_prog_CC
3979 if test -n "$CC"; then
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3981 $as_echo "$CC" >&6; }
3982 else
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984 $as_echo "no" >&6; }
3985 fi
3986
3987
3988 fi
3989 if test -z "$ac_cv_prog_CC"; then
3990 ac_ct_CC=$CC
3991 # Extract the first word of "gcc", so it can be a program name with args.
3992 set dummy gcc; ac_word=$2
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3994 $as_echo_n "checking for $ac_word... " >&6; }
3995 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3996 $as_echo_n "(cached) " >&6
3997 else
3998 if test -n "$ac_ct_CC"; then
3999 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4000 else
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4003 do
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008 ac_cv_prog_ac_ct_CC="gcc"
4009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4010 break 2
4011 fi
4012 done
4013 done
4014 IFS=$as_save_IFS
4015
4016 fi
4017 fi
4018 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4019 if test -n "$ac_ct_CC"; then
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4021 $as_echo "$ac_ct_CC" >&6; }
4022 else
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4024 $as_echo "no" >&6; }
4025 fi
4026
4027 if test "x$ac_ct_CC" = x; then
4028 CC=""
4029 else
4030 case $cross_compiling:$ac_tool_warned in
4031 yes:)
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4034 ac_tool_warned=yes ;;
4035 esac
4036 CC=$ac_ct_CC
4037 fi
4038 else
4039 CC="$ac_cv_prog_CC"
4040 fi
4041
4042 if test -z "$CC"; then
4043 if test -n "$ac_tool_prefix"; then
4044 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4045 set dummy ${ac_tool_prefix}cc; ac_word=$2
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 $as_echo_n "checking for $ac_word... " >&6; }
4048 if test "${ac_cv_prog_CC+set}" = set; then :
4049 $as_echo_n "(cached) " >&6
4050 else
4051 if test -n "$CC"; then
4052 ac_cv_prog_CC="$CC" # Let the user override the test.
4053 else
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH
4056 do
4057 IFS=$as_save_IFS
4058 test -z "$as_dir" && as_dir=.
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4061 ac_cv_prog_CC="${ac_tool_prefix}cc"
4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4063 break 2
4064 fi
4065 done
4066 done
4067 IFS=$as_save_IFS
4068
4069 fi
4070 fi
4071 CC=$ac_cv_prog_CC
4072 if test -n "$CC"; then
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4074 $as_echo "$CC" >&6; }
4075 else
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 $as_echo "no" >&6; }
4078 fi
4079
4080
4081 fi
4082 fi
4083 if test -z "$CC"; then
4084 # Extract the first word of "cc", so it can be a program name with args.
4085 set dummy cc; ac_word=$2
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087 $as_echo_n "checking for $ac_word... " >&6; }
4088 if test "${ac_cv_prog_CC+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
4090 else
4091 if test -n "$CC"; then
4092 ac_cv_prog_CC="$CC" # Let the user override the test.
4093 else
4094 ac_prog_rejected=no
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 for as_dir in $PATH
4097 do
4098 IFS=$as_save_IFS
4099 test -z "$as_dir" && as_dir=.
4100 for ac_exec_ext in '' $ac_executable_extensions; do
4101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4102 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4103 ac_prog_rejected=yes
4104 continue
4105 fi
4106 ac_cv_prog_CC="cc"
4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 break 2
4109 fi
4110 done
4111 done
4112 IFS=$as_save_IFS
4113
4114 if test $ac_prog_rejected = yes; then
4115 # We found a bogon in the path, so make sure we never use it.
4116 set dummy $ac_cv_prog_CC
4117 shift
4118 if test $# != 0; then
4119 # We chose a different compiler from the bogus one.
4120 # However, it has the same basename, so the bogon will be chosen
4121 # first if we set CC to just the basename; use the full file name.
4122 shift
4123 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4124 fi
4125 fi
4126 fi
4127 fi
4128 CC=$ac_cv_prog_CC
4129 if test -n "$CC"; then
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4131 $as_echo "$CC" >&6; }
4132 else
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4134 $as_echo "no" >&6; }
4135 fi
4136
4137
4138 fi
4139 if test -z "$CC"; then
4140 if test -n "$ac_tool_prefix"; then
4141 for ac_prog in cl.exe
4142 do
4143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4146 $as_echo_n "checking for $ac_word... " >&6; }
4147 if test "${ac_cv_prog_CC+set}" = set; then :
4148 $as_echo_n "(cached) " >&6
4149 else
4150 if test -n "$CC"; then
4151 ac_cv_prog_CC="$CC" # Let the user override the test.
4152 else
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH
4155 do
4156 IFS=$as_save_IFS
4157 test -z "$as_dir" && as_dir=.
4158 for ac_exec_ext in '' $ac_executable_extensions; do
4159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4160 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4162 break 2
4163 fi
4164 done
4165 done
4166 IFS=$as_save_IFS
4167
4168 fi
4169 fi
4170 CC=$ac_cv_prog_CC
4171 if test -n "$CC"; then
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4173 $as_echo "$CC" >&6; }
4174 else
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176 $as_echo "no" >&6; }
4177 fi
4178
4179
4180 test -n "$CC" && break
4181 done
4182 fi
4183 if test -z "$CC"; then
4184 ac_ct_CC=$CC
4185 for ac_prog in cl.exe
4186 do
4187 # Extract the first word of "$ac_prog", so it can be a program name with args.
4188 set dummy $ac_prog; ac_word=$2
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190 $as_echo_n "checking for $ac_word... " >&6; }
4191 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4192 $as_echo_n "(cached) " >&6
4193 else
4194 if test -n "$ac_ct_CC"; then
4195 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4196 else
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4199 do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4204 ac_cv_prog_ac_ct_CC="$ac_prog"
4205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 break 2
4207 fi
4208 done
4209 done
4210 IFS=$as_save_IFS
4211
4212 fi
4213 fi
4214 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4215 if test -n "$ac_ct_CC"; then
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4217 $as_echo "$ac_ct_CC" >&6; }
4218 else
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 $as_echo "no" >&6; }
4221 fi
4222
4223
4224 test -n "$ac_ct_CC" && break
4225 done
4226
4227 if test "x$ac_ct_CC" = x; then
4228 CC=""
4229 else
4230 case $cross_compiling:$ac_tool_warned in
4231 yes:)
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4234 ac_tool_warned=yes ;;
4235 esac
4236 CC=$ac_ct_CC
4237 fi
4238 fi
4239
4240 fi
4241
4242
4243 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4245 as_fn_error $? "no acceptable C compiler found in \$PATH
4246 See \`config.log' for more details" "$LINENO" 5; }
4247
4248 # Provide some information about the compiler.
4249 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4250 set X $ac_compile
4251 ac_compiler=$2
4252 for ac_option in --version -v -V -qversion; do
4253 { { ac_try="$ac_compiler $ac_option >&5"
4254 case "(($ac_try" in
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4257 esac
4258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4259 $as_echo "$ac_try_echo"; } >&5
4260 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4261 ac_status=$?
4262 if test -s conftest.err; then
4263 sed '10a\
4264 ... rest of stderr output deleted ...
4265 10q' conftest.err >conftest.er1
4266 cat conftest.er1 >&5
4267 fi
4268 rm -f conftest.er1 conftest.err
4269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4270 test $ac_status = 0; }
4271 done
4272
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4274 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4275 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4276 $as_echo_n "(cached) " >&6
4277 else
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4280
4281 int
4282 main ()
4283 {
4284 #ifndef __GNUC__
4285 choke me
4286 #endif
4287
4288 ;
4289 return 0;
4290 }
4291 _ACEOF
4292 if ac_fn_c_try_compile "$LINENO"; then :
4293 ac_compiler_gnu=yes
4294 else
4295 ac_compiler_gnu=no
4296 fi
4297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4299
4300 fi
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4302 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4303 if test $ac_compiler_gnu = yes; then
4304 GCC=yes
4305 else
4306 GCC=
4307 fi
4308 ac_test_CFLAGS=${CFLAGS+set}
4309 ac_save_CFLAGS=$CFLAGS
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4311 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4312 if test "${ac_cv_prog_cc_g+set}" = set; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 ac_save_c_werror_flag=$ac_c_werror_flag
4316 ac_c_werror_flag=yes
4317 ac_cv_prog_cc_g=no
4318 CFLAGS="-g"
4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h. */
4321
4322 int
4323 main ()
4324 {
4325
4326 ;
4327 return 0;
4328 }
4329 _ACEOF
4330 if ac_fn_c_try_compile "$LINENO"; then :
4331 ac_cv_prog_cc_g=yes
4332 else
4333 CFLAGS=""
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4336
4337 int
4338 main ()
4339 {
4340
4341 ;
4342 return 0;
4343 }
4344 _ACEOF
4345 if ac_fn_c_try_compile "$LINENO"; then :
4346
4347 else
4348 ac_c_werror_flag=$ac_save_c_werror_flag
4349 CFLAGS="-g"
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352
4353 int
4354 main ()
4355 {
4356
4357 ;
4358 return 0;
4359 }
4360 _ACEOF
4361 if ac_fn_c_try_compile "$LINENO"; then :
4362 ac_cv_prog_cc_g=yes
4363 fi
4364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365 fi
4366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4367 fi
4368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369 ac_c_werror_flag=$ac_save_c_werror_flag
4370 fi
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4372 $as_echo "$ac_cv_prog_cc_g" >&6; }
4373 if test "$ac_test_CFLAGS" = set; then
4374 CFLAGS=$ac_save_CFLAGS
4375 elif test $ac_cv_prog_cc_g = yes; then
4376 if test "$GCC" = yes; then
4377 CFLAGS="-g -O2"
4378 else
4379 CFLAGS="-g"
4380 fi
4381 else
4382 if test "$GCC" = yes; then
4383 CFLAGS="-O2"
4384 else
4385 CFLAGS=
4386 fi
4387 fi
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4389 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4390 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4391 $as_echo_n "(cached) " >&6
4392 else
4393 ac_cv_prog_cc_c89=no
4394 ac_save_CC=$CC
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4397 #include <stdarg.h>
4398 #include <stdio.h>
4399 #include <sys/types.h>
4400 #include <sys/stat.h>
4401 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4402 struct buf { int x; };
4403 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4404 static char *e (p, i)
4405 char **p;
4406 int i;
4407 {
4408 return p[i];
4409 }
4410 static char *f (char * (*g) (char **, int), char **p, ...)
4411 {
4412 char *s;
4413 va_list v;
4414 va_start (v,p);
4415 s = g (p, va_arg (v,int));
4416 va_end (v);
4417 return s;
4418 }
4419
4420 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4421 function prototypes and stuff, but not '\xHH' hex character constants.
4422 These don't provoke an error unfortunately, instead are silently treated
4423 as 'x'. The following induces an error, until -std is added to get
4424 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4425 array size at least. It's necessary to write '\x00'==0 to get something
4426 that's true only with -std. */
4427 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4428
4429 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4430 inside strings and character constants. */
4431 #define FOO(x) 'x'
4432 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4433
4434 int test (int i, double x);
4435 struct s1 {int (*f) (int a);};
4436 struct s2 {int (*f) (double a);};
4437 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4438 int argc;
4439 char **argv;
4440 int
4441 main ()
4442 {
4443 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4444 ;
4445 return 0;
4446 }
4447 _ACEOF
4448 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4449 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4450 do
4451 CC="$ac_save_CC $ac_arg"
4452 if ac_fn_c_try_compile "$LINENO"; then :
4453 ac_cv_prog_cc_c89=$ac_arg
4454 fi
4455 rm -f core conftest.err conftest.$ac_objext
4456 test "x$ac_cv_prog_cc_c89" != "xno" && break
4457 done
4458 rm -f conftest.$ac_ext
4459 CC=$ac_save_CC
4460
4461 fi
4462 # AC_CACHE_VAL
4463 case "x$ac_cv_prog_cc_c89" in
4464 x)
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4466 $as_echo "none needed" >&6; } ;;
4467 xno)
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4469 $as_echo "unsupported" >&6; } ;;
4470 *)
4471 CC="$CC $ac_cv_prog_cc_c89"
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4473 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4474 esac
4475 if test "x$ac_cv_prog_cc_c89" != xno; then :
4476
4477 fi
4478
4479 ac_ext=c
4480 ac_cpp='$CPP $CPPFLAGS'
4481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4484
4485 depcc="$CC" am_compiler_list=
4486
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4488 $as_echo_n "checking dependency style of $depcc... " >&6; }
4489 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4490 $as_echo_n "(cached) " >&6
4491 else
4492 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4493 # We make a subdir and do the tests there. Otherwise we can end up
4494 # making bogus files that we don't know about and never remove. For
4495 # instance it was reported that on HP-UX the gcc test will end up
4496 # making a dummy file named `D' -- because `-MD' means `put the output
4497 # in D'.
4498 mkdir conftest.dir
4499 # Copy depcomp to subdir because otherwise we won't find it if we're
4500 # using a relative directory.
4501 cp "$am_depcomp" conftest.dir
4502 cd conftest.dir
4503 # We will build objects and dependencies in a subdirectory because
4504 # it helps to detect inapplicable dependency modes. For instance
4505 # both Tru64's cc and ICC support -MD to output dependencies as a
4506 # side effect of compilation, but ICC will put the dependencies in
4507 # the current directory while Tru64 will put them in the object
4508 # directory.
4509 mkdir sub
4510
4511 am_cv_CC_dependencies_compiler_type=none
4512 if test "$am_compiler_list" = ""; then
4513 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4514 fi
4515 am__universal=false
4516 case " $depcc " in #(
4517 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4518 esac
4519
4520 for depmode in $am_compiler_list; do
4521 # Setup a source with many dependencies, because some compilers
4522 # like to wrap large dependency lists on column 80 (with \), and
4523 # we should not choose a depcomp mode which is confused by this.
4524 #
4525 # We need to recreate these files for each test, as the compiler may
4526 # overwrite some of them when testing with obscure command lines.
4527 # This happens at least with the AIX C compiler.
4528 : > sub/conftest.c
4529 for i in 1 2 3 4 5 6; do
4530 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4531 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4532 # Solaris 8's {/usr,}/bin/sh.
4533 touch sub/conftst$i.h
4534 done
4535 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4536
4537 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4538 # mode. It turns out that the SunPro C++ compiler does not properly
4539 # handle `-M -o', and we need to detect this. Also, some Intel
4540 # versions had trouble with output in subdirs
4541 am__obj=sub/conftest.${OBJEXT-o}
4542 am__minus_obj="-o $am__obj"
4543 case $depmode in
4544 gcc)
4545 # This depmode causes a compiler race in universal mode.
4546 test "$am__universal" = false || continue
4547 ;;
4548 nosideeffect)
4549 # after this tag, mechanisms are not by side-effect, so they'll
4550 # only be used when explicitly requested
4551 if test "x$enable_dependency_tracking" = xyes; then
4552 continue
4553 else
4554 break
4555 fi
4556 ;;
4557 msvisualcpp | msvcmsys)
4558 # This compiler won't grok `-c -o', but also, the minuso test has
4559 # not run yet. These depmodes are late enough in the game, and
4560 # so weak that their functioning should not be impacted.
4561 am__obj=conftest.${OBJEXT-o}
4562 am__minus_obj=
4563 ;;
4564 none) break ;;
4565 esac
4566 if depmode=$depmode \
4567 source=sub/conftest.c object=$am__obj \
4568 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4569 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4570 >/dev/null 2>conftest.err &&
4571 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4572 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4573 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4574 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4575 # icc doesn't choke on unknown options, it will just issue warnings
4576 # or remarks (even with -Werror). So we grep stderr for any message
4577 # that says an option was ignored or not supported.
4578 # When given -MP, icc 7.0 and 7.1 complain thusly:
4579 # icc: Command line warning: ignoring option '-M'; no argument required
4580 # The diagnosis changed in icc 8.0:
4581 # icc: Command line remark: option '-MP' not supported
4582 if (grep 'ignoring option' conftest.err ||
4583 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4584 am_cv_CC_dependencies_compiler_type=$depmode
4585 break
4586 fi
4587 fi
4588 done
4589
4590 cd ..
4591 rm -rf conftest.dir
4592 else
4593 am_cv_CC_dependencies_compiler_type=none
4594 fi
4595
4596 fi
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4598 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4599 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4600
4601 if
4602 test "x$enable_dependency_tracking" != xno \
4603 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4604 am__fastdepCC_TRUE=
4605 am__fastdepCC_FALSE='#'
4606 else
4607 am__fastdepCC_TRUE='#'
4608 am__fastdepCC_FALSE=
4609 fi
4610
4611
4612 case `pwd` in
4613 *\ * | *\ *)
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4615 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4616 esac
4617
4618
4619
4620 macro_version='2.2.10'
4621 macro_revision='1.3175'
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635 ltmain="$ac_aux_dir/ltmain.sh"
4636
4637 # Backslashify metacharacters that are still active within
4638 # double-quoted strings.
4639 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4640
4641 # Same as above, but do not quote variable references.
4642 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4643
4644 # Sed substitution to delay expansion of an escaped shell variable in a
4645 # double_quote_subst'ed string.
4646 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4647
4648 # Sed substitution to delay expansion of an escaped single quote.
4649 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4650
4651 # Sed substitution to avoid accidental globbing in evaled expressions
4652 no_glob_subst='s/\*/\\\*/g'
4653
4654 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4655 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4656 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4657
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4659 $as_echo_n "checking how to print strings... " >&6; }
4660 # Test print first, because it will be a builtin if present.
4661 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4662 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4663 ECHO='print -r --'
4664 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4665 ECHO='printf %s\n'
4666 else
4667 # Use this function as a fallback that always works.
4668 func_fallback_echo ()
4669 {
4670 eval 'cat <<_LTECHO_EOF
4671 $1
4672 _LTECHO_EOF'
4673 }
4674 ECHO='func_fallback_echo'
4675 fi
4676
4677 # func_echo_all arg...
4678 # Invoke $ECHO with all args, space-separated.
4679 func_echo_all ()
4680 {
4681 $ECHO ""
4682 }
4683
4684 case "$ECHO" in
4685 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4686 $as_echo "printf" >&6; } ;;
4687 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4688 $as_echo "print -r" >&6; } ;;
4689 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4690 $as_echo "cat" >&6; } ;;
4691 esac
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4707 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4708 if test "${ac_cv_path_SED+set}" = set; then :
4709 $as_echo_n "(cached) " >&6
4710 else
4711 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4712 for ac_i in 1 2 3 4 5 6 7; do
4713 ac_script="$ac_script$as_nl$ac_script"
4714 done
4715 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4716 { ac_script=; unset ac_script;}
4717 if test -z "$SED"; then
4718 ac_path_SED_found=false
4719 # Loop through the user's path and test for each of PROGNAME-LIST
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in $PATH
4722 do
4723 IFS=$as_save_IFS
4724 test -z "$as_dir" && as_dir=.
4725 for ac_prog in sed gsed; do
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4728 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4729 # Check for GNU ac_path_SED and select it if it is found.
4730 # Check for GNU $ac_path_SED
4731 case `"$ac_path_SED" --version 2>&1` in
4732 *GNU*)
4733 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4734 *)
4735 ac_count=0
4736 $as_echo_n 0123456789 >"conftest.in"
4737 while :
4738 do
4739 cat "conftest.in" "conftest.in" >"conftest.tmp"
4740 mv "conftest.tmp" "conftest.in"
4741 cp "conftest.in" "conftest.nl"
4742 $as_echo '' >> "conftest.nl"
4743 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4744 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4745 as_fn_arith $ac_count + 1 && ac_count=$as_val
4746 if test $ac_count -gt ${ac_path_SED_max-0}; then
4747 # Best one so far, save it but keep looking for a better one
4748 ac_cv_path_SED="$ac_path_SED"
4749 ac_path_SED_max=$ac_count
4750 fi
4751 # 10*(2^10) chars as input seems more than enough
4752 test $ac_count -gt 10 && break
4753 done
4754 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4755 esac
4756
4757 $ac_path_SED_found && break 3
4758 done
4759 done
4760 done
4761 IFS=$as_save_IFS
4762 if test -z "$ac_cv_path_SED"; then
4763 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4764 fi
4765 else
4766 ac_cv_path_SED=$SED
4767 fi
4768
4769 fi
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4771 $as_echo "$ac_cv_path_SED" >&6; }
4772 SED="$ac_cv_path_SED"
4773 rm -f conftest.sed
4774
4775 test -z "$SED" && SED=sed
4776 Xsed="$SED -e 1s/^X//"
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4789 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4790 if test "${ac_cv_path_GREP+set}" = set; then :
4791 $as_echo_n "(cached) " >&6
4792 else
4793 if test -z "$GREP"; then
4794 ac_path_GREP_found=false
4795 # Loop through the user's path and test for each of PROGNAME-LIST
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4798 do
4799 IFS=$as_save_IFS
4800 test -z "$as_dir" && as_dir=.
4801 for ac_prog in grep ggrep; do
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4804 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4805 # Check for GNU ac_path_GREP and select it if it is found.
4806 # Check for GNU $ac_path_GREP
4807 case `"$ac_path_GREP" --version 2>&1` in
4808 *GNU*)
4809 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4810 *)
4811 ac_count=0
4812 $as_echo_n 0123456789 >"conftest.in"
4813 while :
4814 do
4815 cat "conftest.in" "conftest.in" >"conftest.tmp"
4816 mv "conftest.tmp" "conftest.in"
4817 cp "conftest.in" "conftest.nl"
4818 $as_echo 'GREP' >> "conftest.nl"
4819 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4820 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4821 as_fn_arith $ac_count + 1 && ac_count=$as_val
4822 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4823 # Best one so far, save it but keep looking for a better one
4824 ac_cv_path_GREP="$ac_path_GREP"
4825 ac_path_GREP_max=$ac_count
4826 fi
4827 # 10*(2^10) chars as input seems more than enough
4828 test $ac_count -gt 10 && break
4829 done
4830 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4831 esac
4832
4833 $ac_path_GREP_found && break 3
4834 done
4835 done
4836 done
4837 IFS=$as_save_IFS
4838 if test -z "$ac_cv_path_GREP"; then
4839 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4840 fi
4841 else
4842 ac_cv_path_GREP=$GREP
4843 fi
4844
4845 fi
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4847 $as_echo "$ac_cv_path_GREP" >&6; }
4848 GREP="$ac_cv_path_GREP"
4849
4850
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4852 $as_echo_n "checking for egrep... " >&6; }
4853 if test "${ac_cv_path_EGREP+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4857 then ac_cv_path_EGREP="$GREP -E"
4858 else
4859 if test -z "$EGREP"; then
4860 ac_path_EGREP_found=false
4861 # Loop through the user's path and test for each of PROGNAME-LIST
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4864 do
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_prog in egrep; do
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4870 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4871 # Check for GNU ac_path_EGREP and select it if it is found.
4872 # Check for GNU $ac_path_EGREP
4873 case `"$ac_path_EGREP" --version 2>&1` in
4874 *GNU*)
4875 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4876 *)
4877 ac_count=0
4878 $as_echo_n 0123456789 >"conftest.in"
4879 while :
4880 do
4881 cat "conftest.in" "conftest.in" >"conftest.tmp"
4882 mv "conftest.tmp" "conftest.in"
4883 cp "conftest.in" "conftest.nl"
4884 $as_echo 'EGREP' >> "conftest.nl"
4885 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4886 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4887 as_fn_arith $ac_count + 1 && ac_count=$as_val
4888 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4889 # Best one so far, save it but keep looking for a better one
4890 ac_cv_path_EGREP="$ac_path_EGREP"
4891 ac_path_EGREP_max=$ac_count
4892 fi
4893 # 10*(2^10) chars as input seems more than enough
4894 test $ac_count -gt 10 && break
4895 done
4896 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4897 esac
4898
4899 $ac_path_EGREP_found && break 3
4900 done
4901 done
4902 done
4903 IFS=$as_save_IFS
4904 if test -z "$ac_cv_path_EGREP"; then
4905 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4906 fi
4907 else
4908 ac_cv_path_EGREP=$EGREP
4909 fi
4910
4911 fi
4912 fi
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4914 $as_echo "$ac_cv_path_EGREP" >&6; }
4915 EGREP="$ac_cv_path_EGREP"
4916
4917
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4919 $as_echo_n "checking for fgrep... " >&6; }
4920 if test "${ac_cv_path_FGREP+set}" = set; then :
4921 $as_echo_n "(cached) " >&6
4922 else
4923 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4924 then ac_cv_path_FGREP="$GREP -F"
4925 else
4926 if test -z "$FGREP"; then
4927 ac_path_FGREP_found=false
4928 # Loop through the user's path and test for each of PROGNAME-LIST
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4931 do
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_prog in fgrep; do
4935 for ac_exec_ext in '' $ac_executable_extensions; do
4936 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4937 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4938 # Check for GNU ac_path_FGREP and select it if it is found.
4939 # Check for GNU $ac_path_FGREP
4940 case `"$ac_path_FGREP" --version 2>&1` in
4941 *GNU*)
4942 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4943 *)
4944 ac_count=0
4945 $as_echo_n 0123456789 >"conftest.in"
4946 while :
4947 do
4948 cat "conftest.in" "conftest.in" >"conftest.tmp"
4949 mv "conftest.tmp" "conftest.in"
4950 cp "conftest.in" "conftest.nl"
4951 $as_echo 'FGREP' >> "conftest.nl"
4952 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4953 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4954 as_fn_arith $ac_count + 1 && ac_count=$as_val
4955 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4956 # Best one so far, save it but keep looking for a better one
4957 ac_cv_path_FGREP="$ac_path_FGREP"
4958 ac_path_FGREP_max=$ac_count
4959 fi
4960 # 10*(2^10) chars as input seems more than enough
4961 test $ac_count -gt 10 && break
4962 done
4963 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4964 esac
4965
4966 $ac_path_FGREP_found && break 3
4967 done
4968 done
4969 done
4970 IFS=$as_save_IFS
4971 if test -z "$ac_cv_path_FGREP"; then
4972 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4973 fi
4974 else
4975 ac_cv_path_FGREP=$FGREP
4976 fi
4977
4978 fi
4979 fi
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4981 $as_echo "$ac_cv_path_FGREP" >&6; }
4982 FGREP="$ac_cv_path_FGREP"
4983
4984
4985 test -z "$GREP" && GREP=grep
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005 # Check whether --with-gnu-ld was given.
5006 if test "${with_gnu_ld+set}" = set; then :
5007 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5008 else
5009 with_gnu_ld=no
5010 fi
5011
5012 ac_prog=ld
5013 if test "$GCC" = yes; then
5014 # Check if gcc -print-prog-name=ld gives a path.
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5016 $as_echo_n "checking for ld used by $CC... " >&6; }
5017 case $host in
5018 *-*-mingw*)
5019 # gcc leaves a trailing carriage return which upsets mingw
5020 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5021 *)
5022 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5023 esac
5024 case $ac_prog in
5025 # Accept absolute paths.
5026 [\\/]* | ?:[\\/]*)
5027 re_direlt='/[^/][^/]*/\.\./'
5028 # Canonicalize the pathname of ld
5029 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5030 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5031 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5032 done
5033 test -z "$LD" && LD="$ac_prog"
5034 ;;
5035 "")
5036 # If it fails, then pretend we aren't using GCC.
5037 ac_prog=ld
5038 ;;
5039 *)
5040 # If it is relative, then search for the first ld in PATH.
5041 with_gnu_ld=unknown
5042 ;;
5043 esac
5044 elif test "$with_gnu_ld" = yes; then
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5046 $as_echo_n "checking for GNU ld... " >&6; }
5047 else
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5049 $as_echo_n "checking for non-GNU ld... " >&6; }
5050 fi
5051 if test "${lt_cv_path_LD+set}" = set; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 if test -z "$LD"; then
5055 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5056 for ac_dir in $PATH; do
5057 IFS="$lt_save_ifs"
5058 test -z "$ac_dir" && ac_dir=.
5059 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5060 lt_cv_path_LD="$ac_dir/$ac_prog"
5061 # Check to see if the program is GNU ld. I'd rather use --version,
5062 # but apparently some variants of GNU ld only accept -v.
5063 # Break only if it was the GNU/non-GNU ld that we prefer.
5064 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5065 *GNU* | *'with BFD'*)
5066 test "$with_gnu_ld" != no && break
5067 ;;
5068 *)
5069 test "$with_gnu_ld" != yes && break
5070 ;;
5071 esac
5072 fi
5073 done
5074 IFS="$lt_save_ifs"
5075 else
5076 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5077 fi
5078 fi
5079
5080 LD="$lt_cv_path_LD"
5081 if test -n "$LD"; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5083 $as_echo "$LD" >&6; }
5084 else
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5087 fi
5088 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5090 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5091 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5095 case `$LD -v 2>&1 </dev/null` in
5096 *GNU* | *'with BFD'*)
5097 lt_cv_prog_gnu_ld=yes
5098 ;;
5099 *)
5100 lt_cv_prog_gnu_ld=no
5101 ;;
5102 esac
5103 fi
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5105 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5106 with_gnu_ld=$lt_cv_prog_gnu_ld
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5117 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5118 if test "${lt_cv_path_NM+set}" = set; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 if test -n "$NM"; then
5122 # Let the user override the test.
5123 lt_cv_path_NM="$NM"
5124 else
5125 lt_nm_to_check="${ac_tool_prefix}nm"
5126 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5127 lt_nm_to_check="$lt_nm_to_check nm"
5128 fi
5129 for lt_tmp_nm in $lt_nm_to_check; do
5130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5131 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5132 IFS="$lt_save_ifs"
5133 test -z "$ac_dir" && ac_dir=.
5134 tmp_nm="$ac_dir/$lt_tmp_nm"
5135 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5136 # Check to see if the nm accepts a BSD-compat flag.
5137 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5138 # nm: unknown option "B" ignored
5139 # Tru64's nm complains that /dev/null is an invalid object file
5140 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5141 */dev/null* | *'Invalid file or object type'*)
5142 lt_cv_path_NM="$tmp_nm -B"
5143 break
5144 ;;
5145 *)
5146 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5147 */dev/null*)
5148 lt_cv_path_NM="$tmp_nm -p"
5149 break
5150 ;;
5151 *)
5152 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5153 continue # so that we can try to find one that supports BSD flags
5154 ;;
5155 esac
5156 ;;
5157 esac
5158 fi
5159 done
5160 IFS="$lt_save_ifs"
5161 done
5162 : ${lt_cv_path_NM=no}
5163 fi
5164 fi
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5166 $as_echo "$lt_cv_path_NM" >&6; }
5167 if test "$lt_cv_path_NM" != "no"; then
5168 NM="$lt_cv_path_NM"
5169 else
5170 # Didn't find any BSD compatible name lister, look for dumpbin.
5171 if test -n "$DUMPBIN"; then :
5172 # Let the user override the test.
5173 else
5174 if test -n "$ac_tool_prefix"; then
5175 for ac_prog in dumpbin "link -dump"
5176 do
5177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5180 $as_echo_n "checking for $ac_word... " >&6; }
5181 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5182 $as_echo_n "(cached) " >&6
5183 else
5184 if test -n "$DUMPBIN"; then
5185 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5186 else
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 for as_dir in $PATH
5189 do
5190 IFS=$as_save_IFS
5191 test -z "$as_dir" && as_dir=.
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5194 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 break 2
5197 fi
5198 done
5199 done
5200 IFS=$as_save_IFS
5201
5202 fi
5203 fi
5204 DUMPBIN=$ac_cv_prog_DUMPBIN
5205 if test -n "$DUMPBIN"; then
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5207 $as_echo "$DUMPBIN" >&6; }
5208 else
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5210 $as_echo "no" >&6; }
5211 fi
5212
5213
5214 test -n "$DUMPBIN" && break
5215 done
5216 fi
5217 if test -z "$DUMPBIN"; then
5218 ac_ct_DUMPBIN=$DUMPBIN
5219 for ac_prog in dumpbin "link -dump"
5220 do
5221 # Extract the first word of "$ac_prog", so it can be a program name with args.
5222 set dummy $ac_prog; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5226 $as_echo_n "(cached) " >&6
5227 else
5228 if test -n "$ac_ct_DUMPBIN"; then
5229 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5230 else
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5238 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5241 fi
5242 done
5243 done
5244 IFS=$as_save_IFS
5245
5246 fi
5247 fi
5248 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5249 if test -n "$ac_ct_DUMPBIN"; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5251 $as_echo "$ac_ct_DUMPBIN" >&6; }
5252 else
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5255 fi
5256
5257
5258 test -n "$ac_ct_DUMPBIN" && break
5259 done
5260
5261 if test "x$ac_ct_DUMPBIN" = x; then
5262 DUMPBIN=":"
5263 else
5264 case $cross_compiling:$ac_tool_warned in
5265 yes:)
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5268 ac_tool_warned=yes ;;
5269 esac
5270 DUMPBIN=$ac_ct_DUMPBIN
5271 fi
5272 fi
5273
5274 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5275 *COFF*)
5276 DUMPBIN="$DUMPBIN -symbols"
5277 ;;
5278 *)
5279 DUMPBIN=:
5280 ;;
5281 esac
5282 fi
5283
5284 if test "$DUMPBIN" != ":"; then
5285 NM="$DUMPBIN"
5286 fi
5287 fi
5288 test -z "$NM" && NM=nm
5289
5290
5291
5292
5293
5294
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5296 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5297 if test "${lt_cv_nm_interface+set}" = set; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 lt_cv_nm_interface="BSD nm"
5301 echo "int some_variable = 0;" > conftest.$ac_ext
5302 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5303 (eval "$ac_compile" 2>conftest.err)
5304 cat conftest.err >&5
5305 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5306 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5307 cat conftest.err >&5
5308 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5309 cat conftest.out >&5
5310 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5311 lt_cv_nm_interface="MS dumpbin"
5312 fi
5313 rm -f conftest*
5314 fi
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5316 $as_echo "$lt_cv_nm_interface" >&6; }
5317
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5319 $as_echo_n "checking whether ln -s works... " >&6; }
5320 LN_S=$as_ln_s
5321 if test "$LN_S" = "ln -s"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5323 $as_echo "yes" >&6; }
5324 else
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5326 $as_echo "no, using $LN_S" >&6; }
5327 fi
5328
5329 # find the maximum length of command line arguments
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5331 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5332 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5333 $as_echo_n "(cached) " >&6
5334 else
5335 i=0
5336 teststring="ABCD"
5337
5338 case $build_os in
5339 msdosdjgpp*)
5340 # On DJGPP, this test can blow up pretty badly due to problems in libc
5341 # (any single argument exceeding 2000 bytes causes a buffer overrun
5342 # during glob expansion). Even if it were fixed, the result of this
5343 # check would be larger than it should be.
5344 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5345 ;;
5346
5347 gnu*)
5348 # Under GNU Hurd, this test is not required because there is
5349 # no limit to the length of command line arguments.
5350 # Libtool will interpret -1 as no limit whatsoever
5351 lt_cv_sys_max_cmd_len=-1;
5352 ;;
5353
5354 cygwin* | mingw* | cegcc*)
5355 # On Win9x/ME, this test blows up -- it succeeds, but takes
5356 # about 5 minutes as the teststring grows exponentially.
5357 # Worse, since 9x/ME are not pre-emptively multitasking,
5358 # you end up with a "frozen" computer, even though with patience
5359 # the test eventually succeeds (with a max line length of 256k).
5360 # Instead, let's just punt: use the minimum linelength reported by
5361 # all of the supported platforms: 8192 (on NT/2K/XP).
5362 lt_cv_sys_max_cmd_len=8192;
5363 ;;
5364
5365 mint*)
5366 # On MiNT this can take a long time and run out of memory.
5367 lt_cv_sys_max_cmd_len=8192;
5368 ;;
5369
5370 amigaos*)
5371 # On AmigaOS with pdksh, this test takes hours, literally.
5372 # So we just punt and use a minimum line length of 8192.
5373 lt_cv_sys_max_cmd_len=8192;
5374 ;;
5375
5376 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5377 # This has been around since 386BSD, at least. Likely further.
5378 if test -x /sbin/sysctl; then
5379 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5380 elif test -x /usr/sbin/sysctl; then
5381 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5382 else
5383 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5384 fi
5385 # And add a safety zone
5386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5387 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5388 ;;
5389
5390 interix*)
5391 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5392 lt_cv_sys_max_cmd_len=196608
5393 ;;
5394
5395 osf*)
5396 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5397 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5398 # nice to cause kernel panics so lets avoid the loop below.
5399 # First set a reasonable default.
5400 lt_cv_sys_max_cmd_len=16384
5401 #
5402 if test -x /sbin/sysconfig; then
5403 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5404 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5405 esac
5406 fi
5407 ;;
5408 sco3.2v5*)
5409 lt_cv_sys_max_cmd_len=102400
5410 ;;
5411 sysv5* | sco5v6* | sysv4.2uw2*)
5412 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5413 if test -n "$kargmax"; then
5414 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5415 else
5416 lt_cv_sys_max_cmd_len=32768
5417 fi
5418 ;;
5419 *)
5420 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5421 if test -n "$lt_cv_sys_max_cmd_len"; then
5422 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5424 else
5425 # Make teststring a little bigger before we do anything with it.
5426 # a 1K string should be a reasonable start.
5427 for i in 1 2 3 4 5 6 7 8 ; do
5428 teststring=$teststring$teststring
5429 done
5430 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5431 # If test is not a shell built-in, we'll probably end up computing a
5432 # maximum length that is only half of the actual maximum length, but
5433 # we can't tell.
5434 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5435 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5436 test $i != 17 # 1/2 MB should be enough
5437 do
5438 i=`expr $i + 1`
5439 teststring=$teststring$teststring
5440 done
5441 # Only check the string length outside the loop.
5442 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5443 teststring=
5444 # Add a significant safety factor because C++ compilers can tack on
5445 # massive amounts of additional arguments before passing them to the
5446 # linker. It appears as though 1/2 is a usable value.
5447 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5448 fi
5449 ;;
5450 esac
5451
5452 fi
5453
5454 if test -n $lt_cv_sys_max_cmd_len ; then
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5456 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5457 else
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5459 $as_echo "none" >&6; }
5460 fi
5461 max_cmd_len=$lt_cv_sys_max_cmd_len
5462
5463
5464
5465
5466
5467
5468 : ${CP="cp -f"}
5469 : ${MV="mv -f"}
5470 : ${RM="rm -f"}
5471
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5473 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5474 # Try some XSI features
5475 xsi_shell=no
5476 ( _lt_dummy="a/b/c"
5477 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5478 = c,a/b,, \
5479 && eval 'test $(( 1 + 1 )) -eq 2 \
5480 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5481 && xsi_shell=yes
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5483 $as_echo "$xsi_shell" >&6; }
5484
5485
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5487 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5488 lt_shell_append=no
5489 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5490 >/dev/null 2>&1 \
5491 && lt_shell_append=yes
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5493 $as_echo "$lt_shell_append" >&6; }
5494
5495
5496 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5497 lt_unset=unset
5498 else
5499 lt_unset=false
5500 fi
5501
5502
5503
5504
5505
5506 # test EBCDIC or ASCII
5507 case `echo X|tr X '\101'` in
5508 A) # ASCII based system
5509 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5510 lt_SP2NL='tr \040 \012'
5511 lt_NL2SP='tr \015\012 \040\040'
5512 ;;
5513 *) # EBCDIC based system
5514 lt_SP2NL='tr \100 \n'
5515 lt_NL2SP='tr \r\n \100\100'
5516 ;;
5517 esac
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5528 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5529 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 lt_cv_ld_reload_flag='-r'
5533 fi
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5535 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5536 reload_flag=$lt_cv_ld_reload_flag
5537 case $reload_flag in
5538 "" | " "*) ;;
5539 *) reload_flag=" $reload_flag" ;;
5540 esac
5541 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5542 case $host_os in
5543 darwin*)
5544 if test "$GCC" = yes; then
5545 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5546 else
5547 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5548 fi
5549 ;;
5550 esac
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560 if test -n "$ac_tool_prefix"; then
5561 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5562 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564 $as_echo_n "checking for $ac_word... " >&6; }
5565 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5566 $as_echo_n "(cached) " >&6
5567 else
5568 if test -n "$OBJDUMP"; then
5569 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5570 else
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 for as_dir in $PATH
5573 do
5574 IFS=$as_save_IFS
5575 test -z "$as_dir" && as_dir=.
5576 for ac_exec_ext in '' $ac_executable_extensions; do
5577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5578 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5580 break 2
5581 fi
5582 done
5583 done
5584 IFS=$as_save_IFS
5585
5586 fi
5587 fi
5588 OBJDUMP=$ac_cv_prog_OBJDUMP
5589 if test -n "$OBJDUMP"; then
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5591 $as_echo "$OBJDUMP" >&6; }
5592 else
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594 $as_echo "no" >&6; }
5595 fi
5596
5597
5598 fi
5599 if test -z "$ac_cv_prog_OBJDUMP"; then
5600 ac_ct_OBJDUMP=$OBJDUMP
5601 # Extract the first word of "objdump", so it can be a program name with args.
5602 set dummy objdump; ac_word=$2
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 if test -n "$ac_ct_OBJDUMP"; then
5609 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5610 else
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH
5613 do
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5618 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 break 2
5621 fi
5622 done
5623 done
5624 IFS=$as_save_IFS
5625
5626 fi
5627 fi
5628 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5629 if test -n "$ac_ct_OBJDUMP"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5631 $as_echo "$ac_ct_OBJDUMP" >&6; }
5632 else
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 $as_echo "no" >&6; }
5635 fi
5636
5637 if test "x$ac_ct_OBJDUMP" = x; then
5638 OBJDUMP="false"
5639 else
5640 case $cross_compiling:$ac_tool_warned in
5641 yes:)
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5644 ac_tool_warned=yes ;;
5645 esac
5646 OBJDUMP=$ac_ct_OBJDUMP
5647 fi
5648 else
5649 OBJDUMP="$ac_cv_prog_OBJDUMP"
5650 fi
5651
5652 test -z "$OBJDUMP" && OBJDUMP=objdump
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5663 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5664 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5665 $as_echo_n "(cached) " >&6
5666 else
5667 lt_cv_file_magic_cmd='$MAGIC_CMD'
5668 lt_cv_file_magic_test_file=
5669 lt_cv_deplibs_check_method='unknown'
5670 # Need to set the preceding variable on all platforms that support
5671 # interlibrary dependencies.
5672 # 'none' -- dependencies not supported.
5673 # `unknown' -- same as none, but documents that we really don't know.
5674 # 'pass_all' -- all dependencies passed with no checks.
5675 # 'test_compile' -- check by making test program.
5676 # 'file_magic [[regex]]' -- check by looking for files in library path
5677 # which responds to the $file_magic_cmd with a given extended regex.
5678 # If you have `file' or equivalent on your system and you're not sure
5679 # whether `pass_all' will *always* work, you probably want this one.
5680
5681 case $host_os in
5682 aix[4-9]*)
5683 lt_cv_deplibs_check_method=pass_all
5684 ;;
5685
5686 beos*)
5687 lt_cv_deplibs_check_method=pass_all
5688 ;;
5689
5690 bsdi[45]*)
5691 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5692 lt_cv_file_magic_cmd='/usr/bin/file -L'
5693 lt_cv_file_magic_test_file=/shlib/libc.so
5694 ;;
5695
5696 cygwin*)
5697 # func_win32_libid is a shell function defined in ltmain.sh
5698 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5699 lt_cv_file_magic_cmd='func_win32_libid'
5700 ;;
5701
5702 mingw* | pw32*)
5703 # Base MSYS/MinGW do not provide the 'file' command needed by
5704 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5705 # unless we find 'file', for example because we are cross-compiling.
5706 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5707 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5708 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5709 lt_cv_file_magic_cmd='func_win32_libid'
5710 else
5711 # Keep this pattern in sync with the one in func_win32_libid.
5712 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5713 lt_cv_file_magic_cmd='$OBJDUMP -f'
5714 fi
5715 ;;
5716
5717 cegcc*)
5718 # use the weaker test based on 'objdump'. See mingw*.
5719 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5720 lt_cv_file_magic_cmd='$OBJDUMP -f'
5721 ;;
5722
5723 darwin* | rhapsody*)
5724 lt_cv_deplibs_check_method=pass_all
5725 ;;
5726
5727 freebsd* | dragonfly*)
5728 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5729 case $host_cpu in
5730 i*86 )
5731 # Not sure whether the presence of OpenBSD here was a mistake.
5732 # Let's accept both of them until this is cleared up.
5733 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5734 lt_cv_file_magic_cmd=/usr/bin/file
5735 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5736 ;;
5737 esac
5738 else
5739 lt_cv_deplibs_check_method=pass_all
5740 fi
5741 ;;
5742
5743 gnu*)
5744 lt_cv_deplibs_check_method=pass_all
5745 ;;
5746
5747 haiku*)
5748 lt_cv_deplibs_check_method=pass_all
5749 ;;
5750
5751 hpux10.20* | hpux11*)
5752 lt_cv_file_magic_cmd=/usr/bin/file
5753 case $host_cpu in
5754 ia64*)
5755 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5756 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5757 ;;
5758 hppa*64*)
5759 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]'
5760 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5761 ;;
5762 *)
5763 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5764 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5765 ;;
5766 esac
5767 ;;
5768
5769 interix[3-9]*)
5770 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5772 ;;
5773
5774 irix5* | irix6* | nonstopux*)
5775 case $LD in
5776 *-32|*"-32 ") libmagic=32-bit;;
5777 *-n32|*"-n32 ") libmagic=N32;;
5778 *-64|*"-64 ") libmagic=64-bit;;
5779 *) libmagic=never-match;;
5780 esac
5781 lt_cv_deplibs_check_method=pass_all
5782 ;;
5783
5784 # This must be Linux ELF.
5785 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5786 lt_cv_deplibs_check_method=pass_all
5787 ;;
5788
5789 netbsd*)
5790 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5791 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5792 else
5793 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5794 fi
5795 ;;
5796
5797 newos6*)
5798 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5799 lt_cv_file_magic_cmd=/usr/bin/file
5800 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5801 ;;
5802
5803 *nto* | *qnx*)
5804 lt_cv_deplibs_check_method=pass_all
5805 ;;
5806
5807 openbsd*)
5808 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5809 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5810 else
5811 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5812 fi
5813 ;;
5814
5815 osf3* | osf4* | osf5*)
5816 lt_cv_deplibs_check_method=pass_all
5817 ;;
5818
5819 rdos*)
5820 lt_cv_deplibs_check_method=pass_all
5821 ;;
5822
5823 solaris*)
5824 lt_cv_deplibs_check_method=pass_all
5825 ;;
5826
5827 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5828 lt_cv_deplibs_check_method=pass_all
5829 ;;
5830
5831 sysv4 | sysv4.3*)
5832 case $host_vendor in
5833 motorola)
5834 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]'
5835 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5836 ;;
5837 ncr)
5838 lt_cv_deplibs_check_method=pass_all
5839 ;;
5840 sequent)
5841 lt_cv_file_magic_cmd='/bin/file'
5842 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5843 ;;
5844 sni)
5845 lt_cv_file_magic_cmd='/bin/file'
5846 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5847 lt_cv_file_magic_test_file=/lib/libc.so
5848 ;;
5849 siemens)
5850 lt_cv_deplibs_check_method=pass_all
5851 ;;
5852 pc)
5853 lt_cv_deplibs_check_method=pass_all
5854 ;;
5855 esac
5856 ;;
5857
5858 tpf*)
5859 lt_cv_deplibs_check_method=pass_all
5860 ;;
5861 esac
5862
5863 fi
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5865 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5866 file_magic_cmd=$lt_cv_file_magic_cmd
5867 deplibs_check_method=$lt_cv_deplibs_check_method
5868 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881 if test -n "$ac_tool_prefix"; then
5882 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5883 set dummy ${ac_tool_prefix}ar; ac_word=$2
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5885 $as_echo_n "checking for $ac_word... " >&6; }
5886 if test "${ac_cv_prog_AR+set}" = set; then :
5887 $as_echo_n "(cached) " >&6
5888 else
5889 if test -n "$AR"; then
5890 ac_cv_prog_AR="$AR" # Let the user override the test.
5891 else
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 for as_dir in $PATH
5894 do
5895 IFS=$as_save_IFS
5896 test -z "$as_dir" && as_dir=.
5897 for ac_exec_ext in '' $ac_executable_extensions; do
5898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5899 ac_cv_prog_AR="${ac_tool_prefix}ar"
5900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5901 break 2
5902 fi
5903 done
5904 done
5905 IFS=$as_save_IFS
5906
5907 fi
5908 fi
5909 AR=$ac_cv_prog_AR
5910 if test -n "$AR"; then
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5912 $as_echo "$AR" >&6; }
5913 else
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5915 $as_echo "no" >&6; }
5916 fi
5917
5918
5919 fi
5920 if test -z "$ac_cv_prog_AR"; then
5921 ac_ct_AR=$AR
5922 # Extract the first word of "ar", so it can be a program name with args.
5923 set dummy ar; ac_word=$2
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5925 $as_echo_n "checking for $ac_word... " >&6; }
5926 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5927 $as_echo_n "(cached) " >&6
5928 else
5929 if test -n "$ac_ct_AR"; then
5930 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5931 else
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 for as_dir in $PATH
5934 do
5935 IFS=$as_save_IFS
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5939 ac_cv_prog_ac_ct_AR="ar"
5940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 break 2
5942 fi
5943 done
5944 done
5945 IFS=$as_save_IFS
5946
5947 fi
5948 fi
5949 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5950 if test -n "$ac_ct_AR"; then
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5952 $as_echo "$ac_ct_AR" >&6; }
5953 else
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955 $as_echo "no" >&6; }
5956 fi
5957
5958 if test "x$ac_ct_AR" = x; then
5959 AR="false"
5960 else
5961 case $cross_compiling:$ac_tool_warned in
5962 yes:)
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5965 ac_tool_warned=yes ;;
5966 esac
5967 AR=$ac_ct_AR
5968 fi
5969 else
5970 AR="$ac_cv_prog_AR"
5971 fi
5972
5973 test -z "$AR" && AR=ar
5974 test -z "$AR_FLAGS" && AR_FLAGS=cru
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986 if test -n "$ac_tool_prefix"; then
5987 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5988 set dummy ${ac_tool_prefix}strip; ac_word=$2
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5990 $as_echo_n "checking for $ac_word... " >&6; }
5991 if test "${ac_cv_prog_STRIP+set}" = set; then :
5992 $as_echo_n "(cached) " >&6
5993 else
5994 if test -n "$STRIP"; then
5995 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5996 else
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 for as_dir in $PATH
5999 do
6000 IFS=$as_save_IFS
6001 test -z "$as_dir" && as_dir=.
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6004 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 break 2
6007 fi
6008 done
6009 done
6010 IFS=$as_save_IFS
6011
6012 fi
6013 fi
6014 STRIP=$ac_cv_prog_STRIP
6015 if test -n "$STRIP"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6017 $as_echo "$STRIP" >&6; }
6018 else
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020 $as_echo "no" >&6; }
6021 fi
6022
6023
6024 fi
6025 if test -z "$ac_cv_prog_STRIP"; then
6026 ac_ct_STRIP=$STRIP
6027 # Extract the first word of "strip", so it can be a program name with args.
6028 set dummy strip; ac_word=$2
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030 $as_echo_n "checking for $ac_word... " >&6; }
6031 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6032 $as_echo_n "(cached) " >&6
6033 else
6034 if test -n "$ac_ct_STRIP"; then
6035 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6036 else
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 for as_dir in $PATH
6039 do
6040 IFS=$as_save_IFS
6041 test -z "$as_dir" && as_dir=.
6042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6044 ac_cv_prog_ac_ct_STRIP="strip"
6045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6046 break 2
6047 fi
6048 done
6049 done
6050 IFS=$as_save_IFS
6051
6052 fi
6053 fi
6054 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6055 if test -n "$ac_ct_STRIP"; then
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6057 $as_echo "$ac_ct_STRIP" >&6; }
6058 else
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6060 $as_echo "no" >&6; }
6061 fi
6062
6063 if test "x$ac_ct_STRIP" = x; then
6064 STRIP=":"
6065 else
6066 case $cross_compiling:$ac_tool_warned in
6067 yes:)
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6070 ac_tool_warned=yes ;;
6071 esac
6072 STRIP=$ac_ct_STRIP
6073 fi
6074 else
6075 STRIP="$ac_cv_prog_STRIP"
6076 fi
6077
6078 test -z "$STRIP" && STRIP=:
6079
6080
6081
6082
6083
6084
6085 if test -n "$ac_tool_prefix"; then
6086 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6087 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089 $as_echo_n "checking for $ac_word... " >&6; }
6090 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093 if test -n "$RANLIB"; then
6094 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6095 else
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $PATH
6098 do
6099 IFS=$as_save_IFS
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6103 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 break 2
6106 fi
6107 done
6108 done
6109 IFS=$as_save_IFS
6110
6111 fi
6112 fi
6113 RANLIB=$ac_cv_prog_RANLIB
6114 if test -n "$RANLIB"; then
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6116 $as_echo "$RANLIB" >&6; }
6117 else
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119 $as_echo "no" >&6; }
6120 fi
6121
6122
6123 fi
6124 if test -z "$ac_cv_prog_RANLIB"; then
6125 ac_ct_RANLIB=$RANLIB
6126 # Extract the first word of "ranlib", so it can be a program name with args.
6127 set dummy ranlib; ac_word=$2
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6129 $as_echo_n "checking for $ac_word... " >&6; }
6130 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6131 $as_echo_n "(cached) " >&6
6132 else
6133 if test -n "$ac_ct_RANLIB"; then
6134 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6135 else
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 for as_dir in $PATH
6138 do
6139 IFS=$as_save_IFS
6140 test -z "$as_dir" && as_dir=.
6141 for ac_exec_ext in '' $ac_executable_extensions; do
6142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6143 ac_cv_prog_ac_ct_RANLIB="ranlib"
6144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6145 break 2
6146 fi
6147 done
6148 done
6149 IFS=$as_save_IFS
6150
6151 fi
6152 fi
6153 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6154 if test -n "$ac_ct_RANLIB"; then
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6156 $as_echo "$ac_ct_RANLIB" >&6; }
6157 else
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6159 $as_echo "no" >&6; }
6160 fi
6161
6162 if test "x$ac_ct_RANLIB" = x; then
6163 RANLIB=":"
6164 else
6165 case $cross_compiling:$ac_tool_warned in
6166 yes:)
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6169 ac_tool_warned=yes ;;
6170 esac
6171 RANLIB=$ac_ct_RANLIB
6172 fi
6173 else
6174 RANLIB="$ac_cv_prog_RANLIB"
6175 fi
6176
6177 test -z "$RANLIB" && RANLIB=:
6178
6179
6180
6181
6182
6183
6184 # Determine commands to create old-style static archives.
6185 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6186 old_postinstall_cmds='chmod 644 $oldlib'
6187 old_postuninstall_cmds=
6188
6189 if test -n "$RANLIB"; then
6190 case $host_os in
6191 openbsd*)
6192 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6193 ;;
6194 *)
6195 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6196 ;;
6197 esac
6198 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6199 fi
6200
6201 case $host_os in
6202 darwin*)
6203 lock_old_archive_extraction=yes ;;
6204 *)
6205 lock_old_archive_extraction=no ;;
6206 esac
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246 # If no C compiler was specified, use CC.
6247 LTCC=${LTCC-"$CC"}
6248
6249 # If no C compiler flags were specified, use CFLAGS.
6250 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6251
6252 # Allow CC to be a program name with arguments.
6253 compiler=$CC
6254
6255
6256 # Check for command to grab the raw symbol name followed by C symbol from nm.
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6258 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6259 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6260 $as_echo_n "(cached) " >&6
6261 else
6262
6263 # These are sane defaults that work on at least a few old systems.
6264 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6265
6266 # Character class describing NM global symbol codes.
6267 symcode='[BCDEGRST]'
6268
6269 # Regexp to match symbols that can be accessed directly from C.
6270 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6271
6272 # Define system-specific variables.
6273 case $host_os in
6274 aix*)
6275 symcode='[BCDT]'
6276 ;;
6277 cygwin* | mingw* | pw32* | cegcc*)
6278 symcode='[ABCDGISTW]'
6279 ;;
6280 hpux*)
6281 if test "$host_cpu" = ia64; then
6282 symcode='[ABCDEGRST]'
6283 fi
6284 ;;
6285 irix* | nonstopux*)
6286 symcode='[BCDEGRST]'
6287 ;;
6288 osf*)
6289 symcode='[BCDEGQRST]'
6290 ;;
6291 solaris*)
6292 symcode='[BDRT]'
6293 ;;
6294 sco3.2v5*)
6295 symcode='[DT]'
6296 ;;
6297 sysv4.2uw2*)
6298 symcode='[DT]'
6299 ;;
6300 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6301 symcode='[ABDT]'
6302 ;;
6303 sysv4)
6304 symcode='[DFNSTU]'
6305 ;;
6306 esac
6307
6308 # If we're using GNU nm, then use its standard symbol codes.
6309 case `$NM -V 2>&1` in
6310 *GNU* | *'with BFD'*)
6311 symcode='[ABCDGIRSTW]' ;;
6312 esac
6313
6314 # Transform an extracted symbol line into a proper C declaration.
6315 # Some systems (esp. on ia64) link data and code symbols differently,
6316 # so use this general approach.
6317 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6318
6319 # Transform an extracted symbol line into symbol name and symbol address
6320 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6321 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'"
6322
6323 # Handle CRLF in mingw tool chain
6324 opt_cr=
6325 case $build_os in
6326 mingw*)
6327 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6328 ;;
6329 esac
6330
6331 # Try without a prefix underscore, then with it.
6332 for ac_symprfx in "" "_"; do
6333
6334 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6335 symxfrm="\\1 $ac_symprfx\\2 \\2"
6336
6337 # Write the raw and C identifiers.
6338 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6339 # Fake it for dumpbin and say T for any non-static function
6340 # and D for any global variable.
6341 # Also find C++ and __fastcall symbols from MSVC++,
6342 # which start with @ or ?.
6343 lt_cv_sys_global_symbol_pipe="$AWK '"\
6344 " {last_section=section; section=\$ 3};"\
6345 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6346 " \$ 0!~/External *\|/{next};"\
6347 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6348 " {if(hide[section]) next};"\
6349 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6350 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6351 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6352 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6353 " ' prfx=^$ac_symprfx"
6354 else
6355 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6356 fi
6357
6358 # Check to see that the pipe works correctly.
6359 pipe_works=no
6360
6361 rm -f conftest*
6362 cat > conftest.$ac_ext <<_LT_EOF
6363 #ifdef __cplusplus
6364 extern "C" {
6365 #endif
6366 char nm_test_var;
6367 void nm_test_func(void);
6368 void nm_test_func(void){}
6369 #ifdef __cplusplus
6370 }
6371 #endif
6372 int main(){nm_test_var='a';nm_test_func();return(0);}
6373 _LT_EOF
6374
6375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6376 (eval $ac_compile) 2>&5
6377 ac_status=$?
6378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6379 test $ac_status = 0; }; then
6380 # Now try to grab the symbols.
6381 nlist=conftest.nm
6382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6383 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6384 ac_status=$?
6385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6386 test $ac_status = 0; } && test -s "$nlist"; then
6387 # Try sorting and uniquifying the output.
6388 if sort "$nlist" | uniq > "$nlist"T; then
6389 mv -f "$nlist"T "$nlist"
6390 else
6391 rm -f "$nlist"T
6392 fi
6393
6394 # Make sure that we snagged all the symbols we need.
6395 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6396 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6397 cat <<_LT_EOF > conftest.$ac_ext
6398 #ifdef __cplusplus
6399 extern "C" {
6400 #endif
6401
6402 _LT_EOF
6403 # Now generate the symbol file.
6404 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6405
6406 cat <<_LT_EOF >> conftest.$ac_ext
6407
6408 /* The mapping between symbol names and symbols. */
6409 const struct {
6410 const char *name;
6411 void *address;
6412 }
6413 lt__PROGRAM__LTX_preloaded_symbols[] =
6414 {
6415 { "@PROGRAM@", (void *) 0 },
6416 _LT_EOF
6417 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6418 cat <<\_LT_EOF >> conftest.$ac_ext
6419 {0, (void *) 0}
6420 };
6421
6422 /* This works around a problem in FreeBSD linker */
6423 #ifdef FREEBSD_WORKAROUND
6424 static const void *lt_preloaded_setup() {
6425 return lt__PROGRAM__LTX_preloaded_symbols;
6426 }
6427 #endif
6428
6429 #ifdef __cplusplus
6430 }
6431 #endif
6432 _LT_EOF
6433 # Now try linking the two files.
6434 mv conftest.$ac_objext conftstm.$ac_objext
6435 lt_save_LIBS="$LIBS"
6436 lt_save_CFLAGS="$CFLAGS"
6437 LIBS="conftstm.$ac_objext"
6438 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6440 (eval $ac_link) 2>&5
6441 ac_status=$?
6442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6443 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6444 pipe_works=yes
6445 fi
6446 LIBS="$lt_save_LIBS"
6447 CFLAGS="$lt_save_CFLAGS"
6448 else
6449 echo "cannot find nm_test_func in $nlist" >&5
6450 fi
6451 else
6452 echo "cannot find nm_test_var in $nlist" >&5
6453 fi
6454 else
6455 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6456 fi
6457 else
6458 echo "$progname: failed program was:" >&5
6459 cat conftest.$ac_ext >&5
6460 fi
6461 rm -rf conftest* conftst*
6462
6463 # Do not use the global_symbol_pipe unless it works.
6464 if test "$pipe_works" = yes; then
6465 break
6466 else
6467 lt_cv_sys_global_symbol_pipe=
6468 fi
6469 done
6470
6471 fi
6472
6473 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6474 lt_cv_sys_global_symbol_to_cdecl=
6475 fi
6476 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6478 $as_echo "failed" >&6; }
6479 else
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6481 $as_echo "ok" >&6; }
6482 fi
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506 # Check whether --enable-libtool-lock was given.
6507 if test "${enable_libtool_lock+set}" = set; then :
6508 enableval=$enable_libtool_lock;
6509 fi
6510
6511 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6512
6513 # Some flags need to be propagated to the compiler or linker for good
6514 # libtool support.
6515 case $host in
6516 ia64-*-hpux*)
6517 # Find out which ABI we are using.
6518 echo 'int i;' > conftest.$ac_ext
6519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6520 (eval $ac_compile) 2>&5
6521 ac_status=$?
6522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6523 test $ac_status = 0; }; then
6524 case `/usr/bin/file conftest.$ac_objext` in
6525 *ELF-32*)
6526 HPUX_IA64_MODE="32"
6527 ;;
6528 *ELF-64*)
6529 HPUX_IA64_MODE="64"
6530 ;;
6531 esac
6532 fi
6533 rm -rf conftest*
6534 ;;
6535 *-*-irix6*)
6536 # Find out which ABI we are using.
6537 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6539 (eval $ac_compile) 2>&5
6540 ac_status=$?
6541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6542 test $ac_status = 0; }; then
6543 if test "$lt_cv_prog_gnu_ld" = yes; then
6544 case `/usr/bin/file conftest.$ac_objext` in
6545 *32-bit*)
6546 LD="${LD-ld} -melf32bsmip"
6547 ;;
6548 *N32*)
6549 LD="${LD-ld} -melf32bmipn32"
6550 ;;
6551 *64-bit*)
6552 LD="${LD-ld} -melf64bmip"
6553 ;;
6554 esac
6555 else
6556 case `/usr/bin/file conftest.$ac_objext` in
6557 *32-bit*)
6558 LD="${LD-ld} -32"
6559 ;;
6560 *N32*)
6561 LD="${LD-ld} -n32"
6562 ;;
6563 *64-bit*)
6564 LD="${LD-ld} -64"
6565 ;;
6566 esac
6567 fi
6568 fi
6569 rm -rf conftest*
6570 ;;
6571
6572 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6573 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6574 # Find out which ABI we are using.
6575 echo 'int i;' > conftest.$ac_ext
6576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6577 (eval $ac_compile) 2>&5
6578 ac_status=$?
6579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6580 test $ac_status = 0; }; then
6581 case `/usr/bin/file conftest.o` in
6582 *32-bit*)
6583 case $host in
6584 x86_64-*kfreebsd*-gnu)
6585 LD="${LD-ld} -m elf_i386_fbsd"
6586 ;;
6587 x86_64-*linux*)
6588 LD="${LD-ld} -m elf_i386"
6589 ;;
6590 ppc64-*linux*|powerpc64-*linux*)
6591 LD="${LD-ld} -m elf32ppclinux"
6592 ;;
6593 s390x-*linux*)
6594 LD="${LD-ld} -m elf_s390"
6595 ;;
6596 sparc64-*linux*)
6597 LD="${LD-ld} -m elf32_sparc"
6598 ;;
6599 esac
6600 ;;
6601 *64-bit*)
6602 case $host in
6603 x86_64-*kfreebsd*-gnu)
6604 LD="${LD-ld} -m elf_x86_64_fbsd"
6605 ;;
6606 x86_64-*linux*)
6607 LD="${LD-ld} -m elf_x86_64"
6608 ;;
6609 ppc*-*linux*|powerpc*-*linux*)
6610 LD="${LD-ld} -m elf64ppc"
6611 ;;
6612 s390*-*linux*|s390*-*tpf*)
6613 LD="${LD-ld} -m elf64_s390"
6614 ;;
6615 sparc*-*linux*)
6616 LD="${LD-ld} -m elf64_sparc"
6617 ;;
6618 esac
6619 ;;
6620 esac
6621 fi
6622 rm -rf conftest*
6623 ;;
6624
6625 *-*-sco3.2v5*)
6626 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6627 SAVE_CFLAGS="$CFLAGS"
6628 CFLAGS="$CFLAGS -belf"
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6630 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6631 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6632 $as_echo_n "(cached) " >&6
6633 else
6634 ac_ext=c
6635 ac_cpp='$CPP $CPPFLAGS'
6636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6639
6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h. */
6642
6643 int
6644 main ()
6645 {
6646
6647 ;
6648 return 0;
6649 }
6650 _ACEOF
6651 if ac_fn_c_try_link "$LINENO"; then :
6652 lt_cv_cc_needs_belf=yes
6653 else
6654 lt_cv_cc_needs_belf=no
6655 fi
6656 rm -f core conftest.err conftest.$ac_objext \
6657 conftest$ac_exeext conftest.$ac_ext
6658 ac_ext=c
6659 ac_cpp='$CPP $CPPFLAGS'
6660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6663
6664 fi
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6666 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6667 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6668 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6669 CFLAGS="$SAVE_CFLAGS"
6670 fi
6671 ;;
6672 sparc*-*solaris*)
6673 # Find out which ABI we are using.
6674 echo 'int i;' > conftest.$ac_ext
6675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6676 (eval $ac_compile) 2>&5
6677 ac_status=$?
6678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6679 test $ac_status = 0; }; then
6680 case `/usr/bin/file conftest.o` in
6681 *64-bit*)
6682 case $lt_cv_prog_gnu_ld in
6683 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6684 *)
6685 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6686 LD="${LD-ld} -64"
6687 fi
6688 ;;
6689 esac
6690 ;;
6691 esac
6692 fi
6693 rm -rf conftest*
6694 ;;
6695 esac
6696
6697 need_locks="$enable_libtool_lock"
6698
6699
6700 case $host_os in
6701 rhapsody* | darwin*)
6702 if test -n "$ac_tool_prefix"; then
6703 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6704 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6706 $as_echo_n "checking for $ac_word... " >&6; }
6707 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6708 $as_echo_n "(cached) " >&6
6709 else
6710 if test -n "$DSYMUTIL"; then
6711 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6712 else
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 for as_dir in $PATH
6715 do
6716 IFS=$as_save_IFS
6717 test -z "$as_dir" && as_dir=.
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6720 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 break 2
6723 fi
6724 done
6725 done
6726 IFS=$as_save_IFS
6727
6728 fi
6729 fi
6730 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6731 if test -n "$DSYMUTIL"; then
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6733 $as_echo "$DSYMUTIL" >&6; }
6734 else
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6736 $as_echo "no" >&6; }
6737 fi
6738
6739
6740 fi
6741 if test -z "$ac_cv_prog_DSYMUTIL"; then
6742 ac_ct_DSYMUTIL=$DSYMUTIL
6743 # Extract the first word of "dsymutil", so it can be a program name with args.
6744 set dummy dsymutil; ac_word=$2
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6746 $as_echo_n "checking for $ac_word... " >&6; }
6747 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6748 $as_echo_n "(cached) " >&6
6749 else
6750 if test -n "$ac_ct_DSYMUTIL"; then
6751 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6752 else
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 for as_dir in $PATH
6755 do
6756 IFS=$as_save_IFS
6757 test -z "$as_dir" && as_dir=.
6758 for ac_exec_ext in '' $ac_executable_extensions; do
6759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6760 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6762 break 2
6763 fi
6764 done
6765 done
6766 IFS=$as_save_IFS
6767
6768 fi
6769 fi
6770 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6771 if test -n "$ac_ct_DSYMUTIL"; then
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6773 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6774 else
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6776 $as_echo "no" >&6; }
6777 fi
6778
6779 if test "x$ac_ct_DSYMUTIL" = x; then
6780 DSYMUTIL=":"
6781 else
6782 case $cross_compiling:$ac_tool_warned in
6783 yes:)
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6786 ac_tool_warned=yes ;;
6787 esac
6788 DSYMUTIL=$ac_ct_DSYMUTIL
6789 fi
6790 else
6791 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6792 fi
6793
6794 if test -n "$ac_tool_prefix"; then
6795 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6796 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798 $as_echo_n "checking for $ac_word... " >&6; }
6799 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6800 $as_echo_n "(cached) " >&6
6801 else
6802 if test -n "$NMEDIT"; then
6803 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6804 else
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 for as_dir in $PATH
6807 do
6808 IFS=$as_save_IFS
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6812 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 break 2
6815 fi
6816 done
6817 done
6818 IFS=$as_save_IFS
6819
6820 fi
6821 fi
6822 NMEDIT=$ac_cv_prog_NMEDIT
6823 if test -n "$NMEDIT"; then
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6825 $as_echo "$NMEDIT" >&6; }
6826 else
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828 $as_echo "no" >&6; }
6829 fi
6830
6831
6832 fi
6833 if test -z "$ac_cv_prog_NMEDIT"; then
6834 ac_ct_NMEDIT=$NMEDIT
6835 # Extract the first word of "nmedit", so it can be a program name with args.
6836 set dummy nmedit; ac_word=$2
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6838 $as_echo_n "checking for $ac_word... " >&6; }
6839 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6840 $as_echo_n "(cached) " >&6
6841 else
6842 if test -n "$ac_ct_NMEDIT"; then
6843 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6844 else
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 for as_dir in $PATH
6847 do
6848 IFS=$as_save_IFS
6849 test -z "$as_dir" && as_dir=.
6850 for ac_exec_ext in '' $ac_executable_extensions; do
6851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6852 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 break 2
6855 fi
6856 done
6857 done
6858 IFS=$as_save_IFS
6859
6860 fi
6861 fi
6862 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6863 if test -n "$ac_ct_NMEDIT"; then
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6865 $as_echo "$ac_ct_NMEDIT" >&6; }
6866 else
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868 $as_echo "no" >&6; }
6869 fi
6870
6871 if test "x$ac_ct_NMEDIT" = x; then
6872 NMEDIT=":"
6873 else
6874 case $cross_compiling:$ac_tool_warned in
6875 yes:)
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6878 ac_tool_warned=yes ;;
6879 esac
6880 NMEDIT=$ac_ct_NMEDIT
6881 fi
6882 else
6883 NMEDIT="$ac_cv_prog_NMEDIT"
6884 fi
6885
6886 if test -n "$ac_tool_prefix"; then
6887 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6888 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890 $as_echo_n "checking for $ac_word... " >&6; }
6891 if test "${ac_cv_prog_LIPO+set}" = set; then :
6892 $as_echo_n "(cached) " >&6
6893 else
6894 if test -n "$LIPO"; then
6895 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6896 else
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 for as_dir in $PATH
6899 do
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6904 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 break 2
6907 fi
6908 done
6909 done
6910 IFS=$as_save_IFS
6911
6912 fi
6913 fi
6914 LIPO=$ac_cv_prog_LIPO
6915 if test -n "$LIPO"; then
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6917 $as_echo "$LIPO" >&6; }
6918 else
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920 $as_echo "no" >&6; }
6921 fi
6922
6923
6924 fi
6925 if test -z "$ac_cv_prog_LIPO"; then
6926 ac_ct_LIPO=$LIPO
6927 # Extract the first word of "lipo", so it can be a program name with args.
6928 set dummy lipo; ac_word=$2
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930 $as_echo_n "checking for $ac_word... " >&6; }
6931 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 if test -n "$ac_ct_LIPO"; then
6935 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6936 else
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 for as_dir in $PATH
6939 do
6940 IFS=$as_save_IFS
6941 test -z "$as_dir" && as_dir=.
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6944 ac_cv_prog_ac_ct_LIPO="lipo"
6945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 break 2
6947 fi
6948 done
6949 done
6950 IFS=$as_save_IFS
6951
6952 fi
6953 fi
6954 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6955 if test -n "$ac_ct_LIPO"; then
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6957 $as_echo "$ac_ct_LIPO" >&6; }
6958 else
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960 $as_echo "no" >&6; }
6961 fi
6962
6963 if test "x$ac_ct_LIPO" = x; then
6964 LIPO=":"
6965 else
6966 case $cross_compiling:$ac_tool_warned in
6967 yes:)
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6970 ac_tool_warned=yes ;;
6971 esac
6972 LIPO=$ac_ct_LIPO
6973 fi
6974 else
6975 LIPO="$ac_cv_prog_LIPO"
6976 fi
6977
6978 if test -n "$ac_tool_prefix"; then
6979 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6980 set dummy ${ac_tool_prefix}otool; ac_word=$2
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982 $as_echo_n "checking for $ac_word... " >&6; }
6983 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6984 $as_echo_n "(cached) " >&6
6985 else
6986 if test -n "$OTOOL"; then
6987 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6988 else
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6991 do
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6996 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
6999 fi
7000 done
7001 done
7002 IFS=$as_save_IFS
7003
7004 fi
7005 fi
7006 OTOOL=$ac_cv_prog_OTOOL
7007 if test -n "$OTOOL"; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7009 $as_echo "$OTOOL" >&6; }
7010 else
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012 $as_echo "no" >&6; }
7013 fi
7014
7015
7016 fi
7017 if test -z "$ac_cv_prog_OTOOL"; then
7018 ac_ct_OTOOL=$OTOOL
7019 # Extract the first word of "otool", so it can be a program name with args.
7020 set dummy otool; ac_word=$2
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022 $as_echo_n "checking for $ac_word... " >&6; }
7023 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7024 $as_echo_n "(cached) " >&6
7025 else
7026 if test -n "$ac_ct_OTOOL"; then
7027 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7028 else
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7031 do
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_prog_ac_ct_OTOOL="otool"
7037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 break 2
7039 fi
7040 done
7041 done
7042 IFS=$as_save_IFS
7043
7044 fi
7045 fi
7046 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7047 if test -n "$ac_ct_OTOOL"; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7049 $as_echo "$ac_ct_OTOOL" >&6; }
7050 else
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 $as_echo "no" >&6; }
7053 fi
7054
7055 if test "x$ac_ct_OTOOL" = x; then
7056 OTOOL=":"
7057 else
7058 case $cross_compiling:$ac_tool_warned in
7059 yes:)
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7062 ac_tool_warned=yes ;;
7063 esac
7064 OTOOL=$ac_ct_OTOOL
7065 fi
7066 else
7067 OTOOL="$ac_cv_prog_OTOOL"
7068 fi
7069
7070 if test -n "$ac_tool_prefix"; then
7071 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7072 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7074 $as_echo_n "checking for $ac_word... " >&6; }
7075 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7076 $as_echo_n "(cached) " >&6
7077 else
7078 if test -n "$OTOOL64"; then
7079 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7080 else
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH
7083 do
7084 IFS=$as_save_IFS
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7088 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 break 2
7091 fi
7092 done
7093 done
7094 IFS=$as_save_IFS
7095
7096 fi
7097 fi
7098 OTOOL64=$ac_cv_prog_OTOOL64
7099 if test -n "$OTOOL64"; then
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7101 $as_echo "$OTOOL64" >&6; }
7102 else
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104 $as_echo "no" >&6; }
7105 fi
7106
7107
7108 fi
7109 if test -z "$ac_cv_prog_OTOOL64"; then
7110 ac_ct_OTOOL64=$OTOOL64
7111 # Extract the first word of "otool64", so it can be a program name with args.
7112 set dummy otool64; ac_word=$2
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7114 $as_echo_n "checking for $ac_word... " >&6; }
7115 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7116 $as_echo_n "(cached) " >&6
7117 else
7118 if test -n "$ac_ct_OTOOL64"; then
7119 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7120 else
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 for as_dir in $PATH
7123 do
7124 IFS=$as_save_IFS
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7128 ac_cv_prog_ac_ct_OTOOL64="otool64"
7129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 break 2
7131 fi
7132 done
7133 done
7134 IFS=$as_save_IFS
7135
7136 fi
7137 fi
7138 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7139 if test -n "$ac_ct_OTOOL64"; then
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7141 $as_echo "$ac_ct_OTOOL64" >&6; }
7142 else
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7144 $as_echo "no" >&6; }
7145 fi
7146
7147 if test "x$ac_ct_OTOOL64" = x; then
7148 OTOOL64=":"
7149 else
7150 case $cross_compiling:$ac_tool_warned in
7151 yes:)
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7154 ac_tool_warned=yes ;;
7155 esac
7156 OTOOL64=$ac_ct_OTOOL64
7157 fi
7158 else
7159 OTOOL64="$ac_cv_prog_OTOOL64"
7160 fi
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7189 $as_echo_n "checking for -single_module linker flag... " >&6; }
7190 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7191 $as_echo_n "(cached) " >&6
7192 else
7193 lt_cv_apple_cc_single_mod=no
7194 if test -z "${LT_MULTI_MODULE}"; then
7195 # By default we will add the -single_module flag. You can override
7196 # by either setting the environment variable LT_MULTI_MODULE
7197 # non-empty at configure time, or by adding -multi_module to the
7198 # link flags.
7199 rm -rf libconftest.dylib*
7200 echo "int foo(void){return 1;}" > conftest.c
7201 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7202 -dynamiclib -Wl,-single_module conftest.c" >&5
7203 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7204 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7205 _lt_result=$?
7206 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7207 lt_cv_apple_cc_single_mod=yes
7208 else
7209 cat conftest.err >&5
7210 fi
7211 rm -rf libconftest.dylib*
7212 rm -f conftest.*
7213 fi
7214 fi
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7216 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7218 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7219 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7220 $as_echo_n "(cached) " >&6
7221 else
7222 lt_cv_ld_exported_symbols_list=no
7223 save_LDFLAGS=$LDFLAGS
7224 echo "_main" > conftest.sym
7225 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7228
7229 int
7230 main ()
7231 {
7232
7233 ;
7234 return 0;
7235 }
7236 _ACEOF
7237 if ac_fn_c_try_link "$LINENO"; then :
7238 lt_cv_ld_exported_symbols_list=yes
7239 else
7240 lt_cv_ld_exported_symbols_list=no
7241 fi
7242 rm -f core conftest.err conftest.$ac_objext \
7243 conftest$ac_exeext conftest.$ac_ext
7244 LDFLAGS="$save_LDFLAGS"
7245
7246 fi
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7248 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7250 $as_echo_n "checking for -force_load linker flag... " >&6; }
7251 if test "${lt_cv_ld_force_load+set}" = set; then :
7252 $as_echo_n "(cached) " >&6
7253 else
7254 lt_cv_ld_force_load=no
7255 cat > conftest.c << _LT_EOF
7256 int forced_loaded() { return 2;}
7257 _LT_EOF
7258 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7259 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7260 echo "$AR cru libconftest.a conftest.o" >&5
7261 $AR cru libconftest.a conftest.o 2>&5
7262 echo "$RANLIB libconftest.a" >&5
7263 $RANLIB libconftest.a 2>&5
7264 cat > conftest.c << _LT_EOF
7265 int main() { return 0;}
7266 _LT_EOF
7267 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7268 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7269 _lt_result=$?
7270 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7271 lt_cv_ld_force_load=yes
7272 else
7273 cat conftest.err >&5
7274 fi
7275 rm -f conftest.err libconftest.a conftest conftest.c
7276 rm -rf conftest.dSYM
7277
7278 fi
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7280 $as_echo "$lt_cv_ld_force_load" >&6; }
7281 case $host_os in
7282 rhapsody* | darwin1.[012])
7283 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7284 darwin1.*)
7285 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7286 darwin*) # darwin 5.x on
7287 # if running on 10.5 or later, the deployment target defaults
7288 # to the OS version, if on x86, and 10.4, the deployment
7289 # target defaults to 10.4. Don't you love it?
7290 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7291 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7292 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7293 10.[012]*)
7294 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7295 10.*)
7296 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7297 esac
7298 ;;
7299 esac
7300 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7301 _lt_dar_single_mod='$single_module'
7302 fi
7303 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7304 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7305 else
7306 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7307 fi
7308 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7309 _lt_dsymutil='~$DSYMUTIL $lib || :'
7310 else
7311 _lt_dsymutil=
7312 fi
7313 ;;
7314 esac
7315
7316
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7318 $as_echo_n "checking for ANSI C header files... " >&6; }
7319 if test "${ac_cv_header_stdc+set}" = set; then :
7320 $as_echo_n "(cached) " >&6
7321 else
7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h. */
7324 #include <stdlib.h>
7325 #include <stdarg.h>
7326 #include <string.h>
7327 #include <float.h>
7328
7329 int
7330 main ()
7331 {
7332
7333 ;
7334 return 0;
7335 }
7336 _ACEOF
7337 if ac_fn_c_try_compile "$LINENO"; then :
7338 ac_cv_header_stdc=yes
7339 else
7340 ac_cv_header_stdc=no
7341 fi
7342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343
7344 if test $ac_cv_header_stdc = yes; then
7345 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7348 #include <string.h>
7349
7350 _ACEOF
7351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7352 $EGREP "memchr" >/dev/null 2>&1; then :
7353
7354 else
7355 ac_cv_header_stdc=no
7356 fi
7357 rm -f conftest*
7358
7359 fi
7360
7361 if test $ac_cv_header_stdc = yes; then
7362 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h. */
7365 #include <stdlib.h>
7366
7367 _ACEOF
7368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7369 $EGREP "free" >/dev/null 2>&1; then :
7370
7371 else
7372 ac_cv_header_stdc=no
7373 fi
7374 rm -f conftest*
7375
7376 fi
7377
7378 if test $ac_cv_header_stdc = yes; then
7379 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7380 if test "$cross_compiling" = yes; then :
7381 :
7382 else
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384 /* end confdefs.h. */
7385 #include <ctype.h>
7386 #include <stdlib.h>
7387 #if ((' ' & 0x0FF) == 0x020)
7388 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7389 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7390 #else
7391 # define ISLOWER(c) \
7392 (('a' <= (c) && (c) <= 'i') \
7393 || ('j' <= (c) && (c) <= 'r') \
7394 || ('s' <= (c) && (c) <= 'z'))
7395 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7396 #endif
7397
7398 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7399 int
7400 main ()
7401 {
7402 int i;
7403 for (i = 0; i < 256; i++)
7404 if (XOR (islower (i), ISLOWER (i))
7405 || toupper (i) != TOUPPER (i))
7406 return 2;
7407 return 0;
7408 }
7409 _ACEOF
7410 if ac_fn_c_try_run "$LINENO"; then :
7411
7412 else
7413 ac_cv_header_stdc=no
7414 fi
7415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7416 conftest.$ac_objext conftest.beam conftest.$ac_ext
7417 fi
7418
7419 fi
7420 fi
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7422 $as_echo "$ac_cv_header_stdc" >&6; }
7423 if test $ac_cv_header_stdc = yes; then
7424
7425 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7426
7427 fi
7428
7429 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7430 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7431 inttypes.h stdint.h unistd.h
7432 do :
7433 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7434 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7435 "
7436 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7437 cat >>confdefs.h <<_ACEOF
7438 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7439 _ACEOF
7440
7441 fi
7442
7443 done
7444
7445
7446 for ac_header in dlfcn.h
7447 do :
7448 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7449 "
7450 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7451 cat >>confdefs.h <<_ACEOF
7452 #define HAVE_DLFCN_H 1
7453 _ACEOF
7454
7455 fi
7456
7457 done
7458
7459
7460
7461
7462
7463 # Set options
7464
7465
7466
7467 enable_dlopen=no
7468
7469
7470 enable_win32_dll=no
7471
7472
7473 # Check whether --enable-shared was given.
7474 if test "${enable_shared+set}" = set; then :
7475 enableval=$enable_shared; p=${PACKAGE-default}
7476 case $enableval in
7477 yes) enable_shared=yes ;;
7478 no) enable_shared=no ;;
7479 *)
7480 enable_shared=no
7481 # Look at the argument we got. We use all the common list separators.
7482 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7483 for pkg in $enableval; do
7484 IFS="$lt_save_ifs"
7485 if test "X$pkg" = "X$p"; then
7486 enable_shared=yes
7487 fi
7488 done
7489 IFS="$lt_save_ifs"
7490 ;;
7491 esac
7492 else
7493 enable_shared=yes
7494 fi
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504 # Check whether --enable-static was given.
7505 if test "${enable_static+set}" = set; then :
7506 enableval=$enable_static; p=${PACKAGE-default}
7507 case $enableval in
7508 yes) enable_static=yes ;;
7509 no) enable_static=no ;;
7510 *)
7511 enable_static=no
7512 # Look at the argument we got. We use all the common list separators.
7513 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7514 for pkg in $enableval; do
7515 IFS="$lt_save_ifs"
7516 if test "X$pkg" = "X$p"; then
7517 enable_static=yes
7518 fi
7519 done
7520 IFS="$lt_save_ifs"
7521 ;;
7522 esac
7523 else
7524 enable_static=yes
7525 fi
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536 # Check whether --with-pic was given.
7537 if test "${with_pic+set}" = set; then :
7538 withval=$with_pic; pic_mode="$withval"
7539 else
7540 pic_mode=default
7541 fi
7542
7543
7544 test -z "$pic_mode" && pic_mode=default
7545
7546
7547
7548
7549
7550
7551
7552 # Check whether --enable-fast-install was given.
7553 if test "${enable_fast_install+set}" = set; then :
7554 enableval=$enable_fast_install; p=${PACKAGE-default}
7555 case $enableval in
7556 yes) enable_fast_install=yes ;;
7557 no) enable_fast_install=no ;;
7558 *)
7559 enable_fast_install=no
7560 # Look at the argument we got. We use all the common list separators.
7561 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7562 for pkg in $enableval; do
7563 IFS="$lt_save_ifs"
7564 if test "X$pkg" = "X$p"; then
7565 enable_fast_install=yes
7566 fi
7567 done
7568 IFS="$lt_save_ifs"
7569 ;;
7570 esac
7571 else
7572 enable_fast_install=yes
7573 fi
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585 # This can be used to rebuild libtool when needed
7586 LIBTOOL_DEPS="$ltmain"
7587
7588 # Always use our own libtool.
7589 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616 test -z "$LN_S" && LN_S="ln -s"
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631 if test -n "${ZSH_VERSION+set}" ; then
7632 setopt NO_GLOB_SUBST
7633 fi
7634
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7636 $as_echo_n "checking for objdir... " >&6; }
7637 if test "${lt_cv_objdir+set}" = set; then :
7638 $as_echo_n "(cached) " >&6
7639 else
7640 rm -f .libs 2>/dev/null
7641 mkdir .libs 2>/dev/null
7642 if test -d .libs; then
7643 lt_cv_objdir=.libs
7644 else
7645 # MS-DOS does not allow filenames that begin with a dot.
7646 lt_cv_objdir=_libs
7647 fi
7648 rmdir .libs 2>/dev/null
7649 fi
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7651 $as_echo "$lt_cv_objdir" >&6; }
7652 objdir=$lt_cv_objdir
7653
7654
7655
7656
7657
7658 cat >>confdefs.h <<_ACEOF
7659 #define LT_OBJDIR "$lt_cv_objdir/"
7660 _ACEOF
7661
7662
7663
7664
7665 case $host_os in
7666 aix3*)
7667 # AIX sometimes has problems with the GCC collect2 program. For some
7668 # reason, if we set the COLLECT_NAMES environment variable, the problems
7669 # vanish in a puff of smoke.
7670 if test "X${COLLECT_NAMES+set}" != Xset; then
7671 COLLECT_NAMES=
7672 export COLLECT_NAMES
7673 fi
7674 ;;
7675 esac
7676
7677 # Global variables:
7678 ofile=libtool
7679 can_build_shared=yes
7680
7681 # All known linkers require a `.a' archive for static linking (except MSVC,
7682 # which needs '.lib').
7683 libext=a
7684
7685 with_gnu_ld="$lt_cv_prog_gnu_ld"
7686
7687 old_CC="$CC"
7688 old_CFLAGS="$CFLAGS"
7689
7690 # Set sane defaults for various variables
7691 test -z "$CC" && CC=cc
7692 test -z "$LTCC" && LTCC=$CC
7693 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7694 test -z "$LD" && LD=ld
7695 test -z "$ac_objext" && ac_objext=o
7696
7697 for cc_temp in $compiler""; do
7698 case $cc_temp in
7699 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7700 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7701 \-*) ;;
7702 *) break;;
7703 esac
7704 done
7705 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7706
7707
7708 # Only perform the check for file, if the check method requires it
7709 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7710 case $deplibs_check_method in
7711 file_magic*)
7712 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7714 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7715 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7716 $as_echo_n "(cached) " >&6
7717 else
7718 case $MAGIC_CMD in
7719 [\\/*] | ?:[\\/]*)
7720 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7721 ;;
7722 *)
7723 lt_save_MAGIC_CMD="$MAGIC_CMD"
7724 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7725 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7726 for ac_dir in $ac_dummy; do
7727 IFS="$lt_save_ifs"
7728 test -z "$ac_dir" && ac_dir=.
7729 if test -f $ac_dir/${ac_tool_prefix}file; then
7730 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7731 if test -n "$file_magic_test_file"; then
7732 case $deplibs_check_method in
7733 "file_magic "*)
7734 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7735 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7736 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7737 $EGREP "$file_magic_regex" > /dev/null; then
7738 :
7739 else
7740 cat <<_LT_EOF 1>&2
7741
7742 *** Warning: the command libtool uses to detect shared libraries,
7743 *** $file_magic_cmd, produces output that libtool cannot recognize.
7744 *** The result is that libtool may fail to recognize shared libraries
7745 *** as such. This will affect the creation of libtool libraries that
7746 *** depend on shared libraries, but programs linked with such libtool
7747 *** libraries will work regardless of this problem. Nevertheless, you
7748 *** may want to report the problem to your system manager and/or to
7749 *** bug-libtool (at] gnu.org
7750
7751 _LT_EOF
7752 fi ;;
7753 esac
7754 fi
7755 break
7756 fi
7757 done
7758 IFS="$lt_save_ifs"
7759 MAGIC_CMD="$lt_save_MAGIC_CMD"
7760 ;;
7761 esac
7762 fi
7763
7764 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7765 if test -n "$MAGIC_CMD"; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7767 $as_echo "$MAGIC_CMD" >&6; }
7768 else
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770 $as_echo "no" >&6; }
7771 fi
7772
7773
7774
7775
7776
7777 if test -z "$lt_cv_path_MAGIC_CMD"; then
7778 if test -n "$ac_tool_prefix"; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7780 $as_echo_n "checking for file... " >&6; }
7781 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7782 $as_echo_n "(cached) " >&6
7783 else
7784 case $MAGIC_CMD in
7785 [\\/*] | ?:[\\/]*)
7786 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7787 ;;
7788 *)
7789 lt_save_MAGIC_CMD="$MAGIC_CMD"
7790 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7791 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7792 for ac_dir in $ac_dummy; do
7793 IFS="$lt_save_ifs"
7794 test -z "$ac_dir" && ac_dir=.
7795 if test -f $ac_dir/file; then
7796 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7797 if test -n "$file_magic_test_file"; then
7798 case $deplibs_check_method in
7799 "file_magic "*)
7800 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7801 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7802 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7803 $EGREP "$file_magic_regex" > /dev/null; then
7804 :
7805 else
7806 cat <<_LT_EOF 1>&2
7807
7808 *** Warning: the command libtool uses to detect shared libraries,
7809 *** $file_magic_cmd, produces output that libtool cannot recognize.
7810 *** The result is that libtool may fail to recognize shared libraries
7811 *** as such. This will affect the creation of libtool libraries that
7812 *** depend on shared libraries, but programs linked with such libtool
7813 *** libraries will work regardless of this problem. Nevertheless, you
7814 *** may want to report the problem to your system manager and/or to
7815 *** bug-libtool (at] gnu.org
7816
7817 _LT_EOF
7818 fi ;;
7819 esac
7820 fi
7821 break
7822 fi
7823 done
7824 IFS="$lt_save_ifs"
7825 MAGIC_CMD="$lt_save_MAGIC_CMD"
7826 ;;
7827 esac
7828 fi
7829
7830 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7831 if test -n "$MAGIC_CMD"; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7833 $as_echo "$MAGIC_CMD" >&6; }
7834 else
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836 $as_echo "no" >&6; }
7837 fi
7838
7839
7840 else
7841 MAGIC_CMD=:
7842 fi
7843 fi
7844
7845 fi
7846 ;;
7847 esac
7848
7849 # Use C for the default configuration in the libtool script
7850
7851 lt_save_CC="$CC"
7852 ac_ext=c
7853 ac_cpp='$CPP $CPPFLAGS'
7854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7857
7858
7859 # Source file extension for C test sources.
7860 ac_ext=c
7861
7862 # Object file extension for compiled C test sources.
7863 objext=o
7864 objext=$objext
7865
7866 # Code to be used in simple compile tests
7867 lt_simple_compile_test_code="int some_variable = 0;"
7868
7869 # Code to be used in simple link tests
7870 lt_simple_link_test_code='int main(){return(0);}'
7871
7872
7873
7874
7875
7876
7877
7878 # If no C compiler was specified, use CC.
7879 LTCC=${LTCC-"$CC"}
7880
7881 # If no C compiler flags were specified, use CFLAGS.
7882 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7883
7884 # Allow CC to be a program name with arguments.
7885 compiler=$CC
7886
7887 # Save the default compiler, since it gets overwritten when the other
7888 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7889 compiler_DEFAULT=$CC
7890
7891 # save warnings/boilerplate of simple test code
7892 ac_outfile=conftest.$ac_objext
7893 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7894 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7895 _lt_compiler_boilerplate=`cat conftest.err`
7896 $RM conftest*
7897
7898 ac_outfile=conftest.$ac_objext
7899 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7900 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7901 _lt_linker_boilerplate=`cat conftest.err`
7902 $RM -r conftest*
7903
7904
7905 if test -n "$compiler"; then
7906
7907 lt_prog_compiler_no_builtin_flag=
7908
7909 if test "$GCC" = yes; then
7910 case $cc_basename in
7911 nvcc*)
7912 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7913 *)
7914 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7915 esac
7916
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7918 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7919 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7920 $as_echo_n "(cached) " >&6
7921 else
7922 lt_cv_prog_compiler_rtti_exceptions=no
7923 ac_outfile=conftest.$ac_objext
7924 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7925 lt_compiler_flag="-fno-rtti -fno-exceptions"
7926 # Insert the option either (1) after the last *FLAGS variable, or
7927 # (2) before a word containing "conftest.", or (3) at the end.
7928 # Note that $ac_compile itself does not contain backslashes and begins
7929 # with a dollar sign (not a hyphen), so the echo should work correctly.
7930 # The option is referenced via a variable to avoid confusing sed.
7931 lt_compile=`echo "$ac_compile" | $SED \
7932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7934 -e 's:$: $lt_compiler_flag:'`
7935 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7936 (eval "$lt_compile" 2>conftest.err)
7937 ac_status=$?
7938 cat conftest.err >&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 if (exit $ac_status) && test -s "$ac_outfile"; then
7941 # The compiler can only warn and ignore the option if not recognized
7942 # So say no if there are warnings other than the usual output.
7943 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7945 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7946 lt_cv_prog_compiler_rtti_exceptions=yes
7947 fi
7948 fi
7949 $RM conftest*
7950
7951 fi
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7953 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7954
7955 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7956 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7957 else
7958 :
7959 fi
7960
7961 fi
7962
7963
7964
7965
7966
7967
7968 lt_prog_compiler_wl=
7969 lt_prog_compiler_pic=
7970 lt_prog_compiler_static=
7971
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7973 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7974
7975 if test "$GCC" = yes; then
7976 lt_prog_compiler_wl='-Wl,'
7977 lt_prog_compiler_static='-static'
7978
7979 case $host_os in
7980 aix*)
7981 # All AIX code is PIC.
7982 if test "$host_cpu" = ia64; then
7983 # AIX 5 now supports IA64 processor
7984 lt_prog_compiler_static='-Bstatic'
7985 fi
7986 ;;
7987
7988 amigaos*)
7989 case $host_cpu in
7990 powerpc)
7991 # see comment about AmigaOS4 .so support
7992 lt_prog_compiler_pic='-fPIC'
7993 ;;
7994 m68k)
7995 # FIXME: we need at least 68020 code to build shared libraries, but
7996 # adding the `-m68020' flag to GCC prevents building anything better,
7997 # like `-m68040'.
7998 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7999 ;;
8000 esac
8001 ;;
8002
8003 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8004 # PIC is the default for these OSes.
8005 ;;
8006
8007 mingw* | cygwin* | pw32* | os2* | cegcc*)
8008 # This hack is so that the source file can tell whether it is being
8009 # built for inclusion in a dll (and should export symbols for example).
8010 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8011 # (--disable-auto-import) libraries
8012 lt_prog_compiler_pic='-DDLL_EXPORT'
8013 ;;
8014
8015 darwin* | rhapsody*)
8016 # PIC is the default on this platform
8017 # Common symbols not allowed in MH_DYLIB files
8018 lt_prog_compiler_pic='-fno-common'
8019 ;;
8020
8021 haiku*)
8022 # PIC is the default for Haiku.
8023 # The "-static" flag exists, but is broken.
8024 lt_prog_compiler_static=
8025 ;;
8026
8027 hpux*)
8028 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8029 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8030 # sets the default TLS model and affects inlining.
8031 case $host_cpu in
8032 hppa*64*)
8033 # +Z the default
8034 ;;
8035 *)
8036 lt_prog_compiler_pic='-fPIC'
8037 ;;
8038 esac
8039 ;;
8040
8041 interix[3-9]*)
8042 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8043 # Instead, we relocate shared libraries at runtime.
8044 ;;
8045
8046 msdosdjgpp*)
8047 # Just because we use GCC doesn't mean we suddenly get shared libraries
8048 # on systems that don't support them.
8049 lt_prog_compiler_can_build_shared=no
8050 enable_shared=no
8051 ;;
8052
8053 *nto* | *qnx*)
8054 # QNX uses GNU C++, but need to define -shared option too, otherwise
8055 # it will coredump.
8056 lt_prog_compiler_pic='-fPIC -shared'
8057 ;;
8058
8059 sysv4*MP*)
8060 if test -d /usr/nec; then
8061 lt_prog_compiler_pic=-Kconform_pic
8062 fi
8063 ;;
8064
8065 *)
8066 lt_prog_compiler_pic='-fPIC'
8067 ;;
8068 esac
8069
8070 case $cc_basename in
8071 nvcc*) # Cuda Compiler Driver 2.2
8072 lt_prog_compiler_wl='-Xlinker '
8073 lt_prog_compiler_pic='-Xcompiler -fPIC'
8074 ;;
8075 esac
8076 else
8077 # PORTME Check for flag to pass linker flags through the system compiler.
8078 case $host_os in
8079 aix*)
8080 lt_prog_compiler_wl='-Wl,'
8081 if test "$host_cpu" = ia64; then
8082 # AIX 5 now supports IA64 processor
8083 lt_prog_compiler_static='-Bstatic'
8084 else
8085 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8086 fi
8087 ;;
8088
8089 mingw* | cygwin* | pw32* | os2* | cegcc*)
8090 # This hack is so that the source file can tell whether it is being
8091 # built for inclusion in a dll (and should export symbols for example).
8092 lt_prog_compiler_pic='-DDLL_EXPORT'
8093 ;;
8094
8095 hpux9* | hpux10* | hpux11*)
8096 lt_prog_compiler_wl='-Wl,'
8097 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8098 # not for PA HP-UX.
8099 case $host_cpu in
8100 hppa*64*|ia64*)
8101 # +Z the default
8102 ;;
8103 *)
8104 lt_prog_compiler_pic='+Z'
8105 ;;
8106 esac
8107 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8108 lt_prog_compiler_static='${wl}-a ${wl}archive'
8109 ;;
8110
8111 irix5* | irix6* | nonstopux*)
8112 lt_prog_compiler_wl='-Wl,'
8113 # PIC (with -KPIC) is the default.
8114 lt_prog_compiler_static='-non_shared'
8115 ;;
8116
8117 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8118 case $cc_basename in
8119 # old Intel for x86_64 which still supported -KPIC.
8120 ecc*)
8121 lt_prog_compiler_wl='-Wl,'
8122 lt_prog_compiler_pic='-KPIC'
8123 lt_prog_compiler_static='-static'
8124 ;;
8125 # icc used to be incompatible with GCC.
8126 # ICC 10 doesn't accept -KPIC any more.
8127 icc* | ifort*)
8128 lt_prog_compiler_wl='-Wl,'
8129 lt_prog_compiler_pic='-fPIC'
8130 lt_prog_compiler_static='-static'
8131 ;;
8132 # Lahey Fortran 8.1.
8133 lf95*)
8134 lt_prog_compiler_wl='-Wl,'
8135 lt_prog_compiler_pic='--shared'
8136 lt_prog_compiler_static='--static'
8137 ;;
8138 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8139 # Portland Group compilers (*not* the Pentium gcc compiler,
8140 # which looks to be a dead project)
8141 lt_prog_compiler_wl='-Wl,'
8142 lt_prog_compiler_pic='-fpic'
8143 lt_prog_compiler_static='-Bstatic'
8144 ;;
8145 ccc*)
8146 lt_prog_compiler_wl='-Wl,'
8147 # All Alpha code is PIC.
8148 lt_prog_compiler_static='-non_shared'
8149 ;;
8150 xl* | bgxl* | bgf* | mpixl*)
8151 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8152 lt_prog_compiler_wl='-Wl,'
8153 lt_prog_compiler_pic='-qpic'
8154 lt_prog_compiler_static='-qstaticlink'
8155 ;;
8156 *)
8157 case `$CC -V 2>&1 | sed 5q` in
8158 *Sun\ F* | *Sun*Fortran*)
8159 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8160 lt_prog_compiler_pic='-KPIC'
8161 lt_prog_compiler_static='-Bstatic'
8162 lt_prog_compiler_wl=''
8163 ;;
8164 *Sun\ C*)
8165 # Sun C 5.9
8166 lt_prog_compiler_pic='-KPIC'
8167 lt_prog_compiler_static='-Bstatic'
8168 lt_prog_compiler_wl='-Wl,'
8169 ;;
8170 esac
8171 ;;
8172 esac
8173 ;;
8174
8175 newsos6)
8176 lt_prog_compiler_pic='-KPIC'
8177 lt_prog_compiler_static='-Bstatic'
8178 ;;
8179
8180 *nto* | *qnx*)
8181 # QNX uses GNU C++, but need to define -shared option too, otherwise
8182 # it will coredump.
8183 lt_prog_compiler_pic='-fPIC -shared'
8184 ;;
8185
8186 osf3* | osf4* | osf5*)
8187 lt_prog_compiler_wl='-Wl,'
8188 # All OSF/1 code is PIC.
8189 lt_prog_compiler_static='-non_shared'
8190 ;;
8191
8192 rdos*)
8193 lt_prog_compiler_static='-non_shared'
8194 ;;
8195
8196 solaris*)
8197 lt_prog_compiler_pic='-KPIC'
8198 lt_prog_compiler_static='-Bstatic'
8199 case $cc_basename in
8200 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8201 lt_prog_compiler_wl='-Qoption ld ';;
8202 *)
8203 lt_prog_compiler_wl='-Wl,';;
8204 esac
8205 ;;
8206
8207 sunos4*)
8208 lt_prog_compiler_wl='-Qoption ld '
8209 lt_prog_compiler_pic='-PIC'
8210 lt_prog_compiler_static='-Bstatic'
8211 ;;
8212
8213 sysv4 | sysv4.2uw2* | sysv4.3*)
8214 lt_prog_compiler_wl='-Wl,'
8215 lt_prog_compiler_pic='-KPIC'
8216 lt_prog_compiler_static='-Bstatic'
8217 ;;
8218
8219 sysv4*MP*)
8220 if test -d /usr/nec ;then
8221 lt_prog_compiler_pic='-Kconform_pic'
8222 lt_prog_compiler_static='-Bstatic'
8223 fi
8224 ;;
8225
8226 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8227 lt_prog_compiler_wl='-Wl,'
8228 lt_prog_compiler_pic='-KPIC'
8229 lt_prog_compiler_static='-Bstatic'
8230 ;;
8231
8232 unicos*)
8233 lt_prog_compiler_wl='-Wl,'
8234 lt_prog_compiler_can_build_shared=no
8235 ;;
8236
8237 uts4*)
8238 lt_prog_compiler_pic='-pic'
8239 lt_prog_compiler_static='-Bstatic'
8240 ;;
8241
8242 *)
8243 lt_prog_compiler_can_build_shared=no
8244 ;;
8245 esac
8246 fi
8247
8248 case $host_os in
8249 # For platforms which do not support PIC, -DPIC is meaningless:
8250 *djgpp*)
8251 lt_prog_compiler_pic=
8252 ;;
8253 *)
8254 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8255 ;;
8256 esac
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8258 $as_echo "$lt_prog_compiler_pic" >&6; }
8259
8260
8261
8262
8263
8264
8265 #
8266 # Check to make sure the PIC flag actually works.
8267 #
8268 if test -n "$lt_prog_compiler_pic"; then
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8270 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8271 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8272 $as_echo_n "(cached) " >&6
8273 else
8274 lt_cv_prog_compiler_pic_works=no
8275 ac_outfile=conftest.$ac_objext
8276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8277 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8278 # Insert the option either (1) after the last *FLAGS variable, or
8279 # (2) before a word containing "conftest.", or (3) at the end.
8280 # Note that $ac_compile itself does not contain backslashes and begins
8281 # with a dollar sign (not a hyphen), so the echo should work correctly.
8282 # The option is referenced via a variable to avoid confusing sed.
8283 lt_compile=`echo "$ac_compile" | $SED \
8284 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8286 -e 's:$: $lt_compiler_flag:'`
8287 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8288 (eval "$lt_compile" 2>conftest.err)
8289 ac_status=$?
8290 cat conftest.err >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 if (exit $ac_status) && test -s "$ac_outfile"; then
8293 # The compiler can only warn and ignore the option if not recognized
8294 # So say no if there are warnings other than the usual output.
8295 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8296 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8297 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8298 lt_cv_prog_compiler_pic_works=yes
8299 fi
8300 fi
8301 $RM conftest*
8302
8303 fi
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8305 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8306
8307 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8308 case $lt_prog_compiler_pic in
8309 "" | " "*) ;;
8310 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8311 esac
8312 else
8313 lt_prog_compiler_pic=
8314 lt_prog_compiler_can_build_shared=no
8315 fi
8316
8317 fi
8318
8319
8320
8321
8322
8323
8324 #
8325 # Check to make sure the static flag actually works.
8326 #
8327 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8329 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8330 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8331 $as_echo_n "(cached) " >&6
8332 else
8333 lt_cv_prog_compiler_static_works=no
8334 save_LDFLAGS="$LDFLAGS"
8335 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8336 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8337 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8338 # The linker can only warn and ignore the option if not recognized
8339 # So say no if there are warnings
8340 if test -s conftest.err; then
8341 # Append any errors to the config.log.
8342 cat conftest.err 1>&5
8343 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8344 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8345 if diff conftest.exp conftest.er2 >/dev/null; then
8346 lt_cv_prog_compiler_static_works=yes
8347 fi
8348 else
8349 lt_cv_prog_compiler_static_works=yes
8350 fi
8351 fi
8352 $RM -r conftest*
8353 LDFLAGS="$save_LDFLAGS"
8354
8355 fi
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8357 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8358
8359 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8360 :
8361 else
8362 lt_prog_compiler_static=
8363 fi
8364
8365
8366
8367
8368
8369
8370
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8372 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8373 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8374 $as_echo_n "(cached) " >&6
8375 else
8376 lt_cv_prog_compiler_c_o=no
8377 $RM -r conftest 2>/dev/null
8378 mkdir conftest
8379 cd conftest
8380 mkdir out
8381 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8382
8383 lt_compiler_flag="-o out/conftest2.$ac_objext"
8384 # Insert the option either (1) after the last *FLAGS variable, or
8385 # (2) before a word containing "conftest.", or (3) at the end.
8386 # Note that $ac_compile itself does not contain backslashes and begins
8387 # with a dollar sign (not a hyphen), so the echo should work correctly.
8388 lt_compile=`echo "$ac_compile" | $SED \
8389 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8390 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8391 -e 's:$: $lt_compiler_flag:'`
8392 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8393 (eval "$lt_compile" 2>out/conftest.err)
8394 ac_status=$?
8395 cat out/conftest.err >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8398 then
8399 # The compiler can only warn and ignore the option if not recognized
8400 # So say no if there are warnings
8401 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8402 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8403 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8404 lt_cv_prog_compiler_c_o=yes
8405 fi
8406 fi
8407 chmod u+w . 2>&5
8408 $RM conftest*
8409 # SGI C++ compiler will create directory out/ii_files/ for
8410 # template instantiation
8411 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8412 $RM out/* && rmdir out
8413 cd ..
8414 $RM -r conftest
8415 $RM conftest*
8416
8417 fi
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8419 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8420
8421
8422
8423
8424
8425
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8427 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8428 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8429 $as_echo_n "(cached) " >&6
8430 else
8431 lt_cv_prog_compiler_c_o=no
8432 $RM -r conftest 2>/dev/null
8433 mkdir conftest
8434 cd conftest
8435 mkdir out
8436 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8437
8438 lt_compiler_flag="-o out/conftest2.$ac_objext"
8439 # Insert the option either (1) after the last *FLAGS variable, or
8440 # (2) before a word containing "conftest.", or (3) at the end.
8441 # Note that $ac_compile itself does not contain backslashes and begins
8442 # with a dollar sign (not a hyphen), so the echo should work correctly.
8443 lt_compile=`echo "$ac_compile" | $SED \
8444 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8446 -e 's:$: $lt_compiler_flag:'`
8447 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8448 (eval "$lt_compile" 2>out/conftest.err)
8449 ac_status=$?
8450 cat out/conftest.err >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8453 then
8454 # The compiler can only warn and ignore the option if not recognized
8455 # So say no if there are warnings
8456 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8457 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8458 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8459 lt_cv_prog_compiler_c_o=yes
8460 fi
8461 fi
8462 chmod u+w . 2>&5
8463 $RM conftest*
8464 # SGI C++ compiler will create directory out/ii_files/ for
8465 # template instantiation
8466 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8467 $RM out/* && rmdir out
8468 cd ..
8469 $RM -r conftest
8470 $RM conftest*
8471
8472 fi
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8474 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8475
8476
8477
8478
8479 hard_links="nottested"
8480 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8481 # do not overwrite the value of need_locks provided by the user
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8483 $as_echo_n "checking if we can lock with hard links... " >&6; }
8484 hard_links=yes
8485 $RM conftest*
8486 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8487 touch conftest.a
8488 ln conftest.a conftest.b 2>&5 || hard_links=no
8489 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8491 $as_echo "$hard_links" >&6; }
8492 if test "$hard_links" = no; then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8494 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8495 need_locks=warn
8496 fi
8497 else
8498 need_locks=no
8499 fi
8500
8501
8502
8503
8504
8505
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8507 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8508
8509 runpath_var=
8510 allow_undefined_flag=
8511 always_export_symbols=no
8512 archive_cmds=
8513 archive_expsym_cmds=
8514 compiler_needs_object=no
8515 enable_shared_with_static_runtimes=no
8516 export_dynamic_flag_spec=
8517 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8518 hardcode_automatic=no
8519 hardcode_direct=no
8520 hardcode_direct_absolute=no
8521 hardcode_libdir_flag_spec=
8522 hardcode_libdir_flag_spec_ld=
8523 hardcode_libdir_separator=
8524 hardcode_minus_L=no
8525 hardcode_shlibpath_var=unsupported
8526 inherit_rpath=no
8527 link_all_deplibs=unknown
8528 module_cmds=
8529 module_expsym_cmds=
8530 old_archive_from_new_cmds=
8531 old_archive_from_expsyms_cmds=
8532 thread_safe_flag_spec=
8533 whole_archive_flag_spec=
8534 # include_expsyms should be a list of space-separated symbols to be *always*
8535 # included in the symbol list
8536 include_expsyms=
8537 # exclude_expsyms can be an extended regexp of symbols to exclude
8538 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8539 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8540 # as well as any symbol that contains `d'.
8541 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8542 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8543 # platforms (ab)use it in PIC code, but their linkers get confused if
8544 # the symbol is explicitly referenced. Since portable code cannot
8545 # rely on this symbol name, it's probably fine to never include it in
8546 # preloaded symbol tables.
8547 # Exclude shared library initialization/finalization symbols.
8548 extract_expsyms_cmds=
8549
8550 case $host_os in
8551 cygwin* | mingw* | pw32* | cegcc*)
8552 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8553 # When not using gcc, we currently assume that we are using
8554 # Microsoft Visual C++.
8555 if test "$GCC" != yes; then
8556 with_gnu_ld=no
8557 fi
8558 ;;
8559 interix*)
8560 # we just hope/assume this is gcc and not c89 (= MSVC++)
8561 with_gnu_ld=yes
8562 ;;
8563 openbsd*)
8564 with_gnu_ld=no
8565 ;;
8566 esac
8567
8568 ld_shlibs=yes
8569
8570 # On some targets, GNU ld is compatible enough with the native linker
8571 # that we're better off using the native interface for both.
8572 lt_use_gnu_ld_interface=no
8573 if test "$with_gnu_ld" = yes; then
8574 case $host_os in
8575 aix*)
8576 # The AIX port of GNU ld has always aspired to compatibility
8577 # with the native linker. However, as the warning in the GNU ld
8578 # block says, versions before 2.19.5* couldn't really create working
8579 # shared libraries, regardless of the interface used.
8580 case `$LD -v 2>&1` in
8581 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8582 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8583 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8584 *)
8585 lt_use_gnu_ld_interface=yes
8586 ;;
8587 esac
8588 ;;
8589 *)
8590 lt_use_gnu_ld_interface=yes
8591 ;;
8592 esac
8593 fi
8594
8595 if test "$lt_use_gnu_ld_interface" = yes; then
8596 # If archive_cmds runs LD, not CC, wlarc should be empty
8597 wlarc='${wl}'
8598
8599 # Set some defaults for GNU ld with shared library support. These
8600 # are reset later if shared libraries are not supported. Putting them
8601 # here allows them to be overridden if necessary.
8602 runpath_var=LD_RUN_PATH
8603 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8604 export_dynamic_flag_spec='${wl}--export-dynamic'
8605 # ancient GNU ld didn't support --whole-archive et. al.
8606 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8607 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8608 else
8609 whole_archive_flag_spec=
8610 fi
8611 supports_anon_versioning=no
8612 case `$LD -v 2>&1` in
8613 *GNU\ gold*) supports_anon_versioning=yes ;;
8614 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8615 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8616 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8617 *\ 2.11.*) ;; # other 2.11 versions
8618 *) supports_anon_versioning=yes ;;
8619 esac
8620
8621 # See if GNU ld supports shared libraries.
8622 case $host_os in
8623 aix[3-9]*)
8624 # On AIX/PPC, the GNU linker is very broken
8625 if test "$host_cpu" != ia64; then
8626 ld_shlibs=no
8627 cat <<_LT_EOF 1>&2
8628
8629 *** Warning: the GNU linker, at least up to release 2.19, is reported
8630 *** to be unable to reliably create shared libraries on AIX.
8631 *** Therefore, libtool is disabling shared libraries support. If you
8632 *** really care for shared libraries, you may want to install binutils
8633 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8634 *** You will then need to restart the configuration process.
8635
8636 _LT_EOF
8637 fi
8638 ;;
8639
8640 amigaos*)
8641 case $host_cpu in
8642 powerpc)
8643 # see comment about AmigaOS4 .so support
8644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8645 archive_expsym_cmds=''
8646 ;;
8647 m68k)
8648 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)'
8649 hardcode_libdir_flag_spec='-L$libdir'
8650 hardcode_minus_L=yes
8651 ;;
8652 esac
8653 ;;
8654
8655 beos*)
8656 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8657 allow_undefined_flag=unsupported
8658 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8659 # support --undefined. This deserves some investigation. FIXME
8660 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8661 else
8662 ld_shlibs=no
8663 fi
8664 ;;
8665
8666 cygwin* | mingw* | pw32* | cegcc*)
8667 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8668 # as there is no search path for DLLs.
8669 hardcode_libdir_flag_spec='-L$libdir'
8670 export_dynamic_flag_spec='${wl}--export-all-symbols'
8671 allow_undefined_flag=unsupported
8672 always_export_symbols=no
8673 enable_shared_with_static_runtimes=yes
8674 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8675
8676 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8678 # If the export-symbols file already is a .def file (1st line
8679 # is EXPORTS), use it as is; otherwise, prepend...
8680 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8681 cp $export_symbols $output_objdir/$soname.def;
8682 else
8683 echo EXPORTS > $output_objdir/$soname.def;
8684 cat $export_symbols >> $output_objdir/$soname.def;
8685 fi~
8686 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8687 else
8688 ld_shlibs=no
8689 fi
8690 ;;
8691
8692 haiku*)
8693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8694 link_all_deplibs=yes
8695 ;;
8696
8697 interix[3-9]*)
8698 hardcode_direct=no
8699 hardcode_shlibpath_var=no
8700 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8701 export_dynamic_flag_spec='${wl}-E'
8702 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8703 # Instead, shared libraries are loaded at an image base (0x10000000 by
8704 # default) and relocated if they conflict, which is a slow very memory
8705 # consuming and fragmenting process. To avoid this, we pick a random,
8706 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8707 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8708 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8709 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'
8710 ;;
8711
8712 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8713 tmp_diet=no
8714 if test "$host_os" = linux-dietlibc; then
8715 case $cc_basename in
8716 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8717 esac
8718 fi
8719 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8720 && test "$tmp_diet" = no
8721 then
8722 tmp_addflag=
8723 tmp_sharedflag='-shared'
8724 case $cc_basename,$host_cpu in
8725 pgcc*) # Portland Group C compiler
8726 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'
8727 tmp_addflag=' $pic_flag'
8728 ;;
8729 pgf77* | pgf90* | pgf95* | pgfortran*)
8730 # Portland Group f77 and f90 compilers
8731 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'
8732 tmp_addflag=' $pic_flag -Mnomain' ;;
8733 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8734 tmp_addflag=' -i_dynamic' ;;
8735 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8736 tmp_addflag=' -i_dynamic -nofor_main' ;;
8737 ifc* | ifort*) # Intel Fortran compiler
8738 tmp_addflag=' -nofor_main' ;;
8739 lf95*) # Lahey Fortran 8.1
8740 whole_archive_flag_spec=
8741 tmp_sharedflag='--shared' ;;
8742 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8743 tmp_sharedflag='-qmkshrobj'
8744 tmp_addflag= ;;
8745 nvcc*) # Cuda Compiler Driver 2.2
8746 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'
8747 compiler_needs_object=yes
8748 ;;
8749 esac
8750 case `$CC -V 2>&1 | sed 5q` in
8751 *Sun\ C*) # Sun C 5.9
8752 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'
8753 compiler_needs_object=yes
8754 tmp_sharedflag='-G' ;;
8755 *Sun\ F*) # Sun Fortran 8.3
8756 tmp_sharedflag='-G' ;;
8757 esac
8758 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8759
8760 if test "x$supports_anon_versioning" = xyes; then
8761 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8762 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8763 echo "local: *; };" >> $output_objdir/$libname.ver~
8764 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8765 fi
8766
8767 case $cc_basename in
8768 xlf* | bgf* | bgxlf* | mpixlf*)
8769 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8770 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8771 hardcode_libdir_flag_spec=
8772 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8773 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8774 if test "x$supports_anon_versioning" = xyes; then
8775 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8776 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8777 echo "local: *; };" >> $output_objdir/$libname.ver~
8778 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8779 fi
8780 ;;
8781 esac
8782 else
8783 ld_shlibs=no
8784 fi
8785 ;;
8786
8787 netbsd*)
8788 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8789 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8790 wlarc=
8791 else
8792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8793 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8794 fi
8795 ;;
8796
8797 solaris*)
8798 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8799 ld_shlibs=no
8800 cat <<_LT_EOF 1>&2
8801
8802 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8803 *** create shared libraries on Solaris systems. Therefore, libtool
8804 *** is disabling shared libraries support. We urge you to upgrade GNU
8805 *** binutils to release 2.9.1 or newer. Another option is to modify
8806 *** your PATH or compiler configuration so that the native linker is
8807 *** used, and then restart.
8808
8809 _LT_EOF
8810 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8811 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8812 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8813 else
8814 ld_shlibs=no
8815 fi
8816 ;;
8817
8818 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8819 case `$LD -v 2>&1` in
8820 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8821 ld_shlibs=no
8822 cat <<_LT_EOF 1>&2
8823
8824 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8825 *** reliably create shared libraries on SCO systems. Therefore, libtool
8826 *** is disabling shared libraries support. We urge you to upgrade GNU
8827 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8828 *** your PATH or compiler configuration so that the native linker is
8829 *** used, and then restart.
8830
8831 _LT_EOF
8832 ;;
8833 *)
8834 # For security reasons, it is highly recommended that you always
8835 # use absolute paths for naming shared libraries, and exclude the
8836 # DT_RUNPATH tag from executables and libraries. But doing so
8837 # requires that you compile everything twice, which is a pain.
8838 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8839 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8840 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8841 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8842 else
8843 ld_shlibs=no
8844 fi
8845 ;;
8846 esac
8847 ;;
8848
8849 sunos4*)
8850 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8851 wlarc=
8852 hardcode_direct=yes
8853 hardcode_shlibpath_var=no
8854 ;;
8855
8856 *)
8857 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8858 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8859 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8860 else
8861 ld_shlibs=no
8862 fi
8863 ;;
8864 esac
8865
8866 if test "$ld_shlibs" = no; then
8867 runpath_var=
8868 hardcode_libdir_flag_spec=
8869 export_dynamic_flag_spec=
8870 whole_archive_flag_spec=
8871 fi
8872 else
8873 # PORTME fill in a description of your system's linker (not GNU ld)
8874 case $host_os in
8875 aix3*)
8876 allow_undefined_flag=unsupported
8877 always_export_symbols=yes
8878 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'
8879 # Note: this linker hardcodes the directories in LIBPATH if there
8880 # are no directories specified by -L.
8881 hardcode_minus_L=yes
8882 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8883 # Neither direct hardcoding nor static linking is supported with a
8884 # broken collect2.
8885 hardcode_direct=unsupported
8886 fi
8887 ;;
8888
8889 aix[4-9]*)
8890 if test "$host_cpu" = ia64; then
8891 # On IA64, the linker does run time linking by default, so we don't
8892 # have to do anything special.
8893 aix_use_runtimelinking=no
8894 exp_sym_flag='-Bexport'
8895 no_entry_flag=""
8896 else
8897 # If we're using GNU nm, then we don't want the "-C" option.
8898 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8899 # Also, AIX nm treats weak defined symbols like other global
8900 # defined symbols, whereas GNU nm marks them as "W".
8901 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8902 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'
8903 else
8904 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'
8905 fi
8906 aix_use_runtimelinking=no
8907
8908 # Test if we are trying to use run time linking or normal
8909 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8910 # need to do runtime linking.
8911 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8912 for ld_flag in $LDFLAGS; do
8913 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8914 aix_use_runtimelinking=yes
8915 break
8916 fi
8917 done
8918 ;;
8919 esac
8920
8921 exp_sym_flag='-bexport'
8922 no_entry_flag='-bnoentry'
8923 fi
8924
8925 # When large executables or shared objects are built, AIX ld can
8926 # have problems creating the table of contents. If linking a library
8927 # or program results in "error TOC overflow" add -mminimal-toc to
8928 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8929 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8930
8931 archive_cmds=''
8932 hardcode_direct=yes
8933 hardcode_direct_absolute=yes
8934 hardcode_libdir_separator=':'
8935 link_all_deplibs=yes
8936 file_list_spec='${wl}-f,'
8937
8938 if test "$GCC" = yes; then
8939 case $host_os in aix4.[012]|aix4.[012].*)
8940 # We only want to do this on AIX 4.2 and lower, the check
8941 # below for broken collect2 doesn't work under 4.3+
8942 collect2name=`${CC} -print-prog-name=collect2`
8943 if test -f "$collect2name" &&
8944 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8945 then
8946 # We have reworked collect2
8947 :
8948 else
8949 # We have old collect2
8950 hardcode_direct=unsupported
8951 # It fails to find uninstalled libraries when the uninstalled
8952 # path is not listed in the libpath. Setting hardcode_minus_L
8953 # to unsupported forces relinking
8954 hardcode_minus_L=yes
8955 hardcode_libdir_flag_spec='-L$libdir'
8956 hardcode_libdir_separator=
8957 fi
8958 ;;
8959 esac
8960 shared_flag='-shared'
8961 if test "$aix_use_runtimelinking" = yes; then
8962 shared_flag="$shared_flag "'${wl}-G'
8963 fi
8964 else
8965 # not using gcc
8966 if test "$host_cpu" = ia64; then
8967 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8968 # chokes on -Wl,-G. The following line is correct:
8969 shared_flag='-G'
8970 else
8971 if test "$aix_use_runtimelinking" = yes; then
8972 shared_flag='${wl}-G'
8973 else
8974 shared_flag='${wl}-bM:SRE'
8975 fi
8976 fi
8977 fi
8978
8979 export_dynamic_flag_spec='${wl}-bexpall'
8980 # It seems that -bexpall does not export symbols beginning with
8981 # underscore (_), so it is better to generate a list of symbols to export.
8982 always_export_symbols=yes
8983 if test "$aix_use_runtimelinking" = yes; then
8984 # Warning - without using the other runtime loading flags (-brtl),
8985 # -berok will link without error, but may produce a broken library.
8986 allow_undefined_flag='-berok'
8987 # Determine the default libpath from the value encoded in an
8988 # empty executable.
8989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990 /* end confdefs.h. */
8991
8992 int
8993 main ()
8994 {
8995
8996 ;
8997 return 0;
8998 }
8999 _ACEOF
9000 if ac_fn_c_try_link "$LINENO"; then :
9001
9002 lt_aix_libpath_sed='
9003 /Import File Strings/,/^$/ {
9004 /^0/ {
9005 s/^0 *\(.*\)$/\1/
9006 p
9007 }
9008 }'
9009 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9010 # Check for a 64-bit object if we didn't find anything.
9011 if test -z "$aix_libpath"; then
9012 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9013 fi
9014 fi
9015 rm -f core conftest.err conftest.$ac_objext \
9016 conftest$ac_exeext conftest.$ac_ext
9017 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9018
9019 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9020 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"
9021 else
9022 if test "$host_cpu" = ia64; then
9023 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9024 allow_undefined_flag="-z nodefs"
9025 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"
9026 else
9027 # Determine the default libpath from the value encoded in an
9028 # empty executable.
9029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9030 /* end confdefs.h. */
9031
9032 int
9033 main ()
9034 {
9035
9036 ;
9037 return 0;
9038 }
9039 _ACEOF
9040 if ac_fn_c_try_link "$LINENO"; then :
9041
9042 lt_aix_libpath_sed='
9043 /Import File Strings/,/^$/ {
9044 /^0/ {
9045 s/^0 *\(.*\)$/\1/
9046 p
9047 }
9048 }'
9049 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9050 # Check for a 64-bit object if we didn't find anything.
9051 if test -z "$aix_libpath"; then
9052 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9053 fi
9054 fi
9055 rm -f core conftest.err conftest.$ac_objext \
9056 conftest$ac_exeext conftest.$ac_ext
9057 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9058
9059 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9060 # Warning - without using the other run time loading flags,
9061 # -berok will link without error, but may produce a broken library.
9062 no_undefined_flag=' ${wl}-bernotok'
9063 allow_undefined_flag=' ${wl}-berok'
9064 if test "$with_gnu_ld" = yes; then
9065 # We only use this code for GNU lds that support --whole-archive.
9066 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9067 else
9068 # Exported symbols can be pulled into shared objects from archives
9069 whole_archive_flag_spec='$convenience'
9070 fi
9071 archive_cmds_need_lc=yes
9072 # This is similar to how AIX traditionally builds its shared libraries.
9073 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'
9074 fi
9075 fi
9076 ;;
9077
9078 amigaos*)
9079 case $host_cpu in
9080 powerpc)
9081 # see comment about AmigaOS4 .so support
9082 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9083 archive_expsym_cmds=''
9084 ;;
9085 m68k)
9086 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)'
9087 hardcode_libdir_flag_spec='-L$libdir'
9088 hardcode_minus_L=yes
9089 ;;
9090 esac
9091 ;;
9092
9093 bsdi[45]*)
9094 export_dynamic_flag_spec=-rdynamic
9095 ;;
9096
9097 cygwin* | mingw* | pw32* | cegcc*)
9098 # When not using gcc, we currently assume that we are using
9099 # Microsoft Visual C++.
9100 # hardcode_libdir_flag_spec is actually meaningless, as there is
9101 # no search path for DLLs.
9102 hardcode_libdir_flag_spec=' '
9103 allow_undefined_flag=unsupported
9104 # Tell ltmain to make .lib files, not .a files.
9105 libext=lib
9106 # Tell ltmain to make .dll files, not .so files.
9107 shrext_cmds=".dll"
9108 # FIXME: Setting linknames here is a bad hack.
9109 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9110 # The linker will automatically build a .lib file if we build a DLL.
9111 old_archive_from_new_cmds='true'
9112 # FIXME: Should let the user specify the lib program.
9113 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9114 fix_srcfile_path='`cygpath -w "$srcfile"`'
9115 enable_shared_with_static_runtimes=yes
9116 ;;
9117
9118 darwin* | rhapsody*)
9119
9120
9121 archive_cmds_need_lc=no
9122 hardcode_direct=no
9123 hardcode_automatic=yes
9124 hardcode_shlibpath_var=unsupported
9125 if test "$lt_cv_ld_force_load" = "yes"; then
9126 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\"`'
9127 else
9128 whole_archive_flag_spec=''
9129 fi
9130 link_all_deplibs=yes
9131 allow_undefined_flag="$_lt_dar_allow_undefined"
9132 case $cc_basename in
9133 ifort*) _lt_dar_can_shared=yes ;;
9134 *) _lt_dar_can_shared=$GCC ;;
9135 esac
9136 if test "$_lt_dar_can_shared" = "yes"; then
9137 output_verbose_link_cmd=func_echo_all
9138 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9139 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9140 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}"
9141 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}"
9142
9143 else
9144 ld_shlibs=no
9145 fi
9146
9147 ;;
9148
9149 dgux*)
9150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9151 hardcode_libdir_flag_spec='-L$libdir'
9152 hardcode_shlibpath_var=no
9153 ;;
9154
9155 freebsd1*)
9156 ld_shlibs=no
9157 ;;
9158
9159 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9160 # support. Future versions do this automatically, but an explicit c++rt0.o
9161 # does not break anything, and helps significantly (at the cost of a little
9162 # extra space).
9163 freebsd2.2*)
9164 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9165 hardcode_libdir_flag_spec='-R$libdir'
9166 hardcode_direct=yes
9167 hardcode_shlibpath_var=no
9168 ;;
9169
9170 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9171 freebsd2*)
9172 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9173 hardcode_direct=yes
9174 hardcode_minus_L=yes
9175 hardcode_shlibpath_var=no
9176 ;;
9177
9178 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9179 freebsd* | dragonfly*)
9180 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9181 hardcode_libdir_flag_spec='-R$libdir'
9182 hardcode_direct=yes
9183 hardcode_shlibpath_var=no
9184 ;;
9185
9186 hpux9*)
9187 if test "$GCC" = yes; then
9188 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9189 else
9190 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'
9191 fi
9192 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9193 hardcode_libdir_separator=:
9194 hardcode_direct=yes
9195
9196 # hardcode_minus_L: Not really in the search PATH,
9197 # but as the default location of the library.
9198 hardcode_minus_L=yes
9199 export_dynamic_flag_spec='${wl}-E'
9200 ;;
9201
9202 hpux10*)
9203 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9204 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9205 else
9206 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9207 fi
9208 if test "$with_gnu_ld" = no; then
9209 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9210 hardcode_libdir_flag_spec_ld='+b $libdir'
9211 hardcode_libdir_separator=:
9212 hardcode_direct=yes
9213 hardcode_direct_absolute=yes
9214 export_dynamic_flag_spec='${wl}-E'
9215 # hardcode_minus_L: Not really in the search PATH,
9216 # but as the default location of the library.
9217 hardcode_minus_L=yes
9218 fi
9219 ;;
9220
9221 hpux11*)
9222 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9223 case $host_cpu in
9224 hppa*64*)
9225 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9226 ;;
9227 ia64*)
9228 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9229 ;;
9230 *)
9231 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9232 ;;
9233 esac
9234 else
9235 case $host_cpu in
9236 hppa*64*)
9237 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9238 ;;
9239 ia64*)
9240 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9241 ;;
9242 *)
9243
9244 # Older versions of the 11.00 compiler do not understand -b yet
9245 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9247 $as_echo_n "checking if $CC understands -b... " >&6; }
9248 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9249 $as_echo_n "(cached) " >&6
9250 else
9251 lt_cv_prog_compiler__b=no
9252 save_LDFLAGS="$LDFLAGS"
9253 LDFLAGS="$LDFLAGS -b"
9254 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9255 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9256 # The linker can only warn and ignore the option if not recognized
9257 # So say no if there are warnings
9258 if test -s conftest.err; then
9259 # Append any errors to the config.log.
9260 cat conftest.err 1>&5
9261 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9262 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9263 if diff conftest.exp conftest.er2 >/dev/null; then
9264 lt_cv_prog_compiler__b=yes
9265 fi
9266 else
9267 lt_cv_prog_compiler__b=yes
9268 fi
9269 fi
9270 $RM -r conftest*
9271 LDFLAGS="$save_LDFLAGS"
9272
9273 fi
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9275 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9276
9277 if test x"$lt_cv_prog_compiler__b" = xyes; then
9278 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9279 else
9280 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9281 fi
9282
9283 ;;
9284 esac
9285 fi
9286 if test "$with_gnu_ld" = no; then
9287 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9288 hardcode_libdir_separator=:
9289
9290 case $host_cpu in
9291 hppa*64*|ia64*)
9292 hardcode_direct=no
9293 hardcode_shlibpath_var=no
9294 ;;
9295 *)
9296 hardcode_direct=yes
9297 hardcode_direct_absolute=yes
9298 export_dynamic_flag_spec='${wl}-E'
9299
9300 # hardcode_minus_L: Not really in the search PATH,
9301 # but as the default location of the library.
9302 hardcode_minus_L=yes
9303 ;;
9304 esac
9305 fi
9306 ;;
9307
9308 irix5* | irix6* | nonstopux*)
9309 if test "$GCC" = yes; then
9310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9311 # Try to use the -exported_symbol ld option, if it does not
9312 # work, assume that -exports_file does not work either and
9313 # implicitly export all symbols.
9314 save_LDFLAGS="$LDFLAGS"
9315 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317 /* end confdefs.h. */
9318 int foo(void) {}
9319 _ACEOF
9320 if ac_fn_c_try_link "$LINENO"; then :
9321 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9322
9323 fi
9324 rm -f core conftest.err conftest.$ac_objext \
9325 conftest$ac_exeext conftest.$ac_ext
9326 LDFLAGS="$save_LDFLAGS"
9327 else
9328 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'
9329 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'
9330 fi
9331 archive_cmds_need_lc='no'
9332 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9333 hardcode_libdir_separator=:
9334 inherit_rpath=yes
9335 link_all_deplibs=yes
9336 ;;
9337
9338 netbsd*)
9339 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9340 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9341 else
9342 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9343 fi
9344 hardcode_libdir_flag_spec='-R$libdir'
9345 hardcode_direct=yes
9346 hardcode_shlibpath_var=no
9347 ;;
9348
9349 newsos6)
9350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9351 hardcode_direct=yes
9352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9353 hardcode_libdir_separator=:
9354 hardcode_shlibpath_var=no
9355 ;;
9356
9357 *nto* | *qnx*)
9358 ;;
9359
9360 openbsd*)
9361 if test -f /usr/libexec/ld.so; then
9362 hardcode_direct=yes
9363 hardcode_shlibpath_var=no
9364 hardcode_direct_absolute=yes
9365 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9366 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9367 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9368 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9369 export_dynamic_flag_spec='${wl}-E'
9370 else
9371 case $host_os in
9372 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9373 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9374 hardcode_libdir_flag_spec='-R$libdir'
9375 ;;
9376 *)
9377 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9378 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9379 ;;
9380 esac
9381 fi
9382 else
9383 ld_shlibs=no
9384 fi
9385 ;;
9386
9387 os2*)
9388 hardcode_libdir_flag_spec='-L$libdir'
9389 hardcode_minus_L=yes
9390 allow_undefined_flag=unsupported
9391 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'
9392 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9393 ;;
9394
9395 osf3*)
9396 if test "$GCC" = yes; then
9397 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9398 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'
9399 else
9400 allow_undefined_flag=' -expect_unresolved \*'
9401 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'
9402 fi
9403 archive_cmds_need_lc='no'
9404 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9405 hardcode_libdir_separator=:
9406 ;;
9407
9408 osf4* | osf5*) # as osf3* with the addition of -msym flag
9409 if test "$GCC" = yes; then
9410 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9411 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9412 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9413 else
9414 allow_undefined_flag=' -expect_unresolved \*'
9415 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'
9416 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~
9417 $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'
9418
9419 # Both c and cxx compiler support -rpath directly
9420 hardcode_libdir_flag_spec='-rpath $libdir'
9421 fi
9422 archive_cmds_need_lc='no'
9423 hardcode_libdir_separator=:
9424 ;;
9425
9426 solaris*)
9427 no_undefined_flag=' -z defs'
9428 if test "$GCC" = yes; then
9429 wlarc='${wl}'
9430 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9431 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9432 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9433 else
9434 case `$CC -V 2>&1` in
9435 *"Compilers 5.0"*)
9436 wlarc=''
9437 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9438 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9439 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9440 ;;
9441 *)
9442 wlarc='${wl}'
9443 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9444 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9445 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9446 ;;
9447 esac
9448 fi
9449 hardcode_libdir_flag_spec='-R$libdir'
9450 hardcode_shlibpath_var=no
9451 case $host_os in
9452 solaris2.[0-5] | solaris2.[0-5].*) ;;
9453 *)
9454 # The compiler driver will combine and reorder linker options,
9455 # but understands `-z linker_flag'. GCC discards it without `$wl',
9456 # but is careful enough not to reorder.
9457 # Supported since Solaris 2.6 (maybe 2.5.1?)
9458 if test "$GCC" = yes; then
9459 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9460 else
9461 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9462 fi
9463 ;;
9464 esac
9465 link_all_deplibs=yes
9466 ;;
9467
9468 sunos4*)
9469 if test "x$host_vendor" = xsequent; then
9470 # Use $CC to link under sequent, because it throws in some extra .o
9471 # files that make .init and .fini sections work.
9472 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9473 else
9474 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9475 fi
9476 hardcode_libdir_flag_spec='-L$libdir'
9477 hardcode_direct=yes
9478 hardcode_minus_L=yes
9479 hardcode_shlibpath_var=no
9480 ;;
9481
9482 sysv4)
9483 case $host_vendor in
9484 sni)
9485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9486 hardcode_direct=yes # is this really true???
9487 ;;
9488 siemens)
9489 ## LD is ld it makes a PLAMLIB
9490 ## CC just makes a GrossModule.
9491 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9492 reload_cmds='$CC -r -o $output$reload_objs'
9493 hardcode_direct=no
9494 ;;
9495 motorola)
9496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9497 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9498 ;;
9499 esac
9500 runpath_var='LD_RUN_PATH'
9501 hardcode_shlibpath_var=no
9502 ;;
9503
9504 sysv4.3*)
9505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9506 hardcode_shlibpath_var=no
9507 export_dynamic_flag_spec='-Bexport'
9508 ;;
9509
9510 sysv4*MP*)
9511 if test -d /usr/nec; then
9512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9513 hardcode_shlibpath_var=no
9514 runpath_var=LD_RUN_PATH
9515 hardcode_runpath_var=yes
9516 ld_shlibs=yes
9517 fi
9518 ;;
9519
9520 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9521 no_undefined_flag='${wl}-z,text'
9522 archive_cmds_need_lc=no
9523 hardcode_shlibpath_var=no
9524 runpath_var='LD_RUN_PATH'
9525
9526 if test "$GCC" = yes; then
9527 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9528 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9529 else
9530 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9531 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9532 fi
9533 ;;
9534
9535 sysv5* | sco3.2v5* | sco5v6*)
9536 # Note: We can NOT use -z defs as we might desire, because we do not
9537 # link with -lc, and that would cause any symbols used from libc to
9538 # always be unresolved, which means just about no library would
9539 # ever link correctly. If we're not using GNU ld we use -z text
9540 # though, which does catch some bad symbols but isn't as heavy-handed
9541 # as -z defs.
9542 no_undefined_flag='${wl}-z,text'
9543 allow_undefined_flag='${wl}-z,nodefs'
9544 archive_cmds_need_lc=no
9545 hardcode_shlibpath_var=no
9546 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9547 hardcode_libdir_separator=':'
9548 link_all_deplibs=yes
9549 export_dynamic_flag_spec='${wl}-Bexport'
9550 runpath_var='LD_RUN_PATH'
9551
9552 if test "$GCC" = yes; then
9553 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9554 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9555 else
9556 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9557 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9558 fi
9559 ;;
9560
9561 uts4*)
9562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9563 hardcode_libdir_flag_spec='-L$libdir'
9564 hardcode_shlibpath_var=no
9565 ;;
9566
9567 *)
9568 ld_shlibs=no
9569 ;;
9570 esac
9571
9572 if test x$host_vendor = xsni; then
9573 case $host in
9574 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9575 export_dynamic_flag_spec='${wl}-Blargedynsym'
9576 ;;
9577 esac
9578 fi
9579 fi
9580
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9582 $as_echo "$ld_shlibs" >&6; }
9583 test "$ld_shlibs" = no && can_build_shared=no
9584
9585 with_gnu_ld=$with_gnu_ld
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601 #
9602 # Do we need to explicitly link libc?
9603 #
9604 case "x$archive_cmds_need_lc" in
9605 x|xyes)
9606 # Assume -lc should be added
9607 archive_cmds_need_lc=yes
9608
9609 if test "$enable_shared" = yes && test "$GCC" = yes; then
9610 case $archive_cmds in
9611 *'~'*)
9612 # FIXME: we may have to deal with multi-command sequences.
9613 ;;
9614 '$CC '*)
9615 # Test whether the compiler implicitly links with -lc since on some
9616 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9617 # to ld, don't add -lc before -lgcc.
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9619 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9620 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9621 $as_echo_n "(cached) " >&6
9622 else
9623 $RM conftest*
9624 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9625
9626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9627 (eval $ac_compile) 2>&5
9628 ac_status=$?
9629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9630 test $ac_status = 0; } 2>conftest.err; then
9631 soname=conftest
9632 lib=conftest
9633 libobjs=conftest.$ac_objext
9634 deplibs=
9635 wl=$lt_prog_compiler_wl
9636 pic_flag=$lt_prog_compiler_pic
9637 compiler_flags=-v
9638 linker_flags=-v
9639 verstring=
9640 output_objdir=.
9641 libname=conftest
9642 lt_save_allow_undefined_flag=$allow_undefined_flag
9643 allow_undefined_flag=
9644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9645 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9646 ac_status=$?
9647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9648 test $ac_status = 0; }
9649 then
9650 lt_cv_archive_cmds_need_lc=no
9651 else
9652 lt_cv_archive_cmds_need_lc=yes
9653 fi
9654 allow_undefined_flag=$lt_save_allow_undefined_flag
9655 else
9656 cat conftest.err 1>&5
9657 fi
9658 $RM conftest*
9659
9660 fi
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9662 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9663 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9664 ;;
9665 esac
9666 fi
9667 ;;
9668 esac
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9827 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9828
9829 if test "$GCC" = yes; then
9830 case $host_os in
9831 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9832 *) lt_awk_arg="/^libraries:/" ;;
9833 esac
9834 case $host_os in
9835 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9836 *) lt_sed_strip_eq="s,=/,/,g" ;;
9837 esac
9838 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9839 case $lt_search_path_spec in
9840 *\;*)
9841 # if the path contains ";" then we assume it to be the separator
9842 # otherwise default to the standard path separator (i.e. ":") - it is
9843 # assumed that no part of a normal pathname contains ";" but that should
9844 # okay in the real world where ";" in dirpaths is itself problematic.
9845 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9846 ;;
9847 *)
9848 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9849 ;;
9850 esac
9851 # Ok, now we have the path, separated by spaces, we can step through it
9852 # and add multilib dir if necessary.
9853 lt_tmp_lt_search_path_spec=
9854 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9855 for lt_sys_path in $lt_search_path_spec; do
9856 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9857 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9858 else
9859 test -d "$lt_sys_path" && \
9860 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9861 fi
9862 done
9863 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9864 BEGIN {RS=" "; FS="/|\n";} {
9865 lt_foo="";
9866 lt_count=0;
9867 for (lt_i = NF; lt_i > 0; lt_i--) {
9868 if ($lt_i != "" && $lt_i != ".") {
9869 if ($lt_i == "..") {
9870 lt_count++;
9871 } else {
9872 if (lt_count == 0) {
9873 lt_foo="/" $lt_i lt_foo;
9874 } else {
9875 lt_count--;
9876 }
9877 }
9878 }
9879 }
9880 if (lt_foo != "") { lt_freq[lt_foo]++; }
9881 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9882 }'`
9883 # AWK program above erroneously prepends '/' to C:/dos/paths
9884 # for these hosts.
9885 case $host_os in
9886 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9887 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9888 esac
9889 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9890 else
9891 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9892 fi
9893 library_names_spec=
9894 libname_spec='lib$name'
9895 soname_spec=
9896 shrext_cmds=".so"
9897 postinstall_cmds=
9898 postuninstall_cmds=
9899 finish_cmds=
9900 finish_eval=
9901 shlibpath_var=
9902 shlibpath_overrides_runpath=unknown
9903 version_type=none
9904 dynamic_linker="$host_os ld.so"
9905 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9906 need_lib_prefix=unknown
9907 hardcode_into_libs=no
9908
9909 # when you set need_version to no, make sure it does not cause -set_version
9910 # flags to be left without arguments
9911 need_version=unknown
9912
9913 case $host_os in
9914 aix3*)
9915 version_type=linux
9916 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9917 shlibpath_var=LIBPATH
9918
9919 # AIX 3 has no versioning support, so we append a major version to the name.
9920 soname_spec='${libname}${release}${shared_ext}$major'
9921 ;;
9922
9923 aix[4-9]*)
9924 version_type=linux
9925 need_lib_prefix=no
9926 need_version=no
9927 hardcode_into_libs=yes
9928 if test "$host_cpu" = ia64; then
9929 # AIX 5 supports IA64
9930 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9931 shlibpath_var=LD_LIBRARY_PATH
9932 else
9933 # With GCC up to 2.95.x, collect2 would create an import file
9934 # for dependence libraries. The import file would start with
9935 # the line `#! .'. This would cause the generated library to
9936 # depend on `.', always an invalid library. This was fixed in
9937 # development snapshots of GCC prior to 3.0.
9938 case $host_os in
9939 aix4 | aix4.[01] | aix4.[01].*)
9940 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9941 echo ' yes '
9942 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9943 :
9944 else
9945 can_build_shared=no
9946 fi
9947 ;;
9948 esac
9949 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9950 # soname into executable. Probably we can add versioning support to
9951 # collect2, so additional links can be useful in future.
9952 if test "$aix_use_runtimelinking" = yes; then
9953 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9954 # instead of lib<name>.a to let people know that these are not
9955 # typical AIX shared libraries.
9956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9957 else
9958 # We preserve .a as extension for shared libraries through AIX4.2
9959 # and later when we are not doing run time linking.
9960 library_names_spec='${libname}${release}.a $libname.a'
9961 soname_spec='${libname}${release}${shared_ext}$major'
9962 fi
9963 shlibpath_var=LIBPATH
9964 fi
9965 ;;
9966
9967 amigaos*)
9968 case $host_cpu in
9969 powerpc)
9970 # Since July 2007 AmigaOS4 officially supports .so libraries.
9971 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9973 ;;
9974 m68k)
9975 library_names_spec='$libname.ixlibrary $libname.a'
9976 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9977 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'
9978 ;;
9979 esac
9980 ;;
9981
9982 beos*)
9983 library_names_spec='${libname}${shared_ext}'
9984 dynamic_linker="$host_os ld.so"
9985 shlibpath_var=LIBRARY_PATH
9986 ;;
9987
9988 bsdi[45]*)
9989 version_type=linux
9990 need_version=no
9991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9992 soname_spec='${libname}${release}${shared_ext}$major'
9993 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9994 shlibpath_var=LD_LIBRARY_PATH
9995 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9996 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9997 # the default ld.so.conf also contains /usr/contrib/lib and
9998 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9999 # libtool to hard-code these into programs
10000 ;;
10001
10002 cygwin* | mingw* | pw32* | cegcc*)
10003 version_type=windows
10004 shrext_cmds=".dll"
10005 need_version=no
10006 need_lib_prefix=no
10007
10008 case $GCC,$host_os in
10009 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10010 library_names_spec='$libname.dll.a'
10011 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10012 postinstall_cmds='base_file=`basename \${file}`~
10013 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10014 dldir=$destdir/`dirname \$dlpath`~
10015 test -d \$dldir || mkdir -p \$dldir~
10016 $install_prog $dir/$dlname \$dldir/$dlname~
10017 chmod a+x \$dldir/$dlname~
10018 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10019 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10020 fi'
10021 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10022 dlpath=$dir/\$dldll~
10023 $RM \$dlpath'
10024 shlibpath_overrides_runpath=yes
10025
10026 case $host_os in
10027 cygwin*)
10028 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10029 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10030
10031 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10032 ;;
10033 mingw* | cegcc*)
10034 # MinGW DLLs use traditional 'lib' prefix
10035 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10036 ;;
10037 pw32*)
10038 # pw32 DLLs use 'pw' prefix rather than 'lib'
10039 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10040 ;;
10041 esac
10042 ;;
10043
10044 *)
10045 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10046 ;;
10047 esac
10048 dynamic_linker='Win32 ld.exe'
10049 # FIXME: first we should search . and the directory the executable is in
10050 shlibpath_var=PATH
10051 ;;
10052
10053 darwin* | rhapsody*)
10054 dynamic_linker="$host_os dyld"
10055 version_type=darwin
10056 need_lib_prefix=no
10057 need_version=no
10058 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10059 soname_spec='${libname}${release}${major}$shared_ext'
10060 shlibpath_overrides_runpath=yes
10061 shlibpath_var=DYLD_LIBRARY_PATH
10062 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10063
10064 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10065 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10066 ;;
10067
10068 dgux*)
10069 version_type=linux
10070 need_lib_prefix=no
10071 need_version=no
10072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10073 soname_spec='${libname}${release}${shared_ext}$major'
10074 shlibpath_var=LD_LIBRARY_PATH
10075 ;;
10076
10077 freebsd1*)
10078 dynamic_linker=no
10079 ;;
10080
10081 freebsd* | dragonfly*)
10082 # DragonFly does not have aout. When/if they implement a new
10083 # versioning mechanism, adjust this.
10084 if test -x /usr/bin/objformat; then
10085 objformat=`/usr/bin/objformat`
10086 else
10087 case $host_os in
10088 freebsd[123]*) objformat=aout ;;
10089 *) objformat=elf ;;
10090 esac
10091 fi
10092 version_type=freebsd-$objformat
10093 case $version_type in
10094 freebsd-elf*)
10095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10096 need_version=no
10097 need_lib_prefix=no
10098 ;;
10099 freebsd-*)
10100 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10101 need_version=yes
10102 ;;
10103 esac
10104 shlibpath_var=LD_LIBRARY_PATH
10105 case $host_os in
10106 freebsd2*)
10107 shlibpath_overrides_runpath=yes
10108 ;;
10109 freebsd3.[01]* | freebsdelf3.[01]*)
10110 shlibpath_overrides_runpath=yes
10111 hardcode_into_libs=yes
10112 ;;
10113 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10114 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10115 shlibpath_overrides_runpath=no
10116 hardcode_into_libs=yes
10117 ;;
10118 *) # from 4.6 on, and DragonFly
10119 shlibpath_overrides_runpath=yes
10120 hardcode_into_libs=yes
10121 ;;
10122 esac
10123 ;;
10124
10125 gnu*)
10126 version_type=linux
10127 need_lib_prefix=no
10128 need_version=no
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10130 soname_spec='${libname}${release}${shared_ext}$major'
10131 shlibpath_var=LD_LIBRARY_PATH
10132 hardcode_into_libs=yes
10133 ;;
10134
10135 haiku*)
10136 version_type=linux
10137 need_lib_prefix=no
10138 need_version=no
10139 dynamic_linker="$host_os runtime_loader"
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10141 soname_spec='${libname}${release}${shared_ext}$major'
10142 shlibpath_var=LIBRARY_PATH
10143 shlibpath_overrides_runpath=yes
10144 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10145 hardcode_into_libs=yes
10146 ;;
10147
10148 hpux9* | hpux10* | hpux11*)
10149 # Give a soname corresponding to the major version so that dld.sl refuses to
10150 # link against other versions.
10151 version_type=sunos
10152 need_lib_prefix=no
10153 need_version=no
10154 case $host_cpu in
10155 ia64*)
10156 shrext_cmds='.so'
10157 hardcode_into_libs=yes
10158 dynamic_linker="$host_os dld.so"
10159 shlibpath_var=LD_LIBRARY_PATH
10160 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10162 soname_spec='${libname}${release}${shared_ext}$major'
10163 if test "X$HPUX_IA64_MODE" = X32; then
10164 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10165 else
10166 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10167 fi
10168 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10169 ;;
10170 hppa*64*)
10171 shrext_cmds='.sl'
10172 hardcode_into_libs=yes
10173 dynamic_linker="$host_os dld.sl"
10174 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10177 soname_spec='${libname}${release}${shared_ext}$major'
10178 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10180 ;;
10181 *)
10182 shrext_cmds='.sl'
10183 dynamic_linker="$host_os dld.sl"
10184 shlibpath_var=SHLIB_PATH
10185 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10187 soname_spec='${libname}${release}${shared_ext}$major'
10188 ;;
10189 esac
10190 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10191 postinstall_cmds='chmod 555 $lib'
10192 # or fails outright, so override atomically:
10193 install_override_mode=555
10194 ;;
10195
10196 interix[3-9]*)
10197 version_type=linux
10198 need_lib_prefix=no
10199 need_version=no
10200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10201 soname_spec='${libname}${release}${shared_ext}$major'
10202 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10203 shlibpath_var=LD_LIBRARY_PATH
10204 shlibpath_overrides_runpath=no
10205 hardcode_into_libs=yes
10206 ;;
10207
10208 irix5* | irix6* | nonstopux*)
10209 case $host_os in
10210 nonstopux*) version_type=nonstopux ;;
10211 *)
10212 if test "$lt_cv_prog_gnu_ld" = yes; then
10213 version_type=linux
10214 else
10215 version_type=irix
10216 fi ;;
10217 esac
10218 need_lib_prefix=no
10219 need_version=no
10220 soname_spec='${libname}${release}${shared_ext}$major'
10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10222 case $host_os in
10223 irix5* | nonstopux*)
10224 libsuff= shlibsuff=
10225 ;;
10226 *)
10227 case $LD in # libtool.m4 will add one of these switches to LD
10228 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10229 libsuff= shlibsuff= libmagic=32-bit;;
10230 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10231 libsuff=32 shlibsuff=N32 libmagic=N32;;
10232 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10233 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10234 *) libsuff= shlibsuff= libmagic=never-match;;
10235 esac
10236 ;;
10237 esac
10238 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10239 shlibpath_overrides_runpath=no
10240 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10241 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10242 hardcode_into_libs=yes
10243 ;;
10244
10245 # No shared lib support for Linux oldld, aout, or coff.
10246 linux*oldld* | linux*aout* | linux*coff*)
10247 dynamic_linker=no
10248 ;;
10249
10250 # This must be Linux ELF.
10251 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10252 version_type=linux
10253 need_lib_prefix=no
10254 need_version=no
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10256 soname_spec='${libname}${release}${shared_ext}$major'
10257 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 shlibpath_overrides_runpath=no
10260
10261 # Some binutils ld are patched to set DT_RUNPATH
10262 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10263 $as_echo_n "(cached) " >&6
10264 else
10265 lt_cv_shlibpath_overrides_runpath=no
10266 save_LDFLAGS=$LDFLAGS
10267 save_libdir=$libdir
10268 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10269 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10271 /* end confdefs.h. */
10272
10273 int
10274 main ()
10275 {
10276
10277 ;
10278 return 0;
10279 }
10280 _ACEOF
10281 if ac_fn_c_try_link "$LINENO"; then :
10282 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10283 lt_cv_shlibpath_overrides_runpath=yes
10284 fi
10285 fi
10286 rm -f core conftest.err conftest.$ac_objext \
10287 conftest$ac_exeext conftest.$ac_ext
10288 LDFLAGS=$save_LDFLAGS
10289 libdir=$save_libdir
10290
10291 fi
10292
10293 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10294
10295 # This implies no fast_install, which is unacceptable.
10296 # Some rework will be needed to allow for fast_install
10297 # before this can be enabled.
10298 hardcode_into_libs=yes
10299
10300 # Add ABI-specific directories to the system library path.
10301 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10302
10303 # Append ld.so.conf contents to the search path
10304 if test -f /etc/ld.so.conf; then
10305 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' ' '`
10306 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10307
10308 fi
10309
10310 # We used to test for /lib/ld.so.1 and disable shared libraries on
10311 # powerpc, because MkLinux only supported shared libraries with the
10312 # GNU dynamic linker. Since this was broken with cross compilers,
10313 # most powerpc-linux boxes support dynamic linking these days and
10314 # people can always --disable-shared, the test was removed, and we
10315 # assume the GNU/Linux dynamic linker is in use.
10316 dynamic_linker='GNU/Linux ld.so'
10317 ;;
10318
10319 netbsd*)
10320 version_type=sunos
10321 need_lib_prefix=no
10322 need_version=no
10323 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10326 dynamic_linker='NetBSD (a.out) ld.so'
10327 else
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 dynamic_linker='NetBSD ld.elf_so'
10331 fi
10332 shlibpath_var=LD_LIBRARY_PATH
10333 shlibpath_overrides_runpath=yes
10334 hardcode_into_libs=yes
10335 ;;
10336
10337 newsos6)
10338 version_type=linux
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340 shlibpath_var=LD_LIBRARY_PATH
10341 shlibpath_overrides_runpath=yes
10342 ;;
10343
10344 *nto* | *qnx*)
10345 version_type=qnx
10346 need_lib_prefix=no
10347 need_version=no
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10349 soname_spec='${libname}${release}${shared_ext}$major'
10350 shlibpath_var=LD_LIBRARY_PATH
10351 shlibpath_overrides_runpath=no
10352 hardcode_into_libs=yes
10353 dynamic_linker='ldqnx.so'
10354 ;;
10355
10356 openbsd*)
10357 version_type=sunos
10358 sys_lib_dlsearch_path_spec="/usr/lib"
10359 need_lib_prefix=no
10360 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10361 case $host_os in
10362 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10363 *) need_version=no ;;
10364 esac
10365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10367 shlibpath_var=LD_LIBRARY_PATH
10368 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10369 case $host_os in
10370 openbsd2.[89] | openbsd2.[89].*)
10371 shlibpath_overrides_runpath=no
10372 ;;
10373 *)
10374 shlibpath_overrides_runpath=yes
10375 ;;
10376 esac
10377 else
10378 shlibpath_overrides_runpath=yes
10379 fi
10380 ;;
10381
10382 os2*)
10383 libname_spec='$name'
10384 shrext_cmds=".dll"
10385 need_lib_prefix=no
10386 library_names_spec='$libname${shared_ext} $libname.a'
10387 dynamic_linker='OS/2 ld.exe'
10388 shlibpath_var=LIBPATH
10389 ;;
10390
10391 osf3* | osf4* | osf5*)
10392 version_type=osf
10393 need_lib_prefix=no
10394 need_version=no
10395 soname_spec='${libname}${release}${shared_ext}$major'
10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10397 shlibpath_var=LD_LIBRARY_PATH
10398 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10399 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10400 ;;
10401
10402 rdos*)
10403 dynamic_linker=no
10404 ;;
10405
10406 solaris*)
10407 version_type=linux
10408 need_lib_prefix=no
10409 need_version=no
10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10411 soname_spec='${libname}${release}${shared_ext}$major'
10412 shlibpath_var=LD_LIBRARY_PATH
10413 shlibpath_overrides_runpath=yes
10414 hardcode_into_libs=yes
10415 # ldd complains unless libraries are executable
10416 postinstall_cmds='chmod +x $lib'
10417 ;;
10418
10419 sunos4*)
10420 version_type=sunos
10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10422 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10423 shlibpath_var=LD_LIBRARY_PATH
10424 shlibpath_overrides_runpath=yes
10425 if test "$with_gnu_ld" = yes; then
10426 need_lib_prefix=no
10427 fi
10428 need_version=yes
10429 ;;
10430
10431 sysv4 | sysv4.3*)
10432 version_type=linux
10433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10434 soname_spec='${libname}${release}${shared_ext}$major'
10435 shlibpath_var=LD_LIBRARY_PATH
10436 case $host_vendor in
10437 sni)
10438 shlibpath_overrides_runpath=no
10439 need_lib_prefix=no
10440 runpath_var=LD_RUN_PATH
10441 ;;
10442 siemens)
10443 need_lib_prefix=no
10444 ;;
10445 motorola)
10446 need_lib_prefix=no
10447 need_version=no
10448 shlibpath_overrides_runpath=no
10449 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10450 ;;
10451 esac
10452 ;;
10453
10454 sysv4*MP*)
10455 if test -d /usr/nec ;then
10456 version_type=linux
10457 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10458 soname_spec='$libname${shared_ext}.$major'
10459 shlibpath_var=LD_LIBRARY_PATH
10460 fi
10461 ;;
10462
10463 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10464 version_type=freebsd-elf
10465 need_lib_prefix=no
10466 need_version=no
10467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10468 soname_spec='${libname}${release}${shared_ext}$major'
10469 shlibpath_var=LD_LIBRARY_PATH
10470 shlibpath_overrides_runpath=yes
10471 hardcode_into_libs=yes
10472 if test "$with_gnu_ld" = yes; then
10473 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10474 else
10475 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10476 case $host_os in
10477 sco3.2v5*)
10478 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10479 ;;
10480 esac
10481 fi
10482 sys_lib_dlsearch_path_spec='/usr/lib'
10483 ;;
10484
10485 tpf*)
10486 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10487 version_type=linux
10488 need_lib_prefix=no
10489 need_version=no
10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10491 shlibpath_var=LD_LIBRARY_PATH
10492 shlibpath_overrides_runpath=no
10493 hardcode_into_libs=yes
10494 ;;
10495
10496 uts4*)
10497 version_type=linux
10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10499 soname_spec='${libname}${release}${shared_ext}$major'
10500 shlibpath_var=LD_LIBRARY_PATH
10501 ;;
10502
10503 *)
10504 dynamic_linker=no
10505 ;;
10506 esac
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10508 $as_echo "$dynamic_linker" >&6; }
10509 test "$dynamic_linker" = no && can_build_shared=no
10510
10511 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10512 if test "$GCC" = yes; then
10513 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10514 fi
10515
10516 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10517 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10518 fi
10519 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10520 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10521 fi
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10615 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10616 hardcode_action=
10617 if test -n "$hardcode_libdir_flag_spec" ||
10618 test -n "$runpath_var" ||
10619 test "X$hardcode_automatic" = "Xyes" ; then
10620
10621 # We can hardcode non-existent directories.
10622 if test "$hardcode_direct" != no &&
10623 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10624 # have to relink, otherwise we might link with an installed library
10625 # when we should be linking with a yet-to-be-installed one
10626 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10627 test "$hardcode_minus_L" != no; then
10628 # Linking always hardcodes the temporary library directory.
10629 hardcode_action=relink
10630 else
10631 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10632 hardcode_action=immediate
10633 fi
10634 else
10635 # We cannot hardcode anything, or else we can only hardcode existing
10636 # directories.
10637 hardcode_action=unsupported
10638 fi
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10640 $as_echo "$hardcode_action" >&6; }
10641
10642 if test "$hardcode_action" = relink ||
10643 test "$inherit_rpath" = yes; then
10644 # Fast installation is not supported
10645 enable_fast_install=no
10646 elif test "$shlibpath_overrides_runpath" = yes ||
10647 test "$enable_shared" = no; then
10648 # Fast installation is not necessary
10649 enable_fast_install=needless
10650 fi
10651
10652
10653
10654
10655
10656
10657 if test "x$enable_dlopen" != xyes; then
10658 enable_dlopen=unknown
10659 enable_dlopen_self=unknown
10660 enable_dlopen_self_static=unknown
10661 else
10662 lt_cv_dlopen=no
10663 lt_cv_dlopen_libs=
10664
10665 case $host_os in
10666 beos*)
10667 lt_cv_dlopen="load_add_on"
10668 lt_cv_dlopen_libs=
10669 lt_cv_dlopen_self=yes
10670 ;;
10671
10672 mingw* | pw32* | cegcc*)
10673 lt_cv_dlopen="LoadLibrary"
10674 lt_cv_dlopen_libs=
10675 ;;
10676
10677 cygwin*)
10678 lt_cv_dlopen="dlopen"
10679 lt_cv_dlopen_libs=
10680 ;;
10681
10682 darwin*)
10683 # if libdl is installed we need to link against it
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10685 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10686 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10687 $as_echo_n "(cached) " >&6
10688 else
10689 ac_check_lib_save_LIBS=$LIBS
10690 LIBS="-ldl $LIBS"
10691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10692 /* end confdefs.h. */
10693
10694 /* Override any GCC internal prototype to avoid an error.
10695 Use char because int might match the return type of a GCC
10696 builtin and then its argument prototype would still apply. */
10697 #ifdef __cplusplus
10698 extern "C"
10699 #endif
10700 char dlopen ();
10701 int
10702 main ()
10703 {
10704 return dlopen ();
10705 ;
10706 return 0;
10707 }
10708 _ACEOF
10709 if ac_fn_c_try_link "$LINENO"; then :
10710 ac_cv_lib_dl_dlopen=yes
10711 else
10712 ac_cv_lib_dl_dlopen=no
10713 fi
10714 rm -f core conftest.err conftest.$ac_objext \
10715 conftest$ac_exeext conftest.$ac_ext
10716 LIBS=$ac_check_lib_save_LIBS
10717 fi
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10719 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10720 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10721 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10722 else
10723
10724 lt_cv_dlopen="dyld"
10725 lt_cv_dlopen_libs=
10726 lt_cv_dlopen_self=yes
10727
10728 fi
10729
10730 ;;
10731
10732 *)
10733 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10734 if test "x$ac_cv_func_shl_load" = x""yes; then :
10735 lt_cv_dlopen="shl_load"
10736 else
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10738 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10739 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10740 $as_echo_n "(cached) " >&6
10741 else
10742 ac_check_lib_save_LIBS=$LIBS
10743 LIBS="-ldld $LIBS"
10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745 /* end confdefs.h. */
10746
10747 /* Override any GCC internal prototype to avoid an error.
10748 Use char because int might match the return type of a GCC
10749 builtin and then its argument prototype would still apply. */
10750 #ifdef __cplusplus
10751 extern "C"
10752 #endif
10753 char shl_load ();
10754 int
10755 main ()
10756 {
10757 return shl_load ();
10758 ;
10759 return 0;
10760 }
10761 _ACEOF
10762 if ac_fn_c_try_link "$LINENO"; then :
10763 ac_cv_lib_dld_shl_load=yes
10764 else
10765 ac_cv_lib_dld_shl_load=no
10766 fi
10767 rm -f core conftest.err conftest.$ac_objext \
10768 conftest$ac_exeext conftest.$ac_ext
10769 LIBS=$ac_check_lib_save_LIBS
10770 fi
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10772 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10773 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10774 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10775 else
10776 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10777 if test "x$ac_cv_func_dlopen" = x""yes; then :
10778 lt_cv_dlopen="dlopen"
10779 else
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10781 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10782 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10783 $as_echo_n "(cached) " >&6
10784 else
10785 ac_check_lib_save_LIBS=$LIBS
10786 LIBS="-ldl $LIBS"
10787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788 /* end confdefs.h. */
10789
10790 /* Override any GCC internal prototype to avoid an error.
10791 Use char because int might match the return type of a GCC
10792 builtin and then its argument prototype would still apply. */
10793 #ifdef __cplusplus
10794 extern "C"
10795 #endif
10796 char dlopen ();
10797 int
10798 main ()
10799 {
10800 return dlopen ();
10801 ;
10802 return 0;
10803 }
10804 _ACEOF
10805 if ac_fn_c_try_link "$LINENO"; then :
10806 ac_cv_lib_dl_dlopen=yes
10807 else
10808 ac_cv_lib_dl_dlopen=no
10809 fi
10810 rm -f core conftest.err conftest.$ac_objext \
10811 conftest$ac_exeext conftest.$ac_ext
10812 LIBS=$ac_check_lib_save_LIBS
10813 fi
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10815 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10816 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10817 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10818 else
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10820 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10821 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10822 $as_echo_n "(cached) " >&6
10823 else
10824 ac_check_lib_save_LIBS=$LIBS
10825 LIBS="-lsvld $LIBS"
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h. */
10828
10829 /* Override any GCC internal prototype to avoid an error.
10830 Use char because int might match the return type of a GCC
10831 builtin and then its argument prototype would still apply. */
10832 #ifdef __cplusplus
10833 extern "C"
10834 #endif
10835 char dlopen ();
10836 int
10837 main ()
10838 {
10839 return dlopen ();
10840 ;
10841 return 0;
10842 }
10843 _ACEOF
10844 if ac_fn_c_try_link "$LINENO"; then :
10845 ac_cv_lib_svld_dlopen=yes
10846 else
10847 ac_cv_lib_svld_dlopen=no
10848 fi
10849 rm -f core conftest.err conftest.$ac_objext \
10850 conftest$ac_exeext conftest.$ac_ext
10851 LIBS=$ac_check_lib_save_LIBS
10852 fi
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10854 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10855 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10856 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10857 else
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10859 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10860 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10861 $as_echo_n "(cached) " >&6
10862 else
10863 ac_check_lib_save_LIBS=$LIBS
10864 LIBS="-ldld $LIBS"
10865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10866 /* end confdefs.h. */
10867
10868 /* Override any GCC internal prototype to avoid an error.
10869 Use char because int might match the return type of a GCC
10870 builtin and then its argument prototype would still apply. */
10871 #ifdef __cplusplus
10872 extern "C"
10873 #endif
10874 char dld_link ();
10875 int
10876 main ()
10877 {
10878 return dld_link ();
10879 ;
10880 return 0;
10881 }
10882 _ACEOF
10883 if ac_fn_c_try_link "$LINENO"; then :
10884 ac_cv_lib_dld_dld_link=yes
10885 else
10886 ac_cv_lib_dld_dld_link=no
10887 fi
10888 rm -f core conftest.err conftest.$ac_objext \
10889 conftest$ac_exeext conftest.$ac_ext
10890 LIBS=$ac_check_lib_save_LIBS
10891 fi
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10893 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10894 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10895 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10896 fi
10897
10898
10899 fi
10900
10901
10902 fi
10903
10904
10905 fi
10906
10907
10908 fi
10909
10910
10911 fi
10912
10913 ;;
10914 esac
10915
10916 if test "x$lt_cv_dlopen" != xno; then
10917 enable_dlopen=yes
10918 else
10919 enable_dlopen=no
10920 fi
10921
10922 case $lt_cv_dlopen in
10923 dlopen)
10924 save_CPPFLAGS="$CPPFLAGS"
10925 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10926
10927 save_LDFLAGS="$LDFLAGS"
10928 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10929
10930 save_LIBS="$LIBS"
10931 LIBS="$lt_cv_dlopen_libs $LIBS"
10932
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10934 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10935 if test "${lt_cv_dlopen_self+set}" = set; then :
10936 $as_echo_n "(cached) " >&6
10937 else
10938 if test "$cross_compiling" = yes; then :
10939 lt_cv_dlopen_self=cross
10940 else
10941 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10942 lt_status=$lt_dlunknown
10943 cat > conftest.$ac_ext <<_LT_EOF
10944 #line $LINENO "configure"
10945 #include "confdefs.h"
10946
10947 #if HAVE_DLFCN_H
10948 #include <dlfcn.h>
10949 #endif
10950
10951 #include <stdio.h>
10952
10953 #ifdef RTLD_GLOBAL
10954 # define LT_DLGLOBAL RTLD_GLOBAL
10955 #else
10956 # ifdef DL_GLOBAL
10957 # define LT_DLGLOBAL DL_GLOBAL
10958 # else
10959 # define LT_DLGLOBAL 0
10960 # endif
10961 #endif
10962
10963 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10964 find out it does not work in some platform. */
10965 #ifndef LT_DLLAZY_OR_NOW
10966 # ifdef RTLD_LAZY
10967 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10968 # else
10969 # ifdef DL_LAZY
10970 # define LT_DLLAZY_OR_NOW DL_LAZY
10971 # else
10972 # ifdef RTLD_NOW
10973 # define LT_DLLAZY_OR_NOW RTLD_NOW
10974 # else
10975 # ifdef DL_NOW
10976 # define LT_DLLAZY_OR_NOW DL_NOW
10977 # else
10978 # define LT_DLLAZY_OR_NOW 0
10979 # endif
10980 # endif
10981 # endif
10982 # endif
10983 #endif
10984
10985 /* When -fvisbility=hidden is used, assume the code has been annotated
10986 correspondingly for the symbols needed. */
10987 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10988 void fnord () __attribute__((visibility("default")));
10989 #endif
10990
10991 void fnord () { int i=42; }
10992 int main ()
10993 {
10994 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10995 int status = $lt_dlunknown;
10996
10997 if (self)
10998 {
10999 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11000 else
11001 {
11002 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11003 else puts (dlerror ());
11004 }
11005 /* dlclose (self); */
11006 }
11007 else
11008 puts (dlerror ());
11009
11010 return status;
11011 }
11012 _LT_EOF
11013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11014 (eval $ac_link) 2>&5
11015 ac_status=$?
11016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11017 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11018 (./conftest; exit; ) >&5 2>/dev/null
11019 lt_status=$?
11020 case x$lt_status in
11021 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11022 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11023 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11024 esac
11025 else :
11026 # compilation failed
11027 lt_cv_dlopen_self=no
11028 fi
11029 fi
11030 rm -fr conftest*
11031
11032
11033 fi
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11035 $as_echo "$lt_cv_dlopen_self" >&6; }
11036
11037 if test "x$lt_cv_dlopen_self" = xyes; then
11038 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11040 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11041 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11042 $as_echo_n "(cached) " >&6
11043 else
11044 if test "$cross_compiling" = yes; then :
11045 lt_cv_dlopen_self_static=cross
11046 else
11047 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11048 lt_status=$lt_dlunknown
11049 cat > conftest.$ac_ext <<_LT_EOF
11050 #line $LINENO "configure"
11051 #include "confdefs.h"
11052
11053 #if HAVE_DLFCN_H
11054 #include <dlfcn.h>
11055 #endif
11056
11057 #include <stdio.h>
11058
11059 #ifdef RTLD_GLOBAL
11060 # define LT_DLGLOBAL RTLD_GLOBAL
11061 #else
11062 # ifdef DL_GLOBAL
11063 # define LT_DLGLOBAL DL_GLOBAL
11064 # else
11065 # define LT_DLGLOBAL 0
11066 # endif
11067 #endif
11068
11069 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11070 find out it does not work in some platform. */
11071 #ifndef LT_DLLAZY_OR_NOW
11072 # ifdef RTLD_LAZY
11073 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11074 # else
11075 # ifdef DL_LAZY
11076 # define LT_DLLAZY_OR_NOW DL_LAZY
11077 # else
11078 # ifdef RTLD_NOW
11079 # define LT_DLLAZY_OR_NOW RTLD_NOW
11080 # else
11081 # ifdef DL_NOW
11082 # define LT_DLLAZY_OR_NOW DL_NOW
11083 # else
11084 # define LT_DLLAZY_OR_NOW 0
11085 # endif
11086 # endif
11087 # endif
11088 # endif
11089 #endif
11090
11091 /* When -fvisbility=hidden is used, assume the code has been annotated
11092 correspondingly for the symbols needed. */
11093 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11094 void fnord () __attribute__((visibility("default")));
11095 #endif
11096
11097 void fnord () { int i=42; }
11098 int main ()
11099 {
11100 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11101 int status = $lt_dlunknown;
11102
11103 if (self)
11104 {
11105 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11106 else
11107 {
11108 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11109 else puts (dlerror ());
11110 }
11111 /* dlclose (self); */
11112 }
11113 else
11114 puts (dlerror ());
11115
11116 return status;
11117 }
11118 _LT_EOF
11119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11120 (eval $ac_link) 2>&5
11121 ac_status=$?
11122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11123 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11124 (./conftest; exit; ) >&5 2>/dev/null
11125 lt_status=$?
11126 case x$lt_status in
11127 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11128 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11129 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11130 esac
11131 else :
11132 # compilation failed
11133 lt_cv_dlopen_self_static=no
11134 fi
11135 fi
11136 rm -fr conftest*
11137
11138
11139 fi
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11141 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11142 fi
11143
11144 CPPFLAGS="$save_CPPFLAGS"
11145 LDFLAGS="$save_LDFLAGS"
11146 LIBS="$save_LIBS"
11147 ;;
11148 esac
11149
11150 case $lt_cv_dlopen_self in
11151 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11152 *) enable_dlopen_self=unknown ;;
11153 esac
11154
11155 case $lt_cv_dlopen_self_static in
11156 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11157 *) enable_dlopen_self_static=unknown ;;
11158 esac
11159 fi
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177 striplib=
11178 old_striplib=
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11180 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11181 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11182 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11183 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11185 $as_echo "yes" >&6; }
11186 else
11187 # FIXME - insert some real tests, host_os isn't really good enough
11188 case $host_os in
11189 darwin*)
11190 if test -n "$STRIP" ; then
11191 striplib="$STRIP -x"
11192 old_striplib="$STRIP -S"
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11194 $as_echo "yes" >&6; }
11195 else
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197 $as_echo "no" >&6; }
11198 fi
11199 ;;
11200 *)
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11202 $as_echo "no" >&6; }
11203 ;;
11204 esac
11205 fi
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218 # Report which library types will actually be built
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11220 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11222 $as_echo "$can_build_shared" >&6; }
11223
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11225 $as_echo_n "checking whether to build shared libraries... " >&6; }
11226 test "$can_build_shared" = "no" && enable_shared=no
11227
11228 # On AIX, shared libraries and static libraries use the same namespace, and
11229 # are all built from PIC.
11230 case $host_os in
11231 aix3*)
11232 test "$enable_shared" = yes && enable_static=no
11233 if test -n "$RANLIB"; then
11234 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11235 postinstall_cmds='$RANLIB $lib'
11236 fi
11237 ;;
11238
11239 aix[4-9]*)
11240 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11241 test "$enable_shared" = yes && enable_static=no
11242 fi
11243 ;;
11244 esac
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11246 $as_echo "$enable_shared" >&6; }
11247
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11249 $as_echo_n "checking whether to build static libraries... " >&6; }
11250 # Make sure either enable_shared or enable_static is yes.
11251 test "$enable_shared" = yes || enable_static=yes
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11253 $as_echo "$enable_static" >&6; }
11254
11255
11256
11257
11258 fi
11259 ac_ext=c
11260 ac_cpp='$CPP $CPPFLAGS'
11261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11264
11265 CC="$lt_save_CC"
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279 ac_config_commands="$ac_config_commands libtool"
11280
11281
11282
11283
11284 # Only expand once:
11285
11286
11287 if test "x$CC" != xcc; then
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11289 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11290 else
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11292 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11293 fi
11294 set dummy $CC; ac_cc=`$as_echo "$2" |
11295 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11296 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
11297 $as_echo_n "(cached) " >&6
11298 else
11299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h. */
11301
11302 int
11303 main ()
11304 {
11305
11306 ;
11307 return 0;
11308 }
11309 _ACEOF
11310 # Make sure it works both with $CC and with simple cc.
11311 # We do the test twice because some compilers refuse to overwrite an
11312 # existing .o file with -o, though they will create one.
11313 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11314 rm -f conftest2.*
11315 if { { case "(($ac_try" in
11316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317 *) ac_try_echo=$ac_try;;
11318 esac
11319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11320 $as_echo "$ac_try_echo"; } >&5
11321 (eval "$ac_try") 2>&5
11322 ac_status=$?
11323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11324 test $ac_status = 0; } &&
11325 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11328 esac
11329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11330 $as_echo "$ac_try_echo"; } >&5
11331 (eval "$ac_try") 2>&5
11332 ac_status=$?
11333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11334 test $ac_status = 0; };
11335 then
11336 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11337 if test "x$CC" != xcc; then
11338 # Test first that cc exists at all.
11339 if { ac_try='cc -c conftest.$ac_ext >&5'
11340 { { case "(($ac_try" in
11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11343 esac
11344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11345 $as_echo "$ac_try_echo"; } >&5
11346 (eval "$ac_try") 2>&5
11347 ac_status=$?
11348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11349 test $ac_status = 0; }; }; then
11350 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11351 rm -f conftest2.*
11352 if { { case "(($ac_try" in
11353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354 *) ac_try_echo=$ac_try;;
11355 esac
11356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11357 $as_echo "$ac_try_echo"; } >&5
11358 (eval "$ac_try") 2>&5
11359 ac_status=$?
11360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11361 test $ac_status = 0; } &&
11362 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364 *) ac_try_echo=$ac_try;;
11365 esac
11366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11367 $as_echo "$ac_try_echo"; } >&5
11368 (eval "$ac_try") 2>&5
11369 ac_status=$?
11370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11371 test $ac_status = 0; };
11372 then
11373 # cc works too.
11374 :
11375 else
11376 # cc exists but doesn't like -o.
11377 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11378 fi
11379 fi
11380 fi
11381 else
11382 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11383 fi
11384 rm -f core conftest*
11385
11386 fi
11387 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11389 $as_echo "yes" >&6; }
11390 else
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11392 $as_echo "no" >&6; }
11393
11394 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11395
11396 fi
11397
11398 # FIXME: we rely on the cache variable name because
11399 # there is no other way.
11400 set dummy $CC
11401 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11402 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11403 if test "$am_t" != yes; then
11404 # Losing compiler, so override with the script.
11405 # FIXME: It is wrong to rewrite CC.
11406 # But if we don't then we get into trouble of one sort or another.
11407 # A longer-term fix would be to have automake use am__CC in this case,
11408 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11409 CC="$am_aux_dir/compile $CC"
11410 fi
11411
11412
11413
11414 # Enable quiet compiles on automake 1.11.
11415 # Check whether --enable-silent-rules was given.
11416 if test "${enable_silent_rules+set}" = set; then :
11417 enableval=$enable_silent_rules;
11418 fi
11419
11420 case $enable_silent_rules in
11421 yes) AM_DEFAULT_VERBOSITY=0;;
11422 no) AM_DEFAULT_VERBOSITY=1;;
11423 *) AM_DEFAULT_VERBOSITY=0;;
11424 esac
11425 AM_BACKSLASH='\'
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11436 if test -n "$ac_tool_prefix"; then
11437 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11438 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11440 $as_echo_n "checking for $ac_word... " >&6; }
11441 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11442 $as_echo_n "(cached) " >&6
11443 else
11444 case $PKG_CONFIG in
11445 [\\/]* | ?:[\\/]*)
11446 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11447 ;;
11448 *)
11449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11450 for as_dir in $PATH
11451 do
11452 IFS=$as_save_IFS
11453 test -z "$as_dir" && as_dir=.
11454 for ac_exec_ext in '' $ac_executable_extensions; do
11455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11456 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11458 break 2
11459 fi
11460 done
11461 done
11462 IFS=$as_save_IFS
11463
11464 ;;
11465 esac
11466 fi
11467 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11468 if test -n "$PKG_CONFIG"; then
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11470 $as_echo "$PKG_CONFIG" >&6; }
11471 else
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11473 $as_echo "no" >&6; }
11474 fi
11475
11476
11477 fi
11478 if test -z "$ac_cv_path_PKG_CONFIG"; then
11479 ac_pt_PKG_CONFIG=$PKG_CONFIG
11480 # Extract the first word of "pkg-config", so it can be a program name with args.
11481 set dummy pkg-config; ac_word=$2
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11483 $as_echo_n "checking for $ac_word... " >&6; }
11484 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
11485 $as_echo_n "(cached) " >&6
11486 else
11487 case $ac_pt_PKG_CONFIG in
11488 [\\/]* | ?:[\\/]*)
11489 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11490 ;;
11491 *)
11492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11493 for as_dir in $PATH
11494 do
11495 IFS=$as_save_IFS
11496 test -z "$as_dir" && as_dir=.
11497 for ac_exec_ext in '' $ac_executable_extensions; do
11498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11499 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11501 break 2
11502 fi
11503 done
11504 done
11505 IFS=$as_save_IFS
11506
11507 ;;
11508 esac
11509 fi
11510 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11511 if test -n "$ac_pt_PKG_CONFIG"; then
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11513 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11514 else
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11516 $as_echo "no" >&6; }
11517 fi
11518
11519 if test "x$ac_pt_PKG_CONFIG" = x; then
11520 PKG_CONFIG=""
11521 else
11522 case $cross_compiling:$ac_tool_warned in
11523 yes:)
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11526 ac_tool_warned=yes ;;
11527 esac
11528 PKG_CONFIG=$ac_pt_PKG_CONFIG
11529 fi
11530 else
11531 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11532 fi
11533
11534 fi
11535 if test -n "$PKG_CONFIG"; then
11536 _pkg_min_version=0.9.0
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11538 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11539 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11541 $as_echo "yes" >&6; }
11542 else
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544 $as_echo "no" >&6; }
11545 PKG_CONFIG=""
11546 fi
11547 fi
11548
11549 # Check whether --enable-motif was given.
11550 if test "${enable_motif+set}" = set; then :
11551 enableval=$enable_motif; enable_motif="$enableval"
11552 else
11553 enable_motif=no
11554 fi
11555
11556 if test "$enable_motif" = yes; then
11557 ENABLE_MOTIF_TRUE=
11558 ENABLE_MOTIF_FALSE='#'
11559 else
11560 ENABLE_MOTIF_TRUE='#'
11561 ENABLE_MOTIF_FALSE=
11562 fi
11563
11564
11565
11566 pkg_failed=no
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL" >&5
11568 $as_echo_n "checking for GL... " >&6; }
11569
11570 if test -n "$GL_CFLAGS"; then
11571 pkg_cv_GL_CFLAGS="$GL_CFLAGS"
11572 elif test -n "$PKG_CONFIG"; then
11573 if test -n "$PKG_CONFIG" && \
11574 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5
11575 ($PKG_CONFIG --exists --print-errors "gl") 2>&5
11576 ac_status=$?
11577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11578 test $ac_status = 0; }; then
11579 pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "gl" 2>/dev/null`
11580 else
11581 pkg_failed=yes
11582 fi
11583 else
11584 pkg_failed=untried
11585 fi
11586 if test -n "$GL_LIBS"; then
11587 pkg_cv_GL_LIBS="$GL_LIBS"
11588 elif test -n "$PKG_CONFIG"; then
11589 if test -n "$PKG_CONFIG" && \
11590 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5
11591 ($PKG_CONFIG --exists --print-errors "gl") 2>&5
11592 ac_status=$?
11593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11594 test $ac_status = 0; }; then
11595 pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "gl" 2>/dev/null`
11596 else
11597 pkg_failed=yes
11598 fi
11599 else
11600 pkg_failed=untried
11601 fi
11602
11603
11604
11605 if test $pkg_failed = yes; then
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11607 $as_echo "no" >&6; }
11608
11609 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11610 _pkg_short_errors_supported=yes
11611 else
11612 _pkg_short_errors_supported=no
11613 fi
11614 if test $_pkg_short_errors_supported = yes; then
11615 GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gl" 2>&1`
11616 else
11617 GL_PKG_ERRORS=`$PKG_CONFIG --print-errors "gl" 2>&1`
11618 fi
11619 # Put the nasty error message in config.log where it belongs
11620 echo "$GL_PKG_ERRORS" >&5
11621
11622
11623 ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
11624 if test "x$ac_cv_header_GL_gl_h" = x""yes; then :
11625
11626 else
11627 as_fn_error $? "GL not found" "$LINENO" 5
11628 fi
11629
11630
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lGL" >&5
11632 $as_echo_n "checking for glBegin in -lGL... " >&6; }
11633 if test "${ac_cv_lib_GL_glBegin+set}" = set; then :
11634 $as_echo_n "(cached) " >&6
11635 else
11636 ac_check_lib_save_LIBS=$LIBS
11637 LIBS="-lGL $LIBS"
11638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639 /* end confdefs.h. */
11640
11641 /* Override any GCC internal prototype to avoid an error.
11642 Use char because int might match the return type of a GCC
11643 builtin and then its argument prototype would still apply. */
11644 #ifdef __cplusplus
11645 extern "C"
11646 #endif
11647 char glBegin ();
11648 int
11649 main ()
11650 {
11651 return glBegin ();
11652 ;
11653 return 0;
11654 }
11655 _ACEOF
11656 if ac_fn_c_try_link "$LINENO"; then :
11657 ac_cv_lib_GL_glBegin=yes
11658 else
11659 ac_cv_lib_GL_glBegin=no
11660 fi
11661 rm -f core conftest.err conftest.$ac_objext \
11662 conftest$ac_exeext conftest.$ac_ext
11663 LIBS=$ac_check_lib_save_LIBS
11664 fi
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBegin" >&5
11666 $as_echo "$ac_cv_lib_GL_glBegin" >&6; }
11667 if test "x$ac_cv_lib_GL_glBegin" = x""yes; then :
11668 GL_LIBS=-lGL
11669 else
11670 as_fn_error $? "GL required" "$LINENO" 5
11671 fi
11672
11673
11674 elif test $pkg_failed = untried; then
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11676 $as_echo "no" >&6; }
11677
11678 ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
11679 if test "x$ac_cv_header_GL_gl_h" = x""yes; then :
11680
11681 else
11682 as_fn_error $? "GL not found" "$LINENO" 5
11683 fi
11684
11685
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lGL" >&5
11687 $as_echo_n "checking for glBegin in -lGL... " >&6; }
11688 if test "${ac_cv_lib_GL_glBegin+set}" = set; then :
11689 $as_echo_n "(cached) " >&6
11690 else
11691 ac_check_lib_save_LIBS=$LIBS
11692 LIBS="-lGL $LIBS"
11693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11694 /* end confdefs.h. */
11695
11696 /* Override any GCC internal prototype to avoid an error.
11697 Use char because int might match the return type of a GCC
11698 builtin and then its argument prototype would still apply. */
11699 #ifdef __cplusplus
11700 extern "C"
11701 #endif
11702 char glBegin ();
11703 int
11704 main ()
11705 {
11706 return glBegin ();
11707 ;
11708 return 0;
11709 }
11710 _ACEOF
11711 if ac_fn_c_try_link "$LINENO"; then :
11712 ac_cv_lib_GL_glBegin=yes
11713 else
11714 ac_cv_lib_GL_glBegin=no
11715 fi
11716 rm -f core conftest.err conftest.$ac_objext \
11717 conftest$ac_exeext conftest.$ac_ext
11718 LIBS=$ac_check_lib_save_LIBS
11719 fi
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBegin" >&5
11721 $as_echo "$ac_cv_lib_GL_glBegin" >&6; }
11722 if test "x$ac_cv_lib_GL_glBegin" = x""yes; then :
11723 GL_LIBS=-lGL
11724 else
11725 as_fn_error $? "GL required" "$LINENO" 5
11726 fi
11727
11728
11729 else
11730 GL_CFLAGS=$pkg_cv_GL_CFLAGS
11731 GL_LIBS=$pkg_cv_GL_LIBS
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11733 $as_echo "yes" >&6; }
11734
11735 fi
11736
11737
11738 pkg_failed=no
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLW" >&5
11740 $as_echo_n "checking for GLW... " >&6; }
11741
11742 if test -n "$GLW_CFLAGS"; then
11743 pkg_cv_GLW_CFLAGS="$GLW_CFLAGS"
11744 elif test -n "$PKG_CONFIG"; then
11745 if test -n "$PKG_CONFIG" && \
11746 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt\""; } >&5
11747 ($PKG_CONFIG --exists --print-errors "x11 xt") 2>&5
11748 ac_status=$?
11749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11750 test $ac_status = 0; }; then
11751 pkg_cv_GLW_CFLAGS=`$PKG_CONFIG --cflags "x11 xt" 2>/dev/null`
11752 else
11753 pkg_failed=yes
11754 fi
11755 else
11756 pkg_failed=untried
11757 fi
11758 if test -n "$GLW_LIBS"; then
11759 pkg_cv_GLW_LIBS="$GLW_LIBS"
11760 elif test -n "$PKG_CONFIG"; then
11761 if test -n "$PKG_CONFIG" && \
11762 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt\""; } >&5
11763 ($PKG_CONFIG --exists --print-errors "x11 xt") 2>&5
11764 ac_status=$?
11765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11766 test $ac_status = 0; }; then
11767 pkg_cv_GLW_LIBS=`$PKG_CONFIG --libs "x11 xt" 2>/dev/null`
11768 else
11769 pkg_failed=yes
11770 fi
11771 else
11772 pkg_failed=untried
11773 fi
11774
11775
11776
11777 if test $pkg_failed = yes; then
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11779 $as_echo "no" >&6; }
11780
11781 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11782 _pkg_short_errors_supported=yes
11783 else
11784 _pkg_short_errors_supported=no
11785 fi
11786 if test $_pkg_short_errors_supported = yes; then
11787 GLW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xt" 2>&1`
11788 else
11789 GLW_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xt" 2>&1`
11790 fi
11791 # Put the nasty error message in config.log where it belongs
11792 echo "$GLW_PKG_ERRORS" >&5
11793
11794 as_fn_error $? "Package requirements (x11 xt) were not met:
11795
11796 $GLW_PKG_ERRORS
11797
11798 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11799 installed software in a non-standard prefix.
11800
11801 Alternatively, you may set the environment variables GLW_CFLAGS
11802 and GLW_LIBS to avoid the need to call pkg-config.
11803 See the pkg-config man page for more details." "$LINENO" 5
11804
11805 elif test $pkg_failed = untried; then
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11807 $as_echo "no" >&6; }
11808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11810 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11811 is in your PATH or set the PKG_CONFIG environment variable to the full
11812 path to pkg-config.
11813
11814 Alternatively, you may set the environment variables GLW_CFLAGS
11815 and GLW_LIBS to avoid the need to call pkg-config.
11816 See the pkg-config man page for more details.
11817
11818 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11819 See \`config.log' for more details" "$LINENO" 5; }
11820
11821 else
11822 GLW_CFLAGS=$pkg_cv_GLW_CFLAGS
11823 GLW_LIBS=$pkg_cv_GLW_LIBS
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11825 $as_echo "yes" >&6; }
11826
11827 fi
11828
11829 MOTIF_CFLAGS=
11830 if test "x$enable_motif" = xyes; then
11831 # Extract the first word of "motif-config", so it can be a program name with args.
11832 set dummy motif-config; ac_word=$2
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11834 $as_echo_n "checking for $ac_word... " >&6; }
11835 if test "${ac_cv_path_MOTIF_CONFIG+set}" = set; then :
11836 $as_echo_n "(cached) " >&6
11837 else
11838 case $MOTIF_CONFIG in
11839 [\\/]* | ?:[\\/]*)
11840 ac_cv_path_MOTIF_CONFIG="$MOTIF_CONFIG" # Let the user override the test with a path.
11841 ;;
11842 *)
11843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11844 for as_dir in $PATH
11845 do
11846 IFS=$as_save_IFS
11847 test -z "$as_dir" && as_dir=.
11848 for ac_exec_ext in '' $ac_executable_extensions; do
11849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11850 ac_cv_path_MOTIF_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11852 break 2
11853 fi
11854 done
11855 done
11856 IFS=$as_save_IFS
11857
11858 test -z "$ac_cv_path_MOTIF_CONFIG" && ac_cv_path_MOTIF_CONFIG="no"
11859 ;;
11860 esac
11861 fi
11862 MOTIF_CONFIG=$ac_cv_path_MOTIF_CONFIG
11863 if test -n "$MOTIF_CONFIG"; then
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_CONFIG" >&5
11865 $as_echo "$MOTIF_CONFIG" >&6; }
11866 else
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11868 $as_echo "no" >&6; }
11869 fi
11870
11871
11872 if test "x$MOTIF_CONFIG" != xno; then
11873 MOTIF_CFLAGS=`$MOTIF_CONFIG --cflags`
11874 MOTIF_LIBS=`$MOTIF_CONFIG --libs`
11875 else
11876 ac_fn_c_check_header_mongrel "$LINENO" "Xm/PrimitiveP.h" "ac_cv_header_Xm_PrimitiveP_h" "$ac_includes_default"
11877 if test "x$ac_cv_header_Xm_PrimitiveP_h" = x""yes; then :
11878
11879 else
11880 as_fn_error $? "Can't locate Motif headers" "$LINENO" 5
11881 fi
11882
11883
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmGetPixmap in -lXm" >&5
11885 $as_echo_n "checking for XmGetPixmap in -lXm... " >&6; }
11886 if test "${ac_cv_lib_Xm_XmGetPixmap+set}" = set; then :
11887 $as_echo_n "(cached) " >&6
11888 else
11889 ac_check_lib_save_LIBS=$LIBS
11890 LIBS="-lXm $LIBS"
11891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11892 /* end confdefs.h. */
11893
11894 /* Override any GCC internal prototype to avoid an error.
11895 Use char because int might match the return type of a GCC
11896 builtin and then its argument prototype would still apply. */
11897 #ifdef __cplusplus
11898 extern "C"
11899 #endif
11900 char XmGetPixmap ();
11901 int
11902 main ()
11903 {
11904 return XmGetPixmap ();
11905 ;
11906 return 0;
11907 }
11908 _ACEOF
11909 if ac_fn_c_try_link "$LINENO"; then :
11910 ac_cv_lib_Xm_XmGetPixmap=yes
11911 else
11912 ac_cv_lib_Xm_XmGetPixmap=no
11913 fi
11914 rm -f core conftest.err conftest.$ac_objext \
11915 conftest$ac_exeext conftest.$ac_ext
11916 LIBS=$ac_check_lib_save_LIBS
11917 fi
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_XmGetPixmap" >&5
11919 $as_echo "$ac_cv_lib_Xm_XmGetPixmap" >&6; }
11920 if test "x$ac_cv_lib_Xm_XmGetPixmap" = x""yes; then :
11921 MOTIF_LIBS="-lXm"
11922 else
11923 as_fn_error $? "Can't locate Motif Xm library" "$LINENO" 5
11924 fi
11925
11926 fi
11927 # MOTIF_LIBS is prepended to GLW_LIB_DEPS since Xm needs Xt/X11
11928 GLW_PC_LIB_PRIV="$MOTIF_LIBS $GLW_PC_LIB_PRIV"
11929 GLW_PC_CFLAGS="$MOTIF_CFLAGS $GLW_PC_CFLAGS"
11930 fi
11931
11932
11933
11934
11935 CFLAGS="$CFLAGS $GL_CFLAGS"
11936 LIBS="$LIBS $GL_LIBS $MOTIF_LIBS"
11937
11938 if test "x$GCC" = xyes ; then
11939 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
11940 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
11941 -Wbad-function-cast"
11942 case `$CC -dumpversion` in
11943 3.4.* | 4.*)
11944 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
11945 ;;
11946 esac
11947 else
11948 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11949 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
11950 SUNCC="yes"
11951 else
11952 SUNCC="no"
11953 fi
11954
11955 if test "x$SUNCC" = "xyes"; then
11956 CWARNFLAGS="-v"
11957 fi
11958 fi
11959 CFLAGS="$CFLAGS $CWARNFLAGS"
11960
11961
11962 pkg_failed=no
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
11964 $as_echo_n "checking for X11... " >&6; }
11965
11966 if test -n "$X11_CFLAGS"; then
11967 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
11968 elif test -n "$PKG_CONFIG"; then
11969 if test -n "$PKG_CONFIG" && \
11970 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext\""; } >&5
11971 ($PKG_CONFIG --exists --print-errors "x11 xext") 2>&5
11972 ac_status=$?
11973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11974 test $ac_status = 0; }; then
11975 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11 xext" 2>/dev/null`
11976 else
11977 pkg_failed=yes
11978 fi
11979 else
11980 pkg_failed=untried
11981 fi
11982 if test -n "$X11_LIBS"; then
11983 pkg_cv_X11_LIBS="$X11_LIBS"
11984 elif test -n "$PKG_CONFIG"; then
11985 if test -n "$PKG_CONFIG" && \
11986 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext\""; } >&5
11987 ($PKG_CONFIG --exists --print-errors "x11 xext") 2>&5
11988 ac_status=$?
11989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11990 test $ac_status = 0; }; then
11991 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11 xext" 2>/dev/null`
11992 else
11993 pkg_failed=yes
11994 fi
11995 else
11996 pkg_failed=untried
11997 fi
11998
11999
12000
12001 if test $pkg_failed = yes; then
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12003 $as_echo "no" >&6; }
12004
12005 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12006 _pkg_short_errors_supported=yes
12007 else
12008 _pkg_short_errors_supported=no
12009 fi
12010 if test $_pkg_short_errors_supported = yes; then
12011 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext" 2>&1`
12012 else
12013 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext" 2>&1`
12014 fi
12015 # Put the nasty error message in config.log where it belongs
12016 echo "$X11_PKG_ERRORS" >&5
12017
12018 enable_x11=no
12019 elif test $pkg_failed = untried; then
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12022 enable_x11=no
12023 else
12024 X11_CFLAGS=$pkg_cv_X11_CFLAGS
12025 X11_LIBS=$pkg_cv_X11_LIBS
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12027 $as_echo "yes" >&6; }
12028 x11_enabled=yes
12029 fi
12030
12031 ac_config_files="$ac_config_files glw.pc"
12032
12033 ac_config_files="$ac_config_files Makefile"
12034
12035 cat >confcache <<\_ACEOF
12036 # This file is a shell script that caches the results of configure
12037 # tests run on this system so they can be shared between configure
12038 # scripts and configure runs, see configure's option --config-cache.
12039 # It is not useful on other systems. If it contains results you don't
12040 # want to keep, you may remove or edit it.
12041 #
12042 # config.status only pays attention to the cache file if you give it
12043 # the --recheck option to rerun configure.
12044 #
12045 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12046 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12047 # following values.
12048
12049 _ACEOF
12050
12051 # The following way of writing the cache mishandles newlines in values,
12052 # but we know of no workaround that is simple, portable, and efficient.
12053 # So, we kill variables containing newlines.
12054 # Ultrix sh set writes to stderr and can't be redirected directly,
12055 # and sets the high bit in the cache file unless we assign to the vars.
12056 (
12057 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12058 eval ac_val=\$$ac_var
12059 case $ac_val in #(
12060 *${as_nl}*)
12061 case $ac_var in #(
12062 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12063 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12064 esac
12065 case $ac_var in #(
12066 _ | IFS | as_nl) ;; #(
12067 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12068 *) { eval $ac_var=; unset $ac_var;} ;;
12069 esac ;;
12070 esac
12071 done
12072
12073 (set) 2>&1 |
12074 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12075 *${as_nl}ac_space=\ *)
12076 # `set' does not quote correctly, so add quotes: double-quote
12077 # substitution turns \\\\ into \\, and sed turns \\ into \.
12078 sed -n \
12079 "s/'/'\\\\''/g;
12080 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12081 ;; #(
12082 *)
12083 # `set' quotes correctly as required by POSIX, so do not add quotes.
12084 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12085 ;;
12086 esac |
12087 sort
12088 ) |
12089 sed '
12090 /^ac_cv_env_/b end
12091 t clear
12092 :clear
12093 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12094 t end
12095 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12096 :end' >>confcache
12097 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12098 if test -w "$cache_file"; then
12099 test "x$cache_file" != "x/dev/null" &&
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12101 $as_echo "$as_me: updating cache $cache_file" >&6;}
12102 cat confcache >$cache_file
12103 else
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12105 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12106 fi
12107 fi
12108 rm -f confcache
12109
12110 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12111 # Let make expand exec_prefix.
12112 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12113
12114 # Transform confdefs.h into DEFS.
12115 # Protect against shell expansion while executing Makefile rules.
12116 # Protect against Makefile macro expansion.
12117 #
12118 # If the first sed substitution is executed (which looks for macros that
12119 # take arguments), then branch to the quote section. Otherwise,
12120 # look for a macro that doesn't take arguments.
12121 ac_script='
12122 :mline
12123 /\\$/{
12124 N
12125 s,\\\n,,
12126 b mline
12127 }
12128 t clear
12129 :clear
12130 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
12131 t quote
12132 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
12133 t quote
12134 b any
12135 :quote
12136 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12137 s/\[/\\&/g
12138 s/\]/\\&/g
12139 s/\$/$$/g
12140 H
12141 :any
12142 ${
12143 g
12144 s/^\n//
12145 s/\n/ /g
12146 p
12147 }
12148 '
12149 DEFS=`sed -n "$ac_script" confdefs.h`
12150
12151
12152 ac_libobjs=
12153 ac_ltlibobjs=
12154 U=
12155 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12156 # 1. Remove the extension, and $U if already installed.
12157 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12158 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12159 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12160 # will be set to the directory where LIBOBJS objects are built.
12161 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12162 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12163 done
12164 LIBOBJS=$ac_libobjs
12165
12166 LTLIBOBJS=$ac_ltlibobjs
12167
12168
12169 if test -n "$EXEEXT"; then
12170 am__EXEEXT_TRUE=
12171 am__EXEEXT_FALSE='#'
12172 else
12173 am__EXEEXT_TRUE='#'
12174 am__EXEEXT_FALSE=
12175 fi
12176
12177 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12178 as_fn_error $? "conditional \"AMDEP\" was never defined.
12179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12180 fi
12181 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12182 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12184 fi
12185 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12186 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12188 fi
12189 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
12190 as_fn_error $? "conditional \"ENABLE_MOTIF\" was never defined.
12191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12192 fi
12193
12194 : ${CONFIG_STATUS=./config.status}
12195 ac_write_fail=0
12196 ac_clean_files_save=$ac_clean_files
12197 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12199 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12200 as_write_fail=0
12201 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12202 #! $SHELL
12203 # Generated by $as_me.
12204 # Run this file to recreate the current configuration.
12205 # Compiler output produced by configure, useful for debugging
12206 # configure, is in config.log if it exists.
12207
12208 debug=false
12209 ac_cs_recheck=false
12210 ac_cs_silent=false
12211
12212 SHELL=\${CONFIG_SHELL-$SHELL}
12213 export SHELL
12214 _ASEOF
12215 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12216 ## -------------------- ##
12217 ## M4sh Initialization. ##
12218 ## -------------------- ##
12219
12220 # Be more Bourne compatible
12221 DUALCASE=1; export DUALCASE # for MKS sh
12222 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12223 emulate sh
12224 NULLCMD=:
12225 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12226 # is contrary to our usage. Disable this feature.
12227 alias -g '${1+"$@"}'='"$@"'
12228 setopt NO_GLOB_SUBST
12229 else
12230 case `(set -o) 2>/dev/null` in #(
12231 *posix*) :
12232 set -o posix ;; #(
12233 *) :
12234 ;;
12235 esac
12236 fi
12237
12238
12239 as_nl='
12240 '
12241 export as_nl
12242 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12243 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12244 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12245 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12246 # Prefer a ksh shell builtin over an external printf program on Solaris,
12247 # but without wasting forks for bash or zsh.
12248 if test -z "$BASH_VERSION$ZSH_VERSION" \
12249 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12250 as_echo='print -r --'
12251 as_echo_n='print -rn --'
12252 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12253 as_echo='printf %s\n'
12254 as_echo_n='printf %s'
12255 else
12256 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12257 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12258 as_echo_n='/usr/ucb/echo -n'
12259 else
12260 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12261 as_echo_n_body='eval
12262 arg=$1;
12263 case $arg in #(
12264 *"$as_nl"*)
12265 expr "X$arg" : "X\\(.*\\)$as_nl";
12266 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12267 esac;
12268 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12269 '
12270 export as_echo_n_body
12271 as_echo_n='sh -c $as_echo_n_body as_echo'
12272 fi
12273 export as_echo_body
12274 as_echo='sh -c $as_echo_body as_echo'
12275 fi
12276
12277 # The user is always right.
12278 if test "${PATH_SEPARATOR+set}" != set; then
12279 PATH_SEPARATOR=:
12280 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12281 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12282 PATH_SEPARATOR=';'
12283 }
12284 fi
12285
12286
12287 # IFS
12288 # We need space, tab and new line, in precisely that order. Quoting is
12289 # there to prevent editors from complaining about space-tab.
12290 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12291 # splitting by setting IFS to empty value.)
12292 IFS=" "" $as_nl"
12293
12294 # Find who we are. Look in the path if we contain no directory separator.
12295 case $0 in #((
12296 *[\\/]* ) as_myself=$0 ;;
12297 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12298 for as_dir in $PATH
12299 do
12300 IFS=$as_save_IFS
12301 test -z "$as_dir" && as_dir=.
12302 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12303 done
12304 IFS=$as_save_IFS
12305
12306 ;;
12307 esac
12308 # We did not find ourselves, most probably we were run as `sh COMMAND'
12309 # in which case we are not to be found in the path.
12310 if test "x$as_myself" = x; then
12311 as_myself=$0
12312 fi
12313 if test ! -f "$as_myself"; then
12314 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12315 exit 1
12316 fi
12317
12318 # Unset variables that we do not need and which cause bugs (e.g. in
12319 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12320 # suppresses any "Segmentation fault" message there. '((' could
12321 # trigger a bug in pdksh 5.2.14.
12322 for as_var in BASH_ENV ENV MAIL MAILPATH
12323 do eval test x\${$as_var+set} = xset \
12324 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12325 done
12326 PS1='$ '
12327 PS2='> '
12328 PS4='+ '
12329
12330 # NLS nuisances.
12331 LC_ALL=C
12332 export LC_ALL
12333 LANGUAGE=C
12334 export LANGUAGE
12335
12336 # CDPATH.
12337 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12338
12339
12340 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12341 # ----------------------------------------
12342 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12343 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12344 # script with STATUS, using 1 if that was 0.
12345 as_fn_error ()
12346 {
12347 as_status=$1; test $as_status -eq 0 && as_status=1
12348 if test "$4"; then
12349 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12350 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12351 fi
12352 $as_echo "$as_me: error: $2" >&2
12353 as_fn_exit $as_status
12354 } # as_fn_error
12355
12356
12357 # as_fn_set_status STATUS
12358 # -----------------------
12359 # Set $? to STATUS, without forking.
12360 as_fn_set_status ()
12361 {
12362 return $1
12363 } # as_fn_set_status
12364
12365 # as_fn_exit STATUS
12366 # -----------------
12367 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12368 as_fn_exit ()
12369 {
12370 set +e
12371 as_fn_set_status $1
12372 exit $1
12373 } # as_fn_exit
12374
12375 # as_fn_unset VAR
12376 # ---------------
12377 # Portably unset VAR.
12378 as_fn_unset ()
12379 {
12380 { eval $1=; unset $1;}
12381 }
12382 as_unset=as_fn_unset
12383 # as_fn_append VAR VALUE
12384 # ----------------------
12385 # Append the text in VALUE to the end of the definition contained in VAR. Take
12386 # advantage of any shell optimizations that allow amortized linear growth over
12387 # repeated appends, instead of the typical quadratic growth present in naive
12388 # implementations.
12389 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12390 eval 'as_fn_append ()
12391 {
12392 eval $1+=\$2
12393 }'
12394 else
12395 as_fn_append ()
12396 {
12397 eval $1=\$$1\$2
12398 }
12399 fi # as_fn_append
12400
12401 # as_fn_arith ARG...
12402 # ------------------
12403 # Perform arithmetic evaluation on the ARGs, and store the result in the
12404 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12405 # must be portable across $(()) and expr.
12406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12407 eval 'as_fn_arith ()
12408 {
12409 as_val=$(( $* ))
12410 }'
12411 else
12412 as_fn_arith ()
12413 {
12414 as_val=`expr "$@" || test $? -eq 1`
12415 }
12416 fi # as_fn_arith
12417
12418
12419 if expr a : '\(a\)' >/dev/null 2>&1 &&
12420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12421 as_expr=expr
12422 else
12423 as_expr=false
12424 fi
12425
12426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12427 as_basename=basename
12428 else
12429 as_basename=false
12430 fi
12431
12432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12433 as_dirname=dirname
12434 else
12435 as_dirname=false
12436 fi
12437
12438 as_me=`$as_basename -- "$0" ||
12439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12440 X"$0" : 'X\(//\)$' \| \
12441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12442 $as_echo X/"$0" |
12443 sed '/^.*\/\([^/][^/]*\)\/*$/{
12444 s//\1/
12445 q
12446 }
12447 /^X\/\(\/\/\)$/{
12448 s//\1/
12449 q
12450 }
12451 /^X\/\(\/\).*/{
12452 s//\1/
12453 q
12454 }
12455 s/.*/./; q'`
12456
12457 # Avoid depending upon Character Ranges.
12458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12461 as_cr_digits='0123456789'
12462 as_cr_alnum=$as_cr_Letters$as_cr_digits
12463
12464 ECHO_C= ECHO_N= ECHO_T=
12465 case `echo -n x` in #(((((
12466 -n*)
12467 case `echo 'xy\c'` in
12468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12469 xy) ECHO_C='\c';;
12470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12471 ECHO_T=' ';;
12472 esac;;
12473 *)
12474 ECHO_N='-n';;
12475 esac
12476
12477 rm -f conf$$ conf$$.exe conf$$.file
12478 if test -d conf$$.dir; then
12479 rm -f conf$$.dir/conf$$.file
12480 else
12481 rm -f conf$$.dir
12482 mkdir conf$$.dir 2>/dev/null
12483 fi
12484 if (echo >conf$$.file) 2>/dev/null; then
12485 if ln -s conf$$.file conf$$ 2>/dev/null; then
12486 as_ln_s='ln -s'
12487 # ... but there are two gotchas:
12488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12490 # In both cases, we have to default to `cp -p'.
12491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12492 as_ln_s='cp -p'
12493 elif ln conf$$.file conf$$ 2>/dev/null; then
12494 as_ln_s=ln
12495 else
12496 as_ln_s='cp -p'
12497 fi
12498 else
12499 as_ln_s='cp -p'
12500 fi
12501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12502 rmdir conf$$.dir 2>/dev/null
12503
12504
12505 # as_fn_mkdir_p
12506 # -------------
12507 # Create "$as_dir" as a directory, including parents if necessary.
12508 as_fn_mkdir_p ()
12509 {
12510
12511 case $as_dir in #(
12512 -*) as_dir=./$as_dir;;
12513 esac
12514 test -d "$as_dir" || eval $as_mkdir_p || {
12515 as_dirs=
12516 while :; do
12517 case $as_dir in #(
12518 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12519 *) as_qdir=$as_dir;;
12520 esac
12521 as_dirs="'$as_qdir' $as_dirs"
12522 as_dir=`$as_dirname -- "$as_dir" ||
12523 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12524 X"$as_dir" : 'X\(//\)[^/]' \| \
12525 X"$as_dir" : 'X\(//\)$' \| \
12526 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12527 $as_echo X"$as_dir" |
12528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12529 s//\1/
12530 q
12531 }
12532 /^X\(\/\/\)[^/].*/{
12533 s//\1/
12534 q
12535 }
12536 /^X\(\/\/\)$/{
12537 s//\1/
12538 q
12539 }
12540 /^X\(\/\).*/{
12541 s//\1/
12542 q
12543 }
12544 s/.*/./; q'`
12545 test -d "$as_dir" && break
12546 done
12547 test -z "$as_dirs" || eval "mkdir $as_dirs"
12548 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12549
12550
12551 } # as_fn_mkdir_p
12552 if mkdir -p . 2>/dev/null; then
12553 as_mkdir_p='mkdir -p "$as_dir"'
12554 else
12555 test -d ./-p && rmdir ./-p
12556 as_mkdir_p=false
12557 fi
12558
12559 if test -x / >/dev/null 2>&1; then
12560 as_test_x='test -x'
12561 else
12562 if ls -dL / >/dev/null 2>&1; then
12563 as_ls_L_option=L
12564 else
12565 as_ls_L_option=
12566 fi
12567 as_test_x='
12568 eval sh -c '\''
12569 if test -d "$1"; then
12570 test -d "$1/.";
12571 else
12572 case $1 in #(
12573 -*)set "./$1";;
12574 esac;
12575 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12576 ???[sx]*):;;*)false;;esac;fi
12577 '\'' sh
12578 '
12579 fi
12580 as_executable_p=$as_test_x
12581
12582 # Sed expression to map a string onto a valid CPP name.
12583 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12584
12585 # Sed expression to map a string onto a valid variable name.
12586 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12587
12588
12589 exec 6>&1
12590 ## ----------------------------------- ##
12591 ## Main body of $CONFIG_STATUS script. ##
12592 ## ----------------------------------- ##
12593 _ASEOF
12594 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12595
12596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12597 # Save the log message, to keep $0 and so on meaningful, and to
12598 # report actual input values of CONFIG_FILES etc. instead of their
12599 # values after options handling.
12600 ac_log="
12601 This file was extended by glw $as_me 8.0.0, which was
12602 generated by GNU Autoconf 2.66. Invocation command line was
12603
12604 CONFIG_FILES = $CONFIG_FILES
12605 CONFIG_HEADERS = $CONFIG_HEADERS
12606 CONFIG_LINKS = $CONFIG_LINKS
12607 CONFIG_COMMANDS = $CONFIG_COMMANDS
12608 $ $0 $@
12609
12610 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12611 "
12612
12613 _ACEOF
12614
12615 case $ac_config_files in *"
12616 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12617 esac
12618
12619
12620
12621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12622 # Files that config.status was made for.
12623 config_files="$ac_config_files"
12624 config_commands="$ac_config_commands"
12625
12626 _ACEOF
12627
12628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12629 ac_cs_usage="\
12630 \`$as_me' instantiates files and other configuration actions
12631 from templates according to the current configuration. Unless the files
12632 and actions are specified as TAGs, all are instantiated by default.
12633
12634 Usage: $0 [OPTION]... [TAG]...
12635
12636 -h, --help print this help, then exit
12637 -V, --version print version number and configuration settings, then exit
12638 --config print configuration, then exit
12639 -q, --quiet, --silent
12640 do not print progress messages
12641 -d, --debug don't remove temporary files
12642 --recheck update $as_me by reconfiguring in the same conditions
12643 --file=FILE[:TEMPLATE]
12644 instantiate the configuration file FILE
12645
12646 Configuration files:
12647 $config_files
12648
12649 Configuration commands:
12650 $config_commands
12651
12652 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa>."
12653
12654 _ACEOF
12655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12656 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12657 ac_cs_version="\\
12658 glw config.status 8.0.0
12659 configured by $0, generated by GNU Autoconf 2.66,
12660 with options \\"\$ac_cs_config\\"
12661
12662 Copyright (C) 2010 Free Software Foundation, Inc.
12663 This config.status script is free software; the Free Software Foundation
12664 gives unlimited permission to copy, distribute and modify it."
12665
12666 ac_pwd='$ac_pwd'
12667 srcdir='$srcdir'
12668 INSTALL='$INSTALL'
12669 MKDIR_P='$MKDIR_P'
12670 AWK='$AWK'
12671 test -n "\$AWK" || AWK=awk
12672 _ACEOF
12673
12674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12675 # The default lists apply if the user does not specify any file.
12676 ac_need_defaults=:
12677 while test $# != 0
12678 do
12679 case $1 in
12680 --*=*)
12681 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12682 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12683 ac_shift=:
12684 ;;
12685 *)
12686 ac_option=$1
12687 ac_optarg=$2
12688 ac_shift=shift
12689 ;;
12690 esac
12691
12692 case $ac_option in
12693 # Handling of the options.
12694 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12695 ac_cs_recheck=: ;;
12696 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12697 $as_echo "$ac_cs_version"; exit ;;
12698 --config | --confi | --conf | --con | --co | --c )
12699 $as_echo "$ac_cs_config"; exit ;;
12700 --debug | --debu | --deb | --de | --d | -d )
12701 debug=: ;;
12702 --file | --fil | --fi | --f )
12703 $ac_shift
12704 case $ac_optarg in
12705 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12706 esac
12707 as_fn_append CONFIG_FILES " '$ac_optarg'"
12708 ac_need_defaults=false;;
12709 --he | --h | --help | --hel | -h )
12710 $as_echo "$ac_cs_usage"; exit ;;
12711 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12712 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12713 ac_cs_silent=: ;;
12714
12715 # This is an error.
12716 -*) as_fn_error $? "unrecognized option: \`$1'
12717 Try \`$0 --help' for more information." ;;
12718
12719 *) as_fn_append ac_config_targets " $1"
12720 ac_need_defaults=false ;;
12721
12722 esac
12723 shift
12724 done
12725
12726 ac_configure_extra_args=
12727
12728 if $ac_cs_silent; then
12729 exec 6>/dev/null
12730 ac_configure_extra_args="$ac_configure_extra_args --silent"
12731 fi
12732
12733 _ACEOF
12734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12735 if \$ac_cs_recheck; then
12736 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12737 shift
12738 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12739 CONFIG_SHELL='$SHELL'
12740 export CONFIG_SHELL
12741 exec "\$@"
12742 fi
12743
12744 _ACEOF
12745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12746 exec 5>>config.log
12747 {
12748 echo
12749 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12750 ## Running $as_me. ##
12751 _ASBOX
12752 $as_echo "$ac_log"
12753 } >&5
12754
12755 _ACEOF
12756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12757 #
12758 # INIT-COMMANDS
12759 #
12760 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12761
12762
12763 # The HP-UX ksh and POSIX shell print the target directory to stdout
12764 # if CDPATH is set.
12765 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12766
12767 sed_quote_subst='$sed_quote_subst'
12768 double_quote_subst='$double_quote_subst'
12769 delay_variable_subst='$delay_variable_subst'
12770 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12771 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12772 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12773 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12774 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12775 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12776 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12777 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12778 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12779 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12780 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12781 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12782 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12783 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12784 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12785 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12786 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12787 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12788 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12789 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12790 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12791 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12792 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12793 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12794 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12795 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12796 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12797 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12798 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12799 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12800 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12801 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12802 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12803 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12804 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12805 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12806 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12807 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12808 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12809 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12810 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12811 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12812 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12813 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12814 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12815 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12816 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12817 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12818 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"`'
12819 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12820 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12821 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12822 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12823 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12824 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12825 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12826 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12827 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12828 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12829 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12830 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12831 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12832 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12833 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12834 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12835 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12836 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12837 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12838 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12839 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12840 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12841 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12842 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12843 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12844 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12845 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12846 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12847 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12848 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12849 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12850 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12851 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12852 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12853 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12854 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12855 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12856 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12857 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12858 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12859 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12860 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12861 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12862 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12863 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12864 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12865 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12866 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12867 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12868 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12869 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12870 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12871 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12872 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12873 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12874 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12875 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12876 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12877 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12878 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12879 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12880 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12881 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12882 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12883 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12884 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12885 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12886 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12887 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12888 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12889 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12890
12891 LTCC='$LTCC'
12892 LTCFLAGS='$LTCFLAGS'
12893 compiler='$compiler_DEFAULT'
12894
12895 # A function that is used when there is no print builtin or printf.
12896 func_fallback_echo ()
12897 {
12898 eval 'cat <<_LTECHO_EOF
12899 \$1
12900 _LTECHO_EOF'
12901 }
12902
12903 # Quote evaled strings.
12904 for var in SHELL \
12905 ECHO \
12906 SED \
12907 GREP \
12908 EGREP \
12909 FGREP \
12910 LD \
12911 NM \
12912 LN_S \
12913 lt_SP2NL \
12914 lt_NL2SP \
12915 reload_flag \
12916 OBJDUMP \
12917 deplibs_check_method \
12918 file_magic_cmd \
12919 AR \
12920 AR_FLAGS \
12921 STRIP \
12922 RANLIB \
12923 CC \
12924 CFLAGS \
12925 compiler \
12926 lt_cv_sys_global_symbol_pipe \
12927 lt_cv_sys_global_symbol_to_cdecl \
12928 lt_cv_sys_global_symbol_to_c_name_address \
12929 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12930 lt_prog_compiler_no_builtin_flag \
12931 lt_prog_compiler_wl \
12932 lt_prog_compiler_pic \
12933 lt_prog_compiler_static \
12934 lt_cv_prog_compiler_c_o \
12935 need_locks \
12936 DSYMUTIL \
12937 NMEDIT \
12938 LIPO \
12939 OTOOL \
12940 OTOOL64 \
12941 shrext_cmds \
12942 export_dynamic_flag_spec \
12943 whole_archive_flag_spec \
12944 compiler_needs_object \
12945 with_gnu_ld \
12946 allow_undefined_flag \
12947 no_undefined_flag \
12948 hardcode_libdir_flag_spec \
12949 hardcode_libdir_flag_spec_ld \
12950 hardcode_libdir_separator \
12951 fix_srcfile_path \
12952 exclude_expsyms \
12953 include_expsyms \
12954 file_list_spec \
12955 variables_saved_for_relink \
12956 libname_spec \
12957 library_names_spec \
12958 soname_spec \
12959 install_override_mode \
12960 finish_eval \
12961 old_striplib \
12962 striplib; do
12963 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12964 *[\\\\\\\`\\"\\\$]*)
12965 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12966 ;;
12967 *)
12968 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12969 ;;
12970 esac
12971 done
12972
12973 # Double-quote double-evaled strings.
12974 for var in reload_cmds \
12975 old_postinstall_cmds \
12976 old_postuninstall_cmds \
12977 old_archive_cmds \
12978 extract_expsyms_cmds \
12979 old_archive_from_new_cmds \
12980 old_archive_from_expsyms_cmds \
12981 archive_cmds \
12982 archive_expsym_cmds \
12983 module_cmds \
12984 module_expsym_cmds \
12985 export_symbols_cmds \
12986 prelink_cmds \
12987 postinstall_cmds \
12988 postuninstall_cmds \
12989 finish_cmds \
12990 sys_lib_search_path_spec \
12991 sys_lib_dlsearch_path_spec; do
12992 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12993 *[\\\\\\\`\\"\\\$]*)
12994 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12995 ;;
12996 *)
12997 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12998 ;;
12999 esac
13000 done
13001
13002 ac_aux_dir='$ac_aux_dir'
13003 xsi_shell='$xsi_shell'
13004 lt_shell_append='$lt_shell_append'
13005
13006 # See if we are running on zsh, and set the options which allow our
13007 # commands through without removal of \ escapes INIT.
13008 if test -n "\${ZSH_VERSION+set}" ; then
13009 setopt NO_GLOB_SUBST
13010 fi
13011
13012
13013 PACKAGE='$PACKAGE'
13014 VERSION='$VERSION'
13015 TIMESTAMP='$TIMESTAMP'
13016 RM='$RM'
13017 ofile='$ofile'
13018
13019
13020
13021
13022 _ACEOF
13023
13024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13025
13026 # Handling of arguments.
13027 for ac_config_target in $ac_config_targets
13028 do
13029 case $ac_config_target in
13030 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13031 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13032 "glw.pc") CONFIG_FILES="$CONFIG_FILES glw.pc" ;;
13033 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13034
13035 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13036 esac
13037 done
13038
13039
13040 # If the user did not use the arguments to specify the items to instantiate,
13041 # then the envvar interface is used. Set only those that are not.
13042 # We use the long form for the default assignment because of an extremely
13043 # bizarre bug on SunOS 4.1.3.
13044 if $ac_need_defaults; then
13045 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13046 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13047 fi
13048
13049 # Have a temporary directory for convenience. Make it in the build tree
13050 # simply because there is no reason against having it here, and in addition,
13051 # creating and moving files from /tmp can sometimes cause problems.
13052 # Hook for its removal unless debugging.
13053 # Note that there is a small window in which the directory will not be cleaned:
13054 # after its creation but before its name has been assigned to `$tmp'.
13055 $debug ||
13056 {
13057 tmp=
13058 trap 'exit_status=$?
13059 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13060 ' 0
13061 trap 'as_fn_exit 1' 1 2 13 15
13062 }
13063 # Create a (secure) tmp directory for tmp files.
13064
13065 {
13066 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13067 test -n "$tmp" && test -d "$tmp"
13068 } ||
13069 {
13070 tmp=./conf$$-$RANDOM
13071 (umask 077 && mkdir "$tmp")
13072 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13073
13074 # Set up the scripts for CONFIG_FILES section.
13075 # No need to generate them if there are no CONFIG_FILES.
13076 # This happens for instance with `./config.status config.h'.
13077 if test -n "$CONFIG_FILES"; then
13078
13079
13080 ac_cr=`echo X | tr X '\015'`
13081 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13082 # But we know of no other shell where ac_cr would be empty at this
13083 # point, so we can use a bashism as a fallback.
13084 if test "x$ac_cr" = x; then
13085 eval ac_cr=\$\'\\r\'
13086 fi
13087 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13088 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13089 ac_cs_awk_cr='\\r'
13090 else
13091 ac_cs_awk_cr=$ac_cr
13092 fi
13093
13094 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13095 _ACEOF
13096
13097
13098 {
13099 echo "cat >conf$$subs.awk <<_ACEOF" &&
13100 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13101 echo "_ACEOF"
13102 } >conf$$subs.sh ||
13103 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13104 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13105 ac_delim='%!_!# '
13106 for ac_last_try in false false false false false :; do
13107 . ./conf$$subs.sh ||
13108 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13109
13110 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13111 if test $ac_delim_n = $ac_delim_num; then
13112 break
13113 elif $ac_last_try; then
13114 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13115 else
13116 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13117 fi
13118 done
13119 rm -f conf$$subs.sh
13120
13121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13122 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13123 _ACEOF
13124 sed -n '
13125 h
13126 s/^/S["/; s/!.*/"]=/
13127 p
13128 g
13129 s/^[^!]*!//
13130 :repl
13131 t repl
13132 s/'"$ac_delim"'$//
13133 t delim
13134 :nl
13135 h
13136 s/\(.\{148\}\)..*/\1/
13137 t more1
13138 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13139 p
13140 n
13141 b repl
13142 :more1
13143 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13144 p
13145 g
13146 s/.\{148\}//
13147 t nl
13148 :delim
13149 h
13150 s/\(.\{148\}\)..*/\1/
13151 t more2
13152 s/["\\]/\\&/g; s/^/"/; s/$/"/
13153 p
13154 b
13155 :more2
13156 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13157 p
13158 g
13159 s/.\{148\}//
13160 t delim
13161 ' <conf$$subs.awk | sed '
13162 /^[^""]/{
13163 N
13164 s/\n//
13165 }
13166 ' >>$CONFIG_STATUS || ac_write_fail=1
13167 rm -f conf$$subs.awk
13168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13169 _ACAWK
13170 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13171 for (key in S) S_is_set[key] = 1
13172 FS = ""
13173
13174 }
13175 {
13176 line = $ 0
13177 nfields = split(line, field, "@")
13178 substed = 0
13179 len = length(field[1])
13180 for (i = 2; i < nfields; i++) {
13181 key = field[i]
13182 keylen = length(key)
13183 if (S_is_set[key]) {
13184 value = S[key]
13185 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13186 len += length(value) + length(field[++i])
13187 substed = 1
13188 } else
13189 len += 1 + keylen
13190 }
13191
13192 print line
13193 }
13194
13195 _ACAWK
13196 _ACEOF
13197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13198 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13199 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13200 else
13201 cat
13202 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13203 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13204 _ACEOF
13205
13206 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13207 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13208 # trailing colons and then remove the whole line if VPATH becomes empty
13209 # (actually we leave an empty line to preserve line numbers).
13210 if test "x$srcdir" = x.; then
13211 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13212 h
13213 s///
13214 s/^/:/
13215 s/[ ]*$/:/
13216 s/:\$(srcdir):/:/g
13217 s/:\${srcdir}:/:/g
13218 s/:@srcdir@:/:/g
13219 s/^:*//
13220 s/:*$//
13221 x
13222 s/\(=[ ]*\).*/\1/
13223 G
13224 s/\n//
13225 s/^[^=]*=[ ]*$//
13226 }'
13227 fi
13228
13229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13230 fi # test -n "$CONFIG_FILES"
13231
13232
13233 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
13234 shift
13235 for ac_tag
13236 do
13237 case $ac_tag in
13238 :[FHLC]) ac_mode=$ac_tag; continue;;
13239 esac
13240 case $ac_mode$ac_tag in
13241 :[FHL]*:*);;
13242 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13243 :[FH]-) ac_tag=-:-;;
13244 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13245 esac
13246 ac_save_IFS=$IFS
13247 IFS=:
13248 set x $ac_tag
13249 IFS=$ac_save_IFS
13250 shift
13251 ac_file=$1
13252 shift
13253
13254 case $ac_mode in
13255 :L) ac_source=$1;;
13256 :[FH])
13257 ac_file_inputs=
13258 for ac_f
13259 do
13260 case $ac_f in
13261 -) ac_f="$tmp/stdin";;
13262 *) # Look for the file first in the build tree, then in the source tree
13263 # (if the path is not absolute). The absolute path cannot be DOS-style,
13264 # because $ac_f cannot contain `:'.
13265 test -f "$ac_f" ||
13266 case $ac_f in
13267 [\\/$]*) false;;
13268 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13269 esac ||
13270 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13271 esac
13272 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13273 as_fn_append ac_file_inputs " '$ac_f'"
13274 done
13275
13276 # Let's still pretend it is `configure' which instantiates (i.e., don't
13277 # use $as_me), people would be surprised to read:
13278 # /* config.h. Generated by config.status. */
13279 configure_input='Generated from '`
13280 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13281 `' by configure.'
13282 if test x"$ac_file" != x-; then
13283 configure_input="$ac_file. $configure_input"
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13285 $as_echo "$as_me: creating $ac_file" >&6;}
13286 fi
13287 # Neutralize special characters interpreted by sed in replacement strings.
13288 case $configure_input in #(
13289 *\&* | *\|* | *\\* )
13290 ac_sed_conf_input=`$as_echo "$configure_input" |
13291 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13292 *) ac_sed_conf_input=$configure_input;;
13293 esac
13294
13295 case $ac_tag in
13296 *:-:* | *:-) cat >"$tmp/stdin" \
13297 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13298 esac
13299 ;;
13300 esac
13301
13302 ac_dir=`$as_dirname -- "$ac_file" ||
13303 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13304 X"$ac_file" : 'X\(//\)[^/]' \| \
13305 X"$ac_file" : 'X\(//\)$' \| \
13306 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13307 $as_echo X"$ac_file" |
13308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13309 s//\1/
13310 q
13311 }
13312 /^X\(\/\/\)[^/].*/{
13313 s//\1/
13314 q
13315 }
13316 /^X\(\/\/\)$/{
13317 s//\1/
13318 q
13319 }
13320 /^X\(\/\).*/{
13321 s//\1/
13322 q
13323 }
13324 s/.*/./; q'`
13325 as_dir="$ac_dir"; as_fn_mkdir_p
13326 ac_builddir=.
13327
13328 case "$ac_dir" in
13329 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13330 *)
13331 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13332 # A ".." for each directory in $ac_dir_suffix.
13333 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13334 case $ac_top_builddir_sub in
13335 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13336 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13337 esac ;;
13338 esac
13339 ac_abs_top_builddir=$ac_pwd
13340 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13341 # for backward compatibility:
13342 ac_top_builddir=$ac_top_build_prefix
13343
13344 case $srcdir in
13345 .) # We are building in place.
13346 ac_srcdir=.
13347 ac_top_srcdir=$ac_top_builddir_sub
13348 ac_abs_top_srcdir=$ac_pwd ;;
13349 [\\/]* | ?:[\\/]* ) # Absolute name.
13350 ac_srcdir=$srcdir$ac_dir_suffix;
13351 ac_top_srcdir=$srcdir
13352 ac_abs_top_srcdir=$srcdir ;;
13353 *) # Relative name.
13354 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13355 ac_top_srcdir=$ac_top_build_prefix$srcdir
13356 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13357 esac
13358 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13359
13360
13361 case $ac_mode in
13362 :F)
13363 #
13364 # CONFIG_FILE
13365 #
13366
13367 case $INSTALL in
13368 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13369 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13370 esac
13371 ac_MKDIR_P=$MKDIR_P
13372 case $MKDIR_P in
13373 [\\/$]* | ?:[\\/]* ) ;;
13374 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13375 esac
13376 _ACEOF
13377
13378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13379 # If the template does not know about datarootdir, expand it.
13380 # FIXME: This hack should be removed a few years after 2.60.
13381 ac_datarootdir_hack=; ac_datarootdir_seen=
13382 ac_sed_dataroot='
13383 /datarootdir/ {
13384 p
13385 q
13386 }
13387 /@datadir@/p
13388 /@docdir@/p
13389 /@infodir@/p
13390 /@localedir@/p
13391 /@mandir@/p'
13392 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13393 *datarootdir*) ac_datarootdir_seen=yes;;
13394 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13396 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13397 _ACEOF
13398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13399 ac_datarootdir_hack='
13400 s&@datadir@&$datadir&g
13401 s&@docdir@&$docdir&g
13402 s&@infodir@&$infodir&g
13403 s&@localedir@&$localedir&g
13404 s&@mandir@&$mandir&g
13405 s&\\\${datarootdir}&$datarootdir&g' ;;
13406 esac
13407 _ACEOF
13408
13409 # Neutralize VPATH when `$srcdir' = `.'.
13410 # Shell code in configure.ac might set extrasub.
13411 # FIXME: do we really want to maintain this feature?
13412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13413 ac_sed_extra="$ac_vpsub
13414 $extrasub
13415 _ACEOF
13416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13417 :t
13418 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13419 s|@configure_input@|$ac_sed_conf_input|;t t
13420 s&@top_builddir@&$ac_top_builddir_sub&;t t
13421 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13422 s&@srcdir@&$ac_srcdir&;t t
13423 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13424 s&@top_srcdir@&$ac_top_srcdir&;t t
13425 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13426 s&@builddir@&$ac_builddir&;t t
13427 s&@abs_builddir@&$ac_abs_builddir&;t t
13428 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13429 s&@INSTALL@&$ac_INSTALL&;t t
13430 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13431 $ac_datarootdir_hack
13432 "
13433 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13434 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13435
13436 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13437 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13438 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13440 which seems to be undefined. Please make sure it is defined" >&5
13441 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13442 which seems to be undefined. Please make sure it is defined" >&2;}
13443
13444 rm -f "$tmp/stdin"
13445 case $ac_file in
13446 -) cat "$tmp/out" && rm -f "$tmp/out";;
13447 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13448 esac \
13449 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13450 ;;
13451
13452
13453 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13454 $as_echo "$as_me: executing $ac_file commands" >&6;}
13455 ;;
13456 esac
13457
13458
13459 case $ac_file$ac_mode in
13460 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13461 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13462 # are listed without --file. Let's play safe and only enable the eval
13463 # if we detect the quoting.
13464 case $CONFIG_FILES in
13465 *\'*) eval set x "$CONFIG_FILES" ;;
13466 *) set x $CONFIG_FILES ;;
13467 esac
13468 shift
13469 for mf
13470 do
13471 # Strip MF so we end up with the name of the file.
13472 mf=`echo "$mf" | sed -e 's/:.*$//'`
13473 # Check whether this is an Automake generated Makefile or not.
13474 # We used to match only the files named `Makefile.in', but
13475 # some people rename them; so instead we look at the file content.
13476 # Grep'ing the first line is not enough: some people post-process
13477 # each Makefile.in and add a new line on top of each file to say so.
13478 # Grep'ing the whole file is not good either: AIX grep has a line
13479 # limit of 2048, but all sed's we know have understand at least 4000.
13480 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13481 dirpart=`$as_dirname -- "$mf" ||
13482 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13483 X"$mf" : 'X\(//\)[^/]' \| \
13484 X"$mf" : 'X\(//\)$' \| \
13485 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13486 $as_echo X"$mf" |
13487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13488 s//\1/
13489 q
13490 }
13491 /^X\(\/\/\)[^/].*/{
13492 s//\1/
13493 q
13494 }
13495 /^X\(\/\/\)$/{
13496 s//\1/
13497 q
13498 }
13499 /^X\(\/\).*/{
13500 s//\1/
13501 q
13502 }
13503 s/.*/./; q'`
13504 else
13505 continue
13506 fi
13507 # Extract the definition of DEPDIR, am__include, and am__quote
13508 # from the Makefile without running `make'.
13509 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13510 test -z "$DEPDIR" && continue
13511 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13512 test -z "am__include" && continue
13513 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13514 # When using ansi2knr, U may be empty or an underscore; expand it
13515 U=`sed -n 's/^U = //p' < "$mf"`
13516 # Find all dependency output files, they are included files with
13517 # $(DEPDIR) in their names. We invoke sed twice because it is the
13518 # simplest approach to changing $(DEPDIR) to its actual value in the
13519 # expansion.
13520 for file in `sed -n "
13521 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13522 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13523 # Make sure the directory exists.
13524 test -f "$dirpart/$file" && continue
13525 fdir=`$as_dirname -- "$file" ||
13526 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13527 X"$file" : 'X\(//\)[^/]' \| \
13528 X"$file" : 'X\(//\)$' \| \
13529 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13530 $as_echo X"$file" |
13531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13532 s//\1/
13533 q
13534 }
13535 /^X\(\/\/\)[^/].*/{
13536 s//\1/
13537 q
13538 }
13539 /^X\(\/\/\)$/{
13540 s//\1/
13541 q
13542 }
13543 /^X\(\/\).*/{
13544 s//\1/
13545 q
13546 }
13547 s/.*/./; q'`
13548 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13549 # echo "creating $dirpart/$file"
13550 echo '# dummy' > "$dirpart/$file"
13551 done
13552 done
13553 }
13554 ;;
13555 "libtool":C)
13556
13557 # See if we are running on zsh, and set the options which allow our
13558 # commands through without removal of \ escapes.
13559 if test -n "${ZSH_VERSION+set}" ; then
13560 setopt NO_GLOB_SUBST
13561 fi
13562
13563 cfgfile="${ofile}T"
13564 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13565 $RM "$cfgfile"
13566
13567 cat <<_LT_EOF >> "$cfgfile"
13568 #! $SHELL
13569
13570 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13571 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13572 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13573 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13574 #
13575 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13576 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13577 # Inc.
13578 # Written by Gordon Matzigkeit, 1996
13579 #
13580 # This file is part of GNU Libtool.
13581 #
13582 # GNU Libtool is free software; you can redistribute it and/or
13583 # modify it under the terms of the GNU General Public License as
13584 # published by the Free Software Foundation; either version 2 of
13585 # the License, or (at your option) any later version.
13586 #
13587 # As a special exception to the GNU General Public License,
13588 # if you distribute this file as part of a program or library that
13589 # is built using GNU Libtool, you may include this file under the
13590 # same distribution terms that you use for the rest of that program.
13591 #
13592 # GNU Libtool is distributed in the hope that it will be useful,
13593 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13594 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13595 # GNU General Public License for more details.
13596 #
13597 # You should have received a copy of the GNU General Public License
13598 # along with GNU Libtool; see the file COPYING. If not, a copy
13599 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13600 # obtained by writing to the Free Software Foundation, Inc.,
13601 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13602
13603
13604 # The names of the tagged configurations supported by this script.
13605 available_tags=""
13606
13607 # ### BEGIN LIBTOOL CONFIG
13608
13609 # Which release of libtool.m4 was used?
13610 macro_version=$macro_version
13611 macro_revision=$macro_revision
13612
13613 # Whether or not to build shared libraries.
13614 build_libtool_libs=$enable_shared
13615
13616 # Whether or not to build static libraries.
13617 build_old_libs=$enable_static
13618
13619 # What type of objects to build.
13620 pic_mode=$pic_mode
13621
13622 # Whether or not to optimize for fast installation.
13623 fast_install=$enable_fast_install
13624
13625 # Shell to use when invoking shell scripts.
13626 SHELL=$lt_SHELL
13627
13628 # An echo program that protects backslashes.
13629 ECHO=$lt_ECHO
13630
13631 # The host system.
13632 host_alias=$host_alias
13633 host=$host
13634 host_os=$host_os
13635
13636 # The build system.
13637 build_alias=$build_alias
13638 build=$build
13639 build_os=$build_os
13640
13641 # A sed program that does not truncate output.
13642 SED=$lt_SED
13643
13644 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13645 Xsed="\$SED -e 1s/^X//"
13646
13647 # A grep program that handles long lines.
13648 GREP=$lt_GREP
13649
13650 # An ERE matcher.
13651 EGREP=$lt_EGREP
13652
13653 # A literal string matcher.
13654 FGREP=$lt_FGREP
13655
13656 # A BSD- or MS-compatible name lister.
13657 NM=$lt_NM
13658
13659 # Whether we need soft or hard links.
13660 LN_S=$lt_LN_S
13661
13662 # What is the maximum length of a command?
13663 max_cmd_len=$max_cmd_len
13664
13665 # Object file suffix (normally "o").
13666 objext=$ac_objext
13667
13668 # Executable file suffix (normally "").
13669 exeext=$exeext
13670
13671 # whether the shell understands "unset".
13672 lt_unset=$lt_unset
13673
13674 # turn spaces into newlines.
13675 SP2NL=$lt_lt_SP2NL
13676
13677 # turn newlines into spaces.
13678 NL2SP=$lt_lt_NL2SP
13679
13680 # An object symbol dumper.
13681 OBJDUMP=$lt_OBJDUMP
13682
13683 # Method to check whether dependent libraries are shared objects.
13684 deplibs_check_method=$lt_deplibs_check_method
13685
13686 # Command to use when deplibs_check_method == "file_magic".
13687 file_magic_cmd=$lt_file_magic_cmd
13688
13689 # The archiver.
13690 AR=$lt_AR
13691 AR_FLAGS=$lt_AR_FLAGS
13692
13693 # A symbol stripping program.
13694 STRIP=$lt_STRIP
13695
13696 # Commands used to install an old-style archive.
13697 RANLIB=$lt_RANLIB
13698 old_postinstall_cmds=$lt_old_postinstall_cmds
13699 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13700
13701 # Whether to use a lock for old archive extraction.
13702 lock_old_archive_extraction=$lock_old_archive_extraction
13703
13704 # A C compiler.
13705 LTCC=$lt_CC
13706
13707 # LTCC compiler flags.
13708 LTCFLAGS=$lt_CFLAGS
13709
13710 # Take the output of nm and produce a listing of raw symbols and C names.
13711 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13712
13713 # Transform the output of nm in a proper C declaration.
13714 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13715
13716 # Transform the output of nm in a C name address pair.
13717 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13718
13719 # Transform the output of nm in a C name address pair when lib prefix is needed.
13720 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13721
13722 # The name of the directory that contains temporary libtool files.
13723 objdir=$objdir
13724
13725 # Used to examine libraries when file_magic_cmd begins with "file".
13726 MAGIC_CMD=$MAGIC_CMD
13727
13728 # Must we lock files when doing compilation?
13729 need_locks=$lt_need_locks
13730
13731 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13732 DSYMUTIL=$lt_DSYMUTIL
13733
13734 # Tool to change global to local symbols on Mac OS X.
13735 NMEDIT=$lt_NMEDIT
13736
13737 # Tool to manipulate fat objects and archives on Mac OS X.
13738 LIPO=$lt_LIPO
13739
13740 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13741 OTOOL=$lt_OTOOL
13742
13743 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13744 OTOOL64=$lt_OTOOL64
13745
13746 # Old archive suffix (normally "a").
13747 libext=$libext
13748
13749 # Shared library suffix (normally ".so").
13750 shrext_cmds=$lt_shrext_cmds
13751
13752 # The commands to extract the exported symbol list from a shared archive.
13753 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13754
13755 # Variables whose values should be saved in libtool wrapper scripts and
13756 # restored at link time.
13757 variables_saved_for_relink=$lt_variables_saved_for_relink
13758
13759 # Do we need the "lib" prefix for modules?
13760 need_lib_prefix=$need_lib_prefix
13761
13762 # Do we need a version for libraries?
13763 need_version=$need_version
13764
13765 # Library versioning type.
13766 version_type=$version_type
13767
13768 # Shared library runtime path variable.
13769 runpath_var=$runpath_var
13770
13771 # Shared library path variable.
13772 shlibpath_var=$shlibpath_var
13773
13774 # Is shlibpath searched before the hard-coded library search path?
13775 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13776
13777 # Format of library name prefix.
13778 libname_spec=$lt_libname_spec
13779
13780 # List of archive names. First name is the real one, the rest are links.
13781 # The last name is the one that the linker finds with -lNAME
13782 library_names_spec=$lt_library_names_spec
13783
13784 # The coded name of the library, if different from the real name.
13785 soname_spec=$lt_soname_spec
13786
13787 # Permission mode override for installation of shared libraries.
13788 install_override_mode=$lt_install_override_mode
13789
13790 # Command to use after installation of a shared archive.
13791 postinstall_cmds=$lt_postinstall_cmds
13792
13793 # Command to use after uninstallation of a shared archive.
13794 postuninstall_cmds=$lt_postuninstall_cmds
13795
13796 # Commands used to finish a libtool library installation in a directory.
13797 finish_cmds=$lt_finish_cmds
13798
13799 # As "finish_cmds", except a single script fragment to be evaled but
13800 # not shown.
13801 finish_eval=$lt_finish_eval
13802
13803 # Whether we should hardcode library paths into libraries.
13804 hardcode_into_libs=$hardcode_into_libs
13805
13806 # Compile-time system search path for libraries.
13807 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13808
13809 # Run-time system search path for libraries.
13810 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13811
13812 # Whether dlopen is supported.
13813 dlopen_support=$enable_dlopen
13814
13815 # Whether dlopen of programs is supported.
13816 dlopen_self=$enable_dlopen_self
13817
13818 # Whether dlopen of statically linked programs is supported.
13819 dlopen_self_static=$enable_dlopen_self_static
13820
13821 # Commands to strip libraries.
13822 old_striplib=$lt_old_striplib
13823 striplib=$lt_striplib
13824
13825
13826 # The linker used to build libraries.
13827 LD=$lt_LD
13828
13829 # How to create reloadable object files.
13830 reload_flag=$lt_reload_flag
13831 reload_cmds=$lt_reload_cmds
13832
13833 # Commands used to build an old-style archive.
13834 old_archive_cmds=$lt_old_archive_cmds
13835
13836 # A language specific compiler.
13837 CC=$lt_compiler
13838
13839 # Is the compiler the GNU compiler?
13840 with_gcc=$GCC
13841
13842 # Compiler flag to turn off builtin functions.
13843 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13844
13845 # How to pass a linker flag through the compiler.
13846 wl=$lt_lt_prog_compiler_wl
13847
13848 # Additional compiler flags for building library objects.
13849 pic_flag=$lt_lt_prog_compiler_pic
13850
13851 # Compiler flag to prevent dynamic linking.
13852 link_static_flag=$lt_lt_prog_compiler_static
13853
13854 # Does compiler simultaneously support -c and -o options?
13855 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13856
13857 # Whether or not to add -lc for building shared libraries.
13858 build_libtool_need_lc=$archive_cmds_need_lc
13859
13860 # Whether or not to disallow shared libs when runtime libs are static.
13861 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13862
13863 # Compiler flag to allow reflexive dlopens.
13864 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13865
13866 # Compiler flag to generate shared objects directly from archives.
13867 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13868
13869 # Whether the compiler copes with passing no objects directly.
13870 compiler_needs_object=$lt_compiler_needs_object
13871
13872 # Create an old-style archive from a shared archive.
13873 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13874
13875 # Create a temporary old-style archive to link instead of a shared archive.
13876 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13877
13878 # Commands used to build a shared archive.
13879 archive_cmds=$lt_archive_cmds
13880 archive_expsym_cmds=$lt_archive_expsym_cmds
13881
13882 # Commands used to build a loadable module if different from building
13883 # a shared archive.
13884 module_cmds=$lt_module_cmds
13885 module_expsym_cmds=$lt_module_expsym_cmds
13886
13887 # Whether we are building with GNU ld or not.
13888 with_gnu_ld=$lt_with_gnu_ld
13889
13890 # Flag that allows shared libraries with undefined symbols to be built.
13891 allow_undefined_flag=$lt_allow_undefined_flag
13892
13893 # Flag that enforces no undefined symbols.
13894 no_undefined_flag=$lt_no_undefined_flag
13895
13896 # Flag to hardcode \$libdir into a binary during linking.
13897 # This must work even if \$libdir does not exist
13898 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13899
13900 # If ld is used when linking, flag to hardcode \$libdir into a binary
13901 # during linking. This must work even if \$libdir does not exist.
13902 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13903
13904 # Whether we need a single "-rpath" flag with a separated argument.
13905 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13906
13907 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13908 # DIR into the resulting binary.
13909 hardcode_direct=$hardcode_direct
13910
13911 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13912 # DIR into the resulting binary and the resulting library dependency is
13913 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13914 # library is relocated.
13915 hardcode_direct_absolute=$hardcode_direct_absolute
13916
13917 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13918 # into the resulting binary.
13919 hardcode_minus_L=$hardcode_minus_L
13920
13921 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13922 # into the resulting binary.
13923 hardcode_shlibpath_var=$hardcode_shlibpath_var
13924
13925 # Set to "yes" if building a shared library automatically hardcodes DIR
13926 # into the library and all subsequent libraries and executables linked
13927 # against it.
13928 hardcode_automatic=$hardcode_automatic
13929
13930 # Set to yes if linker adds runtime paths of dependent libraries
13931 # to runtime path list.
13932 inherit_rpath=$inherit_rpath
13933
13934 # Whether libtool must link a program against all its dependency libraries.
13935 link_all_deplibs=$link_all_deplibs
13936
13937 # Fix the shell variable \$srcfile for the compiler.
13938 fix_srcfile_path=$lt_fix_srcfile_path
13939
13940 # Set to "yes" if exported symbols are required.
13941 always_export_symbols=$always_export_symbols
13942
13943 # The commands to list exported symbols.
13944 export_symbols_cmds=$lt_export_symbols_cmds
13945
13946 # Symbols that should not be listed in the preloaded symbols.
13947 exclude_expsyms=$lt_exclude_expsyms
13948
13949 # Symbols that must always be exported.
13950 include_expsyms=$lt_include_expsyms
13951
13952 # Commands necessary for linking programs (against libraries) with templates.
13953 prelink_cmds=$lt_prelink_cmds
13954
13955 # Specify filename containing input files.
13956 file_list_spec=$lt_file_list_spec
13957
13958 # How to hardcode a shared library path into an executable.
13959 hardcode_action=$hardcode_action
13960
13961 # ### END LIBTOOL CONFIG
13962
13963 _LT_EOF
13964
13965 case $host_os in
13966 aix3*)
13967 cat <<\_LT_EOF >> "$cfgfile"
13968 # AIX sometimes has problems with the GCC collect2 program. For some
13969 # reason, if we set the COLLECT_NAMES environment variable, the problems
13970 # vanish in a puff of smoke.
13971 if test "X${COLLECT_NAMES+set}" != Xset; then
13972 COLLECT_NAMES=
13973 export COLLECT_NAMES
13974 fi
13975 _LT_EOF
13976 ;;
13977 esac
13978
13979
13980 ltmain="$ac_aux_dir/ltmain.sh"
13981
13982
13983 # We use sed instead of cat because bash on DJGPP gets confused if
13984 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13985 # text mode, it properly converts lines to CR/LF. This bash problem
13986 # is reportedly fixed, but why not run on old versions too?
13987 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13988 || (rm -f "$cfgfile"; exit 1)
13989
13990 case $xsi_shell in
13991 yes)
13992 cat << \_LT_EOF >> "$cfgfile"
13993
13994 # func_dirname file append nondir_replacement
13995 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13996 # otherwise set result to NONDIR_REPLACEMENT.
13997 func_dirname ()
13998 {
13999 case ${1} in
14000 */*) func_dirname_result="${1%/*}${2}" ;;
14001 * ) func_dirname_result="${3}" ;;
14002 esac
14003 }
14004
14005 # func_basename file
14006 func_basename ()
14007 {
14008 func_basename_result="${1##*/}"
14009 }
14010
14011 # func_dirname_and_basename file append nondir_replacement
14012 # perform func_basename and func_dirname in a single function
14013 # call:
14014 # dirname: Compute the dirname of FILE. If nonempty,
14015 # add APPEND to the result, otherwise set result
14016 # to NONDIR_REPLACEMENT.
14017 # value returned in "$func_dirname_result"
14018 # basename: Compute filename of FILE.
14019 # value retuned in "$func_basename_result"
14020 # Implementation must be kept synchronized with func_dirname
14021 # and func_basename. For efficiency, we do not delegate to
14022 # those functions but instead duplicate the functionality here.
14023 func_dirname_and_basename ()
14024 {
14025 case ${1} in
14026 */*) func_dirname_result="${1%/*}${2}" ;;
14027 * ) func_dirname_result="${3}" ;;
14028 esac
14029 func_basename_result="${1##*/}"
14030 }
14031
14032 # func_stripname prefix suffix name
14033 # strip PREFIX and SUFFIX off of NAME.
14034 # PREFIX and SUFFIX must not contain globbing or regex special
14035 # characters, hashes, percent signs, but SUFFIX may contain a leading
14036 # dot (in which case that matches only a dot).
14037 func_stripname ()
14038 {
14039 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14040 # positional parameters, so assign one to ordinary parameter first.
14041 func_stripname_result=${3}
14042 func_stripname_result=${func_stripname_result#"${1}"}
14043 func_stripname_result=${func_stripname_result%"${2}"}
14044 }
14045
14046 # func_opt_split
14047 func_opt_split ()
14048 {
14049 func_opt_split_opt=${1%%=*}
14050 func_opt_split_arg=${1#*=}
14051 }
14052
14053 # func_lo2o object
14054 func_lo2o ()
14055 {
14056 case ${1} in
14057 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14058 *) func_lo2o_result=${1} ;;
14059 esac
14060 }
14061
14062 # func_xform libobj-or-source
14063 func_xform ()
14064 {
14065 func_xform_result=${1%.*}.lo
14066 }
14067
14068 # func_arith arithmetic-term...
14069 func_arith ()
14070 {
14071 func_arith_result=$(( $* ))
14072 }
14073
14074 # func_len string
14075 # STRING may not start with a hyphen.
14076 func_len ()
14077 {
14078 func_len_result=${#1}
14079 }
14080
14081 _LT_EOF
14082 ;;
14083 *) # Bourne compatible functions.
14084 cat << \_LT_EOF >> "$cfgfile"
14085
14086 # func_dirname file append nondir_replacement
14087 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14088 # otherwise set result to NONDIR_REPLACEMENT.
14089 func_dirname ()
14090 {
14091 # Extract subdirectory from the argument.
14092 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14093 if test "X$func_dirname_result" = "X${1}"; then
14094 func_dirname_result="${3}"
14095 else
14096 func_dirname_result="$func_dirname_result${2}"
14097 fi
14098 }
14099
14100 # func_basename file
14101 func_basename ()
14102 {
14103 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14104 }
14105
14106
14107 # func_stripname prefix suffix name
14108 # strip PREFIX and SUFFIX off of NAME.
14109 # PREFIX and SUFFIX must not contain globbing or regex special
14110 # characters, hashes, percent signs, but SUFFIX may contain a leading
14111 # dot (in which case that matches only a dot).
14112 # func_strip_suffix prefix name
14113 func_stripname ()
14114 {
14115 case ${2} in
14116 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14117 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14118 esac
14119 }
14120
14121 # sed scripts:
14122 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14123 my_sed_long_arg='1s/^-[^=]*=//'
14124
14125 # func_opt_split
14126 func_opt_split ()
14127 {
14128 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14129 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14130 }
14131
14132 # func_lo2o object
14133 func_lo2o ()
14134 {
14135 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14136 }
14137
14138 # func_xform libobj-or-source
14139 func_xform ()
14140 {
14141 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14142 }
14143
14144 # func_arith arithmetic-term...
14145 func_arith ()
14146 {
14147 func_arith_result=`expr "$@"`
14148 }
14149
14150 # func_len string
14151 # STRING may not start with a hyphen.
14152 func_len ()
14153 {
14154 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14155 }
14156
14157 _LT_EOF
14158 esac
14159
14160 case $lt_shell_append in
14161 yes)
14162 cat << \_LT_EOF >> "$cfgfile"
14163
14164 # func_append var value
14165 # Append VALUE to the end of shell variable VAR.
14166 func_append ()
14167 {
14168 eval "$1+=\$2"
14169 }
14170 _LT_EOF
14171 ;;
14172 *)
14173 cat << \_LT_EOF >> "$cfgfile"
14174
14175 # func_append var value
14176 # Append VALUE to the end of shell variable VAR.
14177 func_append ()
14178 {
14179 eval "$1=\$$1\$2"
14180 }
14181
14182 _LT_EOF
14183 ;;
14184 esac
14185
14186
14187 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14188 || (rm -f "$cfgfile"; exit 1)
14189
14190 mv -f "$cfgfile" "$ofile" ||
14191 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14192 chmod +x "$ofile"
14193
14194 ;;
14195
14196 esac
14197 done # for ac_tag
14198
14199
14200 as_fn_exit 0
14201 _ACEOF
14202 ac_clean_files=$ac_clean_files_save
14203
14204 test $ac_write_fail = 0 ||
14205 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14206
14207
14208 # configure is writing to config.log, and then calls config.status.
14209 # config.status does its own redirection, appending to config.log.
14210 # Unfortunately, on DOS this fails, as config.log is still kept open
14211 # by configure, so config.status won't be able to write to it; its
14212 # output is simply discarded. So we exec the FD to /dev/null,
14213 # effectively closing config.log, so it can be properly (re)opened and
14214 # appended to by config.status. When coming back to configure, we
14215 # need to make the FD available again.
14216 if test "$no_create" != yes; then
14217 ac_cs_success=:
14218 ac_config_status_args=
14219 test "$silent" = yes &&
14220 ac_config_status_args="$ac_config_status_args --quiet"
14221 exec 5>/dev/null
14222 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14223 exec 5>>config.log
14224 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14225 # would make configure fail if this is the last instruction.
14226 $ac_cs_success || as_fn_exit 1
14227 fi
14228 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14230 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14231 fi
14232
14233